/* Dumb Game Palace: a new editorial shell around the existing game engines. */
:root {
  --ink: #171b2b;
  --ink-deep: #101421;
  --paper: #f7f3e8;
  --paper-dark: #e9e3d4;
  --brand-yellow: #ffe16b;
  --brand-coral: #ff838d;
  --brand-mint: #83e1c7;
  --brand-violet: #a7a2f2;
  --text: #f8f6ed;
  --muted: #b8bfd0;
  --accent: var(--brand-yellow);
  --accent-2: var(--brand-coral);
  --accent-3: var(--brand-mint);
  --button-text: #171b2b;
  --title-font: "Space Grotesk", "Arial Black", sans-serif;
  --body-font: "DM Sans", Arial, sans-serif;
  --mono-font: "Courier New", monospace;
}

body[data-theme="slime"] {
  --brand-yellow: #bdf375;
  --brand-coral: #ffae74;
  --brand-mint: #78edb5;
  --brand-violet: #a8e7db;
  --accent: var(--brand-yellow);
  --accent-2: var(--brand-coral);
  --accent-3: var(--brand-mint);
}

body[data-theme="disco"] {
  --brand-yellow: #f9a1e9;
  --brand-coral: #ffce75;
  --brand-mint: #9bf3d5;
  --brand-violet: #c4a3ff;
  --accent: var(--brand-yellow);
  --accent-2: var(--brand-coral);
  --accent-3: var(--brand-mint);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.45;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--brand-coral);
  outline-offset: 3px;
}
.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;
}
.is-hidden, [hidden] { display: none !important; }
.skip-link {
  position: fixed; top: -80px; left: 12px; z-index: 100;
  padding: 12px 18px; background: var(--brand-yellow); color: var(--ink);
  border-radius: 0 0 12px 12px; font-weight: 800;
}
.skip-link:focus { top: 0; }
.page-shell { min-height: 100vh; overflow: hidden; isolation: isolate; }
.eyebrow {
  margin: 0 0 16px;
  color: inherit;
  font: 800 0.75rem/1.3 var(--body-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Masthead */
.site-ticker {
  height: 33px; overflow: hidden; background: var(--brand-yellow); color: var(--ink);
  border-bottom: 2px solid var(--ink); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.2em;
}
.site-ticker-track {
  display: flex; align-items: center; gap: 38px; width: max-content; height: 100%;
  white-space: nowrap; animation: ticker 26s linear infinite;
}
.site-ticker-track i { font-size: 0.9rem; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1360px, calc(100% - 64px)); height: 88px; margin: auto;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  position: relative; display: grid; place-items: center;
  width: 50px; height: 50px; transform: rotate(-8deg);
  border-radius: 14px; border: 3px solid var(--ink);
  background: var(--brand-yellow); box-shadow: 5px 5px 0 var(--brand-coral);
  color: var(--ink); font: 900 0.95rem var(--title-font);
}
.brand-mark span { position: absolute; top: -11px; right: -9px; font-size: 1.2rem; }
.brand-wordmark {
  color: var(--text); font: 800 0.85rem/0.92 var(--title-font);
  letter-spacing: -0.045em; text-transform: uppercase;
}
.brand-wordmark strong { color: var(--brand-yellow); font-size: 1.2rem; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  color: #d7d9e1; text-decoration: none; font-weight: 800; font-size: .86rem;
  transition: color 180ms ease;
}
.site-nav a:hover { color: var(--brand-yellow); }
.header-pass {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.27); border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: .84rem;
  transition: background 180ms, color 180ms, transform 180ms;
}
.header-pass:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.status-light, .hero-live-dot, .stage-open-label span {
  width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
  background: var(--brand-mint); box-shadow: 0 0 0 4px rgba(131,225,199,.18);
}

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
  align-items: center; gap: 2%; position: relative;
  width: min(1360px, calc(100% - 64px)); min-height: 626px; margin: 0 auto;
  padding: 58px 0 70px; background: none; border: 0; border-radius: 0;
  box-shadow: none; overflow: visible;
}
.hero::before {
  content: ""; position: absolute; inset: 0 -10vw; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 78% 37%, rgba(91,89,164,.25), transparent 34%),
              radial-gradient(circle at 18% 85%, rgba(255,131,141,.09), transparent 31%);
}
.hero-copy-block { position: relative; z-index: 2; }
.hero-overline {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  color: #dfdedb; font-size: .7rem; font-weight: 800; letter-spacing: .16em;
}
.hero-title {
  margin: 29px 0 24px;
  color: var(--paper); font: 700 clamp(4.4rem, 7.8vw, 8.4rem)/.83 var(--title-font);
  letter-spacing: -.09em; text-transform: uppercase;
  text-shadow: none; animation: none; transform: none; cursor: pointer;
}
.hero-title em {
  color: var(--brand-yellow); font-style: normal;
  text-decoration: underline; text-decoration-color: var(--brand-coral);
  text-decoration-thickness: .07em; text-underline-offset: .06em;
}
.hero-copy {
  max-width: 530px; margin: 0; color: #c7c9d4;
  font-size: clamp(1rem, 1.28vw, 1.25rem); line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 54px; padding: 13px 19px; border: 2px solid transparent; border-radius: 13px;
  text-decoration: none; font-weight: 800; font-size: .93rem; cursor: pointer;
  transition: transform 180ms, box-shadow 180ms, background 180ms;
}
.cta-button span { font-size: 1.2rem; }
.cta-button:hover { transform: translateY(-3px); }
.cta-primary { background: var(--brand-yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--brand-coral); }
.cta-primary:hover { box-shadow: 7px 7px 0 var(--brand-coral); }
.cta-outline { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.36); }
.cta-outline:hover { background: rgba(255,255,255,.08); }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 29px; color: #aeb5c5; font-size: .82rem; }
.hero-footnote-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--brand-mint); color: var(--ink); font-size: .7rem; font-weight: 900; }
.hero-showcase {
  position: relative; min-height: 500px; display: grid; place-items: center;
  perspective: 900px;
}
.showcase-glow {
  position: absolute; inset: 10% 2% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,107,.15), rgba(167,162,242,.11) 38%, transparent 70%);
  filter: blur(6px);
}
.showcase-orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 520px; height: 350px; }
.orbit-two { width: 430px; height: 425px; transform: rotate(21deg); }
.showcase-card {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 280px; height: 330px; border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: 13px 16px 0 rgba(0,0,0,.34); color: var(--ink);
}
.showcase-card .cabinet-icon { width: 92%; height: 72%; filter: drop-shadow(0 9px 0 rgba(16,20,33,.15)); }
.showcase-card span {
  max-width: 90%; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); text-align: center;
  font: 800 .93rem/1 var(--title-font); letter-spacing: -.04em;
}
.card-back { left: 4%; top: 10%; transform: rotate(-17deg); background: var(--brand-mint); }
.card-front { right: 7%; bottom: 8%; transform: rotate(10deg); background: var(--brand-violet); }
.showcase-tag, .showcase-sticker, .showcase-spark { position: absolute; z-index: 4; }
.showcase-tag {
  top: 4%; right: 0; padding: 10px 14px; transform: rotate(7deg);
  border-radius: 7px; background: var(--brand-yellow); color: var(--ink);
  font: 900 .7rem var(--body-font); letter-spacing: .12em;
}
.showcase-sticker {
  display: grid; place-content: center; width: 104px; height: 104px; bottom: 2%; left: 0;
  transform: rotate(-15deg); border: 4px solid var(--ink); border-radius: 50%;
  background: var(--brand-coral); color: var(--ink); text-align: center;
  font: 900 1.6rem/.85 var(--title-font); box-shadow: 5px 6px 0 var(--brand-yellow);
}
.showcase-sticker span { font: 900 .68rem var(--body-font); letter-spacing: .08em; }
.showcase-spark { color: var(--brand-yellow); font-size: 3.2rem; }
.spark-a { left: 4%; top: 3%; }.spark-b { right: 3%; bottom: 5%; color: var(--brand-coral); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.35fr;
  align-items: center; gap: 0; width: min(1360px, calc(100% - 64px)); margin: 0 auto 60px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.hero-stats > div { display: flex; align-items: center; gap: 12px; padding: 19px 23px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { color: var(--brand-yellow); font: 800 2.1rem/.9 var(--title-font); letter-spacing: -.07em; }
.hero-stats span { color: #c4cad6; font-size: .77rem; font-weight: 700; }
.hero-stats p { padding: 0 18px; margin: 0; color: #aeb7c8; text-align: right; font-size: .75rem; line-height: 1.5; }
.hero-stats b { color: var(--paper); }
.announcer {
  display: flex; align-items: center; gap: 25px; padding: 16px max(32px, calc((100vw - 1360px)/2));
  margin: 0; border-radius: 0; background: var(--brand-yellow); color: var(--ink);
  box-shadow: none; overflow: hidden;
}
.announcer-label { flex: 0 0 auto; color: var(--ink); font: 900 .68rem var(--body-font); letter-spacing: .15em; white-space: nowrap; }
.announcer-label span { font-size: .9rem; margin-right: 6px; }
.announcer-text { flex: 1; margin: 0; color: var(--ink); font-size: .83rem; font-weight: 700; animation: none; }
.announcer-squiggle { font-size: 2rem; line-height: 1; }

/* Cabinet floor */
.games {
  width: 100%; margin: 0; padding: 95px max(32px, calc((100vw - 1360px)/2)) 110px;
  background: var(--paper); color: var(--ink);
}
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 42px; }
.section-intro .eyebrow { color: #b75b61; }
.section-intro h2, .account-head h2, .control-room h2 {
  margin: 0; font: 800 clamp(2.9rem, 5.4vw, 5.6rem)/.98 var(--title-font);
  letter-spacing: -.075em; text-transform: uppercase;
}
.section-intro h2 span { color: #dd6f79; }
.section-intro > p { max-width: 400px; margin: 0 0 7px; color: #5d6170; font-size: 1rem; line-height: 1.6; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  border: 1.5px solid #d7d1c6; border-radius: 999px; padding: 10px 16px;
  background: transparent; color: var(--ink); cursor: pointer;
  font-size: .8rem; font-weight: 800; transition: background 160ms, transform 160ms;
}
.filter-chip:hover { background: #ece5d8; transform: translateY(-2px); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search-box {
  display: flex; align-items: center; gap: 7px; width: min(260px, 100%);
  padding: 9px 13px; border: 1.5px solid #d7d1c6; border-radius: 12px; background: #fffdf8;
}
.search-box span:first-child { font: 800 1.4rem/1 var(--body-font); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: .84rem; }
.search-box:focus-within { border-color: #e7797f; box-shadow: 0 0 0 3px rgba(255,131,141,.18); }
.catalog-count { margin: 24px 0 16px; color: #73737a; font: 800 .73rem var(--body-font); text-transform: uppercase; letter-spacing: .12em; }
.game-grid, .games .game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.game-card {
  --tile: #ffe17a;
  display: flex; flex-direction: column; min-width: 0; padding: 0;
  overflow: hidden; border: 1.5px solid #d4d0c6; border-radius: 19px;
  background: #fffdf7; color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 4px 5px 0 #d8d2c4; transform: none; animation: none; will-change: auto;
  transition: transform 180ms, box-shadow 180ms, border-color 180ms;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-5px); border-color: var(--ink);
  box-shadow: 7px 9px 0 var(--ink); animation: none;
}
.game-card.is-active { outline: 3px solid #e76870; outline-offset: 2px; transform: none; }
.game-card.color-mint { --tile: #9be5cd; }
.game-card.color-sky { --tile: #9bd8ec; }
.game-card.color-peach { --tile: #ffc099; }
.game-card.color-coral { --tile: #ffa0a2; }
.game-card.color-violet { --tile: #c4b3ed; }
.game-card.color-yellow { --tile: #ffe184; }
.game-card.color-ink { --tile: #9ca7c6; }
.game-card-art {
  position: relative; display: grid; place-items: center; width: 100%; height: 215px;
  overflow: hidden; background: var(--tile);
  border-bottom: 1.5px solid #d4d0c6;
}
.game-card-art::before {
  content: ""; position: absolute; width: 185px; height: 185px;
  border: 1px solid rgba(23,27,43,.16); border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255,255,255,.09), 0 0 0 68px rgba(23,27,43,.035);
}
.game-card-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(23,27,43,.12) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .43; pointer-events: none;
}
.game-card-number {
  position: absolute; z-index: 2; top: 14px; left: 15px;
  padding: 5px 8px; border: 1px solid rgba(23,27,43,.25); border-radius: 6px;
  background: rgba(255,255,255,.63); font: 900 .65rem var(--body-font); letter-spacing: .1em;
}
.game-card-art-star { position: absolute; right: 14px; bottom: 4px; color: rgba(23,27,43,.32); font-size: 2.6rem; }
.cabinet-icon { position: relative; z-index: 1; display: block; width: 79%; height: 76%; overflow: visible; filter: drop-shadow(0 8px 0 rgba(23,27,43,.13)); }
.game-card:hover .cabinet-icon { transform: rotate(-5deg) scale(1.08); transition: transform 220ms ease; }
.game-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 17px 18px; }
.game-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-card-kicker { color: #8f5662; font: 900 .67rem var(--body-font); letter-spacing: .15em; text-transform: uppercase; }
.game-card-arrow { display: grid; place-items: center; width: 25px; height: 25px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: .85rem; }
.game-card-title { margin: 7px 0 8px; font: 800 clamp(1.14rem, 1.45vw, 1.55rem)/1.06 var(--title-font); letter-spacing: -.055em; text-transform: uppercase; }
.game-card-copy {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; min-height: 3.5em; margin: 0 0 14px; color: #646979;
  font-size: .78rem; line-height: 1.48;
}
.game-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.game-card-tags .tiny-pill { padding: 5px 7px; border: 1px solid #ded8cb; border-radius: 5px; background: #f1eee5; color: #555867; font-size: .62rem; font-weight: 800; }
.catalog-empty { padding: 50px 20px; border: 2px dashed #cfc7b8; border-radius: 20px; text-align: center; }
.catalog-empty span { font-size: 2.5rem; }.catalog-empty h3 { margin: 12px 0 5px; font: 800 1.6rem var(--title-font); }.catalog-empty p { margin: 0; color: #646979; }

/* Now playing */
.stage {
  padding: 92px max(32px, calc((100vw - 1360px)/2)) 100px;
  background: #171a2b; color: var(--paper); scroll-margin-top: 12px;
}
.stage-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.stage-heading .eyebrow { color: var(--brand-yellow); }
.stage-heading h2 { max-width: 900px; margin: 0 0 10px; font: 800 clamp(2.3rem, 4vw, 4.2rem)/1 var(--title-font); letter-spacing: -.065em; text-transform: uppercase; }
.stage-heading p:last-child { max-width: 750px; margin: 0; color: #afb6c9; }
.stage-open-label { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid #485164; border-radius: 999px; color: #cbd5df; font-size: .65rem; font-weight: 900; letter-spacing: .13em; }
.stage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 24px; align-items: start; }
.stage-screen { min-width: 0; }
.game-shell {
  min-height: 540px; padding: 16px; border: 1px solid #41485c; border-radius: 18px;
  background: #101322; box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.empty-stage {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0;
  min-height: 505px; padding: 40px 20px; text-align: center;
  background: radial-gradient(circle at center, rgba(166,162,242,.12), transparent 57%);
}
.empty-stage-art { display: grid; place-items: center; width: 100px; height: 100px; margin-bottom: 15px; border: 3px dashed var(--brand-yellow); border-radius: 25px; color: var(--brand-yellow); font-size: 4.5rem; transform: rotate(-11deg); }
.empty-stage-title { margin: 0; font: 800 2rem var(--title-font); text-transform: uppercase; letter-spacing: -.05em; }
.empty-stage p:not(.empty-stage-title) { margin: 5px 0 20px; color: #aeb7c9; }
.stage-actions { display: flex; justify-content: flex-start; gap: 10px; margin-top: 14px; }
.arcade-button {
  border: 1.5px solid #737d91; border-radius: 10px; padding: 11px 14px;
  background: #293044; color: var(--paper); box-shadow: none;
  font-size: .8rem; font-weight: 800; cursor: pointer;
  transition: transform 160ms, background 160ms, border-color 160ms;
}
.arcade-button:hover, .arcade-button:focus-visible { transform: translateY(-2px); border-color: var(--brand-yellow); box-shadow: none; animation: none; }
.arcade-button-hot { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--ink); }
.stage-sidebar { display: grid; gap: 13px; }
.stage-hud, .stage-meta { display: grid; gap: 10px; margin: 0; }
.stage-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-pill {
  min-width: 0; padding: 14px; border: 1px solid #3b4155; border-radius: 12px;
  background: #252a3e;
}
.stat-pill span { display: block; margin-bottom: 6px; color: #b8c0d0; font-size: .72rem; font-weight: 700; }
.stat-pill strong { display: block; color: var(--brand-yellow); font: 800 1.3rem var(--title-font); overflow-wrap: anywhere; }
.stat-pill-wide { grid-column: 1 / -1; }
.stat-pill-wide strong { color: #f3f0e9; font: 800 .95rem/1.3 var(--body-font); }
.stage-meta .meta-card {
  min-width: 0; padding: 15px; border: 1px solid #3b4155; border-radius: 12px; background: #202539; color: var(--paper);
}
.meta-title { margin: 0 0 11px; font: 800 .95rem var(--title-font); letter-spacing: -.03em; text-transform: uppercase; }
.stage-meta .control-list, .stage-meta .badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.control-chip, .badge-row .tiny-pill { padding: 6px 8px; border: 1px solid #545a70; border-radius: 6px; background: #32384d; color: #ece9e3; font-size: .68rem; line-height: 1.2; }
.leaderboard-copy, .leaderboard-footnote, .game-subcopy { color: #b8c0d0; font-size: .76rem; line-height: 1.5; }
.leaderboard-row { padding: 8px; border-radius: 7px; background: #2b3146; border-color: #3d4559; font-size: .72rem; }
.leaderboard-rank { color: var(--brand-yellow); }.leaderboard-value { color: var(--brand-mint); }
.leaderboard-footnote { margin-top: 10px; }

/* Player desk */
.account {
  padding: 90px max(32px, calc((100vw - 1360px)/2)) 100px;
  background: #f3c99d; color: var(--ink);
}
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 35px; }
.account-head .eyebrow { color: #9d424f; }
.account-head h2 { max-width: 790px; }
.account-head p:last-child { max-width: 600px; margin: 17px 0 0; color: #5f4d4d; }
.account-stamp {
  flex: 0 0 150px; width: 150px; height: 150px; display: grid; place-content: center;
  border: 3px dashed var(--ink); border-radius: 50%; transform: rotate(12deg);
  text-align: center; font: 900 .76rem/1.45 var(--body-font); letter-spacing: .07em;
}
.account-stamp strong { font: 900 1.1rem var(--title-font); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 45px; margin: 0; }
.account-card {
  display: block; padding: 25px; border: 2px solid var(--ink); border-radius: 16px;
  background: #fffaf1; box-shadow: 8px 8px 0 var(--ink);
}
.account-card .meta-title { font-size: 1.3rem; }.account-card .meta-title span { color: #eb6d77; }
.account-card .game-subcopy, .account-card .signed-in-copy { color: #555364; font-size: .84rem; }
.account-form { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
.field-label { color: var(--ink); font: 900 .66rem var(--body-font); letter-spacing: .13em; text-transform: uppercase; }
.arcade-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #aaa5a0; border-radius: 8px;
  background: #fff; color: var(--ink); outline: none; box-shadow: none; transform: none;
}
.arcade-input:focus { border-color: #d86f75; box-shadow: 0 0 0 3px rgba(255,131,141,.22); transform: none; }
.arcade-input::placeholder { color: #888791; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.account-actions .arcade-button { flex: 1 1 140px; justify-content: center; }
.account-card .arcade-button { border-color: var(--ink); background: #fff; color: var(--ink); }
.account-card .arcade-button-hot { background: var(--brand-yellow); }
.account-benefits { display: grid; align-content: center; }
.account-benefits > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 13px; padding: 17px 0; border-top: 1px solid rgba(23,27,43,.28); }
.account-benefits > div:last-child { border-bottom: 1px solid rgba(23,27,43,.28); }
.account-benefits span { grid-row: span 2; color: #bc5a65; font: 800 1.3rem var(--title-font); }
.account-benefits strong { font: 800 1.13rem var(--title-font); text-transform: uppercase; }
.account-benefits p { margin: 4px 0 0; color: #5f4d4d; font-size: .83rem; line-height: 1.5; }

/* Honors and switches */
.achievements { padding: 90px max(32px, calc((100vw - 1360px)/2)) 100px; background: #1e2038; color: var(--paper); }
.achievements .section-intro .eyebrow { color: var(--brand-mint); }
.achievements .section-intro h2 span { color: var(--brand-violet); }
.achievements .section-intro > p { color: #b5b9c9; }
.achievement-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.achievement-card {
  display: flex; flex-direction: column; min-width: 0; min-height: 190px; padding: 19px;
  border: 1px solid #55566e; border-radius: 13px; background: #2a2c46;
  box-shadow: none; color: var(--paper);
}
.achievement-card.is-locked { opacity: .72; filter: none; }
.achievement-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 13px; border-radius: 9px; background: var(--brand-yellow); color: var(--ink); font-size: 1.25rem; }
.achievement-card.is-locked .achievement-icon { background: #555970; color: #d9dbe6; }
.achievement-card-title { margin: 0 0 6px; font: 800 .98rem/1.1 var(--title-font); letter-spacing: -.04em; text-transform: uppercase; }
.achievement-card-copy { margin: 0; color: #b6bbcb; font-size: .75rem; line-height: 1.42; }
.achievement-state { margin-top: auto; padding-top: 13px; color: var(--brand-mint); font: 900 .65rem var(--body-font); letter-spacing: .12em; text-transform: uppercase; }
.achievement-card.is-locked .achievement-state { color: #939aad; }
.control-room {
  display: flex; align-items: center; justify-content: space-between; gap: 50px;
  padding: 70px max(32px, calc((100vw - 1360px)/2)); background: var(--brand-yellow); color: var(--ink);
}
.control-room h2 { font-size: clamp(2.7rem, 4vw, 4.3rem); }
.control-room p:last-child { margin: 12px 0 0; max-width: 420px; color: #4e4741; font-size: .86rem; }
.control-room-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 660px; }
.control-room .arcade-button { border-color: var(--ink); background: var(--paper); color: var(--ink); font-size: .74rem; }
.control-room .arcade-button-hot { background: var(--brand-coral); }
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 130px; padding: 32px max(32px, calc((100vw - 1360px)/2));
  background: #111522; color: #c4c9d7;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font: 800 .83rem var(--title-font); text-transform: uppercase; }
.site-footer p { max-width: 300px; margin: 0; font-size: .75rem; }
.site-footer a { color: var(--brand-yellow); text-decoration: none; font-size: .78rem; font-weight: 800; }

/* Loading overlay and playful modes */
.loading-screen { background: #111525; }
.loading-panel { max-width: 540px; border: 0; background: none; box-shadow: none; }
.loading-emblem { display: inline-block; margin-bottom: 26px; padding: 11px 14px; border-radius: 9px; background: var(--brand-yellow); color: var(--ink); font: 900 1.5rem var(--title-font); transform: rotate(-8deg); }
.loading-emblem span { color: #e16674; }
.loading-title { font: 800 clamp(2.4rem, 5vw, 4.2rem)/.95 var(--title-font); letter-spacing: -.07em; text-transform: uppercase; }
.loading-meter { border-radius: 999px; background: #384053; }.loading-meter-fill { border-radius: 999px; background: var(--brand-yellow); }
body.nonsense-mode .hero-title { animation: headlineWobble 1.3s ease-in-out infinite alternate; }
@keyframes headlineWobble { to { transform: rotate(-1.5deg) translateY(-3px); } }

@media (max-width: 1180px) {
  .game-grid, .games .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); }
  .showcase-card { width: 235px; height: 285px; }
  .hero-title { font-size: clamp(4.4rem, 7.4vw, 7.1rem); }
  .hero-stats > div { padding: 17px; }
}
@media (max-width: 900px) {
  .site-header, .hero, .hero-stats { width: min(100% - 40px, 1360px); }
  .site-nav { gap: 17px; }
  .hero { min-height: 550px; grid-template-columns: 1fr .6fr; padding: 45px 0; }
  .hero-title { font-size: clamp(3.9rem, 8vw, 6rem); }
  .hero-showcase { min-height: 390px; }
  .showcase-card { width: 185px; height: 230px; }
  .showcase-card span { font-size: .7rem; }
  .showcase-tag { font-size: .55rem; }
  .showcase-sticker { width: 76px; height: 76px; font-size: 1.1rem; }
  .showcase-sticker span { font-size: .5rem; }
  .game-grid, .games .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-layout { grid-template-columns: 1fr; }
  .stage-sidebar { grid-template-columns: 1fr 1.5fr; }
  .stage-meta { grid-template-columns: 1fr 1fr; }
  .leaderboard-card { grid-column: 1 / -1; }
  .achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header { width: min(100% - 28px, 1360px); height: 72px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-wordmark { font-size: .72rem; }.brand-wordmark strong { font-size: 1rem; }
  .site-nav { display: none; }
  .header-pass { padding: 10px 12px; font-size: .72rem; }
  .hero { display: block; width: min(100% - 36px, 1360px); min-height: 0; padding: 54px 0 35px; }
  .hero-title { font-size: clamp(3.6rem, 13vw, 6.7rem); }
  .hero-copy { font-size: 1rem; }
  .hero-showcase { min-height: 310px; max-width: 440px; margin: 30px auto 0; }
  .showcase-card { width: 180px; height: 220px; }
  .card-back { left: 9%; }.card-front { right: 9%; }
  .showcase-sticker { bottom: 4%; left: 4%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); width: min(100% - 36px, 1360px); margin-bottom: 36px; }
  .hero-stats > div { flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 10px; }
  .hero-stats strong { font-size: 1.7rem; }.hero-stats span { font-size: .65rem; }
  .hero-stats p { display: none; }
  .announcer { padding: 14px 20px; gap: 12px; }.announcer-label { font-size: .57rem; }.announcer-text { font-size: .68rem; }.announcer-squiggle { display: none; }
  .games, .stage, .account, .achievements { padding: 65px 20px 75px; }
  .section-intro { display: block; margin-bottom: 27px; }
  .section-intro > p { margin-top: 15px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .game-grid, .games .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card-art { height: 160px; }.game-card-body { padding: 12px; }
  .game-card-title { font-size: 1.08rem; }.game-card-copy { font-size: .7rem; }.game-card-tags .tiny-pill { font-size: .56rem; }
  .stage-heading { display: block; }.stage-open-label { margin-top: 16px; }
  .stage-sidebar { grid-template-columns: 1fr; }.stage-meta { grid-template-columns: 1fr 1fr; }
  .account-head { display: block; }.account-stamp { display: none; }
  .account-layout { grid-template-columns: 1fr; gap: 35px; }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-room { display: block; padding: 65px 20px; }
  .control-room-actions { justify-content: flex-start; margin-top: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 33px 20px; }
}
@media (max-width: 500px) {
  .hero-title { font-size: clamp(3.2rem, 13vw, 4.5rem); }
  .hero-showcase { min-height: 265px; }
  .showcase-card { width: 150px; height: 184px; border-radius: 18px; }
  .showcase-card span { font-size: .55rem; }.showcase-tag { right: 1%; top: 1%; }
  .game-grid, .games .game-grid { grid-template-columns: 1fr; gap: 15px; }
  .game-card { display: grid; grid-template-columns: 39% 61%; min-height: 150px; }
  .game-card-art { height: 100%; min-height: 160px; border-bottom: 0; border-right: 1px solid #d4d0c6; }
  .game-card-art::before { width: 125px; height: 125px; }
  .cabinet-icon { width: 94%; height: 70%; }
  .game-card-copy { -webkit-line-clamp: 2; min-height: 2.6em; margin-bottom: 7px; }
  .game-card-tags { display: none; }
  .game-card-title { font-size: 1.14rem; }
  .stage-meta { grid-template-columns: 1fr; }.leaderboard-card { grid-column: auto; }
  .achievement-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .achievement-card { min-height: 170px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Friends drawer */
.header-friends { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 11px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--paper); font: 800 .84rem var(--body-font); cursor: pointer; }
.header-friends:hover, .header-friends[aria-expanded="true"] { background: var(--brand-mint); color: var(--ink); }
.header-friends span { display: grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 4px; border-radius: 999px; background: var(--brand-coral); color: var(--ink); font-size: .7rem; }
.header-friends span[hidden], .friends-drawer[hidden], .friends-drawer [hidden] { display: none !important; }
.friends-drawer { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); padding: 25px 22px 40px; overflow-y: auto; box-sizing: border-box; border-left: 2px solid var(--brand-yellow); background: #171a2a; color: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.55); }
.friends-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 25px; }
.friends-head .eyebrow { margin-bottom: 6px; color: var(--brand-yellow); }
.friends-head h2 { margin: 0; font: 800 1.65rem/1.1 var(--title-font); letter-spacing: -.04em; }
.friends-head button { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: transparent; color: var(--paper); font-size: 1.55rem; cursor: pointer; }
.friends-empty { padding: 20px; border-radius: 15px; background: rgba(255,255,255,.06); color: #c8cbd8; line-height: 1.55; }
.friends-empty a { display: inline-block; margin-top: 12px; color: var(--brand-yellow); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.friend-search-form { display: grid; gap: 8px; }
.friend-search-form label { color: #d7d9e4; font-size: .82rem; font-weight: 800; }
.friend-search-form > div { display: flex; gap: 7px; }
.friend-search-form input { flex: 1; min-width: 0; }
.friend-search-form .arcade-button { padding-inline: 13px; }
.friends-section { margin-top: 24px; }
.friends-section h3 { margin: 0 0 10px; color: var(--brand-yellow); font: 800 .9rem var(--title-font); text-transform: uppercase; letter-spacing: .06em; }
.friends-section h3 span { color: #aeb5c5; }
.friends-section-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.friends-section-head label { display: grid; gap: 4px; color: #aeb5c5; font-size: .68rem; font-weight: 700; }
.friends-section-head select { max-width: 165px; padding: 5px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: #242a3c; color: var(--paper); font: 700 .72rem var(--body-font); }
.friends-list { display: grid; gap: 8px; }
.friend-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(255,255,255,.045); }
.friend-copy { flex: 1; min-width: 0; }
.friend-copy strong, .friend-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-copy strong { font-size: .86rem; }
.friend-copy small { margin-top: 2px; color: #aeb5c5; font-size: .72rem; }
.friend-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #72798c; }
.friend-dot.online { background: var(--brand-mint); box-shadow: 0 0 0 4px rgba(131,225,199,.14); }
.friend-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: end; }
.friend-actions button { padding: 6px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: #2c3449; color: var(--paper); font: 800 .7rem var(--body-font); cursor: pointer; }
.friend-actions button:hover { background: var(--brand-yellow); color: var(--ink); }
.friend-actions .friend-accept { background: var(--brand-mint); color: var(--ink); }
.friend-empty { padding: 11px; color: #aeb5c5; font-size: .78rem; }
@media (max-width: 700px) { .header-friends { margin-left: auto; padding: 9px 11px; } .header-pass { white-space: nowrap; } }
@media (max-width: 500px) { .site-header { gap: 7px; } .header-pass { padding: 8px; font-size: .7rem; } .header-friends { font-size: .72rem; } .friends-drawer { padding: 20px 15px 35px; } }
