:root {
  color-scheme: dark;
  --bg: #09131c;
  --panel: #0e1c26;
  --line: #293e48;
  --text: #edf0e9;
  --muted: #a2b3ba;
  --mint: #b7dbc3;
  --gold: #d4bd87;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--body); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; font-weight: 500; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 300; padding: 12px 20px; background: var(--mint); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { height: 90px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 max(4.5vw, calc((100vw - 1640px) / 2)); background: rgba(8, 18, 27, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand strong { display: block; font: 600 31px/1 var(--display); letter-spacing: .035em; }
.brand small { display: block; margin-top: 8px; color: var(--muted); font: 8px/1.2 var(--mono); letter-spacing: .22em; }
.nav-links { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 48px); }
.nav-links a { color: #c3cdd0; font: 500 12px var(--body); letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--mint); }
.nav-links .nav-play { padding: 13px 23px; border: 1px solid #759b8f; color: var(--mint); background: #a7d9c10b; }
.nav-play span { margin-left: 20px; }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 12px; font: 11px var(--mono); }
.nav-toggle span { margin-left: 10px; }
.hero { position: relative; isolation: isolate; min-height: min(810px, calc(100svh - 90px)); overflow: hidden; border-bottom: 1px solid var(--line); background: #0a1721; }
.hero-art, .hero-art img, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -3; }
.hero-art img { object-fit: cover; object-position: center 46%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5, 15, 23, .89), rgba(5, 15, 23, .53) 36%, rgba(5, 15, 23, .03) 75%), linear-gradient(0deg, #09131c 0%, rgba(9, 19, 28, .1) 30%, rgba(9, 19, 28, .08) 80%, rgba(9, 19, 28, .4)); }
.hero-grid { z-index: -1; opacity: .13; background-image: linear-gradient(#9bb8bb22 1px, transparent 1px), linear-gradient(90deg, #9bb8bb22 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg, #000, transparent 65%); pointer-events: none; }
.hero-inner { max-width: 1640px; margin: auto; padding: 34px 4.5vw 35px; }
.hero-topline { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.eyebrow, .small-label, .theater-label, .hero-kicker { font: 10px/1.6 var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { color: var(--gold); margin-bottom: 22px; }
.hero-topline .eyebrow { margin: 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 12px #a8e8c577; vertical-align: 1px; }
.theater-label { color: #c0d3d7; border-left: 1px solid #819da5; padding-left: 18px; }
.hero-content { padding-top: clamp(48px, 5.2vw, 90px); max-width: 640px; }
.hero-kicker { color: #c8d9d9; margin-bottom: 16px; letter-spacing: .3em; }
h1 { font-size: clamp(70px, 6.2vw, 112px); line-height: .98; letter-spacing: -.012em; margin-bottom: 26px; font-weight: 600; }
h1 em { color: var(--mint); font-style: normal; }
.hero-copy { color: #d0dadd; max-width: 470px; font-size: 17px; line-height: 1.7; margin-bottom: 13px; }
.hero-subcopy { color: #9eb3be; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 53px; padding: 0 24px; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .13em; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.button span { font-size: 19px; font-weight: 400; }
.button-primary { color: #0b1c20; background: linear-gradient(110deg, #c5dcb0, #a9d4c0); border-color: #c4debb; box-shadow: 0 3px 24px #9cbf9a13; }
.button-primary:hover { background: #d6ebc8; transform: translateY(-2px); }
.button-ghost { background: #07172280; border-color: #6c8188; color: #dee7e6; }
.button-ghost:hover { background: #20383e; border-color: var(--mint); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 53px; }
.hero-stats { display: flex; margin: 0; gap: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; padding: 0 30px; border-left: 1px solid #75949b55; }
.hero-stats div:first-child { border: 0; padding-left: 0; }
.hero-stats dt { color: #b0c1c8; font: 8px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin-top: 10px; }
.hero-stats dd { margin: 0; font: 500 39px/1 var(--display); color: #f0f0de; }
.hero-stats dd span { font-size: 26px; }
.hero-note { text-align: right; border-right: 1px solid #8fa6aa; padding-right: 20px; }
.hero-note .small-label { color: var(--gold); font-size: 8px; }
.hero-note p { font: 400 23px/1.2 var(--display); margin: 8px 0; }
.art-caption { font-size: 9px; color: #9aafb9; }
.operation-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px max(4.5vw, calc((100vw - 1490px) / 2)); border-bottom: 1px solid var(--line); background: #0c1922; color: #a3b8bf; font: 9px/1.5 var(--mono); letter-spacing: .1em; }
.operation-strip a { color: var(--mint); }
.operation-strip a span { margin-left: 20px; }
.section { width: min(100%, 1490px); padding: 95px 4.5vw; margin: auto; }
.section-heading { margin-bottom: 35px; }
.section-heading.split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 80px; }
.section-heading h2 { font-size: clamp(40px, 3.4vw, 58px); margin: 0; }
.section-heading h2 span { color: #a9bec4; }
.section-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 15px; max-width: 460px; margin: 18px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; padding: 26px; border: 1px solid var(--line); background: linear-gradient(140deg, #172c364d, #10212a33); }
.feature-card::before { content: ''; position: absolute; width: 22px; height: 2px; background: #7d9b91; top: -1px; left: -1px; }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.feature-index { font: 9px var(--mono); color: #a9baba; letter-spacing: .1em; }
.feature-symbol { color: var(--mint); font: 29px var(--display); line-height: 1; }
.feature-card h3 { font-size: 28px; margin-bottom: 14px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.feature-card a { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 17px; font: 10px var(--mono); color: var(--mint); }
.feature-card a:hover { color: #fff; }
.gallery-section { padding-top: 15px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #3c535c; background: #0d1c25; cursor: zoom-in; text-align: left; }
.gallery-main { grid-column: span 2; }
.gallery-item > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #09131c; }
.gallery-main > img { aspect-ratio: auto; }
.gallery-item:hover { border-color: var(--mint); box-shadow: 0 0 20px #b7dbc310; }
.gallery-caption { padding: 18px 22px; border-top: 1px solid var(--line); background: linear-gradient(110deg, #10232c, #0d1c25); display: flex; align-items: end; justify-content: space-between; gap: 20px; color: var(--text); font: 24px var(--display); }
.gallery-caption small { display: block; color: #c3d3cd; font: 8px var(--mono); letter-spacing: .14em; margin-bottom: 8px; }
.gallery-caption b { font: 22px var(--body); }
.manual { position: relative; border-top: 1px solid var(--line); }
.manual-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 45px; align-items: start; }
.rules-index { position: sticky; top: 120px; }
.small-label { color: var(--muted); font-size: 9px; }
.rules-index > .small-label { color: var(--gold); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rules-links a { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; color: #adbec5; transition: color .2s; }
.rules-links a span { color: #91a8ad; font: 9px var(--mono); }
.rules-links a b { margin-left: auto; font-weight: 400; color: #729c94; }
.rules-links a:hover, .rules-links a[aria-current] { color: var(--mint); }
.source-link { display: inline-block; font: 10px var(--mono); color: var(--mint); margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid #55736a; }
.manual-sections { min-width: 0; }
.rules-section { scroll-margin-top: 115px; margin-bottom: 10px; }
.rule-briefing { border: 1px solid var(--line); background: linear-gradient(120deg, #15293370, #101e2870); }
.rule-briefing > summary { display: flex; align-items: center; gap: 23px; padding: 22px 25px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.rule-briefing > summary:hover { background: #b8d8c806; }
.briefing-number { align-self: start; padding-top: 6px; color: var(--gold); font: 10px var(--mono); }
.rule-briefing summary h3 { font-size: 28px; margin: 0; }
.rule-briefing summary h3 .small-label { display: block; margin-bottom: 6px; }
.expand-mark { margin-left: auto; position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.expand-mark::before, .expand-mark::after { content: ''; position: absolute; background: var(--mint); top: 7px; left: 1px; width: 13px; height: 1px; }
.expand-mark::after { transform: rotate(90deg); transition: transform .2s; }
[open] > summary .expand-mark::after { transform: rotate(0); }
.rule-briefing[open] { border-color: #5b7879; }
.rule-briefing[open] > summary { border-bottom: 1px solid var(--line); }
.rules-content { padding: 8px 28px 25px; font-size: 15px; color: #b7c7cd; min-width: 0; }
.rules-chapter { margin-top: 22px; }
.rules-chapter + .rules-chapter { padding-top: 25px; border-top: 1px solid var(--line); margin-top: 28px; }
.rules-chapter h4 { color: var(--text); font-size: 25px; margin-bottom: 18px; }
.rules-chapter p { line-height: 1.8; }
.rules-chapter strong { color: #d7e8dc; font-weight: 600; }
.rules-chapter ul, .rules-chapter ol { padding-left: 20px; }
.rules-chapter li { padding-left: 5px; margin-bottom: 10px; }
.rules-chapter li::marker { color: var(--gold); }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 24px 0; border: 1px solid #425761; background: #0b1922; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; min-width: 80px; }
thead th { color: var(--mint); background: #192d36; font-weight: 500; }
tbody th { color: var(--text); font-weight: 500; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }
.stats-table { min-width: 1050px; }
.table-hint { font: 9px/1.7 var(--mono); color: var(--mint); margin: 20px 0 -12px; }
#controls table { min-width: 530px; }
#quick-rules ul { padding-left: 20px; }
.faq-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 90px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; font: 500 21px var(--display); padding: 23px 35px 23px 0; position: relative; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; color: var(--mint); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--muted); font-size: 15px; padding-right: 22px; }
.faq-list a { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.final-cta { margin: 0 auto 70px; width: min(91%, 1356px); position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 60px; border: 1px solid #4e696a; background: radial-gradient(ellipse at 90% 100%, #427b7133, transparent 60%), linear-gradient(110deg, #172932, #11212c); }
.final-cta::before { content: ''; width: 70px; height: 2px; background: var(--mint); position: absolute; top: -1px; left: -1px; }
.final-cta h2 { font-size: clamp(40px, 3.6vw, 60px); margin-bottom: 14px; }
.final-cta p:last-child { margin-bottom: 0; color: var(--muted); }
.final-cta .button { min-width: 205px; flex-shrink: 0; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 35px; padding: 34px max(4.5vw, calc((100vw - 1356px) / 2)); border-top: 1px solid var(--line); background: #071018; }
footer p { margin: 0; color: #b1c2c8; font-size: 13px; }
footer p span { color: #8c9fa8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: #afc0c6; font: 9px var(--mono); }
.footer-links > span { color: #8d9fa6; }
.footer-social { max-width: 100%; }
.footer-social .small-label { margin-bottom: 10px; color: var(--mint); font-size: 9px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line); color: var(--text); font-size: 12px; transition: color .2s, background .2s, border-color .2s; }
.social-links svg { flex-shrink: 0; }
.social-links a:hover, .social-links a:focus-visible { color: var(--mint); background: var(--panel); border-color: var(--mint); }
.lightbox { padding: 0; border: 1px solid #5a747e; background: #09131c; max-width: 94vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: #020a11ed; backdrop-filter: blur(5px); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; cursor: pointer; background: #07131ef0; border: 1px solid #789393; color: white; font-size: 26px; }
@media (min-width: 1640px) { .hero-inner { padding-left: 0; padding-right: 0; max-width: 1490px; } }
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .hero { min-height: 740px; }
  .hero-content { max-width: 560px; }
  .section-heading.split { gap: 45px; }
  .feature-card { padding: 22px; }
  .manual-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 25px; }
  .faq-section { gap: 45px; }
  footer { flex-wrap: wrap; }
  .footer-links { flex-basis: 100%; justify-content: space-between; }
}
@media (max-width: 800px) {
  .site-header { height: 76px; padding: 0 20px; gap: 12px; }
  .brand img { width: 53px; height: 53px; }
  .brand strong { font-size: 27px; }
  .brand small { font-size: 7px; }
  .nav-toggle { display: block; white-space: nowrap; flex-shrink: 0; }
  .nav-links { display: none; position: absolute; top: 75px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #0a1822; padding: 18px 25px; border-bottom: 1px solid #536d72; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 10px; }
  .nav-links .nav-play { margin-top: 8px; }
  .hero { min-height: 730px; }
  .hero-inner { padding: 25px 25px 35px; }
  .hero-content { padding-top: 60px; }
  .hero-art img { object-position: 60% center; }
  .hero::before { background: linear-gradient(90deg, #07151ee8, #07151e75), linear-gradient(0deg, #09131c, transparent 65%); }
  .theater-label, .hero-note { display: none; }
  .hero-topline .eyebrow { font-size: 8px; letter-spacing: .1em; }
  h1 { font-size: 78px; }
  .hero-copy { font-size: 16px; }
  .hero-bottom { margin-top: 44px; }
  .operation-strip { flex-wrap: wrap; font-size: 8px; justify-content: center; padding: 17px 20px; gap: 15px 25px; }
  .operation-strip > span:nth-child(3) { display: none; }
  .section { padding: 65px 25px; }
  .section-heading.split { grid-template-columns: 1fr; gap: 10px; }
  .section-heading p:not(.eyebrow) { max-width: 600px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-top { margin-bottom: 20px; }
  .feature-card h3 { font-size: 30px; }
  .feature-card p { max-width: 65ch; }
  .gallery-section { padding-top: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-caption { padding: 15px; font-size: 20px; }
  .gallery-caption small { font-size: 7px; }
  .manual-layout { grid-template-columns: 1fr; gap: 25px; }
  .rules-index { position: static; }
  .rules-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .rules-links a { padding: 8px 0; font-size: 13px; }
  .source-link { margin-top: 16px; }
  .faq-section { grid-template-columns: 1fr; gap: 0; }
  .final-cta { padding: 36px; flex-direction: column; align-items: start; gap: 28px; }
  footer { padding: 30px 25px; }
}
@media (max-width: 480px) {
  .hero-inner { padding-left: 22px; padding-right: 22px; }
  .hero-content { padding-top: 47px; }
  h1 { font-size: clamp(60px, 16.6vw, 78px); }
  .hero-kicker { font-size: 9px; }
  .hero-actions { flex-direction: column; max-width: 340px; gap: 10px; }
  .hero-stats { width: 100%; justify-content: space-between; }
  .hero-stats div { padding: 0 12px; }
  .hero-stats div:last-child { padding-right: 0; }
  .hero-stats dd { font-size: 34px; }
  .hero-stats dt { font-size: 7px; max-width: 95px; min-height: 22px; }
  .hero-bottom { margin-top: 32px; }
  .hero { min-height: auto; }
  .operation-strip > span:nth-child(2) { display: none; }
  .section { padding: 55px 22px; }
  .gallery-section { padding-top: 5px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main { grid-column: auto; }
  .rules-links { column-gap: 13px; }
  .rules-links a { font-size: 12px; gap: 7px; }
  .rules-links a b { display: none; }
  .rule-briefing > summary { padding: 19px 17px; gap: 15px; }
  .rule-briefing summary h3 { font-size: 26px; }
  .rule-briefing summary .small-label { font-size: 8px; }
  .rules-content { padding: 5px 18px 20px; font-size: 14px; }
  .final-cta { padding: 30px 24px; margin-bottom: 45px; }
  .final-cta h2 { font-size: 40px; }
  footer { flex-direction: column; align-items: start; }
  .footer-links { gap: 20px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .hero, .operation-strip, .gallery-section, .final-cta, footer, .rules-index { display: none; }
  body { background: white; color: black; }
  .manual-layout { display: block; }
  .rules-content, .rules-chapter strong { color: black; }
  .table-scroll { overflow: visible; }
}
