/* ================= BASE ================= */
:root {
  --bg: #0e0e10;
  --panel: #18181b;
  --panel2: #1f1f23;
  --border: #2f2f35;
  --text: #efeff1;
  --muted: #adadb8;
  --purple: #9147ff;
  --purple-h: #772ce8;
  --red: #eb0400;
  --gold: #ffcc33;
  --nav-h: 50px;
  --side-w: 240px;
  --chat-w: 340px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.btn { border: 0; border-radius: 4px; padding: 0 10px; height: 30px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn.small { height: 26px; font-size: 12px; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-h); }
.btn-gray { background: #2f2f35; color: var(--text); }
.btn-gray:hover { background: #3a3a40; }
.btn-gold { background: linear-gradient(#ffe066, #e6a400); color: #3a2400; font-weight: 800; }
.btn-red { background: #e91916; color: #fff; }
.btn-link { background: none; border: 0; color: var(--muted); font-size: 11px; text-decoration: underline; padding: 2px; }
.icon-btn { position: relative; background: none; border: 0; width: 34px; height: 34px; border-radius: 4px; font-size: 18px; color: var(--text); }
.icon-btn:hover { background: #2f2f35; }
.icon-btn.small { width: 28px; height: 28px; font-size: 14px; }
.badge { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 5px; min-width: 16px; line-height: 14px; }
.dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }

/* ================= NAV ================= */
#topnav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); background: var(--panel); border-bottom: 1px solid #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px; z-index: 10; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right { gap: 6px; }
.nav-link { font-size: 17px; font-weight: 600; padding: 0 10px; }
.nav-link:hover { color: #bf94ff; }
#logo { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 2px; height: 40px; position: relative; }
#logo-icon { width: 28px; height: 30px; display: inline-block; }
#logo-icon svg { width: 100%; height: 100%; }
#logo-text { font-weight: 900; font-size: 22px; letter-spacing: -1px; color: var(--purple); font-style: italic; transition: all .3s; white-space: nowrap; }
.nav-center { flex: 1; display: flex; justify-content: center; }
.search { display: flex; width: 380px; max-width: 40vw; }
.search-fake { flex: 1; background: #0e0e10; border: 1px solid #3a3a3d; border-right: 0; border-radius: 6px 0 0 6px; height: 36px; padding: 0 10px; line-height: 34px; color: var(--muted); cursor: text; }
.search-btn { width: 34px; height: 36px; background: #2f2f35; border: 0; border-radius: 0 6px 6px 0; font-size: 18px; }
.avatar-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: linear-gradient(135deg,#ff4fd8,#9147ff); position: relative; font-weight: 900; color: #fff; font-size: 14px; margin-left: 4px; }
.avatar-btn .online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #00db84; border: 2px solid var(--panel); }

/* welcome bubble */
#welcome-bubble { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: flex; align-items: center; gap: 18px; will-change: transform; }
.wb-circle { width: 150px; height: 150px; border-radius: 50%; flex: none; background: linear-gradient(135deg,#ff4fd8,#9147ff); display: flex; align-items: center; justify-content: center; font-size: 70px; font-weight: 900; color: #fff;
  box-shadow: 0 0 0 5px #0e0e10, 0 0 0 9px var(--purple), 0 0 60px rgba(145,71,255,.8); animation: wbRing 1s ease-out infinite; }
@keyframes wbRing { 0% { box-shadow: 0 0 0 5px #0e0e10, 0 0 0 9px var(--purple), 0 0 0 9px rgba(145,71,255,.7); } 100% { box-shadow: 0 0 0 5px #0e0e10, 0 0 0 9px var(--purple), 0 0 0 40px rgba(145,71,255,0); } }
.wb-text { background: rgba(24,24,27,.92); border-radius: 40px; padding: 12px 26px; box-shadow: 0 0 0 2px var(--purple), 0 8px 30px rgba(0,0,0,.6); transform-origin: left center; }
.wb-text small { display: block; font-size: 16px; color: var(--muted); font-weight: 700; }
.wb-text b { display: block; font-size: 36px; font-weight: 900; letter-spacing: -1px; background: linear-gradient(90deg,#bf94ff,#fff,#ff4fd8); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
#unmute-gate { position: absolute; inset: 0; z-index: 4; cursor: pointer; }
#unmute-btn { position: absolute; left: 16px; bottom: 60px; background: rgba(0,0,0,.8); border: 0; color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 15px; font-weight: 700; animation: pulse 1.4s infinite; }
#getbits-btn { transition: transform .2s; transform-origin: right center; margin-right: 6px; }

/* logo stages */
.logo-coin #logo-text { color: transparent; background: linear-gradient(90deg,#fff3b0,#ffcc33,#e6a400,#fff3b0); background-size: 200%; -webkit-background-clip: text; background-clip: text; animation: shimmer 1.5s linear infinite; }
.logo-gamble #logo-text { color: transparent; background: linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); background-size: 300%; -webkit-background-clip: text; background-clip: text; animation: shimmer 1s linear infinite; font-size: 24px; }
.logo-gamble #logo-icon { animation: spin 1.2s linear infinite; }
.logo-wobble #logo { animation: wobble .6s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.08); } }
.slot-logo { display: inline-flex; gap: 2px; background: #300; padding: 2px; border-radius: 4px; border: 2px solid var(--gold); }
.slot-logo span { width: 18px; height: 22px; background: #fff; color: #c00; font-weight: 900; text-align: center; line-height: 22px; border-radius: 2px; font-style: normal; font-size: 16px; -webkit-text-fill-color: #c00; }

/* ================= APP GRID ================= */
#app { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: var(--side-w) 1fr var(--chat-w); }

/* sidebar */
#sidebar { background: #1f1f23; overflow: hidden; padding: 4px 0; position: relative; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-weight: 700; font-size: 13px; }
.side-title { padding: 6px 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
#side-channels { list-style: none; margin: 0; padding: 0; }
#side-channels li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; cursor: pointer; }
#side-channels li:hover { background: #26262c; }
.sc-av { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.sc-info { flex: 1; min-width: 0; }
.sc-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-cat { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-v { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.sc-v::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sc-sponsored .sc-name { color: var(--gold); }
.sc-sponsored .sc-cat::before { content: "SPONSORED · "; color: var(--gold); font-weight: 700; }

/* main */
#main { overflow-y: auto; overflow-x: hidden; background: var(--bg); position: relative; }
#player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--nav-h) - 110px); background: #000; overflow: hidden; }
#player-box { position: absolute; inset: 0; transform-origin: 100% 100%; transition: transform 1.2s cubic-bezier(.5,0,.2,1), filter .6s; background: #000; }
#player, #player iframe { width: 100%; height: 100%; border: 0; display: block; }
#player-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
#player-overlay > * { pointer-events: auto; }
#player-overlay > .no-pe { pointer-events: none; }
#player-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(#2a1650, #000); text-align: center; }
.fb-icon { font-size: 60px; color: var(--gold); }
.fb-title { font-size: 22px; font-weight: 800; margin: 8px 0; }
.fb-sub { color: var(--muted); margin-bottom: 14px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(145,71,255,.45); } }

/* squeezeback: stream shrinks to the corner */
#player-wrap.squeeze #player-box { transform: scale(var(--sq, .55)); box-shadow: 0 0 0 3px var(--gold); }
#player-wrap.lowq #player-box { filter: blur(4px) saturate(.6) contrast(1.3); }
.squeeze-ad { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg,#1a0033,#4b0082 40%,#ff0080); display: flex; flex-direction: column; justify-content: flex-start; padding: 24px; overflow: hidden; }
.squeeze-ad .sq-brand { font-size: 44px; font-weight: 900; color: var(--gold); text-shadow: 3px 3px 0 #000; line-height: 1; }
.squeeze-ad .sq-line { font-size: 20px; font-weight: 800; margin-top: 8px; max-width: 45%; }
.squeeze-ad .sq-fine { position: absolute; left: 24px; bottom: 14px; font-size: 9px; color: rgba(255,255,255,.6); max-width: 40%; }
.squeeze-ad .sq-label { position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 3px; font-size: 11px; }
#player-wrap > .squeeze-ad { z-index: 0; }
#player-box { z-index: 1; }

/* ticker */
#ticker { height: 26px; background: linear-gradient(90deg,#2b0a00,#5c1900,#2b0a00); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); overflow: hidden; white-space: nowrap; position: relative; }
.ticker-track { display: inline-block; padding-left: 100%; animation: tick 40s linear infinite; line-height: 26px; color: var(--gold); font-weight: 700; }
.ticker-track span { margin-right: 60px; }
.ticker-track b { color: #7CFC00; }
@keyframes tick { to { transform: translateX(-100%); } }

/* channel info */
#channel-info { display: flex; gap: 12px; padding: 14px 20px; }
.ci-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--red); padding: 2px; position: relative; flex: none; background: radial-gradient(circle at 50% 40%, #9147ff, #3b1c78) content-box; }
.ci-live { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--red); font-size: 11px; font-weight: 800; padding: 0 5px; border-radius: 3px; }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 18px; font-weight: 800; }
.verified { color: var(--purple); font-size: 13px; }
.ci-title { font-weight: 600; margin: 4px 0; font-size: 14px; }
.ci-cat a { color: #bf94ff; font-size: 13px; }
.ci-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ci-tags span { background: #26262c; padding: 2px 8px; border-radius: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-buttons { display: flex; gap: 8px; }
.ci-stats { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.ci-stats .viewers { color: #ff8280; font-weight: 600; }
#about { margin: 10px 20px 40px; background: var(--panel); padding: 16px 20px; border-radius: 6px; }
#about h3 { margin: 0 0 8px; font-size: 18px; }
#about p { color: var(--muted); margin: 0 0 8px; }
#about .parody { font-size: 10px; opacity: .6; }

/* ================= CHAT ================= */
#chat { background: var(--panel); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; position: relative; overflow: hidden; }
.chat-head { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 12px; flex: none; }
#chat-pinned { flex: none; max-height: 55%; overflow: hidden; }
.pinned { margin: 6px 8px 0; border-radius: 6px; padding: 8px 10px; font-size: 13px; position: relative; color: #fff; animation: popIn .3s; }
.pinned .pin-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; opacity: .9; margin-bottom: 4px; }
.pinned .pin-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.8); border-radius: 0 0 0 6px; }
#chat-msgs { flex: 1; overflow: hidden; padding: 6px 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.msg { padding: 3px 20px 3px 12px; line-height: 20px; word-wrap: break-word; overflow-wrap: anywhere; }
.msg .u { font-weight: 700; }
.msg img.em { width: 28px; height: 28px; vertical-align: middle; margin: -4px 0; }
.msg img.em.big { width: 56px; height: 56px; margin: 0; }
.msg .bdg { display: inline-block; width: 18px; height: 18px; border-radius: 3px; vertical-align: middle; margin-right: 3px; font-size: 11px; line-height: 18px; text-align: center; font-weight: 800; color: #fff; }
.msg.sys { margin: 4px 0; border-left: 4px solid var(--purple); background: #26262c; padding: 8px 10px 8px 12px; }
.msg.sys.gold { border-left-color: var(--gold); background: #2e2610; }
.msg.sys.red { border-left-color: #ff3b3b; background: #2e1010; }
.msg.cheer .bits { color: #c9a0ff; font-weight: 800; }
.msg.gigant img.em { width: 112px; height: 112px; }
.msg.mine { background: #2a2140; }
#chat-mode { flex: none; background: #3a1b74; text-align: center; font-weight: 700; padding: 6px; font-size: 12px; }
.chat-bottom { flex: none; padding: 10px; border-top: 1px solid var(--border); }
#chat-input { width: 100%; height: 38px; background: #2f2f35; border: 2px solid transparent; border-radius: 6px; color: var(--text); padding: 0 10px; font: inherit; outline: none; }
#chat-input:focus { border-color: var(--purple); background: #000; }
.chat-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.chat-row-right { display: flex; align-items: center; gap: 4px; }
.points { display: flex; align-items: center; gap: 4px; font-weight: 600; position: relative; }
.pts-icon { color: var(--gold); font-size: 16px; }
#claim-btn { background: #00db84; border: 0; border-radius: 4px; height: 26px; width: 30px; font-size: 14px; position: relative; animation: bob 1s infinite; }
#claim-btn.loose { position: fixed; z-index: 75; transition: left .15s, top .15s; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* ================= LAYERS ================= */
#fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
#chaos { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#chaos > * { pointer-events: auto; }
#chaos > .no-pe { pointer-events: none; }
#toasts { position: fixed; right: calc(var(--chat-w) + 16px); bottom: 16px; z-index: 70; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; width: 340px; }
#toasts > * { pointer-events: auto; }
body.shake #app, body.shake #topnav { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translate(-8px,4px) rotate(-.5deg); } 40% { transform: translate(7px,-5px) rotate(.4deg); } 60% { transform: translate(-6px,-3px); } 80% { transform: translate(5px,5px); } }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(120%); } to { transform: none; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes rainbowBorder { 0% { border-color: #f00; } 33% { border-color: #0f0; } 66% { border-color: #00f; } 100% { border-color: #f00; } }

/* ================= POPUPS ================= */
.pop { position: absolute; background: var(--panel); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.7), 0 0 0 1px #3a3a40; animation: popIn .25s cubic-bezier(.3,1.6,.5,1); overflow: hidden; color: var(--text); max-width: 92vw; }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 14px; font-weight: 800; font-size: 14px; gap: 10px; }
.pop-body { padding: 10px 14px 14px; }
.pop-body p { margin: 0 0 10px; color: #dedee3; line-height: 1.4; }
.pop-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pop-actions .btn { flex: 1; min-width: 80px; }
.pop .x { flex: none; width: 26px; height: 26px; border: 0; background: none; color: var(--muted); font-size: 18px; border-radius: 4px; line-height: 1; padding: 0; position: relative; transition: left .12s, top .12s, transform .12s; }
.pop .x:hover { background: #3a3a40; color: #fff; }
.pop .x.tiny { width: 10px; height: 10px; font-size: 8px; opacity: .5; }
.pop .x.wait { width: auto; font-size: 11px; padding: 0 6px; color: #777; cursor: not-allowed; }
.pop .x.fake { color: transparent; }
.pop .x.fake::after { content: "✕"; color: var(--muted); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pop-scam { background: #fffb00; color: #d00; font-family: "Comic Sans MS", "Comic Neue", cursive; border: 4px dashed #f00; border-radius: 0; animation: popIn .25s, rainbowBorder 1s infinite; }
.pop-scam .pop-head { color: #d00; font-size: 18px; }
.pop-scam .pop-body p { color: #000; }
.pop-scam .x { color: #000; }
.pop-scam .big { font-size: 28px; font-weight: 900; color: #f00; text-align: center; animation: blink .6s infinite; }
.pop-gold { background: radial-gradient(circle at 50% 0%, #4a2d00, #160c00 70%); box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(255,204,51,.5), 0 8px 30px #000; }
.pop-gold .pop-head { color: var(--gold); }
.pop-sys { background: #f0f0f0; color: #000; border-radius: 2px; font-family: "Segoe UI", Tahoma, sans-serif; box-shadow: 0 0 0 1px #888, 6px 6px 20px rgba(0,0,0,.6); }
.pop-sys .pop-head { background: linear-gradient(#0a5ccf,#0842a0); color: #fff; padding: 6px 8px; font-size: 12px; font-weight: 600; }
.pop-sys .x { color: #fff; background: #c42b1c; border-radius: 2px; width: 22px; height: 18px; font-size: 12px; }
.pop-sys .pop-body p { color: #000; }
.pop-sys .btn { background: #e1e1e1; color: #000; border: 1px solid #adadad; border-radius: 2px; }
.pop-ad { background: #000; }
.pop-tag { position: absolute; top: 4px; left: 6px; font-size: 9px; background: var(--gold); color: #000; padding: 0 4px; border-radius: 2px; font-weight: 800; z-index: 2; }
.big-emoji { font-size: 54px; text-align: center; line-height: 1.1; }
.center { text-align: center; }
.huge { font-size: 26px; font-weight: 900; text-align: center; margin: 4px 0 10px; }
.fine { font-size: 9px; color: #888; margin-top: 8px; line-height: 1.2; }

/* toasts */
.toast { background: var(--panel); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 0 0 1px #3a3a40; padding: 12px 14px; display: flex; gap: 10px; align-items: center; animation: slideIn .3s; position: relative; }
.toast .t-ic { font-size: 26px; flex: none; }
.toast .t-body { flex: 1; font-size: 13px; line-height: 1.35; }
.toast .t-body b { display: block; font-size: 14px; }
.toast .x { position: absolute; top: 4px; right: 4px; border: 0; background: none; color: var(--muted); font-size: 14px; width: 20px; height: 20px; padding: 0; }
.toast.ach { background: linear-gradient(90deg,#1b3d00,#0f2200); box-shadow: 0 0 0 2px #7CFC00, 0 6px 24px #000; }
.toast.gold { background: linear-gradient(90deg,#3d2a00,#1a1200); box-shadow: 0 0 0 2px var(--gold), 0 6px 24px #000; }

/* banners */
.banner { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-weight: 700; animation: popIn .3s; }
.banner .x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 18px; }

/* cookie */
.cookie { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(900px, 90vw); background: #fff; color: #111; border-radius: 10px 10px 0 0; padding: 18px 22px; box-shadow: 0 -10px 40px rgba(0,0,0,.6); animation: none; }
.cookie h3 { margin: 0 0 6px; font-size: 18px; }
.cookie p { margin: 0 0 12px; color: #333; }
.cookie .row { display: flex; gap: 10px; align-items: center; }
.cookie .btn-accept { background: #1a73e8; color: #fff; height: 44px; font-size: 16px; padding: 0 40px; border: 0; border-radius: 6px; font-weight: 700; }
.cookie .toggles { max-height: 260px; overflow-y: auto; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 12px; }
.cookie .tg { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid #eee; font-size: 12px; }
.switch { width: 34px; height: 18px; border-radius: 9px; background: #1a73e8; position: relative; border: 0; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 18px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.off { background: #aaa; }
.switch.off::after { left: 2px; }

/* survey */
.nps { display: flex; gap: 3px; margin: 8px 0; }
.nps button { flex: 1; height: 30px; border: 1px solid #555; background: #26262c; border-radius: 3px; font-weight: 700; }
.nps button:hover { background: var(--purple); }

/* poll / prediction */
.poll-opt { position: relative; background: #26262c; border-radius: 4px; margin: 6px 0; padding: 8px 10px; cursor: pointer; overflow: hidden; font-weight: 600; }
.poll-opt .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(145,71,255,.45); transition: width .4s; }
.poll-opt span { position: relative; }
.poll-opt .pct { float: right; position: relative; }
.bet-row { display: flex; gap: 8px; margin: 6px 0; }
.bet-side { flex: 1; border-radius: 6px; padding: 8px; text-align: center; cursor: pointer; font-weight: 700; }
.bet-side .odds { font-size: 22px; font-weight: 900; transition: color .2s; }
.bet-blue { background: #1c4f8f; } .bet-pink { background: #8f1c6a; }
.odds.up { color: #7CFC00; } .odds.down { color: #ff5c5c; }

/* progress */
.bar { height: 10px; background: #000; border-radius: 5px; overflow: hidden; margin: 6px 0; box-shadow: inset 0 0 0 1px #444; }
.bar > div { height: 100%; background: linear-gradient(90deg,#9147ff,#ff4fd8); transition: width .3s; }
.bar.gold > div { background: linear-gradient(90deg,#e6a400,#fff066); }
.bar.green > div { background: linear-gradient(90deg,#00a85a,#7CFC00); }

/* ================= PIÑATA ================= */
.pinata-wrap { position: absolute; display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 6; }
.pinata-rope { width: 2px; background: #ccc; height: 60px; }
.pinata { cursor: pointer; pointer-events: auto; transform-origin: 50% -60px; animation: swing 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.pinata.hit { animation: hitShake .3s; }
@keyframes swing { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes hitShake { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-25deg) scale(.92); } 60% { transform: rotate(18deg) scale(1.05); } 100% { transform: rotate(0); } }
.pinata-panel { position: absolute; top: 64px; left: 10px; width: 300px; background: rgba(24,24,27,.95); border-radius: 8px; padding: 10px 12px; box-shadow: 0 0 0 2px #ff4fd8, 0 6px 20px #000; z-index: 7; }
.pinata-panel .pp-title { font-weight: 900; font-size: 15px; display: flex; justify-content: space-between; }
.pinata-panel .pp-timer { color: var(--gold); font-variant-numeric: tabular-nums; }
.pinata-panel .pp-last { font-size: 11px; color: var(--muted); min-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinata-panel .pp-btns { display: flex; gap: 6px; margin-top: 6px; }
.pinata-panel .pp-btns .btn { flex: 1; height: 26px; font-size: 11px; }
.hitword { position: absolute; font-weight: 900; pointer-events: none; z-index: 20; white-space: nowrap; text-transform: uppercase; animation: hitword 1.1s ease-out forwards; -webkit-text-stroke: 2px #000; paint-order: stroke fill; letter-spacing: 1px; }
@keyframes hitword { 0% { transform: translate(-50%,-50%) scale(.3) rotate(-10deg); opacity: 0; } 15% { transform: translate(-50%,-50%) scale(1.25) rotate(4deg); opacity: 1; } 30% { transform: translate(-50%,-50%) scale(1) rotate(-2deg); } 100% { transform: translate(-50%,-150%) scale(1); opacity: 0; } }

/* ================= HYPE TRAIN ================= */
.hype-stack { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 2px; z-index: 6; }
.hype { background: linear-gradient(90deg,#4b1ba8,#9147ff,#ff4fd8); padding: 6px 12px; display: flex; align-items: center; gap: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.6); animation: popIn .3s; }
.hype .h-lvl { font-size: 18px; white-space: nowrap; }
.hype .bar { flex: 1; height: 12px; margin: 0; }
.hype .bar > div { background: linear-gradient(90deg,#fff066,#fff); }
.hype .h-time { font-variant-numeric: tabular-nums; }
.hype .x { background: none; border: 0; color: #fff; font-size: 16px; }
.train { position: absolute; display: flex; align-items: flex-end; gap: 4px; z-index: 30; pointer-events: none; animation: trainGo 7s linear forwards; }
@keyframes trainGo { from { transform: translateX(110vw); } to { transform: translateX(-120%); } }
.car { width: 150px; height: 80px; border-radius: 10px 10px 4px 4px; position: relative; border: 3px solid #000; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; color: #fff; -webkit-text-stroke: 1px #000; }
.car::before, .car::after { content: ""; position: absolute; bottom: -18px; width: 30px; height: 30px; border-radius: 50%; background: #222; border: 4px solid #999; }
.car::before { left: 14px; } .car::after { right: 14px; }
.car.loco { width: 190px; height: 110px; background: linear-gradient(#9147ff,#4b1ba8); border-radius: 50px 10px 4px 4px; }
.chimney { position: absolute; top: -40px; left: 30px; width: 30px; height: 40px; background: #333; border: 3px solid #000; }

/* ================= ADS (player) ================= */
.midroll { position: absolute; inset: 0; z-index: 8; background: #000; display: flex; flex-direction: column; }
.midroll .mr-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; position: relative; overflow: hidden; }
.midroll .mr-brand { font-size: clamp(28px, 6vw, 72px); font-weight: 900; line-height: 1; text-shadow: 4px 4px 0 #000; }
.midroll .mr-tag { font-size: clamp(14px, 2vw, 24px); font-weight: 700; margin-top: 10px; max-width: 80%; }
.midroll .mr-fine { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 9px; opacity: .6; padding: 0 20px; }
.midroll .mr-bar { height: 44px; background: rgba(0,0,0,.85); display: flex; align-items: center; gap: 14px; padding: 0 14px; font-weight: 700; }
.midroll .mr-bar .grow { flex: 1; }
.midroll .mr-prog { position: absolute; left: 0; bottom: 44px; height: 4px; background: var(--gold); }
.adbadge { background: var(--gold); color: #000; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 900; }

/* ================= GAMBLING ================= */
.slot-side { margin: 10px; background: linear-gradient(#5a0000,#200); border: 3px solid var(--gold); border-radius: 10px; padding: 10px; text-align: center; box-shadow: 0 0 20px rgba(255,204,51,.3); animation: popIn .4s; }
.slot-side .s-title { color: var(--gold); font-weight: 900; font-size: 15px; animation: blink 1s infinite; }
.reels { display: flex; gap: 4px; justify-content: center; margin: 8px 0; }
.reel { width: 56px; height: 60px; background: #fff; border-radius: 4px; overflow: hidden; position: relative; box-shadow: inset 0 6px 8px rgba(0,0,0,.4), inset 0 -6px 8px rgba(0,0,0,.4); }
.reel .strip { position: absolute; left: 0; right: 0; top: 0; }
.reel .strip div { height: 60px; line-height: 60px; font-size: 34px; text-align: center; color: #000; }
.slot-side .s-msg { color: #fff; font-weight: 800; min-height: 18px; font-size: 12px; }
.slot-side .btn { width: 100%; margin-top: 6px; }
.wheel-box { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--gold); transition: transform 4.5s cubic-bezier(.15,.85,.25,1); box-shadow: 0 0 30px rgba(255,204,51,.6); }
.wheel-ptr { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 28px solid #fff; filter: drop-shadow(0 2px 2px #000); z-index: 2; }
.scratch-box { position: relative; width: 280px; height: 140px; margin: 0 auto; border-radius: 6px; overflow: hidden; background: #fff; color: #000; }
.scratch-box .under { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 26px; text-align: center; }
.scratch-box canvas { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.crate { font-size: 90px; text-align: center; animation: crateShake .15s infinite; }
@keyframes crateShake { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.05); } }
.rarity { font-size: 24px; font-weight: 900; text-align: center; letter-spacing: 2px; }
.crash-wrap { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.crash-wrap canvas { width: 100%; height: 100%; }
.crash-ui { position: absolute; right: 20px; bottom: 60px; pointer-events: auto; text-align: right; }
.crash-mult { font-size: 64px; font-weight: 900; color: #7CFC00; text-shadow: 3px 3px 0 #000; font-variant-numeric: tabular-nums; }
.crash-mult.dead { color: #ff3b3b; }
.points-expire { position: absolute; z-index: 9; background: #2e1010; border: 2px solid #ff3b3b; border-radius: 6px; padding: 6px 10px; font-weight: 800; color: #ff9b9b; }

/* ================= DIM / MISC ================= */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: popIn .2s; }
.giant { position: absolute; pointer-events: none; z-index: 40; font-weight: 900; }
.stream-hole-label { position: absolute; z-index: 3; color: var(--gold); font-weight: 900; font-size: 11px; background: #000; padding: 1px 5px; border-radius: 3px; pointer-events: none; }
.season { position: absolute; left: var(--side-w); right: var(--chat-w); bottom: 0; background: linear-gradient(90deg,#0b2b4a,#1c4f8f); padding: 6px 14px; display: flex; align-items: center; gap: 12px; font-weight: 800; box-shadow: 0 -4px 14px rgba(0,0,0,.6); }
.season .bar { flex: 1; margin: 0; }

/* ================= MOBILE WALL ================= */
#mobile-wall { display: none; position: fixed; inset: 0; z-index: 999; background: var(--purple); align-items: center; justify-content: center; text-align: center; padding: 20px; }
#mobile-wall .mw-logo { font-size: 48px; font-weight: 900; font-style: italic; }
#mobile-wall .btn { display: block; width: 100%; max-width: 300px; margin: 8px auto; height: 44px; background: #fff; color: var(--purple); }
@media (max-width: 1099px) { #mobile-wall { display: flex; } }
