*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;background:#080b20;color:#fff;font-family:system-ui,Arial,sans-serif}main{max-width:900px;margin:auto;padding:12px}header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 4px 12px}header strong{font-size:clamp(21px,4vw,34px);letter-spacing:1px}header span{color:#ff66d1}header small{font-size:11px;color:#99a8d7}.stage{height:min(53vh,490px);min-height:300px;border:2px solid #7148de;border-radius:18px;overflow:hidden;background:radial-gradient(circle at 50% 25%,#382262,#080b20 75%)}.status{text-align:center;display:grid;gap:5px;margin:12px 0}.status strong{font-size:16px;color:#fff}.status span{font-size:12px;color:#aab5e4}.controls{display:flex;align-items:center;justify-content:space-around;gap:24px}.pad{width:170px;height:154px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;touch-action:none}.pad button{border:1px solid #a26cff;background:#3b2675;color:#fff;font-size:25px;border-radius:10px;touch-action:none;-webkit-user-select:none;user-select:none}.pad button:active{background:#b03bbd}.up{grid-column:2;grid-row:1}.left{grid-column:1;grid-row:2}.right{grid-column:3;grid-row:2}.down{grid-column:2;grid-row:3}.grab{border:0;border-radius:50%;width:126px;height:126px;color:#fff;background:radial-gradient(circle at 30% 25%,#ff8de5,#e21f91 65%,#8b116b);font-size:18px;font-weight:900;box-shadow:0 8px #60124b;cursor:pointer}footer{display:flex;gap:12px;justify-content:center;margin-top:20px}footer button{border:1px solid #5e6db5;border-radius:10px;background:#202953;color:#fff;padding:12px 18px;cursor:pointer}.note{text-align:center;color:#8794be;font-size:11px;margin-top:16px}@media(max-width:420px){.stage{height:47vh;min-height:280px}.pad{width:155px}.grab{width:112px;height:112px}}.stage{touch-action:none;cursor:grab;min-height:390px;height:min(68vh,670px)}.stage:active{cursor:grabbing}.prizes{margin-top:20px;padding:16px;border:1px solid #724bc1;border-radius:18px;background:linear-gradient(135deg,#211440,#101831)}.prizes h3{font-size:14px;letter-spacing:.5px;color:#ffb8ec;margin:0 0 10px}.prizes p{color:#a5b4d8;font-size:13px}.prizegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.prizegrid article{padding:9px;border-radius:12px;background:#33205a;display:flex;flex-direction:column;gap:5px}.prizegrid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;background:#121529}.prizegrid b{font-size:13px;text-transform:capitalize}.prizegrid small{color:#c6c2dc;font-size:10px}footer{flex-wrap:wrap}footer button{font-size:12px}@media(max-width:420px){.stage{height:58vh;min-height:340px}}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 178px;gap:12px;align-items:center}.game-layout .stage{width:100%;min-width:0}.prize-window{background:linear-gradient(155deg,#452171,#11152d);border:2px solid #f7b2ff;box-shadow:0 0 20px #fa51d644,inset 0 0 14px #b763ff33;border-radius:15px;min-height:218px;padding:10px;text-align:center;align-self:center}.prize-window-heading{font-size:12px;color:#fff4ac;font-weight:900;letter-spacing:.5px}.prize-empty{font-size:12px;color:#d9c6eb;margin-top:40px}.prize-reveal{display:flex;flex-direction:column;gap:5px;align-items:center;animation:prizePop .65s ease-out}.prize-model{height:135px;width:100%;background:radial-gradient(circle,#7540a5,#1a133c);border-radius:10px}.prize-reveal strong{color:#fff;font-size:14px}.prize-reveal span{color:#ffe663;font-size:15px;font-weight:900}.prize-reveal small{font-size:9px;color:#c5b8df}@keyframes prizePop{0%{transform:scale(.5);opacity:0}65%{transform:scale(1.1);opacity:1}to{transform:scale(1)}}@media(max-width:580px){.game-layout{grid-template-columns:minmax(0,1fr) 115px;gap:5px}.prize-window{padding:5px;min-height:150px}.prize-window-heading{font-size:9px}.prize-model{height:95px}.prize-reveal strong{font-size:11px}.prize-reveal span{font-size:12px}.game-layout .stage{height:55vh;min-height:310px}}.game-layout .stage{background-image:linear-gradient(90deg,#0a052342,#0c062324),url(/funnix-arcade-bg.svg);background-size:cover;background-position:center center;background-repeat:no-repeat}.game-layout .stage canvas{background:transparent!important}.round-hud{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.hud-timer,.hud-tries{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 15px;border-radius:13px;background:linear-gradient(145deg,#271348,#111d3e);border:1px solid #a15ef3;box-shadow:inset 0 0 15px #9b43fc25}.round-hud span{font-size:11px;font-weight:800;letter-spacing:.7px;color:#f4d9ff}.round-hud strong{font-size:25px;font-weight:900;color:#ffea74;font-variant-numeric:tabular-nums;text-shadow:0 0 12px #ffd34c88}.grab:disabled{opacity:.4;cursor:not-allowed}@media(max-width:580px){.round-hud{gap:6px}.hud-timer,.hud-tries{padding:9px;flex-direction:column;gap:3px}.round-hud span{font-size:9px}.round-hud strong{font-size:23px}}.controls .play-start{font-weight:900;font-size:18px;letter-spacing:1px;color:#171126;background:linear-gradient(135deg,#faff5d,#ffd143);border:2px solid #fff3a0;border-radius:14px;padding:15px 23px;box-shadow:0 0 18px #f5df4680;cursor:pointer;min-width:135px}.controls .play-start:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}@media(max-width:600px){.controls .play-start{width:100%;min-width:0;order:-1}}main{max-width:1240px;padding:12px 20px 24px}.game-layout{grid-template-columns:minmax(0,1fr) 188px;gap:16px}.game-layout .stage{height:min(72vh,730px);min-height:510px;border-color:#f25bfa;box-shadow:0 0 20px #ff31c72e,inset 0 0 18px #6c3cff24}.prize-window{min-height:240px;box-shadow:0 0 25px #fa51d655,inset 0 0 14px #b763ff33}header strong{font-size:clamp(26px,4vw,42px)}.controls{max-width:900px;margin:0 auto}@media(max-width:700px){main{padding:8px}.game-layout{grid-template-columns:minmax(0,1fr) 112px;gap:6px}.game-layout .stage{height:61vh;min-height:365px}.prize-window{min-height:165px;padding:6px}.controls{gap:8px;flex-wrap:wrap}.controls .play-start{flex-basis:100%}}main:fullscreen{box-sizing:border-box;width:100vw;max-width:none;height:100dvh;overflow:auto;padding:12px 18px;background:#100b27}main:fullscreen .game-layout .stage{height:min(65dvh,720px);min-height:320px}main:fullscreen footer{position:relative;z-index:2}@media(max-width:700px){main:fullscreen{padding:8px}main:fullscreen .game-layout .stage{height:52dvh;min-height:260px}main:fullscreen .controls{padding-bottom:8px}}.game-layout{display:block}.game-layout .stage{width:100%}.round-hud{display:grid;grid-template-columns:110px 110px minmax(0,1fr);gap:9px;align-items:stretch;margin:10px auto;max-width:100%;padding:0}.round-hud .hud-timer,.round-hud .hud-tries{aspect-ratio:1/1;min-width:0;width:100%;height:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:8px;gap:5px}.round-hud .hud-timer span,.round-hud .hud-tries span{font-size:10px;line-height:1.2}.round-hud .hud-timer strong,.round-hud .hud-tries strong{font-size:25px}.round-hud .prize-window{min-height:110px;max-height:150px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:7px}.round-hud .prize-window-heading{font-size:11px}.round-hud .prize-empty{margin:6px 0;font-size:12px}.round-hud .prize-reveal{display:grid;grid-template-columns:100px 1fr;grid-template-rows:repeat(3,auto);column-gap:8px;align-items:center;text-align:left;width:100%;max-width:290px}.round-hud .prize-model{grid-row:1/4;height:92px;width:100px}.round-hud .prize-reveal strong{font-size:13px}.round-hud .prize-reveal span{font-size:12px}@media(max-width:600px){.round-hud{grid-template-columns:72px 72px minmax(0,1fr);gap:5px;margin:6px auto}.round-hud .hud-timer,.round-hud .hud-tries{padding:3px;gap:2px}.round-hud .hud-timer span,.round-hud .hud-tries span{font-size:8px}.round-hud .hud-timer strong,.round-hud .hud-tries strong{font-size:19px}.round-hud .prize-window{min-height:72px;max-height:104px;padding:3px}.round-hud .prize-window-heading{font-size:9px}.round-hud .prize-reveal{grid-template-columns:54px 1fr;column-gap:4px}.round-hud .prize-model{height:60px;width:54px}.round-hud .prize-reveal strong,.round-hud .prize-reveal span{font-size:10px}.round-hud .prize-reveal small{font-size:8px}.round-hud .prize-empty{font-size:10px}}.game-layout .stage{position:relative;isolation:isolate}.game-layout .stage>.round-hud{position:absolute;z-index:8;top:12px;right:12px;bottom:12px;width:clamp(126px,19%,195px);margin:0;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:9px;pointer-events:none}.game-layout .stage>.round-hud .hud-timer,.game-layout .stage>.round-hud .hud-tries{width:100%;height:auto;aspect-ratio:auto;min-height:78px;flex:0 0 auto;border-radius:12px;padding:8px 5px;background:#111331ee;box-shadow:0 0 10px #ff4ddd55}.game-layout .stage>.round-hud .hud-timer span,.game-layout .stage>.round-hud .hud-tries span{font-size:10px}.game-layout .stage>.round-hud .hud-timer strong,.game-layout .stage>.round-hud .hud-tries strong{font-size:27px}.game-layout .stage>.round-hud .prize-window{width:100%;min-height:110px;max-height:none;flex:1 1 auto;overflow:hidden;background:#1c123ddd}.game-layout .stage>.round-hud .prize-reveal{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}.game-layout .stage>.round-hud .prize-model{width:min(100%,140px);height:clamp(65px,12vh,135px)}.game-layout .stage{background-image:linear-gradient(90deg,#0a052314,#0c062326),url(/funnix-arcade-bg.svg?v=629);background-size:cover;background-position:center}@media(max-width:700px){.game-layout .stage>.round-hud{right:5px;top:6px;bottom:6px;width:clamp(79px,23%,120px);gap:5px}.game-layout .stage>.round-hud .hud-timer,.game-layout .stage>.round-hud .hud-tries{min-height:53px;padding:3px 2px;border-radius:8px}.game-layout .stage>.round-hud .hud-timer span,.game-layout .stage>.round-hud .hud-tries span{font-size:8px;letter-spacing:0}.game-layout .stage>.round-hud .hud-timer strong,.game-layout .stage>.round-hud .hud-tries strong{font-size:19px}.game-layout .stage>.round-hud .prize-window{min-height:80px;padding:3px}.game-layout .stage>.round-hud .prize-window-heading{font-size:8px}.game-layout .stage>.round-hud .prize-model{height:75px}.game-layout .stage>.round-hud .prize-empty{font-size:9px}}.game-layout .stage{display:flex;align-items:stretch;overflow:hidden}.game-layout .stage .stage-canvas{position:relative;flex:1 1 auto;min-width:0;height:100%;touch-action:none;cursor:grab}.game-layout .stage .stage-canvas:active{cursor:grabbing}.game-layout .stage>.round-hud{position:relative;top:auto;right:auto;bottom:auto;flex:0 0 clamp(126px,19%,195px);width:clamp(126px,19%,195px);height:auto;padding:12px 9px 12px 0;pointer-events:none}.game-layout .stage{background-image:linear-gradient(90deg,#09061f12,#09061f26),url(/funnix-arcade-bg.svg?v=630);background-size:cover;background-position:center}@media(max-width:700px){.game-layout .stage>.round-hud{flex-basis:clamp(79px,23%,120px);width:clamp(79px,23%,120px);padding:6px 5px 6px 0}.game-layout .stage .stage-canvas{min-width:0}}.game-layout .stage{background-image:linear-gradient(90deg,#09061f12,#09061f26),url(/funnix-arcade-bg.svg?v=631)}.game-layout .stage>.round-hud .hud-icon{display:block;font-size:24px;line-height:1.15;letter-spacing:0;filter:drop-shadow(0 0 5px #ff57e0)}.game-layout .stage>.round-hud .joystick-icon{font-size:21px;white-space:nowrap}.game-layout .stage>.round-hud .hud-timer,.game-layout .stage>.round-hud .hud-tries{min-height:106px;gap:4px}.game-layout .stage>.round-hud .prize-window-heading{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;line-height:1.2}.game-layout .stage>.round-hud .prize-window-heading .hud-icon{font-size:23px}.game-layout .stage>.round-hud .prize-window-heading b{color:#ffe875;font-size:17px}@media(max-width:700px){.game-layout .stage>.round-hud .hud-icon{font-size:18px}.game-layout .stage>.round-hud .joystick-icon{font-size:15px}.game-layout .stage>.round-hud .hud-timer,.game-layout .stage>.round-hud .hud-tries{min-height:79px;gap:2px}.game-layout .stage>.round-hud .prize-window-heading .hud-icon{font-size:17px}}
