/* Davra Books — O'yinlar: Quyosh tizimi (space.js). Umumiy panel, karta va tugmalar globe.css'dagi gl-* uslublaridan. */
.sp-stage {
    background:
        radial-gradient(ellipse at 20% 15%, rgba(99, 102, 241, .22), transparent 45%),
        radial-gradient(ellipse at 85% 80%, rgba(236, 72, 153, .14), transparent 45%),
        radial-gradient(ellipse at 50% 50%, #0b1026 0%, #050816 60%, #02030a 100%);
    border-color: rgba(167, 139, 250, .25);
    box-shadow: 0 24px 60px -30px rgba(109, 40, 217, .55);
}
.sp-back { position: absolute; left: .75rem; top: 50%; z-index: 4; transform: translateY(-50%); animation: gl-in .35s ease backwards; }
.sp-moons-chip { display: block; margin-top: .3rem; font: 800 .7rem/1.2 "DM Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; }

/* Tartiblash */
.sp-order { position: absolute; inset: 6.2rem .75rem 4.6rem; z-index: 3; display: grid; align-content: center; gap: .8rem; }
.sp-order-tip { text-align: center; font-size: .82rem; color: #cbd5e1; }
.sp-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; counter-reset: sp; }
.sp-card {
    position: relative; display: grid; justify-items: center; gap: .25rem; width: 88px; padding: .55rem .35rem .45rem; border-radius: 14px;
    background: rgba(15, 23, 42, .78); border: 1.5px solid rgba(148, 163, 184, .28); color: #f8fafc; touch-action: none; cursor: grab;
    transition: border-color .2s, box-shadow .2s, transform .2s; animation: gl-in .35s ease backwards; user-select: none;
}
.sp-card::before { counter-increment: sp; content: counter(sp); position: absolute; left: 6px; top: 4px; font: 700 .68rem/1 ui-monospace, monospace; color: #94a3b8; }
.sp-card img { width: 56px; height: 56px; pointer-events: none; }
.sp-card b { font-size: .76rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.sp-card.is-picked { border-color: #fde047; box-shadow: 0 0 0 3px rgba(253, 224, 71, .25); transform: translateY(-3px); }
.sp-card.is-locked { border-color: rgba(167, 139, 250, .8); cursor: default; }
.sp-card.is-ok { border-color: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .22); }
.sp-card.is-bad { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.sp-check { justify-self: center; }
.sp-answer { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; font-size: .78rem; color: #bbf7d0; }
.sp-answer span:not(:last-child)::after { content: " →"; color: #64748b; }

@media (max-width: 639px) {
    .sp-order { inset: 6.4rem .4rem 4.2rem; gap: .5rem; }
    .sp-card { width: 72px; padding: .45rem .25rem .35rem; }
    .sp-card img { width: 44px; height: 44px; }
    .sp-back { top: auto; bottom: 3.6rem; left: .5rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sp-card { animation: none; transition: none; } }
html[data-motion-level="minimal"] .sp-card { animation: none; }
