html { color-scheme: dark; }

.arcade-discover {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 15px/1.5 var(--za-font);
}

.arcade-discover *, .arcade-discover *::before, .arcade-discover *::after { box-sizing: border-box; }
.arcade-discover[hidden], .arcade-discover [hidden] { display: none !important; }
body.arcade-discover::after { content: none; }
.arcade-discover a { color: inherit; text-decoration: none; }
.arcade-discover button, .arcade-discover input, .arcade-discover select { color: inherit; font: inherit; }
.arcade-discover button { cursor: pointer; }
.arcade-discover button:disabled { cursor: default; opacity: .55; }
.arcade-discover :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.arcade-discover [data-icon] svg, .spotlight-option svg, .card-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.arcade-discover main { display: flex; flex: 1; flex-direction: column; margin-left: var(--za-rail); min-width: 0; }
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search {
  width: clamp(160px, 29vw, 340px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 42px;
  color: var(--muted);
  background: var(--za-frost-field);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; width: 0; padding: 9px 0; font-size: 14px; background: transparent; border: 0; outline: none; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); }
.search kbd { padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; }
.arcade-discover :is(.shuffle, .za-accent, #sort, #more, #clear) {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--za-frost);
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.shuffle { white-space: nowrap; }
.shuffle svg { margin-right: 4px; color: var(--accent); }

.content { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 32px var(--za-gap) 56px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 {
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 780;
  letter-spacing: -.05em;
  margin: 0;
  line-height: 1.06;
  overflow-wrap: anywhere;
}
.page-heading p { margin: 8px 0 0; color: var(--muted); overflow-wrap: anywhere; }
[data-bg="custom"] .arcade-discover .page-heading { text-shadow: 0 1px 8px rgb(0 4 15 / .85); }
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 25%); gap: 14px; }
body.arcade-discover .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 27vw, 430px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--za-panel);
  box-shadow: var(--za-frost-shadow);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b112777, transparent 76%),
    linear-gradient(0deg, #0a1024bd, transparent 65%);
}
.hero-copy {
  width: min(425px, calc(100% - 36px));
  margin: 18px;
  padding: clamp(16px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--za-frost);
  box-shadow: var(--za-frost-shadow);
}
.hero-copy .feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgb(var(--accent-rgb) / .35);
  border-radius: 8px;
  background: var(--za-frost-field);
  color: var(--accent);
  font: 750 10px/1.4 var(--za-font);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.feature svg { width: 13px !important; height: 13px !important; }
.hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 3.45vw, 54px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -.04em;
}
.hero-copy > p:not(.feature) { max-width: 34ch; margin: 13px 0 20px; color: #edf3ff; font-size: 14px; }
.arcade-discover .play {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.play svg { fill: currentColor !important; }
.play:hover { filter: brightness(1.11); }
.hero-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#slide-count {
  color: #eef4ff;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(8 14 29 / .78);
  font: 600 11px/1 ui-monospace, monospace;
  letter-spacing: .06em;
}
.hero-controls button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  background: rgb(8 14 29 / .78);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-controls button:hover { border-color: var(--accent); color: var(--accent); }
.spotlight-menu {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--za-frost);
  box-shadow: var(--za-frost-shadow);
}
.spotlight-option {
  display: grid;
  grid-template-columns: clamp(62px, 6.4vw, 96px) minmax(0, 1fr) auto;
  text-align: left;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  background: var(--za-frost-field);
  border: 1px solid transparent;
  border-radius: 8px;
}
.spotlight-option img { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; border-radius: 7px; }
.spotlight-option strong, .spotlight-option small { display: block; }
.spotlight-option strong { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.spotlight-option small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.spotlight-option svg { color: var(--muted); width: 15px; }
.spotlight-option:hover, .spotlight-option[aria-pressed=true] {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: rgb(var(--accent-rgb) / .14);
}
.spotlight-option[aria-pressed=true] svg { color: var(--accent); }

.shelf { margin-top: 34px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: clamp(23px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.035em; }
.section-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgb(var(--accent-rgb) / .12); color: var(--accent); }
.heading a {
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--za-frost-field);
  font-size: 13px;
  font-weight: 650;
}
.heading a span, .heading a:hover { color: var(--accent); }
#count { color: var(--muted); font-size: 13px; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
body.arcade-discover .card {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--za-frost);
  box-shadow: var(--za-frost-edge);
  transition: transform .16s ease, border-color .16s ease;
}
body.arcade-discover .card:hover, body.arcade-discover .card:focus-visible { border-color: var(--accent); }
body.arcade-discover .card:hover { transform: translateY(-3px); }
.art { position: relative; aspect-ratio: 1.9; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fallback { display: grid; place-items: center; height: 100%; font-size: clamp(20px, 3vw, 44px); letter-spacing: -.07em; font-weight: 750; color: var(--accent); }
.cards { align-items: stretch; }
.card-copy { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.card-copy div { min-width: 0; }
.card h3, .card small { display: block; margin: 0; }
.card h3 { overflow-wrap: anywhere; }
.card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 { font-size: 15px; }
.card small { font-size: 12px; color: var(--muted); }
.card-arrow { color: var(--muted); }
.card:hover .card-arrow { color: var(--accent); }

.catalog {
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--za-frost);
  box-shadow: var(--za-frost-edge);
}
.catalog-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  min-height: 36px;
  background: var(--za-frost);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 650;
}
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button[aria-pressed=true] { color: var(--accent); border-color: rgb(var(--accent-rgb) / .45); background: rgb(var(--accent-rgb) / .10); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.arcade-discover #sort { min-height: 36px; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 12px; }
#more { display: block; margin: 24px auto 0; }
#more span { color: var(--accent); margin-left: 6px; }
@media (max-width: 1080px) {
  .spotlight { grid-template-columns: minmax(0, 1fr); }
  .spotlight-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight-option { grid-template-columns: 54px minmax(0, 1fr) auto; }
}

@media (max-width: 780px) {
  .arcade-discover main { margin: 0; }
  .content { padding-block: 24px 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}
@media (max-width: 540px) {
  .arcade-discover .za-crumb, .search kbd, .spotlight-option svg { display: none; }
  .toolbar { gap: 6px; }
  .search { flex: 1; width: auto; min-width: 0; padding: 0 8px; }
  .arcade-discover :is(.shuffle, .za-accent) { padding-inline: 8px; }
  .arcade-discover .za-accent { width: 92px; max-width: 100%; }
  body.arcade-discover .hero { min-height: 360px; }
  .hero-image { object-position: 62% center; }
  .hero-copy { width: calc(100% - 24px); margin: 12px; }
  .spotlight-menu { gap: 6px; padding: 6px; }
  .spotlight-option { display: block; padding: 6px; }
  .spotlight-option img { aspect-ratio: 2; }
  .spotlight-option strong { font-size: 12px; }
  .spotlight-option small { display: none; }
  .card-copy { padding-inline: 6px; }
  .card h3 { font-size: 14px; line-height: 1.3; }
}
@media (max-width: 420px) {
  .arcade-discover .shuffle { flex: 0 0 42px; padding: 0; }
  .shuffle svg { margin: 0; }
  .shuffle-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-discover .card { transition: none; }
  .arcade-discover .card:hover { transform: none; }
  .arcade-discover .consent-gate { animation: none; opacity: 1; }
}

.arcade-discover :is(.card-arrow, .heading a, #more) svg { width: 15px; height: 15px; }

.hero-tile .hero-image {
  left: auto;
  width: 54%;
  object-fit: contain;
  padding: clamp(22px, 4vw, 60px);
}

.polytrack-card .art {
  background: linear-gradient(160deg, #17305b 5%, #35558c 49%, #242844 50%, #141827 90%);
}
.polytrack-card .art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, #90e5ff 0 8px, #f4f0e8 8px 16px);
  clip-path: polygon(0 76%, 100% 38%, 100% 45%, 0 93%);
  opacity: .85;
}
.polytrack-card .fallback {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 12px #12152c;
  font: italic 900 clamp(16px, 2.3vw, 35px)/1 var(--za-font);
  letter-spacing: -.06em;
}

/* Discover uses an editorial intro, a feature stage and a choice of games. */
.arcade-discover .content { padding-top: clamp(16px, 2.8vw, 32px); }
.arcade-discover .page-heading h1 { font-size: clamp(36px, 5vw, 67px); font-weight: 790; letter-spacing: -.065em; }
.arcade-discover .discover-home {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: clamp(185px, 19vw, 278px);
  padding: clamp(18px, 3vw, 44px);
  border: 1px solid #779fef67;
  border-radius: calc(var(--za-radius) + 4px);
  background:
    linear-gradient(90deg,#081528f4,#091629db 33%,#0e1c352f 78%),
    url('/art/zenou-glass.webp') 54% 44% / cover no-repeat,
    radial-gradient(ellipse at 94% 50%,#2455e2,#142b67 54%,#0a1832 88%);
  box-shadow: inset 0 1px #dae8ff24, 0 0 var(--za-bloom) #4777dc54;
}
.arcade-discover .discover-home p { color: #d5e2f6; font-size: clamp(13px,1.35vw,17px); }
.discover-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: clamp(12px,1.8vw,24px); }
.discover-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
body.arcade-discover .discover-actions .btn-solid { background: var(--za-tone); color: #102116; }
.discover-actions .btn-ghost { background: #102039d4; }
.discover-actions svg { width: 15px !important; height: 15px !important; }
.arcade-discover .spotlight { align-items: stretch; gap: 14px; }
body.arcade-discover .hero {
  min-height: clamp(290px,29vw,412px);
  align-items: center;
  border-radius: calc(var(--za-radius) + 3px);
  border-color: #6386bf77;
  background: #111d33;
  box-shadow: 0 10px 25px #040c1d6b;
}
.arcade-discover .hero-image {
  left: 28%;
  width: 72%;
  object-position: 64% 47%;
}
.arcade-discover .hero::after {
  background:
    linear-gradient(90deg,#101e35 29%,#101e35b0 43%,#101e3534 74%,transparent),
    linear-gradient(0deg,#0b1223a8,transparent 75%);
}
.arcade-discover .hero-copy {
  width: min(470px, 68%);
  max-width: none;
  margin: 0;
  padding: clamp(17px, 3.1vw, 41px);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.arcade-discover .hero-copy .feature {
  background: #172d4d;
  color: var(--za-tone);
  border-color: #9fbefa45;
  border-radius: 6px;
}
.arcade-discover .hero h2 { font-size: clamp(31px,4vw,57px); letter-spacing: -.055em; }
.arcade-discover .hero-copy > p:not(.feature) { color: #d2dbef; }
.arcade-discover .hero-controls { top: auto; bottom: 13px; right: 13px; }
.arcade-discover .spotlight-list {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--za-radius);
  background: var(--za-frost);
}
.spotlight-list h2 { margin: 2px 5px 10px; color: var(--text); font-size: 14px; }
.arcade-discover .spotlight-menu { padding: 0; border: 0; background: none; box-shadow: none; }
.arcade-discover .spotlight-option { border-radius: 9px; background: #96bdff0c; }
.arcade-discover .spotlight-option[aria-pressed=true] { border-color: #8db6f67f; background: #7aaaff21; }
.arcade-discover .spotlight-option:is(:hover,:focus-visible) { background: #9bbcff2b; }
.arcade-discover .spotlight-option img { aspect-ratio: 1.36; }
.arcade-discover .heading a { border-color: #577db478; background: #182a45e6; }
.arcade-discover .catalog { background: #101b2de6; border-radius: var(--za-radius); }
.arcade-discover :is(.search,.shuffle,.za-accent) { background: #152640; }
.arcade-discover .cards { gap: 14px; }
body.arcade-discover .card { border-radius: 12px; padding: 0; background: var(--za-frost); }
.arcade-discover .card .art { border-radius: 0; }
.arcade-discover .card-copy { padding: 9px 12px; min-height: 58px; }
@media (max-width:1080px) {
  .arcade-discover .spotlight-option img { aspect-ratio: 1.45; }
}
@media (max-width:620px) {
  .arcade-discover .hero-image { left: 0; width: 100%; object-position: 63% center; }
  .arcade-discover .hero::after { background: linear-gradient(0deg,#071528e8 12%,#0b16299c 48%,#09162a24 100%); }
  body.arcade-discover .hero { min-height: 282px; align-items: end; }
  .arcade-discover .hero-controls { bottom: auto; top: 9px; right: 9px; }
  .arcade-discover .hero-copy { width: 100%; padding-top: 56px; }
  .arcade-discover .hero h2 { font-size: clamp(28px,8vw,48px); }
  .arcade-discover .spotlight-list { padding: 7px; }
  .arcade-discover .spotlight-option img { aspect-ratio: 1.7; }
}
@media (max-width:540px) {
  .arcade-discover .discover-home { background-position: 0 0, 58% center; }
  .arcade-discover .cards { gap: 9px; }
  .arcade-discover .card-copy { padding-inline: 8px; }
}
