@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #183832;
  --pine: #265448;
  --cream: #fff9eb;
  --paper: #fffdf4;
  --mint: #d7edd9;
  --sun: #ffcd58;
  --coral: #ffb18a;
  --edge: #9eaf99;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.arcade { margin: 0; color: var(--ink); background: var(--cream); font: 1rem/1.52 "Segoe UI", Arial, sans-serif; }
.arcade a { color: inherit; text-underline-offset: .2em; }
.arcade a:focus-visible, .arcade button:focus-visible, .arcade input:focus-visible, .arcade summary:focus-visible, .arcade [tabindex="-1"]:focus-visible {
  outline: 3px solid #a73b1d; outline-offset: 3px;
}
.arcade .shell { width: min(1260px, calc(100% - 60px)); margin-inline: auto; }
.arcade h1, .arcade h2, .arcade h3 { margin: 0; line-height: 1.06; font: 400 2.7rem/1.05 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.arcade h3 { font-size: 1.55rem; }
.arcade button { font: inherit; color: inherit; cursor: pointer; }
.arcade .skip, .arcade .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.arcade .skip:focus { z-index: 8; width: auto; height: auto; clip-path: none; left: 10px; top: 8px; background: white; padding: 8px 14px; }
.site-head { background: var(--cream); color: var(--ink); }
.site-head .nav-row, .site-foot > div { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-head .nav-row { min-height: 68px; }
.site-head .wordmark, .foot-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 1.6rem/1 var(--display); }
.cube { width: 29px; height: 27px; border: 3px solid var(--ink); border-radius: 5px; box-shadow: inset -3px -4px #de8a3c, 2px 3px var(--ink); background: var(--sun); position: relative; transform: rotate(-8deg); flex: none; }
.cube::before { content: ""; position: absolute; width: 4px; height: 7px; left: 5px; top: 6px; background: var(--ink); box-shadow: 10px 0 var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(12px,2.1vw,32px); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font: 700 .96rem/1.2 "Segoe UI", sans-serif; text-decoration: none; }
.nav-links a:hover, .site-foot a:hover { text-decoration: underline; }
.nav-links a.practice-pill { gap: 12px; min-height: 37px; padding: 8px 15px; border: 2px solid var(--ink); border-radius: 12px; background: var(--sun); box-shadow: 0 3px var(--ink); }
.arcade [id] { scroll-margin-top: 14px; }
.arcade .overline { margin: 0 0 .45rem; color: #305745; font: 800 .735rem/1.3 "Segoe UI",sans-serif; letter-spacing: .115em; text-transform: uppercase; }
.valley { min-height: clamp(180px,16vw,218px); display: grid; align-items: center; overflow: hidden; position: relative; isolation: isolate; background: #a8ecd8 url("/assets/climb-valley.webp") no-repeat center 49% / cover; border: 2px solid var(--ink); border-radius: 22px; }
.valley-copy { padding: 16px clamp(20px,3.3vw,50px) 19px; }
.valley .overline { display: table; color: #224137; padding: 3px 9px; background: #fff5cb; border-radius: 5px; }
.arcade .valley h1 { width: fit-content; margin: 0 0 1px; color: #fff9dd; font-size: clamp(4.15rem,6.6vw,6.55rem); line-height: .99; letter-spacing: -.035em; -webkit-text-stroke: 5px #173a31; paint-order: stroke fill; text-shadow: 0 5px #173a31, 2px 5px #173a31; }
.valley h1 span { color: var(--sun); }
.valley .hero-description { width: fit-content; margin: 6px 0 0; color: #18372f; font: 400 clamp(1.1rem,1.6vw,1.42rem)/1.25 var(--display); text-shadow: 0 1px #d7ffd7; }
.game-facts { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.game-facts li { background: #fffbe6; border: 1px solid #799482; padding: 3px 9px; border-radius: 8px; font-size: .76rem; font-weight: 750; }
.play-layout { display: grid; grid-template-columns: minmax(0,2.8fr) minmax(240px,1fr); align-items: stretch; gap: 20px; margin-top: 20px; }
.cabinet { min-width: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 17px; background: var(--pine); color: #fff8df; box-shadow: 0 4px var(--ink); }
.cabinet-bar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 15px; }
.cabinet-bar h2 { display: flex; align-items: center; gap: 9px; font-size: 1.35rem; }
.cabinet-bar i { width: 9px; height: 9px; border-radius: 2px; background: #ffce68; box-shadow: 0 0 0 3px #ffffff20; }
.cabinet .actions { display: flex; gap: 4px; }
.cabinet .actions button { border: 0; background: transparent; color: #fff4ce; font-size: .78rem; font-weight: 680; min-height: 34px; padding: 3px 9px; text-decoration: underline; text-underline-offset: .2em; }
.cabinet .actions button:hover { background: #386e5b; border-radius: 7px; }
.player { background: #284537; }
.player iframe { display: block; width: 100%; height: clamp(415px,51svh,540px); border: 0; background: #284537; }
.player:fullscreen, .player:fullscreen iframe { width: 100%; height: 100%; }
.cabinet-foot, .cabinet #notice { font-size: .81rem; margin: 0; padding: 9px 15px; line-height: 1.45; }
.cabinet-foot a { color: #ffe79d; margin-left: .4rem; }
#notice:empty { display: none; }
.quick-start { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: #e9f1d8; border: 2px solid var(--ink); border-radius: 17px; box-shadow: 0 4px #a6bba1; overflow: hidden; }
.quick-upper { padding: clamp(17px,1.7vw,26px); }
.quick-start h2 { font-size: clamp(1.7rem,2.4vw,2.35rem); }
.start-steps { list-style: none; counter-reset: steps; display: grid; gap: clamp(12px,2vw,26px); padding: 0; margin: 20px 0 0; }
.start-steps li { position: relative; counter-increment: steps; padding-left: 2.7rem; }
.start-steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--ink); border-radius: 9px; box-shadow: 0 2px var(--ink); background: #fff6d7; font: 1.13rem var(--display); }
.start-steps li:nth-child(2)::before { background: #c0dfd9; }
.start-steps li:nth-child(3)::before { background: #ffce94; }
.start-steps strong { display: block; font: 400 1.18rem/1.18 var(--display); margin-bottom: .3rem; }
.start-steps li > span { display: block; color: #314c3d; font-size: .94rem; line-height: 1.48; }
.quick-start .warmup-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--sun); text-decoration: none; padding: 14px clamp(17px,1.7vw,26px); border-top: 2px solid var(--ink); }
.warmup-link b { display: block; font: 400 1.55rem/1.12 var(--display); }
.warmup-link small { font-size: .85rem; }
.warmup-link > span:last-child { font-size: 1.7rem; }
.warmup-link:hover b { text-decoration: underline; }
.lab { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(24px,5vw,78px); align-items: center; margin: clamp(32px,4vw,56px) 0; padding: clamp(22px,3.3vw,48px); border: 2px solid var(--ink); border-radius: 22px; background: #d9ebdf; box-shadow: 0 4px #a6bba1; }
.lab-copy > p { max-width: 39ch; }
.lab-copy h2, .chapter h2 { font-size: clamp(2.25rem,3.6vw,3.75rem); }
.switcher { display: inline-flex; border: 2px solid var(--ink); background: var(--paper); border-radius: 11px; padding: 3px; margin: 0; gap: 3px; }
.switcher label { cursor: pointer; position: relative; }
.switcher input { position: absolute; opacity: 0; }
.switcher span { display: block; min-width: 82px; text-align: center; padding: 8px 16px; font: 1.11rem var(--display); border-radius: 6px; }
.switcher input:checked + span { background: var(--ink); color: var(--paper); }
.switcher input:focus-visible + span { outline: 3px solid #b54d20; outline-offset: -3px; }
.mode-tip { font-size: .92rem; margin: .8rem 0 0; }
.lab-board { min-width: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(15px,2vw,28px); }
.board-caption { margin: .18rem 0 .85rem; color: #456455; font-size: .85rem; }
.answer-board { display: grid; gap: 7px; }
.pick-row { display: grid; grid-template-columns: minmax(5.2rem,.85fr) 1.2fr 3.5rem; align-items: center; gap: 12px; padding: .58rem .7rem; min-height: 44px; background: #f4f2e6; border: 1.5px solid #c2c6b4; border-radius: 8px; }
button.pick-row { width: 100%; text-align: left; }
button.pick-row:hover { border-color: #3f654f; background: #e9ede0; }
button.pick-row[aria-pressed="true"] { background: #ffe3a1; border-color: var(--ink); }
.pick-name { font-weight: 750; }.pick-count { text-align: right; font-variant-numeric: tabular-nums; font-size: .85rem; }
.track { display: block; height: 9px; border-radius: 3px; background: #d8decf; }
.track i { display: block; height: 100%; border-radius: 3px; }
.bar-seven { width: 70%; background: #ba681f; }.bar-two { width: 20%; background: #397b6e; }.bar-one { width: 10%; background: #925584; }
.pick-result { margin: 14px 0 0; min-height: 2.8em; line-height: 1.4; color: #2b493b; font-weight: 650; font-size: .95rem; }
.chapter { margin-block: clamp(40px,5vw,76px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading > p { max-width: 36ch; margin: 0; }
.replay { background: #f5e4c6; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.replay-controls { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; background: #f3d9b3; border-bottom: 2px solid var(--ink); }
.replay-controls button { padding: 8px 18px; min-height: 42px; background: transparent; border-radius: 8px; border: 1.5px solid transparent; font: 400 1.08rem var(--display); }
.replay-controls button[aria-pressed="true"] { background: var(--ink); color: #fff8df; }
.replay-controls button:hover { border-color: var(--ink); }
.moment { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: clamp(18px,3.3vw,48px); padding: clamp(16px,2.7vw,38px); align-items: center; }
.moment + .moment { border-top: 1px solid #acb29a; }
.moment figure { margin: 0; }
.moment figure a { display: block; }
.moment img { display: block; width: 100%; height: auto; border-radius: 9px; border: 2px solid var(--ink); }
.moment h3 { font-size: clamp(1.6rem,2.4vw,2.55rem); }
.moment p { margin: .6rem 0; }
.moment div > a, .notebook a { font-weight: 750; }
.notebook-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
.notebook-topics { display: grid; gap: 12px; }
.notebook-grid details, .faq details { border: 1.5px solid var(--edge); border-radius: 12px; background: var(--paper); padding: 0 17px; }
.arcade summary { cursor: pointer; }
.notebook summary, .faq summary { padding: 14px 0; font-weight: 750; }
.notebook details[open], .faq details[open] { padding-bottom: 16px; }
.notebook details[open] { border-color: var(--pine); background: #f1f1d9; }
.notebook details p, .faq details p { margin: 0 0 .55rem; }
.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: 24px; border-top: 2px solid var(--ink); padding-top: 36px; }
.faq details { margin-bottom: .5rem; }
.site-foot { background: var(--ink); color: var(--cream); padding: 20px 0; }
.site-foot a { min-height: 40px; display: inline-flex; align-items: center; }
.arcade .practice { padding-top: 8px; }
.arcade .practice > .section-intro { margin-block: 0 24px; padding: clamp(22px,3vw,40px); border: 2px solid var(--ink); border-radius: 18px; background: #daf0da; }
.arcade .practice h1 { font-size: clamp(2.3rem,5vw,4.6rem); }
.arcade .practice .warmup h2, .arcade .practice .drill-heading h2, .arcade .practice .practice-review h2, .arcade .practice .case-study h2 { font-size: clamp(1.75rem,3vw,2.55rem); }
.arcade .practice .drill h2 { font: 750 1.23rem/1.3 "Segoe UI", sans-serif; letter-spacing: -.02em; }
.arcade .practice .warmup { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: clamp(14px,2.5vw,28px); }
.arcade .practice .drills { border-color: var(--pine); }
@media (max-width:880px) {
  .play-layout { grid-template-columns: minmax(0,2fr) minmax(205px,.9fr); gap: 12px; }
  .section-heading { display: block; }.section-heading > p { margin-top: 10px; max-width: 60ch; }
}
@media (max-width:740px) {
  .arcade .shell { width: calc(100% - 24px); }
  .site-head .nav-row { min-height: 56px; }.site-head .wordmark { font-size: 1.34rem; gap: 8px; }.cube { width: 26px; height: 25px; }
  .nav-links { gap: 12px; }.nav-links a { font-size: .87rem; }.nav-links .wide-link { display: none; }
  .valley { min-height: 139px; border-radius: 15px; background-position: 65% 54%; }
  .valley-copy { padding: 10px 12px; }.valley .overline { font-size: .63rem; }.arcade .valley h1 { font-size: clamp(3rem,10vw,4.2rem); -webkit-text-stroke-width: 3px; text-shadow: 0 3px #173a31; }
  .valley .hero-description { margin: 4px 0 0; font-size: 1rem; background: #b8efdc; border-radius: 4px; padding: 0 3px; }
  .game-facts { margin-top: 6px; }.game-facts li { font-size: .65rem; padding: 2px 6px; }
  .play-layout, .lab, .moment, .notebook-grid, .faq { grid-template-columns: 1fr; }
  .play-layout { margin-top: 12px; gap: 18px; }
  .cabinet { border-radius: 13px; }.cabinet-bar { padding-inline: 10px; }.player iframe { height: clamp(400px,57svh,600px); }.cabinet-foot { padding: 7px 10px; }
  .quick-start { display: block; }.quick-upper { padding: 17px; }.start-steps { gap: 13px; margin: 13px 0 0; }
  .start-steps li { padding-left: 2.5rem; }.start-steps li > span { font-size: .92rem; }
  .lab { gap: 16px; padding: 18px 13px; border-radius: 15px; }.lab-copy > p { max-width: none; }
  .pick-row { gap: 7px; }.replay-controls { gap: 2px; }.replay-controls button { padding: 7px 8px; font-size: .94rem; }
  .moment { gap: 16px; }.faq { padding-top: 24px; gap: 15px; }
  .nav-links a.practice-pill { min-height: 36px; gap: 6px; padding-inline: 10px; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .practice-pill,.warmup-link > span:last-child { transition: transform .16s ease; }
  .practice-pill:hover { transform: translateY(-2px); }.warmup-link:hover > span:last-child { transform: translateX(4px); }
}
