@import url('./vendor/fonts/fonts.css');
:root{color-scheme:dark;--bg:#101d27;--panel:#182934;--ink:#f4efdf;--muted:#bbcad0;--blue:#74d9df;--orange:#ffae70;--line:#39505b;--font:'DM Sans',sans-serif;--header:58px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{height:100dvh;background:var(--bg);color:var(--ink);font:18px var(--font)}[hidden]{display:none!important}button,a{-webkit-tap-highlight-color:transparent}button{font:700 16px var(--font);cursor:pointer;color:inherit;border:1px solid var(--line);background:var(--panel);padding:10px 16px;border-radius:5px;min-height:44px}button:hover{border-color:var(--blue);background:#26414d}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #f4d07e;outline-offset:3px}a{color:inherit;text-decoration:none}header{height:var(--header);padding:6px 3vw;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.brand{font-size:14px;font-weight:800;letter-spacing:.08em;display:flex;align-items:center;gap:10px}.seal{background:var(--blue);color:var(--bg);font-size:22px;padding:4px 10px;border-radius:3px}.muted{color:var(--muted)}header button{border:0;background:none;font-size:14px;padding:8px}main{height:calc(100dvh - var(--header));max-width:1680px;margin:auto;padding:14px 4vw;min-height:0}main>section{height:100%;min-height:0}h1,h2,p{margin:0}h1,h2{font-family:'Barlow Condensed',Impact,sans-serif;line-height:1.05}.eyebrow{font-size:16px;letter-spacing:.12em;font-weight:800;color:var(--blue)}.primary{background:var(--blue);color:#10232c;border-color:var(--blue)}.primary:hover{background:#a0edf0;color:#10232c}.hold{height:8px;background:#ffffff20;border-radius:4px;overflow:hidden}.hold i{display:block;height:100%;background:var(--blue);width:0}.pose-svg{fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
#home{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:minmax(0,1fr) auto auto;gap:16px}.intro{align-self:center}.intro h1{font-size:clamp(36px,8vh,88px);margin:16px 0}.intro em{color:var(--blue);font-style:normal}.intro p{color:var(--muted);font-size:clamp(16px,2.6vh,25px);line-height:1.5}.hero-art{min-height:0;display:flex;align-items:center;justify-content:center}.hero-art canvas{width:100%;height:100%;object-fit:contain}.mode-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:22px}.mode-card{text-align:left;border-top:3px solid var(--blue);padding:clamp(12px,2.5vh,25px)}.mode-card.orange{border-top-color:var(--orange)}.mode-card small{font-size:14px;letter-spacing:.12em;color:var(--muted)}.mode-card h2{font-size:clamp(28px,4.5vh,46px);margin:8px 0}.mode-card p{font-size:clamp(14px,2.4vh,22px);color:var(--muted);font-weight:400}.mode-card b{display:block;margin-top:12px;color:var(--blue);font-size:clamp(12px,2vh,18px)}.orange b{color:var(--orange)}footer{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px;padding-top:8px;border-top:1px solid var(--line)}
#setup{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}.section-head{display:flex;justify-content:space-between;align-items:center}.section-head h1{font-size:clamp(32px,6vh,60px);margin-top:6px}.setup-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;min-height:0}.camera-box{min-height:0;position:relative;border:1px solid var(--line);background:#08141e;border-radius:8px;overflow:hidden}.camera-box video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}.outlines{position:absolute;inset:8% 6% 16%;display:flex;justify-content:space-around;pointer-events:none}.outline{width:40%;border:3px dashed var(--blue);border-radius:40% 40% 12px 12px;text-align:center;padding-top:18px;color:white;font-size:20px;text-shadow:0 2px 4px #000}.outline:nth-child(2){border-color:var(--orange)}#cameraMessage{position:absolute;bottom:0;left:0;right:0;padding:12px;background:#08131de8;text-align:center;font-size:22px}.setup-copy{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:12px}.setup-copy h2{font-size:clamp(28px,4.5vh,46px)}.setup-copy p{font-size:clamp(16px,2.5vh,25px);line-height:1.35;color:var(--muted)}.pose-guide{display:flex;gap:10px}.pose-chip{flex:1;text-align:center;padding:10px 4px;background:var(--panel);border:1px solid var(--line)}.pose-chip svg{width:clamp(28px,5vh,60px);height:clamp(36px,7vh,80px);display:block;margin:0 auto 6px}.pose-chip b{font-size:clamp(12px,1.9vh,18px)}.setup-actions{display:flex;gap:8px}.setup-actions button{flex:1}.setup-copy .privacy{font-size:13px}.gesture-prompt{font-size:clamp(16px,2.5vh,24px);color:var(--muted);line-height:1.4;text-align:center}#cameraStatus{color:var(--blue)}
#play{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;gap:10px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:clamp(16px,2.4vh,25px)}.game-top>div:first-child{display:flex;gap:16px;align-items:center}.game-top span{color:var(--blue);font-size:clamp(12px,1.8vh,18px);font-weight:700}.game-top button{font-size:14px;min-height:40px;padding:7px 14px}.question-scroll{position:relative;background:#e9e1cd;color:#152936;border-left:5px solid #d4b87c;padding:14px 20px 18px;display:flex;gap:16px;align-items:center;min-height:0}.question-copy{flex:1;min-width:0}.question-copy>span{font-size:clamp(14px,2vh,21px);font-weight:800;letter-spacing:.08em}.question-scroll h1{font-size:clamp(30px,6.2vh,68px);margin:6px 0;line-height:1.06}.time-track{position:absolute;left:0;right:0;bottom:0;height:7px;background:#c4bba9}.time-track i{display:block;height:100%;width:100%;background:#28565e;transition:width .1s linear}#timer{flex-shrink:0;text-align:center;min-width:95px;border-left:2px solid #b5ab95;padding-left:16px}#clock{display:block;font:800 clamp(48px,9vh,100px)/.9 'Barlow Condensed',Impact,sans-serif;font-variant-numeric:tabular-nums}#timerUnit{font-size:12px;font-weight:800;display:block;margin-top:6px}.urgent{color:#a32b1f}.urgent #clock{animation:urgency .7s ease-in-out infinite}@keyframes urgency{50%{transform:scale(1.08)}}.answers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.answer{border:2px solid #425964;background:var(--panel);padding:10px 14px;display:flex;align-items:center;gap:14px;justify-content:center}.answer svg{width:clamp(35px,6vh,70px);height:clamp(46px,8vh,84px);color:var(--blue);flex-shrink:0}.answer small{display:block;font-size:clamp(13px,1.9vh,21px);color:var(--blue)}.answer strong{display:block;font-size:clamp(23px,4.4vh,48px);line-height:1.15;margin-top:5px}.answer.correct{background:#214a43;border-color:#7fe0ac}.arena-wrap{position:relative;background:#132733;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:6px}#arena{display:block;width:100%;height:100%}.player-status{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:space-around;gap:10px;padding:0 16px}.player-badge{background:#0a1726ee;padding:8px 18px;border:1px solid var(--blue);min-width:220px;text-align:center;font-size:clamp(14px,2.3vh,24px)}.player-badge:nth-child(2){border-color:var(--orange)}.player-badge .hold{margin-top:6px;height:6px}.player-badge:nth-child(2) i{background:var(--orange)}#trackingNotice{position:absolute;inset:0;z-index:2;display:grid;place-content:center;background:#091725eb;font-size:clamp(23px,4vh,40px);text-align:center;padding:20px;white-space:pre-line;color:#ffe1a4}.game-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:clamp(14px,2.2vh,24px);color:var(--muted)}.game-bottom strong{color:var(--ink);white-space:nowrap}#practiceControls{display:flex;gap:22px}#practiceControls>div{display:flex;align-items:center;gap:8px;flex:1}#practiceControls small{font-size:13px;white-space:nowrap}#practiceControls button{flex:1;padding:6px;font-size:18px;min-height:38px}
.overlay{position:fixed;inset:0;z-index:10;background:#07121deb;display:grid;place-items:center;padding:16px 4vw;backdrop-filter:blur(8px)}.popup{width:min(1100px,100%);max-height:100%;display:flex;flex-direction:column;gap:clamp(12px,2.8vh,30px);padding:clamp(20px,4vh,50px);background:#1a343b;border:2px solid var(--blue);text-align:center;border-radius:8px}.popup h2{font-size:clamp(44px,9vh,100px);color:var(--blue)}.popup .eyebrow{font-size:clamp(18px,3vh,32px)}.popup p{font-size:clamp(22px,3.7vh,38px);line-height:1.3}#roundResult{font-weight:800}#explanation{color:var(--ink)}.popup-actions{display:flex;justify-content:center;gap:16px}.popup button{font-size:clamp(18px,3vh,30px);min-height:56px;padding:12px 24px}.popup .gesture-prompt{font-size:clamp(14px,2.4vh,24px)}#feedback[data-outcome=wrong] .popup{border-color:var(--orange)}#feedback[data-outcome=wrong] #feedbackTitle{color:var(--orange)}.menu-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.menu-choices button{font-size:40px}.menu-choices b,.menu-choices small{display:block}.menu-choices b{font-size:clamp(23px,4vh,40px);margin:10px 0}.menu-choices small{font-size:clamp(14px,2.2vh,22px);color:var(--muted)}#gestureHud{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:min(540px,88vw);z-index:20;background:#081522f5;border:2px solid var(--blue);padding:12px 18px;text-align:center;font-size:clamp(18px,3vh,30px);box-shadow:0 8px 40px #0008}#gestureHud .hold{margin-top:8px}
#results{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:clamp(10px,2vh,24px);text-align:center}#results h1{font-size:clamp(36px,7vh,78px)}.result-cards{display:flex;gap:20px;width:min(800px,100%)}.result-card{flex:1;padding:16px;background:var(--panel);border-top:3px solid var(--blue)}.result-card:nth-child(2){border-color:var(--orange)}.result-card span{font-size:clamp(14px,2vh,22px)}.result-card h2{font-size:clamp(36px,7vh,72px);margin:8px 0}.result-card p{font-size:clamp(18px,2.5vh,28px)}.review-scroll{width:min(1100px,100%);background:var(--panel);padding:16px 24px;display:grid;gap:10px}.review-scroll small{color:var(--blue);font-size:16px}.review-scroll b{font-size:clamp(23px,4vh,40px)}.review-scroll p{font-size:clamp(16px,2.5vh,26px);color:var(--muted)}.result-actions{display:flex;gap:12px}.result-actions button{font-size:clamp(16px,2.5vh,26px)}
@media(max-width:800px){.brand .muted{display:none}main{padding:10px 3vw}.setup-grid{gap:16px}.setup-copy{gap:8px}.setup-copy .privacy{font-size:11px}.setup-actions button{padding:8px;font-size:13px}.game-top>div:first-child{gap:8px}.game-top button{padding:6px 9px}.answer{padding:8px;gap:8px}.answer strong{font-size:clamp(21px,3.7vw,36px)}.answer small{font-size:12px}.answer svg{width:35px;height:45px}.player-badge{min-width:0;flex:1;font-size:16px;padding:7px}.game-bottom{font-size:13px}.game-top b{font-size:16px}footer{font-size:12px}.popup{gap:15px}.popup p{font-size:clamp(20px,3vw,30px)}}
@media(max-width:520px) and (orientation:portrait){:root{--header:50px}header{padding:4px 3vw}.brand{font-size:12px;gap:6px}.seal{font-size:18px;padding:3px 7px}header button{font-size:12px;padding:6px;min-height:36px}#fullscreen span{display:none}#home{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px}.intro h1{font-size:clamp(34px,6.5vh,56px);margin:10px 0}.intro .eyebrow{font-size:12px}.intro p{font-size:16px}.hero-art canvas{max-height:24vh}.mode-grid{gap:10px}.mode-card{padding:12px}.mode-card small{font-size:11px}.mode-card h2{font-size:27px}.mode-card p{font-size:13px;line-height:1.3}.mode-card b{font-size:11px;line-height:1.4;margin-top:10px}footer span{display:none}footer{font-size:11px}#setup{gap:10px}.section-head h1{font-size:30px}.section-head .eyebrow{font-size:12px}.section-head button{font-size:12px;padding:7px}.setup-grid{grid-template-columns:1fr;grid-template-rows:minmax(110px,1fr) auto;gap:10px}.setup-copy h2{display:none}.setup-copy p{font-size:15px}.pose-chip{padding:6px}.pose-chip svg{width:26px;height:34px;margin-bottom:3px}.pose-chip b{font-size:12px}.outline{font-size:14px;padding-top:8px}#cameraMessage{font-size:15px;padding:7px}.gesture-prompt{font-size:14px}#play{gap:8px}.game-top>div:first-child{display:grid;gap:3px}.game-top span{font-size:10px}.game-top b{font-size:14px}.game-top button{font-size:11px;padding:6px;min-height:36px}.question-scroll{padding:12px 10px 16px;gap:8px}.question-copy>span{font-size:11px}.question-scroll h1{font-size:30px}#timer{min-width:58px;padding-left:8px}#clock{font-size:52px}#timerUnit{font-size:9px}.answers{gap:6px}.answer{display:flex;flex-direction:column;gap:3px;padding:6px 3px;text-align:center}.answer svg{width:27px;height:33px}.answer strong{font-size:19px}.answer small{font-size:10px}.player-status{padding:0 6px;gap:6px;bottom:6px}.player-badge{font-size:12px;padding:6px}.game-bottom{font-size:11px;align-items:start}.game-bottom span{max-width:65%}#practiceControls{gap:10px}#practiceControls>div{gap:4px;flex-wrap:wrap}#practiceControls small{width:100%;font-size:10px}#practiceControls button{min-height:32px;font-size:14px}.popup{padding:20px 14px;gap:18px}.popup h2{font-size:48px}.popup .eyebrow{font-size:18px}.popup p{font-size:21px}.popup-actions{gap:8px}.popup button{padding:10px;font-size:16px;min-height:48px}.popup .gesture-prompt{font-size:13px}.menu-choices{gap:6px}.menu-choices b{font-size:22px}.menu-choices small{font-size:12px}#results h1{font-size:40px}.result-cards{gap:10px}.result-card{padding:12px}.result-card h2{font-size:45px}.result-card span{font-size:13px}.result-card p{font-size:16px}.review-scroll{padding:14px;gap:8px}.review-scroll b{font-size:23px}.review-scroll p{font-size:16px}.result-actions{gap:6px;width:100%}.result-actions button{flex:1;padding:8px 5px;font-size:13px}.review-scroll small{font-size:12px}}
@media(max-height:520px) and (orientation:landscape){:root{--header:40px}header{padding:2px 3vw}.seal{font-size:17px}header button{min-height:30px;padding:4px 8px;font-size:12px}.brand{font-size:12px}main{padding:7px 3vw}#home{gap:8px}.intro h1{font-size:38px;margin:8px 0}.intro .eyebrow{font-size:12px}.intro p{font-size:14px}.mode-card{padding:10px 14px}.mode-card h2{font-size:26px;margin:4px 0}.mode-card p{font-size:12px}.mode-card small{font-size:10px}.mode-card b{font-size:11px;margin-top:6px}footer{font-size:10px;padding-top:4px}#setup{gap:8px}.section-head h1{font-size:28px;margin:0}.section-head .eyebrow{font-size:10px}.section-head button{min-height:32px;padding:5px 10px;font-size:12px}.setup-copy{gap:5px}.setup-copy h2{font-size:24px}.setup-copy p{font-size:13px}.setup-copy .privacy{font-size:10px}.pose-chip{padding:4px}.pose-chip svg{height:29px;width:24px;margin:0 auto}.pose-chip b{font-size:10px}.setup-actions button{min-height:30px;font-size:11px;padding:4px}.gesture-prompt{font-size:12px}#cameraMessage{padding:6px;font-size:16px}.outline{font-size:14px}#play{gap:5px}.game-top{font-size:12px}.game-top b{font-size:14px}.game-top span{font-size:11px}.game-top button{min-height:28px;padding:4px 10px;font-size:12px}.question-scroll{padding:7px 12px 11px}.question-copy>span{font-size:10px}.question-scroll h1{font-size:30px;margin:3px 0}#timer{min-width:70px}#clock{font-size:44px}#timerUnit{font-size:9px;margin-top:2px}.time-track{height:5px}.answer{padding:4px 8px;gap:8px}.answer strong{font-size:22px;margin-top:2px}.answer small{font-size:10px}.answer svg{width:27px;height:34px}.player-status{bottom:4px}.player-badge{padding:4px 10px;font-size:12px}.player-badge .hold{height:4px;margin-top:3px}.game-bottom{font-size:11px}#practiceControls button{min-height:26px;font-size:14px;padding:3px}#practiceControls small{font-size:10px}.popup{padding:14px 24px;gap:9px}.popup h2{font-size:40px}.popup .eyebrow{font-size:16px}.popup p{font-size:20px}.popup button{min-height:36px;padding:7px 16px;font-size:16px}.popup .gesture-prompt{font-size:12px}.menu-choices b{font-size:24px;margin:5px}.menu-choices small{font-size:12px}.menu-choices button{font-size:24px}#results{gap:8px}#results h1{font-size:34px}#results>.eyebrow{font-size:12px}.result-card{padding:8px}.result-card h2{font-size:32px;margin:3px}.result-card span,.result-card p{font-size:12px}.review-scroll{padding:8px 14px;gap:4px}.review-scroll b{font-size:22px}.review-scroll small,.review-scroll p{font-size:12px}.result-actions button{min-height:32px;padding:5px 12px;font-size:13px}#gestureHud{bottom:8px;padding:8px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.urgent #clock{animation:none}.time-track i{transition:none}}
/* Six-pose expansion: fixed menu gestures, changing answer silhouettes. */
.pose-guide{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.pose-chip{min-width:0}.pose-chip b{font-size:clamp(11px,1.6vh,16px);display:block}.answer-pose{display:flex;flex-direction:column;align-items:center;flex-shrink:0;gap:3px;min-width:62px}.answer-pose b{font-size:clamp(13px,1.8vh,20px);color:var(--blue);font-weight:700}.answer-copy{min-width:0}.pose-tip{display:block;color:var(--muted);font-size:clamp(13px,1.8vh,20px);line-height:1.2;margin-top:5px}.answer{gap:12px}.answer strong{font-size:clamp(23px,4vh,46px)}
@media(max-width:800px){.answer-pose{min-width:38px}.answer-pose b{font-size:12px}.pose-tip{font-size:12px}.answer{gap:8px}.answer strong{font-size:clamp(21px,3.6vw,34px)}}
@media(max-width:520px) and (orientation:portrait){.pose-guide{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.pose-chip{padding:4px;display:flex;align-items:center;gap:5px}.pose-chip svg{width:22px;height:29px;flex-shrink:0;margin:0}.pose-chip b{font-size:10px;text-align:left}.answer{gap:3px}.answer-pose{flex-direction:row;gap:3px;min-width:0}.answer-pose svg{width:20px;height:27px}.answer-pose b{font-size:11px}.answer strong{font-size:18px}.pose-tip{font-size:10px;line-height:1.15;margin-top:4px}.answer small{font-size:10px}}
@media(max-height:520px) and (orientation:landscape){.answer-pose{min-width:42px;gap:0}.answer-pose svg{width:23px;height:29px}.answer-pose b{font-size:10px}.pose-tip{font-size:10px;margin-top:2px}.answer strong{font-size:22px}.pose-guide{gap:4px}.pose-chip b{font-size:9px}}
/* Installation stays accessible without crowding narrow screens. */
.header-actions{display:flex;align-items:center;gap:3px}#install{border:1px solid var(--blue);color:var(--blue);font-weight:800}#install:disabled{border-color:var(--line);color:var(--muted);opacity:1}#installDialog{border:2px solid var(--blue);border-radius:8px;background:#18313b;color:var(--ink);width:min(700px,92vw);max-height:90dvh;padding:clamp(18px,4vh,36px);overflow:auto}#installDialog::backdrop{background:#07121dee;backdrop-filter:blur(6px)}.install-content{display:flex;flex-direction:column;gap:18px}.install-content h2{font-size:clamp(32px,6vh,56px)}.install-content p{font-size:clamp(16px,2.6vh,24px);line-height:1.5}.offline-card{padding:16px;background:#101d27;border:1px solid var(--line);border-radius:5px}.offline-card b{color:var(--blue)}.offline-card p{font-size:16px;margin-top:8px}.install-content .install-note{font-size:14px;color:var(--muted)}.install-content button{font-size:18px}.install-content .eyebrow{font-size:13px}
@media(max-width:520px){header .brand{font-size:10px;gap:5px}.header-actions{gap:1px}header .header-actions button{padding:5px;font-size:11px}#install{min-height:34px}.install-content{gap:12px}.install-content p{font-size:16px}.install-content .install-note{font-size:12px}}
