:root {
  --ink: #171717;
  --ink-soft: #242321;
  --paper: #f4f1e9;
  --chalk: #fffdf6;
  --wood: #c7622e;
  --wood-dark: #93421f;
  --red: #e43f35;
  --cyan: #38d7cf;
  --amber: #ffc857;
  --line: rgba(255, 253, 246, 0.2);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--chalk); font-family: Inter, "Microsoft YaHei", Arial, sans-serif; line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: url("assets/page-texture.webp"); background-size: 960px auto; opacity: 0.06; z-index: -1; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(56, 215, 207, 0.22); }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
.section, .hero { scroll-margin-top: 80px; }
h1, h2, h3 { text-wrap: balance; }
p, small { overflow-wrap: anywhere; }
.section-inner, .nav-wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 30; padding: 10px 14px; background: var(--amber); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(23, 23, 23, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand img { display: block; width: 48px; height: 48px; border: 1px solid var(--cyan); }
.brand b, .brand small { display: block; }
.brand b { font-size: 15px; line-height: 1.2; }
.brand small { margin-top: 5px; color: var(--cyan); font: 800 10px/1 Consolas, monospace; }
.desktop-nav { display: flex; align-items: center; gap: 25px; color: #c9c5bc; font-size: 13px; }
.desktop-nav a { padding-block: 8px; border-bottom: 2px solid transparent; }
.desktop-nav a:hover { color: var(--chalk); border-bottom-color: var(--cyan); }
.desktop-nav .nav-cta { padding: 9px 15px; color: var(--ink); background: var(--amber); border: 0; font-weight: 800; }
.desktop-nav .nav-cta:hover { color: var(--ink); background: var(--cyan); border: 0; }
.menu-toggle, .mobile-nav { display: none; }

.hero { border-bottom: 1px solid var(--line); }
.hero-stage { height: 430px; background: var(--ink) url("assets/hero-court.webp") center center / cover no-repeat; }
.hero-board { width: min(var(--max), calc(100% - 48px)); min-height: 232px; margin: -1px auto 0; padding: 30px 0 25px; display: grid; grid-template-columns: 1fr auto; gap: 22px 50px; align-items: center; }
.eyebrow { margin: 0; color: var(--cyan); font: 800 12px/1 Consolas, monospace; }
.board-copy h1 { margin: 10px 0 8px; font-size: 54px; line-height: 1.05; font-weight: 900; }
.board-copy > p:last-child { max-width: 700px; margin: 0; color: #c9c5bc; font-size: 15px; }
.board-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid currentColor; font-weight: 800; font-size: 14px; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.button-primary:hover { background: var(--cyan); border-color: var(--cyan); }
.button-quiet { color: var(--chalk); background: transparent; border-color: #5c5a55; }
.button-quiet:hover { border-color: var(--chalk); }
.score-strip { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-strip div { min-height: 64px; padding: 12px 17px; border-right: 1px solid var(--line); }
.score-strip div:last-child { border-right: 0; }
.score-strip dt { color: #8e8b84; font: 700 10px/1.2 Consolas, monospace; }
.score-strip dd { margin: 7px 0 0; color: var(--chalk); font: 800 17px/1.2 Consolas, monospace; }
.score-strip, .possession, .download-ticket dl { font-variant-numeric: tabular-nums; }

.section { padding: 102px 0; border-bottom: 1px solid var(--line); }
.section h2 { margin: 14px 0 18px; font-size: 48px; line-height: 1.12; }
.section h3 { line-height: 1.25; }
.section-copy > p:not(.eyebrow), .section-heading-row > p { color: #bcb8ae; }
.lineup-section { background: var(--ink-soft); }
.lineup-layout { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 90px; align-items: center; }
.segmented { width: fit-content; margin: 34px 0 24px; display: flex; border: 1px solid #5a5751; }
.segmented button { min-width: 90px; min-height: 42px; padding: 0 14px; border: 0; border-right: 1px solid #5a5751; background: transparent; cursor: pointer; font-weight: 800; font-size: 13px; }
.segmented button:last-child { border-right: 0; }
.segmented button:hover:not([aria-selected="true"]) { background: rgba(255, 255, 255, 0.08); }
.segmented button[aria-selected="true"] { background: var(--cyan); color: var(--ink); }
.lineup-notes { min-height: 135px; padding-top: 22px; border-top: 1px solid var(--line); }
.lineup-notes h3 { margin: 0 0 9px; font-size: 23px; }
.lineup-notes p { margin: 0; color: #aaa69d; font-size: 14px; }
.court-board { position: relative; aspect-ratio: 16 / 10; min-height: 390px; overflow: hidden; border: 8px solid #e9c19c; background-color: var(--wood); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 86px); box-shadow: 16px 16px 0 #0f0f0f; }
.court-board::before { content: ""; position: absolute; inset: 7%; border: 3px solid rgba(255,255,255,0.8); }
.court-board::after { content: ""; position: absolute; width: 4px; top: 7%; bottom: 7%; left: 50%; background: rgba(255,255,255,0.8); }
.court-line { position: absolute; border: 3px solid rgba(255,255,255,0.8); z-index: 1; }
.center-circle { width: 110px; height: 110px; border-radius: 50%; left: calc(50% - 55px); top: calc(50% - 55px); }
.paint { width: 116px; height: 172px; right: 7%; top: calc(50% - 86px); border-right: 0; }
.position { position: absolute; z-index: 3; width: 58px; height: 58px; display: grid; place-items: center; align-content: center; border-radius: 50%; color: var(--ink); background: var(--chalk); border: 4px solid var(--cyan); box-shadow: 0 5px 0 rgba(0,0,0,0.35); }
.position b { font: 900 17px/1 Consolas, monospace; }
.position small { margin-top: 3px; font-size: 9px; font-weight: 800; }
.position.pg { left: 16%; top: 42%; }
.position.sg { left: 35%; top: 14%; border-color: var(--amber); }
.position.sf { left: 37%; bottom: 12%; border-color: var(--amber); }
.position.pf { right: 23%; top: 17%; border-color: var(--red); }
.position.c { right: 11%; top: 42%; border-color: var(--red); }
.possession { position: absolute; left: 18px; bottom: 16px; z-index: 4; min-width: 96px; padding: 8px 12px; background: var(--ink); border-top: 3px solid var(--amber); }
.possession span { display: block; color: #9a968e; font: 700 9px Consolas, monospace; }
.possession b { display: block; color: var(--amber); font: 900 29px/1 Consolas, monospace; }

.gameplay-section { background: var(--paper); color: var(--ink); }
.gameplay-section .eyebrow, .gallery-section .eyebrow { color: #075f5b; }
.section-heading-row { display: grid; grid-template-columns: 1fr 0.65fr; align-items: end; gap: 80px; }
.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row > p { margin: 0 0 4px; color: #5d5a54; font-size: 14px; }
.gameplay-switcher { margin-top: 50px; display: grid; grid-template-columns: 270px 1fr; gap: 18px; }
.feature-tabs { display: grid; grid-template-rows: repeat(4, 1fr); border: 1px solid #cbc5b9; }
.feature-tabs button { min-height: 103px; display: grid; grid-template-columns: 34px 1fr; align-content: center; text-align: left; padding: 15px 16px; background: #ebe6db; color: var(--ink); border: 0; border-bottom: 1px solid #cbc5b9; cursor: pointer; }
.feature-tabs button:last-child { border-bottom: 0; }
.feature-tabs button:hover:not([aria-selected="true"]) { background: #ddd6c9; }
.feature-tabs button[aria-selected="true"] { background: var(--ink); color: var(--chalk); box-shadow: inset 5px 0 var(--cyan); }
.feature-tabs span { grid-row: span 2; color: #5d5952; font: 800 12px Consolas, monospace; }
.feature-tabs b, .feature-tabs small { display: block; }
.feature-tabs b { font-size: 18px; }
.feature-tabs small { margin-top: 3px; color: #5f5b54; font-size: 11px; }
.feature-tabs button[aria-selected="true"] span { color: var(--cyan); }
.feature-tabs button[aria-selected="true"] small { color: #aaa69f; }
.feature-stage { min-width: 0; background: var(--ink); }
.feature-stage figure { margin: 0; position: relative; }
.feature-stage img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.feature-stage figcaption { min-height: 66px; display: flex; align-items: center; gap: 18px; padding: 13px 17px; color: var(--chalk); background: var(--ink); }
.feature-stage figcaption b { min-width: 86px; color: var(--cyan); }
.feature-stage figcaption span { color: #aaa69f; font-size: 13px; }

.gallery-section { background: #d8d2c5; color: var(--ink); }
.gallery-controls { display: flex; align-items: center; gap: 13px; justify-self: end; }
.gallery-controls button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid #6e6a63; background: transparent; color: var(--ink); cursor: pointer; font-size: 30px; line-height: 1; }
.gallery-controls button:hover { background: var(--ink); color: var(--chalk); }
.gallery-controls span { min-width: 54px; text-align: center; font: 700 12px Consolas, monospace; }
.gallery-track { margin-top: 45px; }
.gallery-slide { margin: 0; display: grid; grid-template-columns: 1.4fr 0.6fr; background: var(--ink); color: var(--chalk); }
.gallery-slide img { width: 100%; height: 100%; min-height: 470px; display: block; object-fit: cover; }
.gallery-slide figcaption { padding: 38px 30px; align-self: end; }
.gallery-slide figcaption span { color: var(--cyan); font: 800 11px Consolas, monospace; }
.gallery-slide figcaption b { display: block; margin: 16px 0 13px; font-size: 28px; line-height: 1.25; }
.gallery-slide figcaption p { margin: 0; color: #aaa69f; font-size: 14px; }

.entry-section { background: #20201f; }
.entry-section .section-heading-row > p { color: #bcb8ae; }
.entry-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-note { min-width: 0; padding: 30px 30px 34px; border-right: 1px solid var(--line); }
.entry-note:first-child { padding-left: 0; }
.entry-note:last-child { padding-right: 0; border-right: 0; }
.entry-note > span { color: var(--amber); font: 800 11px/1 Consolas, monospace; }
.entry-note h3 { margin: 14px 0 12px; color: var(--chalk); font-size: 21px; }
.entry-note p { margin: 0; color: #aaa69f; font-size: 13px; }

.download-section { background: #8c3b1d; color: var(--chalk); }
.download-section .eyebrow { color: var(--amber); }
.download-layout { display: grid; grid-template-columns: 1fr 430px; gap: 90px; align-items: center; }
.download-copy > p:not(.eyebrow) { max-width: 650px; color: #f8e8dc; }
.checklist { margin: 34px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.checklist li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: center; }
.checklist li > span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--cyan); color: var(--ink); border-radius: 50%; font-weight: 900; }
.checklist b, .checklist small { display: block; }
.checklist small { color: #f8e8dc; font-size: 12px; }
.download-ticket { background: var(--paper); color: var(--ink); border-top: 8px solid var(--amber); box-shadow: 14px 14px 0 var(--wood-dark); }
.ticket-top { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 24px; border-bottom: 1px dashed #aaa49a; }
.ticket-top img { width: 96px; height: 96px; display: block; border: 1px solid #aaa49a; }
.ticket-top small { font: 800 10px Consolas, monospace; color: #6a665f; }
.ticket-top h3 { margin: 5px 0; font-size: 22px; }
.ticket-top p { margin: 0; color: #6a665f; font-size: 12px; }
.download-ticket dl { margin: 0; padding: 8px 24px; }
.download-ticket dl div { min-height: 51px; display: grid; grid-template-columns: 100px 1fr; align-items: center; border-bottom: 1px solid #d4cec2; }
.download-ticket dt { color: #5f5b54; font-size: 12px; }
.download-ticket dd { margin: 0; text-align: right; font-weight: 800; font-size: 13px; }
.button-download { margin: 16px 24px 0; display: flex; color: var(--chalk); background: var(--ink); border-color: var(--ink); }
.button-download:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.ticket-note { display: block; padding: 10px 24px 20px; color: #5f5b54; text-align: center; font-size: 10px; }

.faq-section { background: var(--ink-soft); }
.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 100px; }
.faq-layout > div:first-child > p:last-child { color: #aaa69f; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--cyan); }
.faq-list summary::after { content: "+"; color: var(--cyan); font-size: 24px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 13px 0 0; color: #aaa69f; font-size: 14px; }

.site-footer { background: #0d0d0d; }
.footer-grid { padding: 48px 0 38px; display: grid; grid-template-columns: 1fr 0.85fr 1fr; gap: 55px; }
.footer-brand img { width: 220px; height: auto; display: block; }
.footer-grid b { color: var(--cyan); font-size: 13px; }
.footer-grid p { margin: 10px 0 0; color: #88857f; font-size: 12px; }
.footer-bottom { padding: 16px 24px; border-top: 1px solid #292929; color: #9a968e; text-align: center; font-size: 11px; }

@media (max-width: 900px) {
  .section-inner, .nav-wrap, .hero-board { width: min(var(--max), calc(100% - 32px)); }
  .desktop-nav { display: none; }
  .nav-wrap { height: 66px; }
  .brand { min-width: 0; }
  .brand img { width: 42px; height: 42px; }
  .menu-toggle { width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 0 10px; border: 1px solid #5a5751; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--chalk); }
  .mobile-nav { display: grid; grid-template-columns: repeat(2, 1fr); max-height: 0; overflow: hidden; border-top: 0; transition: max-height 180ms ease; }
  .mobile-nav.is-open { max-height: 140px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #c9c5bc; font-size: 13px; }
  .hero-stage { height: 330px; background-position: 61% center; }
  .hero-board { grid-template-columns: 1fr; padding-top: 25px; }
  .board-copy h1 { font-size: 44px; }
  .board-actions { justify-content: flex-start; }
  .lineup-layout, .download-layout, .faq-layout { grid-template-columns: 1fr; gap: 50px; }
  .court-board { width: min(100%, 680px); margin-inline: auto; }
  .section-heading-row { grid-template-columns: 1fr; gap: 18px; }
  .gameplay-switcher { grid-template-columns: 1fr; }
  .feature-tabs { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
  .feature-tabs button { min-height: 100px; border-bottom: 0; border-right: 1px solid #cbc5b9; }
  .feature-tabs button:last-child { border-right: 0; }
  .feature-tabs button[aria-selected="true"] { box-shadow: inset 0 -5px var(--cyan); }
  .gallery-slide { grid-template-columns: 1fr; }
  .gallery-slide img { min-height: 0; }
  .gallery-slide figcaption { padding: 26px 24px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-note, .entry-note:first-child, .entry-note:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .entry-note:last-child { border-bottom: 0; }
  .download-ticket { width: min(100%, 520px); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  .brand b { font-size: 13px; }
  .brand small { font-size: 9px; }
  .hero-stage { height: 235px; background-position: 64% center; }
  .hero-board { min-height: 0; padding-bottom: 26px; gap: 18px; }
  .board-copy h1 { font-size: 36px; }
  .board-copy > p:last-child { font-size: 14px; }
  .board-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .score-strip { grid-template-columns: repeat(2, 1fr); }
  .score-strip div:nth-child(2) { border-right: 0; }
  .score-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section h2 { font-size: 36px; }
  .lineup-layout { gap: 36px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-width: 0; }
  .court-board { min-height: 0; border-width: 5px; box-shadow: 9px 9px 0 #0f0f0f; }
  .court-board::before, .court-line { border-width: 2px; }
  .center-circle { width: 72px; height: 72px; left: calc(50% - 36px); top: calc(50% - 36px); }
  .paint { width: 70px; height: 110px; top: calc(50% - 55px); }
  .position { width: 44px; height: 44px; border-width: 3px; }
  .position b { font-size: 13px; }
  .position small { display: none; }
  .possession { left: 8px; bottom: 7px; min-width: 65px; padding: 5px 8px; }
  .possession span { font-size: 7px; }
  .possession b { font-size: 20px; }
  .feature-tabs { grid-template-columns: repeat(2, 1fr); }
  .feature-tabs button { min-height: 82px; border-bottom: 1px solid #cbc5b9; }
  .feature-tabs button:nth-child(2) { border-right: 0; }
  .feature-tabs button:nth-child(n+3) { border-bottom: 0; }
  .feature-tabs b { font-size: 15px; }
  .feature-tabs small { display: none; }
  .feature-stage figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .gallery-controls { justify-self: start; }
  .gallery-slide figcaption b { font-size: 23px; }
  .download-layout { gap: 42px; }
  .ticket-top { grid-template-columns: 76px 1fr; padding: 18px; }
  .ticket-top img { width: 76px; height: 76px; }
  .download-ticket dl { padding-inline: 18px; }
  .button-download { width: calc(100% - 36px); margin-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .mobile-nav { transition: none; }
}
