:root{--navy:#071846;--blue:#173e92;--sky:#4b82df;--yellow:#facc15;--orange:#f59e0b;--green:#22c55e;--red:#ef4444;--cream:#fff7d6;--ink:#172033;--panel:#0a2056e0;--line:#fff;--safe-bottom:88px;--hud-h:72px;--land:clamp(104px,12vw,170px)}*{box-sizing:border-box;min-width:0}html,body{color:#fff;background:#020617;width:100%;height:100%;margin:0;font-family:Microsoft JhengHei,Noto Sans TC,monospace;overflow:hidden}body{touch-action:manipulation}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;filter:grayscale(.55);opacity:.55}#app{isolation:isolate;background:linear-gradient(180deg,var(--navy),var(--blue) 55%,var(--sky));width:100vw;height:100dvh;position:relative;overflow:hidden}#stars{z-index:0;pointer-events:none;position:absolute;inset:0;overflow:hidden}.star{opacity:.75;background:#fff;border-radius:50%;width:3px;height:3px;animation:2.8s ease-in-out infinite twinkle;position:absolute}.star:nth-child(3n){width:5px;height:5px}.star:nth-child(5n){background:#fde68a}@keyframes twinkle{50%{opacity:.22;transform:scale(.65)}}.cloud{z-index:1;opacity:.85;pointer-events:none;background:#eef2ff;border-radius:40px;width:90px;height:28px;position:absolute;box-shadow:inset -8px -5px #b8c7ed,4px 5px #0000001f}.cloud:before,.cloud:after{content:"";background:#eef2ff;border-radius:50%;position:absolute}.cloud:before{width:48px;height:48px;top:-24px;left:14px}.cloud:after{width:38px;height:38px;top:-16px;right:13px}.cloud.c1{top:9%;left:9%}.cloud.c2{top:13%;right:12%;transform:scale(.75)}.scenery{z-index:2;pointer-events:none;position:absolute;inset:0;overflow:hidden}.trees-left,.buildings-right{align-items:flex-end;display:flex;position:absolute;bottom:0}.trees-left{width:var(--land);justify-content:flex-start;left:clamp(8px,1.4vw,22px)}.buildings-right{width:var(--land);justify-content:flex-end;right:clamp(8px,1.4vw,22px)}.tree{width:78px;margin-right:-24px;position:relative}.tree.small{transform-origin:bottom;transform:scale(.72)}.trunk{background:#99520d;width:22px;height:62px;margin:auto;box-shadow:inset -6px 0 #67370a}.leaves{clip-path:polygon(22% 0,78% 0,100% 22%,100% 78%,78% 100%,22% 100%,0 78%,0 22%);background:#20c997;width:92px;height:92px;margin-bottom:-7px;margin-left:-7px;animation:3s ease-in-out infinite alternate sway;box-shadow:inset 10px 8px #ffffff40}@keyframes sway{to{transform:rotate(2deg)}}.building{background:#6d28d9;width:74px;position:relative;box-shadow:inset 8px 0 #ffffff24,inset -10px 0 #00000038}.building.tall{height:210px}.building.short{background:#8b5cf6;width:82px;height:138px;margin-left:-13px}.windows{grid-template-columns:repeat(2,1fr);gap:11px;display:grid;position:absolute;inset:14px 10px}.windows i{background:#fde047;display:block;box-shadow:0 0 8px #fde047}.ground-pixel{opacity:.75;background:repeating-linear-gradient(90deg,#1e293b 0 22px,#334155 22px 44px);height:12px;position:absolute;bottom:0;left:0;right:0}.mascot-wrap{z-index:5;bottom:8px;left:calc(var(--land) + 24px);pointer-events:none;width:70px;height:68px;position:absolute}.mascot{transform-origin:bottom;width:68px;height:58px;animation:2.3s ease-in-out infinite bob;position:relative}.mascot-body{background:#34d399;border-radius:48% 48% 34% 34%;position:absolute;inset:8px 0 0;box-shadow:inset 8px 8px #ffffff52,inset -8px -8px #00000038}.eye{background:#0f172a;border-radius:2px;width:8px;height:11px;position:absolute;top:27px}.eye.l{left:21px}.eye.r{right:21px}.mouth{background:#0f172a;border-radius:0 0 8px 8px;width:12px;height:7px;position:absolute;top:42px;left:29px}.mascot.anxious{animation:.25s linear infinite shake}.mascot.anxious .mouth{border-radius:50%}.mascot.cheer{animation:.65s cheer}.mascot.sad{animation:.7s sad}.mascot.sad .mouth{border-radius:8px 8px 0 0}@keyframes bob{50%{transform:translateY(-7px)}}@keyframes shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}@keyframes cheer{35%{transform:translateY(-24px)scale(1.08,.92)}70%{transform:translateY(0)scale(1.04)}}@keyframes sad{45%{transform:translateY(5px)scaleY(.9)}}.screen{z-index:20;display:none;position:absolute;inset:0}.screen.active{display:flex}.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:clamp(14px,2.6vh,28px);width:100%;height:100%;padding:clamp(18px,4vw,56px);display:flex}.title{letter-spacing:.08em;text-shadow:4px 4px #071846,-3px -3px #1d4ed8,7px 7px #00000059;margin:0;font-size:clamp(34px,6.5vw,84px);font-weight:1000;line-height:1.08}.tag{background:var(--yellow);color:#172554;letter-spacing:.08em;border:3px solid #111827;padding:9px 17px;font-weight:900;display:inline-block;box-shadow:0 5px #92400e}.pixel-btn,.confirm-btn{color:#fff;text-shadow:2px 2px #000;background:#22c55e;border:3px solid #fff;border-radius:12px;padding:12px 30px;font-size:clamp(17px,2.2vw,27px);font-weight:1000;box-shadow:0 7px #15803d,0 11px 14px #0000004d}.pixel-btn:active,.confirm-btn:active{transform:translateY(5px);box-shadow:0 2px #15803d}.rules{text-align:left;background:#092462e0;border:4px solid #fff;border-radius:22px;width:min(980px,90vw);max-height:65vh;padding:clamp(16px,2.5vw,30px);font-size:clamp(16px,1.6vw,23px);line-height:1.48;overflow:hidden;box-shadow:0 0 0 4px #172554,10px 10px #0000004d}.rules h2{color:var(--yellow);margin:.25em 0}.rules p{text-overflow:ellipsis;max-width:100%;margin:.35em 0;overflow:hidden}.rules strong{color:#bbf7d0}#game-screen{z-index:25}.hud{z-index:40;top:max(8px,env(safe-area-inset-top));width:min(1120px,94vw);height:var(--hud-h);background:#020617ad;border:3px solid #ffffffd1;border-radius:16px;grid-template-columns:minmax(390px,1fr) auto auto;align-items:center;gap:12px;padding:8px 13px;display:grid;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #00000047}.hearts{grid-template-columns:repeat(12,minmax(15px,1fr));gap:5px;display:grid}.heart{aspect-ratio:1.1;clip-path:polygon(50% 100%,3% 45%,3% 22%,20% 4%,34% 4%,50% 19%,66% 4%,80% 4%,97% 22%,97% 45%);filter:drop-shadow(2px 2px #00000073);background:#475569}.heart.done{background:#ef4444}.heart.active{background:#fb7185;animation:1s ease-in-out infinite pulse}@keyframes pulse{50%{filter:drop-shadow(0 0 8px #fb7185);transform:scale(1.12)}}.status{text-align:center;white-space:nowrap;font-size:clamp(12px,1.3vw,18px);font-weight:900;line-height:1.18}.timers{gap:8px;display:flex}.timer{text-align:center;min-width:96px;color:var(--yellow);white-space:nowrap;background:#0000008c;border:2px solid #fff;border-radius:10px;padding:6px 8px;font-weight:1000}.timer small{color:#bfdbfe;font-size:11px;display:block}.timer.warning{color:#ef4444;border-color:#ef4444;animation:.3s linear infinite timerWorry}@keyframes timerWorry{25%{transform:translate(-2px)}75%{transform:translate(2px)}}.game-main{z-index:10;top:calc(var(--hud-h) + 24px);left:var(--land);right:var(--land);bottom:var(--safe-bottom);flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex;position:absolute;overflow:hidden}.module-rule{text-overflow:ellipsis;-webkit-line-clamp:2;text-align:center;width:min(940px,100%);max-height:50px;color:var(--yellow);text-shadow:2px 2px #000;-webkit-box-orient:vertical;font-size:clamp(16px,1.8vw,24px);font-weight:1000;line-height:1.05;display:-webkit-box;overflow:hidden}.game-card{width:min(960px,100%);height:min(570px,calc(100dvh - var(--hud-h) - var(--safe-bottom) - 58px));background:linear-gradient(#12367eeb,#081f52f0);border:4px solid #fff;border-radius:22px;justify-content:center;align-items:center;max-width:100%;max-height:100%;padding:clamp(10px,1.7vw,20px);display:flex;position:relative;overflow:hidden;box-shadow:0 0 0 4px #172554,10px 10px #0000004d,inset 0 0 34px #60a5fa2e}.stage{flex-direction:column;justify-content:center;align-items:center;gap:clamp(8px,1.5vh,16px);width:100%;max-width:100%;height:100%;max-height:100%;display:flex;overflow:hidden}.question{text-overflow:ellipsis;-webkit-line-clamp:3;text-align:center;text-shadow:2px 2px #000;-webkit-box-orient:vertical;max-width:94%;max-height:76px;font-size:clamp(19px,2.4vw,34px);font-weight:1000;line-height:1.16;display:-webkit-box;overflow:hidden}.option-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.2vw,14px);width:min(850px,96%);max-width:96%;max-height:60%;display:grid;overflow:hidden}.choice{text-overflow:ellipsis;-webkit-line-clamp:3;text-align:center;background:var(--cream);min-height:58px;max-height:92px;color:var(--ink);border:3px solid #c0841a;border-radius:14px;-webkit-box-orient:vertical;place-content:center;padding:9px;font-size:clamp(14px,1.5vw,21px);font-weight:900;line-height:1.13;display:-webkit-box;overflow:hidden;box-shadow:0 5px #805406}.choice:hover,.choice.selected{outline:4px solid var(--yellow);transform:translateY(-3px);box-shadow:0 8px #805406}.confirm-btn{background:#3b82f6;padding:9px 28px;font-size:clamp(16px,1.8vw,23px);box-shadow:0 6px #1d4ed8}.confirm-btn:active{box-shadow:0 2px #1d4ed8}.train-track{width:100%;padding:4px 0 16px;overflow:hidden}.train-row{justify-content:center;align-items:flex-end;gap:10px;transition:transform .95s cubic-bezier(.55,.03,.3,1),opacity .95s;display:flex}.engine{background:#38bdf8;border:4px solid #0c4a6e;border-radius:28px 28px 12px 12px;flex:0 0 82px;justify-content:center;align-items:center;width:82px;height:104px;font-size:42px;display:flex;position:relative;box-shadow:inset 8px 8px #ffffff3d}.train-car{color:#1f2937;text-align:center;text-overflow:ellipsis;background:#fde8b2;border:4px solid #a16207;border-radius:18px;flex:none;justify-content:center;align-items:center;width:clamp(155px,17vw,205px);height:clamp(88px,12vh,116px);padding:10px;font-size:clamp(17px,1.8vw,24px);font-weight:1000;line-height:1.12;display:flex;position:relative;overflow:hidden;box-shadow:0 6px #713f12}.train-car:after,.engine:after{content:"";background:#1f2937;border-radius:50%;width:25px;height:25px;position:absolute;bottom:-17px;left:16px;box-shadow:52px 0 #1f2937}.engine:after{box-shadow:42px 0 #1f2937}.train-car.missing{background:repeating-linear-gradient(135deg,#fff 0 13px,#d1d5db 13px 26px);border-style:dashed}.train-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(880px,98%);display:grid}.car-choice{-webkit-line-clamp:unset;justify-content:center;align-items:center;height:78px;min-height:78px;max-height:78px;font-size:clamp(15px,1.45vw,20px);display:flex}.scroll{background:linear-gradient(90deg,#b7791f 0 5%,#fff0bd 8% 92%,#b7791f 95%);border:4px solid #713f12;border-radius:42px;justify-content:center;align-items:center;width:min(680px,90%);height:clamp(110px,18vh,160px);padding:12px 42px;display:flex;position:relative;box-shadow:0 8px #00000047}.scroll-text{text-overflow:ellipsis;-webkit-line-clamp:3;color:#6b4215;max-width:100%;max-height:100%;text-shadow:none;text-align:center;-webkit-box-orient:vertical;font-size:clamp(22px,3.4vw,46px);font-weight:1000;line-height:1.12;display:-webkit-box;overflow:hidden}.diamonds{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,24px);width:min(820px,94%);display:grid}.diamond{aspect-ratio:1.2;color:#fff;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);filter:drop-shadow(0 8px #312e81);text-align:center;text-overflow:ellipsis;background:linear-gradient(135deg,#60a5fa,#7c3aed);border:4px solid #fef3c7;justify-content:center;align-items:center;max-height:125px;padding:18% 13%;font-size:clamp(13px,1.45vw,20px);font-weight:1000;line-height:1.1;display:flex;overflow:hidden}.diamond.selected{filter:drop-shadow(0 0 18px #fde047);background:linear-gradient(135deg,#fde047,#f97316)}.sequence{justify-content:center;align-items:flex-end;gap:8px;width:100%;min-height:125px;display:flex}.step{background:var(--cream);color:#1e293b;width:clamp(68px,8vw,100px);height:clamp(54px,8vh,76px);transform:translateY(var(--rise,0));border:3px solid #facc15;border-radius:14px;justify-content:center;align-items:center;font-size:clamp(20px,2.6vw,34px);font-weight:1000;display:flex;box-shadow:0 6px #92400e}.step:first-child{--rise:28px}.step:nth-child(2){--rise:17px}.step:nth-child(3){--rise:6px}.step:nth-child(4){--rise:-5px}.step:nth-child(5){--rise:-16px}.step:nth-child(6){--rise:-27px}.step.blank{background:#fde68a;border-style:dashed}.orbs{flex-wrap:wrap;justify-content:center;gap:clamp(10px,2vw,24px);display:flex}.orb{color:#0f172a;background:radial-gradient(circle at 30% 25%,#fff,#bfdbfe 45%,#3b82f6 75%);border:3px solid #fff;border-radius:50%;width:clamp(58px,7vw,78px);height:clamp(58px,7vw,78px);font-size:clamp(18px,2vw,26px);font-weight:1000;box-shadow:0 6px #1e40af}.orb.selected{outline:5px solid var(--yellow);transform:translateY(-5px)}.m2-wrap{grid-template-columns:auto 1fr;align-items:center;gap:clamp(22px,4vw,50px);width:min(820px,94%);display:grid}.number-grid{background:#fff;border:5px solid #172033;grid-template-rows:repeat(3,clamp(58px,7vw,78px));grid-template-columns:repeat(3,clamp(58px,7vw,78px));gap:5px;padding:9px;display:grid;box-shadow:7px 7px #00000059}.num-cell{color:#172033;background:#dbeafe;border:2px solid #64748b;justify-content:center;align-items:center;font-size:clamp(19px,2.3vw,30px);font-weight:1000;display:flex}.num-cell.hole{background:#fef3c7;border:4px dashed #f59e0b}.balls{grid-template-columns:repeat(2,1fr);gap:13px;display:grid}.baseball{color:#172554;background:radial-gradient(circle at 30% 25%,#fff 0 45%,#fee2e2 46% 58%,#fff 59%);border:3px solid #94a3b8;border-radius:50%;justify-self:center;width:clamp(66px,8vw,86px);height:clamp(66px,8vw,86px);font-size:clamp(18px,2vw,25px);font-weight:1000;box-shadow:0 6px #64748b}.baseball.selected{outline:5px solid var(--yellow);transform:translateY(-4px)}.equation{background:var(--cream);color:#172033;text-align:center;border:4px solid #f59e0b;border-radius:20px;justify-content:center;align-items:center;width:min(850px,94%);min-height:130px;padding:20px;font-size:clamp(28px,4.3vw,60px);font-weight:1000;line-height:1.1;display:flex;box-shadow:0 7px #92400e}.socket{vertical-align:middle;background:#dbeafe;border:4px dashed #3b82f6;border-radius:12px;justify-content:center;align-items:center;width:1.35em;height:1.25em;margin:0 .12em;display:inline-flex}.operators{gap:clamp(14px,3vw,34px);display:flex}.op{color:#fff;background:#7c3aed;border:4px solid #fff;border-radius:15px;width:clamp(64px,8vw,92px);height:clamp(58px,8vh,80px);font-size:clamp(30px,4vw,48px);font-weight:1000;box-shadow:0 6px #4c1d95}.op.selected{outline:5px solid var(--yellow);transform:translateY(-5px)}.chest-question{text-overflow:ellipsis;-webkit-line-clamp:4;background:var(--cream);color:#172033;max-width:90%;max-height:100px;text-shadow:none;text-align:center;border:4px solid #f59e0b;border-radius:16px;-webkit-box-orient:vertical;padding:11px 18px;font-size:clamp(16px,1.8vw,24px);font-weight:900;line-height:1.2;display:-webkit-box;overflow:hidden;box-shadow:0 6px #92400e}.chest{font-size:clamp(74px,10vw,120px);line-height:1;transition:transform .55s;position:relative}.chest.open{animation:.8s chestOpen}.chest.open:after{content:"✨💻⌨️🎧✨";white-space:nowrap;font-size:.32em;animation:.9s forwards loot;position:absolute;top:-22px;left:50%;transform:translate(-50%)}@keyframes chestOpen{40%{transform:scale(1.18)rotate(-4deg)}70%{transform:scale(.96)rotate(3deg)}}@keyframes loot{0%{opacity:0;transform:translate(-50%,30px)scale(.2)}60%{opacity:1;transform:translate(-50%,-60px)scale(1.2)}to{opacity:0;transform:translate(-50%,-95px)scale(.9)}}.answer-input{color:#172033;text-align:center;background:#fff;border:4px solid #172033;border-radius:12px;width:min(520px,85%);height:58px;font-size:clamp(20px,2.5vw,32px);font-weight:1000}.quick-answers{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.quick-answers button{color:#fff;background:#3b82f6;border:3px solid #fff;border-radius:10px;min-width:72px;padding:7px 12px;font-weight:900}.water-stage{grid-template-rows:1fr 8px 1.35fr auto;gap:8px;width:min(880px,96%);height:100%;display:grid;position:relative}.surface,.reflection-zone{border:3px solid #ffffffa6;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;padding:10px;display:flex;overflow:hidden}.surface{background:linear-gradient(#c7f0ff,#7dd3fc)}.reflection-zone{background:linear-gradient(#164e63,#0369a1 55%,#0c4a6e);position:relative}.water-line{background:repeating-linear-gradient(90deg,#fff 0 15px,#38bdf8 15px 28px);box-shadow:0 0 14px #67e8f9}.water-label{color:#0c4a6e;font-weight:1000}.surface-word{text-overflow:ellipsis;white-space:nowrap;color:#172033;max-width:90%;font-size:clamp(26px,4vw,54px);font-weight:1000;overflow:hidden}.reflection-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%;display:grid}.reflection-choice{color:#082f49;background:#e0f2fedb;border:3px solid #bae6fd;border-radius:12px;min-height:66px;overflow:hidden}.reflection-choice span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:clamp(15px,1.55vw,22px);font-weight:1000;display:block;overflow:hidden;transform:scaleY(-1)}.reflection-choice.selected{outline:5px solid var(--yellow)}.shooter{cursor:none;grid-template-rows:auto auto 1fr auto;gap:8px;width:min(920px,98%);height:100%;display:grid;position:relative}.target-seq{color:var(--yellow);text-align:center;font-size:clamp(17px,2vw,27px);font-weight:1000}.shot-progress{justify-content:center;gap:5px;min-height:28px;display:flex}.shot-progress span{border-bottom:3px solid #fde047;min-width:24px;padding:2px 5px;font-size:20px;font-weight:1000}.balloon-field{background:linear-gradient(#3b82f62e,#1e40af5c);border:3px solid #ffffffa6;border-radius:18px;position:relative;overflow:hidden}.balloon{background:var(--balloon,#f97316);color:#fff;text-shadow:2px 2px #000;width:clamp(54px,6vw,72px);height:clamp(66px,8vh,88px);animation:floatBalloon var(--dur,5s) ease-in-out infinite alternate;border:3px solid #fffc;border-radius:50% 50% 46% 46%;font-size:clamp(20px,2.4vw,31px);font-weight:1000;position:absolute;box-shadow:inset 9px 8px #ffffff42,0 8px #0000002e}.balloon:after{content:"";background:#fff;width:2px;height:18px;position:absolute;bottom:-18px;left:50%}@keyframes floatBalloon{to{transform:translate(var(--dx,18px),-24px) rotate(4deg)}}@keyframes pop{to{opacity:0;transform:scale(1.6)}}.crosshair{z-index:70;pointer-events:none;border:3px solid #ef4444;border-radius:50%;width:38px;height:38px;display:none;position:fixed}.crosshair:before,.crosshair:after{content:"";background:#ef4444;position:absolute}.crosshair:before{width:48px;height:2px;top:16px;left:-8px}.crosshair:after{width:2px;height:48px;top:-8px;left:16px}.shooter-actions{justify-content:center;gap:10px;display:flex}.secondary{color:#fff;background:#64748b;border:3px solid #fff;border-radius:11px;padding:8px 16px;font-weight:900}.matrix-stage{gap:10px}.matrix-top{align-items:center;gap:22px;display:flex}.matrix-label{color:var(--yellow);font-weight:1000}.matrix{background:#fff;border:4px solid #172033;gap:3px;padding:6px;display:grid;box-shadow:5px 5px #00000047}.matrix-cell{background:#f8fafc;border:1px solid #cbd5e1;width:clamp(15px,2.5vw,28px);height:clamp(15px,2.5vw,28px)}.matrix-cell.on{background:#475569}.matrix-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;width:100%;display:grid}.matrix-choice{background:var(--cream);border:4px solid #a16207;border-radius:14px;justify-content:center;align-items:center;min-height:105px;padding:6px;display:flex;box-shadow:0 5px #713f12}.matrix-choice.selected{outline:5px solid var(--yellow);transform:translateY(-3px)}.matrix-choice .matrix-cell{width:clamp(10px,1.55vw,18px);height:clamp(10px,1.55vw,18px)}.tool-dock{z-index:60;right:calc(var(--land) + 12px);bottom:max(14px,env(safe-area-inset-bottom));gap:8px;display:flex;position:absolute}.tool-btn{color:#fff;background:#111827;border:3px solid #fff;border-radius:12px;width:50px;height:50px;font-size:24px;box-shadow:0 5px #0006}.calc{z-index:62;right:calc(var(--land) + 12px);background:#0f172a;border:4px solid #fff;border-radius:15px;width:226px;padding:9px;display:none;position:absolute;bottom:76px;box-shadow:8px 8px #00000059}.calc.show{display:block}.calc-display{color:#172033;text-align:right;text-overflow:ellipsis;white-space:nowrap;background:#e5e7eb;border:3px solid #000;height:43px;padding:8px;font-size:17px;font-weight:900;overflow:hidden}.calc-grid{grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px;display:grid}.calc-grid button{color:#fff;background:#3b82f6;border:2px solid #fff;height:35px;font-weight:900}.calc-grid .opk{background:#f59e0b}.draw-canvas{z-index:55;touch-action:none;background:#ffffff06;display:none;position:absolute;inset:0}.draw-canvas.show{display:block}.draw-panel{z-index:63;right:calc(var(--land) + 72px);background:#0f172aeb;border:3px solid #fff;border-radius:12px;align-items:center;gap:7px;padding:7px;display:none;position:absolute;bottom:14px}.draw-panel.show{display:flex}.draw-panel button{color:#fff;background:#475569;border:2px solid #fff;border-radius:8px;padding:7px 10px;font-weight:900}.draw-panel input{width:90px}#result-screen .result-box{background:#092462e6;border:4px solid #fff;border-radius:22px;width:min(760px,90vw);padding:28px;box-shadow:0 0 0 4px #172554,10px 10px #0000004d}.result-box h2{margin:.2em;font-size:clamp(30px,5vw,62px)}.result-box p{font-size:clamp(17px,2vw,25px)}@media (width<=1050px){:root{--land:78px}.trees-left,.buildings-right{transform-origin:bottom;transform:scale(.72)}.trees-left{left:-10px}.buildings-right{right:-8px}.mascot-wrap{display:none}.game-main{left:70px;right:70px}.tool-dock,.calc{right:86px}.draw-panel{right:145px}.hud{grid-template-columns:1fr auto}.status{grid-area:2/1/auto/-1}.hud{height:96px}.game-main{top:112px}.game-card{height:calc(100dvh - 112px - var(--safe-bottom) - 38px)}}@media (width<=760px){:root{--land:0px;--safe-bottom:76px}.scenery{opacity:.45}.trees-left,.buildings-right{transform:scale(.46)}.trees-left{left:-28px}.buildings-right{right:-26px}.hud{grid-template-columns:1fr;gap:4px;width:96vw;height:104px;padding:6px;top:5px}.hearts{gap:3px}.status{grid-area:auto;font-size:12px}.timers{justify-content:center}.timer{min-width:88px;padding:4px 7px}.game-main{top:114px;left:8px;right:8px;bottom:var(--safe-bottom)}.module-rule{max-height:34px;font-size:15px}.game-card{width:100%;height:calc(100dvh - 114px - var(--safe-bottom) - 38px);padding:9px}.option-grid,.train-options,.diamonds,.pool{grid-template-columns:repeat(2,minmax(0,1fr))}.train-row{transform-origin:50%;transform:scale(.78)}.train-row.depart{transform:translate(-130vw)scale(.78)}.train-options{gap:6px}.car-choice{height:60px;min-height:60px}.logic-grid{grid-template-columns:repeat(2,1fr)}.logic-card{min-height:128px}.shape-grid,.matrix-choices{grid-template-columns:repeat(3,1fr)}.shape-choice{height:90px}.reflection-options{grid-template-columns:repeat(2,1fr)}.m2-wrap{grid-template-columns:1fr;gap:10px}.number-grid{justify-self:center}.balls{grid-template-columns:repeat(4,1fr)}.tool-dock{bottom:10px;right:12px}.calc{bottom:66px;right:12px}.draw-panel{flex-wrap:wrap;max-width:calc(100vw - 88px);bottom:10px;right:70px}.assembly{grid-template-columns:1fr}.discard{min-height:55px}.scroll{height:100px}.question{font-size:18px}.rules{max-height:60vh}}@media (width<=480px){.shape-grid,.matrix-choices{grid-template-columns:repeat(2,1fr)}.logic-card{min-height:116px;padding:8px}.judge button{font-size:12px}.train-row{transform:scale(.63)}.train-row.depart{transform:translate(-140vw)scale(.63)}.train-options{grid-template-columns:repeat(2,1fr)}.diamonds{gap:8px}.diamond{font-size:12px}.sequence{transform:scale(.82)}.balls{gap:5px}.baseball{width:54px;height:54px}.shooter-actions{gap:5px}.confirm-btn{padding:8px 18px}.tool-btn{width:43px;height:43px}}@media (height<=700px){:root{--safe-bottom:70px;--hud-h:62px}.hud{height:62px}.game-main{top:78px}.game-card{height:calc(100dvh - 78px - var(--safe-bottom) - 38px)}.stage{gap:7px}.question{max-height:52px;font-size:18px}.train-car{height:78px}.engine{height:88px}.logic-card{min-height:125px}.shape-choice,.matrix-choice{height:82px;min-height:82px}.scroll{height:92px}.water-stage{grid-template-rows:.8fr 6px 1fr auto}.tool-dock{bottom:9px}}.trees-left{left:clamp(16px,1.8vw,28px)!important;overflow:visible!important}.buildings-right{right:clamp(10px,1.4vw,22px)!important;overflow:visible!important}.trees-left .tree:first-child{margin-left:4px}.tool-dock,.calc{right:calc(var(--land) + clamp(16px,1.8vw,28px))!important}.draw-panel{right:calc(var(--land) + clamp(76px,7.3vw,104px))!important}.tool-dock{z-index:160!important}.calc{z-index:164!important}@media (width<=1050px){:root{--land:82px}.trees-left{transform-origin:0 100%!important;left:6px!important}.buildings-right{transform-origin:100% 100%!important;right:4px!important}.tool-dock,.calc{right:98px!important}.draw-panel{right:158px!important}}@media (width<=760px){:root{--land:52px;--safe-bottom:76px}.scenery{opacity:.62!important}.trees-left,.buildings-right{transform:scale(.34)!important}.trees-left{transform-origin:0 100%!important;left:2px!important}.buildings-right{transform-origin:100% 100%!important;right:2px!important}.game-main{left:54px!important;right:54px!important}.tool-dock{bottom:10px!important;right:62px!important}.calc{bottom:66px!important;right:62px!important}.draw-panel{max-width:calc(100vw - 132px)!important;bottom:10px!important;right:120px!important}}@media (width<=430px){:root{--land:42px}.trees-left,.buildings-right{transform:scale(.28)!important}.game-main{left:44px!important;right:44px!important}.tool-dock{right:50px!important}.calc{width:min(226px,100vw - 62px)!important;right:50px!important}.draw-panel{max-width:calc(100vw - 118px)!important;right:108px!important}}:root{--hud-h:50px;--safe-bottom:76px;--land:clamp(96px,11vw,154px)}html,body,#app{overscroll-behavior:none!important;width:100vw!important;max-width:100vw!important;height:100vh!important;max-height:100vh!important;overflow:hidden!important}body{position:fixed;inset:0}#app{height:100dvh!important}.scenery{overflow:visible!important}.trees-left,.buildings-right{width:var(--land)!important;bottom:0!important}.trees-left{left:clamp(10px,1.3vw,22px)!important}.buildings-right{right:clamp(10px,1.3vw,22px)!important}.center-stack{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:clamp(10px,2vh,22px);width:100%;height:100%;padding:clamp(14px,3vh,34px) clamp(14px,3vw,42px);display:flex}.pixel-title{color:#fff;letter-spacing:4px;text-shadow:4px 0 #1e3a8a,-4px 0 #1e3a8a,0 4px #1e3a8a,0 -4px #1e3a8a,4px 4px #000;margin:0;font-weight:1000}.home-title{font-size:clamp(34px,6.6vw,82px);line-height:1.16}.subtitle{background:var(--yellow);color:#1e3a8a;letter-spacing:.08em;border:3px solid #000;padding:9px 16px;font-size:clamp(10px,1.05vw,14px);font-weight:1000;box-shadow:0 4px #b45309}.candidate-entry{text-align:left;flex-direction:column;align-items:stretch;gap:7px;width:min(390px,84vw);display:flex}.candidate-entry label{color:#fde047;text-shadow:2px 2px #000;font-size:clamp(15px,1.5vw,19px);font-weight:1000}.candidate-entry input{color:#172033;background:#fffffff5;border:4px solid #fff;border-radius:12px;outline:none;width:100%;min-height:54px;padding:10px 14px;font-size:clamp(17px,1.8vw,22px);font-weight:900;box-shadow:0 5px #1e3a8a,0 9px 14px #00000042}.candidate-entry input:focus{border-color:#fde047;box-shadow:0 5px #b45309,0 0 0 4px #facc154d}.candidate-entry input[aria-invalid=true]{border-color:#fca5a5;box-shadow:0 5px #991b1b,0 0 0 4px #ef444440}.candidate-error{color:#fecaca;text-align:center;text-shadow:1px 1px #000;min-height:20px;margin:0;font-size:14px;font-weight:900}.rules-title{font-size:clamp(28px,4.5vw,56px);line-height:1}.rules-page-stack{gap:clamp(7px,1.25vh,14px)}.rules-box{scrollbar-gutter:stable;text-align:left;background:#143178c7;border:4px solid #fff;border-radius:18px;flex-direction:column;align-items:stretch;gap:clamp(3px,.45vh,7px);width:min(900px,90vw);max-height:min(68vh,610px);padding:clamp(14px,2vw,24px);font-size:clamp(12px,1.15vw,17px);line-height:1.38;display:flex;overflow:hidden auto;box-shadow:0 0 0 4px #172554,8px 8px #00000059}.rules-box p,.rules-box h2{margin:.24em 0}.rules-box h2{color:#fde047;font-size:1.08em}.rules-box b{color:#fde047}.rules-welcome,.rules-alert,.rules-ready{width:100%}.rules-alert{color:#fee2e2;background:#7f1d1d4d;border-left:4px solid #ef4444;padding:6px 9px}.rules-divider{display:none}.hud{top:max(7px,env(safe-area-inset-top))!important;width:min(900px,94vw)!important;height:var(--hud-h)!important;border-width:2px!important;border-radius:13px!important;grid-template-columns:minmax(220px,1fr) auto auto!important;gap:clamp(6px,1vw,12px)!important;padding:5px 9px!important}.hearts{justify-content:flex-start!important;align-items:center!important;gap:clamp(2px,.38vw,5px)!important;display:flex!important}.heart{flex:none;aspect-ratio:auto!important;width:clamp(12px,1.7vw,19px)!important;height:clamp(11px,1.55vw,17px)!important}.status{color:#fff;background:#1e40afbd;border:2px solid #ffffffd1;border-radius:999px;min-width:clamp(66px,8vw,102px);padding:5px 9px;white-space:nowrap!important;font-size:clamp(11px,1.15vw,15px)!important;line-height:1!important}.status b{color:#fff!important}.timers{gap:5px!important}.timer{border-width:2px!important;border-radius:8px!important;min-width:clamp(68px,7vw,84px)!important;padding:3px 6px!important;font-size:clamp(11px,1.1vw,15px)!important;line-height:1.05!important}.timer small{margin-right:3px;font-size:clamp(8px,.75vw,10px)!important;display:inline!important}.game-main{top:calc(var(--hud-h) + 18px)!important;left:var(--land)!important;right:var(--land)!important;bottom:var(--safe-bottom)!important}.game-card{height:min(590px,calc(100dvh - var(--hud-h) - var(--safe-bottom) - 48px))!important}.tool-dock{right:calc(var(--land) + 10px)!important;bottom:max(12px,env(safe-area-inset-bottom))!important;z-index:160!important}.calc{right:calc(var(--land) + 10px)!important;z-index:164!important;bottom:72px!important}.draw-panel{right:calc(var(--land) + 68px)!important;z-index:165!important;bottom:12px!important}.status{justify-content:center!important;align-items:center!important;gap:7px!important;display:flex!important}.status .domain-count{color:#fde047;white-space:nowrap;font-size:.82em;font-weight:1000}.heart.future{opacity:.48;filter:saturate(.45);background:#1e293b!important}.heart.completion{outline-offset:2px;outline:1px dashed #fde047bf}.game-card.slide-in{animation:.34s both moduleSlideIn}.game-card.slide-out{animation:.42s forwards moduleSlideOut}@keyframes moduleSlideIn{0%{opacity:0;transform:translate(44px)scale(.975)}to{opacity:1;transform:translate(0)scale(1)}}@keyframes moduleSlideOut{0%{opacity:1;transform:translate(0)scale(1)}to{opacity:0;transform:translate(-74px)scale(.97)}}.phase-note{color:#bfdbfe;text-align:center;opacity:.9;font-size:clamp(10px,1vw,13px)}.train-stage{gap:clamp(7px,1.2vh,13px)!important}.train-question{text-align:center;color:#fff;text-shadow:2px 2px #000;max-width:95%;font-size:clamp(17px,2.1vw,29px);font-weight:1000;line-height:1.16}.train-track{width:100%;overflow:hidden;padding:4px 8px 18px!important}.train-row{width:100%;align-items:flex-end!important;gap:clamp(7px,1vw,12px)!important}.train-row.depart{opacity:.12!important;transform:translate(125vw)!important}.engine{flex-basis:clamp(54px,6vw,72px)!important;width:clamp(54px,6vw,72px)!important;height:clamp(68px,9vh,88px)!important;font-size:clamp(29px,3.6vw,40px)!important}.train-car{aspect-ratio:1.95!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-all!important;flex:0 clamp(132px,15.5vw,186px)!important;width:clamp(132px,15.5vw,186px)!important;height:clamp(74px,10vh,96px)!important;padding:8px 10px!important;font-size:clamp(16px,1.7vw,23px)!important;line-height:1.04!important;overflow:hidden!important}.train-pair{flex-direction:column;justify-content:center;align-items:center;gap:3px;width:100%;height:100%;display:flex}.train-pair span{text-align:center;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.train-pair i{background:#713f12;border-radius:2px;width:42%;height:2px;display:block}.train-car.gap{color:#64748b;background:repeating-linear-gradient(135deg,#f8fafc 0 12px,#d1d5db 12px 24px);border-style:dashed}.train-car.gap.drag-over{outline:5px solid #fde047;transform:translateY(-4px)}.train-options{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:min(760px,96%)!important}.car-choice{white-space:normal!important;word-break:break-all!important;justify-content:center!important;align-items:center!important;height:clamp(66px,8.8vh,84px)!important;min-height:0!important;max-height:none!important;padding:7px!important;display:flex!important;overflow:hidden!important}.diamonds{align-items:center;grid-template-columns:repeat(4,minmax(0,1fr))!important}.diamond{text-wrap:balance;aspect-ratio:1!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;justify-content:center!important;align-items:center!important;max-height:138px!important;padding:22% 16%!important;line-height:1.05!important;display:flex!important}.math-app-stage{justify-content:center!important;gap:clamp(8px,1.4vh,15px)!important}.math-question{text-align:center;text-shadow:2px 2px #000;justify-content:center;align-items:center;width:min(860px,96%);min-height:72px;max-height:35%;padding:5px 10px;font-size:clamp(17px,2.25vw,31px);font-weight:1000;line-height:1.28;display:flex;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;overflow:visible!important}.math-app-stage .chest{font-size:clamp(52px,8vw,94px)}.math-app-stage .quick-answers{flex-wrap:wrap;justify-content:center;gap:8px;max-width:92%;display:flex}.c1-stage{flex-direction:column;justify-content:center;align-items:center;gap:clamp(10px,2vh,20px);width:min(860px,96%);height:100%;display:flex}.c1-question-text{color:#111827;white-space:normal;overflow-wrap:anywhere;text-align:center;background:#fff;border:3px solid #333;border-radius:12px;max-width:92%;padding:clamp(10px,1.5vh,16px) clamp(18px,3vw,34px);font-size:clamp(23px,3.4vw,44px);font-weight:1000;animation:3s ease-in-out infinite c1Float;box-shadow:0 4px 6px #0000004d}@keyframes c1Float{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}.c1-water-line{background:linear-gradient(90deg,#0000,#ffffff8c 20%,#fff 50%,#ffffff8c 80%,#0000);width:92%;height:4px;animation:2s ease-in-out infinite c1Shimmer}@keyframes c1Shimmer{0%,to{opacity:.58}50%{opacity:1}}.c1-reflections{flex-wrap:wrap;justify-content:center;gap:clamp(7px,1.2vw,14px);width:100%;display:flex}.c1-reflection-item{color:#111827;opacity:.84;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center;background:#ffffffe0;border:2px solid #6496c8b8;border-radius:9px;max-width:clamp(130px,17vw,190px);min-height:clamp(54px,8vh,72px);padding:9px 14px;font-size:clamp(14px,1.55vw,21px);font-weight:1000;transition:opacity .2s,box-shadow .2s,transform .2s;animation:3s ease-in-out infinite c1Ripple;transform:none!important}.c1-reflection-item:hover{opacity:1;box-shadow:0 0 15px #6496ffa6}.c1-reflection-item.selected{opacity:1;outline:5px solid #fde047;box-shadow:0 0 20px #6496ffe6}@keyframes c1Ripple{0%,to{filter:blur(.25px);scale:1}50%{filter:blur(.75px);scale:.985 1}}.c1-reflection-item,.c1-reflection-item *{transform:none!important}.shooter{cursor:default!important}.balloon-field{cursor:default;touch-action:none;min-height:210px}.balloon-field.aiming{cursor:none}.balloon{will-change:transform;justify-content:center;align-items:center;padding:0;display:flex;top:0;left:0;transform:translate(0,0);animation:none!important}.balloon.pop{animation:.28s forwards c2Pop!important}@keyframes c2Pop{to{transform:var(--last-transform) scale(1.6);opacity:0}}.crosshair{z-index:180!important}#particle-canvas{z-index:145;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}@media (width<=900px){:root{--land:76px;--hud-h:48px}.hud{grid-template-columns:minmax(185px,1fr) auto auto!important;width:96vw!important}.game-main{top:64px!important;left:66px!important;right:66px!important}.tool-dock,.calc{right:84px!important}.draw-panel{right:142px!important}.rules-box{width:92vw;font-size:clamp(11px,1.45vw,15px)}}@media (width<=680px){:root{--land:0px;--hud-h:48px;--safe-bottom:68px}.scenery{opacity:.42}.trees-left,.buildings-right{transform-origin:bottom;transform:scale(.48)}.trees-left{left:-18px!important}.buildings-right{right:-16px!important}.hud{grid-template-columns:minmax(132px,1fr) auto auto!important;gap:4px!important;width:98vw!important;padding:4px 6px!important}.heart{width:11px!important;height:10px!important}.hearts{gap:2px!important}.status{min-width:54px;padding:4px 6px;font-size:10px!important}.timer{min-width:62px!important;padding:3px 4px!important;font-size:10px!important}.timer small{font-size:7px!important}.game-main{top:62px!important;left:7px!important;right:7px!important;bottom:var(--safe-bottom)!important}.game-card{height:calc(100dvh - 62px - var(--safe-bottom) - 36px)!important;padding:8px!important}.tool-dock{bottom:9px!important;right:10px!important}.calc{bottom:63px!important;right:10px!important}.draw-panel{bottom:9px!important;right:66px!important}.train-row{transform-origin:50%;transform:scale(.82)}.train-row.depart{transform:translate(135vw)scale(.82)!important}.train-options,.diamonds{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rules-box{max-height:70vh;padding:9px 11px;font-size:clamp(9px,2.35vw,13px);line-height:1.2;grid-template-columns:1fr!important}.rules-welcome,.rules-alert,.rules-ready{grid-column:auto}.rules-box p,.rules-box h2{margin:.13em 0}.rules-title{font-size:28px}.rules-page-stack{gap:5px}.c1-reflections{gap:6px}.c1-reflection-item{max-width:46%;min-height:48px;padding:6px 8px;font-size:13px}}@media (width<=430px){.hud{grid-template-columns:minmax(118px,1fr) auto auto!important}.heart{width:9px!important;height:9px!important}.hearts{gap:1px!important}.status{min-width:46px;font-size:9px!important}.timer{min-width:55px!important;font-size:9px!important}.timer small{display:none!important}.train-row{transform:scale(.66)}.train-row.depart{transform:translate(145vw)scale(.66)!important}.train-options{gap:5px!important}.car-choice{height:53px!important}.diamond{font-size:11px!important}}@media (height<=700px){:root{--hud-h:44px;--safe-bottom:64px}.hud{height:44px!important}.game-main{top:56px!important}.game-card{height:calc(100dvh - 56px - var(--safe-bottom) - 32px)!important}.rules-box{max-height:68vh;font-size:clamp(10px,1.05vw,14px);line-height:1.18}.rules-page-stack{gap:5px}.train-car{height:62px!important}.car-choice{height:54px!important}.math-question{min-height:58px}}@media (width<=760px){.scenery{opacity:.72!important}.trees-left,.buildings-right{bottom:0!important;transform:scale(.26)!important}.trees-left{transform-origin:0 100%!important;left:4px!important}.buildings-right{transform-origin:100% 100%!important;right:4px!important}.tool-dock,.calc{right:72px!important}.draw-panel{right:130px!important}}#rules-screen .rules-box{scrollbar-gutter:stable;overflow:hidden auto!important}#game-screen,#game-screen .game-main,#game-screen .game-card{overflow:hidden!important}:root{--hud-h:58px}.hud{width:min(920px,94vw)!important;height:var(--hud-h)!important;grid-template-columns:minmax(0,1fr) minmax(150px,220px)!important;align-items:center!important;gap:clamp(12px,2vw,28px)!important;padding:7px 12px!important}.domain-progress{white-space:nowrap;justify-content:center;align-items:center;gap:clamp(5px,1.1vw,14px);min-width:0;display:flex;overflow:hidden}.domain-stage{color:#64748b;opacity:.56;letter-spacing:.08em;text-shadow:2px 2px #00000080;justify-content:center;align-items:center;gap:4px;min-width:0;font-size:clamp(13px,1.45vw,20px);font-weight:1000;transition:color .25s,opacity .25s,transform .25s,filter .25s;display:inline-flex}.domain-stage.completed{color:#fde047;opacity:1;filter:drop-shadow(0 0 7px #facc1573)}.domain-stage.active{color:#fff;opacity:1;filter:drop-shadow(0 0 10px #60a5fae6);transform:translateY(-1px)scale(1.04)}.domain-stage.future{color:#475569;opacity:.48}.domain-stage-flag{transform-origin:0 100%;font-size:clamp(13px,1.35vw,19px);display:none}.domain-stage.active .domain-stage-flag{animation:.72s ease-in-out infinite alternate flagWave;display:inline-block}.domain-stage-arrow{color:#475569;opacity:.72;flex:none;font-size:clamp(12px,1.25vw,18px);font-weight:1000}@keyframes flagWave{0%{transform:rotate(-6deg)translateY(0)}to{transform:rotate(5deg)translateY(-2px)}}.visual-timer{--progress:1;color:#dbeafe;pointer-events:none;align-items:center;gap:8px;min-width:0;font-weight:1000;display:flex}.visual-timer-label{letter-spacing:.08em;text-shadow:1px 1px #000;flex:none;font-size:clamp(10px,.95vw,13px)}.visual-timer-track{background:#0f172adb;border:2px solid #ffffffe6;border-radius:999px;width:100%;height:12px;display:block;position:relative;overflow:hidden;box-shadow:inset 0 2px 4px #0000006b,0 0 0 1px #3b82f62e}.visual-timer-fill{width:calc(var(--progress) * 100%);border-radius:inherit;background:linear-gradient(90deg,#22c55e,#38bdf8 64%,#fde047);min-width:0;transition:width .24s linear,background .2s,box-shadow .2s;position:absolute;inset:0 auto 0 0;box-shadow:0 0 12px #38bdf89e}.assessment-clock-timer{color:#fde047;font-variant-numeric:tabular-nums;pointer-events:none;background:#0000007a;border:2px solid #ffffffd1;border-radius:11px;justify-content:center;justify-self:end;align-items:center;gap:7px;width:min(132px,16vw);min-width:104px;padding:5px 9px;font-weight:1000;line-height:1;display:flex;box-shadow:inset 0 2px 4px #00000052}.assessment-clock-timer small{color:#bfdbfe;letter-spacing:.08em;text-shadow:1px 1px #000;font-size:clamp(8px,.78vw,10px)}.assessment-clock-timer span{text-align:center;letter-spacing:.04em;text-shadow:2px 2px #000;min-width:5ch;font-size:clamp(14px,1.45vw,20px)}.assessment-clock-timer.warning{color:#f87171;border-color:#ef4444;animation:.42s steps(2,end) infinite assessmentClockWarning}.assessment-clock-timer.expired{color:#94a3b8}@keyframes assessmentClockWarning{0%,to{opacity:1;filter:brightness()}50%{opacity:.52;filter:brightness(1.5)}}.question-visual-timer{z-index:35;background:#020617cc;border:2px solid #ffffffe6;border-radius:11px;width:min(240px,30vw);padding:6px 9px;position:absolute;top:0;left:auto;right:max(0px,50% - 480px);box-shadow:0 5px 14px #00000047}.visual-timer.warning{animation:.42s steps(2,end) infinite visualTimerWarning;border-color:#ef4444!important}.visual-timer.warning .visual-timer-fill{background:linear-gradient(90deg,#ef4444,#fb7185);box-shadow:0 0 18px #ef4444f2}.visual-timer.expired .visual-timer-fill{width:0!important}@keyframes visualTimerWarning{0%,to{opacity:1;filter:brightness()}50%{opacity:.48;filter:brightness(1.55)}}.game-main{top:calc(var(--hud-h) + 18px)!important;padding-top:clamp(27px,4vh,38px)!important}.module-rule{flex:none}@media (width<=760px){:root{--hud-h:78px}.hud{grid-template-rows:auto auto!important;grid-template-columns:1fr!important;gap:3px!important;width:98vw!important;padding:6px 9px!important}.domain-progress{gap:clamp(5px,2vw,10px);width:100%}.domain-stage{letter-spacing:.02em;font-size:clamp(11px,3.25vw,14px)}.domain-stage-arrow{font-size:11px}.domain-stage-flag{font-size:12px}.assessment-clock-timer{justify-self:end;gap:5px;width:118px;min-width:118px;padding:4px 7px}.assessment-clock-timer small{font-size:8px}.assessment-clock-timer span{font-size:14px}.visual-timer-label{font-size:8px}.visual-timer-track{border-width:1px;height:9px}.game-main{padding-top:30px!important;top:88px!important}.question-visual-timer{width:min(190px,54vw);padding:5px 7px;left:auto;right:2px}}@media (width<=430px){.domain-stage{font-size:11px}.domain-stage-arrow{font-size:9px}.domain-stage-flag{font-size:11px}.assessment-clock-timer{width:112px;min-width:112px}.question-visual-timer{width:155px}}@media (height<=700px){:root{--hud-h:50px}.hud{height:50px!important}.game-main{padding-top:27px!important;top:60px!important}.question-visual-timer{padding:4px 7px}}:root{--stage-gap:clamp(10px,1.7vh,18px);--stage-gap-compact:clamp(7px,1.15vh,12px);--control-radius:14px}.game-card{container-type:size}.stage{justify-content:center;gap:var(--stage-gap)!important;min-height:0!important;padding:clamp(4px,.7vh,9px)!important}.stage>.question,.stage>[class*=question]{flex:none}.stage>.confirm-btn,.stage [data-confirm]{flex:none;margin-top:clamp(2px,.6vh,7px)}.option-grid,.train-options,.diamonds,.v3-source-grid,.v3-target-grid,.v4-chest-grid,.orbs,.operators,.shape-grid,.matrix-choices{max-width:100%;min-height:0}.choice,.v3-card,.v3-target-card,.v4-option-text,.diamond,.shape-choice,.matrix-choice,.confirm-btn{overflow-wrap:anywhere;word-break:break-word}.op{padding:0!important;line-height:1!important}.m1-stage{grid-template-rows:auto minmax(108px,1.15fr) minmax(66px,.72fr) auto;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;width:100%;height:100%;gap:clamp(10px,2vh,22px)!important;display:grid!important}.m1-question{margin:0;max-height:72px!important}.m1-sequence-panel{background:linear-gradient(#0f172a75,#1e40af57);border:3px solid #ffffffb3;border-radius:18px;justify-content:center;align-self:stretch;align-items:center;width:min(890px,96%);height:100%;min-height:0;padding:clamp(13px,2vh,24px) clamp(10px,2vw,22px);display:flex;overflow:hidden}.m1-stage .sequence{align-items:center!important;gap:clamp(7px,1.25vw,14px)!important;height:auto!important;min-height:0!important}.m1-stage .step{transform:translateY(var(--m1-lift,0))!important;width:clamp(56px,7.8vw,94px)!important;height:clamp(50px,7.5vh,72px)!important}.m1-stage .step:first-child{--m1-lift:10px}.m1-stage .step:nth-child(2){--m1-lift:6px}.m1-stage .step:nth-child(3){--m1-lift:2px}.m1-stage .step:nth-child(4){--m1-lift:-2px}.m1-stage .step:nth-child(5){--m1-lift:-6px}.m1-stage .step:nth-child(6){--m1-lift:-10px}.m1-option-zone{justify-content:center;align-self:stretch;align-items:center;width:min(650px,94%);height:100%;min-height:62px;padding:6px 8px;display:flex}.m1-option-zone .orbs{width:100%;flex-wrap:nowrap!important;gap:clamp(9px,2vw,22px)!important}.m2-stage{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);width:100%;height:100%;position:relative;gap:var(--stage-gap)!important;display:grid!important}.m2-stage .m2-wrap{align-self:center;min-height:0}.m2-stage .number-grid{position:relative}.num-cell.hole.pitch-hit{animation:.48s m2HoleHit}@keyframes m2HoleHit{0%{filter:brightness(2);transform:scale(.82)}55%{transform:scale(1.18);box-shadow:0 0 22px #fde047}to{transform:scale(1)}}.pitch-ball{z-index:240;color:#172554;pointer-events:none;will-change:transform;background:radial-gradient(circle at 30% 25%,#fff 0 44%,#fee2e2 45% 57%,#fff 58%);border:3px solid #94a3b8;border-radius:50%;justify-content:center;align-items:center;font-size:clamp(18px,2vw,25px);font-weight:1000;display:flex;position:fixed;box-shadow:0 8px 15px #0006}.pitch-trail{z-index:238;pointer-events:none;background:#fde047;border-radius:50%;width:8px;height:8px;animation:.5s forwards pitchTrail;position:fixed;box-shadow:0 0 12px #fde047}@keyframes pitchTrail{to{opacity:0;transform:scale(.2)}}.m4-vault-stage{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);width:100%;height:100%;gap:var(--stage-gap)!important;display:grid!important}.m4-question{min-height:52px!important;max-height:112px!important}.vault-console{grid-template-columns:minmax(190px,.85fr) minmax(250px,1.15fr);align-items:center;gap:clamp(14px,3vw,34px);width:min(820px,96%);height:100%;min-height:0;display:grid}.vault-safe{aspect-ratio:1;background:linear-gradient(145deg,#64748b,#1e293b 52%,#0f172a);border:8px solid #475569;border-radius:28px;justify-self:center;width:clamp(172px,23vw,250px);position:relative;overflow:hidden;box-shadow:inset 0 0 0 5px #94a3b8,inset 0 0 36px #020617,9px 11px #0000005c}.vault-door{transform-origin:0;z-index:3;background:radial-gradient(circle,#64748b 0 20%,#334155 21% 62%,#1e293b 63%);border:5px solid #cbd5e1;border-radius:50%;transition:transform .7s cubic-bezier(.2,.8,.2,1),filter .3s;position:absolute;inset:15px}.vault-safe.unlocking .vault-door{animation:.38s linear 2 vaultRattle}.vault-safe.open .vault-door{filter:brightness(1.45);transform:perspective(550px)rotateY(-108deg)}@keyframes vaultRattle{25%{translate:-3px}75%{translate:3px}}.vault-wheel{aspect-ratio:1;border:7px solid #e2e8f0;border-radius:50%;width:42%;transition:transform .65s;position:absolute;top:50%;left:50%;translate:-50% -50%;box-shadow:0 0 0 5px #334155}.vault-wheel:before,.vault-wheel:after{content:"";background:#e2e8f0;border-radius:9px;width:130%;height:7px;position:absolute;top:50%;left:50%;translate:-50% -50%}.vault-wheel:after{rotate:90deg}.vault-safe.unlocking .vault-wheel{transform:rotate(540deg)}.vault-status-light{background:#ef4444;border-radius:50%;width:15px;height:15px;position:absolute;top:18%;right:18%;box-shadow:0 0 10px #ef4444}.vault-safe.open .vault-status-light{background:#22c55e;box-shadow:0 0 18px #22c55e}.vault-loot{opacity:0;z-index:2;place-items:center;font-size:clamp(42px,7vw,74px);transition:opacity .35s .3s,transform .45s .3s;display:grid;position:absolute;inset:22%;transform:scale(.35)}.vault-safe.open .vault-loot{opacity:1;transform:scale(1)}.vault-controls{flex-direction:column;justify-content:center;align-items:center;gap:clamp(7px,1.15vh,12px);min-height:0;display:flex}.vault-code-label{color:#bfdbfe;letter-spacing:.13em;font-size:clamp(11px,1.2vw,15px);font-weight:1000}.vault-code-display{color:#86efac;letter-spacing:.12em;white-space:nowrap;background:#06140d;border:4px solid #111827;border-radius:12px;justify-content:flex-end;align-items:center;width:min(390px,100%);min-height:58px;padding:9px 15px;font-family:Consolas,monospace;font-size:clamp(25px,3.6vw,42px);font-weight:1000;display:flex;overflow:hidden;box-shadow:inset 0 0 18px #000,0 0 13px #22c55e4d}.vault-code-display.empty{color:#365f46}.vault-code-display.error{color:#fca5a5;animation:.32s linear 2 vaultCodeError}@keyframes vaultCodeError{25%{transform:translate(-4px)}75%{transform:translate(4px)}}.vault-keypad{grid-template-columns:repeat(3,1fr);gap:clamp(5px,.8vw,8px);width:min(390px,100%);display:grid}.vault-key{color:#fff;background:linear-gradient(#334155,#0f172a);border:2px solid #bfdbfe;border-radius:10px;min-height:40px;font-size:clamp(16px,1.8vw,23px);font-weight:1000;box-shadow:0 4px #020617}.vault-key:active{transform:translateY(3px);box-shadow:0 1px #020617}.vault-key.utility{color:#fef3c7;background:linear-gradient(#b45309,#78350f)}.vault-unlock{width:min(390px,100%);margin:0!important}.c1-fishing-stage{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);justify-items:stretch;width:100%;height:100%;gap:var(--stage-gap-compact)!important;display:grid!important}.fishing-instruction{color:#fde047;text-shadow:2px 2px #000;text-align:center;font-size:clamp(14px,1.8vw,23px);font-weight:1000}.fishing-scene{background:linear-gradient(#93c5fd 0 26%,#67e8f9 27% 35%,#0284c7 36% 58%,#075985 59% 100%);border:4px solid #ffffffdb;border-radius:24px;justify-self:center;width:min(880px,98%);height:100%;min-height:230px;position:relative;overflow:hidden;box-shadow:inset 0 0 35px #ffffff2e,0 8px #00000040}.fishing-scene:before{content:"";opacity:.85;background:repeating-linear-gradient(90deg,#fff 0 18px,#38bdf8 18px 34px);height:7px;animation:2.2s linear infinite fishingWater;position:absolute;top:33%;left:0;right:0}@keyframes fishingWater{to{background-position:68px 0}}.fishing-bank{z-index:5;justify-content:space-between;align-items:center;height:34%;padding:clamp(8px,1.5vw,16px) clamp(14px,2.5vw,28px);display:flex;position:absolute;top:0;left:0;right:0}.fishing-target-fish{color:#172033;text-align:center;background:linear-gradient(135deg,#fef3c7,#fb923c);border:4px solid #854d0e;border-radius:55% 46% 46% 55%;justify-content:center;align-items:center;min-width:210px;max-width:70%;min-height:58px;padding:9px 42px 9px 22px;font-size:clamp(17px,2.3vw,29px);font-weight:1000;display:flex;position:relative;overflow:hidden;box-shadow:0 6px #78350f}.fishing-target-fish:after{content:"";filter:drop-shadow(3px 2px #854d0e);border-top:25px solid #0000;border-bottom:25px solid #0000;border-left:38px solid #fb923c;position:absolute;top:50%;right:-2px;translate:65% -50%}.fishing-target-fish:before{content:"";background:#111827;border-radius:50%;width:8px;height:8px;position:absolute;top:17px;left:13px;box-shadow:0 0 0 3px #fff}.fishing-target-text{overflow-wrap:anywhere;max-width:100%;line-height:1.08}.fishing-rod{filter:drop-shadow(3px 4px #0000004d);font-size:clamp(42px,6vw,68px);transform:rotate(-8deg)}.fishing-water-zone{padding:clamp(12px,2vh,22px) clamp(10px,2vw,24px);position:absolute;inset:35% 0 0;overflow:hidden}.fish-school{z-index:3;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(64px,1fr);align-content:center;gap:clamp(8px,1.4vw,15px);width:100%;height:100%;display:grid;position:relative}.fish-choice{background:0 0;border:0;justify-content:center;align-items:center;min-height:62px;padding:3px 25px 3px 3px;animation:2.8s ease-in-out infinite alternate fishSwim;display:flex;position:relative;overflow:visible}.fish-choice:nth-child(2n){animation-delay:-1.1s}.fish-choice:nth-child(3n){animation-delay:-1.8s}@keyframes fishSwim{to{transform:translate(7px)translateY(-4px)}}.fish-body{z-index:2;color:#082f49;text-align:center;overflow-wrap:anywhere;background:linear-gradient(135deg,#e0f2fe,#38bdf8);border:3px solid #075985;border-radius:55% 47% 47% 55%;justify-content:center;align-items:center;width:100%;height:100%;min-height:58px;padding:7px 18px 7px 27px;font-size:clamp(13px,1.45vw,19px);font-weight:1000;line-height:1.05;display:flex;position:relative;overflow:hidden;box-shadow:0 5px #0c4a6e}.fish-body:before{content:"";background:#0f172a;border-radius:50%;width:7px;height:7px;position:absolute;top:15px;left:12px;box-shadow:0 0 0 2px #fff}.fish-tail{z-index:1;filter:drop-shadow(3px 2px #075985);border-top:22px solid #0000;border-bottom:22px solid #0000;border-left:34px solid #38bdf8;width:0;height:0;position:absolute;top:50%;right:1px;translate:45% -50%}.fish-choice.selected .fish-body{background:linear-gradient(135deg,#fef9c3,#22d3ee);outline:5px solid #fde047;box-shadow:0 0 20px #fde047,0 5px #0c4a6e}.fish-choice.caught{animation:.55s fishCaught}@keyframes fishCaught{40%{transform:translateY(-18px)rotate(-5deg)scale(1.06)}to{transform:translateY(0)}}.fishing-line{z-index:8;transform-origin:top;pointer-events:none;background:#f8fafc;width:3px;height:0;transition:left .36s,height .48s cubic-bezier(.2,.8,.25,1);position:absolute;top:0;left:82%;box-shadow:0 0 6px #fff}.fishing-hook{filter:drop-shadow(2px 2px #000);font-size:20px;position:absolute;bottom:-17px;left:50%;translate:-50%}.fishing-ripple{z-index:2;opacity:0;pointer-events:none;border:3px solid #ffffffbf;border-radius:50%;width:28px;height:10px;position:absolute}.fishing-ripple.show{animation:.7s fishingRipple}@keyframes fishingRipple{0%{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(2.5)}}.c2-target-panel{text-align:center;background:#0f172aa6;border:3px solid #fffc;border-radius:14px;flex-wrap:wrap;justify-content:center;align-items:center;gap:clamp(8px,1.6vw,18px);width:min(780px,96%);padding:7px 13px;display:flex}.c2-target-panel span{color:#bfdbfe;font-size:clamp(11px,1.1vw,14px);font-weight:1000}.c2-target-panel strong{color:#fde047;letter-spacing:.12em;text-shadow:2px 2px #000;font-family:Consolas,monospace;font-size:clamp(22px,3.4vw,40px)}.c2-target-panel em{color:#fff;font-size:clamp(11px,1.15vw,15px);font-style:normal;font-weight:900}.balloon{justify-content:center!important;align-items:center!important;padding:0!important;display:flex!important;overflow:visible!important}.balloon-digit{z-index:4;color:#fff;text-shadow:0 2px #000,1px 0 #000,-1px 0 #000,0 -1px #000;pointer-events:none;background:#0206178f;border:2px solid #ffffffeb;border-radius:999px;place-items:center;min-width:72%;min-height:46%;padding:3px 5px;font-family:Consolas,monospace;font-size:clamp(22px,2.7vw,34px);font-weight:1000;line-height:1;display:grid;position:relative}@media (width<=760px){.stage{gap:var(--stage-gap-compact)!important;padding:3px!important}.m1-stage{grid-template-rows:auto minmax(92px,1fr) minmax(54px,.62fr) auto;gap:8px!important}.m1-sequence-panel{padding:10px 6px}.m1-stage .step{width:clamp(45px,12vw,65px)!important;height:50px!important;font-size:clamp(15px,4.5vw,22px)!important}.m1-option-zone .orbs{gap:6px!important}.m1-option-zone .orb{width:52px;height:52px}.vault-console{grid-template-columns:minmax(120px,.7fr) minmax(185px,1.3fr);gap:9px}.vault-safe{width:clamp(120px,31vw,170px)}.vault-controls{gap:5px}.vault-code-display{min-height:42px;font-size:22px}.vault-key{min-height:32px;font-size:15px}.vault-unlock{padding:7px 12px!important;font-size:15px!important}.fishing-scene{min-height:230px}.fishing-bank{padding:7px 11px}.fishing-target-fish{min-width:150px;max-width:74%;min-height:48px;padding:7px 32px 7px 18px;font-size:clamp(14px,3.5vw,19px)}.fishing-rod{font-size:40px}.fish-school{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.fish-choice{min-height:52px;padding-right:20px}.fish-body{min-height:48px;padding:5px 12px 5px 22px;font-size:12px}.fish-tail{border-top-width:18px;border-bottom-width:18px;border-left-width:27px}.c2-target-panel{gap:5px;padding:5px 8px}.c2-target-panel strong,.balloon-digit{font-size:22px}}@media (width<=430px){.vault-console{grid-template-columns:112px minmax(0,1fr)}.vault-safe{width:108px}.vault-keypad{gap:3px}.vault-key{min-height:29px}.vault-code-label{font-size:9px}.vault-code-display{min-height:38px;font-size:19px}.fishing-scene{min-height:220px}.fishing-target-fish{min-width:130px;font-size:13px}.fish-body{padding-left:18px;font-size:11px}.fish-body:before{left:8px}.fishing-instruction{font-size:13px}}@media (height<=700px){.stage{gap:7px!important}.m1-stage{gap:6px!important}.m1-sequence-panel{padding:7px}.m1-stage .step{height:46px!important}.vault-safe{width:min(150px,20vh)}.vault-code-display{min-height:38px}.vault-key{min-height:29px}.fishing-scene{min-height:195px}.fish-body{min-height:43px}.fish-choice{min-height:45px}.fishing-target-fish{min-height:42px}}:root{--tool-safe-right:calc(var(--land) + clamp(28px,2.5vw,42px));--train-uniform-size:clamp(16px,1.7vw,23px)}.train-stage .train-car,.train-stage .car-choice{padding:clamp(6px,.9vw,10px)!important;overflow:hidden!important}.train-stage .train-pair{min-height:0;overflow:hidden;gap:2px!important;width:100%!important;height:100%!important}.train-stage .train-pair span{min-height:0;text-overflow:clip!important;white-space:normal!important;word-break:break-all!important;overflow-wrap:anywhere!important;width:100%!important;max-width:100%!important;font-size:var(--train-uniform-size)!important;text-align:center!important;line-height:1.02!important;display:block!important;overflow:hidden!important}.train-stage .train-pair i{flex:0 0 2px;margin:1px 0}.m2-confirm{border-width:2px!important;border-radius:10px!important;width:auto!important;min-width:118px!important;max-width:180px!important;margin:0 auto!important;padding:6px 17px!important;font-size:clamp(13px,1.35vw,17px)!important;line-height:1!important;box-shadow:0 4px #1d4ed8!important}.vault-input-shell{flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(8px,1.3vh,13px);width:min(410px,100%);display:flex}.vault-answer-input{color:#86efac;letter-spacing:.1em;text-align:center;caret-color:#fde047;background:linear-gradient(#07150d,#0b2116);border:4px solid #111827;border-radius:13px;outline:none;width:100%;min-height:64px;padding:9px 15px;font-family:Consolas,Courier New,monospace;font-size:clamp(25px,3.8vw,43px);font-weight:1000;box-shadow:inset 0 0 20px #000,0 0 16px #22c55e59}.vault-answer-input::placeholder{color:#365f46;letter-spacing:.02em;font-size:.56em}.vault-answer-input:focus{border-color:#86efac;box-shadow:inset 0 0 20px #000,0 0 22px #22c55eb8}.vault-answer-input.error{color:#fca5a5;border-color:#ef4444;animation:.32s linear 2 vaultCodeError}.vault-input-hint{color:#bfdbfe;text-align:center;font-size:clamp(10px,1.05vw,13px);font-weight:900}.vault-unlock{width:100%!important}.c2-stage{width:100%;height:100%;min-height:0;overflow:hidden;justify-content:center!important;align-items:center!important;display:flex!important}.c2-stage .shooter{margin:auto;grid-template-rows:auto auto minmax(150px,1fr) auto!important;grid-template-columns:minmax(0,1fr)!important;place-items:stretch center!important;gap:clamp(6px,1.1vh,10px)!important;width:min(1120px,100%)!important;height:100%!important;min-height:0!important;display:grid!important;overflow:hidden!important}.c2-stage .c2-target-panel,.c2-stage .shot-progress,.c2-stage .balloon-field,.c2-stage .shooter-actions{width:100%;max-width:100%}.c2-stage .c2-target-panel{justify-self:center}.c2-stage .shot-progress{align-items:center;min-height:24px}.c2-stage .balloon-field{place-self:stretch center;height:100%!important;min-height:150px!important}.c2-stage .shooter-actions{z-index:12;flex-wrap:nowrap;justify-content:center;align-items:center;min-height:44px;padding:3px 4px 5px;position:relative;overflow:visible;gap:10px!important;display:flex!important}.c2-stage .shooter-actions .secondary,.c2-stage .shooter-actions .confirm-btn{flex:0 auto;min-width:108px;max-width:180px;margin:0!important;padding:7px 15px!important;font-size:clamp(13px,1.35vw,17px)!important;line-height:1!important}.fishing-bank{height:31%!important;padding:clamp(6px,1vw,11px) clamp(10px,1.8vw,19px)!important}.fishing-scene:before{top:30%!important}.fishing-water-zone{padding:clamp(9px,1.5vh,16px) clamp(8px,1.5vw,17px)!important;inset:32% 0 0!important}.fishing-target-fish{border-width:3px!important;min-width:150px!important;max-width:62%!important;min-height:43px!important;padding:6px 31px 6px 18px!important;font-size:clamp(14px,1.8vw,22px)!important;box-shadow:0 4px #78350f!important}.fishing-target-fish:after{border-top-width:18px!important;border-bottom-width:18px!important;border-left-width:28px!important}.fishing-target-fish:before{width:6px!important;height:6px!important;top:13px!important;left:10px!important;box-shadow:0 0 0 2px #fff!important}.fishing-rod{font-size:clamp(32px,4.5vw,50px)!important}.fish-school{grid-auto-rows:minmax(52px,1fr)!important;gap:clamp(6px,1vw,10px)!important}.fish-choice{min-height:48px!important;padding:2px 19px 2px 2px!important}.fish-body{border-width:2px!important;align-self:center!important;height:auto!important;min-height:40px!important;max-height:54px!important;padding:5px 13px 5px 22px!important;font-size:clamp(11px,1.2vw,16px)!important;box-shadow:0 3px #0c4a6e!important}.fish-body:before{width:5px!important;height:5px!important;top:12px!important;left:9px!important}.fish-tail{border-top-width:16px!important;border-bottom-width:16px!important;border-left-width:25px!important}.tool-dock,.calc{right:var(--tool-safe-right)!important;z-index:260!important}.draw-panel{right:calc(var(--tool-safe-right) + 60px)!important;z-index:265!important}@media (width<=1050px){:root{--tool-safe-right:calc(var(--land) + 30px)}}@media (width<=760px){:root{--tool-safe-right:86px;--train-uniform-size:13px}.m2-confirm{min-width:104px!important;padding:6px 13px!important}.vault-console{grid-template-columns:minmax(112px,.65fr) minmax(180px,1.35fr)!important}.vault-answer-input{min-height:48px;padding:7px 10px;font-size:23px}.c2-stage .shooter{grid-template-rows:auto auto minmax(132px,1fr) auto!important}.c2-stage .shooter-actions .secondary,.c2-stage .shooter-actions .confirm-btn{min-width:96px;padding:6px 10px!important;font-size:13px!important}.fishing-target-fish{min-width:124px!important;max-width:68%!important;min-height:39px!important;font-size:13px!important}.fishing-rod{font-size:32px!important}.fish-body{min-height:36px!important;max-height:46px!important;font-size:11px!important}.fish-choice{align-self:center!important;min-height:40px!important}}@media (width<=430px){:root{--tool-safe-right:72px;--train-uniform-size:11px}.tool-dock{gap:5px!important}.tool-btn{width:40px!important;height:40px!important;font-size:20px!important}.calc{width:min(220px,100vw - 84px)!important}.draw-panel{right:calc(var(--tool-safe-right) + 50px)!important;max-width:calc(100vw - 132px)!important}.c2-stage .shooter{grid-template-rows:auto auto minmax(118px,1fr) auto!important;gap:4px!important}.c2-stage .shooter-actions{min-height:38px;padding-bottom:2px;gap:6px!important}.c2-stage .shooter-actions .secondary,.c2-stage .shooter-actions .confirm-btn{min-width:86px;padding:5px 8px!important;font-size:12px!important}.fishing-target-fish{min-width:108px!important;padding-right:25px!important;font-size:11px!important}.fish-school{gap:4px!important}.fish-body{padding-left:17px!important;font-size:10px!important}.fish-tail{border-top-width:13px!important;border-bottom-width:13px!important;border-left-width:21px!important}}@media (height<=700px){.c2-stage .shooter{grid-template-rows:auto auto minmax(105px,1fr) auto!important;gap:4px!important}.fishing-target-fish{min-height:36px!important}.fish-body{min-height:34px!important;max-height:42px!important}.fish-choice{min-height:37px!important}.vault-answer-input{min-height:42px;font-size:20px}}:root{--content-safe-inline:calc(var(--land) + clamp(10px,1.15vw,18px));--question-timer-clearance:clamp(43px,5.8vh,52px)}#game-screen{overflow:hidden!important}.game-main{isolation:isolate;left:var(--content-safe-inline)!important;right:var(--content-safe-inline)!important;padding-top:var(--question-timer-clearance)!important}.module-rule{margin-inline:auto;position:relative;z-index:34!important;width:min(940px,100%)!important}.game-card{align-self:center;margin-inline:auto;position:relative;z-index:30!important}.stage{z-index:32;margin:auto;position:relative;justify-content:center!important;align-items:center!important}.question-visual-timer{z-index:92!important;pointer-events:none!important}.hud{z-index:110!important}.confirm-btn,[data-confirm],.secondary{position:relative;z-index:86!important;pointer-events:auto!important}.choice,.diamond,.phrase,.orb,.baseball,.op,.shape-choice,.matrix-choice,.fish-choice,.judge button{z-index:45;position:relative}.tool-dock,.calc{z-index:260!important}.draw-panel{z-index:265!important}.draw-canvas{z-index:250!important}.m1-sequence-panel{padding:clamp(15px,2.2vh,27px) clamp(12px,2.2vw,26px)!important}.m1-stage .sequence{gap:clamp(9px,1.45vw,17px)!important}.m1-stage .step{font-variant-numeric:tabular-nums;width:clamp(62px,8.4vw,104px)!important;height:clamp(56px,8.2vh,80px)!important;font-size:clamp(25px,3.2vw,40px)!important;line-height:1!important}.m1-option-zone .orb{font-variant-numeric:tabular-nums;font-size:clamp(21px,2.45vw,31px)!important}.m4-vault-stage{grid-template-rows:auto minmax(0,1fr)!important}.vault-console{grid-template-columns:minmax(170px,.76fr) minmax(300px,1.24fr)!important;width:min(900px,98%)!important}.vault-controls{width:100%;min-width:0}.m4-choice-mode{color:#bfdbfe;text-align:center;letter-spacing:.06em;font-size:clamp(10px,1.05vw,13px);font-weight:900}.m4-option-zone{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:clamp(8px,1.15vw,12px);width:min(500px,100%);min-height:0;display:grid}.m4-option-btn{z-index:48;color:#172554;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:break-word;background:linear-gradient(#eff6ff,#bfdbfe);border:3px solid #60a5fa;border-radius:14px;min-height:clamp(54px,8vh,76px);max-height:92px;padding:clamp(8px,1.2vh,12px) clamp(9px,1.3vw,15px);font-size:clamp(16px,1.75vw,23px);font-weight:1000;line-height:1.12;position:relative;overflow:hidden;box-shadow:0 5px #1d4ed8}.m4-option-btn:hover{filter:brightness(1.04);transform:translateY(-2px)}.m4-option-btn.selected{color:#422006;background:linear-gradient(#fef3c7,#fbbf24);border-color:#fde047;box-shadow:0 5px #b45309,0 0 18px #fde047b8}.m4-option-btn:focus-visible{outline-offset:2px;outline:4px solid #fff}.vault-unlock{width:min(500px,100%)!important;margin-inline:auto!important}@media (width<=1050px){:root{--content-safe-inline:calc(var(--land) + 8px)}.vault-console{grid-template-columns:minmax(145px,.68fr) minmax(260px,1.32fr)!important}}@media (width<=760px){:root{--content-safe-inline:clamp(16px,5.2vw,24px);--question-timer-clearance:42px}.game-main{left:var(--content-safe-inline)!important;right:var(--content-safe-inline)!important}.m1-stage{grid-template-rows:auto minmax(96px,1fr) minmax(58px,.66fr) auto!important}.m1-sequence-panel{padding:11px 7px!important}.m1-stage .sequence{gap:clamp(5px,1.6vw,9px)!important}.m1-stage .step{width:clamp(48px,12.4vw,69px)!important;height:54px!important;font-size:clamp(19px,5.1vw,25px)!important}.m1-option-zone .orb{font-size:clamp(18px,4.9vw,24px)!important}.m4-vault-stage{grid-template-rows:auto auto!important;align-content:center!important}.vault-console{grid-template-columns:minmax(105px,.55fr) minmax(190px,1.45fr)!important;align-self:center!important;gap:10px!important;height:auto!important}.m4-option-zone{gap:6px}.m4-option-btn{min-height:48px;padding:7px 8px;font-size:clamp(13px,3.4vw,17px)}.vault-unlock{padding:7px 13px!important;font-size:14px!important}}@media (width<=430px){:root{--content-safe-inline:18px;--question-timer-clearance:39px}.m1-stage .step{width:clamp(43px,12.2vw,58px)!important;height:49px!important;font-size:clamp(17px,5vw,22px)!important}.m1-option-zone .orb{font-size:18px!important}.vault-console{grid-template-columns:minmax(88px,.48fr) minmax(174px,1.52fr)!important;gap:7px!important}.vault-safe{border-width:5px!important;width:min(118px,29vw)!important}.m4-question{max-height:80px!important;font-size:clamp(14px,4vw,18px)!important}.m4-option-btn{border-width:2px;min-height:43px;padding:5px 6px;font-size:12px;box-shadow:0 3px #1d4ed8}.m4-choice-mode{font-size:9px}}@media (height<=700px){:root{--question-timer-clearance:36px}.m1-stage{grid-template-rows:auto minmax(82px,1fr) minmax(50px,.62fr) auto!important;gap:6px!important}.m1-sequence-panel{padding:7px!important}.m1-stage .step{height:46px!important;font-size:clamp(18px,2.65vw,29px)!important}.m4-option-btn{min-height:40px;max-height:58px;padding:5px 8px;font-size:clamp(12px,1.35vw,16px)}.vault-safe{width:min(145px,21vh)!important}}.v3-stage{align-content:center;justify-items:center;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:clamp(7px,1.25vh,12px)!important;display:grid!important}.v3-hint{color:#dbeafe;text-align:center;max-width:94%;font-size:clamp(11px,1.2vw,16px);font-weight:900;line-height:1.15}.v3-board{grid-template-rows:auto minmax(0,1fr);gap:clamp(7px,1.2vh,11px);width:min(900px,100%);height:100%;min-height:0;display:grid}.v3-source-zone{background:#0f172a40;border:3px dashed #ffffffb8;border-radius:15px;justify-content:center;align-items:center;min-height:72px;padding:7px;display:flex}.v3-source-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;display:grid}.v3-target-grid{grid-template-columns:minmax(0,3fr) minmax(150px,1.2fr);gap:10px;min-height:0;display:grid}.v3-target{border:4px dashed;border-radius:17px;grid-template-rows:auto minmax(0,1fr);gap:6px;min-height:0;padding:8px;transition:transform .18s,box-shadow .18s,background .18s;display:grid;overflow:hidden}.v3-target.drag-over,.v3-source-zone.drag-over{transform:translateY(-3px);box-shadow:0 0 0 4px #fde047,0 0 24px #fde0478c}.v3-target.logical{background:linear-gradient(#2563eb57,#1e40af2e);border-color:#60a5fa}.v3-target.illogical{background:linear-gradient(#e11d4857,#7f1d1d2e);border-color:#fb7185}.v3-target-title{color:#fff;text-align:center;justify-content:center;align-items:center;gap:7px;font-size:clamp(13px,1.4vw,19px);font-weight:1000;display:flex}.v3-target-title small{color:#e2e8f0;font-size:.72em}.v3-target-items{grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:7px;min-height:0;display:grid}.v3-target.illogical .v3-target-items{grid-template-columns:1fr}.v3-card{color:#082f49;text-align:center;touch-action:manipulation;background:#e0f2fe;border:3px solid #38bdf8;border-radius:15px;justify-content:center;align-items:center;min-height:58px;max-height:86px;padding:8px 22px 8px 8px;font-size:clamp(12px,1.32vw,18px);font-weight:1000;line-height:1.13;display:flex;position:relative;overflow:hidden;box-shadow:0 5px #0369a1}.v3-card:hover,.v3-card:focus-visible{outline:3px solid #fde047;transform:translateY(-2px)}.v3-card[data-zone=logical]{color:#172554;background:#dbeafe;border-color:#93c5fd;box-shadow:0 5px #1d4ed8}.v3-card[data-zone=illogical]{color:#881337;background:#ffe4e6;border-color:#fda4af;box-shadow:0 5px #be123c}.v3-card-badge{color:#fff;background:#0f172a;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;font-size:10px;display:flex;position:absolute;top:5px;right:5px}.v3-empty{text-align:center;color:#ffffffad;justify-content:center;align-items:center;min-height:48px;font-size:clamp(11px,1.05vw,14px);font-weight:900;display:flex}.v4-stage{align-content:center;justify-items:center;grid-template-rows:auto minmax(0,1fr) auto!important;gap:clamp(7px,1.35vh,13px)!important;display:grid!important}.v4-chest-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:clamp(7px,1vw,11px);width:min(920px,100%);height:100%;min-height:0;display:grid}.v4-chest-option{--chest-main:#9a5a22;--chest-dark:#5b2f11;--chest-metal:#fbbf24;border:3px solid var(--chest-metal);color:#fff;min-height:205px;box-shadow:0 6px var(--chest-dark),inset 0 0 24px #ffffff12;background:linear-gradient(#0f172ab8,#0f172a61);border-radius:16px;grid-template-rows:minmax(78px,.82fr) minmax(70px,1fr);gap:7px;padding:8px;transition:transform .18s,opacity .18s,filter .18s,box-shadow .18s;display:grid;position:relative;overflow:hidden}.v4-chest-option:hover,.v4-chest-option:focus-visible{box-shadow:0 10px var(--chest-dark),0 0 20px color-mix(in srgb,var(--chest-metal) 70%,transparent);outline:3px solid #fff;transform:translateY(-4px)}.v4-chest-option[data-chest=crystal]{--chest-main:#0e7490;--chest-dark:#164e63;--chest-metal:#67e8f9}.v4-chest-option[data-chest=cyber]{--chest-main:#166534;--chest-dark:#052e16;--chest-metal:#4ade80}.v4-chest-option[data-chest=arcane]{--chest-main:#7e22ce;--chest-dark:#3b0764;--chest-metal:#e879f9}.v4-chest-option.locked{pointer-events:none;opacity:.3;filter:grayscale(.75)}.v4-chest-option.selected{box-shadow:0 10px var(--chest-dark),0 0 0 4px #fff,0 0 28px var(--chest-metal);transform:translateY(-5px);opacity:1!important;filter:none!important}.v4-chest-shell{perspective:420px;filter:drop-shadow(0 8px 4px #00000059);width:min(136px,92%);height:100%;min-height:82px;margin:auto;position:relative}.v4-chest-lid,.v4-chest-body{border:4px solid var(--chest-dark);background:linear-gradient(135deg,color-mix(in srgb,var(--chest-main) 72%,white),var(--chest-main) 44%,var(--chest-dark));width:84%;position:absolute;left:8%;box-shadow:inset 8px 7px #ffffff29,inset -8px -7px #00000038}.v4-chest-lid{transform-origin:50% 100%;border-radius:18px 18px 5px 5px;height:36%;transition:transform .38s cubic-bezier(.2,.9,.25,1.35),top .38s;top:10%}.v4-chest-body{border-radius:5px 5px 14px 14px;height:55%;bottom:7%}.v4-chest-band{z-index:2;background:var(--chest-metal);border:2px solid var(--chest-dark);width:10%;height:83%;position:absolute;top:10%;left:45%;box-shadow:inset 2px 0 #ffffff61}.v4-chest-lock{z-index:4;border:3px solid var(--chest-dark);background:var(--chest-metal);color:#111827;border-radius:5px;justify-content:center;align-items:center;width:27px;height:30px;font-size:14px;font-weight:1000;transition:transform .25s,opacity .25s;display:flex;position:absolute;top:49%;left:50%;transform:translate(-50%,-50%)}.v4-chest-number{z-index:5;color:#111827;border:2px solid var(--chest-dark);background:#fff;border-radius:50%;justify-content:center;align-items:center;width:25px;height:25px;font-weight:1000;display:flex;position:absolute;top:4px;left:7px}.v4-scan-line{z-index:6;height:4px;box-shadow:0 0 12px var(--chest-metal);opacity:0;background:#fff;position:absolute;top:5%;left:3%;right:3%}.v4-chest-option.scanning .v4-scan-line{opacity:1;animation:.65s linear infinite v4Scan}.v4-chest-option.unlocked .v4-chest-lock{opacity:.2;transform:translate(-50%,18px)rotate(16deg)}.v4-chest-option.open .v4-chest-lid{top:-5%;transform:rotateX(-118deg)}.v4-chest-option.open .v4-chest-shell:after{content:"✦  ✧  ✦";z-index:8;color:var(--chest-metal);text-shadow:0 0 12px var(--chest-metal);white-space:nowrap;font-size:24px;animation:.75s forwards v4Loot;position:absolute;top:-8px;left:50%;transform:translate(-50%)}.v4-option-text{border:2px solid color-mix(in srgb,var(--chest-metal) 70%,white);color:#172033;text-align:center;background:#ffffffeb;border-radius:10px;justify-content:center;align-items:center;min-height:0;padding:8px 7px;font-size:clamp(12px,1.15vw,16px);font-weight:1000;line-height:1.17;display:flex;overflow:hidden}.v4-access-status{color:#dbeafe;letter-spacing:.08em;text-align:center;min-height:24px;font-size:clamp(11px,1.15vw,15px);font-weight:1000}.v4-access-status.granted{color:#86efac;text-shadow:0 0 10px #22c55e}.game-card.v4-screen-shake{animation:.35s v4ScreenShake}@keyframes v4Scan{0%{transform:translateY(0)}to{transform:translateY(74px)}}@keyframes v4Loot{0%{opacity:0;transform:translate(-50%,24px)scale(.4)}55%{opacity:1;transform:translate(-50%,-32px)scale(1.25)}to{opacity:0;transform:translate(-50%,-58px)scale(.8)}}@keyframes v4ScreenShake{0%,to{transform:translate(0)}25%{transform:translate(-5px,3px)}50%{transform:translate(5px,-3px)}75%{transform:translate(-3px,-2px)}}.s1-stage{align-content:center;justify-items:center;grid-template-rows:auto minmax(0,1fr) auto!important;gap:clamp(8px,1.4vh,14px)!important;display:grid!important}.shape-grid{grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:clamp(7px,1vw,11px);width:min(900px,100%);height:100%;min-height:0;display:grid}.shape-choice{background:var(--cream);border:4px solid #a16207;border-radius:16px;justify-content:center;align-items:center;height:clamp(112px,22vh,166px);min-height:0;padding:7px;transition:transform .18s,box-shadow .18s;display:flex;position:relative;overflow:hidden;box-shadow:0 6px #713f12}.shape-choice:before{content:attr(data-option-label);z-index:2;color:#fff;background:#172033;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;font-weight:1000;display:flex;position:absolute;top:5px;left:6px}.shape-choice svg{max-width:100%;max-height:100%;display:block;overflow:visible;width:94%!important;height:94%!important}.shape-choice.selected{outline:5px solid var(--yellow);transform:translateY(-4px);box-shadow:0 9px #713f12,0 0 22px #fde047}.s1-invalid-svg{color:#be123c;font-size:30px;font-weight:1000}@media (width<=760px){.v3-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-target-grid{grid-template-columns:minmax(0,2.25fr) minmax(112px,1fr)}.v3-target-items{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-card{min-height:48px;max-height:66px;padding:6px 19px 6px 6px}.v4-chest-grid{grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr))}.v4-chest-option{grid-template-rows:1fr;grid-template-columns:92px minmax(0,1fr);align-items:center;min-height:0}.v4-chest-shell{width:88px;min-height:72px}.v4-option-text{height:100%;font-size:clamp(11px,2.6vw,14px)}.shape-grid{grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:repeat(3,minmax(0,1fr))}.shape-choice{height:100%;min-height:76px}.shape-choice:nth-child(4){grid-column:1/2;margin-left:50%}.shape-choice:nth-child(5){grid-column:3/4;margin-right:50%}}@media (width<=480px){.v3-target-grid{grid-template-columns:minmax(0,1.9fr) minmax(94px,1fr)}.v3-target{padding:5px}.v3-target-title{font-size:11px}.v3-target-title small{display:none}.v3-card{font-size:11px}.v4-chest-option{grid-template-columns:72px minmax(0,1fr);padding:5px}.v4-chest-shell{width:70px;min-height:62px}.v4-chest-lock{width:22px;height:24px;font-size:11px}.v4-option-text{padding:5px;font-size:10px}}@media (height<=700px){.v3-stage{gap:5px!important}.v3-source-zone{min-height:54px;padding:5px}.v3-card{min-height:44px;max-height:58px}.v3-target{padding:5px}.v3-target-title{font-size:12px}.v3-target-items{gap:5px}.v4-stage{gap:5px!important}.v4-chest-option{grid-template-rows:minmax(62px,.72fr) minmax(54px,1fr);min-height:150px;padding:5px}.v4-chest-shell{min-height:64px}.v4-option-text{padding:5px;font-size:clamp(10px,1.05vw,13px)}.v4-access-status{min-height:18px;font-size:10px}.shape-choice{height:clamp(78px,18vh,112px)}}.m2-stage .number-grid{border-width:4px;grid-template-rows:repeat(3,clamp(50px,6.2vw,68px));grid-template-columns:repeat(3,clamp(50px,6.2vw,68px));gap:4px;padding:7px}.m2-stage .num-cell{white-space:nowrap;min-width:0;min-height:0;font-size:clamp(18px,2.05vw,27px);overflow:hidden}.m2-stage .num-cell.hole{border-width:3px}.c1-fishing-stage>.confirm-btn{border-width:2px!important;border-radius:10px!important;place-self:center!important;width:auto!important;min-width:112px!important;max-width:168px!important;margin:0 auto!important;padding:6px 15px!important;font-size:clamp(13px,1.3vw,17px)!important;line-height:1!important;box-shadow:0 4px #1d4ed8!important}.s1-stage .shape-choice{padding:10px;overflow:visible}.s1-stage .s1-image-shell{pointer-events:none;justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:visible}.s1-stage .s1-shape-image{object-fit:contain;object-position:center;width:100%;max-width:100%;height:100%;max-height:100%;display:block;overflow:visible}@media (width<=760px){.m2-stage .number-grid{grid-template-rows:repeat(3,clamp(46px,14vw,58px));grid-template-columns:repeat(3,clamp(46px,14vw,58px));gap:3px;padding:6px}.c1-fishing-stage>.confirm-btn{min-width:98px!important;padding:5px 12px!important;font-size:13px!important}}@media (height<=700px){.m2-stage .number-grid{grid-template-rows:repeat(3,clamp(45px,8.5vh,60px));grid-template-columns:repeat(3,clamp(45px,8.5vh,60px))}}.result-box-minimal{flex-direction:column;justify-content:center;align-items:center;gap:clamp(20px,4vh,38px);min-height:clamp(230px,42vh,360px);display:flex}.result-box-minimal h2{margin:0;font-size:clamp(44px,8vw,92px);line-height:1.05}.result-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:clamp(12px,2vw,20px);width:100%;display:flex}#app.result-mode .tool-dock,#app.result-mode .calc,#app.result-mode .draw-panel,#app.result-mode .draw-canvas,#app.result-mode .crosshair{display:none!important}@media (width<=760px){.train-stage .train-car{flex-basis:clamp(126px,35vw,150px)!important;width:clamp(126px,35vw,150px)!important;height:clamp(70px,9.5vh,88px)!important}.rules-box{flex-direction:column!important;max-height:70vh!important;display:flex!important}}@media (width<=480px){.train-stage .train-pair span{font-size:clamp(13px,4.2vw,18px)!important}}.train-stage .train-car{font-size:clamp(20px,2vw,27px)!important}.train-stage .train-pair,.train-stage .train-pair span{min-width:0!important;max-width:100%!important}.train-stage .train-pair span{text-overflow:ellipsis!important;white-space:nowrap!important;word-break:break-all!important;overflow-wrap:anywhere!important;overflow:hidden!important}.train-stage .train-options{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(4px,.8vw,10px)!important;width:min(920px,100%)!important;display:grid!important;overflow:hidden!important}.train-stage .car-choice{text-overflow:ellipsis!important;word-break:break-all!important;overflow-wrap:anywhere!important;width:100%!important;min-width:0!important;padding:clamp(4px,.7vw,8px)!important;overflow:hidden!important}.train-stage .car-choice .train-pair span{line-height:1.05!important}.rules-box{font-size:clamp(18px,1.7vw,24px)!important;line-height:1.58!important}.rules-box h2{font-size:1.14em!important}@media (width<=760px){.train-stage .train-options{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}.train-stage .car-choice{height:clamp(62px,8.4vh,78px)!important;padding:4px!important}.rules-box{font-size:clamp(17px,2.8vw,21px)!important;line-height:1.5!important}}@media (width<=480px){.train-stage .train-options{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important}.train-stage .car-choice{height:clamp(58px,7.8vh,70px)!important;padding:3px!important}.rules-box{font-size:clamp(16px,4vw,20px)!important;line-height:1.48!important}}@media (height<=700px){.rules-box{font-size:clamp(15px,2.15vh,18px)!important;line-height:1.4!important}}.train-stage .train-row .train-pair span{font-size:clamp(21px,2.3vw,32px)!important;line-height:1!important}.train-stage .train-car{flex:0 0 clamp(132px,15.5vw,186px)!important;padding:clamp(4px,.55vw,7px)!important}.train-stage .train-options{flex-flow:wrap!important;justify-content:center!important;align-items:stretch!important;gap:clamp(6px,.8vw,10px)!important;width:min(820px,98%)!important;display:flex!important}.train-stage .train-options .car-choice{text-overflow:ellipsis!important;white-space:normal!important;word-break:break-all!important;overflow-wrap:anywhere!important;flex:calc(25% - 10px)!important;width:auto!important;min-width:145px!important;max-width:calc(25% - 7.5px)!important;padding:5px 7px!important;overflow:hidden!important}.train-stage .train-options .car-choice .train-pair,.train-stage .train-options .car-choice .train-pair span{text-overflow:ellipsis!important;word-break:break-all!important;overflow-wrap:anywhere!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}.v4-stage{grid-template-rows:auto minmax(0,1fr) auto!important}.v4-chest-option{grid-template-rows:minmax(62px,.66fr) minmax(66px,1fr)!important;min-height:184px!important}.v4-chest-shell{width:min(108px,78%)!important;min-height:66px!important;max-height:92px!important}.v4-action-panel{z-index:18;pointer-events:auto;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:100%;min-height:64px;display:flex;position:relative}.v4-action-panel .v4-access-status{min-height:18px}.v4-confirm{touch-action:manipulation;z-index:24!important;pointer-events:auto!important;min-width:190px!important;min-height:46px!important;padding:9px 28px!important;position:relative!important}.v4-confirm:disabled{opacity:.48;filter:grayscale(.7);box-shadow:0 5px #475569!important}@media (width<=760px){.train-stage .train-row .train-pair span{font-size:clamp(19px,4.5vw,25px)!important}.train-stage .train-options .car-choice{flex-basis:calc(50% - 6px)!important;min-width:0!important;max-width:calc(50% - 4px)!important}.v4-chest-option{grid-template-rows:1fr!important;grid-template-columns:76px minmax(0,1fr)!important;min-height:0!important}.v4-chest-shell{width:72px!important;min-height:58px!important;max-height:72px!important}.v4-action-panel{gap:4px;min-height:58px}.v4-confirm{min-width:170px!important;min-height:42px!important;padding:7px 22px!important}}@media (width<=430px){.train-stage .train-row{transform-origin:50%!important;transform:scale(.76)!important}.train-stage .train-row.depart{transform:translate(145vw)scale(.76)!important}.train-stage .train-row .train-pair span{font-size:clamp(18px,5.1vw,23px)!important}.train-stage .train-options .car-choice{padding:4px 5px!important}.v4-chest-option{grid-template-columns:62px minmax(0,1fr)!important}.v4-chest-shell{width:58px!important;min-height:50px!important;max-height:62px!important}.v4-confirm{min-width:154px!important;min-height:39px!important;font-size:15px!important}}@media (height<=700px){.train-stage .train-row .train-pair span{font-size:clamp(19px,2.05vw,28px)!important}.v4-chest-option{grid-template-rows:minmax(50px,.58fr) minmax(48px,1fr)!important;min-height:132px!important}.v4-chest-shell{width:min(92px,72%)!important;min-height:52px!important;max-height:68px!important}.v4-action-panel{gap:2px;min-height:50px}.v4-confirm{min-height:38px!important;padding:6px 20px!important;font-size:14px!important}}.matrix-choices .matrix-choice{appearance:none!important;min-height:105px!important;box-shadow:none!important;filter:none!important;opacity:1!important;mix-blend-mode:normal!important;background:0 0!important;border:0!important;border-radius:0!important;padding:0!important;overflow:visible!important}.matrix-choices .matrix-choice:before,.matrix-choices .matrix-choice:after{content:none!important;opacity:0!important;background:0 0!important;display:none!important}.matrix-choices .matrix-choice .matrix{filter:none!important;opacity:1!important;mix-blend-mode:normal!important;box-shadow:none!important;margin:0!important}.matrix-choices .matrix-choice:hover{box-shadow:none!important;filter:none!important;background:0 0!important}.matrix-choices .matrix-choice.selected{box-shadow:none!important;outline:5px solid var(--yellow)!important;outline-offset:5px!important;background:0 0!important;border-radius:4px!important;transform:translateY(-3px)!important}#nudge{display:none!important}.game-card:has(.matrix-stage){width:min(1180px,100%)!important;padding-left:clamp(6px,.7vw,10px)!important;padding-right:clamp(6px,.7vw,10px)!important}.matrix-stage{--s2-base-size:clamp(132px,22vh,212px);--s2-option-size:clamp(154px,18vw,226px);grid-template-rows:auto minmax(0,.78fr) minmax(0,1.62fr) auto!important;align-content:stretch!important;place-items:center!important;gap:clamp(5px,1vh,10px)!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:2px clamp(2px,.55vw,8px)!important;display:grid!important;overflow:hidden!important}.matrix-stage .question{text-align:center!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:56px!important;margin:0!important;font-size:clamp(17px,2vw,26px)!important;line-height:1.08!important;overflow:hidden!important}.matrix-stage .matrix-top{justify-content:center!important;align-items:center!important;gap:clamp(8px,1.2vw,16px)!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;margin:0!important;display:flex!important;overflow:hidden!important}.matrix-stage .matrix-label{white-space:nowrap!important;flex:none!important}.matrix-stage .matrix-top .matrix{width:min(var(--s2-base-size),100%,21vh)!important;aspect-ratio:1!important;border-width:3px!important;gap:clamp(1px,.22vw,3px)!important;max-width:100%!important;height:auto!important;max-height:100%!important;padding:clamp(3px,.45vw,6px)!important;overflow:hidden!important}.matrix-stage .matrix-top .matrix-cell,.matrix-stage .matrix-choice .matrix-cell{aspect-ratio:1!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:100%!important}.matrix-stage .matrix-choices{grid-template-rows:minmax(0,1fr)!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;place-items:center!important;gap:clamp(2px,.35vw,5px)!important;width:min(1140px,100%)!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;display:grid!important;overflow:hidden!important}.matrix-stage .matrix-choice{contain:layout paint!important;justify-content:center!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:clamp(1px,.18vw,3px)!important;display:flex!important;overflow:hidden!important}.matrix-stage .matrix-choice .matrix{width:min(var(--s2-option-size),100%,26vh)!important;aspect-ratio:1!important;max-width:100%!important;height:auto!important;max-height:100%!important;box-shadow:none!important;object-fit:contain!important;background:#fff!important;border-width:3px!important;gap:clamp(1px,.18vw,3px)!important;padding:clamp(2px,.25vw,4px)!important;overflow:hidden!important}.matrix-stage .matrix-choice.selected{outline:clamp(3px,.35vw,5px) solid var(--yellow)!important;outline-offset:clamp(1px,.22vw,4px)!important;transform:none!important}.matrix-stage>.confirm-btn{border-width:2px!important;flex:none!important;align-self:center!important;min-height:34px!important;margin:0!important;padding:6px 18px!important;font-size:clamp(13px,1.45vw,18px)!important;box-shadow:0 4px #1d4ed8!important}@media (width<=900px){.matrix-stage{--s2-base-size:clamp(94px,16vh,140px);--s2-option-size:clamp(82px,18vw,138px);grid-template-rows:auto minmax(0,.76fr) minmax(0,1.52fr) auto!important;gap:5px!important}.matrix-stage .question{max-height:46px!important;font-size:clamp(15px,2.4vw,19px)!important}.matrix-stage .matrix-choices{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;padding:2px!important}.matrix-stage .matrix-choice{padding:2px!important}.matrix-stage .matrix-choice .matrix{border-width:2px!important;gap:1px!important;padding:2px!important}.matrix-stage .matrix-top .matrix{border-width:2px!important;gap:1px!important;padding:3px!important}.matrix-stage>.confirm-btn{min-height:30px!important;padding:5px 14px!important;font-size:13px!important}}@media (height<=700px){.matrix-stage{--s2-base-size:clamp(72px,14vh,104px);--s2-option-size:clamp(72px,16vh,106px);grid-template-rows:auto minmax(0,.72fr) minmax(0,1.34fr) auto!important;gap:3px!important}.matrix-stage .question{max-height:36px!important;font-size:15px!important;line-height:1.03!important}.matrix-stage .matrix-top{gap:6px!important}.matrix-stage .matrix-choices{gap:3px!important;padding:1px!important}.matrix-stage>.confirm-btn{min-height:28px!important;padding:4px 13px!important;font-size:12px!important;box-shadow:0 3px #1d4ed8!important}}@media (width<=480px){.matrix-stage{--s2-base-size:clamp(66px,13vh,90px);--s2-option-size:clamp(52px,18vw,78px);padding-inline:0!important}.matrix-stage .question{max-height:34px!important;font-size:14px!important}.matrix-stage .matrix-label{font-size:12px!important}.matrix-stage .matrix-choices{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;padding:1px!important}.matrix-stage .matrix-choice{padding:1px!important}.matrix-stage .matrix-choice.selected{outline-offset:1px!important;outline-width:2px!important}}.camera-consent{color:#fff7ed;background:#0f172a6b;border:2px solid #fde047d9;border-radius:12px;margin-top:4px;padding:8px 10px;box-shadow:inset 0 0 0 1px #ffffff1f}.camera-consent h2{color:#fde047!important;margin:.1em 0 .25em!important}.camera-consent p{margin:.22em 0!important}.camera-status{color:#bfdbfe;background:#02061785;border:1px solid #ffffff80;border-radius:999px;align-items:center;gap:6px;margin-top:4px;padding:5px 8px;font-weight:900;display:inline-flex}.camera-status.ready{color:#bbf7d0;border-color:#86efac}.camera-status.error{color:#fecaca;background:#7f1d1d4d;border-color:#fca5a5}.camera-recorder-badge{z-index:220;left:max(10px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom));color:#fff;background:#020617bd;border:2px solid #ffffffd1;border-radius:999px;align-items:center;gap:7px;padding:7px 10px;font-size:12px;font-weight:1000;display:none;position:absolute;box-shadow:0 4px 14px #00000052}.camera-recorder-badge.active{display:flex}.camera-recorder-badge i{background:#ef4444;border-radius:999px;width:9px;height:9px;animation:1.1s ease-in-out infinite cameraBlink;box-shadow:0 0 12px #ef4444}@keyframes cameraBlink{50%{opacity:.35}}.camera-preview{z-index:219;left:max(10px,env(safe-area-inset-left));bottom:max(46px,calc(env(safe-area-inset-bottom) + 46px));object-fit:cover;background:#020617;border:2px solid #ffffffd1;border-radius:12px;width:116px;height:82px;display:none;position:absolute;transform:scaleX(-1);box-shadow:0 5px 14px #00000059}.camera-preview.active{display:block}@media (width<=760px){.camera-preview{width:88px;height:64px}.camera-recorder-badge{padding:6px 8px;font-size:11px}}.face-preview{z-index:45;left:max(12px, env(safe-area-inset-left));bottom:max(14px, env(safe-area-inset-bottom));gap:6px;width:132px;display:grid;position:absolute}.face-preview video{object-fit:cover;background:#0f172a;border:3px solid #fff;border-radius:12px;width:132px;height:99px;transform:scaleX(-1);box-shadow:0 5px #0006}.face-preview .face-hint{background:var(--red);color:#fff;text-align:center;text-shadow:1px 1px #000;border:2px solid #fff;border-radius:9px;margin:0;padding:5px 8px;font-size:13px;font-weight:900;line-height:1.2}.screen.face-alert:after{content:"";z-index:44;pointer-events:none;border:6px solid var(--red);border-radius:4px;animation:1.4s ease-in-out infinite faceAlertPulse;position:absolute;inset:0}@keyframes faceAlertPulse{50%{opacity:.25}}@media (prefers-reduced-motion:reduce){.screen.face-alert:after{opacity:.8;animation:none}}
