/* ==========================================================================
   Davra Books — qo'shimcha o'yin formatlari dizayni (games.css dan keyin yuklanadi)
   Animatsiyalar faqat transform/opacity; kirish animatsiyalari `backwards`.
   ========================================================================== */

.gp-tip { text-align: center; font-size: .8125rem; color: rgb(var(--mist-rgb)); }
.gp-live-note { display: inline-flex; align-items: center; gap: .6rem; max-width: 460px; padding: .7rem 1rem; border-radius: 14px; border: 1px solid rgb(var(--gm-1) / .5); background: rgb(var(--gm-1) / .12); font-size: .9rem; font-weight: 600; text-align: left; }
.gp-live-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #f43f5e; animation: gp-pulse 1.4s ease-in-out infinite; }
@keyframes gp-pulse { 50% { transform: scale(1.5); opacity: .45; } }

/* ── Umumiy: savol, jonlar, zarrachalar ─────────────────────────────────── */
.gp-question { width: 100%; max-width: 780px; margin: 0 auto; padding: .8rem 1.1rem; border-radius: 16px; text-align: center; background: rgb(var(--ink-900-rgb) / .94); border: 1px solid rgb(var(--ink-border-rgb)); box-shadow: 0 16px 36px -24px rgba(0, 0, 0, .7); animation: gp-drop .5s var(--gm-spring) backwards; }
.gp-question > p:last-child { font-family: Spectral, Georgia, serif; font-weight: 700; font-size: clamp(1.1rem, 3.2vw, 1.5rem); line-height: 1.3; }
.gp-question.is-big { padding: 1.2rem 1.25rem; }
.gp-question.is-big > p:last-child { margin-top: .35rem; font-size: clamp(1.25rem, 4vw, 1.85rem); }
.gp-question-img { display: inline-block; max-height: 150px; max-width: 100%; margin-bottom: .5rem; border-radius: 12px; object-fit: contain; }
@keyframes gp-drop { from { transform: translateY(-18px) scale(.96); opacity: 0; } }
.gp-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.gp-hearts { display: inline-flex; gap: .25rem; color: #f43f5e; }
.gp-hearts i { width: 24px; height: 24px; transition: transform .35s var(--gm-spring), opacity .35s; }
.gp-hearts svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(244, 63, 94, .45)); }
.gp-hearts i.is-lost { transform: scale(.65); opacity: .22; color: rgb(var(--mist-rgb)); }

.gp-burst { position: absolute; z-index: 6; width: 0; height: 0; pointer-events: none; }
.gp-burst i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; animation: gp-burst .85s cubic-bezier(.1, .8, .3, 1) forwards; }
@keyframes gp-burst { from { transform: translate(0, 0) scale(var(--s)); opacity: 1; } to { transform: translate(var(--dx), calc(var(--dy) + 34px)) scale(0) rotate(260deg); opacity: 0; } }
.gp-float { position: absolute; z-index: 7; pointer-events: none; font: 800 1.5rem/1 "DM Mono", monospace; color: #10b981; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(16, 185, 129, .7); animation: gp-float .95s ease-out forwards; }
.gp-float.is-bad { color: #fb7185; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
@keyframes gp-float { from { transform: translate(-50%, -20%) scale(.6); opacity: 0; } 25% { transform: translate(-50%, -60%) scale(1.2); opacity: 1; } to { transform: translate(-50%, -190%) scale(1); opacity: 0; } }

/* ── Arkada maydoni ─────────────────────────────────────────────────────── */
.gp-arcade { flex: 1; display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.gp-field { position: relative; flex: 1; min-height: clamp(330px, 52vh, 560px); overflow: hidden; border-radius: 18px; border: 1px solid rgb(var(--ink-border-rgb)); isolation: isolate; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gm-stage:fullscreen .gp-field { min-height: 0; }
.gp-field.is-sky { background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 48%, #bae6fd 78%, #dcfce7 100%); }
.gp-field.is-space { background: radial-gradient(90% 70% at 75% 15%, rgba(124, 58, 237, .5), transparent 60%), radial-gradient(80% 60% at 15% 85%, rgba(14, 116, 144, .5), transparent 60%), #070b1a; }
.gp-field-deco, .gp-field-deco > div { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gp-cloud { position: absolute; width: 130px; height: 40px; border-radius: 40px; background: rgba(255, 255, 255, .85); animation: gp-cloud 46s linear infinite; }
.gp-cloud::before, .gp-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.gp-cloud::before { width: 62px; height: 62px; left: 20px; top: -28px; }
.gp-cloud::after { width: 44px; height: 44px; right: 20px; top: -18px; }
.gp-cloud.c1 { top: 16%; left: -20%; } .gp-cloud.c2 { top: 44%; left: -20%; animation-duration: 62s; animation-delay: -30s; opacity: .75; scale: .7; } .gp-cloud.c3 { top: 30%; left: -20%; animation-duration: 54s; animation-delay: -14s; opacity: .6; scale: .5; }
@keyframes gp-cloud { to { transform: translateX(1500px); } }
.gp-hill { position: absolute; left: -10%; right: -10%; bottom: -70px; height: 130px; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #4ade80, #16a34a); }
.gp-stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 80px, #fff, transparent), radial-gradient(1.5px 1.5px at 150px 20px, #cbd5e1, transparent), radial-gradient(1px 1px at 60px 140px, #fff, transparent), radial-gradient(2px 2px at 180px 110px, #e0f2fe, transparent); background-size: 200px 160px; animation: gp-twinkle 4s ease-in-out infinite alternate; }
.gp-stars.s2 { background-size: 290px 230px; background-position: 60px 40px; animation-delay: -2s; opacity: .7; }
@keyframes gp-twinkle { from { opacity: .35; } to { opacity: 1; } }
.gp-planet { position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fcd34d, #f97316 55%, #7c2d12 100%); opacity: .75; }

.gp-target { position: absolute; left: 0; top: 0; transform: translate3d(-400px, -400px, 0); width: var(--size, 130px); padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; will-change: transform; -webkit-tap-highlight-color: transparent; }
.gp-target:focus-visible .gp-shape { outline: 3px solid #fff; outline-offset: 3px; }
.gp-shape { position: relative; display: grid; place-items: center; width: 100%; color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.12; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); transition: opacity .25s; }
.gp-label { display: block; max-width: 84%; overflow-wrap: anywhere; hyphens: auto; }
.gp-target.is-md .gp-shape { font-size: 1rem; } .gp-target.is-sm .gp-shape { font-size: .86rem; } .gp-target.is-xs .gp-shape { font-size: .72rem; }
.gp-target.is-rest { opacity: .55; }

.gp-balloon .gp-shape { aspect-ratio: 1 / 1.16; border-radius: 50% 50% 48% 48% / 46% 46% 54% 54%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0 5%, rgba(255, 255, 255, .3) 12%, transparent 30%), radial-gradient(circle at 40% 35%, rgb(var(--o)), color-mix(in srgb, rgb(var(--o)) 72%, #000) 100%); box-shadow: inset -10px -14px 26px rgba(0, 0, 0, .22), 0 16px 24px -14px rgba(15, 23, 42, .6); }
.gp-balloon .gp-shape::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 12px; margin-left: -8px; background: color-mix(in srgb, rgb(var(--o)) 72%, #000); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gp-balloon .gp-tail { display: block; width: 2px; height: 34px; margin: 8px auto 0; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .2)); }
.gp-balloon.gm-opt-0 .gp-shape { color: #fff; }
.gp-balloon:hover .gp-shape { filter: brightness(1.08); }
.gp-balloon.is-hit .gp-shape, .gp-balloon.is-hit .gp-tail { animation: gp-popped .3s ease-out forwards; }
.gp-balloon.is-miss .gp-shape, .gp-balloon.is-miss .gp-tail { animation: gp-deflate .75s ease-in forwards; }
.gp-target.is-hit, .gp-target.is-miss { pointer-events: none; }
@keyframes gp-popped { 40% { transform: scale(1.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes gp-deflate { 30% { transform: translate(14px, -30px) rotate(25deg) scale(.85); } 60% { transform: translate(-26px, -10px) rotate(-60deg) scale(.5); } to { transform: translate(10px, 160px) rotate(160deg) scale(.2); opacity: 0; } }

.gp-meteor .gp-shape { aspect-ratio: 1; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: radial-gradient(circle at 30% 70%, rgba(0, 0, 0, .35) 0 9%, transparent 10%), radial-gradient(circle at 74% 38%, rgba(0, 0, 0, .3) 0 7%, transparent 8%), radial-gradient(circle at 60% 78%, rgba(0, 0, 0, .25) 0 5%, transparent 6%), radial-gradient(circle at 35% 28%, color-mix(in srgb, rgb(var(--o)) 65%, #fff), color-mix(in srgb, rgb(var(--o)) 60%, #1e1b2e) 60%, #1e1b2e 115%); box-shadow: 0 0 34px -4px rgb(var(--o) / .8), inset -12px -12px 24px rgba(0, 0, 0, .45); }
.gp-meteor .gp-label { max-width: 80%; padding: .15rem .35rem; border-radius: 8px; background: rgba(2, 6, 23, .55); }
.gp-meteor .gp-tail { position: absolute; left: 18%; right: 18%; bottom: 72%; height: 90%; z-index: -1; border-radius: 50% 50% 0 0; background: linear-gradient(0deg, rgb(var(--o) / .75), rgb(var(--o) / .25) 50%, transparent); transform-origin: bottom; animation: gp-trail .5s ease-in-out infinite alternate; }
@keyframes gp-trail { from { transform: scaleY(.85); opacity: .8; } to { transform: scaleY(1.1); opacity: 1; } }
.gp-meteor.gm-opt-0 .gp-shape { color: #fff; }
.gp-meteor.is-hit .gp-shape { animation: gp-popped .35s ease-out forwards; }
.gp-meteor.is-hit .gp-tail, .gp-meteor.is-miss .gp-tail { opacity: 0; animation: none; }
.gp-meteor.is-miss .gp-shape { animation: gp-crumble .6s ease-out forwards; }
@keyframes gp-crumble { 30% { transform: scale(1.1) rotate(8deg); filter: grayscale(1); } to { transform: scale(.3) rotate(120deg); opacity: 0; } }
.gp-ship { position: absolute; left: 50%; bottom: 4px; width: 62px; margin-left: -31px; z-index: 3; pointer-events: none; animation: gp-hover 2.2s ease-in-out infinite; }
.gp-ship svg { width: 100%; display: block; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .65)); }
@keyframes gp-hover { 50% { transform: translateY(-6px); } }
.gp-flame { transform-box: fill-box; transform-origin: 50% 0; animation: gp-flame .16s ease-in-out infinite alternate; }
@keyframes gp-flame { from { transform: scaleY(.75); } to { transform: scaleY(1.15); } }
.gp-laser { position: absolute; left: 50%; bottom: 50px; width: 5px; margin-left: -2.5px; border-radius: 4px; transform-origin: bottom center; background: linear-gradient(0deg, #22d3ee, #ecfeff); box-shadow: 0 0 16px #22d3ee; animation: gp-laser .26s ease-out forwards; }
@keyframes gp-laser { from { opacity: 1; } to { opacity: 0; } }
.gp-hurt { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 70px 12px rgba(244, 63, 94, .75); opacity: 0; animation: gp-hurt .6s ease-out; }
@keyframes gp-hurt { 20% { opacity: 1; } }
.gp-over { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(2, 6, 23, .7); color: #fff; font-family: Spectral, Georgia, serif; font-weight: 700; font-size: clamp(1.5rem, 6vw, 2.5rem); text-align: center; animation: gp-fade .4s; }
@keyframes gp-fade { from { opacity: 0; } }

/* ── Chaqqon qo'l ───────────────────────────────────────────────────────── */
.gp-garden { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(132px, 178px); align-content: space-evenly; gap: .6rem; padding: .8rem; background: radial-gradient(120% 90% at 50% 0%, #fde68a, transparent 65%), linear-gradient(180deg, #a3e635, #15803d); }
@media (max-width: 559px) { .gp-garden { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(118px, 150px); } }
.gp-hole { position: relative; min-height: 132px; padding: 0; border: 0; border-radius: 18px; background: radial-gradient(60% 34% at 50% 84%, rgba(20, 30, 10, .55), transparent 70%); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gp-worm { position: absolute; left: 50%; bottom: 20%; height: 54%; aspect-ratio: 100 / 96; transform: translate(-50%, 60%); opacity: 0; transition: transform .32s var(--gm-spring), opacity .18s; }
.gp-worm svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gp-worm-body { fill: #f472b6; stroke: #9d174d; stroke-width: 3; } .gp-worm-stripe { stroke: #db2777; stroke-width: 4; opacity: .5; } .gp-worm-horn { stroke: #9d174d; stroke-width: 3; fill: none; stroke-linecap: round; } .gp-worm-dot { fill: #fbbf24; } .gp-worm-eye { fill: #1e293b; }
.gp-hole:nth-child(3n+2) .gp-worm-body { fill: #a78bfa; stroke: #5b21b6; } .gp-hole:nth-child(3n+2) .gp-worm-stripe { stroke: #7c3aed; } .gp-hole:nth-child(3n+2) .gp-worm-horn { stroke: #5b21b6; }
.gp-hole:nth-child(3n) .gp-worm-body { fill: #22d3ee; stroke: #155e75; } .gp-hole:nth-child(3n) .gp-worm-stripe { stroke: #0891b2; } .gp-hole:nth-child(3n) .gp-worm-horn { stroke: #155e75; }
.gp-hole.is-up .gp-worm { opacity: 1; transform: translate(-50%, 0); animation: gp-peek 1.1s ease-in-out .35s infinite alternate; }
@keyframes gp-peek { from { transform: translate(-50%, 0) rotate(-3deg); } to { transform: translate(-50%, -4px) rotate(3deg); } }
.gp-sign { position: absolute; left: 4%; right: 4%; bottom: 70%; z-index: 3; display: grid; place-items: center; min-height: 40px; padding: .3rem .5rem; border-radius: 12px; background: #fff; color: #0f172a; font-weight: 800; font-size: 1rem; line-height: 1.12; text-align: center; overflow-wrap: anywhere; border: 2px solid #0f172a; box-shadow: 0 5px 0 rgba(15, 23, 42, .35); transform: scale(0); opacity: 0; transition: transform .26s var(--gm-spring), opacity .18s; }
.gp-hole.is-sm .gp-sign { font-size: .84rem; } .gp-hole.is-xs .gp-sign { font-size: .72rem; }
.gp-hole.is-up .gp-sign { transform: scale(1); opacity: 1; }
.gp-hole.is-up:hover .gp-sign { background: #fef9c3; }
.gp-book { position: absolute; left: 8%; right: 8%; bottom: 4%; height: 26%; z-index: 2; display: flex; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.gp-book i { flex: 1; background: linear-gradient(180deg, #fffbeb, #fde68a); border: 2px solid #92400e; }
.gp-book i:first-child { border-radius: 10px 3px 3px 12px; transform: skewY(6deg); border-right-width: 1px; } .gp-book i:last-child { border-radius: 3px 10px 12px 3px; transform: skewY(-6deg); border-left-width: 1px; }
.gp-hole.is-ok .gp-sign { background: #10b981; color: #fff; } .gp-hole.is-bad .gp-sign { background: #f43f5e; color: #fff; animation: gm-shake .4s; }
.gp-hole.is-ok .gp-worm { animation: gp-jump .5s var(--gm-spring) 2; }
@keyframes gp-jump { 50% { transform: translate(-50%, -20px) scale(1.08, .95); } }

/* ── Sirli qutilar ──────────────────────────────────────────────────────── */
.gp-boxes-wrap, .gp-wheel-wrap { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 400px; }
.gp-boxes { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 620px; gap: clamp(.8rem, 2.6vw, 1.5rem); }
.gp-box { --c: 20 184 166; position: relative; width: clamp(72px, 19vw, 122px); aspect-ratio: 1 / 1.02; padding: 0; border: 0; background: none; cursor: pointer; animation: gp-box-in .55s var(--gm-spring) backwards; transition: transform .2s var(--gm-spring); }
@keyframes gp-box-in { from { transform: translateY(-60px) scale(.5); opacity: 0; } }
.gp-box.is-tone-1 { --c: 245 158 11; } .gp-box.is-tone-2 { --c: 225 29 72; } .gp-box.is-tone-3 { --c: 99 102 241; } .gp-box.is-tone-4 { --c: 14 165 233; } .gp-box.is-tone-5 { --c: 192 38 211; }
.gp-box:hover:not(:disabled) { transform: translateY(-6px) rotate(-2deg); }
.gp-box-body { position: absolute; left: 8%; right: 8%; bottom: 0; top: 34%; display: grid; place-items: center; border-radius: 0 0 14px 14px; color: #fff; background: linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, .28) 42% 58%, transparent 58%), linear-gradient(180deg, rgb(var(--c)), color-mix(in srgb, rgb(var(--c)) 68%, #000)); box-shadow: 0 14px 24px -12px rgb(var(--c) / .9), inset 0 -6px 14px rgba(0, 0, 0, .18); }
.gp-box-body b { position: relative; font: 800 clamp(1.1rem, 4vw, 1.7rem)/1 "DM Mono", monospace; text-shadow: 0 2px 4px rgba(0, 0, 0, .45); }
.gp-box-lid { position: absolute; left: 2%; right: 2%; top: 17%; height: 24%; z-index: 2; border-radius: 10px; transform-origin: 12% 100%; transition: transform .5s var(--gm-spring); background: linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, .35) 43% 57%, transparent 57%), linear-gradient(180deg, color-mix(in srgb, rgb(var(--c)) 80%, #fff), rgb(var(--c))); box-shadow: 0 4px 8px -3px rgba(0, 0, 0, .4); }
.gp-box-lid i { position: absolute; left: 50%; bottom: 92%; width: 44%; height: 15px; margin-left: -22%; background: radial-gradient(60% 100% at 25% 60%, #fff8 0 55%, transparent 58%), radial-gradient(60% 100% at 75% 60%, #fff8 0 55%, transparent 58%); border-radius: 50%; }
.gp-box-glow { position: absolute; left: 10%; right: 10%; top: -30%; bottom: 40%; z-index: 1; opacity: 0; background: radial-gradient(60% 80% at 50% 100%, #fde68a, transparent 70%); transition: opacity .4s; pointer-events: none; }
.gp-box.is-opening { animation: gp-rattle .35s ease-in-out; }
.gp-box.is-opening .gp-box-lid { transform: rotate(-62deg) translateY(-14px); } .gp-box.is-opening .gp-box-glow { opacity: 1; }
@keyframes gp-rattle { 25% { transform: rotate(-5deg) scale(1.05); } 50% { transform: rotate(5deg) scale(1.08); } 75% { transform: rotate(-4deg) scale(1.05); } }
.gp-box:disabled { cursor: default; }
.gp-box.is-ok .gp-box-lid, .gp-box.is-bad .gp-box-lid { transform: rotate(-62deg) translateY(-10px); opacity: .75; }
.gp-box.is-bad { filter: grayscale(.75); opacity: .7; }
.gp-box.is-ok .gp-box-body b, .gp-box.is-bad .gp-box-body b { opacity: 0; }
.gp-box-mark { position: absolute; left: 50%; top: 50%; z-index: 3; width: 42px; height: 42px; margin-left: -21px; display: grid; place-items: center; border-radius: 50%; color: #fff; animation: gm-pop .5s var(--gm-spring) backwards; }
.gp-box-mark svg { width: 24px; height: 24px; } .gp-box-mark.is-ok { background: #10b981; box-shadow: 0 0 22px rgba(16, 185, 129, .8); } .gp-box-mark.is-bad { background: #f43f5e; }

.gp-card-layer { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: .5rem; border-radius: 16px; background: rgb(var(--ink-950-rgb) / .78); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: gp-fade .25s; overflow-y: auto; }
.gp-card { width: 100%; max-width: 720px; padding: 1.4rem 1.1rem 1.1rem; border-radius: 20px; text-align: center; background: rgb(var(--ink-900-rgb)); border: 1px solid rgb(var(--ink-border-rgb)); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .85); animation: gp-card-in .5s var(--gm-spring) backwards; }
@keyframes gp-card-in { from { transform: perspective(900px) rotateX(-50deg) translateY(40px) scale(.7); opacity: 0; } }

/* ── Omad g'ildiragi ────────────────────────────────────────────────────── */
.gp-wheel { position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; animation: gm-pop .6s var(--gm-spring) backwards; }
.gp-wheel-rim { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(145deg, #fcd34d, #b45309 45%, #fde68a 60%, #92400e); box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .75), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.gp-wheel-rim > i { position: absolute; inset: 0; }
.gp-wheel-rim b { position: absolute; left: 50%; top: 1.1%; width: 2.6%; height: 2.6%; margin-left: -1.3%; border-radius: 50%; background: #fffbeb; box-shadow: 0 0 8px #fef3c7; }
.gp-wheel.is-spinning .gp-wheel-rim > i:nth-child(even) b { animation: gp-lamp .3s steps(2) infinite; } .gp-wheel.is-spinning .gp-wheel-rim > i:nth-child(odd) b { animation: gp-lamp .3s steps(2) -.15s infinite; }
@keyframes gp-lamp { 50% { opacity: .15; } }
.gp-wheel-disc { position: absolute; inset: 5%; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .55), inset 0 0 50px rgba(0, 0, 0, .3); will-change: transform; overflow: hidden; }
.gp-wheel-label { position: absolute; inset: 0; pointer-events: none; }
.gp-wheel-label b { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); color: #fff; font: 800 clamp(.85rem, 3.4vw, 1.25rem)/1 "DM Mono", monospace; text-shadow: 0 2px 4px rgba(0, 0, 0, .55); }
.gp-wheel-label.is-landed b { animation: gp-landed .5s var(--gm-spring) infinite alternate; }
@keyframes gp-landed { to { transform: translateX(-50%) scale(1.5); } }
.gp-wheel-pointer { position: absolute; left: 50%; top: -3%; width: 34px; height: 46px; margin-left: -17px; z-index: 4; background: linear-gradient(180deg, #f43f5e, #9f1239); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .07s; }
.gp-wheel-pointer.is-tick { transform: rotate(-13deg); } .gp-wheel-pointer.is-tock { transform: rotate(-4deg); }
.gp-wheel-btn { position: absolute; left: 50%; top: 50%; z-index: 3; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid #fff; color: #fff; font-weight: 800; font-size: clamp(.8rem, 3vw, 1.05rem); background: radial-gradient(circle at 35% 30%, rgb(var(--gm-1)), rgb(var(--gm-2))); box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .7), inset 0 -6px 12px rgba(0, 0, 0, .25); transition: transform .15s, filter .2s; cursor: pointer; }
.gp-wheel-btn:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); } .gp-wheel-btn:active:not(:disabled) { transform: translate(-50%, -50%) scale(.94); } .gp-wheel-btn:disabled { filter: grayscale(.4); cursor: default; }
.gp-wheel:not(.is-spinning) .gp-wheel-btn:not(:disabled)::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid rgb(var(--gm-3)); animation: gp-ping 1.6s ease-out infinite; }
@keyframes gp-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }

/* ── Bilim shousi ───────────────────────────────────────────────────────── */
.gp-show { position: relative; isolation: isolate; }
.gp-beams { position: absolute; inset: -1.5rem -1.5rem auto; height: 380px; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.gp-beams i { position: absolute; top: -40px; left: 50%; width: 190px; height: 460px; margin-left: -95px; transform-origin: 50% 0; background: linear-gradient(180deg, rgb(var(--gm-3) / .42), transparent 85%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); animation: gp-beam 6s ease-in-out infinite alternate; }
.gp-beams i:nth-child(1) { left: 14%; --r1: -22deg; --r2: 18deg; } .gp-beams i:nth-child(2) { left: 50%; --r1: 16deg; --r2: -16deg; animation-duration: 8s; background: linear-gradient(180deg, rgb(var(--gm-1) / .4), transparent 85%); } .gp-beams i:nth-child(3) { left: 86%; --r1: 22deg; --r2: -18deg; animation-duration: 7s; background: linear-gradient(180deg, rgb(var(--gm-2) / .42), transparent 85%); }
@keyframes gp-beam { from { transform: rotate(var(--r1)); } to { transform: rotate(var(--r2)); } }
.gp-show-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.gp-helps { display: flex; gap: .45rem; }
.gp-help { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-width: 68px; min-height: 54px; padding: .35rem .5rem; border-radius: 14px; border: 1px solid rgb(var(--gm-3) / .55); background: rgb(var(--ink-900-rgb) / .9); color: rgb(var(--paper-rgb)); font-family: "DM Mono", monospace; transition: transform .15s, opacity .3s, background-color .2s; cursor: pointer; }
.gp-help small { font-family: Inter, system-ui, sans-serif; font-size: .625rem; color: rgb(var(--mist-rgb)); } .gp-help svg { width: 20px; height: 20px; } .gp-help b { font-size: .85rem; }
.gp-help:hover:not(:disabled) { transform: translateY(-2px); background: rgb(var(--gm-3) / .2); } .gp-help:disabled { opacity: .3; cursor: default; }
.gp-flames { display: inline-flex; align-items: center; gap: .1rem; color: rgb(var(--ink-600-rgb)); font: 700 .85rem/1 "DM Mono", monospace; }
.gp-flames i { width: 24px; height: 24px; transition: color .3s; } .gp-flames i svg { width: 100%; height: 100%; } .gp-flames i.is-on { color: #f97316; filter: drop-shadow(0 0 8px rgba(249, 115, 22, .7)); animation: gp-burn .9s ease-in-out infinite alternate; }
.gp-flames span { margin-left: .35rem; color: #f97316; }
@keyframes gp-burn { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.14) rotate(4deg); } }
@media (max-width: 479px) { .gp-show-top { flex-wrap: nowrap; } .gp-help { min-width: 56px; padding: .3rem .25rem; } .gp-help small { font-size: .56rem; } .gp-flames i { width: 17px; height: 17px; } .gp-show-card.mt-6 { margin-top: 1rem !important; } .gp-show .gm-feedback { min-height: 1.4rem; } }
.gp-final { color: #f59e0b; font-weight: 800; }
.gp-show.is-final .gp-show-card { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25), 0 20px 50px -20px rgba(245, 158, 11, .7); }
.gp-show.is-frozen .gp-show-card { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .3), inset 0 0 40px rgba(56, 189, 248, .25); }
.gm-timer.is-ice .gm-timer-fg { stroke: #38bdf8; }
.gm-option.is-gone { animation: none; opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .35s, transform .35s; }

/* ── Javobni yozing ─────────────────────────────────────────────────────── */
.gp-mask { display: flex; flex-wrap: wrap; justify-content: center; gap: .28rem; max-width: 640px; }
.gp-mask i { display: grid; place-items: center; width: 24px; height: 32px; border-bottom: 3px solid rgb(var(--gm-3) / .55); font: 700 1.05rem/1 "DM Mono", monospace; font-style: normal; } .gp-mask i.is-gap { width: 12px; border: 0; } .gp-mask i.is-open { border-color: #f59e0b; color: #f59e0b; animation: gm-pop .4s var(--gm-spring) backwards; }
.gp-type-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; width: 100%; max-width: 560px; }
input.gp-input:not(#x):not(#y) { flex: 1 1 220px; min-width: 0; min-height: 56px; padding: 0 1.1rem; border-radius: 14px; border: 2px solid rgb(var(--gm-1) / .5); background: rgb(var(--ink-900-rgb)); color: rgb(var(--paper-rgb)); font-size: 1.2rem; font-weight: 600; text-align: center; transition: border-color .2s, box-shadow .2s; }
input.gp-input:not(#x):not(#y):focus { outline: none; border-color: rgb(var(--gm-3)); box-shadow: 0 0 0 4px rgb(var(--gm-3) / .22); }
.gp-type-form.is-ok input.gp-input:not(#x):not(#y) { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); } .gp-type-form.is-bad { animation: gm-shake .45s ease; } .gp-type-form.is-bad input.gp-input:not(#x):not(#y) { border-color: #f43f5e; }

/* ── Juftmi yoki yo'q ───────────────────────────────────────────────────── */
.gp-pon-cards { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: .6rem; width: 100%; max-width: 760px; }
.gp-pon-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 150px; padding: 1rem .8rem; border-radius: 20px; background: rgb(var(--ink-900-rgb)); border: 2px solid rgb(var(--gm-1) / .5); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .85); font-family: Spectral, Georgia, serif; font-weight: 700; font-size: clamp(1rem, 3.4vw, 1.5rem); line-height: 1.25; overflow-wrap: anywhere; transition: border-color .3s, transform .4s var(--gm-spring); }
.gp-pon-card img { max-height: 84px; border-radius: 10px; }
.gp-pon-card.is-left { animation: gp-from-left .5s var(--gm-spring) backwards; } .gp-pon-card.is-right { border-color: rgb(var(--gm-2) / .6); animation: gp-from-right .5s var(--gm-spring) backwards; }
@keyframes gp-from-left { from { transform: translateX(-110%) rotate(-14deg); opacity: 0; } } @keyframes gp-from-right { from { transform: translateX(110%) rotate(14deg); opacity: 0; } }
.gp-pon-link { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: rgb(var(--mist-rgb)); background: rgb(var(--ink-800-rgb)); border: 1px solid rgb(var(--ink-border-rgb)); transition: all .3s; } .gp-pon-link svg { width: 24px; height: 24px; }
.gp-pon-cards.is-pair .gp-pon-card { border-color: #10b981; } .gp-pon-cards.is-pair .is-left { transform: translateX(8px); } .gp-pon-cards.is-pair .is-right { transform: translateX(-8px); } .gp-pon-cards.is-pair .gp-pon-link { color: #fff; background: #10b981; transform: scale(1.15); }
.gp-pon-cards.is-not .gp-pon-card { border-color: #f43f5e; } .gp-pon-cards.is-not .is-left { transform: translateX(-10px) rotate(-3deg); } .gp-pon-cards.is-not .is-right { transform: translateX(10px) rotate(3deg); } .gp-pon-cards.is-not .gp-pon-link { color: #fff; background: #f43f5e; transform: scale(.8) rotate(40deg); }
.gp-pon-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; max-width: 520px; } .gp-pon-btns .gm-btn { padding: 0 .8rem; }

/* ── So'zni toping ──────────────────────────────────────────────────────── */
.gp-guess { gap: 1.1rem; }
@media (min-width: 820px) { .gp-guess { flex-direction: row; align-items: stretch; gap: 1.5rem; } .gp-guess-side { flex: 1; } }
.gp-pad { position: relative; width: 100%; height: 210px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #0b1026, #1e1b4b 60%, #4c1d95); border: 1px solid rgb(var(--ink-border-rgb)); }
@media (min-width: 820px) { .gp-pad { flex: 0 0 250px; height: auto; min-height: 400px; } }
.gp-ground { position: absolute; left: -10%; right: -10%; bottom: -34px; height: 66px; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #a78bfa, #5b21b6); }
.gp-rocket { position: absolute; left: 50%; bottom: 18px; width: 82px; margin-left: -41px; z-index: 2; }
.gp-rocket svg { display: block; width: 100%; overflow: visible; } .gp-rocket .gp-flame { opacity: 0; }
.gp-pad.is-ok .gp-rocket { animation: gp-launch 1.8s cubic-bezier(.6, -.1, .9, .5) forwards; } .gp-pad.is-ok .gp-flame { opacity: 1; }
@keyframes gp-launch { 0%, 22% { transform: translateY(0); } 6%, 16% { transform: translate(2px, 0); } 11% { transform: translate(-2px, 1px); } 100% { transform: translateY(-620px) scale(.8); } }
.gp-pad.is-bad .gp-rocket { animation: gp-topple 1s cubic-bezier(.4, 0, .7, 1.4) forwards; transform-origin: 75% 100%; }
@keyframes gp-topple { to { transform: rotate(76deg) translate(6px, -8px); } }
.gp-smoke { position: absolute; left: 50%; bottom: -6px; } .gp-smoke i { position: absolute; left: -16px; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(226, 232, 240, .75); transform: scale(0); opacity: 0; }
.gp-pad.is-ok .gp-smoke i { animation: gp-smoke 1.1s ease-out infinite; } .gp-pad.is-bad .gp-smoke i { animation: gp-smoke 1.6s ease-out infinite; background: rgba(71, 85, 105, .8); }
.gp-smoke i:nth-child(2) { left: -38px; animation-delay: .2s !important; } .gp-smoke i:nth-child(3) { left: 8px; animation-delay: .35s !important; }
@keyframes gp-smoke { from { transform: scale(.3); opacity: .9; } to { transform: translateY(-26px) scale(2.2); opacity: 0; } }
.gp-fuel { position: absolute; left: 12px; bottom: 44px; z-index: 3; display: flex; flex-direction: column-reverse; gap: 4px; padding: 5px; border-radius: 10px; background: rgba(2, 6, 23, .6); border: 1px solid rgba(255, 255, 255, .25); }
.gp-fuel i { width: 22px; height: 14px; border-radius: 4px; background: rgba(148, 163, 184, .25); transition: background-color .35s; } .gp-fuel i.is-full { background: linear-gradient(180deg, #4ade80, #16a34a); } .gp-fuel i.is-full.is-low { background: #f43f5e; animation: gp-blink .5s ease-in-out infinite alternate; }
@keyframes gp-blink { to { opacity: .4; } }
.gp-guess-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-width: 0; }
.gp-slot.is-filled span { animation: gm-pop .4s var(--gm-spring) backwards; } .gp-slot.is-missed { border-color: #f43f5e; color: #f43f5e; }
.gp-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: .38rem; max-width: 560px; }
.gp-key { min-width: 40px; height: 44px; padding: 0 .5rem; border-radius: 10px; border: 1px solid rgb(var(--ink-border-rgb)); background: rgb(var(--ink-800-rgb)); color: rgb(var(--paper-rgb)); font: 700 1.05rem/1 "DM Mono", monospace; box-shadow: 0 3px 0 rgb(var(--ink-border-rgb)); transition: transform .1s, opacity .25s, background-color .25s; cursor: pointer; }
.gp-key:hover:not(:disabled) { background: rgb(var(--gm-1) / .3); } .gp-key:active:not(:disabled) { transform: translateY(3px); box-shadow: none; } .gp-key:disabled { cursor: default; opacity: .5; } .gp-key.is-ok { background: #10b981; border-color: #10b981; color: #fff; opacity: 1; } .gp-key.is-bad { background: rgb(var(--ink-900-rgb)); text-decoration: line-through; opacity: .3; box-shadow: none; }
@media (max-width: 479px) { .gp-key { min-width: 34px; height: 42px; padding: 0 .3rem; font-size: .95rem; } }

/* ── Krossvord ──────────────────────────────────────────────────────────── */
.gp-cw { position: relative; flex: 1; display: grid; gap: 1.1rem; align-items: start; }
@media (min-width: 900px) { .gp-cw { grid-template-columns: minmax(0, 1fr) 280px; } }
.gp-cw-main { position: relative; min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
.gp-cw-clue { display: flex; align-items: baseline; justify-content: center; gap: .55rem; padding: .65rem .9rem; border-radius: 14px; background: rgb(var(--ink-900-rgb)); border: 1px solid rgb(var(--gm-3) / .5); font-weight: 600; position: sticky; top: 0; z-index: 4; } .gp-cw-clue b { color: rgb(var(--gm-3)); font-family: "DM Mono", monospace; white-space: nowrap; } .gp-cw-clue small { color: rgb(var(--mist-rgb)); }
html.light:not(.force-dark) .gp-cw-clue b { color: rgb(var(--gm-2)); }
.gp-cw-scroll { overflow-x: auto; padding: 4px; }
.gp-cw-grid { --cell: clamp(26px, calc((100% - 8px) / var(--cols) - 3px), 46px); display: grid; width: fit-content; margin: 0 auto; gap: 3px; grid-template-columns: repeat(var(--cols), minmax(26px, 46px)); }
.gp-cw-cell { position: relative; aspect-ratio: 1; min-width: 26px; padding: 0; border-radius: 7px; border: 1.5px solid #cbd5e1; background: #fff; color: #0f172a; font: 700 clamp(.85rem, 2.6vw, 1.25rem)/1 "DM Mono", monospace; cursor: pointer; transition: background-color .2s, transform .15s; animation: gp-cell .4s var(--gm-spring) backwards; }
@keyframes gp-cell { from { transform: scale(0) rotate(40deg); opacity: 0; } }
.gp-cw-cell small { position: absolute; left: 3px; top: 2px; font-size: .58rem; font-weight: 600; color: #64748b; }
.gp-cw-cell.is-word { background: #cffafe; border-color: #22d3ee; } .gp-cw-cell.is-cursor { background: #fde68a; border-color: #f59e0b; transform: scale(1.06); z-index: 2; box-shadow: 0 0 0 3px rgba(245, 158, 11, .35); }
.gp-cw-cell.is-done { background: #10b981; border-color: #059669; color: #fff; } .gp-cw-cell.is-done small { color: #d1fae5; }
.gp-cw-cell.is-shake { animation: gm-shake .45s ease; background: #fecdd3; border-color: #f43f5e; }
input.gp-cw-input:not(#x):not(#y) { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }
.gp-cw-clues { display: grid; gap: .9rem; max-height: 480px; overflow-y: auto; }
.gp-cw-title { margin-bottom: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--mist-rgb)); }
.gp-cw-clues li button { display: flex; gap: .5rem; width: 100%; padding: .45rem .6rem; border-radius: 10px; text-align: left; font-size: .875rem; line-height: 1.35; color: rgb(var(--paper-rgb)); transition: background-color .2s; } .gp-cw-clues li b { color: rgb(var(--gm-3)); font-family: "DM Mono", monospace; min-width: 1.3em; } html.light:not(.force-dark) .gp-cw-clues li b { color: rgb(var(--gm-2)); }
.gp-cw-clues li button:hover, .gp-cw-clues li button.is-active { background: rgb(var(--gm-1) / .18); } .gp-cw-clues li button.is-done { opacity: .5; text-decoration: line-through; }

/* ── Gapni tiklang, yozuvlar ────────────────────────────────────────────── */
.gp-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; min-height: 84px; padding: .9rem; border-radius: 18px; border: 2px dashed rgb(var(--gm-1) / .5); background: rgb(var(--ink-900-rgb) / .8); transition: border-color .3s, background-color .3s; }
.gp-line.is-ok { border-style: solid; border-color: #10b981; background: rgba(16, 185, 129, .14); } .gp-line.is-ok .gp-chip { animation: gp-wave .6s ease calc(var(--n) * 70ms); } .gp-line.is-bad { border-color: #f43f5e; animation: gm-shake .45s ease; }
@keyframes gp-wave { 40% { transform: translateY(-12px) scale(1.06); } }
.gp-line-empty { color: rgb(var(--mist-rgb)); font-size: .9rem; }
.gp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.gp-chip { position: relative; min-height: 46px; padding: .5rem .95rem; border-radius: 12px; border: 1px solid rgb(var(--gm-1) / .55); background: linear-gradient(180deg, rgb(var(--ink-800-rgb)), rgb(var(--ink-900-rgb))); color: rgb(var(--paper-rgb)); font-weight: 700; font-size: 1.05rem; box-shadow: 0 4px 0 rgb(var(--gm-1) / .4); transition: transform .14s, opacity .25s, box-shadow .14s, border-color .2s; cursor: pointer; animation: gp-chip .42s var(--gm-spring) backwards; }
@keyframes gp-chip { from { transform: translateY(16px) scale(.7); opacity: 0; } }
.gp-chip:hover:not(:disabled) { transform: translateY(-3px); } .gp-chip:active:not(:disabled) { transform: translateY(3px); box-shadow: none; } .gp-chip.is-used { opacity: .16; box-shadow: none; } .gp-chip.is-placed { background: linear-gradient(180deg, rgb(var(--gm-1)), rgb(var(--gm-2))); color: #fff; border-color: transparent; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.gp-chip.is-selected { border-color: rgb(var(--gm-3)); box-shadow: 0 0 0 4px rgb(var(--gm-3) / .3), 0 4px 0 rgb(var(--gm-1) / .4); transform: translateY(-3px); }
.gp-label-chip { touch-action: none; user-select: none; -webkit-user-select: none; }

/* ── Tartiblang ─────────────────────────────────────────────────────────── */
.gp-rank-list { position: relative; display: grid; gap: .5rem; width: 100%; max-width: 620px; padding: 0; margin: 0; list-style: none; }
.gp-rank-row { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .55rem .7rem; border-radius: 14px; background: rgb(var(--ink-900-rgb)); border: 1.5px solid rgb(var(--ink-border-rgb)); text-align: left; font-weight: 600; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: border-color .25s, background-color .25s, box-shadow .2s; }
.gp-rank-row > b { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgb(var(--gm-1) / .25); font-family: "DM Mono", monospace; } .gp-rank-text { flex: 1; min-width: 0; overflow-wrap: anywhere; } .gp-rank-real { font-family: "DM Mono", monospace; color: #f43f5e; font-weight: 700; white-space: nowrap; }
.gp-rank-row.is-drag { z-index: 5; cursor: grabbing; border-color: rgb(var(--gm-3)); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .8); }
.gp-rank-row.is-ok { border-color: #10b981; background: rgba(16, 185, 129, .16); animation: gp-flip-in .4s var(--gm-spring); } .gp-rank-row.is-bad { border-color: #f43f5e; background: rgba(244, 63, 94, .13); animation: gm-shake .4s; } .gp-rank-list.is-checked .gp-rank-row { cursor: default; }
@keyframes gp-flip-in { from { transform: perspective(600px) rotateX(-70deg); } }
.gp-rank-btns { display: flex; gap: .25rem; } .gp-rank-btns button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgb(var(--ink-border-rgb)); color: rgb(var(--mist-rgb)); } .gp-rank-btns button:disabled { opacity: .25; } .gp-rank-btns svg { width: 18px; height: 18px; }
.gp-rank-answer { width: 100%; max-width: 620px; padding: .8rem 1rem; border-radius: 14px; text-align: left; font-size: .9rem; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .4); } .gp-rank-answer p { font-weight: 700; } .gp-rank-answer ol { margin-top: .35rem; padding-left: 1.25rem; list-style: decimal; }

/* ── Shkala ─────────────────────────────────────────────────────────────── */
.gp-slider { gap: 1.2rem; }
.gp-scale { width: 100%; max-width: 680px; padding: 4.4rem 1rem 3rem; }
.gp-scale-track { position: relative; height: 20px; border-radius: 999px; background: rgb(var(--ink-800-rgb)); border: 1px solid rgb(var(--ink-border-rgb)); }
.gp-scale-fill { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, rgb(var(--gm-1)), rgb(var(--gm-3))); }
.gp-scale-gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(244, 63, 94, .8) 0 6px, rgba(244, 63, 94, .35) 6px 12px); animation: gp-fade .5s; }
.gp-bubble, .gp-answer-mark { position: absolute; z-index: 2; width: 0; pointer-events: none; display: flex; justify-content: center; }
.gp-bubble { bottom: calc(100% + 10px); } .gp-bubble b, .gp-answer-mark b { position: relative; padding: .4rem .8rem; border-radius: 12px; white-space: nowrap; font: 800 1.15rem/1.1 "DM Mono", monospace; color: #fff; background: linear-gradient(135deg, rgb(var(--gm-1)), rgb(var(--gm-2))); box-shadow: 0 10px 22px -8px rgb(var(--gm-2) / .9); }
.gp-bubble b::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: rgb(var(--gm-2)); }
.gp-answer-mark { top: calc(100% + 14px); animation: gp-mark .6s var(--gm-spring) .15s backwards; } .gp-answer-mark b { background: #10b981; box-shadow: 0 10px 22px -8px rgba(16, 185, 129, .9); } .gp-answer-mark b::after { content: ""; position: absolute; left: 50%; bottom: 100%; margin-left: -7px; border: 7px solid transparent; border-bottom-color: #10b981; }
@keyframes gp-mark { from { transform: translateY(24px) scale(.4); opacity: 0; } }
input.gp-range:not(#x):not(#y) { position: absolute; left: -14px; right: -14px; top: -14px; width: calc(100% + 28px); height: 48px; margin: 0; padding: 0; border: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; touch-action: pan-y; }
.gp-range::-webkit-slider-runnable-track { height: 48px; background: transparent; } .gp-range::-moz-range-track { height: 48px; background: transparent; }
.gp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: 6px; border-radius: 50%; border: 5px solid #fff; background: rgb(var(--gm-2)); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .7); transition: transform .15s; } .gp-range:active::-webkit-slider-thumb { transform: scale(1.18); }
.gp-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 5px solid #fff; background: rgb(var(--gm-2)); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .7); }
.gp-range:focus-visible { outline: none; } .gp-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgb(var(--gm-3) / .5); }
.gp-ticks { display: flex; justify-content: space-between; padding: 6px 2px 0; } .gp-ticks i { width: 2px; height: 8px; background: rgb(var(--ink-border-rgb)); }
.gp-scale-ends { display: flex; justify-content: space-between; margin-top: .25rem; font: 600 .8rem/1 "DM Mono", monospace; color: rgb(var(--mist-rgb)); }
.gp-step { width: 52px; padding: 0; font-size: 1.4rem; }

/* ── Rasmli formatlar ───────────────────────────────────────────────────── */
.gp-pic { position: relative; display: inline-block; max-width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid rgb(var(--ink-border-rgb)); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .85); background: #fff; line-height: 0; }
.gp-pic img { display: block; max-width: 100%; max-height: min(58vh, 560px); width: auto; height: auto; user-select: none; -webkit-user-drag: none; } .gm-stage:fullscreen .gp-pic img { max-height: 66vh; } .gp-pic.is-live img { cursor: crosshair; }
.gp-pin-mark { position: absolute; width: 34px; height: 46px; margin: -46px 0 0 -17px; color: #f43f5e; pointer-events: none; animation: gp-pin .45s cubic-bezier(.3, 1.6, .6, 1) backwards; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); } .gp-pin-mark svg { width: 100%; height: 100%; } .gp-pic.is-ok .gp-pin-mark { color: #10b981; } .gp-pic.is-near .gp-pin-mark { color: #f59e0b; }
@keyframes gp-pin { from { transform: translateY(-120px) scale(1.4); opacity: 0; } }
.gp-ring { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 2; line-height: 1.2; } .gp-ring i { --r: 22px; position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 4px solid #10b981; animation: gp-ring 1s ease-out infinite; } @keyframes gp-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: .1; } }
.gp-ring b { position: absolute; left: 0; top: 24px; transform: translateX(-50%); padding: .25rem .6rem; border-radius: 8px; background: #059669; color: #fff; font-size: .8rem; white-space: nowrap; }
.gp-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; z-index: 2; border: 0; background: none; cursor: pointer; line-height: 1.2; } .gp-dot i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: rgb(var(--gm-2)); color: #fff; font: 700 .85rem/1 "DM Mono", monospace; font-style: normal; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); transition: transform .2s var(--gm-spring); }
.gp-pic.is-picking .gp-dot:not(.is-done) i { animation: gp-dot .8s ease-in-out infinite alternate; } @keyframes gp-dot { to { transform: scale(1.25); } } .gp-dot.is-done i { background: #10b981; } .gp-dot.is-bad i { background: #f43f5e; animation: gm-shake .45s !important; } .gp-dot b { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); padding: .25rem .6rem; border-radius: 8px; background: rgba(5, 150, 105, .95); color: #fff; font-size: .78rem; white-space: nowrap; animation: gp-fade .3s; } .gp-dot.is-flip b { left: auto; right: 30px; }

/* ── Hisob poygasi ──────────────────────────────────────────────────────── */
.gp-road { position: relative; width: 100%; max-width: 720px; height: 70px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #475569, #1e293b); border: 1px solid rgb(var(--ink-border-rgb)); }
.gp-road-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, #fde68a 0 26px, transparent 26px 50px); opacity: .8; } .gp-road-flag { position: absolute; right: 10px; top: 0; bottom: 0; width: 20px; background: repeating-conic-gradient(#fff 0 25%, #0f172a 0 50%) 0 0 / 20px 20px; }
.gp-car { position: absolute; left: 10px; right: 86px; top: 50%; height: 34px; margin-top: -19px; color: #f43f5e; transform: translateX(calc(var(--p) * 1%)); transition: transform .6s cubic-bezier(.3, 1.3, .6, 1); } .gp-car svg { position: absolute; left: 0; width: 66px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); } .gp-boost { position: absolute; left: -26px; top: 12px; width: 30px; height: 10px; border-radius: 10px; background: linear-gradient(270deg, #fbbf24, transparent); animation: gp-boost .5s ease-out forwards; } @keyframes gp-boost { from { transform: scaleX(2.4); opacity: 1; } to { transform: scaleX(.4); opacity: 0; } }
.gp-sum { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .2em .4em; padding: .7rem 1.4rem; border-radius: 22px; background: rgb(var(--ink-900-rgb)); border: 2px solid rgb(var(--gm-1) / .5); font: 800 clamp(2rem, 9vw, 3.6rem)/1.1 "DM Mono", monospace; animation: gm-pop .35s var(--gm-spring) backwards; } .gp-sum em { font-style: normal; color: rgb(var(--gm-3)); } html.light:not(.force-dark) .gp-sum em { color: rgb(var(--gm-2)); } .gp-sum b { min-width: 1.6ch; padding: 0 .25em; border-radius: 14px; background: rgb(var(--gm-1) / .16); text-align: center; } .gp-sum.is-ok { border-color: #10b981; } .gp-sum.is-ok b { background: #10b981; color: #fff; } .gp-sum.is-bad { border-color: #f43f5e; animation: gm-shake .45s; } .gp-sum.is-skip b { background: #f59e0b; color: #1a1205; }
.gp-pad-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; width: 100%; max-width: 300px; } .gp-pad-keys button { min-height: 54px; border-radius: 14px; border: 1px solid rgb(var(--ink-border-rgb)); background: rgb(var(--ink-800-rgb)); color: rgb(var(--paper-rgb)); font: 700 1.35rem/1 "DM Mono", monospace; box-shadow: 0 4px 0 rgb(var(--ink-border-rgb)); transition: transform .08s, box-shadow .08s; touch-action: manipulation; } .gp-pad-keys button:active { transform: translateY(4px); box-shadow: none; } .gp-pad-keys .is-ok { background: #10b981; border-color: #059669; color: #fff; box-shadow: 0 4px 0 #047857; } .gp-pad-keys .is-del { color: #f43f5e; }

/* ── Muharrir ───────────────────────────────────────────────────────────── */
.gp-group-title { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; font-weight: 700; font-size: .95rem; }
.gp-group-title::after { content: ""; flex: 1; height: 1px; background: rgb(var(--ink-border-rgb)); }
/* Maxsus o'yinlar: guruh sarlavhasi nishon ko'rinishida, kartalar atrofida yengil nur */
.gp-group-title.is-special span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; color: #fff; background: linear-gradient(120deg, #6d28d9, #2563eb 55%, #0891b2); box-shadow: 0 8px 20px -10px rgba(99, 102, 241, .9); }
.gp-group-title.is-special span::before { content: "✦"; font-size: .8em; }
.gp-group-title.is-special::after { background: linear-gradient(90deg, rgba(99, 102, 241, .6), transparent); }
.gp-group-note { margin-top: .4rem; font-size: .8rem; line-height: 1.35; color: rgb(var(--mist-rgb)); }
.gp-special-grid .gm-template { box-shadow: 0 0 0 1px rgba(99, 102, 241, .35), 0 14px 30px -22px rgba(99, 102, 241, .9); }
.gp-op { width: 60px; height: 60px; border-radius: 16px; border: 2px solid rgb(var(--ink-border-rgb)); background: rgb(var(--ink-950-rgb)); font: 800 1.6rem/1 "DM Mono", monospace; color: rgb(var(--mist-rgb)); transition: all .2s; } .gp-op.is-on { border-color: #10b981; background: #10b981; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(16, 185, 129, .9); }
.gp-dot-edit::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--rp, 22px) * 2); height: calc(var(--rp, 22px) * 2); transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed #e11d48; background: rgba(225, 29, 72, .14); pointer-events: none; } .gp-point-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; } .gp-point-row input[type=range] { width: 110px; accent-color: #e11d48; }
.gp-dot-edit { touch-action: none; cursor: grab; } .gp-dot-edit i { background: #e11d48; }

/* ── Harakat kamaytirilgan rejim ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gp-cloud, .gp-stars, .gp-beams i, .gp-ship, .gp-flame, .gp-flames i, .gp-hole.is-up .gp-worm, .gp-wheel-btn::after { animation: none !important; }
}

.gp-num-grid { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); } .gp-num-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .gp-num-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } .gp-num-grid > :first-child { grid-column: auto; } }

/* ── Bilim jangi ────────────────────────────────────────────────────────── */
.gb { flex: 1; display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.gb-stage { position: relative; height: clamp(230px, 42vh, 420px); border-radius: 18px; overflow: hidden; background: #05050d; border: 1px solid rgb(var(--ink-border-rgb)); box-shadow: 0 24px 60px -28px #000; isolation: isolate; transition: box-shadow .5s, border-color .5s; }
.gb.is-rage .gb-stage { border-color: #f43f5e; box-shadow: 0 0 0 2px rgba(244, 63, 94, .55), 0 24px 60px -22px rgba(244, 63, 94, .7); }
.gm-stage:fullscreen .gb-stage { flex: 1; height: auto; min-height: 260px; }
.gb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gb-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent); animation: gp-fade .5s; }
.gb-hud-me { display: grid; gap: .4rem; }
.gb-hud .gp-hearts i { width: 22px; height: 22px; }
.gb-charge { display: inline-flex; align-items: center; gap: 4px; }
.gb-charge i { width: 22px; height: 9px; border-radius: 3px; transform: skewX(-18deg); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); transition: background-color .25s, box-shadow .25s; }
.gb-charge i.is-on { background: #fde047; border-color: #fff7d6; box-shadow: 0 0 12px #fbbf24; }
.gb-charge b { margin-left: .4rem; color: #fde047; font: 800 .85rem/1 "DM Mono", monospace; text-shadow: 0 2px 6px #000; animation: gm-pop .35s var(--gm-spring); }
.gb-hud-boss { display: grid; gap: .3rem; width: min(46%, 320px); text-align: right; }
.gb-name { color: #fff; font-family: Spectral, Georgia, serif; font-weight: 700; font-size: clamp(.95rem, 2.6vw, 1.25rem); line-height: 1.1; text-shadow: 0 2px 8px #000; } .gb-name.is-gold { color: #fde047; }
.gb-hp { position: relative; height: 16px; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, .7); border: 2px solid rgba(255, 255, 255, .55); transform: skewX(-12deg); }
.gb-hp i { position: absolute; inset: 0; transform-origin: right; } .gb-hp-ghost { background: #fef9c3; transition: transform .7s ease; }
.gb-hp-fill { background: linear-gradient(180deg, #fb7185, #be123c); transition: transform .18s ease-out; } .gb-hp-fill::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: rgba(255, 255, 255, .35); }
.gb.is-rage .gb-hp { animation: gb-rage .5s ease-in-out infinite alternate; } @keyframes gb-rage { to { box-shadow: 0 0 18px #f43f5e; } }
.gb-time { height: 8px; border-radius: 999px; overflow: hidden; background: rgb(var(--ink-800-rgb)); } .gb-time i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, rgb(var(--gm-1)), rgb(var(--gm-3))); border-radius: inherit; } .gb-time i.is-low { background: #f43f5e; animation: gp-blink .4s ease-in-out infinite alternate; }
.gb-panel { display: grid; gap: .7rem; } .gb .is-off { visibility: hidden; }
.gb-question { padding: .6rem 1rem .75rem; max-width: none; }
.gb-options { grid-template-columns: 1fr 1fr; } .gb-options .gm-option { min-height: 58px; }
@media (max-width: 559px) { .gb-stage { height: clamp(210px, 31vh, 300px); } .gb-charge b { font-size: .75rem; } }
@media (max-width: 479px) { .gb-options { gap: .5rem; } .gb-options .gm-option { min-height: 56px; padding: .5rem .6rem; gap: .5rem; font-size: .92rem; line-height: 1.2; } .gb-options .gm-option-key { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; } .gb-hud-boss { width: 52%; } .gb-charge i { width: 15px; } .gb-hud .gp-hearts i { width: 18px; height: 18px; } .gb .gb-hud { padding: .5rem .55rem; } }
.gp-arena-pick { display: grid; gap: .5rem; margin-top: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (min-width: 640px) { .gp-arena-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gp-arena-pick button { display: flex; align-items: flex-end; min-height: 72px; padding: .5rem .6rem; border-radius: 14px; border: 2px solid transparent; text-align: left; color: #fff; font-size: .78rem; line-height: 1.2; text-shadow: 0 1px 4px #000; background: linear-gradient(160deg, #334155, #0f172a); transition: transform .2s, border-color .2s, box-shadow .2s; } .gp-arena-pick button:hover { transform: translateY(-2px); } .gp-arena-pick button.is-on { border-color: #fde047; box-shadow: 0 0 0 3px rgba(253, 224, 71, .3); }
.gp-arena-pick .is-volcano { background: radial-gradient(circle at 70% 20%, #ffd166, #c2410c 40%, #1a0505); } .gp-arena-pick .is-lab { background: radial-gradient(circle at 70% 20%, #d9f99d, #15803d 40%, #04140d); } .gp-arena-pick .is-storm { background: radial-gradient(circle at 70% 20%, #e0e7ff, #4338ca 40%, #07061a); } .gp-arena-pick .is-cyber { background: radial-gradient(circle at 70% 20%, #22d3ee, #7e22ce 45%, #020617); } .gp-arena-pick .is-library { background: radial-gradient(circle at 70% 20%, #fef3c7, #92400e 45%, #170b04); }
/* Maxsus zarba shkalasi yozuvi */
.gb-charge-label { display: inline-flex; align-items: center; gap: .2rem; margin-right: .25rem; font: 700 .68rem/1 "DM Sans", system-ui, sans-serif; font-style: normal; letter-spacing: .02em; color: #fde68a; text-shadow: 0 1px 4px #000; text-transform: uppercase; }
.gb-charge-label span:first-child { font-size: .85rem; filter: drop-shadow(0 0 4px #fbbf24); }
@media (max-width: 559px) { .gb-charge-text { display: none; } }
