:where(:root){--g-bg:#1b1530;--g-panel:#140e28db;--g-text:#f4f1ff;--g-muted:#b8b0d8;--g-accent:#8b5cf6}*{box-sizing:border-box}html,body{background:var(--g-bg);height:100%;color:var(--g-text);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}.g-app{flex-direction:column;width:100%;height:100%;display:flex;position:relative}.g-hud{justify-content:space-between;align-items:center;padding:8px 12px;font-size:clamp(14px,4vmin,20px);font-weight:700;display:flex}.g-hud small{color:var(--g-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.65em;font-weight:600;display:block}.g-hud .g-right{text-align:right}.g-stage{flex:1;place-items:center;min-height:0;display:grid;position:relative}.g-overlay{text-align:center;background:var(--g-panel);z-index:5;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:16px;display:flex;position:absolute;inset:0}.g-overlay[hidden]{display:none}.g-overlay h1{margin:0;font-size:clamp(24px,8vmin,44px)}.g-overlay p{color:var(--g-muted);max-width:32ch;margin:0;font-size:clamp(13px,3.6vmin,17px)}.g-overlay .g-big{color:var(--g-text);font-size:clamp(36px,12vmin,64px);font-weight:800}.g-btn{font:inherit;background:var(--g-accent);color:#fff;cursor:pointer;border:0;border-radius:12px;margin-top:6px;padding:12px 22px;font-size:clamp(15px,4vmin,19px);font-weight:700}.g-btn:disabled{opacity:.5}.g-overlay{-webkit-backdrop-filter:blur(6px);background:radial-gradient(circle at 50% 30%,#8b5cf659,#0000 60%),#0e0a1ed1;animation:.25s ease-out g-fade}@keyframes g-fade{0%{opacity:0}}.g-overlay>*{animation:.35s cubic-bezier(.2,.9,.3,1.2) both g-rise}.g-overlay>:nth-child(2){animation-delay:40ms}.g-overlay>:nth-child(3){animation-delay:80ms}.g-overlay>:nth-child(4){animation-delay:.12s}.g-overlay>:nth-child(5){animation-delay:.16s}@keyframes g-rise{0%{opacity:0;transform:translateY(12px)scale(.96)}}@media (prefers-reduced-motion:reduce){.g-overlay,.g-overlay>*{animation:none}}.g-cover{aspect-ratio:4/3;border-radius:18px;width:clamp(110px,34vmin,200px);height:auto;transform:rotate(-3deg);box-shadow:0 14px 40px #00000080}.g-overlay h1{background:linear-gradient(90deg,#fff,#e9d5ff 50%,#fde68a);color:#0000;letter-spacing:-.02em;-webkit-background-clip:text;background-clip:text;font-weight:900}.g-overlay .g-big{font-variant-numeric:tabular-nums;text-shadow:0 4px 24px #8b5cf699}.g-btn{background:linear-gradient(135deg, var(--g-accent), color-mix(in srgb, var(--g-accent) 60%, #ec4899));box-shadow:0 8px 24px color-mix(in srgb, var(--g-accent) 50%, transparent);text-shadow:0 1px 3px #00000073;border-radius:999px;padding:14px 30px;transition:transform .12s,filter .12s}.g-btn:before{content:"▶ ";font-size:.8em}.g-btn:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.g-btn:active:not(:disabled){transform:scale(.97)}.g-hud span:not(.next span){font-variant-numeric:tabular-nums}.g-pop{pointer-events:none;color:#fde68a;text-shadow:0 2px 8px #00000080;z-index:4;font-weight:900;animation:.8s ease-out forwards g-pop;position:absolute}@keyframes g-pop{0%{opacity:1;transform:translate(-50%)scale(.8)}30%{transform:translate(-50%,-10px)scale(1.15)}to{opacity:0;transform:translate(-50%,-40px)scale(1)}}.g-mute{z-index:6;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0e0a1e8c;border:1px solid #ffffff40;border-radius:50%;place-items:center;width:36px;height:36px;font-size:16px;display:grid;position:absolute;bottom:8px;left:8px}.g-mute:hover{background:#0e0a1ebf}.g-mute--inline{flex:none;width:30px;height:30px;font-size:14px;position:static}:root{--g-accent:#b45309;--g-bg:#292524}.g-hud .mid{text-align:center}.levels{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.levels .g-btn:before{content:""}.wrap{--size:320px;flex-direction:column;align-items:center;gap:10px;display:flex}.board{width:var(--size);height:var(--size);background:radial-gradient(circle at 30% 20%,#fcd34d,#d97706 80%);border-radius:16px;position:relative;box-shadow:0 12px 30px #00000073,inset 0 0 0 4px #92400e}.lines{width:78%;height:78%;position:absolute;inset:11%;overflow:visible}.lines rect,.lines path{fill:none;stroke:#78350f;stroke-width:.07px;stroke-linecap:round}.pt{cursor:default;touch-action:manipulation;background:0 0;border:0;border-radius:50%;place-items:center;width:12%;height:12%;padding:0;display:grid;position:absolute;transform:translate(-50%,-50%)}.pt:before{content:"";background:#78350f;border-radius:50%;width:34%;height:34%}.pt.p1:before,.pt.p2:before{width:92%;height:92%;box-shadow:0 3px 5px #00000073}.pt.p1:before{background:radial-gradient(circle at 35% 30%,#fff,#d6d3d1 75%)}.pt.p2:before{background:radial-gradient(circle at 35% 30%,#57534e,#0c0a09 70%)}.pt.can{cursor:pointer}.pt.can:not(.p1):not(.p2):before{background:#fde047;width:40%;height:40%}.pt.sel:after,.pt.target:after{content:"";border:3px solid #fde047;border-radius:50%;position:absolute;inset:-6%}.pt.target:after{border-color:#ef4444}.pt.last:after{content:"";border:2px dashed #fde047;border-radius:50%;position:absolute;inset:2%}.pt:focus-visible{outline-offset:2px;outline:3px solid #22d3ee}.status{color:#fde68a;text-align:center;max-width:34ch;min-height:2.6em;font-size:clamp(14px,4vmin,18px);font-weight:800}.hand{color:#e7e5e4;gap:14px;font-size:14px;font-weight:700;display:flex}
