:root {
  --bg: #07080d;
  --bg-soft: #0d0f18;
  --panel: #11131d;
  --panel-2: #171925;
  --stroke: rgba(255,255,255,.1);
  --stroke-strong: rgba(255,255,255,.2);
  --text: #f8f5ee;
  --muted: #9b9ba8;
  --accent: #ffca66;
  --accent-2: #ff4f91;
  --accent-3: #79ffc9;
  --danger: #ff5b79;
  --success: #79ffc9;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 28px 90px rgba(0,0,0,.46);
}

html { scroll-behavior: smooth; }
body {
  background: #07080d;
  color: var(--text);
  min-height: 100vh;
}
body::selection { background: rgba(255,79,145,.35); color: #fff; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #07080d;
  font-weight: 800;
}
.skip-link:focus { transform: none; }
.ambient, .ambient-grid { position: fixed; pointer-events: none; z-index: 0; }
.ambient-one {
  width: 60vw; height: 60vw; left: -34vw; top: -20vw;
  background: radial-gradient(circle, rgba(255,79,145,.17), transparent 68%);
  filter: blur(24px);
}
.ambient-two {
  width: 55vw; height: 55vw; right: -28vw; bottom: -30vw;
  background: radial-gradient(circle, rgba(255,202,102,.12), transparent 68%);
  filter: blur(20px);
}
.ambient-grid {
  inset: 0;
  opacity: .12;
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(7,8,13,.86);
  backdrop-filter: blur(22px) saturate(140%);
}
.brand-v7 { gap: 12px; letter-spacing: 0; }
.brand-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,202,102,.45);
  border-radius: 13px;
  background: radial-gradient(circle at 35% 30%, rgba(255,202,102,.28), transparent 45%), #12131b;
  box-shadow: 0 0 32px rgba(255,79,145,.14);
}
.brand-emblem i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.brand-emblem i:nth-child(1) { transform: translate(-8px,-7px); }
.brand-emblem i:nth-child(2) { width: 6px; height: 6px; }
.brand-emblem i:nth-child(3) { transform: translate(8px,7px); background: var(--accent-2); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 16px; letter-spacing: .17em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 8px; letter-spacing: .22em; }
.site-header .nav { gap: 4px; }
.site-header .nav a {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
}
.site-header .nav a.active, .site-header .nav a:hover { background: rgba(255,255,255,.055); color: #fff; }
.site-header .nav a.active::after { left: 15px; right: 15px; bottom: 5px; background: linear-gradient(90deg,var(--accent-2),var(--accent)); }
.header-actions { gap: 8px; flex-wrap: nowrap; }
.wallet-pill, .user-pill, .header-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.035);
}
.wallet-pill { gap: 8px; font-size: 11px; color: var(--muted); }
.wallet-pill strong { color: #fff; font-size: 14px; }
.status-dot, .live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(121,255,201,.7); }
.header-btn { padding: 0 14px; font-size: 12px; }
.header-btn.primary, .submit-btn, .card-btn {
  background: linear-gradient(135deg, #ffd275, #ff9f5d 55%, #ff5a91);
  color: #151016;
  box-shadow: 0 14px 34px rgba(255,79,145,.16);
}
.header-btn.danger { background: rgba(255,91,121,.09); color: #ff8ca0; border-color: rgba(255,91,121,.22); }
.nav-toggle { display: none; }

.layout { position: relative; z-index: 1; max-width: 1480px; padding: clamp(22px, 4vw, 56px); }
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px clamp(22px,4vw,56px) 46px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer span { color: var(--accent); font-weight: 900; letter-spacing: .2em; }
.site-footer p { margin: 0; }
.site-footer > div { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.footer-nav { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.footer-nav a { color:var(--muted); }
.footer-nav a:hover { color:#fff; }

.panel, .feature-card, .community-card, .auth-card, .wallet-balance-box, .bento-card, .admin-panel-card {
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(23,25,37,.98), rgba(13,15,23,.97));
  box-shadow: var(--shadow);
}
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .23em; }
.eyebrow span { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.section-head h1, .section-head h2, .games-hero-v7 h1, .ranking-v7 h1 { font-weight: 760; }
.form-group label { color: #c6c4cc; font-weight: 650; }
.form-group input, .form-group select, .form-group textarea, .mini-input {
  min-height: 50px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.1);
}
.form-group textarea { min-height: 130px; }
.form-group small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.5; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .mini-input:focus { border-color: rgba(255,202,102,.55); box-shadow: 0 0 0 4px rgba(255,202,102,.08); }

/* Lobby */
.lobby-hero {
  min-height: min(690px, calc(100vh - 140px));
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(400px,.92fr);
  align-items: center;
  gap: clamp(38px,6vw,96px);
  padding: clamp(28px,5vw,72px) 0 clamp(54px,7vw,96px);
}
.hero-copy h1 {
  margin: 14px 0 22px;
  font-size: clamp(64px,8vw,120px);
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.hero-copy h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.4px rgba(255,202,102,.78); text-shadow: 0 0 38px rgba(255,79,145,.08); }
.hero-lead { max-width: 610px; margin: 0; color: #adabb5; font-size: clamp(16px,1.6vw,21px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.cta { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 0 22px; border-radius: 15px; border: 1px solid var(--stroke); font-weight: 800; font-size: 13px; }
.cta-primary { background: linear-gradient(135deg,#ffd275,#ff9d5b 56%,#ff4f91); color: #130e12; box-shadow: 0 18px 50px rgba(255,79,145,.2); }
.cta-quiet { background: rgba(255,255,255,.035); }
.cta:hover, .game-launch:hover { transform: translateY(-2px); }
.hero-proof { display: flex; gap: clamp(18px,4vw,48px); margin-top: 48px; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { font-size: 22px; }
.hero-proof span { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-machine { position: relative; width: min(100%,500px); aspect-ratio: .8; justify-self: center; display: flex; flex-direction: column; padding: 12% 10%; border: 1px solid rgba(255,202,102,.23); border-radius: 52px 52px 32px 32px; background: linear-gradient(145deg,#1c1420,#0c0d14 48%,#17121a); box-shadow: inset 0 0 80px rgba(255,79,145,.07), 0 50px 120px rgba(0,0,0,.6); transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); }
.hero-machine::before, .hero-machine::after { content:""; position:absolute; border-radius:inherit; pointer-events:none; }
.hero-machine::before { inset:8px; border:1px solid rgba(255,255,255,.055); }
.hero-machine::after { inset:-2px; border:1px solid rgba(255,79,145,.15); filter:blur(8px); }
.machine-glow { position:absolute; inset:15% 10%; background:radial-gradient(circle,rgba(255,79,145,.18),transparent 64%); filter:blur(28px); }
.machine-top, .machine-bottom { position:relative; display:flex; justify-content:space-between; align-items:center; }
.machine-top span, .machine-bottom span { color:var(--muted); font-size:9px; letter-spacing:.2em; }
.machine-top strong { color:var(--accent); font-size:70px; line-height:1; text-shadow:0 0 34px rgba(255,202,102,.33); }
.machine-reels { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:auto 0; padding:12px; border:1px solid rgba(255,202,102,.2); border-radius:22px; background:#07070b; box-shadow:inset 0 0 40px rgba(0,0,0,.85); }
.machine-reels i { display:grid; place-items:center; aspect-ratio:.73; border-radius:14px; background:linear-gradient(180deg,#f4e3bd,#bd8757); color:#381b20; font-size:clamp(42px,6vw,76px); font-style:normal; font-weight:900; text-shadow:0 2px 0 rgba(255,255,255,.25); }
.machine-line { position:absolute; left:8%; right:8%; top:50%; height:2px; background:linear-gradient(90deg,transparent,var(--accent-2),transparent); box-shadow:0 0 13px var(--accent-2); }
.machine-bottom b { display:grid; place-items:center; width:74px; height:74px; border-radius:50%; background:linear-gradient(145deg,#ffca66,#ff4f91); color:#1d1017; font-size:11px; box-shadow:0 0 28px rgba(255,79,145,.32); }
.featured-section { padding: 10px 0 74px; }
.section-title-row { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:24px; }
.section-title-row h2 { margin:0; font-size:clamp(36px,4vw,58px); letter-spacing:-.05em; }
.section-title-row > a { color:var(--muted); font-size:12px; font-weight:800; }
.section-title-row > a span { color:var(--accent); margin-left:8px; }
.lobby-game-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.lobby-game { position:relative; min-height:430px; display:flex; flex-direction:column; justify-content:flex-end; gap:20px; padding:26px; overflow:hidden; border:1px solid var(--stroke); border-radius:28px; background:#11131c; transition:.3s ease; }
.lobby-game::before { content:""; position:absolute; z-index:1; inset:0; background:linear-gradient(180deg,rgba(5,6,10,.08) 20%,rgba(5,6,10,.92) 76%),radial-gradient(circle at 50% 25%,var(--card-glow),transparent 52%); }
.lobby-game:hover { transform:translateY(-7px); border-color:rgba(255,255,255,.2); box-shadow:0 28px 80px rgba(0,0,0,.45); }
.game-blackjack { --card-glow:rgba(121,255,201,.22); }
.game-book { --card-glow:rgba(255,202,102,.28); }
.game-desert { --card-glow:rgba(255,79,145,.24); }
.game-emerald { --card-glow:rgba(121,255,201,.22); }
.game-gold { --card-glow:rgba(255,202,102,.28); }
.game-cyan { --card-glow:rgba(255,79,145,.24); }
.game-violet { --card-glow:rgba(176,118,255,.27); }
.game-sunny { --card-glow:rgba(114,230,212,.26); }
.game-copper { --card-glow:rgba(224,154,92,.28); }
.game-magenta { --card-glow:rgba(255,78,201,.27); }
.game-crimson { --card-glow:rgba(219,75,89,.27); }
.lobby-game > * { position:relative; z-index:2; }
.lobby-game-thumb { position:absolute; z-index:0; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .35s ease; }
.lobby-game:hover .lobby-game-thumb { transform:scale(1.055); filter:saturate(1.08); }
.game-kicker { position:absolute; top:22px; left:24px; color:var(--muted); font-size:9px; letter-spacing:.18em; }
.game-art { display:flex; justify-content:center; align-items:center; min-height:190px; gap:8px; }
.game-art b { display:grid; place-items:center; width:28%; aspect-ratio:.72; border-radius:16px; background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,.035)); border:1px solid rgba(255,255,255,.11); font-size:clamp(36px,4vw,64px); box-shadow:0 20px 45px rgba(0,0,0,.28); }
.game-art b:nth-child(2) { transform:translateY(-14px); color:var(--accent); }
.lobby-game h3 { margin:0; font-size:clamp(24px,2vw,34px); letter-spacing:-.04em; }
.lobby-game p { margin:6px 0 0; color:var(--muted); }
.play-chip { align-self:flex-start; padding:10px 14px; border-radius:999px; border:1px solid var(--stroke); font-size:9px; letter-spacing:.18em; }
.platform-strip { display:grid; grid-template-columns:repeat(3,1fr); margin:0 0 34px; border:1px solid var(--stroke); border-radius:26px; overflow:hidden; background:rgba(255,255,255,.02); }
.platform-strip > div { position:relative; padding:28px; border-right:1px solid var(--stroke); }
.platform-strip > div:last-child { border-right:0; }
.platform-strip span { color:var(--accent-2); font-size:10px; font-weight:800; }
.platform-strip strong { display:block; margin:24px 0 8px; font-size:21px; }
.platform-strip p { margin:0; color:var(--muted); line-height:1.6; }

/* Game library */
.games-hero-v7 { display:grid; grid-template-columns:1.2fr .8fr; gap:40px; align-items:end; padding:26px 0 56px; }
.games-hero-v7 h1 { margin:6px 0 0; font-size:clamp(54px,7vw,102px); line-height:.9; letter-spacing:-.07em; text-transform:uppercase; }
.games-hero-v7 > p { margin:0; max-width:560px; color:var(--muted); line-height:1.75; font-size:17px; }
.games-grid-v7 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.game-card-v7 { overflow:hidden; border:1px solid var(--stroke); border-radius:30px; background:linear-gradient(145deg,#151722,#0d0f17); transition:.28s ease; }
.game-card-v7:hover { transform:translateY(-8px); border-color:rgba(255,255,255,.2); box-shadow:0 32px 90px rgba(0,0,0,.5); }
.game-card-art { position:relative; min-height:270px; display:grid; place-items:center; overflow:hidden; background:radial-gradient(circle at 50% 46%,var(--game-glow),transparent 58%),linear-gradient(145deg,rgba(255,255,255,.03),transparent); }
.game-card-art::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 42%,rgba(8,9,15,.78)); pointer-events:none; }
.game-card-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(1.025); filter:saturate(.92) contrast(1.04); transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .35s ease; }
.game-card-v7:hover .game-card-thumb { transform:scale(1.075); filter:saturate(1.08) contrast(1.06); }
.game-card-emerald { --game-glow:rgba(121,255,201,.2); }
.game-card-gold { --game-glow:rgba(255,202,102,.25); }
.game-card-cyan { --game-glow:rgba(255,79,145,.22); }
.game-card-violet { --game-glow:rgba(176,118,255,.24); }
.game-card-sunny { --game-glow:rgba(114,230,212,.24); }
.game-card-copper { --game-glow:rgba(224,154,92,.25); }
.game-card-magenta { --game-glow:rgba(255,78,201,.25); }
.game-card-crimson { --game-glow:rgba(219,75,89,.25); }
.game-number { position:absolute; z-index:3; top:20px; left:22px; color:rgba(255,255,255,.62); text-shadow:0 2px 18px rgba(0,0,0,.9); font-size:36px; font-weight:900; letter-spacing:-.05em; }
.art-symbols { position:relative; z-index:2; display:flex; align-items:center; justify-content:center; gap:7px; width:88%; }
.art-symbols b { display:grid; place-items:center; width:29%; aspect-ratio:.73; border:1px solid rgba(255,255,255,.12); border-radius:17px; background:linear-gradient(155deg,rgba(255,255,255,.14),rgba(255,255,255,.035)); font-size:clamp(36px,4.5vw,66px); box-shadow:0 20px 50px rgba(0,0,0,.34); }
.art-symbols b:nth-child(2) { transform:translateY(-16px); color:var(--accent); }
.live-badge { display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid rgba(121,255,201,.16); border-radius:999px; color:#aaffd8; background:rgba(6,17,14,.65); font-size:8px; letter-spacing:.14em; }
.game-card-art .live-badge { position:absolute; right:18px; top:18px; z-index:3; }
.game-card-body { padding:24px; }
.game-category { color:var(--accent); font-size:9px; letter-spacing:.18em; text-transform:uppercase; }
.game-card-body h2 { margin:9px 0 10px; font-size:30px; letter-spacing:-.04em; }
.game-card-body p { min-height:70px; margin:0; color:var(--muted); line-height:1.65; }
.game-launch { display:flex; justify-content:space-between; align-items:center; margin-top:22px; padding-top:18px; border-top:1px solid var(--stroke); font-size:12px; font-weight:800; }
.game-launch b { color:var(--accent); font-size:20px; }

/* Auth */
.auth-v7 { min-height:calc(100vh - 210px); grid-template-columns:minmax(300px,.9fr) minmax(380px,1.1fr); max-width:1060px; margin:0 auto; gap:0; }
.auth-visual { position:relative; min-height:600px; padding:48px; overflow:hidden; border:1px solid var(--stroke); border-radius:30px 0 0 30px; background:radial-gradient(circle at 50% 40%,rgba(255,79,145,.23),transparent 46%),linear-gradient(145deg,#20141d,#0c0d14 68%); }
.auth-visual > span { position:relative; z-index:2; font-size:clamp(42px,5vw,76px); line-height:.9; letter-spacing:-.06em; font-weight:900; }
.auth-visual > p { position:absolute; z-index:2; left:48px; bottom:44px; margin:0; color:var(--muted); line-height:1.7; }
.auth-seven { position:absolute; inset:0; display:grid; place-items:center; color:transparent; -webkit-text-stroke:1px rgba(255,202,102,.42); font-size:430px; line-height:1; font-weight:900; transform:rotate(-8deg); filter:drop-shadow(0 0 35px rgba(255,79,145,.2)); }
.auth-v7 .auth-card { width:100%; max-width:none; min-height:600px; display:flex; flex-direction:column; justify-content:center; padding:clamp(32px,6vw,74px); border-radius:0 30px 30px 0; }
.auth-v7 .auth-card h1 { margin:4px 0 6px; font-size:clamp(46px,5vw,70px); }
.auth-intro { margin:0 0 30px; color:var(--muted); }
.auth-v7 .submit-btn { width:100%; min-height:54px; justify-content:space-between; margin-top:6px; border-radius:15px; }
.auth-switch { margin:20px 0 0; color:var(--muted); font-size:13px; text-align:center; }
.auth-switch a { color:var(--accent); font-weight:800; }

/* Wallet */
.wallet-v7 { grid-template-columns:.88fr 1.12fr; align-items:stretch; }
.wallet-card-v7 { position:relative; min-height:620px; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(28px,5vw,60px); overflow:hidden; border:1px solid rgba(255,202,102,.16); border-radius:32px; background:radial-gradient(circle at 50% 55%,rgba(255,79,145,.18),transparent 45%),linear-gradient(145deg,#1d141d,#0d0f16 70%); }
.wallet-card-v7::after { content:"77"; position:absolute; right:-28px; bottom:-55px; color:transparent; -webkit-text-stroke:1px rgba(255,202,102,.11); font-size:300px; font-weight:900; line-height:1; }
.wallet-card-v7 h1 { margin:4px 0 0; font-size:clamp(54px,6vw,92px); line-height:.88; letter-spacing:-.07em; }
.wallet-card-v7 > p { position:relative; z-index:2; max-width:430px; color:var(--muted); line-height:1.7; }
.wallet-orbit { position:relative; z-index:2; width:min(100%,330px); aspect-ratio:1; align-self:center; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(255,202,102,.23); border-radius:50%; box-shadow:0 0 0 20px rgba(255,255,255,.018),0 0 0 44px rgba(255,255,255,.009),inset 0 0 50px rgba(255,79,145,.08); }
.wallet-orbit span,.wallet-orbit small { color:var(--muted); font-size:9px; letter-spacing:.16em; text-transform:uppercase; }
.wallet-orbit strong { margin:10px 0; font-size:clamp(46px,5vw,72px); letter-spacing:-.06em; }
.history-v7 { min-height:620px; padding:clamp(24px,4vw,40px); }
.history-v7 .section-head { margin-bottom:28px; }
.history-v7 .history-row { padding:16px 18px; border-radius:16px; transition:.2s ease; }
.history-v7 .history-row:hover { border-color:rgba(255,202,102,.2); background:rgba(255,255,255,.04); }

/* Ranking and existing account surfaces */
.ranking-v7 .ranking-hero { min-height:290px; padding:clamp(28px,5vw,58px); background:radial-gradient(circle at 75% 35%,rgba(255,79,145,.16),transparent 40%),linear-gradient(145deg,#19131b,#10121b); }
.ranking-v7 .ranking-hero h1 { margin:0; font-size:clamp(58px,7vw,104px); line-height:.82; text-transform:uppercase; }
.ranking-v7 .ranking-hero h1 em { color:var(--accent); font-style:normal; }
.ranking-v7 .ranking-board { padding:clamp(22px,4vw,38px); }
.ranking-list-head { display:flex; justify-content:space-between; padding:0 16px 12px; color:var(--muted); font-size:9px; letter-spacing:.17em; }
.ranking-row, .podium-card { border-radius:18px; background:rgba(255,255,255,.025); }
.podium-card:nth-child(1) { border-color:rgba(255,202,102,.4); background:radial-gradient(circle at top,rgba(255,202,102,.12),transparent 55%),rgba(255,255,255,.025); }
.podium-balance, .ranking-right { color:var(--accent); }
.profile-layout .panel, .public-layout .panel, .admin-shell .panel, .admin-panel-card { border-radius:26px; }
.action-btn.primary { background:linear-gradient(135deg,#ffd275,#ff9d5b 55%,#ff4f91); color:#160f13; }
.tag.gold { color:var(--accent); }
.tag.cyan { color:var(--success); }
.tag.violet { color:#c5b4ff; }

/* Game shell */
.game-shell-wrap .section-head { padding:8px 0 10px; }
.game-shell-wrap .section-head h1 { font-size:clamp(42px,5vw,72px); }
.game-shell-panel { border-radius:30px; border-color:rgba(255,255,255,.11); background:#080910; box-shadow:0 36px 110px rgba(0,0,0,.52); }
.game-frame { min-height:clamp(760px,82vh,980px); }
.game-meta-card { border-radius:20px; background:rgba(255,255,255,.025); }

@media (max-width: 1180px) {
  .site-header { grid-template-columns:auto auto 1fr; gap:14px; }
  .nav-toggle { display:flex; align-items:center; justify-content:center; gap:4px; width:44px; height:42px; padding:0; border:1px solid var(--stroke); border-radius:12px; background:rgba(255,255,255,.035); color:#fff; }
  .nav-toggle span { width:3px; height:3px; border-radius:50%; background:#fff; }
  .nav-toggle b { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .site-header .nav { position:absolute; left:clamp(18px,4vw,56px); right:clamp(18px,4vw,56px); top:calc(100% + 8px); display:none; align-items:stretch; padding:10px; border:1px solid var(--stroke); border-radius:18px; background:rgba(12,13,20,.98); box-shadow:0 24px 60px rgba(0,0,0,.5); }
  .site-header .nav.is-open { display:grid; grid-template-columns:repeat(3,1fr); }
  .site-header .nav a { text-align:center; }
  .header-actions { justify-self:end; }
  .lobby-hero { grid-template-columns:1fr minmax(330px,.72fr); }
  .hero-copy h1 { font-size:clamp(60px,8vw,92px); }
  .games-grid-v7 { grid-template-columns:repeat(2,1fr); }
  .wallet-v7 { grid-template-columns:1fr; }
  .wallet-card-v7, .history-v7 { min-height:auto; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns:1fr auto; min-height:68px; padding:10px 14px; }
  .brand-copy small { display:none; }
  .nav-toggle { grid-column:2; grid-row:1; }
  .header-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr auto auto; width:100%; }
  .user-pill { display:none !important; }
  .wallet-pill { justify-content:center; }
  .site-header .nav { left:14px; right:14px; width:auto; }
  .site-header .nav.is-open { grid-template-columns:1fr 1fr; }
  .layout { padding:24px 14px 38px; }
  .site-footer { flex-direction:column; padding:20px 14px 34px; }
  .site-footer > div { display:grid; gap:8px; }
  .lobby-hero { min-height:auto; grid-template-columns:1fr; padding:24px 0 64px; }
  .hero-copy h1 { font-size:clamp(58px,17vw,92px); }
  .hero-machine { width:min(94%,480px); transform:none; }
  .lobby-game-grid, .platform-strip, .games-grid-v7 { grid-template-columns:1fr; }
  .platform-strip > div { border-right:0; border-bottom:1px solid var(--stroke); }
  .platform-strip > div:last-child { border-bottom:0; }
  .games-hero-v7 { grid-template-columns:1fr; gap:20px; padding-bottom:34px; }
  .game-card-art { min-height:240px; }
  .auth-v7 { display:grid; grid-template-columns:1fr; }
  .auth-visual { min-height:250px; border-radius:26px 26px 0 0; padding:28px; }
  .auth-visual > p { left:28px; bottom:26px; }
  .auth-seven { font-size:260px; }
  .auth-v7 .auth-card { min-height:auto; border-radius:0 0 26px 26px; padding:34px 24px; }
  .wallet-orbit { width:min(78vw,310px); }
  .ranking-v7 .ranking-hero { min-height:auto; }
  .game-frame { min-height:820px; }
  .game-shell-meta { grid-template-columns: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; }
}
