:root {
  color-scheme: light;
  --ink: #173832;
  --muted: #5f746e;
  --paper: #fffdf7;
  --cream: #f5f0df;
  --mint: #dcefe5;
  --green: #28705f;
  --green-dark: #164c41;
  --blue: #367da0;
  --blue-dark: #1e516a;
  --coral: #ef735d;
  --coral-dark: #9b3e32;
  --gold: #f4c454;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; min-width: 960px; min-height: 650px; overflow: hidden; }
body { margin: 0; color: var(--ink); background: #e7f2eb; }
button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid #0a638e; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.lesson { height: 100%; padding: 14px; }
.workshop { position: relative; height: 100%; min-height: 620px; overflow: hidden; isolation: isolate; border: 1px solid #b7d1c3; border-radius: 26px; background: linear-gradient(125deg,#eef8f2 0 52%,#d5eadf 52% 100%); box-shadow: 0 8px 0 #bad1c6, 0 25px 60px rgba(22,76,65,.14); }
.workshop::before { position: absolute; z-index: -1; inset: auto -8% -26% 36%; height: 58%; content: ""; transform: rotate(-7deg); border-radius: 50% 50% 0 0; background: #c2dfd0; }
.sun-patch { position: absolute; z-index: -1; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.52); }
.sun-one { right: 12%; top: -85px; }.sun-two { right: -60px; bottom: 14%; width: 240px; height: 240px; opacity: .55; }

.mute { position: absolute; z-index: 30; right: 18px; top: 18px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #b7c9c0; border-radius: 14px; background: rgba(255,253,247,.94); box-shadow: 0 4px 0 #c4d4cc; }
.mute svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mute .sound-off { display: none; }.mute[aria-pressed="true"] .sound-on { display: none; }.mute[aria-pressed="true"] .sound-off { display: block; }

.mission-card { position: absolute; left: 34px; top: 50%; width: 330px; min-height: 500px; display: flex; flex-direction: column; padding: 28px; transform: translateY(-50%); border: 1px solid #d7d1c1; border-radius: 23px; background: rgba(255,253,247,.97); box-shadow: 0 8px 0 rgba(36,91,76,.13), 0 24px 44px rgba(24,67,56,.14); }
.mode-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-pill { padding: 7px 10px; border-radius: 999px; color: var(--green-dark); background: var(--mint); font-size: 12px; font-weight: 900; }
.level-count { color: var(--muted); font-size: 12px; font-weight: 800; }
.eyebrow { margin: 36px 0 7px; color: var(--coral-dark); font-size: 12px; font-weight: 1000; letter-spacing: .1em; text-transform: uppercase; }
.mission-card h1 { margin: 0; font-size: 34px; line-height: 1.04; letter-spacing: -.045em; }
.mission-copy { min-height: 61px; margin: 13px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.time-ticket { display: grid; justify-items: center; padding: 17px 14px; border: 2px solid #d5cba9; border-radius: 17px; background: #fff8dc; box-shadow: 0 5px 0 #e5dcc1; }
.time-ticket span { color: #765b17; font-size: 11px; font-weight: 1000; letter-spacing: .09em; text-transform: uppercase; }
.time-ticket strong { margin-top: 2px; font-size: 47px; line-height: 1; letter-spacing: -.04em; }
.time-ticket small { margin-top: 5px; color: #6b5b33; font-size: 13px; font-weight: 800; }
.feedback { min-height: 46px; display: grid; place-items: center; margin-top: 13px; color: var(--green-dark); font-size: 13px; font-weight: 900; text-align: center; }
.feedback.is-error { color: var(--coral-dark); }
.next-button { min-height: 58px; margin-top: auto; border: 2px solid var(--green-dark); border-radius: 14px; color: white; background: var(--green); box-shadow: 0 6px 0 var(--green-dark); font-weight: 1000; transition: transform 140ms ease-out, box-shadow 140ms ease-out; }
.next-button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-dark); }.next-button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark); }
.read-choices { display: grid; gap: 9px; margin-top: 15px; }
.read-choice { min-height: 54px; border: 2px solid #bbc9c2; border-radius: 13px; background: white; box-shadow: 0 4px 0 #d9e1dc; font-size: 20px; font-weight: 1000; transition: transform 140ms ease-out, border-color 140ms ease-out; }
.read-choice:hover { transform: translateY(-2px); border-color: var(--blue); }

.clock-bench { position: absolute; left: 390px; right: 92px; top: 50%; height: min(690px,calc(100% - 70px)); min-height: 570px; display: grid; grid-template-columns: minmax(510px,630px) 180px; align-items: center; justify-content: center; gap: 28px; transform: translateY(-50%); }
.clock { width: min(100%,620px); max-height: 100%; overflow: visible; touch-action: none; user-select: none; }
.clock-rim { fill: #d9a85d; stroke: #785431; stroke-width: 8; }.clock-face { fill: var(--paper); stroke: #eadfca; stroke-width: 5; }
.tick { stroke: #668078; stroke-width: 4; stroke-linecap: round; }.tick.major { stroke: var(--ink); stroke-width: 7; }
.numbers text { fill: var(--ink); font-size: 34px; font-weight: 1000; text-anchor: middle; dominant-baseline: middle; }
.hand { cursor: grab; transform-origin: 260px 260px; outline: none; }.hand:active { cursor: grabbing; }.hand line { stroke-linecap: round; pointer-events: stroke; }
.hour-hand line { stroke: var(--blue); stroke-width: 25; }.hour-hand .hand-handle { fill: #8fc6df; stroke: var(--blue-dark); stroke-width: 5; }
.minute-hand line { stroke: var(--coral); stroke-width: 17; }.minute-hand .hand-handle { fill: #ffb19e; stroke: var(--coral-dark); stroke-width: 5; }
.hand.is-active .hand-handle, .hand:hover .hand-handle, .hand:focus-visible .hand-handle { filter: drop-shadow(0 0 8px rgba(24,95,124,.5)); transform-box: fill-box; transform-origin: center; transform: scale(1.14); }
.second-hand { transform-origin: 260px 260px; animation: tick 60s steps(60,end) infinite; pointer-events: none; }.second-hand line { stroke: #d7a51d; stroke-width: 4; stroke-linecap: round; }.second-hand circle { fill: #d7a51d; }
.pin { fill: var(--ink); stroke: white; stroke-width: 5; pointer-events: none; }
.bench-note { position: absolute; z-index: 4; left: 26px; top: 48px; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; color: var(--green-dark); background: rgba(255,255,255,.9); box-shadow: 0 4px 0 rgba(33,90,76,.12); font-size: 13px; font-weight: 900; transition: opacity 180ms ease-out; }
.bench-note span { font-size: 18px; }.bench-note.is-hidden { opacity: 0; }
.live-time { display: grid; justify-items: center; padding: 20px 12px; border: 1px solid #b9cec3; border-radius: 19px; background: rgba(255,253,247,.94); box-shadow: 0 6px 0 rgba(37,92,77,.13); text-align: center; }
.live-time span { color: var(--muted); font-size: 11px; font-weight: 1000; letter-spacing: .1em; text-transform: uppercase; }.live-time strong { margin-top: 3px; font-size: 39px; line-height: 1; }.live-time small { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }

.practice-card { position: absolute; z-index: 20; right: 82px; bottom: 23px; min-width: 300px; height: 67px; display: grid; grid-template-columns: 70px 70px 1fr; align-items: stretch; padding: 6px; border: 1px solid #b6ccc1; border-radius: 16px; background: rgba(255,253,247,.95); box-shadow: 0 5px 0 rgba(32,84,70,.13); }
.practice-card > div { display: grid; place-content: center; text-align: center; }.practice-card > div + div { border-left: 1px solid #d7e1dc; }
.practice-card span { color: var(--muted); font-size: 10px; font-weight: 1000; letter-spacing: .07em; text-transform: uppercase; }.practice-card strong { margin-top: 1px; font-size: 22px; }
.practice-card .difficulty { min-width: 135px; padding: 0 12px; grid-template-columns: 1fr auto; column-gap: 8px; text-align: left; }.difficulty i { grid-column: 1/-1; width: 100%; height: 6px; overflow: hidden; border-radius: 999px; background: #dce5e0; }.difficulty i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--gold),var(--coral)); transition: width 220ms ease-out; }

.celebration { position: absolute; z-index: 50; left: 62%; top: 50%; pointer-events: none; }.celebration i { position: absolute; width: 16px; height: 16px; opacity: 0; border-radius: 4px; background: var(--gold); }.workshop.is-celebrating .celebration i { animation: burst 760ms ease-out both; }
.celebration i:nth-child(1){--x:-240px;--y:-170px}.celebration i:nth-child(2){--x:-100px;--y:-230px;animation-delay:40ms}.celebration i:nth-child(3){--x:90px;--y:-220px;animation-delay:80ms}.celebration i:nth-child(4){--x:230px;--y:-120px;animation-delay:120ms}.celebration i:nth-child(5){--x:240px;--y:110px;animation-delay:160ms}.celebration i:nth-child(6){--x:80px;--y:220px;animation-delay:200ms}.celebration i:nth-child(7){--x:-100px;--y:210px;animation-delay:240ms}.celebration i:nth-child(8){--x:-230px;--y:100px;animation-delay:280ms}
.workshop.is-correct .clock { animation: clock-pop 520ms ease-out; }

@keyframes tick { to { transform: rotate(360deg); } }
@keyframes burst { 0% { opacity: 0; transform: translate(0,0) rotate(0) scale(.2); } 32% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(210deg) scale(1.2); } }
@keyframes clock-pop { 45% { transform: scale(1.035) rotate(-1deg); } }
@media (max-width: 1150px) {
  .mission-card { left: 24px; width: 300px; padding: 24px; }
  .mission-card h1 { font-size: 30px; }
  .clock-bench { left: 330px; right: 18px; grid-template-columns: minmax(450px,520px) 155px; gap: 12px; }
  .bench-note { left: 12px; }
  .live-time strong { font-size: 34px; }
  .practice-card { right: 18px; }
}
@media (max-height: 760px) { .mission-card { min-height: 455px; padding: 22px; }.eyebrow { margin-top: 24px; }.mission-card h1 { font-size: 30px; }.mission-copy { margin-bottom: 14px; }.time-ticket { padding: 12px; }.time-ticket strong { font-size: 40px; }.clock-bench { height: calc(100% - 44px); min-height: 540px; }.practice-card { bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
