/* ================================================================
 HTLMarket — Main Stylesheet
 ================================================================ */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e4e7eb;
  --border-2: #c7ccd4;
  --text: #0d1116;
  --muted: #66707d;
  --accent: #1652f0;
  --accent-hover: #0f3fc7;
  --green: #0fa968;
  --green-bg: #e6f7ef;
  --red: #e0303f;
  --red-bg: #fce9ea;
  --surface-2: #eef0f3;
  --surface-2-hover: #e2e5ea;
  --header-bg: rgba(247,248,250,0.92);
}
body.dark-theme {
  --bg: #0e1116;
  --card: #161b22;
  --border: #2a3038;
  --border-2: #3a4350;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #5b8def;
  --accent-hover: #3f7adf;
  --green: #3fb950;
  --green-bg: #113820;
  --red: #f85149;
  --red-bg: #3a1418;
  --surface-2: #1c2330;
  --surface-2-hover: #242c3b;
  --header-bg: rgba(14,17,22,0.92);
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  padding: 1.1rem 0 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.logo {
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo .htl { color: var(--accent); }
.logo .market { color: var(--text); }
.logo-badge {
  background: var(--accent);
  color: #fff;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
h2 {
  font-size: 1.05rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 12px rgba(16,24,40,0.08);
}
.market-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #7c9bff);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.market-title { font-weight: 700; font-size: 1.02rem; }
.market-sub { font-size: 0.82rem; color: var(--muted); }
.market-lead { text-align: right; flex-shrink: 0; }
.market-lead-pct { font-size: 1.6rem; font-weight: 800; color: var(--green); line-height: 1; }
.market-lead-label { font-size: 0.78rem; color: var(--muted); max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prob-row { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.3rem 0 0.6rem; }
.prob-value { font-size: 1.8rem; font-weight: 800; }
.prob-label { font-size: 0.85rem; color: var(--muted); }
.prob-bar {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--red-bg); display: flex; margin-bottom: 0.85rem;
}
.prob-bar .fill-pass { background: var(--green); height: 100%; }
.prob-bar .fill-fail { background: var(--red); height: 100%; }
.outcome-row { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.outcome-chip {
  flex: 1;
  min-width: 6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0.65rem 0.5rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.outcome-chip .pct { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.outcome-chip:hover { background: var(--surface-2); }
.outcome-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.outcome-chip.active .pct { color: rgba(255,255,255,0.85); }
.outcome-bar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-size: 0.85rem; }
.outcome-bar-label { flex: 0 0 auto; min-width: 5.5rem; color: var(--text); font-weight: 600; }
.outcome-bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.outcome-bar-fill { height: 100%; background: var(--accent); }
.outcome-bar-pct { flex: 0 0 auto; width: 2.4rem; text-align: right; color: var(--muted); }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
input, select, button {
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
button {
  cursor: pointer;
  background: var(--accent);
  border: none;
  font-weight: 700;
  color: #fff;
  transition: background 0.15s ease, transform 0.05s ease;
}
button:hover { background: var(--accent-hover); }
button:active { transform: scale(0.97); }
button.secondary { background: var(--surface-2); color: var(--muted); }
button.secondary:hover { background: var(--surface-2-hover); color: var(--text); }
.resolved-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.resolved-badge.pass { background: var(--green-bg); color: var(--green); }
.resolved-badge.fail { background: var(--red-bg); color: var(--red); }
table { width: 100%; border-collapse: collapse; }
td, th {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: var(--surface-2); }
.medal-table tbody tr:first-child td { color: #b8860b; font-weight: 700; }
.medal-table tbody tr:first-child td:first-child::before { content: "🥇 "; }
.medal-table tbody tr:nth-child(2) td:first-child::before { content: "🥈 "; }
.medal-table tbody tr:nth-child(3) td:first-child::before { content: "🥉 "; }
.minigame-layout { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.minigame-games { flex: 2; min-width: 280px; }
.minigame-leaderboards { flex: 1; min-width: 240px; }
#markets, #adminMarkets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
}
#markets .card, #adminMarkets .card { margin-bottom: 0; }

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,17,22,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.modal-box {
  background: var(--bg);
  border-radius: 14px;
  padding: 1.2rem 1.4rem 1.6rem;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(13,17,22,0.3);
}
#status { color: var(--red); min-height: 1.2em; font-size: 0.9rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}
#me { font-weight: 700; color: var(--accent); }
#credits { font-weight: 700; color: var(--green); }
#chartCard canvas { display: block; }

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { background: var(--surface-2); color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.reaction-box {
  width: 100%;
  max-width: 360px;
  height: 200px;
  margin: 0.5rem auto 0;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: default;
  transition: background 0.1s ease, border-color 0.1s ease;
  user-select: none;
  padding: 1rem;
}
.reaction-box.idle { cursor: pointer; }
.reaction-box.waiting { background: #fde9c8; border-color: #f0b94c; color: #8a5a00; cursor: default; }
.reaction-box.go { background: var(--green-bg); border-color: var(--green); color: var(--green); cursor: pointer; font-size: 1.4rem; }
.reaction-box.success { background: var(--green-bg); border-color: var(--green); color: var(--green); font-size: 1.4rem; }
.reaction-box.early { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.reaction-box.late { background: var(--surface-2); border-color: var(--border-2); color: var(--muted); }
#spinBtn:disabled { background: var(--border-2); cursor: not-allowed; }

.playing-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 3.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 1px 2px rgba(16,24,40,0.08);
}
.playing-card.red { color: var(--red); }
.playing-card.black { color: var(--text); }
.playing-card.hidden { background: linear-gradient(135deg, var(--accent), #7c9bff); color: transparent; }

.poker-seat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.poker-seat.turn { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,82,240,0.15); }
.poker-seat.folded { opacity: 0.45; }
.poker-seat.you { background: var(--green-bg); }
.poker-seat-name { font-weight: 700; flex: 1; }
.poker-seat-meta { font-size: 0.82rem; color: var(--muted); }

.bj-felt {
  background: radial-gradient(ellipse at top, #1d6b46 0%, #0f3d28 75%);
  border: 6px solid #6b4423;
  border-radius: 50% 50% 16px 16px / 70px 70px 16px 16px;
  padding: 2rem 1.2rem 1.4rem;
  color: #fff;
}
.bj-felt-label {
  text-align: center;
  letter-spacing: 0.15em;
  font-weight: 800;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.bj-dealer-area { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.bj-seats-row { display: flex; justify-content: space-around; gap: 0.6rem; flex-wrap: wrap; }
.bj-seat {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 0.7rem 0.6rem;
  min-width: 7.5rem;
  text-align: center;
  color: #fff;
}
.bj-seat.empty { opacity: 0.35; border-style: dashed; }
.bj-seat.you { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,82,240,0.4); }
.bj-seat.active-turn { border-color: #ffd54a; box-shadow: 0 0 0 2px rgba(255,213,74,0.5); }
.bj-seat-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.bj-seat-bet { font-size: 0.75rem; opacity: 0.85; margin-bottom: 0.4rem; }

.chat-log {
  font-size: 0.85rem;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.chat-log .chat-name { font-weight: 700; color: var(--accent); }

#rightPanel {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 300px;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 40;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
body.has-panel { margin-right: 300px; }
.rp-section {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.rp-section h3 { margin: 0 0 0.5rem; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.rp-chat-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 0 0.8rem 0.8rem; }
.rp-chat-area .chat-log { flex: 1; overflow-y: auto; max-height: none; }
.rp-friend-item {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0; font-size: 0.85rem;
}
.rp-friend-item .online-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rp-friend-item .online-dot.on { background: var(--green); }
.rp-friend-item .online-dot.off { background: var(--muted); opacity: 0.4; }
.rp-friend-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-friend-actions button { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
.rp-friend-req { font-size: 0.82rem; padding: 0.3rem 0; display: flex; align-items: center; gap: 0.4rem; }
.rp-friend-req button { font-size: 0.72rem; padding: 0.15rem 0.4rem; }
#rpFriendList { max-height: 180px; overflow-y: auto; }
#rpFriendSearch { margin-bottom: 0.4rem; }
#rpFriendSearch input { width: 100%; font-size: 0.82rem; padding: 0.35rem 0.6rem; }
#rpSearchResults { font-size: 0.82rem; }
#rpSearchResults .rp-friend-item { cursor: pointer; }

.boc-machine {
  background: linear-gradient(160deg, #1a0e00 0%, #2a1a08 30%, #1a0e00 100%);
  border-radius: 14px; padding: 1rem; text-align: center;
  border: 3px solid #c5963a; position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(197,150,58,0.15), inset 0 0 80px rgba(0,0,0,0.4);
}
.boc-title { font-size: 1.4rem; font-weight: 800; color: #ffd700; text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(255,215,0,0.3); margin-bottom: 0.1rem; letter-spacing: 0.05em; }
.boc-subtitle { font-size: 0.72rem; color: #c5963a; margin-bottom: 0.6rem; }
.boc-grid { display: flex; gap: 3px; justify-content: center; background: #0d0800; padding: 6px; border-radius: 8px; border: 2px solid #8b7355; margin: 0.5rem 0; }
.boc-col { display: flex; flex-direction: column; gap: 3px; }
.boc-cell {
  width: 4.2rem; height: 4.2rem;
  background: linear-gradient(170deg, #fdf5e6, #e8d5b0);
  border: 2px solid #8b7355; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.boc-cell.card-sym { font-family: serif; }
.boc-cell.spinning { animation: bocSpin 0.05s steps(1) infinite; }
@keyframes bocSpin { 0%{opacity:1} 50%{opacity:0.7} 100%{opacity:1} }
.boc-cell.win-cell { border-color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,0.6); animation: bocWin 0.35s ease 4; }
.boc-cell.expanded { background: linear-gradient(170deg, #ffe4b5, #ffd700); border-color: #ffa500; }
@keyframes bocWin { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.boc-controls { display: flex; justify-content: center; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-top: 0.6rem; }
.boc-ctrl-group { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.boc-ctrl-label { font-size: 0.65rem; color: #c5963a; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.boc-ctrl-val { background: #0d0800; color: #ffd700; border: 2px solid #8b7355; border-radius: 6px; padding: 0.35rem 0.7rem; font-size: 1rem; font-weight: 800; min-width: 3rem; text-align: center; }
.boc-ctrl-val select { background: transparent; color: #ffd700; border: none; font-size: 1rem; font-weight: 800; text-align: center; outline: none; cursor: pointer; -webkit-appearance: none; }
.boc-ctrl-val select option { background: #1a0e00; color: #ffd700; }
.boc-spin-btn {
  padding: 0.6rem 2rem; font-size: 1.1rem; font-weight: 800; border-radius: 8px;
  background: linear-gradient(135deg, #22a559, #1a8a48); color: #fff; border: 2px solid #2ecc71;
  box-shadow: 0 4px 12px rgba(34,165,89,0.4); cursor: pointer; transition: all 0.1s; text-transform: uppercase;
}
.boc-spin-btn:hover { background: linear-gradient(135deg, #2ecc71, #22a559); transform: translateY(-1px); }
.boc-spin-btn:disabled { background: #444; border-color: #555; box-shadow: none; cursor: not-allowed; color: #888; }
.boc-info-bar { display: flex; justify-content: space-around; margin-top: 0.5rem; padding: 0.4rem; background: #0d0800; border-radius: 6px; border: 1px solid #8b7355; }
.boc-info-item { text-align: center; }
.boc-info-label { font-size: 0.6rem; color: #8b7355; text-transform: uppercase; }
.boc-info-val { font-size: 0.95rem; font-weight: 800; color: #ffd700; }
.boc-result { margin-top: 0.5rem; font-weight: 700; font-size: 1rem; min-height: 1.4em; color: #ffd700; }
.boc-result.lose { color: #8b7355; }
.boc-fs-banner {
  background: linear-gradient(135deg, #1a237e, #283593); border: 2px solid #5c6bc0;
  border-radius: 8px; padding: 0.5rem 0.8rem; margin-bottom: 0.5rem; color: #e8eaf6;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 0 20px rgba(92,107,192,0.3);
}
.boc-fs-banner .fs-sym { font-size: 1.4rem; }
.boc-paytable-btn { background: transparent; color: #c5963a; border: 1px solid #8b7355; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 4px; margin-top: 0.5rem; cursor: pointer; }
.boc-paytable-btn:hover { background: rgba(197,150,58,0.1); color: #ffd700; }
.boc-paytable { display: none; margin-top: 0.5rem; background: #0d0800; border: 1px solid #8b7355; border-radius: 6px; padding: 0.5rem; font-size: 0.72rem; color: #c5963a; text-align: left; }
.boc-paytable.open { display: block; }
.boc-pt-row { display: flex; justify-content: space-between; padding: 0.15rem 0.3rem; border-bottom: 1px solid rgba(139,115,85,0.3); }
.boc-pt-row:last-child { border-bottom: none; }
.boc-pt-sym { font-weight: 700; }

.duel-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,17,22,0.85); z-index: 55;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.duel-box {
  background: var(--card); border-radius: 16px; padding: 2rem;
  max-width: 500px; width: 100%; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.duel-vs { display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; font-size: 1.1rem; font-weight: 700; }
.duel-vs .player { text-align: center; }
.duel-vs .player .avatar-big { font-size: 2.5rem; }
.duel-reaction-box {
  width: 100%; height: 150px; border-radius: 14px; margin: 1rem 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 2px solid var(--border); background: var(--surface-2); color: var(--muted);
}
.duel-reaction-box.waiting { background: #fde9c8; border-color: #f0b94c; color: #8a5a00; cursor: default; }
.duel-reaction-box.go { background: var(--green-bg); border-color: var(--green); color: var(--green); font-size: 1.5rem; }
.duel-reaction-box.early { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.duel-reaction-box.done { cursor: default; }

.rl-result-display { text-align: center; margin: 0.8rem 0; }
.rl-result-num { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; font-size: 1.8rem; font-weight: 800; color: #fff; border: 3px solid rgba(255,255,255,0.3); }
.rl-result-num.red { background: #c62828; } .rl-result-num.black { background: #212121; } .rl-result-num.green { background: #2e7d32; }
.rl-result-num.spinning { animation: rlPulse 0.15s linear infinite; }
@keyframes rlPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.rl-history { display: flex; gap: 3px; flex-wrap: wrap; margin: 0.5rem 0; }
.rl-hist-badge { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: #fff; }
.rl-hist-badge.red { background: #c62828; } .rl-hist-badge.black { background: #333; } .rl-hist-badge.green { background: #2e7d32; }
.rl-board-wrap { background: #0b5e2f; border: 4px solid #6b4423; border-radius: 10px; padding: 6px; overflow-x: auto; }
.rl-board { display: flex; gap: 0; user-select: none; }
.rl-zero { display: flex; align-items: stretch; }
.rl-zero .rl-cell { writing-mode: vertical-lr; min-height: auto; width: 2rem; border-radius: 6px 0 0 6px; }
.rl-nums { display: flex; flex-direction: column; gap: 0; flex: 1; }
.rl-num-row { display: flex; gap: 0; }
.rl-cell { min-width: 2.3rem; height: 2.3rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; cursor: pointer; border: 1px solid rgba(255,255,255,0.15); color: #fff; transition: filter 0.1s, transform 0.1s; flex: 1; }
.rl-cell:hover { filter: brightness(1.4); transform: scale(1.05); z-index: 2; }
.rl-cell.r { background: #c62828; } .rl-cell.b { background: #1a1a1a; } .rl-cell.g { background: #2e7d32; }
.rl-cell.out { background: #1b5e20; font-size: 0.7rem; }
.rl-cell.has-bet { box-shadow: inset 0 0 0 2px #ffd700; }
.rl-col-bets { display: flex; flex-direction: column; gap: 0; }
.rl-col-bets .rl-cell { width: 2.5rem; border-radius: 0 6px 6px 0; font-size: 0.65rem; }
.rl-outside-bets { display: flex; gap: 0; margin-top: 2px; }
.rl-outside-bets .rl-cell { border-radius: 0; }
.rl-outside-bets2 { display: flex; gap: 0; margin-top: 2px; }
.rl-outside-bets2 .rl-cell { border-radius: 0; }
.rl-chip-sel { display: flex; gap: 0.3rem; justify-content: center; margin: 0.6rem 0; flex-wrap: wrap; }
.rl-chip { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; cursor: pointer; border: 3px solid rgba(255,255,255,0.4); color: #fff; transition: all 0.15s; }
.rl-chip:hover { transform: scale(1.1); }
.rl-chip.active { border-color: #ffd700; box-shadow: 0 0 10px rgba(255,215,0,0.5); transform: scale(1.1); }
.rl-chip.c1 { background: #5d4037; } .rl-chip.c5 { background: #c62828; } .rl-chip.c10 { background: #1565c0; }
.rl-chip.c25 { background: #2e7d32; } .rl-chip.c50 { background: #6a1b9a; } .rl-chip.c100 { background: #e65100; }
.rl-your-bets { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0; }
.rl-players { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.82rem; margin: 0.5rem 0; }
.rl-player { padding: 0.25rem 0.6rem; background: var(--surface-2); border-radius: 8px; }
.rl-player.you { background: var(--green-bg); }

.drop-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100; pointer-events: none; overflow: hidden;
  animation: dropFade 4s ease forwards;
}
@keyframes dropFade { 0%,70%{opacity:1} 100%{opacity:0} }
.drop-banner {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%);
  font-size: 2.5rem; font-weight: 800; color: #ffd700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.4);
  animation: dropBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
  white-space: nowrap;
}
@keyframes dropBounce { 0%{transform:translate(-50%,-50%) scale(0);opacity:0} 100%{transform:translate(-50%,-50%) scale(1);opacity:1} }
.drop-coin {
  position: absolute; top: -2rem;
  animation: coinFall linear forwards;
  opacity: 0.9;
}
@keyframes coinFall { 0%{transform:translateY(0) rotate(0deg);opacity:0.9} 100%{transform:translateY(110vh) rotate(720deg);opacity:0} }
