.g5ma-root{--m5-bg:#0b1229;--m5-panel:#172343;--m5-soft:#24355c;--m5-border:#35466d;--m5-text:#f2f6ff;--m5-muted:#b7c7e9;--m5-accent:#6ed9ff;--m5-yellow:#ffcf62;--m5-good:#6be3ab;--m5-bad:#ff8b9c;box-sizing:border-box;display:block;width:100%;max-width:1050px;margin:20px auto;background:linear-gradient(155deg,#132244 0%,#0c1530 64%,#10152e 100%);border:1px solid #2c426b;border-radius:22px;color:var(--m5-text);font:normal 16px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;box-shadow:0 16px 48px #0002;overflow:hidden;position:relative;isolation:isolate;min-height:340px}
.g5ma-root *, .g5ma-root *:before,.g5ma-root *:after{box-sizing:border-box}.g5ma-root button,.g5ma-root input{font:inherit}.g5ma-root button{cursor:pointer;touch-action:manipulation}.g5ma-root button:focus-visible,.g5ma-root input:focus-visible{outline:3px solid #8ddfff;outline-offset:2px}.g5ma-root button:disabled{opacity:.45;cursor:not-allowed}.g5ma-root .m5-hero{padding:30px;text-align:center;min-height:365px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;background:radial-gradient(circle at 50% 15%,#27457870,transparent 55%)}.g5ma-root .m5-emoji{font-size:58px;line-height:1.2;filter:drop-shadow(0 5px 15px #0005)}.g5ma-root h2,.g5ma-root h3,.g5ma-root p{padding:0;margin:0;color:inherit}.g5ma-root .m5-hero h2{font-size:clamp(24px,4vw,34px);font-weight:800;line-height:1.2}.g5ma-root .m5-hero p{color:var(--m5-muted);max-width:520px}.g5ma-root .m5-button{min-height:44px;min-width:70px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;border:1px solid #5070a9;background:#263a64;color:#f6f9ff;font-weight:700;padding:9px 16px;box-shadow:none;line-height:1.3;text-transform:none;letter-spacing:normal;transition:transform .15s,background .15s,border-color .15s}.g5ma-root .m5-button:hover{background:#355083;transform:translateY(-1px);border-color:#93abda}.g5ma-root .m5-button.m5-primary{border-color:#68dbff;background:linear-gradient(135deg,#167ac6,#315de7);color:white}.g5ma-root .m5-button.m5-primary:hover{background:linear-gradient(135deg,#299de3,#4576fc)}.g5ma-root .m5-button.m5-correct{border-color:#37ca8c;background:#145b4e}.g5ma-root .m5-button.m5-danger{border-color:#a24e68;background:#5e2b47}.g5ma-root .m5-button.m5-quiet{background:transparent}.g5ma-root .m5-button.m5-selected{border-color:#86e7ff;background:#315e85;box-shadow:0 0 0 2px #75dcff4d inset}.g5ma-root .m5-pill{display:inline-block;font-size:12px;line-height:1.4;border:1px solid #48618d;color:#c4d7ff;background:#1b2c50;padding:5px 10px;border-radius:999px}.g5ma-root .m5-toolbar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--m5-border);background:#0c1832cc;flex-wrap:wrap}.g5ma-root .m5-game-name{font-weight:800;color:#fff;flex:1;min-width:180px;font-size:17px}.g5ma-root .m5-score{font-variant-numeric:tabular-nums;color:var(--m5-yellow);font-weight:750}.g5ma-root .m5-hearts{color:#ff9bac;letter-spacing:2px;white-space:nowrap}.g5ma-root .m5-toolbar .m5-button{min-height:35px;min-width:36px;padding:5px 9px;font-size:13px}.g5ma-root .m5-progress{height:5px;background:#2c3a55}.g5ma-root .m5-progress>div{height:100%;background:linear-gradient(90deg,#36e3ab,#4bbafd);transition:width .25s}.g5ma-root .m5-mission{padding:15px 20px 5px;text-align:center;color:#d0e0ff;min-height:45px;font-weight:650}.g5ma-root .m5-stage{padding:14px 22px 22px;min-height:315px;position:relative}.g5ma-root .m5-caption{font-size:13px;color:var(--m5-muted)}.g5ma-root .m5-center{text-align:center}.g5ma-root .m5-hint{margin:10px auto;padding:10px 14px;border-radius:10px;background:#1c3457;border:1px solid #47658d;color:#eaf7ff;max-width:720px;text-align:center}.g5ma-root .m5-notice{margin:8px auto;max-width:700px;padding:11px 14px;text-align:center;border-radius:12px;border:1px solid #37698f;background:#0d3650;color:#ebfbff}.g5ma-root .m5-notice.m5-bad{border-color:#ad6073;background:#47263e}.g5ma-root .m5-notice.m5-ok{border-color:#398a78;background:#184a47}.g5ma-root .m5-entry{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:13px;flex-wrap:wrap}.g5ma-root .m5-input{border:2px solid #5976a4!important;background:#fff!important;color:#172139!important;border-radius:12px!important;max-width:220px;width:100%;min-height:48px;padding:9px 12px!important;font-size:22px!important;font-weight:750!important;text-align:center;box-shadow:none!important}.g5ma-root .m5-question{background:#1e3155;border:1px solid #426293;border-radius:15px;padding:18px;text-align:center;max-width:600px;margin:0 auto 16px;font-size:clamp(21px,4vw,29px);font-weight:800;color:#f7fafc}.g5ma-root .m5-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center}.g5ma-root .m5-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:690px;margin:0 auto}.g5ma-root .m5-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:780px;margin:0 auto}.g5ma-root .m5-card{background:linear-gradient(160deg,#253960,#192a4c);border:1px solid #516d9f;border-radius:15px;padding:15px;color:#f0f7ff;text-align:center}.g5ma-root .m5-card strong{font-size:23px;display:block}.g5ma-root .m5-card small{font-size:13px;color:var(--m5-muted)}.g5ma-root .m5-canvas-wrap{border-radius:16px;overflow:hidden;border:1px solid #354b78;background:#09152f}.g5ma-root canvas.m5-canvas{display:block;width:100%;height:auto;aspect-ratio:900/340;background:radial-gradient(ellipse at 60% 40%,#1b3261,#08132e)}.g5ma-root .m5-meteor-entry{margin-top:12px}.g5ma-root .m5-rocket-track{position:relative;min-height:210px;background:linear-gradient(90deg,#0b1733,#172f57);border:1px solid #375280;border-radius:14px;padding:10px;overflow:hidden}.g5ma-root .m5-lane{height:61px;border-bottom:1px dashed #5f7798;display:flex;align-items:center;gap:16px;padding:5px 10px;position:relative}.g5ma-root .m5-lane:last-child{border:0}.g5ma-root .m5-ship{font-size:30px;display:inline-block;transition:transform .45s ease-out}.g5ma-root .m5-ship.m5-fly{transform:translateX(min(44vw,500px)) rotate(10deg)}.g5ma-root .m5-lane .m5-button{margin-left:auto;width:110px}.g5ma-root .m5-countdown{height:9px;background:#273d60;border-radius:20px;overflow:hidden;margin:12px auto;max-width:590px}.g5ma-root .m5-countdown>div{height:100%;background:linear-gradient(90deg,#ffbe60,#7ee8c6);transition:width .12s linear}.g5ma-root .m5-fraction-svg{width:min(100%,300px);height:auto;display:block;margin:0 auto;touch-action:manipulation}.g5ma-root .m5-frac-slice{cursor:pointer;stroke:#101f3b;stroke-width:3;transition:fill .12s}.g5ma-root .m5-frac-slice:focus{outline:none;stroke:#f6f2a5;stroke-width:5}.g5ma-root .m5-frac-slice.m5-on{fill:#f5b44f}.g5ma-root .m5-market-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:690px;margin:0 auto 15px}.g5ma-root .m5-coins{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;max-width:630px;margin:14px auto}.g5ma-root .m5-coin{border-radius:50%!important;min-width:67px!important;height:67px!important;padding:6px!important;border:2px solid #d5a956!important;background:radial-gradient(circle at 25% 25%,#ffe3a5,#c49139)!important;color:#51350e!important;font-size:14px!important;font-weight:900!important}.g5ma-root .m5-geom-svg{max-width:460px;width:100%;display:block;margin:2px auto 12px;background:#122447;border-radius:14px;border:1px solid #435d8c}.g5ma-root .m5-geom-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px}.g5ma-root .m5-value{min-width:70px;text-align:center;font-size:25px;font-weight:800;color:#ffda8a}.g5ma-root .m5-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:720px;margin:14px auto;gap:9px}.g5ma-root .m5-memory-card{height:88px;min-width:0;padding:5px!important;font-size:clamp(13px,2.1vw,18px)!important;word-break:break-word;white-space:normal;line-height:1.25}.g5ma-root .m5-memory-card.m5-hidden{background:linear-gradient(145deg,#295091,#182d57);font-size:25px!important}.g5ma-root .m5-memory-card.m5-found{background:#164940;color:#a7f9cf;border-color:#54c897}.g5ma-root .m5-river{border-radius:16px;background:repeating-linear-gradient(160deg,#144c7a 0,#185b8f 18px,#1b679d 24px,#164f80 40px);padding:22px 12px;text-align:center;max-width:750px;margin:0 auto 15px;border:2px solid #417fb0}.g5ma-root .m5-stone{min-height:87px;width:100%;font-size:23px!important;background:radial-gradient(ellipse at 30% 20%,#a7b1b8,#667a89)!important;color:#16233a!important;border:3px solid #d2d5d0!important;box-shadow:0 7px 0 #143d59!important;border-radius:45% 50% 43% 48%!important}.g5ma-root .m5-clock-svg{display:block;margin:5px auto;max-width:300px;width:100%;height:auto}.g5ma-root .m5-clock-controls{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:15px}.g5ma-root .m5-clock-digit{font-size:27px;font-weight:800;text-align:center;color:#ffdc82}.g5ma-root .m5-magic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:340px;margin:12px auto}.g5ma-root .m5-magic-cell{aspect-ratio:1;min-width:0;display:flex;align-items:center;justify-content:center;font-size:26px!important;font-weight:800!important;border-radius:12px!important;border:2px solid #4d74a5!important;background:#253c68!important;color:white!important}.g5ma-root .m5-magic-cell.m5-fixed{background:#152a4b!important;color:#abc3e4!important}.g5ma-root .m5-magic-cell.m5-selected{border-color:#fbd584!important;background:#4c5e82!important}.g5ma-root .m5-magic-cell.m5-wrong{border-color:#fd8597!important}.g5ma-root .m5-magic-palette{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:12px auto;max-width:520px}.g5ma-root .m5-magic-palette .m5-button{min-width:43px;padding:8px}.g5ma-root .m5-locks{display:flex;justify-content:center;gap:15px;margin:0 auto 15px}.g5ma-root .m5-lock{background:#26355b;border:1px solid #5c7199;border-radius:12px;padding:8px 15px;min-width:65px;text-align:center;font-size:26px}.g5ma-root .m5-lock.m5-open{border-color:#5cd6ab;background:#1a5448}.g5ma-root .m5-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:255px;margin:12px auto}.g5ma-root .m5-keypad .m5-button{font-size:20px;min-height:49px}.g5ma-root .m5-finished{min-height:335px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:13px;padding:28px}.g5ma-root .m5-finished h2{font-size:29px;font-weight:800}.g5ma-root .m5-score-big{font-size:54px;line-height:1.1;color:#ffce6d;font-weight:900}.g5ma-root .m5-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:850px;margin:17px auto}.g5ma-root .m5-hub-card{display:flex;gap:13px;align-items:center;text-align:left;min-height:100px}.g5ma-root .m5-hub-card .m5-emoji{font-size:31px}.g5ma-root .m5-hub-card h3{font-size:16px;font-weight:800;line-height:1.25}.g5ma-root .m5-hub-card p{font-size:13px;color:#b9ccea}.g5ma-root .m5-small-score{font-size:12px;color:#ffcf81}.g5ma-root .m5-hub-back{margin:12px 0 4px}.g5ma-root .m5-end-explain{font-size:14px;color:#b7d4fa;max-width:590px}
@media(max-width:680px){.g5ma-root{border-radius:14px;font-size:14px}.g5ma-root .m5-toolbar{padding:11px;gap:7px}.g5ma-root .m5-game-name{font-size:14px;min-width:140px}.g5ma-root .m5-stage{padding:12px 10px 20px}.g5ma-root .m5-mission{padding:10px 9px 4px;font-size:14px}.g5ma-root .m5-market-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.g5ma-root .m5-market-items .m5-card{padding:8px 4px;font-size:13px}.g5ma-root .m5-market-items .m5-card strong{font-size:16px}.g5ma-root .m5-grid3{gap:6px}.g5ma-root .m5-grid3 .m5-button{min-width:0;padding:8px 5px}.g5ma-root .m5-hub-grid{grid-template-columns:1fr}.g5ma-root .m5-memory-card{height:70px}.g5ma-root .m5-lane .m5-button{width:82px}.g5ma-root .m5-coin{min-width:55px!important;height:55px!important}}
@media(prefers-reduced-motion:reduce){.g5ma-root .m5-button,.g5ma-root .m5-ship,.g5ma-root .m5-progress>div{transition:none!important}}
