:root {
  color-scheme: dark;
  --bg: #09070d;
  --ink: #fff8ee;
  --muted: #b9aec4;
  --panel: #17101f;
  --panel-2: #22162f;
  --line: rgba(255, 248, 238, .12);
  --gold: #e9bd63;
  --violet: #9b5cff;
  --rose: #ff4fa0;
  --green: #6df0bd;
  --max: 1260px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: radial-gradient(circle at 78% 0%, rgba(155,92,255,.2), transparent 34%), var(--bg); color: var(--ink); margin: 0; }
body.no-scroll { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.rail { background: rgba(13,8,19,.94); border-right: 1px solid var(--line); bottom: 0; display: flex; flex-direction: column; gap: 24px; left: 0; padding: 18px; position: fixed; top: 0; width: 260px; z-index: 5; }
.brand { align-items: center; display: flex; gap: 12px; font-size: 20px; font-weight: 900; text-decoration: none; }
.brand img { border: 1px solid rgba(233,189,99,.35); border-radius: 10px; height: 44px; object-fit: cover; width: 44px; }
.brand strong { color: var(--gold); }
.rail nav { display: grid; gap: 7px; }
.rail nav a { border-radius: 10px; color: var(--muted); font-weight: 750; padding: 12px; text-decoration: none; }
.rail nav a:hover, .rail nav a.active { background: linear-gradient(90deg, rgba(233,189,99,.16), transparent); color: var(--ink); }
.rail-note { border: 1px solid rgba(233,189,99,.2); border-radius: 12px; color: var(--muted); line-height: 1.45; margin-top: auto; padding: 14px; }
.rail-note b { color: var(--gold); }
.site { margin-left: 260px; min-height: 100svh; }
.top { align-items: center; backdrop-filter: blur(18px); background: rgba(16,10,23,.78); border-bottom: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; min-height: 76px; padding: 14px clamp(18px, 4vw, 42px); position: sticky; top: 0; z-index: 4; }
.search { align-items: center; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 999px; display: flex; gap: 10px; max-width: 380px; padding: 10px 15px; width: 100%; }
.search span { color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.search input { background: transparent; border: 0; color: var(--ink); outline: 0; width: 100%; }
.top-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.credits { background: #08050c; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; min-width: 140px; padding: 8px 12px; }
.credits span, .meter span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.credits strong, .meter strong { color: var(--gold); font-size: 20px; }
.gold-btn, .ghost-btn { border-radius: 10px; cursor: pointer; display: inline-flex; font-weight: 900; justify-content: center; min-height: 42px; padding: 11px 15px; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.gold-btn { background: linear-gradient(135deg, var(--gold), #fff0b8); border: 0; color: #130b19; }
.ghost-btn { background: rgba(255,255,255,.065); border: 1px solid var(--line); color: var(--ink); }
.big { min-height: 50px; padding: 14px 18px; }
.gold-btn:hover, .ghost-btn:hover, .game-card:hover { transform: translateY(-2px); }
main { padding: 24px clamp(18px, 4vw, 42px) 70px; }
.hero { border: 1px solid rgba(233,189,99,.24); border-radius: 20px; min-height: 560px; overflow: hidden; position: relative; }
.hero img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero-fade { background: linear-gradient(90deg, rgba(9,7,13,.96), rgba(9,7,13,.72) 42%, rgba(9,7,13,.12)); inset: 0; position: absolute; }
.hero-copy { max-width: 670px; padding: clamp(34px, 7vw, 78px); position: relative; z-index: 1; }
.kicker { color: var(--gold); font-size: 12px; font-weight: 950; letter-spacing: .1em; margin: 0 0 12px; text-transform: uppercase; }
h1, h2 { letter-spacing: 0; line-height: .98; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4vw, 58px); }
.hero-copy p:not(.kicker), .atelier-copy p, .tournament p, .wellbeing p, .legal p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.compliance-strip { align-items: center; background: #f4d684; border-radius: 12px; color: #161016; display: grid; gap: 5px; margin: 18px 0; padding: 16px 18px; }
.club-stats { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin: 22px 0 54px; }
.club-stats div { background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.club-stats span { color: var(--gold); display: block; font-size: 30px; font-weight: 950; }
.club-stats p { color: var(--muted); margin: 4px 0 0; }
.section { margin: 0 0 60px; }
.section-head { align-items: end; display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head a { color: var(--muted); font-weight: 800; text-decoration: none; }
.game-grid { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); cursor: pointer; display: grid; overflow: hidden; padding: 0 0 14px; position: relative; text-align: left; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.game-card:hover { border-color: rgba(233,189,99,.45); }
.game-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.game-card b, .game-card small { padding: 0 13px; }
.game-card b { font-size: 16px; margin-top: 12px; }
.game-card small { color: var(--muted); margin-top: 4px; }
.tag { background: var(--rose); border-radius: 999px; font-size: 11px; font-weight: 950; left: 10px; padding: 5px 8px; position: absolute; top: 10px; }
.atelier, .tournament, .wellbeing { border: 1px solid var(--line); border-radius: 18px; margin: 0 0 56px; padding: clamp(22px, 4vw, 44px); }
.atelier { display: grid; gap: 34px; grid-template-columns: .9fr 1.1fr; }
.atelier-list { display: grid; gap: 14px; }
.atelier-list div { background: rgba(255,255,255,.045); border-radius: 12px; display: grid; gap: 6px; padding: 18px; }
.atelier-list span { color: var(--muted); line-height: 1.5; }
.tournament { background: linear-gradient(135deg, rgba(155,92,255,.22), rgba(255,79,160,.08)); display: grid; gap: 30px; grid-template-columns: 1fr 430px; }
.leaderboard { display: grid; gap: 10px; }
.leaderboard div { align-items: center; background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 12px; grid-template-columns: 34px 1fr auto; padding: 13px; }
.leaderboard span { color: var(--gold); font-weight: 950; }
.leaderboard strong { color: var(--green); }
.wellbeing { text-align: center; }
.wellbeing p { margin: 18px auto 24px; max-width: 720px; }
footer { border-top: 1px solid var(--line); color: var(--muted); margin-left: 260px; padding: 32px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
footer a { color: var(--muted); text-decoration: none; }
.toast { background: var(--gold); border-radius: 10px; bottom: 20px; color: #130b19; font-weight: 950; padding: 14px 16px; position: fixed; right: 20px; z-index: 30; }
[hidden] { display: none !important; }
.slot-modal { inset: 0; position: fixed; z-index: 40; }
.slot-backdrop { background: rgba(3,2,5,.82); inset: 0; position: absolute; }
.slot-stage { background: radial-gradient(circle at 70% 0%, rgba(155,92,255,.22), transparent 35%), #100a17; border: 1px solid rgba(233,189,99,.28); border-radius: 18px; box-shadow: 0 50px 150px rgba(0,0,0,.65); left: 50%; max-height: calc(100svh - 24px); max-width: 1180px; overflow: auto; padding: clamp(18px, 3vw, 34px); position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 24px); }
.close { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; font-size: 30px; height: 42px; position: absolute; right: 16px; top: 16px; width: 42px; }
.slot-top { display: flex; gap: 20px; justify-content: space-between; padding-right: 52px; }
.slot-top p:not(.kicker) { color: var(--muted); line-height: 1.55; max-width: 680px; }
.meter { border: 1px solid var(--line); border-radius: 12px; min-width: 150px; padding: 13px; }
.slot-console { display: grid; gap: 18px; grid-template-columns: 1fr 280px; margin-top: 22px; }
.slot-screen { background: linear-gradient(180deg, #1d1230, #08050c); border: 8px solid #3b234e; border-radius: 18px; box-shadow: inset 0 0 40px rgba(0,0,0,.55); padding: 16px; position: relative; }
.payline-flash { background: rgba(233,189,99,.14); border: 1px solid rgba(233,189,99,.26); border-radius: 999px; color: var(--gold); font-weight: 900; left: 16px; padding: 7px 12px; position: absolute; top: 16px; z-index: 1; }
.reel-grid { display: grid; gap: 10px; grid-template-columns: repeat(5, 1fr); padding-top: 46px; }
.slot-cell { align-items: center; aspect-ratio: 1.05; background: linear-gradient(180deg, #fff8ee, #d8c0e8); border: 3px solid #d7ae5d; border-radius: 12px; color: #1a0d24; display: grid; justify-items: center; padding: 8px; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.slot-cell span { font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.slot-cell small { font-size: 10px; font-weight: 950; text-transform: uppercase; }
.reel-grid.spinning .slot-cell { filter: blur(4px); transform: scale(.96); }
.slot-cell.win { box-shadow: 0 0 0 3px var(--green), 0 0 24px rgba(109,240,189,.7); transform: scale(1.04); }
.slot-panel { background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 12px; padding: 16px; }
.slot-panel label { color: var(--muted); display: grid; font-weight: 850; gap: 7px; }
.slot-panel input, .invite-form input, .invite-form select { background: #08050c; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); min-height: 46px; padding: 0 12px; }
.control-row { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.control-row button { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer; min-height: 38px; }
.spin-btn { background: linear-gradient(135deg, var(--rose), var(--violet)); border: 0; border-radius: 14px; color: white; cursor: pointer; font-size: 24px; font-weight: 950; min-height: 68px; text-transform: uppercase; }
.full { width: 100%; }
.result { background: #08050c; border-radius: 10px; color: var(--muted); line-height: 1.5; min-height: 74px; padding: 12px; }
.bonus-box { align-items: center; border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; padding: 12px; }
.bonus-box span { color: var(--muted); }
.bonus-box strong { color: var(--green); font-size: 24px; }
.paytable { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.paytable div { background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px; padding: 13px; }
.paytable span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.history { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.history span { background: rgba(255,255,255,.07); border-radius: 999px; color: var(--muted); font-weight: 850; padding: 6px 10px; }
.history span.won { color: var(--green); }
.register-body { min-height: 100svh; }
.invite-shell { margin: 0 auto; max-width: 1180px; padding: 28px 18px 80px; }
.invite-brand { margin-bottom: 28px; }
.invite-board { background: linear-gradient(135deg, rgba(155,92,255,.22), rgba(233,189,99,.08)); border: 1px solid var(--line); border-radius: 24px; display: grid; gap: 0; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.invite-art { background: radial-gradient(circle at 70% 20%, rgba(255,79,160,.32), transparent 36%), #120b1b; padding: clamp(26px, 5vw, 58px); }
.invite-art h1 { font-size: clamp(38px, 6vw, 76px); }
.invite-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.invite-points span { border: 1px solid rgba(233,189,99,.32); border-radius: 999px; color: var(--gold); font-weight: 850; padding: 9px 12px; }
.invite-form, .invite-success { background: rgba(0,0,0,.24); display: grid; gap: 18px; padding: clamp(24px, 5vw, 58px); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.invite-form label { color: var(--muted); display: grid; font-weight: 850; gap: 8px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; margin: 0; padding: 15px; }
legend { color: var(--gold); font-weight: 950; padding: 0 8px; }
.check { align-items: start; display: flex !important; line-height: 1.5; }
.check input { accent-color: var(--gold); margin-top: 4px; }
.small-copy { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.small-copy a { color: var(--gold); }
.invite-success h2 { font-size: clamp(32px, 4vw, 56px); }
.invite-success p { color: var(--muted); line-height: 1.6; }
.legal { margin: 0 auto; max-width: 900px; padding: 42px 20px 90px; }
.legal .brand { margin-bottom: 44px; }
.legal h1 { font-size: clamp(44px, 7vw, 86px); }
.date { color: var(--gold) !important; }
.legal section { border-top: 1px solid var(--line); padding: 28px 0; }
.legal h2 { font-size: clamp(25px, 3vw, 38px); margin-bottom: 12px; }
@media (max-width: 1050px) {
  .rail { position: static; width: auto; }
  .rail nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site, footer { margin-left: 0; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .atelier, .tournament, .slot-console, .invite-board { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top, .section-head, .slot-top { align-items: stretch; flex-direction: column; }
  .rail nav { grid-template-columns: 1fr 1fr; }
  .club-stats, .game-grid, .paytable, .form-row { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 680px; }
  .hero-fade { background: linear-gradient(0deg, rgba(9,7,13,.98), rgba(9,7,13,.55)); }
  .reel-grid { gap: 6px; }
  .slot-cell small { display: none; }
}
@media (max-width: 480px) {
  .club-stats, .game-grid, .paytable { grid-template-columns: 1fr; }
  h1 { font-size: 42px; }
  main { padding-inline: 14px; }
}
