/* =========================================================================
   Kumartesi Çekilişi — canlı sayfa
   Ana renk: #b8f516 (CMS'ten değiştirilebilir)
   ========================================================================= */
:root {
  --green: #b8f516;               /* CMS: vurgu (lime) */
  --gold: #f7c948;                /* CMS: para / ödül */
  --bg: #101700;                  /* CMS: zemin */
  --lime: var(--green);
  --lime-2: color-mix(in srgb, var(--green) 70%, #3d5705);
  --lime-hi: color-mix(in srgb, var(--green) 55%, #fff);
  --olive: color-mix(in srgb, var(--green) 35%, var(--bg));
  --deep: color-mix(in srgb, var(--green) 16%, var(--bg));
  --gold-hi: color-mix(in srgb, var(--gold) 50%, #fff);
  --gold-lo: color-mix(in srgb, var(--gold) 55%, #5a3500);
  --line: color-mix(in srgb, var(--green) 24%, transparent);
  --line-strong: color-mix(in srgb, var(--green) 50%, transparent);
  --glass: color-mix(in srgb, var(--bg) 72%, transparent);
  --text: #f3f8e8;
  --muted: #a3b38a;
  --radius: 18px;
  --row-h: 58px;
  --f-title: 'Titan One', 'Arial Black', system-ui, sans-serif;
  --f-num: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
img[src=""], img:not([src]) { display: none !important; }
.hidden { display: none !important; }
svg { flex: none; }

@keyframes spin { to { rotate: 360deg; } }
@keyframes blink { 50% { opacity: .45; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes shine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -130% 0; } }
@keyframes sweep { 0% { translate: -130% 0; } 55%, 100% { translate: 130% 0; } }

/* ---------- Arka plan ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-media { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% 30%, color-mix(in srgb, var(--green) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 55% at 0% 100%, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 55% at 100% 0%, color-mix(in srgb, var(--green) 12%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.016) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, var(--green)) 0%, var(--bg) 55%, color-mix(in srgb, var(--bg) 70%, #000) 100%);
}
.bg-media img, .bg-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-media.has-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(5,8,0,.6)); }
.bg-rays { position: absolute; left: 50%; top: 32%; width: 1400px; height: 1400px; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--green) 7%, transparent) 0 4deg, transparent 4deg 16deg);
  mask: radial-gradient(circle, #000 0 12%, transparent 58%); -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 58%);
  animation: spin 90s linear infinite; }
.bg-sparkles i { position: absolute; bottom: -10px; border-radius: 50%; background: var(--lime-hi);
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--green) 70%, transparent); animation: floatUp linear infinite; opacity: 0; }
.bg-sparkles i:nth-child(3n) { background: var(--gold-hi); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--gold) 70%, transparent); }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: .85; } 100% { transform: translateY(-110vh) scale(1.1); opacity: 0; } }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }

/* ---------- Yerleşim ---------- */
.layout { position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) minmax(280px, 330px);
  gap: 14px; height: 100vh; height: 100dvh; padding: 14px; }

.panel { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 70%, transparent), var(--glass));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.panel-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; text-align: left; cursor: default;
  background: linear-gradient(90deg, color-mix(in srgb, var(--olive) 70%, transparent), transparent 85%);
  border-bottom: 1px solid var(--line); }
.ph-icon { width: 20px; height: 20px; color: var(--lime); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--green) 60%, transparent)); }
.ph-title { font-weight: 900; letter-spacing: .6px; font-size: 14px; white-space: nowrap; }
.ph-count { margin-left: auto; min-width: 34px; padding: 3px 10px; border-radius: 99px; text-align: center; font-weight: 800; font-size: 12px; color: var(--bg); background: var(--lime); box-shadow: 0 0 12px color-mix(in srgb, var(--green) 50%, transparent); }
.chev { display: none; width: 9px; height: 9px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); rotate: 45deg; transition: rotate .25s; margin-left: 6px; }
.panel-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* ---------- Katılımcılar ---------- */
.search { padding: 10px 12px 6px; }
.search input { width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; font-size: 13px; transition: border-color .2s; }
.search input:focus { border-color: var(--lime); }
.vlist { position: relative; flex: 1; overflow-y: auto; min-height: 0; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: var(--olive) transparent; }
.vspacer { width: 1px; }
.vrows { position: absolute; left: 8px; right: 8px; top: 0; }
.prow { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.prow:nth-child(odd) { background: rgba(255,255,255,.03); }
.prow .n { min-width: 30px; font-family: var(--f-num); font-size: 13px; color: var(--muted); text-align: right; }
.prow .av, .msg .av, .r-card .av { border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.prow .av { width: 26px; height: 26px; font-size: 11px; }
.prow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Sahne ---------- */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }

.hero { position: relative; width: 100%; text-align: center; padding-top: 4px; }
.logo { max-height: 54px; max-width: 220px; object-fit: contain; display: block; margin: 0 auto 6px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.hero-side { position: absolute; bottom: -24px; height: 240px; max-width: 28%; object-fit: contain; object-position: bottom; z-index: -1; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); animation: bob 6s ease-in-out infinite; }
.hero-side.left { left: 0; } .hero-side.right { right: 0; animation-delay: -3s; }

.title { margin: 0; font-family: var(--f-title); font-weight: 400; line-height: .9; display: flex; flex-direction: column; align-items: center; letter-spacing: 1px; }
.title .t1, .title .t2 { display: block; position: relative; -webkit-background-clip: text; background-clip: text; color: transparent; }
.title .t1 { font-size: clamp(30px, min(4.6vw, 6vh), 64px);
  background-image: linear-gradient(180deg, #f6ffe0 0%, var(--lime-hi) 28%, var(--lime) 55%, var(--olive) 100%);
  filter: drop-shadow(0 2px 0 #1a2600) drop-shadow(0 4px 0 #0a0f00) drop-shadow(0 0 22px color-mix(in srgb, var(--green) 45%, transparent)); }
.title .t2 { font-size: clamp(40px, min(6.6vw, 8.6vh), 92px); margin-top: 2px;
  background-image: linear-gradient(180deg, #fffbe6 0%, var(--gold-hi) 25%, var(--gold) 52%, var(--gold-lo) 80%, var(--gold) 100%);
  filter: drop-shadow(0 2px 0 #4a2f00) drop-shadow(0 5px 0 #0a0f00) drop-shadow(0 10px 22px rgba(0,0,0,.7)); }
.title .t2::after { content: attr(data-text); position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s ease-in-out infinite; }
.subtitle { margin: 10px 0 0; font-weight: 800; font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 2px; text-transform: uppercase; color: var(--lime-hi); text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.subtitle:empty { display: none; }

/* Ödül merdiveni */
.ladder { display: flex; gap: 8px; justify-content: center; width: 100%; padding-top: 8px; }
.ladder:empty { display: none; }
.l-card { position: relative; flex: 0 1 150px; min-width: 0; padding: 10px 8px 9px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 85%, transparent), rgba(0,0,0,.55));
  border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.l-card .a { font-family: var(--f-num); font-weight: 700; font-size: clamp(16px, 1.7vw, 24px); color: var(--gold); line-height: 1.1; white-space: nowrap; }
.l-card .t { margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); }
.l-card.active { border-color: var(--lime); transform: translateY(-2px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 80%, transparent), color-mix(in srgb, var(--deep) 90%, #000));
  box-shadow: 0 0 0 1px var(--lime), 0 0 26px color-mix(in srgb, var(--green) 40%, transparent); }
.l-card.active .t { color: var(--lime-hi); }
.l-card.active::before { content: 'SIRADAKİ'; position: absolute; top: -9px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 99px; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: var(--bg); background: var(--lime); box-shadow: 0 0 12px var(--lime); white-space: nowrap; }
body:not(.phase-idle):not(.show-final) .l-card.active::before { content: 'CANLI'; background: #ff3b4a; color: #fff; box-shadow: 0 0 12px #ff3b4a; animation: blink 1.1s infinite; }
.l-card.done { opacity: .42; }
.l-card.done .a { text-decoration: line-through; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

/* ---------- Arena ---------- */
.arena { position: relative; width: 100%; flex: 1 0 auto; min-height: 480px; display: grid; place-items: center;
  border-radius: 26px; padding: 26px 18px 24px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, color-mix(in srgb, var(--green) 16%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--deep) 60%, rgba(0,0,0,.4)), rgba(0,0,0,.62));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 50px color-mix(in srgb, var(--green) 14%, transparent), inset 0 0 70px rgba(0,0,0,.6); }
.arena-lights { position: absolute; inset: 5px; border-radius: 22px; padding: 6px; pointer-events: none; opacity: .9;
  background: radial-gradient(circle, #fff 0 1.4px, var(--lime) 2px, transparent 3.2px) -7px -7px / 20px 20px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: chase 1.2s steps(2) infinite; }
@keyframes chase { to { background-position: 3px -7px; } }
body:is(.phase-spinning, .phase-mspin) .arena-lights { animation-duration: .25s; }

.sound-btn { position: absolute; right: 16px; bottom: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.55); font-size: 16px; cursor: pointer; }

.scene { grid-area: 1 / 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vh, 16px); text-align: center;
  opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .5s, transform .5s, visibility 0s .5s;
  position: absolute; left: 18px; right: 18px; top: 26px; }  /* gizli sahneler yer kaplamaz */
body.phase-idle .scene-idle,
body.phase-spinning .scene-draw,
body.phase-winner .scene-winner,
body.phase-multiplier .scene-multi,
body.phase-mspin .scene-multi,
body.phase-result:not(.show-final) .scene-multi,
body.phase-result.show-final .scene-final { position: relative; left: auto; right: auto; top: auto; opacity: 1; visibility: visible; transform: none; transition: opacity .6s, transform .6s; }

/* ---------- 1) Jackpot ---------- */
.center-image { max-height: min(160px, 18vh); max-width: 70%; object-fit: contain; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.jackpot { --s: min(300px, 72vw, 34vh); position: relative; width: var(--s); height: var(--s); display: grid; place-items: center; margin: 4px 0; }
.jp-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 38%, transparent), transparent 62%); filter: blur(6px); animation: glowPulse 3s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .55; transform: scale(.94); } }
.jp-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--lime), var(--gold), var(--olive), var(--lime-hi), var(--gold), var(--deep), var(--lime));
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 9px), #000 calc(50% - 8px));
  mask: radial-gradient(circle, transparent 0 calc(50% - 9px), #000 calc(50% - 8px));
  animation: spin 7s linear infinite; box-shadow: 0 0 30px color-mix(in srgb, var(--green) 50%, transparent); }
.jp-ticks { position: absolute; inset: 11px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.75) 0 1.2deg, transparent 1.2deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 5px), #000 calc(50% - 4px));
  mask: radial-gradient(circle, transparent 0 calc(50% - 5px), #000 calc(50% - 4px));
  animation: spin 30s linear infinite reverse; opacity: .6; }
.jp-orbit { position: absolute; inset: -6px; animation: spin 16s linear infinite; }
.jp-orbit i { position: absolute; inset: 0; rotate: var(--a); }
.jp-orbit i::before { content: ''; position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--lime) 40%, var(--olive) 100%); box-shadow: 0 0 12px var(--lime); }
.jp-orbit i:nth-child(even)::before { background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--gold) 40%, var(--gold-lo) 100%); box-shadow: 0 0 12px var(--gold); }
.jp-disc { position: absolute; inset: 22px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 8%;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--olive) 90%, #000), var(--bg) 72%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 40px rgba(0,0,0,.8), inset 0 2px 0 rgba(255,255,255,.08), 0 0 0 6px rgba(0,0,0,.4); }
.jp-label { display: flex; align-items: center; gap: 6px; font-size: clamp(9px, calc(var(--s) * .04), 12px); font-weight: 900; letter-spacing: 2.5px; color: var(--lime-hi); }
.jp-label svg { width: 16px; height: 16px; color: var(--gold); }
.jp-amount { font-family: var(--f-num); font-weight: 700; line-height: 1; white-space: nowrap; font-size: 56px;
  background: linear-gradient(180deg, #fffbe6, var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #3d2800) drop-shadow(0 0 18px color-mix(in srgb, var(--gold) 45%, transparent)); }
.jp-time { margin-top: 2px; padding: 4px 12px; border-radius: 99px; font-size: clamp(9px, calc(var(--s) * .038), 12px); font-weight: 900; letter-spacing: 1.2px; color: var(--bg); background: var(--lime); }

/* Geri sayım */
.cd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd.off { display: none; }
.cd-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.cd-row { display: flex; align-items: flex-start; gap: 6px; }
.cd-row > i { font-style: normal; font-family: var(--f-num); font-size: 30px; line-height: 50px; color: var(--lime); animation: blink 1s steps(1) infinite; }
.cd-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd-box b { position: relative; display: block; min-width: 64px; padding: 4px 8px; border-radius: 10px; overflow: hidden;
  font-family: var(--f-num); font-size: 36px; line-height: 42px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 70%, #000) 0 50%, var(--deep) 50% 100%);
  border: 1px solid var(--line-strong); box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.cd-box b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.cd-box span { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.live-soon { display: none; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 1.5px; font-size: clamp(13px, 1.5vw, 17px); color: var(--lime-hi); }
.live-soon i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b4a; box-shadow: 0 0 10px #ff3b4a; animation: blink 1s infinite; }
.live-soon.show { display: flex; }

/* Buton */
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(380px, 92%); height: 58px; padding: 0 24px; white-space: nowrap;
  border: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  font-family: var(--f-title); font-size: 19px; letter-spacing: 1.2px; color: #111800;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 45%, #fff) 0%, var(--lime) 42%, var(--lime-2) 75%, var(--olive) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.22), 0 10px 28px color-mix(in srgb, var(--green) 32%, transparent), 0 0 0 1px color-mix(in srgb, var(--green) 60%, #000);
  transition: transform .15s, box-shadow .2s, filter .2s; }
.cta svg { width: 24px; height: 24px; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); animation: sweep 3.2s ease-in-out infinite; pointer-events: none; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.22), 0 14px 34px color-mix(in srgb, var(--green) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--green) 60%, #000); }
.cta:active { transform: translateY(1px); }
.cta.wide { width: 100%; }
.join-info { font-size: 12.5px; font-weight: 700; color: var(--muted); max-width: 420px; line-height: 1.5; }
.join-info:empty { display: none; }

/* ---------- 2) İsim çarkı ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 99px; background: #ff3b4a; font-weight: 900; font-size: 11px; letter-spacing: 2px; box-shadow: 0 0 20px #ff3b4a88; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink .8s infinite; }
.draw-title { font-family: var(--f-title); font-size: clamp(22px, 3vw, 38px); color: var(--lime); text-shadow: 0 3px 0 #0a0f00, 0 0 22px color-mix(in srgb, var(--green) 55%, transparent); }
.draw-prize { margin-top: -8px; font-family: var(--f-num); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); color: var(--gold); }
.reel { position: relative; width: min(560px, 94%); height: calc(var(--row-h) * 5); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #060900, color-mix(in srgb, var(--deep) 80%, #000) 50%, #060900);
  border: 1px solid var(--line-strong); box-shadow: 0 0 0 5px rgba(0,0,0,.4), 0 0 40px color-mix(in srgb, var(--green) 22%, transparent), inset 0 0 40px #000; }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #000 0%, transparent 34%, transparent 66%, #000 100%); }
.reel-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-item { height: var(--row-h); display: flex; align-items: center; justify-content: center; padding: 0 60px; font-family: var(--f-num); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: 1px; color: #e3ecd3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-item.hit { color: var(--gold-hi); text-shadow: 0 0 18px var(--gold); }
.reel-frame { position: absolute; z-index: 1; left: 10px; right: 10px; top: calc(var(--row-h) * 2); height: var(--row-h); border-radius: 14px;
  border: 2px solid var(--lime); background: color-mix(in srgb, var(--green) 12%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--green) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--green) 25%, transparent); }
.reel-arrow { position: absolute; z-index: 3; top: calc(var(--row-h) * 2.5); translate: 0 -50%; width: 0; height: 0; border: 10px solid transparent; filter: drop-shadow(0 0 6px var(--lime)); }
.reel-arrow.l { left: 16px; border-left: 14px solid var(--lime); border-right: 0; }
.reel-arrow.r { right: 16px; border-right: 14px solid var(--lime); border-left: 0; }
.reel.landed .reel-frame { border-color: var(--gold); animation: framePulse .6s ease-in-out 4; }
@keyframes framePulse { 50% { box-shadow: 0 0 60px var(--gold), inset 0 0 40px color-mix(in srgb, var(--gold) 60%, transparent); } }
.draw-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.draw-count b { color: var(--lime); }

/* ---------- 3) Kazanan ---------- */
.rays { position: absolute; left: 50%; top: 50%; width: 1200px; height: 1200px; translate: -50% -50%; z-index: -1;
  background: repeating-conic-gradient(color-mix(in srgb, var(--gold) 20%, transparent) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 8%, transparent 52%); mask: radial-gradient(circle, #000 0 8%, transparent 52%); animation: spin 22s linear infinite; }
.w-crown { width: 70px; height: 70px; color: var(--gold); filter: drop-shadow(0 0 18px var(--gold)); animation: bob 2s ease-in-out infinite; }
.w-congrats { font-family: var(--f-title); font-size: clamp(30px, 4.4vw, 58px); color: var(--lime); letter-spacing: 2px; text-shadow: 0 3px 0 #0a0f00, 0 0 26px color-mix(in srgb, var(--green) 60%, transparent); }
.w-name { max-width: 100%; overflow-wrap: anywhere; font-family: var(--f-title); font-size: clamp(38px, 6.4vw, 84px); line-height: 1.05;
  background: linear-gradient(180deg, #fffbe6, var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #3d2800) drop-shadow(0 0 30px color-mix(in srgb, var(--gold) 55%, transparent)); animation: pop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.w-prize { font-family: var(--f-num); font-weight: 700; font-size: clamp(24px, 3.2vw, 40px); padding: 6px 26px; border-radius: 99px; background: rgba(0,0,0,.5); border: 1px solid var(--line-strong); }
.w-next { font-weight: 700; color: var(--muted); animation: blink 1.4s infinite; }
.w-next b { color: var(--lime); }

/* ---------- 4) Kazan & Katla çarkı ---------- */
.scene-multi { gap: clamp(8px, 1.3vh, 14px); }
.m-title { font-family: var(--f-title); font-size: clamp(32px, min(4.8vw, 6.4vh), 62px); line-height: 1;
  background: linear-gradient(180deg, #f6ffe0, var(--lime) 55%, var(--olive)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #0a0f00) drop-shadow(0 0 24px color-mix(in srgb, var(--green) 45%, transparent)); }
.m-sub { margin-top: 4px; font-weight: 800; font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.m-sub:empty { display: none; }
.m-winner { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px; border-radius: 99px; background: rgba(0,0,0,.5); border: 1px solid var(--line-strong); }
.m-winner svg { width: 18px; height: 18px; color: var(--gold); }
.m-winner b { font-size: 16px; }
.m-winner .sep { width: 1px; height: 18px; background: var(--line-strong); }
.m-winner em { font-style: normal; font-family: var(--f-num); font-size: 19px; font-weight: 700; color: var(--gold); }

.wheel-wrap { --w: min(430px, 86vw, 52vh); position: relative; width: var(--w); height: var(--w); margin-top: 10px; }
.wheel-halo { position: absolute; inset: -9%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 30%, transparent) 40%, transparent 70%); animation: glowPulse 2.6s ease-in-out infinite; }
body.phase-mspin .wheel-halo { animation-duration: .6s; }
.wheel { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.wheel .seg { stroke: #f7c948; stroke-width: .8; transition: filter .3s, opacity .3s; }
.wheel .lbl { font-family: var(--f-title); font-size: 19px; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.65); stroke-width: 3px; stroke-linejoin: round; text-anchor: middle; dominant-baseline: central; }
.wheel .lbl.dark { fill: #2a1a00; stroke: rgba(255,255,255,.35); }
.wheel.done .seg:not(.win) { opacity: .35; }
.wheel.done .lbl:not(.win) { opacity: .4; }
.wheel .seg.win { animation: segWin .55s ease-in-out infinite alternate; }
@keyframes segWin { to { filter: brightness(1.55) drop-shadow(0 0 6px #fff); } }
.wheel .bulb { fill: #fff6c8; filter: drop-shadow(0 0 2px #f7c948); animation: bulb 1s steps(1) infinite; }
.wheel .bulb:nth-child(even) { animation-delay: -.5s; }
@keyframes bulb { 50% { fill: #5a4300; filter: none; } }
body.phase-mspin .wheel .bulb { animation-duration: .2s; }
body.phase-mspin .wheel .bulb:nth-child(even) { animation-delay: -.1s; }
.wheel-pointer { position: absolute; left: 50%; top: -4%; width: 13%; translate: -50% 0; z-index: 2; transform-origin: 50% 20%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.wheel-pointer svg { display: block; width: 100%; height: auto; }
.wheel-pointer.kick { animation: kick .14s ease-out; }
@keyframes kick { 40% { rotate: -16deg; } }

.m-status { min-height: 20px; font-weight: 800; letter-spacing: 1px; font-size: clamp(13px, 1.4vw, 16px); color: var(--lime-hi); }
body.phase-multiplier .m-status { animation: blink 1.2s infinite; }
.m-total { display: none; flex-direction: column; align-items: center; padding: 8px 32px 10px; border-radius: 18px; background: rgba(0,0,0,.6); border: 2px solid var(--gold); box-shadow: 0 0 30px color-mix(in srgb, var(--gold) 40%, transparent); }
body.phase-result .m-total { display: flex; animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.m-total span { font-size: 11px; font-weight: 900; letter-spacing: 2.5px; color: var(--muted); }
.m-total b { font-family: var(--f-num); font-size: clamp(36px, 5vw, 62px); line-height: 1.05; color: var(--gold); text-shadow: 0 3px 0 #3d2800, 0 0 24px color-mix(in srgb, var(--gold) 70%, transparent); }
.m-total.zero { border-color: #ff3b4a; box-shadow: 0 0 30px #ff3b4a55; }
.m-total.zero b { color: #ff6b77; text-shadow: 0 3px 0 #400; }

/* ---------- 5) Sonuç + sonraki çekiliş ---------- */
.scene-final { gap: clamp(10px, 1.8vh, 18px); }
.f-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; font-weight: 900; font-size: 12px; letter-spacing: 2px; color: var(--bg); background: var(--lime); box-shadow: 0 0 20px color-mix(in srgb, var(--green) 50%, transparent); }
.f-badge svg { width: 16px; height: 16px; }
.f-card { position: relative; width: min(520px, 100%); padding: 44px 20px 18px; margin-top: 34px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 55%, rgba(0,0,0,.5)), rgba(0,0,0,.65));
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--gold) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.08); }
.f-avatar { position: absolute; left: 50%; top: 0; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-title); font-size: 34px; color: #2a1a00; background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold) 50%, var(--gold-lo));
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--gold), 0 0 30px color-mix(in srgb, var(--gold) 60%, transparent); }
.f-crown { position: absolute; top: -26px; width: 38px; height: 38px; color: var(--gold); filter: drop-shadow(0 0 10px var(--gold)); }
.f-label { font-size: 11px; font-weight: 900; letter-spacing: 3px; color: var(--muted); }
.f-name { margin: 2px 0 14px; font-family: var(--f-title); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fffbe6, var(--gold) 60%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #3d2800); }
.f-stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.f-stats div { padding: 8px 6px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.f-stats span { display: block; font-size: 9.5px; font-weight: 900; letter-spacing: 1.5px; color: var(--muted); }
.f-stats b { display: block; font-family: var(--f-num); font-size: clamp(18px, 2vw, 24px); font-weight: 700; white-space: nowrap; }
.f-stats .hl { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, rgba(0,0,0,.4)); }
.f-stats .hl b { color: var(--gold); }
.f-next { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(520px, 100%); padding: 14px 16px 16px; border-radius: 20px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.f-next-title { font-size: 12px; font-weight: 900; letter-spacing: 2px; color: var(--lime-hi); }
.f-next-title span { color: var(--text); }
.f-next-prize { margin-top: -6px; font-family: var(--f-num); font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1; color: var(--gold); text-shadow: 0 0 20px color-mix(in srgb, var(--gold) 45%, transparent); }
.f-next-prize:empty { display: none; }
.f-soon { font-weight: 700; color: var(--muted); font-size: 13px; }

body:not(.phase-idle):not(.show-final) .ladder { display: none; }
body:is(.phase-multiplier, .phase-mspin, .phase-result):not(.show-final) .hero { display: none; }

/* ---------- Son kazananlar ---------- */
.recent { width: 100%; padding: 12px 14px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.recent.hidden { display: none; }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 900; font-size: 13px; letter-spacing: .8px; }
.sec-head svg { width: 18px; height: 18px; color: var(--gold); }
.recent-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--olive) transparent; }
.r-card { flex: 0 0 auto; min-width: 190px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--deep) 90%, transparent), rgba(0,0,0,.6)); border: 1px solid var(--line); }
.r-card:first-child { border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--gold) 25%, transparent); }
.r-card .av { width: 38px; height: 38px; font-size: 15px; box-shadow: 0 0 0 2px var(--lime); }
.r-card .nm { font-weight: 700; font-size: 13px; }
.r-card .am { font-family: var(--f-num); font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.r-card .mt { font-size: 11px; color: var(--muted); font-weight: 600; }
.r-card .mt b { color: var(--lime); }
.recent-empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }

/* ---------- Sohbet ---------- */
.online { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.6s infinite; }
.online b { color: var(--text); }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--olive) transparent; }
.msg { display: flex; gap: 10px; padding: 7px 8px; border-radius: 12px; animation: msgIn .3s ease-out; }
.msg:hover { background: rgba(255,255,255,.035); }
@keyframes msgIn { from { opacity: 0; translate: 0 8px; } }
.msg .av { width: 32px; height: 32px; font-size: 13px; }
.msg .bd { min-width: 0; flex: 1; }
.msg .hd { display: flex; align-items: baseline; gap: 8px; }
.msg .nk { font-weight: 800; font-size: 13px; }
.msg .tm { margin-left: auto; font-size: 10px; color: var(--muted); }
.msg .tx { font-size: 13px; line-height: 1.45; color: #dfe8cf; overflow-wrap: anywhere; }
.msg.admin { background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid var(--line); }
.msg.admin .nk { color: var(--lime); }
.msg.admin .av { background: linear-gradient(180deg, var(--lime-hi), var(--olive)) !important; color: var(--bg); }
.badge { font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: var(--lime); color: var(--bg); letter-spacing: .5px; }
.msg.me .nk { color: var(--gold); }
.chat-closed { display: none; margin: 0 12px 10px; padding: 10px; text-align: center; border-radius: 12px; font-weight: 700; font-size: 13px; background: rgba(255, 59, 74, .12); border: 1px solid rgba(255, 59, 74, .45); }
body.chat-off .chat-closed { display: block; }
body.chat-off .chat-form, body.chat-off .chat-meta { display: none !important; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none; font-size: 14px; }
.chat-form input:focus { border-color: var(--lime); }
.send { display: grid; place-items: center; min-width: 46px; padding: 0 12px; border: 0; border-radius: 12px; font-weight: 900; cursor: pointer; color: var(--bg);
  background: linear-gradient(180deg, var(--lime-hi), var(--lime) 50%, var(--lime-2)); box-shadow: 0 0 14px color-mix(in srgb, var(--green) 35%, transparent); }
.send svg { width: 18px; height: 18px; }
.send:active { transform: scale(.95); }
.chat-meta { padding: 0 14px 8px; font-size: 11px; color: var(--muted); }
.chat-meta button { background: none; border: 0; color: var(--lime); cursor: pointer; padding: 0; text-decoration: underline; font-size: 11px; }
.chat-err { padding: 0 14px; font-size: 12px; font-weight: 600; color: #ff7d88; }
.chat-err:not(:empty) { padding-bottom: 8px; }

/* ---------- Kurallar penceresi ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4,6,0,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 28px 22px 20px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 60%, var(--bg)), var(--bg));
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 40px color-mix(in srgb, var(--green) 18%, transparent);
  transform: translateY(14px) scale(.97); transition: transform .3s; }
.modal-card > * { flex-shrink: 0; }
.modal.open .modal-card { transform: none; }
.modal-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.35); cursor: pointer; }
.modal-icon { align-self: center; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--bg); background: var(--lime); box-shadow: 0 0 24px color-mix(in srgb, var(--green) 55%, transparent); }
.modal-icon svg { width: 30px; height: 30px; }
.modal-title { font-family: var(--f-title); font-size: 26px; color: var(--text); letter-spacing: 1px; }
.rules-list { margin: 6px 0 8px; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 8px; text-align: left; }
.rules-list li { counter-increment: r; position: relative; padding: 9px 12px 9px 44px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: #e3ecd3; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.04); }
.rules-list li::before { content: counter(r); position: absolute; left: 10px; top: 8px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-num); font-weight: 700; font-size: 13px; color: var(--bg); background: var(--lime); }
.rules-card #rulesOk { position: sticky; bottom: 0; box-shadow: 0 -12px 24px color-mix(in srgb, var(--bg) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.22); }

.conn { position: fixed; left: 50%; top: 10px; translate: -50% 0; z-index: 95; padding: 6px 14px; border-radius: 99px; background: #ff3b4a; font-size: 12px; font-weight: 700; display: none; }
body.offline .conn { display: block; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1280px) {
  .layout { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(260px, 300px); gap: 10px; padding: 10px; }
  .hero-side { height: 190px; }
}
@media (max-width: 1000px) {
  :root { --row-h: 50px; }
  .layout { display: flex; flex-direction: column; height: auto; padding: 10px; gap: 12px; }
  .stage { order: 1; overflow: visible; }
  .participants { order: 2; } .chat { order: 3; }
  .panel-head { cursor: pointer; }
  .chev { display: block; rotate: -45deg; }
  .collapsible.open .chev { rotate: 45deg; }
  .collapsible:not(.open) .panel-body { display: none; }
  .collapsible:not(.open) .panel-head { border-bottom: 0; }
  .participants .vlist { height: 320px; flex: none; }
  .chat .msgs { height: 360px; flex: none; }
  .arena { min-height: 0; padding: 24px 12px 22px; }
  .scene { left: 12px; right: 12px; top: 24px; }
  .jackpot { --s: min(280px, 74vw); }
  .wheel-wrap { --w: min(400px, 86vw); }
  .hero-side { height: 140px; bottom: -8px; max-width: 24%; }
}
@media (max-width: 560px) {
  .layout { padding: 8px; gap: 10px; }
  .ladder { justify-content: flex-start; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none; }
  .l-card { flex: 0 0 auto; min-width: 92px; }
  .hero-side { display: none; }
  .cd-box b { min-width: 54px; font-size: 30px; line-height: 36px; }
  .cd-row > i { line-height: 44px; }
  .reel-item { padding: 0 40px; }
  .cta { height: 54px; font-size: 16px; padding: 0 16px; gap: 10px; }
  .f-stats { grid-template-columns: 1fr 1fr; }
  .f-stats .hl { grid-column: 1 / -1; }
  .r-card { min-width: 170px; }
  .sound-btn { right: 10px; top: 10px; bottom: auto; width: 32px; height: 32px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-rays, .bg-sparkles, .rays, .jp-ring, .jp-ticks, .jp-orbit, .arena-lights, .cta::after { animation: none !important; }
}
