:root {
  color-scheme: dark;
  --base: #10141f;
  --rail: #151b29;
  --panel: #1b2334;
  --line: #303b52;
  --text: #f6f7fb;
  --muted: #b3bed1;
  --green: #c7fb75;
  --ink: #172212;
  --rail-width: 218px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); font: 1rem/1.5 system-ui, sans-serif; }
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(14px, 3vw, 36px);
  min-height: 70px;
  background: var(--rail);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: -.06em; font-size: 1.35rem; white-space: nowrap; }
.brand span { color: var(--green); }
.brand .brand-mark { margin-right: 10px; font-size: 1rem; }
.network { font-size: .875rem; color: var(--muted); }
.account { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
#balance { padding: 8px 12px; border-radius: 8px; background: var(--base); font-variant-numeric: tabular-nums; }
.shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar { padding: 20px 12px; background: var(--rail); border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 6px; }
.sidebar button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.sidebar button span { min-width: 1.25em; text-align: center; color: var(--green); }
.sidebar button[aria-pressed=true], .sidebar button:hover, #account-entry[aria-pressed=true] { background: #27334b; color: var(--text); }
.content { width: min(1260px, 100%); margin-inline: auto; padding: clamp(16px, 3.4vw, 44px); }
h1 { font-size: clamp(2.7rem, 6.7vw, 5.7rem); letter-spacing: -.075em; line-height: .95; margin: 15px 0 24px; }
.actions, .game-form { display: flex; gap: 10px; flex-wrap: wrap; }
button { font: inherit; font-weight: 750; background: var(--green); color: var(--ink); border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.outline { background: var(--panel); color: var(--text); border-color: var(--line); }
:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(14px, 2vw, 24px); }
.auth-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 5vw, 28px);
  box-shadow: 0 24px 80px #070912b3;
}
.auth-dialog::backdrop { background: #080a14b8; }
.auth-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-close { min-width: 40px; padding: 3px 10px; font-size: 1.35rem; }
.auth-dialog form { margin-top: 18px; }
.auth-dialog input { font-size: 1rem; }
.auth-switch { margin-top: 10px; padding-left: 0; background: transparent; color: var(--green); }
.auth-error { margin: 0; color: #ffd2d4; }
.panel-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 1.45rem; }
.panel-title span, .felt p, footer { color: var(--muted); }
.felt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 295px;
  text-align: center;
  border-radius: 10px;
  background: radial-gradient(ellipse at center, #273e58, #141c2c 76%);
  border: 1px solid var(--line);
}
.felt p { margin: 5px 0; }
.felt .result { font-weight: 700; color: var(--green); }
.cards { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 60px; }
.card { min-width: 43px; padding: 6px; background: #f7f8ef; color: #1f2325; border-radius: 6px; display: grid; place-items: center; font-weight: 800; }
.card.red { color: #a6283e; }
.card.back { background: #463365; color: #e5d3ff; border: 1px solid #8974a9; }
form { display: grid; gap: 12px; max-width: 480px; margin-top: 15px; }
.game-form { align-items: end; max-width: none; }
.game-form label { width: min(140px, 100%); }
label { display: grid; gap: 5px; font-size: .875rem; font-weight: 700; }
input { font: inherit; color: var(--text); background: var(--base); border: 1px solid var(--line); min-width: 0; border-radius: 8px; padding: 10px; }
.player-hands { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.player-hand { padding: 5px 10px; border: 1px solid transparent; border-radius: 8px; }
.player-hand.active { border-color: var(--green); }
#hand-actions { margin-top: 15px; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.address, .history { overflow-wrap: anywhere; }
.address { font-family: monospace; }
.history { padding-left: 20px; }
li { margin: 6px 0; }
#error, #approval { padding: 10px; border: 1px solid #855758; border-radius: 8px; color: #ffd2d4; }
footer { margin-top: 26px; padding-block: 15px; border-top: 1px solid var(--line); font-size: .875rem; display: flex; justify-content: space-between; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar { padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sidebar nav { display: flex; }
  .sidebar button { width: auto; gap: 6px; padding-inline: 8px; font-size: .875rem; }
  .wallet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar, .account { gap: 6px; }
  .topbar { flex-wrap: wrap; }
  .brand { font-size: 1.1rem; }
  .brand .brand-mark { margin-right: 5px; }
  .account button, #balance { padding: 6px 8px; font-size: .875rem; }
}

[data-transfer-kind][aria-pressed="true"] { background: var(--green); color: var(--ink); }
[data-transfer-kind][aria-pressed="false"] { background: var(--panel); color: var(--text); border-color: var(--line); }
#admin-login { max-width: 520px; margin-inline: auto; }
#admin-login h1, #admin-dashboard h1 { margin-top: 0; font-size: 2rem; letter-spacing: -.04em; }
#admin-dashboard select { width: min(100%, 300px); padding: 8px; font: inherit; border-radius: 8px; }
.report-scroll { overflow-x: auto; }
.report-scroll table { width: 100%; border-collapse: collapse; text-align: left; }
.report-scroll th, .report-scroll td { padding: 10px; border-bottom: 1px solid var(--line); }
.report-scroll td button { margin: 2px; white-space: nowrap; }
.report-pages { margin-top: 12px; }
@media (max-width: 620px) {
  .account { flex-wrap: wrap; justify-content: flex-end; }
}

.admin-rtp, .admin-player { margin-block: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.rtp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.rtp-cards article { padding: 12px; background: var(--base); border-radius: 8px; }
.rtp-cards h3, .rtp-cards p { margin: 3px 0; }
.rtp-cards strong { color: var(--green); font-size: 1.25rem; }

#dice-form { max-width: none; gap: 14px; }
.dice-board {
  --dice-win: #bdf768;
  --dice-loss: #8748ad;
  display: grid;
  gap: clamp(18px, 4vw, 32px);
  padding: clamp(14px, 3vw, 30px);
  background: radial-gradient(ellipse at 50% 20%, #37294d, transparent 65%), #131827;
  border: 1px solid #473858;
  border-radius: 14px;
}
.dice-streak {
  justify-self: end;
  padding: 6px 12px;
  border: 1px solid #594572;
  border-radius: 8px;
  color: var(--muted);
  font-size: .875rem;
}
.dice-streak strong { color: var(--green); }
.dice-display { text-align: center; padding: 8px 0 clamp(12px, 3vw, 28px); }
.dice-roll {
  margin: 0;
  color: #e9defa;
  font-size: clamp(3.7rem, 12vw, 8rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: 1;
}
.dice-result { margin: 8px 0 0; color: var(--muted); font-weight: 650; }
.dice-board[data-outcome="win"] .dice-roll { color: var(--dice-win); }
.dice-board[data-outcome="loss"] .dice-roll { color: #efa9f4; }
.dice-track {
  --threshold: 50%;
  --before: var(--dice-win);
  --after: var(--dice-loss);
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
}
.dice-track[data-direction="over"] { --before: var(--dice-loss); --after: var(--dice-win); }
.dice-zones {
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--before) var(--threshold), var(--after) var(--threshold));
}
.dice-thumb, .dice-marker { position: absolute; transform: translateX(-50%); pointer-events: none; }
.dice-thumb {
  left: var(--threshold);
  width: 14px;
  height: 28px;
  background: #faf4ff;
  border: 2px solid #43255b;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #e2c7fa;
}
.dice-marker {
  left: var(--roll-position);
  top: -5px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid #181429;
  border-radius: 2px;
  background: #fff3b2;
}
.dice-track input {
  appearance: none;
  position: absolute;
  inset: 0 auto 0 calc(5% - 7px);
  width: calc(90% + 14px);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}
.dice-track input::-webkit-slider-thumb { appearance: none; width: 14px; height: 28px; background: transparent; }
.dice-track input::-moz-range-thumb { width: 14px; height: 28px; border: 0; background: transparent; }
.dice-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: .875rem; }
.dice-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dice-metrics output, .dice-metrics input {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px solid #594572;
  border-radius: 8px;
  background: #18192b;
  color: var(--text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.dice-direction { display: grid; gap: 5px; }
.dice-direction > div { display: flex; gap: 6px; }
.dice-direction button { padding: 6px 10px; font-size: .875rem; }
.dice-bet { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.dice-bet input { width: min(180px, 100%); }
@media (max-width: 500px) {
  .dice-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dice-direction { grid-column: 1 / -1; grid-row: 2; }
}

.sports-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .7fr); gap: 18px; }
.sports-layout > div { min-width: 0; padding: 14px; background: var(--base); border: 1px solid var(--line); border-radius: 10px; }
.sports-layout h3, .sports-layout h4 { margin: 0 0 8px; overflow-wrap: anywhere; }
#sports-events article { padding-block: 10px; border-bottom: 1px solid var(--line); }
.sports-odds { display: flex; flex-wrap: wrap; gap: 6px; }
.sports-odds button { padding: 6px 8px; }
.sports-odds button[aria-pressed="true"] { background: var(--green); color: var(--ink); }
#sports-estimate { margin: 0; }
@media (max-width: 640px) {
  .sports-layout { grid-template-columns: minmax(0, 1fr); }
}

.hand-total {
  display: inline-block;
  min-width: 2ch;
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid #637a63;
  border-radius: 6px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.roulette-stage {
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: 18px 12px 4px;
  text-align: center;
  background: radial-gradient(ellipse at center, #392a52, #151828 78%);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.roulette-wheel { position: relative; display: grid; place-items: center; width: min(330px, 92%); aspect-ratio: 1; }
.roulette-disc {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1;
  border: 5px solid #8e759d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #20192f;
  transition: transform 1.7s cubic-bezier(.15,.75,.18,1);
}
.roulette-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top: 13px solid #f8edbe;
  border-bottom: 0;
}
#roulette-number {
  position: absolute;
  display: grid;
  place-items: center;
  width: 60%;
  aspect-ratio: 1;
  background: #171527;
  border: 3px solid #8e759d;
  border-radius: 50%;
  color: var(--text);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
#roulette-number[data-tone="red"] { color: #ff9cbd; }
#roulette-number[data-tone="green"] { color: var(--green); }
#roulette-form { max-width: none; }
.roulette-unit { width: min(245px, 100%); }
.roulette-numbers, .roulette-groups { display: grid; gap: 5px; }
.roulette-numbers { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.roulette-groups { grid-template-columns: repeat(6, minmax(0, 1fr)); }
[data-roulette-bet] {
  min-height: 43px;
  padding: 4px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #252c40;
  color: var(--text);
  border: 1px solid #41495f;
  font-size: .875rem;
}
[data-roulette-bet][data-tone="red"] { background: #74364d; }
[data-roulette-bet][data-tone="black"] { background: #211c32; }
[data-roulette-bet][data-tone="green"] { background: #324d37; }
[data-roulette-bet].has-chip { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
[data-roulette-bet] small:empty { display: none; }
[data-roulette-bet] small { font-size: .67rem; color: var(--green); overflow-wrap: anywhere; }
.roulette-zero { grid-column: 1 / -1; }
.roulette-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .roulette-numbers, .roulette-groups { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .roulette-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .roulette-disc { transition: none; }
}

.sports-kickoff { margin: 0 0 8px; color: var(--muted); font-size: .875rem; }

.roulette-pocket {
  position: absolute;
  color: white;
  font-size: clamp(.55rem, 2vw, .75rem);
  font-weight: 750;
  line-height: 1;
  text-shadow: 0 1px 2px #161124;
}
.roulette-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.roulette-ball {
  position: absolute;
  top: 2px;
  left: 50%;
  width: clamp(6px, 2vw, 10px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, #e9d9b6 65%, #9d8d71);
  box-shadow: 0 1px 4px #151221;
}
.sports-slip { display: grid; gap: 8px; padding: 0; list-style: none; }
.sports-slip li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.sports-slip button { padding: 4px 8px; font-size: .875rem; }

.admin-overview { margin-top: 12px; }
.sports-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 14px; margin-top: 16px; }
.sports-admin form { align-content: start; max-width: none; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sports-admin h3, .sports-admin p { margin: 0; }
.admin-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.score-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#sports-admin-status { grid-column: 1 / -1; }
#sports-admin-status:empty { display: none; }

.language-picker { display: flex; flex-wrap: wrap; gap: 3px; }
.language-picker button {
  min-width: 34px;
  min-height: 34px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  background: var(--base);
  color: var(--text);
  font-size: 1.12rem;
}
.language-picker button[aria-pressed="true"] { border-color: var(--green); }
.sidebar button, .game-tile, .report-scroll table { text-align: start; }
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .topbar { flex-wrap: wrap; }
[dir="rtl"] .dice-scale, [dir="rtl"] .roulette-wheel,
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="number"] { direction: ltr; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
}

.blackjack-panel, .plinko-panel { --game-surface: #141a2d; --game-light: #baa1f6; --game-line: #51476e; }
.blackjack-table {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  justify-items: center;
  gap: 14px;
  min-height: 355px;
  padding: 16px 10px 24px;
  text-align: center;
  border: 1px solid var(--game-line);
  border-radius: 20px 20px 48% 48% / 20px 20px 19% 19%;
  background: repeating-linear-gradient(130deg, #d1baff08 0 1px, transparent 1px 17px),
    radial-gradient(ellipse at center top, #443958, #292641 65%, #1a2339);
  box-shadow: inset 0 -9px #121a2e99, inset 0 -12px #806e945c;
}
.blackjack-table p { margin: 4px 0 8px; font-size: .9rem; }
.table-brand { color: #e2d3ff99; font-weight: 900; letter-spacing: .18em; }
.blackjack-table .cards { gap: 0; min-height: 91px; padding-inline: 8px; }
.blackjack-table .card {
  position: relative;
  display: grid;
  width: clamp(40px, 11vw, 64px);
  min-width: 0;
  aspect-ratio: 5 / 7;
  align-self: start;
  padding: 4px;
  border-radius: 7px;
  border: 1px solid #d2cadd;
  box-shadow: 0 4px 11px #100d2580;
}
.blackjack-table .card + .card { margin-inline-start: -10px; }
.card-corner { position: absolute; inset-inline-start: 5px; top: 2px; font-size: .8rem; }
.card-pip { place-self: center; font-size: clamp(1.4rem, 4vw, 2.25rem); }
.blackjack-table .card.back {
  border-color: #9a85c0;
  background: repeating-linear-gradient(45deg, #554476 0 2px, #312646 2px 6px);
  color: var(--green);
}
.game-console {
  margin-top: 16px;
  padding: clamp(12px, 3vw, 22px);
  background: var(--game-surface);
  border: 1px solid var(--game-line);
  border-radius: 12px;
}
.game-console .result { margin: 0 0 8px; color: var(--green); font-weight: 700; }
.game-console form { margin-top: 8px; max-width: none; }
.game-console .game-form { align-items: end; }
.stake-shortcuts { display: flex; gap: 4px; flex-wrap: wrap; }
.stake-shortcuts button { padding: 7px 9px; color: var(--text); background: #33294a; }
.blackjack-panel #hand-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.blackjack-panel #hand-actions button { display: grid; justify-items: center; gap: 3px; min-height: 62px; padding: 6px 3px; font-size: .875rem; overflow-wrap: anywhere; }
.blackjack-panel #hand-actions button span:first-child { font-size: 1.15rem; }
.plinko-stage {
  padding: 12px clamp(7px, 3vw, 25px) 18px;
  border: 1px solid var(--game-line);
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 40%, #302440, #121627 75%);
}
.plinko-board, .plinko-bins { width: min(100%, 600px); margin-inline: auto; direction: ltr; }
.plinko-board { position: relative; height: clamp(225px, 57vw, 385px); }
.plinko-peg, .plinko-ball { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.plinko-peg { width: clamp(3px, 1vw, 7px); background: #b1a3d2; box-shadow: 0 1px 4px #1d133c; }
.plinko-ball { z-index: 1; width: clamp(9px, 2.5vw, 16px); background: radial-gradient(circle at 35% 28%, #f9ffde, #b9ef6e 65%, #80ac40); box-shadow: 0 0 9px #c7fb7580; }
.plinko-bins { display: grid; grid-template-columns: repeat(var(--slots, 13), minmax(0, 1fr)); width: min(92%, 552px); gap: 2px; }
.plinko-bins span {
  display: grid;
  place-items: center;
  min-height: 25px;
  padding-block: 2px;
  border-radius: 4px;
  background: #ffce28;
  color: #200a16;
  font-size: clamp(.51rem, 1.8vw, .85rem);
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.plinko-bins span.landed { outline: 2px solid #fff; outline-offset: 1px; }
.plinko-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plinko-settings label { min-width: 0; align-content: end; }
.plinko-settings select { min-width: 0; padding: 10px 5px; color: var(--text); background: var(--base); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
@media (max-width: 500px) {
  .blackjack-panel #hand-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blackjack-table { min-height: 300px; }
}

.slot-machine {
  padding: clamp(18px, 6vw, 72px) clamp(8px, 5vw, 64px) clamp(12px, 3vw, 32px);
  background: linear-gradient(#11121a22, #11121a44), url("night-vault.webp") center / cover #14131e;
  border: 1px solid #a48055;
  border-radius: 14px;
  text-align: center;
  box-shadow: inset 0 0 24px #000b, 0 12px 30px #0005;
}
.slot-machine p { margin-bottom: 0; color: #f7e6ca; text-shadow: 0 2px 4px #000; }
.slot-grid {
  --cell: clamp(35px, 11vw, 108px);
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(var(--reels, 5), minmax(0, 1fr));
  gap: clamp(2px, 1vw, 8px);
  max-width: 680px;
  margin: auto;
  padding: clamp(3px, 1vw, 10px);
  border-radius: 10px;
  border: 1px solid #dda971;
  background: #14111c;
  box-shadow: 0 3px 14px #000c, 0 0 20px #e9ad6244;
}
.slot-reel {
  height: calc(var(--cell) * 3);
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  background: linear-gradient(90deg, #130d19, #282234 52%, #130d19);
}
.slot-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0a0813a8, transparent 26% 74%, #0a0813a8);
}
.slot-strip { display: grid; grid-auto-rows: var(--cell); }
.slot-cell { display: grid; min-width: 0; place-items: center; }
.slot-cell::after {
  content: "";
  width: min(94%, calc(var(--cell) * .92));
  aspect-ratio: 1;
  background: url("vault-symbols.webp") var(--symbol) center / 600% 100% no-repeat;
}
.slot-cell[data-symbol="ember"] { --symbol: 0%; }
.slot-cell[data-symbol="moon"] { --symbol: 20%; }
.slot-cell[data-symbol="gem"] { --symbol: 40%; }
.slot-cell[data-symbol="star"] { --symbol: 60%; }
.slot-cell[data-symbol="crown"] { --symbol: 80%; }
.slot-cell[data-symbol="vault"] { --symbol: 100%; }
.slot-line { outline: 1px solid #d5a76b; outline-offset: -1px; background: #e8a35718; }
.header-loyalty { white-space: nowrap; }
.slot-bonus, .extra-rules, .loyalty-card {
  margin-top: 15px;
  padding: clamp(12px, 2.5vw, 24px);
  background: #242037;
  border: 1px solid #51446b;
  border-radius: 12px;
}
.slot-bonus h3 { margin-top: 0; }
.slot-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.slot-tiles button { background: #684782; color: #ffe7a2; font-size: 1.3rem; }
.slot-tiles button[data-revealed="true"] { opacity: 1; background: #c7fb75; color: #232e19; }
.slot-paytable, .keno-paytable { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-paytable span, .keno-paytable span { padding: 5px 8px; background: #302846; border-radius: 5px; font-size: .875rem; }
.board-shell { display: grid; align-items: start; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 14px; }
.board-controls { padding: 14px; background: #171b2e; border: 1px solid var(--line); border-radius: 10px; }
.board-controls form { margin-top: 0; }
.board-controls select { min-width: 0; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--base); color: var(--text); }
.board-grid {
  display: grid;
  direction: ltr;
  gap: clamp(4px, 1vw, 9px);
  padding: clamp(8px, 2vw, 16px);
  background: radial-gradient(ellipse at center, #2b2847, #14182b);
  border: 1px solid #524a6a;
  border-radius: 12px;
}
.mines-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 520px; width: 100%; margin-inline: auto; }
.keno-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.board-grid button {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  color: #eadffd;
  background: #433962;
  border: 1px solid #594a7d;
  border-radius: 7px;
  box-shadow: inset 0 -3px #261d3c;
}
.board-grid button:disabled { opacity: .8; }
.board-grid button[data-tile="safe"] { color: #1e2d17; background: #c7fb75; box-shadow: none; }
.board-grid button[data-tile="bomb"] { background: #793851; color: #ffe1e6; }
.board-grid button[data-tile="drawn"] { border-color: #6fcaf1; color: #abe8ff; }
.keno-grid button[aria-pressed="true"]:not([data-tile="safe"]) { background: #855fc3; border-color: #ece0ff; }
.keno-paytable { margin-top: 8px; }
.loyalty-card { max-width: 650px; background: radial-gradient(ellipse at top right, #514164, #242037); }
#loyalty-level { font-size: clamp(1.5rem, 5vw, 2.6rem); color: var(--green); }
#loyalty-progress { width: 100%; accent-color: var(--green); }
@media (max-width: 760px) {
  .board-shell { grid-template-columns: minmax(0, 1fr); }
}


.vip-summary {
  display: flex;
  width: 100%;
  gap: clamp(10px, 3vw, 22px);
  align-items: center;
  margin-bottom: 16px;
  text-align: start;
  padding: 12px clamp(12px, 3vw, 24px);
  background: linear-gradient(115deg, #26332c, #1c2431 75%);
  border: 1px solid #506346;
  color: var(--text);
}
.vip-summary:hover { border-color: var(--green); }
.vip-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid #8ea760;
  border-radius: .7rem;
  color: var(--green);
  background: #303a29;
}
.vip-track { display: grid; gap: 5px; flex: 1; min-width: 0; }
.vip-row { display: flex; justify-content: space-between; gap: 8px; }
.vip-row:last-child { color: var(--muted); font-size: .82rem; }
.vip-track progress { width: 100%; height: 7px; accent-color: var(--green); }
.vip-rewards { display: grid; gap: 10px; margin-top: 16px; }
.vip-reward {
  display: grid;
  gap: 4px;
  text-align: start;
  padding: 14px 16px;
  color: var(--text);
  background: #242c39;
  border: 1px solid #394a4a;
}
.vip-reward:hover { border-color: var(--green); }
.vip-reward span { color: var(--muted); }
.vip-dialog #vip-dialog-amount { color: var(--green); }

.slot-stage { display: grid; }
.slot-stage > * { grid-area: 1 / 1; min-width: 0; }
.slot-stage .slot-bonus {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  padding: clamp(12px, 3vw, 26px);
  border: 1px solid #c69856;
  border-radius: 14px;
  background: linear-gradient(#171019b8, #171019df), url("night-vault.webp") center / cover;
  box-shadow: inset 0 0 35px #000c;
  text-align: center;
}
.vault-contents { max-width: 460px; margin: auto; }
.vault-contents h3 { margin-bottom: 4px; color: #ffe0a1; }
.vault-contents .slot-tiles { margin: 12px auto; }
.vault-contents .slot-tiles button {
  display: grid;
  place-items: center;
  aspect-ratio: 1.65;
  padding: 2px;
  border: 1px solid #a97b48;
  background: radial-gradient(ellipse at top, #493227, #251b2c);
  color: #ffe3a8;
}
.vault-contents .slot-tiles button:not(:disabled):hover { border-color: #ffe0a1; }
.vault-contents .slot-tiles button[data-revealed="true"] {
  background: #f6ce85;
  color: #2b1f27;
}
.vault-symbol {
  display: block;
  width: min(65%, 68px);
  aspect-ratio: 1;
  background: url("vault-symbols.webp") 100% center / 600% 100% no-repeat;
}
.vault-doors { position: absolute; inset: 0; display: flex; animation: vault-unlock 1.05s both; }
.vault-doors > span {
  width: 50%;
  background: repeating-linear-gradient(172deg, #ffffff09 0 1px, transparent 1px 7px),
    linear-gradient(110deg, #281e26, #66513f 52%, #211b27);
  border: 2px solid #a97b48;
  box-shadow: inset 0 0 24px #000a;
  animation: vault-door-slide 1.05s cubic-bezier(.65,0,.25,1) both;
  --door-direction: -105%;
}
.vault-doors > span + span { --door-direction: 105%; }
.vault-doors > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(60px, 16vw, 118px);
  transform: translate(-50%, -50%);
  animation: vault-lock-release .55s ease-in both;
}
@keyframes vault-door-slide {
  0%, 24% { transform: translateX(0); }
  100% { transform: translateX(var(--door-direction)); }
}
@keyframes vault-lock-release {
  0%, 24% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(.85); }
}
@keyframes vault-unlock {
  0%, 99% { visibility: visible; }
  100% { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .vault-doors { display: none; }
}

.vip-reward time, #vip-dialog-timer { color: var(--muted); font-variant-numeric: tabular-nums; }
.vault-confirm {
  text-align: center;
  border-color: #a97b48;
  background: linear-gradient(#1a1322dd, #21172cea), url("night-vault.webp") center / cover;
}
.vault-confirm > .vault-symbol { margin-inline: auto; }
.vault-confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.chicken-layout { display: grid; grid-template-columns: minmax(175px, .36fr) minmax(0, 1fr); gap: 14px; }
.chicken-controls { padding: 14px; border: 1px solid #405446; border-radius: 12px; background: #232d2b; }
.chicken-controls form { margin-top: 0; }
.chicken-controls select { padding: 8px; border-radius: 7px; background: var(--base); color: var(--text); }
.chicken-road { position: relative; direction: ltr; overflow: auto; background: #303739; border-radius: 12px; border: 1px solid #546357; }
.chicken-lanes {
  --lane-size: clamp(64px, 8vw, 106px);
  --chicken-step: 0;
  display: grid;
  grid-template-columns: repeat(9, var(--lane-size));
  width: max-content;
  min-height: clamp(250px, 34vw, 420px);
  position: relative;
  overflow: hidden;
  border-block: 4px solid #68795e;
}
.chicken-verge {
  background: repeating-linear-gradient(125deg, #455c3b 0 15px, #4d6141 15px 29px);
  border-right: 5px solid #b2a27d;
}
.chicken-lane {
  position: relative;
  background: linear-gradient(90deg, #303839, #343f41 52%, #2b3437);
}
.chicken-lane::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: repeating-linear-gradient(#e1d5a66b 0 17px, transparent 17px 32px);
}
.chicken-lane > span {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  border: 1px solid #7e8a77;
  background: #1f282c;
  color: #f1f5dc;
  border-radius: 7px;
  padding: 4px 5px;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap;
}
.chicken-lane[data-crossed="true"] > span { background: #b7ee78; color: #19291e; border-color: #e4fabf; }
.chicken-car {
  position: absolute;
  left: 50%;
  top: -95px;
  width: clamp(23px, 3vw, 40px);
  height: clamp(53px, 6vw, 78px);
  border: 2px solid #161d22;
  border-radius: 10px 10px 7px 7px;
  background: radial-gradient(ellipse at 15% 9%, #fff9d4 0 7%, transparent 8%),
    radial-gradient(ellipse at 85% 9%, #fff9d4 0 7%, transparent 8%),
    linear-gradient(90deg, #ad4939, #f57950 50%, #80303a);
  box-shadow: 0 5px 8px #131c1eaa, 4px 10px 4px #171e2280;
  animation: chicken-traffic calc(3.4s + var(--lane-index) * .37s) linear infinite;
  animation-delay: calc(var(--lane-index) * -.89s);
}
.chicken-car::before {
  content: "";
  position: absolute;
  inset: 25% 10% 20%;
  border-radius: 5px;
  border-block: 6px solid #344451;
  background: linear-gradient(140deg, #c3dfe0, #547685 34%, #294253 35% 68%, #9abec8);
}
.chicken-lane:nth-child(3n) .chicken-car { filter: hue-rotate(120deg); animation-direction: reverse; }
.chicken-lane:nth-child(3n + 1) .chicken-car { filter: hue-rotate(205deg); }
.chicken-runner {
  position: absolute;
  top: 53%;
  left: calc(var(--lane-size) * (var(--chicken-step) + .5));
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: clamp(28px, 5vw, 55px);
  transition: left .36s cubic-bezier(.2,.9,.4,1.1), filter .3s ease;
  filter: drop-shadow(0 4px 2px #171e24);
}
.chicken-lanes[data-hit="true"] .chicken-runner { filter: grayscale(.8); opacity: .72; }
@keyframes chicken-traffic {
  from { top: -95px; transform: translateX(-50%); }
  to { top: 105%; transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .chicken-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .chicken-car { animation: none; top: calc(9% + var(--lane-index) * 4%); transform: translateX(-50%); }
  .chicken-runner { transition: none; }
}

.chicken-lane[data-collision="true"] > .chicken-car {
  z-index: 2;
  top: 53%;
  transform: translate(-50%, -50%) rotate(-12deg);
  animation: chicken-collision .65s ease-out both;
}
.chicken-lane[data-collision="true"]::after {
  content: "✹";
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -70%);
  color: #ffdc7f;
  font-size: 2.2rem;
  text-shadow: 0 0 9px #e75e30, 0 2px 3px #251a14;
  animation: chicken-impact .35s .42s both;
}
@keyframes chicken-collision {
  0% { top: -90px; transform: translate(-50%, -50%); }
  66% { top: 53%; transform: translate(-50%, -50%); }
  82% { top: 55%; transform: translate(-50%, -50%) rotate(-17deg); }
  100% { top: 53%; transform: translate(-50%, -50%) rotate(-12deg); }
}
@keyframes chicken-impact {
  0% { opacity: 0; transform: translate(-50%, -70%) scale(.4); }
  55% { opacity: 1; transform: translate(-50%, -70%) scale(1.4); }
  100% { opacity: 1; transform: translate(-50%, -70%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .chicken-lane[data-collision="true"] > .chicken-car,
  .chicken-lane[data-collision="true"]::after { animation: none; }
}


.vip-rank-section { margin-top: 20px; }
.vip-rank-section .panel-title { align-items: center; }
.vip-rank-section h3 { margin: 0; }
.vip-rank-arrows { display: flex; gap: 6px; }
.vip-rank-arrows button { min-width: 38px; padding: 4px 9px; font-size: 1.25rem; }
.vip-rank-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(118px, 34vw, 164px);
  gap: 12px;
  padding: 5px 2px 12px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #536649 #202733;
}
.vip-rank-card {
  --rank-light: #f6c5a0;
  --rank-mid: #b87553;
  --rank-shadow: #513326;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto auto auto 1.2em;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid #414a55;
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 18%, var(--rank-shadow), #202632 70%);
}
.vip-rank-card[data-family="silver"] { --rank-light: #e4ecf5; --rank-mid: #9cabc2; --rank-shadow: #39465c; }
.vip-rank-card[data-family="gold"] { --rank-light: #fff1a9; --rank-mid: #e5ab44; --rank-shadow: #5b431e; }
.vip-rank-card[data-family="platinum"] { --rank-light: #d3fffc; --rank-mid: #59c7ba; --rank-shadow: #254b50; }
.vip-rank-card[data-family="diamond"] { --rank-light: #e0dfff; --rank-mid: #9f94ef; --rank-shadow: #40396a; }
.vip-rank-card[data-family="obsidian"] { --rank-light: #edd4ff; --rank-mid: #a568ba; --rank-shadow: #492c56; }
.vip-rank-card[aria-current] {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.vip-rank-card > span:not(.vip-emblem) { color: var(--muted); font-size: .78rem; }
.vip-rank-card > small { color: var(--green); font-weight: 750; }
.vip-emblem {
  width: 57px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  clip-path: polygon(50% 0, 92% 22%, 86% 69%, 50% 100%, 14% 69%, 8% 22%);
  background: conic-gradient(from 30deg, var(--rank-light), var(--rank-mid), var(--rank-shadow), var(--rank-light), var(--rank-mid), var(--rank-light));
  color: var(--rank-light);
  text-shadow: 0 1px 1px #151922;
  font-weight: 850;
  font-size: 1.05rem;
}
.vip-emblem::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  clip-path: inherit;
  background: linear-gradient(145deg, var(--rank-shadow), #222935);
}
[dir="rtl"] .vip-rank-arrows button, [dir="rtl"] .sports-menu-arrow { transform: scaleX(-1); }

.sports-menu {
  width: min(100%, 420px);
  margin-block: 12px 18px;
  border: 1px solid #3c4955;
  border-radius: 12px;
  background: #202832;
  overflow: hidden;
}
.sports-menu ul { padding: 4px; margin: 0; list-style: none; }
.sports-menu-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 8px 12px;
  text-align: start;
  background: transparent;
  color: var(--text);
}
.sports-menu-row:hover, .sports-menu-row[aria-current] { background: #36463d; }
.sports-menu-row[aria-current] { color: var(--green); }
.sports-menu-back { border-bottom: 1px solid #3c4955; border-radius: 0; }
.sports-menu-icon, .sports-menu-arrow { color: #acc4ca; font-size: 1.22rem; }
.sports-menu-row > strong + .sports-menu-arrow { margin-inline-start: auto; }
.league-flag {
  flex: 0 0 22px;
  height: 15px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #fff3;
  background: #8699a8;
}
.league-flag[data-country="nl"] { background: linear-gradient(#ac2630 33.33%, #fff 0 66.66%, #275292 0); }
.league-flag[data-country="en"] { background: linear-gradient(90deg, transparent 42%, #cf2631 0 58%, transparent 0), linear-gradient(#fff 39%, #cf2631 0 61%, #fff 0); }
.league-flag[data-country="de"] { background: linear-gradient(#202025 33.33%, #d43d37 0 66.66%, #f4c252 0); }
.league-flag[data-country="fr"] { background: linear-gradient(90deg, #244884 33.33%, #fff 0 66.66%, #d33c44 0); }
.league-flag[data-country="es"] { background: linear-gradient(#c92e3c 25%, #ffce45 0 75%, #c92e3c 0); }
.league-flag[data-country="it"] { background: linear-gradient(90deg, #278957 33.33%, #fff 0 66.66%, #d23e49 0); }

.lobby-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -.055em;
}
.lobby-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
}
.lobby-destination {
  min-width: 0;
  min-height: clamp(105px, 14vw, 166px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid #4c6965;
  border-radius: 13px;
  color: #f3faec;
  text-align: start;
  background-color: #172d2a;
  background-repeat: no-repeat;
  background-size: cover, auto 160%;
  background-position: center, right center;
}
.lobby-destination:hover { border-color: var(--green); background-color: #203c30; }
.lobby-casino { background-image: linear-gradient(90deg, #132522 12%, #13252200 100%), url("lobby-art/blackjack.webp"); }
.lobby-sports { background-image: linear-gradient(90deg, #142523 12%, #14252300 100%), url("lobby-art/sportbook.webp"); }
.lobby-destination strong { font-size: clamp(1rem, 2.3vw, 1.75rem); font-weight: 800; }
.lobby-destination span { color: #d5faab; font-size: 1.16rem; }
[dir="rtl"] .lobby-destination { background-position: center, left center; }
[dir="rtl"] .lobby-casino { background-image: linear-gradient(270deg, #132522 12%, #13252200 100%), url("lobby-art/blackjack.webp"); }
[dir="rtl"] .lobby-sports { background-image: linear-gradient(270deg, #142523 12%, #14252300 100%), url("lobby-art/sportbook.webp"); }
.lobby-shelf { margin-top: clamp(18px, 3vw, 30px); }
.lobby-shelf-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lobby-shelf-heading h2 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.4rem); }
.lobby-arrows { display: flex; gap: 6px; }
.lobby-arrows button { min-width: 34px; padding: 3px 9px; font-size: 1.15rem; }
[dir="rtl"] .lobby-arrows button { transform: scaleX(-1); }
.game-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(122px, 14vw, 170px);
  gap: clamp(7px, 1vw, 12px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: #536649 #202733;
  margin-top: 8px;
  padding: 3px 3px 9px;
}
.game-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  aspect-ratio: 4 / 5;
  padding: 9px 10px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #536456;
  border-radius: 10px;
  color: #fffdf6;
  background-color: #2c443a;
  background-image: linear-gradient(180deg, transparent 38%, #10181423 58%, #101814ee 100%), var(--cover);
  background-size: cover;
  background-position: center;
  transition: border-color .18s ease, filter .18s ease;
}
.game-tile:hover { border-color: var(--green); filter: brightness(1.13); }
.game-tile[data-open="blackjack"] { --cover: url("lobby-art/originals/blackjack.webp"); }
.game-tile[data-open="baccarat"] { --cover: url("lobby-art/originals/baccarat.webp"); }
.game-tile[data-open="coinflip"] { --cover: url("lobby-art/originals/coinflip.webp"); }
.game-tile[data-open="orbit"] { --cover: url("lobby-art/originals/orbit.webp"); }
.game-tile[data-open="dice"] { --cover: url("lobby-art/originals/dice.webp"); }
.game-tile[data-open="roulette"] { --cover: url("lobby-art/originals/roulette.webp"); }
.game-tile[data-open="plinko"] { --cover: url("lobby-art/originals/plinko.webp"); }
.game-tile[data-open="slots"] { --cover: url("lobby-art/originals/slots.webp"); }
.game-tile[data-open="mines"] { --cover: url("lobby-art/originals/mines.webp"); }
.game-tile[data-open="keno"] { --cover: url("lobby-art/originals/keno.webp"); }
.game-tile[data-open="chicken"] { --cover: url("lobby-art/originals/chicken.webp"); }
.tile-title { font-size: clamp(.94rem, 1.5vw, 1.22rem); font-weight: 850; text-shadow: 0 2px 5px #000; }
@media (prefers-reduced-motion: reduce) { .game-tile { transition: none; } }

.sidebar .site-menu { display: grid; gap: 10px; }
.menu-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sidebar .menu-quick button { justify-content: center; gap: 4px; padding-inline: 4px; font-size: .76rem; }
.menu-group {
  padding-bottom: 3px;
  border: 1px solid #373e50;
  border-radius: 11px;
  background: #202735;
  overflow: hidden;
}
.menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 10px;
  color: #e6edeb;
  background: #283142;
  font-size: .83rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after { content: '›'; color: var(--green); }
.menu-group[open] summary::after { transform: rotate(90deg); }
.sidebar .menu-group button { padding: 7px 9px; gap: 6px; font-size: .82rem; white-space: normal; }
.monthly-heading { align-items: start; gap: 8px; }
.monthly-heading h2, .monthly-heading p { margin: 0; }
.monthly-heading p { color: var(--muted); }
.monthly-heading label { display: grid; gap: 4px; font-size: .8rem; }
.monthly-heading select { background: var(--rail); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 7px; }
.monthly-prize {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid #5b7650;
  border-radius: 12px;
  background: radial-gradient(ellipse at right top, #334435, #202936);
}
.monthly-prize strong { color: var(--green); font-size: clamp(1.6rem, 5vw, 2.7rem); }
.monthly-board table { border-collapse: separate; border-spacing: 0 5px; font-size: clamp(.75rem, 2vw, 1rem); }
.monthly-board tbody tr { background: #202b37; }
.monthly-board tbody tr.monthly-self { background: #33453b; }
.monthly-board td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.monthly-board td:nth-child(2) { white-space: normal; }
.monthly-board td:last-child { color: #ebf7d8; font-weight: 800; }
@media (max-width: 760px) {
  .sidebar:has(.site-menu) { overflow: visible; }
  .sidebar .site-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .menu-quick { grid-column: 1 / -1; }
  .menu-group summary { padding: 6px; }
  .sidebar .menu-group button { width: 100%; padding: 5px 6px; font-size: .75rem; gap: 4px; }
  .monthly-board td, .monthly-board th { padding: 6px 4px; }
}

.bonus-balance {
  padding: 6px 9px;
  border: 1px solid #79658d;
  border-radius: 8px;
  color: #efe2ff;
  background: #30243d;
  font-size: .85rem;
}
.bonus-terms { margin: 0; color: var(--muted); font-size: .86rem; }

.wallet-choice-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.wallet-choice-group legend { margin-bottom: 7px; color: var(--muted); font-size: .87rem; }
.coin-choice-list, .bonus-choice-grid { display: grid; gap: 7px; }
.bonus-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#bank-form .wallet-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 9px;
  position: relative;
  border: 1px solid #445362;
  border-radius: 9px;
  background: #242e3a;
  color: var(--text);
  cursor: pointer;
}
#bank-form .wallet-choice:hover { background: #2d3b46; }
#bank-form .wallet-choice:has(input:checked) { border-color: var(--green); background: #2c3d35; }
#bank-form .wallet-choice:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
#bank-form .wallet-choice input[type="radio"] { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: var(--green); }
.wallet-choice img, .wallet-choice-emblem { flex: 0 0 auto; }
.wallet-choice strong, .wallet-choice small { display: block; }
.wallet-choice small { color: var(--muted); line-height: 1.25; }
.wallet-choice-emblem {
  display: grid;
  place-items: center;
  width: 25px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #3e5241;
  color: #ddffc9;
}
.bonus-choice-grid .wallet-choice:has(input[value="welcome"]) { background-image: radial-gradient(ellipse at top right, #9ac86d33, transparent 75%); }
@media (max-width: 470px) {
  #bank-form .bonus-choice-grid .wallet-choice { flex-wrap: wrap; gap: 5px; align-content: center; }
  .bonus-choice-grid .wallet-choice strong { font-size: .82rem; }
}

.bonus-balance-control { position: relative; }
.bonus-wager-tooltip {
  position: absolute;
  z-index: 20;
  inset-block-start: 100%;
  inset-inline-end: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #927bac;
  border-radius: 9px;
  background: #292136;
  color: #fff4ff;
  box-shadow: 0 8px 22px #0008;
  white-space: normal;
  font-size: .88rem;
}
@media (hover: none), (max-width: 620px) {
  .bonus-wager-tooltip {
    position: fixed;
    inset: auto 16px 16px;
    width: auto;
    max-width: none;
  }
}

.originals-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(7px, 1vw, 12px);
  margin-top: 10px;
}
.originals-grid .game-tile { width: 100%; }
@media (max-width: 1000px) { .originals-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .originals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .originals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.engine-game-tile { --cover: radial-gradient(ellipse at top, #49715b, #1c2f31 73%); }
.engine-game { display: grid; align-content: start; gap: .35rem; min-width: 0; }

.engine-player { padding: 0; overflow: hidden; }
.engine-player-toolbar { padding: 12px 16px; flex-wrap: wrap; }
.engine-player-toolbar h2 { margin: 0; flex: 1 1 12rem; }
#engine-frame { background: #080a10; }
#engine-frame iframe {
  display: block;
  width: 100%;
  height: clamp(380px, 65dvh, 820px);
  border: 0;
}
@media (max-width: 760px) {
  #engine-frame iframe { height: max(360px, 65dvh); }
}

.engine-studio { min-width: 0; }
.engine-studio h3 { margin: 0; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.engine-game { scroll-snap-align: start; }
.engine-game-tile .tile-title { position: relative; }
.engine-game-tile:has(.engine-cover)::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(transparent 48%, #101814ee);
}
.engine-game-tile .tile-title { z-index: 1; }
.engine-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.engine-game .tile-title { overflow-wrap: anywhere; }

.studio-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #536456;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.studio-link:hover { border-color: var(--green); }
.studio-directory .studio-link { min-width: 0; min-height: 52px; background: #20342d; }
.lobby-arrows { flex-wrap: wrap; justify-content: flex-end; }
.engine-studio .lobby-shelf-heading { flex-wrap: wrap; }

/* Guest lobby */
.guest-lobby .lobby-heading,
.guest-lobby .lobby-destinations { display: none; }
.guest-hero {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 36vw, 510px);
  border: 1px solid #28656b;
  border-radius: 24px 24px 0 0;
  color: #f8fffd;
  text-align: center;
  background: linear-gradient(0deg, #0b171f 0%, transparent 32%),
    radial-gradient(ellipse at center, #071a23e8, #08192150 56%, transparent 84%),
    url('/lobby-art/welcome.webp') center / cover, #103b40;
}
.guest-hero-copy { display: grid; justify-items: center; gap: 12px; padding: clamp(22px, 4vw, 52px) 16px; }
.guest-hero p { margin: 0; font-size: clamp(.9rem, 1.6vw, 1.18rem); color: #e1f2f3; }
.guest-hero .guest-offer-rate {
  color: #8bffd9;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  font-weight: 950;
  letter-spacing: -.075em;
  line-height: .85;
  text-shadow: 0 0 32px #43ffba69;
}
.guest-hero h2, .guest-catalog h2, #guest-details h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.guest-hero h2 { font-size: clamp(1.9rem, 5.5vw, 5.3rem); text-transform: uppercase; }
.guest-hero button, .guest-register button, .guest-catalog-actions a {
  background: #91fbd5;
  color: #0c3029;
  font-weight: 800;
  padding: .78rem 1.35rem;
  border: 1px solid #c4ffea;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 9px 28px #55fbb628;
}
.guest-hero button { margin-top: 8px; }
.guest-hero small { color: #c9dedf; }
.guest-catalog {
  padding: clamp(26px, 4vw, 48px) 14px;
  border-radius: 0 0 24px 24px;
  border-inline: 1px solid #274b50;
  border-bottom: 1px solid #274b50;
  text-align: center;
  background: radial-gradient(ellipse at top, #19453e80, transparent 68%), #0b171f;
}
.guest-catalog h2 { font-size: clamp(2rem, 6vw, 4.6rem); text-transform: uppercase; }
#guest-game-count { color: #8bffd9; font-variant-numeric: tabular-nums; }
.guest-catalog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.guest-rewards, .guest-payments, .guest-register { margin-top: clamp(26px, 5vw, 60px); padding: clamp(20px, 4vw, 48px); border-radius: 22px; }
#guest-details h2 { font-size: clamp(1.6rem, 4vw, 3.6rem); }
.guest-rewards {
  background: radial-gradient(ellipse at 18% 0%, #5b457e, transparent 62%), linear-gradient(150deg, #1d1a32, #49306c);
  border: 1px solid #71659b;
  text-align: center;
}
.guest-rewards ul, .guest-payments ul { list-style: none; padding: 0; margin: 0; gap: 12px; }
.guest-rewards ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.guest-rewards li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 8px 12px;
  border-radius: 13px;
  background: #f5f1ff;
  color: #2c2141;
  text-align: start;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.guest-rewards li span {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 9px;
  background: #ded3fc;
  color: #533687;
  font-size: 1.2rem;
}
.guest-payments {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  background: radial-gradient(ellipse at right, #244944, transparent 80%), #14232c;
  border: 1px solid #2b494d;
}
.guest-payments p { margin-bottom: 0; }
.guest-payments ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.guest-payments li {
  display: grid;
  align-content: space-between;
  justify-items: center;
  gap: 12px;
  aspect-ratio: 3 / 4.35;
  padding: 14% 3%;
  border: 1px solid #ffffff42;
  border-radius: 10px;
  background: linear-gradient(148deg, #50351b, #92521e);
  color: #fff;
  font-size: clamp(.72rem, 1.4vw, 1rem);
  font-weight: 800;
}
.guest-payments li:nth-child(2) { background: linear-gradient(148deg, #185343, #16806b); }
.guest-payments li:nth-child(3) { background: linear-gradient(148deg, #224a78, #3162b2); }
.guest-payments li:nth-child(4) { background: linear-gradient(148deg, #31363e, #535c66); }
.guest-payments li:nth-child(5) { background: linear-gradient(148deg, #561d38, #a53160); }
.guest-payments img { width: 63%; max-width: 56px; aspect-ratio: 1; object-fit: contain; }
.guest-register { text-align: center; background: linear-gradient(125deg, #152c31, #1e3939); }
.guest-register button { margin-top: 20px; }
@media (max-width: 760px) {
  .guest-rewards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-payments { grid-template-columns: 1fr; }
  .guest-payments ul { gap: 6px; }
}
@media (max-width: 380px) {
  .guest-rewards li { gap: 7px; padding-inline: 7px; }
}
