/* ASE Game — page d'accueil (mêmes couleurs et polices que les jeux) */
:root {
  --night: #14143A; --deep: #1D1E50; --deeper: #17183F; --line: #2F3175;
  --ink: #ECECFF; --muted: #A4A6D8; --indigo: #4949DF; --indigo-hi: #7272FF;
  --gold: #F4C542; --gold-ink: #3A2A00; --ok: #43D39A;
  --ball-face: #F1F1FF; --ball-ink: #23245A;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] { --night: #EEEEF9; --deep: #FFFFFF; --deeper: #F6F6FD; --line: #D8D9F1; --ink: #17173F; --muted: #5C5E92; --indigo-hi: #3C3CD0; --ball-face: #FFFFFF; color-scheme: light; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --night: #EEEEF9; --deep: #FFFFFF; --deeper: #F6F6FD; --line: #D8D9F1; --ink: #17173F; --muted: #5C5E92; --indigo-hi: #3C3CD0; --ball-face: #FFFFFF; color-scheme: light; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 16px/1.55 var(--body); min-height: 100vh; }
main, .top, .foot { width: min(1040px, 100%); margin: 0 auto; padding-inline: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.top { display: flex; align-items: center; gap: 10px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-balls { display: flex; }
.brand-balls i { width: 14px; height: 14px; border-radius: 50%; background: var(--indigo); margin-right: -4px; border: 2px solid var(--night); }
.brand-balls i:nth-child(2) { background: var(--gold); }
.brand-balls i:nth-child(3) { background: var(--ball-face); }
.net { font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1em .6em; }
.icon-btn { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: var(--muted); }

.intro { padding-block: 36px 28px; max-width: 680px; }
.intro h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: .98; font-size: clamp(2.6rem, 9vw, 4.8rem); margin: 0 0 18px; text-wrap: balance; }
.intro p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 60ch; }

.games { display: grid; gap: 16px; padding-bottom: 40px; }
.game { display: grid; grid-template-columns: 1fr; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--deep); transition: border-color .15s, transform .15s; }
.game:hover { border-color: var(--indigo-hi); transform: translateY(-2px); }
.game.soon { background: var(--deeper); }
.game-art { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(110% 130% at 80% 0%, rgba(73,73,223,.6), transparent 60%), var(--deeper); }
.game.soon .game-art { background: var(--deeper); }
.game-body { padding: 20px; display: grid; gap: 8px; align-content: start; }
.game h2 { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.desc { margin: 0; color: var(--muted); }
.state { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.live .state { color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(67,211,154,.18); }
.live-stats { margin: 6px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.live-stats div { border-top: 1px solid var(--line); padding-top: 8px; }
.live-stats dt { font-size: .8rem; color: var(--muted); }
.live-stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.ball { --size: 64px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ball-ink); background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--ball-face) 30%, #C9CAEA 100%); box-shadow: inset 0 -3px 6px rgba(35,36,90,.25), 0 4px 10px -4px rgba(0,0,0,.5); }
.ball.gold { --size: 82px; font-size: 1.9rem; color: var(--gold-ink); background: radial-gradient(circle at 32% 28%, #FFF7D6 0 8%, var(--gold) 34%, #C99A1A 100%); }
.reels span { width: 54px; height: 76px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--muted); background: var(--deep); border: 1px solid var(--line); }

.btn { justify-self: start; margin-top: 8px; border: 1px solid var(--line); padding: .62em 1.05em; border-radius: 12px; font-weight: 600; }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-ghost { color: var(--muted); }
.foot { color: var(--muted); font-size: .85rem; padding-block: 0 28px; }

@media (min-width: 760px) {
  .games { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
  .game-art { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
