:root {
    color-scheme: dark;
    --ink: #151310;
    --surface: #201c18;
    --text: #fff3e6;
    --muted: #c0b1a2;
    --accent: #ffab68;
    --line: #3b332b;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1152px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 15px; color: var(--ink); background: var(--accent); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner, .footer-top { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.topbar-inner { min-height: 74px; }
.brand { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; font-size: 18px; font-weight: 750; letter-spacing: .02em; }
.brand-mark { display: block; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 9px; }
.topbar nav, .footer nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 38px); color: var(--muted); font-size: 14px; }
nav a:hover, .legal a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid #624b38; border-radius: 9px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .18s, border-color .18s; }
.button:hover { background: #30241c; border-color: var(--accent); }
.header-button { color: var(--accent); min-height: 42px; padding-inline: 16px; }
.primary { color: #211206; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #ffc08d; }
.secondary { background: transparent; }

.hero { min-height: 612px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; position: relative; isolation: isolate; }
.hero-text { padding: 70px 0 76px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: .12em; font-weight: 700; color: var(--accent); }
.eyebrow span { width: 17px; height: 1px; background: currentColor; }
h1 { margin: 20px 0 20px; font-size: clamp(58px, 6.05vw, 89px); line-height: 1.065; letter-spacing: -.05em; font-weight: 850; }
h1 em { font-style: normal; color: var(--accent); }
.intro { max-width: 365px; font-size: 17px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.platform-note { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-top: 20px; font-size: 14px; }
.platform-note span { width: 3px; height: 3px; border-radius: 50%; background: #998674; }
.hero-visual { display: grid; align-items: center; justify-items: end; min-height: 475px; padding: 32px 21px 32px 0; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; top: 0; right: calc((100% - 100vw) / 2); bottom: 0; width: min(78vw, 1060px); background: linear-gradient(90deg, var(--ink), transparent 44%), linear-gradient(0deg, var(--ink), transparent 25%, transparent 85%, var(--ink)), #221711 url("assets/table.webp") center right / cover no-repeat; }

.demo-panel { width: min(100%, 456px); padding: 22px; border: 1px solid #675243; border-radius: 22px; background: rgba(24,21,18,.94); box-shadow: 0 24px 85px #0009; }
.demo-top, .demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-title { display: flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 750; }
.demo-title img { flex: 0 0 25px; border-radius: 6px; }
.demo-label { font-size: 13px; color: #d9c7b6; white-space: nowrap; }
.demo-label i { display: inline-block; margin-right: 4px; height: 6px; width: 6px; border-radius: 50%; background: #ed9e67; vertical-align: 2px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 20px 0 14px; padding: 4px; background: #100f0c; border: 1px solid #3e342b; border-radius: 10px; }
.modes button { border: 1px solid transparent; border-radius: 7px; padding: 7px 1px; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; }
.modes button:hover { background: #30241c; }
.modes button[aria-pressed="true"] { border-color: #6c4930; color: #ffc28c; background: #35261b; font-weight: 700; }
.seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seats > div { min-width: 0; display: flex; flex-direction: column; padding: 10px 12px; background: #27211c; border: 1px solid #3c3229; border-radius: 10px; }
.seats span { color: var(--muted); font-size: 14px; }
.seats strong { color: #fff6ec; font-size: 29px; line-height: 1.14; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.seats .changed { background: #3a281b; border-color: #925d39; }
.seats .changed strong { color: #ffb476; }
.demo-footer { margin-top: 16px; padding-top: 13px; border-top: 1px solid #47382d; }
.demo-message { display: grid; line-height: 1.4; }
.demo-message small { color: var(--muted); font-size: 13px; }
.demo-message strong { font-size: 15px; }
.play-button { min-height: 40px; min-width: 94px; padding: 0 10px; color: var(--accent); border-radius: 8px; border: 1px solid #795337; background: #352519; font-size: 14px; font-weight: 700; white-space: nowrap; }
.play-button span { font-size: 10px; vertical-align: 1px; padding-right: 2px; }
.play-button:hover { background: #563721; }

.workflow, .faq { border-block: 1px solid var(--line); background: #1b1815; }
.games, .workflow, .downloads, .faq { padding-block: 68px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 49px); line-height: 1.2; letter-spacing: -.036em; margin: 8px 0 0; }
.section-heading > p:not(.eyebrow) { color: var(--muted); margin-top: 13px; }
.game-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 12px; margin-top: 26px; }
.game { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface); }
.game-available { border-color: #795337; background: #2d2118; }
.game-status { font-size: 14px; color: var(--muted); }
.game-available .game-status, .game a { color: var(--accent); }
.game h3 { font-size: 23px; margin-block: 4px 6px; }
.game h3 + p, .game-note { color: var(--muted); }
.game a { display: inline-block; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
.game-note { margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.step { border-left: 1px solid #554538; padding: 0 24px; }
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.step-icon { display: block; width: 36px; height: 36px; margin-bottom: 12px; color: var(--accent); font: 27px/36px Georgia, serif; }
.step h3, .device h3 { font-size: 20px; margin-bottom: 6px; }
.step p, .device p, .questions p { color: var(--muted); }
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.device { padding: 21px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.device a, .help-link { display: inline-block; margin-top: 17px; color: var(--accent); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.device .device-download { display: inline-flex; min-height: 42px; padding-inline: 10px; text-decoration: none; }
.device .download-note { margin-top: 8px; font-size: 14px; }
.download-note a { display: inline; margin: 0; font-size: inherit; }
.device-icon { display: block; position: relative; height: 22px; width: 29px; border: 2px solid var(--accent); border-radius: 3px; margin: 4px 0 15px; }
.device-icon.phone { width: 15px; height: 24px; }
.device-icon.phone::after { content: ""; position: absolute; inset: auto 3px 2px; height: 1px; background: var(--accent); }
.device-icon.laptop::after, .device-icon.monitor::after { content: ""; position: absolute; height: 2px; bottom: -5px; left: -5px; right: -5px; background: var(--accent); }
.device-icon.monitor::after { left: 7px; right: 7px; }
.device-icon.android { border-radius: 7px 7px 3px 3px; }
.faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 30px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; cursor: pointer; font-weight: 650; padding-block: 12px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.questions details[open] summary::after { content: "−"; }
.questions p { margin: 0 24px 15px 0; }
.footer { padding: 30px 0 22px; }
.footer-top { padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.legal { display: flex; flex-wrap: wrap; gap: 5px 19px; margin-top: 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
    .wrap { width: calc(100% - 48px); }
    .hero { min-height: auto; }
    .hero-visual { padding-right: 0; }
    .demo-panel { padding: 16px; }
    .seats > div { padding: 8px; }
    .device-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .wrap { width: calc(100% - 36px); }
    .topbar nav { display: none; }
    .topbar-inner { min-height: 62px; }
    .hero { grid-template-columns: 1fr; }
    .hero-text { padding: 43px 0 13px; }
    h1 { font-size: clamp(53px, 12vw, 72px); margin: 14px 0 15px; }
    .hero-visual { justify-items: center; min-height: 0; position: relative; isolation: isolate; padding: 38px 0 36px; }
    .hero-visual::before { width: 100vw; right: calc((100% - 100vw) / 2); background-image: linear-gradient(0deg, var(--ink), transparent 21%, transparent 74%, var(--ink)), url("assets/table.webp"); background-position: center, right center; }
    .games, .workflow, .downloads, .faq { padding-block: 44px; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-available { grid-column: 1 / -1; }
    .game { padding: 16px 13px; }
    .game h3 { font-size: 20px; }
    .steps, .faq-grid { grid-template-columns: 1fr; }
    .steps { gap: 15px; margin-top: 22px; }
    .step, .step:first-child { border-left: 1px solid #554538; padding: 0 0 0 15px; }
    .step-icon { margin-bottom: 3px; }
    .device { padding: 16px 12px; }
    .footer-top { flex-wrap: wrap; }
}
@media (max-width: 360px) {
    .wrap { width: calc(100% - 28px); }
    .actions { gap: 8px; }
    .button { padding-inline: 13px; }
    .modes button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.document { max-width: 790px; padding-block: 56px 70px; }
.document h1 { font-size: clamp(36px, 6vw, 59px); margin: 0 0 25px; }
.content-page { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.85; overflow-wrap: anywhere; }
.content-page h2, .content-page h3 { color: var(--text); margin: 24px 0 8px; }
.content-page h2 { font-size: 22px; }
.content-page h3 { font-size: 18px; }
.content-page p + p { margin-top: .75em; }
.content-page ul, .content-page ol { padding-inline-start: 1.5em; }
.content-page a, .docs-topbar nav a[aria-current="page"] { color: var(--accent); }
.content-page a { text-decoration: underline; text-underline-offset: 4px; }
.docs-topbar + .document + .footer { border-top: 1px solid var(--line); }
@media (max-width: 700px) {
    .docs-topbar .topbar-inner { flex-wrap: wrap; row-gap: 0; padding-block: 10px; }
    .docs-topbar nav { display: flex; width: 100%; order: 3; padding-top: 10px; }
    .document { padding-block: 40px 52px; }
}
