/* ============ شات بنات العراق — Design system ============ */
:root {
  --bg: #0b0f1a; --bg-2: #111727; --bg-3: #171f33; --card: rgba(23, 31, 51, .78); --card-solid: #171f33;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #e8ecf6; --muted: #9aa5c1; --dim: #6b7694;
  --primary: #7c9cff; --primary-2: #5b7cff; --accent: #ffd54a; --success: #4fd68a; --danger: #ff6b7a; --warn: #ffb366; --female: #ff8fb1; --male: #7cc5ff;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 40px rgba(0,0,0,.45);
  --font: 'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; direction: rtl; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(124,156,255,.35); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #2a3454; border-radius: 8px; }

.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: float 18s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: #3b5bff; top: -160px; right: -120px; }
.bg-orbs span:nth-child(2) { width: 420px; height: 420px; background: #a855f7; bottom: -140px; left: -100px; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 320px; height: 320px; background: #06b6d4; top: 40%; left: 35%; animation-delay: -12s; opacity: .2; }
@keyframes float { to { transform: translate(40px, 60px) scale(1.1); } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: rgba(11,15,26,.75); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #a855f7); box-shadow: 0 6px 20px rgba(124,156,255,.35); }
.topnav { display: flex; gap: 4px; margin-inline-start: 10px; }
.topnav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; transition: .2s; }
.topnav a:hover, .topnav a.active { color: var(--text); background: rgba(124,156,255,.14); }
.topbar-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.wallet-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, rgba(255,213,74,.18), rgba(255,179,102,.12)); border: 1px solid rgba(255,213,74,.3); color: var(--accent); font-weight: 700; }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); }
.me-chip .nick { color: var(--c, var(--text)); font-weight: 700; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); transition: .15s; font-size: 16px; }
.icon-btn:hover { border-color: var(--line-2); background: #1d2742; transform: translateY(-1px); }
.icon-btn.danger { color: var(--danger); }
.badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2a3454, #1b2340) center/cover no-repeat; font-weight: 800; color: #fff; flex-shrink: 0; border: 2px solid var(--line-2); }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; } .avatar.lg { width: 72px; height: 72px; font-size: 28px; } .avatar.xl { width: 110px; height: 110px; font-size: 40px; }

/* ---------- layout ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 22px 18px 40px; }
.page.full { max-width: none; padding: 0; height: calc(100vh - 59px); }
.grid { display: grid; gap: 18px; } .grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin: 0 0 12px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title h2 { font-size: 18px; margin: 0; }
.section-title { font-size: 22px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); } .dim { color: var(--dim); font-size: 13px; } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chip.gold { color: var(--accent); border-color: rgba(255,213,74,.4); background: rgba(255,213,74,.1); }
.chip.green { color: var(--success); border-color: rgba(79,214,138,.4); background: rgba(79,214,138,.1); }
.chip.red { color: var(--danger); border-color: rgba(255,107,122,.4); background: rgba(255,107,122,.1); }
.chip.blue { color: var(--male); border-color: rgba(124,197,255,.4); background: rgba(124,197,255,.1); }
.chip.pink { color: var(--female); border-color: rgba(255,143,177,.4); background: rgba(255,143,177,.1); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; color: var(--muted); }
.input, input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(11,15,26,.6); color: var(--text); outline: none; transition: .15s; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,156,255,.2); }
textarea { min-height: 100px; resize: vertical; }
input[type=color] { width: 48px; height: 40px; border: none; background: none; padding: 0; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); font-weight: 700; transition: .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(91,124,255,.35); }
.btn.gold { background: linear-gradient(135deg, #ffd54a, #ff9f43); border-color: transparent; color: #1a1400; }
.btn.danger { background: rgba(255,107,122,.12); border-color: rgba(255,107,122,.4); color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; font-weight: 600; }
.alert.success { background: rgba(79,214,138,.12); border-color: rgba(79,214,138,.4); color: var(--success); }
.alert.danger { background: rgba(255,107,122,.12); border-color: rgba(255,107,122,.4); color: var(--danger); }
.error { color: var(--danger); font-size: 13px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.table th { color: var(--muted); font-weight: 600; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--success); } .neg { color: var(--danger); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo .brand-logo { width: 64px; height: 64px; font-size: 30px; border-radius: 20px; margin: 0 auto 10px; }
.auth-logo h1 { margin: 0; font-size: 24px; } .auth-logo p { margin: 4px 0 0; color: var(--muted); }
.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-pick input { display: none; }
.gender-pick label { text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(11,15,26,.6); cursor: pointer; transition: .15s; font-weight: 700; }
.gender-pick input:checked + label.m { border-color: var(--male); color: var(--male); background: rgba(124,197,255,.12); }
.gender-pick input:checked + label.f { border-color: var(--female); color: var(--female); background: rgba(255,143,177,.12); }

/* ---------- lobby ---------- */
.lobby-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input { padding-inline-start: 40px; }
.search::before { content: '🔍'; position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); opacity: .6; }
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.tabs button { padding: 7px 14px; border-radius: 9px; border: none; background: transparent; color: var(--muted); font-weight: 700; }
.tabs button.active { background: var(--primary); color: #fff; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.room-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: .2s; color: var(--text); overflow: hidden; }
.room-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), #a855f7); opacity: .7; }
.room-card.official::before { background: linear-gradient(90deg, var(--accent), #ff9f43); }
.room-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.room-card .name { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.room-card .desc { color: var(--muted); font-size: 13px; min-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.room-card .fav { position: absolute; top: 12px; inset-inline-start: 12px; background: none; border: none; font-size: 18px; filter: grayscale(1); opacity: .5; }
.room-card .fav.on { filter: none; opacity: 1; }
.lock { color: var(--warn); }
.empty { text-align: center; color: var(--dim); padding: 40px; }

/* ---------- room ---------- */
.room-layout { display: grid; grid-template-columns: 1fr 280px; height: 100%; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.room-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(17,23,39,.7); }
.room-head h1 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.room-head .sub { color: var(--muted); font-size: 12px; }
.room-head .actions { margin-inline-start: auto; display: flex; gap: 6px; }
.messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg .avatar { cursor: pointer; }
.msg .bubble { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 7px 12px; min-width: 0; max-width: min(720px, 85%); word-wrap: break-word; overflow-wrap: anywhere; }
.msg .who { font-weight: 800; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.msg .time { color: var(--dim); font-size: 11px; margin-inline-start: 8px; }
.msg .text { white-space: pre-wrap; }
.msg.mine .bubble { background: rgba(124,156,255,.14); border-color: rgba(124,156,255,.3); }
.msg.system { justify-content: center; } .msg.system .bubble { background: transparent; border: none; color: var(--dim); font-size: 13px; text-align: center; }
.msg.gift .bubble { background: linear-gradient(135deg, rgba(255,213,74,.15), rgba(255,143,177,.15)); border-color: rgba(255,213,74,.4); font-weight: 700; }
.msg img.att { max-width: 320px; max-height: 320px; border-radius: 10px; display: block; cursor: zoom-in; }
.msg audio { max-width: 280px; display: block; }
.msg .file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.25); }
.msg .story { border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; }
.msg .story h4 { margin: 0 0 4px; color: var(--accent); }
.msg .story .text { max-height: 140px; overflow: hidden; position: relative; } .msg .story.open .text { max-height: none; }
.msg .story button { background: none; border: none; color: var(--primary); padding: 0; font-weight: 700; }
.crown { font-size: 12px; } .premium-tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(17,23,39,.8); }
.composer input[type=text] { flex: 1; }
.composer .menu-wrap { position: relative; }
.popmenu { position: absolute; bottom: 46px; inset-inline-start: 0; min-width: 220px; background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); z-index: 20; }
.popmenu button, .popmenu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: none; background: none; color: var(--text); border-radius: 8px; text-align: right; }
.popmenu button:hover, .popmenu a:hover { background: rgba(124,156,255,.14); }
.popmenu hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 4px; }
.emoji-grid button { width: auto; font-size: 20px; padding: 6px; justify-content: center; }
.readonly-bar { padding: 8px 14px; background: rgba(255,179,102,.12); color: var(--warn); font-size: 13px; text-align: center; border-top: 1px solid rgba(255,179,102,.3); }
.recording { animation: blink 1s infinite; background: rgba(255,107,122,.2) !important; border-color: var(--danger) !important; }
@keyframes blink { 50% { opacity: .5; } }

.users-pane { border-inline-start: 1px solid var(--line); background: rgba(17,23,39,.6); display: flex; flex-direction: column; min-height: 0; }
.users-pane .head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.users-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.user-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; transition: .12s; }
.user-row:hover { background: rgba(124,156,255,.12); }
.user-row .nick { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row .rank { margin-inline-start: auto; font-size: 11px; color: var(--dim); }
.gender-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .gender-dot.male { background: var(--male); } .gender-dot.female { background: var(--female); }

/* ---------- modal / drawer ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5,8,15,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); animation: pop .2s; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card-solid); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 14px; }
.info-grid div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.info-grid span:first-child { color: var(--muted); }
.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); text-align: right; font-weight: 600; }
.menu-list button:hover, .menu-list a:hover { border-color: var(--primary); background: rgba(124,156,255,.1); }
.menu-list .ico { width: 30px; text-align: center; font-size: 18px; }
.menu-list .desc { color: var(--dim); font-size: 12px; font-weight: 400; display: block; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile-head h3 { margin: 0; font-size: 20px; } .profile-head .sub { color: var(--muted); font-size: 13px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); }
.gift-grid button:hover { border-color: var(--accent); } .gift-grid .e { font-size: 28px; } .gift-grid .p { color: var(--accent); font-size: 12px; font-weight: 700; }

.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(420px, 100vw); z-index: 90; background: var(--card-solid); border-inline-end: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; flex: 1; font-size: 16px; }
.pm-list { overflow-y: auto; flex: 1; }
.pm-list .conv { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pm-list .conv:hover { background: rgba(124,156,255,.08); }
.pm-list .conv .last { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.pm-thread { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pm-thread .messages { background: rgba(11,15,26,.4); }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); margin-inline-start: auto; }

.toasts { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .2s; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.toast.success { border-color: rgba(79,214,138,.5); } .toast.danger { border-color: rgba(255,107,122,.5); } .toast.gold { border-color: rgba(255,213,74,.6); }

/* ---------- wallet ---------- */
.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, #1b2a5a, #3a1f6e 60%, #5a1f4a); border: 1px solid rgba(255,255,255,.12); position: relative; overflow: hidden; }
.balance-hero::after { content: '💎'; position: absolute; font-size: 160px; opacity: .08; inset-inline-end: -20px; bottom: -50px; }
.balance-hero .amount { font-size: 42px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.balance-hero .label { color: var(--muted); }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-presets button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); font-weight: 700; }
.amount-presets button.active { border-color: var(--accent); color: var(--accent); }
.roulette { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wheel { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 800; border: 8px solid #2a3454; background: conic-gradient(#d33 0 10%, #222 10% 20%, #d33 20% 30%, #222 30% 40%, #2a9d4f 40% 42%, #d33 42% 52%, #222 52% 62%, #d33 62% 72%, #222 72% 82%, #d33 82% 92%, #222 92% 100%); position: relative; transition: transform 2.2s cubic-bezier(.17,.67,.12,1); }
.wheel span { background: var(--bg); width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; }
.wheel.red span { color: #ff6b6b; } .wheel.black span { color: #ddd; } .wheel.green span { color: var(--success); }
.bet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.bet-grid button { padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); font-weight: 700; }
.bet-grid button.active { outline: 2px solid var(--accent); }
.bet-grid .r { background: rgba(211,51,51,.35); } .bet-grid .b { background: rgba(0,0,0,.45); } .bet-grid .g { background: rgba(42,157,79,.4); }
.contest-pool { text-align: center; padding: 16px; border-radius: 16px; background: rgba(255,213,74,.08); border: 1px solid rgba(255,213,74,.3); }
.contest-pool .pool { font-size: 34px; font-weight: 800; color: var(--accent); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }
.leader { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .leader b { margin-inline-start: auto; color: var(--accent); }

/* ---------- misc ---------- */
.color-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-inline-end: 6px; border: 1px solid var(--line-2); }
.rank-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.emoji-wall { display: flex; flex-wrap: wrap; gap: 6px; font-size: 24px; }
.pagination { display: flex; gap: 4px; flex-wrap: wrap; } .pagination a, .pagination span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); } .pagination .active span { background: var(--primary); color: #fff; }
.pagination svg { width: 16px; }
.stat { padding: 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); } .stat b { display: block; font-size: 24px; color: var(--accent); }

@media (max-width: 900px) {
  .topnav { display: none; }
  .room-layout { grid-template-columns: 1fr; }
  .users-pane { position: fixed; top: 59px; bottom: 0; left: 0; right: auto; width: min(300px, 82vw); z-index: 60; transform: translateX(-105%); transition: transform .22s ease; background: var(--card-solid); border-inline-start: none; border-inline-end: 1px solid var(--line-2); box-shadow: var(--shadow); }
  .users-pane.open { transform: none; }
  .room-head h1 { font-size: 15px; }
  .room-head .sub { font-size: 11px; }
  .composer { padding: 8px 10px; gap: 6px; }
  .composer .btn.primary { padding: 10px 12px; }
  .page { padding: 14px 12px 30px; }
  .me-chip .nick { display: none; }
  .msg .bubble { max-width: 92%; }
}
