/* GloryBanger lobby
   Palette is sampled from the brand art: wordmark navy, chip blue, crown gold.
   No inline styles anywhere, so the page runs under a strict style-src 'self' CSP. */

:root {
  color-scheme: light;

  /* brand */
  --navy-950: #030a24;
  --navy-900: #07153a;
  --ink: #132744;
  --ink-2: #47567a;
  --ink-3: #7a87a3;
  --blue: #1f55d6;
  --blue-600: #1947b8;
  --blue-50: #eaf0fe;
  --blue-100: #d5e1fd;
  --azure: #0375fb;
  --gold: #f3b72f;
  --gold-300: #ffd45e;
  --gold-ink: #2a1c02;
  --red: #e4343b;

  /* surfaces */
  --bg: #f3f5fa;
  --surface: #fff;
  --surface-2: #f5f7fb;
  --line: #e3e8f2;
  --line-2: #cdd6e6;

  /* shape */
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(19, 39, 68, .08);
  --shadow-2: 0 10px 28px -10px rgba(19, 39, 68, .22), 0 2px 6px rgba(19, 39, 68, .06);
  --shadow-3: 0 28px 70px -18px rgba(3, 10, 36, .5);

  /* layout */
  --top-h: 68px;
  --side-w: 248px;
  --side-rail: 76px;
  --side: var(--side-w);
  --pad: 28px;
  --tab-h: 0px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 1099px) { :root { --side: var(--side-rail); } }
html[data-nav="open"] { --side: var(--side-w); }
html[data-nav="rail"] { --side: var(--side-rail); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
svg { fill: none; }
.sprite { position: absolute; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--blue-100); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600;
  transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, filter .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px -6px rgba(31, 85, 214, .65);
}
.btn-primary:hover { background: var(--blue-600); }
.btn-soft { background: var(--blue-50); color: var(--blue); }
.btn-soft:hover { background: var(--blue-100); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--gold-ink); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 22px -10px rgba(243, 183, 47, .9);
}
.btn-gold:hover { filter: brightness(1.06) saturate(1.05); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s, color .15s, opacity .15s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn-sm { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.icon-btn-sm svg { width: 18px; height: 18px; }
.icon-btn-sm:hover { background: var(--surface); border-color: var(--line-2); }
.icon-btn:disabled { opacity: .38; cursor: default; pointer-events: none; }

.count {
  font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--blue-50); color: var(--blue);
  padding: 4px 8px; border-radius: 999px; font-variant-numeric: tabular-nums;
}

/* ---------- shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  grid-template-rows: var(--top-h) auto;
  grid-template-areas: "top top" "side main";
  min-height: 100dvh;
  transition: grid-template-columns .28s var(--ease);
}

.top {
  grid-area: top; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px 0 14px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-lead { display: flex; align-items: center; gap: 10px; flex: none; }
@media (min-width: 1100px) { .top-lead { width: calc(var(--side-w) + var(--pad) - 30px); } }
.brand { display: block; border-radius: 10px; }
.brand-full { height: 36px; width: auto; }

.search { position: relative; flex: 1 1 auto; max-width: 520px; min-width: 0; }
.search > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 42px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  font-weight: 500; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--ink-3); font-weight: 400; }
.search input:hover { border-color: var(--line-2); }
.search input:focus { outline: none; background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.search kbd {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  min-width: 24px; padding: 3px 7px; text-align: center;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px; background: var(--surface);
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-3); pointer-events: none;
}
@media (hover: none) { .search kbd { display: none; } }
.top-actions { display: flex; gap: 10px; margin-left: auto; flex: none; }

/* ---------- sidebar ---------- */
.side {
  grid-area: side; position: sticky; top: var(--top-h); align-self: start; z-index: 20;
  height: calc(100dvh - var(--top-h));
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
  container: side / inline-size;
}
.side-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.side-foot { display: grid; gap: 2px; padding: 12px; border-top: 1px solid var(--line); }
.nav-group { display: grid; gap: 2px; }
.nav-heading { margin: 20px 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-2);
  font-weight: 500; font-size: 15px; text-align: left; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.nav-item svg { width: 22px; height: 22px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.nav-tag { margin-left: auto; padding: 3px 6px 2px; border-radius: 6px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.side-head { display: none; }
.nav-count { margin-left: auto; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--blue); color: #fff; }

@container side (max-width: 140px) {
  .nav-label, .nav-count, .nav-tag { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-heading { height: 1px; margin: 12px 10px; background: var(--line); }
  .nav-heading span { display: none; }
}

.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(3, 10, 36, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ---------- content ---------- */
.content { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1760px; margin-inline: auto; padding: 24px var(--pad) 56px; }
main:focus { outline: none; }

/* hero */
.hero { display: grid; gap: 16px; grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr); }
.promos { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; min-width: 0; }

.banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(252px, 24vw, 340px);
  display: flex; align-items: center;
  border-radius: var(--r-xl); background: var(--navy-950);
  box-shadow: var(--shadow-2);
}
.banner-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3, 10, 36, .92) 0%, rgba(3, 10, 36, .6) 36%, rgba(3, 10, 36, 0) 64%);
}
.banner-body { padding: clamp(22px, 3vw, 44px); max-width: min(580px, 64%); color: #fff; }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 11px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--gold-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2;
}
.banner h1 { font-size: clamp(26px, 3.1vw, 44px); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; text-wrap: balance; }
.banner-sub { margin-top: 12px; max-width: 40ch; color: #c3d0ee; font-size: clamp(14px, 1.15vw, 16px); text-wrap: pretty; }
.banner-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(16px, 2vw, 26px); }
.fine { font-size: 12px; color: #9fb0d6; }

.promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; min-height: 118px; padding: 20px 22px;
  border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.promo-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.promo-kicker .hot { padding: 3px 6px 2px; border-radius: 6px; background: var(--red); color: #fff; font-size: 10px; letter-spacing: .06em; line-height: 1.2; }
.promo-name { margin-top: 8px; font-size: clamp(24px, 2.25vw, 34px); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.promo-art { position: absolute; z-index: -1; right: -8px; bottom: -22px; width: clamp(96px, 36%, 128px); height: auto; aspect-ratio: 1; rotate: -12deg; transition: rotate .4s var(--ease), scale .4s var(--ease); }
.promo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; }
.promo-link svg { width: 18px; height: 18px; transition: translate .2s var(--ease); }

.promo-blue { color: #fff; background: radial-gradient(120% 120% at 100% 0%, #3d7bff 0%, transparent 55%), linear-gradient(140deg, #2460e6 0%, #1746c4 55%, #0e2f97 100%); }
.promo-blue .promo-kicker { color: #c9d9ff; }
.promo-blue .promo-art { color: var(--gold-300); filter: drop-shadow(0 10px 18px rgba(3, 10, 36, .4)); }
.promo-gold { color: var(--gold-ink); background: radial-gradient(120% 120% at 100% 0%, #fff0b3 0%, transparent 55%), linear-gradient(140deg, #ffdc6b 0%, #f6bb2e 55%, #ea9c12 100%); }
.promo-gold .promo-kicker { color: #6b4a00; }
.promo-gold .promo-art { color: var(--ink); filter: drop-shadow(0 10px 18px rgba(120, 70, 0, .35)); }
@media (hover: hover) {
  .promo:hover { transform: translateY(-3px); }
  .promo-blue:hover { box-shadow: 0 18px 36px -14px rgba(23, 70, 196, .7), var(--shadow-2); }
  .promo-gold:hover { box-shadow: 0 18px 36px -14px rgba(180, 110, 0, .55), var(--shadow-2); }
  .promo:hover .promo-art { rotate: -3deg; scale: 1.07; }
  .promo:hover .promo-link svg { translate: 4px 0; }
}

/* jackpot band */
.jackpot {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  margin-top: 16px; padding: 18px 24px 18px 128px;
  border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(90deg, #030a24 0%, #06173f 45%, #0c2c72 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 94, .3), var(--shadow-2);
}
.jackpot::before {
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: min(400px, 70%);
  background: url("../img/strip.webp") left 42% / auto 128% no-repeat;
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 26%, transparent 96%); mask: linear-gradient(90deg, #000 0%, #000 26%, transparent 96%);
}
.jackpot-kicker { color: var(--gold-300); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jackpot h2 { margin-top: 2px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 800; letter-spacing: -.014em; line-height: 1.15; white-space: nowrap; }
.jackpot-amount {
  display: flex; align-items: center; justify-content: center; gap: .1em; min-width: 0;
  font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.digit {
  position: relative; display: block; flex: none; width: .8em; height: 1.4em; overflow: hidden; border-radius: .2em;
  background: linear-gradient(180deg, #14347a 0%, #071a45 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 94, .34), inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 12px -6px rgba(0, 0, 0, .7);
}
.digit-reel { display: block; transform: translateY(calc(var(--n, 0) * -10%)); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.digit-reel span {
  display: block; height: 1.4em; line-height: 1.4em; text-align: center;
  background: linear-gradient(180deg, #fff3bf 10%, var(--gold) 75%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sep { flex: none; color: var(--gold-300); }
.sep-cur { margin-right: .12em; font-size: .86em; }
.sep-low { align-self: flex-end; margin: 0 -.02em; line-height: 1.1; }
.jackpot-cta svg { width: 18px; height: 18px; }
html[data-page="jackpot"] .jackpot { margin-top: 0; }
html[data-page="jackpot"] .jackpot-cta { display: none; }

/* category chips */
.filters-sentinel { height: 1px; margin-top: 15px; }
.filters {
  position: sticky; top: var(--top-h); z-index: 30;
  margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .2s;
}
.filters.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 18px -16px rgba(19, 39, 68, .35); }
html[data-view="results"]:not([data-page="jackpot"]) .filters-sentinel { margin-top: -13px; }
.chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); scroll-padding-inline: var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.chip svg { width: 18px; height: 18px; flex: none; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(31, 85, 214, .65); }

/* rails */
.rail { margin-top: 22px; }
.rail:first-child { margin-top: 10px; }
.rail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 34px; }
.rail-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-50); color: var(--blue); }
.rail-icon svg { width: 18px; height: 18px; }
.rail-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.012em; line-height: 1.2; }
.see-all { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 4px 6px 10px; border-radius: 10px; color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.see-all:hover { color: var(--blue-600); }
.rail-nav { display: flex; gap: 6px; }
.rail-track {
  --card-w: clamp(136px, 12.6vw, 178px);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: -8px calc(var(--pad) * -1) -14px; padding: 8px var(--pad) 22px; scroll-padding-inline: var(--pad);
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track:focus { outline: none; }

/* game card */
.card { position: relative; scroll-snap-align: start; min-width: 0; }
.card-hit { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); background: none; text-align: left; cursor: pointer; transition: transform .25s var(--ease); }
.cover {
  --c1: #2b62e6; --c2: #0b2a8c; --c3: #6aa8ff;
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
  border-radius: var(--r);
  background: radial-gradient(110% 70% at 88% -6%, var(--c3) 0%, transparent 62%), linear-gradient(165deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: var(--shadow-1);
  transition: box-shadow .25s var(--ease);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 50% 39%, rgba(255, 255, 255, .13) 0 1px, transparent 1px 17px);
  -webkit-mask: radial-gradient(circle at 50% 39%, #000 12%, transparent 70%); mask: radial-gradient(circle at 50% 39%, #000 12%, transparent 70%);
}
.cover::after {
  content: ""; position: absolute; inset: auto 0 0; height: 60%;
  background: linear-gradient(to top, rgba(3, 10, 36, .86) 0%, rgba(3, 10, 36, .5) 40%, rgba(3, 10, 36, 0) 100%);
}
.tone-1 { --c1: #2f66ea; --c2: #0b2a8c; --c3: #6aa8ff; }
.tone-2 { --c1: #1a9bf0; --c2: #0a47ad; --c3: #7fe6ff; }
.tone-3 { --c1: #7a4df0; --c2: #2d1887; --c3: #b996ff; }
.tone-4 { --c1: #f04a5a; --c2: #86112e; --c3: #ffa58f; }
.tone-5 { --c1: #f7b52c; --c2: #c2590a; --c3: #ffe98a; }
.tone-6 { --c1: #1fbf7a; --c2: #0a6350; --c3: #86f5c0; }
.tone-7 { --c1: #17b3b3; --c2: #0a5275; --c3: #86f3ea; }
.tone-8 { --c1: #e04ab8; --c2: #641886; --c3: #ffa3e4; }
.tone-9 { --c1: #2a4a8c; --c2: #091436; --c3: #5c98e6; }

.glyph {
  position: absolute; z-index: 1; left: 50%; top: 39%; width: 52%; height: auto; aspect-ratio: 1; translate: -50% -50%;
  color: #fff; filter: drop-shadow(0 8px 14px rgba(3, 10, 36, .38));
  transition: scale .35s var(--ease), rotate .35s var(--ease), opacity .2s;
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .35s var(--ease); }
.cover.has-img::before { display: none; }
.cover-meta { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 11px; display: grid; gap: 3px; }
.card-title { color: #fff; font-weight: 800; font-size: 14.5px; line-height: 1.15; letter-spacing: -.005em; text-wrap: balance; }
.card-provider { color: rgba(255, 255, 255, .72); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.play {
  position: absolute; z-index: 3; left: 50%; top: 39%; translate: -50% -50%;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 26px -8px rgba(3, 10, 36, .7);
  opacity: 0; scale: .7; transition: opacity .2s, scale .3s var(--ease);
}
.play svg { width: 24px; height: 24px; translate: 1px 0; }

.badge {
  position: absolute; z-index: 3; top: 9px; left: 9px;
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.b-hot { background: var(--red); color: #fff; }
.b-new { background: #fff; color: var(--blue); }
.b-jackpot { background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--gold-ink); }
.b-original { background: var(--ink); color: var(--gold-300); }
.b-live { background: rgba(3, 10, 36, .62); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.b-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d57; animation: pulse 1.6s ease-in-out infinite; }

.fav {
  position: absolute; z-index: 4; top: 7px; right: 7px;
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(3, 10, 36, .4); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .2s, background-color .15s, scale .2s var(--ease), color .15s;
}
.fav svg { width: 17px; height: 17px; }
.fav:hover { background: rgba(3, 10, 36, .62); scale: 1.08; }
.fav[aria-pressed="true"] { color: #ff5c7a; }
.fav[aria-pressed="true"] svg { fill: currentColor; }

@media (hover: hover) {
  .fav:not([aria-pressed="true"]) { opacity: 0; }
  .card:hover .fav, .card:focus-within .fav { opacity: 1; }
  .card-hit:hover { transform: translateY(-4px); }
  .card-hit:hover .cover { box-shadow: 0 20px 30px -16px color-mix(in srgb, var(--c2) 80%, #000), var(--shadow-2); }
  .card-hit:hover .glyph { scale: 1.12; rotate: -5deg; opacity: .3; }
  .card-hit:hover .cover-img { scale: 1.05; }
  .card-hit:hover .play { opacity: 1; scale: 1; }
}
.card-hit:focus-visible .play { opacity: 1; scale: 1; }
.card-hit:focus-visible .glyph { opacity: .3; }

/* results */
.results { margin-top: 12px; }
.results-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 18px; }
.results-title { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.results-title h2 { font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -.016em; line-height: 1.2; overflow-wrap: anywhere; }
.results-tools { display: flex; gap: 8px; }
.select select {
  -webkit-appearance: none; appearance: none; height: 40px; padding: 0 36px 0 14px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347567a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  transition: border-color .15s;
}
.select select:hover { border-color: var(--line-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px 14px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 64px 16px; text-align: center; }
.empty-art { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.empty-art svg { width: 30px; height: 30px; }
.empty h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.empty p { max-width: 36ch; color: var(--ink-2); }
.empty .btn { margin-top: 12px; }
.noscript { margin-top: 24px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }

/* ---------- footer ---------- */
.foot { background: var(--navy-950); color: #aab6d2; padding: 44px var(--pad) calc(28px + var(--tab-h)); }
.foot-main, .foot-base { max-width: 1704px; margin-inline: auto; }
.foot-main { display: grid; grid-template-columns: minmax(220px, 1.1fr) 2fr; gap: 40px; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { margin-top: 14px; max-width: 32ch; font-size: 14px; line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h3 { margin-bottom: 10px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.foot-cols a, .foot-cols button { display: inline-block; padding: 5px 0; border: 0; background: none; color: inherit; font-size: 14px; text-align: left; cursor: pointer; border-radius: 6px; transition: color .15s; }
.foot-cols a:hover, .foot-cols button:hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.age { display: flex; align-items: center; gap: 12px; max-width: 60ch; }
.age-badge { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1.5px solid #fff; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }
.copy { color: #8090b4; }

/* ---------- mobile tab bar ---------- */
.tabbar {
  display: none; position: fixed; inset: auto 0 0; z-index: 50;
  grid-template-columns: repeat(4, 1fr); height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab { display: grid; place-content: center; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--ink-3); font-size: 11px; font-weight: 600; cursor: pointer; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--blue); }

/* ---------- auth dialog ---------- */
.auth {
  width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 32px 28px 22px;
  border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-3); text-align: center; overflow-y: auto;
}
.auth::backdrop { background: rgba(3, 10, 36, .56); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.auth[open] { animation: pop .3s var(--ease); }
.auth[open]::backdrop { animation: fade .25s ease-out; }
.auth-close { position: absolute; top: 12px; right: 12px; }
.auth-mark { margin: 0 auto 12px; width: 62px; height: auto; }
.auth h2 { font-size: 24px; font-weight: 800; letter-spacing: -.018em; line-height: 1.2; }
.auth-sub { margin-top: 6px; color: var(--ink-2); text-wrap: balance; }
.field { display: grid; gap: 6px; margin-top: 22px; text-align: left; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.form-note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fff5db; color: #6a4a00; font-size: 13px; text-align: left; }
.auth .btn-block { margin-top: 18px; }
.btn-google {
  background: #fff; color: #1b1f27; border-color: var(--line-2);
  box-shadow: 0 2px 10px -6px rgba(3, 10, 36, .4);
}
.btn-google:hover { background: #f4f6fc; border-color: var(--line-2); }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-new { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--blue-50); color: var(--ink); font-size: 13px; text-wrap: balance; }
.auth-fine { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-wrap: balance; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tab-h) + 20px); translate: -50% 12px;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- loading splash ---------- */
/* Star spins in, turns into the die, the die lands on its own spot in the logo and the logo
   lights up around it. .splash-die is the logo image clipped to the die, pivoting on the die's centre. */
.splash-screen { display: none; }
html.splash .splash-screen {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: radial-gradient(70% 55% at 50% 42%, #0f327d 0%, #06173f 52%, #030a24 100%);
  transition: opacity .45s ease, visibility 0s .45s;
}
html.splash-intro { overflow: hidden; }
html.splash-quiet .splash-screen { animation: sp-late .25s .45s both; }
html.splash-out .splash-screen { animation: none; opacity: 0; visibility: hidden; }

.splash-stage { position: relative; width: clamp(190px, 36vmin, 270px); aspect-ratio: 1; }
.splash-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-glow { scale: 1.55; border-radius: 50%; background: radial-gradient(circle, rgba(34, 200, 238, .34) 0%, rgba(31, 85, 214, .2) 38%, rgba(31, 85, 214, 0) 68%); animation: sp-breathe 2.6s ease-in-out infinite; }
.splash-ring { inset: 9%; width: auto; height: auto; border: 2px solid rgba(110, 225, 255, .85); border-radius: 50%; opacity: 0; }
.splash-die {
  transform-origin: 65.6% 71.05%;
  clip-path: polygon(64.75% 57.97%, 66.59% 57.5%, 68.42% 57.97%, 77.75% 63%, 78.79% 64.04%, 78.95% 65.55%, 77.75% 76.16%, 77.03% 77.75%, 75.6% 78.95%, 64.19% 84.13%, 62.68% 84.61%, 61.24% 84.21%, 53.59% 78.95%, 52.63% 77.75%, 52.23% 76.16%, 52.47% 66.59%, 52.95% 65.23%, 54.07% 64.19%);
}
.splash-burst {
  opacity: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, rgba(255, 220, 110, .95) 0 3deg, rgba(255, 220, 110, 0) 3deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 24%, #000 30%, #000 44%, transparent 64%); mask: radial-gradient(circle, transparent 24%, #000 30%, #000 44%, transparent 64%);
}
.splash-star { inset: 29%; width: 42%; height: 42%; opacity: 0; filter: drop-shadow(0 0 16px rgba(255, 196, 60, .95)) drop-shadow(0 0 40px rgba(255, 170, 40, .5)); }
.splash-word { height: clamp(22px, 4.3vmin, 30px); width: auto; }
.splash-bar { width: clamp(190px, 36vmin, 270px); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.splash-bar span { display: block; width: calc(var(--load, 0) * 100%); min-width: 6px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0a01a, #ffd45e 60%, #fff3bf); box-shadow: 0 0 14px rgba(243, 183, 47, .8); }

html.splash-intro .splash-star { animation: sp-star .82s cubic-bezier(.3, .6, .2, 1) both; }
html.splash-intro .splash-burst { animation: sp-burst .6s .66s ease-out forwards; }
html.splash-intro .splash-die { animation: sp-die 1.05s .62s cubic-bezier(.25, .8, .25, 1) both; }
html.splash-intro .splash-logo { animation: sp-logo .5s 1.5s ease-out both; }
html.splash-intro .splash-ring { animation: sp-ring .9s 1.6s ease-out forwards; }
html.splash-intro .splash-stage { animation: sp-flip .75s 1.85s cubic-bezier(.4, .1, .2, 1) both; }
html.splash-intro .splash-word { animation: sp-word .5s 1.75s var(--ease) both; }

@keyframes sp-star {
  0% { opacity: 0; transform: scale(.1) rotate(-200deg); }
  30% { opacity: 1; transform: scale(1.25) rotate(110deg); }
  72% { opacity: 1; transform: scale(1) rotate(430deg); }
  90% { opacity: 1; transform: scale(.55) rotate(580deg); }
  100% { opacity: 0; transform: scale(.3) rotate(640deg); }
}
@keyframes sp-burst {
  0% { opacity: 1; transform: scale(.25); }
  100% { opacity: 0; transform: scale(1.55) rotate(35deg); }
}
/* translate() puts the die's centre on the stage centre; the last keyframe is its real place in the logo */
@keyframes sp-die {
  0% { opacity: 0; transform: translate(-15.6%, -21.05%) scale(.4) rotate(-240deg); }
  10% { opacity: 1; transform: translate(-15.6%, -21.05%) scale(.9) rotate(-150deg); }
  28% { opacity: 1; transform: translate(-15.6%, -27%) scale(2) rotate(16deg); }
  44% { opacity: 1; transform: translate(-15.6%, -21.05%) scale(1.75) rotate(-7deg); }
  58% { opacity: 1; transform: translate(-15.6%, -21.05%) scale(1.8) rotate(0deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes sp-logo {
  0% { opacity: 0; filter: brightness(2.4) saturate(1.3); }
  55% { opacity: 1; filter: brightness(1.4); }
  100% { opacity: 1; filter: none; }
}
@keyframes sp-ring {
  0% { opacity: .9; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.75); }
}
@keyframes sp-flip {
  0% { transform: perspective(700px) rotateY(0) scale(1); }
  50% { transform: perspective(700px) rotateY(180deg) scale(1.1); }
  100% { transform: perspective(700px) rotateY(360deg) scale(1); }
}
@keyframes sp-word { from { opacity: 0; transform: translateY(12px); } }
@keyframes sp-breathe { 50% { opacity: .55; scale: 1.66; } }
@keyframes sp-late { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .promos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 1040px) {
  .jackpot { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text cta" "amount amount"; padding-top: 16px; padding-bottom: 18px; }
  .jackpot-text { grid-area: text; }
  .jackpot-cta { grid-area: cta; }
  .jackpot-amount { grid-area: amount; justify-content: flex-start; }
  .jackpot::before { background-size: auto 104%; background-position: left 40%; }
}

@media (max-width: 719px) {
  :root { --top-h: 114px; --pad: 16px; --tab-h: calc(60px + env(safe-area-inset-bottom)); }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; transition: none; }
  .top { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 58px 56px; align-items: center; gap: 0 12px; padding: 0 var(--pad); }
  .top-lead { grid-area: 1 / 1; width: auto; }
  .top-actions { grid-area: 1 / 2; }
  #nav-toggle { display: none; }
  .brand-full { height: 30px; }
  .search { grid-area: 2 / 1 / 3 / 3; align-self: start; max-width: none; }
  .top-actions .btn { height: 40px; padding: 0 18px; }

  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 60; align-self: stretch; width: min(300px, 86vw); height: 100dvh;
    translate: -105% 0; visibility: hidden; box-shadow: var(--shadow-3);
    transition: translate .3s var(--ease), visibility 0s .3s;
    padding-top: env(safe-area-inset-top);
  }
  html[data-drawer="open"] .side { translate: 0 0; visibility: visible; transition: translate .3s var(--ease); }
  .side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 4px 24px; }
  .side-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
  .side-scroll { padding-top: 8px; }
  .side-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

  .tabbar { display: grid; }
  main { padding-top: 16px; padding-bottom: 40px; }
  .hero { gap: 12px; }
  .banner { min-height: 216px; border-radius: var(--r-lg); }
  .banner-art { object-position: calc(100% + 52px) 50%; }
  .banner::before { background: linear-gradient(90deg, rgba(3, 10, 36, .95) 0%, rgba(3, 10, 36, .72) 46%, rgba(3, 10, 36, 0) 80%); }
  .banner-body { max-width: 66%; }
  .banner h1 { font-size: 25px; }
  .banner-sub { display: none; }
  .banner .btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
  .promos { gap: 12px; }
  .promo { padding: 16px 18px; min-height: 124px; border-radius: 16px; }
  .promo-name { font-size: 27px; }
  .promo-art { width: 104px; }

  .rail { margin-top: 18px; }
  .rail-head h2 { font-size: 18px; }
  .rail-nav { display: none; }
  .rail-track { --card-w: 132px; gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px 12px; }
  .results-tools { width: 100%; }
  .results-tools .select { flex: 1; }
  .results-tools select { width: 100%; }

  .foot-main { grid-template-columns: 1fr; gap: 28px; }
  .foot-cols { gap: 16px; }
}

@media (max-width: 560px) {
  .jackpot { padding: 14px 16px 16px; border-radius: 16px; }
  .jackpot::before { display: none; }
  .jackpot-amount { font-size: clamp(24px, 7.6vw, 32px); }
  .jackpot-cta { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
  .promos {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: -4px calc(var(--pad) * -1) -22px; padding: 4px var(--pad) 22px; scroll-padding-inline: var(--pad);
  }
  .promos::-webkit-scrollbar { display: none; }
  .promo { flex: 0 0 80%; scroll-snap-align: start; }
}

@media (max-width: 380px) {
  .brand-full { height: 26px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Oyun lansmani — saglayici demo iframe kab. Tema token'lari; sabit tema bozulmaz. */
.game-shell {
  position: fixed; inset: 0; z-index: 300; background: var(--navy-950);
  display: flex; flex-direction: column;
}
.game-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--navy-900); color: #fff; border-bottom: 1px solid var(--line);
}
.game-name { font-weight: 700; font-size: 15px; }
.game-provider { font-size: 12px; color: var(--ink-3); }
.game-ext { margin-left: auto; font-size: 13px; color: var(--gold-300); text-decoration: none; }
.game-ext:hover { text-decoration: underline; }
.game-x {
  border: 1px solid var(--line-2); background: transparent; color: #fff;
  border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.game-x:hover { background: rgba(255,255,255,.08); }
.game-frame { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 640px) {
  .game-provider { display: none; }
}
