/* =========================================================================
   Aurora theme — base + components.
   Uses ONLY CSS custom properties (design tokens) injected by layout.php
   from brand.json. Changing a token in the admin re-skins the site, no CSS edit.
   Dark navy iGaming dashboard: glass panels, glossy-blue CTA, gold, aurora.
   ========================================================================= */

/* ----------------------------------------------------------------- fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/inter-900.woff2') format('woff2'); }

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
/* the hidden attribute must win over component display rules (age-gate, cookie banner, menus) */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top var(--motion-fast) var(--easing);
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------- layout */
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container--prose { width: min(760px, 100% - 2.5rem); }
.container--narrow { width: min(560px, 100% - 2.5rem); }
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section__head { margin-bottom: 1.75rem; }
.section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.section__sub { color: var(--color-text-muted); margin-top: .4rem; }
.section__lead { color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: 1.75rem; max-width: 65ch; }

.shell { min-height: 40vh; }
.shell--dashboard {
  display: grid; grid-template-columns: 264px 1fr; gap: 0;
  width: min(1320px, 100% - 2rem); margin-inline: auto; align-items: start;
}
.main { display: block; }
.shell--dashboard .main { padding: 1.5rem clamp(1rem, 2vw, 2rem) 3rem; }

/* aurora ambient background glow on body */
body::before {
  content: ""; position: fixed; inset: auto -10% -30% -10%; height: 60vh; z-index: -1;
  background: radial-gradient(60% 100% at 30% 100%, rgba(33,208,122,.10), transparent 60%),
              radial-gradient(60% 100% at 70% 100%, rgba(138,92,255,.12), transparent 60%),
              radial-gradient(50% 100% at 50% 100%, rgba(45,124,255,.14), transparent 60%);
  filter: blur(30px); pointer-events: none;
}

/* ----------------------------------------------------------------- glass */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform var(--motion-fast) var(--easing), box-shadow var(--motion-fast) var(--easing), background var(--motion-fast);
}
.btn__ico { width: 1.1em; height: 1.1em; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--cta { background: var(--gradient-cta); color: #fff; box-shadow: var(--glow-cta); }
.btn--cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(45,124,255,.55); }
.btn--cta:active { transform: translateY(0) scale(.985); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ----------------------------------------------------------------- demo strip / utility bar */
.demo-strip {
  background: repeating-linear-gradient(45deg, rgba(235,75,75,.18) 0 12px, rgba(235,75,75,.08) 12px 24px);
  color: #ffd7d7; text-align: center; font-size: .8rem; font-weight: 600;
  padding: .35rem 1rem; letter-spacing: .02em; border-bottom: 1px solid rgba(235,75,75,.25);
}
.utility-bar { background: rgba(5,7,15,.6); border-bottom: 1px solid var(--color-border); font-size: .82rem; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.utility-bar__left, .utility-bar__right { display: flex; align-items: center; gap: 1rem; }
.utility-note { color: var(--color-text-muted); }
.age-pill {
  display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.5rem; padding: 0 .4rem;
  border: 1.5px solid var(--rarity-legendary); color: #ffd7d7; border-radius: 999px; font-weight: 800; font-size: .78rem;
}
.utility-link { color: var(--color-text-muted); }
.utility-link:hover { color: var(--color-text); }
.lang-switch { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.lang-switch__item { padding: .15rem .6rem; color: var(--color-text-muted); font-weight: 700; font-size: .78rem; }
.lang-switch__item.is-active { background: var(--color-primary); color: #fff; }

/* ----------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7,10,22,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--motion-base), box-shadow var(--motion-base);
}
.topbar.is-scrolled { background: rgba(7,10,22,.92); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.topbar__inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); }
.icon-btn svg { width: 22px; height: 22px; }
.topbar__burger { display: none; }
.topbar__search { flex: 1; max-width: 360px; position: relative; }
.topbar__search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.topbar__search-ico svg { width: 18px; height: 18px; }
.topbar__search input { width: 100%; padding: .6rem .8rem .6rem 2.4rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); color: var(--color-text); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.balance-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(255,200,58,.1); border: 1px solid rgba(255,200,58,.3); font-weight: 800; }
.balance-chip__coin { width: 18px; height: 18px; color: var(--color-gold); }
.balance-chip__value { color: var(--color-gold); }

/* user menu */
.user-menu { position: relative; }
.user-menu__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); }
.user-menu__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-cta); }
.user-menu__avatar svg { width: 18px; height: 18px; color: #fff; }
.user-menu__name { font-weight: 700; font-size: .9rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__caret { width: 16px; height: 16px; color: var(--color-text-muted); }
.user-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: .4rem; z-index: 100;
  background: var(--color-panel-2); border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.user-menu__item, .user-menu__item button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border-radius: 10px; background: none; border: 0; text-align: left; color: var(--color-text); }
.user-menu__item:hover, .user-menu__item button:hover { background: rgba(255,255,255,.06); }
.user-menu__item svg { width: 18px; height: 18px; color: var(--color-text-muted); }
.user-menu__logout { padding: 0; }

/* ----------------------------------------------------------------- games nav */
.games-nav { background: rgba(5,7,15,.5); border-bottom: 1px solid var(--color-border); }
.games-nav__inner { display: flex; align-items: center; gap: 1rem; }
.games-nav__list { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.games-nav__list::-webkit-scrollbar { display: none; }
.games-nav__link { display: inline-flex; align-items: center; gap: .45rem; padding: .85rem .9rem; color: var(--color-text-muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.games-nav__link:hover { color: var(--color-text); }
.games-nav__link.is-active { color: var(--color-text); border-bottom-color: var(--color-primary); }
.games-nav__ico { width: 18px; height: 18px; }
.games-nav__limits { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(33,208,122,.12); border: 1px solid rgba(33,208,122,.3); color: var(--color-success); font-weight: 700; font-size: .88rem; white-space: nowrap; }

/* ----------------------------------------------------------------- sidebar */
.sidebar { position: sticky; top: 80px; padding: 1.25rem 1rem; align-self: start; }
.sidebar__nav ul { display: flex; flex-direction: column; gap: .2rem; }
.sidebar__link { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; color: var(--color-text-muted); font-weight: 600; }
.sidebar__link:hover { background: rgba(255,255,255,.04); color: var(--color-text); }
.sidebar__link.is-active { background: linear-gradient(90deg, rgba(45,124,255,.18), transparent); color: var(--color-text); box-shadow: inset 2px 0 0 var(--color-primary); }
.sidebar__link--accent { color: var(--color-success); }
.sidebar__ico { width: 20px; height: 20px; }
.sidebar__rg { margin-top: 1.5rem; padding: 1rem; border-radius: 14px; background: rgba(33,208,122,.07); border: 1px solid rgba(33,208,122,.2); }
.sidebar__rg-ico { width: 24px; height: 24px; color: var(--color-success); }
.sidebar__rg-text { font-size: .82rem; color: var(--color-text-muted); margin: .5rem 0; }
.sidebar__rg-phone { font-weight: 800; color: var(--color-success); }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero__aurora, .page-hero__aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background: var(--gradient-aurora); opacity: .16; filter: blur(80px); z-index: 0;
  transform: translateY(0);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__eyebrow { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(45,124,255,.12); border: 1px solid rgba(45,124,255,.3); color: #9fc2ff; font-weight: 700; font-size: .8rem; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.hero__subtitle { color: var(--color-text-muted); font-size: 1.1rem; margin: 1rem 0 1.75rem; max-width: 52ch; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__visual { position: relative; aspect-ratio: 4/3; }
.hero__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 50px rgba(45,124,255,.35)); }
.hero__jackpot { position: absolute; left: 8%; bottom: 6%; padding: .8rem 1.1rem; display: grid; gap: .15rem; }
.hero__jackpot-label { font-size: .75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; }
.hero__jackpot-value { font-size: 1.4rem; font-weight: 800; color: var(--color-gold); }

.page-hero { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3.2rem) 0; border-bottom: 1px solid var(--color-border); }
.page-hero--compact { padding: clamp(1.5rem, 3vw, 2.2rem) 0; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eyebrow { display: inline-block; color: #9fc2ff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.page-hero__title { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero__subtitle { color: var(--color-text-muted); margin-top: .6rem; max-width: 60ch; }

/* ----------------------------------------------------------------- case cards */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.case-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--color-panel-2), var(--color-panel));
  border: 1px solid var(--color-border);
  transition: transform var(--motion-base) var(--easing), box-shadow var(--motion-base) var(--easing);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.case-card__media { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.case-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .55;
  background: radial-gradient(60% 60% at 50% 65%, var(--rarity, var(--rarity-common)), transparent 70%);
}
.case-card[data-rarity="common"] { --rarity: var(--rarity-common); }
.case-card[data-rarity="rare"] { --rarity: var(--rarity-rare); }
.case-card[data-rarity="epic"] { --rarity: var(--rarity-epic); }
.case-card[data-rarity="legendary"] { --rarity: var(--rarity-legendary); }
.case-card[data-rarity="jackpot"] { --rarity: var(--rarity-jackpot); }
.case-card__img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(0,0,0,.5)); }
.case-card__rarity-tag { position: absolute; left: .7rem; top: .7rem; z-index: 2; padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.4); color: var(--rarity, var(--rarity-common)); border: 1px solid currentColor; }
.case-card__body { padding: .9rem 1rem 1.1rem; display: grid; gap: .55rem; }
.case-card__name { font-size: 1.05rem; font-weight: 800; }
.case-card__jackpot { display: grid; }
.case-card__jackpot-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.case-card__jackpot-value { font-size: 1.15rem; font-weight: 800; color: var(--color-gold); }
.case-card__meta { font-size: .85rem; color: var(--color-text-muted); }
.case-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .2rem; }
.case-card__price { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; color: var(--color-gold); }
.case-card__coin { width: 16px; height: 16px; }
.case-card__cta { padding: .55rem 1rem; }

/* media fallback (image not yet provided) */
.media-fallback { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-panel-2), var(--color-panel)); overflow: hidden; }
.media-fallback__glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(28px); opacity: .5;
  background: radial-gradient(circle, var(--color-primary), transparent 70%); }
.media-fallback[data-rarity="jackpot"] .media-fallback__glow { background: radial-gradient(circle, var(--rarity-jackpot), transparent 70%); }
.media-fallback[data-rarity="rare"] .media-fallback__glow { background: radial-gradient(circle, var(--rarity-rare), transparent 70%); }
.media-fallback[data-rarity="epic"] .media-fallback__glow { background: radial-gradient(circle, var(--rarity-epic), transparent 70%); }
.media-fallback[data-rarity="legendary"] .media-fallback__glow { background: radial-gradient(circle, var(--rarity-legendary), transparent 70%); }
.case-card__img.media-fallback { width: 78%; height: 78%; }

/* ----------------------------------------------------------------- promos / info */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.promo-tile { display: grid; grid-template-columns: 110px 1fr; overflow: hidden; }
.promo-tile__media { aspect-ratio: 1; }
.promo-tile__media .media { width: 100%; height: 100%; object-fit: cover; }
.promo-tile__body { padding: 1rem 1.1rem; display: grid; align-content: center; gap: .35rem; }
.promo-tile__title { font-weight: 800; }
.promo-tile__text { font-size: .9rem; color: var(--color-text-muted); }
.promo-tile__more { display: inline-flex; align-items: center; gap: .35rem; color: #9fc2ff; font-weight: 700; font-size: .85rem; }
.promo-tile__arrow { width: 16px; height: 16px; }

.rg-banner { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; }
.rg-banner__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(33,208,122,.12); }
.rg-banner__ico svg { width: 28px; height: 28px; color: var(--color-success); }
.rg-banner__title { font-size: 1.2rem; font-weight: 800; }
.rg-banner__text { flex: 1; color: var(--color-text-muted); }
.rg-banner__text p { color: var(--color-text-muted); }

.info-card { padding: 1.5rem; margin-top: 1.5rem; }
.info-card__title { font-weight: 800; margin-bottom: .4rem; }
.showcase-note { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; }
.showcase-note__badge { padding: .25rem .6rem; border-radius: 8px; background: rgba(235,75,75,.15); color: #ffb4b4; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.showcase-note__badge--soon { background: rgba(45,124,255,.16); color: #9fc2ff; }
.showcase-note p { flex: 1; color: var(--color-text-muted); }

/* ----------------------------------------------------------------- newsletter */
.newsletter { padding: clamp(2rem,4vw,3rem) 0; border-top: 1px solid var(--color-border); }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.newsletter__text { display: flex; align-items: center; gap: 1rem; }
.newsletter__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(45,124,255,.12); }
.newsletter__ico svg { width: 24px; height: 24px; color: var(--color-primary); }
.newsletter__title { font-weight: 800; }
.newsletter__sub { color: var(--color-text-muted); font-size: .9rem; }
.newsletter__form { display: flex; gap: .5rem; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter__form input { flex: 1; padding: .8rem 1rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); color: var(--color-text); }

/* ----------------------------------------------------------------- footer */
.footer { position: relative; margin-top: 2rem; background: rgba(5,7,15,.7); border-top: 1px solid var(--color-border); padding: 2.5rem 0 2rem; }
.footer__aurora { position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gradient-aurora); opacity: .8; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.footer__tagline { color: var(--color-text-muted); margin-top: .6rem; }
.footer__social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer__social-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); }
.footer__social-link svg { width: 18px; height: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; }
.footer__col-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: .75rem; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { color: var(--color-text); opacity: .85; }
.footer__col a:hover { opacity: 1; color: #9fc2ff; }
.footer__rg { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; color: var(--color-text-muted); font-size: .9rem; border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.footer__rg-ico { width: 22px; height: 22px; color: var(--color-success); }
.footer__rg strong { color: var(--color-text); }
.footer__compliance { display: flex; flex-wrap: wrap; gap: 2rem; padding: 1.25rem 0; }
.footer__compliance-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: .6rem; }
/* logo wall (regulator badges + payment logos): light chip keeps colored/dark
   logos readable on the dark footer; --dark variant for white logos that are
   designed for dark backgrounds (e.g. Trustly, Loto-Québec). Logos are never recoloured. */
.badges, .payments { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.badges__item, .payments__chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 14px; border-radius: 10px; background: #fff;
  border: 1px solid transparent; transition: transform var(--motion-fast) var(--easing);
}
.badges__item:hover, .payments__chip:hover { transform: translateY(-2px); }
.badges__item--dark, .payments__chip--dark { background: var(--color-panel-2); border-color: var(--color-border); }
.badges__img { height: 26px; max-height: 26px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.payments__img { height: 24px; max-height: 24px; width: auto; max-width: 92px; object-fit: contain; display: block; }
.badges .media-fallback, .payments .media-fallback { height: 30px; width: 80px; aspect-ratio: auto; background: transparent; }
.footer__disclaimer { color: var(--color-text-muted); font-size: .82rem; margin: 1rem 0; }
.footer__legal-entity { color: var(--color-text-muted); font-size: .74rem; line-height: 1.55; margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--color-border); opacity: .85; }
.footer__legal-entity p { margin: 0 0 .65rem; }
.footer__legal-entity p:last-child { margin-bottom: 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--color-text-muted); font-size: .82rem; }
.footer__contact a:hover { color: #9fc2ff; }

/* ----------------------------------------------------------------- cookie / age */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 1rem; }
.cookie-banner__inner { width: min(1100px, 100%); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--color-panel-2); border: 1px solid var(--color-border); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cookie-banner__text { flex: 1; min-width: 260px; }
.cookie-banner__text p { color: var(--color-text-muted); font-size: .88rem; margin-top: .25rem; }
.cookie-banner__text a { color: #9fc2ff; }
.cookie-banner__actions { display: flex; gap: .6rem; }

.age-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.age-gate__backdrop { position: absolute; inset: 0; background: rgba(3,5,12,.85); backdrop-filter: blur(6px); }
.age-gate__card { position: relative; z-index: 1; width: min(440px, 100%); text-align: center; padding: 2rem 1.75rem;
  background: var(--color-panel-2); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.age-gate__emblem { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; background: rgba(45,124,255,.14); }
.age-gate__emblem svg { width: 32px; height: 32px; color: var(--color-primary); }
.age-gate__title { font-size: 1.4rem; font-weight: 800; }
.age-gate__text { color: var(--color-text-muted); margin: .6rem 0 1.5rem; }
.age-gate__actions { display: grid; gap: .6rem; }
.age-gate__denied { color: #ffb4b4; margin-top: 1rem; font-weight: 600; }

/* ----------------------------------------------------------------- forms */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid var(--color-border); color: var(--color-text); transition: border-color var(--motion-fast); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--color-text-muted); }
.req { color: var(--rarity-legendary); }
.opt { color: var(--color-text-muted); font-weight: 400; font-size: .82rem; }
.stack { display: grid; gap: 0; }
.consents { border: 0; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .9rem; color: var(--color-text-muted); cursor: pointer; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--color-primary); }
.form-errors { background: rgba(235,75,75,.1); border: 1px solid rgba(235,75,75,.3); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.form-errors ul { list-style: disc; padding-left: 1.2rem; color: #ffc4c4; }

.auth-form { padding: 1.75rem; }
.auth-form__alt { text-align: center; margin-top: 1rem; color: var(--color-text-muted); font-size: .9rem; }
.auth-form__alt a { color: #9fc2ff; font-weight: 700; }
.auth-form__row { margin: .75rem 0; }
.forgot summary { cursor: pointer; color: #9fc2ff; font-size: .9rem; }
.demo-cred { text-align: center; margin-top: 1rem; font-size: .8rem; color: var(--color-text-muted); font-family: monospace; }

/* captcha */
.captcha { display: flex; align-items: center; gap: .8rem; }
.captcha-svg svg { border-radius: 10px; }
.captcha-field { flex: 1; }
.captcha-field input { width: 100%; padding: .7rem .9rem; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--color-border); color: var(--color-text); }

/* ----------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.contact-form { padding: 1.75rem; }
.contact-info { padding: 1.75rem; }
.contact-info__title { font-weight: 800; margin-bottom: 1rem; }
.contact-info__list { display: grid; gap: .9rem; }
.contact-info__list li { display: flex; align-items: center; gap: .7rem; color: var(--color-text-muted); }
.contact-info__list svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.contact-info__list a:hover { color: #9fc2ff; }

/* ----------------------------------------------------------------- prose / legal */
.prose-block { margin-bottom: 1.75rem; }
.prose-block__title { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.prose-block__text { color: var(--color-text-muted); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.legal-menu { position: sticky; top: 80px; padding: 1rem; }
.legal-menu li { margin-bottom: .25rem; }
.legal-menu__link { display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--color-text-muted); font-weight: 600; }
.legal-menu__link:hover { background: rgba(255,255,255,.04); color: var(--color-text); }
.legal-menu__link.is-active { background: rgba(45,124,255,.14); color: var(--color-text); }
.legal-doc__updated { color: var(--color-text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.legal-doc__sections { display: grid; gap: 1.5rem; }
.legal-section__title { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.legal-section__text { color: var(--color-text-muted); }

/* ----------------------------------------------------------------- winners / news / rg */
.winners-grid, .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.winner-card, .news-card { overflow: hidden; }
.winner-card__media, .news-card__media { aspect-ratio: 16/9; overflow: hidden; }
.winner-card__media .media, .news-card__media .media { width: 100%; height: 100%; object-fit: cover; }
.winner-card__body, .news-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.winner-card__amount { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.3rem; font-weight: 800; color: var(--color-gold); }
.winner-card__coin { width: 20px; height: 20px; }
.winner-card__name { font-weight: 700; margin: .3rem 0; }
.winner-card__meta { display: grid; gap: .15rem; color: var(--color-text-muted); font-size: .85rem; }
.news-card__date { color: var(--color-text-muted); font-size: .8rem; }
.news-card__title { font-weight: 800; margin: .35rem 0; }
.news-card__excerpt { color: var(--color-text-muted); font-size: .9rem; }
.fineprint { color: var(--color-text-muted); font-size: .8rem; margin-top: 1.5rem; }

.rg-helpline { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.rg-helpline__ico { width: 40px; height: 40px; color: var(--color-success); flex-shrink: 0; }
.rg-helpline__msg { color: var(--color-text-muted); }
.rg-helpline__name { font-weight: 700; margin-top: .25rem; }
.rg-helpline__phone { color: var(--color-success); }
.rg-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.rg-tool { padding: 1.5rem; transition: transform var(--motion-base) var(--easing); }
.rg-tool:hover { transform: translateY(-3px); }
.rg-tool__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(45,124,255,.12); margin-bottom: 1rem; }
.rg-tool__ico svg { width: 24px; height: 24px; color: var(--color-primary); }
.rg-tool__title { font-weight: 800; margin-bottom: .35rem; }
.rg-tool__text { color: var(--color-text-muted); font-size: .9rem; }

/* ----------------------------------------------------------------- dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 0 1rem; }
.dash-head__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.dash-head__hello { color: var(--color-text-muted); }
.dash-balance { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; }
.dash-balance--mini { padding: .6rem 1rem; }
.dash-balance__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.dash-balance__value { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.3rem; font-weight: 800; color: var(--color-gold); }
.dash-balance__coin { width: 20px; height: 20px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.card { padding: 1.5rem; }
.card__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.card__subtitle { font-weight: 700; margin: .5rem 0; }
.card__rule { border: 0; border-top: 1px solid var(--color-border); margin: 1.25rem 0; }
.notice { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; }
.notice--warn { background: rgba(255,200,58,.1); border: 1px solid rgba(255,200,58,.3); color: #ffe2a0; }
.notice--demo { background: rgba(45,124,255,.08); border: 1px solid rgba(45,124,255,.25); color: #bcd4ff; }
.empty { color: var(--color-text-muted); padding: 1rem 0; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; padding: .7rem .8rem; color: var(--color-text-muted); font-weight: 600; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.table td { padding: .7rem .8rem; border-bottom: 1px solid var(--color-border); }
.table .nums { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge--win { background: rgba(33,208,122,.15); color: var(--color-success); }
.badge--muted { background: rgba(255,255,255,.06); color: var(--color-text-muted); }

/* ----------------------------------------------------------------- play */
.play-stage { padding: 1.5rem; display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.play-stage__media { aspect-ratio: 4/3; display: grid; place-items: center; }
.play-stage__img { width: 90%; height: 90%; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }
.play-form__head { margin-bottom: 1rem; }
.play-form__title { font-size: 1.2rem; font-weight: 800; }
.play-form__hint { color: var(--color-text-muted); font-size: .9rem; }
.play-form__hint.is-ready { color: var(--color-success); }
.number-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .4rem; margin-bottom: 1rem; max-height: 320px; overflow-y: auto; padding: .2rem; }
.number { position: relative; }
.number input { position: absolute; opacity: 0; pointer-events: none; }
.number span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); font-weight: 700; font-variant-numeric: tabular-nums; transition: transform var(--motion-fast), background var(--motion-fast); }
.number span:hover { background: rgba(255,255,255,.08); }
.number input:checked + span { background: var(--gradient-cta); border-color: transparent; color: #fff; box-shadow: var(--glow-cta); transform: scale(1.04); }
.number input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.number input:disabled + span { opacity: .35; }
.play-form__controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lines-field { display: inline-flex; align-items: center; gap: .5rem; color: var(--color-text-muted); font-size: .9rem; }
.lines-field input { width: 70px; padding: .5rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--color-border); color: var(--color-text); }
.play-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.play-cost { color: var(--color-text-muted); }
.play-cost strong { color: var(--color-gold); }

.play-result { padding: 1.5rem; margin-bottom: 1.25rem; text-align: center; }
.reel { height: 0; overflow: hidden; }
.reel.is-active { height: 88px; margin-bottom: 1rem; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--color-border); position: relative; }
.reel.is-active::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary); transform: translateX(-50%); }
.reel__track { display: flex; gap: .5rem; padding: .5rem; height: 100%; align-items: center; }
.reel__cell { display: grid; place-items: center; min-width: 64px; height: 64px; border-radius: 10px; background: var(--color-panel-2); border: 1px solid var(--color-border); font-size: 1.4rem; font-weight: 800; }
.result-row { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: .8rem; flex-wrap: wrap; }
.result-row__label { color: var(--color-text-muted); font-size: .85rem; min-width: 90px; text-align: right; }
.chips { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.chip { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .4rem; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--color-border); font-weight: 800; font-variant-numeric: tabular-nums; }
.chip--match { background: var(--gradient-cta); border-color: transparent; color: #fff; box-shadow: var(--glow-cta); }
.result-row__matches { color: var(--color-text-muted); }
.play-result__outcome { margin: 1rem 0; font-size: 1.3rem; font-weight: 800; }
.play-result__outcome.is-win { color: var(--color-success); }
.play-result__win strong { color: var(--color-gold); }
.play-result__loss { color: var(--color-text-muted); }

/* ----------------------------------------------------------------- error / flash */
.error-page { display: grid; place-items: center; min-height: 50vh; text-align: center; }
.error-page__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; background: var(--gradient-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page__title { font-size: 1.6rem; font-weight: 800; margin: .5rem 0; }
.error-page__text { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 180; display: grid; gap: .5rem; max-width: 360px; }
.flash { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: .9rem; font-weight: 600; }
.flash svg { width: 18px; height: 18px; flex-shrink: 0; }
.flash--success { background: rgba(33,208,122,.15); border: 1px solid rgba(33,208,122,.35); color: #b6f4d6; }
.flash--error { background: rgba(235,75,75,.15); border: 1px solid rgba(235,75,75,.35); color: #ffc4c4; }
.flash--info { background: rgba(45,124,255,.15); border: 1px solid rgba(45,124,255,.35); color: #bcd4ff; }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-menu { position: static; }
  .play-stage { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell--dashboard { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--color-border); }
  .sidebar__nav ul { flex-direction: row; flex-wrap: wrap; }
  .sidebar__rg { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .topbar__burger { display: inline-grid; }
  .games-nav { display: none; }
  .games-nav.is-open { display: block; position: fixed; inset: 0 0 0 auto; width: 280px; z-index: 120; background: var(--color-panel); overflow-y: auto; padding-top: 1rem; }
  .games-nav.is-open .games-nav__inner { flex-direction: column; align-items: stretch; }
  .games-nav.is-open .games-nav__list { flex-direction: column; }
  .user-menu__name { display: none; }
}
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .utility-bar__left .utility-note { display: none; }
  .newsletter__form { max-width: none; }
  .brand__name { display: none; }
}

/* ============================================================ structure-engine additions */
/* The structure brand logo is a logomark only, so the header/footer pair it with a wordmark. */
.brand { gap: .6rem; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--color-text); white-space: nowrap; }
.footer__brand .brand__name { font-size: 1.15rem; }
.brand__logo.media-fallback { width: 34px; height: 34px; aspect-ratio: 1; }

/* ---- merged-template components (structure pages not present in the original aurora set) ---- */
.is-win { color: var(--color-success); }

/* home — latest lottery results list */
.results-list { display: grid; gap: .75rem; }
.results-list .result-row { justify-content: space-between; margin-bottom: 0; }
.result-row__game { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.result-row__cta { margin-left: auto; }

/* home — promotional CTA banner */
.cta-banner { display: grid; gap: 1rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 760px) { .cta-banner { grid-template-columns: 1.6fr auto; } }
.cta-banner__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.cta-banner__text { color: var(--color-text-muted); margin-top: .4rem; }

/* category — empty-state showcase art */
.showcase-note__media { margin: 0 auto 1rem; max-width: 220px; }
.showcase-note__img { width: 100%; height: auto; border-radius: var(--radius); }

/* game detail — sidebar media + price */
.card__media { margin: -.25rem 0 1rem; border-radius: var(--radius); overflow: hidden; }
.card__img { width: 100%; height: auto; display: block; }
.card__price { font-size: 1.5rem; font-weight: 800; color: var(--color-gold); }

/* responsible gaming */
.rg-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 2rem; }
.rg-resources { display: grid; gap: .75rem; margin-top: 1rem; }

/* winners */
.winners-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.winners-stat__value { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--color-gold); letter-spacing: -.02em; }
.winners-stat__label { color: var(--color-text-muted); font-size: .9rem; }
.winner-card__quote { color: var(--color-text-muted); font-style: italic; margin-top: .6rem; }

/* results page */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.result-card { padding: 1.25rem; }
.result-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.result-card__game { font-weight: 800; }
.result-card__date { color: var(--color-text-muted); font-size: .85rem; }

/* legal — useful links */
.legal-doc__links { margin-top: 2rem; display: grid; gap: .4rem; }
.legal-doc__links a { color: var(--color-primary); }
.legal-doc__links a:hover { color: #9fc2ff; }

/* dashboard — stat strip + section spacing */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.dash-section { margin-top: 2rem; }
