:root {
  color-scheme: dark;
  --bg: #10130f;
  --panel: #181d18;
  --panel-raised: #20271f;
  --line: rgba(215, 233, 197, .1);
  --text: #f4f5eb;
  --muted: #929c8b;
  --green: #b8ff62;
  --green-dark: #81bf38;
  --pink: #ff82b7;
  --gold: #ffc75c;
  --shadow: 0 22px 60px rgba(0, 0, 0, .26);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 16% -12%, rgba(97, 147, 48, .15), transparent 42rem),
    radial-gradient(ellipse at 90% 65%, rgba(164, 97, 151, .07), transparent 35rem),
    var(--bg);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .11;
  pointer-events: none;
}
.ambient-one { top: 10rem; left: -14rem; background: var(--green); }
.ambient-two { right: -15rem; bottom: 3rem; background: #ab65e6; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 15, .9);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.brand-name small { display: block; margin-top: 4px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; font-weight: 500; letter-spacing: .13em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.page-nav { position: relative; display: flex; min-width: 0; flex: 0 1 auto; gap: 2px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(32, 39, 31, .68); scrollbar-width: none; }
.page-nav::-webkit-scrollbar { display: none; }
.page-nav a { position: relative; z-index: 1; flex: 0 0 auto; padding: 10px 11px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; transition: color .2s; }
.page-nav a:hover, .page-nav a[aria-current="page"] { color: var(--text); }
.nav-indicator { position: absolute; z-index: 0; top: 0; left: 0; border: 1px solid rgba(184, 255, 98, .28); border-radius: 999px; background: rgba(184, 255, 98, .13); opacity: 0; transition: transform .28s cubic-bezier(.3, .9, .4, 1), width .28s, height .28s, opacity .2s; pointer-events: none; }
.account { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.credits { color: var(--green); font-family: "DM Mono", monospace; font-size: 13px; font-weight: 500; white-space: nowrap; }
.account-avatar { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.account-name { max-width: 100px; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--green);
  color: #1b2512;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .16s, background .16s, opacity .16s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); background: #cbff91; }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button-quiet { border-color: var(--line); background: var(--panel); color: var(--text); }
.button-quiet:hover:not(:disabled) { background: var(--panel-raised); }
.button-pink { background: var(--pink); color: #29121d; }
.button-small { min-height: 36px; padding-inline: 12px; border-radius: 9px; font-size: 12px; }

.page-shell { width: min(1320px, calc(100% - 48px)); min-height: calc(100vh - 148px); margin: 0 auto; padding: 48px 0 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); content: ""; }
.hero { position: relative; display: grid; min-height: 325px; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); align-items: center; gap: 30px; overflow: hidden; padding: clamp(28px, 6vw, 72px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(130deg, rgba(184, 255, 98, .11), transparent 60%), linear-gradient(320deg, rgba(179, 105, 213, .1), transparent 60%), var(--panel); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 700px; margin: 20px 0 15px; font-size: clamp(42px, 7vw, 80px); line-height: .98; letter-spacing: -.075em; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 520px; margin: 0; color: #aeb7a7; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.hero-art { position: relative; display: grid; min-height: 220px; place-items: center; perspective: 700px; }
.hero-orbit { position: absolute; width: min(26vw, 280px); aspect-ratio: 1; border: 1px solid rgba(184, 255, 98, .22); border-radius: 50%; transform: rotateX(67deg) rotate(-28deg); box-shadow: 0 0 70px rgba(184, 255, 98, .08), inset 0 0 50px rgba(184, 255, 98, .05); }
.hero-orbit::before, .hero-orbit::after { position: absolute; inset: 17%; border: 1px solid rgba(184, 255, 98, .13); border-radius: 50%; content: ""; }
.hero-orbit::after { inset: 36%; }
.hero-card { position: absolute; display: grid; width: 88px; height: 126px; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: linear-gradient(145deg, #343d32, #1d251c); box-shadow: 0 17px 38px rgba(0, 0, 0, .45); font-size: 38px; }
.hero-card.card-one { transform: translate(-33px, -10px) rotate(-17deg); color: var(--pink); }
.hero-card.card-two { transform: translate(38px, 0) rotate(14deg); color: var(--green); }
.hero-chip { position: absolute; right: 6%; bottom: 7%; display: grid; width: 56px; height: 56px; place-items: center; border: 7px dashed rgba(184, 255, 98, .65); border-radius: 50%; background: var(--green); color: #1b2512; font-family: "DM Mono", monospace; font-weight: 700; box-shadow: 0 8px 32px rgba(184, 255, 98, .3); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 48px 0 18px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.game-card { position: relative; display: flex; min-height: 174px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 70%), var(--panel); transition: transform .2s, border-color .2s, background .2s; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(184, 255, 98, .36); background-color: var(--panel-raised); }
.game-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(184, 255, 98, .22); border-radius: 14px; background: rgba(184, 255, 98, .07); color: var(--green); font-size: 22px; }
.game-card h3 { margin: 18px 0 4px; font-size: 15px; }
.game-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.game-card .arrow { position: absolute; top: 21px; right: 20px; color: var(--muted); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; margin-top: 30px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(24, 29, 24, .88); }
.panel h2, .panel h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.feed { display: grid; gap: 9px; }
.feed-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.feed-row:last-child { border: 0; }
.positive { color: var(--green); }
.negative { color: var(--pink); }
.stat-list { display: grid; gap: 14px; margin: 20px 0; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.stat-row strong { color: var(--text); font-family: "DM Mono", monospace; font-size: 14px; font-weight: 500; }
.disclaimer { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid rgba(255, 199, 92, .16); border-radius: 14px; background: rgba(255, 199, 92, .05); color: #d6c89e; font-size: 11px; line-height: 1.65; }
.disclaimer strong { display: block; margin-bottom: 3px; color: var(--gold); font-size: 12px; }

.game-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.game-header h1 { margin: 10px 0 7px; font-size: clamp(32px, 5vw, 50px); letter-spacing: -.065em; }
.game-header p { margin: 0; color: var(--muted); font-size: 13px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.game-stage { position: relative; display: grid; min-height: 440px; align-content: center; justify-items: center; gap: 18px; overflow: hidden; padding: clamp(20px, 5vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(ellipse at 50% 58%, rgba(116, 154, 73, .17), transparent 54%), linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 70%), var(--panel); }
.game-stage::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(184, 255, 98, .13) 1px, transparent 1px); background-size: 24px 24px; opacity: .18; content: ""; pointer-events: none; }
.game-stage > * { position: relative; z-index: 1; }
.bet-panel { align-self: start; }
.bet-panel h2 { margin-bottom: 18px; font-size: 15px; }
.field-label { display: flex; justify-content: space-between; margin: 15px 0 8px; color: #b9c2b2; font-size: 11px; font-weight: 700; }
.input-wrap { display: flex; height: 44px; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #111510; }
.input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-family: "DM Mono", monospace; font-size: 13px; }
.input-suffix { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.quick-bets { display: flex; gap: 6px; margin-top: 8px; }
.quick-bets button { flex: 1; padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-raised); color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.quick-bets button:hover { border-color: var(--green); color: var(--green); }
.bet-panel .button { width: 100%; margin-top: 16px; }
.result-line { min-height: 24px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 12px; text-align: center; }
.result-line.success { color: var(--green); }
.result-line.failure { color: var(--pink); }
.odds-note { color: var(--muted); font-size: 10px; line-height: 1.7; }

.playing-card { display: grid; width: 76px; height: 108px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 12px; background: linear-gradient(145deg, #fbfaf5, #dddccf); color: #252720; box-shadow: 0 11px 28px rgba(0, 0, 0, .3); font-family: "DM Mono", monospace; font-size: 29px; animation: card-deal .32s ease-out both; }
.playing-card.dealing { animation-delay: calc(var(--deal-order) * .28s); }
.playing-card.flip-reveal { animation: flip-reveal .45s ease-out both; }
.playing-card.red { color: #bf4265; }
.playing-card.back { border-color: rgba(184, 255, 98, .48); background: repeating-linear-gradient(45deg, #303c2a, #303c2a 5px, #263321 5px, #263321 10px); color: var(--green); }
.card-row { display: flex; min-height: 116px; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hand-block { display: grid; justify-items: center; gap: 8px; }
.hand-label { color: #aeb7a7; font-size: 11px; }
.hand-total { color: var(--green); font-family: "DM Mono", monospace; font-size: 12px; }
.dealer-label { margin: 0 0 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.blackjack-table { width: min(100%, 690px); display: grid; gap: 16px; justify-items: center; }
.blackjack-hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.blackjack-hand { min-width: 145px; padding: 12px; border: 1px solid transparent; border-radius: 14px; text-align: center; }
.blackjack-hand.active { border-color: rgba(184, 255, 98, .5); background: rgba(184, 255, 98, .06); }
.blackjack-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.face-card { display: grid; width: 168px; height: 235px; align-content: space-between; padding: 20px; border: 1px solid rgba(255, 255, 255, .27); border-radius: 18px; background: linear-gradient(145deg, #fbfaf5, #deddcf); color: #262a23; box-shadow: 0 18px 45px rgba(0, 0, 0, .36); animation: card-deal .45s cubic-bezier(.2,.8,.2,1) both; }
.face-card .face-rank { font-family: "DM Mono", monospace; font-size: 21px; }
.face-card .face-suit { align-self: center; justify-self: center; font-size: 70px; }
.face-card.red { color: #c14463; }
.placeholder-card { display: grid; width: 168px; height: 235px; place-items: center; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 18px; color: var(--muted); font-size: 12px; }
.choice-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.large-choice { min-width: 146px; min-height: 56px; font-size: 15px; }
.roulette-wheel-wrap { position: relative; width: 206px; aspect-ratio: 1; margin: 12px auto 20px; }
.roulette-wheel { position: absolute; inset: 0; overflow: hidden; border: 9px solid #b5924d; border-radius: 50%; background: repeating-conic-gradient(#20251e 0deg 9.73deg, #85323b 9.73deg 19.46deg); box-shadow: 0 0 0 7px #273126, 0 0 0 10px #55563e, 0 20px 45px rgba(0,0,0,.46); transition: transform 4.2s cubic-bezier(.12,.66,.12,1); }
.roulette-pocket { position: absolute; top: 50%; left: 50%; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff4d7; font-family: "DM Mono", monospace; font-size: 8px; font-weight: 800; }
.roulette-pocket.red { background: #a23740; }
.roulette-pocket.black { background: #11140f; }
.roulette-pocket.green { background: #277649; }
.roulette-hub { position: absolute; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; transform: translate(-50%,-50%); place-items: center; border: 4px solid #dfc37e; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #33432e, #141912 70%); color: var(--green); font-family: "DM Mono", monospace; font-size: 23px; font-weight: 800; }
.roulette-hub.red { color: #ff8891; }
.roulette-hub.black { color: #fff4d7; }
.roulette-hub.green { color: #8dffbb; }
.roulette-ball-track { position: absolute; z-index: 3; inset: -4px; transform: rotate(0deg); transition: transform 3.7s cubic-bezier(.2,.64,.13,1); pointer-events: none; }
.roulette-ball { position: absolute; top: 0; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); border: 1px solid #a79d84; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); }
.roulette-table { width: min(100%, 590px); padding: 10px; border: 1px solid rgba(221,198,133,.55); border-radius: 12px; background: radial-gradient(ellipse at center, #15563e, #0b3529 78%); box-shadow: inset 0 0 35px rgba(0,0,0,.3), 0 16px 36px rgba(0,0,0,.25); }
.roulette-mode-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #e2d7b9; font-size: 10px; }
.roulette-mode-label select { min-width: 0; padding: 7px 9px; border: 1px solid rgba(229,215,174,.42); border-radius: 7px; background: #102d23; color: #fff8e8; font-size: 10px; }
.roulette-number-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3px; }
.roulette-bet.zero { grid-column: 1 / -1; background: #176941; color: #eaffdb; font-size: 15px; }
.roulette-bet { position: relative; min-width: 0; min-height: 31px; padding: 4px 2px; border: 1px solid rgba(229,215,174,.56); border-radius: 4px; background: rgba(10,30,23,.68); color: #fff8e8; cursor: pointer; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 700; transition: filter .14s, transform .14s, box-shadow .14s; }
.roulette-bet:hover:not(:disabled) { z-index: 2; transform: translateY(-1px); filter: brightness(1.3); }
.roulette-bet.red { background: #9e2835; }
.roulette-bet.black { background: #131613; }
.roulette-bet.has-bet { box-shadow: inset 0 0 0 2px var(--green), 0 0 14px rgba(184,255,98,.35); }
.roulette-bet.pending { outline: 2px solid #fff0a2; outline-offset: 1px; }
.roulette-bet:disabled { cursor: wait; }
.roulette-bet-total { position: absolute; right: 2px; bottom: 1px; left: 2px; overflow: hidden; border-radius: 8px; background: var(--green); color: #14200d; font-size: 8px; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.roulette-column-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.roulette-column-bets .roulette-bet { font-size: 8px; }
.roulette-dozens, .roulette-outside-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 4px; }
.roulette-outside-bets { grid-template-columns: repeat(6, 1fr); }
.roulette-bet-summary { display: flex; width: min(100%, 590px); align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.range-wrap { width: min(100%, 360px); text-align: center; }
.range-wrap input { width: 100%; accent-color: var(--green); }
.range-value { color: var(--green); font-family: "DM Mono", monospace; font-size: 34px; }
.dice-face { display: grid; width: 116px; height: 116px; place-items: center; border: 1px solid rgba(184, 255, 98, .35); border-radius: 25px; background: linear-gradient(145deg, #2a3329, #171d16); color: var(--green); font-family: "DM Mono", monospace; font-size: 27px; box-shadow: var(--shadow); }
.slot-machine { display: flex; padding: 14px; border: 2px solid #897444; border-radius: 22px; background: linear-gradient(145deg, #49402c, #25241d); box-shadow: 0 16px 45px rgba(0, 0, 0, .42); }
.slot-reel { display: grid; width: clamp(75px, 15vw, 112px); height: 120px; place-items: center; margin: 4px; overflow: hidden; border-radius: 12px; background: #f2eedc; color: #273021; font-size: clamp(34px, 7vw, 58px); }
.slot-reel.spinning { animation: reel-spin .6s ease-in-out; }
.coin { display: grid; width: 150px; aspect-ratio: 1; place-items: center; border: 9px dashed #ffe6a0; border-radius: 50%; background: radial-gradient(circle at 35% 27%, #ffe99a, #df9d31 70%); color: #604317; font-family: "DM Mono", monospace; font-size: 24px; font-weight: 700; box-shadow: 0 16px 45px rgba(219, 160, 59, .3); }
.coin.flipping { animation: coin-flip .8s ease-in-out; }
.plinko-board { display: grid; grid-template-rows: repeat(12, 16px) 30px; gap: 7px; justify-items: center; width: min(100%, 560px); }
.peg-row { display: flex; justify-content: center; gap: clamp(7px, 2.5vw, 19px); }
.peg { width: 7px; height: 7px; border-radius: 50%; background: #a9b88f; box-shadow: 0 0 9px rgba(184, 255, 98, .42); }
.plinko-bin { display: flex; width: 100%; justify-content: space-around; gap: 2px; }
.plinko-bin span { display: grid; min-width: 0; flex: 1; place-items: center; border-radius: 5px; background: rgba(184, 255, 98, .09); color: var(--muted); font-family: "DM Mono", monospace; font-size: clamp(7px, 1.2vw, 10px); }
.plinko-bin span.winner { background: var(--green); color: #1a2511; }
.plinko-ball { position: absolute; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 16px var(--pink); pointer-events: none; transition: left .09s linear, top .09s linear; }
.mine-grid { display: grid; width: min(100%, 416px); grid-template-columns: repeat(5, 1fr); gap: 9px; }
.mine-tile { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid rgba(184, 255, 98, .1); border-radius: 12px; background: linear-gradient(145deg, #344332, #222d21); color: var(--green); cursor: pointer; font-size: 21px; transition: transform .15s, background .2s; }
.mine-tile:hover:not(:disabled) { transform: translateY(-3px); background: #3d5138; }
.mine-tile.safe { background: rgba(184, 255, 98, .12); animation: tile-pop .22s ease-out; }
.mine-tile.mine { background: rgba(255, 130, 183, .17); animation: tile-pop .22s ease-out; }
.mine-tile:disabled { cursor: default; }

.auth-card { width: min(460px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 19, 15, .94); box-shadow: var(--shadow); text-align: center; }
.auth-card h2 { margin: 0 0 7px; }
.auth-card p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-card .button { width: 100%; }
.loading { display: grid; min-height: 50vh; align-content: center; justify-items: center; color: var(--muted); font-size: 12px; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(380px, calc(100vw - 44px)); padding: 13px 16px; transform: translateY(12px); border: 1px solid var(--line); border-radius: 12px; background: #242d22; color: var(--text); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; font-size: 12px; line-height: 1.5; }
.toast.visible { transform: translateY(0); opacity: 1; }
.footer { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes card-deal { from { transform: translateY(-20px) rotate(-7deg) scale(.94); opacity: 0; } to { transform: translateY(0) rotate(0) scale(1); opacity: 1; } }
@keyframes flip-reveal { 0% { transform: rotateY(0); } 45% { transform: rotateY(90deg); filter: brightness(.7); } 100% { transform: rotateY(0); filter: brightness(1); } }
@keyframes reel-spin { 0% { transform: translateY(0); filter: blur(0); } 45% { transform: translateY(-16px) scaleY(.85); filter: blur(5px); } 100% { transform: translateY(0); filter: blur(0); } }
@keyframes coin-flip { 0% { transform: rotateY(0) scale(1); } 45% { transform: rotateY(720deg) scale(.84); } 100% { transform: rotateY(1440deg) scale(1); } }
@keyframes tile-pop { from { transform: scale(.82); opacity: .35; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; gap: 8px 18px; padding-top: 10px; padding-bottom: 9px; }
  .page-nav { order: 3; flex-basis: 100%; }
  .account { margin-left: auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 600px); padding-top: 24px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 30px 22px; }
  .hero-art { min-height: 175px; }
  .hero-orbit { width: 205px; }
  .hero h1 { font-size: 54px; }
  .dashboard-grid, .game-layout { grid-template-columns: 1fr; }
  .game-stage { min-height: 345px; padding: 23px 14px; }
  .bet-panel { order: -1; }
  .footer { flex-direction: column; justify-content: center; align-items: flex-start; padding: 16px 20px; line-height: 1.7; }
}
@media (max-width: 430px) {
  .topbar { padding-inline: 14px; }
  .brand { font-size: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .credits { font-size: 10px; }
  .account { gap: 6px; }
  .account-name { max-width: 70px; }
  .account .button { min-height: 37px; padding-inline: 11px; font-size: 11px; }
  .page-shell { width: calc(100% - 22px); }
  .game-grid { gap: 9px; }
  .game-card { min-height: 157px; padding: 14px; }
  .roulette-wheel-wrap { width: 184px; }
  .roulette-pocket { width: 18px; height: 18px; font-size: 7px; }
  .roulette-number-grid, .roulette-dozens, .roulette-outside-bets, .roulette-column-bets { gap: 2px; }
  .roulette-bet { min-height: 27px; font-size: 9px; }
  .roulette-column-bets .roulette-bet { font-size: 7px; }
  .roulette-outside-bets { grid-template-columns: repeat(3,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
