/* Slots Winner — Brand App Profile + Discovery Marketplace
 * Single shared stylesheet, light product surface, technical-grotesk typography.
 * No Tailwind, no framework — hand-authored for production quality.
 */

:root {
  --paper: #f3f5f8;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #1f2937;
  --muted: #475569;
  --muted-2: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --accent: #0a6e44;
  --accent-ink: #ffffff;
  --accent-hover: #0b6f44;
  --accent-soft: #e8f6ee;
  --warn: #b45309;
  --bg-soft: #f8fafc;
  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --header-h: 64px;
  --sticky-cta-h: 64px;
  --max-w: 1240px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

body { min-height: 100vh; overflow-x: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: 17px; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-2); }

ul, ol { padding-left: 1.2em; margin: 0 0 1em; color: var(--ink-2); }
li { margin: .25em 0; }

code, .mono {
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .9em;
  background: rgba(15,23,42,.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.brand__name { font-size: 17px; }
.brand__tag { color: var(--muted-2); font-size: 12px; font-weight: 500; margin-left: 6px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.main-nav a.cta-nav {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  margin-left: 6px;
  border-radius: 10px;
  font-weight: 600;
}
.main-nav a.cta-nav:hover { background: var(--accent-hover); color: var(--accent-ink); }
.main-nav a.is-active { background: var(--accent-soft); color: var(--accent); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.hamburger__bars {
  display: block;
  width: 18px; height: 12px;
  margin: 0 auto;
  position: relative;
}
.hamburger__bars::before,
.hamburger__bars::after,
.hamburger__bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .15s, top .2s;
}
.hamburger__bars::before { top: 0; }
.hamburger__bars span { top: 5px; display: block; }
.hamburger__bars::after { top: 10px; }
.hamburger[aria-expanded="true"] .hamburger__bars::before { top: 5px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bars span { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bars::after { top: 5px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  background: var(--card);
  z-index: 90;
  padding: calc(var(--header-h) + 12px) var(--gutter) 80px;
  overflow-y: auto;
  display: none;
  box-sizing: border-box;
}
.mobile-drawer[data-open="true"] { display: block; }
.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer a {
  display: block;
  padding: 14px 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mobile-drawer a:hover { text-decoration: none; background: var(--bg-soft); }
.mobile-drawer__cta {
  margin-top: 18px;
  display: block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  border-radius: 12px;
  text-align: center;
  font-weight: 700 !important;
  padding: 14px !important;
  border: none !important;
}

body.is-locked { overflow: hidden; }

/* ========== BRAND APP PROFILE ========== */
.brand-app-profile {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.brand-app-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px 0 24px;
}
.brand-app-identity__icon {
  width: 112px; height: 112px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  box-shadow: var(--shadow);
}
.brand-app-identity__icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.brand-app-identity__main { min-width: 0; }
.brand-app-identity__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.brand-app-identity h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.15;
  margin: 0 0 6px;
}
.brand-app-identity__tagline {
  color: var(--muted);
  font-size: 15.5px;
  margin: 4px 0 0;
  max-width: 60ch;
}
.brand-app-identity__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.brand-app-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 140, 87, 0.25);
  transition: background .15s, transform .1s;
}
.brand-app-download:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; transform: translateY(-1px); }
.brand-app-download__sub {
  color: var(--muted-2);
  font-size: 12.5px;
}

.brand-app-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.brand-app-facts__cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.brand-app-facts__cell:last-child { border-right: none; }
.brand-app-facts__label {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.brand-app-facts__value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ========== GALLERY RAIL ========== */
.gallery-rail {
  padding: 32px 0;
  min-width: 0;
}
.gallery-rail .container { min-width: 0; }
.gallery-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gallery-rail__head h2 {
  font-size: 20px;
  margin: 0;
}
.gallery-rail__head p {
  color: var(--muted-2);
  font-size: 13.5px;
  margin: 0;
}
.gallery-rail__scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  min-width: 0;
  max-width: 100%;
}
.gallery-rail__tile {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-rail__tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.gallery-rail__tile figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ========== EDITORIAL SECTIONS ========== */
.section {
  padding: 56px 0;
}
.section--soft { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--paper { background: var(--bg-soft); }

.section__head { margin-bottom: 24px; max-width: 760px; }
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.section__lead { color: var(--muted); font-size: 17px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.overview-prose p { color: var(--ink-2); font-size: 16.5px; }

.feature-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.feature-numbers__cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.feature-numbers__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.feature-numbers h3 { font-size: 17px; margin-bottom: 8px; }
.feature-numbers p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ========== APP EXPLAINER ========== */
.app-explainer { background: var(--bg); }
.app-explainer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.app-explainer__copy h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}
.app-explainer__copy h3:not(:first-child) { margin-top: 18px; }
.app-explainer__copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.app-explainer__art {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.app-explainer__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}
.app-explainer__art figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ========== INSTALL + SAFETY ========== */
.install-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  min-width: 0;
}
.install-split > * { min-width: 0; }
.install-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.install-steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 56px;
  margin-bottom: 10px;
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
  min-width: 0;
  overflow-wrap: break-word;
}
.install-steps li code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.install-steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px; left: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.safety-list li {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
}
.safety-list li:last-child { border-bottom: none; }
.safety-list li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex: 0 0 auto;
}

/* ========== HOT SHELF ========== */
.hot-shelf { padding: 36px 0; }
.hot-shelf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.hot-shelf__head h2 { font-size: 20px; margin: 0; }
.hot-shelf__head p { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 60ch; }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hot-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .1s, box-shadow .15s;
  min-height: 84px;
}
.hot-row:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.hot-row__art {
  width: 56px; height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.hot-row__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-row__art[data-hot-visual="sports-ball"] {
  background: #fff;
  border: 1px solid var(--line);
}
.hot-row__art[data-hot-visual="sports-ball"] .ball-illus {
  width: 70%; height: 70%;
}
.hot-row__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.hot-row__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

/* ========== YONO COLLECTION ========== */
.yono-collection { padding: 36px 0; }
.yono-collection__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.yono-collection__head h2 { font-size: 20px; margin: 0; }
.yono-collection__head a {
  font-size: 13.5px;
  font-weight: 600;
}
.yono-leads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.yono-lead {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.yono-lead:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.yono-lead__art {
  width: 56px; height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.yono-lead__art img { width: 100%; height: 100%; object-fit: cover; }
.yono-lead__label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.yono-lead__name { font-size: 14.5px; font-weight: 700; }
.yono-lead__copy { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.yono-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.yono-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.yono-row:last-child { border-bottom: none; }
.yono-row:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.yono-row__art {
  width: 48px; height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.yono-row__art img { width: 100%; height: 100%; object-fit: cover; }
.yono-row__main { min-width: 0; }
.yono-row__name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.yono-row__meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yono-row__action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}
.yono-row__action:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* ========== APP INVENTORY ========== */
.inventory { padding: 36px 0; }
.inventory__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.inventory__head h2 { font-size: 20px; margin: 0; }
.inventory__head p { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 60ch; }
.inventory__count {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  margin-bottom: 12px;
}
.provider-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  scrollbar-width: thin;
}
.provider-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}
.provider-tab[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.provider-tab:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
.provider-tab:focus-visible { outline-offset: 3px; }

.app-rows {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.app-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.app-row:last-child { border-bottom: none; }
.app-row__art {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.app-row__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-row__main { min-width: 0; }
.app-row__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.app-row__name:hover { color: var(--accent); }
.app-row__meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.app-row__category {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.app-row__cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.app-row__cta:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

.inventory__more {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
.inventory__more:hover { border-color: var(--accent); color: var(--accent); }
.inventory__more[disabled] {
  opacity: .5; cursor: not-allowed;
}

/* ========== PROMO / VIP / CODE STRIP ========== */
.hub-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.hub-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.hub-card h3 { font-size: 18px; margin: 0 0 8px; }
.hub-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.hub-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hub-card__link:hover { text-decoration: underline; color: var(--accent-hover); }

/* ========== NEWS + FAQ ========== */
.split-news-faq {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.news-card:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.news-card__thumb {
  width: 110px; height: 100%;
  background: var(--bg-soft);
  display: block;
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 110px; }
.news-card__body { padding: 14px 14px 14px 0; }
.news-card__date {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  margin-bottom: 6px;
}
.news-card__title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.news-card__deck { font-size: 13.5px; color: var(--muted); margin: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .15s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] { border-color: var(--accent); }
.faq-list details > div {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ========== RESPONSIBLE-USE BAND ========== */
.responsible-band {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 24px 0;
}
.responsible-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.responsible-band h3 { font-size: 15px; margin: 0 0 4px; color: #92400e; }
.responsible-band p { font-size: 13.5px; color: #78350f; margin: 0; max-width: 70ch; }
.responsible-band__link {
  background: #b45309;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.responsible-band__link:hover { background: #92400e; color: #fff; text-decoration: none; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 48px 0 32px;
  font-size: 14px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13.5px; }
.footer-brand {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-brand .brand__name { color: #fff; font-size: 17px; }
.footer-brand p { font-size: 13px; color: #94a3b8; max-width: 36ch; }
.footer-meta {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748b;
}
.footer-meta__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-meta__links a { color: #94a3b8; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 95;
  padding: 18px 20px;
  display: none;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner[data-open="true"] { display: block; }
.cookie-banner__title { font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.cookie-banner__copy { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner__btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.cookie-banner__btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-banner__btn--primary:hover { background: var(--accent-hover); }
.cookie-banner__settings {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  margin-left: auto;
}

.cookie-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.cookie-modal[data-open="true"] { display: block; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.cookie-modal__panel {
  position: relative;
  background: var(--card);
  width: min(560px, calc(100% - 32px));
  margin: 60px auto;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
.cookie-modal h3 { margin-bottom: 10px; }
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-option__title { font-weight: 600; font-size: 14.5px; }
.cookie-option__copy { font-size: 13px; color: var(--muted); }
.cookie-toggle {
  width: 44px; height: 24px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  border: none;
  flex: 0 0 auto;
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .15s;
}
.cookie-toggle[aria-checked="true"] { background: var(--accent); }
.cookie-toggle[aria-checked="true"]::after { transform: translateX(20px); }
.cookie-toggle[disabled] { opacity: .7; cursor: not-allowed; }

/* ========== MOBILE STICKY CTA ========== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-cta__btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-cta__btn:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .brand-app-identity { grid-template-columns: 80px 1fr; gap: 14px; padding: 22px 0 18px; }
  .brand-app-identity__icon { width: 80px; height: 80px; border-radius: 18px; }
  .brand-app-identity__cta { grid-column: 1 / -1; align-items: stretch; flex-direction: row; gap: 10px; align-items: center; justify-content: space-between; }
  .brand-app-download { flex: 1; }
  .brand-app-facts { grid-template-columns: repeat(2, 1fr); }
  .brand-app-facts__cell:nth-child(2) { border-right: none; }
  .brand-app-facts__cell:nth-child(1), .brand-app-facts__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .overview-grid, .install-split, .split-news-faq { grid-template-columns: 1fr; }
  .app-explainer__grid { grid-template-columns: 1fr; }
  .feature-numbers { grid-template-columns: 1fr; }
  .hot-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 8px; overflow-x: auto; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); padding-bottom: 8px; }
  .yono-leads { grid-template-columns: 1fr; }
  .hub-strip { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 80px 1fr; }
  .news-card__thumb { width: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .responsible-band__inner { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  :root { --gutter: 14px; }
  .brand__tag { display: none; }
  .app-row { grid-template-columns: 48px 1fr; gap: 10px; padding: 10px 12px; }
  .app-row__category { display: none; }
  .app-row__cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; margin-top: 6px; }
  .mobile-cta { display: block; }
  body { padding-bottom: var(--sticky-cta-h); }
  .section { padding: 40px 0; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  /* gallery rail: switch to single column at <430px so tiles never push body wider */
  .gallery-rail__scroll {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .gallery-rail__tile { min-width: 0; }
  /* vip table: keep scroll but cap wrapper to viewport so body never widens */
  .vip-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vip-table-wrap > .vip-table { min-width: 520px; }
}

/* ========== PROSE PAGES (legal, blog, features, install) ========== */
.prose-page { padding: 48px 0 64px; }
.prose-page__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.prose-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.prose-toc h4 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.prose-toc ul { list-style: none; padding: 0; margin: 0; }
.prose-toc li { margin: 0; }
.prose-toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.prose-toc a:hover { background: var(--bg-soft); text-decoration: none; }

.prose {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 760px;
}
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose p { margin: 0 0 14px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  background: var(--card);
}
.fact-strip__cell { padding: 14px 18px; border-right: 1px solid var(--line); }
.fact-strip__cell:last-child { border-right: none; }
.fact-strip__label { display: block; font-size: 11px; color: var(--muted-2); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px; }
.fact-strip__value { display: block; font-weight: 700; font-size: 15px; font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps-list li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 56px;
  margin-bottom: 10px;
  position: relative;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: 14px; left: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

@media (max-width: 860px) {
  .prose-page__inner { grid-template-columns: 1fr; }
  .prose-toc { position: static; }
}

/* ========== UTILITY ========== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
.text-muted { color: var(--muted-2); }
.section--tight { padding: 28px 0; }

/* ========== GAME PROFILE ========== */
.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 36px;
}
.detail-art {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
}
.detail-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.detail-art__name { font-size: 14px; font-weight: 700; margin: 14px 0 4px; color: var(--ink); }
.detail-art__id { font-size: 12px; color: var(--muted-2); font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.detail-summary h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.detail-summary__sub { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.detail-summary__cta-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ========== RELATED CARDS ========== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.related-card:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.related-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.related-card__name { font-size: 12.5px; font-weight: 600; margin: 8px 0 2px; line-height: 1.3; }
.related-card__meta { font-size: 11px; color: var(--muted-2); font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.related-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
  color: var(--accent);
  font-size: 44px;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: -0.02em;
}
.related-card--text { padding: 10px; }

.yono-lead__art--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.yono-row__art--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* ========== VIP TABLE ========== */
.vip-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.vip-table th, .vip-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.vip-table th {
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  white-space: nowrap;
}
.vip-table td { font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--ink-2); }
.vip-table tr:last-child td { border-bottom: none; }
.vip-table tr:hover td { background: var(--bg-soft); }
.vip-table .vip-level-name { font-weight: 700; color: var(--ink); }

