/* ============================================================
   GhostCasino — components & monochrome icon system
   ============================================================ */

/* ---------- Icon helper ---------- */
.ico { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.ico svg { width: 100%; height: 100%; }

.section-title .ico { width: 18px; height: 18px; color: var(--accent-2); margin-right: 2px; }
.chip .ico { width: 15px; height: 15px; }
.side-ico { width: 19px; height: 19px; }
.topbar-search .ico, .bell .ico { width: 18px; height: 18px; color: var(--text-dim); }
.topbar-search:hover .ico, .bell:hover .ico { color: var(--text); }
.bonuses-gift .ico { width: 16px; height: 16px; color: var(--accent-2); }
.avatar .ico { width: 18px; height: 18px; color: var(--text-dim); }
.chat-send .ico { width: 16px; height: 16px; color: #fff; }
.promo-ico { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.9); }
.hero-art-ico { width: 96px; height: 96px; color: rgba(255, 255, 255, 0.16); }
.game-card-ico { width: 52px; height: 52px; color: rgba(255, 255, 255, 0.85); }
.win-thumb-ico { width: 22px; height: 22px; color: rgba(255, 255, 255, 0.85); }
.game-page-ico { width: 24px; height: 24px; color: var(--accent-2); vertical-align: -5px; }
.pt-ico-svg { width: 30px; height: 30px; color: var(--text-dim); }
.quest-ico-svg { width: 24px; height: 24px; color: var(--accent-2); }
.info-ico { width: 52px; height: 52px; color: var(--text-faint); margin-bottom: 14px; }
.sr-ico { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.sr-ico .ico { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.85); }
.crash-rocket-ico { width: 34px; height: 34px; color: var(--accent-2); }
.crash-burst { color: var(--red); }
.battle-vs-ico { width: 26px; height: 26px; color: var(--accent-2); }
.case-option-ico { width: 30px; height: 30px; color: var(--case-accent, var(--text-dim)); }
.case-item-ico { width: 26px; height: 26px; }

/* ---------- Monochrome initials avatar ---------- */
.mono-ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel-3); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px;
}
.mono-ava-lg { width: 68px; height: 68px; flex: 0 0 68px; font-size: 20px; }
.chat-ava { background: none; }
.profile-ava { background: none; border: none; width: auto; height: auto; }

/* ---------- Sidebar: mini games submenu ---------- */
.side-group-toggle { width: 100%; text-align: left; }
.side-group-toggle .side-caret { transition: transform 0.2s; display: inline-flex; }
.side-group-toggle .side-caret .ico { width: 14px; height: 14px; }
.side-nav.minis-open .side-group-toggle .side-caret { transform: rotate(180deg); }
.side-submenu {
  display: none; flex-direction: column; gap: 4px;
  margin: 4px 0 4px 10px; padding-left: 8px;
  border-left: 1px solid var(--line);
}
.side-nav.minis-open .side-submenu { display: flex; }
.side-sub-link { padding: 8px 10px; font-size: 12.5px; background: transparent; }
.side-sub-link:hover { background: var(--panel); }
.app.sidebar-collapsed .side-submenu { margin-left: 0; padding-left: 0; border-left: none; }

/* ---------- Wheel / roulette pointers (CSS triangles) ---------- */
.roulette-pointer, .fortune-pointer {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; font-size: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 18px solid var(--gold);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.roulette-pointer { top: -12px; }
.fortune-pointer { top: -10px; border-left-width: 13px; border-right-width: 13px; border-top-width: 22px; }
.fortune-hub { color: var(--gold); font-size: 30px; }

/* ---------- Slot reels: monochrome glyphs ---------- */
.reel { font-family: Georgia, "Times New Roman", serif; }
.reel-symbol { color: var(--text); text-shadow: 0 0 18px rgba(255, 255, 255, 0.25); font-weight: 700; }

/* ---------- Coin (H / T) ---------- */
.coin {
  font-size: 56px; font-weight: 800; font-family: Georgia, serif;
  color: #5a4200; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- Playing cards (Blackjack / Baccarat) ---------- */
.bj-table { display: flex; flex-direction: column; gap: 18px; padding: 6px 0; }
.bj-row { display: flex; flex-direction: column; gap: 8px; }
.bj-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--text-faint); }
.bj-total { color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.bj-cards { display: flex; gap: 8px; min-height: 74px; flex-wrap: wrap; }
.pcard {
  width: 52px; height: 72px; border-radius: 8px;
  background: linear-gradient(160deg, #f4f4f6, #d8d8de);
  color: #17171e; font-family: Georgia, serif;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  animation: popIn 0.25s ease;
}
.pcard b { font-size: 19px; line-height: 1; }
.pcard i { font-style: normal; font-size: 16px; }
.pcard-back {
  background: linear-gradient(160deg, #23232e, #17171e);
  border: 1px solid var(--line); color: var(--text-faint); font-size: 20px;
}
.bj-actions { display: none; gap: 10px; }
.bj-actions.show { display: flex; }
.bj-btn {
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 11px 22px; border-radius: 10px; font-weight: 800; font-size: 13px;
  transition: 0.12s; color: var(--text);
}
.bj-btn:hover:not(:disabled) { border-color: var(--accent); }
.bj-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.bac-bets { display: flex; gap: 10px; flex-wrap: wrap; }
.bac-bet {
  flex: 1; min-width: 110px; padding: 13px 10px; border-radius: 10px;
  background: var(--panel-2); border: 2px solid var(--line);
  font-weight: 800; font-size: 13px; color: var(--text); transition: 0.12s;
}
.bac-bet small { display: block; font-size: 10px; color: var(--text-faint); font-weight: 700; margin-top: 2px; }
.bac-bet:hover { border-color: var(--panel-3); }
.bac-bet.selected { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Case opening ---------- */
.case-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.case-option {
  flex: 1; min-width: 140px; padding: 14px 12px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: 0.12s;
}
.case-option:hover { border-color: var(--panel-3); }
.case-option.selected { border-color: var(--case-accent, var(--accent)); box-shadow: 0 0 16px color-mix(in srgb, var(--case-accent, var(--accent)) 30%, transparent); }
.case-option-name { font-weight: 800; font-size: 13px; }
.case-option-price { font-size: 12px; color: var(--gold); font-weight: 700; }

.case-reel-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); padding: 14px 0; margin-bottom: 14px;
}
.case-reel { display: flex; gap: 8px; will-change: transform; }
.case-reel-marker {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--gold); z-index: 2;
  box-shadow: 0 0 12px rgba(255, 194, 51, 0.7);
}
.case-item {
  flex: 0 0 112px; width: 112px; height: 96px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.case-item-name { font-size: 11px; font-weight: 800; }
.case-item-value { font-size: 10px; color: var(--text-dim); font-weight: 700; }
.r-common { border-bottom-color: #62626e; } .r-common .case-item-ico { color: #9b9ba8; }
.r-rare { border-bottom-color: #3498ff; } .r-rare .case-item-ico { color: #3498ff; }
.r-epic { border-bottom-color: #8e44ff; } .r-epic .case-item-ico { color: #a86bff; }
.r-legend { border-bottom-color: var(--gold); } .r-legend .case-item-ico { color: var(--gold); }
.case-win-flash { box-shadow: 0 0 22px rgba(255, 194, 51, 0.5); border-color: var(--gold); }

.case-contents-title { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; color: var(--text-faint); margin-bottom: 8px; }
.case-contents-row { display: flex; gap: 8px; flex-wrap: wrap; }
.case-contents-row .case-item { flex: 0 0 100px; width: 100px; height: 88px; }

/* ---------- Case battles ---------- */
.battle-arena {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; margin-top: 4px;
}
.battle-side { display: flex; flex-direction: column; gap: 10px; border-radius: 10px; padding: 10px; transition: 0.3s; }
.battle-side.battle-winner { background: rgba(46, 204, 113, 0.08); box-shadow: inset 0 0 0 1px var(--green); }
.battle-player { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13px; }
.battle-total { font-size: 19px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.battle-drops { display: flex; gap: 8px; flex-wrap: wrap; min-height: 96px; }
.battle-vs { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; color: var(--text-faint); padding-top: 20px; }
.battle-drop { animation: popIn 0.3s ease; }

/* ---------- Jackpot ---------- */
.jp-wrap { display: flex; flex-direction: column; gap: 16px; }
.jp-pot {
  text-align: center; padding: 22px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
}
.jp-pot-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--text-faint); }
.jp-pot-amount { font-size: 40px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; margin: 6px 0; }
.jp-status { font-size: 13px; color: var(--text-dim); font-weight: 700; }
.jp-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 12px; }
.jp-bar-fill { height: 100%; width: 0; background: var(--accent-grad); border-radius: 4px; }
.jp-players { display: flex; flex-direction: column; gap: 8px; }
.jp-player {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px;
  transition: 0.12s; animation: slideIn 0.3s ease;
}
.jp-player.self { border-color: rgba(255, 78, 0, 0.4); }
.jp-player.jp-rolling { border-color: var(--gold); background: rgba(255, 194, 51, 0.07); }
.jp-player.jp-winner { border-color: var(--green); background: rgba(46, 204, 113, 0.09); }
.jp-player-name { font-weight: 800; font-size: 13px; flex: 1; }
.jp-player-amount { font-weight: 700; font-size: 13px; color: var(--text-dim); }
.jp-player-share { font-weight: 800; font-size: 13px; min-width: 52px; text-align: right; }

/* ---------- Keno ---------- */
.keno-info { display: flex; gap: 10px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.keno-board { display: grid; grid-template-columns: repeat(8, 46px); gap: 7px; justify-content: center; }
.keno-cell {
  width: 46px; height: 46px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 800; font-size: 13px; color: var(--text-dim); transition: 0.1s;
}
.keno-cell:hover:not(:disabled) { border-color: var(--panel-3); color: var(--text); }
.keno-cell.picked { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.keno-cell.drawn { border-color: var(--text-faint); background: var(--panel-3); color: var(--text); animation: popIn 0.25s ease; }
.keno-cell.hit { border-color: var(--green); background: rgba(46, 204, 113, 0.14); color: var(--green); animation: popIn 0.25s ease; }
.keno-paytable { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.keno-paytable span { font-size: 12px; color: var(--text-dim); background: var(--panel-2); padding: 5px 10px; border-radius: 8px; }

/* ---------- Plinko ---------- */
.plinko-stage { max-width: 560px; margin: 0 auto; }
.plinko-board {
  position: relative; height: 320px;
  display: flex; flex-direction: column; justify-content: space-evenly;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}
.plinko-row { display: flex; justify-content: center; gap: 34px; }
.plinko-peg { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.plinko-ball {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(255, 194, 51, 0.8);
  transform: translate(-50%, -50%); z-index: 2;
  transition: left 0.16s ease, top 0.16s ease-in;
}
.plinko-buckets { display: flex; gap: 3px; }
.plinko-bucket {
  flex: 1; text-align: center; padding: 9px 0; font-weight: 800; font-size: 11px;
  background: var(--panel-2); border: 1px solid var(--line); border-top: none;
  color: var(--text-dim); transition: 0.15s;
}
.pb-hot { color: var(--accent-2); }
.pb-mid { color: var(--text); }
.pb-low { color: var(--text-faint); }
.plinko-bucket.pb-flash { background: var(--accent-soft); border-color: var(--accent); transform: translateY(3px); }

/* ---------- Tower ---------- */
.tower-board { display: flex; flex-direction: column; gap: 7px; max-width: 380px; margin: 14px auto 0; }
.tower-row { display: flex; gap: 7px; align-items: center; opacity: 0.65; transition: 0.15s; }
.tower-row.tower-active { opacity: 1; }
.tower-mult { width: 56px; font-size: 11px; font-weight: 800; color: var(--text-faint); text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.tower-row.tower-active .tower-mult { color: var(--accent-2); }
.tower-tile {
  flex: 1; height: 40px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 800; font-size: 15px; transition: 0.12s; color: var(--text);
}
.tower-row.tower-active .tower-tile:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.tower-tile.tower-safe { background: rgba(46, 204, 113, 0.12); border-color: var(--green); color: var(--green); }
.tower-tile.tower-trap { background: rgba(255, 71, 87, 0.12); border-color: var(--red); color: var(--red); }

/* ---------- Limbo ---------- */
.limbo-stage { text-align: center; padding: 10px 0; }
.limbo-display {
  font-size: 58px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 30px 0; color: var(--text);
}
.limbo-rolling { color: var(--text-dim); }
.limbo-win { color: var(--green); text-shadow: 0 0 26px rgba(46, 204, 113, 0.4); }
.limbo-lose { color: var(--red); text-shadow: 0 0 26px rgba(255, 71, 87, 0.4); }
.limbo-target {
  width: 90px; background: none; border: none; outline: none;
  color: var(--text); font-weight: 800; font-size: 15px; text-align: center;
  font-family: inherit;
}
.limbo-stage .crash-history { margin-top: 16px; }

/* ---------- Misc overrides ---------- */
.game-page-titlebox { display: flex; align-items: center; gap: 9px; }
.hero-banner .hero-art { font-size: 0; }
.game-card-art { font-size: 0; }
.win-thumb { font-size: 0; }
.chat-expand { font-size: 15px; color: var(--text-dim); }
.quest-ico { background: var(--panel-2); }
.mine-cell { color: var(--text); font-family: Georgia, serif; }
.mine-cell.revealed-gem { color: var(--green); }
.mine-cell.revealed-mine { color: var(--red); }
