/* ============================================================
   KA Gaming — www.kaga88.com
   Crimson Ember design system (approved 2026-08 redesign)
   ============================================================ */
:root {
  --bg: #151011;
  --panel: #231A17;
  --panel-deep: #1B1310;
  --text: #F7F3EF;
  --muted: #A59B93;
  --dim: #877D75;   /* 4.69:1 on --bg (AA) */
  --red: #E5243F;
  --ember: #FF7A45;
  --ember-soft: #FFA477;
  --amber: #FFB35A;
  --line: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(90deg, #FF7A45, #FFB35A);
  --grad-cta: linear-gradient(90deg, #DF1F39, #CC4C18);   /* white text >= 4.55:1 across the run (AA) */
  --font-display: 'Bricolage Grotesque', Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-soft); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); }
.eyebrow--grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.05; margin: 0; }
.h2--minor { font-size: clamp(24px, 3vw, 34px); }   /* stays under .h2 at every width */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 100px; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; }
.btn--primary { background: var(--grad-cta); color: #fff; padding: 15px 30px; box-shadow: 0 0 32px rgba(229, 36, 63, 0.45); }
.btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: var(--text); padding: 14px 28px; font-weight: 500; }
.btn--amber { background: var(--amber); color: #2A1206; padding: 15px 30px; box-shadow: 0 0 30px rgba(255, 157, 69, 0.4); }
.btn svg { flex-shrink: 0; }
/* a:hover would otherwise repaint every anchor-CTA label ember (amber CTA fell to ~1.1:1) */
a.btn--primary, a.btn--primary:hover { color: #fff; }
a.btn--amber, a.btn--amber:hover { color: #2A1206; }
a.btn--ghost, a.btn--ghost:hover { color: var(--text); }
/* the colour guards above only CANCEL a:hover — buttons had no visual hover at all */
@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(1.08); }
  .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }
}
.btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.btn:active:not(:disabled), .filter:active, .featchip:active { transform: translateY(1px); }
.btn, .filter, .featchip, .burger, .game-card, .motion-toggle, .spec-close { -webkit-tap-highlight-color: transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21, 16, 17, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 92px; }
.site-header .logo { flex-shrink: 0; }
.site-header .logo img { height: 64px; width: auto; max-width: none; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav .divider { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.15); }
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; }
.lang { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.lang-select { background: transparent; border: 0; color: var(--muted); font-family: var(--font-body); font-size: 14px; cursor: pointer; outline: none; }
.lang-select option { background: var(--bg); color: var(--text); }
.lang-select:hover { color: var(--text); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-burger { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
.demo-note { font-size: 13px; color: var(--dim); margin: 0 0 18px; }
.noscript-note { color: var(--muted); font-size: 16px; line-height: 1.6; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 0; }

/* Header collapses at 1280px, not 1100: the 13-language nav plus the CTA needs ~1180px,
   and below that the desktop nav overflowed the viewport. */
@media (max-width: 1280px) {
  .site-header .container { height: 76px; }
  .site-header .logo img { height: 48px; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 24px; display: none; max-height: calc(100vh - 76px); overflow-y: auto; z-index: 65; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .nav .divider { display: none; }
  .search input, .lang-select { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; background: radial-gradient(1000px 600px at 85% 10%, rgba(229, 36, 63, 0.16), rgba(21, 16, 17, 0) 60%), radial-gradient(800px 500px at 10% 90%, rgba(255, 122, 69, 0.12), rgba(21, 16, 17, 0) 55%), var(--bg); }
.hero .container { display: flex; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-cats { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: 0.96; margin: 0; }
.hero-kicker { font-family: var(--font-display); font-size: clamp(17px, 2vw, 26px); font-weight: 800; letter-spacing: 0.06em; }
.hero-sub { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 560px; }
.collage { display: grid; grid-template-columns: repeat(3, 170px); gap: 14px; transform: rotate(-4deg); }
.collage img { width: 170px; height: 170px; border-radius: 14px; display: block; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); object-fit: cover; }
.collage .pop { position: relative; z-index: 2; }
.collage .pop img { transform: scale(1.32); border-radius: 16px; box-shadow: 0 24px 70px rgba(229, 36, 63, 0.6); }

/* ---------- Ticker ---------- */
.ticker-wrap { overflow: hidden; padding: 14px 0; }
.ticker { background: var(--grad-cta); padding: 12px 0; transform: rotate(-1.2deg) scale(1.04); }
.ticker-inner { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker-inner span { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.08em; white-space: nowrap; padding-right: 2.5em; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 48px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.section-sub { font-size: 15px; color: var(--muted); }

/* ---------- Marquee (releases / hits) ---------- */
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee-half { display: flex; gap: 24px; padding-right: 24px; }
.marquee-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(21, 16, 17, 0) 6%, rgba(21, 16, 17, 0) 94%, var(--bg) 100%); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .game-card img, .play-pill { transition: none; } }

.game-card { display: flex; flex-direction: column; gap: 8px; width: 250px; flex-shrink: 0; cursor: pointer; }
.game-card--skeleton { cursor: default; pointer-events: none; }
.game-card--skeleton .art { aspect-ratio: 1; background: var(--panel); }
.game-card--skeleton .meta { height: 14px; width: 60%; border-radius: 4px; background: var(--panel); }
.game-card--skeleton .art, .game-card--skeleton .meta { animation: skelPulse 1.6s ease-in-out infinite; }
@keyframes skelPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .game-card--skeleton .art, .game-card--skeleton .meta { animation: none; } }
.game-card .art { position: relative; border-radius: 14px; overflow: hidden; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(21, 16, 17, 0.6); opacity: 0; transition: opacity 0.18s ease; pointer-events: none; }
.play-pill { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--grad-cta); padding: 10px 20px; border-radius: 100px; transform: translateY(5px); transition: transform 0.18s ease; box-shadow: 0 6px 18px rgba(229, 36, 63, 0.4); }
.game-card img { transition: transform 0.25s ease; }
@media (hover: hover) {
  .game-card:hover .play-overlay { opacity: 1; }
  .game-card:hover .play-pill { transform: translateY(0); }
  .game-card:hover img { transform: scale(1.05); }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.game-card img { width: 250px; height: 250px; border-radius: 14px; display: block; object-fit: cover; background: var(--panel); }
.game-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-card .name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card .cat { font-size: 12px; color: var(--dim); flex-shrink: 0; }
.game-card .cat--fish { color: var(--amber); }
.badge-new { position: absolute; top: 10px; left: 10px; background: var(--amber); color: var(--bg); font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 100px; }
.badge-date { font-size: 12px; color: var(--amber); flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }
.stat-big { display: flex; align-items: baseline; gap: 14px; }
.stat-big b { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big span { font-size: 16px; color: var(--muted); max-width: 130px; line-height: 1.25; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { display: flex; align-items: baseline; gap: 7px; background: var(--panel); border: 1px solid rgba(255, 122, 69, 0.25); border-radius: 100px; padding: 10px 16px; }
.chip b { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); }
.chip span { font-size: 13px; color: var(--muted); }
.chip--hot { border-color: rgba(255, 157, 69, 0.35); }
.chip--hot b { color: var(--amber); }
.mini-stats { display: flex; flex-direction: column; gap: 10px; }
.mini-stats div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Games grid ---------- */
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--muted); font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 100px; background: none; cursor: pointer; font-family: var(--font-body); }
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.filter.active { background: var(--grad-cta); color: #fff; border-color: transparent; font-weight: 700; box-shadow: 0 0 20px rgba(229, 36, 63, 0.35); }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 100px; padding: 10px 20px; width: 250px; }
.search input { background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; width: 100%; font-family: var(--font-body); }
.search input::placeholder { color: var(--dim); }
.games-scroll { position: relative; }
/* Cap against the viewport, not a fixed 790px: on a 13" laptop or a phone in landscape
   the grid filled the screen and overscroll-behavior:contain left no page strip to
   grab, walling visitors off from everything below — including the only lead form. */
.games-viewport { max-height: min(790px, 68vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 122, 69, 0.5) transparent; }
.games-viewport::-webkit-scrollbar { width: 8px; }
.games-viewport::-webkit-scrollbar-thumb { background: rgba(255, 122, 69, 0.4); border-radius: 100px; }
.games-viewport::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 100px; }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.games-grid .game-card { width: auto; }
.games-grid .game-card img { width: 100%; height: auto; aspect-ratio: 1; }
.games-scroll .fade-bottom { position: absolute; left: 0; right: 10px; bottom: 0; height: 90px; pointer-events: none; background: linear-gradient(180deg, rgba(21, 16, 17, 0) 0%, var(--bg) 100%); }
.grid-empty { color: var(--dim); font-size: 15px; padding: 32px 0; }

/* ---------- Differentiator bands ---------- */
.bands { display: flex; flex-direction: column; gap: 24px; }
.band { display: flex; align-items: center; gap: 56px; padding: 56px 64px; border-radius: 24px; }
.band--slots { background: radial-gradient(700px 400px at 10% 20%, rgba(229, 36, 63, 0.28), rgba(30, 15, 13, 0) 60%), linear-gradient(120deg, #1E0F0D 0%, #3A1512 60%, #661A14 140%); border: 1px solid rgba(255, 122, 69, 0.3); }
.band--fish { background: radial-gradient(700px 400px at 90% 20%, rgba(255, 157, 69, 0.25), rgba(42, 18, 6, 0) 60%), linear-gradient(120deg, #2A1206 0%, #4A2008 60%, #7E3A0E 140%); border: 1px solid rgba(255, 157, 69, 0.3); }
/* third band: deep ember-neutral so it reads as its own voice, not a third category */
.band--speed { background: radial-gradient(700px 400px at 12% 15%, rgba(255, 122, 69, 0.18), rgba(24, 18, 22, 0) 60%), linear-gradient(120deg, #181216 0%, #241A20 55%, #3A2430 140%); border: 1px solid rgba(255, 122, 69, 0.22); }
.band--speed p { color: rgba(247, 240, 236, 0.78); }
.band--speed .band-art { order: -1; }   /* art leads, so three bands don't stack art on one side */
.band-art { display: flex; gap: 18px; flex-shrink: 0; }
.band-art img { width: 200px; height: 200px; border-radius: 16px; display: block; object-fit: cover; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.band-art img:first-child { transform: rotate(-4deg); }
.band-art img:last-child { transform: rotate(4deg) translateY(16px); }
.band-copy { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.band-copy .btn { align-self: flex-start; }
.band-copy h3 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 44px); font-weight: 800; color: #fff; line-height: 1; margin: 0; }
.band-copy p { font-size: 17px; line-height: 1.6; margin: 0; max-width: 540px; }
.band--slots p { color: rgba(255, 238, 232, 0.8); }
.band--fish p { color: rgba(255, 240, 220, 0.8); }

/* ---------- About ---------- */
.about-card { display: flex; align-items: center; gap: 64px; padding: 56px 64px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.about-copy { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.about-copy p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 640px; margin: 0; }
.about-card > img { height: 110px; width: auto; max-width: none; flex-shrink: 0; opacity: 0.9; }

/* ---------- Platform ---------- */
.plat-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plat-card { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.plat-stat { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plat-stat b { font-family: var(--font-display); font-size: clamp(38px, 4vw, 56px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plat-stat span { font-size: 14px; color: var(--muted); }
.plat-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.plat-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.plat-card svg.viz { width: 100%; height: 84px; display: block; }

/* ---------- Events ---------- */
.events-row { display: flex; gap: 24px; }
.event-card { display: flex; flex-direction: column; gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 40px; width: 400px; flex-shrink: 0; }
.event-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.1; margin: 0; }
.event-meta { display: flex; flex-direction: column; gap: 10px; }
.event-meta div { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.event-photos { display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; display: block; }
.photo-grid figure:nth-child(odd) img { transform: rotate(-2deg); }
.photo-grid figure:nth-child(even) img { transform: rotate(2deg) translateY(8px); }
.photo-grid figcaption { font-size: 13px; color: var(--dim); }
.events-note { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 10px; }

/* ---------- Partners ---------- */
.partner-wall { display: flex; flex-direction: column; gap: 32px; padding: 10px 0; }
.partner-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.partner-row img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.85; }
.partner-row img.lg { height: 42px; }
.partner-row img.sm { height: 26px; }
.partner-pitch { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 760px; margin-top: 28px; }
.partner-pitch b { color: var(--ember); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-row { display: flex; gap: 64px; border-top: 1px solid var(--line); }
.contact-form { display: flex; flex-direction: column; gap: 16px; width: 560px; flex-shrink: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select { background: none; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 14px 16px; font-size: 16px; color: var(--text); font-family: var(--font-body); outline: none; }
.contact-form textarea { resize: vertical; }
.contact-form select { background: none; cursor: pointer; }
.contact-form select.placeholder { color: var(--muted); }
.contact-form select option { color: var(--text); background: var(--panel); }
.contact-form select option[value=""] { color: var(--dim); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--dim); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--ember); }
/* Chrome paints its own pale autofill background over dark fields without this */
.contact-form input:-webkit-autofill, .contact-form input:-webkit-autofill:hover, .contact-form input:-webkit-autofill:focus, .contact-form textarea:-webkit-autofill, .contact-form select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--panel-deep) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.form-status { font-size: 14px; color: var(--amber); min-height: 20px; }
.form-status.ok { color: #7FC98F; }
.form-status.err { color: var(--red); }
.contact-side { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
/* The contact column was 500x473px of empty space under a page that is otherwise
   dense with art — this carries the Europe/Americas/Africa/Asia reach claim the
   About and Platform copy both make, in the platform cards' SVG viz language. */
.contact-side .contact-viz { display: block; margin-bottom: 4px; }   /* out-specify .contact-side div{display:flex} */
.contact-side .contact-viz svg { width: 100%; max-width: 420px; height: auto; display: block; }
.contact-viz-cap { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 2px 0 0; }
.contact-side h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0; }
.contact-side div { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); }

/* ---------- RG + Footer ---------- */
.rg-strip { border-top: 1px solid var(--line); }
.rg-strip .container { display: flex; flex-direction: column; gap: 16px; padding-top: 30px; padding-bottom: 30px; }
/* one claim per row, each led by its own badge: demo → certified → 18+ */
.rg-row { display: flex; align-items: center; gap: 16px; }
.rg-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--text); border-radius: 50%; color: var(--text); flex-shrink: 0; }
.age-badge { font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.rg-row p { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 640px; margin: 0; }
.rg-marks { display: flex; align-items: center; gap: 32px; flex-shrink: 0; padding-left: 36px; }
.rg-marks img { filter: brightness(0) invert(1); opacity: 0.8; width: auto; display: block; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 34px; width: auto; max-width: none; align-self: flex-start; }
.slogan { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; font-size: 14px; }
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--muted); }
.copyright { font-size: 14px; color: var(--dim); }

/* ============================================================
   Mobile / narrow  (approved mobile board; burger below 1100px so the
   13-language nav never crowds the PLAY NOW button)
   ============================================================ */
@media (max-width: 1100px) {
  .hero .container { flex-direction: column; align-items: stretch; gap: 28px; padding-top: 40px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  /* approved mobile board: tilted 3-tile decorative strip with edge fades */
  .hero-art { position: relative; width: 100%; height: 150px; overflow: hidden; }
  .hero-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(21, 16, 17, 0) 45%, var(--bg) 100%), linear-gradient(90deg, var(--bg) 0%, rgba(21, 16, 17, 0) 15%, rgba(21, 16, 17, 0) 85%, var(--bg) 100%); }
  .collage { grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; transform: rotate(-4deg) scale(1.18) translateY(6px); }
  .collage > img, .collage > div { display: none; }
  .collage > img:nth-child(1) { display: block; order: 1; }
  .collage > div:nth-child(5) { display: block; order: 2; }
  .collage > img:nth-child(3) { display: block; order: 3; }
  .collage img, .collage .pop img { width: 100%; height: auto; transform: none; border-radius: 12px; box-shadow: 0 10px 30px rgba(229, 36, 63, 0.35); }
  .ticker-inner span { font-size: 13px; }
  .section { padding: 48px 0; }
  .stats-row { gap: 20px; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* monotonic: 4 -> 3 -> 3 */
  .plat-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-viewport { max-height: min(620px, 62vh); }   /* same viewport cap on small screens */
  .band { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 24px; }
  .band-art { display: none; }
  .about-card { flex-direction: column; align-items: flex-start; padding: 26px 24px; gap: 20px; }
  .about-card > img { height: 64px; }
  .events-row { flex-direction: column; }
  .event-card { width: auto; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid img { height: 110px; }
  .partner-row { justify-content: center; gap: 22px 30px; }
  .partner-row img { height: 22px; }
  .partner-row img.lg { height: 30px; }
  .partner-row img.sm { height: 20px; }
  .contact-row { flex-direction: column; gap: 32px; }
  .contact-form { width: auto; }
  .marquee-half { gap: 12px; padding-right: 12px; }
  .game-card { width: 140px; }
  .game-card img { width: 140px; height: 140px; }
  .games-grid .game-card img { width: 100%; height: auto; }
  .search { width: 100%; }
}
@media (max-width: 560px) {
  /* single column: two-up cards cannot hold the big stat numerals on phones */
  .plat-grid3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* app-store style: 3-across catalogue on phones */
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .games-grid .game-card { gap: 5px; }
  .games-grid .game-card img { border-radius: 10px; }
  .games-grid .game-card .art { border-radius: 10px; }
  .games-grid .game-card .name { font-size: 11px; }
  .games-grid .game-card .cat { display: none; }
  .hero-ctas { flex-direction: column; }
}

/* ---------- Language-specific typography ----------
   Bricolage/Instrument have no CJK or Thai glyphs; give those scripts a
   proper heavy system stack and kill Latin letter-spacing, which looks
   broken on ideographs. Korean also gets keep-all so words don't split. */
html[lang="zh-Hans"] { --font-display: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
html[lang="ja"] { --font-display: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif; --font-body: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; }
html[lang="ko"] { --font-display: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --font-body: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
html[lang="th"] { --font-display: 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; --font-body: 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; }
/* Neither Bricolage Grotesque nor Instrument Sans ships a Cyrillic subset, so Russian
   fell through to plain Arial. Vietnamese tone marks (U+1EA0-1EF9) are missing from
   Instrument Sans too, which split VI body copy across two faces mid-word. */
html[lang="ru"] { --font-display: 'Golos Text', 'Helvetica Neue', Arial, sans-serif; --font-body: 'Golos Text', 'Helvetica Neue', Arial, sans-serif; }
html[lang="vi"] { --font-body: 'Be Vietnam Pro', 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; }
html[lang="zh-Hans"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="ko"] .eyebrow, html[lang="th"] .eyebrow,
html[lang="zh-Hans"] .hero-cats, html[lang="ja"] .hero-cats, html[lang="ko"] .hero-cats, html[lang="th"] .hero-cats,
html[lang="zh-Hans"] .hero-kicker, html[lang="ja"] .hero-kicker, html[lang="ko"] .hero-kicker, html[lang="th"] .hero-kicker,
html[lang="zh-Hans"] .slogan, html[lang="ja"] .slogan, html[lang="ko"] .slogan, html[lang="th"] .slogan,
html[lang="zh-Hans"] .ticker-inner span, html[lang="ja"] .ticker-inner span, html[lang="ko"] .ticker-inner span, html[lang="th"] .ticker-inner span,
html[lang="zh-Hans"] .play-pill, html[lang="ja"] .play-pill, html[lang="ko"] .play-pill, html[lang="th"] .play-pill { letter-spacing: 0.02em; }
html[lang="zh-Hans"] .hero h1, html[lang="ja"] .hero h1, html[lang="ko"] .hero h1, html[lang="th"] .hero h1 { letter-spacing: 0; line-height: 1.12; }
html[lang="ko"] .btn, html[lang="ko"] .h2, html[lang="ko"] .hero h1 { word-break: keep-all; }
html[lang="ja"] .h2, html[lang="zh-Hans"] .h2, html[lang="th"] .h2 { line-height: 1.2; }

/* buttons never wrap mid-label on desktop; mobile stacks them full-width anyway */
.btn { white-space: nowrap; }
@media (max-width: 560px) { .btn { white-space: normal; } }

/* ---------- Legal subpages (tos / privacypolicy / appsupport) ---------- */
.legal-main { max-width: 840px; margin: 0 auto; padding: 56px 24px 90px; }
.legal-main h1 { font-family: var(--font-display); font-size: clamp(26px, 6.5vw, 52px); font-weight: 800; line-height: 1.05; margin: 8px 0 10px; overflow-wrap: anywhere; }
.legal-updated { color: var(--dim); font-size: 14px; }
.legal-note { background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.legal-main section { margin-top: 38px; }
.legal-main h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.legal-main p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; max-width: 70ch; }
.legal-main ul { margin: 0 0 12px 22px; }
.legal-main li { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 7px; list-style: disc; max-width: 70ch; }
.legal-main a { color: var(--ember); text-decoration: none; }
.legal-main a:hover { text-decoration: underline; }
.legal-main .contact-form { width: 100%; margin-top: 30px; }

/* contact links */
.contact-side a.mail-link { color: var(--ember); }
.contact-side a.mail-link:hover { text-decoration: underline; }
a.map-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
a.map-link:hover { color: var(--ember); }
a.map-link:not([href]) { text-decoration: none; color: inherit; pointer-events: none; }
a.map-link:not([href]) .map-arrow { display: none; }

/* keyboard focus */
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.lang-select:focus-visible, .search input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.plat-sub { color: var(--muted); font-size: 15.5px; margin: 0; max-width: 620px; }
.footer-links a svg { opacity: 0.85; }

/* become-a-partner block */
.partner-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 44px; }
.partner-cta p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0; }
.partner-direct { font-family: var(--font-display); font-weight: 800; font-size: clamp(17px, 2vw, 21px); text-transform: uppercase; letter-spacing: 0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pause/resume for auto-moving content (WCAG 2.2.2) */
.motion-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.motion-toggle:hover { color: var(--text); border-color: var(--ember); }
.motion-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.motion-toggle .icon-play { display: none; }
body.motion-paused .motion-toggle .icon-pause { display: none; }
body.motion-paused .motion-toggle .icon-play { display: block; }
body.motion-paused .marquee-track, body.motion-paused .ticker-inner { animation-play-state: paused; }
body.motion-paused .game-card--skeleton .art, body.motion-paused .game-card--skeleton .meta { animation: none; }

/* per-game specs */
.game-card .art:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.game-card .art:focus-visible .play-overlay { opacity: 1; }
.spec-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.spec-modal[hidden] { display: none; }   /* display:flex would otherwise defeat the hidden attribute */
.spec-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.spec-sheet { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; width: min(430px, calc(100vw - 32px)); max-height: 86vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 122, 69, 0.5) transparent; }
.spec-modal:not([hidden]) .spec-backdrop { animation: specFade 0.16s ease both; }
.spec-modal:not([hidden]) .spec-sheet { animation: specRise 0.18s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes specFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes specRise { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.spec-head { display: flex; gap: 14px; align-items: center; }
.spec-head > div { min-width: 0; }
.spec-head img { width: 74px; height: 74px; border-radius: 12px; background: var(--bg); }
.spec-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 0 0 3px; overflow-wrap: break-word; }
.spec-head .cat { font-size: 12.5px; color: var(--muted); }
.spec-rows { display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; margin: 0; }
.spec-rows dt { color: var(--muted); font-size: 13px; }
.spec-rows dd { margin: 0; font-size: 14px; color: var(--text); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips span { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 100px; padding: 5px 12px; font-size: 12.5px; color: var(--muted); }
.spec-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: none; color: var(--muted); line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.spec-close::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }   /* 46px touch target around the 32px circle */
.spec-close:hover { color: var(--text); border-color: var(--ember); }
.spec-close:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.spec-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spec-actions .btn { padding: 12px 22px; font-size: 14px; }
/* commercial route out of the sheet — peak intent was previously a closed loop */
.spec-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.spec-ask-link { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ember); }
.spec-ask-link:hover { color: var(--ember-soft); }
.spec-ask-link:focus-visible, .spec-copy:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.spec-copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-body); font-size: 13px; color: var(--dim); }
.spec-copy:hover { color: var(--text); }
.spec-copy.copied { color: #7FC98F; }
@media (max-width: 560px) {
  .spec-modal { align-items: flex-end; }
  .spec-sheet { width: 100%; border-radius: 20px 20px 0 0; max-height: 78vh; }
}

.rel-clock { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* three stat cards across: rein the numerals in so the uptime figure fits the narrower card */
.plat-stats-row .plat-stat b { font-size: clamp(30px, 3.1vw, 44px); }

.plat-stats-row { margin-bottom: 24px; }   /* the old .plat-grid2 row spacing, lost in the 3-across rename */

/* feature filter chips */
.feat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 24px; }
.featchip { border: 1px solid rgba(255, 255, 255, 0.14); color: var(--dim); font-size: 12.5px; font-weight: 500; padding: 7px 14px; border-radius: 100px; background: none; cursor: pointer; font-family: var(--font-body); }
.featchip:hover { color: var(--muted); border-color: rgba(255, 255, 255, 0.3); }
.featchip.active { background: var(--grad-cta); border-color: transparent; color: #fff; font-weight: 700; }
.featchip:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* jurisdictions claim in the trust strip */
.rg-row p.rg-lic { font-size: 14.5px; line-height: 1.5; color: var(--text); max-width: 640px; margin: 0; }
.rg-lic a { color: var(--ember); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.rg-lic a:hover, .rg-lic a:focus-visible { text-decoration-style: solid; }

@media (max-width: 1000px) {
  .rg-row--cert { flex-wrap: wrap; }
  /* only the marks drop to a new line — the claim stays paired with its badge */
  .rg-row--cert p { flex: 1 1 240px; min-width: 0; }
  .rg-row--cert .rg-marks { flex-basis: 100%; margin-left: 0; padding-left: 56px; gap: 26px; }
}
@media (max-width: 560px) {
  .rg-row { align-items: flex-start; }
  .rg-row--cert .rg-marks { flex-wrap: wrap; gap: 18px 20px; }   /* stays under the claim it backs */
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--panel); color: var(--text); border: 1px solid var(--ember); border-radius: 8px; padding: 10px 16px; font-size: 14px; }
.skip-link:focus { left: 24px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* final say for reduced motion: re-asserted last so later transition rules cannot void it */
@media (prefers-reduced-motion: reduce) { .game-card img, .play-pill, .play-overlay { transition: none; } }

/* ---------- Print: legal pages are printed by compliance teams ---------- */
@media print {
  :root { --text: #111; --muted: #333; --dim: #555; --line: #ccc; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .burger, .lang, .motion-toggle, .ticker-wrap, .spec-modal, .rg-strip { display: none !important; }
  .legal-main { max-width: none; padding: 0; }
  .legal-main p, .legal-main li { color: #222; max-width: none; }
  .legal-main h1, .legal-main h2 { color: #111; }
  a { color: #111; text-decoration: underline; }
  section { break-inside: avoid; }
}
