/* Mash Up Mania: the game's own look. Anton for anything shouted, Barlow
   for reading, the menus' slanted gold chips, and the golden-hour sky. */

@font-face { font-family: "Anton"; src: url("fonts/anton.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0d0d17;        /* the game's menu ink */
  --night: #1c1230;      /* deep dusk */
  --dusk: #2b1b4a;       /* panels */
  --plum: #5b2a6e;       /* sky, high up */
  --ember: #ff8a3d;      /* sky, at the horizon */
  --gold: #ffcc38;       /* the logo */
  --cream: #fff4e0;      /* text */
  --muted: #cfc0d9;
  --skew: -12deg;
  --wrap: 1180px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 600 1.125rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h2 {
  font: 400 clamp(2.6rem, 6vw, 4.6rem)/0.95 var(--display);
  color: var(--gold);
  margin: 0 0 0.3em;
  text-shadow: 0 4px 0 var(--ink), 0 8px 24px rgba(0, 0, 0, 0.35);
}
h3 { font: 400 1.6rem/1.05 var(--display); margin: 0 0 0.35em; letter-spacing: 0.01em; }
section { padding: clamp(64px, 9vw, 120px) 24px; }
section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
/* Notes and paragraphs sit under the headings, at a readable width. */
.section-note, .press p { color: var(--muted); max-width: 62ch; margin: 0 auto 36px max(0px, calc((100% - var(--wrap)) / 2)); }

/* The menus' slanted gold chip, used for every wishlist link. */
.chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 30px 12px 34px;
  background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, #f0a51c);
  color: var(--ink); text-decoration: none;
  font: 400 1.6rem/1 var(--display);
  transform: skewX(var(--skew));
  border-left: 8px solid #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chip > * { transform: skewX(calc(var(--skew) * -1)); }
.chip img { height: 1.25em; width: auto; }
.chip:hover { transform: skewX(var(--skew)) translateY(-2px); box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 18px 34px rgba(0, 0, 0, 0.35); }
.chip:active { transform: skewX(var(--skew)) translateY(3px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
/* Before the store page is public: the same chip, not a link. */
.chip-soon, .chip-soon:hover, .chip-soon:active { cursor: default; transform: skewX(var(--skew)); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.3); }
.chip-small { font-size: 1.15rem; padding: 9px 20px 9px 22px; border-left-width: 5px; }
.chip-big { font-size: clamp(1.8rem, 4vw, 2.8rem); padding: 16px 40px 16px 46px; }

.ghost {
  display: inline-block; padding: 10px 22px;
  color: var(--cream); text-decoration: none;
  font: 400 1.35rem/1.1 var(--display);
  border: 2px solid rgba(255, 244, 224, 0.6);
  transform: skewX(var(--skew));
}
.ghost:hover { background: rgba(255, 244, 224, 0.12); border-color: var(--cream); }

/* The bar along the top. */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 24px;
  background: linear-gradient(180deg, rgba(13, 13, 23, 0.85), rgba(13, 13, 23, 0));
}
.bar { transition: background-color 0.2s ease; }
.bar.scrolled { background: rgba(28, 18, 48, 0.94); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.bar-logo { visibility: hidden; opacity: 0; transition: opacity 0.2s ease; }
.bar.scrolled .bar-logo { visibility: visible; opacity: 1; }
.bar-logo img { width: 112px; height: auto; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--cream); text-decoration: none; font: 400 1.2rem/1 var(--display); letter-spacing: 0.02em; }
.bar nav a:hover { color: var(--gold); }

/* The top of the page: a real match, playing. */
.hero { position: relative; min-height: 100svh; padding: 0; display: grid; align-items: end; overflow: hidden; }
.hero > .hero-video, .hero > .hero-shade { max-width: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 18, 48, 0.88) 0%, rgba(28, 18, 48, 0.55) 38%, rgba(28, 18, 48, 0) 70%),
    linear-gradient(0deg, var(--night) 0%, rgba(28, 18, 48, 0) 30%);
}
.hero-body { position: relative; padding: 0 24px 12vh; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { margin: 0 0 18px -1%; width: min(560px, 82vw); animation: slam 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.hero h1 img { width: 100%; height: auto; }
.hero-line { max-width: 44ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 0 0 30px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }
.hero-when { color: var(--muted); margin: 26px 0 0; font-size: 1rem; }
.hero-pause {
  position: absolute; right: 18px; bottom: 18px;
  background: rgba(13, 13, 23, 0.6); color: var(--cream); border: 1px solid rgba(255, 244, 224, 0.35);
  font: 600 0.85rem var(--body); padding: 6px 12px; cursor: pointer;
}
@keyframes slam {
  0% { transform: scale(1.6) rotate(-4deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; }
}

/* The numbers, said once. */
.intro { padding-top: 40px; padding-bottom: 40px; }
.intro-big { font: 400 clamp(2.6rem, 7vw, 6.2rem)/0.95 var(--display); max-width: 14ch; margin: 0 auto 28px max(0px, calc((100% - var(--wrap)) / 2)); color: var(--cream); }
.intro-small { color: var(--muted); max-width: 58ch; margin: 0 auto 0 max(0px, calc((100% - var(--wrap)) / 2)); }

/* The trailer, in a tilted frame like the menus' panels. */
.trailer { background: linear-gradient(180deg, var(--night), var(--dusk)); }
.frame {
  border: 6px solid var(--gold);
  box-shadow: 14px 14px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.4);
  background: var(--ink);
  transform: rotate(-0.6deg);
}
.frame video { width: 100%; aspect-ratio: 16 / 9; }

/* Character select: the thing to remember. Sunset behind it, like the lobby. */
.select {
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(255, 138, 61, 0.55), rgba(255, 138, 61, 0) 60%),
    linear-gradient(180deg, var(--dusk), var(--plum) 70%, #8c3d6d);
}
.select-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 34px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.tile {
  position: relative; aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, var(--tint, #555), color-mix(in srgb, var(--tint, #555) 45%, #000));
  transition: transform 0.08s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span {
  position: absolute; inset: auto 0 0 0; padding: 14px 2px 4px;
  font: 400 0.95rem/1 var(--display); color: #fff; text-align: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
.tile[aria-selected="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0, 0, 0, 0.4); transform: scale(1.07); z-index: 1; }
.tile:hover { transform: scale(1.04); }
.tile[aria-selected="true"]:hover { transform: scale(1.07); }

.card {
  position: sticky; top: 96px;
  background: linear-gradient(180deg, rgba(36, 22, 58, 0.96), rgba(18, 12, 30, 0.96));
  border-left: 6px solid var(--gold);
  padding: 26px 28px 28px;
  box-shadow: 12px 12px 0 rgba(13, 13, 23, 0.6);
}
.card-title { font: 400 1rem/1 var(--display); color: var(--gold); margin: 0 0 6px; letter-spacing: 0.02em; }
.card-name { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 0.98; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 4px solid var(--tint, var(--gold)); }
.card-blurb { margin: 0 0 10px; }
.card-trait { margin: 0 0 16px; color: #ffd98a; }
.card-special { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 400 1.35rem/1 var(--display); color: #9fe3ff; }
.tag { font: 400 0.85rem/1 var(--display); color: var(--ink); background: linear-gradient(180deg, #5cc6ff, #2a74d9); padding: 5px 10px; transform: skewX(var(--skew)); }
.stats { display: grid; grid-template-columns: 88px 1fr; gap: 8px 14px; margin: 0; align-items: center; }
.stats dt { font: 400 0.95rem/1 var(--display); color: var(--muted); }
.stats dd { margin: 0; height: 12px; background: rgba(0, 0, 0, 0.45); border-radius: 6px; overflow: hidden; }
.stats dd i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, #ffd960, var(--ember)); border-radius: 6px; transition: width 0.3s ease; }

/* Modes: phone-shaped clips in a row. */
.modes { background: linear-gradient(180deg, #8c3d6d, var(--dusk) 30%, var(--night)); }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.clip { scroll-snap-align: start; margin: 0; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 3px solid rgba(255, 255, 255, 0.15); background: var(--ink); }
.clip:hover video, .clip:focus-within video { border-color: var(--gold); }
.clip figcaption { padding: 10px 2px 0; }
.clip strong { display: block; font: 400 1.4rem/1 var(--display); color: var(--gold); margin-bottom: 4px; }
.clip span { font-size: 0.95rem; color: var(--muted); line-height: 1.35; }
.mode-list { list-style: none; padding: 0; margin-top: 40px; columns: 2 320px; column-gap: 48px; }
.mode-list li { break-inside: avoid; padding: 10px 0; border-top: 1px solid rgba(255, 244, 224, 0.12); }
.mode-list b { font: 400 1.25rem/1.1 var(--display); color: var(--cream); display: block; }
.mode-list span { color: var(--muted); font-size: 1rem; }

/* Stages: a mosaic, one big. */
.stages { background: var(--night); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.shot { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 10px; bottom: 8px; font: 400 1.05rem/1 var(--display); color: #fff; text-shadow: 0 2px 6px #000; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot.big span { font-size: 1.6rem; }

.details { background: linear-gradient(180deg, var(--night), var(--dusk)); }
.details-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 60px; }
.details-cols h3 { color: var(--gold); }
.details-cols p { margin: 0; color: var(--muted); max-width: 48ch; }

/* The end card, as in the trailer. */
.endcard {
  text-align: center;
  background:
    radial-gradient(90% 80% at 50% 100%, rgba(255, 138, 61, 0.7), rgba(255, 138, 61, 0) 70%),
    linear-gradient(180deg, var(--dusk), var(--plum));
}
.endcard-logo { width: min(440px, 80vw); margin: 0 auto 34px; height: auto; }
.endcard p { color: var(--cream); margin-top: 30px; }

.press { background: var(--night); }

.foot { padding: 50px 24px 60px; text-align: center; background: var(--ink); color: var(--muted); font-size: 0.95rem; }
.foot img { margin: 0 auto 14px; width: 110px; height: auto; }
.foot .legal { font-size: 0.8rem; max-width: 70ch; margin: 12px auto 0; opacity: 0.75; }

.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(13, 13, 23, 0.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; box-shadow: 0 20px 60px #000; }
.lightbox p { font: 400 1.6rem/1 var(--display); color: var(--gold); margin: 14px 0 0; }
.lightbox-close { position: absolute; top: 18px; right: 18px; font: 400 1.2rem var(--display); background: var(--gold); color: var(--ink); border: 0; padding: 8px 16px; cursor: pointer; }

@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .chip-small { margin-left: auto; }
  .select-layout { grid-template-columns: 1fr; }
  .card { position: static; order: -1; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .details-cols { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 10%, rgba(28, 18, 48, 0.55) 60%, rgba(28, 18, 48, 0.2)); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
  .tile span { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  * { transition: none !important; }
}
