/* Arcade hub composition. Shared tokens, font and approved artwork are owned by
   infin8-ui; this page consumes them without changing Sleddin or the kit. */
.arcade-home {
  --bg: var(--i8-base);
  --panel: var(--i8-panel);
  --line: var(--i8-line-soft);
  --cyan: var(--i8-cyan-web);
  --purple: var(--i8-violet);
  --accent: var(--i8-purple-light);
  --text: var(--i8-text);
  --muted: var(--i8-muted);
  font-size: 16px;
  line-height: 1.6;
}
.arcade-home [hidden] { display: none !important; }
/* Backing and particle stacking are owned by /assets/site/infin8-surface.css. */
.arcade-home .arcade-header { background: var(--i8-glass-bg-strong); backdrop-filter: none; }
.arcade-home h1, .arcade-home h2, .arcade-home h3,
.arcade-home .arcade-button { font-family: var(--i8-font-display); font-weight: 800; }
.arcade-home h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; margin: var(--i8-s4) 0 var(--i8-s5); }
.arcade-home h1 span { color: var(--i8-cyan-bright); }
.arcade-home h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
/* Title band: the Infin8 logotype and "Arcade", centred and wide, then the
   game panels directly beneath. No marketing copy, steps or spotlight. */
.arcade-home .arcade-title { padding-block: clamp(28px, 5vw, 56px) var(--i8-s3); text-align: center; }
.arcade-home .arcade-title-mark { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 24px); margin: 0; font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: 1; letter-spacing: -.035em; }
.arcade-home .arcade-title-mark img { display: block; width: clamp(200px, 34vw, 460px); height: auto; filter: drop-shadow(0 6px 28px rgba(99, 230, 255, .28)); }
.arcade-home .arcade-title-row { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 48px); }
.arcade-home .arcade-title-logo { display: block; flex: none; width: clamp(150px, 17vw, 260px); height: auto; filter: drop-shadow(0 8px 34px rgba(182, 108, 255, .38)) drop-shadow(0 0 22px rgba(99, 230, 255, .22)); }
.arcade-home .arcade-title-mark span { background: var(--i8-grad-cool, linear-gradient(90deg, var(--i8-cyan-bright), var(--i8-violet))); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.arcade-home .games-library { padding-top: 0; }
.arcade-home .games-library .home-discovery { margin-top: 0; justify-items: center; text-align: center; }
.arcade-home .games-library .home-search { width: min(560px, 100%); }
.arcade-home .games-library .home-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arcade-home .games-library .home-filters { justify-content: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.arcade-home .arcade-section { padding-block: var(--i8-s6); }
.arcade-home .section-heading { gap: var(--i8-s5); }
.arcade-home .section-heading p { max-width: 48ch; color: var(--i8-text-soft); }
.arcade-home .section-heading h2 { margin: var(--i8-s2) 0; }
.arcade-home .player-dashboard, .arcade-home .profile-card, .arcade-home .leaderboard-card,
.arcade-home .game-card { border-radius: var(--i8-r-panel); background: var(--i8-glass-bg-strong); border-color: var(--i8-line-soft); }
.arcade-home .quick-game { border-radius: var(--i8-r-control); background: var(--i8-panel-alt); }
.home-discovery { margin-block: var(--i8-s5); display: grid; gap: var(--i8-s4); }
.home-search { display: grid; gap: var(--i8-s2); max-width: 560px; }
.home-search > span { font-size: .875rem; font-weight: 700; }
.arcade-home .home-search input { min-height: 48px; width: 100%; font-size: 1rem; }
.home-filters { display: flex; flex-wrap: wrap; gap: var(--i8-s2); }
.home-filters button { cursor: pointer; font-size: .8125rem; }
.home-filters [aria-pressed="true"] { color: var(--i8-base); background: var(--i8-cyan-bright); border-color: var(--i8-cyan-bright); }
.home-results { color: var(--i8-text-soft); margin: 0; min-height: 1.6em; font-size: .875rem; }
.arcade-home .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--i8-s5); grid-auto-rows: 1fr; align-items: stretch; }
/* Same-sized panels: fixed 16:9 art, one-line title, one-line tagline, one action. */
.arcade-home .game-card { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.arcade-home .game-cover { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
.arcade-home .game-cover img { width: 100%; height: 100%; object-fit: cover; }
.arcade-home .game-card-copy { padding: var(--i8-s4) var(--i8-s5) var(--i8-s5); display: flex; flex-direction: column; gap: var(--i8-s2); flex: 1; }
.arcade-home .game-card-copy h3 { font-size: 1.25rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcade-home .game-card-copy .game-tagline { margin: 0 0 var(--i8-s3); color: var(--i8-text-soft); font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcade-home .game-card-copy .arcade-button { width: 100%; margin-top: auto; }.arcade-home .game-coming-soon-label { color: var(--i8-warning); background: var(--i8-base); }
.arcade-home .nebula-panel { transform: none; }
.arcade-home .nebula-ring { animation: none; opacity: .5; }
.arcade-home .arcade-footer nav { display: flex; flex-wrap: wrap; gap: var(--i8-s4); }
.arcade-home .arcade-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--i8-touch); min-width: var(--i8-touch); }
.arcade-home :is(.arcade-brand,.game-tab) { min-height: var(--i8-touch); }
@media (max-width: 1024px) {
  .arcade-home .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .arcade-home .arcade-title-mark { flex-direction: column; gap: var(--i8-s2); }
  .arcade-home .arcade-title-row { flex-direction: column-reverse; gap: var(--i8-s3); }
  .arcade-home .arcade-title-logo { width: clamp(150px, 46vw, 220px); }
  .arcade-home .arcade-shell { width: calc(100% - 32px); }
  .arcade-home .game-grid, .arcade-home .player-dashboard { grid-template-columns: 1fr; }
  .arcade-home .arcade-nav { gap: var(--i8-s3); }
  .arcade-home .arcade-links { flex-wrap: wrap; overflow: visible; gap: var(--i8-s1); }
  .arcade-home .arcade-links a { min-height: var(--i8-touch); padding-inline: var(--i8-s2); }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-home { scroll-behavior: auto; }
  .arcade-home::before { display: block; animation: none; mix-blend-mode: normal; }
  .arcade-home *, .arcade-home *::before, .arcade-home *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .arcade-home .game-card { border: 1px solid CanvasText; }
}
