@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
    color-scheme: light;
    --paper: #f8f7f1;
    --ink: #183129;
    --muted: #4d6258;
    --line: #d8ddd3;
    --body-font: "DM Sans", Arial, sans-serif;
    --display-font: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 var(--body-font);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid #ae6430; outline-offset: 5px; }
h1, h2, h3 { line-height: 1.08; }
figure { margin: 0; }

.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 10px 16px;
    transform: translateY(-150%);
    background: white;
}

.skip-link:focus { transform: none; }

.site-width {
    width: min(100% - clamp(32px, 8vw, 128px), 1260px);
    margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner,
.footer-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -.03em;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: white;
}

.header-inner nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
    font-size: .92rem;
    font-weight: 600;
}

.header-inner nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.header-inner nav a:hover,
.header-inner nav a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.collection { padding-block: 32px 64px; }

.feature {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: 495px;
    align-items: stretch;
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(90deg, #062e31 0%, rgba(6, 46, 49, .97) 31%, rgba(6, 46, 49, .6) 57%, rgba(6, 46, 49, .04) 100%),
        #062e31 url("../img/koi-lotus/hero.webp") center 38% / cover no-repeat;
    color: #fffaf0;
}

.feature-copy {
    z-index: 1;
    align-self: center;
    padding: clamp(32px, 5vw, 76px);
    padding-right: 8px;
}

.feature-app {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f7e6c7;
    font-size: .89rem;
    font-weight: 600;
}

.feature-app img {
    border: 1px solid rgba(255, 251, 237, .46);
    border-radius: 15px;
    box-shadow: 0 7px 20px #001b23;
}

.feature h1 {
    margin: 20px 0 16px;
    font: 400 clamp(4rem, 7vw, 7.35rem)/.92 var(--display-font);
    letter-spacing: -.035em;
}

.feature-copy > p {
    max-width: 34ch;
    margin: 0;
    color: #f1f2ea;
    font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

.actions,
.card-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.actions {
    margin-top: 26px;
    font-weight: 600;
}

.actions a:not(.button) { text-underline-offset: 5px; }

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.button-light {
    background: #f9e7bc;
    color: #16342d;
}

.button-light:hover { background: #fff2d2; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #2f4d41; }

.feature-art {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.phone {
    position: absolute;
    display: block;
    width: clamp(128px, 32%, 214px);
    height: auto;
    border: 5px solid #143e40;
    border-radius: 25px;
    background: #163e42;
    box-shadow: 0 0 0 1px #fce8c95e, 0 16px 38px #001519b3;
}

.phone-board {
    z-index: 1;
    right: 46%;
    bottom: -7%;
    transform: rotate(-12deg);
}

.phone-pond {
    right: 16%;
    bottom: -14%;
    transform: rotate(10deg);
}

.feature-logo {
    width: min(100%, 490px);
    height: auto;
    filter: drop-shadow(0 14px 26px #00171e);
}

.catalog-heading { margin-block: 46px 16px; }

.catalog-heading h2 {
    margin: 0;
    font: 400 clamp(2.7rem, 4.3vw, 4rem)/1 var(--display-font);
}

.game-grid,
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.game-card,
.guide-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.legacy-anchor { position: absolute; inset-block-start: 0; }

.card-media {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(152px, 17vw, 230px);
    overflow: hidden;
}

.card-media img { position: absolute; display: block; }

.card-ninja {
    background: radial-gradient(ellipse at 40% 35%, #536484, #253657 80%);
}

.card-ninja img {
    top: 13%;
    left: 26%;
    width: 52%;
    height: auto;
    transform: rotate(-12deg);
    filter: drop-shadow(0 10px 14px #13243d9e);
}

.card-jaguar { background: radial-gradient(ellipse at 25% 25%, #23865e, #11462f 80%); }
.card-koi { background: radial-gradient(ellipse at 25% 25%, #3d6b82, #172b48 80%); }

.card-icon {
    z-index: 1;
    top: 24%;
    left: 13%;
    width: 30%;
    height: auto;
    border-radius: 21%;
    box-shadow: 0 7px 22px rgb(0 13 17 / .46);
}

.card-screen {
    top: 14%;
    right: 13%;
    width: 42%;
    height: auto;
    transform: rotate(12deg);
    border: 3px solid #ffffff5c;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgb(0 13 17 / .46);
}

.card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(16px, 2.1vw, 26px);
}

.card-copy > p { margin: 0 0 17px; color: var(--muted); }
.card-copy .game-genre { margin-bottom: 6px; font-size: .86rem; font-weight: 600; }

.card-copy h3,
.guide-card h3 {
    margin: 0 0 10px;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    letter-spacing: -.035em;
}

.card-links { margin-top: auto; font-size: .93rem; font-weight: 600; }

.card-links a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    text-underline-offset: 4px;
}

.card-links a:first-child { text-decoration: none; }
.card-links a:hover { text-decoration: underline; }

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner { min-height: 82px; font-size: .9rem; }
.footer-inner > a:not(.site-brand) { text-underline-offset: 4px; }

.back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-block: 14px 6px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e7ede6;
}

.guide-card > img {
    width: min(82%, 258px);
    height: auto;
    aspect-ratio: 640 / 1384;
    object-fit: contain;
    margin: 20px 0;
    border-radius: 14px;
}

.guide-card figcaption {
    width: 100%;
    flex: 1;
    padding: 22px;
    border-top: 1px solid var(--line);
    background: white;
}

.guide-card p,
.support-panel p { margin: 0; color: var(--muted); }

.support-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-block: 38px 58px;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ecefe4;
}

.support-panel h2 { margin: 0 0 8px; }
.support-panel .actions { margin: 0; }

@media (max-width: 900px) {
    .feature { min-height: 404px; }
    .phone { border-radius: 20px; }
    .phone-board { bottom: -4%; }
    .phone-pond { bottom: -9%; }
}

@media (max-width: 700px) {
    .header-inner { min-height: 62px; }
    .collection { padding-top: 16px; }
    .feature {
        grid-template-columns: 1fr;
        background:
            linear-gradient(180deg, #062e31 0%, rgba(6, 46, 49, .95) 38%, rgba(6, 46, 49, .13) 100%),
            #062e31 url("../img/koi-lotus/hero.webp") 65% bottom / cover no-repeat;
    }
    .feature-copy { padding: 26px 22px 12px; }
    .feature h1 { font-size: clamp(3.45rem, 12vw, 5.6rem); }
    .feature-app img { width: 48px; height: 48px; border-radius: 12px; }
    .feature-art { min-height: clamp(245px, 66vw, 345px); }
    .phone { width: clamp(110px, 31%, 176px); border-width: 4px; }
    .phone-board { right: 46%; bottom: -7%; }
    .phone-pond { right: 17%; bottom: -13%; }
    .feature-detail .feature-art { min-height: 0; padding: 6px 25px 24px; }
    .feature-logo { width: min(85%, 330px); }
    .catalog-heading { margin-top: 34px; }
    .game-grid,
    .guide-grid { grid-template-columns: 1fr; }
    .card-media { height: clamp(190px, 47vw, 265px); }
    .card-ninja img { width: 43%; left: 31%; }
    .card-icon { width: min(30%, 112px); }
    .card-screen { width: min(42%, 190px); }
    .support-panel { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
    .card-media img { transition: filter .18s ease; }
    .game-card:hover .card-media img { filter: brightness(1.06); }
}

.privacy-page main {
    max-width: 920px;
    padding-block: clamp(30px, 5vw, 58px) 70px;
}

.privacy-directory h1 {
    margin: 0 0 20px;
    font: 400 clamp(3rem, 7vw, 5.6rem)/1 var(--display-font);
}

.policy-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.policy-list a {
    display: flex;
    justify-content: space-between;
    gap: 13px;
    align-items: center;
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-weight: 600;
    text-decoration: none;
}

.policy-list a:hover { background: #eef1e7; }

.privacy-page main section + section {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 14px;
}

.privacy-page .koi-merged-policy,
.privacy-page .jaguar-merged-policy {
    font-family: var(--body-font);
}

.privacy-page .koi-policy-document,
.privacy-page .jaguar-policy-document,
.privacy-page .privacy-legacy-policy {
    padding: clamp(18px, 4.8vw, 52px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: none;
    overflow-wrap: anywhere;
}

.privacy-page .koi-policy-document > p:first-child,
.privacy-page .jaguar-policy-document > p:first-child { margin-top: 0; }

.privacy-page .koi-policy-brand img,
.privacy-page .jaguar-policy-brand img { width: 80px; height: 80px; }

.privacy-legacy-policy h2 { margin-top: 0; }

@media (max-width: 600px) {
    .policy-list { grid-template-columns: 1fr; }
    .privacy-page main section + section { margin-top: 32px; padding-top: 20px; }
}
