.gr-root{--gr-ink:#1d2433;--gr-accent:#1f6fd1;--gr-ok:#1b7a43;--gr-bad:#c62828;position:relative;max-width:860px;margin:16px auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--gr-ink);user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.gr-root *{box-sizing:border-box}
.gr-stage{position:relative;border-radius:18px;overflow:hidden;box-shadow:0 6px 24px rgba(0,0,0,.25);background:#bfe3ff;touch-action:manipulation}
.gr-canvas{display:block;width:100%;height:auto;cursor:pointer}
.gr-hud{position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;pointer-events:none;font-weight:800;font-size:15px;color:#1d2433}
.gr-hud .gr-lives{letter-spacing:1px;font-size:17px}
.gr-hud .gr-pill{background:rgba(255,255,255,.85);border-radius:999px;padding:3px 10px}
.gr-overlay{position:absolute;left:0;right:0;top:0;min-height:100%;display:flex;align-items:flex-start;justify-content:center;padding:12px 10px;background:rgba(13,18,35,.55);border-radius:18px;z-index:5}
.gr-overlay[hidden]{display:none}
.gr-card{background:#fff;color:#1d2433;border-radius:16px;padding:16px 18px;max-width:420px;width:100%;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.gr-card h2{margin:0 0 4px;font-size:21px;line-height:1.15;color:#1d2433;font-family:inherit}
.gr-card p{margin:4px 0 10px;color:#3d4657;font-size:15px}
.gr-q{font-size:32px;font-weight:900;margin:4px 0 4px;color:#1d2433}
.gr-q .gr-ans{display:inline-block;min-width:2.4em;border-bottom:4px solid var(--gr-accent);color:var(--gr-accent)}
.gr-fb{min-height:22px;font-weight:800;font-size:16px}
.gr-fb.ok{color:var(--gr-ok)}.gr-fb.bad{color:var(--gr-bad)}
.gr-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:260px;margin:6px auto 0}
.gr-root button.gr-b{appearance:none;border:0;border-radius:12px;background:#eef2f8;color:#1d2433;font:inherit;font-size:20px;font-weight:800;padding:9px 0;cursor:pointer;box-shadow:0 2px 0 #c9d2e0;text-transform:none;letter-spacing:0;line-height:1.2;min-height:0;width:auto}
.gr-root button.gr-b:active{transform:translateY(2px);box-shadow:none}
.gr-root button.gr-go{background:#1f6fd1;color:#fff;box-shadow:0 2px 0 #134c94;padding:10px 18px;font-size:18px}
.gr-root button.gr-ok{background:#1b7a43;color:#fff;box-shadow:0 2px 0 #11552e}
.gr-root button.gr-lv{background:#eef2f8;color:#1d2433;font-size:15px;padding:7px 10px}
.gr-root button.gr-lv.on{background:#1f6fd1;color:#fff;box-shadow:0 2px 0 #134c94}
.gr-levels{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:6px 0 12px}
.gr-small{font-size:13px;color:#566074}
.gr-help{margin-top:8px;font-size:13px;color:#566074}
@media (max-width:520px){.gr-q{font-size:28px}.gr-card{padding:12px}.gr-card h2{font-size:20px}.gr-root button.gr-b{font-size:18px;padding:7px 0}.gr-hud{font-size:13px}}
.gr-root .gr-card h2{font-weight:800;letter-spacing:0}
.gr-root .gr-levels{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-width:340px;margin:6px auto 12px}
.gr-root button.gr-lv{width:100%;font-size:14px;padding:7px 6px;white-space:normal}
.gr-root button.gr-b{max-width:100%;min-width:0;margin:0}
@media (max-width:520px){.gr-root .gr-card p{font-size:14px}}
.gr-root .gr-card button.gr-go{padding:10px 24px}

/* Full screen (phones, 1.1.0) */
.gr-root .gr-exit,.gr-rotate{display:none}
.gr-root.gr-full{position:fixed;inset:0;z-index:999999;margin:0;max-width:none;width:100vw;height:100vh;height:100dvh;background:#0d1223;display:flex;align-items:center;justify-content:center;touch-action:manipulation}
.gr-root.gr-full .gr-stage{border-radius:0;box-shadow:none}
.gr-root.gr-full .gr-help{display:none}
.gr-root.gr-full .gr-overlay{position:fixed;inset:0;min-height:0;border-radius:0;align-items:center;padding:8px}
.gr-root.gr-full .gr-card{max-height:calc(100dvh - 16px);overflow:auto}
.gr-root.gr-full .gr-hud{padding-right:52px}
.gr-root.gr-full button.gr-exit{display:block;position:absolute;top:6px;right:8px;pointer-events:auto;width:36px;height:36px;padding:0;border-radius:50%;font-size:18px;background:rgba(255,255,255,.85);box-shadow:none}
.gr-root.gr-ask-turn .gr-rotate{display:flex;position:fixed;inset:0;z-index:10;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#0d1223;color:#fff;text-align:center;padding:20px}
.gr-rotate .gr-rot-ic{font-size:64px;line-height:1;animation:gr-turn 1.6s ease-in-out infinite}
.gr-rotate p{margin:0;font-size:22px;font-weight:900;color:#ffd54f}
@keyframes gr-turn{0%,30%{transform:rotate(0)}60%,100%{transform:rotate(90deg)}}
@media (orientation:landscape) and (max-height:520px){
 .gr-root.gr-full .gr-card{padding:10px 14px;max-width:560px}
 .gr-root.gr-full .gr-card h2{font-size:18px;margin:0 0 2px}
 .gr-root.gr-full .gr-card p{font-size:13px;margin:2px 0 6px}
 .gr-root.gr-full .gr-q{font-size:26px;margin:2px 0}
 .gr-root.gr-full .gr-fb{min-height:18px;font-size:14px}
 .gr-root.gr-full .gr-pad{grid-template-columns:repeat(6,1fr);max-width:440px;gap:5px}
 .gr-root.gr-full button.gr-b{font-size:17px;padding:6px 0}
 .gr-root.gr-full .gr-levels{grid-template-columns:repeat(3,1fr);max-width:520px;margin:4px auto 8px}
 .gr-root.gr-full button.gr-lv{font-size:13px;padding:5px 4px}
 .gr-root.gr-full .gr-card button.gr-go{padding:8px 22px;font-size:16px}
}
.gr-root .gr-rotate button.gr-go{padding:10px 24px;font-size:18px}
.gr-root .gr-card p.gr-ios{margin:10px 0 0;font-size:13px;line-height:1.35;color:#3d4657;background:#eef5ff;border-radius:10px;padding:6px 8px}
