:root {
  --font-body: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bahnschrift", "Arial Narrow", "Segoe UI Variable Display", sans-serif;
  --bg: #0b0d10;
  --surface: #11151a;
  --surface-2: #171c22;
  --surface-3: #1d232b;
  --border: #2a313a;
  --border-bright: #3b4652;
  --text: #f3f5f1;
  --muted: #929ca7;
  --muted-2: #646d77;
  --accent: #b9ff66;
  --accent-dark: #10180b;
  --red: #ff6577;
  --blue: #7f9cff;
  --yellow: #ffcf5c;
  --shadow: 8px 8px 0 #050607;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }
.shell { min-height: 100vh; }

.topbar {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.96);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; width: max-content; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 22px; transform: rotate(-5deg); }
.brand strong { display: block; font-family: var(--font-display); letter-spacing: .08em; font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .22em; margin-top: 2px; }
.desktop-nav { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); padding: 5px; border-radius: 999px; }
.nav-link { border: 0; background: transparent; color: var(--muted); padding: 10px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.nav-link:hover, .nav-link.active { background: var(--surface-3); color: var(--text); }
.account-area { justify-self: end; display: flex; align-items: center; gap: 10px; }
.balance-pill { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); padding: 7px 12px 7px 8px; border-radius: 999px; }
.balance-pill > span:last-child { display: flex; align-items: baseline; gap: 5px; }
.balance-pill strong { font-size: 14px; }
.balance-pill small { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.balance-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #0b0d10; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.avatar-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-bright); background: var(--surface-2); cursor: pointer; font-weight: 700; }

.button { border: 1px solid var(--border-bright); background: var(--surface-2); padding: 11px 17px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--muted); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button-primary { background: var(--accent); color: #0a0d08; border-color: var(--accent); }
.button-primary:hover { background: #c8ff88; border-color: #c8ff88; }
.button-ghost { background: transparent; }
.button-large { padding: 14px 20px; font-size: 14px; }
.button-full { width: 100%; }
.text-button { border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 700; }

main { max-width: 1440px; margin: 0 auto; padding: 0 40px 80px; }
.view { display: none; }
.view.active { display: block; animation: view-in .28s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero { min-height: 630px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .19em; margin: 0 0 18px; }
.hero h1, .narrow-page > h2, .game-sidebar h2 { font-family: var(--font-display); font-size: clamp(46px, 6vw, 84px); line-height: .98; letter-spacing: -.045em; margin: 0; }
.hero h1 span { color: var(--accent); }
.hero-text { color: var(--muted); max-width: 610px; font-size: 18px; line-height: 1.65; margin: 28px 0; }
.hero-actions { display: flex; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; color: var(--muted-2); font-size: 10px; letter-spacing: .12em; }
.trust-row span::before { content: "•"; color: var(--accent); margin-right: 8px; }

.hero-visual { height: 460px; position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual::before { content: ""; position: absolute; inset: 24px; border: 1px solid #252c34; border-radius: 20px; }
.hero-card { width: 176px; height: 240px; background: #f4f2e9; color: #121418; border-radius: 16px; position: absolute; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; font-family: var(--font-display); font-weight: 800; font-size: 58px; box-shadow: 12px 15px 0 rgba(0,0,0,.36); }
.hero-card small { font-size: 42px; }
.card-one { left: 25%; top: 18%; transform: rotate(-13deg); }
.card-two { left: 45%; top: 25%; transform: rotate(11deg); color: #d93b52; }
.coin-display { position: absolute; width: 128px; height: 128px; border-radius: 50%; background: var(--accent); color: #0d100a; display: grid; place-items: center; right: 10%; top: 14%; border: 9px solid #d6ff9c; box-shadow: 9px 10px 0 #080a0c; transform: rotate(10deg); }
.coin-display span { font-family: var(--font-display); font-size: 58px; font-weight: 800; }
.stat-block { position: absolute; background: var(--surface-3); border: 1px solid var(--border-bright); padding: 14px 16px; min-width: 130px; }
.stat-block small { color: var(--muted); display: block; font-size: 9px; letter-spacing: .13em; }
.stat-block strong { display: block; margin-top: 5px; font-size: 20px; }
.stat-top { right: 6%; bottom: 18%; }
.stat-bottom { left: 7%; bottom: 9%; }

.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 68px 0 28px; }
.section-heading h2 { font-family: var(--font-display); font-size: 38px; margin: 0; letter-spacing: -.03em; }
.section-heading > p { color: var(--muted); max-width: 470px; margin: 0; line-height: 1.6; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card { min-height: 430px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 22px; position: relative; cursor: pointer; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.game-card:hover { transform: translateY(-5px); border-color: var(--border-bright); }
.game-card-top { display: flex; justify-content: space-between; align-items: center; }
.game-label { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.live-dot, .muted-badge { font-size: 9px; letter-spacing: .11em; border: 1px solid var(--border); padding: 6px 8px; border-radius: 999px; }
.live-dot { color: var(--accent); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 6px; }
.muted-badge { color: var(--muted-2); }
.game-card-copy { position: absolute; left: 22px; right: 65px; bottom: 22px; }
.game-card h3 { font-family: var(--font-display); font-size: 28px; margin: 0 0 8px; }
.game-card p { color: var(--muted); margin: 0; line-height: 1.5; }
.card-arrow { position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-bright); background: transparent; cursor: pointer; }
.coin-art { height: 270px; display: grid; place-items: center; position: relative; }
.coin-flat { width: 150px; height: 150px; border-radius: 50%; background: var(--accent); color: #0c1009; border: 10px solid #d5ffa3; display: grid; place-items: center; font-family: var(--font-display); font-size: 70px; font-weight: 800; transform: rotate(-9deg); position: relative; z-index: 2; }
.coin-shadow { width: 150px; height: 150px; border-radius: 50%; background: #060708; position: absolute; transform: translate(13px, 15px) rotate(-9deg); }
.mini-table { height: 270px; margin: 18px 0 0; background: #143528; border: 1px solid #285d49; border-radius: 140px 140px 22px 22px; position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; }
.mini-card { width: 82px; height: 118px; background: #f4f2e9; color: #15171b; border-radius: 9px; padding: 10px; font-family: var(--font-display); font-size: 28px; font-weight: 800; transform: rotate(-5deg); }
.mini-card:nth-child(2) { transform: rotate(7deg); }
.mini-card small { display: block; }
.mini-card.red { color: #d84255; }
.table-score { position: absolute; bottom: 20px; border: 1px solid #4a7d69; color: var(--accent); padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.coming-card { background: #0e1115; }
.coming-art { height: 270px; display: grid; place-items: center; color: var(--muted-2); font-size: 120px; font-weight: 200; }

.activity-panel { margin-top: 58px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h3 { font-family: var(--font-display); font-size: 25px; margin: 0; }
.history-list { margin-top: 20px; }
.history-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--border); align-items: center; }
.history-row span { color: var(--muted); }
.history-row strong.win { color: var(--accent); }
.history-row strong.loss { color: var(--red); }
.empty-state { color: var(--muted); padding: 22px 0; }

.game-layout { display: grid; grid-template-columns: 310px 1fr; gap: 34px; padding-top: 54px; min-height: calc(100vh - 160px); }
.game-sidebar { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 28px; height: max-content; position: sticky; top: 112px; }
.game-sidebar h2 { font-size: 44px; }
.game-sidebar > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.rule-list { margin-top: 28px; }
.rule-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.rule-list span { color: var(--muted); font-size: 13px; }
.rule-list strong { font-size: 13px; }
.game-stage { min-height: 650px; border: 1px solid var(--border); background: var(--surface); border-radius: 24px; padding: 26px; }
.stage-topline { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); letter-spacing: .14em; }
.coin-stage { display: flex; flex-direction: column; align-items: center; }
.coin-stage .stage-topline { width: 100%; }
.large-coin { width: 230px; height: 230px; border-radius: 50%; background: var(--accent); border: 15px solid #d7ffa7; color: #0b0d08; display: grid; place-items: center; margin: 55px 0 25px; box-shadow: 15px 17px 0 #060708; position: relative; transition: transform .3s ease; }
.large-coin span { font-family: var(--font-display); font-size: 100px; font-weight: 800; line-height: 1; }
.large-coin small { position: absolute; bottom: 34px; font-size: 10px; letter-spacing: .2em; }
.large-coin.flipping { animation: coin-flip .75s ease; }
@keyframes coin-flip { 0% { transform: rotateY(0) translateY(0); } 45% { transform: rotateY(720deg) translateY(-50px) scale(.84); } 100% { transform: rotateY(1440deg) translateY(0); } }
.result-line { color: var(--muted); min-height: 24px; text-align: center; }
.bet-panel { margin-top: 28px; width: min(520px, 100%); }
.bet-panel > label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.wager-input { display: grid; grid-template-columns: auto 1fr auto auto; border: 1px solid var(--border-bright); border-radius: 11px; overflow: hidden; background: #0e1115; }
.wager-input > span { display: grid; place-items: center; width: 46px; color: var(--accent); font-weight: 800; }
.wager-input input { min-width: 0; border: 0; background: transparent; color: var(--text); padding: 13px 8px; font-weight: 700; }
.wager-input button { border: 0; border-left: 1px solid var(--border); background: var(--surface-2); color: var(--muted); width: 48px; cursor: pointer; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.choice-button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 11px; padding: 12px; cursor: pointer; font-weight: 700; }
.choice-button span { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--border-bright); border-radius: 50%; margin-right: 8px; }
.choice-button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dark); }

.blackjack-stage { background: #102b22; border-color: #285346; }
.blackjack-stage .stage-topline { color: #7ba493; }
.table-zone { min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 20px 22px; }
.hand-heading { display: flex; justify-content: space-between; color: #9bc2b1; font-size: 11px; letter-spacing: .14em; margin-bottom: 14px; }
.hand-heading strong { color: var(--text); font-size: 16px; letter-spacing: 0; }
.cards-row { min-height: 152px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.playing-card, .placeholder-card { width: 102px; height: 144px; border-radius: 11px; }
.placeholder-card { border: 1px dashed #3d6658; background: #133126; }
.playing-card { background: #f5f1e8; color: #111419; border: 1px solid #fff; box-shadow: 6px 7px 0 rgba(2,9,6,.34); padding: 10px; font-family: var(--font-display); font-weight: 800; font-size: 30px; animation: deal-card .25s ease; }
.playing-card.red { color: #d83b51; }
.playing-card small { display: block; }
.playing-card.hidden-card { background: #171d24; border-color: #2e3945; color: var(--accent); display: grid; place-items: center; font-size: 44px; }
@keyframes deal-card { from { opacity: 0; transform: translateY(-24px) rotate(-4deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
.table-divider { display: flex; align-items: center; color: #4f7a69; font-family: var(--font-display); letter-spacing: .24em; font-size: 11px; }
.table-divider::before, .table-divider::after { content: ""; flex: 1; border-top: 1px solid #2f5b4b; }
.table-divider span { padding: 0 18px; }
.blackjack-controls { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; padding-top: 18px; border-top: 1px solid #2b5547; }
.blackjack-controls .wager-input { border-color: #396454; }

.narrow-page { max-width: 860px; margin: 0 auto; padding: 70px 0; }
.narrow-page > h2 { font-size: 58px; }
.page-lead { color: var(--muted); font-size: 18px; line-height: 1.65; margin-bottom: 38px; }
.deposit-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; border-top: 1px solid var(--border); padding: 24px 0; }
.step-number { color: var(--accent); font-family: var(--font-display); font-size: 24px; }
.deposit-card h3 { margin: 0 0 7px; font-family: var(--font-display); }
.deposit-card p { color: var(--muted); margin: 0; line-height: 1.55; }
.notice-box { border: 1px solid var(--yellow); padding: 20px; margin-top: 24px; background: #19160d; border-radius: 12px; }
.notice-box p { color: #c8b983; margin-bottom: 0; }
.hash-card { border: 1px solid var(--border-bright); background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hash-card small { color: var(--accent); letter-spacing: .15em; }
.hash-card code { display: block; color: var(--text); overflow-wrap: anywhere; margin: 18px 0; line-height: 1.5; }
.hash-card > div { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 15px; }
.hash-card span { color: var(--muted); }
.fair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.fair-grid article { border: 1px solid var(--border); background: var(--surface); padding: 20px; border-radius: 12px; }
.fair-grid article > span { color: var(--accent); font-family: var(--font-display); }
.fair-grid h3 { font-family: var(--font-display); }
.fair-grid p { color: var(--muted); line-height: 1.55; }
.revealed-list { margin-top: 30px; }
.revealed-row { border-top: 1px solid var(--border); padding: 16px 0; }
.revealed-row code { color: var(--muted); overflow-wrap: anywhere; }

footer { max-width: 1440px; margin: 0 auto; padding: 28px 40px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 11px; display: flex; justify-content: space-between; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(3,4,5,.78); display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(490px, 100%); border: 1px solid var(--border-bright); background: var(--surface); border-radius: 18px; padding: 28px; box-shadow: 12px 12px 0 #030405; position: relative; }
.modal-close { position: absolute; right: 18px; top: 16px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.modal-card h2 { font-family: var(--font-display); font-size: 36px; margin: 0; }
.modal-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.modal-card label { display: block; font-size: 12px; color: var(--muted); margin: 20px 0 8px; }
.modal-input { width: 100%; border: 1px solid var(--border-bright); background: #0d1014; color: var(--text); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.modal-card .button { margin-top: 8px; }
.api-disclosure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
.api-disclosure div { border: 1px solid var(--border); padding: 10px; border-radius: 8px; }
.api-disclosure span, .api-disclosure strong { display: block; }
.api-disclosure span { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.api-disclosure strong { margin-top: 4px; font-size: 11px; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 10px; }
.toast { background: var(--surface-3); border: 1px solid var(--border-bright); border-left: 4px solid var(--accent); padding: 13px 16px; min-width: 270px; box-shadow: 7px 7px 0 #050607; animation: toast-in .2s ease; }
.toast.error { border-left-color: var(--red); }
.toast > small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 22px; }
  .desktop-nav { display: none; }
  main { padding-inline: 22px; }
  .hero { grid-template-columns: 1fr; padding: 70px 0; }
  .hero-visual { max-width: 720px; width: 100%; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-grid .coming-card { grid-column: 1 / -1; min-height: 300px; }
  .coming-art { height: 140px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar { position: static; }
}

@media (max-width: 700px) {
  .topbar { height: 70px; }
  .brand small, .balance-pill small { display: none; }
  .balance-pill > span:last-child { display: block; }
  .account-area .button { padding: 9px 11px; font-size: 11px; }
  main { padding-inline: 14px; }
  .hero { min-height: auto; gap: 38px; }
  .hero h1 { font-size: 50px; }
  .hero-visual { height: 340px; }
  .hero-card { width: 115px; height: 165px; font-size: 38px; }
  .hero-card small { font-size: 28px; }
  .coin-display { width: 90px; height: 90px; }
  .coin-display span { font-size: 40px; }
  .stat-block { min-width: 110px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-grid .coming-card { grid-column: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .history-row { grid-template-columns: 1fr 1fr; }
  .history-row .history-date { display: none; }
  .game-stage { padding: 16px; }
  .large-coin { width: 180px; height: 180px; }
  .large-coin span { font-size: 74px; }
  .blackjack-controls { grid-template-columns: 1fr 1fr; }
  .blackjack-controls .wager-input { grid-column: 1 / -1; }
  .playing-card, .placeholder-card { width: 76px; height: 108px; }
  .playing-card { font-size: 23px; }
  .fair-grid { grid-template-columns: 1fr; }
  footer { padding-inline: 18px; flex-direction: column; gap: 8px; }
  .api-disclosure { grid-template-columns: 1fr; }
}

/* v0.3 game floor */
.wide-nav { gap: 1px; }
.wide-nav .nav-link { padding-inline: 10px; font-size: 12px; }
.compact-hero { min-height: 590px; }
.new-hero-art { display: grid; place-items: center; }
.hero-grid-icon { width: 250px; height: 250px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-6deg); }
.hero-grid-icon span { border: 1px solid var(--border-bright); background: #151a20; border-radius: 14px; box-shadow: 5px 5px 0 #060708; }
.hero-grid-icon .marked { display: grid; place-items: center; background: var(--red); color: #17080b; border-color: #ff8795; font: 800 42px var(--font-display); }
.hero-token { position: absolute; right: 16%; top: 17%; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #0b0d08; border: 8px solid #d9ffac; box-shadow: 9px 10px 0 #050607; font: 800 50px var(--font-display); transform: rotate(8deg); }
.expanded-game-grid { grid-template-columns: repeat(3, 1fr); }
.expanded-game-grid .game-card { min-height: 390px; }
.mini-mines { height: 245px; padding: 28px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-mines span { border: 1px solid var(--border-bright); background: #171d24; border-radius: 10px; display: grid; place-items: center; color: var(--accent); font: 800 24px var(--font-display); box-shadow: 4px 4px 0 #07090b; }
.mini-mines span:nth-child(6) { background: var(--red); color: #18070a; border-color: #ff8a97; }
.mini-plinko { height: 245px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font: 700 20px var(--font-body); }
.mini-plinko i { position: absolute; top: 46px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 3px 4px 0 #050607; }
.mini-plinko b { margin-top: 14px; color: var(--text); font-size: 11px; letter-spacing: .08em; }
.mini-tower { height: 245px; padding: 35px 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.mini-tower span { height: 64px; border: 1px solid var(--border-bright); background: #171d24; border-radius: 10px; box-shadow: 4px 4px 0 #060708; }
.mini-tower span.safe { border-color: var(--accent); background: var(--accent-dark); }
.mini-pack { width: 175px; height: 220px; margin: 28px auto 0; border: 1px solid var(--border-bright); background: #171c22; box-shadow: 11px 12px 0 #050607; display: grid; place-items: center; align-content: center; transform: rotate(5deg); }
.mini-pack span { font: 800 78px var(--font-display); color: var(--accent); }
.mini-pack small { letter-spacing: .16em; color: var(--muted); }

.modern-stage { display: flex; flex-direction: column; min-height: 720px; }
.game-stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.game-stat-strip > div { border: 1px solid var(--border); background: #0e1115; border-radius: 10px; padding: 13px 15px; }
.game-stat-strip small { display: block; color: var(--muted); letter-spacing: .13em; font-size: 9px; }
.game-stat-strip strong { display: block; margin-top: 5px; font-size: 17px; }
.modern-controls { display: grid; grid-template-columns: minmax(220px, 1fr) 130px auto auto; gap: 10px; align-items: end; padding-top: 20px; margin-top: auto; border-top: 1px solid var(--border); }
.modern-controls.two-control { grid-template-columns: minmax(250px, 1fr) auto; }
.control-stack { min-width: 0; }
.control-stack.grow { width: 100%; }
.control-stack label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.select-input { width: 100%; height: 47px; border: 1px solid var(--border-bright); background: #0e1115; color: var(--text); border-radius: 10px; padding: 0 12px; font-weight: 700; }
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mines-stage { background: #101418; }
.mines-grid { width: min(560px, 100%); margin: 10px auto 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mine-tile { aspect-ratio: 1; border: 1px solid var(--border-bright); background: #191f26; border-radius: 12px; cursor: pointer; color: transparent; box-shadow: 5px 5px 0 #060708; transition: transform .14s ease, border-color .14s ease, background-color .14s ease; }
.mine-tile:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); }
.mine-tile:disabled { cursor: default; }
.mine-tile span { font: 800 24px var(--font-display); }
.mine-tile.safe { background: var(--accent-dark); border-color: var(--accent); color: var(--accent); box-shadow: none; animation: tile-pop .22s ease; }
.mine-tile.mine { background: #2b1116; border-color: var(--red); color: var(--red); box-shadow: none; }
.mine-tile.mine.hit { background: var(--red); color: #24080c; }
@keyframes tile-pop { from { transform: scale(.8); opacity: .3; } to { transform: scale(1); opacity: 1; } }

.risk-tabs { display: flex; gap: 8px; justify-content: center; margin: 20px 0 8px; }
.risk-button { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 700; }
.risk-button.active { border-color: var(--accent); background: var(--accent-dark); color: var(--accent); }
.plinko-stage { background: #101318; }
.plinko-board { position: relative; width: min(760px, 100%); height: 480px; margin: 0 auto 12px; padding: 34px 24px 60px; overflow: hidden; }
.plinko-pegs { height: 390px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.peg-row { width: min(92%, calc(120px + var(--peg-count) * 34px)); display: flex; justify-content: space-between; }
.peg-row span { width: 8px; height: 8px; border-radius: 50%; background: #6b7580; box-shadow: 0 0 0 3px #171c22; }
.plinko-ball { position: absolute; z-index: 4; top: 18px; left: 50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0b0d08; font-size: 10px; font-weight: 800; box-shadow: 4px 5px 0 #050607; opacity: 0; }
.plinko-ball.active { opacity: 1; }
.plinko-slots { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 46px; display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.plinko-slots span { min-width: 0; display: grid; place-items: center; border: 1px solid var(--border); background: #151a20; border-radius: 6px; font-size: 8px; font-weight: 700; color: var(--muted); transition: transform .15s ease, background-color .15s ease; }
.plinko-slots span.hot { color: var(--accent); border-color: #45652d; }
.plinko-slots span.cold { color: #6f7882; }
.plinko-slots span.landed { transform: translateY(-7px); background: var(--accent); color: #0b0d08; border-color: var(--accent); }

.tower-stage { background: #11151a; }
.tower-grid { display: flex; flex-direction: column; gap: 8px; margin: 2px auto 24px; width: min(680px, 100%); }
.tower-row { display: grid; grid-template-columns: 80px 1fr 42px; gap: 12px; align-items: center; opacity: .45; }
.tower-row.current, .tower-row.passed { opacity: 1; }
.tower-row > strong { color: var(--muted); text-align: right; font-size: 12px; }
.tower-row > small { color: var(--muted-2); font-weight: 700; }
.tower-doors { display: grid; grid-template-columns: repeat(var(--tower-columns, 4), minmax(0, 1fr)); gap: 8px; }
.tower-doors button { height: 52px; border: 1px solid var(--border); background: #181e25; border-radius: 9px; color: var(--muted); cursor: pointer; box-shadow: 4px 4px 0 #060708; }
.tower-row.current .tower-doors button:not(:disabled):hover { border-color: var(--accent); transform: translateY(-2px); }
.tower-doors button.safe { background: var(--accent-dark); border-color: var(--accent); color: var(--accent); box-shadow: none; }
.tower-doors button.trap { background: #2b1116; border-color: var(--red); color: var(--red); box-shadow: none; }
.tower-doors button.hit { background: var(--red); color: #25080c; }

.packs-stage { background: #111419; }
.pack-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.pack-choice { border: 1px solid var(--border); background: #171c22; border-radius: 12px; padding: 15px; text-align: left; cursor: pointer; }
.pack-choice small, .pack-choice strong, .pack-choice span { display: block; }
.pack-choice small { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.pack-choice strong { margin-top: 5px; font: 700 20px var(--font-display); }
.pack-choice span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.pack-choice.active { border-color: var(--accent); background: var(--accent-dark); }
.pack-choice.active strong { color: var(--accent); }
.pack-opening { flex: 1; display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 50px; width: min(760px, 100%); margin: 0 auto 20px; }
.large-pack { width: 230px; height: 300px; border: 1px solid var(--border-bright); background: #171c22; box-shadow: 14px 15px 0 #050607; display: grid; place-items: center; align-content: center; transform: rotate(-4deg); }
.large-pack > span { color: var(--accent); font: 800 110px var(--font-display); }
.large-pack > small { color: var(--muted); letter-spacing: .18em; font-size: 9px; }
.large-pack.opening { animation: pack-open .75s ease; }
.large-pack.opening-fast { animation: pack-open-fast .11s ease; }
@keyframes pack-open { 0%,100% { transform: rotate(-4deg); } 20% { transform: rotate(6deg) translateY(-8px); } 40% { transform: rotate(-10deg) translateY(2px); } 65% { transform: rotate(5deg) translateY(-12px); } }
@keyframes pack-open-fast { 0% { transform: rotate(-4deg) scale(.97); } 55% { transform: rotate(2deg) scale(1.03); } 100% { transform: rotate(-4deg) scale(1); } }
.pack-info-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; }
.pack-info-bar > div small, .pack-info-bar > div strong { display: block; }
.pack-info-bar > div small { color: var(--muted-2); font-size: 8px; letter-spacing: .14em; }
.pack-info-bar > div strong { margin-top: 4px; font-size: 14px; }
.fast-open-toggle { min-width: 156px; height: 38px; display: inline-grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--border); background: #0e1115; color: var(--muted); border-radius: 999px; padding: 0 12px; cursor: pointer; font: 700 11px var(--font-body); }
.fast-open-toggle strong { color: var(--muted-2); font-size: 9px; letter-spacing: .1em; }
.fast-open-toggle .toggle-dot { width: 10px; height: 10px; border-radius: 50%; background: #59616b; box-shadow: 0 0 0 3px #1a2027; }
.fast-open-toggle.active { border-color: var(--accent); background: var(--accent-dark); color: var(--text); }
.fast-open-toggle.active strong, .fast-open-toggle.active .toggle-dot { color: var(--accent); background: var(--accent); }
.pack-contents-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; max-height: 170px; overflow: auto; padding-right: 3px; }
.pack-content-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 54px 64px; align-items: center; gap: 8px; border: 1px solid var(--border); border-left: 3px solid #4a535e; background: #0e1115; border-radius: 8px; padding: 8px 10px; }
.pack-content-row > div { min-width: 0; }
.pack-content-row small, .pack-content-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-content-row small { color: var(--muted-2); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.pack-content-row strong { margin-top: 2px; font-size: 11px; }
.pack-content-row > span { color: var(--muted); font-size: 10px; text-align: right; }
.pack-content-row > b { color: var(--text); font-size: 11px; text-align: right; }
.pack-content-row.rarity-rare, .pack-content-row.rarity-epic { border-left-color: var(--blue); }
.pack-content-row.rarity-legendary, .pack-content-row.rarity-mythic, .pack-content-row.rarity-contraband { border-left-color: var(--accent); }
.pack-content-row.rarity-legendary > b, .pack-content-row.rarity-mythic > b, .pack-content-row.rarity-contraband > b { color: var(--accent); }
.pack-content-empty { grid-column: 1 / -1; color: var(--muted); padding: 14px; border: 1px dashed var(--border); border-radius: 8px; text-align: center; }
.pack-reward { border-left: 3px solid var(--border-bright); padding: 12px 0 12px 24px; }
.pack-reward small, .pack-reward strong, .pack-reward span { display: block; }
.pack-reward small { color: var(--muted); letter-spacing: .14em; }
.pack-reward strong { font: 700 38px var(--font-display); margin: 7px 0; }
.pack-reward span { color: var(--muted); font-size: 15px; }
.pack-reward.rarity-rare, .pack-reward.rarity-epic { border-color: var(--blue); }
.pack-reward.rarity-legendary, .pack-reward.rarity-mythic, .pack-reward.rarity-contraband { border-color: var(--accent); }
.pack-reward.rarity-legendary strong, .pack-reward.rarity-mythic strong, .pack-reward.rarity-contraband strong { color: var(--accent); }

@media (max-width: 1240px) {
  .wide-nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
}

@media (max-width: 1050px) {
  .expanded-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-opening { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .pack-reward { width: 100%; }
}

@media (max-width: 700px) {
  .expanded-game-grid { grid-template-columns: 1fr; }
  .modern-controls, .modern-controls.two-control { grid-template-columns: 1fr 1fr; }
  .modern-controls .control-stack, .modern-controls .wager-input { grid-column: 1 / -1; }
  .game-stat-strip { gap: 5px; }
  .game-stat-strip > div { padding: 10px; }
  .mines-grid { gap: 6px; }
  .mine-tile { border-radius: 8px; box-shadow: 3px 3px 0 #060708; }
  .plinko-board { height: 420px; padding-inline: 0; }
  .plinko-pegs { height: 340px; }
  .peg-row { width: min(96%, calc(80px + var(--peg-count) * 25px)); }
  .plinko-slots { gap: 2px; }
  .plinko-slots span { font-size: 6px; }
  .tower-row { grid-template-columns: 55px 1fr 30px; gap: 7px; }
  .tower-doors button { height: 44px; }
  .pack-selector { grid-template-columns: 1fr; }
  .pack-info-bar { align-items: flex-start; }
  .pack-contents-list { grid-template-columns: 1fr; max-height: 230px; }
  .fast-open-toggle { min-width: 145px; }
  .large-pack { width: 185px; height: 240px; }
  .large-pack > span { font-size: 84px; }
  .pack-reward strong { font-size: 29px; }
}


.boot-error { position: fixed; inset: auto 18px 18px 18px; z-index: 9999; max-width: 980px; margin: 0 auto; padding: 14px 18px; border: 1px solid rgba(255,91,91,.6); background: #1a1012; color: #ffd9d9; font: 600 14px/1.45 var(--font-body); box-shadow: 0 16px 50px rgba(0,0,0,.45); }
.boot-error strong { color: #ff7979; }

/* v0.5 wallet and wager rules */
.bet-limit-note {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .04em;
}

.wallet-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0 18px;
}
.wallet-summary-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
}
.wallet-summary-card small,
.wallet-summary-card strong,
.wallet-summary-card span { display: block; }
.wallet-summary-card small { color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.wallet-summary-card strong { margin: 8px 0 4px; font: 700 25px var(--font-display); }
.wallet-summary-card span { color: var(--muted-2); font-size: 11px; line-height: 1.45; }

.withdraw-card {
  border: 1px solid var(--border-bright);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.withdraw-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.withdraw-card-heading .eyebrow { margin-bottom: 7px; }
.withdraw-card-heading h3 { margin: 0; font: 700 27px var(--font-display); }
.manual-badge { color: var(--yellow); border: 1px solid #66552c; background: #1c190f; border-radius: 999px; padding: 7px 10px; font-size: 9px; letter-spacing: .13em; }
.withdraw-card > label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.withdraw-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.withdrawal-input { grid-template-columns: auto 1fr; }
.field-help { color: var(--muted-2); font-size: 11px; line-height: 1.5; margin: 8px 0 18px; }
.withdraw-request-preview { border: 1px solid var(--border); background: #0e1115; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.withdraw-request-preview small,
.withdraw-request-preview strong,
.withdraw-request-preview code { display: block; }
.withdraw-request-preview small { color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.withdraw-request-preview strong { margin: 6px 0 12px; }
.withdraw-request-preview code { color: var(--accent); border-top: 1px solid var(--border); padding-top: 12px; overflow-wrap: anywhere; }

.deposit-keyword {
  display: inline-block;
  margin: 0 4px;
  padding: 5px 10px;
  border: 1px solid #a78bfa;
  border-radius: 8px;
  background: #171225;
  color: #c4b5fd;
  font: 700 14px var(--font-body);
  letter-spacing: .06em;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .08);
}
.withdraw-instructions {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}
.withdraw-instructions strong { color: var(--text); }
.withdraw-instructions code {
  color: var(--accent);
  background: #11151a;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}
.mail-preview { display: grid; gap: 12px; }
.mail-preview > strong { margin-bottom: 2px; }
.mail-field {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.mail-field span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: .14em;
}
.mail-field code {
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
}
.warning-notice { border-color: #675326; background: #17150e; }
.warning-notice strong { color: var(--yellow); }

@media (max-width: 700px) {
  .wallet-summary-grid { grid-template-columns: 1fr; }
  .withdraw-input-row { grid-template-columns: 1fr; }
}


/* v0.8 fixed house profile and pack UX */
.odds-table { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 18px 0 10px; }
.odds-table > div { background: var(--panel); display: flex; justify-content: space-between; gap: 20px; padding: 15px 16px; }
.odds-table span { color: var(--muted); }
.odds-table strong { color: var(--text); text-align: right; }
.fine-print { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 10px 0 22px; }
@media (max-width: 620px) { .odds-table > div { align-items: flex-start; flex-direction: column; gap: 5px; } .odds-table strong { text-align: left; } }

/* v1.1 expanded game floor */
.nav-dropdown { position: relative; }
.nav-more.active { background: var(--surface-3); color: var(--text); }
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  background: #0d1014;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  z-index: 40;
}
.nav-menu button { border: 0; background: transparent; color: var(--muted); text-align: left; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 12px; }
.nav-menu button:hover { color: var(--text); background: var(--surface-3); }

.mini-keno, .mini-crash, .mini-limbo, .mini-hilo, .mini-baccarat { height: 270px; margin-top: 18px; }
.mini-keno { display: grid; grid-template-columns: repeat(5, 54px); place-content: center; gap: 9px; }
.mini-keno span { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--border-bright); border-radius: 12px; color: var(--muted); font: 700 18px var(--font-display); }
.mini-keno span.hit { background: var(--accent); color: #0b0d10; border-color: var(--accent); transform: translateY(-8px); box-shadow: 5px 6px 0 #060708; }
.mini-crash { position: relative; display: grid; place-items: center; }
.mini-crash svg { width: 88%; height: 82%; overflow: visible; }
.mini-crash path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.mini-crash circle { fill: var(--accent); }
.mini-crash strong { position: absolute; right: 12%; top: 20%; font: 800 33px var(--font-display); color: var(--accent); }
.mini-limbo { display: grid; place-content: center; text-align: center; border: 1px solid var(--border); border-radius: 150px; background: #0e1115; }
.mini-limbo small, .mini-limbo span { color: var(--muted); letter-spacing: .16em; font-size: 9px; }
.mini-limbo strong { color: var(--accent); font: 800 60px var(--font-display); margin: 10px 0; }
.mini-hilo { display: flex; align-items: center; justify-content: center; gap: 22px; }
.mini-hilo > span { width: 122px; height: 172px; background: #f4f2e9; color: #121418; border-radius: 14px; display: grid; place-items: center; font: 800 50px var(--font-display); transform: rotate(-6deg); box-shadow: 10px 12px 0 #060708; }
.mini-hilo > div { display: grid; gap: 10px; }
.mini-hilo b { width: 58px; height: 58px; border: 1px solid var(--border-bright); display: grid; place-items: center; border-radius: 12px; color: var(--accent); font-size: 28px; }
.mini-baccarat { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 28px; background: #133528; border: 1px solid #285d49; border-radius: 140px 140px 22px 22px; }
.mini-baccarat > div { text-align: center; }
.mini-baccarat small { display: block; color: #94b5a8; font-size: 9px; letter-spacing: .14em; }
.mini-baccarat strong { display: block; margin-top: 10px; font: 800 64px var(--font-display); }
.mini-baccarat > span { color: var(--accent); font-weight: 800; }

.target-input { height: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; min-width: 150px; border: 1px solid var(--border-bright); background: #0e1115; border-radius: 10px; overflow: hidden; }
.target-input input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 14px; font-weight: 700; }
.target-input span { color: var(--accent); padding-right: 14px; font-weight: 800; }

.keno-draw-results { display: flex; justify-content: center; gap: 12px; margin: 22px 0; }
.keno-draw-results span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-bright); background: #0e1115; color: var(--muted); font: 800 19px var(--font-display); }
.keno-draw-results span.matched { background: var(--accent); border-color: var(--accent); color: #0b0d10; box-shadow: 4px 5px 0 #060708; }
.keno-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; max-width: 860px; margin: 0 auto 18px; }
.keno-grid button { aspect-ratio: 1; min-height: 46px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 10px; cursor: pointer; font-weight: 800; transition: transform .12s ease, background-color .12s ease, border-color .12s ease; }
.keno-grid button:hover { transform: translateY(-2px); border-color: var(--border-bright); color: var(--text); }
.keno-grid button.selected { background: var(--accent-dark); color: var(--accent); border-color: var(--accent); }
.keno-grid button.drawn { box-shadow: inset 0 0 0 2px var(--yellow); }
.keno-grid button.matched { background: var(--accent); color: #0b0d10; border-color: var(--accent); box-shadow: 4px 4px 0 #060708; }
.keno-toolbar { display: flex; align-items: center; gap: 10px; min-height: 45px; margin-bottom: 16px; }
.keno-toolbar span { color: var(--muted); font-size: 12px; line-height: 1.45; margin-left: auto; text-align: right; }

.crash-board { position: relative; min-height: 450px; border: 1px solid var(--border); background: #0d1014; border-radius: 16px; overflow: hidden; }
.crash-board canvas { width: 100%; height: 450px; display: block; }
.crash-value { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font: 800 clamp(62px, 8vw, 125px) var(--font-display); text-shadow: 0 0 35px rgba(185,255,102,.14); pointer-events: none; }
.crash-subline { position: absolute; left: 24px; right: 24px; bottom: 20px; color: var(--muted); text-align: center; font-size: 13px; }
.crash-controls { grid-template-columns: minmax(240px, 1fr) 180px auto auto; }

.limbo-display { min-height: 350px; display: grid; place-content: center; text-align: center; padding: 30px; }
.limbo-display > small { color: var(--muted); letter-spacing: .18em; }
.limbo-display > strong { color: var(--accent); font: 800 clamp(70px, 10vw, 145px) var(--font-display); line-height: 1; margin: 18px 0; }
.limbo-display > p { color: var(--muted); margin: 15px 0 0; }
.limbo-meter { width: min(560px, 75vw); height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.limbo-meter span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .12s linear; }
.limbo-controls { grid-template-columns: minmax(240px, 1fr) 180px auto; }

.hilo-table { min-height: 430px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 35px; padding: 28px; }
.hilo-card { width: 190px; height: 270px; background: #f4f2e9; color: #15171b; border-radius: 18px; display: grid; place-content: center; text-align: center; transform: rotate(-3deg); box-shadow: 12px 14px 0 #060708; }
.hilo-card.red { color: #d84255; }
.hilo-card strong { font: 800 92px var(--font-display); line-height: .85; }
.hilo-card small { font-size: 54px; }
.hilo-history { display: flex; flex-direction: column; gap: 8px; align-self: stretch; justify-content: center; overflow: hidden; }
.hilo-history span { border-left: 3px solid var(--border-bright); background: #0e1115; padding: 9px 11px; color: var(--muted); font-size: 11px; }
.hilo-history span.win { border-color: var(--accent); color: var(--text); }
.hilo-history span.loss { border-color: var(--red); }
.hilo-history span.draw { border-color: var(--gold); color: var(--text); }
.hilo-choice-stats { display: grid; gap: 12px; }
.hilo-choice-stats > div { min-width: 160px; border: 1px solid var(--border); background: #0e1115; border-radius: 12px; padding: 16px; }
.hilo-choice-stats span, .hilo-choice-stats strong, .hilo-choice-stats small { display: block; }
.hilo-choice-stats span { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.hilo-choice-stats strong { font: 800 25px var(--font-display); margin: 6px 0; }
.hilo-choice-stats small { color: var(--accent); }
.hilo-controls { grid-template-columns: minmax(230px, 1fr) repeat(4, auto); }

.baccarat-table { min-height: 430px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; padding: 35px; border-radius: 18px; background: #123328; border: 1px solid #285d49; }
.baccarat-hand { min-width: 0; }
.baccarat-hand .cards-row { min-height: 220px; align-items: center; justify-content: center; }
.baccarat-versus { color: var(--accent); font: 800 18px var(--font-display); }
.baccarat-choices { max-width: 620px; margin: 18px auto; grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .keno-grid { grid-template-columns: repeat(5, 1fr); }
  .crash-controls, .limbo-controls, .hilo-controls { grid-template-columns: 1fr 1fr; }
  .crash-controls .control-stack, .limbo-controls .wager-input, .hilo-controls .wager-input { grid-column: 1 / -1; }
  .hilo-table { grid-template-columns: 1fr; justify-items: center; }
  .hilo-history { width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hilo-choice-stats { width: 100%; grid-template-columns: 1fr 1fr; }
  .baccarat-table { grid-template-columns: 1fr; }
  .baccarat-versus { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .keno-grid { gap: 5px; }
  .keno-grid button { min-height: 40px; border-radius: 8px; }
  .keno-draw-results { gap: 6px; }
  .keno-draw-results span { width: 46px; height: 46px; }
  .keno-toolbar { flex-wrap: wrap; }
  .keno-toolbar span { width: 100%; margin-left: 0; text-align: left; }
  .crash-board, .crash-board canvas { min-height: 330px; height: 330px; }
  .crash-controls, .limbo-controls, .hilo-controls { grid-template-columns: 1fr; }
  .crash-controls > *, .limbo-controls > *, .hilo-controls > * { grid-column: 1 !important; }
  .hilo-card { width: 150px; height: 215px; }
  .hilo-card strong { font-size: 72px; }
  .baccarat-table { padding: 20px 10px; }
  .baccarat-choices { grid-template-columns: 1fr; }
}
/* Keep the Hi-Lo lobby preview clear of the card copy. */
.mini-hilo { height: 220px; margin-top: 10px; gap: 18px; }
.mini-hilo > span { width: 98px; height: 140px; font-size: 38px; transform: rotate(-5deg); box-shadow: 7px 8px 0 #060708; }
.mini-hilo b { width: 46px; height: 46px; font-size: 22px; }
.mini-hilo { position: relative; display: block; height: 205px; margin-top: 8px; }
.mini-hilo > span { position: absolute; top: 18px; left: 47%; width: 74px; height: 104px; font-size: 28px; transform: translateX(-100%) rotate(-5deg); box-shadow: 6px 7px 0 #060708; }
.mini-hilo > div { position: absolute; top: 22px; left: 54%; display: grid; gap: 8px; }
.mini-hilo b { width: 40px; height: 40px; font-size: 19px; }


/* v1.2 left game navigation */
.topbar {
  grid-template-columns: 1fr auto 1fr;
  z-index: 40;
}
.topbar-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(185,255,102,.55);
}

.game-rail {
  position: fixed;
  top: 82px;
  bottom: 0;
  left: 0;
  z-index: 24;
  width: 220px;
  padding: 22px 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--border);
  background: #0d1014;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}
.rail-section {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #20262e;
}
.rail-section:last-of-type { margin-bottom: 0; }
.rail-label {
  padding: 0 11px 8px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.side-nav-link {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}
.side-nav-link:hover {
  border-color: var(--border);
  background: var(--surface);
}
.side-nav-link.active {
  color: #0a0d08;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 4px 4px 0 #050607;
}
.side-index {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}
.side-nav-link.active .side-index {
  border-color: #0c1208;
  color: #0a0d08;
}
.rail-tools { padding-bottom: 12px; }
.rail-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.4;
}

main {
  width: auto;
  max-width: 1440px;
  margin-left: 220px;
  margin-right: auto;
}

@media (max-width: 1050px) {
  .topbar-status { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .account-area { grid-column: 2; }
  .game-rail {
    position: sticky;
    top: 82px;
    bottom: auto;
    width: 100%;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(13,16,20,.97);
    backdrop-filter: blur(14px);
  }
  .rail-section { display: contents; }
  .rail-label, .rail-footer { display: none; }
  .side-nav-link {
    width: auto;
    min-width: max-content;
    min-height: 44px;
    grid-template-columns: 26px auto;
    flex: 0 0 auto;
    padding: 7px 11px;
  }
  .side-index { width: 24px; height: 24px; }
  main { margin-left: 0; }
}

@media (max-width: 700px) {
  .game-rail { top: 70px; height: 62px; padding-inline: 10px; }
  .side-nav-link { min-height: 40px; padding: 6px 9px; font-size: 11px; }
  .side-index { width: 22px; height: 22px; font-size: 8px; }
}


/* =========================================================
   v1.3 — centered desktop canvas + refined left navigation
   ========================================================= */
:root {
  --game-rail-width: 236px;
  --page-content-max: 1440px;
}

/* Keep the navigation rail fixed while centering every view in the
   usable viewport to its right. The previous layout applied the
   maximum width to <main> itself, which anchored it against the rail. */
.game-rail {
  width: var(--game-rail-width);
  padding: 20px 14px 18px;
  background: #0b0f14;
  border-right-color: #2b333d;
  box-shadow: 18px 0 45px rgba(0, 0, 0, .28), inset -1px 0 rgba(185, 255, 102, .035);
}

main {
  width: calc(100% - var(--game-rail-width));
  max-width: none;
  margin: 0 0 0 var(--game-rail-width);
  padding: 0 clamp(28px, 4vw, 72px) 80px;
}

main > .view {
  width: 100%;
  max-width: var(--page-content-max);
  margin-inline: auto;
}

/* More deliberate visual hierarchy without turning the rail into a
   second bright focal point. */
.rail-section {
  gap: 5px;
  margin-bottom: 13px;
  padding: 10px 8px 15px;
  border: 1px solid transparent;
  border-bottom-color: #202731;
  border-radius: 14px;
}

.rail-section:hover {
  border-color: rgba(255, 255, 255, .045);
  background: rgba(255, 255, 255, .012);
}

.rail-label {
  padding: 0 8px 8px;
  color: #77828e;
}

.side-nav-link {
  position: relative;
  min-height: 44px;
  border-radius: 11px;
  color: #aeb7c2;
  transition: transform .16s ease, color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.side-nav-link:hover {
  color: var(--text);
  transform: translateX(2px);
  border-color: #343d48;
  background: #141a21;
}

.side-nav-link.active {
  color: #0a0d08;
  border-color: #c9ff8a;
  background: var(--accent);
  box-shadow: 4px 4px 0 #050607, 0 0 22px rgba(185, 255, 102, .13);
  transform: none;
}

.side-nav-link:not(.active)::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.side-nav-link:not(.active):hover::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(185, 255, 102, .42);
}

.side-index {
  background: #11171e;
  border-color: #303a45;
  color: #8f9aa7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}

.side-nav-link:hover .side-index {
  border-color: #536171;
  color: #dce2e8;
}

.side-nav-link.active .side-index {
  background: #11180c;
  border-color: #11180c;
  color: var(--accent);
}

.rail-footer {
  margin: 2px 8px 0;
  padding: 12px 9px;
  border: 1px solid #222a33;
  border-radius: 11px;
  background: #0f141a;
}

/* Preserve the original compact navigation behavior on tablets and
   phones, where a horizontal game strip is more usable. */
@media (max-width: 1050px) {
  .game-rail {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  }

  .rail-section {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }

  main {
    width: 100%;
    margin-left: 0;
    padding-inline: 22px;
  }

  main > .view {
    max-width: var(--page-content-max);
  }
}

@media (max-width: 700px) {
  main { padding-inline: 14px; }
}

/* =========================================================
   v1.9 — administration console and tracked withdrawals
   ========================================================= */
.rail-admin {
  border-color: rgba(185,255,102,.16);
  background: rgba(185,255,102,.025);
}
.rail-admin .rail-label { color: var(--accent); }
.button-danger {
  min-height: 42px;
  border: 1px solid #ff5c6c;
  border-radius: 10px;
  padding: 0 18px;
  background: rgba(255,92,108,.08);
  color: #ff7886;
  font-weight: 800;
  cursor: pointer;
}
.button-danger:hover { background: rgba(255,92,108,.16); }
.button-danger:disabled { opacity: .38; cursor: not-allowed; }
.danger-text { color: #ff7886 !important; }
.withdraw-amount-row { display: grid; gap: 8px; margin: 20px 0 14px; }
.withdraw-amount-row .wager-input { width: 100%; }
.withdrawal-history-panel { margin-top: 22px; }

.admin-view { max-width: 1600px !important; }
.admin-page { display: grid; gap: 22px; padding-top: 36px; }
.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.admin-heading h2 { margin: 5px 0 7px; font: 800 clamp(32px, 4vw, 54px)/.98 var(--font-display); }
.admin-heading p:last-child { color: var(--muted); margin: 0; }
.admin-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.admin-alert {
  border: 1px solid rgba(255,92,108,.55);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255,92,108,.08);
  color: #ff9aa5;
  font-weight: 700;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.admin-stat-grid article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #10151b;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.admin-stat-grid small, .admin-stat-grid strong, .admin-stat-grid span { display: block; }
.admin-stat-grid small { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.admin-stat-grid strong { margin: 10px 0 5px; font: 800 clamp(20px, 2.2vw, 31px)/1 var(--font-display); overflow-wrap: anywhere; }
.admin-stat-grid span { color: var(--muted); font-size: 11px; }
.admin-grid { display: grid; gap: 18px; }
.admin-grid.two-column { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
.admin-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: #0e1319;
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-panel-heading h3 { margin: 4px 0 0; font: 800 23px/1.1 var(--font-display); }
.admin-panel-heading .eyebrow { margin: 0; }
.admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(185,255,102,.42);
  border-radius: 999px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.admin-chip.warning { border-color: #f2bb5d; color: #f2bb5d; }
.admin-explainer { margin: -6px 0 18px; color: var(--muted); line-height: 1.65; }
.admin-table-wrap { width: 100%; overflow: auto; border: 1px solid #202832; border-radius: 12px; background: #0b0f14; }
.admin-table-wrap.compact { max-height: 390px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 12px;
  border-bottom: 1px solid #28313c;
  background: #11171e;
  color: #7f8b98;
  text-align: left;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid #1d242c; color: #c7ced6; font-size: 12px; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.018); }
.admin-table td small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10px; max-width: 340px; overflow-wrap: anywhere; }
.admin-table .win, .admin-stat-grid .win { color: var(--accent); }
.admin-table .loss, .admin-stat-grid .loss { color: #ff7886; }
.selectable-table tbody tr { cursor: pointer; }
.selectable-table tbody tr.selected { background: rgba(185,255,102,.08); box-shadow: inset 3px 0 var(--accent); }
.table-link { padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.table-link:hover { color: var(--accent); }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #384451;
  border-radius: 999px;
  color: #aeb8c3;
  background: #111820;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-active, .status-paid, .status-credited, .status-owner { border-color: rgba(185,255,102,.5); color: var(--accent); }
.status-pending, .status-approved, .status-frozen, .status-admin { border-color: rgba(242,187,93,.55); color: #f2bb5d; }
.status-banned, .status-rejected { border-color: rgba(255,92,108,.6); color: #ff7886; }
.status-cancelled, .status-inactive { color: var(--muted); }
.admin-system-list { display: grid; gap: 8px; margin-bottom: 16px; }
.admin-system-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px; border: 1px solid #202832; border-radius: 10px; background: #0b1015; }
.admin-system-list span { color: var(--muted); font-size: 11px; }
.admin-system-list strong { text-align: right; font-size: 11px; }
.admin-search-row { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-search-row .modal-input { margin: 0; min-width: 0; }
.admin-player-layout { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.admin-player-layout > .admin-table-wrap { max-height: 780px; }
.admin-player-detail { min-width: 0; border: 1px solid #202832; border-radius: 12px; padding: 16px; background: #0b0f14; }
.admin-player-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid #202832; }
.admin-player-header h3 { margin: 4px 0 8px; font: 800 26px/1 var(--font-display); }
.admin-player-header h3 small { color: var(--muted); font-size: 13px; }
.admin-player-header > strong { color: var(--accent); font: 800 27px var(--font-display); white-space: nowrap; }
.admin-player-live-balance { display: grid; justify-items: end; gap: 5px; min-width: 150px; }
.admin-player-live-balance > strong { color: var(--accent); font: 800 27px var(--font-display); white-space: nowrap; }
.admin-live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.admin-live-indicator::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #6f7881; box-shadow: 0 0 0 3px rgba(111,120,129,.12); }
.admin-live-indicator.live { color: #77e8aa; }
.admin-live-indicator.live::before { background: #4de28f; box-shadow: 0 0 0 3px rgba(77,226,143,.13), 0 0 10px rgba(77,226,143,.45); }
.admin-live-indicator.connecting::before { background: #e9b95e; animation: admin-live-pulse 1.1s ease-in-out infinite; }
.admin-live-indicator.error { color: #ff8585; }
.admin-live-indicator.error::before { background: #ff6767; }
@keyframes admin-live-pulse { 50% { opacity: .35; transform: scale(.78); } }
.admin-mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.admin-mini-stats > div { padding: 12px; border: 1px solid #202832; border-radius: 10px; background: #0e141a; }
.admin-mini-stats span, .admin-mini-stats strong { display: block; }
.admin-mini-stats span { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.admin-mini-stats strong { margin-top: 6px; font-size: 13px; overflow-wrap: anywhere; }
.admin-action-box { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid #242d37; border-radius: 11px; background: #0e141a; }
.admin-action-box label, .admin-owner-only label { color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-balance-form { display: grid; grid-template-columns: 150px minmax(120px,.6fr) minmax(220px,1fr) auto; gap: 8px; }
.admin-balance-form .modal-input { margin: 0; }
.admin-player-detail details { margin-top: 10px; border: 1px solid #202832; border-radius: 10px; overflow: hidden; }
.admin-player-detail summary { padding: 12px 14px; cursor: pointer; color: #c7d0d9; font-size: 11px; font-weight: 800; background: #11171e; }
.admin-player-detail details .admin-table-wrap { border: 0; border-radius: 0; }
.admin-filter-row { display: flex; gap: 8px; align-items: center; }
.admin-filter-row .select-input { min-width: 135px; }
.reconciliation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.reconciliation-card { padding: 14px; border: 1px solid #2b3540; border-radius: 11px; background: #0b1015; }
.reconciliation-card small, .reconciliation-card strong, .reconciliation-card span { display: block; }
.reconciliation-card small { font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.reconciliation-card strong { margin: 8px 0; font-size: 12px; line-height: 1.35; }
.reconciliation-card span { color: var(--muted); font-size: 11px; }
.reconciliation-card.ok { border-color: rgba(185,255,102,.35); }
.reconciliation-card.ok small { color: var(--accent); }
.reconciliation-card.bad { border-color: rgba(255,92,108,.55); }
.reconciliation-card.bad small { color: #ff7886; }
.reconciliation-mismatches { grid-column: 1 / -1; padding: 14px; border: 1px solid rgba(255,92,108,.4); border-radius: 11px; background: rgba(255,92,108,.045); }
.reconciliation-mismatches h4 { margin: 0 0 10px; }
.reconciliation-mismatches > div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.05); }
.admin-owner-only { margin-top: 16px; }
.admin-access-form { display: grid; grid-template-columns: minmax(160px,1fr) minmax(140px,.7fr) auto; }

@media (max-width: 1350px) {
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .reconciliation-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .admin-grid.two-column, .admin-player-layout { grid-template-columns: 1fr; }
  .admin-player-layout > .admin-table-wrap { max-height: 420px; }
  .admin-balance-form { grid-template-columns: 1fr 1fr; }
  .admin-balance-form #admin-balance-note { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading-actions { justify-content: flex-start; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 14px; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-search-row, .admin-access-form { display: grid; grid-template-columns: 1fr; }
  .admin-mini-stats { grid-template-columns: 1fr 1fr; }
  .admin-balance-form { grid-template-columns: 1fr; }
  .admin-balance-form #admin-balance-note { grid-column: auto; }
  .reconciliation-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   v2.0 — admin 2FA, withdrawal receipts, full blackjack,
   original Neon Reels, and verified backup history
   ========================================================= */

/* Blackjack: multiple hands, split and double controls */
.blackjack-hands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
}
.blackjack-player-hand {
  min-width: 0;
  border: 1px solid #29333e;
  border-radius: 14px;
  padding: 14px;
  background: #0c1117;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.blackjack-player-hand.active-hand {
  border-color: rgba(185,255,102,.72);
  box-shadow: inset 0 0 0 1px rgba(185,255,102,.12), 0 0 24px rgba(185,255,102,.07);
  transform: translateY(-2px);
}
.blackjack-player-hand.hand-win,
.blackjack-player-hand.hand-blackjack { border-color: rgba(185,255,102,.5); }
.blackjack-player-hand.hand-loss,
.blackjack-player-hand.hand-bust { border-color: rgba(255,92,108,.5); }
.blackjack-hand-meta,
.blackjack-hand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.blackjack-hand-meta { margin-bottom: 12px; }
.blackjack-hand-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}
.blackjack-hand-meta strong {
  color: var(--accent);
  font: 900 21px/1 var(--font-display);
}
.blackjack-hand-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #202832;
  color: var(--muted);
  font-size: 10px;
}
.blackjack-hand-footer strong { color: var(--accent); }
.blackjack-controls {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) repeat(4, minmax(92px, auto));
  gap: 10px;
  align-items: stretch;
}
.blackjack-controls .button { min-height: 48px; }
.blackjack-controls .button:disabled {
  opacity: .32;
  cursor: not-allowed;
}

/* Original Nightshift Neon Reels */
.slots-card .mini-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 10px;
  border: 1px solid #27313b;
  border-radius: 12px;
  background: #090d12;
}
.mini-slots span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #34404c;
  border-radius: 7px;
  color: var(--accent);
  background: #11171e;
  font: 900 16px var(--font-display);
}
.slots-stage { overflow: hidden; }
.slots-machine {
  position: relative;
  width: min(100%, 800px);
  margin: 20px auto 12px;
  padding: 18px;
  border: 1px solid #303b46;
  border-radius: 18px;
  background: #080c10;
  box-shadow: inset 0 0 0 5px #0f151b, 8px 8px 0 #06080a;
}
.slots-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  grid-template-rows: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}
.slots-payline {
  position: absolute;
  z-index: 3;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 2px;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(185,255,102,.5);
  opacity: .72;
}
.slot-symbol {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 92px;
  border: 1px solid #2c3742;
  border-radius: 11px;
  background: #11171e;
  color: #d8dee5;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.slot-symbol span {
  font: 900 clamp(28px, 4vw, 48px)/1 var(--font-display);
  letter-spacing: -.04em;
}
.slot-symbol small {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  color: #6f7b87;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.slot-n,
.slot-seven { color: var(--accent); }
.slot-chip { color: #dce3ea; }
.slot-moon { color: #b5c3d2; }
.slot-bolt { color: #f2bb5d; }
.slot-bar span { font-size: clamp(18px, 3vw, 31px); letter-spacing: .02em; }
.slot-symbol.winning-symbol {
  border-color: var(--accent);
  color: var(--accent);
  background: #11190d;
  box-shadow: inset 0 0 0 2px rgba(185,255,102,.14), 0 0 18px rgba(185,255,102,.15);
}
.slots-spinning .slot-symbol {
  animation: nightshift-reel-spin .16s linear infinite;
  filter: blur(.8px);
}
.slots-spinning .slot-symbol:nth-child(5n + 2) { animation-delay: .03s; }
.slots-spinning .slot-symbol:nth-child(5n + 3) { animation-delay: .06s; }
.slots-spinning .slot-symbol:nth-child(5n + 4) { animation-delay: .09s; }
.slots-spinning .slot-symbol:nth-child(5n + 5) { animation-delay: .12s; }
.slots-settled { animation: slots-settle .35s ease; }
@keyframes nightshift-reel-spin {
  0% { transform: translateY(-7px); opacity: .55; }
  50% { transform: translateY(7px); opacity: 1; }
  100% { transform: translateY(-7px); opacity: .55; }
}
@keyframes slots-settle {
  0% { transform: scale(.995); }
  55% { transform: scale(1.008); }
  100% { transform: scale(1); }
}
.slots-paytable {
  width: min(100%, 800px);
  margin: 14px auto 0;
  border: 1px solid #252f39;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1015;
}
.slots-paytable summary {
  padding: 13px 15px;
  cursor: pointer;
  color: #c5ced7;
  font-size: 11px;
  font-weight: 850;
}
.slots-paytable-table {
  width: 100%;
  border-collapse: collapse;
}
.slots-paytable-table th,
.slots-paytable-table td {
  padding: 10px 13px;
  border-top: 1px solid #202832;
  text-align: left;
  font-size: 11px;
}
.slots-paytable-table th { color: #768390; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.slots-paytable-table td:last-child { color: var(--accent); font-weight: 900; }

/* Player-facing withdrawal receipts */
.withdrawal-receipt-panel { margin-top: 22px; }
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.receipt-grid.empty-state { display: block; }
.withdrawal-receipt {
  position: relative;
  overflow: hidden;
  border: 1px solid #303b47;
  border-radius: 15px;
  padding: 18px;
  background: #0c1117;
  box-shadow: 5px 5px 0 #07090b;
}
.withdrawal-receipt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #f2bb5d;
}
.withdrawal-receipt.receipt-paid::before { background: var(--accent); }
.receipt-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.receipt-heading small,
.receipt-heading strong { display: block; }
.receipt-heading small { color: #75818e; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.receipt-heading strong { margin-top: 5px; color: var(--text); font: 850 17px var(--font-display); }
.receipt-amount {
  margin: 21px 0 16px;
  color: var(--accent);
  font: 900 clamp(30px, 4vw, 46px)/1 var(--font-display);
}
.receipt-amount span { color: #71808d; font-size: 10px; letter-spacing: .13em; }
.withdrawal-receipt dl { display: grid; gap: 0; margin: 0 0 15px; }
.withdrawal-receipt dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid #202832;
}
.withdrawal-receipt dt { color: #73808d; font-size: 10px; }
.withdrawal-receipt dd { margin: 0; color: #cbd3db; font-size: 10px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.receipt-note { padding: 10px; border: 1px solid #27313b; border-radius: 9px; color: var(--muted); background: #0a0f14; font-size: 10px; }

/* Administrator two-factor gate and backup history */
.admin-security-gate {
  border: 1px solid rgba(242,187,93,.4);
  border-radius: 16px;
  padding: 20px;
  background: #0d1218;
  box-shadow: inset 3px 0 #f2bb5d;
}
.admin-security-gate:has(.admin-chip:not(.warning)) {
  border-color: rgba(185,255,102,.36);
  box-shadow: inset 3px 0 var(--accent);
}
.totp-secret,
.totp-uri {
  display: block;
  width: 100%;
  max-height: 110px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #303b47;
  border-radius: 9px;
  background: #080c10;
  color: var(--accent);
  font: 700 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.totp-uri { color: #b8c3ce; }
.recovery-code-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(185,255,102,.45);
  border-radius: 12px;
  background: rgba(185,255,102,.035);
}
.recovery-code-box strong { color: var(--accent); }
.recovery-code-box p { color: var(--muted); font-size: 11px; }
.recovery-code-box pre {
  padding: 12px;
  border: 1px solid #2b3641;
  border-radius: 9px;
  background: #080c10;
  color: #e3e8ed;
  font: 750 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace;
  column-count: 2;
  user-select: all;
}
#admin-backup-history { margin-top: 12px; max-height: 260px; }
.status-verified { border-color: rgba(185,255,102,.5); color: var(--accent); }
.status-failed { border-color: rgba(255,92,108,.6); color: #ff7886; }

@media (max-width: 1050px) {
  .blackjack-controls { grid-template-columns: 1fr 1fr 1fr; }
  .blackjack-controls .wager-input { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .blackjack-hands { grid-template-columns: 1fr; }
  .blackjack-controls { grid-template-columns: 1fr 1fr; }
  .slots-machine { padding: 10px; border-radius: 13px; }
  .slots-grid { grid-template-columns: repeat(5, minmax(46px, 1fr)); grid-template-rows: repeat(3, 72px); gap: 5px; }
  .slot-symbol { min-height: 72px; border-radius: 8px; }
  .slot-symbol span { font-size: clamp(21px, 8vw, 33px); }
  .slot-symbol small { display: none; }
  .receipt-grid { grid-template-columns: 1fr; }
  .recovery-code-box pre { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .slots-spinning .slot-symbol,
  .slots-settled,
  .skyline-machine.skyline-spinning .skyline-symbol,
  .skyline-machine.skyline-settled,
  .skyline-machine.skyline-settled .winning-symbol { animation: none; }
}

/* Nightshift v2.1 — engagement, wallet tracking, and new games */
.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #081008;
  font: 900 9px/1 var(--font-display);
}

.home-personalization {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.home-personalization-single { grid-template-columns: minmax(0, 1fr); }
.home-shelf {
  min-height: 118px;
  padding: 16px;
  border: 1px solid #222b34;
  border-radius: 14px;
  background: #0d1116;
}
.home-shelf h3 { margin: 0 0 11px; font-size: 15px; }
.home-game-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-game-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #2b3540;
  border-radius: 10px;
  background: #11171d;
  color: #dce3e9;
  font: 750 11px var(--font-body);
  cursor: pointer;
}
.home-game-chips button:hover { border-color: rgba(185,255,102,.55); color: var(--accent); }
.home-game-chips button span { color: var(--accent); font-weight: 900; }
.home-game-chips button small { color: #74818c; font-size: 8px; }
.favorite-toggle {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  width: 31px;
  height: 31px;
  border: 1px solid #303a44;
  border-radius: 9px;
  background: rgba(8,11,14,.88);
  color: #81909d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.favorite-toggle:hover,
.favorite-toggle.active { border-color: var(--accent); color: var(--accent); }
.game-card { position: relative; }
.activity-row { width: 100%; border: 0; text-align: left; cursor: pointer; }
.activity-row:hover { background: #151b21; }
.live-feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.turnover-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #27313a;
  border-radius: 14px;
  background: #0d1217;
}
.turnover-card .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.turnover-card .panel-heading h3 { margin: 2px 0 0; }
.turnover-card .panel-heading > strong { color: var(--accent); font: 900 25px var(--font-display); }
.turnover-progress {
  height: 9px;
  margin: 13px 0 15px;
  overflow: hidden;
  border: 1px solid #2a343e;
  border-radius: 999px;
  background: #080c10;
}
.turnover-progress > span { display: block; height: 100%; width: 100%; background: var(--accent); transition: width .3s ease; }
.turnover-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.turnover-stats div { padding: 10px; border: 1px solid #222b34; border-radius: 9px; background: #0a0e12; }
.turnover-stats span, .turnover-stats strong { display: block; }
.turnover-stats span { color: #71808c; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.turnover-stats strong { margin-top: 5px; color: #e0e6eb; font-size: 12px; }

.notification-list { display: grid; gap: 9px; }
.notification-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #27313b;
  border-radius: 12px;
  background: #0d1217;
  cursor: pointer;
}
.notification-item.unread { border-color: rgba(185,255,102,.45); box-shadow: inset 3px 0 var(--accent); }
.notification-item:hover { background: #11171d; }
.notification-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #34404c;
  border-radius: 10px;
  color: var(--accent);
  font: 900 17px var(--font-display);
}
.notification-heading { display: flex; justify-content: space-between; gap: 12px; }
.notification-heading span { color: #71808c; font-size: 9px; }
.notification-item p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.promo-redeem-card { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 16px 0 20px; padding: 15px; border: 1px solid #29343e; border-radius: 12px; background: #0d1217; }
.promo-redeem-card h3, .promo-redeem-card p { grid-column: 1 / -1; margin: 0; }
.promo-redeem-card p { color: var(--muted); font-size: 11px; }

/* Midnight Vault */
.vault-machine {
  width: min(100%, 540px);
  margin: 20px auto;
  padding: 18px;
  border: 1px solid #3a4651;
  border-radius: 18px;
  background: #080c10;
  box-shadow: inset 0 0 0 5px #111820;
}
.vault-grid { display: grid; grid-template-columns: repeat(3, minmax(76px, 1fr)); gap: 8px; }
.vault-symbol {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 8px;
  border: 1px solid #303b46;
  border-radius: 11px;
  background: #11171d;
  color: #b7c1ca;
}
.vault-symbol span { font: 900 clamp(30px, 5vw, 52px)/1 var(--font-display); }
.vault-symbol small { margin-top: 7px; color: #697884; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.vault-symbol.winning-symbol { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 2px rgba(185,255,102,.18), 0 0 20px rgba(185,255,102,.12); }
.vault-spinning .vault-symbol { animation: vault-pulse .18s linear infinite alternate; }
.vault-settled { animation: vault-settle .4s ease; }
@keyframes vault-pulse { from { transform: translateY(-2px); opacity: .65; } to { transform: translateY(2px); opacity: 1; } }
@keyframes vault-settle { 50% { transform: scale(1.01); } }

/* Night Wheel */
.wheel-wrap { position: relative; width: min(78vw, 430px); aspect-ratio: 1; margin: 24px auto; }
.wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -8px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 34px solid var(--accent);
  filter: drop-shadow(0 3px 3px #000);
}
.wheel-disc {
  --wheel-rotation: 0deg;
  position: relative;
  width: 100%;
  height: 100%;
  border: 8px solid #29343d;
  border-radius: 50%;
  background: repeating-conic-gradient(#171f26 0deg 18deg, #0d1217 18deg 36deg);
  transform: rotate(var(--wheel-rotation));
  transition: transform 2.15s cubic-bezier(.12,.62,.08,1);
  box-shadow: 0 0 0 3px #080b0e, 0 15px 34px rgba(0,0,0,.35);
}
.wheel-center {
  position: absolute;
  z-index: 3;
  inset: 37%;
  display: grid;
  place-items: center;
  border: 5px solid #303b44;
  border-radius: 50%;
  background: #080c10;
  color: var(--accent);
  font: 950 clamp(28px, 6vw, 54px) var(--font-display);
}
.wheel-label {
  --angle: calc(var(--segment-index) * 18deg + 9deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  color: #7f8c97;
  font: 850 10px var(--font-display);
  text-align: center;
  transform: rotate(var(--angle)) translateY(-178px) rotate(calc(-1 * var(--angle)));
  transform-origin: center;
}
.wheel-label-win { color: var(--accent); }
.wheel-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.wheel-legend div { padding: 9px; border: 1px solid #26303a; border-radius: 9px; background: #0b1015; }
.wheel-legend strong, .wheel-legend span { display: block; }
.wheel-legend strong { color: var(--accent); }
.wheel-legend span { margin-top: 3px; color: #71808c; font-size: 8px; }

/* European roulette */
.roulette-result-ball {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 18px auto;
  border: 5px solid #394650;
  border-radius: 50%;
  background: #11171c;
  color: #fff;
  font: 950 39px var(--font-display);
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
}
.roulette-result-ball.spinning { animation: roulette-spin .18s linear infinite; color: var(--accent); }
@keyframes roulette-spin { to { transform: rotate(360deg); } }
.roulette-number-grid { display: grid; grid-template-columns: repeat(12, minmax(28px, 1fr)); gap: 4px; }
.roulette-number {
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  color: #fff;
  font: 850 11px var(--font-display);
  cursor: pointer;
}
.roulette-number:first-child { grid-column: 1 / -1; }
.roulette-red { background: #8e2630; }
.roulette-black { background: #10151a; }
.roulette-green { background: #246a45; }
.roulette-number:hover, .roulette-number.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.roulette-number.landed { box-shadow: inset 0 0 0 3px #fff; }
.roulette-outside-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 9px 0 15px; }
.roulette-outside-bets button {
  min-height: 40px;
  border: 1px solid #303a44;
  border-radius: 8px;
  background: #11171d;
  color: #cbd4dc;
  font-weight: 800;
  cursor: pointer;
}
.roulette-outside-bets button:hover, .roulette-outside-bets button.active { border-color: var(--accent); color: var(--accent); background: #172018; }

/* Admin health and promotions */
.health-summary { display: grid; gap: 13px; }
.health-overall { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid #29343e; border-radius: 11px; background: #0b1015; }
.health-overall strong { display: block; margin-top: 3px; font: 900 20px var(--font-display); }
.health-overall > span { color: #71808c; font-size: 9px; }
.health-warnings { padding: 10px 13px; border: 1px solid rgba(242,187,93,.45); border-radius: 10px; background: rgba(242,187,93,.04); color: #f2bb5d; }
.health-warnings p { margin: 4px 0; font-size: 10px; }
.health-ok { padding: 10px 13px; border: 1px solid rgba(185,255,102,.35); border-radius: 10px; color: var(--accent); font-size: 10px; }
.health-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.health-metric-grid article { padding: 12px; border: 1px solid #27313a; border-radius: 10px; background: #0b1015; }
.health-metric-grid span, .health-metric-grid strong, .health-metric-grid small { display: block; }
.health-metric-grid span { color: #73808c; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.health-metric-grid strong { margin-top: 6px; color: #e0e6eb; font: 850 15px var(--font-display); overflow-wrap: anywhere; }
.health-metric-grid small { margin-top: 4px; color: #687580; font-size: 8px; }
.promo-admin-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr; gap: 8px; margin: 13px 0; }
.promo-admin-form #admin-promo-note { grid-column: 1 / -2; }
.promo-admin-form button { min-height: 44px; }
.table-note { display: block; margin-top: 4px; color: #71808c; font-size: 8px; font-weight: 500; }
.button-small { min-height: 30px; padding: 6px 9px; font-size: 9px; }

@media (max-width: 1050px) {
  .health-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-admin-form { grid-template-columns: 1fr 1fr; }
  .promo-admin-form #admin-promo-note { grid-column: 1 / -1; }
  .live-feed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .home-personalization { grid-template-columns: 1fr; }
  .turnover-stats { grid-template-columns: 1fr; }
  .notification-heading { display: block; }
  .notification-heading span { display: block; margin-top: 4px; }
  .promo-redeem-card { grid-template-columns: 1fr; }
  .vault-grid { grid-template-columns: repeat(3, minmax(52px, 1fr)); gap: 5px; }
  .vault-symbol { min-height: 80px; }
  .vault-symbol small { display: none; }
  .wheel-wrap { width: min(82vw, 340px); }
  .wheel-label { transform: rotate(var(--angle)) translateY(-137px) rotate(calc(-1 * var(--angle))); font-size: 8px; }
  .wheel-legend { grid-template-columns: repeat(2, 1fr); }
  .roulette-number-grid { grid-template-columns: repeat(6, 1fr); }
  .roulette-number:first-child { grid-column: 1 / -1; }
  .roulette-outside-bets { grid-template-columns: repeat(2, 1fr); }
  .health-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-admin-form { grid-template-columns: 1fr; }
  .promo-admin-form #admin-promo-note { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .vault-spinning .vault-symbol,
  .vault-settled,
  .roulette-result-ball.spinning { animation: none; }
  .wheel-disc { transition-duration: .05s; }
}

/* Nightshift v2.1.1 bug fixes */
.activity-row {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  border-radius: 0;
}
.activity-row:hover { background: #151b21; }

/* Homepage artwork for the v2.1 games */
.mini-vault,
.mini-wheel,
.mini-roulette {
  position: relative;
  height: 270px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #28333d;
  border-radius: 18px;
  background: #0b1015;
}
.mini-vault {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 8px;
  padding: 38px 24px 55px;
  box-shadow: inset 0 0 0 7px #0f151b;
}
.mini-vault::before {
  content: "";
  position: absolute;
  inset: 26px 20px 46px;
  border: 2px solid #35424e;
  border-radius: 16px;
  box-shadow: inset 0 0 0 6px #080c10, 7px 8px 0 #06080a;
}
.mini-vault span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 105px;
  border: 1px solid #303b46;
  border-radius: 11px;
  background: #111820;
  color: var(--accent);
  font: 900 42px/1 var(--font-display);
}
.mini-vault span:nth-child(1) { color: #50d6ff; }
.mini-vault span:nth-child(3) { color: #f2bb5d; }
.mini-vault small {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 22px;
  color: #778491;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .25em;
  text-align: center;
}

.mini-wheel { display: grid; place-items: center; }
.mini-wheel::before {
  content: "";
  width: 188px;
  aspect-ratio: 1;
  border: 8px solid #2a3540;
  border-radius: 50%;
  background: conic-gradient(
    #b9ff66 0deg 42deg,
    #182028 42deg 72deg,
    #50d6ff 72deg 105deg,
    #182028 105deg 140deg,
    #f2bb5d 140deg 162deg,
    #b9ff66 162deg 220deg,
    #182028 220deg 252deg,
    #ff6cae 252deg 270deg,
    #50d6ff 270deg 310deg,
    #182028 310deg 336deg,
    #b9ff66 336deg 360deg
  );
  box-shadow: 0 0 0 3px #080b0e, 10px 12px 0 #06080a;
  transform: rotate(-12deg);
}
.mini-wheel::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--accent);
  filter: drop-shadow(0 3px 2px #000);
}
.mini-wheel span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border: 5px solid #303b44;
  border-radius: 50%;
  background: #080c10;
  color: var(--accent);
  font: 950 28px var(--font-display);
}

.mini-roulette {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #173b2b 0 35%, #0e2119 36% 58%, #0b1015 59%);
}
.mini-roulette::before {
  content: "";
  width: 205px;
  aspect-ratio: 1;
  border: 11px solid #42362a;
  border-radius: 50%;
  background: repeating-conic-gradient(#8e2630 0deg 9.73deg, #11161b 9.73deg 19.46deg);
  box-shadow: inset 0 0 0 22px #142b21, 9px 11px 0 #06080a;
  transform: rotate(4deg);
}
.mini-roulette::after {
  content: "0";
  position: absolute;
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 1;
  border: 5px solid #56625d;
  border-radius: 50%;
  background: #246a45;
  color: #fff;
  font: 950 34px var(--font-display);
}
.mini-roulette span,
.mini-roulette b,
.mini-roulette i {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #fff;
  font: 900 11px var(--font-display);
  font-style: normal;
  box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.mini-roulette span { top: 45px; left: 57px; background: #246a45; }
.mini-roulette b { right: 48px; bottom: 58px; background: #8e2630; }
.mini-roulette i { left: 54px; bottom: 47px; background: #10151a; }

/* Reassembled choice-based Night Wheel */
.wheel-disc {
  background: #111820;
  transition: transform 2.3s cubic-bezier(.08,.68,.08,1);
}
.wheel-disc::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.wheel-center {
  inset: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(calc(-1 * var(--wheel-rotation)));
  transition: transform 2.3s cubic-bezier(.08,.68,.08,1);
}
.wheel-center small {
  color: #77838e;
  font: 850 8px/1 var(--font-body);
  letter-spacing: .16em;
}
.wheel-center strong {
  color: var(--accent);
  font: 950 clamp(25px, 5vw, 48px)/1 var(--font-display);
}
.wheel-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(720px, 100%);
  margin: 18px auto 12px;
}
.wheel-choice-grid button {
  min-height: 70px;
  border: 1px solid #303b46;
  border-radius: 11px;
  background: #0d1319;
  color: #c6d0d9;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}
.wheel-choice-grid button:hover { transform: translateY(-2px); border-color: #53606c; }
.wheel-choice-grid button.active { border-color: currentColor; background: #141d20; box-shadow: inset 0 0 0 2px currentColor; }
.wheel-choice-grid strong,
.wheel-choice-grid span { display: block; }
.wheel-choice-grid strong { font: 950 23px/1 var(--font-display); }
.wheel-choice-grid span { margin-top: 6px; color: #77838e; font-size: 8px; font-weight: 800; }
.wheel-choice-grid .choice-2 { color: #b9ff66; }
.wheel-choice-grid .choice-5 { color: #50d6ff; }
.wheel-choice-grid .choice-10 { color: #f2bb5d; }
.wheel-choice-grid .choice-20 { color: #ff6cae; }
.wheel-legend { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wheel-legend-item { position: relative; padding-left: 14px !important; }
.wheel-legend-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px;
  background: #53606b;
}
.wheel-legend-2::before { background: #b9ff66; }
.wheel-legend-5::before { background: #50d6ff; }
.wheel-legend-10::before { background: #f2bb5d; }
.wheel-legend-20::before { background: #ff6cae; }
.wheel-legend-miss::before { background: #56616b; }

@media (max-width: 760px) {
  .wheel-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wheel-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-vault, .mini-wheel, .mini-roulette { height: 220px; }
}
.admin-load-error {
  color: #ff8a98;
  border: 1px solid rgba(255,92,108,.28);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,92,108,.05);
}


/* v2.2 announcements, profile summary, and deposit promotion placement */
.site-announcement {
  position: fixed;
  z-index: 250;
  top: 14px;
  left: 50%;
  width: min(720px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}
.site-announcement-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(185,255,102,.48);
  border-radius: 14px;
  background: rgba(11,13,16,.97);
  box-shadow: 0 18px 55px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.025);
  pointer-events: auto;
  animation: announcement-enter .22s ease-out;
}
.site-announcement-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  transform: rotate(5deg);
  color: var(--accent);
  font: 950 22px/1 var(--font-display);
}
.site-announcement-copy small { display: block; margin-bottom: 4px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.site-announcement-copy p { margin: 0; color: #edf3f6; font-size: 14px; line-height: 1.45; }
#site-announcement-close { border: 0; background: transparent; color: #87939e; font-size: 24px; cursor: pointer; }
.site-announcement-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: var(--accent); }
.site-announcement-progress.running { animation: announcement-progress 10s linear forwards; }
@keyframes announcement-enter { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes announcement-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.deposit-promo-card { margin: 18px 0; }
.announcement-admin-form { display: grid; gap: 10px; margin: 14px 0 18px; }
.announcement-admin-form textarea { min-height: 92px; resize: vertical; }
.announcement-admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement-admin-actions small { color: var(--muted); font-weight: 800; }
.table-note { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.profile-modal-card { width: min(560px, calc(100vw - 28px)); }
.profile-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-heading h2 { margin: 2px 0 3px; }
.profile-heading p { margin: 0; color: var(--muted); }
.profile-avatar { display: grid; place-items: center; width: 58px; aspect-ratio: 1; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); background: #0b1015; font: 950 28px/1 var(--font-display); transform: rotate(4deg); }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 0 12px; }
.profile-stat-grid article { min-width: 0; padding: 13px; border: 1px solid #28323b; border-radius: 11px; background: #0d1217; }
.profile-stat-grid small, .profile-stat-grid span { display: block; }
.profile-stat-grid small { color: #7f8c97; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.profile-stat-grid strong { display: block; margin: 7px 0 5px; color: #eef4f7; font: 900 clamp(15px, 3vw, 22px)/1 var(--font-display); overflow-wrap: anywhere; }
.profile-stat-grid span { color: #6f7b85; font-size: 10px; line-height: 1.35; }
.profile-rounds { margin: 0 0 16px; color: var(--muted); text-align: center; font-size: 12px; }
.high-roller-badge { width: fit-content; margin: -4px 0 2px 72px; padding: 5px 10px; border: 1px solid rgba(185,104,255,.6); border-radius: 999px; color: #d6a2ff; background: rgba(135,54,205,.16); box-shadow: 0 0 24px rgba(154,72,230,.16); font-size: 9px; font-weight: 950; letter-spacing: .16em; }

@media (max-width: 620px) {
  .site-announcement { top: 8px; width: calc(100vw - 16px); }
  .site-announcement-card { grid-template-columns: 34px minmax(0, 1fr) 28px; min-height: 64px; padding: 10px; }
  .site-announcement-mark { width: 34px; font-size: 18px; }
  .site-announcement-copy p { font-size: 12px; }
  .profile-stat-grid { grid-template-columns: 1fr; }
  .high-roller-badge { margin-left: 0; }
}

/* Nightshift v2.3 rakeback foundation */
.rakeback-card {
  margin: 22px 0;
  padding: 24px;
  border: 1px solid rgba(185, 255, 102, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(185, 255, 102, 0.055), rgba(17, 21, 26, 0.98) 42%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}
.rakeback-card .panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.rakeback-card h3 { margin: 3px 0 0; }
.rakeback-tier {
  border: 1px solid rgba(185, 255, 102, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font: 800 11px var(--font-display);
  letter-spacing: 0.12em;
  padding: 8px 11px;
}
.rakeback-tier.high-roller { color: #c58cff; border-color: rgba(197, 140, 255, 0.45); background: rgba(197, 140, 255, 0.08); }
.rakeback-explainer { color: var(--muted); margin: 14px 0 20px; line-height: 1.6; }
.rakeback-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rakeback-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 9, 11, 0.62);
  padding: 15px;
}
.rakeback-stat-grid small, .profile-rakeback small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; }
.rakeback-stat-grid strong { display: block; margin: 7px 0 4px; color: var(--text); font: 800 21px var(--font-display); }
.rakeback-stat-grid span { color: var(--muted); font-size: 11px; }
.rakeback-tier-progress { margin: 19px 0 16px; }
.rakeback-tier-progress > div:first-child { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.rakeback-tier-progress strong { color: var(--text); }
.profile-rakeback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(185, 255, 102, 0.18);
  border-radius: 14px;
  background: rgba(185, 255, 102, 0.045);
}
.profile-rakeback strong { display: block; margin: 4px 0; font: 800 21px var(--font-display); }
.profile-rakeback span { color: var(--muted); font-size: 11px; }

@media (max-width: 680px) {
  .rakeback-stat-grid { grid-template-columns: 1fr; }
  .rakeback-card { padding: 19px; }
}

/* Nightshift v2.4 — restrained polish, loyalty, progressive, and operations */
:root {
  --panel-edge: #242c35;
  --panel-edge-hover: #394551;
  --soft-shadow: 0 16px 44px rgba(0, 0, 0, .22);
  --soft-inset: inset 0 1px 0 rgba(255, 255, 255, .025);
}

body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: #0a0d08; background: var(--accent); }

/* Global feedback states */
.request-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
}
.request-progress.active { opacity: 1; }
.request-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(185, 255, 102, .5);
  transform: translateX(-120%);
}
.request-progress.active span { animation: request-sweep 1.15s ease-in-out infinite; }
@keyframes request-sweep { to { transform: translateX(360%); } }

.connection-banner {
  position: fixed;
  left: 50%;
  top: 92px;
  z-index: 160;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 207, 92, .5);
  border-radius: 10px;
  color: #ffe19a;
  background: rgba(25, 20, 10, .97);
  box-shadow: var(--soft-shadow);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}
.connection-banner.connected {
  border-color: rgba(185, 255, 102, .42);
  color: var(--accent);
  background: rgba(12, 22, 8, .96);
}

.button, .text-button, .choice-button, .nav-link, .card-arrow {
  -webkit-tap-highlight-color: transparent;
}
.button[aria-busy="true"], .button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.button[aria-busy="true"]::after, .button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  margin: -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #0b0d10;
  animation: ns-spin .65s linear infinite;
}
.button-ghost[aria-busy="true"]::after, .button-ghost.is-loading::after { color: var(--accent); }
@keyframes ns-spin { to { transform: rotate(360deg); } }

.empty-state {
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  border-radius: 10px;
  line-height: 1.55;
}
.skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: #20262d;
  overflow: hidden;
}
.skeleton-line::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: rgba(255,255,255,.055);
  transform: translateX(-120%);
  animation: skeleton-shift 1.25s ease-in-out infinite;
}
@keyframes skeleton-shift { to { transform: translateX(340%); } }

/* Small global cleanup */
.topbar { box-shadow: 0 10px 30px rgba(0,0,0,.13); }
.brand-mark, .profile-avatar { box-shadow: 4px 5px 0 rgba(0,0,0,.36); }
.balance-pill, .avatar-button, .button, .wager-input, .select-input, .modal-input {
  box-shadow: var(--soft-inset);
}
.game-card, .game-stage, .game-sidebar, .activity-panel, .home-shelf, .admin-panel,
.rakeback-card, .modal-card {
  box-shadow: var(--soft-shadow), var(--soft-inset);
}
.game-card { border-color: var(--panel-edge); }
.game-card:hover { border-color: var(--panel-edge-hover); }
.game-card:active { transform: translateY(-1px); }
.game-card[data-paused="true"]::after {
  content: "PAUSED";
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  color: #ffe19a;
  background: rgba(8,10,12,.82);
  backdrop-filter: blur(2px);
  font: 900 14px var(--font-display);
  letter-spacing: .18em;
}
.nav-new, .new-game-label, .jackpot-eligible-label {
  border: 1px solid rgba(185,255,102,.38);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(185,255,102,.055);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  line-height: 1;
  padding: 6px 7px;
}
.nav-new { margin-left: auto; padding: 4px 5px; }
.rail-slots { border-top-color: rgba(185,255,102,.12); }

/* Progressive jackpot */
.jackpot-strip {
  display: grid;
  grid-template-columns: auto minmax(190px, .7fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 32px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(185,255,102,.24);
  border-radius: 16px;
  background: #10151a;
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(185,255,102,.035);
}
.jackpot-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 900 24px var(--font-display);
  transform: rotate(-5deg);
}
.jackpot-copy h3 { margin: 2px 0 4px; color: var(--accent); font: 900 27px/1 var(--font-display); }
.jackpot-copy span { color: var(--muted); font-size: 11px; }
.jackpot-copy .eyebrow { margin: 0; }
.jackpot-meter {
  height: 8px;
  overflow: hidden;
  border: 1px solid #2b343d;
  border-radius: 999px;
  background: #080b0e;
}
.jackpot-meter > span {
  display: block;
  width: 0;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .5s ease;
}
.slot-jackpot-mini, .slot-jackpot-disclosure {
  border: 1px solid rgba(185,255,102,.18);
  border-radius: 11px;
  background: rgba(185,255,102,.035);
}
.slot-jackpot-mini {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 11px 13px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}
.slot-jackpot-mini strong { color: var(--accent); font-size: 12px; }
.slot-jackpot-disclosure { margin-top: 14px; padding: 12px 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.jackpot-fairness-note { border-color: rgba(185,255,102,.22); }

/* Slot collection and third premium slot */
.slot-collection { margin-top: 6px; }
.slot-section-heading { padding-bottom: 22px; }
.slot-lobby-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.premium-slot-card { min-height: 420px; }
.mini-slots, .mini-vault, .mini-skyline {
  position: relative;
  height: 275px;
  margin-top: 12px;
  border: 1px solid #26313a;
  border-radius: 14px;
  background: #0b1015;
  overflow: hidden;
}
.mini-slots { display: grid; grid-template-columns: repeat(3, 58px); justify-content: center; align-content: center; gap: 8px; }
.mini-slots span { display: grid; place-items: center; height: 64px; border: 1px solid #34414c; border-radius: 9px; color: var(--accent); background: #111820; font: 850 29px var(--font-display); }
.mini-slots span:nth-child(n+4) { transform: translateX(33px); }
.mini-vault { display: grid; grid-template-columns: repeat(3, 62px); place-content: center; gap: 8px; }
.mini-vault span { display: grid; place-items: center; height: 68px; border: 1px solid #3d3746; border-radius: 9px; color: #d5bfed; background: #16111c; font: 850 27px var(--font-display); }
.mini-vault small { position: absolute; left: 50%; bottom: 29px; transform: translateX(-50%); color: var(--muted); letter-spacing: .22em; }
.mini-skyline { background: #0a0e14; }
.mini-skyline::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 57%;
  background: repeating-linear-gradient(90deg, #121a23 0 27px, #0d131a 27px 35px);
  clip-path: polygon(0 37%, 10% 37%, 10% 18%, 19% 18%, 19% 42%, 30% 42%, 30% 0, 40% 0, 40% 28%, 52% 28%, 52% 12%, 64% 12%, 64% 45%, 77% 45%, 77% 24%, 89% 24%, 89% 39%, 100% 39%, 100% 100%, 0 100%);
}
.mini-skyline > span { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); opacity: .75; }
.mini-skyline b { position: absolute; left: 50%; top: 28%; transform: translateX(-50%) rotate(-5deg); color: var(--accent); font: 900 66px var(--font-display); text-shadow: 6px 7px 0 #050607; }
.mini-skyline i { position: absolute; right: 18px; top: 18px; color: var(--muted); font: normal 900 12px var(--font-display); letter-spacing: .08em; }

.skyline-stage { overflow: hidden; }
.skyline-machine { width: min(760px, 100%); margin: 28px auto 0; }
.skyline-jackpot-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(185,255,102,.2);
  border-radius: 12px 12px 0 0;
  color: var(--muted);
  background: #0d1319;
  font-size: 10px;
  letter-spacing: .12em;
}
.skyline-jackpot-header strong { color: var(--accent); font-size: 14px; }
.skyline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 7px;
  padding: 13px;
  border: 1px solid #29343f;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #080c10;
}
.skyline-grid .slot-symbol { min-height: 84px; }
.skyline-symbol {
  transform: translateZ(0);
  will-change: transform, opacity, filter;
  background: radial-gradient(circle at 50% 35%, rgba(72,93,112,.2), transparent 58%), #10171e;
}
.skyline-symbol .skyline-emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", emoji, sans-serif;
  font-size: clamp(31px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.38));
}
.skyline-symbol .skyline-word {
  color: var(--accent);
  font: 950 clamp(17px, 2.5vw, 28px)/1 var(--font-display);
  letter-spacing: -.035em;
  text-shadow: 0 0 18px rgba(185,255,102,.25);
}
.skyline-wild { border-color: rgba(185,255,102,.3); }
.skyline-crown { border-color: rgba(242,187,93,.28); }
.skyline-machine.skyline-spinning .skyline-symbol {
  animation: skyline-reel-motion .22s linear infinite;
  filter: blur(.75px) brightness(.82);
}
.skyline-machine.skyline-spinning .skyline-symbol:nth-child(5n + 2) { animation-delay: -.04s; }
.skyline-machine.skyline-spinning .skyline-symbol:nth-child(5n + 3) { animation-delay: -.08s; }
.skyline-machine.skyline-spinning .skyline-symbol:nth-child(5n + 4) { animation-delay: -.12s; }
.skyline-machine.skyline-spinning .skyline-symbol:nth-child(5n + 5) { animation-delay: -.16s; }
.skyline-machine.skyline-settled { animation: skyline-machine-settle .45s cubic-bezier(.2,.8,.2,1); }
.skyline-machine.skyline-settled .winning-symbol { animation: skyline-win-pulse .7s ease 2; }
@keyframes skyline-reel-motion {
  0% { transform: translateY(-18px) scale(.96); opacity: .42; }
  48% { transform: translateY(3px) scale(1.015); opacity: 1; }
  100% { transform: translateY(19px) scale(.96); opacity: .42; }
}
@keyframes skyline-machine-settle {
  0% { transform: translateY(-3px) scale(.994); }
  55% { transform: translateY(2px) scale(1.006); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes skyline-win-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(185,255,102,.14), 0 0 18px rgba(185,255,102,.15); }
  50% { box-shadow: inset 0 0 0 2px rgba(185,255,102,.32), 0 0 30px rgba(185,255,102,.32); }
}
.skyline-horizon {
  position: relative;
  height: 54px;
  margin: 14px 0 10px;
  border-bottom: 2px solid rgba(185,255,102,.55);
  opacity: .72;
}
.skyline-horizon::before {
  content: "";
  position: absolute;
  inset: 0 0 -1px;
  background: repeating-linear-gradient(90deg, #1a232c 0 24px, transparent 24px 31px);
  clip-path: polygon(0 70%, 8% 70%, 8% 35%, 15% 35%, 15% 62%, 23% 62%, 23% 5%, 32% 5%, 32% 50%, 42% 50%, 42% 24%, 52% 24%, 52% 67%, 64% 67%, 64% 15%, 73% 15%, 73% 54%, 85% 54%, 85% 29%, 94% 29%, 94% 64%, 100% 64%, 100% 100%, 0 100%);
}

/* Limbo v2 */
.limbo-stage-v2 { display: flex; flex-direction: column; }
.limbo-display-v2 {
  position: relative;
  width: min(720px, 100%);
  margin: 38px auto 22px;
  padding: 28px;
  border: 1px solid #2a333d;
  border-radius: 18px;
  background: #0c1116;
  text-align: center;
}
.limbo-display-v2 > small { color: var(--muted); font-size: 9px; letter-spacing: .17em; }
.limbo-display-v2 > strong { display: block; margin: 15px 0 21px; font: 900 clamp(54px, 10vw, 104px)/.9 var(--font-display); letter-spacing: -.04em; }
.limbo-display-v2.win > strong { color: var(--accent); }
.limbo-display-v2.loss > strong { color: var(--red); }
.limbo-target-marker { display: inline-flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 9px; letter-spacing: .11em; }
.limbo-target-marker b { color: var(--text); font-size: 14px; letter-spacing: 0; }
.limbo-meter { height: 7px; margin: 18px 0 12px; border: 1px solid #2b343c; border-radius: 999px; background: #070a0d; overflow: hidden; }
.limbo-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .45s ease; }
.limbo-display-v2 p { min-height: 20px; margin: 0; color: var(--muted); }
.limbo-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: min(720px, 100%); margin: 0 auto 14px; }
.limbo-presets button { padding: 10px 8px; border: 1px solid #29333d; border-radius: 9px; color: var(--muted); background: #0f151b; cursor: pointer; font-weight: 800; }
.limbo-presets button:hover, .limbo-presets button.active { border-color: rgba(185,255,102,.52); color: var(--accent); background: rgba(185,255,102,.045); }
.limbo-range-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(720px, 100%); margin: 0 auto 20px; color: var(--muted-2); font-size: 9px; }
.limbo-range-row input { accent-color: var(--accent); }
.game-stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: min(720px, 100%); margin: 0 auto 18px; }
.game-stat-strip > div { padding: 11px; border: 1px solid #242d36; border-radius: 9px; background: #0c1217; }
.game-stat-strip small, .game-stat-strip strong { display: block; }
.game-stat-strip small { color: var(--muted-2); font-size: 8px; letter-spacing: .11em; }
.game-stat-strip strong { margin-top: 5px; font-size: 13px; }
.limbo-history {
  width: min(720px, 100%);
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid #202a33;
}
.limbo-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 10px;
}
.limbo-history-title {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
}
.limbo-history-session {
  display: block;
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .08em;
  white-space: nowrap;
}
.limbo-history-list { display: flex; gap: 7px; flex-wrap: wrap; min-height: 28px; }
.limbo-history-list span { padding: 6px 8px; border: 1px solid #27313a; border-radius: 999px; color: var(--muted); background: #0d1318; font-size: 10px; }
.limbo-history-list span.win { color: var(--accent); border-color: rgba(185,255,102,.28); }
.limbo-history-list span.loss { color: var(--red); border-color: rgba(255,101,119,.22); }
.limbo-history-list span.empty { padding: 0; border: 0; background: transparent; color: var(--muted-2); line-height: 28px; }

@media (max-width: 520px) {
  .limbo-history-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Loyalty progression */
.loyalty-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 10px; }
.loyalty-heading > span { color: var(--muted); font-size: 11px; }
.loyalty-badge { width: fit-content; padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; font: 900 9px var(--font-display); letter-spacing: .14em; }
.loyalty-member { color: var(--accent); background: rgba(185,255,102,.055); }
.loyalty-night-owl { color: #82a8ff; background: rgba(74,118,220,.1); }
.loyalty-high-roller { color: #c58cff; background: rgba(161,83,224,.1); }
.loyalty-black-card { color: #ffd87a; background: rgba(207,158,48,.1); }
.loyalty-after-hours { color: #ff89c7; background: rgba(219,65,144,.1); }
.loyalty-progress > div { height: 7px; overflow: hidden; border: 1px solid #29323b; border-radius: 999px; background: #080b0e; }
.loyalty-progress > div > span { display: block; width: 0; height: 100%; border-radius: inherit; background: currentColor; color: var(--accent); transition: width .45s ease; }
.loyalty-progress p { margin: 7px 0 14px; color: var(--muted); font-size: 10px; }

/* Admin console cleanup and added operations */
[data-admin-cap].capability-hidden { display: none !important; }
.operations-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.operation-card { min-width: 0; padding: 14px; border: 1px solid #252f38; border-radius: 11px; background: #0c1116; }
.operation-card small, .operation-card strong, .operation-card span { display: block; }
.operation-card small { color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.operation-card strong { margin: 8px 0 5px; font: 850 20px/1 var(--font-display); overflow-wrap: anywhere; }
.operation-card span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.operation-card.warning { border-color: rgba(255,207,92,.38); }
.operation-card.danger { border-color: rgba(255,101,119,.36); }
.game-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.game-control-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid #242d36; border-radius: 9px; color: var(--text); background: #0c1217; cursor: pointer; text-align: left; }
.game-control-item:hover { border-color: #35414c; background: #111820; }
.game-control-item span { min-width: 0; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.game-control-item strong { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #35414c; border-radius: 999px; color: var(--muted); background: #111820; font-size: 8px; letter-spacing: .08em; }
.game-control-item.paused { border-color: rgba(255,207,92,.32); }
.game-control-item.paused strong { color: var(--accent); border-color: rgba(185,255,102,.35); }
.admin-jackpot-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.admin-jackpot-summary article { padding: 12px; border: 1px solid #25303a; border-radius: 9px; background: #0b1116; }
.admin-jackpot-summary small, .admin-jackpot-summary strong { display: block; }
.admin-jackpot-summary small { color: var(--muted-2); font-size: 8px; letter-spacing: .11em; }
.admin-jackpot-summary strong { margin-top: 6px; font: 850 16px var(--font-display); }
.admin-export-row { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin: 0 0 14px; }
.admin-export-row label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.admin-user-notes { display: grid; gap: 8px; margin: 10px 0; }
.admin-note { padding: 11px; border: 1px solid #252f38; border-radius: 9px; background: #0d1318; }
.admin-note p { margin: 0 0 7px; color: #d7dde2; font-size: 11px; line-height: 1.5; }
.admin-note small { color: var(--muted-2); font-size: 9px; }
.admin-timeline { display: grid; gap: 0; }
.admin-timeline-row { display: grid; grid-template-columns: 120px 90px 1fr auto; gap: 10px; align-items: center; padding: 10px 3px; border-bottom: 1px solid #1e262e; font-size: 10px; }
.admin-timeline-row:last-child { border-bottom: 0; }
.admin-timeline-row time, .admin-timeline-row span { color: var(--muted); }
.admin-timeline-row strong { overflow-wrap: anywhere; }
.admin-load-error { min-height: 74px; padding: 14px; border: 1px solid rgba(255,101,119,.3); border-radius: 10px; color: #ff9ca7; background: rgba(255,101,119,.045); line-height: 1.5; }

/* Cleaner responsive behavior */
@media (max-width: 1100px) {
  .slot-lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jackpot-strip { grid-template-columns: auto 1fr auto; }
  .jackpot-meter { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .jackpot-strip { grid-template-columns: auto 1fr; padding: 15px; }
  .jackpot-strip > .button { grid-column: 1 / -1; width: 100%; }
  .jackpot-meter { grid-column: 1 / -1; }
  .slot-lobby-grid { grid-template-columns: 1fr; }
  .premium-slot-card { min-height: 390px; }
  .limbo-presets { grid-template-columns: repeat(3, 1fr); }
  .game-stat-strip { grid-template-columns: 1fr; }
  .operations-grid { grid-template-columns: 1fr 1fr; }
  .game-control-grid { grid-template-columns: 1fr; }
  .admin-timeline-row { grid-template-columns: 90px 70px 1fr; }
  .admin-timeline-row > :last-child { grid-column: 3; }
  .skyline-grid { gap: 4px; padding: 8px; }
  .skyline-grid .slot-symbol { min-height: 64px; }
}

@media (max-width: 520px) {
  .operations-grid, .admin-jackpot-summary { grid-template-columns: 1fr; }
  .admin-export-row { align-items: stretch; flex-direction: column; }
  .admin-export-row .button { width: 100%; }
  .limbo-display-v2 { padding: 22px 14px; }
  .limbo-range-row { grid-template-columns: 1fr; text-align: center; }
  .skyline-jackpot-header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.admin-note-list { display: grid; gap: 8px; margin-top: 10px; }
.admin-note-list article { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px; border: 1px solid #252f38; border-radius: 9px; background: #0d1318; }
.admin-note-list strong { font-size: 11px; }
.admin-note-list span { color: var(--muted-2); font-size: 9px; }
.admin-note-list p { grid-column: 1 / -1; margin: 3px 0 0; color: #d7dde2; font-size: 11px; line-height: 1.5; }
.compact-empty { min-height: 48px; padding: 10px; }
.admin-timeline { display: grid; padding: 6px 12px 12px; }
.admin-timeline article { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #1f272f; }
.admin-timeline article:last-child { border-bottom: 0; }
.timeline-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(185,255,102,.08); }
.admin-timeline strong, .admin-timeline small, .admin-timeline p { display: block; }
.admin-timeline strong { font-size: 11px; text-transform: capitalize; }
.admin-timeline small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.admin-timeline p { margin: 5px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }

/* =========================================================
   v2.6 — bounded live chat + wallet page cleanup
   ========================================================= */
:root { --chat-dock-width: 350px; }

.chat-dock {
  position: fixed;
  top: 82px;
  right: 0;
  bottom: 0;
  z-index: 28;
  width: var(--chat-dock-width);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: #0c1014;
  box-shadow: -20px 0 45px rgba(0, 0, 0, .28);
  transform: translateX(100%);
  transition: transform .22s ease;
}
body.chat-open .chat-dock { transform: translateX(0); }

.chat-dock-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #10151b;
}
.chat-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-heading > div { min-width: 0; }
.chat-heading strong, .chat-heading small { display: block; }
.chat-heading strong { font: 800 14px var(--font-display); letter-spacing: .03em; }
.chat-heading small { margin-top: 3px; overflow: hidden; color: var(--muted-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-actions { display: flex; align-items: center; gap: 6px; }
.chat-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0b0f13;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}
.chat-icon-button:hover { color: var(--accent); border-color: var(--border-bright); }

.chat-message-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}
.chat-empty { min-height: 160px; display: grid; place-content: center; gap: 5px; padding: 20px; text-align: center; color: var(--muted); }
.chat-empty strong { color: var(--text); }
.chat-empty span { color: var(--muted-2); font-size: 11px; }
.chat-message { padding: 11px 11px 10px; margin-bottom: 8px; border: 1px solid #222a33; border-radius: 12px; background: #10151a; }
.chat-message-own { border-color: rgba(185,255,102,.24); background: #10180f; }
.chat-message-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-message-meta > strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-message-meta time { margin-left: auto; color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.chat-message p { margin: 7px 0 0; color: #dfe5e8; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-rank { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 3px 5px; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.chat-rank-member { color: var(--accent); border-color: rgba(185,255,102,.25); }
.chat-rank-night-owl { color: #90b2ff; border-color: rgba(127,156,255,.35); }
.chat-rank-high-roller { color: #c3a5ff; border-color: rgba(181,136,255,.35); }
.chat-rank-black-card { color: #ffd66f; border-color: rgba(255,207,92,.35); }
.chat-rank-after-hours { color: #ff99d3; border-color: rgba(255,105,180,.35); }
.chat-banned-chip { color: #ff9ca7; border: 1px solid rgba(255,101,119,.35); border-radius: 999px; padding: 3px 5px; font-size: 7px; font-weight: 800; letter-spacing: .07em; }
.chat-admin-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.chat-admin-actions button, .chat-ban-list button {
  border: 1px solid #39434e;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 5px 7px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.chat-admin-actions button:hover, .chat-ban-list button:hover { border-color: var(--red); color: #ff9ca7; }

.chat-composer { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--border); background: #0f1419; }
.chat-viewer-status { margin-bottom: 7px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.chat-composer textarea {
  width: 100%;
  min-height: 58px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  background: #090d11;
  color: var(--text);
  padding: 10px;
  font: 12px/1.4 var(--font-body);
}
.chat-composer textarea:disabled { opacity: .55; cursor: not-allowed; }
.chat-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.chat-composer-actions small, .chat-retention-copy { color: var(--muted-2); font-size: 8px; }
.chat-composer-actions .button { padding: 8px 13px; }
.chat-retention-copy { display: block; margin-top: 8px; line-height: 1.35; }

.chat-moderation-panel { flex: 0 0 auto; max-height: 230px; overflow-y: auto; padding: 12px; border-bottom: 1px solid var(--border); background: #11161c; }
.chat-moderation-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.chat-moderation-heading small, .chat-moderation-heading strong { display: block; }
.chat-moderation-heading small { color: var(--red); font-size: 7px; letter-spacing: .13em; }
.chat-moderation-heading strong { margin-top: 3px; font-size: 11px; }
.chat-ban-list { display: grid; gap: 7px; }
.chat-ban-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid #29313a; border-radius: 9px; background: #0c1116; }
.chat-ban-list strong, .chat-ban-list span { display: block; overflow-wrap: anywhere; }
.chat-ban-list strong { font-size: 9px; }
.chat-ban-list span { margin-top: 3px; color: var(--muted-2); font-size: 8px; line-height: 1.35; }

.chat-floating-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 29;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: #11171d;
  color: var(--text);
  padding: 11px 15px;
  box-shadow: 0 12px 35px rgba(0,0,0,.4);
  cursor: pointer;
}
body.chat-open .chat-floating-toggle { display: none; }
.chat-floating-toggle strong { font-size: 11px; }
.chat-floating-toggle b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 8px; }

@media (min-width: 1281px) {
  body.chat-open main {
    width: calc(100% - var(--game-rail-width) - var(--chat-dock-width));
    padding-inline: clamp(24px, 3vw, 56px);
  }
  body.chat-open footer {
    max-width: none;
    margin-left: var(--game-rail-width);
    margin-right: var(--chat-dock-width);
  }
}

/* Wallet information is retained but grouped into fewer, clearer surfaces. */
.wallet-page { padding-top: 58px; }
.wallet-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.wallet-page-heading > div { max-width: 760px; }
.wallet-page-heading .page-lead { margin-bottom: 0; }
.wallet-page-chip, .wallet-panel-index { flex: 0 0 auto; border: 1px solid var(--border-bright); border-radius: 999px; color: var(--muted); padding: 8px 11px; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.wallet-layout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 16px; align-items: stretch; }
.wallet-guide-panel, .wallet-status-card, .wallet-record-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.wallet-guide-panel { padding: 22px; }
.wallet-step-list { display: grid; gap: 0; }
.wallet-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.wallet-step:first-child { margin-top: 4px; }
.wallet-step .step-number { position: static; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border-bright); border-radius: 10px; color: var(--accent); font: 800 11px var(--font-display); }
.wallet-step h3 { margin: 0 0 6px; font: 700 18px var(--font-display); }
.wallet-step p { margin: 0; color: var(--muted); line-height: 1.55; }
.wallet-side-stack { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.wallet-status-card { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 18px; }
.wallet-status-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: #0c1116; }
.wallet-status-card small, .wallet-status-card strong { display: block; }
.wallet-status-card small { color: var(--muted-2); font-size: 8px; letter-spacing: .12em; }
.wallet-status-card strong { margin-top: 5px; font-size: 13px; }
.wallet-status-card p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.wallet-turnover-card { margin: 0; height: 100%; box-shadow: none; }
.wallet-promo-card, .wallet-record-panel { margin-top: 16px; }
.wallet-record-panel { padding: 20px; }
.wallet-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.wallet-policy-grid .notice-box { margin: 0; }
.wallet-overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 16px; align-items: stretch; }
.wallet-overview-grid .wallet-summary-grid { margin: 0; }
.wallet-overview-grid .wallet-summary-card { min-height: 100%; }
.wallet-action-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; margin-top: 16px; }
.wallet-primary-action, .wallet-rakeback-card { margin: 0; height: 100%; }
.wallet-records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wallet-records-grid .wallet-record-panel { margin: 0; min-width: 0; }

@media (max-width: 1280px) {
  .chat-dock { width: min(380px, 92vw); }
}

@media (max-width: 900px) {
  .wallet-layout-grid, .wallet-overview-grid, .wallet-action-grid, .wallet-records-grid { grid-template-columns: 1fr; }
  .wallet-side-stack { grid-template-rows: auto; }
  .wallet-overview-grid .wallet-summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .chat-dock { top: 70px; width: min(390px, 100vw); }
  .chat-floating-toggle { right: 12px; bottom: 12px; }
  .wallet-page { padding-top: 38px; }
  .wallet-page-heading { display: block; }
  .wallet-page-chip { display: inline-block; margin-top: 16px; }
  .wallet-policy-grid, .wallet-overview-grid .wallet-summary-grid { grid-template-columns: 1fr; }
  .wallet-step { grid-template-columns: 40px minmax(0, 1fr); }
  .wallet-guide-panel, .wallet-record-panel { padding: 16px; }
}

.chat-composer textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* =========================================================
   v2.7 — chat events, mentions, rain, and tabbed admin
   ========================================================= */
.admin-tab-bar {
  position: sticky;
  top: 91px;
  z-index: 12;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid #252e37;
  border-radius: 12px;
  background: rgba(12,16,20,.96);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}
.admin-tab-bar button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .02em;
}
.admin-tab-bar button:hover { color: var(--text); background: #1a2128; }
.admin-tab-bar button.active {
  color: var(--accent);
  border-color: rgba(185,255,102,.28);
  background: rgba(185,255,102,.065);
}
.admin-tab-panel { display: none; gap: 16px; }
.admin-tab-panel.active { display: grid; }
.admin-rain-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, .8fr) minmax(120px, .7fr) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}
.admin-rain-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.admin-rain-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(185,255,102,.28);
  border-radius: 11px;
  background: rgba(185,255,102,.045);
}
.admin-rain-live small, .admin-rain-live strong, .admin-rain-live span { display: block; }
.admin-rain-live small { color: var(--muted-2); font-size: 8px; letter-spacing: .12em; }
.admin-rain-live strong { margin: 5px 0; color: var(--accent); font: 850 20px var(--font-display); }
.admin-rain-live div > span { color: var(--muted); font-size: 10px; }

.chat-rain-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  margin: 10px 10px 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(185,255,102,.58);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 5%, rgba(127,156,255,.20), transparent 34%),
    radial-gradient(circle at 5% 95%, rgba(185,255,102,.16), transparent 40%),
    linear-gradient(135deg, rgba(185,255,102,.11), rgba(14,20,25,.97) 52%, rgba(77,199,255,.08));
  box-shadow:
    0 0 0 1px rgba(185,255,102,.08) inset,
    0 0 24px rgba(185,255,102,.10),
    0 12px 30px rgba(0,0,0,.34);
}
.chat-rain-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -45%;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), var(--accent), transparent);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: chat-rain-scan 3.2s linear infinite;
}
.chat-rain-card::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: -28px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(185,255,102,.10);
  box-shadow: 0 0 38px rgba(185,255,102,.08) inset;
  pointer-events: none;
}
.chat-rain-topline, .chat-rain-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-rain-topline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(185,255,102,.45);
  border-radius: 999px;
  background: rgba(185,255,102,.08);
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  box-shadow: 0 0 12px rgba(185,255,102,.07) inset;
}
.chat-rain-topline span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: chat-rain-pulse 1.35s ease-in-out infinite;
}
.chat-rain-topline strong {
  color: #e9ffd2;
  font: 900 18px var(--font-display);
  letter-spacing: .01em;
  text-shadow: 0 0 13px rgba(185,255,102,.22);
}
.chat-rain-topline strong::before {
  content: "POT  ";
  color: var(--muted);
  font: 800 7px var(--font-body);
  letter-spacing: .14em;
  vertical-align: 2px;
}
.chat-rain-card p { margin: 10px 0 9px; color: #e4e9ec; font-size: 10px; line-height: 1.45; }
.chat-rain-progress {
  height: 7px;
  margin: 10px 0 11px;
  overflow: hidden;
  border: 1px solid rgba(185,255,102,.24);
  border-radius: 999px;
  background: #070b0e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
}
.chat-rain-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f9cff, var(--accent) 55%, #e4ffbd);
  background-size: 180% 100%;
  box-shadow: 0 0 10px rgba(185,255,102,.38);
  transition: width .35s linear;
  animation: chat-rain-progress-flow 2.1s linear infinite;
}
.chat-rain-actions small {
  color: #c7d2d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}
.chat-rain-actions .button {
  min-width: 82px;
  padding: 8px 12px;
  font-size: 9px;
  box-shadow: 0 0 16px rgba(185,255,102,.13);
}
.chat-rain-actions .button:not(:disabled) { animation: chat-rain-join-glow 1.8s ease-in-out infinite; }
.chat-rain-actions .button:disabled { box-shadow: none; animation: none; }
@keyframes chat-rain-scan {
  from { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  to { transform: translateX(430%); opacity: 0; }
}
@keyframes chat-rain-pulse {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes chat-rain-progress-flow { to { background-position: -180% 0; } }
@keyframes chat-rain-join-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(185,255,102,.12); }
  50% { box-shadow: 0 0 20px rgba(185,255,102,.28); }
}

.chat-message-system { border-color: rgba(92,180,255,.25); background: linear-gradient(145deg, rgba(56,104,145,.12), #10151a); }
.chat-message-live_win { border-color: rgba(255,207,92,.34); background: linear-gradient(145deg, rgba(255,207,92,.09), #14130f); }
.chat-message-rain_start, .chat-message-rain_result { border-color: rgba(185,255,102,.3); background: linear-gradient(145deg, rgba(185,255,102,.075), #101610); }
.chat-system-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 6px;
  color: #8bc7ff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}
.chat-message-live_win .chat-system-badge { color: #ffd66f; }
.chat-message-rain_start .chat-system-badge, .chat-message-rain_result .chat-system-badge { color: var(--accent); }
.chat-mention {
  display: inline;
  padding: 1px 3px;
  border-radius: 4px;
  color: #91c8ff;
  background: rgba(92,180,255,.1);
  font-weight: 800;
}
.chat-mention-self { color: #0a1007; background: var(--accent); }
.chat-message-mentioned {
  border-color: rgba(185,255,102,.58);
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(185,255,102,.08);
  animation: chatMentionPulse 1.2s ease-out 1;
}
@keyframes chatMentionPulse {
  0% { box-shadow: inset 3px 0 0 var(--accent), 0 0 0 0 rgba(185,255,102,.35); }
  100% { box-shadow: inset 3px 0 0 var(--accent), 0 0 0 8px rgba(185,255,102,0); }
}

@media (max-width: 820px) {
  .admin-rain-form { grid-template-columns: 1fr 1fr; }
  .admin-rain-form .button { width: 100%; }
}
@media (max-width: 520px) {
  .admin-tab-bar { top: 72px; margin-inline: -4px; border-radius: 9px; }
  .admin-rain-form { grid-template-columns: 1fr; }
  .chat-rain-card { margin: 8px 8px 0; }
}

/* Nightshift v2.8: lottery, PVP, referrals, cosmetics, and support */
.lottery-strip {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px;
  margin: 28px 0 14px; padding: 20px 24px; border: 1px solid rgba(255,207,92,.35);
  border-radius: 16px; background: linear-gradient(120deg, rgba(255,207,92,.10), rgba(185,255,102,.035), var(--surface));
}
.lottery-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--yellow); color: var(--yellow); font: 900 23px var(--font-display); }
.lottery-home-copy h3 { margin: 1px 0 3px; color: var(--yellow); font: 900 28px var(--font-display); }
.lottery-home-copy .eyebrow { margin-bottom: 2px; color: var(--yellow); }
.lottery-home-copy span { color: var(--muted); font-size: 12px; }
.lottery-home-numbers { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.lottery-home-numbers span:first-child, .lottery-home-numbers span:last-child { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border-bright); border-radius: 50%; color: var(--text); font-weight: 800; }
.feature-page { padding-top: 54px; }
.lottery-page-grid, .pvp-layout-grid, .referral-grid, .support-layout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 18px; margin-bottom: 18px; }
.lottery-main-card, .lottery-side-card, .pvp-create-card, .pvp-board-card, .referral-card, .points-progress-card, .support-create-card, .support-list-card, .support-thread-card, .admin-support-detail { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 22px; }
.lottery-current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.lottery-current small { width: 100%; color: var(--muted); letter-spacing: .14em; }
.lottery-current strong { color: var(--yellow); font: 900 clamp(34px, 6vw, 54px) var(--font-display); }
.lottery-current span { color: var(--muted); }
.lottery-number-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0 12px; }
.lottery-number-picker button { aspect-ratio: 1; min-height: 48px; border: 1px solid var(--border-bright); border-radius: 50%; background: var(--surface-2); cursor: pointer; font: 850 18px var(--font-display); }
.lottery-number-picker button:hover, .lottery-number-picker button.active { border-color: var(--yellow); color: #0b0d10; background: var(--yellow); transform: translateY(-2px); }
.lottery-selection-copy { color: var(--muted); }
.lottery-purchase-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(110px, .7fr) 1.2fr; align-items: end; gap: 12px; margin-top: 18px; }
.lottery-purchase-row label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.lottery-purchase-row input { width: 100%; padding: 12px; border: 1px solid var(--border-bright); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.lottery-purchase-row div small, .lottery-purchase-row div strong { display: block; }
.lottery-purchase-row div small { color: var(--muted); font-size: 9px; }
.lottery-purchase-row div strong { margin-top: 5px; }
.lottery-purchase-actions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; }
.lottery-purchase-actions .button { width: 100%; min-height: 44px; padding-inline: 10px; }
.ticket-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket-chip { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid rgba(255,207,92,.35); border-radius: 999px; background: rgba(255,207,92,.05); }
.ticket-chip small { color: var(--muted); }
.ticket-chip strong { color: var(--yellow); letter-spacing: .08em; }

.pvp-create-card .field-label, .support-create-card label { display: grid; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.pvp-choice-row { margin: 10px 0 18px; }
.pvp-duel-list { display: grid; gap: 10px; }
.pvp-duel-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pvp-duel-card small, .pvp-duel-card strong, .pvp-duel-card span { display: block; }
.pvp-duel-card small { color: var(--accent); }
.pvp-duel-card strong { margin: 5px 0; }
.pvp-duel-card span { color: var(--muted); font-size: 11px; }

.referral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.referral-card h3 { font: 850 26px var(--font-display); margin: 8px 0; }
.referral-card p { color: var(--muted); line-height: 1.5; }
.inline-form { display: flex; gap: 10px; margin-top: 18px; }
.inline-form .modal-input { flex: 1; }
.referral-stat-grid { margin: 18px 0; }
.deposit-referral-card { border-color: rgba(127,156,255,.3); }

.points-progress-card { margin-bottom: 18px; }
.points-progress-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.points-progress-card small { color: var(--muted); letter-spacing: .12em; }
.cosmetic-store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cosmetic-card { display: flex; flex-direction: column; min-height: 300px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.cosmetic-card.owned { border-color: rgba(185,255,102,.35); }
.cosmetic-preview { min-height: 86px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.cosmetic-card > small { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.cosmetic-card h3 { margin: 7px 0; }
.cosmetic-card p { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cosmetic-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cosmetic-inventory { display: flex; flex-wrap: wrap; gap: 10px; }
.inventory-chip { display: grid; gap: 3px; padding: 10px 13px; border: 1px solid var(--border-bright); border-radius: 10px; background: var(--surface-2); }
.inventory-chip small { color: var(--muted); }
.preview-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #111820; font: 900 20px var(--font-display); }
.chat-title { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid currentColor; border-radius: 999px; font-size: 7px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.title-optimist { color: #b9ff66; }
.title-card-shark { color: #8db5ff; }
.title-night-regular { color: #d6c3ff; }
.title-lucky-streak { color: #ffcf5c; }
.title-after-dark { color: #ff8ed7; }
.title-house-favorite { color: #f4f5f7; text-shadow: 0 0 8px rgba(255,255,255,.35); }
.frame-neon-edge, .preview-avatar.frame-neon-edge { border: 2px solid var(--accent) !important; box-shadow: 0 0 0 3px rgba(185,255,102,.12), 0 0 18px rgba(185,255,102,.28); }
.frame-midnight, .preview-avatar.frame-midnight { border: 2px solid #7f9cff !important; box-shadow: 0 0 0 4px #11182d, 0 0 20px rgba(127,156,255,.35); }
.frame-black-card, .preview-avatar.frame-black-card { border: 2px solid #d9d9d9 !important; box-shadow: 0 0 0 3px #272a2e, inset 0 0 12px rgba(255,255,255,.16); }
.profile-cosmetics { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.profile-cosmetics small, .profile-cosmetics strong { display: block; }
.profile-cosmetics small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }

.support-layout-grid { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
.support-textarea, .support-reply-row textarea { resize: vertical; min-height: 100px; }
.support-ticket-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.support-ticket-row { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; text-align: left; padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); cursor: pointer; }
.support-ticket-row:hover, .support-ticket-row.active { border-color: var(--accent); }
.support-ticket-row strong { align-self: center; }
.support-ticket-row small { grid-column: 1 / -1; color: var(--muted); }
.support-thread-card { margin-top: 18px; }
.support-thread { display: grid; gap: 12px; max-height: 560px; overflow: auto; padding: 5px; }
.support-message { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.support-message-admin { border-color: rgba(185,255,102,.32); background: rgba(185,255,102,.045); }
.support-message > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.support-message div span { color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.support-message time { margin-left: auto; color: var(--muted); font-size: 9px; }
.support-message p { margin: 10px 0 0; color: #dfe5e9; line-height: 1.55; }
.support-reply-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 14px; }
.admin-filter-row { display: grid; grid-template-columns: 190px 1fr auto; gap: 10px; margin-bottom: 14px; }
.admin-support-detail { margin-top: 18px; background: var(--surface-2); }
#admin-support-list tr[data-admin-support-open] { cursor: pointer; }
#admin-support-list tr[data-admin-support-open]:hover { background: rgba(185,255,102,.05); }

@media (max-width: 1000px) {
  .lottery-page-grid, .pvp-layout-grid, .support-layout-grid { grid-template-columns: 1fr; }
  .cosmetic-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lottery-strip { grid-template-columns: auto 1fr auto; }
  .lottery-home-numbers { display: none; }
}
@media (max-width: 680px) {
  .lottery-strip { grid-template-columns: auto 1fr; }
  .lottery-strip .button { grid-column: 1 / -1; width: 100%; }
  .lottery-number-picker { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .lottery-number-picker button { min-height: 42px; }
  .lottery-purchase-row, .referral-grid, .cosmetic-store-grid, .profile-cosmetics, .admin-filter-row { grid-template-columns: 1fr; }
  .lottery-purchase-actions { grid-template-columns: 1fr; }
  .inline-form, .support-reply-row, .pvp-duel-card { flex-direction: column; display: flex; align-items: stretch; }
  .support-message time { margin-left: 0; width: 100%; }
}

/* Nightshift v2.9: synchronized PVP arena, lottery reveal, and cosmetic fixes */
.warning-copy { color: var(--yellow) !important; }
.lottery-single-purchase { grid-template-columns: minmax(120px, .7fr) minmax(160px, 1fr) 1.2fr; }
.lottery-single-purchase > div { min-height: 48px; display: flex; flex-direction: column; justify-content: end; }
.lottery-number-picker button:disabled { cursor: not-allowed; opacity: .5; transform: none; }

.pvp-duel-page { max-width: 920px; }
.pvp-arena-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(185,255,102,.09), transparent 34%),
    linear-gradient(145deg, #10161c, #080b0f 72%);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.pvp-arena-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent);
}
.pvp-player-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.pvp-player-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(12,17,22,.86); text-align: center; }
.pvp-player-card small, .pvp-player-card strong, .pvp-player-card span { display: block; }
.pvp-player-card small { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.pvp-player-card strong { margin: 8px 0 5px; font: 850 19px var(--font-display); }
.pvp-player-card span { color: var(--accent); font-weight: 900; letter-spacing: .12em; }
.pvp-versus { align-self: center; color: var(--muted); font: 900 15px var(--font-display); }
.pvp-live-pot { margin: 24px auto 10px; text-align: center; }
.pvp-live-pot small, .pvp-live-pot strong { display: block; }
.pvp-live-pot small { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.pvp-live-pot strong { margin-top: 5px; color: var(--accent); font: 950 clamp(28px, 5vw, 44px) var(--font-display); }
.pvp-live-coin {
  position: relative;
  width: clamp(132px, 25vw, 190px);
  aspect-ratio: 1;
  margin: 22px auto;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.pvp-coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 8px solid #d4a73b;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff2a6, #dcae3f 52%, #8b5a12 100%);
  color: #241600;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.18), 0 18px 35px rgba(0,0,0,.35);
  backface-visibility: hidden;
  font: 950 clamp(52px, 10vw, 86px) var(--font-display);
  text-shadow: 0 2px 0 rgba(255,255,255,.25);
}
.pvp-coin-tails { transform: rotateY(180deg); }
.pvp-live-coin.flipping { animation: pvp-live-flip .68s linear infinite; }
.pvp-live-coin.result-heads { transform: rotateY(0deg); }
.pvp-live-coin.result-tails { transform: rotateY(180deg); }
@keyframes pvp-live-flip {
  0% { transform: rotateY(0deg) translateY(0) rotateZ(0deg); }
  45% { transform: rotateY(540deg) translateY(-20px) rotateZ(8deg); }
  100% { transform: rotateY(1080deg) translateY(0) rotateZ(0deg); }
}
.pvp-live-countdown { text-align: center; color: var(--yellow); font: 850 16px var(--font-display); letter-spacing: .06em; }
.pvp-arena-card .result-line { margin: 12px auto 0; max-width: 620px; text-align: center; }
.pvp-fairness-line { margin-top: 14px; color: var(--muted); font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; overflow-wrap: anywhere; }

.avatar-button.frame-neon-edge, .avatar-button.frame-midnight, .avatar-button.frame-black-card { border-radius: 50%; }
.preview-avatar.frame-neon-edge, .preview-avatar.frame-midnight, .preview-avatar.frame-black-card { border-radius: 50%; }

@media (max-width: 700px) {
  .lottery-single-purchase { grid-template-columns: 1fr; }
  .pvp-player-row { grid-template-columns: 1fr; gap: 10px; }
  .pvp-versus { justify-self: center; }
}


/* Nightshift v2.10: five-minute PVP waiting room */
.pvp-duel-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pvp-live-coin.waiting { animation: pvp-waiting-float 2.4s ease-in-out infinite; filter: saturate(.65) brightness(.82); }
@keyframes pvp-waiting-float {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-8px) rotateY(12deg); }
}
@media (max-width: 700px) { .pvp-duel-actions { width: 100%; justify-content: stretch; } .pvp-duel-actions .button { flex: 1; } }

/* Nightshift v2.14: Neon Eclipse cosmetics and Lottery Draw Theatre */
.cosmetic-preview { position: relative; overflow: hidden; }
.cosmetic-card-collection {
  border-color: rgba(157, 103, 255, .34);
  background:
    linear-gradient(155deg, rgba(117, 72, 255, .075), transparent 38%),
    var(--surface);
}
.cosmetic-card-collection.owned { border-color: rgba(217, 178, 255, .58); }
.cosmetic-collection-tag {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid rgba(196, 151, 255, .38);
  border-radius: 999px;
  background: rgba(9, 8, 20, .78);
  color: #d9b8ff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.title-shadow-player { color: #a98cff; text-shadow: 0 0 9px rgba(117, 72, 255, .4); }
.title-night-runner { color: #77c8ff; box-shadow: inset 0 0 9px rgba(69, 157, 255, .12); }
.title-moonlit { color: #e7e1ff; text-shadow: 0 0 8px rgba(205, 192, 255, .55); }
.title-velvet-ace { color: #ff91dd; box-shadow: inset 0 0 10px rgba(255, 87, 196, .12); }
.title-eclipse-vip {
  color: #f1d7ff;
  border-color: #a866ff;
  background: linear-gradient(90deg, rgba(71, 34, 126, .4), rgba(34, 108, 145, .32), rgba(71, 34, 126, .4));
  background-size: 200% 100%;
  animation: eclipse-title-shift 3.4s linear infinite;
  box-shadow: 0 0 12px rgba(158, 91, 255, .22);
}
.title-nocturne {
  color: #ffffff;
  border-color: rgba(215, 183, 255, .82);
  background: linear-gradient(105deg, rgba(20, 17, 41, .92), rgba(99, 47, 158, .62), rgba(21, 93, 125, .6), rgba(20, 17, 41, .92));
  background-size: 260% 100%;
  animation: eclipse-title-shift 4.2s linear infinite;
  box-shadow: 0 0 16px rgba(122, 82, 255, .34), inset 0 0 9px rgba(255,255,255,.08);
}
@keyframes eclipse-title-shift { to { background-position: -200% 0; } }

.frame-eclipse-ring,
.preview-avatar.frame-eclipse-ring {
  border: 2px solid #9a67ff !important;
  outline: 2px solid rgba(64, 190, 255, .36);
  outline-offset: 3px;
  box-shadow: 0 0 11px rgba(142, 83, 255, .62), 0 0 24px rgba(57, 177, 255, .26);
  animation: eclipse-ring-pulse 2.8s ease-in-out infinite;
}
.frame-afterglow,
.preview-avatar.frame-afterglow {
  border: 2px solid #ff79d5 !important;
  outline: 3px solid rgba(105, 82, 255, .26);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(63, 33, 105, .5), 0 0 20px rgba(255, 93, 205, .46), 0 0 36px rgba(65, 167, 255, .2);
  animation: afterglow-frame-pulse 3.2s ease-in-out infinite;
}
.frame-blackout-elite,
.preview-avatar.frame-blackout-elite {
  border: 2px solid #d8c7ff !important;
  outline: 3px solid #15101f;
  outline-offset: 2px;
  background-image: radial-gradient(circle at 34% 24%, rgba(129, 76, 212, .32), transparent 44%) !important;
  box-shadow: 0 0 0 5px #07070c, 0 0 17px rgba(149, 94, 255, .48), inset 0 0 16px rgba(255,255,255,.12);
  animation: blackout-frame-flare 4.8s ease-in-out infinite;
}
.avatar-button.frame-eclipse-ring,
.avatar-button.frame-afterglow,
.avatar-button.frame-blackout-elite,
.preview-avatar.frame-eclipse-ring,
.preview-avatar.frame-afterglow,
.preview-avatar.frame-blackout-elite,
.profile-avatar.frame-eclipse-ring,
.profile-avatar.frame-afterglow,
.profile-avatar.frame-blackout-elite { border-radius: 50%; }
@keyframes eclipse-ring-pulse {
  0%, 100% { filter: brightness(.92); box-shadow: 0 0 9px rgba(142, 83, 255, .5), 0 0 20px rgba(57, 177, 255, .2); }
  50% { filter: brightness(1.16); box-shadow: 0 0 14px rgba(142, 83, 255, .78), 0 0 32px rgba(57, 177, 255, .36); }
}
@keyframes afterglow-frame-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(63, 33, 105, .46), 0 0 18px rgba(255, 93, 205, .38), 0 0 30px rgba(65, 167, 255, .16); }
  50% { box-shadow: 0 0 0 5px rgba(74, 40, 127, .62), 0 0 27px rgba(255, 93, 205, .6), 0 0 42px rgba(65, 167, 255, .3); }
}
@keyframes blackout-frame-flare {
  0%, 72%, 100% { filter: brightness(.9); }
  82% { filter: brightness(1.28); }
}

.lottery-home-actions { display: grid; gap: 7px; min-width: 142px; }
.lottery-current #lottery-watch-page { margin-left: auto; align-self: center; }
body.lottery-theatre-open { overflow: hidden; }
.lottery-theatre-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 3, 8, .84);
  backdrop-filter: blur(13px);
}
.lottery-theatre-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(199, 157, 255, .5);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 25%, rgba(119, 65, 255, .2), transparent 31%),
    radial-gradient(circle at 16% 86%, rgba(47, 167, 255, .13), transparent 30%),
    linear-gradient(145deg, #111022, #080912 68%, #05060b);
  box-shadow: 0 32px 110px rgba(0,0,0,.64), 0 0 55px rgba(107, 58, 203, .15);
  text-align: center;
}
.lottery-theatre-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .26;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.lottery-theatre-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(8,8,15,.72);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
}
.lottery-theatre-card h2 { margin: 5px 0 12px; font: 950 clamp(28px, 6vw, 48px) var(--font-display); }
.lottery-theatre-meta { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(4,5,10,.42); }
.lottery-theatre-meta span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.lottery-theatre-meta strong { color: var(--yellow); font: 900 15px var(--font-display); }
.lottery-theatre-countdown {
  min-height: 88px;
  display: grid;
  place-items: center;
  margin: 17px auto 4px;
  color: #e7d8ff;
  font: 950 clamp(54px, 13vw, 96px)/1 var(--font-display);
  letter-spacing: -.05em;
  text-shadow: 0 0 16px rgba(155, 89, 255, .8), 0 0 36px rgba(62, 169, 255, .32);
}
.theatre-countdown .lottery-theatre-countdown { animation: theatre-countdown-pulse 1s ease-in-out infinite; }
.lottery-theatre-status { max-width: 590px; min-height: 42px; margin: 10px auto 18px; color: #c8c5d8; line-height: 1.55; }
.lottery-theatre-machine { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(9px, 2vw, 18px); max-width: 570px; margin: 0 auto; }
.lottery-theatre-ball {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(190, 157, 255, .28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 24%, rgba(255,255,255,.18), transparent 18%),
    radial-gradient(circle, #272143, #100d1c 69%);
  color: rgba(255,255,255,.3);
  box-shadow: inset 0 -12px 25px rgba(0,0,0,.35), 0 15px 28px rgba(0,0,0,.3);
  font: 950 clamp(28px, 7vw, 54px) var(--font-display);
  transform: scale(.92);
  transition: transform .42s cubic-bezier(.2,.9,.25,1.25), border-color .35s, color .35s, box-shadow .35s;
}
.theatre-drawing .lottery-theatre-ball:not(.revealed) { animation: lottery-ball-tumble .72s ease-in-out infinite alternate; }
.lottery-theatre-ball.revealed {
  color: #0b0712;
  border-color: #eadcff;
  background:
    radial-gradient(circle at 31% 24%, #fff, rgba(255,255,255,.35) 18%, transparent 19%),
    linear-gradient(145deg, #ede2ff, #aa76ff 48%, #57bcff);
  box-shadow: inset 0 -10px 18px rgba(70, 33, 128, .24), 0 0 22px rgba(152, 91, 255, .7), 0 18px 34px rgba(0,0,0,.38);
  transform: scale(1);
  animation: lottery-number-land .58s cubic-bezier(.16,.9,.25,1.25);
}
.lottery-theatre-result { display: grid; gap: 6px; max-width: 600px; margin: 20px auto 0; padding: 15px 18px; border: 1px solid rgba(181, 137, 255, .36); border-radius: 14px; background: rgba(124, 72, 217, .1); }
.lottery-theatre-result strong { color: #ecdfff; letter-spacing: .12em; }
.lottery-theatre-result span { color: #c9c6d6; }
.lottery-theatre-fairness { max-width: 600px; margin: 16px auto 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.lottery-theatre-ambient span {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(174, 117, 255, .13);
  border-radius: 50%;
  animation: lottery-orbit 14s linear infinite;
}
.lottery-theatre-ambient span:nth-child(1) { left: -120px; top: -90px; }
.lottery-theatre-ambient span:nth-child(2) { right: -110px; bottom: -95px; width: 310px; height: 310px; animation-direction: reverse; animation-duration: 19s; }
.lottery-theatre-ambient span:nth-child(3) { inset: 18% auto auto 42%; width: 170px; height: 170px; animation-duration: 10s; }
.lottery-theatre-burst { position: absolute; inset: 50% auto auto 50%; z-index: 3; width: 1px; height: 1px; pointer-events: none; }
.lottery-theatre-burst i { position: absolute; width: 5px; height: 18px; border-radius: 999px; opacity: 0; background: linear-gradient(#f2e8ff, #7ebfff); transform-origin: 50% 110px; transform: rotate(var(--spark-angle)) translateY(-26px); }
.lottery-theatre-burst.active i { animation: lottery-burst 1.05s ease-out var(--spark-delay) both; }
@keyframes theatre-countdown-pulse { 50% { transform: scale(1.065); filter: brightness(1.2); } }
@keyframes lottery-ball-tumble { to { transform: translateY(-7px) rotate(4deg) scale(.96); filter: brightness(1.15); } }
@keyframes lottery-number-land { 0% { transform: translateY(-24px) scale(.55) rotate(-18deg); opacity: .15; } 100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; } }
@keyframes lottery-orbit { to { transform: rotate(360deg) scale(1.08); } }
@keyframes lottery-burst { 0% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(-30px) scale(.3); } 24% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(-150px) scale(1); } }

@media (max-width: 760px) {
  .lottery-home-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; width: 100%; }
  .lottery-theatre-backdrop { padding: 10px; }
  .lottery-theatre-card { max-height: calc(100vh - 20px); overflow-y: auto; padding: 30px 16px 24px; border-radius: 18px; }
  .lottery-theatre-machine { gap: 7px; }
  .lottery-theatre-status { font-size: 12px; }
  .lottery-current #lottery-watch-page { width: 100%; margin-left: 0; }
}
@media (max-width: 430px) {
  .lottery-home-actions { grid-template-columns: 1fr; }
  .lottery-theatre-meta { display: grid; gap: 3px; }
  .lottery-theatre-machine { gap: 5px; }
  .lottery-theatre-ball { border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .title-eclipse-vip, .title-nocturne,
  .title-polar-pulse, .title-aurora-drift, .title-glacial-current,
  .title-redline, .title-vaultbreaker, .title-velvet-ember,
  .frame-eclipse-ring, .frame-afterglow, .frame-blackout-elite,
  .frame-borealis-halo, .frame-prism-cascade, .frame-zero-horizon,
  .frame-circuit-burn, .frame-ember-shroud, .frame-royal-breaker,
  .lottery-theatre-ambient span, .theatre-countdown .lottery-theatre-countdown,
  .theatre-drawing .lottery-theatre-ball:not(.revealed),
  .lottery-theatre-burst.active i { animation: none !important; }
}
.eclipse-collection-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(178, 126, 255, .4);
  border-radius: 17px;
  background:
    radial-gradient(circle at 84% 50%, rgba(87, 181, 255, .16), transparent 26%),
    linear-gradient(135deg, rgba(81, 41, 145, .22), rgba(11, 10, 22, .96) 54%, rgba(17, 42, 61, .8));
}
.eclipse-collection-banner h3 { margin: 4px 0 8px; font: 950 28px var(--font-display); color: #eadcff; }
.eclipse-collection-banner p:not(.eyebrow) { max-width: 680px; margin: 0; color: #bcb8ca; line-height: 1.6; }
.eclipse-collection-preview { position: relative; min-height: 118px; display: grid; place-items: center; }
.eclipse-collection-preview b { position: relative; z-index: 2; color: white; font: 950 20px/1.05 var(--font-display); letter-spacing: .1em; text-align: center; text-shadow: 0 0 16px rgba(185, 127, 255, .8); }
.eclipse-orb { position: absolute; width: 96px; height: 96px; border-radius: 50%; }
.eclipse-orb-one { background: radial-gradient(circle at 35% 30%, #eee4ff, #9f6cff 38%, #241739 73%); box-shadow: 0 0 35px rgba(156, 94, 255, .55); transform: translateX(-22px); }
.eclipse-orb-two { width: 82px; height: 82px; background: #090910; box-shadow: 0 0 0 2px rgba(110, 194, 255, .44), 0 0 30px rgba(72, 178, 255, .4); transform: translateX(26px); animation: eclipse-preview-drift 4s ease-in-out infinite; }
@keyframes eclipse-preview-drift { 50% { transform: translateX(18px) translateY(-4px); } }
@media (max-width: 680px) { .eclipse-collection-banner { grid-template-columns: 1fr; } .eclipse-collection-preview { min-height: 92px; } }
@media (prefers-reduced-motion: reduce) { .eclipse-orb-two { animation: none; } }


/* Nightshift v2.20: Aurora Drift and Crimson Heist cosmetics */
.collection-showcase-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
}
.cosmetic-feature-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(17, 18, 30, .98), rgba(11, 12, 21, .96));
  box-shadow: 0 10px 22px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.03);
}
.cosmetic-feature-banner h3 { margin: 4px 0 8px; font: 950 28px var(--font-display); }
.cosmetic-feature-banner p:not(.eyebrow) { margin: 0; max-width: 690px; color: #c5c1d2; line-height: 1.6; }
.collection-preview { position: relative; min-height: 118px; display: grid; place-items: center; isolation: isolate; }
.collection-preview b { position: relative; z-index: 2; color: #fff; font: 950 20px/1.05 var(--font-display); letter-spacing: .1em; text-align: center; text-shadow: 0 0 16px rgba(255,255,255,.22); }
.banner-eclipse {
  border-color: rgba(178, 126, 255, .4);
  background:
    radial-gradient(circle at 84% 50%, rgba(87, 181, 255, .16), transparent 26%),
    linear-gradient(135deg, rgba(81, 41, 145, .22), rgba(11, 10, 22, .96) 54%, rgba(17, 42, 61, .8));
}
.banner-eclipse h3 { color: #eadcff; }
.banner-aurora {
  border-color: rgba(97, 237, 255, .34);
  background:
    radial-gradient(circle at 84% 50%, rgba(73, 248, 216, .14), transparent 24%),
    linear-gradient(130deg, rgba(8, 34, 41, .96), rgba(7, 14, 28, .98) 42%, rgba(15, 55, 77, .86));
}
.banner-aurora h3 { color: #dffcff; }
.banner-crimson {
  border-color: rgba(255, 120, 120, .32);
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 140, 76, .15), transparent 24%),
    linear-gradient(135deg, rgba(54, 12, 21, .92), rgba(16, 8, 12, .98) 48%, rgba(58, 27, 13, .88));
}
.banner-crimson h3 { color: #ffe6de; }
.preview-aurora .aurora-ribbon {
  position: absolute;
  width: 120px;
  height: 66px;
  border-radius: 999px;
  filter: blur(1px);
  mix-blend-mode: screen;
}
.aurora-ribbon-one {
  background: linear-gradient(115deg, rgba(114,255,236,.06), rgba(100,255,216,.86), rgba(125,196,255,.1));
  transform: rotate(-18deg) translate(-14px, 0);
  box-shadow: 0 0 30px rgba(82, 248, 211, .25);
  animation: aurora-ribbon-flow 4.4s ease-in-out infinite;
}
.aurora-ribbon-two {
  width: 95px;
  background: linear-gradient(115deg, rgba(153,243,255,.08), rgba(120,183,255,.86), rgba(196,255,250,.1));
  transform: rotate(22deg) translate(22px, -4px);
  box-shadow: 0 0 26px rgba(120, 183, 255, .26);
  animation: aurora-ribbon-flow 5.4s ease-in-out infinite reverse;
}
.preview-crimson .crimson-core {
  position: absolute;
  border-radius: 50%;
}
.crimson-core-one {
  width: 102px;
  height: 102px;
  background: radial-gradient(circle at 36% 34%, #fff2d3, #ff974d 28%, #c53c3c 52%, #1b0910 74%);
  box-shadow: 0 0 34px rgba(255, 107, 41, .38);
}
.crimson-core-two {
  width: 74px;
  height: 74px;
  background: #11060a;
  transform: translateX(22px);
  box-shadow: 0 0 0 2px rgba(255, 209, 111, .36), 0 0 30px rgba(255, 91, 91, .28);
  animation: crimson-preview-breath 4.2s ease-in-out infinite;
}
.title-polar-pulse {
  color: #dcffff;
  border-color: rgba(135, 241, 255, .62);
  background: linear-gradient(90deg, rgba(24, 67, 82, .52), rgba(34, 116, 141, .34), rgba(24, 67, 82, .52));
  box-shadow: 0 0 12px rgba(77, 216, 255, .18), inset 0 0 8px rgba(255,255,255,.04);
}
.title-aurora-drift {
  color: #f0ffff;
  border-color: rgba(141, 244, 232, .62);
  background: linear-gradient(95deg, rgba(11, 52, 58, .76), rgba(20, 95, 94, .76), rgba(30, 95, 147, .72), rgba(11, 52, 58, .76));
  background-size: 220% 100%;
  animation: aurora-title-shift 4.2s linear infinite;
  box-shadow: 0 0 14px rgba(77, 216, 255, .2);
}
.title-glacial-current {
  color: #ffffff;
  border-color: rgba(215, 251, 255, .82);
  background: linear-gradient(100deg, rgba(13, 43, 65, .9), rgba(45, 117, 151, .78), rgba(121, 232, 255, .4), rgba(13, 43, 65, .9));
  background-size: 240% 100%;
  animation: aurora-title-shift 3.1s linear infinite;
  box-shadow: 0 0 16px rgba(110, 213, 255, .35), inset 0 0 9px rgba(255,255,255,.08);
}
.title-redline {
  color: #ffe8e4;
  border-color: rgba(255, 124, 124, .66);
  background: linear-gradient(90deg, rgba(74, 16, 25, .82), rgba(134, 30, 41, .58), rgba(74, 16, 25, .82));
  box-shadow: 0 0 12px rgba(255, 73, 73, .18);
}
.title-vaultbreaker {
  color: #fff3d6;
  border-color: rgba(255, 201, 108, .76);
  background: linear-gradient(100deg, rgba(43, 18, 16, .94), rgba(117, 42, 26, .74), rgba(184, 114, 44, .52), rgba(43, 18, 16, .94));
  background-size: 220% 100%;
  animation: crimson-title-shift 4.6s linear infinite;
  box-shadow: 0 0 14px rgba(255, 172, 75, .2), inset 0 0 8px rgba(255,255,255,.04);
}
.title-velvet-ember {
  color: #fff4f1;
  border-color: rgba(255, 185, 142, .88);
  background: linear-gradient(95deg, rgba(35, 11, 16, .96), rgba(96, 22, 28, .84), rgba(176, 64, 35, .62), rgba(35, 11, 16, .96));
  background-size: 260% 100%;
  animation: crimson-title-shift 3.3s linear infinite;
  box-shadow: 0 0 18px rgba(255, 105, 70, .28), inset 0 0 10px rgba(255,255,255,.06);
}
@keyframes aurora-title-shift { to { background-position: -220% 0; } }
@keyframes crimson-title-shift { to { background-position: -240% 0; } }
.frame-borealis-halo,
.preview-avatar.frame-borealis-halo {
  border: 2px solid #91fff1 !important;
  outline: 3px solid rgba(89, 181, 255, .34);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(10, 53, 60, .55), 0 0 22px rgba(94, 255, 214, .4), 0 0 34px rgba(76, 181, 255, .24);
  animation: borealis-halo-pulse 3.4s ease-in-out infinite;
}
.frame-prism-cascade,
.preview-avatar.frame-prism-cascade {
  border: 2px solid #ddffff !important;
  outline: 3px solid rgba(177, 132, 255, .28);
  outline-offset: 2px;
  background-image: linear-gradient(145deg, rgba(20, 48, 62, .8), rgba(12, 17, 31, .95)) !important;
  box-shadow: 0 0 0 5px rgba(10, 13, 24, .88), 0 0 18px rgba(117, 255, 231, .34), inset 0 0 0 2px rgba(170, 245, 255, .24), inset 0 0 16px rgba(146, 122, 255, .12);
  animation: prism-cascade-shimmer 4.8s linear infinite;
}
.frame-zero-horizon,
.preview-avatar.frame-zero-horizon {
  border: 2px solid #f1feff !important;
  outline: 3px solid rgba(20, 48, 70, .94);
  outline-offset: 2px;
  background-image: radial-gradient(circle at 50% 100%, rgba(97, 243, 255, .24), transparent 38%), linear-gradient(180deg, rgba(22, 44, 61, .65), rgba(8, 9, 17, .96)) !important;
  box-shadow: 0 0 0 5px #060912, 0 0 22px rgba(92, 223, 255, .26), inset 0 0 18px rgba(255,255,255,.07);
  animation: zero-horizon-sweep 5.2s ease-in-out infinite;
}
.frame-circuit-burn,
.preview-avatar.frame-circuit-burn {
  border: 2px solid #ff9b63 !important;
  outline: 3px solid rgba(112, 21, 21, .6);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(47, 11, 13, .78), 0 0 20px rgba(255, 107, 41, .42), 0 0 36px rgba(255, 77, 77, .24);
  animation: circuit-burn-pulse 2.9s ease-in-out infinite;
}
.frame-ember-shroud,
.preview-avatar.frame-ember-shroud {
  border: 2px solid #ffcab5 !important;
  outline: 3px solid rgba(54, 14, 18, .88);
  outline-offset: 2px;
  background-image: radial-gradient(circle at 28% 30%, rgba(255, 124, 84, .22), transparent 28%), linear-gradient(180deg, rgba(66, 14, 18, .64), rgba(14, 6, 8, .96)) !important;
  box-shadow: 0 0 0 5px #0b0608, 0 0 17px rgba(255, 134, 82, .34), inset 0 0 16px rgba(255,255,255,.05);
  animation: ember-shroud-breath 4.2s ease-in-out infinite;
}
.frame-royal-breaker,
.preview-avatar.frame-royal-breaker {
  border: 2px solid #ffe0a2 !important;
  outline: 3px solid #221007;
  outline-offset: 2px;
  background-image: radial-gradient(circle at 72% 20%, rgba(255, 216, 127, .3), transparent 24%), linear-gradient(180deg, rgba(71, 17, 15, .6), rgba(14, 8, 9, .98)) !important;
  box-shadow: 0 0 0 5px #070506, 0 0 24px rgba(255, 180, 77, .34), inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 18px rgba(255, 144, 54, .12);
  animation: royal-breaker-flare 4.6s ease-in-out infinite;
}
.avatar-button.frame-borealis-halo,
.avatar-button.frame-prism-cascade,
.avatar-button.frame-zero-horizon,
.avatar-button.frame-circuit-burn,
.avatar-button.frame-ember-shroud,
.avatar-button.frame-royal-breaker,
.preview-avatar.frame-borealis-halo,
.preview-avatar.frame-prism-cascade,
.preview-avatar.frame-zero-horizon,
.preview-avatar.frame-circuit-burn,
.preview-avatar.frame-ember-shroud,
.preview-avatar.frame-royal-breaker,
.profile-avatar.frame-borealis-halo,
.profile-avatar.frame-prism-cascade,
.profile-avatar.frame-zero-horizon,
.profile-avatar.frame-circuit-burn,
.profile-avatar.frame-ember-shroud,
.profile-avatar.frame-royal-breaker { border-radius: 50%; }
@keyframes borealis-halo-pulse {
  0%, 100% { filter: brightness(.94); box-shadow: 0 0 0 4px rgba(10, 53, 60, .55), 0 0 18px rgba(94, 255, 214, .32), 0 0 28px rgba(76, 181, 255, .18); }
  50% { filter: brightness(1.15); box-shadow: 0 0 0 4px rgba(15, 78, 87, .64), 0 0 28px rgba(94, 255, 214, .52), 0 0 42px rgba(76, 181, 255, .28); }
}
@keyframes prism-cascade-shimmer {
  0%, 100% { filter: hue-rotate(0deg) brightness(.98); }
  50% { filter: hue-rotate(28deg) brightness(1.08); }
}
@keyframes zero-horizon-sweep {
  0%, 100% { filter: brightness(.92); }
  45% { box-shadow: 0 0 0 5px #060912, 0 0 26px rgba(92, 223, 255, .36), inset 0 0 26px rgba(255,255,255,.09); }
}
@keyframes circuit-burn-pulse {
  0%, 100% { filter: brightness(.93); }
  50% { filter: brightness(1.16); box-shadow: 0 0 0 5px rgba(60, 14, 18, .9), 0 0 28px rgba(255, 107, 41, .52), 0 0 46px rgba(255, 77, 77, .3); }
}
@keyframes ember-shroud-breath {
  0%, 100% { filter: brightness(.92); }
  50% { filter: brightness(1.1); box-shadow: 0 0 0 5px #0b0608, 0 0 24px rgba(255, 134, 82, .42), inset 0 0 18px rgba(255,255,255,.08); }
}
@keyframes royal-breaker-flare {
  0%, 70%, 100% { filter: brightness(.94); }
  82% { filter: brightness(1.22); }
}
@keyframes aurora-ribbon-flow { 50% { transform: rotate(-14deg) translate(-8px, -6px); } }
@keyframes crimson-preview-breath { 50% { transform: translateX(18px) scale(1.06); box-shadow: 0 0 0 2px rgba(255, 209, 111, .48), 0 0 40px rgba(255, 91, 91, .34); } }
@media (max-width: 860px) {
  .cosmetic-feature-banner { grid-template-columns: 1fr; }
  .collection-preview { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-ribbon-one, .aurora-ribbon-two, .crimson-core-two { animation: none !important; }
}

@media (max-width: 680px) { .admin-player-live-balance { justify-items: start; min-width: 0; } }

/* v2.15.3 Limbo history hardening: supports both current and pre-v2.15 markup. */
.limbo-history > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.limbo-history > div:first-child > span:first-child {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
}
.limbo-history > div:first-child > small { display: none !important; }

/* =========================================================
   v2.16 — admin referral tracking
   ========================================================= */
.admin-referral-stat-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 18px; }
.admin-subpanel { min-width: 0; display: grid; gap: 0; margin-top: 18px; }
.admin-subpanel + .admin-subpanel { padding-top: 18px; border-top: 1px solid var(--border); }
.admin-referral-search-row .select-input { min-width: 170px; }
.admin-referral-code-link { font-weight: 900; letter-spacing: .05em; color: var(--accent); }
.status-rewarded { border-color: rgba(185,255,102,.5); color: var(--accent); }
.status-void { color: var(--muted-2); border-color: #303943; }
@media (max-width: 1380px) { .admin-referral-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .admin-referral-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-referral-search-row .select-input { min-width: 0; } }

@media (prefers-reduced-motion: reduce) {
  .chat-rain-card::before,
  .chat-rain-topline span::before,
  .chat-rain-progress span,
  .chat-rain-actions .button:not(:disabled) { animation: none !important; }
}


/* =========================================================
   v2.18 — operator maintenance / site shutdown mode
   ========================================================= */
.site-shutdown-banner {
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 86;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 207, 92, .48);
  background: rgba(31, 25, 10, .97);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  color: #f5e3a4;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.site-shutdown-banner strong { color: var(--yellow); font: 800 10px var(--font-display); letter-spacing: .12em; }
.site-shutdown-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 207, 92, .45);
  animation: shutdown-pulse 1.6s ease-out infinite;
}
@keyframes shutdown-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 92, .45); } 70% { box-shadow: 0 0 0 9px rgba(255, 207, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 207, 92, 0); } }

.site-shutdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 112px 24px 30px;
  background:
    linear-gradient(rgba(7, 9, 11, .95), rgba(7, 9, 11, .985)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(185,255,102,.025) 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(185,255,102,.025) 40px);
  backdrop-filter: blur(8px);
}
.site-shutdown-card {
  width: min(720px, 100%);
  border: 1px solid #3d4751;
  border-top: 3px solid var(--yellow);
  border-radius: 22px;
  background: #0e1216;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 16px 18px 0 rgba(0,0,0,.45), 0 0 70px rgba(255,207,92,.055);
  text-align: center;
}
.site-shutdown-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font: 900 28px var(--font-display);
  transform: rotate(-5deg);
}
.site-shutdown-card .eyebrow { color: var(--yellow); margin-bottom: 12px; }
.site-shutdown-card h2 { margin: 0; font: 800 clamp(34px, 6vw, 58px)/1 var(--font-display); letter-spacing: -.03em; }
.site-shutdown-message { max-width: 580px; margin: 22px auto 0; color: #d7dce0; font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-shutdown-status { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 9px; margin: 26px auto 0; border: 1px solid rgba(255,207,92,.34); border-radius: 999px; padding: 9px 13px; color: var(--yellow); background: rgba(255,207,92,.055); font-size: 9px; letter-spacing: .12em; }
.site-shutdown-safety { max-width: 600px; margin: 18px auto 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.site-shutdown-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 28px; }
.site-shutdown-actions .button-primary { background: var(--yellow); border-color: var(--yellow); color: #151006; }

body.site-shutdown-active .topbar-status,
body.site-closed-active .topbar-status { color: var(--yellow); }
body.site-shutdown-active .topbar-status .status-dot,
body.site-closed-active .topbar-status .status-dot { background: var(--yellow); box-shadow: 0 0 12px rgba(255,207,92,.5); }
body.site-shutdown-active .game-rail,
body.site-closed-active .game-rail { top: 130px; }
body.site-shutdown-active .chat-dock,
body.site-closed-active .chat-dock { top: 130px; }
body.site-shutdown-active main { padding-top: 48px; }
body.site-shutdown-active .admin-view { padding-top: 0; }

.admin-shutdown-panel { border-color: rgba(255,207,92,.28); background: linear-gradient(180deg, rgba(255,207,92,.035), var(--surface)); }
.admin-shutdown-panel > label { display: block; margin: 14px 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-shutdown-message-input { width: 100%; min-height: 104px; resize: vertical; line-height: 1.5; }
.admin-shutdown-panel .admin-button-row { margin-top: 12px; }

@media (max-width: 1050px) {
  body.site-shutdown-active .game-rail,
body.site-closed-active .game-rail { top: 130px; }
  .site-shutdown-banner { top: 82px; }
}
@media (max-width: 700px) {
  .site-shutdown-banner { top: 70px; min-height: 56px; padding-inline: 12px; font-size: 10px; }
  .site-shutdown-banner strong { display: none; }
  .site-shutdown-overlay { padding: 142px 14px 20px; }
  .site-shutdown-card { padding: 28px 20px; border-radius: 18px; }
  .site-shutdown-actions { display: grid; grid-template-columns: 1fr; }
  .site-shutdown-actions .button { width: 100%; }
  body.site-shutdown-active .game-rail { top: 126px; }
  body.site-shutdown-active .chat-dock { top: 126px; }
  body.site-shutdown-active main { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-shutdown-live-dot { animation: none; }
}

/* =========================================================
   v2.19 — wheel, Plinko, wallet polish, admin test access
   ========================================================= */

/* Plinko: geometry now matches the 13 server slots exactly. */
.plinko-stage {
  background:
    radial-gradient(circle at 50% 18%, rgba(185,255,102,.06), transparent 34%),
    #0d1217;
}
.plinko-board {
  width: min(780px, 100%);
  height: 500px;
  margin: 16px auto 14px;
  padding: 36px 20px 68px;
  border: 1px solid #27323c;
  border-radius: 20px;
  background: linear-gradient(180deg, #111820 0%, #0b1015 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 40px rgba(0,0,0,.18);
}
.plinko-ball-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.plinko-pegs { height: 386px; padding-top: 8px; }
.peg-row { width: min(94%, calc(112px + var(--peg-count) * 35px)); }
.peg-row span {
  width: 9px;
  height: 9px;
  background: #8a97a3;
  box-shadow: 0 0 0 3px #151c23, 0 0 10px rgba(138,151,163,.08);
}
.plinko-ball {
  position: absolute;
  z-index: 6;
  width: 25px;
  height: 25px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: var(--accent);
  color: #071006;
  font: 900 8px/1 var(--font-display);
  box-shadow: 0 0 0 4px rgba(185,255,102,.08), 0 5px 12px rgba(0,0,0,.45);
  opacity: 0;
  will-change: transform;
}
.plinko-ball.active { opacity: 1; }
.plinko-ball.settled { box-shadow: 0 0 0 7px rgba(185,255,102,.12), 0 0 24px rgba(185,255,102,.22); }
.plinko-slots {
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 48px;
  gap: 4px;
}
.plinko-slots span {
  border-color: #2b3741;
  background: #10171d;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 850;
}
.plinko-slots span.hot { background: rgba(185,255,102,.04); }
.plinko-slots span.landed {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 18px rgba(185,255,102,.28);
}
.plinko-controls {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 112px minmax(170px, auto);
  gap: 10px;
  align-items: stretch;
}
.plinko-ball-count {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1217;
}
.plinko-ball-count > span { color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.plinko-ball-count .select-input { width: 100%; min-height: 30px; padding: 4px 7px; }
.plinko-batch-note { margin: 9px 0 0; color: var(--muted-2); font-size: 9px; text-align: center; }

/* Night Wheel: 20 large visible wedges and a real landing pointer. */
.wheel-wrap { width: min(76vw, 450px); margin: 34px auto 20px; }
.wheel-disc {
  border: 9px solid #303a43;
  box-shadow: 0 0 0 4px #080b0e, 0 18px 44px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.05);
  transition: transform 2.85s cubic-bezier(.08,.68,.08,1);
  will-change: transform;
}
.wheel-disc::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 1;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.wheel-pointer {
  top: -30px;
  width: 74px;
  height: 42px;
  border: 0;
  transform: translateX(-50%);
  display: grid;
  place-items: start center;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.55));
}
.wheel-pointer::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid var(--accent);
}
.wheel-pointer span {
  position: relative;
  z-index: 2;
  min-width: 54px;
  padding: 5px 7px;
  border: 1px solid #49545e;
  border-radius: 999px;
  background: #0a0e12;
  color: var(--accent);
  font: 900 8px/1 var(--font-display);
  letter-spacing: .06em;
  text-align: center;
}
.wheel-segment-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wheel-segment-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  margin: -6px 0 0 -21px;
  color: #071009;
  font: 950 8px/1 var(--font-display);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
  transform: rotate(var(--segment-angle)) translateY(-181px) rotate(90deg);
  transform-origin: center;
}
.wheel-segment-label.miss { color: #d8e0e7; text-shadow: 0 1px 2px #000; font-size: 7px; }
.wheel-center { z-index: 4; inset: 34%; border-width: 4px; box-shadow: 0 0 24px rgba(0,0,0,.38); }
.wheel-visual-note { margin: -3px auto 14px; max-width: 520px; color: var(--muted-2); font-size: 8px; line-height: 1.45; text-align: center; }

/* Wallet cleanup: fewer competing boxes, clearer reading order. */
.wallet-page { max-width: 1180px; }
.wallet-page-heading { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #222b33; }
.wallet-page-heading h2 { letter-spacing: -.025em; }
.wallet-page-chip { background: #0c1116; border-color: #29343d; }
.wallet-layout-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 12px; }
.wallet-guide-panel,
.wallet-status-card,
.wallet-record-panel,
.wallet-primary-action,
.wallet-rakeback-card,
.referral-card {
  border-color: #252f38;
  background: #0f1419;
  box-shadow: none;
}
.wallet-guide-panel { padding: 18px 20px; }
.wallet-step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #222b33; }
.wallet-step {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 17px 14px 8px 0;
  border-top: 0;
  border-right: 1px solid #222b33;
}
.wallet-step:last-child { border-right: 0; padding-right: 0; padding-left: 14px; }
.wallet-step:nth-child(2) { padding-left: 14px; }
.wallet-step .step-number { width: 30px; height: 30px; border-radius: 8px; }
.wallet-step h3 { font-size: 14px; }
.wallet-step p { font-size: 10px; line-height: 1.5; }
.wallet-status-card { padding: 15px; }
.wallet-turnover-card { padding: 18px; border-color: #252f38; background: #0f1419; }
.wallet-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.wallet-code-grid .wallet-promo-card { margin: 0; min-width: 0; padding: 17px; border-color: #252f38; background: #0f1419; }
.wallet-code-grid .wallet-promo-card h3 { font-size: 17px; margin-bottom: 5px; }
.wallet-code-grid .wallet-promo-card p { font-size: 10px; line-height: 1.45; }
.wallet-policy-grid { gap: 8px; margin-top: 12px; }
.wallet-policy-grid .notice-box { padding: 13px 15px; border-color: #222c34; background: #0d1217; }
.wallet-policy-grid .notice-box strong { font-size: 10px; }
.wallet-policy-grid .notice-box p { margin-top: 5px; font-size: 9px; line-height: 1.45; }
.wallet-record-panel { padding: 17px; }
.wallet-record-panel .panel-heading { margin-bottom: 10px; }

.wallet-overview-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); gap: 12px; }
.wallet-summary-grid { gap: 8px; }
.wallet-summary-card { padding: 16px; border-color: #252f38; background: #0f1419; }
.wallet-summary-card strong { font-size: 22px; }
.wallet-action-grid { gap: 12px; margin-top: 12px; }
.withdraw-card { padding: 20px; }
.withdraw-instructions { margin: 0 0 14px; padding: 11px 13px; border: 0; border-left: 2px solid #384550; border-radius: 0 8px 8px 0; background: #0c1116; font-size: 10px; }
.rakeback-card { padding: 20px; }
.rakeback-explainer { font-size: 10px; line-height: 1.5; }
.wallet-records-grid { gap: 12px; margin-top: 12px; }

/* Referral page: make the rules and performance easier to scan. */
#view-referrals .feature-page { max-width: 1100px; }
#view-referrals .referral-grid { gap: 12px; }
#view-referrals .referral-card { padding: 20px; min-height: 190px; }
#view-referrals .referral-card h3 { font-size: 23px; }
#view-referrals .referral-card p { font-size: 10px; line-height: 1.55; }
#view-referrals .referral-stat-grid { margin: 12px 0; gap: 8px; }
#view-referrals .activity-panel { margin-top: 12px; border-color: #252f38; background: #0f1419; }
#view-referrals > .narrow-page > .notice-box { margin-top: 10px; padding: 13px 15px; background: #0d1217; border-color: #252f38; }

/* Admins can test the live game layer while public maintenance remains active. */
body.site-shutdown-admin-bypass .site-shutdown-banner {
  border-bottom-color: rgba(80,214,255,.4);
  background: rgba(9,25,32,.97);
  color: #bdefff;
}
body.site-shutdown-admin-bypass .site-shutdown-banner strong { color: #50d6ff; }
body.site-shutdown-admin-bypass .site-shutdown-live-dot { background: #50d6ff; }

@media (max-width: 900px) {
  .plinko-controls { grid-template-columns: 1fr 100px; }
  .plinko-controls #plinko-drop { grid-column: 1 / -1; }
  .wallet-step-list { grid-template-columns: 1fr; }
  .wallet-step, .wallet-step:nth-child(2), .wallet-step:last-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid #222b33; }
  .wallet-step:last-child { border-bottom: 0; }
  .wallet-code-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .plinko-board { height: 430px; padding-inline: 4px; }
  .plinko-pegs { height: 326px; }
  .plinko-controls { grid-template-columns: 1fr; }
  .plinko-controls #plinko-drop { grid-column: auto; }
  .wheel-wrap { width: min(88vw, 360px); }
  .wheel-segment-label { transform: rotate(var(--segment-angle)) translateY(-143px) rotate(90deg); font-size: 6px; }
  .wallet-overview-grid, .wallet-action-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .plinko-ball, .wheel-disc, .wheel-center { transition-duration: .01ms !important; }
}


/* Nightshift v2.22 — outcome-accurate European roulette */
.roulette-stage { overflow: hidden; }
.roulette-wheel-wrap {
  position: relative;
  width: min(390px, 82vw);
  aspect-ratio: 1;
  margin: 18px auto 12px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.38));
}
.roulette-wheel {
  --roulette-wheel-rotation: 0deg;
  position: absolute;
  inset: 4%;
  border: 10px solid #242d34;
  border-radius: 50%;
  transform: rotate(var(--roulette-wheel-rotation));
  box-shadow: inset 0 0 0 5px #9b7b3f, inset 0 0 0 11px #11171b, 0 0 0 2px #090d10;
  will-change: transform;
}
.roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1b242a 0 56%, #0a0f13 57% 100%);
  box-shadow: 0 0 0 6px #a17e3a, 0 0 0 10px #1e272d;
  z-index: 2;
}
.roulette-inner-ring {
  position: absolute;
  inset: 17%;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(0,0,0,.68);
  z-index: 1;
}
.roulette-pocket-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.roulette-pocket-label {
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  font: 900 8px var(--font-display);
  line-height: 1;
  transform: rotate(var(--pocket-angle)) translateY(calc(-1 * min(156px, 33vw))) rotate(90deg);
  transform-origin: 10px 10px;
  text-shadow: 0 1px 2px #000;
}
.roulette-pocket-label.roulette-red { background: rgba(165,43,54,.82); }
.roulette-pocket-label.roulette-black { background: rgba(8,12,15,.78); }
.roulette-pocket-label.roulette-green { background: rgba(23,119,72,.9); }
.roulette-wheel-center {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  align-content: center;
  z-index: 5;
  border: 1px solid #3e4a52;
  border-radius: 50%;
  background: radial-gradient(circle, #1d272e, #090e12 70%);
  box-shadow: 0 0 0 5px #161e23, inset 0 0 22px rgba(0,0,0,.7);
  color: #fff;
}
.roulette-wheel-center small { color: #7f8e99; font: 800 7px var(--font-display); letter-spacing: .12em; }
.roulette-wheel-center strong { margin-top: 3px; font: 950 26px var(--font-display); color: var(--accent); }
.roulette-ball-orbit {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  transform: rotate(0deg);
  will-change: transform;
}
.roulette-result-ball {
  position: absolute;
  left: calc(50% - 7px);
  top: 4px;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: #eef2f4 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.8), 0 0 8px rgba(255,255,255,.45);
  font-size: 0;
}
.roulette-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid var(--accent);
  z-index: 12;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.7));
}
.roulette-visual-note { margin: 0 auto 15px; max-width: 520px; text-align: center; color: #74818c; font-size: 9px; }

/* Night Points store type separation */
.cosmetic-store-sections { display: grid; gap: 20px; }
.cosmetic-store-section { padding: 15px; border: 1px solid #26323b; border-radius: 14px; background: rgba(9,14,18,.72); }
.cosmetic-store-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid #26313a; }
.cosmetic-store-heading h3 { margin: 2px 0 4px; font: 900 20px var(--font-display); }
.cosmetic-store-heading p { margin: 0; color: #788590; font-size: 9px; }
.cosmetic-store-heading > span { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #34414a; border-radius: 999px; color: #aab4bc; font: 800 8px var(--font-display); }
.cosmetic-store-frame { border-color: #33404a; }

/* Admin House P/L reset */
.admin-pnl-reset-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: rgba(224,87,87,.34); }
.admin-pnl-reset-box p { margin: 5px 0 0; max-width: 760px; color: #818e98; font-size: 9px; line-height: 1.55; }
.admin-pnl-reset-box .button { flex: 0 0 auto; }

@media (max-width: 720px) {
  .roulette-wheel-wrap { width: min(330px, 86vw); }
  .roulette-pocket-label { transform: rotate(var(--pocket-angle)) translateY(calc(-1 * min(132px, 34vw))) rotate(90deg); font-size: 7px; }
  .cosmetic-store-heading, .admin-pnl-reset-box { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .roulette-wheel { transition-duration: .01ms !important; }
}


/* Nightshift v2.22.2 — Baccarat/Roulette hotfix.
   Keep roulette center rings concentric and show the actual European pocket numbers. */
.roulette-pocket-label {
  left: calc(50% - 13px);
  top: calc(50% - 15px);
  width: 26px;
  height: 30px;
  border-radius: 3px;
  background: transparent !important;
  transform: rotate(var(--pocket-angle)) translateY(calc(-1 * min(154px, 32.5vw)));
  transform-origin: 13px 15px;
  text-shadow: 0 1px 3px #000, 0 0 2px #000;
}
.roulette-pocket-label b {
  width: 24px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.16);
  color: #fff;
  font: 950 10px/1 var(--font-display);
}
.roulette-pocket-label.landed-pocket b {
  box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(255,255,255,.5);
  color: var(--accent);
}
@media (max-width: 720px) {
  .roulette-pocket-label {
    left: calc(50% - 11px);
    top: calc(50% - 13px);
    width: 22px;
    height: 26px;
    transform: rotate(var(--pocket-angle)) translateY(calc(-1 * min(128px, 33vw)));
    transform-origin: 11px 13px;
  }
  .roulette-pocket-label b { width: 20px; height: 25px; font-size: 8px; }
}


/* =========================================================
   v2.22.4 — compact withdrawal layout
   ========================================================= */
.wallet-page-withdraw { max-width: 1060px; }
.withdraw-page-heading { margin-bottom: 16px; padding-bottom: 14px; }
.withdraw-page-heading > div { max-width: 690px; }
.withdraw-page-heading .page-lead { max-width: 650px; font-size: 12px; line-height: 1.55; }
.withdraw-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 10px;
  align-items: stretch;
}
.withdraw-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.withdraw-balance-grid .wallet-summary-card { min-height: 0; padding: 17px 18px; }
.withdraw-balance-grid .wallet-summary-card strong { margin: 7px 0 4px; font-size: 24px; }
.withdraw-balance-grid .wallet-summary-card span { font-size: 9px; }
.withdraw-balance-card span b { color: #aeb8c2; font-weight: 800; }
.withdraw-available-card strong { color: var(--accent); }
.withdraw-turnover-card { padding: 16px 18px; min-height: 0; }
.withdraw-turnover-card .panel-heading { margin-bottom: 8px; }
.withdraw-turnover-card .panel-heading h3 { font-size: 16px; }
.withdraw-turnover-card > p { margin: 5px 0 10px; font-size: 10px; line-height: 1.45; }
.withdraw-turnover-card .turnover-stats { margin-top: 9px; gap: 8px; font-size: 9px; }
.withdraw-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}
.withdraw-request-card,
.withdraw-rakeback-card { margin: 0; height: 100%; }
.withdraw-request-card { padding: 18px 20px; }
.withdraw-request-card .withdraw-card-heading { margin-bottom: 10px; }
.withdraw-request-card .withdraw-card-heading h3 { font-size: 21px; }
.withdraw-request-card .withdraw-amount-row { margin: 12px 0 12px; }
.withdraw-request-card .withdraw-amount-row > label,
.withdraw-request-card > label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.withdraw-request-card .wager-input { min-height: 52px; }
.withdraw-request-card .wager-input input { font-size: 19px; }
.withdraw-request-card .field-help { margin: 7px 0 12px; font-size: 9px; }
.optional-label { color: var(--muted-2); font-weight: 600; letter-spacing: 0; text-transform: none; }
.withdraw-compact-rule { margin: 10px 0 0; color: var(--muted-2); font-size: 9px; text-align: center; }
.withdraw-rakeback-card { padding: 18px; }
.withdraw-rakeback-card .panel-heading { margin-bottom: 10px; }
.withdraw-rakeback-card .panel-heading h3 { font-size: 18px; }
.withdraw-rakeback-stats { gap: 6px; margin: 10px 0 12px; }
.withdraw-rakeback-stats article { padding: 11px 10px; }
.withdraw-rakeback-stats article strong { font-size: 15px; }
.withdraw-rakeback-stats article span { font-size: 8px; }
.withdraw-rakeback-card .rakeback-tier-progress { margin: 10px 0 12px; }
.withdraw-rakeback-card .rakeback-tier-progress > div:first-child { font-size: 8px; }
.withdraw-records-grid { gap: 10px; margin-top: 10px; }
.withdraw-records-grid .wallet-record-panel { padding: 15px 16px; }
.withdraw-records-grid .panel-heading h3 { font-size: 16px; }
.withdrawal-history-panel,
.withdrawal-receipt-panel { margin-top: 0; }
.withdraw-policy-strip {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid #222c34;
  border-radius: 10px;
  background: #0d1217;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.45;
}
.withdraw-policy-strip strong { flex: 0 0 auto; color: #aeb8c2; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .withdraw-overview-grid,
  .withdraw-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .withdraw-balance-grid { grid-template-columns: 1fr; }
  .withdraw-policy-strip { display: grid; gap: 4px; }
}


/* Nightshift v2.22.5 — compact deposit guide proportions.
   Keep the three-step card sized to its own content instead of stretching
   to the taller worker/turnover column beside it. */
.wallet-page-deposit .wallet-layout-grid {
  align-items: start;
}
.wallet-page-deposit .wallet-guide-panel {
  align-self: start;
  height: auto;
  min-height: 0;
}
.wallet-page-deposit .wallet-guide-panel .panel-heading {
  margin-bottom: 10px;
}
.wallet-page-deposit .wallet-step-list {
  align-items: start;
}
.wallet-page-deposit .wallet-step {
  align-content: start;
  min-height: 0;
  padding-bottom: 4px;
}


/* Nightshift v2.22.6 - deposit guide readability patch */
.wallet-page-deposit .wallet-layout-grid {
  align-items: stretch;
}

.wallet-page-deposit .wallet-guide-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 24px 26px;
}

.wallet-page-deposit .wallet-guide-panel .panel-heading {
  flex: 0 0 auto;
  gap: 18px;
  margin-bottom: 16px;
}

.wallet-page-deposit .wallet-guide-panel .panel-heading .eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
}

.wallet-page-deposit .wallet-guide-panel .panel-heading h3 {
  font-size: 27px;
  line-height: 1.14;
}

.wallet-page-deposit .wallet-guide-panel .wallet-panel-index {
  padding: 9px 12px;
  font-size: 10px;
}

.wallet-page-deposit .wallet-step-list {
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
}

.wallet-page-deposit .wallet-step {
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: center;
  gap: 14px;
  min-height: 100%;
  padding: 24px 20px 24px 0;
}

.wallet-page-deposit .wallet-step:nth-child(2) {
  padding-left: 20px;
}

.wallet-page-deposit .wallet-step:last-child {
  padding-right: 0;
  padding-left: 20px;
}

.wallet-page-deposit .wallet-step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 12px;
}

.wallet-page-deposit .wallet-step h3 {
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.25;
}

.wallet-page-deposit .wallet-step p {
  font-size: 14px;
  line-height: 1.62;
}

.wallet-page-deposit .wallet-step .deposit-keyword {
  font-size: 14px;
}

@media (max-width: 900px) {
  .wallet-page-deposit .wallet-guide-panel {
    height: auto;
    min-height: 0;
    padding: 22px;
  }

  .wallet-page-deposit .wallet-step-list {
    flex: 0 0 auto;
  }

  .wallet-page-deposit .wallet-step,
  .wallet-page-deposit .wallet-step:nth-child(2),
  .wallet-page-deposit .wallet-step:last-child {
    align-content: start;
    min-height: 0;
    padding: 20px 0;
  }

  .wallet-page-deposit .wallet-step h3 {
    font-size: 18px;
  }

  .wallet-page-deposit .wallet-step p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .wallet-page-deposit .wallet-guide-panel {
    padding: 19px;
  }

  .wallet-page-deposit .wallet-guide-panel .panel-heading h3 {
    font-size: 23px;
  }

  .wallet-page-deposit .wallet-guide-panel .panel-heading .eyebrow {
    font-size: 10px;
  }

  .wallet-page-deposit .wallet-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .wallet-page-deposit .wallet-step h3 {
    font-size: 17px;
  }

  .wallet-page-deposit .wallet-step p {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Nightshift v2.22.7 - live RTP control */
.admin-rtp-panel { overflow: hidden; }
.admin-rtp-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 16px;
}
.admin-rtp-banner > div {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #26313a;
  border-radius: 10px;
  background: #0b1116;
}
.admin-rtp-banner small,
.admin-rtp-banner strong,
.admin-rtp-banner span { display: block; }
.admin-rtp-banner small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}
.admin-rtp-banner strong {
  margin: 7px 0 5px;
  color: var(--accent);
  font: 850 18px/1.05 var(--font-display);
}
.admin-rtp-banner span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.admin-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.admin-rtp-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #27323b;
  border-radius: 11px;
  background: linear-gradient(180deg, #0d1318 0%, #0a0f13 100%);
}
.admin-rtp-card.overridden {
  border-color: rgba(185,255,102,.32);
  box-shadow: inset 0 0 0 1px rgba(185,255,102,.035);
}
.admin-rtp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.admin-rtp-card-head h4 {
  margin: 0;
  font: 850 15px/1.2 var(--font-display);
}
.admin-rtp-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.admin-rtp-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #35414b;
  border-radius: 999px;
  color: var(--muted);
  background: #111820;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.admin-rtp-card.overridden .admin-rtp-state {
  color: var(--accent);
  border-color: rgba(185,255,102,.32);
  background: rgba(185,255,102,.055);
}
.admin-rtp-current {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #202831;
}
.admin-rtp-current > div small,
.admin-rtp-current > div strong { display: block; }
.admin-rtp-current small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
}
.admin-rtp-current strong {
  margin-top: 5px;
  font: 900 24px/1 var(--font-display);
}
.admin-rtp-edge {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.admin-rtp-volume {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 12px;
}
.admin-rtp-volume > div {
  padding: 9px 10px;
  border: 1px solid #202831;
  border-radius: 8px;
  background: rgba(255,255,255,.012);
}
.admin-rtp-volume small, .admin-rtp-volume strong { display:block; }
.admin-rtp-volume small { color:var(--muted-2); font-size:7px; font-weight:850; letter-spacing:.08em; }
.admin-rtp-volume strong { margin-top:4px; font-size:10px; }
.admin-rtp-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 11px;
  align-items: center;
}
.admin-rtp-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.admin-rtp-number-wrap {
  position: relative;
}
.admin-rtp-number {
  width: 100%;
  min-height: 38px;
  padding-right: 25px;
  text-align: right;
  font-weight: 800;
}
.admin-rtp-number-wrap::after {
  content: "%";
  position: absolute;
  right: 9px;
  top: 50%;
  color: var(--muted-2);
  font-size: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}
.admin-rtp-scale {
  display: flex;
  justify-content: space-between;
  margin: 5px 103px 0 0;
  color: var(--muted-2);
  font-size: 8px;
}
.admin-rtp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
}
.admin-rtp-actions .button { min-height: 34px; padding: 7px 11px; }
.admin-rtp-default-copy {
  min-height: 28px;
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.45;
}
.admin-rtp-info {
  margin-top: 13px;
  padding: 13px 14px;
  border: 1px solid #26313a;
  border-radius: 10px;
  background: #0a1015;
}
.admin-rtp-info strong { font-size: 11px; }
.admin-rtp-info p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 1100px) {
  .admin-rtp-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .admin-rtp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .admin-rtp-banner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-rtp-card { padding: 13px; }
  .admin-rtp-input-row { grid-template-columns: 1fr 88px; gap: 8px; }
  .admin-rtp-scale { margin-right: 96px; }
  .admin-rtp-current strong { font-size: 21px; }
}

.admin-rtp-heading-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width: 700px) { .admin-rtp-heading-actions { width:100%; justify-content:flex-start; } }


/* Nightshift v2.22.8 - mobile deposit repair + live fairness RTP disclosure */
.fairness-rtp-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 10px;
}
.fairness-rtp-heading h3 { margin: 4px 0 0; font: 800 24px/1.15 var(--font-display); }
.fairness-live-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #2b3943;
  border-radius: 999px;
  padding: 8px 11px;
  background: #0d1419;
  color: var(--muted);
  font: 900 9px/1 var(--font-display);
  letter-spacing: .12em;
}
.fairness-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(177,255,96,.08); }
.fairness-rtp-table { overflow: hidden; border-radius: 12px; }
.fairness-rtp-table > div { align-items: center; }
.fairness-rtp-game { display: grid; gap: 3px; min-width: 0; }
.fairness-rtp-game > span { color: var(--text); font-weight: 800; }
.fairness-rtp-game small { color: var(--muted-2); font-size: 9px; line-height: 1.4; }
.fairness-rtp-values { display: grid; gap: 3px; min-width: 142px; text-align: right; }
.fairness-rtp-values strong { color: var(--accent); font: 800 14px/1.2 var(--font-display); }
.fairness-rtp-values span { color: var(--muted); font-size: 10px; }
.fairness-rtp-mixed { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; color: var(--muted); font-size: 10px; }
.fairness-rtp-mixed span { color: var(--muted); }
.fairness-rtp-mixed strong { margin-left: 3px; color: var(--text); }
.fairness-rtp-loading { color: var(--muted); }

/* Desktop deposit proportions from v2.22.6 are intentionally untouched.
   Below 900px, fully reset the stretched desktop guide so it cannot overlap,
   clip, or cover adjacent wallet content on narrow screens. */
@media (max-width: 900px) {
  .wallet-page-deposit,
  .wallet-page-deposit .wallet-layout-grid,
  .wallet-page-deposit .wallet-guide-panel,
  .wallet-page-deposit .wallet-side-stack,
  .wallet-page-deposit .wallet-code-grid,
  .wallet-page-deposit .wallet-step-list,
  .wallet-page-deposit .wallet-step,
  .wallet-page-deposit .wallet-step > div:last-child {
    min-width: 0;
    max-width: 100%;
  }
  .wallet-page-deposit .wallet-layout-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .wallet-page-deposit .wallet-guide-panel {
    align-self: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 21px;
  }
  .wallet-page-deposit .wallet-guide-panel .panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 13px;
  }
  .wallet-page-deposit .wallet-guide-panel .panel-heading > div { min-width: 0; }
  .wallet-page-deposit .wallet-guide-panel .panel-heading h3 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }
  .wallet-page-deposit .wallet-guide-panel .wallet-panel-index { align-self: start; white-space: nowrap; }
  .wallet-page-deposit .wallet-step-list {
    display: block;
    width: 100%;
    height: auto;
    border-top: 1px solid #222b33;
  }
  .wallet-page-deposit .wallet-step,
  .wallet-page-deposit .wallet-step:nth-child(2),
  .wallet-page-deposit .wallet-step:last-child {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: 13px;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 19px 0;
    border-right: 0;
    border-bottom: 1px solid #222b33;
    overflow: visible;
  }
  .wallet-page-deposit .wallet-step:last-child { border-bottom: 0; padding-bottom: 4px; }
  .wallet-page-deposit .wallet-step .step-number { width: 38px; height: 38px; }
  .wallet-page-deposit .wallet-step h3 { margin: 1px 0 7px; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
  .wallet-page-deposit .wallet-step p { font-size: 14px; line-height: 1.58; overflow-wrap: anywhere; }
  .wallet-page-deposit .wallet-step strong,
  .wallet-page-deposit .wallet-step code,
  .wallet-page-deposit #operator-display { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
  .wallet-page-deposit .wallet-step .deposit-keyword { font-size: 13px; }
}

@media (max-width: 620px) {
  .fairness-rtp-heading { align-items: flex-start; }
  .fairness-rtp-heading h3 { font-size: 22px; }
  .fairness-rtp-table > .fairness-rtp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .fairness-rtp-values { min-width: 0; text-align: right; }
  .fairness-rtp-mixed { grid-column: 1 / -1; justify-content: flex-start; padding-top: 3px; }
}

@media (max-width: 600px) {
  .wallet-page-deposit .wallet-guide-panel { padding: 18px; }
  .wallet-page-deposit .wallet-guide-panel .panel-heading h3 { font-size: 22px; }
  .wallet-page-deposit .wallet-step,
  .wallet-page-deposit .wallet-step:nth-child(2),
  .wallet-page-deposit .wallet-step:last-child { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 17px 0; }
  .wallet-page-deposit .wallet-step:last-child { padding-bottom: 2px; }
  .wallet-page-deposit .wallet-step .step-number { width: 36px; height: 36px; font-size: 11px; }
  .wallet-page-deposit .wallet-step h3 { font-size: 17px; }
  .wallet-page-deposit .wallet-step p { font-size: 14px; line-height: 1.55; }
}

@media (max-width: 380px) {
  .wallet-page-deposit .wallet-guide-panel { padding: 16px; }
  .wallet-page-deposit .wallet-guide-panel .panel-heading { grid-template-columns: minmax(0, 1fr); }
  .wallet-page-deposit .wallet-guide-panel .wallet-panel-index { justify-self: start; }
  .wallet-page-deposit .wallet-step,
  .wallet-page-deposit .wallet-step:nth-child(2),
  .wallet-page-deposit .wallet-step:last-child { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .wallet-page-deposit .wallet-step .step-number { width: 34px; height: 34px; }
  .fairness-rtp-heading { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .fairness-live-badge { justify-self: start; }
  .fairness-rtp-table > .fairness-rtp-row { grid-template-columns: 1fr; }
  .fairness-rtp-values { text-align: left; }
}


/* Nightshift v2.22.9 - hardened live Fairness RTP table */
#view-fairness #fairness-rtp-table {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid #252f38;
  background: #0d1217;
}
#view-fairness .fairness-update-pending { display: none !important; }
#view-fairness #fairness-rtp-table.fairness-values-pending { display: block !important; }
#view-fairness .fairness-rtp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid #222b33;
}
#view-fairness .fairness-rtp-row:last-child { border-bottom: 0; }
#view-fairness .fairness-rtp-loading {
  display: grid;
  gap: 5px;
  padding: 16px;
}
#view-fairness .fairness-rtp-loading span { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
#view-fairness .fairness-rtp-loading strong { color: var(--text); font-size: 13px; }
@media (max-width: 620px) {
  #view-fairness .fairness-rtp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px; }
}
@media (max-width: 380px) {
  #view-fairness .fairness-rtp-row { grid-template-columns: 1fr; }
}


/* Nightshift v2.22.11 - Crash visual flight-path refresh */
.crash-board {
  background:
    radial-gradient(circle at 54% 38%, rgba(185,255,102,.045), transparent 34%),
    linear-gradient(180deg, #0f1419 0%, #0b0f13 100%);
  border-color: #27313a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018), inset 0 -40px 80px rgba(0,0,0,.16);
  transition: border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.crash-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.012) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(0,0,0,.22) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  opacity: .42;
}
.crash-board canvas { position: relative; z-index: 0; }
.crash-value {
  z-index: 2;
  place-items: center;
  transform: translateY(-8px);
  font-size: clamp(66px, 8vw, 126px);
  letter-spacing: -.045em;
  text-shadow: 0 0 18px rgba(185,255,102,.10), 0 0 48px rgba(185,255,102,.08);
  transition: color .22s ease, text-shadow .22s ease, opacity .22s ease;
}
.crash-subline {
  z-index: 3;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 36px);
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(111,126,139,.20);
  border-radius: 999px;
  background: rgba(8,12,15,.72);
  box-shadow: 0 7px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(5px);
  line-height: 1.35;
}
.crash-board[data-crash-state="launching"] .crash-value {
  opacity: .82;
  text-shadow: 0 0 24px rgba(185,255,102,.10);
}
.crash-board[data-crash-state="running"] .crash-value { animation: crash-value-breathe 1.35s ease-in-out infinite; }
.crash-board[data-crash-state="cashed"] {
  border-color: rgba(185,255,102,.34);
  box-shadow: inset 0 0 52px rgba(185,255,102,.035), inset 0 -40px 80px rgba(0,0,0,.16);
}
.crash-board[data-crash-state="crashed"] {
  border-color: rgba(255,101,119,.52);
  box-shadow: inset 0 0 70px rgba(255,101,119,.06), inset 0 -40px 80px rgba(0,0,0,.18);
  animation: crash-board-impact .52s ease-out 1;
}
.crash-board[data-crash-state="crashed"] .crash-value {
  color: #ff6577;
  text-shadow: 0 0 20px rgba(255,101,119,.13), 0 0 52px rgba(255,101,119,.08);
}
@keyframes crash-value-breathe {
  0%, 100% { transform: translateY(-8px) scale(1); }
  50% { transform: translateY(-8px) scale(1.012); }
}
@keyframes crash-board-impact {
  0% { box-shadow: inset 0 0 0 rgba(255,101,119,0), inset 0 -40px 80px rgba(0,0,0,.18); }
  32% { box-shadow: inset 0 0 105px rgba(255,101,119,.11), inset 0 -40px 80px rgba(0,0,0,.18); }
  100% { box-shadow: inset 0 0 70px rgba(255,101,119,.06), inset 0 -40px 80px rgba(0,0,0,.18); }
}
@media (max-width: 600px) {
  .crash-board::before { background-size: 34px 34px, 34px 34px, auto; }
  .crash-value { transform: translateY(-5px); font-size: clamp(58px, 18vw, 86px); }
  .crash-subline { bottom: 14px; max-width: calc(100% - 24px); font-size: 11px; white-space: normal; text-align: center; }
  @keyframes crash-value-breathe {
    0%, 100% { transform: translateY(-5px) scale(1); }
    50% { transform: translateY(-5px) scale(1.01); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .crash-board[data-crash-state="running"] .crash-value,
  .crash-board[data-crash-state="crashed"] { animation: none; }
}


/* =========================================================
   v2.22.16 — weekly live deposit log
   Weeks roll Tuesday 14:00 TCT (UTC)
   ========================================================= */
.admin-deposit-log-explainer { margin-bottom: 14px; }
.admin-deposit-log-wrap { display: grid; gap: 12px; min-width: 0; }
.admin-deposit-week {
  overflow: hidden;
  border: 1px solid #26313c;
  border-radius: 13px;
  background: #0b0f14;
}
.admin-deposit-week.history.week-odd { background: #0d1218; }
.admin-deposit-week.current {
  border-color: rgba(185,255,102,.42);
  box-shadow: inset 3px 0 rgba(185,255,102,.78);
}
.admin-deposit-week > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: rgba(255,255,255,.014);
}
.admin-deposit-week > summary::-webkit-details-marker { display: none; }
.admin-deposit-week > summary:hover { background: rgba(255,255,255,.028); }
.admin-deposit-week.current > summary { background: rgba(185,255,102,.035); }
.admin-deposit-week-heading { min-width: 0; }
.admin-deposit-week-heading span,
.admin-deposit-week-heading strong,
.admin-deposit-week-heading small { display: block; }
.admin-deposit-week-kicker {
  margin-bottom: 5px;
  color: #8f9baa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}
.admin-deposit-week.current .admin-deposit-week-kicker { color: var(--accent); }
.admin-deposit-week-heading strong {
  color: #e3e9ef;
  font-size: 12px;
  line-height: 1.4;
}
.admin-deposit-week-heading small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}
.admin-deposit-week-stats {
  display: grid;
  grid-template-columns: auto auto 22px;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #8f9baa;
  font-size: 10px;
  white-space: nowrap;
}
.admin-deposit-week-stats strong { color: var(--accent); font-size: 13px; }
.admin-deposit-week-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8793a0;
  font-size: 17px;
  transition: transform .18s ease;
}
.admin-deposit-week[open] .admin-deposit-week-chevron { transform: rotate(180deg); }
.admin-deposit-week-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid #202832;
}
.admin-deposit-week-table { min-width: 560px; }
.admin-deposit-week-table th { position: static; }
.admin-deposit-week-table td:last-child,
.admin-deposit-week-table th:last-child { text-align: right; }
.admin-deposit-week-table tbody tr:nth-child(even) { background: rgba(255,255,255,.009); }
@media (max-width: 720px) {
  .admin-deposit-week > summary { align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px 14px; }
  .admin-deposit-week-stats { width: 100%; grid-template-columns: auto auto 22px; justify-content: space-between; }
  .admin-deposit-week-heading strong { font-size: 11px; }
}

/* =========================================================
   v2.22.17 — weekly deposit / paid-withdrawal cashflow
   ========================================================= */
.admin-deposit-week-finance {
  display: grid;
  grid-template-columns: minmax(108px, auto) 14px minmax(108px, auto) 14px minmax(118px, auto) 24px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.admin-week-finance-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #26313c;
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.admin-week-finance-stat small {
  color: #7f8b98;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
}
.admin-week-finance-stat strong {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-week-finance-stat.deposit {
  border-color: rgba(185,255,102,.18);
  background: rgba(185,255,102,.035);
}
.admin-week-finance-stat.deposit strong,
.admin-week-amount.deposit strong { color: #b9ff66; }
.admin-week-finance-stat.withdrawal {
  border-color: rgba(255,105,105,.18);
  background: rgba(255,105,105,.035);
}
.admin-week-finance-stat.withdrawal strong,
.admin-week-amount.withdrawal strong { color: #ff7777; }
.admin-week-finance-stat.net {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.admin-week-finance-stat.net.positive {
  border-color: rgba(185,255,102,.34);
  background: rgba(185,255,102,.065);
}
.admin-week-finance-stat.net.positive strong { color: #b9ff66; }
.admin-week-finance-stat.net.negative {
  border-color: rgba(255,105,105,.34);
  background: rgba(255,105,105,.065);
}
.admin-week-finance-stat.net.negative strong { color: #ff7777; }
.admin-week-finance-stat.net.neutral strong { color: #d7dee6; }
.admin-week-finance-operator {
  color: #52606d;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.admin-deposit-week-ledgers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #202832;
  background: rgba(0,0,0,.08);
}
.admin-deposit-week-ledger {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #222c36;
  border-radius: 10px;
  background: #090d12;
}
.admin-deposit-week-ledger.deposit { border-top-color: rgba(185,255,102,.35); }
.admin-deposit-week-ledger.withdrawal { border-top-color: rgba(255,105,105,.35); }
.admin-deposit-week-ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid #202832;
  background: rgba(255,255,255,.014);
}
.admin-deposit-week-ledger-heading div { min-width: 0; }
.admin-deposit-week-ledger-heading small,
.admin-deposit-week-ledger-heading span { display: block; }
.admin-deposit-week-ledger-heading small {
  color: #9ba7b4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.admin-deposit-week-ledger-heading span {
  margin-top: 3px;
  color: #667382;
  font-size: 9px;
}
.admin-deposit-week-ledger-heading strong {
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
}
.admin-deposit-week-ledger.deposit .admin-deposit-week-ledger-heading strong { color: #b9ff66; }
.admin-deposit-week-ledger.withdrawal .admin-deposit-week-ledger-heading strong { color: #ff7777; }
.admin-deposit-week-ledger .admin-deposit-week-table-wrap { border-top: 0; }
.admin-deposit-week-ledger .admin-deposit-week-table { min-width: 500px; }
.admin-deposit-week-empty {
  padding: 18px 12px;
  color: #65717f;
  font-size: 10px;
  text-align: center;
}
.admin-week-amount { text-align: right; }

@media (max-width: 1120px) {
  .admin-deposit-week > summary { align-items: flex-start; flex-direction: column; gap: 12px; }
  .admin-deposit-week-finance {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1.08fr) 22px;
  }
}
@media (max-width: 820px) {
  .admin-deposit-week-ledgers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .admin-deposit-week-finance {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 22px;
    gap: 7px;
  }
  .admin-week-finance-operator { display: none; }
  .admin-week-finance-stat.net { grid-column: 1 / 3; }
  .admin-deposit-week-chevron { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .admin-week-finance-stat { padding: 8px 9px; }
  .admin-week-finance-stat strong { font-size: 12px; }
  .admin-deposit-week-ledgers { padding: 9px; }
}

/* =========================================================
   v2.22.19 — player tips on the Deposit page
   ========================================================= */
.wallet-tip-panel {
  margin-top: 12px;
  padding: 19px 20px;
  border-color: #252f38;
  background: #0f1419;
}
.wallet-tip-panel .panel-heading { margin-bottom: 8px; }
.wallet-tip-panel .panel-heading h3 { font-size: 20px; }
.wallet-tip-intro {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}
.wallet-tip-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(125px, .72fr) minmax(150px, .8fr) auto;
  gap: 10px;
  align-items: end;
}
.wallet-tip-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.wallet-tip-field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wallet-tip-field .modal-input,
.wallet-tip-amount { width: 100%; min-width: 0; }
.wallet-tip-field .modal-input { margin-bottom: 0; min-height: 46px; }
.wallet-tip-amount { min-height: 46px; align-self: stretch; }
.wallet-tip-amount input { min-width: 0; font-size: 15px; }
.wallet-tip-submit { min-height: 46px; padding-inline: 20px; white-space: nowrap; }
.wallet-tip-policy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #222c34;
  border-radius: 10px;
  background: #0c1116;
}
.wallet-tip-policy strong { color: #c9d3dc; font-size: 10px; }
.wallet-tip-policy p { margin: 4px 0 0; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.wallet-tip-available { display: grid; gap: 3px; min-width: 126px; text-align: right; }
.wallet-tip-available small { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.wallet-tip-available strong { color: var(--accent); font-size: 16px; }
.wallet-tip-history-wrap { margin-top: 14px; padding-top: 13px; border-top: 1px solid #222b33; }
.wallet-tip-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wallet-tip-history-heading > div { display: grid; gap: 2px; }
.wallet-tip-history-heading small { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.wallet-tip-history-heading strong { font-size: 13px; }
.wallet-tip-history { max-height: 280px; overflow: auto; }
.wallet-tip-history .admin-table td { vertical-align: middle; }
.tip-direction {
  display: inline-flex;
  align-items: center;
  min-width: 66px;
  padding: 4px 7px;
  border: 1px solid #2a343d;
  border-radius: 999px;
  color: #aeb8c2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tip-direction.received { border-color: rgba(169,255,80,.28); color: var(--accent); background: rgba(169,255,80,.05); }
.tip-direction.sent { border-color: rgba(255,120,120,.22); color: #d7a5a5; background: rgba(255,100,100,.035); }
.tip-player-id { display: inline; margin-left: 5px; color: var(--muted-2); font-size: 8px; }
.tip-amount { white-space: nowrap; }
.tip-amount.received { color: var(--accent); }
.tip-amount.sent { color: #d7a5a5; }

@media (max-width: 900px) {
  .wallet-tip-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-tip-submit { width: 100%; }
}

@media (max-width: 600px) {
  .wallet-tip-panel { padding: 17px 16px; }
  .wallet-tip-panel .panel-heading { align-items: flex-start; }
  .wallet-tip-panel .panel-heading h3 { font-size: 18px; }
  .wallet-tip-form { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .wallet-tip-field .modal-input,
  .wallet-tip-amount input { font-size: 16px; }
  .wallet-tip-submit { min-height: 48px; }
  .wallet-tip-policy { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wallet-tip-available { min-width: 0; text-align: left; }
  .wallet-tip-history { overflow-x: auto; max-height: none; }
  .wallet-tip-history .admin-table { min-width: 560px; }
}

/* =========================================================
   v2.22.21 — public withdrawal settlement metric
   ========================================================= */
.withdraw-settlement-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-block: 14px !important;
}
.withdraw-settlement-card > div { min-width: 0; display: grid; gap: 5px; }
.withdraw-settlement-card > div > small { color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.withdraw-settlement-card > div > span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.withdraw-balance-grid .withdraw-settlement-card > strong {
  margin: 0;
  color: var(--accent);
  font-size: 26px;
  white-space: nowrap;
  text-align: right;
}
.operation-card .operation-reset-button { margin-top: 9px; padding: 0; font-size: 9px; }
@media (max-width: 600px) {
  .withdraw-settlement-card { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .withdraw-balance-grid .withdraw-settlement-card > strong { font-size: 22px; }
}

/* =========================================================
   v2.22.26 — Admin-wide selectable display timezone
   ========================================================= */
.admin-timezone-control {
  display: grid;
  grid-template-columns: auto;
  gap: 4px;
  min-width: 210px;
  align-self: stretch;
}
.admin-timezone-control > span {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
.admin-timezone-control .select-input {
  min-height: 38px;
  margin: 0;
  padding: 8px 34px 8px 10px;
  font-size: 12px;
}
.admin-timezone-control > small {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (max-width: 720px) {
  .admin-heading-actions { width: 100%; }
  .admin-timezone-control { width: 100%; min-width: 0; }
  .admin-timezone-control .select-input { width: 100%; }
}

/* Nightshift v2.22.27 — Roulette multi-bet slip */
.roulette-slip-panel {
  margin: 12px 0 14px;
  padding: 13px 14px;
  border: 1px solid #27323b;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(18,24,29,.96), rgba(12,16,20,.96));
}
.roulette-slip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.roulette-slip-heading > div { display: grid; gap: 3px; min-width: 0; }
.roulette-slip-heading small,
.roulette-wager-control > small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}
.roulette-slip-heading strong { color: var(--text); font-size: 13px; }
.roulette-slip-heading span { color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.roulette-reset-bets { min-height: 36px; padding: 8px 12px; white-space: nowrap; }
.roulette-reset-bets:disabled { opacity: .4; cursor: not-allowed; }
.roulette-selected-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.roulette-selected-bets.empty { display: none; }
.roulette-slip-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #33414c;
  border-radius: 999px;
  background: #10161b;
  color: #dce5eb;
  cursor: pointer;
}
.roulette-slip-chip:hover { border-color: var(--accent); }
.roulette-slip-chip span { font-size: 10px; font-weight: 800; }
.roulette-slip-chip small { color: var(--accent); font-size: 8px; font-weight: 900; }
.roulette-slip-chip b { color: #7f8e99; font-size: 12px; line-height: 1; }
.roulette-controls { align-items: end; }
.roulette-wager-control { display: grid; gap: 6px; min-width: 0; }
.roulette-wager-control .wager-input { width: 100%; }
.roulette-wager-control .bet-limit-note { margin: 0; color: var(--muted-2); font-size: 8px; line-height: 1.45; }

@media (max-width: 700px) {
  .roulette-slip-heading { align-items: flex-start; }
  .roulette-slip-heading strong { font-size: 12px; }
  .roulette-reset-bets { min-height: 34px; padding-inline: 10px; }
  .roulette-controls { grid-template-columns: minmax(0, 1fr); }
  .roulette-controls .button-large { width: 100%; }
  .roulette-slip-chip { min-height: 34px; }
}

/* v2.22.28 — collapsible chat-rain participant audit */
.admin-rain-participant-row > td {
  padding: 0 12px 11px;
  border-top: 0;
  background: rgba(9, 13, 17, .42);
}
.admin-rain-participants {
  overflow: hidden;
  border: 1px solid #25303a;
  border-radius: 10px;
  background: #0c1116;
}
.admin-rain-participants > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.admin-rain-participants > summary::-webkit-details-marker { display: none; }
.admin-rain-participants > summary::before {
  content: "▸";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  transition: transform .16s ease;
}
.admin-rain-participants[open] > summary::before { transform: rotate(90deg); }
.admin-rain-participants > summary span {
  margin-right: auto;
  color: var(--text);
  font-weight: 750;
  font-size: 11px;
}
.admin-rain-participants > summary small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
}
.admin-rain-participants[open] > summary { border-bottom: 1px solid #202a33; }
.admin-rain-participants-body { padding: 10px; }
.admin-rain-participants-hint {
  padding: 8px 6px;
  color: var(--muted-2);
  font-size: 10px;
}
.admin-rain-participants-table-wrap { margin: 0; border: 0; }
.admin-rain-participants-table th,
.admin-rain-participants-table td { padding-block: 9px; }
.admin-rain-participants-table td strong + small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}
.admin-rain-claimed { color: var(--accent); white-space: nowrap; }
.admin-rain-pending { color: var(--muted); font-size: 10px; }
@media (max-width: 620px) {
  .admin-rain-participant-row > td { padding-inline: 6px; }
  .admin-rain-participants > summary { padding-inline: 10px; }
  .admin-rain-participants-body { padding: 7px; }
  .admin-rain-participants-table { min-width: 480px; }
}

/* =========================================================
   v2.22.31 — full-width seamless live news ticker
   ========================================================= */
.live-news-ticker {
  position: sticky;
  top: 82px;
  z-index: 35;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid #26303a;
  background: rgba(10, 13, 16, .985);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.live-news-label {
  position: relative;
  z-index: 2;
  min-width: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid #2a333d;
  background: #0f1419;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .15em;
  white-space: nowrap;
}
.live-news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(185,255,102,.5);
}
.live-news-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.live-news-track {
  --news-scroll-duration: 32s;
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: nightshift-news-scroll var(--news-scroll-duration) linear infinite;
}
.live-news-set {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}
.live-news-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cbd3db;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .015em;
}
.live-news-item::before {
  content: "•";
  color: var(--accent);
  font-size: 12px;
}
a.live-news-item {
  color: #dce5ec;
  text-decoration: none;
}
a.live-news-item:hover,
a.live-news-item:focus-visible { color: var(--accent); }
.live-news-link-mark { color: var(--muted-2); font-size: 9px; }
.live-news-ticker:hover .live-news-track,
.live-news-ticker:focus-within .live-news-track { animation-play-state: paused; }
@keyframes nightshift-news-scroll {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
body.news-ticker-active .game-rail { top: 118px; }

.admin-news-heading-actions { display: flex; align-items: center; gap: 12px; }
.admin-news-ticker-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.admin-news-ticker-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.admin-news-ticker-form label small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .05em;
}
.admin-news-ticker-form .modal-input { margin: 0; min-width: 0; }
.admin-news-ticker-form .button { min-height: 46px; white-space: nowrap; }
.admin-news-ticker-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 13px;
  color: var(--muted-2);
  font-size: 9px;
}
.admin-news-link {
  display: block;
  max-width: 360px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  body.news-ticker-active .game-rail { top: 118px; }
  .admin-news-ticker-form { grid-template-columns: 1fr 1fr; }
  .admin-news-ticker-form .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 700px) {
  .live-news-ticker { top: 70px; height: 34px; }
  .live-news-label { min-width: 92px; padding-inline: 10px; font-size: 8px; }
  .live-news-item { font-size: 10px; }
  body.news-ticker-active .game-rail { top: 104px; }
  .admin-news-ticker-form { grid-template-columns: 1fr; }
  .admin-news-ticker-form .button { grid-column: auto; }
  .admin-news-ticker-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-news-viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .live-news-track { animation: none; }
  .live-news-set[data-news-copy="duplicate"] { display: none; }
}
/* Maintenance/closed banners take precedence over the optional news strip. */
body.site-shutdown-active .live-news-ticker,
body.site-closed-active .live-news-ticker { display: none !important; }
body.news-ticker-active.site-shutdown-active .game-rail,
body.news-ticker-active.site-closed-active .game-rail { top: 130px; }
@media (max-width: 700px) {
  body.news-ticker-active.site-shutdown-active .game-rail,
  body.news-ticker-active.site-closed-active .game-rail { top: 126px; }
}


/* =========================================================
   v2.22.32 — mobile live-news/chat spacing fix
   Desktop layout intentionally unchanged.
   ========================================================= */
@media (max-width: 700px) {
  body.news-ticker-active:not(.site-shutdown-active):not(.site-closed-active) .chat-dock {
    top: 104px;
  }
}


/* v2.22.35 — deposit shortcut left of balance + pixel-centered plus */
.balance-deposit-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(185, 255, 102, .52);
  border-radius: 50%;
  background: rgba(185, 255, 102, .10);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(185, 255, 102, .035), 0 0 0 rgba(185, 255, 102, 0);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.balance-deposit-plus {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.balance-deposit-plus::before,
.balance-deposit-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.balance-deposit-plus::before { width: 14px; height: 2.5px; }
.balance-deposit-plus::after { width: 2.5px; height: 14px; }
.balance-deposit-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0d08;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(185, 255, 102, .14);
}
.balance-deposit-button:active { transform: translateY(0); }
.balance-deposit-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 700px) {
  .account-area { gap: 7px; }
  .balance-deposit-button { width: 31px; height: 31px; flex-basis: 31px; }
  .balance-deposit-plus { width: 12px; height: 12px; }
  .balance-deposit-plus::before { width: 12px; height: 2.25px; }
  .balance-deposit-plus::after { width: 2.25px; height: 12px; }
}

@media (max-width: 430px) {
  .account-area { gap: 5px; }
  .balance-deposit-button { width: 28px; height: 28px; flex-basis: 28px; }
  .balance-deposit-plus { width: 11px; height: 11px; }
  .balance-deposit-plus::before { width: 11px; height: 2px; }
  .balance-deposit-plus::after { width: 2px; height: 11px; }
}


/* =========================================================
   v2.22.34 — live-news/chat clearance at every viewport width
   Keeps the balance deposit shortcut intact.
   ========================================================= */
body.news-ticker-active:not(.site-shutdown-active):not(.site-closed-active) .chat-dock {
  top: 118px;
}
@media (max-width: 700px) {
  body.news-ticker-active:not(.site-shutdown-active):not(.site-closed-active) .chat-dock {
    top: 104px;
  }
}

/* =========================================================
   v2.22.39 — player self-exclusion controls
   ========================================================= */
.self-exclusion-page { max-width: 1120px; }
.self-exclusion-heading { align-items: flex-start; margin-bottom: 18px; }
.self-exclusion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.self-exclusion-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 22, 27, .98), rgba(11, 14, 18, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.self-exclusion-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.self-exclusion-card-heading h3 { margin: 2px 0 0; font-size: 20px; }
.self-exclusion-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--muted-2);
  background: #0d1115;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.self-exclusion-status.active {
  color: var(--accent);
  border-color: rgba(144, 238, 88, .32);
  background: rgba(144, 238, 88, .07);
}
.self-exclusion-intro {
  margin: 11px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.self-exclusion-form {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}
.self-exclusion-form > label:not(.self-exclusion-confirm),
.self-deposit-form-grid > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.self-exclusion-form .select-input { width: 100%; min-height: 46px; }
.self-deposit-form-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
}
.self-limit-input { width: 100%; min-height: 46px; }
.self-limit-input input { font-size: 16px; }
.self-exclusion-confirm {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #273039;
  border-radius: 11px;
  background: rgba(255,255,255,.018);
  color: #abb6c0;
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}
.self-exclusion-confirm input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.self-exclusion-warning {
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px solid rgba(230, 180, 76, .22);
  border-radius: 12px;
  background: rgba(230, 180, 76, .045);
}
.self-exclusion-warning strong {
  display: block;
  color: #e2c16f;
  font-size: 11px;
}
.self-exclusion-warning p {
  margin: 5px 0 0;
  color: #aeb7bf;
  font-size: 10px;
  line-height: 1.58;
}
.self-exclusion-active-panel {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(144, 238, 88, .22);
  border-radius: 14px;
  background: radial-gradient(circle at 15% 0%, rgba(144, 238, 88, .08), transparent 55%), #0c1110;
}
.self-exclusion-active-panel small,
.self-deposit-metrics small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}
.self-exclusion-countdown {
  color: var(--accent);
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.self-exclusion-active-panel > span { color: var(--muted); font-size: 10px; }
.self-deposit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.self-deposit-metrics > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #222b33;
  border-radius: 11px;
  background: #0d1115;
}
.self-deposit-metrics > div > strong { font-size: 16px; }
.self-deposit-metrics #self-deposit-remaining { color: var(--accent); }
.self-deposit-countdown-row {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}
.self-deposit-countdown-row > span { display: grid; gap: 4px; }
.self-deposit-countdown-row strong { font-variant-numeric: tabular-nums; }
.self-exclusion-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.self-exclusion-notes article {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e1216;
}
.self-exclusion-notes strong { font-size: 11px; }
.self-exclusion-notes p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.55;
}
.deposit-limit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(144, 238, 88, .22);
  border-radius: 12px;
  background: rgba(144, 238, 88, .045);
}
.deposit-limit-banner > div { display: grid; gap: 2px; min-width: 0; }
.deposit-limit-banner small { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.deposit-limit-banner strong { font-size: 12px; }
.deposit-limit-banner span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.deposit-limit-banner .text-button { flex: 0 0 auto; }

@media (max-width: 820px) {
  .self-exclusion-grid { grid-template-columns: 1fr; }
  .self-exclusion-notes { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .self-exclusion-card { padding: 16px; border-radius: 14px; }
  .self-exclusion-card-heading { gap: 10px; }
  .self-exclusion-card-heading h3 { font-size: 18px; }
  .self-deposit-form-grid { grid-template-columns: 1fr; }
  .self-deposit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .self-deposit-metrics > div:first-child { grid-column: 1 / -1; }
  .self-deposit-countdown-row { grid-template-columns: 1fr; }
  .deposit-limit-banner { align-items: flex-start; }
}

/* Nightshift v2.22.41 - weekly weighted giveaway board */
.weekly-giveaway-board {
  margin: 34px 0 18px;
  border: 1px solid var(--border-bright);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(185,255,102,.055), transparent 38%), var(--surface);
  overflow: hidden;
  box-shadow: 6px 6px 0 #07090b;
}
.weekly-giveaway-heading {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
  gap: 28px;
  align-items: center;
  padding: 25px 26px 22px;
  border-bottom: 1px solid var(--border);
}
.weekly-giveaway-title .eyebrow { margin-bottom: 9px; }
.weekly-giveaway-title h3 {
  margin: 0;
  font: 800 clamp(28px,3vw,40px)/1 var(--font-display);
  letter-spacing: -.035em;
}
.weekly-giveaway-title > p:last-child {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.weekly-giveaway-timer {
  justify-self: stretch;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #0d1115;
  padding: 15px 17px;
}
.weekly-giveaway-timer small,
.weekly-giveaway-stats small,
.weekly-giveaway-entry-count small,
.weekly-giveaway-chance small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.weekly-giveaway-timer strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--accent);
  font: 800 clamp(24px,3vw,34px)/1 var(--font-display);
  letter-spacing: .035em;
  white-space: nowrap;
}
.weekly-giveaway-timer span { color: var(--muted-2); font-size: 11px; }
.weekly-giveaway-stats {
  display: grid;
  grid-template-columns: 1.45fr .85fr .65fr 1.15fr;
  border-bottom: 1px solid var(--border);
}
.weekly-giveaway-stats article {
  min-width: 0;
  padding: 17px 20px;
  border-right: 1px solid var(--border);
}
.weekly-giveaway-stats article:last-child { border-right: 0; }
.weekly-giveaway-stats strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--text);
  font: 800 21px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-giveaway-stats article:first-child strong { color: var(--accent); }
.weekly-giveaway-stats span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 11px; }
.weekly-giveaway-prize-main {
  display: grid;
  grid-template-columns: max-content 24px minmax(168px,1fr);
  align-items: center;
  column-gap: 10px;
  margin-top: 8px;
  min-width: 0;
}
.weekly-giveaway-xanax { display: flex; align-items: baseline; gap: 7px; min-width: max-content; white-space: nowrap; }
.weekly-giveaway-stats .weekly-giveaway-xanax-number {
  display: inline;
  margin: 0;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font: 900 27px/1 var(--font-display);
}
.weekly-giveaway-stats .weekly-giveaway-xanax-unit {
  display: inline;
  margin: 0;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  opacity: .92;
  font: 900 11px/1 var(--font-display);
  letter-spacing: .13em;
}
.weekly-giveaway-stats .weekly-giveaway-prize-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 44px;
  margin: 0;
  color: var(--muted);
  font: 800 18px/1 var(--font-display);
}
.weekly-giveaway-stats .weekly-giveaway-cache-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  height: 44px;
  margin: 0;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.weekly-giveaway-cache-card img { flex: 0 0 auto; width: 50px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
.weekly-giveaway-stats .weekly-giveaway-cache-card > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 0; }
.weekly-giveaway-cache-card b { overflow: hidden; color: var(--text); font-size: 11px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.weekly-giveaway-cache-card em { margin-top: 3px; color: var(--muted-2); font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .1em; }
.weekly-giveaway-stats .weekly-giveaway-prize-note { display: block; margin-top: 7px; color: var(--muted-2); font-size: 10px; line-height: 1.35; }
.weekly-giveaway-list-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) 130px 130px;
  gap: 14px;
  padding: 13px 20px 9px 64px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.weekly-giveaway-list-heading span:not(:first-child) { text-align: right; }
.weekly-giveaway-leaderboard { padding: 0 14px 13px; }
.weekly-giveaway-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 130px 130px;
  gap: 14px;
  align-items: center;
  min-height: 57px;
  padding: 8px 8px 8px 6px;
  border-top: 1px solid #21272e;
}
.weekly-giveaway-row:first-child {
  border-top-color: rgba(185,255,102,.38);
  background: linear-gradient(90deg, rgba(185,255,102,.055), transparent 62%);
}
.weekly-giveaway-rank {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--muted);
  font: 800 13px var(--font-display);
}
.weekly-giveaway-row:first-child .weekly-giveaway-rank {
  background: var(--accent);
  color: #0b0e09;
  border-color: var(--accent);
}
.weekly-giveaway-player { min-width: 0; position: relative; padding: 2px 0 9px; overflow: hidden; }
.weekly-giveaway-player strong { display: inline; font-size: 13px; }
.weekly-giveaway-player small { margin-left: 7px; color: var(--muted-2); font-size: 10px; }
.weekly-giveaway-player::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 3px;
  border-radius: 999px;
  background: #20262d;
}
.weekly-giveaway-player i {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 1px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.weekly-giveaway-entry-count,
.weekly-giveaway-chance { text-align: right; }
.weekly-giveaway-entry-count strong,
.weekly-giveaway-chance strong { display: block; font: 800 16px var(--font-display); }
.weekly-giveaway-chance strong { color: var(--accent); }
.weekly-giveaway-empty {
  min-height: 105px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}
.weekly-giveaway-empty strong { color: var(--text); }
.weekly-giveaway-empty span { font-size: 12px; }
.weekly-giveaway-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #0e1216;
  color: var(--muted-2);
  font-size: 10px;
}
.admin-weekly-giveaway-summary { margin: 16px 0; }
.admin-weekly-giveaway-summary article { min-width: 0; }
.admin-weekly-giveaway-reset-box { margin: 0 0 16px; }
.admin-weekly-giveaway-reset-copy { display: grid; gap: 5px; }
.admin-weekly-giveaway-reset-copy strong { color: #e9b95e; font-size: 10px; letter-spacing: .11em; }
.admin-weekly-giveaway-reset-copy span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-weekly-giveaway-reset-row { margin: 0; }
.admin-weekly-giveaway-reset-row .modal-input { flex: 1 1 240px; }
.admin-weekly-giveaway-reset-row .button { flex: 0 0 auto; min-width: 170px; }
.admin-weekly-giveaway-reset-list { min-height: 22px; color: var(--muted-2); font-size: 10px; }
.admin-weekly-giveaway-reset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-weekly-giveaway-reset-chips span { padding: 5px 8px; border: 1px solid #2a333d; border-radius: 999px; background: #0b1015; color: var(--muted); }
.admin-weekly-giveaway-reset-chips strong { color: var(--text); }
.muted-copy { color: var(--muted); }

@media (max-width: 980px) {
  .weekly-giveaway-prize-main { grid-template-columns: max-content 20px minmax(150px,1fr); column-gap: 8px; }
  .weekly-giveaway-stats .weekly-giveaway-prize-plus { width: 20px; }
  .weekly-giveaway-stats .weekly-giveaway-cache-card { min-width: 150px; padding-right: 9px; }
  .weekly-giveaway-cache-card img { width: 45px; }
  .weekly-giveaway-heading { grid-template-columns: 1fr; }
  .weekly-giveaway-timer { justify-self: stretch; }
  .weekly-giveaway-stats { grid-template-columns: 1fr 1fr; }
  .weekly-giveaway-stats article:nth-child(2) { border-right: 0; }
  .weekly-giveaway-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 700px) {
  .weekly-giveaway-board { margin-top: 24px; border-radius: 16px; }
  .weekly-giveaway-heading { padding: 20px 17px 17px; gap: 18px; }
  .weekly-giveaway-title h3 { font-size: 30px; }
  .weekly-giveaway-title > p:last-child { font-size: 13px; }
  .weekly-giveaway-timer strong { font-size: 25px; }
  .weekly-giveaway-stats { grid-template-columns: 1fr 1fr; }
  .weekly-giveaway-stats article { padding: 13px 14px; }
  .weekly-giveaway-stats strong { font-size: 17px; }
  .weekly-giveaway-list-heading { grid-template-columns: minmax(0,1fr) 92px; padding-left: 56px; }
  .weekly-giveaway-list-heading span:nth-child(2) { display: none; }
  .weekly-giveaway-row { grid-template-columns: 34px minmax(0,1fr) 92px; gap: 10px; }
  .weekly-giveaway-entry-count { display: none; }
  .weekly-giveaway-leaderboard { padding-inline: 8px; }
  .weekly-giveaway-foot { flex-direction: column; gap: 4px; }
}

@media (max-width: 430px) {
  .weekly-giveaway-prize-main { grid-template-columns: max-content 18px minmax(0,1fr); column-gap: 7px; }
  .weekly-giveaway-stats .weekly-giveaway-prize-plus { width: 18px; }
  .weekly-giveaway-stats .weekly-giveaway-cache-card { min-width: 0; }
  .weekly-giveaway-cache-card img { width: 42px; }
  .weekly-giveaway-stats { grid-template-columns: 1fr; }
  .weekly-giveaway-stats article { border-right: 0; border-bottom: 1px solid var(--border); }
  .weekly-giveaway-stats article:last-child { border-bottom: 0; }
  .weekly-giveaway-timer strong { font-size: 21px; letter-spacing: 0; }
}

@media (max-width: 700px) {
  .admin-weekly-giveaway-reset-row .button { width: 100%; min-width: 0; }
}
