:root {
    color-scheme: light;
    --paper: #fcfaf4;
    --ink: #252c20;
    --subtle: #50574b;
    --green: #35533a;
    --line: #d9ded0;
    --accent: #9b4f24;
    --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.75 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .21em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2 { margin: 0; font-family: var(--serif); line-height: 1.22; }
h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem 1rem; z-index: 1; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { color: var(--ink); font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); margin-inline-start: .16em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(.75rem, 3vw, 2.25rem); }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(1.5rem, 4.6vw, 4rem);
    padding-block: clamp(3rem, 8vw, 7rem);
}
.brand-note { color: var(--accent); font-size: .9rem; font-weight: 750; letter-spacing: .07em; margin-bottom: .6rem; }
.legal-name { font-weight: 650; margin-top: 1rem; margin-bottom: .35rem; }
.intro { color: var(--subtle); font-size: 1.06rem; margin-top: .8rem; }
.hero-copy .intro { margin-bottom: 1.5rem; max-width: 30em; }
.hero-art { width: 100%; border-radius: 21px; border: 1px solid #ddd2bc; }
.button {
    display: inline-flex;
    gap: .8rem;
    align-items: center;
    border-radius: 9px;
    padding: .65rem 1rem;
    background: var(--green);
    color: white;
    font-weight: 650;
    text-decoration: none;
}
.button:hover { background: #29432e; }

.game-section { background: #eef0e4; }
.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.8rem, 8vw, 7rem);
    max-width: 900px;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}
.game-shot { margin: 0; }
.game-shot img { width: 100%; border: 1px solid #ced3c1; border-radius: 16px; }
.game-shot figcaption { margin-top: .6rem; color: var(--subtle); font-size: .875rem; }
.game-copy .intro { max-width: 30em; }
.game-features { margin: 1.4rem 0; }
.game-features div { border-top: 1px solid #cdd4c3; padding: .75rem 0; }
.game-features dt, .contact-details dt { font-weight: 700; }
.game-features dd, .contact-details dd { margin: 0; color: var(--subtle); }
.game-status { color: var(--green); margin-bottom: 0; }

.company-section {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(1rem, 5vw, 4rem);
    padding-block: clamp(2.5rem, 7vw, 6rem);
}
.english-name { color: var(--subtle); }
.text-link { font-weight: 700; }
.contact-page { padding-block: clamp(2.5rem, 7vw, 6rem); }
.contact-card {
    margin-top: 2rem;
    padding: clamp(1.2rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f0f2e8;
    max-width: 780px;
}
.contact-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.contact-card .english-name { margin-top: .45rem; }
.contact-card address { font-style: normal; }
.contact-details { margin: 0; }
.contact-details div {
    display: grid;
    grid-template-columns: 6em minmax(0, 1fr);
    gap: .35rem 1rem;
    border-top: 1px solid var(--line);
    padding: .7rem 0;
}
.contact-details dd { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--subtle); font-size: .87rem; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.4rem; }
.site-footer p { margin: 0 0 .22rem; }
.filings { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.icp-filing, .police-filing { display: inline-flex; align-items: center; gap: .35rem; }
.police-filing img { width: 18px; height: 20px; }

@media (max-width: 720px) {
    .wrap { width: calc(100% - 32px); }
    .site-header-inner { min-height: 64px; flex-wrap: wrap; padding-block: .7rem; gap: .25rem .85rem; }
    .site-header nav { font-size: .9rem; }
    .hero, .game-layout, .company-section { grid-template-columns: minmax(0, 1fr); }
    .hero { padding-block: 2.5rem; }
    .game-shot { max-width: min(300px, 76vw); grid-row: 2; }
    .contact-details div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
