:root {
  --bg: #0d0c16;
  --bg2: #12111d;
  --panel: #181726;
  --panel2: #1f1d31;
  --panel3: #29273f;
  --line: #24223a;
  --line2: #33304f;
  --text: #eeedf6;
  --muted: #8e8aa8;
  --dim: #5e5a7a;
  --blue: #8b5cf6;
  --blue-d: #6d3ee6;
  --accent: #8b5cf6;
  --orange: #ff7a1a;
  --orange-d: #e05e00;
  --gold: #f5b92a;
  --gold-d: #c98a0c;
  --green: #2fd36e;
  --red: #ff3b4e;
  --purple: #a66bff;
  --pink: #ec4899;
  --r-common: #9ca3af;
  --r-uncommon: #3b82f6;
  --r-rare: #8b5cf6;
  --r-epic: #ec4899;
  --r-legendary: #f59e0b;
  --r-mythic: #ef4444;
  --display: 'Rubik', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --side-w: 236px;
  --chat-w: 320px;
  --top-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2d36; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 9px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  background: var(--panel3); color: var(--text);
  transition: filter .15s, transform .08s, background .15s;
  user-select: none;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn-primary { background: linear-gradient(180deg, #a07bff, var(--accent)); box-shadow: 0 4px 16px rgba(139, 92, 246, .4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-orange { background: linear-gradient(180deg, #ff9a4a, var(--orange)); box-shadow: 0 4px 16px rgba(255, 122, 26, .4), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-gold { background: linear-gradient(180deg, #ffd25e, var(--gold)); color: #2a1a00; box-shadow: 0 4px 14px rgba(245, 185, 42, .3), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-green { background: linear-gradient(180deg, #45e383, var(--green)); color: #03250f; box-shadow: 0 4px 14px rgba(47, 211, 110, .3), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-red { background: linear-gradient(180deg, #ff6b79, var(--red)); box-shadow: 0 4px 16px rgba(255, 59, 78, .45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: transparent; border: 1px solid var(--line2); }
.btn-lg { height: 50px; font-size: 16px; padding: 0 26px; border-radius: 11px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: var(--panel2); border: 1px solid var(--line); font-size: 17px;
}
.icon-btn:hover { background: var(--panel3); }
.ping { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--panel2); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.35); } }
.dot-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); font-size: 11px; font-weight: 800; color: #fff; margin-left: 4px; }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }
.seg > button { flex: 1; height: 34px; border-radius: 7px; font-weight: 700; color: var(--muted); }
.seg > button.active { background: var(--panel3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 9px;
  background: var(--bg2); border: 1px solid var(--line2); outline: none; font-weight: 600;
}
.field textarea { height: 80px; padding: 10px 12px; resize: none; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-weight: 600; font-size: 13px; }

/* ------------------------------ Logo ------------------------------ */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.logo-mark {
  width: 30px; height: 34px; display: inline-block;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #5aa6ff, var(--blue) 55%, #0b3f99);
  position: relative;
}
.logo-mark::after { content: '⚡'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-style: normal; filter: grayscale(1) brightness(5); }
.logo.big { font-size: 40px; justify-content: center; }
.logo.big .logo-mark { width: 44px; height: 50px; }
.logo.big .logo-mark::after { font-size: 22px; }

/* ------------------------------ Auth ------------------------------ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(30,123,255,.25), transparent 50%), radial-gradient(ellipse at 80% 90%, rgba(155,92,255,.2), transparent 50%), var(--bg); }
.auth-card { width: min(420px, 100%); display: grid; gap: 18px; padding: 34px; background: rgba(23,24,30,.92); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative; z-index: 1; backdrop-filter: blur(10px); }
.auth-card form { display: grid; gap: 14px; }
.auth-sub, .auth-foot { margin: 0; text-align: center; color: var(--muted); }
.auth-foot b { color: var(--green); }
.float { position: absolute; font-size: 80px; opacity: .14; animation: float 9s ease-in-out infinite; }
.f1 { top: 10%; left: 12%; } .f2 { top: 70%; left: 8%; animation-delay: -2s; } .f3 { top: 18%; right: 12%; animation-delay: -4s; } .f4 { bottom: 10%; right: 18%; animation-delay: -6s; } .f5 { top: 45%; left: 45%; animation-delay: -3s; opacity: .06; font-size: 140px; }
@keyframes float { 50% { transform: translateY(-24px) rotate(8deg); } }

/* ------------------------------ App shell ------------------------------ */
#app {
  height: 100vh; display: grid;
  grid-template-columns: var(--side-w) 1fr var(--chat-w);
  grid-template-rows: var(--top-h) 1fr;
  grid-template-areas: "top top top" "side main chat";
  background: radial-gradient(ellipse at 50% -10%, rgba(139,92,246,.12), transparent 50%), var(--bg);
}
.sidenav { grid-area: side; display: flex; flex-direction: column; gap: 12px; padding: 14px; overflow-y: auto; background: var(--bg2); border-right: 1px solid var(--line); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick a { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--panel2); border: 1px solid var(--line); transition: transform .15s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--line2); }
.side-search { height: 38px; padding: 0 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); outline: none; width: 100%; }
.side-group { display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.side-group h5 { margin: 4px 8px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }
.side-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; font-weight: 600; color: #c9c6dc; }
.side-link i { font-style: normal; width: 22px; text-align: center; font-size: 16px; }
.side-link:hover { background: var(--panel2); color: #fff; }
.side-link.active { background: linear-gradient(90deg, rgba(139,92,246,.28), rgba(139,92,246,.05)); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side-link .live { margin-left: auto; font-size: 9px; font-weight: 800; background: var(--red); color: #fff; padding: 2px 5px; border-radius: 4px; }
.side-link .cnt { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.side-promo { margin-top: auto; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), #ff4d8d); display: grid; gap: 6px; cursor: pointer; }
.side-promo b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 18px; }
.side-promo small { font-weight: 600; opacity: .9; }
.topbar {
  grid-area: top; display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: var(--bg2); border-bottom: 1px solid var(--line);
}
.topbar .logo { width: calc(var(--side-w) - 34px); flex: none; }
.nav { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 4px; }
.nav a { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 8px; font-weight: 600; color: #c8ccd6; white-space: nowrap; }
.nav a i { font-style: normal; font-size: 15px; }
.nav a:hover { background: var(--panel2); color: #fff; }
.nav a.active { background: var(--panel3); color: #fff; }
.nav-live { position: relative; }
.nav-live::after { content: 'LIVE'; font-size: 9px; font-weight: 800; background: var(--red); color: #fff; padding: 1px 4px; border-radius: 4px; margin-left: 2px; }
.wallet { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.balance-pill, .power-pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-weight: 800; font-size: 15px; }
.coin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #3a2600; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 60%, var(--gold-d)); box-shadow: 0 0 10px rgba(245,185,42,.4); }
#balance-text .cents { color: var(--muted); }
.balance-pill.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.08); color: var(--green); } }
.power-pill { gap: 6px; font-size: 13px; cursor: help; }
.bolt { filter: drop-shadow(0 0 6px rgba(245,185,42,.6)); }
.power-bar { width: 60px; height: 6px; border-radius: 3px; background: var(--panel3); overflow: hidden; }
#power-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), #ffe08a); transition: width .4s; }
.power-pill.low #power-fill { background: var(--red); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.me-chip { position: relative; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.me-name { font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.caret { color: var(--muted); font-size: 11px; }
.menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: 210px; padding: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 11px; box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 30; }
.me-chip:focus-within .menu, .me-chip.open .menu { display: grid; }
.menu a, .menu button { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 7px; font-weight: 600; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--panel3); }

/* ------------------------------ Avatars ------------------------------ */
.av {
  --rc: var(--r-common); --s: 36px;
  width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: calc(var(--s) * .56); line-height: 1;
  background: linear-gradient(145deg, var(--a1), var(--a2));
  box-shadow: 0 0 0 2px var(--rc), inset 0 -4px 8px rgba(0,0,0,.25);
  position: relative;
}
.av.sq { border-radius: 22%; }
.av.glow { box-shadow: 0 0 0 2px var(--rc), 0 0 18px var(--rc); }
.r-common { --rc: var(--r-common); } .r-uncommon { --rc: var(--r-uncommon); } .r-rare { --rc: var(--r-rare); }
.r-epic { --rc: var(--r-epic); } .r-legendary { --rc: var(--r-legendary); } .r-mythic { --rc: var(--r-mythic); }
.rarity-text { color: var(--rc); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .6px; }
.lvl { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 5px; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 11px; color: #062012; background: var(--lc, #2fd36e); }
.lvl.t1 { --lc: #8a8f9c; color: #fff; } .lvl.t2 { --lc: #2fd36e; } .lvl.t3 { --lc: #3b82f6; color: #fff; } .lvl.t4 { --lc: #9b5cff; color: #fff; } .lvl.t5 { --lc: #f5b92a; } .lvl.t6 { --lc: #ff4d5e; color: #fff; }
.uname-link { font-weight: 700; cursor: pointer; }
.uname-link:hover { text-decoration: underline; }
.gm-tag { font-size: 10px; font-weight: 800; color: #2a1a00; background: var(--gold); padding: 1px 5px; border-radius: 4px; }

/* ------------------------------ Chat ------------------------------ */
.chat { grid-area: chat; display: flex; flex-direction: column; min-height: 0; background: var(--bg2); border-left: 1px solid var(--line); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; color: var(--muted); font-weight: 600; }
.chat-head b { color: var(--text); }
.chat-title { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.chat-pool { margin: 0 12px 6px; }
.pool-card { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, #1d4fd8, #1e7bff 60%, #3b9bff); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); cursor: pointer; overflow: hidden; position: relative; }
.pool-card::after { content: '🎁'; position: absolute; right: -6px; bottom: -14px; font-size: 64px; opacity: .2; transform: rotate(-15deg); }
.pool-card h4 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 20px; letter-spacing: .3px; }
.pool-card small { color: #cfe0ff; font-weight: 600; }
.pool-amt { background: rgba(0,0,0,.3); padding: 6px 10px; border-radius: 8px; font-weight: 800; display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.chat-list { flex: 1; overflow-y: auto; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 10px; padding: 7px 6px; border-radius: 8px; position: relative; }
.msg:hover { background: rgba(255,255,255,.025); }
.msg .body { min-width: 0; flex: 1; }
.msg .who { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.msg .txt { color: #c9ccd5; font-size: 13.5px; line-height: 1.4; word-wrap: break-word; }
.msg .del { position: absolute; right: 4px; top: 4px; display: none; color: var(--muted); font-size: 12px; padding: 2px 6px; border-radius: 5px; background: var(--panel3); }
.msg:hover .del { display: block; }
.sys { margin: 4px 0; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #d8dbe3; }
.sys.win { background: linear-gradient(90deg, rgba(47,211,110,.14), var(--panel2)); border-color: rgba(47,211,110,.25); }
.sys.drop { background: linear-gradient(90deg, rgba(245,185,42,.14), var(--panel2)); border-color: rgba(245,185,42,.25); }
.sys .ico { font-size: 20px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; height: 42px; padding: 0 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line2); outline: none; }
.chat-form input:focus { border-color: var(--blue); }
.chat-form .send { width: 42px; padding: 0; height: 42px; font-size: 16px; }

/* ------------------------------ Main ------------------------------ */
.main { grid-area: main; overflow-y: auto; padding: 22px 28px 40px; min-width: 0; }
.page { max-width: 1320px; margin: 0 auto; display: grid; gap: 22px; animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: center; gap: 14px; }
.page-head h1 { margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 26px; }
.page-head .sub { color: var(--muted); font-weight: 500; }
.page-head .spacer { flex: 1; }
.back { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); font-size: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 19px; font-weight: 800; }
.section-title i { font-style: normal; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px; text-align: center; font-weight: 500; }
.money { font-weight: 800; white-space: nowrap; }
.money .cents { color: var(--muted); font-weight: 700; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* Live drops ticker */
.ticker { display: flex; gap: 10px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.drop-card { flex: none; width: 236px; height: 74px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 11px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 18%, var(--panel)) 0%, var(--panel) 70%); border: 1px solid var(--line); border-left: 3px solid var(--rc); animation: slidein .45s ease-out; }
.drop-card .nm { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.drop-card .by { font-size: 11px; color: var(--dim); }
@keyframes slidein { from { opacity: 0; transform: translateX(-30px); } }

/* Hero */
.hero { position: relative; min-height: 300px; border-radius: 18px; overflow: hidden; padding: 38px 560px 38px 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 75% 40%, rgba(120,190,255,.5), transparent 45%), linear-gradient(120deg, #0f3fbf, #1e7bff 55%, #33a1ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 60px); }
.hero h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 56px; line-height: .95; text-shadow: 0 4px 0 rgba(0,0,0,.18); position: relative; }
.hero h2 .coinbig { display: inline-grid; place-items: center; width: 54px; height: 54px; vertical-align: middle; margin-right: 10px; border-radius: 50%; font-size: 26px; color: #4a3000; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 60%, var(--gold-d)); box-shadow: 0 6px 0 var(--gold-d); font-style: normal; }
.hero p { margin: 0; font-size: 17px; font-weight: 600; color: #dce9ff; position: relative; }
.hero .btn { align-self: flex-start; position: relative; background: #fff; color: var(--blue-d); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.podium { position: absolute; right: 40px; bottom: 0; display: flex; align-items: flex-end; gap: 18px; }
.pod { display: grid; justify-items: center; gap: 8px; animation: rise .6s cubic-bezier(.2,1.4,.4,1) both; }
.pod:nth-child(1) { animation-delay: .1s; } .pod:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(80px); opacity: 0; } }
.shield { width: 150px; display: grid; justify-items: center; gap: 6px; padding: 18px 10px 22px; clip-path: polygon(50% 0, 100% 14%, 100% 78%, 50% 100%, 0 78%, 0 14%); background: linear-gradient(170deg, var(--p1), var(--p2)); box-shadow: inset 0 0 0 6px rgba(255,255,255,.25); }
.pod.p1 .shield { --p1: #ffe58a; --p2: #f0a500; width: 176px; padding-top: 24px; padding-bottom: 34px; }
.pod.p2 .shield { --p1: #cfe6ff; --p2: #6aaeff; }
.pod.p3 .shield { --p1: #ffc6a8; --p2: #e2724a; }
.shield .place { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 44px; line-height: 1; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.shield .pname { font-weight: 800; color: #1a1a1a; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shield .pval { font-size: 12px; font-weight: 800; color: rgba(0,0,0,.6); }

/* Game tiles */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: 16px; padding: 20px 22px; cursor: pointer;
  background: linear-gradient(140deg, var(--t1), var(--t2)); border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.12); }
.tile h3 { margin: 0; font-size: 22px; font-weight: 800; position: relative; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.tile .tag { align-self: flex-start; position: relative; z-index: 2; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.tile .tag.live { background: var(--red); }
.tile .art { position: absolute; right: -10px; bottom: -20px; font-size: 150px; line-height: 1; z-index: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); transition: transform .35s; transform: rotate(-8deg); }
.tile:hover .art { transform: rotate(0deg) scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 80% 70%, rgba(255,255,255,.18), transparent 50%); }
.tile.big { grid-column: span 4; grid-row: span 2; }
.tile.big .art { font-size: 230px; }
.tile.wide { grid-column: span 4; }
.tile.med { grid-column: span 4; }
.tile.sm { grid-column: span 3; }
.tile .players { position: relative; z-index: 2; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); display: flex; gap: 6px; align-items: center; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Common game layout */
.game-layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
.side { display: grid; gap: 14px; }
.stage { min-height: 520px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1d2130, var(--panel) 70%); }
.bet-input { display: flex; align-items: center; height: 44px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 9px; padding-left: 10px; gap: 6px; }
.bet-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-weight: 800; font-size: 15px; }
.bet-input .adj { height: 32px; min-width: 38px; margin-right: 6px; border-radius: 7px; background: var(--panel3); font-weight: 800; font-size: 12px; }
.bet-input .adj + .adj { margin-left: -2px; }
.stat-row { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-row b { color: var(--text); }
.result-pop { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 20; padding: 18px 30px; border-radius: 16px; text-align: center; background: rgba(14,15,19,.92); border: 2px solid var(--green); box-shadow: 0 0 40px rgba(47,211,110,.35); animation: pop .4s cubic-bezier(.2,1.6,.4,1); pointer-events: none; }
.result-pop.lose { border-color: var(--red); box-shadow: 0 0 40px rgba(255,77,94,.3); }
.result-pop .big { font-family: var(--display); font-weight: 900; font-size: 34px; }
.result-pop .small { color: var(--muted); font-weight: 700; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.5); opacity: 0; } }

/* ------------------------------ Live Roulette ------------------------------ */
.rl-top { display: grid; grid-template-columns: 440px 1fr; gap: 18px; }
.rl-wheel-panel { display: grid; justify-items: center; gap: 14px; padding: 22px; position: relative; }
.wheel-box { position: relative; width: 380px; height: 380px; }
.wheel-box svg { width: 100%; height: 100%; overflow: visible; }
.rl-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--gold); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); z-index: 3; }
.rl-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rl-center .num { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(14,15,19,.85); border: 2px solid var(--line2); font-family: var(--display); font-weight: 900; font-size: 15px; text-align: center; color: var(--muted); }
.rl-center .num b { display: block; font-size: 38px; color: #fff; line-height: 1; }
.rl-center .num.red { border-color: var(--red); box-shadow: 0 0 30px rgba(255,77,94,.5); } .rl-center .num.black { border-color: #555; box-shadow: 0 0 30px rgba(0,0,0,.6); } .rl-center .num.green { border-color: var(--green); box-shadow: 0 0 30px rgba(47,211,110,.5); }
.phase-bar { width: 100%; display: grid; gap: 8px; }
.phase-bar .lbl { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; }
.phase-bar .track { height: 8px; border-radius: 4px; background: var(--panel3); overflow: hidden; }
.phase-bar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #6cb2ff); border-radius: 4px; }
.phase-bar.spinning .fill { background: linear-gradient(90deg, var(--gold), #ffe08a); }
.phase-bar.result .fill { background: var(--green); }
.history { display: flex; gap: 6px; flex-wrap: wrap; }
.hnum { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.hnum.red { background: #d32f3e; } .hnum.black { background: #2a2c35; } .hnum.green { background: #1d9e50; }
.rl-players { display: flex; flex-direction: column; min-height: 0; max-height: 500px; }
.rl-players h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.rl-players .list { overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.pl-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.pl-row.you { border-color: rgba(30,123,255,.5); }
.pl-row.won { border-color: rgba(47,211,110,.6); background: linear-gradient(90deg, rgba(47,211,110,.14), var(--panel2)); }
.pl-row.lost { opacity: .6; }
.pl-row .nm { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pl-bets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pl-bets span { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--panel3); color: #c9ccd5; }
.pl-bets span.red { background: rgba(211,47,62,.35); } .pl-bets span.black { background: #2a2c35; } .pl-bets span.green { background: rgba(29,158,80,.4); }
.pl-amt { text-align: right; font-weight: 800; }
.pl-amt small { display: block; font-size: 12px; }
.rl-board-panel { display: grid; gap: 14px; }
.rl-board { display: grid; grid-template-columns: 60px repeat(12, 1fr) 60px; grid-template-rows: repeat(3, 52px); gap: 5px; }
.cell { position: relative; display: grid; place-items: center; border-radius: 8px; font-weight: 800; font-size: 15px; cursor: pointer; transition: filter .15s, transform .1s; border: 1px solid rgba(255,255,255,.05); user-select: none; }
.cell:hover { filter: brightness(1.25); }
.cell:active { transform: scale(.96); }
.cell.red { background: #c62a39; } .cell.black { background: #24262e; } .cell.green { background: #1a9147; grid-row: 1 / 4; }
.cell.out { background: var(--panel3); height: 46px; font-size: 13px; }
.cell.out.red { background: #c62a39; } .cell.out.black { background: #24262e; }
.cell.col { grid-column: 14; background: var(--panel3); font-size: 12px; }
.cell.win { animation: winflash .5s 4 alternate; z-index: 2; }
@keyframes winflash { to { box-shadow: 0 0 0 3px var(--gold), 0 0 20px var(--gold); } }
.board-locked .cell { cursor: not-allowed; filter: grayscale(.4) brightness(.8); }
.rl-outside { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-left: 65px; margin-right: 65px; }
.mychip { position: absolute; top: -9px; right: -7px; z-index: 3; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 14px; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #2a1a00; background: radial-gradient(circle, #ffe08a 45%, var(--gold) 46%); border: 2px dashed #fff; box-shadow: 0 3px 6px rgba(0,0,0,.4); animation: chipdrop .25s cubic-bezier(.2,1.6,.4,1); }
@keyframes chipdrop { from { transform: translateY(-14px) scale(1.3); opacity: 0; } }
.others { position: absolute; bottom: 2px; left: 4px; font-size: 9px; font-weight: 800; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 2px; }
.chip-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #fff; cursor: pointer;
  background: radial-gradient(circle, var(--cc) 54%, rgba(255,255,255,.85) 55% 60%, var(--cc) 61%); border: 4px dashed rgba(255,255,255,.75); box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .15s; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.chip.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--blue), 0 8px 12px rgba(0,0,0,.4); }
.chip-bar .spacer { flex: 1; }

/* ------------------------------ Blackjack table ------------------------------ */
.bj-wrap { position: relative; }
.bj-table {
  position: relative; height: 600px; border-radius: 300px 300px 40px 40px / 260px 260px 40px 40px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #1f7a4a, #0f4d2d 60%, #0a3a21); border: 14px solid #3b2414;
  box-shadow: inset 0 0 0 3px #6b4423, inset 0 0 80px rgba(0,0,0,.6), 0 30px 60px rgba(0,0,0,.5);
}
.bj-table::before { content: 'BLACKJACK PAYS 3 TO 2 · DEALER STANDS ON 17'; position: absolute; top: 47%; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 3px; color: rgba(255,230,160,.25); white-space: nowrap; }
.bj-table::after { content: ''; position: absolute; left: 10%; right: 10%; top: 40%; height: 46%; border: 2px solid rgba(255,230,160,.12); border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-bottom: 0; pointer-events: none; }
.shoe { position: absolute; top: 34px; right: 120px; width: 70px; height: 92px; border-radius: 8px; background: linear-gradient(160deg, #3a3f4b, #1a1c22); border: 2px solid #555; box-shadow: 0 8px 18px rgba(0,0,0,.5); transform: rotate(8deg); }
.shoe::before { content: ''; position: absolute; inset: 8px 8px 22px; border-radius: 5px; background: repeating-linear-gradient(45deg, #b0283a 0 6px, #8a1d2c 6px 12px); border: 2px solid #fff; }
.shoe span { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; color: #aaa; }
.discard { position: absolute; top: 40px; left: 120px; width: 62px; height: 86px; border-radius: 7px; border: 2px dashed rgba(255,255,255,.15); transform: rotate(-8deg); }
.dealer-area { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; }
.dealer-tag { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 20px; background: rgba(0,0,0,.4); font-weight: 700; }
.dealer-face { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #222; font-size: 18px; }
.hand { position: relative; display: flex; min-height: 96px; min-width: 70px; justify-content: center; }
.card {
  width: 66px; height: 94px; border-radius: 8px; background: #fff; color: #16161e; margin-left: -34px; position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,.35); font-weight: 800; font-size: 17px; line-height: 1; padding: 6px 7px; flex: none;
  transform-style: preserve-3d;
}
.card:first-child { margin-left: 0; }
.card .s { font-size: 15px; }
.card .big { position: absolute; right: 7px; bottom: 6px; font-size: 32px; }
.card.red { color: #d3263a; }
.card.back { background: repeating-linear-gradient(45deg, #b0283a 0 6px, #8a1d2c 6px 12px); border: 3px solid #fff; }
.card.deal { animation: dealfly .5s cubic-bezier(.2,.8,.3,1) both; }
@keyframes dealfly { from { transform: translate(var(--fx), var(--fy)) rotate(25deg) scale(.8); opacity: 0; } 20% { opacity: 1; } }
.card.flip { animation: flip .5s ease-out; }
@keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.total-badge { min-width: 34px; height: 24px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,.55); font-weight: 800; font-size: 13px; }
.total-badge.bust { background: var(--red); } .total-badge.bj { background: var(--gold); color: #2a1a00; }
.seats { position: absolute; inset: auto 0 18px 0; height: 330px; }
.seat { position: absolute; width: 170px; display: grid; justify-items: center; gap: 6px; transform: translateX(-50%); transition: filter .2s; }
.seat:nth-child(1) { left: 11%; bottom: 120px; } .seat:nth-child(2) { left: 30%; bottom: 40px; } .seat:nth-child(3) { left: 50%; bottom: 10px; } .seat:nth-child(4) { left: 70%; bottom: 40px; } .seat:nth-child(5) { left: 89%; bottom: 120px; }
.seat .spot { position: relative; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255,230,160,.25); display: grid; place-items: center; }
.seat .hand { min-height: 94px; }
.seat-info { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 22px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); max-width: 170px; }
.seat-info .n { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.seat-info .net { font-size: 11px; font-weight: 800; }
.seat.turn .seat-info { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 20px rgba(245,185,42,.5); }
.seat.you .seat-info { background: rgba(30,123,255,.45); }
.seat.away { filter: grayscale(.8) brightness(.7); }
.seat.empty .spot { border-style: dashed; color: rgba(255,230,160,.35); font-weight: 700; font-size: 11px; text-align: center; }
.seat.joined { animation: seatjoin .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes seatjoin { from { transform: translateX(-50%) scale(.3); opacity: 0; } }
.chipstack { position: relative; display: grid; place-items: center; transition: transform .7s cubic-bezier(.5,0,.3,1), opacity .7s; }
.chipstack .c { width: 40px; height: 40px; border-radius: 50%; position: absolute; background: radial-gradient(circle, var(--cc) 50%, rgba(255,255,255,.9) 51% 58%, var(--cc) 59%); border: 3px dashed rgba(255,255,255,.75); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.chipstack .amt { position: relative; z-index: 3; margin-top: 52px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.6); padding: 1px 7px; border-radius: 8px; white-space: nowrap; }
.chipstack.to-dealer { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; }
.chipstack.won .amt { background: var(--green); color: #03250f; }
.status-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.5); text-transform: uppercase; letter-spacing: .4px; }
.status-tag.win, .status-tag.blackjack { background: var(--green); color: #03250f; }
.status-tag.lose, .status-tag.bust { background: var(--red); }
.status-tag.push { background: #777; }
.timer-ring { position: absolute; inset: -4px; border-radius: 50%; }
.bj-banner { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); z-index: 10; padding: 10px 26px; border-radius: 30px; background: rgba(0,0,0,.65); font-family: var(--display); font-weight: 800; font-size: 18px; white-space: nowrap; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.1); }
.bj-banner b { color: var(--gold); }
.bj-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; min-height: 76px; }
.bj-log { position: absolute; left: 22px; top: 150px; display: grid; gap: 4px; width: 210px; pointer-events: none; }
.bj-log div { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: 4px 9px; border-radius: 6px; animation: slidein .3s; }
.bj-score { position: absolute; right: 22px; top: 150px; width: 200px; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.35); display: grid; gap: 6px; font-size: 12px; }
.bj-score h4 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,230,160,.7); }
.bj-score .r { display: flex; justify-content: space-between; font-weight: 700; }
.matchmaking { min-height: 600px; display: grid; place-items: center; text-align: center; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #173024, var(--panel) 70%); border: 1px solid var(--line); }
.mm-inner { display: grid; justify-items: center; gap: 18px; }
.radar { width: 170px; height: 170px; border-radius: 50%; position: relative; border: 2px solid rgba(47,211,110,.4); background: radial-gradient(circle, rgba(47,211,110,.12), transparent 70%); }
.radar::before, .radar::after { content: ''; position: absolute; inset: 25%; border-radius: 50%; border: 1px solid rgba(47,211,110,.3); }
.radar::after { inset: 45%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(47,211,110,.5), transparent 25%); animation: spin 1.6s linear infinite; }
.radar .blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blip 1.6s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.mm-inner h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; }
.mm-steps { display: grid; gap: 6px; color: var(--muted); font-weight: 600; min-height: 90px; }
.mm-steps div { animation: slidein .3s; }
.mm-steps div.ok::before { content: '✓ '; color: var(--green); }
.mm-players { display: flex; gap: -6px; }
.bj-lobby { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bj-lobby .panel { display: grid; gap: 12px; align-content: start; }
.bj-lobby h3 { margin: 0; font-size: 18px; }
.table-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.av-stack { display: flex; }
.av-stack .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--panel2); }
.av-stack .av:first-child { margin-left: 0; }

/* ------------------------------ Mines / Hi-Lo / Slots / Dice / Plinko ------------------------------ */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(520px, 100%); padding: 20px; }
.mtile { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, #2c303b, #23262e); box-shadow: 0 5px 0 #15171c, inset 0 1px 0 rgba(255,255,255,.06); font-size: 36px; display: grid; place-items: center; transition: transform .12s, background .15s; }
.mtile:not(:disabled):hover { transform: translateY(-3px); background: linear-gradient(180deg, #353a47, #2a2d36); }
.mtile:disabled { cursor: default; }
.mtile.gem { background: #12141a; box-shadow: inset 0 0 0 2px rgba(47,211,110,.4), 0 0 20px rgba(47,211,110,.15); animation: reveal .35s cubic-bezier(.2,1.6,.4,1); }
.mtile.bomb { background: #2a0f14; box-shadow: inset 0 0 0 2px rgba(255,77,94,.4); }
.mtile.boom { background: var(--red); animation: shake .4s; }
.mtile.dim { opacity: .35; }
@keyframes reveal { from { transform: scale(.4) rotate(-20deg); } }
@keyframes shake { 25% { transform: translateX(-6px) rotate(-4deg); } 75% { transform: translateX(6px) rotate(4deg); } }

.hilo-stage { display: grid; justify-items: center; gap: 22px; padding: 30px; }
.hilo-card { width: 150px; height: 214px; border-radius: 14px; background: #fff; color: #16161e; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,.5); font-weight: 900; padding: 12px; animation: flip .45s ease-out; }
.hilo-card .r { font-size: 40px; line-height: 1; } .hilo-card .s { font-size: 30px; } .hilo-card .big { position: absolute; right: 14px; bottom: 10px; font-size: 80px; }
.hilo-card.red { color: #d3263a; } .hilo-card.back { background: repeating-linear-gradient(45deg, #1e7bff 0 8px, #1560d4 8px 16px); border: 4px solid #fff; }
.hilo-hist { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 54px; }
.hilo-hist .mini { width: 38px; height: 54px; border-radius: 6px; background: #fff; color: #16161e; font-weight: 800; font-size: 13px; padding: 4px; }
.hilo-hist .mini.red { color: #d3263a; }
.hilo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(420px, 100%); }
.hilo-btns .btn { height: 64px; flex-direction: column; gap: 2px; font-size: 15px; }
.hilo-btns .btn small { font-size: 12px; opacity: .85; }

.slots-machine { display: grid; justify-items: center; gap: 20px; padding: 30px; }
.reels { display: flex; gap: 12px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #2a1f4a, #150f29); border: 3px solid #f5b92a; box-shadow: 0 0 0 6px #6b4a0a, 0 0 40px rgba(245,185,42,.25), inset 0 0 30px rgba(0,0,0,.6); }
.reel { width: 110px; height: 330px; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #e9e9f2, #fff 30%, #fff 70%, #e9e9f2); position: relative; box-shadow: inset 0 10px 20px rgba(0,0,0,.25), inset 0 -10px 20px rgba(0,0,0,.25); }
.reel-strip { position: absolute; left: 0; right: 0; top: 0; }
.reel-strip div { height: 110px; display: grid; place-items: center; font-size: 64px; }
.payline { position: absolute; left: -4px; right: -4px; top: 50%; height: 110px; transform: translateY(-50%); border: 3px solid rgba(255,77,94,.6); border-radius: 10px; pointer-events: none; }
.reel-wrap { position: relative; }
.reel.win { box-shadow: 0 0 0 3px var(--gold), 0 0 30px var(--gold); }
.paytable { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; font-weight: 700; }
.paytable div { display: flex; justify-content: space-between; align-items: center; }
.paytable span:first-child { font-size: 20px; letter-spacing: 2px; }

.dice-stage { width: 100%; padding: 40px; display: grid; gap: 40px; }
.dice-big { font-family: var(--display); font-weight: 900; font-size: 84px; text-align: center; line-height: 1; transition: color .2s; }
.dice-big.win { color: var(--green); } .dice-big.lose { color: var(--red); }
.dice-bar { position: relative; height: 16px; border-radius: 8px; background: var(--red); }
.dice-bar .win-zone { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 8px; }
.dice-bar input[type=range] { position: absolute; inset: -10px 0; width: 100%; opacity: 0; cursor: ew-resize; }
.dice-handle { position: absolute; top: 50%; width: 34px; height: 34px; margin-left: -17px; transform: translateY(-50%); border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.5); pointer-events: none; display: grid; place-items: center; color: #555; font-weight: 900; }
.dice-marker { position: absolute; top: -52px; margin-left: -26px; width: 52px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; background: #fff; color: #111; transition: left .6s cubic-bezier(.2,.8,.3,1); box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.dice-marker::after { content: ''; position: absolute; bottom: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
.dice-marker.win { background: var(--green); } .dice-marker.lose { background: var(--red); color: #fff; }
.dice-marker.win::after { border-top-color: var(--green); } .dice-marker.lose::after { border-top-color: var(--red); }
.dice-scale { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 10px; }
.dice-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dice-stats .field input { text-align: center; }

.plinko-board { position: relative; width: 640px; height: 560px; }
.peg { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #e6e8ef; box-shadow: 0 0 6px rgba(255,255,255,.4); }
.peg.hit { animation: peghit .3s; }
@keyframes peghit { 50% { transform: scale(1.8); background: var(--gold); } }
.pball { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 50%, var(--gold-d)); box-shadow: 0 0 14px var(--gold); z-index: 5; }
.buckets { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; padding: 0 22px; }
.bucket { flex: 1; height: 36px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #1a1a1a; background: var(--bc); box-shadow: 0 4px 0 color-mix(in srgb, var(--bc) 60%, black); transition: transform .2s; }
.bucket.hit { animation: bucket .5s; }
@keyframes bucket { 40% { transform: translateY(8px); filter: brightness(1.4); } }

/* ------------------------------ Cases ------------------------------ */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.case-card { position: relative; display: grid; justify-items: center; gap: 10px; padding: 24px 18px 18px; border-radius: 16px; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cc) 35%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.case-card:hover { transform: translateY(-4px); border-color: var(--cc); }
.case-box { width: 130px; height: 110px; position: relative; display: grid; place-items: center; font-size: 56px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 80%, white), var(--cc) 50%, color-mix(in srgb, var(--cc) 50%, black)); box-shadow: 0 16px 30px color-mix(in srgb, var(--cc) 35%, transparent), inset 0 -10px 0 rgba(0,0,0,.2), inset 0 3px 0 rgba(255,255,255,.35); transition: transform .3s; }
.case-box::before { content: ''; position: absolute; left: 0; right: 0; top: 36%; height: 12px; background: rgba(0,0,0,.2); }
.case-card:hover .case-box { transform: rotate(-5deg) scale(1.05); }
.case-card h3 { margin: 0; font-size: 17px; }
.case-card .price { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; background: var(--panel3); font-weight: 800; }
.case-card .peek { display: flex; gap: 4px; }
.case-open { display: grid; gap: 18px; }
.case-hero { display: flex; align-items: center; gap: 24px; padding: 24px; }
.case-hero .case-box { width: 150px; height: 128px; font-size: 64px; }
.case-hero h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 30px; }
.case-hero .controls { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.reels-v { display: grid; gap: 10px; }
.spinner { position: relative; height: 150px; overflow: hidden; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.spinner::before, .spinner::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.spinner::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.spinner::after { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }
.spinner .marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--gold); z-index: 3; box-shadow: 0 0 12px var(--gold); }
.spinner .marker::before, .spinner .marker::after { content: ''; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.spinner .marker::before { top: 0; border-top-color: var(--gold); } .spinner .marker::after { bottom: 0; border-bottom-color: var(--gold); }
.strip { position: absolute; top: 10px; left: 0; display: flex; gap: 8px; will-change: transform; }
.strip-item { width: 122px; height: 128px; flex: none; border-radius: 10px; display: grid; justify-items: center; align-content: center; gap: 6px; background: linear-gradient(180deg, var(--panel2), color-mix(in srgb, var(--rc) 22%, var(--panel2))); border-bottom: 3px solid var(--rc); }
.strip-item .nm { font-size: 11px; font-weight: 700; color: var(--muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-item.landed { box-shadow: 0 0 0 2px var(--rc), 0 0 30px var(--rc); }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.item-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, var(--panel2), color-mix(in srgb, var(--rc) 16%, var(--panel2))); border: 1px solid var(--line); border-bottom: 3px solid var(--rc); }
.item-card .nm { font-weight: 700; font-size: 13px; }
.item-card .chance { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
.item-card.sel { outline: 2px solid var(--blue); }
.item-card .eq { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; background: var(--blue); padding: 2px 6px; border-radius: 5px; }
.item-card .acts { display: flex; gap: 6px; margin-top: 4px; }
.unbox-result { display: grid; justify-items: center; gap: 12px; text-align: center; }
.unbox-result .av { animation: reveal .6s cubic-bezier(.2,1.6,.4,1); }
.unbox-result h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 26px; }
.unbox-multi { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 25%, transparent) 0 10deg, transparent 10deg 20deg); animation: spin 12s linear infinite; z-index: -1; border-radius: 50%; }

/* ------------------------------ Rooms ------------------------------ */
.room-create { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.game-pick { padding: 20px; border-radius: 14px; background: var(--panel2); border: 2px solid var(--line); display: grid; justify-items: center; gap: 8px; cursor: pointer; text-align: center; }
.game-pick .em { font-size: 48px; }
.game-pick.sel { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--panel2)); }
.game-pick small { color: var(--muted); font-weight: 600; }
.room-stage { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.vs-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.vs-player { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel2); border: 2px solid transparent; }
.vs-player.turn { border-color: var(--gold); box-shadow: 0 0 20px rgba(245,185,42,.25); }
.vs-player.right { flex-direction: row-reverse; text-align: right; }
.vs-mid { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; color: var(--muted); }
.mark { font-family: var(--display); font-weight: 900; }
.mark.X { color: #4da3ff; } .mark.O { color: #ff6b79; }
.ttt { display: grid; grid-template-columns: repeat(3, 96px); grid-template-rows: repeat(3, 96px); gap: 10px; }
.ttt button { border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); font-size: 64px; }
.ttt button:not(:disabled):hover { background: var(--panel3); }
.ttt button.line { background: color-mix(in srgb, var(--gold) 25%, var(--panel2)); border-color: var(--gold); }
.c4 { display: grid; grid-template-columns: repeat(7, 52px); gap: 8px; padding: 14px; border-radius: 16px; background: #1546b5; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.c4 .slot { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 4px 8px rgba(0,0,0,.6); cursor: pointer; }
.c4 .slot.X { background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 60%, var(--gold-d)); animation: c4drop .4s cubic-bezier(.4,0,.6,1.4); }
.c4 .slot.O { background: radial-gradient(circle at 35% 30%, #ff8d98, var(--red) 60%, #a11a28); animation: c4drop .4s cubic-bezier(.4,0,.6,1.4); }
.c4 .slot.line { box-shadow: 0 0 0 4px #fff, 0 0 20px #fff; }
@keyframes c4drop { from { transform: translateY(-300px); } }
.c4.mine .slot:hover { outline: 2px solid rgba(255,255,255,.3); }
.rps { display: grid; justify-items: center; gap: 22px; }
.rps-picks { display: flex; gap: 14px; }
.rps-picks button { width: 120px; height: 120px; border-radius: 20px; font-size: 60px; background: var(--panel2); border: 2px solid var(--line2); transition: transform .15s; }
.rps-picks button:not(:disabled):hover { transform: translateY(-5px); border-color: var(--blue); }
.rps-picks button.sel { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 20%, var(--panel2)); }
.rps-rounds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rps-rounds div { padding: 6px 10px; border-radius: 8px; background: var(--panel2); font-size: 20px; }
.share-box { display: flex; gap: 8px; }
.share-box input { flex: 1; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line2); font-weight: 600; color: var(--muted); }
.room-list { display: grid; gap: 8px; }
.room-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; }
.room-row:hover { border-color: var(--line2); }
.pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--panel3); text-transform: uppercase; }
.pill.turn { background: var(--gold); color: #2a1a00; } .pill.waiting { background: var(--blue); } .pill.won { background: var(--green); color: #03250f; } .pill.lost { background: var(--red); }

/* ------------------------------ Profile / social ------------------------------ */
.profile-hero { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 30px; border-radius: 18px; overflow: hidden; min-height: 210px;
  background: radial-gradient(circle at 15% 50%, color-mix(in srgb, var(--rc) 45%, transparent), transparent 50%), linear-gradient(120deg, #1b1d26, #14151b); border: 1px solid var(--line); }
.profile-hero .info { display: grid; gap: 6px; }
.profile-hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; display: flex; align-items: center; gap: 10px; }
.profile-hero .title { color: var(--gold); font-weight: 800; }
.profile-hero .actions { margin-left: auto; display: flex; gap: 10px; }
.xpbar { width: 260px; height: 8px; border-radius: 4px; background: var(--panel3); overflow: hidden; }
.xpbar div { height: 100%; background: linear-gradient(90deg, var(--green), #8affb8); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-tile { padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.stat-tile small { color: var(--muted); font-weight: 600; }
.stat-tile b { display: block; font-size: 22px; margin-top: 4px; }
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .sub { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.onl { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; }
.onl.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.rank-num { width: 30px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--muted); }
.rank-num.g { color: var(--gold); } .rank-num.s { color: #cfd8e6; } .rank-num.b { color: #e2895a; }
.add-row { display: flex; gap: 10px; }
.add-row input { flex: 1; }
.gm-input { width: 90px; height: 30px; padding: 0 8px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line2); font-weight: 700; }
table.lb { width: 100%; border-collapse: collapse; }
table.lb th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 12px; }
table.lb td { padding: 10px 12px; border-top: 1px solid var(--line); }

/* ------------------------------ Modal / toasts ------------------------------ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,6,9,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { position: relative; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 40px 80px rgba(0,0,0,.6); animation: modalin .25s cubic-bezier(.2,1.3,.4,1); isolation: isolate; overflow-x: hidden; }
.modal.wide { width: min(720px, 100%); }
@keyframes modalin { from { transform: scale(.92); opacity: 0; } }
.modal h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.modal p { margin: 0 0 14px; color: var(--muted); }
.modal form { display: grid; gap: 12px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; background: var(--panel3); color: var(--muted); z-index: 2; }
.toasts { position: fixed; top: 80px; right: 20px; display: grid; gap: 8px; z-index: 60; width: 320px; }
.toast { padding: 12px 16px; border-radius: 11px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--blue); box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: toastin .3s cubic-bezier(.2,1.3,.4,1); }
.toast.error { border-left-color: var(--red); }
.toast.good { border-left-color: var(--green); }
@keyframes toastin { from { transform: translateX(40px); opacity: 0; } }


/* ------------------------------ Bet history ------------------------------ */
.bet-history { display: grid; gap: 10px; }
.bh-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bh-head h3 { margin: 0; font-size: 17px; margin-right: auto; }
.seg.small > button { height: 30px; padding: 0 12px; font-size: 12px; flex: none; }
.inline-user { display: inline-flex; align-items: center; gap: 8px; }
.mult-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--panel3); font-weight: 800; font-size: 12px; }
.mult-pill.up { background: rgba(47,211,110,.18); color: var(--green); }
.win-badge { display: inline-block; padding: 4px 9px; border-radius: 7px; background: var(--green); color: #03250f; font-weight: 800; font-size: 12px; }
.lose-badge { display: inline-block; padding: 4px 9px; border-radius: 7px; background: rgba(255,59,78,.85); color: #fff; font-weight: 800; font-size: 12px; }
kbd { font-family: var(--body); font-size: 10px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.3); margin-left: 4px; }

/* ------------------------------ Roulette controls (OwlBet style) ------------------------------ */
.rl-wheel-panel { background: radial-gradient(circle at 50% 45%, rgba(255,59,78,.16), transparent 60%), var(--panel); }
.rl-controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.rl-controls .spacer { flex: 1; }
.color-btns { display: flex; gap: 6px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; }
.cbtn { height: 40px; min-width: 96px; border-radius: 8px; font-weight: 800; font-size: 13px; display: grid; place-items: center; line-height: 1.05; background: var(--panel3); transition: filter .15s, transform .1s; }
.cbtn small { display: block; font-size: 10px; opacity: .8; }
.cbtn:hover { filter: brightness(1.2); } .cbtn:active { transform: scale(.97); }
.cbtn.red { background: linear-gradient(180deg, #ff5d6d, var(--red)); box-shadow: 0 4px 14px rgba(255,59,78,.35); }
.cbtn.green { background: linear-gradient(180deg, #3ee07f, #1aa553); }
.cbtn.black { background: linear-gradient(180deg, #3a394b, #23222e); }
.bet-total { font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.bet-total b { color: var(--text); }
.wheel-box { width: 420px; height: 420px; }
.rl-pointer { top: -2px; }

/* ------------------------------ Wheel (DAWN style) ------------------------------ */
.wh-top { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.wh-stage { position: relative; height: 380px; overflow: hidden; display: grid; justify-items: center; background: radial-gradient(ellipse at 50% 100%, rgba(139,92,246,.18), transparent 60%), var(--panel); }
.wh-arch { position: absolute; top: 26px; width: 640px; height: 640px; left: 50%; transform: translateX(-50%); }
.wh-arch svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.wh-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 3; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.7)); }
.wh-timer { position: absolute; bottom: 70px; text-align: center; z-index: 2; }
.wh-timer div { font-family: var(--display); font-weight: 900; font-size: 54px; line-height: 1; }
.wh-timer div.res { animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
.wh-timer small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.wh-history { display: flex; flex-direction: column; max-height: 380px; }
.wh-history h3 { margin: 0 0 10px; font-size: 16px; }
.wh-hist { display: grid; gap: 6px; overflow-y: auto; }
.wh-hrow { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; border-radius: 9px; background: var(--panel2); font-weight: 800; border-left: 3px solid var(--mc); }
.m2 { --mc: #7c5cff; --mg: rgba(124,92,255,.35); } .m3 { --mc: #5fbf3f; --mg: rgba(95,191,63,.35); } .m5 { --mc: #ff7a1a; --mg: rgba(255,122,26,.35); } .m50 { --mc: #ff3bd6; --mg: rgba(255,59,214,.4); }
.wh-timer div.res { color: var(--mc); }
.wh-betbar { display: flex; gap: 8px; }
.wh-betbar .btn { height: 46px; min-width: 56px; }
.wh-betbar .grow { flex: 1; height: 46px; }
.wh-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wh-col { display: grid; gap: 8px; align-content: start; transition: opacity .3s; }
.wh-col.loser { opacity: .45; }
.wh-col.winner .wh-head { box-shadow: 0 0 0 2px var(--mc), 0 0 30px var(--mg); }
.wh-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px 0 16px; border-radius: 12px; background: linear-gradient(90deg, var(--mg), var(--panel) 70%); border: 1px solid var(--line2); font-size: 20px; transition: filter .15s, transform .1s; }
.wh-head:not(:disabled):hover { filter: brightness(1.2); }
.wh-head:not(:disabled):active { transform: scale(.98); }
.wh-head:disabled { cursor: not-allowed; }
.wh-head b { font-family: var(--display); font-weight: 900; }
.wh-head .tot { margin-left: auto; font-size: 15px; }
.wh-head .plus { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 18px; }
.wh-mine { font-size: 12px; font-weight: 700; color: var(--mc); padding: 0 6px; }
.wh-list { display: grid; gap: 6px; }
.wh-p { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.wh-p.you { border-color: var(--mc); }
.wh-p .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wh-p .a { font-weight: 800; font-size: 13px; }
.wh-empty { color: var(--dim); font-size: 12px; text-align: center; padding: 10px; }

/* ------------------------------ Blackjack lobby ------------------------------ */
.bj-hero { display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 20px; min-height: 340px; padding: 40px; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 80% 50%, #1f7a4a, #0c3a22 60%, #0a1f15); border: 1px solid var(--line); }
.bj-hero h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1.05; }
.bj-hero h2 span { color: var(--gold); }
.bj-hero p { color: #cde9d6; font-size: 16px; max-width: 560px; margin: 0 0 22px; }
.bj-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.bj-hero-art { position: relative; height: 260px; }
.hc { position: absolute; width: 130px; height: 182px; border-radius: 14px; background: #fff; color: #16161e; font-weight: 900; font-size: 40px; padding: 14px; line-height: 1; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.hc.red { color: #d3263a; }
.hc.h1 { left: 70px; top: 30px; transform: rotate(-14deg); animation: float 6s ease-in-out infinite; }
.hc.h2 { left: 160px; top: 20px; transform: rotate(10deg); animation: float 6s ease-in-out infinite -3s; }
.hchip { position: absolute; left: 40px; bottom: 10px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, #e5383b 50%, #fff 51% 58%, #e5383b 59%); border: 6px dashed #fff; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.bj-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bj-rules .panel { display: grid; gap: 4px; }
.seat-meta { display: flex; gap: 6px; align-items: center; min-height: 24px; }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.result-banner-inline { font-family: var(--display); font-weight: 900; font-size: 26px; }
.rarity-legend { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; text-transform: capitalize; }
.rarity-legend span { display: flex; align-items: center; gap: 6px; color: var(--rc); }
.rarity-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--rc); }

/* ------------------------------ Smaller desktops ------------------------------ */
@media (max-width: 1700px) {
  .hero { padding-right: 440px; }
  .hero h2 { font-size: 44px; }
  .podium { transform: scale(.78); transform-origin: bottom right; right: 24px; }
}
@media (max-width: 1440px) {
  .nav a { padding: 0 10px; }
  .nav a i { display: none; }
  .tile.big .art { font-size: 190px; }
}
@media (max-width: 1360px) {
  :root { --chat-w: 280px; --side-w: 210px; }
}
@media (max-width: 1240px) {
  :root { --chat-w: 270px; --side-w: 72px; }
  .sidenav .side-link span, .sidenav h5, .side-search, .quick, .side-promo, .side-link .cnt { display: none; }
  .side-link { justify-content: center; padding: 0; }
  .topbar .logo { width: auto; }
  .power-pill .power-bar { display: none; }
  .rl-top, .wh-top, .bj-hero { grid-template-columns: 1fr; }
  .bj-hero-art { display: none; }
  .wh-cols, .bj-rules { grid-template-columns: repeat(2, 1fr); }
  .podium { transform: scale(.8); transform-origin: bottom right; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tile.big, .tile.wide, .tile.med { grid-column: span 3; }
  .tile.sm { grid-column: span 2; }
  .bj-log, .bj-score { display: none; }
}
@media (max-width: 960px) {
  #app { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
  .chat, .sidenav { display: none; }
  .nav { display: none; }
  .game-layout, .room-stage, .bj-lobby { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}
.case-hero .seg > button { padding: 0 14px; flex: none; }
.stage .plinko-board { margin-top: 20px; }
.vs-player { min-width: 0; } .vs-player b { white-space: nowrap; }

/* =================== Round 4: icons, sidebar profile, chat tabs, cosmetics, coinflip =================== */
.gicon { display: block; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.side-link i { width: 24px; height: 24px; display: grid; place-items: center; }
.side-link i .gicon { width: 24px; height: 24px; }
.quick a { padding: 6px; }
.quick a .gicon { width: 100%; height: 100%; }
.side-link .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: none; place-items: center; font-size: 11px; font-weight: 800; background: rgba(47,211,110,.15); color: var(--green); }
.side-link .cnt.on { display: inline-grid; }
.side-online { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.side-online b { color: var(--text); }
.side-profile { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: radial-gradient(circle at 0 0, rgba(139,92,246,.35), transparent 60%), var(--panel); border: 1px solid var(--line2); }
.sp-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-id { min-width: 0; flex: 1; display: grid; gap: 5px; }
.sp-name { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-rank { display: flex; align-items: center; gap: 6px; }
.sp-xp { flex: 1; height: 5px; border-radius: 3px; background: var(--panel3); overflow: hidden; }
.sp-xp div { height: 100%; background: linear-gradient(90deg, var(--green), #8affb8); }
.sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.sp-stats div { padding: 6px 2px; border-radius: 8px; background: var(--bg2); }
.sp-stats b { display: block; font-size: 13px; }
.sp-stats small { font-size: 10px; color: var(--muted); font-weight: 600; }
.side-profile .btn-sm { height: 30px; }

/* Chat tabs */
.chat-head { padding: 10px 12px 8px; gap: 8px; }
.chat-tabs { display: flex; gap: 3px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; flex: 1; }
.chat-tabs button { flex: 1; height: 30px; border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.chat-tabs button.active { background: var(--panel3); color: var(--text); }
.chat-tabs button:disabled { opacity: .4; cursor: not-allowed; }
.chat-tabs .dot-badge { margin-left: 2px; min-width: 16px; height: 16px; font-size: 10px; }
.chat-online { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.msg .time { margin-left: auto; font-size: 10px; color: var(--dim); font-weight: 600; }
.chat-input-wrap { position: relative; flex: 1; display: flex; }
.chat-input-wrap input { flex: 1; padding-right: 38px !important; }
.emote-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 7px; font-size: 16px; }
.emote-btn:hover { background: var(--panel3); }
.emote-picker { margin: 0 12px; padding: 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); max-height: 230px; overflow-y: auto; }
.ep-head { font-weight: 800; font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.ep-head small { color: var(--muted); font-weight: 600; font-size: 11px; }
.ep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ep { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); border-bottom: 2px solid var(--rc); }
.ep i { font-style: normal; font-size: 22px; }
.ep b { font-size: 9px; letter-spacing: .3px; }
.ep.locked { filter: grayscale(1); opacity: .35; }
.emote { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 3px; margin: 0 1px; border-radius: 6px; vertical-align: middle; background: color-mix(in srgb, var(--rc) 22%, var(--panel3)); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); }
.emote i { font-style: normal; font-size: 18px; line-height: 1.1; }
.emote b { font-size: 9px; font-weight: 900; letter-spacing: .4px; color: #fff; }
.emote-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* Name icons + fonts */
.name-badge { display: inline-block; margin-right: 3px; font-size: 13px; filter: drop-shadow(0 0 4px rgba(255,255,255,.25)); }
.name-badge.big { font-size: 18px; }
.nf { font-weight: 800; }
.nf.f_bubble { font-family: var(--display); font-style: italic; font-weight: 900; color: #f9a8d4; text-shadow: 0 2px 0 #9d174d; }
.nf.f_pixel { font-family: 'Press Start 2P', monospace; font-size: .72em; color: #a3e635; letter-spacing: .5px; }
.nf.f_ice { color: #cffafe; text-shadow: 0 0 6px #22d3ee, 0 0 12px #0891b2; }
.nf.f_gold { background: linear-gradient(180deg, #fff3b0, #f5b92a 50%, #b45309); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--display); font-weight: 900; }
.nf.f_neon { color: #fff; text-shadow: 0 0 3px #ff4dff, 0 0 8px #ff4dff, 0 0 16px #c026d3; }
.nf.f_toxic { font-family: 'Creepster', cursive; font-weight: 400; font-size: 1.15em; letter-spacing: 1px; color: #a3e635; text-shadow: 0 0 8px #65a30d; }
.nf.f_fire { background: linear-gradient(90deg, #fde047, #f97316, #dc2626, #f97316, #fde047); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nfslide 2s linear infinite; font-weight: 900; }
.nf.f_script { font-family: 'Pacifico', cursive; font-weight: 400; color: #fcd34d; }
.nf.f_rainbow { background: linear-gradient(90deg, #ff4d4d, #ffb84d, #f9f871, #4dff88, #4dc3ff, #b84dff, #ff4d4d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nfslide 3s linear infinite; font-family: var(--display); font-weight: 900; }
.nf.f_glitch { font-family: 'Orbitron', sans-serif; color: #fff; text-shadow: 2px 0 #ff2d55, -2px 0 #00e5ff; animation: glitch 1.6s steps(2) infinite; }
@keyframes nfslide { to { background-position: -200% 0; } }
@keyframes glitch { 0%, 90% { text-shadow: 2px 0 #ff2d55, -2px 0 #00e5ff; } 93% { text-shadow: -3px 1px #ff2d55, 3px -1px #00e5ff; } 96% { text-shadow: 3px -1px #ff2d55, -3px 1px #00e5ff; } }
.style-swatch { min-height: 64px; display: grid; place-items: center; padding: 0 8px; font-weight: 800; font-size: 16px; text-align: center; }
.preview-msg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; margin-top: 4px; }
.inv-preview { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.inv-tabs { max-width: 560px; }

/* Invite */
.invite-banner { padding: 12px 14px; border-radius: 10px; background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.4); font-weight: 600; line-height: 1.4; }
.invite-banner.bad { background: rgba(255,59,78,.12); border-color: rgba(255,59,78,.4); color: #ffb3bb; }

/* Profile */
.profile-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.items-grid.compact { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.items-grid.compact .item-card { padding: 10px 6px 8px; gap: 4px; }
.items-grid.compact .nm { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card.disabled { opacity: .5; pointer-events: none; }
.items-grid .item-card[data-uid] { cursor: pointer; }

/* Coinflip */
.cf-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.cf-pick { display: grid; gap: 12px; max-height: 560px; overflow: hidden; grid-template-rows: auto 1fr; }
.cf-pick .items-grid { overflow-y: auto; padding: 2px; }
.cf-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-pick-head h3 { margin: 0; font-size: 16px; }
.cf-action { display: grid; gap: 12px; }
.cf-total { font-family: var(--display); font-weight: 900; font-size: 34px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.cf-wait { display: grid; justify-items: center; gap: 10px; text-align: center; }
.cf-wait h3 { margin: 0; }
.cf-items { display: flex; gap: 4px; flex-wrap: wrap; }
.cf-items.center { justify-content: center; }
.cf-items .more { font-size: 11px; font-weight: 800; color: var(--muted); align-self: center; }
.cf-coin { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; }
.cf-coin .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 55%, var(--gold-d)); border: 5px solid #a16207; box-shadow: inset 0 0 0 4px rgba(255,255,255,.3); font-family: var(--display); font-weight: 900; font-size: 40px; color: #7c4a03; }
.cf-coin .face.tails { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #fff, #cbd5e1 55%, #6b7280); border-color: #4b5563; }
.cf-coin.spinning { width: 70px; height: 70px; animation: coinspin 1.2s linear infinite; }
.cf-coin.spinning .face { font-size: 28px; }
@keyframes coinspin { to { transform: rotateY(360deg); } }
.cf-result { display: grid; justify-items: center; gap: 18px; text-align: center; }
.cf-result h2, .cf-result .btn { transition: opacity .3s; }
.cf-versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; width: 100%; }
.cf-stage { perspective: 600px; padding: 10px; }
.cf-side { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.cf-name { font-weight: 800; }
.cf-val { font-weight: 800; }
.cf-hrow { gap: 10px; font-size: 13px; }
.cf-hrow > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cf-win { color: var(--green); } .cf-lose { opacity: .55; }

/* Tile icon art */
.tile .art { right: 8px; bottom: 6px; font-size: 0; transform: rotate(-6deg); }
.tile .art .gicon { filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.tile .players { min-height: 16px; }

/* =================== Fit the screen: denser layout =================== */
:root { --top-h: 60px; --side-w: 228px; --chat-w: 300px; }
.topbar { gap: 12px; padding: 0 14px; }
.main { padding: 16px 20px 28px; }
.page { gap: 16px; }
.page-head h1 { font-size: 22px; }
.panel { padding: 14px; border-radius: 12px; }
.sidenav { gap: 10px; padding: 12px; }
.side-link { height: 34px; }
.side-group { padding: 4px; }
.side-group h5 { margin: 4px 8px 4px; }
.hero { min-height: 220px; padding: 26px 440px 26px 30px; }
.hero h2 { font-size: 42px; }
.hero p { font-size: 15px; }
.podium { transform: scale(.72); transform-origin: bottom right; right: 20px; }
.tiles { grid-auto-rows: 150px; gap: 12px; }
.tile { padding: 16px 18px; }
.tile h3 { font-size: 19px; }
.drop-card { height: 62px; width: 210px; }
.ticker { gap: 8px; }
.stage { min-height: 440px; }
.game-layout { grid-template-columns: 270px 1fr; gap: 14px; }
.wheel-box { width: 340px; height: 340px; }
.rl-board { grid-template-rows: repeat(3, 44px); gap: 4px; }
.cell.out { height: 38px; }
.rl-players { max-height: 420px; }
.wh-stage { height: 330px; }
.wh-arch { width: 560px; height: 560px; }
.wh-timer { bottom: 50px; }
.wh-timer div { font-size: 44px; }
.bj-table { height: 540px; }
.seats { height: 300px; }
.matchmaking { min-height: 500px; }
.bj-hero { min-height: 280px; padding: 30px; }
.bj-hero h2 { font-size: 36px; }
.case-hero { padding: 18px; }
.spinner { height: 140px; }
.mines-grid { width: min(460px, 100%); padding: 14px; gap: 8px; }
.hilo-stage { padding: 20px; gap: 16px; }
.slots-machine { padding: 18px; }
.profile-hero { min-height: 170px; padding: 22px; }
@media (max-width: 1700px) { .hero { padding-right: 400px; } .hero h2 { font-size: 38px; } .podium { transform: scale(.66); } }
@media (max-width: 1360px) { :root { --chat-w: 280px; --side-w: 210px; } .cf-layout, .profile-cols { grid-template-columns: 1fr; } }
@media (max-width: 1240px) { .side-profile, .side-online { display: none; } }
.items-grid > .empty { grid-column: 1 / -1; }

/* =================== Round 5: chat effects, typing, game ids =================== */
.chat-typing { min-height: 0; height: 0; overflow: hidden; padding: 0 16px; font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; transition: height .15s; }
.chat-typing.on { height: 22px; }
.tdots { display: inline-flex; gap: 3px; }
.tdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: tdot 1s infinite; }
.tdots i:nth-child(2) { animation-delay: .15s; } .tdots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.sys.fx-msg { background: linear-gradient(90deg, rgba(139,92,246,.18), var(--panel2)); border-color: rgba(139,92,246,.35); }
.ep.fx { border-bottom-color: var(--accent); }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.fx-p { position: absolute; top: -40px; font-size: var(--sz); animation: fxfall var(--dur) linear var(--del) forwards; }
.fx-fire .fx-p, .fx-hearts .fx-p { top: auto; bottom: -40px; animation-name: fxrise; }
@keyframes fxfall { to { transform: translateY(110vh) rotate(var(--rot)); } }
@keyframes fxrise { to { transform: translateY(-110vh) rotate(calc(var(--rot) / 4)); opacity: 0; } }
.fx-bomb { position: absolute; left: 50%; top: -80px; font-size: 90px; transform: translateX(-50%); animation: bombfall .9s cubic-bezier(.5,0,1,1) forwards; }
@keyframes bombfall { to { top: 42%; transform: translateX(-50%) rotate(200deg); } }
.fx-boom { position: absolute; left: 50%; top: 45%; font-size: 240px; transform: translate(-50%, -50%) scale(.2); animation: boom .8s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes boom { 60% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
.fx-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255,200,80,.85), rgba(255,80,0,.35) 40%, transparent 70%); animation: flash .7s ease-out forwards; }
@keyframes flash { to { opacity: 0; } }
.fx-shard { position: absolute; left: 50%; top: 45%; font-size: 30px; animation: shard 1.1s ease-out forwards; }
@keyframes shard { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)); opacity: 0; } }
body.shake #app { animation: shake .5s; }
.gid { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.gid-cell { font-family: ui-monospace, monospace; font-size: 12px; }
.cf-count { font-family: var(--display); font-weight: 900; font-size: 22px; }
.cf-count b { color: var(--gold); font-size: 28px; }

/* =================== Round 6: animations everywhere =================== */
/* balance */
.balance-pill { position: relative; }
.balance-pill.drop { animation: baldrop .45s; }
@keyframes baldrop { 30% { transform: scale(.96); color: var(--red); } }
.bal-float { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-size: 13px; font-weight: 900; white-space: nowrap; pointer-events: none; animation: balfloat 1.4s ease-out forwards; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.bal-float.pos { color: var(--green); } .bal-float.neg { color: var(--red); }
@keyframes balfloat { 0% { opacity: 0; transform: translate(-50%, -6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 4px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, 26px); } }
/* level up */
.levelup { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(139,92,246,.35), transparent 60%); animation: fadein .3s; transition: opacity .5s; }
.levelup.out { opacity: 0; }
.lu-rays { position: absolute; width: 900px; height: 900px; background: repeating-conic-gradient(rgba(245,185,42,.18) 0 8deg, transparent 8deg 20deg); border-radius: 50%; animation: spin 10s linear infinite; mask-image: radial-gradient(circle, #000 20%, transparent 65%); }
.lu-card { position: relative; text-align: center; padding: 26px 50px; border-radius: 24px; background: linear-gradient(160deg, #2a1f55, #120e2a); border: 2px solid var(--gold); box-shadow: 0 0 60px rgba(245,185,42,.5); animation: lupop .6s cubic-bezier(.2,1.6,.4,1); }
.lu-top { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; color: var(--gold); letter-spacing: 2px; }
.lu-num { font-family: var(--display); font-weight: 900; font-size: 110px; line-height: 1; background: linear-gradient(180deg, #fff, #f5b92a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lu-sub { color: var(--muted); font-weight: 700; }
@keyframes lupop { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.lu-star { position: absolute; left: 50%; top: 50%; font-size: 26px; animation: shard 1.2s ease-out var(--del) forwards; opacity: 0; animation-fill-mode: both; }
/* coin bursts */
.burst-layer { position: fixed; z-index: 96; pointer-events: none; width: 0; height: 0; }
.burst-layer span { position: absolute; font-size: 20px; left: 0; top: 0; animation: burstout 1s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes burstout { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(calc(var(--a) * -1)) scale(1.1); opacity: 0; } }
/* avatars */
.av { transition: transform .2s; }
.av:hover { transform: scale(1.08) rotate(-4deg); }
.av.r-legendary, .av.r-mythic { animation: avglow 2.4s ease-in-out infinite; }
.av.r-legendary::after, .av.r-mythic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); background-size: 250% 100%; animation: shine 3s ease-in-out infinite; pointer-events: none; }
@keyframes avglow { 50% { box-shadow: 0 0 0 2px var(--rc), 0 0 16px var(--rc); } }
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.item-card { transition: transform .2s, box-shadow .2s; }
.item-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 1px var(--rc); }
/* cases */
.case-box.shaking { animation: crate .65s ease-in-out; }
@keyframes crate { 10%, 50%, 90% { transform: rotate(-6deg) scale(1.04); } 30%, 70% { transform: rotate(6deg) scale(1.06); } }
.strip-item.landed { animation: landpulse 1s ease-in-out 2; }
@keyframes landpulse { 50% { transform: scale(1.08); } }
/* chat */
.fresh { animation: msgin .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes msgin { from { opacity: 0; transform: translateX(18px) scale(.97); } }
.dot-badge:not(.hidden) { animation: badgepop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes badgepop { from { transform: scale(0); } }
/* sidebar */
.side-link { transition: background .15s, color .15s, padding-left .15s; }
.side-link:hover { padding-left: 14px; }
.side-link:hover i .gicon { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }
.side-link .cnt.on { animation: cntpulse 2s ease-in-out infinite; }
@keyframes cntpulse { 50% { box-shadow: 0 0 0 4px rgba(47,211,110,.12); } }
.quick a:hover .gicon { animation: wiggle .5s; }
.side-online-box { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.side-online-box .side-online { padding: 2px 4px; background: none; border: 0; }
.side-users { display: grid; gap: 2px; max-height: 210px; overflow-y: auto; }
.su { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px; cursor: pointer; animation: slidein .3s; }
.su:hover { background: var(--panel2); }
.su-av { position: relative; flex: none; }
.su-av .onl { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--panel); }
.su-n { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-w { font-size: 10px; color: var(--dim); font-weight: 700; white-space: nowrap; }
.su-more { font-size: 11px; color: var(--muted); padding: 2px 6px; }
/* tiles & buttons */
.tile .art .gicon { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(3deg); } }
.btn-gold:not(:disabled), .btn-green.btn-lg:not(:disabled) { background-size: 200% 100%; }
.page { animation: pagein .3s cubic-bezier(.2,1,.4,1); }
@keyframes pagein { from { opacity: 0; transform: translateY(10px) scale(.995); } }
.result-pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
/* blackjack history + replay */
.bj-hid { font-family: ui-monospace, monospace; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--panel2); }
.replay { display: grid; gap: 14px; }
.replay-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.replay-head h2 { margin: 0; }
.replay-table { min-height: 340px; border-radius: 18px; padding: 18px; display: grid; gap: 22px; align-content: start; justify-items: center; background: radial-gradient(ellipse at 50% 20%, #1f7a4a, #0f4d2d 70%); border: 8px solid #3b2414; }
.rp-dealer { display: grid; justify-items: center; gap: 8px; }
.rp-seats { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.rp-seat { display: grid; justify-items: center; gap: 6px; }
.rp-late { animation: fadein .3s both; }
.replay-ctrl { display: flex; align-items: center; gap: 8px; }
.replay-ctrl input[type=range] { flex: 1; accent-color: var(--accent); }

/* =================== Round 7: jungle green theme =================== */
:root {
  --bg: #101317; --bg2: #14181d; --panel: #1a1f26; --panel2: #1f252d; --panel3: #29303a;
  --line: #222932; --line2: #2e3640; --text: #eef3f0; --muted: #8b95a0; --dim: #5a646e;
  --accent: #3ecf5e; --accent-d: color-mix(in srgb, var(--accent), #000 25%); --blue: var(--accent); --blue-d: var(--accent-d); --purple: var(--accent);
  --gold: #f7c11a; --gold-d: #d48a06;
}
#app { background: radial-gradient(ellipse at 55% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%), radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 40%), var(--bg); }
.topbar, .sidenav, .chat { background: var(--bg2); }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #fff 30%), var(--accent) 55%, var(--accent-d)); color: #fff; box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.btn-gold { background: linear-gradient(180deg, #ffd84a, var(--gold) 55%, #f29a0c); color: #2a1a00; box-shadow: 0 4px 16px rgba(247,193,26,.35), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost { border-color: var(--line2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); }
.logo-mark { background: linear-gradient(160deg, color-mix(in srgb, var(--accent), #fff 30%), var(--accent) 55%, #127a2e); }
.nav a.active { background: transparent; color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav { background: transparent; border-color: transparent; }
.balance-pill, .power-pill, .me-chip, .icon-btn { background: var(--panel); border-color: var(--line2); border-radius: 12px; }
#deposit-btn { border-radius: 12px; }
.coin { background: radial-gradient(circle at 35% 30%, #c9ffd6, var(--accent) 55%, #127a2e); color: #063313; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }
.side-link.active { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 3%, transparent)); box-shadow: inset 2px 0 0 var(--accent); }
.side-profile { background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--panel); }
.sp-xp div, .xpbar div { background: linear-gradient(90deg, var(--accent), #a6f7b8); }
.side-promo { background: linear-gradient(135deg, #f7c11a, #f2830c); color: #2a1a00; }
.panel, .tile, .case-card, .row, .stat-tile { border-radius: 16px; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 40%), var(--panel); }
.hero { background: radial-gradient(circle at 75% 40%, rgba(160,255,180,.35), transparent 45%), linear-gradient(120deg, #0d4a22, #1c8f3c 55%, var(--accent)); }
.hero .btn { color: var(--accent-d); }
.pool-card { background: linear-gradient(120deg, #0f5a27, #1fa843 60%, var(--accent)); }
/* chat like the reference: card per message, time on the right */
.chat-head { padding: 12px 12px 8px; }
.chat-tabs button.active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #b9f5c7; }
.chat-list { gap: 6px; padding: 6px 12px 10px; }
.msg { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.msg:hover { background: var(--panel2); }
.msg .who { font-size: 12px; color: var(--muted); }
.msg .uname-link:not(.nf) { color: #c4ccd4; font-weight: 600; }
.msg .txt { color: #f1f4f2; font-size: 14px; }
.msg .time { align-self: flex-start; }
.msg .av { box-shadow: 0 0 0 2px var(--line2); }
.chat-form { border-top: 0; padding: 10px 12px 14px; }
.chat-form .chat-input-wrap input, .chat-form input { background: var(--panel); border-color: var(--line2); border-radius: 14px; height: 46px; }
.chat-form .send { background: linear-gradient(180deg, #ffd84a, var(--gold) 55%, #f29a0c); color: #2a1a00; border-radius: 14px; height: 46px; width: 50px; padding: 0; font-weight: 900; }
.sys { border-radius: 14px; }
.livedot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chat-online, .side-online { color: var(--muted); }
/* recent wins / drop cards */
.drop-card { border-radius: 14px; border: 1px solid var(--line); border-left-width: 1px; border-bottom: 3px solid var(--rc); background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--rc) 14%, var(--panel))); }
/* battles-style rows (spectate) */
.section-row { display: flex; align-items: baseline; gap: 12px; }
.battle-head { display: grid; grid-template-columns: 90px 1fr 180px 220px; padding: 0 18px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.battle-row { display: grid; grid-template-columns: 90px 1fr 180px 220px; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.battle-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.round-hex { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px 18px 18px 4px; background: linear-gradient(160deg, #2f6b3c, #183a22); border: 2px solid #3d8a4f; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); font-family: var(--display); font-weight: 900; font-size: 22px; }
.battle-val { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-weight: 800; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: #b9f5c7; text-transform: none; font-size: 12px; }
.live-pill .livedot { width: 7px; height: 7px; }
/* misc accents */
.seg > button.active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #c9f7d3; }
.tile .tag.live, .side-link .live { background: var(--accent); color: #062b10; }
.cell.win { animation-name: winflash; }
.mychip { background: radial-gradient(circle, #c9ffd6 45%, var(--accent) 46%); color: #062b10; }
.result-pop { border-color: var(--accent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); }
::-webkit-scrollbar-thumb { background: #2a333d; }

/* =================== Round 8: custom art everywhere =================== */
.ico { display: inline-block; vertical-align: -0.15em; flex: none; }
.btn .ico, .side-link .ico, .menu .ico { margin-right: 2px; }
.art-svg { display: block; }
.av { font-size: 0 !important; overflow: hidden; }
.av .art-svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.slot-svg { width: 74px; height: 74px; }
.paytable .slot-svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.paytable span:first-child { letter-spacing: 0; display: inline-flex; gap: 1px; }
.case-box { font-size: 0; background: none !important; box-shadow: none !important; width: auto !important; height: auto !important; filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--cc) 40%, transparent)); }
.case-box::before { display: none; }
.emote .art-svg { width: 20px; height: 20px; }
.ep .art-svg { margin: 0 auto; }
.name-badge .ico { vertical-align: -2px; }
.fx-p .ico, .fx-shard .ico { width: var(--sz, 28px); height: var(--sz, 28px); }
.fx-p .conf { display: block; width: calc(var(--sz) * .5); height: var(--sz); border-radius: 2px; }
.fx-bomb .ico, .fx-boom .ico { display: block; }
.mtile .ico { width: 60%; height: 60%; }
.dealer-face { color: #fff; }
.game-pick .em .gicon { margin: 0 auto; }
.rps-picks button { display: grid; place-items: center; color: #fff; }
.rps-rounds div { display: inline-flex; align-items: center; gap: 4px; color: #fff; }
.float { font-size: 0; }
.spin-ico { animation: spin 1s linear infinite; }
.menu a .ico, .menu button .ico { margin-right: 8px; }
.wh-hrow span, .wh-head .ic { display: inline-flex; align-items: center; gap: 6px; }
.chat-head .ico, .cf-count .ico { vertical-align: -3px; }
.leave-pop { text-align: center; padding: 6px 4px; }
.leave-pop h2 { margin: 10px 0 6px; }
.leave-pop p { max-width: 380px; margin: 0 auto 18px; line-height: 1.5; }
.leave-ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; color: #ffb02e; background: radial-gradient(circle, rgba(255,176,46,.25), rgba(255,176,46,.05)); border: 1px solid rgba(255,176,46,.35); animation: popIn .35s ease-out; }
.leave-btns { display: flex; gap: 10px; justify-content: center; }
.leave-btns .btn { min-width: 140px; }
/* Full-screen case opening */
.case-overlay { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.case-overlay.in { opacity: 1; }
.co-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--cc) 30%, #0b0e12) 0%, rgba(6,8,10,.97) 65%); backdrop-filter: blur(8px); }
.co-bg::after { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.035) 0 8deg, transparent 8deg 16deg); animation: spin 40s linear infinite; }
.co-inner { position: relative; width: min(1100px, 94vw); display: flex; flex-direction: column; align-items: center; gap: 22px; transform: scale(.96); transition: transform .3s; }
.case-overlay.in .co-inner { transform: none; }
.co-head { display: flex; align-items: center; gap: 18px; }
.co-head small { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; font-size: 12px; }
.co-head h2 { margin: 2px 0 0; font-size: 30px; }
.co-reels { width: 100%; }
.co-reels .spinner { height: 170px; }
.co-result { width: 100%; display: none; }
.case-overlay.done .co-result { display: block; animation: popIn .4s ease-out; }
.case-overlay.done .co-reels { opacity: .35; transform: scale(.94); transition: .4s; }
.case-overlay.done .co-reels { position: absolute; top: 120px; pointer-events: none; }
.co-result .unbox-result { background: rgba(14,18,22,.92); border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; max-width: 760px; margin: 0 auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.av-font { font-weight: 900; line-height: 1; color: #fff; display: inline-block; }
/* Profile performance charts */
.perf { padding: 18px 18px 10px; }
.perf-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.perf-head .spacer { flex: 1; }
.perf-delta { margin-top: 6px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.cmp-pick select { height: 36px; padding: 0 12px; min-width: 170px; }
.pf-chart { position: relative; min-height: 260px; }
.ch-wrap { position: relative; }
.ch-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; }
.ch-ax { fill: #8b95a3; font-size: 11px; font-weight: 600; font-family: inherit; }
.ch-end { fill: #e6e9ee; font-size: 12px; font-weight: 800; font-family: inherit; paint-order: stroke; stroke: #14181d; stroke-width: 4px; }
.ch-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: chDraw 1.1s ease-out forwards; }
@keyframes chDraw { to { stroke-dashoffset: 0; } }
.ch-tip { position: absolute; pointer-events: none; background: rgba(12,15,19,.96); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12px; min-width: 150px; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 3; }
.ch-tip-t { color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.ch-tip-row { display: flex; align-items: center; gap: 6px; }
.ch-tip-row i, .ch-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ch-tip-row b { margin-left: auto; padding-left: 12px; }
.ch-legend { display: flex; gap: 16px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.perf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.perf-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.perf-card small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; display: flex; gap: 6px; align-items: center; }
.perf-card.good { border-color: rgba(45,176,79,.35); background: linear-gradient(180deg, rgba(45,176,79,.10), var(--panel)); }
.perf-card.bad { border-color: rgba(229,72,77,.35); background: linear-gradient(180deg, rgba(229,72,77,.10), var(--panel)); }
.pc-game { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.perf-card > span { font-size: 13px; color: var(--muted); }
.dbars, .pbars { display: flex; flex-direction: column; gap: 9px; }
.dbar { display: grid; grid-template-columns: 130px 1fr 92px; align-items: center; gap: 10px; font-size: 13px; }
.dbar-l { display: flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-ico { flex: none; }
.dbar-track { position: relative; height: 14px; }
.dbar-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(255,255,255,.25); }
.dbar-fill { position: absolute; top: 0; bottom: 0; width: 0; animation: barGrow .8s ease-out forwards; }
.dbar-fill.up { background: #2db04f; border-radius: 0 4px 4px 0; }
.dbar-fill.down { background: #e5484d; border-radius: 4px 0 0 4px; }
@keyframes barGrow { to { width: var(--w); } }
.dbar-v { text-align: right; font-variant-numeric: tabular-nums; }
.pbar { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.pbar-stack { display: flex; flex-direction: column; gap: 3px; }
.pbar-row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: center; }
.pbar-row b { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.pbar-track { height: 10px; background: rgba(255,255,255,.05); border-radius: 4px; overflow: hidden; }
.pbar-fill { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; animation: barGrow .8s ease-out forwards; }
.h2h { padding: 6px 16px; }
.h2h-row { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.h2h-row:last-child { border-bottom: 0; }
.h2h-row > span:first-child { text-align: left; } .h2h-row > span:last-child { text-align: right; }
.h2h-row small { text-align: center; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.h2h-row .lead { color: #fff; font-weight: 800; }
.h2h-top span { display: flex; align-items: center; gap: 8px; } .h2h-top span:last-child { justify-content: flex-end; }
@media (max-width: 1100px) { .perf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* How it works + disabled games */
.howto-btn { margin-left: 8px; }
.howto-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.howto-head small { text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 800; font-size: 11px; }
.howto-head h2 { margin: 2px 0; }
.howto-head p { margin: 0; }
.howto ol { margin: 14px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; line-height: 1.5; }
.howto ol li::marker { color: var(--accent); font-weight: 900; }
.howto-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.howto-foot .pill { display: inline-flex; align-items: center; gap: 5px; }
.disabled-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(255,59,78,.35); background: linear-gradient(90deg, rgba(255,59,78,.14), rgba(255,59,78,.03)); color: #ffb3ba; }
.disabled-banner.gm { border-color: rgba(247,193,26,.35); background: linear-gradient(90deg, rgba(247,193,26,.14), rgba(247,193,26,.03)); color: #ffe08a; }
.disabled-banner > div { flex: 1; display: flex; flex-direction: column; }
.disabled-banner span { color: var(--muted); font-size: 13px; }
.game-off > *:not(.disabled-banner):not(.page-head) { opacity: .35; pointer-events: none; filter: grayscale(.6); }
.game-hidden { display: none !important; }
.side-link.game-off-tag::after, .tile.game-off-tag::after { content: 'OFF'; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: rgba(255,59,78,.2); color: #ff8a95; margin-left: auto; }
.tile.game-off-tag::after { position: absolute; top: 12px; right: 12px; }
.tile.game-off-tag { filter: grayscale(.7); }
.gm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gm-game { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: .2s; }
.gm-game small { display: block; color: var(--muted); font-size: 12px; }
.gm-game.off { opacity: .55; }
.gm-game.off .gicon { filter: grayscale(1); }
.switch { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #39414c; transition: .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
/* Limbo */
.limbo-stage { position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at 50% 120%, #2a1b5e, #0d0b1c 70%); }
.limbo-sky span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .6; animation: twinkle 2.4s infinite; }
.limbo-sky span:nth-child(1) { left: 12%; top: 18%; } .limbo-sky span:nth-child(2) { left: 80%; top: 12%; animation-delay: .4s; } .limbo-sky span:nth-child(3) { left: 30%; top: 70%; animation-delay: .8s; }
.limbo-sky span:nth-child(4) { left: 66%; top: 60%; animation-delay: 1.2s; } .limbo-sky span:nth-child(5) { left: 90%; top: 40%; animation-delay: 1.6s; } .limbo-sky span:nth-child(6) { left: 6%; top: 50%; animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .1; } }
.limbo-rocket { color: #fff; transform: rotate(0); transition: transform .3s; }
.limbo-rocket.fly { animation: rocketFly .9s ease-out; }
.limbo-rocket.won { color: var(--accent); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 60%, transparent)); }
.limbo-rocket.crash { color: #ff6b79; transform: rotate(160deg) translateY(-10px); }
@keyframes rocketFly { 0% { transform: translateY(60px) scale(.8); } 60% { transform: translateY(-30px) scale(1.1); } 100% { transform: none; } }
.limbo-num { font-size: 76px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.limbo-num.win { color: var(--accent); text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); } .limbo-num.lose { color: #ff6b79; }
.limbo-target { color: var(--muted); font-weight: 700; }
.limbo-hist { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.limbo-hist span { padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 800; }
/* Keno */
.keno-wrap { display: flex; flex-direction: column; gap: 14px; }
.keno-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.kn { aspect-ratio: 1.15; border-radius: 10px; border: 0; background: #1f2630; color: #c8d0da; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); transition: transform .12s, background .15s; }
.kn:hover { transform: translateY(-2px); background: #273140; }
.kn.sel { background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; }
.kn.drawn.miss { background: #2b333f; color: #fff; box-shadow: inset 0 0 0 2px #4f8ff7; }
.kn.sel.drawn.hit { background: linear-gradient(180deg, var(--accent), #16a34a); color: #fff; animation: popIn .35s; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.kn.sel.miss:not(.drawn) { opacity: .55; }
.keno-pay { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.kp { min-width: 62px; padding: 6px 8px; border-radius: 10px; background: #1a2029; text-align: center; display: flex; flex-direction: column; }
.kp small { color: var(--muted); font-size: 11px; font-weight: 700; } .kp b { font-size: 14px; }
.kp.zero b { color: var(--muted); }
.kp.hit { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)); outline: 1px solid var(--accent); }
/* Tower */
.tower { display: flex; flex-direction: column; gap: 7px; max-width: 520px; margin: 0 auto; width: 100%; }
.tw-floor { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; opacity: .55; transition: opacity .2s; }
.tw-floor.active, .tw-floor.passed { opacity: 1; }
.tw-mult { text-align: right; font-weight: 800; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tw-floor.active .tw-mult { color: var(--gold); }
.tw-tiles { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 7px; }
.tw-tile { height: 44px; border-radius: 10px; border: 0; background: #252d38; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .15s; }
.tw-floor.active .tw-tile { background: linear-gradient(180deg, #34404f, #283240); box-shadow: inset 0 -3px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(247,193,26,.35); }
.tw-floor.active .tw-tile:hover { transform: translateY(-2px); background: #3b4859; }
.tw-tile[disabled] { cursor: default; }
.tw-tile.safe { background: linear-gradient(180deg, #22a447, #157a33); animation: popIn .3s; }
.tw-tile.boom { background: linear-gradient(180deg, #ff4d5e, #b3172a); animation: shake .4s; }
.tw-tile.trap-reveal { background: rgba(255,59,78,.18); }
.tw-tile.dim { opacity: .5; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
#pf-range button { padding: 6px 12px; min-width: 44px; }
.limbo-stage { width: 100%; align-self: stretch; }

/* =================== Round 9: chat polish, emotes, live games =================== */
/* Own messages */
.msg.mine { flex-direction: row-reverse; }
.msg.mine .body { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 14px 4px 14px 14px; padding: 7px 10px; margin-left: 26px; }
.msg.mine .who { flex-direction: row-reverse; justify-content: flex-start; gap: 6px; }
.msg.mine .who .time { margin-left: 0; margin-right: auto; }
.msg.mine .txt { text-align: right; }
.msg:not(.mine):not(.sys) .body { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 7px 10px; margin-right: 26px; }
.you-tag { font-size: 9px; font-weight: 900; letter-spacing: .06em; padding: 1px 5px; border-radius: 5px; background: var(--accent); color: #062b10; text-transform: uppercase; }
/* Online roll */
.chat-roll { overflow: hidden; margin: 0 12px 8px; height: 28px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.roll-track { display: inline-flex; gap: 8px; white-space: nowrap; height: 100%; align-items: center; }
.roll-track.moving { animation: roll var(--dur) linear infinite; }
.chat-roll:hover .roll-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.roll-u { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.roll-u .lvl { transform: scale(.85); }
/* Promo + drops */
.pool-card { position: relative; cursor: pointer; animation: promoIn .45s ease-out; }
@keyframes promoIn { from { opacity: 0; transform: translateY(6px); } }
.pool-card.promo-try { background: linear-gradient(110deg, #5b21b6, #7c3aed 55%, #a78bfa) !important; }
.pool-card.promo-play { background: linear-gradient(110deg, #1d4ed8, #2563eb 55%, #60a5fa) !important; }
.promo-art { flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); animation: float 3s ease-in-out infinite; }
.promo-dots, .drop-dots { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.promo-dots i, .drop-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.promo-dots i.on, .drop-dots i.on { background: #fff; width: 12px; border-radius: 3px; }
.chat-drops { margin: 0 12px 6px; }
.drop-slide { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--rc, #888) 45%, transparent); box-shadow: inset 0 0 22px color-mix(in srgb, var(--rc, #888) 14%, transparent); font-size: 12px; animation: promoIn .35s ease-out; cursor: pointer; }
.drop-slide.fresh { animation: dropPop .5s ease-out; }
@keyframes dropPop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.03); } }
.drop-slide small { display: block; font-size: 9px; letter-spacing: .1em; font-weight: 900; color: var(--rc, var(--muted)); }
.drop-slide span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Emotes */
.emote { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rc, #888) 55%, transparent) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--rc, #888) 22%, #12161b), #12161b) !important; box-shadow: 0 0 10px color-mix(in srgb, var(--rc, #888) 25%, transparent); animation: emotePop .4s cubic-bezier(.3,1.6,.5,1); }
.emote::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
.emote .art-svg { animation: emoteBob 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.emote:hover .art-svg { animation: emoteWiggle .5s ease-in-out infinite; }
.emote.r-legendary, .emote.r-mythic { box-shadow: 0 0 16px color-mix(in srgb, var(--rc) 55%, transparent); }
.emote.r-mythic .art-svg { filter: drop-shadow(0 0 6px var(--rc)); }
@keyframes emotePop { from { transform: scale(.4); opacity: 0; } }
@keyframes emoteBob { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes emoteWiggle { 25% { transform: rotate(-12deg) scale(1.15); } 75% { transform: rotate(12deg) scale(1.15); } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ep { position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ep:not(.locked):hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 18px color-mix(in srgb, var(--rc, var(--accent)) 40%, transparent); }
.ep:not(.locked):hover .art-svg { animation: emoteWiggle .5s ease-in-out infinite; }
.ep:not(.locked)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
.ep.locked .art-svg { filter: grayscale(1) brightness(.6); }
/* Live players list */
.lv-players { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.lv-ph { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lv-ph b { margin-left: auto; color: var(--text); }
#kn-players, #cr-players { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.lv-p { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.03); font-size: 12px; }
.lv-p.you { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.lv-p .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-p .a { font-weight: 800; font-variant-numeric: tabular-nums; }
/* Live keno */
.kn-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.kn-timer { display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: 8px 12px; border-radius: 12px; background: #11151a; border: 1px solid var(--line); }
.kn-timer b { font-size: 22px; font-variant-numeric: tabular-nums; } .kn-timer small { color: var(--muted); font-size: 11px; font-weight: 700; }
.kn-drawn { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.ball { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: radial-gradient(circle at 35% 30%, #fff, #b9c3d0 60%, #7b8796); color: #1b2230; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.ball.empty { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.ball.hit { background: radial-gradient(circle at 35% 30%, #d9ffe2, var(--accent) 60%, #168a35); color: #052b10; }
.ball.new { animation: ballIn .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes ballIn { from { transform: translateY(-30px) scale(.3); opacity: 0; } }
.kn.drawn:not(.sel) { background: #2b333f; color: #fff; box-shadow: inset 0 0 0 2px #4f8ff7; }
.kn.hit { background: linear-gradient(180deg, var(--accent), #16a34a) !important; color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); animation: popIn .35s; }
.kn:disabled { cursor: default; } .kn:disabled:hover { transform: none; }
.kn-hist { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.kn-hrow { display: flex; gap: 4px; align-items: center; font-size: 11px; } .kn-hrow small { color: var(--muted); width: 44px; }
.kn-hrow i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); font-weight: 800; }
/* Crash */
.crash-stage { position: relative; min-height: 420px; padding: 0 !important; overflow: hidden; background: radial-gradient(ellipse at 20% 100%, #1b2a20, #0d1013 70%) !important; }
.crash-stage.shake { animation: shake .4s; }
#cr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.cr-mult { font-size: 84px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.cr-mult.flying { color: #fff; } .cr-mult.crashed { color: #ff5d6c; animation: popIn .3s; }
.cr-sub { color: var(--muted); font-weight: 700; margin-top: 6px; }
.cr-rocket { position: absolute; transform: translate(-50%, -50%) rotate(40deg); color: #fff; transition: opacity .2s; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 70%, transparent)); pointer-events: none; }
.cr-rocket.betting { opacity: 0; }
.cr-rocket.crashed { color: #ff5d6c; filter: drop-shadow(0 0 16px rgba(255,59,78,.9)); animation: boomOut .6s forwards; }
@keyframes boomOut { to { transform: translate(-50%, -50%) scale(2.2) rotate(200deg); opacity: 0; } }
.cr-hist { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.cr-hist span { padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.06); }
.cr-hist .hi { color: var(--accent); } .cr-hist .lo { color: #ff7b87; }
#cr-btn.cashing { animation: pulseGold 1s ease-in-out infinite; }
@keyframes pulseGold { 50% { box-shadow: 0 0 0 6px rgba(247,193,26,.25), 0 6px 22px rgba(247,193,26,.5); } }
/* Tower duel */
.duel-hero { display: flex; gap: 22px; align-items: center; padding: 22px; margin-bottom: 18px; background: linear-gradient(120deg, rgba(124,58,237,.22), var(--panel) 60%) !important; }
.duel-hero h2 { margin: 0 0 6px; } .duel-hero p { margin: 0 0 14px; max-width: 620px; }
.duel-create { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.duel-status { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.duel-status.done.win { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), var(--panel)); }
.du-clock { font-weight: 900; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.du-clock.warn { color: #ff7b87; animation: pulseRed 1s infinite; }
@keyframes pulseRed { 50% { background: rgba(255,59,78,.2); } }
.duel-arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.duel-vs { align-self: center; font-weight: 900; font-size: 26px; color: var(--muted); }
.duel-side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; transition: .3s; }
.duel-side.mine { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.duel-side.won { box-shadow: 0 0 0 2px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.duel-side.lost { opacity: .6; filter: grayscale(.4); }
.duel-side.empty { display: grid; place-items: center; min-height: 380px; }
.duel-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); text-align: center; }
.duel-wait .ico { animation: spin 3s linear infinite; }
.duel-player { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.tw-tile.chosen { background: linear-gradient(180deg, #4f8ff7, #2b5fc4) !important; color: #fff; }
.tw-tiles { position: relative; }
.du-ready { position: absolute; right: -6px; top: -8px; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: #4f8ff7; color: #fff; animation: popIn .3s; }
/* Roulette lobby + other bets v2 */
.rl-lobby { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.rl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden; }
.rl-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rtc, var(--accent)); }
.rl-card.rt-turbo { --rtc: #4f8ff7; } .rl-card.rt-high { --rtc: #f7c11a; }
.rl-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rtc, var(--accent)) 50%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.rl-card-top { display: flex; gap: 12px; align-items: center; }
.rl-card-top h3 { margin: 0 0 2px; }
.rl-card-top .muted { font-size: 13px; }
.rl-st { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; background: rgba(255,255,255,.06); }
.rl-st.bet { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); } .rl-st.spin { color: #ffd84a; }
.rl-st.res { min-width: 34px; justify-content: center; font-size: 15px; color: #fff; }
.rl-st.red, .rh.red { background: #d32f3e; } .rl-st.black, .rh.black { background: #23262e; } .rl-st.green, .rh.green { background: #1d9e50; }
.rl-card-hist { display: flex; gap: 4px; flex-wrap: wrap; min-height: 24px; }
.rh { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.rl-card-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rl-card-meta { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); flex: 1; }
.av-stack { display: flex; align-items: center; }
.av-stack > span { margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.av-stack > span:first-child { margin-left: 0; }
.av-stack > span.betting { box-shadow: 0 0 0 2px var(--accent); }
.av-stack b { margin-left: 6px; font-size: 12px; color: var(--muted); }
.pl-row.v2 { align-items: flex-start; padding: 10px; gap: 10px; }
.pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pl-rec { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; }
.pl-rec .w { color: var(--accent); } .pl-rec .l { color: #ff7b87; }
.pl-rec .wr { width: 60px; height: 5px; border-radius: 3px; background: rgba(255,59,78,.4); overflow: hidden; }
.pl-rec .wr i { display: block; height: 100%; background: var(--accent); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-tok { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--panel3); color: #dfe3ea; animation: popIn .25s; }
.chip-tok i { font-style: normal; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: radial-gradient(circle, #ffe08a 0 45%, #c98a0c 46% 55%, #ffe08a 56%); color: #3b2a00; border: 2px dashed rgba(255,255,255,.5); }
.chip-tok.red { background: rgba(211,47,62,.35); } .chip-tok.black { background: #2a2c35; } .chip-tok.green { background: rgba(29,158,80,.4); }
.chip-more { font-size: 11px; color: var(--muted); align-self: center; }
/* =================== Loading, offline, suspended =================== */
#route-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: linear-gradient(90deg, var(--accent), #f7c11a); box-shadow: 0 0 10px var(--accent); opacity: 0; pointer-events: none; }
#route-bar.go { animation: routeGo .6s ease-out; }
@keyframes routeGo { 0% { width: 0; opacity: 1; } 70% { width: 85%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
#splash { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #12301c, #07090b 70%); transition: opacity .45s, visibility .45s; }
#splash.done { opacity: 0; } #splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.splash-logo { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 900; letter-spacing: .04em; color: #fff; font-style: italic; }
.sl-mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-size: 20px; background: linear-gradient(135deg, var(--accent), #16a34a); color: #062b10; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 50%, transparent); animation: markPulse 1.4s ease-in-out infinite; }
@keyframes markPulse { 50% { transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 80%, transparent); } }
.splash-cards { display: flex; gap: 10px; height: 64px; }
.splash-cards i { width: 44px; height: 62px; border-radius: 8px; background: linear-gradient(160deg, #fff, #dfe3ea); box-shadow: 0 6px 16px rgba(0,0,0,.5); animation: cardDeal 1.6s ease-in-out infinite; position: relative; }
.splash-cards i::after { content: ''; position: absolute; inset: 8px; border-radius: 4px; border: 2px solid #e5484d; }
.splash-cards i:nth-child(2) { animation-delay: .2s; } .splash-cards i:nth-child(2)::after { border-color: #1b1b24; }
.splash-cards i:nth-child(3) { animation-delay: .4s; }
@keyframes cardDeal { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-14px) rotate(-8deg); } }
.splash-bar { width: 220px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.splash-bar div { height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #f7c11a); animation: barSlide 1.1s ease-in-out infinite; }
@keyframes barSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.splash-tip { color: var(--muted); font-weight: 700; font-size: 14px; min-height: 20px; }
#offline, #suspended { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; background: rgba(5,7,9,.85); backdrop-filter: blur(6px); padding: 16px; }
#offline.hidden, #suspended.hidden { display: none; }
.off-box { max-width: 380px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: popIn .3s; }
.off-box h2 { margin: 14px 0 6px; } .off-box p { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.off-spin { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 5px solid rgba(255,255,255,.08); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.sus-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #ff6b79, #d32f3e); box-shadow: 0 0 30px rgba(255,59,78,.5); }
.sus-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; text-align: left; background: #11151a; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.sus-card small { color: var(--muted); font-weight: 700; }
/* Switched-off games: greyed with a lock for everyone */
a.game-off-tag { opacity: .45; filter: grayscale(1); }
a.game-locked { cursor: not-allowed; }
.side-link.game-off-tag::after { content: 'OFF'; }
/* =================== Mobile =================== */
.m-only, .m-tabs, .m-backdrop { display: none; }
@media (max-width: 960px) {
  :root { --top-h: 56px; }
  body { overscroll-behavior: none; }
  #app { height: 100dvh; grid-template-columns: 1fr; grid-template-rows: var(--top-h) 1fr; grid-template-areas: "top" "main"; }
  .m-only { display: grid; }
  .topbar { padding: 0 8px; gap: 6px; }
  .topbar .logo { font-size: 0; gap: 0; }
  .topbar .logo .logo-mark { margin: 0; }
  .wallet { gap: 6px; margin-left: auto; }
  .power-pill { display: none !important; }
  .balance-pill { padding: 0 10px; height: 36px; font-size: 14px; }
  #deposit-btn { padding: 0 10px; height: 36px; font-size: 13px; }
  #daily-btn, #sound-btn { display: none; }
  .me-chip > span:not(.av), .me-chip .caret, .me-chip .name { display: none; }
  #m-chat { position: relative; }
  #m-chat .dot-badge { position: absolute; top: -4px; right: -4px; }
  .sidenav, .chat { display: flex !important; position: fixed; top: var(--top-h); bottom: 62px; z-index: 600; transition: transform .28s cubic-bezier(.3,.8,.3,1); box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .sidenav { left: 0; width: min(86vw, 300px); transform: translateX(-105%); }
  .chat { right: 0; width: min(100vw, 420px); transform: translateX(105%); }
  body.nav-open .sidenav, body.chat-open .chat { transform: none; }
  .sidenav .side-link span, .sidenav h5, .quick, .side-link .cnt, .side-profile, .side-online { display: revert !important; }
  .side-link { justify-content: flex-start !important; padding: 0 10px !important; }
  .m-backdrop { display: block; position: fixed; inset: var(--top-h) 0 62px 0; z-index: 550; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .m-backdrop, body.chat-open .m-backdrop { opacity: 1; pointer-events: auto; }
  .m-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 62px; z-index: 700; background: rgba(14,17,21,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(10px); }
  .m-tabs > * { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 700; position: relative; text-decoration: none; background: none; border: 0; }
  .m-tabs > *:active { color: var(--text); }
  .m-tabs .dot-badge { position: absolute; top: 6px; right: calc(50% - 20px); }
  body.chat-open [data-mtab="chat"], body.nav-open [data-mtab="games"] { color: var(--accent); }
  .main { padding: 12px 12px 80px !important; }
  .page-head { flex-wrap: wrap; gap: 6px 10px; }
  .page-head h1 { font-size: 22px; }
  .page-head .sub { width: 100%; order: 3; }
  .howto-btn { margin-left: auto; }
  /* Layouts collapse to one column */
  .game-layout, .room-stage, .bj-lobby, .cf-layout, .profile-cols, .rl-top, .wh-top, .bj-hero, .duel-arena, .rl-lobby { grid-template-columns: 1fr !important; }
  .game-layout .side { order: 2; } .game-layout .stage { order: 1; }
  .duel-vs { display: none; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr) !important; }
  .perf-cards { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr) !important; }
  .tile.big, .tile.wide, .tile.med, .tile.sm { grid-column: span 1 !important; min-height: 130px; }
  .tile.big { grid-column: span 2 !important; }
  .hero { padding: 22px !important; } .hero h2 { font-size: 28px !important; } .podium { display: none; }
  .profile-hero { flex-direction: column; text-align: center; } .profile-hero .actions { justify-content: center; }
  .dbar, .pbar { grid-template-columns: 96px 1fr 74px; } .pbar { grid-template-columns: 96px 1fr; }
  .h2h-row { grid-template-columns: 1fr 90px 1fr; font-size: 13px; }
  /* Game specifics */
  .rl-board, .wh-cols { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rl-board { padding-bottom: 6px; }
  .wh-cols { grid-template-columns: repeat(4, minmax(150px, 1fr)) !important; }
  .wh-betbar { flex-wrap: wrap; }
  .wheel-box { transform: scale(.82); transform-origin: top center; margin-bottom: -60px; }
  .bj-table { transform: scale(.62); transform-origin: top center; margin-bottom: -200px; }
  .mines-grid { gap: 6px; } .mtile { min-height: 0; }
  .keno-board { gap: 5px; } .kn { font-size: 13px; border-radius: 8px; }
  .cr-mult { font-size: 54px; } .crash-stage { min-height: 300px; }
  .limbo-num { font-size: 52px; } .limbo-stage { min-height: 300px; }
  .tw-tile { height: 38px; } .tw-floor { grid-template-columns: 46px 1fr; }
  .co-reels .spinner { height: 130px; } .co-head h2 { font-size: 22px; }
  .case-overlay .co-inner { width: 100vw; padding: 0 8px; }
  .modal-box { width: calc(100vw - 20px) !important; max-height: calc(100dvh - 40px); }
  .gm-games { grid-template-columns: 1fr; }
  #gm-users .row { flex-wrap: wrap; }
  .lb th:nth-child(n+4), .lb td:nth-child(n+4) { display: none; }
  .bh-table th:nth-child(3), .bh-table td:nth-child(3), .bh-table th:nth-child(4), .bh-table td:nth-child(4) { display: none; }
  .msg.mine .body, .msg:not(.mine):not(.sys) .body { margin-left: 0; margin-right: 0; }
  .chat-form input { font-size: 16px; } /* stops iOS zooming into the input */
  input, select, textarea { font-size: 16px; }
  .toast-wrap, #toasts { bottom: 76px !important; }
}
@media (max-width: 420px) {
  .balance-pill .coin { display: none; }
  .tiles { grid-template-columns: 1fr 1fr !important; }
  .bj-table { transform: scale(.52); margin-bottom: -260px; }
}
.keno-board { width: 100%; }
.bj-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bj-info .panel { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
@media (max-width: 960px) { .me-chip { display: none !important; } .kn-top { gap: 8px; } .ball { width: 30px; height: 30px; } }
/* Theme: derived surfaces follow the Game Master's chosen background/panel colours */
:root {
  --bg2: color-mix(in srgb, var(--bg), #fff 2.5%);
  --panel2: color-mix(in srgb, var(--panel), #fff 3%);
  --panel3: color-mix(in srgb, var(--panel), #fff 8%);
  --line: color-mix(in srgb, var(--panel), #fff 5%);
  --line2: color-mix(in srgb, var(--panel), #fff 11%);
  --gold-d: color-mix(in srgb, var(--gold), #000 18%);
}
/* Setup wizard */
#setup { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: center; padding: 16px; overflow: auto; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg); }
.setup-card { width: min(480px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: popIn .35s; }
.setup-card h1 { margin: 10px 0 6px; font-size: 26px; }
.setup-card form { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.setup-hero { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.setup-hero .gicon { animation: float 3s ease-in-out infinite; } .setup-hero .gicon:nth-child(2) { animation-delay: -1s; } .setup-hero .gicon:nth-child(3) { animation-delay: -2s; }
.setup-steps { display: flex; gap: 6px; justify-content: center; } .setup-steps i { width: 26px; height: 5px; border-radius: 3px; background: var(--line2); } .setup-steps i.on { background: var(--accent); }
.setup-note { font-size: 12px; margin: 12px 0 0; display: flex; gap: 6px; align-items: center; }
.setup-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
/* Site settings */
.site-settings { padding: 18px; }
.ss-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-settings h4 { margin: 0 0 8px; display: flex; gap: 6px; align-items: center; }
.seo-preview { background: #fff; color: #202124; border-radius: 12px; padding: 12px 14px; font-family: Arial, sans-serif; }
.seo-preview small { color: #70757a; font-size: 11px; display: block; margin-bottom: 4px; }
.seo-preview b { display: block; color: #1a0dab; font-size: 18px; font-weight: 400; } .seo-preview .url { color: #006621; font-size: 13px; } .seo-preview p { margin: 4px 0 0; font-size: 13px; color: #4d5156; }
.ss-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ss-preset { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--b); border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.ss-preset i { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--a) 50%, var(--g) 50%); }
.ss-preset:hover { transform: translateY(-2px); }
.ss-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ss-color { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--panel2); cursor: pointer; }
.ss-color input { width: 38px; height: 38px; border: 0; padding: 0; background: none; border-radius: 8px; cursor: pointer; }
.ss-color span { display: flex; flex-direction: column; font-weight: 700; font-size: 13px; } .ss-color small { color: var(--muted); font-weight: 600; }
.ss-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); margin-bottom: 8px; }
.ss-pv-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.ss-pv-top .logo-mark { width: 22px; height: 22px; } .ss-pv-bal { margin-left: auto; padding: 4px 10px; border-radius: 8px; background: var(--panel); font-weight: 800; font-size: 13px; }
.ss-pv-body { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; align-items: center; }
.ss-pv-card { width: 70px; height: 46px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.ss-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 960px) { .ss-cols { grid-template-columns: 1fr; } }
/* Tour */
#tour { position: fixed; inset: 0; z-index: 2600; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(3,5,7,.72), 0 0 0 3px var(--accent), 0 0 30px var(--accent); transition: all .35s cubic-bezier(.3,.8,.3,1); pointer-events: none; }
.tour-pop { position: fixed; width: 340px; max-width: calc(100vw - 24px); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: left .35s, top .35s; }
.tour-pop.in { animation: popIn .3s; }
.tour-pop small { color: var(--accent); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tour-pop h3 { margin: 4px 0 6px; } .tour-pop p { margin: 0 0 10px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.tour-dots { display: flex; gap: 4px; margin-bottom: 10px; } .tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); } .tour-dots i.on { width: 16px; background: var(--accent); }
.tour-btns { display: flex; gap: 6px; align-items: center; }
/* =================== Dos =================== */
.dcard { --cc: #e5484d; --w: 74px; position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.45); border-radius: calc(var(--w) * .12); background: var(--cc); border: calc(var(--w) * .06) solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.45); display: grid; place-items: center; color: #fff; font-family: Rubik, sans-serif; user-select: none; overflow: hidden; }
.dcard.c-red { --cc: #e5484d; } .dcard.c-yellow { --cc: #f5b400; } .dcard.c-green { --cc: #22a447; } .dcard.c-blue { --cc: #2f80ff; } .dcard.c-wild { --cc: #15181d; }
.dcard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%); }
.dc-oval { position: relative; width: 78%; height: 62%; border-radius: 50%; background: #fff; transform: rotate(-24deg); display: grid; place-items: center; color: var(--cc); box-shadow: inset 0 0 0 3px rgba(0,0,0,.06); }
.dcard.c-wild .dc-oval { background: #fff; }
.dc-oval > * { transform: rotate(24deg); }
.dc-oval b { font-size: calc(var(--w) * .46); font-weight: 900; line-height: 1; text-shadow: 2px 2px 0 rgba(0,0,0,.12); }
.dc-c { position: absolute; font-weight: 900; font-size: calc(var(--w) * .2); line-height: 1; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.dc-c.tl { top: 6%; left: 9%; } .dc-c.br { bottom: 6%; right: 9%; transform: rotate(180deg); }
.dc-quad { width: 58%; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; border-radius: 50%; overflow: hidden; transform: rotate(24deg) !important; }
.dc-quad i:nth-child(1) { background: #e5484d; } .dc-quad i:nth-child(2) { background: #2f80ff; } .dc-quad i:nth-child(3) { background: #f5b400; } .dc-quad i:nth-child(4) { background: #22a447; }
.dc-quad.sm { width: 40%; position: absolute; } .dc-plus { position: relative; color: #15181d; font-size: calc(var(--w) * .3) !important; }
.dcard.back { --cc: #15181d; background: repeating-linear-gradient(45deg, #1d2128 0 6px, #15181d 6px 12px); }
.dcard.back .dc-oval { background: #e5484d; }
.dc-logo { color: #ffd84a !important; font-size: calc(var(--w) * .26) !important; letter-spacing: .02em; font-style: italic; }
.dos-hero { display: flex; gap: 26px; align-items: center; padding: 22px; margin-bottom: 16px; background: linear-gradient(120deg, rgba(229,72,77,.18), var(--panel) 65%) !important; }
.dos-hero h2 { margin: 0 0 6px; }
.dos-fan { display: flex; padding-left: 20px; }
.dos-fan .dcard { --w: 62px; margin-left: -26px; transform: rotate(calc((var(--k, 0) * 1deg))); transition: transform .2s; }
.dos-fan .dcard:nth-child(1) { transform: rotate(-20deg) translateY(10px); } .dos-fan .dcard:nth-child(2) { transform: rotate(-10deg) translateY(2px); } .dos-fan .dcard:nth-child(4) { transform: rotate(10deg) translateY(2px); } .dos-fan .dcard:nth-child(5) { transform: rotate(20deg) translateY(10px); }
.dos-fan:hover .dcard:nth-child(1) { transform: rotate(-28deg) translate(-14px, 14px); } .dos-fan:hover .dcard:nth-child(5) { transform: rotate(28deg) translate(14px, 14px); }
.dos-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dos-tier { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; color: inherit; }
.dos-tier:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.dt-chip { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; border: 5px dashed rgba(255,255,255,.55); box-shadow: 0 0 0 4px var(--tc), 0 6px 16px rgba(0,0,0,.4); background: var(--tc); }
.dos-tier.t0 { --tc: #6b7280; } .dos-tier.t1 { --tc: #e5484d; } .dos-tier.t2 { --tc: #2f80ff; } .dos-tier.t3 { --tc: #22a447; } .dos-tier.t4 { --tc: #111827; } .dos-tier.t5 { --tc: #8b5cf6; } .dos-tier.t6 { --tc: #d4a017; }
.dt-meta { font-size: 12px; color: var(--muted); font-weight: 700; } .dt-win { font-size: 11px; color: var(--gold); font-weight: 800; }
.dos-private { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dos-table { display: flex; flex-direction: column; gap: 12px; }
.dos-felt { position: relative; min-height: 400px; border-radius: 22px; padding: 18px; background: radial-gradient(ellipse at 50% 45%, #1f6b3b, #0f3b20 70%, #0a2615); box-shadow: inset 0 0 0 6px #3b2416, inset 0 0 0 9px #6b4325, inset 0 0 60px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; }
.dos-opps { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; width: 100%; }
.dos-opp { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); min-width: 170px; transition: .2s; }
.dos-opp.turn { border-color: var(--gold); box-shadow: 0 0 22px rgba(247,193,26,.35); }
.dos-opp.out { opacity: .4; }
.dos-opp-cards { display: flex; height: 50px; padding-left: 16px; }
.dos-opp-cards .dcard.mini { --w: 32px; margin-left: -18px; border-width: 2px; transform: rotate(calc((var(--i) - 4) * 4deg)); }
.dos-opp-info { display: flex; gap: 8px; align-items: center; font-size: 13px; } .dos-opp-info small { display: block; color: rgba(255,255,255,.65); }
.dos-one { color: #ffd84a; font-weight: 900; animation: pulseRed 1s infinite; }
.dos-turn-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.dos-turn-bar i { display: block; height: 100%; background: var(--gold); animation: turnDrain linear forwards; }
@keyframes turnDrain { from { width: 100%; } to { width: 0; } }
.dos-center { display: flex; align-items: center; gap: 34px; margin: auto 0; }
.dos-pile { position: relative; cursor: default; }
.dos-pile .dcard { --w: 84px; } .dos-pile .stack2, .dos-pile .stack3 { position: absolute; inset: 0; z-index: -1; }
.dos-pile .stack2 { transform: translate(3px, 3px); } .dos-pile .stack3 { transform: translate(6px, 6px); }
.dos-pile small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-weight: 800; color: rgba(255,255,255,.7); font-size: 12px; }
.dos-pile.can { cursor: pointer; animation: pileGlow 1.2s ease-in-out infinite; border-radius: 12px; }
@keyframes pileGlow { 50% { box-shadow: 0 0 0 4px rgba(247,193,26,.6), 0 0 30px rgba(247,193,26,.5); } }
.dos-discard { position: relative; }
.dos-discard .dcard { --w: 96px; }
.dos-discard .dcard.land { animation: cardLand .4s cubic-bezier(.3,1.4,.5,1); }
@keyframes cardLand { from { transform: translateY(-80px) rotate(-30deg) scale(1.2); opacity: 0; } }
.dos-colour { position: absolute; right: -16px; top: -16px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.dos-colour.c-red { background: #e5484d; } .dos-colour.c-yellow { background: #f5b400; } .dos-colour.c-green { background: #22a447; } .dos-colour.c-blue { background: #2f80ff; }
.dos-dir { color: rgba(255,255,255,.55); animation: spin 6s linear infinite; } .dos-dir.ccw { animation-direction: reverse; }
.dos-log { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: rgba(255,255,255,.7); max-width: 300px; }
.dos-log div:last-child { color: #fff; font-weight: 700; }
.dos-wait { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; }
.dos-wait h3 { margin: 0; } .dos-wait .share-box { min-width: min(420px, 80vw); }
.dos-cd { color: var(--gold); font-size: 1.3em; }
.dos-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(5,10,7,.75); backdrop-filter: blur(4px); animation: popIn .4s; z-index: 5; color: #fff; }
.dos-over h2 { margin: 6px 0 0; font-size: 30px; } .dos-over.win h2 { color: var(--gold); }
.dos-hand-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.dos-me { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.dos-me small { color: var(--muted); }
.dos-me.turn { color: var(--gold); }
.dos-yt { margin-left: auto; font-weight: 800; color: var(--gold); display: flex; gap: 8px; align-items: center; }
.dos-clock { padding: 2px 8px; border-radius: 8px; background: rgba(247,193,26,.15); } .dos-clock.warn { color: #ff7b87; background: rgba(255,59,78,.2); }
.dos-hand { display: flex; justify-content: center; padding: 16px 10px 6px 50px; overflow-x: auto; min-height: 140px; }
.dos-hand .dcard { --w: 80px; margin-left: calc(-40px + max(0px, (14 - var(--n)) * 3px)); transition: transform .15s, filter .15s; cursor: pointer; animation: dealIn .35s backwards; animation-delay: calc(var(--i) * 30ms); }
@keyframes dealIn { from { transform: translateY(40px); opacity: 0; } }
.dos-hand .dcard.ok:hover { transform: translateY(-22px) rotate(-3deg); z-index: 2; }
.dos-hand .dcard.ok { box-shadow: 0 0 0 3px rgba(247,193,26,.9), 0 6px 14px rgba(0,0,0,.45); }
.dos-hand .dcard.no { filter: brightness(.55) saturate(.6); cursor: not-allowed; }
.dos-hand .dcard.drawn { transform: translateY(-14px); }
.dcard.shake { animation: shake .35s; }
.dos-colours { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dos-colours button { height: 74px; border-radius: 14px; border: 3px solid #fff; color: #fff; font-weight: 900; font-size: 18px; text-transform: uppercase; cursor: pointer; }
.dos-colours .c-red { background: #e5484d; } .dos-colours .c-yellow { background: #f5b400; } .dos-colours .c-green { background: #22a447; } .dos-colours .c-blue { background: #2f80ff; }
.dos-colours button:hover { transform: scale(1.04); }
@media (max-width: 960px) {
  .dos-hero { flex-direction: column; } .dos-felt { min-height: 340px; padding: 12px; }
  .dos-opp { min-width: 0; padding: 8px; } .dos-discard .dcard { --w: 78px; } .dos-pile .dcard { --w: 66px; }
  .dos-hand .dcard { --w: 62px; margin-left: -34px; } .dos-log { display: none; } .dos-center { gap: 22px; }
}
.topbar .logo { white-space: nowrap; }
/* Keno v2 */
.kn-legend { display: flex; gap: 14px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.kn-legend span { display: inline-flex; gap: 6px; align-items: center; }
.kn-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-pick { background: linear-gradient(180deg, #8b5cf6, #6d28d9); } .lg-drawn { background: #1a2433; box-shadow: inset 0 0 0 2px #4f8ff7; } .lg-hit { background: linear-gradient(180deg, var(--accent), var(--accent-d)); box-shadow: 0 0 8px var(--accent); }
.kn-legend b { margin-left: auto; color: var(--text); font-size: 14px; }
.keno-board .kn { position: relative; font-size: 17px; aspect-ratio: 1.25; background: #1d242e; color: #aeb8c4; border: 1px solid rgba(255,255,255,.04); }
.keno-board .kn.sel { background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(109,40,217,.45), inset 0 -3px 0 rgba(0,0,0,.25); }
.keno-board .kn.sel::after { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.keno-board .kn.drawn:not(.sel) { background: #141c27; color: #7fb0ff; box-shadow: inset 0 0 0 2px #4f8ff7; }
.keno-board .kn.hit { background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #fff 20%), var(--accent-d)) !important; color: #fff; box-shadow: 0 0 20px var(--accent), inset 0 -3px 0 rgba(0,0,0,.25) !important; transform: translateY(-3px) scale(1.04); }
.keno-board .kn.hit::before { content: '★'; position: absolute; top: 2px; left: 5px; font-size: 10px; color: #fff; }
.keno-board .kn.sel.drawn:not(.hit), .keno-board .kn.sel:not(.drawn):disabled { }
.kn-hist-panel { margin-top: 14px; padding: 12px; border-radius: 14px; background: #10151b; border: 1px solid var(--line); }
.kn-hist-panel h4 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; font-size: 14px; } .kn-hist-panel h4 small { font-size: 11px; font-weight: 600; }
.kn-hist { margin: 0; gap: 8px; }
.kn-hrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.025); }
.kn-hrow small { width: 70px; flex: none; font-weight: 700; color: var(--muted); }
.kn-hrow b { margin-left: auto; font-size: 12px; white-space: nowrap; }
.kn-hballs { display: flex; gap: 4px; flex-wrap: wrap; }
.kn-hballs i { width: 24px; height: 24px; font-size: 11px; color: #0d1117; font-weight: 900; background: radial-gradient(circle at 35% 30%, #fff, #c6ced8 70%); }
.kn-hballs i.d1 { background: radial-gradient(circle at 35% 30%, #fff, #ff9aa5 70%); } .kn-hballs i.d2 { background: radial-gradient(circle at 35% 30%, #fff, #ffd27a 70%); } .kn-hballs i.d3 { background: radial-gradient(circle at 35% 30%, #fff, #8fd3ff 70%); } .kn-hballs i.d4 { background: radial-gradient(circle at 35% 30%, #fff, #b9a4ff 70%); }
.kn-hballs i.mine { outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: 0 0 8px var(--accent); }
/* Dos v2: thrown pile, history, timers, orbit */
.dos-discard { width: 140px; height: 160px; display: grid; place-items: center; }
.dos-discard .dcard { --w: 96px; position: absolute; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); transition: transform .3s; }
.dos-discard .dcard.under { filter: brightness(.82); }
.dos-discard .dcard.land { animation: cardThrow .5s cubic-bezier(.25,1.3,.5,1); }
@keyframes cardThrow { from { transform: translate(-120px, 160px) rotate(calc(var(--rot) - 120deg)) scale(1.25); opacity: 0; } 70% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) + 6deg)) scale(1.04); opacity: 1; } }
.dos-colour { z-index: 10; right: -4px; top: -4px; }
.dos-dir-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dos-dir { color: #ffd84a; filter: drop-shadow(0 0 8px rgba(255,216,74,.5)); animation: spin 3s linear infinite; }
.dos-orbit { position: absolute; left: 50%; top: 52%; width: min(520px, 80%); aspect-ratio: 2.2; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255,255,255,.12); pointer-events: none; animation: spin 18s linear infinite; }
.dos-orbit.ccw { animation-direction: reverse; }
.dos-orbit i { position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid rgba(255,216,74,.55); }
.dos-orbit i:nth-child(1) { top: -7px; left: 50%; transform: rotate(90deg); } .dos-orbit i:nth-child(2) { bottom: 18%; left: 4%; transform: rotate(-30deg); } .dos-orbit i:nth-child(3) { bottom: 18%; right: 4%; transform: rotate(210deg); }
.dos-orbit.ccw i { transform: scaleX(-1) rotate(90deg); }
.dos-center { position: relative; z-index: 1; }
.dos-hist { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 190px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; z-index: 2; }
.dos-hist h5 { margin: 0 0 2px; color: rgba(255,255,255,.75); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; display: flex; gap: 6px; align-items: center; }
.dh-row { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 9px; background: rgba(0,0,0,.25); font-size: 12px; color: #fff; animation: promoIn .3s; }
.dh-row.latest { background: rgba(255,216,74,.14); outline: 1px solid rgba(255,216,74,.4); }
.dh-row.you b { color: #8ff0a4; }
.dh-row small { display: flex; gap: 4px; align-items: center; color: rgba(255,255,255,.65); font-size: 11px; }
.dcard.tiny { --w: 22px; border-width: 1.5px; box-shadow: none; } .dcard.tiny .dc-c { display: none; } .dcard.tiny .dc-oval b { font-size: 9px; }
.dh-col { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dh-col.c-red { background: #e5484d; } .dh-col.c-yellow { background: #f5b400; } .dh-col.c-green { background: #22a447; } .dh-col.c-blue { background: #2f80ff; }
.dos-felt { padding-right: 220px; }
.dos-log { max-width: 260px; }
.dos-av { position: relative; display: inline-grid; place-items: center; }
.dos-ring { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%) rotate(-90deg); pointer-events: none; }
.dos-yt .dos-ring { position: static; transform: rotate(-90deg); }
.dos-ring circle { fill: none; stroke-width: 4; }
.dos-ring .bg { stroke: rgba(255,255,255,.12); }
.dos-ring .fg { stroke: var(--gold); stroke-dasharray: 125.6; stroke-linecap: round; animation: ringDrain linear forwards; }
@keyframes ringDrain { to { stroke-dashoffset: 125.6; } }
@keyframes turnDrain { to { width: 0; } }
.dos-opp-clock { font-size: 11px; font-weight: 900; }
.dos-turn-bar.mine { height: 5px; margin: -4px 0 6px; }
.dos-hand.shuffled .dcard { animation: shuffleIn .7s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes shuffleIn { from { transform: translateY(-140px) rotate(180deg) scale(.5); opacity: 0; } }
@media (max-width: 960px) { .dos-hist { display: none; } .dos-felt { padding-right: 12px; } .dos-orbit { display: none; } }
/* Dos v3: round table with seats around the edge */
.dos-layout { display: grid; grid-template-columns: 1fr 230px; gap: 12px; }
.dos-felt.ring-table { position: relative; display: block; min-height: 600px; padding: 0 !important; border-radius: 50% / 46%; }
.dos-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 320px; height: 260px; }
.dos-mid .dos-center { margin: 0; gap: 26px; }
.dos-mid .dos-wait { width: 300px; }
.dos-spin { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); pointer-events: none; animation: spinC 5s linear infinite; z-index: 0; }
.dos-spin.ccw { animation-name: spinCC; }
@keyframes spinC { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinCC { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.dos-spin path { fill: none; stroke: rgba(255,216,74,.75); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,216,74,.5)); }
.dos-dir-label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.dos-center, .dos-pile, .dos-discard { position: relative; z-index: 1; }
.dos-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 3; text-align: center; width: 150px; transition: left .4s, top .4s; }
.dos-seat.empty { opacity: .45; }
.dos-seat.empty .seat-av { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); display: grid; place-items: center; color: rgba(255,255,255,.6); }
.seat-av { position: relative; display: grid; place-items: center; }
.seat-av .av { box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.dos-seat.turn .seat-av .av { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(247,193,26,.6); }
.dos-seat.me .seat-av .av { box-shadow: 0 0 0 3px var(--accent); }
.dos-seat.out { opacity: .4; filter: grayscale(1); }
.seat-av .dos-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.seat-one { position: absolute; right: -8px; top: -6px; background: #ffd84a; color: #2a1a00; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 8px; animation: pulseRed 1s infinite; }
.seat-name { font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-count { font-size: 11px; color: rgba(255,255,255,.75); font-weight: 700; }
.seat-fan { position: relative; height: 54px; width: 120px; }
.seat-fan .dcard.mini { --w: 30px; position: absolute; left: calc(50% - 15px); top: 6px; border-width: 2px; transform: translateX(var(--x)) rotate(var(--r)); transform-origin: 50% 120%; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.dos-seat.bottom .seat-fan .dcard.mini { transform: translateX(var(--x)) rotate(calc(var(--r) * -1)) ; transform-origin: 50% -20%; }
.dos-seat.turn .seat-fan .dcard.mini { box-shadow: 0 0 0 1px rgba(247,193,26,.6), 0 2px 5px rgba(0,0,0,.4); }
.dos-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dos-side .dos-hist { position: static; width: auto; max-height: 470px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.dos-side .dos-hist h5 { color: var(--muted); }
.dos-side .dos-log { position: static; max-width: none; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.dos-side .dos-log div:last-child { color: var(--text); }
.dos-felt.ring-table .dos-over { border-radius: inherit; }
@media (max-width: 1200px) { .dos-layout { grid-template-columns: 1fr; } .dos-side { display: none; } }
@media (max-width: 960px) { .dos-felt.ring-table { min-height: 460px; border-radius: 28px; } .dos-mid { width: 220px; height: 200px; } .dos-spin { width: 210px; height: 210px; } .dos-seat { width: 96px; } .seat-fan { width: 80px; height: 40px; } .seat-fan .dcard.mini { --w: 22px; } .seat-av .av { --s: 36px !important; } }
.dos-felt.ring-table { min-height: 540px; } .dos-spin path { stroke-width: 5; }
/* Chat v3: one card per message; yours are tinted with the accent colour, with no tag */
.msg.mine { flex-direction: row; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, var(--panel)), color-mix(in srgb, var(--accent) 9%, var(--panel))); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.msg.mine .who { flex-direction: row; justify-content: flex-start; }
.msg.mine .who .time { margin-left: auto; margin-right: 0; }
.msg.mine .txt { text-align: left; }
.msg .body, .msg.mine .body, .msg:not(.mine):not(.sys) .body { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; min-width: 0; flex: 1; overflow: hidden; }
.msg .who { flex-wrap: wrap; min-width: 0; row-gap: 2px; }
.msg .who .gm-tag, .msg .who .lvl, .msg .who .name-badge { flex: none; }
.msg .uname-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .txt { overflow-wrap: anywhere; }
