/* Tam ekran kazanç sahnesi; ızgara patlamaları ayrı ve hafif bir katmanda. */
:root { --fx-gold-rgb: 255 207 92; --fx-mint-rgb: 95 240 207; --fx-pink-rgb: 255 110 201; --fx-surface-rgb: 21 2 39; }
.celebration { --fx-rgb: var(--fx-gold-rgb); position: fixed; inset: 0; z-index: 850; border-radius: 0; isolation: isolate; pointer-events: none; }
.celebration.mega { --fx-rgb: var(--fx-mint-rgb); }
.celebration.insane { --fx-rgb: var(--fx-pink-rgb); }
.celebration.show { background: radial-gradient(ellipse at center, rgb(var(--fx-surface-rgb) / .66), rgb(var(--fx-surface-rgb) / .94)); backdrop-filter: blur(5px); animation: fx-reveal .3s ease-out both; }
.celebration.show::before { content: ''; position: absolute; width: max(150vw,150vh); aspect-ratio: 1; background: repeating-conic-gradient(from 0deg, transparent 0deg 13deg, rgb(var(--fx-rgb) / .16) 14deg 19deg, transparent 20deg 30deg); mask-image: radial-gradient(circle, transparent 6%, black 14%, transparent 62%); animation: fx-rays 24s linear infinite; }
.celebration.show::after { content: ''; position: absolute; left: 50%; top: 50%; width: min(76vw,760px); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgb(var(--fx-rgb) / .85); box-shadow: 0 0 55px rgb(var(--fx-rgb) / .4), inset 0 0 55px rgb(var(--fx-rgb) / .25); animation: fx-ring 1.1s cubic-bezier(.15,.7,.3,1) both; }
.celebration.show.landed::after { animation: fx-finale-ring .95s cubic-bezier(.15,.7,.3,1) both; }
.celebration.show.leaving { animation: fx-exit .3s ease-in both; }
.celebration .cel-flash { background: radial-gradient(circle, rgb(var(--fx-rgb) / .65), transparent 58%); animation: celFlash .65s ease-out both; }
.celebration-body { width: min(92vw,900px); padding: 24px 10px; gap: clamp(12px,2.5vh,24px); animation: fx-rise .65s cubic-bezier(.16,1.25,.3,1) both; }
.celebration-body::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(110vw,900px); aspect-ratio: 1.5; transform: translate(-50%,-50%); background: radial-gradient(ellipse, rgb(var(--fx-rgb) / .24), transparent 65%); }
.celebration-body::after { content: ''; width: 50%; height: 3px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgb(var(--fx-rgb)), transparent); box-shadow: 0 0 18px rgb(var(--fx-rgb) / .7); transform: scaleX(var(--fx-progress,0)); }
.celebration .cel-tier { font-size: clamp(15px,2.6vw,30px); letter-spacing: .16em; }
.celebration .cel-amount { max-width: 100%; padding: .08em .02em; font-family: 'Sora',system-ui,sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.055em; line-height: 1.15; white-space: nowrap; background-size: 100% 200%; animation: fx-gold-flow 1.4s ease-in-out infinite; }
.celebration .cel-amount.landed { animation: fx-final .65s cubic-bezier(.2,1.4,.4,1) both; }
.celebration .cel-sub { padding: 9px 20px; border: 1px solid rgb(var(--fx-rgb) / .5); border-radius: 999px; font-size: clamp(10px,1.3vw,14px); color: rgb(var(--fx-rgb)); background: rgb(var(--fx-rgb) / .1); font-variant-numeric: tabular-nums; }
.party { overflow: hidden; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-cascade { --fx-rgb: var(--fx-gold-rgb); position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; border-radius: inherit; }
.fx-cell-ring { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--gold-soft); box-shadow: 0 0 14px rgb(var(--fx-gold-rgb) / .8); animation: fx-ring .6s ease-out both; }
.fx-gain { position: absolute; left: 50%; top: 43%; color: var(--gold-soft); font-size: clamp(25px,4.5vw,48px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.04em; text-shadow: 0 3px 0 var(--gold-deep), 0 5px 15px var(--violet-deep), 0 0 32px rgb(var(--fx-gold-rgb) / .9); white-space: nowrap; animation: fx-gain .95s cubic-bezier(.2,.7,.3,1) both; }
.cell.win .art, .cell.win .orb, .cell.win .scatter-wrap { animation: fx-symbol .54s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fx-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-exit { to { opacity: 0; } }
@keyframes fx-rise { 0% { opacity: 0; transform: translateY(30px) scale(.55); } 70% { opacity: 1; transform: scale(1.05); } 100% { transform: none; } }
@keyframes fx-rays { to { transform: rotate(360deg); } }
@keyframes fx-ring { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.15); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.65); } }
@keyframes fx-finale-ring { 0% { opacity: 1; transform: translate(-50%,-50%) scale(.25); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.9); } }
@keyframes fx-gold-flow { 50% { background-position: 50% 100%; filter: drop-shadow(0 4px 0 var(--gold-deep)) drop-shadow(0 0 36px rgb(var(--fx-rgb) / .8)); } }
@keyframes fx-final { 35% { transform: scale(1.14); filter: brightness(1.45) drop-shadow(0 0 45px rgb(var(--fx-rgb) / .9)); } 100% { transform: scale(1); } }
@keyframes fx-gain { 0% { opacity: 0; transform: translate(-50%,10px) scale(.5); } 25% { opacity: 1; transform: translate(-50%,0) scale(1.08); } 65% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-42px) scale(1); } }
@keyframes fx-symbol { 0% { transform: scale(1); opacity: 1; } 38% { transform: scale(1.16); opacity: 1; filter: brightness(1.8); } 100% { transform: scale(.4); opacity: 0; filter: brightness(2); } }
/* Sağ kenardaki menü ekran dışına taşmaz; AUTO daima durdurulabilir. */
.auto-menu { left: auto; right: 0; max-width: calc(100vw - 24px); }
.turbo.auto { display: inline-flex; align-items: center; gap: 6px; width: auto; min-width: 60px; padding: 0 12px; }
.turbo.auto .a-logo { display: grid; place-items: center; }
.turbo.auto .a-logo svg { width: 14px; height: 14px; }
.turbo.auto.on .a-logo { animation: spinRot 1.15s linear infinite; }
.turbo.auto .a-count { font-size: 11px; font-variant-numeric: tabular-nums; }
.turbo.auto .a-stop { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
@media (prefers-reduced-motion: reduce) { .celebration.show, .celebration-body, .celebration .cel-amount, .fx-gain, .cell.win .art, .cell.win .orb, .cell.win .scatter-wrap { animation: none; } .celebration.show::before, .celebration.show::after, .cel-flash, .fx-cell-ring, .fx-canvas { display: none; } }

/* kazanç anında tüm ızgara ve semboller ışıldar */
.fx-grid-flash {
  position: absolute; inset: 0; z-index: 4; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgb(var(--fx-gold-rgb) / .34), rgb(var(--fx-gold-rgb) / .12) 46%, transparent 74%);
  animation: fxGridFlash .78s ease-out both;
}
.fx-grid-flash::after {
  content: ''; position: absolute; inset: -40% -70%;
  background: linear-gradient(104deg, transparent 34%, rgba(255, 251, 220, .92) 50%, transparent 66%);
  animation: fxSheen .85s cubic-bezier(.2, .72, .3, 1) both;
}
@keyframes fxGridFlash { 0% { opacity: 0; } 16% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fxSheen { 0% { opacity: 0; transform: translateX(-62%); } 22% { opacity: 1; } 100% { opacity: 0; transform: translateX(62%); } }
@media (prefers-reduced-motion: reduce) { .fx-grid-flash { animation: none; opacity: .5; } .fx-grid-flash::after { display: none; } }