/* Mega888 Today — Magenta Violet + Gold system */

:root {
  --page-top: #3A1257;
  --page-bottom: #20083A;
  --card: #FFFFFF;
  --ink: #241040;
  --ink-soft: rgba(36, 16, 64, 0.66);
  --gold: #E7B53C;
  --gold-deep: #C8912A;
  --violet: #A24BE0;
  --violet-mid: #6E24B4;
  --violet-deep: #45166F;
  --feature: #2A0B4A;
  --on-dark: #F3ECFF;
  --on-dark-soft: rgba(243, 236, 255, 0.72);
  --line: rgba(36, 16, 64, 0.12);

  --display: "Sora", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --radius: 14px;
  --wrap: 1160px;

  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  position: relative;
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--page-bottom);
  font-size: 16px;
  line-height: 1.6;
}
/* Fixed viewport-sized layer, not a body background — keeps background-size:cover
   scaled to the screen instead of the full scrollable page height (which on mobile
   made the image zoom in on just its calm centre band and crop out the artwork). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(58, 18, 87, 0.78), rgba(32, 8, 58, 0.90)),
    url('/assets/site-bg.webp') center center / cover no-repeat;
}
@media (max-width: 768px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(58, 18, 87, 0.78), rgba(32, 8, 58, 0.90)),
      url('/assets/site-bg-mobile.webp') center top / cover no-repeat;
  }
}

h1, h2, h3 { font-family: var(--display); line-height: 1.14; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 var(--space-2); }
p { text-wrap: pretty; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-3); }

.skip-link { position: absolute; left: -999px; background: var(--gold); color: #2A1B03; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 0; top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* In-content editorial anchor links (light card contexts) */
.content-link { color: var(--violet-mid); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(110, 36, 180, 0.35); text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.content-link:hover { color: var(--violet-deep); text-decoration-color: var(--violet-deep); }

/* In-content editorial anchor links (dark page-background contexts) */
.content-link-light { color: var(--gold); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(231, 181, 60, 0.4); text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.content-link-light:hover { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(23, 6, 45, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(243, 236, 255, 0.12); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0.85rem 0; }
.brand { min-width: 0; display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--display); font-weight: 800; color: var(--on-dark); font-size: 1.05rem; }
.brand-word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-word-accent { display: inline-block; margin-left: 0.4em; font-size: 0.62em; font-weight: 700; color: var(--gold); letter-spacing: 0.09em; text-transform: uppercase; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-footer .brand-logo { height: 26px; }
.site-nav { display: flex; gap: 1.5rem; font-weight: 600; font-size: 0.92rem; }
.site-nav a { text-decoration: none; color: var(--on-dark-soft); }
.site-nav a:hover { color: var(--on-dark); }
.site-nav .mobile-nav-cta { display: none; }
.mobile-nav-toggle { display: none; }
@media (max-width: 860px) {
  body.mobile-nav-open { overflow: hidden; }
  .site-header { background: rgba(23, 6, 45, 0.94); }
  .header-row { position: relative; gap: 0.75rem; }
  .brand { flex: 1 1 auto; }
  .site-nav { display: flex; gap: 0.85rem; max-width: 100%; overflow-x: auto; padding: 0.35rem 0; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .mobile-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-right: 0.45rem;
    min-height: 40px; padding: 0.5rem 0.72rem; border: 1px solid rgba(243, 236, 255, 0.2);
    border-radius: 10px; background: rgba(243, 236, 255, 0.1); color: var(--on-dark);
    font-family: var(--body); font-weight: 800; font-size: 0.84rem; cursor: pointer;
  }
  .mobile-nav-toggle-icon { width: 18px; display: grid; gap: 4px; }
  .mobile-nav-toggle-icon span {
    display: block; height: 2px; border-radius: 999px; background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .mobile-nav-open .mobile-nav-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-nav-open .mobile-nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .mobile-nav-open .mobile-nav-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header.has-mobile-nav .site-nav {
    position: absolute; top: calc(100% + 0.7rem); left: var(--space-3); right: var(--space-3);
    display: grid; gap: 0.2rem; padding: 0.6rem; max-height: calc(100dvh - 6.5rem); overflow-y: auto;
    border: 1px solid rgba(243, 236, 255, 0.18); border-radius: 14px;
    background: #21103e;
    box-shadow: 0 12px 24px rgba(10, 2, 30, 0.48);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(0.98);
    transform-origin: top center; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }
  .site-header.has-mobile-nav.mobile-nav-open .site-nav {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
  }
  .site-header.has-mobile-nav .site-nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 46px;
    padding: 0.64rem 0.8rem; border-radius: 10px; color: var(--on-dark); font-size: 0.98rem;
    background: rgba(255, 255, 255, 0.03);
  }
  .site-header.has-mobile-nav .site-nav a:hover, .site-header.has-mobile-nav .site-nav a[aria-current="page"] {
    color: var(--gold); background: rgba(243, 236, 255, 0.09);
  }
  .site-header.has-mobile-nav .site-nav a[aria-current="page"]::after {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  }
  .site-header.has-mobile-nav .site-nav .mobile-nav-cta {
    display: inline-flex; justify-content: center; width: 100%; margin-top: 0.35rem;
    color: #2A1B03; min-height: 46px; font-size: 0.92rem;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  }
  .site-header.has-mobile-nav .site-nav .mobile-nav-cta:hover {
    color: #2A1B03; background: linear-gradient(180deg, #F4C74B, var(--gold-deep));
  }
}

/* Floating WhatsApp CTA */
.floating-whatsapp {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70; display: inline-flex; align-items: center; justify-content: center; gap: 0.52rem;
  min-height: 54px; min-width: 54px; padding: 0.78rem 1rem; border-radius: 999px;
  background: linear-gradient(180deg, #2EEB79, #16B857); color: #062815; text-decoration: none;
  font-family: var(--body); font-weight: 900; font-size: 0.95rem; letter-spacing: 0;
  box-shadow: 0 8px 14px rgba(7, 80, 36, 0.32); isolation: isolate; overflow: hidden;
  animation: whatsapp-float 3.2s ease-in-out infinite;
}
.floating-whatsapp::before {
  content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: inherit;
  background: rgba(37, 211, 102, 0.24); animation: whatsapp-pulse 2.4s ease-out infinite;
}
.floating-whatsapp::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -55%; width: 42%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  transform: skewX(-18deg); animation: whatsapp-shine 3.4s ease-in-out infinite;
}
.floating-whatsapp:hover { filter: brightness(1.04); transform: translateY(-1px); }
.floating-whatsapp-icon, .floating-whatsapp-text { position: relative; z-index: 1; }
.floating-whatsapp-icon { display: inline-flex; align-items: center; justify-content: center; color: #062815; }
body.mobile-nav-open .floating-whatsapp { opacity: 0; pointer-events: none; transform: translateY(8px); }
@keyframes whatsapp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes whatsapp-pulse {
  0% { transform: scale(0.92); opacity: 0.75; }
  70%, 100% { transform: scale(1.34); opacity: 0; }
}
@keyframes whatsapp-shine {
  0%, 18% { left: -55%; }
  48%, 100% { left: 135%; }
}
body.mobile-nav-open .floating-whatsapp { animation: none; }
body.mobile-nav-open .floating-whatsapp::before, body.mobile-nav-open .floating-whatsapp::after { display: none; }
@media (max-width: 560px) {
  .floating-whatsapp {
    right: max(0.9rem, env(safe-area-inset-right)); bottom: max(0.9rem, env(safe-area-inset-bottom));
    width: 56px; height: 56px; padding: 0; gap: 0;
  }
  .floating-whatsapp-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp { animation: none; }
  .floating-whatsapp::before, .floating-whatsapp::after { animation: none; display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--body); font-weight: 700; text-decoration: none; border: none; cursor: pointer; border-radius: 10px; padding: 0.82rem 1.4rem; font-size: 0.96rem; transition: filter 0.15s ease, transform 0.15s ease; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2A1B03; box-shadow: 0 6px 16px rgba(231, 181, 60, 0.3); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost-light { background: rgba(243, 236, 255, 0.1); color: var(--on-dark); border: 1.5px solid rgba(243, 236, 255, 0.3); }
.btn-ghost-light:hover { background: rgba(243, 236, 255, 0.18); }

/* Shine CTA: diagonal light sweep + soft brand-color pulse, staggered per button */
.btn-shine { --shine-glow: rgba(231, 181, 60, 0.5); position: relative; overflow: hidden; isolation: isolate; animation: btn-glow-pulse 2.6s ease-in-out infinite; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  transform: skewX(-20deg); animation: btn-shine-sweep 3.2s ease-in-out infinite;
}
.btn-shine:nth-of-type(2) { animation-delay: 0.5s; }
.btn-shine:nth-of-type(2)::after { animation-delay: 0.9s; }
.btn-shine:nth-of-type(3) { animation-delay: 1s; }
.btn-shine:nth-of-type(3)::after { animation-delay: 1.8s; }
@keyframes btn-shine-sweep {
  0%, 15% { left: -160%; }
  55%, 100% { left: 160%; }
}
@keyframes btn-glow-pulse {
  50% { box-shadow: 0 6px 24px var(--shine-glow); }
}

/* OS-brand CTA colors */
.btn-android { background: linear-gradient(180deg, #4DE895, #2FBD6E); color: #0B3B1F; box-shadow: 0 6px 16px rgba(61, 220, 132, 0.35); --shine-glow: rgba(61, 220, 132, 0.65); }
.btn-android:hover { filter: brightness(1.05); }
.btn-ios { background: linear-gradient(180deg, #FFFFFF, #F1F1F1); color: #111111; border: 1.5px solid rgba(0, 0, 0, 0.08); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); --shine-glow: rgba(0, 0, 0, 0.28); }
.btn-ios:hover { filter: brightness(0.97); }
.btn-windows { background: linear-gradient(180deg, #2FBBFF, #0078D4); color: #FFFFFF; box-shadow: 0 6px 16px rgba(0, 164, 239, 0.35); --shine-glow: rgba(0, 164, 239, 0.65); }
.btn-windows:hover { filter: brightness(1.05); }
.btn-ghost-dark { background: transparent; color: var(--violet-mid); border: 1.5px solid var(--violet-mid); flex-shrink: 0; }
.btn-ghost-dark:hover { background: rgba(110, 36, 180, 0.06); }

/* Trust strip */
.trust-strip { background: rgba(0, 0, 0, 0.18); border-bottom: 1px solid rgba(243, 236, 255, 0.1); }
.trust-strip-row { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; padding: 0.55rem 0; }
.trust-strip-item { display: flex; align-items: center; gap: 0.4rem; color: var(--on-dark-soft); font-size: 0.78rem; font-weight: 600; }
.trust-strip-item svg { color: var(--gold); flex-shrink: 0; }

/* Sections */
.section { padding: var(--space-4) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; font-weight: 700; color: var(--gold); margin-bottom: 0.7rem; }

/* Active nav + inner-page header */
.site-nav a[aria-current="page"] { color: var(--gold); }
.page-head { padding-top: 1.5rem; }
.page-head h1 { color: var(--on-dark); font-size: clamp(2rem, 3vw + 1rem, 2.8rem); margin-bottom: 0.5rem; }
.page-head .section-standfirst { margin-top: 0.4rem; max-width: 62ch; }

/* Page hero banner: image band behind a page-head. */
.page-hero-banner { position: relative; overflow: hidden; padding-top: 3rem; padding-bottom: 3rem; }
.page-hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(24, 6, 46, 0.94) 0%, rgba(24, 6, 46, 0.62) 48%, rgba(24, 6, 46, 0.3) 100%);
}
.page-hero-banner .wrap { position: relative; z-index: 1; }
.page-hero-banner .back-link { color: var(--on-dark-soft); }
.page-hero-banner .back-link:hover { color: var(--on-dark); }

.hero-banner-hub::before { background-image: url('/assets/download-hero.webp'); }
.hero-banner-login::before { background-image: url('/assets/download-hero-testid.webp'); background-position: center; }
.hero-banner-android::before { background-image: url('/assets/download-hero-android.webp'); }
.hero-banner-ios::before { background-image: url('/assets/download-hero-ios.webp'); }
.hero-banner-windows::before { background-image: url('/assets/download-hero-windows.webp'); }
.hero-banner-testid::before { background-image: url('/assets/download-hero-testid.webp'); }

/* Hero */
.hero-full { position: relative; display: flex; align-items: center; min-height: clamp(560px, 82vh, 760px); }
.hero-content { max-width: 680px; padding: 2.5rem 0 4.5rem; margin: 0 auto; text-align: center; }
.hero-content h1 { color: var(--on-dark); }
.hero-sub { color: var(--on-dark-soft); font-size: 1.1rem; max-width: 44ch; margin: 0 auto 1.4rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-full .hero-actions { flex-wrap: nowrap; justify-content: center; }
@media (max-width: 640px) {
  .hero-full .hero-actions { flex-direction: column; flex-wrap: wrap; }
  .hero-full .hero-actions .btn { width: 100%; }
}

/* Homepage routing hub */
.home-hero {
  position: relative; overflow: hidden; min-height: clamp(680px, 88vh, 850px);
  display: flex; align-items: center; padding: clamp(4.5rem, 6.5vw, 6.5rem) 0;
  isolation: isolate;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/hero-slide-1.webp') center / cover no-repeat;
  transform: scale(1.02);
}
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 62% at 50% 48%, rgba(162, 75, 224, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(24, 6, 46, 0.88) 0%, rgba(24, 6, 46, 0.68) 42%, rgba(32, 8, 58, 0.86) 100%),
    linear-gradient(90deg, rgba(24, 6, 46, 0.74), rgba(24, 6, 46, 0.28) 50%, rgba(24, 6, 46, 0.74));
}
.home-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  max-width: 980px; row-gap: clamp(1.1rem, 2vw, 1.8rem); justify-items: center; align-items: center;
  text-align: center;
}
.home-hero-grid > * { min-width: 0; }
.home-hero-content { width: 100%; max-width: 860px; }
.home-hero h1 {
  color: var(--on-dark); font-size: clamp(2.7rem, 4.2vw + 1rem, 4.9rem);
  line-height: 1.02; margin: 0 auto 0.95rem;
}
.home-hero-sub {
  color: var(--on-dark-soft); font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.28rem);
  line-height: 1.62; max-width: 57ch; margin: 0 auto;
}
.home-hero-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.home-text-link { color: var(--gold); font-weight: 800; text-decoration: none; padding: 0.55rem 0; }
.home-text-link:hover { text-decoration: underline; }
.home-proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; max-width: 620px; }
.home-proof-row span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0.35rem 0.75rem;
  border-radius: 999px; background: rgba(243, 236, 255, 0.1); color: var(--on-dark);
  font-size: 0.82rem; font-weight: 700;
}
.home-download-console {
  width: min(100%, 920px); justify-self: center; display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr); gap: 1.1rem;
  background: linear-gradient(145deg, rgba(28, 5, 52, 0.96), rgba(58, 18, 87, 0.82));
  border-radius: var(--radius); padding: clamp(1.05rem, 2vw, 1.45rem); color: var(--on-dark);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.42); text-align: left;
}
.home-download-head { min-width: 0; align-self: center; }
.home-download-head span {
  display: block; color: var(--gold); font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.45rem;
}
.home-download-head h2 {
  color: var(--on-dark); font-size: clamp(1.45rem, 1.3vw + 1rem, 2rem); letter-spacing: 0;
  margin-bottom: 0.45rem;
}
.home-download-head p { color: var(--on-dark-soft); font-size: 0.94rem; line-height: 1.45; margin: 0; }
.home-download-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; align-items: stretch;
  min-width: 0; overflow: hidden; border-radius: 12px; background: rgba(243, 236, 255, 0.14);
}
.home-download-option { text-align: center; min-width: 0; }
.home-launch-choice {
  position: relative; isolation: isolate; overflow: hidden;
  min-width: 0; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem;
  padding: 1rem; color: var(--on-dark); text-decoration: none;
  background: linear-gradient(180deg, rgba(243, 236, 255, 0.1), rgba(10, 2, 30, 0.18));
  transition: filter 0.18s ease, transform 0.18s ease;
}
.home-launch-choice::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; z-index: 0; pointer-events: none;
  width: 42%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg); animation: home-launch-shine 4.8s ease-in-out infinite;
}
.home-launch-choice:hover { filter: brightness(1.06); transform: translateY(-2px); }
.home-launch-icon {
  position: relative; z-index: 1;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--gold); background: rgba(231, 181, 60, 0.14);
}
.home-launch-icon svg { width: 24px; height: 24px; }
.home-launch-copy { position: relative; z-index: 1; display: block; min-width: 0; }
.home-launch-copy small {
  display: block; color: var(--on-dark-soft); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.16rem;
}
.home-launch-copy strong { display: block; color: var(--on-dark); font-family: var(--display); font-size: 1rem; line-height: 1.12; }
.home-launch-copy em { display: block; color: rgba(243, 236, 255, 0.82); font-style: normal; font-size: 0.84rem; margin-top: 0.22rem; }
.home-launch-android { background: linear-gradient(155deg, #4DE895, #128D4D 58%, #07552F); }
.home-launch-ios { background: linear-gradient(155deg, #F04DA9, #A92DE4 58%, #571879); }
.home-launch-windows { background: linear-gradient(155deg, #4CC8FF, #087ED2 58%, #064F91); }
.home-launch-ios::after { animation-delay: 0.7s; }
.home-launch-windows::after { animation-delay: 1.4s; }
.home-launch-android .home-launch-icon { color: #EFFFF6; background: rgba(0, 60, 30, 0.22); }
.home-launch-ios .home-launch-icon { color: #FFF1FF; background: rgba(62, 8, 86, 0.24); }
.home-launch-windows .home-launch-icon { color: #EAF8FF; background: rgba(0, 46, 98, 0.24); }
.home-download-pill {
  display: flex; align-items: center; justify-content: center; min-height: 62px; width: 100%;
  border-radius: 999px; padding: 0.85rem 1rem; color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(0.9rem, 0.45vw + 0.78rem, 1.04rem);
  line-height: 1.05; text-align: center; box-shadow: inset 0 2px 2px rgba(255,255,255,0.25), inset 0 -8px 16px rgba(0,0,0,0.2), 0 10px 22px rgba(10, 2, 30, 0.34);
  transition: transform 0.18s ease, filter 0.18s ease; white-space: nowrap;
}
.home-download-pill:hover { transform: translateY(-2px); filter: brightness(1.06); }
.home-download-pill-android { background: linear-gradient(180deg, #7FCC00, #2E8D0F); }
.home-download-pill-ios { background: linear-gradient(100deg, #DF247D, #B52AF2); }
.home-download-pill-pc { background: linear-gradient(100deg, #69B8EA, #2769C4); }
.home-download-option p {
  color: var(--on-dark); font-size: 0.88rem; line-height: 1.35; max-width: 18ch;
  margin: 0.75rem auto 0; text-shadow: 0 2px 6px rgba(10, 2, 30, 0.55);
}
.home-download-extra {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-width: 0; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(243, 236, 255, 0.08);
}
.home-download-extra > span { color: var(--on-dark-soft); font-weight: 800; font-size: 0.92rem; }
.home-download-links { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: flex-end; }
.home-download-more {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; min-height: 34px; padding: 0.35rem 0.7rem;
  border-radius: 999px; color: var(--gold); background: rgba(231, 181, 60, 0.1);
  font-weight: 800; font-size: 0.86rem; text-decoration: none;
}
.home-download-more::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -95%; z-index: 0; pointer-events: none;
  width: 55%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg); animation: home-chip-shine 3.6s ease-in-out infinite;
}
.home-download-more:nth-child(2)::after { animation-delay: 0.9s; }
.home-download-more:hover { background: rgba(231, 181, 60, 0.18); text-decoration: none; }
@keyframes home-launch-shine {
  0%, 34% { left: -70%; }
  58%, 100% { left: 128%; }
}
@keyframes home-chip-shine {
  0%, 28% { left: -95%; }
  62%, 100% { left: 135%; }
}
.home-what { padding-top: var(--space-5); }
.home-what-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--space-4); align-items: start;
  background: var(--card); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.34);
}
.home-what-copy h2 { color: var(--ink); }
.home-what-copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 68ch; }
.home-what-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.2rem; }
.home-what-notes {
  display: grid; gap: 1px; overflow: hidden; border-radius: 12px;
  background: rgba(36, 16, 64, 0.12);
}
.home-what-note {
  display: grid; gap: 0.22rem; padding: 1rem 1.1rem;
  background: rgba(110, 36, 180, 0.07);
}
.home-what-note strong { color: var(--ink); font-family: var(--display); line-height: 1.2; }
.home-what-note span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.home-games-stage {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
  gap: var(--space-3); align-items: stretch;
}
.home-games-cover {
  position: relative; min-height: 530px; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius); background: var(--feature); text-decoration: none; isolation: isolate;
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.34);
}
.home-games-cover img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.home-games-cover:hover img { transform: scale(1.035); }
.home-games-cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 2, 30, 0.96), rgba(10, 2, 30, 0.28) 58%, rgba(10, 2, 30, 0.08));
}
.home-games-cover-copy { display: block; padding: clamp(1.25rem, 2vw, 1.8rem); color: var(--on-dark-soft); }
.home-games-cover-copy strong {
  display: block; color: var(--on-dark); font-family: var(--display); font-size: clamp(1.45rem, 1.7vw + 1rem, 2.2rem);
  line-height: 1.08; margin-bottom: 0.35rem;
}
.home-games-cover-copy span { display: block; max-width: 28ch; }
.home-games-menu {
  background: var(--card); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.34);
}
.home-games-menu-head h2 { color: var(--ink); margin-bottom: 0.45rem; }
.home-games-menu-head p { color: var(--ink-soft); margin-bottom: 1rem; }
.home-game-routes { display: grid; margin-bottom: 1.2rem; }
.home-game-route {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.78rem 0; border-top: 1px solid var(--line); text-decoration: none;
}
.home-game-route:first-child { border-top: none; }
.home-game-route strong { display: block; color: var(--ink); font-family: var(--display); line-height: 1.2; }
.home-game-route span span { color: var(--ink-soft); font-size: 0.88rem; }
.home-game-route em {
  flex: 0 0 auto; font-style: normal; color: var(--violet-mid); font-size: 0.78rem; font-weight: 800;
  background: rgba(110, 36, 180, 0.08); border-radius: 999px; padding: 0.3rem 0.55rem;
}
.home-game-route:hover strong { color: var(--violet-mid); }
.home-proof-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 1.7rem 0;
}
.home-proof-grid h3 { color: var(--gold); margin-bottom: 0.3rem; }
.home-proof-grid p { color: var(--on-dark-soft); font-size: 0.92rem; margin: 0; }
.home-support-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); gap: var(--space-3); align-items: stretch; }
.home-support-card .lede { margin-bottom: 1rem; }
.home-link-list { border-top: 1px solid var(--line); }
.home-link-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
  padding: 0.92rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.home-link-row span { color: var(--ink); font-weight: 800; font-family: var(--display); }
.home-link-row strong { color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; text-align: right; }
.home-link-row:hover span { color: var(--violet-mid); }
.home-responsible-panel {
  position: relative; min-height: 100%; background: var(--feature); border-radius: var(--radius); padding: var(--space-4);
  color: var(--on-dark); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.34);
}
.home-responsible-panel .rg-age { margin-bottom: 1.2rem; }
.home-responsible-panel h2 { color: var(--on-dark); }
.home-responsible-panel p { color: var(--on-dark-soft); margin-bottom: 1.2rem; }

/* White content card */
.block-paper { background: var(--card); border-radius: var(--radius); padding: var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); }
.block-paper-prose { max-width: 820px; margin: 0 auto; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 74ch; margin: 0 0 var(--space-3); }
.lede:last-child { margin-bottom: 0; }
.lede-short { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--ink); max-width: 52ch; margin-bottom: var(--space-3); }
.lede-light { color: var(--on-dark); }

/* Glossy medallion game tiles */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 720px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
.game-tile { text-align: center; }
.medallion {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 18px;
  background: radial-gradient(120% 120% at 30% 20%, #A24BE0 0%, #6E24B4 48%, #45166F 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.35), inset 0 -10px 20px rgba(0,0,0,0.28), 0 12px 24px rgba(53, 15, 92, 0.4);
  margin-bottom: 0.9rem; position: relative; overflow: hidden;
}
.medallion::before { content:""; position:absolute; top:-30%; left:-10%; width:70%; height:60%; background: radial-gradient(closest-side, rgba(255,255,255,0.4), transparent); }
.medallion svg { width: 46%; height: 46%; color: var(--gold); position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.game-tile h3 { color: var(--ink); margin: 0; font-size: 1rem; }
/* Apply to real glossy tile images once they replace the medallions. */
.game-image { display: block; width: 100%; max-width: 220px; aspect-ratio: 1/1; height: auto; margin: 0 auto 0.9rem; }

/* Small glossy medallions + section icons (coherent imagery across every section) */
.medallion-sm { width: 58px; height: 58px; border-radius: 14px; background: radial-gradient(120% 120% at 30% 20%, #A24BE0 0%, #6E24B4 48%, #45166F 100%); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 3px rgba(255,255,255,0.35), inset 0 -8px 16px rgba(0,0,0,0.28), 0 10px 20px rgba(53,15,92,0.4); position: relative; overflow: hidden; }
.medallion-sm::before { content: ""; position: absolute; top: -30%; left: -10%; width: 70%; height: 60%; background: radial-gradient(closest-side, rgba(255,255,255,0.4), transparent); }
.medallion-sm svg { width: 46%; height: 46%; color: var(--gold); position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.sec-medallion { margin-bottom: 0.9rem; }
.aside-medallion { margin-bottom: 1.1rem; }

.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }

.method-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.method-chip { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(110, 36, 180, 0.08); color: var(--ink); border-radius: 999px; padding: 0.5rem 0.9rem; font-size: 0.88rem; font-weight: 600; }
.method-chip svg { width: 18px; height: 18px; color: var(--violet-mid); }

/* Help cards (login troubleshooting) */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 720px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { background: var(--card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); display: flex; gap: 1rem; align-items: flex-start; }
.help-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: radial-gradient(120% 120% at 30% 20%, #A24BE0, #6E24B4 55%, #45166F); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 3px rgba(255,255,255,0.3), 0 6px 14px rgba(53,15,92,0.35); }
.help-icon svg { width: 22px; height: 22px; color: var(--gold); }
.help-card h3 { color: var(--ink); margin-bottom: 0.25rem; font-size: 1rem; }
.help-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* Games showcase carousel (editorial category slider) */
.showcase { display: grid; grid-template-columns: 0.72fr 2fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; gap: 1.6rem; } }
.showcase-intro h2 { color: var(--on-dark); margin: 0.15rem 0 0.5rem; }
.showcase-intro .eyebrow { margin-bottom: 0; }
.showcase-intro .section-standfirst { margin: 0 0 1.4rem; }
.showcase-intro .section-meta { margin-top: 1rem; }

.showcase-carousel { min-width: 0; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem; scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.game-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  text-decoration: none; scroll-snap-align: start;
  box-shadow: 0 14px 30px rgba(10, 2, 30, 0.35); transition: transform 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); }
/* Glyph hidden now that real card images are in place (kept for fallback) */
.game-card-glyph { display: none; }
.game-card-label { position: relative; z-index: 1; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 1.5rem; text-align: center; }
/* Real card images with a dark bottom overlay for the label */
.gc-slots   { background: linear-gradient(to top, rgba(10,2,30,0.82), rgba(10,2,30,0.05) 50%, transparent 72%), url('assets/card-slots.webp'); background-size: cover; background-position: center; }
.gc-live    { background: linear-gradient(to top, rgba(10,2,30,0.82), rgba(10,2,30,0.05) 50%, transparent 72%), url('assets/card-live-casino.webp'); background-size: cover; background-position: center; }
.gc-fishing { background: linear-gradient(to top, rgba(10,2,30,0.82), rgba(10,2,30,0.05) 50%, transparent 72%), url('assets/card-fishing.webp'); background-size: cover; background-position: center; }
.gc-table   { background: linear-gradient(to top, rgba(10,2,30,0.82), rgba(10,2,30,0.05) 50%, transparent 72%), url('assets/card-table-games.webp'); background-size: cover; background-position: center; }

.carousel-controls { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.2rem; }
.carousel-progress { flex: 1; height: 3px; background: rgba(243, 236, 255, 0.2); border-radius: 2px; overflow: hidden; }
.carousel-progress-fill { display: block; height: 100%; width: 30%; margin-left: 0; background: var(--gold); border-radius: 2px; }
.carousel-arrows { display: flex; gap: 0.5rem; }
.carousel-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243, 236, 255, 0.3); background: rgba(243, 236, 255, 0.08); color: var(--on-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel-arrow:hover { background: rgba(243, 236, 255, 0.16); }

/* Internal grids */
.simple-grid, .simple-grid-2, .simple-grid-3 { display: grid; gap: var(--space-3); }
.simple-grid { grid-template-columns: repeat(4, 1fr); }
.simple-grid-2 { grid-template-columns: 1fr 1fr; }
.simple-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .simple-grid, .simple-grid-2, .simple-grid-3 { grid-template-columns: 1fr; } }

/* Section header (sits on the violet page above a card) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(243, 236, 255, 0.18); }
.section-head-text { min-width: 0; }
.section-head h2 { color: var(--on-dark); margin: 0.15rem 0 0.4rem; }
.section-head .eyebrow { margin-bottom: 0; }
.section-standfirst { color: var(--on-dark-soft); margin: 0.4rem 0 0; max-width: 62ch; font-size: 1rem; }
.view-all { color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.view-all:hover { text-decoration: underline; }
.section-meta { color: var(--on-dark-soft); font-size: 0.78rem; margin: 0.9rem 0 0; opacity: 0.75; }
.card-meta { color: var(--ink-soft); font-size: 0.78rem; margin: 1rem 0 0; }

/* Split (documentation-style) layout for Download & Login */
.split-layout { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .split-layout { grid-template-columns: 1fr; gap: 1.2rem; } }
.split-aside h2 { color: var(--on-dark); margin: 0.15rem 0 0.4rem; }
.split-aside .eyebrow { margin-bottom: 0; }
.split-aside .section-standfirst { margin-bottom: 1rem; }
.split-aside .view-all { display: inline-block; }
.split-aside .section-meta { margin-top: 1rem; }

/* Get-started 3-step strip */
.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 720px) { .steps-strip { grid-template-columns: 1fr; } }
.step-card { background: var(--card); border-radius: var(--radius); padding: var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2A1B03; font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin-bottom: 0.8rem; }
.step-card h3 { color: var(--ink); margin-bottom: 0.3rem; }
.step-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* Responsible gambling callout */
.rg-callout { background: var(--card); border: 1px solid rgba(231, 181, 60, 0.55); border-radius: var(--radius); padding: var(--space-4); display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); }
@media (max-width: 720px) { .rg-callout { grid-template-columns: 1fr; gap: 1rem; } }
.rg-icon { color: var(--gold-deep); }
.rg-icon svg { width: 44px; height: 44px; }
.rg-body h2 { color: var(--ink); margin-bottom: 0.4rem; }
.rg-lead { color: var(--ink-soft); margin-bottom: 0.8rem; }
.rg-list { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.rg-list li { color: var(--ink-soft); margin-bottom: 0.4rem; font-size: 0.95rem; }
.rg-help { color: var(--ink-soft); font-size: 0.9rem; margin: 0; font-style: italic; }
.rg-age { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold-deep); color: var(--gold-deep); font-family: var(--display); font-weight: 800; font-size: 1rem; flex-shrink: 0; }

/* Partnerships hub: logo-forward partner cards */
.partner-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.partner-card { background: var(--card); border-radius: var(--radius); padding: var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); width: 100%; max-width: 340px; text-align: center; text-decoration: none; transition: transform 0.18s ease; }
.partner-card:hover { transform: translateY(-4px); }
.partner-card img { width: 100%; max-width: 220px; height: auto; margin: 0 auto 1.2rem; display: block; }
.partner-card h3 { color: var(--ink); margin: 0 0 0.5rem; }
.partner-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.partner-logo-lockup { max-width: 260px; margin: 0 auto 1.4rem; }
.partner-logo-lockup img { width: 100%; height: auto; display: block; }

/* Login page: illustrative login card */
.login-card { background: var(--card); border-radius: var(--radius); padding: var(--space-4); max-width: 380px; margin: 0 auto; box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); text-align: center; }
.login-card-icon { margin: 0 auto 1.2rem; }
.login-field { text-align: left; margin-bottom: 1.1rem; }
.login-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.login-field input { width: 100%; padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid var(--line); font-family: var(--body); font-size: 0.95rem; color: var(--ink); background: #fff; }
.login-field input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.login-remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); margin: 0.2rem 0 1.3rem; text-align: left; }
.login-remember input { width: auto; }
.login-submit { width: 100%; }
.login-note { font-size: 0.78rem; color: var(--ink-soft); margin: 1rem 0 0; }
.login-access-panel { text-align: center; }
.login-access-panel .lede { margin-left: auto; margin-right: auto; }
.login-access-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* Login guide */
.login-hero {
  min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center;
  padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.login-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  gap: clamp(1.8rem, 4vw, 4rem); align-items: center;
}
.login-hero-copy { max-width: 680px; }
.login-hero .section-standfirst { color: var(--on-dark-soft); max-width: 54ch; }
.login-hero-actions { margin-top: 1.35rem; align-items: center; }
.login-text-link { color: var(--gold); font-weight: 800; text-decoration: none; padding: 0.55rem 0; }
.login-text-link:hover { text-decoration: underline; }
.login-hero-flags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.login-hero-flags span {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0.3rem 0.65rem;
  border-radius: 999px; background: rgba(243, 236, 255, 0.1); color: var(--on-dark);
  font-size: 0.78rem; font-weight: 800;
}
.login-console {
  width: min(100%, 390px); justify-self: end; background: linear-gradient(160deg, rgba(42, 11, 74, 0.94), rgba(32, 8, 58, 0.82));
  border-radius: var(--radius); padding: 1.1rem; color: var(--on-dark);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.42);
}
.login-console-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.login-console-top img { display: block; width: 112px; height: auto; }
.login-console-top span {
  color: var(--gold); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.login-device-frame {
  border-radius: 12px; padding: 0.7rem; background: linear-gradient(180deg, #130622, #07030F);
  box-shadow: inset 0 0 0 1px rgba(243, 236, 255, 0.12);
}
.login-device-screen {
  aspect-ratio: 558 / 407; border-radius: 10px; padding: 0; display: flex; align-items: center; justify-content: center;
  background: #07030F;
  overflow: hidden;
}
.login-screen-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.login-screen-kicker { color: var(--gold); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.login-field-preview {
  min-height: 46px; display: flex; align-items: center; padding: 0.75rem 0.85rem;
  border-radius: 8px; background: rgba(243, 236, 255, 0.94); color: rgba(36, 16, 64, 0.74);
  font-weight: 800; line-height: 1.1;
}
.login-field-password::after { content: "********"; color: var(--ink); margin-left: auto; letter-spacing: 0.18em; }
.login-screen-button {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2A1B03; font-family: var(--display); font-weight: 800;
}
.login-status-list { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.login-status-list span {
  display: flex; align-items: center; gap: 0.55rem; color: var(--on-dark-soft);
  font-size: 0.86rem; line-height: 1.3;
}
.login-status-list strong {
  flex: 0 0 auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(231, 181, 60, 0.18); color: var(--gold); font-size: 0.74rem;
}
.login-route-section { padding-top: var(--space-3); padding-bottom: 0; }
.login-route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.login-route-card {
  display: flex; align-items: flex-start; gap: 0.85rem; min-height: 142px; min-width: 0;
  background: var(--card); color: var(--ink); text-decoration: none; border-radius: var(--radius);
  padding: 1.05rem; box-shadow: 0 12px 8px rgba(10, 2, 30, 0.18); transition: transform 0.18s ease, filter 0.18s ease;
}
.login-route-card:hover { transform: translateY(-3px); filter: brightness(1.02); }
.login-route-icon {
  flex: 0 0 auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(110, 36, 180, 0.1); color: var(--violet-mid);
}
.login-route-icon svg { width: 24px; height: 24px; }
.login-route-card strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1rem; line-height: 1.2; margin-bottom: 0.28rem; }
.login-route-card small { display: block; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.35; }
.login-route-card > span:last-child { min-width: 0; }
.login-guide-shell {
  display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr);
  gap: var(--space-3); align-items: start; min-width: 0;
}
.login-guide-shell > .section-meta { grid-column: 1 / -1; }
.login-quick-panel {
  position: sticky; top: 92px; background: var(--feature); border-radius: var(--radius);
  padding: var(--space-4); color: var(--on-dark); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4);
}
.login-quick-panel h2 { color: var(--on-dark); margin-bottom: 0.55rem; }
.login-quick-panel p { color: var(--on-dark-soft); margin-bottom: 1.25rem; }
.login-quick-actions { display: grid; gap: 0.7rem; }
.login-guide-main { display: grid; gap: var(--space-3); min-width: 0; }
.login-step-grid .download-step a, .accordion-panel a { color: var(--violet-mid); font-weight: 800; }
.login-recovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.login-recovery-item {
  min-width: 0; padding: 1rem; border-radius: 10px; background: rgba(110, 36, 180, 0.07);
}
.login-recovery-item strong { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 0.35rem; }
.login-recovery-item p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; margin: 0; }
.login-safety-panel {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: var(--space-3); align-items: start;
}
.login-safety-panel .eyebrow { margin-bottom: 0.45rem; }
.login-safety-panel p { margin-bottom: 0; }
.login-safety-panel .check-list { margin: 0; }
.login-testid-band {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: linear-gradient(135deg, rgba(231, 181, 60, 0.96), rgba(200, 145, 42, 0.96));
  color: #2A1B03; border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.34);
}
.login-testid-band .eyebrow { color: rgba(42, 27, 3, 0.72); margin-bottom: 0.45rem; }
.login-testid-band h2 { color: #2A1B03; }
.login-testid-band p { max-width: 58ch; margin: 0; color: rgba(42, 27, 3, 0.78); font-weight: 600; }
.login-testid-band .btn-primary { background: #2A1B03; color: var(--gold); box-shadow: none; }

/* About hub: info row of block-paper cards */
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); }

/* Commitments hub: flat row list */
.row-list { border: 1px solid rgba(243, 236, 255, 0.18); border-radius: var(--radius); padding: 0 var(--space-4); }
.row-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; padding: var(--space-3) 0; border-top: 1px solid rgba(243, 236, 255, 0.14); }
.row-item:first-child { border-top: none; }
.row-item-text h3 { color: var(--on-dark); font-size: 1rem; margin: 0 0 0.2rem; }
.row-item-text p { color: var(--on-dark-soft); font-size: 0.88rem; margin: 0; }
.row-item .view-all { flex-shrink: 0; }
@media (max-width: 560px) { .row-item { flex-direction: column; align-items: flex-start; gap: 0.3rem; } }

/* Spec table */
.card-subhead { font-family: var(--display); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--violet-mid); margin: 1.8rem 0 0.4rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th { text-align: left; font-weight: 700; color: var(--ink); padding: 0.7rem 1rem 0.7rem 0; width: 40%; vertical-align: top; font-size: 0.92rem; }
.spec-table td { color: var(--ink-soft); padding: 0.7rem 0; font-size: 0.92rem; }

/* Game title lists + RTP grid */
.title-tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1.1rem; max-width: none; }
.title-tags li { min-width: 0; color: var(--ink-soft); font-size: 0.92rem; }
.title-tags img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(36, 16, 64, 0.14); background: var(--feature);
  box-shadow: 0 14px 24px rgba(36, 16, 64, 0.16);
}
.title-tag-copy { display: block; padding-top: 0.65rem; }
.title-tags li strong { display: block; color: var(--ink); font-family: var(--display); font-size: 0.96rem; line-height: 1.25; margin-bottom: 0.12rem; }
.title-tag-copy span { display: block; line-height: 1.38; }
@media (max-width: 560px) {
  .title-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
}
@media (max-width: 340px) {
  .title-tags { grid-template-columns: 1fr; }
}

.rtp-table-wrap { overflow-x: auto; }
.rtp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.rtp-table th, .rtp-table td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.rtp-table thead th { font-family: var(--display); font-weight: 700; color: var(--violet-mid); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.rtp-table tbody th { color: var(--ink); font-weight: 700; }
.rtp-table td { color: var(--ink-soft); }
.rtp-table tbody tr:last-child th, .rtp-table tbody tr:last-child td { border-bottom: none; }

.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.55rem; color: var(--ink-soft); font-size: 0.94rem; }
.steps li strong { color: var(--ink); }
.simple-grid h3, .simple-grid-2 h3 { color: var(--violet-mid); }
.simple-grid-2 h3 { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; }

.note { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; margin: var(--space-2) 0 0; }

/* Install layout: step timeline + specs sidebar, replacing a plain table + <ol> stack */
.install-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 860px) { .install-layout { grid-template-columns: 1fr; } }

.step-timeline { list-style: none; margin: 0; padding: 0; }
.step-timeline li { position: relative; padding: 0 0 1.7rem 3.4rem; }
.step-timeline li:last-child { padding-bottom: 0; }
.step-timeline li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.step-timeline li:last-child::after { display: none; }
.step-timeline .step-index { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 0.98rem; color: #fff; }
.step-timeline .step-body { color: var(--ink); font-size: 0.98rem; margin: 0; }
.step-timeline .step-body strong { color: var(--ink); }

.specs-card { border: 1px solid rgba(231, 181, 60, 0.38); }
.specs-card h3 { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.86rem; margin: 0 0 1.1rem; }
.specs-card dl { margin: 0; }
.specs-card dt { color: var(--gold); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1rem; }
.specs-card dt:first-child { margin-top: 0; }
.specs-card dd { margin: 0.25rem 0 0; color: var(--on-dark-soft); font-size: 0.92rem; }

.step-timeline-android .step-index { background: linear-gradient(155deg, #49E28E, #1E9C5A); }
.step-timeline-ios .step-index { background: linear-gradient(155deg, #6E6E78, #2E2E36); }
.step-timeline-windows .step-index { background: linear-gradient(155deg, #29B6FF, #0067B8); }
.check-list { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.check-list li { border-top: 1px solid var(--line); padding: var(--space-2) 0; color: var(--ink-soft); }

/* Feature (dark) block */
.block-feature { background: var(--feature); border: 1px solid rgba(162, 75, 224, 0.3); border-radius: var(--radius); padding: var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4); }
.block-feature .lede { color: var(--on-dark); }
.block-feature h3 { color: var(--gold); }
.block-feature p { color: var(--on-dark-soft); }

/* Integrated background-image band (image IS the background, with a scrim) */
.feature-band { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4); }
.feature-band-media {
  position: absolute; inset: 0;
  /* Placeholder gradient — swap for a real image: background-image: url('assets/trust-bg.webp'); background-size: cover; background-position: center; */
  background: radial-gradient(120% 130% at 75% 15%, #7B2FC0 0%, #45166F 50%, #1E0838 100%);
  background-size: cover; background-position: center;
}
.feature-band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(20, 6, 40, 0.92) 0%, rgba(20, 6, 40, 0.72) 48%, rgba(20, 6, 40, 0.45) 100%); }
#trust .feature-band-media { background-image: url('assets/trust-bg.webp'); }
.feature-band-inner { position: relative; z-index: 1; padding: var(--space-5) var(--space-4); }
.feature-band-inner .eyebrow { margin-bottom: 0.7rem; }
.feature-band-inner h2 { color: var(--on-dark); margin-bottom: 0.5rem; }
.feature-band-inner h3 { color: var(--gold); }
.feature-band-inner p { color: var(--on-dark-soft); }
.feature-band-inner .lede { color: var(--on-dark); }
.feature-band-inner .simple-grid-3 { margin-top: 1.6rem; }

/* Closing CTA band */
.cta-media { background: radial-gradient(120% 130% at 50% 25%, #8A3FD4 0%, #4B1E8E 52%, #20083A 100%); }
.cta-inner { text-align: center; }
.cta-inner .hero-actions { justify-content: center; margin-top: 1.4rem; }
.cta-inner .lede { margin-left: auto; margin-right: auto; }

/* Accordion */
.accordion-item { border-top: 1px solid var(--line); padding: var(--space-3) 0; }
.accordion-item:first-child { border-top: none; padding-top: 0; }
.accordion-item-last { padding-bottom: 0; }
.accordion-item h3 { margin: 0; }
.accordion-trigger { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.02rem; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.accordion-trigger::after { content: "+"; color: var(--violet-mid); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; transition: transform 0.2s ease; }
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { padding-top: var(--space-2); color: var(--ink-soft); max-width: 68ch; }
.accordion-panel p { margin: 0; }
.accordion-panel a { color: var(--violet-mid); text-decoration: underline; }

/* About teaser */
.about-teaser { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.about-teaser h2 { color: var(--ink); margin-bottom: 0.5rem; }
.about-teaser .lede { margin: 0; }

/* Footer */
.site-footer { padding: var(--space-4) 0 var(--space-5); }
.footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid rgba(243, 236, 255, 0.12); }
@media (max-width: 720px) { .footer-columns { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: span 2; } }
.brand-footer { color: var(--on-dark); font-size: 1rem; margin-bottom: 0.5rem; }
.footer-note { color: var(--on-dark-soft); font-size: 0.85rem; max-width: 32ch; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col-title { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(243, 236, 255, 0.5); margin: 0 0 0.2rem; }
.footer-col a { text-decoration: none; color: var(--on-dark-soft); font-size: 0.9rem; font-weight: 500; }
.footer-col a:hover { color: var(--on-dark); }
.footer-legal { color: var(--on-dark-soft); border-top: 1px solid rgba(243, 236, 255, 0.15); padding-top: var(--space-2); font-size: 0.8rem; margin: 0; }

/* ==== Download hub + install lanes ==== */
.download-hub-hero {
  min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center;
  padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.download-hub-hero .section-standfirst { color: var(--on-dark-soft); max-width: 48ch; }
.download-route-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  width: 100%; min-width: 0; margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.download-route-card {
  position: relative; overflow: hidden; width: 100%; min-width: 0; min-height: 158px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.25rem; border-radius: var(--radius); text-decoration: none; isolation: isolate;
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.34); transition: transform 0.18s ease, filter 0.18s ease;
}
.download-route-card:hover { transform: translateY(-4px); filter: brightness(1.04); }
.download-route-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 90% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%);
}
.download-route-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.download-route-icon svg, .download-route-arrow { width: 28px; height: 28px; flex-shrink: 0; }
.download-route-arrow { opacity: 0.56; transition: transform 0.18s ease, opacity 0.18s ease; }
.download-route-card:hover .download-route-arrow { transform: translateX(4px); opacity: 0.9; }
.download-route-kicker { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.76; margin-bottom: 0.25rem; }
.download-route-title { display: block; font-family: var(--display); font-size: clamp(1.05rem, 1vw + 0.9rem, 1.28rem); font-weight: 800; line-height: 1.15; }
.route-android { background: linear-gradient(155deg, #4DE895, #1E9C5A); color: #06331B; }
.route-ios { background: linear-gradient(155deg, #4A4A55, #15151B); color: #F3ECFF; }
.route-windows { background: linear-gradient(155deg, #29B6FF, #0067B8); color: #F3ECFF; }
.download-testid-cta {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: clamp(1rem, 2vw, 1.35rem); flex-wrap: nowrap; max-width: 100%;
  margin-top: 1.45rem;
}
.download-testid-cta p {
  flex: 0 1 auto; color: var(--on-dark-soft); font-weight: 800; font-size: 1.02rem;
  line-height: 1.35; margin: 0; white-space: nowrap;
}
.download-testid-cta .btn { flex: 0 0 auto; min-height: 56px; padding-inline: 1.55rem; }

.download-lane-hero {
  min-height: 420px; display: flex; align-items: center;
  padding-top: 4rem; padding-bottom: 4rem;
}
.download-lane-hero .section-standfirst { color: var(--on-dark-soft); max-width: 52ch; }
.download-lane-actions { margin-top: 1.35rem; }
.download-lane-nav { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: var(--space-3); }
.download-lane-nav a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0.35rem 0.75rem;
  border-radius: 999px; background: rgba(243, 236, 255, 0.1); color: var(--on-dark-soft);
  text-decoration: none; font-weight: 700; font-size: 0.8rem; min-width: 0; line-height: 1.15;
}
.download-lane-nav a[aria-current="page"] { background: var(--gold); color: #2A1B03; }
.download-lane-nav a:hover { color: var(--on-dark); background: rgba(243, 236, 255, 0.16); }
.download-lane-nav a[aria-current="page"]:hover { color: #2A1B03; background: var(--gold); }

.download-lane-shell { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr); gap: var(--space-3); align-items: start; min-width: 0; }
.download-lane-brief {
  position: sticky; top: 92px; background: var(--feature); border-radius: var(--radius);
  padding: var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4);
}
.download-lane-brief h2 { color: var(--on-dark); margin-bottom: 0.55rem; }
.download-lane-brief p { color: var(--on-dark-soft); margin-bottom: 1.25rem; }
.download-facts { display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: rgba(243, 236, 255, 0.14); }
.download-fact { background: rgba(32, 8, 58, 0.78); padding: 0.85rem 0.95rem; }
.download-fact span { display: block; color: var(--gold); font-weight: 800; font-size: 0.74rem; margin-bottom: 0.12rem; }
.download-fact strong { color: var(--on-dark); font-size: 0.95rem; }

.download-lane-main { display: grid; gap: var(--space-3); min-width: 0; }
.download-panel {
  width: 100%; min-width: 0; background: var(--card); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35);
}
.download-panel h2, .download-panel h3 { color: var(--ink); }
.download-panel .lede { max-width: 70ch; }
.download-panel-primary { text-align: center; }
.download-panel-primary .lede { margin-left: auto; margin-right: auto; }
.download-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.download-step { background: var(--card); padding: var(--space-3); }
.download-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2A1B03;
  font-family: var(--display); font-weight: 800; margin-bottom: 0.75rem;
}
.download-step h3 { margin-bottom: 0.3rem; }
.download-step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.download-support {
  background: var(--feature); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4);
}
.download-support h2 { color: var(--on-dark); }
.download-support p { color: var(--on-dark-soft); }
.download-support .check-list li { color: var(--on-dark-soft); border-top-color: rgba(243, 236, 255, 0.14); }

/* ==== Test-ID credentials ==== */
.cred-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: var(--space-3) 0; box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35); }
.cred-cell { background: var(--card); padding: 1.5rem 1.6rem; }
.cred-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--violet-mid); margin: 0 0 0.45rem; }
.cred-value { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); margin: 0; word-break: break-word; }
.cred-value span { color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; font-family: var(--body); }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .download-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-testid-cta p { white-space: normal; }
  .cred-box { grid-template-columns: 1fr; }
}

/* ==== Games lobby ==== */
.hero-banner-games::before { background-image: url('/assets/games-hero.webp'); background-position: center; }
.games-page-hero { min-height: 430px; display: flex; align-items: center; padding-top: 4.2rem; padding-bottom: 4.2rem; }
.games-page-hero .section-standfirst { max-width: 50ch; color: var(--on-dark-soft); }
.games-hero-actions { margin-top: 1.4rem; }

.games-section-head { margin-bottom: var(--space-3); }

.game-lobby-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; }
.game-lobby-card {
  position: relative; display: flex; align-items: flex-end; min-height: 360px;
  grid-column: span 3; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: var(--feature); color: var(--on-dark);
  text-decoration: none; box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35);
  transition: transform 0.2s ease;
}
.game-lobby-card-featured { grid-column: span 6; grid-row: span 2; min-height: 610px; }
.game-lobby-card-wide { grid-column: span 6; min-height: 330px; }
.game-lobby-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.28s ease;
}
.game-lobby-card-wide img { object-position: center 42%; }
.game-lobby-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 2, 30, 0.95) 0%, rgba(10, 2, 30, 0.78) 32%, rgba(10, 2, 30, 0.22) 70%, rgba(10, 2, 30, 0.04) 100%),
    linear-gradient(110deg, rgba(32, 8, 58, 0.35), transparent 55%);
}
a.game-lobby-card:hover { transform: translateY(-3px); }
a.game-lobby-card:hover img { transform: scale(1.04); }
.game-lobby-copy { width: 100%; padding: clamp(1.15rem, 2vw, 1.65rem); }
.game-lobby-kicker { display: block; color: var(--gold); font-weight: 800; font-size: 0.76rem; letter-spacing: 0.02em; margin-bottom: 0.35rem; }
.game-lobby-copy h3 { color: var(--on-dark); font-size: clamp(1.2rem, 1.4vw + 0.9rem, 1.75rem); margin-bottom: 0.4rem; }
.game-lobby-card-featured .game-lobby-copy h3 { font-size: clamp(1.7rem, 2vw + 1rem, 2.45rem); }
.game-lobby-copy p { color: var(--on-dark-soft); font-size: 0.92rem; max-width: 32ch; margin: 0 0 0.8rem; }
.game-lobby-card-featured .game-lobby-copy p { font-size: 1.02rem; max-width: 38ch; }
.game-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.95rem; }
.game-tags span {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0.32rem 0.55rem;
  border-radius: 999px; background: rgba(243, 236, 255, 0.12); color: rgba(243, 236, 255, 0.86);
  font-size: 0.75rem; font-weight: 700; line-height: 1.15;
}
.game-lobby-link { color: var(--gold); font-weight: 800; font-size: 0.9rem; }

.games-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.games-guide-card {
  display: flex; align-items: flex-start; gap: 1rem; padding: var(--space-3);
  background: var(--card); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35);
}
.games-guide-card .medallion-sm { flex: 0 0 auto; }
.games-guide-card strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.05rem; margin: 0.1rem 0 0.25rem; }
.games-guide-card span span:last-child { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.45; }
.games-guide-card:hover strong { color: var(--violet-mid); }

/* ==== Game room subpages ==== */
.game-room-hero {
  min-height: 420px; display: flex; align-items: center;
  padding-top: 4rem; padding-bottom: 4rem;
}
.game-room-hero .section-standfirst { color: var(--on-dark-soft); max-width: 52ch; }
.game-room-hero .back-link { margin-bottom: 0.9rem; }
.game-room-actions { margin-top: 1.35rem; }
.hero-banner-games-slots::before { background-image: url('/assets/games-slots-hero.webp'); }
.hero-banner-games-live::before { background-image: url('/assets/games-live-hero.webp'); }
.hero-banner-games-fishing::before { background-image: url('/assets/games-fishing-hero.webp'); }
.hero-banner-games-table::before { background-image: url('/assets/games-table-hero.webp'); }
.hero-banner-games-arcade::before { background-image: url('/assets/games-arcade-hero.webp'); }
.hero-banner-games-jackpot::before { background-image: url('/assets/games-jackpot-hero.webp'); }
.hero-banner-games-toto::before { background-image: url('/assets/games-toto-hero.webp'); }
.hero-banner-games-howto::before { background-image: url('/assets/games-how-to-play-hero.webp'); }
.hero-banner-games-rtp::before { background-image: url('/assets/games-rtp-hero.webp'); }

.game-room-nav {
  display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: var(--space-3);
}
.game-room-nav a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0.35rem 0.75rem;
  border-radius: 999px; background: rgba(243, 236, 255, 0.1); color: var(--on-dark-soft);
  text-decoration: none; font-weight: 700; font-size: 0.8rem;
}
.game-room-nav a[aria-current="page"] { background: var(--gold); color: #2A1B03; }
.game-room-nav a:hover { color: var(--on-dark); background: rgba(243, 236, 255, 0.16); }
.game-room-nav a[aria-current="page"]:hover { color: #2A1B03; background: var(--gold); }

.game-room-shell { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr); gap: var(--space-3); align-items: start; min-width: 0; }
.game-room-brief {
  position: sticky; top: 92px; background: var(--feature); border-radius: var(--radius);
  padding: var(--space-4); box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4);
}
.game-room-brief h2 { color: var(--on-dark); margin-bottom: 0.55rem; }
.game-room-brief p { color: var(--on-dark-soft); margin-bottom: 1.25rem; }
.room-facts { display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: rgba(243, 236, 255, 0.14); }
.room-fact { background: rgba(32, 8, 58, 0.78); padding: 0.85rem 0.95rem; }
.room-fact span { display: block; color: var(--gold); font-weight: 800; font-size: 0.74rem; margin-bottom: 0.12rem; }
.room-fact strong { color: var(--on-dark); font-size: 0.95rem; }

.game-room-main { display: grid; gap: var(--space-3); min-width: 0; }
.room-panel {
  width: 100%; min-width: 0; background: var(--card); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.35);
}
.room-panel h2, .room-panel h3 { color: var(--ink); }
.room-panel .lede { max-width: 70ch; }
.room-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.room-step { background: var(--card); padding: var(--space-3); }
.room-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2A1B03; font-family: var(--display); font-weight: 800; margin-bottom: 0.75rem;
}
.room-step h3 { margin-bottom: 0.3rem; }
.room-step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.room-safety {
  background: var(--feature); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(10, 2, 30, 0.4);
}
.room-safety h2 { color: var(--on-dark); }
.room-safety p, .room-safety li { color: var(--on-dark-soft); }
.room-safety .check-list li { border-top-color: rgba(243, 236, 255, 0.14); }
.room-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.room-related-card {
  min-height: 240px; border-radius: var(--radius); overflow: hidden; position: relative; display: flex;
  align-items: flex-end; isolation: isolate; color: var(--on-dark); text-decoration: none; background: var(--feature);
}
.room-related-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.room-related-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 2, 30, 0.92), rgba(10, 2, 30, 0.1) 72%);
}
.room-related-card strong { padding: 1rem; color: var(--on-dark); font-family: var(--display); font-size: 1.02rem; }

@media (max-width: 1020px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-download-console { max-width: none; justify-self: stretch; grid-template-columns: 1fr; }
  .home-download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-games-stage { grid-template-columns: 1fr; }
  .home-games-cover { min-height: 380px; }
  .home-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-support-grid { grid-template-columns: 1fr; }
  .home-what-panel { grid-template-columns: 1fr; }
  .login-hero-grid { grid-template-columns: 1fr; }
  .login-console { justify-self: start; max-width: 430px; }
  .login-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-guide-shell { grid-template-columns: 1fr; }
  .login-quick-panel { position: static; }
  .download-lane-shell { grid-template-columns: 1fr; }
  .download-lane-brief { position: static; }
  .download-step-grid { grid-template-columns: repeat(2, 1fr); }
  .game-lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-lobby-card, .game-lobby-card-featured, .game-lobby-card-wide { grid-column: auto; grid-row: auto; min-height: 390px; }
  .game-lobby-card-featured { min-height: 500px; }
  .games-guide-grid { grid-template-columns: 1fr; }
  .game-room-shell { grid-template-columns: 1fr; }
  .game-room-brief { position: static; }
  .room-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .help-grid { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; padding-top: 3.4rem; padding-bottom: 3.4rem; }
  .home-hero::before { background-position: 62% center; }
  .home-hero::after {
    background:
      linear-gradient(90deg, rgba(24, 6, 46, 0.95), rgba(24, 6, 46, 0.76)),
      linear-gradient(180deg, rgba(24, 6, 46, 0.1), rgba(32, 8, 58, 0.74));
  }
  .home-games-cover { min-height: 320px; }
  .login-hero { min-height: auto; padding-top: 3rem; padding-bottom: 3rem; }
  .login-console { width: 100%; }
  .login-safety-panel, .login-recovery-grid { grid-template-columns: 1fr; }
  .login-testid-band { align-items: flex-start; flex-direction: column; }
  .login-testid-band .btn { width: 100%; max-width: 20rem; }
  .download-lane-hero { min-height: 390px; padding-top: 3rem; padding-bottom: 3rem; }
  .download-step-grid { grid-template-columns: 1fr; }
  .game-lobby-grid { grid-template-columns: 1fr; }
  .game-lobby-card, .game-lobby-card-featured, .game-lobby-card-wide { min-height: 420px; }
  .game-room-hero { min-height: 390px; padding-top: 3rem; padding-bottom: 3rem; }
  .room-flow { grid-template-columns: 1fr; }
  .room-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-row { gap: 0.75rem; }
  .brand { font-size: 0.96rem; }
  .site-header .btn-small { display: none; }
  .trust-strip-row {
    justify-content: center; align-items: center; flex-wrap: nowrap;
    gap: clamp(0.55rem, 3vw, 0.9rem); padding-top: 0.38rem; padding-bottom: 0.38rem;
  }
  .trust-strip-item {
    min-width: 0; gap: 0.24rem; white-space: nowrap;
    font-size: clamp(0.62rem, 2.1vw, 0.72rem); line-height: 1;
  }
  .trust-strip-item svg { width: 12px; height: 12px; }
  .home-hero-content { max-width: 21.5rem; }
  .home-hero h1 { font-size: clamp(2.35rem, 10vw, 2.75rem); }
  .home-hero-sub { max-width: 28ch; }
  .home-hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 23rem; }
  .home-hero-actions .btn { width: 100%; }
  .home-text-link { text-align: center; }
  .home-proof-row { width: 100%; max-width: 21rem; gap: 0.45rem; }
  .home-proof-row span { font-size: 0.78rem; }
  .home-download-grid, .home-proof-grid { grid-template-columns: 1fr; }
  .home-download-console { width: min(100%, 20.75rem); justify-self: center; padding: 1rem; }
  .home-download-head { text-align: left; }
  .home-launch-choice { min-height: 104px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .home-launch-icon { flex: 0 0 auto; }
  .home-download-extra { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .home-download-links { justify-content: flex-start; }
  .home-download-more { font-size: 0.86rem; }
  .home-what { padding-top: var(--space-4); }
  .home-what-panel { width: min(100%, 20.75rem); margin-inline: auto; padding: var(--space-3); }
  .home-what-actions { flex-direction: column; align-items: stretch; max-width: 22rem; }
  .home-what-actions .btn { width: 100%; }
  .home-games-menu { padding: var(--space-3); }
  .home-game-route { align-items: flex-start; flex-direction: column; gap: 0.4rem; }
  .home-link-row { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
  .home-link-row strong { text-align: left; }
  .home-responsible-panel { padding: var(--space-3); }
  .games-page-hero { min-height: 390px; padding-top: 3rem; padding-bottom: 3rem; }
  .games-page-hero .section-standfirst, .games-section-head .section-standfirst { max-width: 31ch; }
  .games-hero-actions { flex-direction: column; }
  .games-hero-actions .btn { width: 100%; }
  .login-hero .section-standfirst { max-width: 31ch; }
  .login-hero h1 { max-width: 9ch; }
  .login-hero-actions { align-items: stretch; flex-direction: column; width: 100%; max-width: 23rem; }
  .login-hero-actions .btn { width: 100%; }
  .login-text-link { text-align: center; }
  .login-hero-flags { max-width: 22rem; }
  .login-console-top { flex-wrap: wrap; }
  .login-console-top img { width: 104px; }
  .login-route-grid { grid-template-columns: 1fr; }
  .login-route-card { min-height: 112px; }
  .login-route-card small { overflow-wrap: anywhere; }
  .login-quick-panel, .login-testid-band { padding: var(--space-3); }
  .download-hub-hero { min-height: 640px; }
  .download-hub-hero .section-standfirst, .download-lane-hero .section-standfirst { max-width: 31ch; }
  .download-route-grid { grid-template-columns: 1fr; }
  .download-route-card { min-height: 128px; }
  .download-testid-cta { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .download-testid-cta .btn { width: 100%; max-width: 20rem; }
  .download-lane-actions { width: 100%; max-width: 23rem; flex-direction: column; }
  .download-lane-actions .btn { width: 100%; }
  .download-lane-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .download-lane-nav a { justify-content: center; text-align: center; padding-inline: 0.35rem; font-size: 0.74rem; }
  .game-lobby-card, .game-lobby-card-featured, .game-lobby-card-wide { min-height: 380px; }
  .games-guide-card { flex-direction: column; }
  .games-hero-actions, .game-room-actions { width: 100%; max-width: 23rem; }
  .game-room-actions { flex-direction: column; }
  .game-room-actions .btn { width: 100%; }
  .game-room-hero .section-standfirst { max-width: 31ch; }
  .game-room-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .game-room-nav a { justify-content: center; text-align: center; padding-inline: 0.45rem; }
  .download-panel, .download-support, .download-lane-brief, .room-panel, .room-safety, .game-room-brief { padding: var(--space-3); }
  .site-header .site-nav .mobile-nav-cta { display: inline-flex; }
}
