/* ==================================================================
   BARON CRAZY — style.css
   Top bar + side menu + notifications mirror Baron Bingo. Classic 4-colour
   15×15 board with pawn tokens. Room-list lobby.
   ================================================================== */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0;
  -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none; }
input, textarea { -webkit-user-select:text; user-select:text; }

:root{
  --bg:#050812; --bg2:#0a0f20; --panel:#111a2e; --panel2:#1b2742;
  --surface:rgba(255,255,255,0.04); --border:rgba(255,255,255,0.08);
  --txt:rgba(255,255,255,0.92); --sub:rgba(255,255,255,0.42); --text-dim:rgba(255,255,255,0.4);
  --gold:#ffd700; --gold2:#ff9500; --cyan:#00e5ff; --acc:#4d8cff;
  --p0:#29ADFF; --p1:#00A348; --red:#ff4444; --green:#00e676; --radius:16px;
  --text:rgba(255,255,255,0.92);
  --font-am:'Noto Sans Ethiopic',sans-serif;
  --font-head:'Orbitron',sans-serif;
  --font-body:'Rajdhani','Noto Sans Ethiopic',sans-serif;
}
/* ===== APP LOADING ===== */
.app-loading{ position:fixed; inset:0; z-index:2000; background:radial-gradient(circle at 50% 35%, #0f1530, var(--bg));
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; }
.app-loading.hidden{ display:none; }
/* Loading screen = exactly CORE's (same logo font/size/colour, spinner and text),
   so the hand-off from the hub's loading screen to this one shows no change. */
.al-logo{ font-family:var(--font-head); font-size:1.9rem; font-weight:900; letter-spacing:2px; color:var(--gold); }
.al-logo span{ color:var(--cyan); }
.al-spinner{ width:48px; height:48px; border:4px solid rgba(255,215,0,.22); border-top-color:var(--gold);
  border-radius:50%; animation:alSpin .9s linear infinite; }
@keyframes alSpin{ to{ transform:rotate(360deg); } }
.al-text{ font-family:var(--font-am); font-size:.9rem; color:var(--text-dim); }

html,body{ background:var(--bg); color:var(--txt);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Ethiopic",sans-serif;
  overflow-x:hidden; }
/* The game background image shows across the whole app (lobby + game). On the
   normal screens (lobby, deposit, …) a dark gradient sits over it so text stays
   readable; the IN-GAME background keeps NO extra dimming (overridden below). */
body{ min-height:100vh;
  background-image: linear-gradient(rgba(6,10,20,.82), rgba(6,10,20,.90)), var(--crazy-bg-img);
  background-size:cover; background-position:center; background-attachment:fixed; }

/* ===== SIDE MENU ===== */
.side-menu{ position:fixed; top:0; right:-320px; width:290px; height:100%;
  background:linear-gradient(180deg,#0d1128 0%,#080d1e 100%); border-left:1px solid var(--border);
  z-index:300; transition:right .35s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column; overflow-y:auto; }
.side-menu.open{ right:0; }
.menu-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:250; opacity:0; pointer-events:none; transition:opacity .3s; }
.menu-overlay.open{ opacity:1; pointer-events:all; }
.menu-inner{ padding:20px 18px; display:flex; flex-direction:column; gap:16px; height:100%; }
.menu-profile{ display:flex; align-items:center; gap:12px; padding:16px; background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); }
.menu-avatar{ width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,var(--gold),var(--gold2));
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; font-weight:900; color:#000; flex-shrink:0; }
.menu-name{ font-weight:700; font-size:0.95rem; }
.menu-phone{ font-size:0.72rem; color:var(--text-dim); margin-top:2px; }
.menu-balance-box{ background:linear-gradient(135deg,rgba(0,229,255,0.1),rgba(0,97,255,0.08));
  border:1px solid rgba(0,229,255,0.2); border-radius:var(--radius); padding:16px;
  display:flex; align-items:baseline; justify-content:center; gap:6px; }
.mbl-label{ font-size:0.7rem; color:var(--text-dim); }
.mbl-value{ font-size:1.9rem; font-weight:900; color:var(--cyan); }
.mbl-curr{ font-size:0.75rem; color:var(--text-dim); }
.menu-nav{ display:flex; flex-direction:column; gap:4px; }
.menu-nav-btn{ display:flex; align-items:center; gap:12px; padding:13px 14px; border-radius:12px;
  font-size:0.88rem; font-weight:600; transition:background .2s; border:1px solid transparent;
  background:none; color:var(--txt); cursor:pointer; text-align:left; font-family:inherit; }
.menu-nav-btn:active{ background:rgba(255,255,255,0.06); border-color:var(--border); }
.menu-links{ display:flex; flex-direction:column; gap:4px; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.menu-links:empty{ display:none; }
.menu-links .menu-nav-btn{ text-decoration:none; color:inherit; }
.mnb-icon{ font-size:1.1rem; }
.menu-footer{ margin-top:auto; text-align:center; font-size:0.62rem; color:rgba(255,255,255,0.2); padding-top:10px; }

/* ===== TOP BAR ===== */
.top-bar{ position:fixed; top:0; left:0; right:0; height:56px; display:flex; align-items:center;
  justify-content:space-between; padding:0 14px;
  /* Paint the SAME viewport-anchored app background (image + dark gradient) on the
     bar so the theme shows through it, lined up seamlessly with the screen below. */
  background-color:transparent;
  /* Same dimming as the body (.60/.70) so the bar isn't more faded than the screen below. */
  background-image: linear-gradient(rgba(6,7,12,0.60), rgba(6,7,12,0.70)), var(--crazy-bg-img);
  background-size:cover; background-position:center; background-attachment:fixed;
  border-bottom:1px solid var(--border); z-index:100; }
.menu-toggle{ width:auto; height:32px; padding:0 10px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:4px; background:var(--surface); border-radius:20px; border:1px solid var(--border); transition:.2s; cursor:pointer; }
.menu-toggle:active{ transform:scale(0.92); }
.menu-toggle span{ display:block; width:18px; height:2px; background:var(--txt); border-radius:2px; }
.top-logo{ font-family:var(--font-head); font-size:1rem; font-weight:900; letter-spacing:3px; color:var(--gold); text-shadow:0 0 20px rgba(255,215,0,0.4); }
.top-logo span{ color:var(--cyan); }
.top-balance{ display:flex; align-items:center; gap:5px; background:linear-gradient(135deg,rgba(0,229,255,0.12),rgba(0,97,255,0.1));
  padding:6px 12px; border-radius:20px; border:1px solid rgba(0,229,255,0.2); font-weight:700; font-size:0.8rem; cursor:pointer; }
.tb-coin{ font-size:0.9rem; }
.notif-bell-btn.has-unread>span:first-child{ animation:bell .8s ease-in-out infinite; }
@keyframes bell{ 0%,100%{ transform:rotate(0); } 25%{ transform:rotate(12deg); } 75%{ transform:rotate(-12deg); } }

/* ===== SCREENS ===== */
.screen{ display:none; padding:66px 14px 20px; max-width:560px; margin:0 auto; }
.screen.active{ display:block; }
/* Crazy game background (admin can override the image via --crazy-bg-img). A dark
   gradient keeps the board, tokens and text readable over the pattern. */
:root{ --crazy-bg-img: url("assets/lobby-bg.jpg?v=1"); }
/* The background image is already prepared dimmed, so we show it as-is — no extra
   darkening gradient on top (that would double-fade it). */
body.crazy-ingame{
  background-image: var(--crazy-bg-img);
  background-size: cover; background-position: center; background-attachment: fixed;
}
/* Inside a game: hide the app top bar (the in-game header has Exit/zoom already). */
body.crazy-ingame .top-bar{ display:none; }
body.crazy-ingame #screen-game{ padding-top:6px; }
/* Lift the board higher: trim the bands above it, and pull the whole board cluster
   (opponent dice history + board + my dice history) up TOGETHER via the opp history
   so nothing is left behind above the board. */
body.crazy-ingame .game-hdr{ margin-bottom:1px; }
body.crazy-ingame .opp-bar{ margin-bottom:0; }
body.crazy-ingame .turn-banner{ padding:1px; min-height:16px; }
body.crazy-ingame .dice-history.opp{ margin-top:-6px; margin-bottom:7px; min-height:16px; }
/* Admin spectator: a slim banner + inert dice / hidden reactions. */
.spectate-banner{ text-align:center; font-size:11px; font-weight:800; color:#ffd54a;
  background:rgba(0,0,0,.35); border:1px solid var(--border); border-radius:20px; padding:4px 10px; margin-bottom:4px; }
body.crazy-spectate .dice-box{ pointer-events:none; opacity:.75; }
body.crazy-spectate .emoji-fab{ display:none; }

/* ===== LOBBY: home back button ===== */
.hero-back{ background:var(--surface); border:1px solid var(--border); color:var(--txt); font-weight:700;
  font-size:13px; padding:8px 16px; border-radius:20px; cursor:pointer; margin-bottom:12px; }
.hero-back:active{ transform:scale(.96); }
.lobby-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
/* people-count pill, pushed to the RIGHT side of the top row */
.lobby-top .rl-ingame{ margin-left:auto; display:inline-flex; align-items:center; gap:4px;
  background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:6px 11px; font-size:12px; }
.lobby-top .hero-back{ margin-bottom:12px; }
.lobby-top .rl-ingame{ margin-bottom:12px; }
.back-to-game{ background:linear-gradient(135deg,#39d98a,#1fae6a); border:none; color:#04160d; font-weight:800;
  font-size:13px; padding:8px 16px; border-radius:20px; cursor:pointer; margin-bottom:12px;
  box-shadow:0 3px 12px rgba(31,174,106,.45); animation:btgPulse 1.6s ease-in-out infinite; }
.back-to-game:active{ transform:scale(.96); }
@keyframes btgPulse{ 0%,100%{ box-shadow:0 3px 12px rgba(31,174,106,.35); } 50%{ box-shadow:0 3px 18px rgba(31,174,106,.7); } }

/* ===== LOBBY: room list (top ~40%) ===== */
/* Content-sized: sits at the previous size (min) when empty / few posts, and grows up
   to the enlarged size (max) as posts fill it, then the list scrolls inside. */
.room-list-area{ min-height:40vh; max-height:52vh; display:flex; flex-direction:column;
  background:rgba(255,255,255,0.03); border:1.5px solid rgba(255,255,255,0.06); border-radius:20px; padding:12px; margin-bottom:14px; }
/* online / in-game count — now a compact pill in the top bar, beside "ዋና ገፅ" */
.rl-ingame{ font-size:11px; color:var(--sub); font-weight:700; margin-bottom:12px; white-space:nowrap;
  background:rgba(0,0,0,.28); border:1px solid var(--border); border-radius:20px; padding:6px 12px; }
.rl-ingame b{ color:var(--gold); }
.rl-head{ font-weight:800; font-size:14px; color:var(--gold); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.rl-count{ font-size:11px; color:var(--sub); font-weight:600; }
.rl-refresh{ margin-left:auto; background:var(--panel2); border:1px solid var(--border); color:var(--gold);
  width:30px; height:30px; border-radius:9px; font-size:15px; cursor:pointer; display:flex;
  align-items:center; justify-content:center; transition:transform .3s; }
.rl-refresh:active{ transform:rotate(180deg) scale(.9); }
.rl-refresh.spin{ animation:rlSpin .6s linear; }
@keyframes rlSpin{ to{ transform:rotate(360deg); } }
.room-list{ flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; }
.rl-empty{ text-align:center; color:var(--sub); font-size:13px; padding:30px 10px; }
.room-row{ display:flex; align-items:center; gap:10px; background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.02));
  border:1.5px solid rgba(255,255,255,.1); border-radius:12px; padding:10px 12px; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.room-row.mine{ border-color:var(--gold); box-shadow:0 0 0 1px var(--gold), inset 0 1px 0 rgba(255,255,255,.06); }
.rr-stake{ font-weight:900; font-size:16px; color:var(--gold); min-width:56px; }
.rr-stake small{ display:block; font-size:9px; color:var(--sub); font-weight:600; }
.rr-mid{ flex:1; min-width:0; }
.rr-host{ font-weight:700; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rr-win{ font-size:12px; margin-top:2px; }
.rr-av{ width:34px; height:34px; border-radius:50%; flex:0 0 auto; background-size:cover; background-position:center;
  background-color:rgba(255,255,255,.08); border:1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; color:var(--gold); }
.rr-countdown{ font-size:12px; font-weight:800; color:var(--sub); min-width:30px; text-align:center; }
.rr-join{ background:linear-gradient(135deg,#39d98a,#1fae6a); border:none; color:#04160d; font-weight:800;
  font-size:13px; padding:9px 18px; border-radius:10px; cursor:pointer; white-space:nowrap; }
.rr-mine-tag{ font-size:11px; color:var(--gold); font-weight:700; padding:9px 4px; }
.rr-cancel{ background:#2a1620; border:1px solid #5a2a38; color:#ff5d6c; font-weight:800; font-size:13px;
  padding:9px 16px; border-radius:10px; cursor:pointer; white-space:nowrap; }

/* ===== LOBBY: create controls ===== */
.create-area{ background:rgba(255,255,255,0.03); border:1.5px solid rgba(255,255,255,0.06); border-radius:20px; padding:14px; }
.host-note{ background:rgba(255,215,0,.1); border:1px solid rgba(255,215,0,.3); color:var(--gold);
  font-size:12px; font-weight:600; text-align:center; padding:10px; border-radius:10px; margin-bottom:12px; }
.create-area.hosting .wt-label,
.create-area.hosting .wt-row,
.create-area.hosting .stake-label,
.create-area.hosting .stake-grid{ opacity:.35; pointer-events:none; }
.create-area.hosting .create-btn{ background:linear-gradient(135deg,#c0392b,#922b21); box-shadow:none; }
.wt-label{ font-size:13px; color:var(--gold); font-weight:700; margin-bottom:5px; }
.wt-head-row{ display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.wt-head-row .wt-label{ margin-bottom:0; }
/* "private room" text button — ~30% shorter than the old gear icon, dim color
   (same as the "VS" text in the colour picker). */
.wt-gear{ margin-left:auto; flex:0 0 auto; height:24px; padding:0 10px; border-radius:8px; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04); color:var(--sub); font-size:11.5px; font-weight:800; cursor:pointer; display:flex; align-items:center; white-space:nowrap; }
.wt-gear:active{ transform:scale(.94); }
/* Created-private-room key bar — full width so 👑👑👑👑 + key always fit */
.private-box{ display:flex; width:100%; align-items:center; gap:8px; margin-bottom:6px;
  background:rgba(0,200,120,.12); border:1.5px solid rgba(0,200,120,.4); border-radius:10px; padding:6px 10px; }
.private-box .pb-txt{ font-size:14px; color:#eafff2; }
.private-box .pb-key{ color:#00e676; letter-spacing:1px; }
.private-box .pb-cancel{ flex:0 0 auto; margin-left:auto; background:none; border:none; cursor:pointer; font-size:15px; color:#ff6b6b; padding:2px 4px; }
/* Private-room menu / join modal */
.priv-ov{ position:fixed; inset:0; z-index:5000; background:rgba(0,0,0,.62); display:flex; align-items:center; justify-content:center; padding:24px; }
.priv-card{ background:#141b2e; border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:20px; max-width:340px; width:100%; }
.priv-title{ font-weight:800; color:var(--gold); margin-bottom:14px; text-align:center; }
.priv-btn{ width:100%; background:linear-gradient(135deg,#0f9d58,#12c85a); border:none; color:#fff; font-weight:800; font-size:15px;
  padding:13px; border-radius:12px; cursor:pointer; margin-bottom:10px; }
.priv-btn-alt{ background:linear-gradient(135deg,#2f6bdc,#4d8cff); }
.priv-btn:active{ transform:scale(.98); }
.priv-close{ width:100%; background:transparent; border:1px solid rgba(255,255,255,.16); color:#9aa4bd; padding:10px; border-radius:12px; cursor:pointer; }
.priv-input{ width:100%; text-align:center; font-size:16px; letter-spacing:3px; font-weight:700; padding:11px; border-radius:12px;
  border:1.5px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06); color:#fff; margin-bottom:12px; }
.priv-preview{ min-height:0; }
.priv-found{ text-align:center; background:rgba(0,200,120,.12); border:1px solid rgba(0,200,120,.35); border-radius:10px; padding:10px; margin-bottom:12px; color:#eafff2; }
.wt-row{ display:flex; gap:10px; margin-bottom:10px; }
.wt-box{ flex-grow:1; flex-basis:0; background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.02)); border:1.5px solid rgba(255,255,255,.1); border-radius:12px;
  padding:8px 6px; font-size:16px; letter-spacing:1px; cursor:pointer; white-space:nowrap; overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06); transition:transform .12s, border-color .12s, box-shadow .12s; }
.wt-box:active{ transform:scale(.96); }
.wt-box[data-win="1"]{ flex-grow:1; } .wt-box[data-win="2"]{ flex-grow:2; } .wt-box[data-win="4"]{ flex-grow:4; }
.wt-box.active{ border-color:var(--gold); background:linear-gradient(160deg,#3a3212,#241f0c);
  box-shadow:0 0 0 1px var(--gold), 0 4px 14px rgba(255,215,0,.22); }
.stake-label{ font-size:13px; color:var(--gold); font-weight:700; margin-bottom:5px; }
.stake-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:7px; margin-bottom:10px; }
.stake-btn{ position:relative; background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.02)); border:1.5px solid rgba(255,255,255,.1);
  border-radius:12px; padding:7px 2px; color:#fff; font-size:14px; font-weight:800; cursor:pointer; text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06); transition:transform .12s, border-color .12s, box-shadow .12s; }
.stake-btn:active{ transform:scale(.94); }
.stake-btn small{ display:block; font-size:8px; color:var(--sub); font-weight:600; }
.stake-btn.active{ border-color:var(--gold); background:linear-gradient(160deg,#3a3212,#241f0c); color:var(--gold);
  box-shadow:none; }
/* top-right badge = open posts at this stake */
.stake-count{ position:absolute; top:-7px; right:-5px; min-width:18px; height:18px; padding:0 4px;
  background:linear-gradient(135deg,#39d98a,#1fae6a); color:#04160d; font-size:10px; font-weight:900;
  border-radius:9px; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 5px rgba(0,0,0,.55); }
.create-btn{ width:100%; background:linear-gradient(135deg,#4d8cff,#2f6bdc); border:none; color:#fff; font-weight:900;
  font-size:16px; padding:13px; border-radius:14px; cursor:pointer; box-shadow:none; }
.create-btn:active{ transform:scale(.985); }
.create-btn:disabled{ opacity:.5; }

/* ===== WAITING ===== */
.wait-box{ text-align:center; padding:50px 20px; }
.wait-spinner{ width:64px; height:64px; margin:0 auto 22px; border-radius:50%;
  border:5px solid #1d2740; border-top-color:var(--acc); animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.wait-title{ font-size:19px; font-weight:800; margin-bottom:8px; }
.wait-sub{ color:var(--sub); font-size:13px; }
.wait-sub b{ color:var(--gold); }
.wait-timer{ margin:16px 0 24px; font-size:28px; font-weight:900; color:var(--acc); font-variant-numeric:tabular-nums; }
.cancel-btn{ background:#2a1620; border:1px solid #5a2a38; color:#ff5d6c; font-weight:700; padding:12px 30px; border-radius:12px; cursor:pointer; }

/* ===== PLAYERS BAR / TURN ===== */
/* game screen header: exit (left) + zoom (right) */
.game-hdr{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.ghdr-right{ display:flex; align-items:center; gap:8px; }
.ghdr-crowns{ font-size:15px; letter-spacing:1px; background:var(--surface); border:1px solid var(--border);
  padding:6px 10px; border-radius:20px; white-space:nowrap; }
.ghdr-btn{ background:var(--surface); border:1px solid var(--border); color:var(--txt); font-weight:700;
  font-size:13px; padding:7px 14px; border-radius:20px; cursor:pointer; }
.ghdr-btn:active{ transform:scale(.95); }
.ghdr-exit{ color:#ff5d6c; }
.ghdr-prize{ font-size:13px; font-weight:800; color:var(--gold); background:var(--surface);
  border:1px solid var(--border); padding:6px 10px; border-radius:20px; white-space:nowrap; }
.ghdr-refresh{ padding:7px 10px; }
.ghdr-refresh.spin{ animation:rlSpin .6s linear; }
.ghdr-zoom.on{ background:rgba(0,229,255,.18); border-color:var(--cyan); color:var(--cyan); }
.players-bar{ display:flex; align-items:flex-start; justify-content:center; gap:18px; margin-bottom:8px; }
/* opponent profile hugs the top-right corner, above the board */
.opp-bar{ display:flex; justify-content:flex-end; margin-bottom:6px; }
/* my profile (left) + dice (right) share the row below my dice history */
.me-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; }
/* Left-hand mode: swap my profile (left) and the dice (right) — long-press either to toggle */
body.crazy-lefty .me-bar{ flex-direction:row-reverse; }
.me-bar .game-controls{ margin-top:0; }
.pl-card{ display:flex; flex-direction:column; align-items:center; gap:6px; background:transparent; border:none; padding:2px; min-width:80px; }
.pl-card.turn .pl-avatar{ box-shadow:0 0 14px rgba(255,215,0,.5); }
.pl-name{ font-weight:700; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:96px; }
/* turn countdown shown under the active player's name */
.pl-timer{ min-height:15px; font-size:11px; font-weight:800; color:var(--gold); letter-spacing:.3px; }
.pl-timer.low{ color:#ff5d6c; animation:plTimerPulse .7s ease-in-out infinite; }
@keyframes plTimerPulse{ 0%,100%{ opacity:1; } 50%{ opacity:.5; } }
.vs{ color:var(--sub); font-weight:900; font-size:12px; align-self:flex-start; margin-top:18px; }
.turn-banner{ text-align:center; font-weight:800; font-size:14px; padding:6px; color:var(--gold); min-height:26px; }

/* ===== BOARD (fixed 600px, JS scales) ===== */
.board-host{ width:100%; overflow:hidden; position:relative; }
/* dice history sits BELOW the board (out of it); newest on the right */
.dice-history{ display:flex; gap:5px; align-items:center; justify-content:flex-start;
  min-height:26px; margin:0 2px; padding-left:2px; }
.dice-history.opp{ margin-bottom:5px; }         /* opponent's rolls — above the board */
.dice-history.mine{ margin-top:7px; }           /* my rolls — below the board */
.dice-history .dh-die{ width:24px; height:24px; object-fit:contain; filter:drop-shadow(0 1px 2px rgba(0,0,0,.55)); opacity:.92; }
.dice-history .dh-die:last-child{ width:28px; height:28px; opacity:1; }
.board-wrapper{ position:relative; width:600px; height:600px; overflow:visible; }
.board-img{ position:absolute; inset:0; width:600px; height:600px; border-radius:10px;
  box-shadow:0 8px 22px rgba(0,0,0,.35); pointer-events:none; }
/* Canvas overhangs the top (see PAD_TOP in script.js) so tall pins aren't clipped. */
.token-canvas{ position:absolute; left:0; top:0; width:600px; }
/* Stop the mobile WebView from treating game artwork as a saveable image: a long-press
   on the dice used to pop the browser "Open / Download / Copy link" sheet and leak the
   asset URL. Kill the callout/selection/drag on all images, and make the dice + history
   faces non-interactive so the tap lands on their container (which handles the roll). */
img{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; }
.dice-box img, .dice-history img{ pointer-events:none; }
.board{ position:relative; display:grid; grid-template-columns:repeat(15,40px); grid-template-rows:repeat(15,40px);
  background:#000; border:6px solid #000; border-radius:6px; overflow:hidden; }
.cell{ background:#fff; border-right:1px solid #000; border-bottom:1px solid #000; }
.home{ display:flex; align-items:center; justify-content:center; }
.home-blue  { grid-column:1/7;   grid-row:1/7;   background:#29ADFF; border-right:1px solid #000; border-bottom:1px solid #000; }
.home-red   { grid-column:10/16; grid-row:1/7;   background:#EA1D24; border-bottom:1px solid #000; }
.home-yellow{ grid-column:1/7;   grid-row:10/16; background:#FFDE17; border-right:1px solid #000; }
.home-green { grid-column:10/16; grid-row:10/16; background:#00A348; }
.home-inner{ width:66.7%; height:66.7%; background:#fff; border:1px solid #000; display:grid;
  grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; align-items:center; justify-items:center; gap:15%; padding:6%; }
.token-slot{ width:100%; height:100%; position:relative; display:flex; align-items:center; justify-content:center; }
.seat{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:38px; height:38px; border-radius:50%;
  border:1px solid #000; box-shadow:inset 0 3px 5px rgba(0,0,0,.35), inset 0 -1px 2px rgba(255,255,255,.1); }
.home-red .seat{ background:#EA1D24; } .home-blue .seat{ background:#29ADFF; }
.home-yellow .seat{ background:#FFDE17; } .home-green .seat{ background:#00A348; }
.center{ grid-column:7/10; grid-row:7/10;
  background:conic-gradient(from -45deg, #e53228 0deg 90deg, #1e9e4a 90deg 180deg, #f6d417 180deg 270deg, #2196e0 270deg 360deg);
  border-right:1px solid #000; border-bottom:1px solid #000; }
.star{ display:flex; align-items:center; justify-content:center; font-size:34px; line-height:1; }
.star-red{ color:#e53228; } .star-blue{ color:#2196e0; } .star-yellow{ color:#f6d417; } .star-green{ color:#1e9e4a; }
.star-exit{ color:#fff; }

/* tokens (pin: tip at cell/circle centre, body rising above) */
.token-layer{ position:absolute; inset:0; pointer-events:none; }
.moving-wrap{ position:absolute; width:40px; height:40px; transition:left .14s linear, top .14s linear; z-index:5; pointer-events:auto; }
.hop-inner{ width:100%; height:100%; position:relative; display:flex; align-items:center; justify-content:center; }
.moving-seat{ width:20px; height:20px; z-index:0; border:none; box-shadow:none; }
.moving-wrap.at-base .moving-seat{ display:none; }   /* carried circle only shows on the board */
.moving-seat-red   { background:rgba(229,50,40,.5);  box-shadow:inset 0 2px 4px rgba(0,0,0,.4), 0 0 4px rgba(229,50,40,.5); }
.moving-seat-blue  { background:rgba(33,150,224,.5); box-shadow:inset 0 2px 4px rgba(0,0,0,.4), 0 0 4px rgba(33,150,224,.5); }
.moving-seat-yellow{ background:rgba(246,212,23,.5); box-shadow:inset 0 2px 4px rgba(0,0,0,.4), 0 0 4px rgba(246,212,23,.5); }
.moving-seat-green { background:rgba(30,158,74,.5);  box-shadow:inset 0 2px 4px rgba(0,0,0,.4), 0 0 4px rgba(30,158,74,.5); }
.token{ width:40px; height:40px; margin-top:-45px; background:#e0e0e0; position:relative; z-index:1;
  transform:rotate(-45deg); border-radius:50% 50% 50% 0;
  box-shadow:inset -3px -3px 8px rgba(0,0,0,.4), 3px 3px 8px rgba(0,0,0,.3);
  display:flex; justify-content:center; align-items:center; cursor:pointer; }
.inner-circle{ width:23px; height:23px; border-radius:50%; transform:rotate(-45deg);
  box-shadow:inset 2px 2px 5px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.3); }
.token-red .inner-circle   { background:radial-gradient(circle at 30% 30%, #ff9a8f, #e53228); }
.token-blue .inner-circle  { background:radial-gradient(circle at 30% 30%, #8fcbff, #2196e0); }
.token-yellow .inner-circle{ background:radial-gradient(circle at 30% 30%, #fff3a0, #f6d417); }
.token-green .inner-circle { background:radial-gradient(circle at 30% 30%, #7be3a0, #1e9e4a); }
/* movable = gentle bob + a rotating 4-arc ring around the carried circle */
.moving-wrap.movable .token{ animation:tokBob .7s ease-in-out infinite; }
@keyframes tokBob{ 0%,100%{ transform:translateY(0) rotate(-45deg); } 50%{ transform:translateY(-7px) rotate(-45deg); } }
.move-ring{ position:absolute; top:50%; left:50%; width:28px; height:28px; margin:-14px 0 0 -14px;
  border-radius:50%; pointer-events:none; display:none; z-index:0;
  background:conic-gradient(#000 0 24deg, transparent 24deg 90deg, #000 90deg 114deg, transparent 114deg 180deg,
    #000 180deg 204deg, transparent 204deg 270deg, #000 270deg 294deg, transparent 294deg 360deg);
  -webkit-mask:radial-gradient(transparent 62%, #000 66%); mask:radial-gradient(transparent 62%, #000 66%);
  animation:ringSpin 1.5s linear infinite; }
.moving-wrap.movable .move-ring{ display:block; }
@keyframes ringSpin{ to{ transform:rotate(360deg); } }
@keyframes hopBounce{ 0%{ transform:translateY(0); } 50%{ transform:translateY(-20px); } 100%{ transform:translateY(0); } }
.hopping{ animation:hopBounce .15s ease-in-out; }

/* ===== CONTROLS + DICE ===== */
.game-controls{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-top:16px; }
/* The frame lives on ::before so it can blink / hide independently of the die. */
.dice-box{ position:relative; width:77px; height:77px; display:flex; align-items:center;
  justify-content:center; cursor:pointer; perspective:620px; }
.dice-box::before{ content:''; position:absolute; inset:0; border-radius:13px;
  border:4px solid var(--frame,#26324f); background:rgba(255,255,255,0.03);
  box-shadow:0 0 0 rgba(255,215,0,0); transition:opacity .25s, box-shadow .25s; z-index:0; }
/* A real 3D dice cube: the six face images assembled into a box, then spun.
   At rest it sits flat (looks 2D); the 3D only shows while it tumbles. */
.dice3d{ position:relative; z-index:1; width:65px; height:65px; }
.cube{ position:absolute; width:65px; height:65px; transform-style:preserve-3d;
  transform:rotateX(0deg) rotateY(0deg); }
/* faces overhang the 65px cube by 1px each side so the seams close to ~1px */
.cube .face{ position:absolute; top:-1px; left:-1px; width:67px; height:67px;
  object-fit:contain; backface-visibility:hidden; }
/* while rolling the tumbling cube is scaled down so it can't spill out of the box */
.dice-box.rolling .dice3d{ animation:dieShrink .8s ease; }
@keyframes dieShrink{ 0%{ transform:scale(1); } 12%{ transform:scale(.58); } 80%{ transform:scale(.58); } 100%{ transform:scale(1); } }
/* opposite faces sum to 7: 1/6, 2/5, 3/4 (half-edge = 32.5px) */
#dcF1{ transform:rotateY(0deg)   translateZ(32.5px); }
#dcF6{ transform:rotateY(180deg) translateZ(32.5px); }
#dcF2{ transform:rotateY(90deg)  translateZ(32.5px); }
#dcF5{ transform:rotateY(-90deg) translateZ(32.5px); }
#dcF3{ transform:rotateX(90deg)  translateZ(32.5px); }
#dcF4{ transform:rotateX(-90deg) translateZ(32.5px); }
/* opponent's turn → no frame at all, just the die */
.dice-box.no-frame::before{ opacity:0; }
/* my turn & ready to roll → the frame alone blinks gently (no jump) */
.dice-box.db-active::before{ box-shadow:0 0 20px rgba(255,215,0,.5); animation:frameBlink 1.15s ease-in-out infinite; }
@keyframes frameBlink{ 0%,100%{ opacity:1; } 50%{ opacity:.28; } }
.move-hint{ font-size:13px; color:var(--gold); min-height:18px; text-align:center; }

/* ===== RESULT MODAL ===== */
.modal-back{ position:fixed; inset:0; background:rgba(4,8,18,.8); z-index:400; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-back.open{ display:flex; }
.result-card{ background:var(--panel); border:1px solid #26324f; border-radius:20px; padding:28px 22px; text-align:center; max-width:340px; width:100%; }
.result-emoji{ font-size:56px; }
.result-title{ font-size:24px; font-weight:900; margin:8px 0; }
.result-sub{ color:var(--sub); font-size:14px; margin-bottom:20px; }
.result-btn{ background:var(--acc); border:none; color:#fff; font-weight:800; padding:12px 40px; border-radius:12px; cursor:pointer; }
.confirm-row{ display:flex; gap:10px; margin-top:8px; }
.confirm-row .result-btn{ flex:1; padding:12px 0; }
.confirm-no{ background:#2a2a3a; }
.confirm-yes{ background:#e2453f; }

/* ===== NOTIFICATIONS (Baron style) ===== */
.notif-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:1100; opacity:0; pointer-events:none; transition:opacity .25s; }
.notif-overlay.active{ opacity:1; pointer-events:all; }
.notif-modal{ position:fixed; bottom:-100%; left:0; right:0; max-height:75vh; background:#101a2e; border-radius:22px 22px 0 0; z-index:1101; display:flex; flex-direction:column; transition:bottom .3s cubic-bezier(.4,0,.2,1); }
.notif-modal.active{ bottom:0; }
.notif-modal-header{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px 10px; border-bottom:1px solid rgba(255,255,255,.08); }
.notif-modal-title{ font-size:1rem; font-weight:700; color:#fff; }
.notif-close-btn{ background:none; border:none; color:var(--sub); font-size:18px; cursor:pointer; }
.notif-list{ overflow-y:auto; flex:1; padding:8px 0; }
.notif-empty{ text-align:center; color:rgba(255,255,255,.35); padding:32px; font-size:.85rem; }
.notif-item{ padding:12px 18px; border-bottom:1px solid rgba(255,255,255,.06); }
.notif-item.notif-unread{ background:rgba(100,181,246,.07); border-left:3px solid #64b5f6; }
.notif-item-from{ font-size:.7rem; font-weight:700; color:#64b5f6; margin-bottom:3px; }
.notif-item-msg{ font-size:.82rem; color:#e0e0e0; white-space:pre-wrap; line-height:1.5; }
.notif-item-time{ font-size:.65rem; color:rgba(255,255,255,.3); margin-top:4px; }

/* ===== TOAST ===== */
/* Plain text only — no box/background — kept legible over the game with a shadow. */
.toast{ position:fixed; top:26px; left:50%; transform:translateX(-50%) translateY(-20px);
  background:transparent; border:none; color:#fff; padding:4px 12px; font-size:15px; font-weight:800;
  opacity:0; pointer-events:none; transition:.25s; z-index:1200; max-width:88vw; text-align:center;
  text-shadow:0 1px 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.8); }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ===== win-target crowns ===== */
.wt-box{ display:flex; align-items:center; justify-content:center; gap:2px; }
.wt-crown{ font-size:18px; line-height:1; filter:drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.rr-crowns{ font-size:13px; letter-spacing:1px; }

/* ===== colour picker ===== */
.color-row{ display:flex; gap:10px; margin-bottom:10px; }
.color-box{ flex:1; display:flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.02));
  border:1.5px solid rgba(255,255,255,.1); border-radius:12px; padding:6px 9px; cursor:pointer; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); transition:transform .12s, border-color .12s, box-shadow .12s; }
.color-box:active{ transform:scale(.96); }
.color-box.active{ border-color:var(--gold); box-shadow:0 0 0 1px var(--gold), 0 4px 14px rgba(255,215,0,.2); }
.cdot{ width:15px; height:15px; border-radius:50%; border:1px solid rgba(255,255,255,.35); }
.cvs{ font-size:10px; font-weight:800; color:var(--sub); }

/* ===== player avatars (VS) ===== */
.pl-avatar{ width:48px; height:48px; border-radius:14px; border:3px solid #888; background-size:cover;
  background-position:center; background-color:#1b2742; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:18px; color:#fff; flex-shrink:0; position:relative; }

/* ===== emoji reactions ===== */
/* An animated emoji over the sender's avatar: ~80% of the box, sitting on the
   avatar's bottom edge — top half over the photo, bottom half hanging below.
   Absolutely positioned so it never pushes the username down (no reflow). */
.pl-react{ position:absolute; left:50%; bottom:0; width:80%; height:80%;
  transform:translate(-50%,50%); pointer-events:none; z-index:20; display:none;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.pl-react.show{ display:block; }
.pl-react svg{ width:100%!important; height:100%!important; }

.emoji-fab{ position:fixed; left:14px; bottom:16px; z-index:60; width:46px; height:46px;
  border-radius:50%; background:rgba(20,28,48,.85); border:1.5px solid rgba(255,255,255,.18);
  color:#fff; font-size:22px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  box-shadow:0 4px 14px rgba(0,0,0,.4); }
.emoji-fab:active{ transform:scale(.92); }
.emoji-backdrop{ position:fixed; inset:0; z-index:64; display:none; }
.emoji-backdrop.show{ display:block; }
.emoji-panel{ position:fixed; left:12px; bottom:70px; z-index:66; width:min(212px,72vw);
  background:rgba(16,22,38,.96); border:1px solid rgba(255,255,255,.14); border-radius:16px;
  padding:9px; box-shadow:0 10px 30px rgba(0,0,0,.5);
  transform:translateY(12px) scale(.96); opacity:0; pointer-events:none;
  transition:transform .16s ease, opacity .16s ease; }
.emoji-panel.open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.emoji-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.emoji-cell{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:2px; cursor:pointer; width:100%; aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center; }
.emoji-cell:active{ transform:scale(.9); background:rgba(255,255,255,.12); }
.emoji-cell svg{ width:100%!important; height:100%!important; }

/* ===== wallet modal ===== */
.wallet-body{ padding:16px 18px 26px; }
.wallet-balance{ display:flex; align-items:baseline; justify-content:center; gap:6px; font-size:14px; color:var(--sub); margin-bottom:18px; }
.wallet-balance b{ font-size:26px; color:var(--gold); font-weight:900; }
.wallet-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wa-btn{ display:flex; flex-direction:column; align-items:center; gap:6px; background:var(--panel2); border:1px solid var(--border);
  border-radius:14px; padding:16px; font-size:22px; cursor:pointer; color:var(--txt); }
.wa-btn span{ font-size:12px; font-weight:700; }
.wa-btn.wa-dep{ background:#12281b; border-color:#1e5a38; }

/* ===== deposit modal ===== */
.dep-card{ background:var(--panel); border:1px solid #26324f; border-radius:18px; width:100%; max-width:400px; max-height:88vh; overflow:hidden; display:flex; flex-direction:column; }
.dep-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); font-weight:800; }
.dep-head button{ background:none; border:none; color:var(--sub); font-size:18px; cursor:pointer; }
.dep-body{ padding:14px 16px; overflow-y:auto; }
.dep-note{ font-size:12px; color:var(--sub); margin-bottom:12px; line-height:1.5; }
.dep-acct{ background:var(--panel2); border:1px solid var(--border); border-radius:12px; padding:12px; margin-bottom:14px; }
.dep-acct>div{ display:flex; justify-content:space-between; padding:4px 0; font-size:13px; }
.dep-acct span{ color:var(--sub); } .dep-acct b{ color:var(--gold); }
.dep-lbl{ display:block; font-size:12px; color:var(--sub); margin:8px 0 6px; }
.dep-input{ width:100%; background:#0d1424; border:1px solid #26324f; border-radius:10px; padding:12px; color:#fff; font-size:15px; }
.dep-sms{ resize:none; font-family:inherit; }
.dep-submit{ width:100%; margin-top:16px; background:linear-gradient(135deg,#39d98a,#1fae6a); border:none; color:#04160d; font-weight:900; font-size:16px; padding:14px; border-radius:12px; cursor:pointer; }

/* ===== terms ===== */
.terms-body{ overflow-y:auto; padding:14px 18px 26px; font-size:13px; line-height:1.6; }
.terms-body h4{ color:var(--gold); margin:14px 0 6px; font-size:14px; }
.terms-body ul{ padding-left:18px; } .terms-body li{ margin-bottom:5px; color:#d5def0; }
.terms-body p{ color:#d5def0; }

/* ============================================================
   DEPOSIT / WITHDRAW / HISTORY / WALLET / TERMS — mirrors Baron Bingo 1:1
   ============================================================ */
.sub-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-top: 4px; }
.back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--cyan); font-size: 1rem; transition: 0.2s;
}
.back-btn:active { transform: scale(0.9); }
.sub-title { flex: 1; font-size: 1.1rem; font-weight: 800; font-family: var(--font-am); }
.sub-badge {
  padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,149,0,0.15));
  color: var(--gold); border: 1px solid rgba(255,215,0,0.25);
  font-size: 0.75rem; font-weight: 800; font-family: var(--font-head);
}
.cta-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; border: none; border-radius: 14px;
  font-weight: 900; font-size: 1rem; letter-spacing: 0.5px; margin-top: 14px;
  transition: 0.2s; font-family: var(--font-am); cursor: pointer;
}
.cta-btn:active { transform: scale(0.97); }

.deposit-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border); border-radius: 18px; padding: 20px 16px;
}
.dc-title { font-size: 1rem; font-weight: 700; color: var(--cyan); margin-bottom: 14px; font-family: var(--font-am); }
.dc-field-label { font-size: 0.68rem; color: var(--text-dim); margin-top: 12px; margin-bottom: 4px; font-family: var(--font-am); }
.dc-field-val { font-weight: 700; font-size: 1rem; }
.dc-copy-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.4); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
}
.dc-copy-row span { font-weight: 700; color: var(--cyan); letter-spacing: 1.5px; font-size: 0.95rem; }
.copy-btn {
  padding: 6px 12px; border-radius: 7px; background: rgba(255,255,255,0.08);
  border: 1px solid var(--border); color: var(--text); font-size: 0.72rem; font-weight: 600;
  transition: 0.2s; cursor: pointer;
}
.copy-btn:active { transform: scale(0.93); background: rgba(255,255,255,0.15); }
.dc-input {
  width: 100%; padding: 12px 14px; margin-top: 4px; border-radius: 10px;
  background: rgba(0,0,0,0.45); border: 1px solid var(--border); color: var(--text);
  font-size: 0.9rem; font-family: var(--font-body); transition: border-color 0.25s;
}
.dc-input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,0.12); outline: none; }
.dc-input::placeholder { color: rgba(255,255,255,0.2); }

.history-section { margin-top: 20px; }
.hs-title { font-size: 0.8rem; font-weight: 700; color: var(--cyan); margin-bottom: 10px; font-family: var(--font-am); }
.history-list { display: flex; flex-direction: column; gap: 7px; }
.hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: rgba(255,255,255,0.04); border-radius: 12px;
  border-left: 3px solid var(--cyan); font-size: 0.82rem; transition: background 0.2s;
}
.hist-item.hist-dep { border-left-color: var(--green); }
.hist-item.hist-win { border-left-color: var(--gold); }
.hist-item.hist-bet { border-left-color: var(--red); }
.hist-item.hist-withdraw { border-left-color: var(--cyan); }
.hist-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hist-label { font-weight: 600; font-family: var(--font-am); font-size: 0.83rem; overflow: hidden; }
.hist-date { font-size: 0.62rem; color: rgba(255,255,255,0.35); margin-top: 2px; letter-spacing: 0.3px; }
.tx-copy { background: none; border: none; border-radius: 0; padding: 0 2px; font-size: 0.66rem; cursor: pointer; line-height: 1; vertical-align: middle; }
.tx-copy:active { transform: scale(0.9); }
.hist-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.hist-amount { font-weight: 800; font-size: 0.9rem; }
.hist-amount.pos { color: var(--green); }
.hist-amount.neg { color: var(--red); }
.hist-status { font-size: 0.62rem; color: rgba(255,215,0,0.8); font-style: italic; }
.hist-rejected { border-left: 3px solid #ff4444 !important; background: rgba(255,68,68,.05) !important; }
.resubmit-btn { margin-top: 5px; padding: 4px 12px; background: rgba(255,165,0,.15); color: #ffa500; border: 1px solid rgba(255,165,0,.3); border-radius: 8px; font-size: .7rem; font-weight: 700; cursor: pointer; }
.bonus-banner { background: linear-gradient(135deg, rgba(0,200,83,.15), rgba(0,230,118,.08)); border: 1px solid rgba(0,200,83,.35); border-radius: 12px; padding: 10px 14px; color: #00e676; font-size: .82rem; font-weight: 700; text-align: center; margin-bottom: 14px; animation: bonusPulse 2s infinite; }
@keyframes bonusPulse { 0%,100%{opacity:1} 50%{opacity:.75} }

.withdraw-balance-box { display:flex; align-items:center; justify-content:space-between; background:rgba(255,165,0,0.08); border:1px solid rgba(255,165,0,0.25); border-radius:12px; padding:14px 18px; margin-bottom:18px; }
.wbb-label { font-family:var(--font-am); font-size:0.82rem; color:var(--text-dim); }
.wbb-amount { font-size:1.15rem; font-weight:700; color:#ffa500; }
.withdraw-note { display:flex; gap:8px; align-items:flex-start; background:rgba(255,200,0,0.06); border:1px solid rgba(255,200,0,0.18); border-radius:10px; padding:12px 14px; margin:14px 0; font-family:var(--font-am); font-size:0.78rem; color:rgba(255,220,100,0.85); line-height:1.5; }
.withdraw-cta { background:linear-gradient(135deg,#ff8c00,#e65c00) !important; box-shadow:0 4px 18px rgba(255,100,0,0.35) !important; }

/* ===== WALLET MODAL ===== */
.wallet-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:900; backdrop-filter:blur(6px); }
.wallet-modal-overlay.active { display:block; }
.wallet-modal { display:none; position:fixed; left:50%; top:50%; transform:translate(-50%,-40%) scale(0.92); width:min(320px,88vw); background:linear-gradient(160deg,#1c1c3a 0%,#12122a 100%); border:1px solid rgba(255,255,255,0.1); border-radius:24px; z-index:901; opacity:0; transition:opacity 0.25s ease,transform 0.28s cubic-bezier(0.34,1.4,0.64,1); overflow:hidden; box-shadow:none; }
.wallet-modal.active { display:block; opacity:1; transform:translate(-50%,-50%) scale(1); }
.wallet-modal::before { content:''; display:block; height:3px; background:linear-gradient(90deg,#ffd700,#ff8c00,#ffd700); background-size:200% 100%; animation:wm-shine 2.5s linear infinite; }
@keyframes wm-shine { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.wm-inner { padding:22px 20px 24px; }
.wm-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.wm-label { font-family:var(--font-am); font-size:0.78rem; color:rgba(255,255,255,0.4); }
.wm-close-btn { background:rgba(255,255,255,0.08); border:none; color:rgba(255,255,255,0.5); width:28px; height:28px; border-radius:50%; font-size:0.9rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.wm-balance-row { display:flex; align-items:baseline; gap:8px; margin-bottom:22px; padding:16px; background:rgba(255,215,0,0.06); border-radius:14px; border:1px solid rgba(255,215,0,0.15); }
.wm-coin { font-size:1.4rem; }
.wm-balance { font-size:1.9rem; font-weight:900; color:#ffd700; flex:1; }
.wm-curr-tag { font-size:0.75rem; color:rgba(255,215,0,0.5); font-weight:600; align-self:center; }
/* Manual wallet-balance refresh button (🔄) — spins while a bounded retry runs. */
.wm-refresh { align-self:center; width:34px; height:34px; padding:0; margin-left:6px; display:inline-flex; align-items:center; justify-content:center; background:rgba(255,215,0,.10); border:1px solid rgba(255,215,0,.22); border-radius:50%; cursor:pointer; flex-shrink:0; }
.wm-refresh:active { transform:scale(.9); }
.wm-refresh img { width:18px; height:18px; }
.wm-refresh.spinning { animation:spin .8s linear infinite; }
/* Plain-text "ተጨማሪ አሳይ" pagination link at the foot of the transaction history. */
.hist-more{ text-align:center; padding:14px 0 6px; color:var(--gold,#ffd700); font-size:0.85rem; font-weight:600; cursor:pointer; user-select:none; }
.hist-more:active{ opacity:0.6; }
.wm-buttons { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.wm-btn { display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 10px; border:none; border-radius:16px; cursor:pointer; transition:transform 0.15s; }
.wm-btn:active { transform:scale(0.95); }
.wm-btn-icon { font-size:1.8rem; line-height:1; }
.wm-btn-name { font-size:0.9rem; font-weight:800; color:#fff; }
.wm-btn-sub { font-size:0.65rem; font-family:var(--font-am); color:rgba(255,255,255,0.7); }
.wm-deposit { background:linear-gradient(145deg,#00b248,#005c28); box-shadow:none; }
.wm-withdraw { background:linear-gradient(145deg,#e67e00,#7a3800); box-shadow:none; }

/* ===== TERMS MODAL (bingo style) ===== */
.terms-overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:1200; display:none; }
.terms-overlay.active { display:block; }
.terms-modal { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); width:min(92vw,460px); max-height:82vh; background:#14142a; border:1px solid var(--border); border-radius:16px; z-index:1201; display:none; flex-direction:column; overflow:hidden; }
.terms-modal.active { display:flex; }
.terms-modal-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); font-weight:700; color:#ffd700; }
.terms-modal-head button { background:none; border:none; color:#fff; font-size:1.1rem; cursor:pointer; line-height:1; }
.terms-modal-body { padding:14px 16px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.terms-modal-body h3 { color:#00e5ff; font-size:.95rem; margin:16px 0 6px; }
.terms-modal-body h3:first-child { margin-top:0; }
.terms-modal-body p, .terms-modal-body li { font-size:.82rem; line-height:1.65; color:rgba(255,255,255,.82); margin:5px 0; }
.terms-modal-body ul { padding-left:18px; margin:4px 0; }
.terms-modal-body b { color:#fff; }

/* ===== PHONE REGISTRATION MODAL ===== */
.phone-overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:1200; display:none; }
.phone-overlay.active { display:block; }
.phone-modal { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); width:min(90vw,360px); background:#14142a; border:1px solid var(--border); border-radius:16px; z-index:1201; display:none; overflow:hidden; }
.phone-modal.active { display:block; }

/* ===================== CRAZY CARD TABLE ===================== */
.cz-card { border-radius:6px; display:block; background-color:#111; background-size:cover; background-position:center; background-repeat:no-repeat; box-shadow:0 2px 6px rgba(0,0,0,0.45); }
.cz-back { background-color:#0b0b18; background-image:url("assets/cards/back.png?v=crazy1"); }

/* opponent row (top) */
.cz-opp { display:flex; align-items:center; gap:10px; padding:6px 10px 2px; }
.cz-opp-hand { display:flex; align-items:center; margin-left:auto; }
.cz-opp-hand .cz-mini { width:26px; height:36px; margin-left:-14px; border-radius:4px; }
.cz-opp-hand .cz-mini:first-child { margin-left:0; }
.cz-count { margin-left:8px; font-family:var(--font-head,inherit); font-weight:800; color:#ffd700; font-size:0.9rem; }

/* table centre: discard + draw piles */
.cz-table { display:flex; align-items:center; justify-content:center; gap:34px; padding:14px 0 6px; min-height:150px; }
.cz-pile { position:relative; }
.cz-topcard { width:92px; height:128px; }
.cz-back.cz-card { width:92px; height:128px; }
.cz-suit-badge { position:absolute; top:-10px; right:-10px; width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:1.05rem; font-weight:900;
  background:#fff; border:2px solid #ffd700; box-shadow:0 2px 6px rgba(0,0,0,0.5); }
.cz-suit-badge.suit-hearts, .cz-suit-badge.suit-diamonds { color:#e0263a; }
.cz-suit-badge.suit-clubs, .cz-suit-badge.suit-spades { color:#111; }
.cz-draw { cursor:pointer; }
.cz-draw-count { position:absolute; bottom:4px; left:50%; transform:translateX(-50%);
  font-size:0.7rem; font-weight:800; color:#fff; background:rgba(0,0,0,0.6); border-radius:8px; padding:1px 7px; }
.cz-stack-badge { position:absolute; top:-10px; left:-10px; min-width:26px; height:26px; padding:0 6px;
  display:flex; align-items:center; justify-content:center; border-radius:99px; font-weight:900; font-size:0.85rem;
  color:#fff; background:linear-gradient(135deg,#e53935,#ff7043); box-shadow:0 2px 6px rgba(0,0,0,0.5); }

/* my area (bottom) */
.cz-me { padding:4px 8px 12px; }
.cz-me-head { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.cz-draw-btn { margin-left:auto; background:rgba(255,255,255,0.08); border:1px solid var(--border,#333); color:#fff;
  font-family:var(--font-am,inherit); font-weight:800; font-size:0.85rem; padding:9px 14px; border-radius:11px; cursor:pointer; }
.cz-draw-btn.urgent { background:linear-gradient(135deg,#e53935,#ff7043); border-color:transparent; animation:czpulse 1s infinite; }
.cz-draw-btn:disabled { opacity:0.4; }
@keyframes czpulse { 50% { filter:brightness(1.25); } }
.cz-hand { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; padding:6px 2px; min-height:96px; }
.cz-hand-card { width:60px; height:84px; transition:transform .1s ease, box-shadow .1s ease; }
.cz-hand-card.legal { cursor:pointer; }
.cz-hand-card.legal:active { transform:translateY(-8px) scale(1.03); }
body.cz-myturn .cz-hand-card.legal { box-shadow:0 0 0 2px #2be37a, 0 3px 8px rgba(0,0,0,0.5); }
.cz-hand-card.dim { opacity:1; filter:brightness(0.5) grayscale(0.35); }

/* generic choice modal (suit / penalty / unload) */
.cz-choose-back { position:fixed; inset:0; background:rgba(0,0,0,0.82); backdrop-filter:blur(3px); z-index:10000; display:none; }
.cz-choose-back.show { display:block; }
.cz-choose { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%) scale(0.95); z-index:10001; display:none;
  width:min(320px,86vw); background:#161a2b; border:1px solid rgba(255,255,255,0.14); border-radius:18px;
  padding:18px; text-align:center; box-shadow:0 18px 50px rgba(0,0,0,0.75); }
.cz-choose.show { display:block; transform:translate(-50%,-50%) scale(1); }
.cz-choose-title { font-family:var(--font-am,inherit); font-weight:800; font-size:1rem; color:#ffd700; margin-bottom:14px; }
.cz-choose-row { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.cz-choose-btn { flex:1 1 40%; min-width:90px; padding:14px 10px; border-radius:12px; border:1px solid var(--border,#333);
  background:rgba(255,255,255,0.06); color:#fff; font-family:var(--font-am,inherit); font-weight:800; font-size:1rem; cursor:pointer; }
.cz-choose-btn.cz-suit-pick { font-size:1.9rem; flex:1 1 40%; }
.cz-choose-btn.suit-hearts, .cz-choose-btn.suit-diamonds { color:#ff5d6c; }
.cz-choose-btn.suit-clubs, .cz-choose-btn.suit-spades { color:#fff; }
.cz-choose-btn.primary { background:linear-gradient(135deg,#12c85a,#00e676); color:#04220f; border-color:transparent; font-weight:900; }

/* 7-unload picker: the 7 rides along any same-suit cards YOU tick. */
.cz-unload-grid { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:12px; max-height:240px; overflow-y:auto; }
.cz-unload-item { position:relative; cursor:pointer; display:block; }
.cz-unload-item .cz-mini-card { display:block; width:52px; height:73px; border-radius:6px; background-size:cover; background-position:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.5); outline:2px solid transparent; transition:outline-color .1s, opacity .1s; opacity:0.5; }
.cz-unload-item input { position:absolute; opacity:0; pointer-events:none; }
.cz-unload-item input:checked + .cz-mini-card { outline-color:#00e676; opacity:1; }
.cz-unload-item .cz-mini-tick { position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%; background:#00e676;
  color:#04220f; font-size:12px; font-weight:900; display:none; align-items:center; justify-content:center; }
.cz-unload-item input:checked ~ .cz-mini-tick { display:flex; }
.cz-unload-actions { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }

/* Result box: translucent + blurred so the final board (the last card played) shows
   behind it, like the lobby boxes. */
#resultModal.modal-back { background:rgba(6,7,12,0.45); }
#resultModal .result-card { background:rgba(20,26,40,0.72); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-color:rgba(255,255,255,0.14); box-shadow:0 16px 50px rgba(0,0,0,0.55); }

/* ===== Crazy: fanned hand + select-to-play + pile/draw/arrange buttons ===== */
.cz-pile-wrap { display:flex; flex-direction:column; align-items:center; gap:7px; }
.cz-pile-btn { background:rgba(255,255,255,0.08); border:1px solid var(--border,#333); color:#fff;
  font-family:var(--font-am,inherit); font-weight:800; font-size:0.82rem; padding:7px 20px; border-radius:10px; cursor:pointer; }
.cz-pile-btn:disabled { opacity:0.35; }
.cz-pile-btn.urgent { background:linear-gradient(135deg,#e53935,#ff7043); border-color:transparent; animation:czpulse 1s infinite; }

/* Two FIXED slots: pass always left, play always right. A hidden button leaves its
   slot empty (the other never slides into it) — see issue "ጣል/ይለፈኝ fixed places". */
.cz-me-actions { display:flex; align-items:center; gap:8px; width:100%; padding:0 8px; box-sizing:border-box; }
.cz-act-slot { flex:1 1 0; display:flex; align-items:center; min-height:44px; }
.cz-act-left { justify-content:flex-start; }
.cz-act-right { justify-content:flex-end; }
/* Organize button sits BELOW the hand, centred. */
.cz-hand-tools { display:flex; justify-content:center; padding:2px 0 10px; position:relative; z-index:3; }
/* On the opponent's turn my hand dims to 70% (not while arranging). */
body.crazy-ingame:not(.cz-myturn):not(.cz-arranging) #czHand .cz-hand-card { opacity:1; filter:brightness(0.55); }
.cz-play-btn { background:linear-gradient(135deg,#12c85a,#00e676); border:none; color:#04220f;
  font-family:var(--font-am,inherit); font-weight:900; font-size:0.9rem; padding:10px 20px; border-radius:12px; cursor:pointer;
  box-shadow:0 3px 10px rgba(0,230,118,0.35); }
.cz-pass-btn { background:rgba(255,255,255,0.07); border:1px solid var(--border,#333); color:#ffd27d;
  font-family:var(--font-am,inherit); font-weight:800; font-size:0.85rem; padding:9px 14px; border-radius:11px; cursor:pointer; }
.cz-arrange-btn { background:rgba(255,255,255,0.06); border:1px solid var(--border,#333); color:var(--text-dim,#9aa);
  font-family:var(--font-am,inherit); font-weight:700; font-size:0.8rem; padding:8px 12px; border-radius:11px; cursor:pointer; }
.cz-arrange-btn.on { background:linear-gradient(135deg,#3b5bdb,#5c7cfa); color:#fff; border-color:transparent; }

/* fanned hand: overlapping cards, each pivots from its bottom for an arc */
.cz-hand { display:flex; flex-wrap:nowrap; justify-content:center; align-items:flex-end;
  padding:34px 20px 10px; min-height:120px; overflow:visible; }
.cz-hand-card { width:66px; height:92px; margin-left:-26px; transform-origin:bottom center;
  transition:transform .12s ease, box-shadow .12s ease; box-shadow:0 2px 6px rgba(0,0,0,0.5); }
.cz-hand-card:first-child { margin-left:0; }
.cz-hand-card.sel { box-shadow:0 0 0 3px #00e676, 0 8px 18px rgba(0,0,0,0.6); }
.cz-hand-card.dragging { opacity:0.9; box-shadow:0 10px 22px rgba(0,0,0,0.7); transition:none; }
body.cz-arranging .cz-hand-card { touch-action:none; cursor:grab; }
body.cz-arranging .cz-hand { outline:1px dashed rgba(92,124,250,0.5); border-radius:14px; }

/* ================= Crazy relayout to match the reference design ================= */
/* LOBBY background: the supplied aces artwork, dimmed */
body {
  background:
    linear-gradient(rgba(6,7,12,0.60), rgba(6,7,12,0.70)),
    url("assets/lobby-bg.jpg") center center / cover no-repeat fixed,
    #05060a;
}
/* IN-GAME background: a clean premium dark gradient so the cards pop */
body.crazy-ingame {
  background:
    radial-gradient(150% 95% at 50% 2%, rgba(74,98,150,0.20), rgba(0,0,0,0) 55%),
    radial-gradient(130% 85% at 50% 100%, rgba(48,64,104,0.16), rgba(0,0,0,0) 62%),
    linear-gradient(180deg, #0c1220 0%, #080b16 55%, #05070e 100%);
  background-attachment: fixed;
}
/* long-press on a card must NOT pop the browser image link / drag preview */
.cz-card { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; }

/* OPPONENT zone: profile top-LEFT, tight fan shifted to the RIGHT (flipped 180°) */
.cz-opp-zone { position:relative; min-height:196px; padding:20px 8px 0 92px; }
.cz-opp-hand { display:flex; justify-content:center; align-items:flex-start; }
/* opponent fan is flipped 180° — they hold their hand from across the table */
.cz-opp-fan { display:flex; justify-content:center; align-items:flex-end; transform:rotate(180deg); transform-origin:center center; }
.cz-opp-card { width:80px; height:112px; margin-left:-76px; transform-origin:center 132%;
  box-shadow:0 6px 14px rgba(0,0,0,0.6); }
.cz-opp-card:first-child { margin-left:0; }
/* card-count badge on the opponent avatar */
.cz-opp-count { position:absolute; top:54px; left:52px; min-width:22px; height:22px; padding:0 5px;
  display:flex; align-items:center; justify-content:center; border-radius:99px;
  background:rgba(0,0,0,0.72); border:1px solid rgba(255,215,0,0.55);
  font-family:var(--font-head,inherit); font-weight:800; color:#ffd700; font-size:0.78rem; z-index:6; }

/* profile card (opponent + me) — both pinned to the LEFT */
.cz-prof { display:flex; flex-direction:column; align-items:center; gap:5px; width:80px; text-align:center; }
/* Match the Ludo/Dama profile avatar: 48px rounded-square, 3px border whose
   colour is set per-player from JS (av.style.borderColor). */
.cz-prof .pl-avatar { width:48px; height:48px; border-radius:14px; background:#1b2742 center/cover no-repeat;
  border:3px solid #888; position:relative; }
.cz-prof .pl-name { font-family:var(--font-am,inherit); font-weight:700; font-size:12px; color:#fff;
  max-width:96px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cz-prof .pl-timer { font-family:var(--font-head,inherit); font-weight:800; font-size:0.92rem; color:#ffd54d; }
.cz-opp-prof { position:absolute; top:8px; left:8px; z-index:5; }

/* TABLE: draw pile (LEFT, with ሳብ) + discard (CENTRE), equal size, tops aligned.
   The ሳብ button floats BELOW the draw card so it never shifts the card. */
.cz-table { position:relative; min-height:188px; padding:44px 0 44px; }
/* discard: a small centred box; cards inside are absolutely centred so the pile can
   scatter around one point. Sized to match the hand / opponent cards. */
/* discard hugs the RIGHT (mirrors the draw pile on the left) */
.cz-pile.cz-discard { position:relative; width:84px; height:118px; margin:0 26px 0 auto; }
.cz-discard-pile { position:absolute; inset:0; }
.cz-discard-card { position:absolute; left:50%; top:50%; width:84px; height:118px; }
.cz-topcard { position:absolute; left:50%; top:50%; width:84px; height:118px; z-index:3; }
.cz-discard .cz-suit-badge { z-index:4; }
.cz-pile-wrap { position:absolute; left:22px; top:44px; display:flex; flex-direction:column; align-items:center; }
.cz-pile-btn { position:absolute; top:100%; left:50%; transform:translateX(-50%); margin-top:9px; white-space:nowrap; }
.cz-back.cz-card { width:84px; height:118px; }     /* draw pile card — equal to discard */

/* MY zone: profile bottom-LEFT (never covered), actions, tight fan shifted RIGHT */
.cz-me-zone { position:relative; padding:4px 8px 14px; }
/* my profile: fixed just ABOVE the 😊 emoji FAB (which sits at bottom:16 / 46px tall)
   so the countdown timer under my name is never covered by the emoji button. */
.cz-me-prof { position:fixed; left:10px; bottom:74px; z-index:61; }
.cz-me-actions { display:flex; gap:8px; justify-content:flex-end; align-items:center; padding:0 6px 2px; min-height:46px; }
.cz-me-zone .cz-hand { padding:30px 20px 40px 96px; }   /* left pad clears the bottom-left profile → fan on the right; bottom pad lifts the fan clear of the ☰ አደራጅ button */

/* post badge: "crazy" (replaces the ludo crown tokens) */
.rr-crowns.rr-crazy { font-family:var(--font-head,inherit); font-weight:800; font-size:0.72rem;
  letter-spacing:0.5px; color:#ffd54d; text-transform:lowercase; }

/* fan cards (both hands): tight single-pivot fan — heavy overlap, only corners peek */
.cz-opp-card, .cz-hand-card { border-radius:7px; }
.cz-hand { min-height:176px; align-items:flex-end; }
.cz-hand-card { width:84px; height:118px; margin-left:-80px; transform-origin:center 132%; }
.cz-hand-card:first-child { margin-left:0; }

/* ═══════════════ UI ICONS (replace user-facing emojis) ═══════════════ */
.ic { height: 1em; width: auto; vertical-align: -0.14em; display: inline-block;
  object-fit: contain; flex: none;
  pointer-events: none; -webkit-user-drag: none; }
.ic-lg { height: 1.5em; vertical-align: -0.28em; }
/* 🎮 / 👑 icons that replaced emoji: bump to match the emoji's visual size */
.ic[src$="/game.png"], .ic[src$="/crown.png"]{ height:1.3em; vertical-align:-0.24em; }
.ic-xl { height: 2.4em; vertical-align: middle; }
/* icons that live inside fixed-size icon spans fill their box */
.mnb-icon .ic, .wm-btn-icon .ic { height: 1.15em; vertical-align: -0.18em; }

/* ═══════════════ TOP-BAR + WALLET polish (follow-up) ═══════════════ */
/* Wallet-modal deposit/withdraw icons are white on the coloured buttons */
.wm-btn-icon .ic { filter: brightness(0) invert(1); }
/* Wallet balance: plain Orbitron numerals (matches all Baron apps) */
#topBalance, .mbl-value, .wm-balance { font-family: -apple-system, 'Segoe UI', Roboto, 'Noto Sans Ethiopic', sans-serif !important; }
/* Top-bar alignment */
.top-balance { line-height: 1; align-items: center; gap: 6px; }
.top-balance .tb-coin { display: inline-flex; align-items: center; font-size: 1rem; line-height: 1; }
.top-balance .tb-coin .ic { height: 1.15em; width: auto; vertical-align: middle; }
#topBalance { font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center; }
.notif-bell-btn > span:first-child { display: inline-flex; align-items: center; line-height: 1; }
.menu-toggle { background: none; border: none; justify-content: center; gap: 5px; height: auto; padding: 6px 10px; }
.menu-toggle span { width: 22px; height: 2.5px; }

/* top-bar: shrink the wallet pill to match the hamburger (☰ untouched); bell nudged toward it */
.menu-toggle { height: 34px; box-sizing: border-box; }
.top-balance { height: 28px; box-sizing: border-box; padding: 0 12px; }
.top-bar > div:last-child { gap: 2px !important; }
.notif-bell-btn { padding-right: 2px !important; }

/* side-menu link icons all render white (person/group icon was tinted) */
.menu-links .ic { filter: brightness(0) invert(1); }

/* etfc/football use a 14px rem base but crazy defaults to 16px — pin the top-balance
   wallet display sizes in px so crazy matches etfc's icon+number exactly. */
.top-balance .tb-coin { font-size: 14px; }
.top-balance .tb-coin .ic { height: 16px; }
#topBalance { font-size: 13.3px; }

/* ═══ crazy: stake-alert bell + alert modal (ported from ludo/dama) ═══ */
.wt-bell{ flex:0 0 auto; background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.14);
  color:var(--gold); height:24px; padding:0 11px; border-radius:8px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; line-height:1; }
.wt-bell:active{ transform:translateY(1px); }
.wt-bell .ic{ height:16px; opacity:.5; }   /* dimmed to match the muted "private room" text */
.alert-card{ text-align:left; }
.alert-title{ font-size:18px; font-weight:900; color:var(--gold); margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.alert-sub{ font-size:12.5px; color:var(--sub); margin-bottom:14px; line-height:1.4; }
.alert-toggle{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; margin-bottom:14px; cursor:pointer; }
.at-lbl{ flex:1; }
.alert-toggle input{ position:absolute; opacity:0; width:0; height:0; }
.at-switch{ position:relative; flex:0 0 auto; width:44px; height:26px; border-radius:13px; background:#3a4658; transition:background .18s ease; }
.at-knob{ position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.4); transition:transform .18s ease; }
.alert-toggle input:checked + .at-switch{ background:linear-gradient(135deg,#39d98a,#1fae6a); }
.alert-toggle input:checked + .at-switch .at-knob{ transform:translateX(18px); }
.alert-range{ display:flex; gap:10px; margin-bottom:16px; }
.alert-field{ flex:1; }
.alert-lbl{ font-size:11.5px; color:var(--sub); margin-bottom:4px; }
.alert-select{ width:100%; padding:9px 10px; border-radius:10px; background:#111a28; color:#e7ecf3; border:1px solid #2a3547; font-size:14px; }
.alert-btns{ display:flex; gap:10px; }
.alert-btns .result-btn{ flex:1; }
.alert-cancel{ background:#243144 !important; color:#e7ecf3 !important; }

/* Prevent the mobile long-press image menu (Open in / Download / Copy Link) from exposing asset URLs. */
img{ -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; }

.slow-net{ position:fixed; left:50%; bottom:14px; transform:translateX(-50%) translateY(12px);
  background:rgba(20,10,10,.92); color:#ffcaca; border:1px solid rgba(255,90,90,.5);
  font-family:var(--font-am,inherit); font-size:12.5px; font-weight:700; white-space:nowrap;
  padding:8px 16px; border-radius:99px; z-index:1400; opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease; box-shadow:0 6px 20px rgba(0,0,0,.5); }
.slow-net.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.slow-net.slow{ background:rgba(40,28,4,.94); color:#ffe08a; border-color:rgba(255,200,60,.55); }

/* FREE stake (0 ETB) — same look as the other stakes */
.stake-btn.free .sb-amt{ letter-spacing:1px; }

/* FREE practice hint bar (same as ludo) */
.tutor-hint{ position:fixed; left:10px; right:10px; top:148px; z-index:40; max-width:540px; margin:0 auto; background:rgba(8,12,26,.94); border:1px solid rgba(0,229,255,.45);
  border-radius:12px; padding:9px 12px; font-size:.86rem; line-height:1.35; color:#fff; font-family:var(--font-am); }
.tutor-hint b{ color:var(--cyan,#00e5ff); }
