/* Palette is taken from the product itself: the pale studio grey of the
   photographs, the indigo of the cartridge-box side strip, and the magenta of
   the original handheld's buttons. */
:root {
  --mist: #d9dee7;        /* the photo backdrop, so the hero image has no edge */
  --paper: #f3f5f9;
  --card: #ffffff;
  --ink: #17163a;
  --ink-soft: #4b4f72;
  --indigo: #2b2a8f;
  --indigo-deep: #1a1958;
  --magenta: #a8195d;
  --magenta-deep: #8a1049;
  --line: #cdd3df;
  --lcd: #dfe6c2;
  --lcd-ink: #2f4a1e;
  --radius: 18px;
  --display: "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgb(23 22 58 / 6%), 0 12px 32px -12px rgb(23 22 58 / 22%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }

.eyebrow {
  margin: 0 0 14px;
  font: 600 12.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* ---- Header ------------------------------------------------------------ */

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 12px max(20px, calc((100% - 1180px) / 2));
  background: rgb(217 222 231 / 86%);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(23 22 58 / 8%);
}

.brand { display: inline-flex; align-items: baseline; gap: 8px; margin: 0; text-decoration: none; color: var(--indigo); white-space: nowrap; }
.brand-name { font: italic 700 23px/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.brand-name em { font-style: inherit; color: var(--magenta); }
.brand-dots { display: inline-flex; gap: 3px; transform: rotate(-24deg) translateY(-1px); }
.brand-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); }

.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: var(--magenta); }

.basket-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
}
.basket-pill:hover { background: var(--indigo); color: #fff; }
.basket-pill svg { width: 18px; height: 18px; }
.basket-pill b {
  min-width: 26px; padding: 2px 7px; border-radius: 999px; text-align: center;
  background: #fff; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums;
}
.basket-pill.has-items b { background: var(--magenta); color: #fff; }

/* ---- Hero -------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--mist); }
/* The photograph's cases sit in its right-hand 70%. The art box shows that
   part only, pinned right, and the hero is exactly as tall as the box so the
   crop never changes; the photo's own backdrop matches --mist, so the copy
   sits on what looks like one continuous surface. */
.hero-inner {
  position: relative; max-width: 1560px; margin-inline: auto;
  min-height: min(43vw, 622px);
  display: flex; align-items: center;
}
.hero-art {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(58vw, 840px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 97%, transparent);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 45%; }
.hero-copy {
  position: relative;
  width: min(1180px, 100% - 40px); margin-inline: auto;
  padding-block: 56px 84px;
}
.hero-copy > * { max-width: 26rem; }
.hero h1 { font-style: italic; font-weight: 700; font-size: clamp(2.3rem, 3.9vw, 3.5rem); color: var(--indigo); letter-spacing: -0.03em; }
.lede { margin: 22px 0 30px; font-size: 1.16rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-price { margin: 0; color: var(--ink-soft); }
.hero-price b { font: 700 1.5rem/1 var(--display); color: var(--ink); margin-right: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--body); text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 6px 0 -1px var(--magenta-deep), 0 16px 24px -12px rgb(168 25 93 / 60%); }
.btn-primary:hover { background: #b81f68; color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 -1px var(--magenta-deep); }
.btn-quiet { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px 20px; }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--indigo); color: var(--indigo); }

/* ---- Facts strip ------------------------------------------------------- */

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(1180px, 100% - 40px); margin: -44px auto 0; position: relative; z-index: 2;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts li { padding: 22px 24px; border-left: 1px solid #e7eaf1; }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 700 1.35rem/1.1 var(--display); color: var(--indigo); }
.facts span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---- Bands ------------------------------------------------------------- */

.band { padding: clamp(64px, 9vw, 112px) 0; }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; max-width: 18em; }
.band-intro { margin: 16px 0 0; max-width: 40rem; color: var(--ink-soft); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.prose h2 { margin-bottom: 18px; }
.prose > p { color: var(--ink-soft); }

.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-white { background: #fff; }
.pair { display: grid; grid-template-columns: 1.33fr 1fr; gap: 24px; margin-top: clamp(28px, 5vw, 56px); }
.pair .shot { aspect-ratio: auto; }
.pair .shot:first-child img { aspect-ratio: 4 / 3; }
.pair .shot-white img { aspect-ratio: 1 / 1; object-fit: contain; }

.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lcd) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.4 3 3 6-6.6' fill='none' stroke='%232f4a1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.band-dark { background: var(--ink); color: #e8eaf4; }
.band-dark h2 { color: #fff; }
.band-dark .eyebrow { color: #f29cc4; }
.band-dark .band-intro { color: #b5b9d6; }

.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; align-items: start; }
.clips figure { margin: 0; }
.clips video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: #0d0c26; }
.clips figcaption { margin-top: 12px; color: #b5b9d6; font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; counter-reset: step; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.steps p { margin: 0; color: var(--ink-soft); }
.step-no {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--magenta); color: #fff; font: 700 1.15rem/1 var(--display);
  box-shadow: 0 4px 0 -1px var(--magenta-deep);
}

/* ---- Order builder ----------------------------------------------------- */

.band-order { background: var(--mist); }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 36px; align-items: start; }

.picker { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.picker-tools { display: grid; gap: 14px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; padding: 15px 16px 15px 46px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--paper);
}
.search input::placeholder { color: #7b80a0; }
.search input:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgb(43 42 143 / 12%); }

.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters button {
  min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--ink-soft); font: 600 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.letters button:hover { background: var(--paper); color: var(--ink); }
.letters button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.letters button:disabled { opacity: 0.3; cursor: default; }

.picker-status { margin: 16px 2px 8px; color: var(--ink-soft); font-size: 0.93rem; min-height: 1.5em; }

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.game { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid #e9ecf3; min-width: 0; }
.game img { flex: none; width: 52px; height: 52px; border-radius: 7px; background: var(--paper); }
.game-name { flex: 1; min-width: 0; }
.game-name b { display: block; font-weight: 600; font-size: 0.97rem; line-height: 1.25; overflow-wrap: anywhere; }
.game-name small { color: var(--ink-soft); font-size: 0.8rem; }
.game.is-picked { background: linear-gradient(90deg, rgb(223 230 194 / 55%), transparent 85%); }

.add {
  flex: none; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--indigo); font-weight: 600; font-size: 0.9rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.add:hover { background: var(--indigo); color: #fff; box-shadow: none; }

.stepper { flex: none; display: inline-flex; align-items: center; border-radius: 999px; background: var(--indigo); color: #fff; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.stepper button:hover:not(:disabled) { background: rgb(255 255 255 / 18%); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.picker #more { margin: 18px auto 0; display: flex; }
.picker #more[hidden] { display: none; }
.picker-missing { margin: 20px 2px 0; color: var(--ink-soft); font-size: 0.93rem; }
.picker-none { grid-column: 1 / -1; padding: 28px 8px; text-align: center; color: var(--ink-soft); }

.basket {
  position: sticky; top: 88px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
  max-height: calc(100vh - 108px); overflow: auto;
}
.basket h3 { font-size: 1.45rem; margin-bottom: 14px; }
.basket-empty { color: var(--ink-soft); margin: 0 0 16px; }
.basket-items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #e9ecf3; }
.basket-items img { flex: none; width: 44px; height: 44px; border-radius: 6px; }
.basket-items .game-name b { font-size: 0.93rem; }
.basket-items .qty { flex: none; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.remove { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 20px; line-height: 1; }
.remove:hover { background: #fbeef4; color: var(--magenta); }

.totals { margin: 6px 0 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; color: var(--ink-soft); }
.totals div[hidden] { display: none; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .totals-grand { margin-top: 8px; color: var(--ink); font: 700 1.3rem/1.2 var(--display); }
.basket-nudge { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--lcd); color: var(--lcd-ink); font-size: 0.9rem; }
.totals[aria-busy="true"] dd { opacity: 0.45; }
#discount-row { color: var(--lcd-ink); }

.code { margin-top: 16px; }
.code label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.code-row { display: flex; gap: 8px; }
.code input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--paper); text-transform: uppercase; letter-spacing: 0.04em;
}
.code input:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgb(43 42 143 / 12%); }
.code .btn { padding: 10px 16px; }
.code .btn:disabled { opacity: 0.5; cursor: default; }
.code-msg { margin: 8px 0 0; color: var(--magenta); font-size: 0.9rem; }
.code-msg:empty { display: none; }
.code-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--lcd); color: var(--lcd-ink); font-size: 0.92rem;
}
.code-applied[hidden] { display: none; }
.code-applied button { border: 0; background: transparent; color: var(--lcd-ink); text-decoration: underline; cursor: pointer; font-size: 0.88rem; }

.pay { margin-top: 18px; min-height: 48px; }
.pay-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); color: var(--ink-soft); font-size: 0.92rem; }
.pay-note:empty { display: none; }
.basket-error { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--magenta); background: #fbeef4; font-size: 0.93rem; }
.basket-small { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.85rem; }
#thanks-view:focus { outline: none; }
#thanks-view h3 { margin-bottom: 12px; }
#thanks-view .btn { margin-top: 20px; }

/* ---- FAQ --------------------------------------------------------------- */

#faq h2 { margin-bottom: 26px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; font: 600 1.12rem/1.3 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--body); color: var(--magenta); transition: transform 0.15s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 2px 22px; color: var(--ink-soft); max-width: 38rem; }

/* ---- Footer ------------------------------------------------------------ */

.foot { background: var(--indigo-deep); color: #c9cdea; padding: 56px 0 96px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr auto; gap: 28px 48px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: start; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.brand-foot { color: #fff; margin-bottom: 10px; }
.brand-foot .brand-name em { color: #f29cc4; }
.brand-foot .brand-dots i { background: #f29cc4; }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 14%); color: #9ea3cc; font-size: 0.85rem; max-width: 60rem; }

/* ---- Mobile basket dock ------------------------------------------------ */

.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 14px 32px -10px rgb(23 22 58 / 60%);
}
.dock:hover { color: #fff; }
.dock b { color: #f29cc4; }
.dock[hidden] { display: none; }

/* ---- Plain text pages (terms, privacy, returns, contact) ---------------- */

.page { padding: clamp(48px, 7vw, 88px) 0; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--indigo); margin-bottom: 24px; }
.page h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.page p, .page li { color: var(--ink-soft); }
.page ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.todo { padding: 12px 14px; border-left: 3px solid var(--magenta); background: #fbeef4; color: var(--ink); border-radius: 0 8px 8px 0; }

/* ---- Smaller screens --------------------------------------------------- */

@media (max-width: 1020px) {
  .builder { grid-template-columns: 1fr; }
  .basket { position: static; max-height: none; }
  .top-nav { display: none; }
  .basket-pill { margin-left: auto; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero-inner { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-art { position: static; display: block; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-art img { aspect-ratio: 5 / 4; object-position: 88% 50%; }
  .hero-copy { padding-block: 44px 4px; }
  .hero-copy > * { max-width: 34rem; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid #e7eaf1; }
  .split, .pair, .steps { grid-template-columns: 1fr; }
  .clips { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px; }
  .clips figure { scroll-snap-align: center; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .games { grid-template-columns: 1fr; }
  .brand-name { font-size: clamp(15px, 4.8vw, 19px); }
  /* Keep "Basket" for screen readers; the icon and count carry it visually. */
  #basket-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #basket-pill { padding-left: 12px; }
  .picker, .basket { padding: 16px; }
  .letters button { min-width: 28px; }
}

@media (min-width: 1021px) {
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
