:root {
  --bg: #090b19;
  --panel: #15182e;
  --muted: #aeb4ce;
  --violet: #ab8aff;
  --arcade-line: #b6baff29;
  --arcade-ink: #edf0ff;
}

.lobby .hero {
  overflow: hidden;
  min-height: 390px;
  border-color: #b7a3ff57;
  background: linear-gradient(90deg, #0c0d26ed 8%, #0c0d26aa 33%, transparent 76%),
    #101136 url("skyport.webp") center 48% / cover no-repeat;
}
.lobby .hero-copy { max-width: 530px; }
.lobby .hero-copy h1 { font-family: "DM Sans", "Segoe UI", sans-serif; font-weight: 800; letter-spacing: -.075em; }
.lobby .hero-copy h1 i { color: #b688ff; font-style: normal; }
.lobby .hero-copy .eyebrow { color: #c9bcff; }
.lobby .hero-copy p { color: #e4e6f9; }
.lobby .primary-btn, .arena .primary-btn {
  background: linear-gradient(115deg, #6749f1, #873dd8);
  color: #fff;
  border: 1px solid #d5c9ff57;
  box-shadow: 0 7px 26px #6b3fed55;
  letter-spacing: .01em;
}
.lobby .primary-btn span { margin-left: 9px; }
.catalog-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 13px; }
.catalog-head h1, .arena-title h2 { margin: 0; font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -.045em; }
.catalog-head h1 { font-family: inherit; line-height: 1.12; }
.catalog-head > span { color: var(--muted); font-size: 13px; }
.lobby .games { gap: 12px; }
.lobby .game-card {
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 1.15;
  display: flex;
  align-items: flex-start;
  justify-content: end;
  flex-direction: column;
  padding: clamp(11px, 2vw, 19px);
  gap: 7px;
  border: 1px solid var(--arcade-line);
  border-radius: 17px;
  background: #222743;
}
.lobby .game-card::before, .lobby .game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
}
.lobby .game-card::before { z-index: -2; transform: none; transition: transform .24s; }
.lobby .game-card::after { z-index: -1; background: linear-gradient(0deg, #0c0e1bee 0%, #0c0e1b70 38%, transparent 72%); }
.lobby .game-card:hover, .lobby .game-card:focus-visible { border-color: #b89cfa; }
.lobby .game-card:hover::before { transform: scale(1.055); }
.lobby .game-copy b { font-family: "DM Sans", "Segoe UI", sans-serif; font-size: clamp(17px, 2vw, 26px); letter-spacing: -.04em; }
.lobby .game-copy small { color: #d3d8ef; font-size: clamp(10px, 1.1vw, 13px); }
.lobby .game-card .arrow { position: absolute; top: 9px; right: 9px; bottom: auto; margin: 0; padding: 2px 6px; border-radius: 7px; color: white; background: #080a2680; }
.lobby .flight-card::before { background: url("skyport.webp") 79% 45% / cover; }
.lobby .plinko-card::before, .lobby .mines-card::before, .lobby .roulette-card::before, .lobby .slots-card::before {
  background-image: url("arcade-covers.webp");
  background-size: 200% 200%;
}
.lobby .plinko-card::before { background-position: left top; }
.lobby .mines-card::before { background-position: right top; }
.lobby .roulette-card::before { background-position: left bottom; }
.lobby .slots-card::before { background-position: right bottom; }
.lobby .blackjack-card::before { background: url("night-table.webp") 84% 91% / 180% auto; }
.lobby .blackjack-card .game-art { display: none; }
.bottom-nav button.active { background: #7954e8; color: white; }
.demo-badge { border-color: #c2b9ff43; color: #cfc6fb; background: #8577ce15; }
.odds { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--arcade-line); border-radius: 12px; background: #15182e; }
.odds summary { cursor: pointer; font-weight: 750; color: var(--arcade-ink); }
.odds p, .odds dl { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.odds dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 12px; }
.odds dt { color: var(--arcade-ink); font-weight: 700; }
.odds dd { margin: 0; }

.arena { max-width: 780px; margin: 0 auto; color: var(--arcade-ink); }
.arena-title { margin: 4px 0 16px; }
.arena-title p { color: var(--muted); font-size: 14px; margin: 4px 0 0; line-height: 1.45; }
.arena-field { position: relative; overflow: hidden; border: 1px solid var(--arcade-line); border-radius: 20px; box-shadow: 0 20px 40px #03040d80; }
.arena-field canvas { display: block; width: 100%; height: auto; }
.flight-field {
  background:
    radial-gradient(ellipse at 81% 12%, #7140c467, transparent 56%),
    radial-gradient(ellipse at 17% 100%, #21429770, transparent 57%),
    linear-gradient(140deg, #12132f, #090d22 74%);
}
.flight-field::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(95deg, #0d0a269c, transparent 80%); }
.flight-field canvas, .flight-number { position: relative; z-index: 1; }
.flight-number { position: absolute; top: 11%; left: 6%; color: #fff; font-size: clamp(43px, 12vw, 106px); font-weight: 800; letter-spacing: -.075em; line-height: 1; text-shadow: 0 4px 22px #08051f, 0 0 26px #793cee9e; font-variant-numeric: tabular-nums; }
.flight-number[data-tone=good], .arena-status[data-tone=good] { color: #9af4c9; }
.flight-number[data-tone=bad], .arena-status[data-tone=bad] { color: #ff91ac; }
.arena-controls { margin-top: 13px; padding: 14px; border: 1px solid var(--arcade-line); border-radius: 15px; background: #171a2f; }
.arena-controls .primary-btn { min-height: 47px; width: 100%; border-radius: 11px; }
.arena-controls .cash-btn { background: linear-gradient(105deg, #196d61, #12794d); box-shadow: none; }
.arena-controls .stake-row { margin: 0 0 13px; }
.arena-controls .stake { min-height: 39px; }
.arena-controls .stake.active { border-color: #ba9eff; background: #704be439; color: #e3d8ff; }
.arena-status { min-height: 24px; margin: 0 0 10px; text-align: center; font-weight: 700; font-size: 14px; }
.plinko-field { background: radial-gradient(ellipse at 50% 4%, #174e67, transparent 68%), #0b1425; }
.plinko-board { position: relative; }
.plinko-ball-position { position: absolute; inset: 0; pointer-events: none; }
.plinko-ball-position span {
  position: absolute; top: 0; left: 0; width: clamp(12px, 3.2vw, 20px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #efffff, #28ddae 78%);
  box-shadow: 0 0 11px #51ffb6a0;
}
.plinko-bins { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin: 0 2.2% 12px; }
.plinko-bins span { border: 1px solid #5ae1c340; border-radius: 6px; background: #124342; padding: 5px 0; text-align: center; color: #d5fff3; font-weight: 800; font-size: clamp(10px, 2.8vw, 16px); }
.plinko-bins span[data-tone=edge] { background: #642f49; border-color: #ffafd461; }
.plinko-bins span[data-tone=warm] { background: #553d20; border-color: #e4b4605c; }
.plinko-bins span[data-tone=cool] { background: #202c52; border-color: #718de657; }
.plinko-bins span.landed { border-color: #fff; box-shadow: 0 0 15px #8affe7a0; transform: translateY(-2px); }
.mines-field { padding: clamp(10px, 3vw, 25px); background: radial-gradient(ellipse at 40% -10%, #22625866, transparent 61%), #0c1826; }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(5px, 1.6vw, 10px); max-width: 520px; margin: 0 auto; }
.mine-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1.13; padding: 0; border: 1px solid #83a0cb53; border-radius: 9px; background: linear-gradient(150deg, #354968, #27354b); box-shadow: inset 0 1px 0 #c9dcff42, 0 3px 0 #070c18; }
.mine-tile:not(:disabled):hover { background: #3e5376; border-color: #b3d2ff; }
.mine-tile:disabled { opacity: .78; }
.mine-tile::after { content: ""; width: 12%; min-width: 4px; aspect-ratio: 1; background: #aecbff66; border-radius: 50%; }
.mine-tile[data-tile=gem] { opacity: 1; background: linear-gradient(145deg, #1d6458, #103d3c); border-color: #48eec79a; }
.mine-tile[data-tile=gem]::after { width: 38%; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #ddfff2 12%, #62eec6 43%, #169c96 44%, #1bcdb9 73%); box-shadow: 0 0 14px #4de7bc88; animation: gem-reveal .23s ease-out; }
@keyframes gem-reveal { from { opacity: .4; transform: rotate(45deg) scale(.5); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
.mine-tile[data-tile=trap], .mine-tile[data-tile=hit] { border-color: #ab5994; background: #3b2340; }
.mine-tile[data-tile=hit] { opacity: 1; border-color: #ff82a4; background: #782c49; }
.mine-tile[data-tile=trap]::after, .mine-tile[data-tile=hit]::after { content: "×"; width: auto; aspect-ratio: auto; background: none; color: #ffa8cf; font-size: clamp(18px, 5vw, 41px); font-weight: 800; }

@media (max-width: 520px) {
  .lobby .hero { min-height: 320px; background-position: 70% 44%; background-image: linear-gradient(0deg,#0d0e25 4%,#0d0e25de 21%,#0d0e2533 64%,transparent 100%), url("skyport.webp"); }
  .lobby .hero-copy p { margin-bottom: 15px; }
  .lobby .games { gap: 9px; }
  .lobby .game-card .arrow { display: inline-block; font-size: 13px; right: 7px; top: 7px; }
  .arena-field { border-radius: 14px; }
  .arena-controls { padding: 11px; }
}
