/* ==========================================================================
   layout.css — shared shell (header, language switch, footer, theme) and
   light-mode fixes. Loaded after style.css on every page.
   ========================================================================== */

/* --------------------------------------------------------------- base / a11y */
html.no-motion *, html.no-motion *::before, html.no-motion *::after,
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: none !important;
  animation-duration: 0s !important;
}
body { transition: none; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 2000; padding: 10px 16px;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.top-notice-bar:empty { display: none; }
/* notice bar always stays on ONE line: the notice text shrinks with an ellipsis, the right part never wraps */
.top-notice-content { flex-wrap: nowrap; white-space: nowrap; }
.top-notice-content > div:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top-notice-content > div:last-child { flex: 0 0 auto; }
@media (max-width: 1100px) { .top-notice-content > div:last-child { display: none; } }
/* pill in the site's single blue accent (was green) */
.notice-pill { background: rgba(59, 130, 246, 0.12); color: #fff; margin-right: 6px; }
html[data-theme="light"] .notice-pill { color: #1d4ed8; }
h1, h2, h3, h4, .brand { font-family: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif; }

/* theme toggle icon: sun in dark mode, moon in light mode */
.floating-theme-toggle .theme-icon-light { display: none; }
html[data-theme="light"] .floating-theme-toggle .theme-icon-dark { display: none; }
html[data-theme="light"] .floating-theme-toggle .theme-icon-light { display: block; }

/* circular reveal when switching theme (View Transitions; browsers without it switch instantly) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ------------------------------------------------------------------- header
   One continuous effect driven by --p, which common.js moves with a spring that
   follows the scroll position (0 at the top, 1 once docked, with a soft overshoot).
   The full-width bar tightens into a floating glass pill: it narrows, gets shorter
   (the top gap grows by exactly the same amount, so the page never jumps), the
   ".com" folds away, links and the CTA tighten, a slow light runs along the rim,
   and a single sheen sweeps across the island when it docks (.is-sheen). */
.site-header {
  --p: 0;
  --island: min(1160px, calc(100% - 32px));
  --gap: 12px;       /* top gap of the docked island */
  --bar: 70px;       /* nav height at the top of the page */
  --pill: 29px;      /* (bar - gap) / 2: fully rounded ends */
  position: sticky; top: 0; z-index: 1000;
  max-width: none; width: 100%; margin: 0;
  padding: calc(var(--p) * var(--gap)) 0 0;
  background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none; transform: none; will-change: auto; transition: none;
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  position: relative;
  margin: 0 auto;
  max-width: calc(100% - (100% - var(--island)) * var(--p));
  border-radius: calc(var(--p) * var(--pill));
  isolation: isolate;
}
.nav-shell::before { /* the island's glass */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 55%),
    color-mix(in srgb, var(--card) 78%, transparent);
  opacity: min(1, calc(var(--p) * 1.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 22px 48px -20px rgba(0, 0, 0, .75),
    0 10px 34px -16px color-mix(in srgb, var(--primary) 55%, transparent);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.nav-shell::after { /* flat full-width bar at the top of the page */
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  opacity: calc(1 - var(--p) * 1.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
/* rim: a hairline border plus a slow light travelling along it (only the transform animates) */
.nav-glow {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  padding: 1px; overflow: hidden;
  background: color-mix(in srgb, var(--border-strong) 80%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc((var(--p) - .3) * 1.45);
}
.nav-glow::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background: linear-gradient(90deg,
      transparent 0%, color-mix(in srgb, var(--primary) 85%, #fff) 18%, #22d3ee 26%, transparent 42%,
      transparent 58%, color-mix(in srgb, var(--primary) 70%, #3b82f6) 74%, transparent 90%, transparent 100%)
    0 0 / 50% 100% repeat-x;
  animation: navGlow 9s linear infinite;
  animation-play-state: paused;
}
.site-header.is-island .nav-glow::before { animation-play-state: running; }
@keyframes navGlow { to { transform: translateX(-50%); } }
/* one sheen across the glass when the island docks */
.nav-sheen { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.nav-sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 26%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .13) 48%, rgba(255, 255, 255, .2) 52%, transparent 85%);
  opacity: 0; transform: translateX(-110%) skewX(-20deg);
}
.site-header.is-sheen .nav-sheen::before { animation: navSheen 1.25s cubic-bezier(.3, .6, .2, 1) forwards; }
@keyframes navSheen {
  0%   { opacity: 0; transform: translateX(-110%) skewX(-20deg); }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(420%) skewX(-20deg); }
}

.site-header .nav {
  height: calc(var(--bar) - var(--p) * var(--gap));
  padding-left: calc(24px - var(--p) * 6px); padding-right: calc(24px - var(--p) * 6px);
  transition: none;
}
.site-header .brand { gap: calc(10px - var(--p) * 1px); }
.site-header .brand-symbol { transform: scale(calc(1 - var(--p) * 0.1)); }
.site-header .brand:hover .brand-symbol { transform: rotate(8deg) scale(1.02); }
.brand-symbol i, .brand-symbol svg { width: 18px; height: 18px; }
.brand-tld { color: var(--primary); }
.site-header .brand-tld { /* ".com" folds away as the island docks */
  display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap;
  max-width: calc(var(--tld-w, 2.1em) * (1 - var(--p)));
  opacity: calc(1 - var(--p) * 2.2);
  transform: translateX(calc(var(--p) * -8px));
}
.site-header .nav-menu { gap: calc(6px - var(--p) * 3px); }
.site-header .nav-link {
  padding: 8px calc(14px - var(--p) * 3px);
  border-radius: calc(8px + var(--p) * 10px);
  transition: color .2s ease, background-color .2s ease;
}
.site-header .nav-cta {
  padding: calc(11px - var(--p) * 2px) calc(22px - var(--p) * 4px);
  font-size: calc(14px - var(--p) * .5px);
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.site-header .lang-btn, .site-header .burger-btn { border-radius: calc(8px + var(--p) * 11px); }
/* menus drop a little below the island; the invisible bridge grows with the gap so hover is never lost */
.site-header .nav-dropdown { top: calc(100% + var(--p) * 10px); border-radius: calc(14px + var(--p) * 4px); }
.site-header .nav-dropdown::before { top: calc(-16px - var(--p) * 10px); height: calc(16px + var(--p) * 10px); }
.site-header .lang-menu { top: calc(100% + 8px + var(--p) * 12px); border-radius: calc(12px + var(--p) * 4px); }
html[data-theme="light"] .nav-shell::before { background-color: color-mix(in srgb, var(--card) 88%, transparent); }
html[data-theme="light"] .nav-shell::after { background: color-mix(in srgb, var(--bg) 88%, transparent); }
html[data-theme="light"] .nav-glow { background: color-mix(in srgb, var(--border-strong) 90%, transparent); }
html[data-theme="light"] .nav-sheen::before { background: linear-gradient(100deg, transparent 15%, color-mix(in srgb, var(--primary) 10%, transparent) 50%, transparent 85%); }
.nav-chev { width: 14px; height: 14px; transition: transform .25s ease; }
.nav-item:hover .nav-chev { transform: rotate(180deg); }
.nav-dropdown-wide { min-width: 300px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.nav-item:hover .nav-dropdown-wide { display: grid; }
.nav-dropdown-wide .dropdown-link-all { grid-column: 1 / -1; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 8px; color: var(--primary); }
.dropdown-left i, .dropdown-left svg { width: 16px; height: 16px; }
.ic-blue { color: #60a5fa; } .ic-orange { color: #fb923c; } .ic-purple { color: #60a5fa; }
.ic-green { color: #34d399; } .ic-amber { color: #fa954f; }
html[data-theme="light"] .ic-blue { color: #2563eb; } html[data-theme="light"] .ic-orange { color: #ea580c; }
html[data-theme="light"] .ic-purple { color: #2563eb; } html[data-theme="light"] .ic-green { color: #059669; }
html[data-theme="light"] .ic-amber { color: #d97706; }
/* no 'current page' highlight in the menu, submenus or drawer (client preference) */
.nav-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 640px) {
  .site-header { --island: calc(100% - 16px); --gap: 8px; --bar: 62px; --pill: 27px; }
  .site-header .nav { padding-left: calc(14px - var(--p) * 2px); padding-right: calc(14px - var(--p) * 4px); }
  .nav-actions .nav-cta { display: none; }
}

/* --------------------------------------------------------------- language switch */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'JetBrains Mono', monospace;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-btn:hover, .lang-switch.open .lang-btn { border-color: var(--border-strong); background: var(--card-hover); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn .lang-chev { width: 13px; height: 13px; transition: transform .2s ease; }
.lang-switch.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1100;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.lang-opt:hover { background: var(--card-hover); color: var(--text); }
.lang-opt.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.lang-code { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; width: 22px; }
.drawer-actions { display: flex; flex-direction: column; gap: 12px; border: none; }
.drawer-actions .lang-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; flex-direction: row; background: none; border: 0; padding: 0; }
.drawer-actions .lang-btn { display: none; }
.drawer-actions .lang-opt { flex: 1; justify-content: center; border: 1px solid var(--border); }
.drawer-actions .lang-name { display: none; }
@media (max-width: 1024px) { .nav-actions .lang-switch { display: none; } }

/* ------------------------------------------------------------------ footer
   Dotted background with a soft blue glow, a banded CTA card (pitch + game
   thumbnails, trust strip underneath), brand column with live status + Trustpilot,
   icon headings and payment badges. Flat: 1px borders, no heavy shadows. */
.site-footer {
  --ft-tp: #00b67a;            /* Trustpilot green */
  --ft-ok: #22c55e;            /* status dot */
  --ft-tp-empty: rgba(255, 255, 255, .16);
  position: relative; overflow: hidden; display: block; margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 700px 420px at 6% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 600px 380px at 96% 100%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    radial-gradient(color-mix(in srgb, var(--text-dim) 26%, transparent) 1px, transparent 1.2px);
  background-size: auto, auto, 22px 22px;
  border-top: 0; padding: 64px 0 30px;
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
}
html[data-theme="light"] .site-footer {
  --ft-ok: #16a34a;
  --ft-tp-empty: #dcdce6;
  background-image:
    radial-gradient(ellipse 700px 420px at 6% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    radial-gradient(ellipse 600px 380px at 96% 100%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%),
    radial-gradient(rgba(15, 23, 42, .10) 1px, transparent 1.2px);
}
.site-footer::before { /* thin top border: blue fading out to the right */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 35%, transparent) 40%, var(--border) 75%, transparent);
}
.site-footer::after { content: none; display: none; }
.site-footer .wrap { position: relative; z-index: 1; }

/* ---- CTA card */
.site-footer .footer-cta {
  position: relative; overflow: hidden; isolation: isolate; margin-bottom: 56px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 20%, var(--card)) 0%, color-mix(in srgb, var(--primary) 6%, var(--card)) 48%, var(--card) 100%);
}
html[data-theme="light"] .site-footer .footer-cta {
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 11%, #fff) 0%, color-mix(in srgb, var(--primary) 3%, #fff) 50%, #fff 100%);
}
.site-footer .footer-cta::before { /* the dot grid again, brighter inside the card, fading to the right */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 40%, transparent) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  opacity: .55;
}
.site-footer .footer-cta-orb {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(40px);
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  animation: ftOrb 14s ease-in-out infinite alternate;
}
.site-footer .footer-cta-orb--a { width: 260px; height: 260px; right: 8%; top: -150px; opacity: .22; }
.site-footer .footer-cta-orb--b { width: 200px; height: 200px; right: 34%; bottom: -150px; opacity: .14; animation-duration: 18s; animation-direction: alternate-reverse; }
html[data-theme="light"] .site-footer .footer-cta-orb { background: color-mix(in srgb, var(--primary) 18%, transparent); }
@keyframes ftOrb { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 24px, 0) scale(1.15); } }
/* footer orbs / status pulse always animate (site policy: OS "reduce animations" is ignored, see common.js) */

.site-footer .footer-cta-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  padding: 30px 32px 26px;
}
.site-footer .footer-cta-copy { min-width: 0; flex: 1 1 320px; }
.site-footer .footer-cta-title {
  margin: 0 0 6px; font-family: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif; font-size: 28px; line-height: 1.15;
  font-weight: 800; letter-spacing: -.01em; color: var(--text);
}
.site-footer .footer-cta-sub { margin: 0; font-size: 15px; color: var(--text-muted); }
.site-footer .footer-cta-side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-footer .footer-games { display: flex; align-items: center; padding-left: 12px; }
.site-footer .footer-games img, .site-footer .footer-games-more {
  width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--card);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.site-footer .footer-games img:hover { transform: translateY(-4px); }
.site-footer .footer-games-more {
  display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--card));
}
html[data-theme="light"] .site-footer .footer-games img, html[data-theme="light"] .site-footer .footer-games-more {
  border-color: #fff;
}
.site-footer .footer-cta-btn { padding: 12px 22px; font-size: 14px; box-shadow: none; }
.site-footer .footer-cta-btn:hover { box-shadow: none; }
.site-footer .footer-cta-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.site-footer .footer-cta-btn:hover svg { transform: translateX(3px); }

/* trust strip: the lower band of the card */
.site-footer .footer-trust {
  list-style: none; margin: 0; padding: 14px 32px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
}
html[data-theme="light"] .site-footer .footer-trust { background: color-mix(in srgb, var(--primary) 3%, #fff); }
.site-footer .footer-trust li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.site-footer .footer-trust-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
html[data-theme="light"] .site-footer .footer-trust-ic { background: color-mix(in srgb, var(--primary) 9%, #fff); }
.site-footer .footer-trust-ic svg { width: 15px; height: 15px; }

/* ---- columns */
.site-footer .footer-main-grid {
  display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px; margin-bottom: 44px;
}
.site-footer .footer-brand-col { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.site-footer .footer-logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.site-footer .footer-logo-icon {
  width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; transition: transform .25s ease;
}
.site-footer .footer-logo:hover .footer-logo-icon { transform: rotate(8deg); }
.site-footer .footer-logo-icon i, .site-footer .footer-logo-icon svg { width: 17px; height: 17px; }
.site-footer .footer-logo-text { font-family: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif; font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: 0; }
.site-footer .footer-logo-tld { color: var(--primary); }
.site-footer .footer-tagline { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.site-footer .footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-status, .site-footer .footer-tp {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.site-footer .footer-status:hover, .site-footer .footer-tp:hover { border-color: var(--border-strong); transform: translateY(-1px); color: var(--text); }
.site-footer .footer-status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ft-ok); flex-shrink: 0; }
.site-footer .footer-status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ft-ok);
  animation: ftPulse 2s ease-out infinite;
}
@keyframes ftPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.site-footer .footer-tp-brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.site-footer .footer-tp-brand svg { width: 15px; height: 15px; color: var(--ft-tp); }
.site-footer .footer-tp-stars { display: inline-flex; gap: 2px; }
.site-footer .footer-tp-s {
  width: 14px; height: 14px; background: var(--ft-tp); position: relative;
}
.site-footer .footer-tp-s::before { /* white star cut into each square */
  content: ""; position: absolute; inset: 2px; background: #fff;
  clip-path: polygon(50% 4%, 61% 37%, 96% 37%, 68% 58%, 79% 92%, 50% 71%, 21% 92%, 32% 58%, 4% 37%, 39% 37%);
}
.site-footer .footer-tp-s--part { background: linear-gradient(90deg, var(--ft-tp) 30%, var(--ft-tp-empty) 30%); }
.site-footer .footer-tp-score { font-weight: 800; color: var(--text); }

.site-footer .footer-nav-col { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.site-footer .footer-heading {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
}
.site-footer .footer-heading svg {
  width: 26px; height: 26px; padding: 5px; border-radius: 8px; flex-shrink: 0;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent);
}
.site-footer .footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 0; margin: 0; }
.site-footer .footer-links li { display: block; margin: 0; padding: 0; }
.site-footer .footer-links a, .site-footer .footer-link-btn {
  position: relative; display: inline-block; color: var(--text-muted); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-links a::after, .site-footer .footer-link-btn::after { /* small blue underline that slides in */
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-footer .footer-links a:hover, .site-footer .footer-links a:focus-visible,
.site-footer .footer-link-btn:hover, .site-footer .footer-link-btn:focus-visible { color: var(--text); transform: translateX(2px); text-decoration: none; }
.site-footer .footer-links a:hover::after, .site-footer .footer-links a:focus-visible::after,
.site-footer .footer-link-btn:hover::after, .site-footer .footer-link-btn:focus-visible::after { transform: scaleX(1); }
.site-footer .footer-link-btn {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font-family: inherit; line-height: inherit; text-align: left;
  -webkit-appearance: none; appearance: none; outline-offset: 2px;
}

/* ---- bottom line + payment badges */
.site-footer .footer-bottom-line {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; width: 100%;
  border-top: 1px solid var(--border); padding-top: 22px;
}
.site-footer .footer-copy { font-size: 12.5px; color: var(--text-dim); }
.site-footer .footer-sep { margin: 0 6px; }
.site-footer .footer-pay { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-muted); }
.site-footer .footer-pay-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 12.5px; color: var(--text-dim); }
.site-footer .footer-pay-label svg { width: 13px; height: 13px; color: var(--ft-ok); }
.site-footer .footer-pay-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 28px; border-radius: 7px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
.site-footer .footer-pay-badge:hover { color: var(--text); border-color: var(--border-strong); }
.site-footer .footer-pay-badge svg { width: 17px; height: 17px; }
.site-footer .footer-pay-badge svg[viewBox="0 0 32 20"] { width: 30px; height: 19px; }
.site-footer .footer-pay-visa { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: .04em; }

@media (max-width: 1080px) {
  .site-footer .footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-footer .footer-main-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .footer-brand-col { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 640px) {
  .site-footer { padding: 44px 0 24px; }
  .site-footer .footer-cta { margin-bottom: 40px; border-radius: 16px; }
  .site-footer .footer-cta-top { padding: 22px 18px 20px; }
  .site-footer .footer-cta-copy { flex-basis: 100%; }
  .site-footer .footer-cta-title { font-size: 23px; }
  .site-footer .footer-cta-side { width: 100%; justify-content: space-between; gap: 14px; }
  .site-footer .footer-games img, .site-footer .footer-games-more { width: 36px; height: 36px; margin-left: -10px; }
  .site-footer .footer-trust { padding: 14px 18px; gap: 12px 14px; }
  .site-footer .footer-trust li { font-size: 12.5px; gap: 8px; }
  .site-footer .footer-trust-ic { width: 28px; height: 28px; }
  .site-footer .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-bottom: 32px; }
  .site-footer .footer-bottom-line { flex-direction: column; align-items: flex-start; text-align: left; }
  .site-footer .footer-sep { display: none; }
}
@media (max-width: 400px) {
  .site-footer .footer-games { display: none; }
  .site-footer .footer-cta-btn { width: 100%; justify-content: center; }
}

/* "All games" at the end of the Game Servers menu */
.dropdown-sep { display: block; height: 1px; margin: 4px 8px; background: var(--border); }
.drawer-link-more { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; }
/* ------------------------------------------------------------- light-mode fixes
   style.css was tuned for dark mode: white-alpha surfaces vanish on white and
   heavy black shadows look dirty. These keep the same look, theme-aware. */
html[data-theme="light"] .tech-stack-tag,
html[data-theme="light"] .os-badge-fast,
html[data-theme="light"] .dock-ping { background: rgba(15, 23, 42, .05); }
html[data-theme="light"] .spec-row { border-bottom-color: var(--border); }
html[data-theme="light"] .net-rail-card::after { background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .04), transparent); }
html[data-theme="light"] .game-btn.active { color: var(--game-accent) !important; }
html[data-theme="light"] .live-pill { color: #2563eb; }
html[data-theme="light"] .mockup-top .live-pill { color: #93c5fd; } /* console title bar stays dark in both themes */
html[data-theme="light"] .text-blue-500 { color: var(--primary) !important; }
html[data-theme="light"] .net-test-link:hover,
html[data-theme="light"] .faq-prompt-link:hover { color: var(--primary-hover); }
html[data-theme="light"] .testi-stars { color: #d97706; }
html[data-theme="light"] .drawer-overlay { background: rgba(15, 23, 42, .35); }
html[data-theme="light"] .nav-dropdown,
html[data-theme="light"] .lang-menu,
html[data-theme="light"] .mobile-drawer,
html[data-theme="light"] .floating-theme-toggle,
html[data-theme="light"] .hero-visual-card,
html[data-theme="light"] .noc-glass-console,
html[data-theme="light"] .faq-spotlight-panel,
html[data-theme="light"] .shield-cyber-card,
html[data-theme="light"] .orbit-dock-switcher,
html[data-theme="light"] .orbit-stage-container,
html[data-theme="light"] .orbit-hud-panel,
html[data-theme="light"] .callout-card,
html[data-theme="light"] .cs-engine-badge-overlay { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); }
html[data-theme="light"] .tech-card:hover,
html[data-theme="light"] .infra-card-tw:hover,
html[data-theme="light"] .fiab-slide:hover,
html[data-theme="light"] .vps-plan-card:hover,
html[data-theme="light"] .ded-row-card:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, .10); }
html[data-theme="light"] .nav-shell::before { box-shadow: 0 16px 34px -14px rgba(15, 23, 42, calc(var(--p) * .28)); }

/* hero: grid tracks may shrink below their content (long translated headlines no longer push the page sideways) */
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero-grid > * { min-width: 0; }
.hl-join { white-space: nowrap; } /* keeps the full stop on the same line as the highlighted words */
@media (max-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .curved-highlight { white-space: normal; }
  .hero-title { font-size: 34px; }
}

/* infrastructure cards: the decorative SVG must sit under the text, never over it */
.infra-card-tw .tw-text-content { position: relative; z-index: 1; }

/* ---------------------------------------------------------- badges: one style on every page */
.badge, .badge.green, .badge.purple {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #fff !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
}
html[data-theme="light"] .badge, html[data-theme="light"] .badge.green, html[data-theme="light"] .badge.purple {
  color: #1d4ed8 !important; /* white text would be invisible on the light background */
}

/* ------------------------------------------------------- hero dot grid (same as the footer) */
.hero-wrapper, .cs-hero-section, .vps-hero-section, .legal-hero { position: relative; isolation: isolate; }
.hero-wrapper::before, .cs-hero-section::before, .vps-hero-section::before, .legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text-dim) 30%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 35%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 35%, #000 25%, transparent 85%);
}
html[data-theme="light"] .hero-wrapper::before, html[data-theme="light"] .cs-hero-section::before,
html[data-theme="light"] .vps-hero-section::before, html[data-theme="light"] .legal-hero::before {
  background-image: radial-gradient(rgba(15, 23, 42, .13) 1px, transparent 1.2px);
}

/* ES monogram in the logo tiles (wider than the old square icon) */
.site-header .brand-symbol svg.enix-es-mark, .mobile-drawer .brand-symbol svg.enix-es-mark { width: 22px; height: 19px; }
.site-footer .footer-logo-icon svg.enix-es-mark { width: 20px; height: 17px; }

/* console mockup bar stays dark in both themes: keep its live pill readable in light mode (all game pages) */
html[data-theme="light"] .mockup-top .live-pill { color: #93c5fd !important; }
