:root {
  --ink: #eef7f4;
  --muted: #a9b9b4;
  --night: #07110f;
  --panel: #0d1d19;
  --panel-2: #122923;
  --line: rgba(181, 226, 212, .16);
  --field: #10b981;
  --field-dark: #087c59;
  --signal: #eaff63;
  --white: #fff;
  --max: 1180px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 12%, rgba(16, 185, 129, .11), transparent 28rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img, iframe { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--signal); color: #07110f; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 68px;
  padding: 0 max(22px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 15, .94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark { display: flex; align-items: center; gap: .62rem; font-weight: 900; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-size: 1.2rem; }
.site-header nav { display: flex; align-items: center; gap: 1.35rem; }
.site-header nav a { color: var(--muted); font-size: .9rem; font-weight: 750; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--signal); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: .5rem .7rem; font: inherit; }

main > section { padding: 96px max(22px, calc((100% - var(--max)) / 2)); }
.game-section-first { padding-top: 18px; padding-bottom: 34px; background: #040908; border-bottom: 1px solid var(--line); }
.game-first-bar { width: min(1280px, calc((100vh - 190px) * 1.6667)); margin: 0 auto 12px; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.game-first-bar h1 { margin: -.2rem 0 0; font-size: clamp(1.65rem, 3.5vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.game-first-bar p:last-child { max-width: 34rem; margin: 0 0 .15rem; color: var(--muted); text-align: right; }
.eyebrow { margin: 0 0 .45rem; color: var(--signal); text-transform: uppercase; letter-spacing: .13em; font-weight: 900; font-size: .74rem; }

.game-shell {
  width: min(1280px, calc((100vh - 190px) * 1.6667));
  margin: 0 auto;
  border: 1px solid rgba(106, 255, 205, .4);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .55), 0 0 0 5px rgba(16, 185, 129, .05);
}
.game-shell iframe { width: 100%; aspect-ratio: 5 / 3; border: 0; background: #000; }
.game-shell figcaption { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .5rem 1rem; color: #bdcec9; background: #08120f; font-size: .8rem; }
.game-shell figcaption strong { color: var(--ink); }

.hero { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 10% -8% 10% 55%; background: url("https://img.two-minute-drill-game.com/game/v1/sprites/bg_menu.jpg") center / cover; opacity: .12; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-copy, .drive-card { position: relative; z-index: 1; }
.hero h2 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.065em; }
.lede { max-width: 680px; margin: 1.5rem 0 0; color: #c4d3cf; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1.25rem; border-radius: 12px; font-weight: 850; text-decoration: none; }
.button-primary { background: var(--signal); color: #07110f; box-shadow: 0 10px 30px rgba(234, 255, 99, .16); }
.button-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.feature-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 1.5rem 0 0; }
.feature-chips li { border: 1px solid var(--line); border-radius: 999px; padding: .42rem .75rem; color: var(--muted); font-size: .82rem; }
.drive-card { padding: 1.4rem; border: 1px solid rgba(234, 255, 99, .25); border-radius: var(--radius); background: linear-gradient(150deg, rgba(18, 41, 35, .96), rgba(9, 22, 19, .96)); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); transform: rotate(1.5deg); }
.drive-clock { margin: 0 0 1rem; display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); }
.drive-clock strong { color: var(--signal); font: 900 3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.08em; }
.drive-card dl { margin: 0; }
.drive-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.drive-card dt { color: var(--muted); }
.drive-card dd { margin: 0; font-weight: 800; text-align: right; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading.narrow { display: block; max-width: 780px; }
.section-heading h2 { margin: 0; font-size: clamp(2.25rem, 4.8vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.03rem; }

.how-to { background: #0a1714; }
.play-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.play-steps li { min-height: 240px; padding: 1.35rem; border-right: 1px solid var(--line); }
.play-steps li:last-child { border-right: 0; }
.play-steps li > span { color: var(--field); font: 800 .8rem/1 ui-monospace, monospace; }
.play-steps h3 { margin: 4rem 0 .5rem; font-size: 1.05rem; }
.play-steps p { margin: 0; color: var(--muted); font-size: .9rem; }
.score-callout { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--signal); background: rgba(234, 255, 99, .055); }
.score-callout p { max-width: 700px; margin: 0; color: var(--muted); }
.score-callout b { color: var(--signal); }

.situations { background: linear-gradient(180deg, #07110f, #0b1c18); }
.priority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.priority-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); }
.priority-grid span { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: #04100c; font-weight: 950; }
.priority-grid h3 { margin: 2.6rem 0 .5rem; font-size: 1.15rem; }
.priority-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.decision-table-wrap { margin-top: 4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { padding: 1.2rem 1.35rem; background: var(--panel-2); color: var(--signal); font-weight: 900; text-align: left; }
th, td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: #88a39b; background: rgba(0, 0, 0, .22); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
tbody th { min-width: 190px; color: var(--ink); }
tbody td { min-width: 205px; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
.situation-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem; }
.rules-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; }
.situation-actions article { padding: 1.55rem; border-radius: 18px; background: var(--panel); }
.situation-actions h3 { margin: 0 0 1rem; }
.situation-actions ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.situation-actions li + li { margin-top: .45rem; }

.levels { background: #e7f0e9; color: #102019; }
.levels .eyebrow { color: #087c59; }
.levels .section-heading > p:last-child { color: #50635a; }
.level-list { display: grid; grid-template-columns: repeat(10, 1fr); border: 1px solid #b7c9bd; border-radius: 18px; overflow: hidden; background: #f8fbf8; }
.level-list div { min-height: 135px; padding: .9rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #cad7cf; }
.level-list div:last-child { border: 0; background: #d9ff67; }
.level-list b { font-size: 2rem; line-height: 1; }
.level-list span { color: #53665b; font-size: .85rem; font-weight: 800; }
.level-key { color: #53665b; }

.controls-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1.5rem; align-items: stretch; }
.controls table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.controls blockquote { margin: 0; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; border-radius: 18px; background: var(--signal); color: #102019; }
.controls blockquote p { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.controls cite { font-style: normal; font-weight: 800; }

.faq { background: #0a1714; }
.faq-list { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-weight: 850; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--signal); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 720px; margin: -.25rem 0 1.4rem; color: var(--muted); }

footer { padding: 56px max(22px, calc((100% - var(--max)) / 2)) 28px; border-top: 1px solid var(--line); background: #040a08; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; }
.footer-top strong { color: var(--ink); font-size: 1.15rem; }
.footer-top p { margin: .25rem 0 0; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-top nav a { text-decoration: none; }
.source-note { max-width: 980px; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .78rem; }
.source-note a { color: #cad8d4; }
.copyright { margin: 1rem 0 0; font-size: .75rem; }
.legal { max-width: 840px; min-height: calc(100vh - 220px); margin: 0 auto; }
.legal h1 { margin: 0 0 2rem; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.06em; }
.legal h2 { margin: 2.4rem 0 .5rem; font-size: 1.35rem; }
.legal p { color: var(--muted); }

@media (max-width: 900px) {
  .site-header { min-height: 60px; }
  .nav-toggle { display: block; }
  .site-header nav { position: absolute; left: 16px; right: 16px; top: 68px; padding: 1rem; display: none; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: #0c1916; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: .45rem; }
  main > section { padding-top: 72px; padding-bottom: 72px; }
  .game-section-first { padding: 12px 12px 24px; }
  .game-first-bar, .game-shell { width: 100%; }
  .game-first-bar { align-items: start; }
  .game-first-bar p:last-child { max-width: 18rem; font-size: .83rem; }
  .hero { grid-template-columns: 1fr; }
  .drive-card { max-width: 520px; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .play-steps { grid-template-columns: repeat(2, 1fr); }
  .play-steps li { border-bottom: 1px solid var(--line); }
  .priority-grid { grid-template-columns: repeat(2, 1fr); }
  .situation-actions { grid-template-columns: 1fr; }
  .level-list { grid-template-columns: repeat(5, 1fr); }
  .level-list div:nth-child(5) { border-right: 0; }
  .level-list div:nth-child(-n+5) { border-bottom: 1px solid #cad7cf; }
  .controls-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wordmark { font-size: .94rem; }
  .game-first-bar { display: block; }
  .game-first-bar p:last-child { margin-top: .4rem; text-align: left; }
  .game-shell { border-radius: 10px; }
  .game-shell figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; justify-content: start; font-size: .72rem; }
  .hero { min-height: 0; }
  .hero h2 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero::after { inset: 35% -50% 5% 35%; }
  .play-steps { grid-template-columns: 1fr; }
  .play-steps li { min-height: 170px; border-right: 0; }
  .play-steps h3 { margin-top: 2.5rem; }
  .score-callout { display: block; }
  .score-callout p { margin-top: .5rem; }
  .priority-grid { grid-template-columns: 1fr; }
  .priority-grid h3 { margin-top: 2rem; }
  .level-list { grid-template-columns: repeat(2, 1fr); }
  .level-list div, .level-list div:nth-child(5) { border-right: 1px solid #cad7cf; border-bottom: 1px solid #cad7cf; }
  .level-list div:nth-child(even) { border-right: 0; }
  .level-list div:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-top { display: block; }
  .footer-top nav { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
