:root{--shell:#202f35;--gallery:#304b50;--gold:#d6a65e;--ivory:#f6e4bb;--ink:#26313a;--teal:#4d9992;--coral:#d77965;--muted:#718985;--tile-fill:#2c4549;--dark:#0d1417;--side:clamp(168px, 30vw, 280px);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--shell);height:100%;color:var(--ivory);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}button[aria-disabled=true],button:disabled{cursor:default}:focus-visible{outline-offset:3px;outline:3px solid #fff}img{-webkit-user-drag:none;-webkit-touch-callout:none}[hidden]{display:none!important}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}noscript{text-align:center;padding:24px;display:block}.frame{max-width:1040px;padding:env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left));grid-template:"head""hud""prompt""gallery"minmax(0,1fr)"actions"/minmax(0,1fr);margin:0 auto;display:grid;position:fixed;inset:0}.frame:not([data-screen=run]) :is(.hud,.prompt,.gallery,.actions){display:none}.frame[data-shape=wide]{grid-template-columns:minmax(0, 1fr) var(--side);grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"head head""gallery hud""gallery prompt""gallery.""gallery actions";column-gap:12px}.head{grid-area:head;align-items:center;gap:2px;min-height:52px;padding:4px 0;display:flex}.name{letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;margin:0;font-size:19px;font-weight:800;overflow:hidden}.name span{color:var(--gold)}.icon-button{background:0 0;border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;padding:0;display:grid}.icon-button:active{background:#ffffff14}.icon-button .pic{width:28px;height:28px}.hud{letter-spacing:.03em;grid-area:hud;align-items:center;gap:14px;min-height:26px;font-size:14px;font-weight:700;display:flex}.stat-name{opacity:.85;font-weight:600}.hud strong{font-variant-numeric:tabular-nums}.hearts{gap:2px;margin-left:auto;display:flex}.hearts .heart{width:20px;height:20px}.hud .tag{border:1.5px solid var(--muted);border-radius:999px;margin-left:auto;padding:1px 8px;font-size:12px}.prompt{grid-area:prompt;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:8px;padding:4px 0 6px;display:grid}.prompt-text,.prompt-time{white-space:nowrap;height:24px;margin:0;font-weight:800;line-height:24px}.prompt-text{text-overflow:ellipsis;font-size:20px;overflow:hidden}.prompt-time{font-variant-numeric:tabular-nums;text-align:right;min-width:3ch;font-size:18px}.timer{background:#ffffff1f;border-radius:3px;grid-column:1/-1;height:6px;margin-top:6px;overflow:hidden}.timer-fill{background:var(--teal);transform-origin:0;height:100%;transform:scaleX(0)}.timer.is-low .timer-fill{background:var(--coral)}.timer[data-phase=reveal] .timer-fill{background:var(--muted)}.gallery{background:linear-gradient(#202f35b8, #202f35d9), url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20960%20600'%20width='960'%20height='600'%3e%3crect%20x='0'%20y='0'%20width='960'%20height='600'%20rx='0'%20fill='%23304b50'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='0'%20y='0'%20width='960'%20height='18'%20rx='0'%20fill='%23b38b56'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='0'%20y='440'%20width='960'%20height='160'%20rx='0'%20fill='%2326383d'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='0'%20y='429'%20width='960'%20height='11'%20rx='0'%20fill='%23c59c62'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='0'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='160'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='320'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='480'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='640'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='800'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3crect%20x='960'%20y='20'%20width='3'%20height='410'%20rx='0'%20fill='%233c575a'%20stroke='none'%20stroke-width='0'/%3e%3cpath%20d='M480%20440%20L-320%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L-200%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L-80%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L40%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L160%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L280%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L400%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L520%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L640%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L760%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L880%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L1000%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L1120%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L1240%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M480%20440%20L1360%20600'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0%20470%20H960'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0%20515%20H960'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0%20565%20H960'%20fill='none'%20stroke='%233c4b4b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e") center bottom / cover no-repeat, var(--gallery);border-radius:14px;grid-area:gallery;min-height:0;padding:6px;position:relative;overflow:hidden}.room{grid-template-columns:repeat(var(--columns,2), var(--tile,0px));grid-auto-rows:var(--tile,0px);gap:var(--gap,8px);place-content:center;height:100%;display:grid}.slot{background:var(--tile-fill);border:2px solid #71898599;border-radius:12px;width:100%;height:100%;padding:5%;display:block;position:relative}.slot .art{object-fit:contain;pointer-events:none;width:100%;height:100%;display:block}.frame[data-phase=search] .slot:not([aria-disabled=true]):active{transform:scale(.97)}.frame[data-motion=reduced] .slot:active{transform:none!important}.slot.is-selected{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold)}.slot .mark{border-radius:50%;width:clamp(20px,24%,34px);height:auto;position:absolute;top:4px;right:4px}.slot[data-mark] .mark{background:var(--shell)}.slot[data-mark=correct]{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal)}.slot[data-mark=false_alarm]{border-color:var(--coral);box-shadow:0 0 0 3px var(--coral)}.slot[data-mark=missed]{border:3px dashed var(--gold)}.slot[data-mark=correct],.slot[data-mark=missed]{cursor:pointer}.slot.is-before{background:#3b5559}.slot .tag{background:var(--ivory);color:var(--ink);letter-spacing:.04em;text-transform:uppercase;border-radius:6px;padding:2px 7px;font-size:12px;font-weight:800;position:absolute;bottom:4px;left:4px}.dark{background:var(--dark);place-items:center;margin:0;animation:.14s ease-out lights-out;display:grid;position:absolute;inset:0}.dark p{color:#f6e4bb8c;letter-spacing:.12em;text-transform:uppercase;margin:0;font-size:15px;font-weight:700}@keyframes lights-out{0%{opacity:.6}to{opacity:1}}.frame[data-motion=reduced] .dark{animation:none}.frame[data-phase=camera] .gallery{box-shadow:inset 0 0 0 3px var(--coral)}.footage{white-space:nowrap;z-index:1;background:#0d1417d9;border-radius:999px;align-items:center;gap:6px;max-width:calc(100% - 16px);margin:0;padding:4px 10px;font-size:13px;font-weight:700;display:flex;position:absolute;top:8px;left:50%;transform:translate(-50%)}.rec{background:var(--coral);border-radius:50%;width:9px;height:9px}.actions{grid-area:actions;gap:4px;padding:6px 0 10px;display:grid}.status{text-align:center;white-space:nowrap;text-overflow:ellipsis;min-height:18px;margin:0;font-size:13px;font-weight:600;line-height:18px;overflow:hidden}.buttons{gap:8px;min-height:52px;display:flex}.buttons>button{flex:1 1 0;min-width:0}.primary{background:var(--gold);min-height:52px;color:var(--ink);border:0;border-radius:12px;padding:0 18px;font-size:17px;font-weight:800}.primary[aria-disabled=true],.primary:disabled{color:#f6e4bbbf;background:0 0;box-shadow:inset 0 0 0 2px #d6a65e8c}.primary .count{font-variant-numeric:tabular-nums;opacity:.8}.camera{border:2px solid var(--gold);background:0 0;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-height:52px;padding:4px 10px;font-size:14px;font-weight:700;line-height:1.2;display:flex}.camera .pic{flex:none;width:24px;height:24px}.camera[aria-disabled=true]{color:#f6e4bbb3;border-color:#71898599}.camera[aria-disabled=true] .pic{opacity:.6}.quiet{background:0 0;border:2px solid #718985cc;border-radius:12px;min-height:46px;padding:0 14px;font-size:15px;font-weight:700}.quiet.is-new{border-color:var(--gold)}.frame[data-shape=wide] .buttons{flex-direction:column}.frame[data-shape=wide] .buttons>button{flex:none}.frame[data-shape=wide] .status{white-space:normal}.screen{text-align:center;flex-direction:column;grid-area:2/1/-1/-1;justify-content:center;align-items:center;gap:12px;min-height:0;padding:12px 6px 16px;display:flex;overflow-y:auto}.screen h2{margin:0;font-size:28px;font-weight:800}.screen p{margin:0}.show-pane,.act-pane{display:contents}.act-pane>.primary,.act-pane>.quiet,.act-pane>.row,.result-actions,.result-stats{width:min(100%,340px)}.row{gap:8px;display:flex}.row>*{flex:1 1 0;min-width:0}.menu-art{justify-content:center;gap:4px;display:flex}.menu-art img{width:min(28vw,150px,22vh);height:auto}.tagline{font-size:21px;font-weight:800;line-height:1.25}.menu-note,#lesson-body{max-width:340px;font-size:15px;line-height:1.4}.best{color:var(--gold);font-weight:700}.card-note{opacity:.9;max-width:340px;font-size:13px;line-height:1.4}.brand{opacity:.8;margin:4px 0 0;font-size:12px}.brand a{color:inherit}.result-num{color:var(--gold);font-variant-numeric:tabular-nums;font-size:clamp(56px,16vh,96px);font-weight:900;line-height:1}.screen .result-caption{margin-top:-6px;font-size:15px;font-weight:700}.result-best{font-size:15px;font-weight:700}.result-stats{grid-template-columns:1fr 1fr;gap:8px;margin:0;display:grid}.result-stats div{background:var(--gallery);border-radius:10px;padding:7px 8px}.result-stats dt{opacity:.85;font-size:12px;font-weight:600}.result-stats dd{margin:0;font-size:18px;font-weight:800}.result-actions{gap:8px;display:flex}.result-actions>*{flex:1 1 0;min-width:0}.share{background:var(--ivory);min-height:52px;color:var(--ink);border:0;border-radius:12px;justify-content:center;align-items:center;gap:8px;font-size:17px;font-weight:800;display:flex}.share .pic{width:22px;height:22px}.frame[data-shape=wide] .screen{flex-flow:wrap;align-content:center;gap:6px 24px;padding:6px 6px 10px}.frame[data-shape=wide] :is(.show-pane,.act-pane){flex-direction:column;flex:1 1 0;align-items:center;gap:10px;min-width:0;max-width:340px;display:flex}.frame[data-shape=wide] .result .act-pane{flex-grow:1.5;gap:8px}.frame[data-shape=wide] .screen>.brand{flex-basis:100%;margin:0}.frame[data-shape=wide] .menu-art img{width:min(12vw,30vh,96px)}.frame[data-shape=wide] .tagline{font-size:18px}.frame[data-shape=wide] :is(.menu-note,#lesson-body){font-size:14px}.frame[data-shape=wide] .result-stats div{padding:4px 8px}.frame[data-shape=wide] .result-stats dt{font-size:11px}.frame[data-shape=wide] .result-stats dd{font-size:16px}.frame[data-shape=wide] .result-num{font-size:clamp(48px,15vh,80px)}.frame[data-shape=wide] .share{gap:6px;font-size:16px}.pause-card{background:var(--gallery);width:min(340px,100vw - 24px);max-height:calc(100dvh - 24px);color:var(--ivory);border:1px solid #71898599;border-radius:18px;padding:0;overflow-y:auto}.pause-card::backdrop{background:var(--shell)}.pause-inner{text-align:center;gap:12px;padding:20px;display:grid}.pause-inner h2{margin:0;font-size:26px}.pause-inner p{margin:0;line-height:1.4}.pause-main,.pause-confirm{gap:10px;display:grid}.confirm-question{font-size:18px;font-weight:800}#motion[aria-pressed=true]{border-color:var(--gold)}.intro{width:min(360px,100vw - 24px);max-width:none;max-height:calc(100vh - 24px);overscroll-behavior:contain;background:var(--gallery);max-height:calc(100dvh - 24px);color:var(--ivory);border:1px solid #71898599;border-radius:20px;margin:auto;padding:0;overflow-y:auto;box-shadow:0 15px 45px #0008}.intro::backdrop{background:#0d1417b3}.intro-card{padding:20px 20px 18px}.intro h2{text-align:center;margin:0 0 6px;font-size:24px}.intro-lede{text-align:center;margin:0 0 14px;font-size:14px;line-height:1.45}.intro-steps{counter-reset:step;gap:10px;margin:0;padding:0;list-style:none;display:grid}.intro-steps li{counter-increment:step;min-height:22px;padding-left:32px;font-size:14px;line-height:1.4;position:relative}.intro-steps li:before{content:counter(step);background:var(--gold);width:22px;height:22px;color:var(--ink);border-radius:50%;place-items:center;font-size:12px;font-weight:800;display:grid;position:absolute;top:-1px;left:0}.intro-foot{gap:4px;display:grid}.intro-skip{cursor:pointer;align-items:center;gap:10px;min-height:44px;margin:8px 0 4px;font-size:13px;font-weight:700;display:flex}.intro-skip input{width:20px;height:20px;accent-color:var(--gold);flex:none;margin:0}.intro .primary{width:100%}@media (max-height:700px){.head{min-height:48px;padding:2px 0}.prompt-text{font-size:18px}.prompt{padding:2px 0 4px}.timer{margin-top:4px}.actions{padding:4px 0 6px}.primary,.camera,.share,.buttons{min-height:48px}.screen{gap:9px}.intro-card{padding:14px 16px}.intro h2{margin-bottom:4px;font-size:21px}.intro-lede{margin-bottom:10px;font-size:13px}.intro-steps{gap:7px}.intro-steps li{font-size:13px}}@media (orientation:landscape) and (max-height:520px){.intro{width:min(620px,100vw - 24px)}.intro-steps{grid-template-columns:1fr 1fr;gap:6px 16px}.intro-foot{align-items:center;gap:14px;margin-top:8px;display:flex}.intro-skip{flex:1 1 0;margin:0}.intro .primary{flex:0 220px}}@media (orientation:landscape) and (max-height:340px){.intro-card{padding:10px 16px}.intro h2{margin-bottom:2px;font-size:18px}.intro-lede{margin-bottom:6px;font-size:12px;line-height:1.35}.intro-steps{gap:4px 14px}.intro-steps li{font-size:12px;line-height:1.3}.intro-foot{margin-top:4px}}@media (max-width:359px){.name{letter-spacing:.02em;font-size:15px}.intro-card{padding:12px 14px}.intro-steps{gap:6px}.share{gap:6px;font-size:15px}.share .pic{width:20px;height:20px}.hud{gap:10px;font-size:13px}.camera{font-size:13px}}.frame[data-shape=wide] .head{min-height:46px}.frame[data-shape=wide] .hud{flex-wrap:wrap;gap:4px 12px;padding-top:6px}.frame[data-shape=wide] .hearts{margin-left:0}.frame[data-shape=wide] .prompt-text{white-space:normal;height:auto;font-size:17px;line-height:1.25}.frame[data-shape=wide] .gallery{margin-bottom:max(6px, env(safe-area-inset-bottom))}
