:root {
    --bg-0: #1a0a2e;
    --bg-1: #2d1454;
    --bg-2: #1e0a38;
    --panel: rgba(26, 10, 46, 0.72);
    --line: rgba(236, 0, 140, 0.35);
    --text-1: #fff8ff;
    --text-2: rgba(255, 232, 250, 0.74);
    --gold: #ff66cf;
    --gold-2: #ff66cf;
    --gold-deep: #af0092;
    --electric: #ec008c;
    --theme-bg:
        radial-gradient(1200px 600px at 88% -8%, rgba(236,0,140,0.22), transparent 60%),
        radial-gradient(900px 700px at 12% 8%, rgba(45,20,84,0.68), transparent 65%),
        radial-gradient(1400px 900px at 50% 120%, rgba(175,0,146,0.18), transparent 70%),
        linear-gradient(160deg, #1a0a2e 0%, #2d1454 40%, #1e0a38 100%);
    --accent-surface:
        linear-gradient(135deg, rgba(236,0,140,0.22) 0%, rgba(200,0,200,0.12) 100%),
        rgba(26,10,46,0.72);
    --accent-shadow:
        inset 0 0 0 1px rgba(236,0,140,0.16),
        0 2px 14px rgba(236,0,140,0.15),
        0 18px 50px -22px rgba(0,0,0,0.75),
        inset 0 1px 0 0 rgba(255,255,255,0.05);
    --accent-solid: #af0092;
    --shadow: 0 18px 50px -22px rgba(0,0,0,0.75);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --font-display: "Cinzel", serif;
    --font-body: "Host Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text-1);
    background: var(--theme-bg);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.35;
    z-index: 0;
}

body.is-shaking,
body.is-bursting { animation: none; }

/* === Aurora background === */
.aurora {
    position: fixed;
    inset: -30% -10% -10% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 20% 10%, rgba(236, 0, 140, 0.2), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 15%, rgba(200, 0, 200, 0.16), transparent 65%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255, 79, 216, 0.12), transparent 65%);
    animation: auroraDrift 24s ease-in-out infinite alternate;
    /* blur 12 → 6: full-screen blur masaüstünde her frame ciddi GPU yiyordu;
       gradient'in doğal yumuşaklığı zaten cilalı görünmesini sağlıyor.
       will-change kaldırıldı: animasyon zaten transform üzerinden promote eder */
    filter: blur(6px);
}
@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-2%, 1%, 0) scale(1.04); }
    100% { transform: translate3d(2%, -1%, 0) scale(1); }
}

/* === Lightning storm === */
.storm-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.storm-layer span {
    position: absolute;
    width: 2px;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 204, 248, 0.95), rgba(236, 0, 140, 0));
    opacity: 0;
    filter: drop-shadow(0 0 18px rgba(236, 0, 140, 0.75));
}

/* === Layout === */
.page-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
    position: relative;
    z-index: 2;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.stage-card,
.side-panel {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(45, 20, 84, 0.76), rgba(26, 10, 46, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    /* 18 → 10: backdrop-filter her composite'ta arka pikselleri okuyup blur
       ediyor; geniş card alanlarında masaüstünde click→paint gecikmesinin
       en büyük sebebiydi. 10px hâlâ glassy görünüm veriyor. */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stage-card { padding: 28px 28px 34px; }
.side-panel { padding: 26px; display: flex; flex-direction: column; gap: 20px; }

@media (min-width: 1081px) {
    .side-panel { position: sticky; top: 28px; align-self: start; }
}

/* === Heading === */
.stage-heading { text-align: center; margin-bottom: 22px; position: relative; z-index: 3; }

.dede-logo {
    display: block;
    width: clamp(84px, 13vw, 140px);
    height: auto;
    margin: 0 auto 12px;
    /* Çift drop-shadow her composite'ta 2 ayrı blur pass demektir; tek
       birleşik shadow ile aynı görsel etkiye yakın, yarı maliyetle. */
    filter: drop-shadow(0 4px 18px rgba(236, 0, 140, 0.38));
    user-select: none;
    -webkit-user-drag: none;
}

/* Logo → kese yıldırımı için stage-card'ı kaplayan canvas. Hem header'daki
   logo hem stage'deki kese aynı koordinat sisteminde, böylece yıldırım
   header'dan stage'e kesintisiz çizilir. */
.logo-bolt-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.eyebrow {
    display: block;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.title-gold {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5.4vw, 3.4rem);
    margin: 0 0 12px;
    letter-spacing: 0.08em;
    line-height: 1;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.06em;
}
/* Önce her harf ayrı bir background-clip:text + animasyon layer'ı idi —
   11 harf × infinite animation compositor'ı sürekli meşgul ediyordu.
   Şimdi tek statik altın renk + text-shadow ile aynı sıcak görünüm,
   sıfır per-frame iş. */
.title-gold .letter, .title-gold .amp {
    display: inline-block;
    color: var(--gold);
    text-shadow:
        0 1px 0 rgba(76, 0, 70, 0.7),
        0 2px 18px rgba(236, 0, 140, 0.44);
}
.title-gold .amp { margin: 0 0.15em; }

.tagline {
    margin: 0;
    color: var(--text-2);
    font-size: 1rem;
    letter-spacing: 0.04em;
    /* flashTagline farklı uzunluktaki mesajlar koyduğunda 1→2 satır geçişi
       page'i kaydırıyordu; 2 satır boşluğu rezerve et */
    min-height: 2.6em;
}

/* === Stage === */
.stage {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 50% 42%, rgba(236, 0, 140, 0.13), transparent 38%),
        radial-gradient(circle at 50% 42%, rgba(200, 0, 200, 0.10), transparent 58%),
        linear-gradient(180deg, rgba(26, 10, 46, 0.95), rgba(45, 20, 84, 0.66));
    overflow: hidden;
    display: grid;
    place-items: center;
    /* İçindeki canvas animasyonları sayfanın geri kalanını repaint etmesin */
    contain: layout paint;
}

.stage-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Burst partikülleri canvas yerine GPU-composited DOM element olarak çiziliyor.
   Tek parent stacking context (.fx-layer) altında her partikül kendi
   transform/opacity animasyonunu compositor'da çalıştırıyor → JS'in her
   frame iş yapması elimine edildi. */
.fx-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    transform: translateZ(0); /* stacking context, alt elementler ayrı katman */
}

.fx-spark, .fx-shard, .fx-coin, .fx-ring, .fx-crystal-spark {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate(-50%, -50%);
}

.fx-spark {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffe28a 55%, rgba(255,210,80,0) 100%);
}
.fx-spark.is-blue {
    background: radial-gradient(circle, #fff 0%, #ffd6f6 45%, rgba(200,0,200,0) 100%);
}

.fx-crystal-spark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffd6ff 30%, #ff24d1 58%, rgba(122,32,255,0) 100%);
    box-shadow: 0 0 12px rgba(236,0,140,0.65), 0 0 22px rgba(122,32,255,0.35);
}

.fx-coin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, #fff7cf 0%, #f6d56d 50%, #7a5410 100%);
    border: 1px solid rgba(80,50,0,0.55);
    box-sizing: border-box;
}
.fx-coin.is-silver {
    background: radial-gradient(circle at 38% 36%, #fff8ff 0%, #ff4fd8 46%, #af0092 100%);
    border-color: rgba(236,0,140,0.55);
}

.fx-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid rgba(255,236,168,0.7);
}
.fx-ring.is-blue {
    border-color: rgba(200,0,200,0.65);
    border-width: 2px;
}

/* Shard'lar SVG bg-image ile — gradient + dark stroke birlikte. 6 farklı şekil. */
.fx-shard {
    width: 54px;
    height: 82px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Halo rings */
.halo {
    position: absolute;
    top: 50%; left: 50%;
    width: 360px; height: 360px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(236, 0, 140, 0.2), rgba(236, 0, 140, 0) 62%);
    z-index: 1;
    pointer-events: none;
    animation: haloPulse 3.4s ease-in-out infinite;
    will-change: transform, opacity;
}
.halo--outer {
    width: 560px; height: 560px;
    background: radial-gradient(circle at center, rgba(200, 0, 200, 0.12), transparent 65%);
    animation-duration: 5s;
    animation-delay: 0.4s;
}
@keyframes haloPulse {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

/* === Pouch === */
.pouch-wrap {
    position: relative;
    z-index: 3;
    width: min(320px, 62%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    /* Çift drop-shadow — pouch animasyon yaparken her frame iki ayrı blur
       pass'i çalışıyordu. Tek birleşik gölge (warm cast) ile hem profundite
       hem altın aurası verecek şekilde sadeleştirildi. */
    filter: drop-shadow(0 24px 40px rgba(122, 32, 255, 0.36)) drop-shadow(0 0 28px rgba(236, 0, 140, 0.28));
    /* pouch sürekli transform animasyonunda — kendi compositing layer'ında
       tutmak GPU'ya atıyor, ana thread bloklanmıyor */
    will-change: transform;
}

.pouch {
    width: 100%;
    height: auto;
    transform-origin: 50% 70%;
    animation: pouchIdle 3.5s ease-in-out infinite;
    transition: transform 0.2s ease;
    will-change: transform;
}
@keyframes pouchIdle {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}

.crystal-wrap {
    isolation: isolate;
}

.crystal-orbit-field {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: visible;
    pointer-events: none;
    transform: translateZ(0);
}

.crystal-orbit-piece {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 78% 50%, rgba(255,255,255,0.96) 0 10%, rgba(255,170,244,0.88) 18%, transparent 52%),
        linear-gradient(90deg, transparent 0%, rgba(174, 33, 255, 0.18) 12%, rgba(255, 38, 205, 0.95) 48%, rgba(255, 236, 252, 0.98) 70%, transparent 100%);
    box-shadow:
        0 0 9px rgba(255, 43, 211, 0.8),
        0 0 18px rgba(157, 67, 255, 0.5);
    opacity: 0;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.crystal-orbit-piece::after {
    content: "";
    position: absolute;
    inset: -5px -8px;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, rgba(236,0,140,0.28), transparent 68%);
    filter: blur(4px);
}

.crystal-orbit-piece.is-front {
    box-shadow:
        0 0 12px rgba(255, 70, 219, 0.95),
        0 0 28px rgba(191, 68, 255, 0.72),
        0 0 46px rgba(255, 190, 250, 0.28);
}

.crystal-orbit-piece.is-glint {
    height: 6px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,1) 0 12%, rgba(255,130,238,0.94) 26%, transparent 62%),
        linear-gradient(90deg, transparent 0%, rgba(255, 50, 220, 0.45) 20%, rgba(255, 244, 255, 1) 52%, transparent 100%);
}

.pouch.crystal {
    position: relative;
    z-index: 3;
    width: auto;
    height: 106%;
    max-width: 88%;
    transform-origin: 50% 63%;
    animation: crystalIdle 3.8s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes crystalIdle {
    0%, 100% { transform: translateY(0) rotate(-1.4deg) scale(1); }
    50%      { transform: translateY(-10px) rotate(1.5deg) scale(1.015); }
}

.pouch-wrap.is-charging .pouch { animation: pouchCharge 0.16s linear infinite; }
@keyframes pouchCharge {
    0%   { transform: translate(-2px, -1px) rotate(-4deg); }
    25%  { transform: translate(3px, 1px)  rotate(3deg); }
    50%  { transform: translate(-3px, -2px) rotate(-5deg); }
    75%  { transform: translate(2px, 2px) rotate(4deg); }
    100% { transform: translate(-1px, 0)  rotate(-2deg); }
}

.pouch-wrap.is-shaking .pouch { animation: pouchShake 0.08s linear infinite; }
@keyframes pouchShake {
    0%   { transform: translate(-6px, -3px) rotate(-10deg) scale(1.02); }
    25%  { transform: translate(7px, 2px)   rotate(8deg)  scale(1.04); }
    50%  { transform: translate(-8px, -5px) rotate(-12deg) scale(1.02); }
    75%  { transform: translate(6px, 4px)   rotate(11deg) scale(1.05); }
    100% { transform: translate(-3px, 0)    rotate(-6deg) scale(1.02); }
}

.pouch-wrap.is-charging .crystal {
    animation: crystalCharge 0.7s ease-in-out infinite;
}

.pouch-wrap.is-shaking .crystal {
    animation: crystalShake 0.12s linear infinite;
}

@keyframes crystalCharge {
    0%, 100% { transform: translateY(-4px) scale(1.02) rotate(-1deg); }
    50%      { transform: translateY(-11px) scale(1.08) rotate(1deg); }
}

@keyframes crystalShake {
    0%   { transform: translate(-4px, -3px) rotate(-4deg) scale(1.04); }
    33%  { transform: translate(5px, 2px) rotate(4deg) scale(1.08); }
    66%  { transform: translate(-2px, -5px) rotate(-2deg) scale(1.05); }
    100% { transform: translate(3px, 0) rotate(2deg) scale(1.07); }
}

.pouch-wrap.is-burst .pouch {
    animation: pouchBurst 0.9s cubic-bezier(.4, 1.6, .6, 1) forwards;
}
@keyframes pouchBurst {
    0%   { transform: scale(1);    opacity: 1; }
    20%  { transform: scale(1.22); opacity: 1; }
    35%  { transform: scale(1.5);  opacity: 0; }
    100% { transform: scale(0.6);  opacity: 0; }
}

.pouch-wrap.is-burst .crystal {
    animation: crystalBurst 0.95s cubic-bezier(.16, 1.2, .28, 1) forwards;
}

.pouch-wrap.is-burst .crystal-orbit-piece {
    opacity: 0 !important;
    transition: opacity 0.24s ease-out;
}

@keyframes crystalBurst {
    0%   { opacity: 1; transform: translateY(-8px) scale(1.08) rotate(0deg); }
    22%  { opacity: 1; transform: translateY(-10px) scale(1.24) rotate(3deg); }
    44%  { opacity: 0.36; transform: translateY(-4px) scale(1.62) rotate(-8deg); }
    100% { opacity: 0; transform: translateY(8px) scale(0.42) rotate(18deg); }
}

/* Modal kapandıktan sonra yeni kese yukarıdan düşüp 2 sek ile yere oturur */
.pouch-wrap.is-dropping .pouch {
    animation: pouchDrop 1.05s cubic-bezier(.4, 0, .8, .35) forwards;
    transform-origin: 50% 100%;
}
@keyframes pouchDrop {
    0%   { transform: translateY(-260%) scale(0.85) rotate(-9deg); opacity: 0; }
    8%   { opacity: 1; }
    38%  { transform: translateY(0)    scale(1.08) rotate(3deg); }    /* ilk yere çarpma */
    50%  { transform: translateY(-26%) scale(0.94) rotate(-3deg); }   /* yukarı sek */
    62%  { transform: translateY(0)    scale(1.05) rotate(2deg); }    /* ikinci çarpma */
    74%  { transform: translateY(-9%)  scale(0.99) rotate(-1deg); }   /* küçük sek */
    86%  { transform: translateY(0)    scale(1.02) rotate(0); }
    100% { transform: translateY(0)    scale(1)    rotate(0); opacity: 1; }
}

/* === Burst rays === */
.burst {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 6;
}
.burst.is-on { opacity: 1; }
.burst .ray {
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 360px;
    margin-left: -7px;
    background: linear-gradient(180deg, rgba(255, 214, 246, 0) 0%, rgba(255, 214, 246, 0.9) 40%, rgba(236, 0, 140, 0) 100%);
    transform-origin: 50% 0%;
    filter: blur(1px);
    opacity: 0;
}
.burst.is-on .ray {
    animation: rayFlash 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.burst .ray:nth-child(1) { transform: translateY(0) rotate(0deg); }
.burst .ray:nth-child(2) { transform: translateY(0) rotate(30deg); }
.burst .ray:nth-child(3) { transform: translateY(0) rotate(60deg); }
.burst .ray:nth-child(4) { transform: translateY(0) rotate(90deg); }
.burst .ray:nth-child(5) { transform: translateY(0) rotate(120deg); }
.burst .ray:nth-child(6) { transform: translateY(0) rotate(150deg); }
.burst .ray:nth-child(7) { transform: translateY(0) rotate(180deg); }
.burst .ray:nth-child(8) { transform: translateY(0) rotate(210deg); }
.burst .ray:nth-child(9) { transform: translateY(0) rotate(240deg); }
.burst .ray:nth-child(10){ transform: translateY(0) rotate(270deg); }
.burst .ray:nth-child(11){ transform: translateY(0) rotate(300deg); }
.burst .ray:nth-child(12){ transform: translateY(0) rotate(330deg); }

@keyframes rayFlash {
    0%   { opacity: 0; transform-origin: 50% 0%; scale: 0.2 0.3; }
    30%  { opacity: 1; scale: 1 1; }
    100% { opacity: 0; scale: 1 1.4; }
}

/* === Shake hint === */
.shake-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(26, 10, 46, 0.84);
    border: 1px solid rgba(236, 0, 140, 0.35);
    color: var(--gold-2);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    box-shadow: 0 0 30px rgba(236, 0, 140, 0.18);
    animation: hintPulse 1.8s ease-in-out infinite;
}
.shake-hint i { animation: iconWiggle 1.5s ease-in-out infinite; }
@keyframes hintPulse {
    0%, 100% { transform: translateX(-50%) scale(1);    box-shadow: 0 0 20px rgba(236,0,140,0.2); }
    50%      { transform: translateX(-50%) scale(1.04); box-shadow: 0 0 36px rgba(236,0,140,0.45); }
}
@keyframes iconWiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-18deg); }
    75% { transform: rotate(18deg); }
}

/* === Shake meter === */
.shake-meter {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    color: var(--text-2);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.shake-meter.is-active { display: flex; }

.shake-meter-track {
    width: 140px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.shake-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd6f6, #ec008c 50%, #af0092);
    box-shadow: 0 0 14px rgba(236, 0, 140, 0.6);
    transition: width 0.08s linear;
}

/* === Prize reveal === */
.prize-reveal {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, rgba(45, 20, 84, 0.72), rgba(26, 10, 46, 0.95));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.prize-reveal[hidden] { display: none; }

/* === Confirm modal (hak satın alma onay/hata) === */
.confirm-modal {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(45, 20, 84, 0.78), rgba(26, 10, 46, 0.96));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.confirm-modal[hidden] { display: none; }
.confirm-modal.is-open { opacity: 1; }
.confirm-card {
    width: min(420px, 100%);
    padding: 32px 28px 24px;
    border-radius: 26px;
    text-align: center;
    background: linear-gradient(180deg, rgba(45, 20, 84, 0.98), rgba(26, 10, 46, 0.98));
    border: 1px solid rgba(236, 0, 140, 0.24);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 24px rgba(236, 0, 140, 0.08);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(.2, 1.2, .4, 1);
}
.confirm-modal.is-open .confirm-card { transform: scale(1) translateY(0); }
.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.confirm-icon--gold {
    background-color: var(--accent-solid) !important;
    background-image: none !important;
    color: #fff8ff;
    box-shadow: var(--accent-shadow) !important;
}
.confirm-icon--warn {
    background-color: #af0092 !important;
    background-image: none !important;
    color: #fff8ff;
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}
.confirm-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-1);
    letter-spacing: 0.02em;
}
.confirm-text {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 22px;
}
.confirm-text strong { color: var(--gold); font-weight: 700; }
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.confirm-actions--single { justify-content: center; }
.confirm-btn {
    flex: 1;
    padding: 13px 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.confirm-btn--ok {
    background-color: var(--accent-solid) !important;
    background-image: none !important;
    color: #fff8ff;
    box-shadow: var(--accent-shadow) !important;
}
.confirm-btn--ok:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.45), 0 16px 36px rgba(236, 0, 140, 0.35) !important; }
.confirm-btn--cancel {
    background: rgba(200, 0, 200, 0.08);
    color: var(--text-2);
    border: 1px solid rgba(200, 0, 200, 0.2);
}
.confirm-btn--cancel:hover { background: rgba(200, 0, 200, 0.16); color: var(--text-1); }
.confirm-actions--single .confirm-btn { flex: 0 1 200px; }

.prize-card {
    width: min(420px, 100%);
    min-height: 0;
    padding: 32px 28px 24px;
    border-radius: 26px;
    text-align: center;
    background: linear-gradient(180deg, rgba(45, 20, 84, 0.98), rgba(26, 10, 46, 0.98));
    border: 1px solid rgba(236, 0, 140, 0.32);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 48px rgba(236, 0, 140, 0.2),
        inset 0 0 24px rgba(236, 0, 140, 0.08);
    transform: scale(0.92) translateY(10px);
    opacity: 1;
    position: relative;
    transition: transform 0.3s cubic-bezier(.2, 1.2, .4, 1);
}
.prize-reveal.is-open .prize-card {
    transform: scale(1) translateY(0);
}

.prize-card::before {
    display: none;
}

.prize-content {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none;
}

.prize-tier {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.42rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: var(--text-1);
    margin: 0 0 14px;
    text-shadow: 0 0 18px rgba(236,0,140,0.38);
    max-width: 100%;
}
.prize-card[data-tier="bronze"] .prize-tier    { color: #d9a16a; }
.prize-card[data-tier="silver"] .prize-tier    { color: #e3ecf8; }
.prize-card[data-tier="gold"] .prize-tier      { color: var(--gold); }
.prize-card[data-tier="legendary"] .prize-tier { color: #ffb7ff; text-shadow: 0 0 12px rgba(255,183,255,0.6); }
.prize-card[data-tier="empty"] .prize-tier     { color: #a6b3d4; }

.prize-crown {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #fff8ff;
    background: linear-gradient(180deg, #ec008c 0%, #af0092 100%);
    box-shadow: 0 10px 24px -10px rgba(236,0,140,0.7);
}
@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-6px) rotate(3deg); }
}

.prize-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
}

.prize-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1;
    background: linear-gradient(180deg, #fff8d7 0%, #ffd66d 34%, #ff4fd8 72%, #af0092 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(236, 0, 140, 0.4);
    margin: 0;
}
.prize-card[data-tier="empty"] .prize-amount { font-size: 2.2rem; }

.prize-currency {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold-2);
    letter-spacing: 0.24em;
}
.prize-card[data-tier="empty"] .prize-currency { display: none; }

.prize-label {
    margin: 0 0 22px;
    color: var(--text-2);
    font-size: 1rem;
    letter-spacing: 0.04em;
    word-break: break-word;
    hyphens: auto;
}

.prize-claim {
    width: min(200px, 100%);
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
}

/* === Side panel: lives === */
.lives-panel {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(236, 0, 140, 0.28);
    background: var(--accent-surface) !important;
    box-shadow: var(--accent-shadow) !important;
}
.lives-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.lives-count {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--gold);
    min-width: 44px;
    text-align: center;
    text-shadow: 0 0 18px rgba(236, 0, 140, 0.4);
}
.lives-icons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.life {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(236, 0, 140, 0.14);
    border: 1px solid rgba(236, 0, 140, 0.3);
    color: var(--gold-2);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.life.used {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.16);
}

/* === Buttons === */
.actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.btn {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
}
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none !important; }
.btn-primary {
    color: #fff8ff;
    background-color: var(--accent-solid) !important;
    background-image: none !important;
    box-shadow: var(--accent-shadow) !important;
    flex: 1;
    justify-content: center;
}
.btn-secondary {
    color: var(--text-1);
    background: linear-gradient(135deg, rgba(45, 20, 84, 0.96), rgba(26, 10, 46, 0.96));
    border: 1px solid rgba(200, 0, 200, 0.26);
    box-shadow: 0 14px 28px rgba(5, 10, 28, 0.4);
    padding: 16px 18px;
}
.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) { transform: translateY(-2px); }

/* Hak satın al — günlük ücretsiz hak bittikten sonra görünür */
.btn-buy {
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;
    background-color: #af0092 !important;
    background-image: none !important;
    color: #fff8ff;
    border: 1px solid rgba(236, 0, 140, 0.35);
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}
.btn-buy:disabled { cursor: not-allowed; opacity: 0.55; }
.btn-buy[hidden] { display: none !important; }

.btn-shake { position: relative; overflow: hidden; }
/* SALLA ↔ HAK YOK metinleri farklı genişlikte olduğu için tıklama anında
   span yer değiştirip CLS üretiyordu; min-width ile sabitliyoruz */
#shakeBtnText {
    display: inline-block;
    min-width: 7ch;
    text-align: center;
}
.btn-shake::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: btnShine 2.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnShine {
    0%   { transform: translateX(-120%); }
    55%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
.btn-shake.is-press i { animation: iconWiggle 0.4s linear infinite; }

/* === History === */
.history-block h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 14px;
    color: var(--text-1);
    letter-spacing: 0.04em;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}
.history-list::-webkit-scrollbar { width: 6px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(236,0,140,0.2); border-radius: 999px; }

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}
.history-item.is-win { border-color: rgba(236, 0, 140, 0.35); background: rgba(236, 0, 140, 0.06); }
.history-item.is-legendary { border-color: rgba(255, 183, 255, 0.45); background: rgba(255, 183, 255, 0.05); }
.history-item strong { color: var(--gold-2); font-weight: 700; }
.history-item.is-legendary strong { color: #ffb7ff; text-shadow: 0 0 8px rgba(255,183,255,0.6); }
.history-item span { color: var(--text-2); font-size: 0.8rem; }

.empty-state {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--text-2);
    font-size: 0.9rem;
    text-align: center;
}

/* === Hint block === */
.hint-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(200, 0, 200, 0.08);
    border: 1px solid rgba(200, 0, 200, 0.18);
    color: var(--text-2);
    font-size: 0.85rem;
    line-height: 1.5;
}
.hint-block i { color: var(--gold); margin-top: 3px; }

/* === Guest lock === */
.stage-card--locked { position: relative; }
.guest-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 2, 20, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
}
.guest-modal {
    text-align: center;
    background: linear-gradient(145deg, rgba(45, 20, 84, 0.95), rgba(26, 10, 46, 0.98));
    border: 1px solid rgba(236, 0, 140, 0.25);
    border-radius: var(--radius-xl);
    padding: 50px 44px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 80px rgba(236, 0, 140, 0.15), 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: guestModalIn 0.5s ease-out;
}
.guest-modal-icon {
    font-size: 60px;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(236, 0, 140, 0.5);
}
.guest-modal h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 14px; }
.guest-modal p { font-size: 1rem; color: var(--text-2); margin: 0; }

@keyframes guestModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* === Ready overlay (mobile audio + motion permission gate) === */
.ready-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(45, 20, 84, 0.86), rgba(26, 10, 46, 0.96));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.ready-overlay[hidden] { display: none; }
.ready-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ready-modal {
    text-align: center;
    width: 100%;
    max-width: 380px;
    padding: 32px 26px 26px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(45, 20, 84, 0.98), rgba(26, 10, 46, 0.98));
    border: 1px solid rgba(236, 0, 140, 0.38);
    box-shadow:
        0 0 60px rgba(236, 0, 140, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 24px rgba(236, 0, 140, 0.05);
    animation: readyModalIn 0.45s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes readyModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ready-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 4px auto 22px;
    display: grid;
    place-items: center;
}
.ready-icon {
    position: relative;
    z-index: 2;
    font-size: 42px;
    color: var(--gold);
    filter: drop-shadow(0 0 16px rgba(236, 0, 140, 0.55));
    animation: readyIconShake 1s ease-in-out infinite;
}
@keyframes readyIconShake {
    0%, 100% { transform: rotate(-8deg); }
    50%      { transform: rotate(10deg); }
}
.ready-wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(236, 0, 140, 0.55);
    animation: readyWave 1.8s ease-out infinite;
}
.ready-wave--2 { animation-delay: 0.7s; }
@keyframes readyWave {
    0%   { transform: scale(0.5); opacity: 1; }
    80%  { opacity: 0.05; }
    100% { transform: scale(1.8); opacity: 0; }
}

.ready-modal h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--gold-2);
    margin: 0 0 10px;
    letter-spacing: 0.04em;
}

.ready-text {
    color: var(--text-2);
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0 0 20px;
}

.ready-features {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.ready-feature {
    flex: 1;
    padding: 12px 10px;
    border-radius: 14px;
    background: var(--accent-surface) !important;
    border: 1px solid rgba(236, 0, 140, 0.22);
    box-shadow: var(--accent-shadow) !important;
    color: var(--text-1);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ready-feature i {
    color: var(--gold);
    font-size: 1.15rem;
    filter: drop-shadow(0 0 8px rgba(236, 0, 140, 0.4));
}

.ready-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px 24px;
    position: relative;
    overflow: hidden;
}

.ready-hint {
    margin: 14px 0 0;
    font-size: 0.78rem;
    color: rgba(232, 240, 255, 0.55);
    letter-spacing: 0.02em;
}

/* === Responsive === */
@media (max-width: 1080px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .page-shell { width: min(100% - 20px, 1220px); padding-top: 16px; }
    .stage-card { padding: 22px 20px 26px; }
    .side-panel { padding: 22px; }
    .stage { min-height: 440px; }
    .pouch-wrap { width: min(260px, 72%); }
    .dede-logo { width: clamp(72px, 22vw, 110px); margin-bottom: 8px; }
    .prize-amount { font-size: 3.6rem; }
    .halo { width: 280px; height: 280px; }
    .halo--outer { width: 420px; height: 420px; }
    .shake-hint { font-size: 0.85rem; padding: 8px 16px; }

    /* === Mobil-spesifik ağır efekt kısıtlamaları ===
       Test cihazlarında kasma kalıntısını tamamen bitirmek için dekoratif
       GPU yüklerini kesiyoruz. Pouch + ödül kartı hissiyatı korunur. */

    /* backdrop-filter mobilde (özellikle iOS Safari) GPU'yu çok yoruyor */
    .stage-card, .side-panel,
    .prize-reveal,
    .guest-overlay,
    .ready-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .prize-card::before { display: none; }

    /* Fullscreen blur + fixed = mobilde sürekli compositing yükü */
    .aurora { display: none; }
    /* Grid pattern fullpage — body shake'te fullpage repaint'e sebep */
    body::before { display: none; }

    /* Halo scale pulse mobilde compositing spike yapıyor — opacity korunur */
    .halo, .halo--outer { animation: none; opacity: 0.7; }

    /* Sayfayı komple translate3d ile sallamak mobilde tüm katmanları
       repaint ettiriyor. Pouch zaten kendi shake animasyonunda. */
    body.is-shaking { animation: none; }
    body.is-bursting { animation: none; }

    /* Pouch-wrap çift drop-shadow — shake'te her frame'de shadow hesabı.
       Daha ucuz tek drop-shadow bırakıyoruz; shake anında komple kapatıyoruz. */
    .pouch-wrap {
        filter: drop-shadow(0 18px 24px rgba(0,0,0,0.45));
    }
    .pouch-wrap.is-shaking,
    .pouch-wrap.is-charging {
        filter: none;
    }

    /* Buton shine animasyonu — sessiz ama sürekli compositing */
    .btn-shake::after { display: none; }
}

@media (hover: none) and (pointer: coarse) {
    /* Gradient hue-rotate prize card border: dramatic but heavy on touch devices */
    .prize-card::before { animation: none; }
}

/* === Prefers reduced motion ===
   Dekoratif animasyonları tamamen kes, bilgi veren hareketleri (ödül kartı
   geliş) kısalt. Oyunun anlaşılabilir olması korunur. */
@media (prefers-reduced-motion: reduce) {
    .aurora,
    .storm-layer,
    .pouch,
    .halo, .halo--outer,
    .shake-hint, .shake-hint i,
    .title-gold .letter, .title-gold .amp,
    .prize-card::before,
    .prize-crown,
    .ready-icon,
    .btn-shake::after,
    .pouch-wrap.is-charging .pouch,
    .pouch-wrap.is-shaking .pouch {
        animation: none !important;
    }
    .crystal-orbit-piece { display: none; }
    .ready-wave { display: none; }
    body.is-shaking, body.is-bursting { animation: none; }
    .prize-reveal.is-open .prize-card {
        animation-duration: 0.24s;
        animation-timing-function: ease-out;
    }
    .pouch-wrap.is-burst .pouch { animation-duration: 0.3s; }
}

/* === Prism console redesign === */
body {
    background:
        linear-gradient(160deg, #1a0a2e 0%, #2d1454 40%, #1e0a38 100%);
}

body::before {
    background-image:
        linear-gradient(90deg, rgba(236, 0, 140, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 214, 246, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 47%, rgba(236, 0, 140, 0.08) 48% 49%, transparent 50% 100%);
    background-size: 96px 96px, 96px 96px, 220px 220px;
    opacity: 0.58;
}

.aurora {
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 15%, rgba(236, 0, 140, 0.16) 16% 18%, transparent 19% 48%, rgba(200, 0, 200, 0.1) 49% 51%, transparent 52% 100%),
        repeating-linear-gradient(102deg, rgba(255, 214, 246, 0.035) 0 1px, transparent 1px 42px);
    filter: none;
    opacity: 0.72;
    animation: prismSweep 18s linear infinite;
}

@keyframes prismSweep {
    0%   { transform: translate3d(-2%, 0, 0); }
    100% { transform: translate3d(2%, 0, 0); }
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    padding: 22px 0 44px;
}

.content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 352px);
    gap: 18px;
    align-items: stretch;
}

.stage-card,
.side-panel,
.guest-modal,
.ready-modal,
.confirm-card {
    border-radius: 8px;
}

.stage-card,
.side-panel {
    border: 1px solid rgba(236, 0, 140, 0.34);
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.stage-card {
    padding: 0;
    min-height: 720px;
}

.stage-card::before,
.side-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(236, 0, 140, 0.62), transparent 34%) top left / 100% 1px no-repeat,
        linear-gradient(180deg, rgba(255, 214, 246, 0.4), transparent 28%) top left / 1px 100% no-repeat;
    opacity: 0.75;
}

.stage-heading {
    display: grid;
    grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
    grid-template-areas:
        "logo eyebrow"
        "logo title"
        "logo tagline";
    gap: 6px 18px;
    align-items: center;
    text-align: left;
    margin: 0;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(236, 0, 140, 0.2);
    background:
        linear-gradient(90deg, rgba(236, 0, 140, 0.12), transparent 56%),
        linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
}

.dede-logo {
    grid-area: logo;
    width: clamp(78px, 10vw, 118px);
    margin: 0;
    justify-self: center;
}

.eyebrow {
    grid-area: eyebrow;
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.34em;
    color: rgba(255, 214, 246, 0.78);
}

.title-gold {
    grid-area: title;
    justify-content: flex-start;
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
    margin: 0;
    letter-spacing: 0.12em;
}

.tagline {
    grid-area: tagline;
    min-height: 1.6em;
    max-width: 520px;
    font-size: 0.95rem;
    color: rgba(255, 232, 250, 0.68);
}

.stage {
    margin: 22px 24px 24px;
    min-height: 548px;
    border-radius: 8px;
    border: 1px solid rgba(236, 0, 140, 0.34);
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.stage::before,
.stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.stage::before {
    left: 8%;
    right: 8%;
    bottom: 28px;
    height: 42%;
    border: 1px solid rgba(236, 0, 140, 0.18);
    background:
        repeating-linear-gradient(90deg, rgba(255, 214, 246, 0.12) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(236, 0, 140, 0.14) 0 1px, transparent 1px 32px);
    transform: perspective(520px) rotateX(66deg);
    transform-origin: 50% 100%;
    opacity: 0.46;
}

.stage::after {
    inset: 18px;
    border: 1px solid rgba(236, 0, 140, 0.16);
    background:
        linear-gradient(90deg, rgba(236, 0, 140, 0.62), transparent 30%) top left / 40% 1px no-repeat,
        linear-gradient(270deg, rgba(255, 214, 246, 0.5), transparent 30%) bottom right / 42% 1px no-repeat;
}

.halo,
.halo--outer {
    display: none;
}

.pouch-wrap {
    width: min(360px, 58%);
    filter:
        drop-shadow(0 34px 34px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 34px rgba(236, 0, 140, 0.34));
}

.pouch.crystal {
    height: 112%;
    max-width: 92%;
}

.shake-hint {
    left: 28px;
    bottom: 24px;
    transform: none;
    border-radius: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    border-color: rgba(236, 0, 140, 0.42);
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
    animation: none;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
}

.shake-hint i {
    color: var(--gold);
}

.shake-meter {
    top: 24px;
    right: 24px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    border: 1px solid rgba(236, 0, 140, 0.28);
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.shake-meter-track {
    width: 178px;
    height: 6px;
}

.side-panel {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.side-panel > * {
    position: relative;
    z-index: 1;
}

.lives-panel {
    padding: 24px 22px 20px;
    border: 0;
    border-bottom: 1px solid rgba(236, 0, 140, 0.24);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.lives-heading {
    align-items: flex-start;
}

.lives-count {
    font-size: 2.4rem;
    line-height: 0.9;
}

.life {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    padding: 20px 22px 14px;
    margin: 0;
}

.btn {
    border-radius: 8px;
    min-height: 54px;
}

.btn-primary {
    background-color: #af0092 !important;
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.btn-secondary {
    border-radius: 8px;
    padding-inline: 0;
    justify-content: center;
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.btn-buy {
    width: calc(100% - 44px);
    margin: 0 22px 18px;
    border-radius: 8px;
    min-height: 48px;
}

.history-block {
    padding: 0 22px 18px;
}

.history-block h3 {
    margin-top: 0;
    padding-top: 2px;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.history-list {
    max-height: 330px;
    gap: 8px;
}

.history-item,
.empty-state,
.hint-block {
    border-radius: 8px;
}

.history-item {
    background: rgba(255, 255, 255, 0.035);
}

.hint-block {
    margin: 0 22px 22px;
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    border-color: rgba(236, 0, 140, 0.24);
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.guest-overlay,
.ready-overlay,
.prize-reveal,
.confirm-modal {
    border-radius: 8px;
}

.guest-modal,
.ready-modal,
.confirm-card {
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.22) 0%, rgba(200, 0, 200, 0.12) 100%) !important;
    border-color: rgba(236, 0, 140, 0.34);
    box-shadow: inset 0 0 0 1px rgba(236, 0, 140, 0.35), 0 2px 14px rgba(236, 0, 140, 0.15) !important;
}

.ready-feature,
.confirm-btn,
.ready-btn {
    border-radius: 8px;
}

.prize-card {
    border-radius: 8px;
}

.prize-card::before {
    border-radius: 8px;
}

.prize-claim {
    flex: 0 0 auto;
    min-height: 46px;
}

@media (max-width: 1080px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .stage-card {
        min-height: auto;
    }

    .side-panel {
        display: grid;
        grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.1fr);
        gap: 0;
    }

    .lives-panel {
        border-right: 1px solid rgba(236, 0, 140, 0.24);
        border-bottom: 0;
    }

    .actions,
    .btn-buy,
    .history-block,
    .hint-block {
        grid-column: 2;
    }

    .actions {
        grid-row: 1;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 18px, 1180px);
        padding: 12px 0 32px;
    }

    .stage-heading {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "eyebrow"
            "title"
            "tagline";
        text-align: center;
        justify-items: center;
        padding: 22px 18px 16px;
    }

    .title-gold {
        justify-content: center;
        font-size: clamp(1.55rem, 8.4vw, 2.05rem);
        letter-spacing: 0.06em;
        line-height: 1.12;
        min-height: 42px;
        align-items: center;
        row-gap: 2px;
    }

    .tagline {
        max-width: 100%;
        min-height: 2.2em;
    }

    .stage {
        margin: 14px 14px 16px;
        min-height: 470px;
    }

    .stage::after {
        inset: 12px;
    }

    .pouch-wrap {
        width: min(284px, 72%);
    }

    .shake-hint {
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100% - 34px);
        justify-content: center;
        white-space: nowrap;
    }

    .shake-meter {
        top: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }

    .shake-meter-track {
        width: 140px;
    }

    .side-panel {
        display: block;
    }

    .lives-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(236, 0, 140, 0.24);
    }

    .history-list {
        max-height: 240px;
    }

    .prize-card {
        width: min(420px, 92%);
        min-height: 0;
        padding: 28px 22px 22px;
    }

    .prize-content {
        width: 100%;
    }
}

/* === Video scene experiment === */
.logo-bolt-canvas,
.stage.is-video-scene .stage-canvas,
.stage.is-video-scene .fx-layer,
.stage.is-video-scene .halo,
.stage.is-video-scene .crystal-orbit-field,
.stage.is-video-scene .burst {
    display: none !important;
}

.stage.is-video-scene {
    width: min(var(--scene-video-width, 720px), calc(100% - 48px));
    min-height: 0;
    height: auto;
    aspect-ratio: var(--scene-video-ratio, 1 / 1);
    margin: 22px auto 24px;
    display: block;
    background: #1a0a2e !important;
}

.stage.is-video-scene.is-loading .stage-video {
    opacity: 0;
}

.stage.is-video-scene .pouch-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    display: block;
    filter: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(236,0,140,0.10), transparent 58%),
        #1a0a2e;
    transform: none !important;
    animation: none !important;
    will-change: auto;
}

.stage.is-video-scene .stage-video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: 0;
    opacity: 1;
    transform: none !important;
    animation: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.stage.is-video-scene .video-loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    color: rgba(255, 248, 255, 0.92);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 50% 44%, rgba(236,0,140,0.22), transparent 46%),
        rgba(26,10,46,0.94);
    pointer-events: none;
}

.stage.is-video-scene .video-loader[hidden] {
    display: none !important;
}

.stage.is-video-scene .video-loader-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.16);
    border-top-color: #ec008c;
    border-right-color: rgba(236,0,140,0.72);
    box-shadow:
        0 0 20px rgba(236,0,140,0.36),
        inset 0 0 14px rgba(236,0,140,0.16);
    animation: videoLoaderSpin 0.86s linear infinite;
}

@keyframes videoLoaderSpin {
    to { transform: rotate(360deg); }
}

.stage.is-video-scene .pouch-wrap.is-charging .stage-video {
    animation: none !important;
    transform: none !important;
}

.stage.is-video-scene .pouch-wrap.is-shaking .stage-video {
    animation: none !important;
    transform: none !important;
}

.stage.is-video-scene .pouch-wrap.is-burst .stage-video,
.stage.is-video-scene .stage-video.is-burst-video,
.stage.is-video-scene .pouch-wrap.is-dropping .stage-video {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 720px) {
    .stage.is-video-scene {
        width: calc(100% - 28px);
        margin: 14px auto 16px;
    }

    .stage.is-video-scene .pouch-wrap {
        width: 100%;
        height: 100%;
    }

    .stage.is-video-scene .stage-video {
        border-radius: 0;
    }
}

/* === Kupa reference palette === */
body {
    background:
        radial-gradient(1200px 600px at 88% -8%, rgba(236,0,140,0.22), transparent 60%),
        radial-gradient(900px 700px at 12% 8%, rgba(45,20,84,0.68), transparent 65%),
        radial-gradient(1400px 900px at 50% 120%, rgba(175,0,146,0.18), transparent 70%),
        linear-gradient(160deg, #1a0a2e 0%, #2d1454 40%, #1e0a38 100%) !important;
}

body::before {
    background:
        radial-gradient(700px 300px at 80% 0%, rgba(236,0,140,0.12), transparent 70%),
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.10), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.08), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.06), transparent);
    background-size: auto;
    box-shadow: inset 0 0 360px 60px rgba(0,0,0,0.55);
    opacity: 1;
}

.aurora {
    background:
        radial-gradient(1200px 600px at 88% -8%, rgba(236,0,140,0.12), transparent 60%),
        radial-gradient(900px 700px at 12% 8%, rgba(45,20,84,0.28), transparent 65%),
        radial-gradient(1400px 900px at 50% 120%, rgba(175,0,146,0.08), transparent 70%);
    opacity: 0.86;
    animation: none;
}

.stage-card,
.side-panel,
.stage,
.lives-panel,
.history-item,
.empty-state,
.hint-block,
.guest-modal,
.ready-modal,
.confirm-card {
    background:
        linear-gradient(135deg, rgba(236,0,140,0.22) 0%, rgba(200,0,200,0.12) 100%),
        rgba(26,10,46,0.72) !important;
    border: 1px solid rgba(236,0,140,0.35) !important;
    box-shadow:
        inset 0 0 0 1px rgba(236,0,140,0.16),
        0 2px 14px rgba(236,0,140,0.15),
        0 18px 50px -22px rgba(0,0,0,0.75),
        inset 0 1px 0 0 rgba(255,255,255,0.05) !important;
}

.stage-card,
.side-panel {
    border-radius: 28px;
}

.stage,
.guest-modal,
.ready-modal,
.confirm-card {
    border-radius: 24px;
}

.stage-card::before,
.side-panel::before {
    background:
        linear-gradient(90deg, transparent, rgba(236,0,140,0.65), transparent) top / calc(100% - 32px) 1px no-repeat;
    opacity: 1;
}

.stage-heading {
    background:
        linear-gradient(135deg, rgba(236,0,140,0.16) 0%, rgba(200,0,200,0.08) 100%),
        rgba(26,10,46,0.42) !important;
    border-bottom-color: rgba(236,0,140,0.26);
}

.eyebrow,
.shake-meter,
.history-block h3 {
    color: #c9b4d9;
}

.title-gold,
.lives-count,
.history-item strong,
.shake-hint i {
    color: #fff8ff;
    text-shadow: 0 0 18px rgba(255, 0, 160, 0.45);
}

.tagline,
.history-item span,
.confirm-text,
.guest-modal p,
.ready-text {
    color: rgba(230, 232, 242, 0.72);
}

.stage {
    overflow: hidden;
}

.stage::before {
    border-color: rgba(236,0,140,0.18);
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(236,0,140,0.10) 0 1px, transparent 1px 32px);
}

.stage::after {
    border-color: rgba(236,0,140,0.18);
    background:
        linear-gradient(90deg, rgba(236,0,140,0.62), transparent 32%) top left / 42% 1px no-repeat,
        linear-gradient(270deg, rgba(255,102,207,0.38), transparent 32%) bottom right / 42% 1px no-repeat;
}

.btn,
.btn-buy,
.confirm-btn,
.ready-btn,
.prize-claim {
    border-radius: 999px !important;
    font-weight: 800;
}

.btn-primary,
.btn-buy,
.confirm-btn--ok,
.ready-btn {
    background:
        linear-gradient(180deg, #ec008c 0%, #af0092 100%) !important;
    color: #fff8ff !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.24),
        0 10px 24px -10px rgba(236,0,140,0.7) !important;
}

.btn-primary:hover:not(:disabled),
.btn-buy:hover:not(:disabled),
.confirm-btn--ok:hover,
.ready-btn:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, #ff0c9e 0%, #ba009b 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.32),
        0 14px 30px -10px rgba(236,0,140,0.85) !important;
}

.btn-secondary,
.confirm-btn--cancel,
.shake-hint,
.shake-meter,
.ready-feature {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: rgba(230,232,242,0.88) !important;
    box-shadow: none !important;
}

.shake-meter-fill {
    background: linear-gradient(90deg, #ff66cf 0%, #ec008c 58%, #af0092 100%);
    box-shadow: 0 0 14px rgba(236,0,140,0.6);
}

.life {
    background: rgba(236,0,140,0.14);
    border-color: rgba(236,0,140,0.3);
}

.life.used {
    opacity: 0.44;
    background: rgba(255,255,255,0.03);
}

.history-item,
.empty-state {
    border-radius: 18px;
    background: rgba(255,255,255,0.035) !important;
}

.history-item.is-win,
.history-item.is-legendary {
    background: rgba(236,0,140,0.08) !important;
    border-color: rgba(236,0,140,0.42) !important;
}

.hint-block {
    border-radius: 18px;
}

.confirm-icon--gold,
.confirm-icon--warn {
    background: linear-gradient(180deg, #ec008c 0%, #af0092 100%) !important;
    box-shadow: 0 10px 24px -10px rgba(236,0,140,0.7) !important;
}

.prize-reveal,
.confirm-modal,
.guest-overlay,
.ready-overlay {
    background:
        radial-gradient(ellipse at center, rgba(45,20,84,0.72), rgba(26,10,46,0.94)) !important;
}
