/* ==========================================================================
   Capybara Studio — site styles
   Plain CSS, no build step. Colours borrowed from the logo and from Operator.
   ========================================================================== */

:root {
  --red: #e8202a;
  --red-dark: #c3141d;
  --ink: #2d2026;
  --ink-soft: #5a4a51;
  --muted: #8a7a80;
  --cream: #fbf6ee;
  --paper: #ffffff;
  --sand: #f3eadb;
  --line: #e7dccb;
  --yellow: #ffc83d;
  --yellow-dark: #f2b316;
  --orange: #ff8a3d;
  --sky: #74bbe8;
  --night: #3a2a34;

  /* Operator floor-number colours */
  --f0: #ef5350;
  --f1: #f59a2f;
  --f2: #f2c12e;
  --f3: #3fb37f;
  --f4: #36a6d6;
  --f5: #4570e0;
  --f6: #8c5bd8;
  --f7: #e05ba8;

  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 2px 0 rgba(45, 32, 38, .06), 0 14px 34px -14px rgba(45, 32, 38, .28);
  --shadow-pop: 0 6px 0 var(--ink);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow);
  --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--bg); color: var(--fg);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--light { --bg: #fff; }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.35); }
.btn--ghost:hover { box-shadow: 0 7px 0 rgba(0,0,0,.35); }
.btn--sm { font-size: .95rem; padding: .55em 1.1em; box-shadow: 0 3px 0 var(--ink); border-width: 2.5px; }
.btn--sm:hover { box-shadow: 0 5px 0 var(--ink); }
@media (max-width: 480px) { .btn { white-space: normal; text-align: left; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(45,32,38,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 500; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  transition: background .15s;
}
.nav-links a:not(.btn):hover { background: var(--sand); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-links a[aria-current="page"] .floor-btn { background: #fff; color: var(--ink); }
.floor-btn {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: .8rem; font-weight: 700; color: #fff;
  background: var(--c, var(--ink));
}
.nav-links .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: #fff; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .brand img { height: 38px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 22px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(45,32,38,.4);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 1.15rem; }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: #f6ecef; }
.section--night .lead, .section--night .muted { color: #cdbcc3; }
.section--sky { background: linear-gradient(180deg, #8ccaf0 0%, #b9e0f6 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 14px;
}
.section--night .eyebrow { color: #e2d3d9; }
.eyebrow .floor-num { font-size: 1.6rem; }

/* Big colourful outlined floor number, like the ones in Operator */
.floor-num {
  font-family: var(--display); font-weight: 700; line-height: 1;
  color: var(--c, var(--f0));
  -webkit-text-stroke: 1.5px rgba(45,32,38,.55);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(45,32,38,.25);
}

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { max-width: 760px; }

/* ---------- Hero (home + game page) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: grid; align-items: center;
  color: #fff; overflow: hidden;
  background: #2b2a3a;
}
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 20, 32, .88) 0%, rgba(28, 20, 32, .55) 45%, rgba(28, 20, 32, .1) 100%),
    linear-gradient(0deg, rgba(28, 20, 32, .7) 0%, rgba(28, 20, 32, 0) 35%),
    linear-gradient(180deg, rgba(28, 20, 32, .75) 0%, rgba(28, 20, 32, 0) 28%);
}
.hero__content { padding: 90px 0 110px; max-width: 700px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero__kicker img { width: 26px; height: 26px; }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.2rem, 10.5vw, 7rem);
  letter-spacing: .02em; line-height: .95; white-space: nowrap;
  margin: 0 0 18px;
  text-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.hero__title span { display: inline-block; animation: drop .7s cubic-bezier(.3,1.5,.5,1) both; }
.hero__tagline { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; color: var(--yellow); margin-bottom: 14px; }
.hero__sub { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 32px; }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } }

/* ---------- Passengers (little shapes with eyes) ---------- */
.pax {
  --size: 34px;
  position: relative; display: inline-block;
  width: var(--size); height: var(--size);
  background: none; border: 0; padding: 0; cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.37s);
  transition: transform .2s;
}
.pax::before {
  content: attr(data-to);
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1;
  color: var(--dest, var(--f4));
  -webkit-text-stroke: 1.2px rgba(45,32,38,.7); paint-order: stroke fill;
}
.pax i {
  position: absolute; inset: 0;
  background: var(--fill, var(--f0));
  clip-path: var(--shape);
  filter: drop-shadow(0 0 0 #000);
}
.pax i::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 44%; height: 20%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 22% 50%, #2d2026 0 calc(var(--size) * .075), transparent calc(var(--size) * .075 + 1px)),
    radial-gradient(circle at 78% 50%, #2d2026 0 calc(var(--size) * .075), transparent calc(var(--size) * .075 + 1px));
  animation: blink 5s infinite;
  animation-delay: calc(var(--i, 0) * -.9s);
}
.pax--tri  i { --shape: polygon(50% 4%, 98% 96%, 2% 96%); --fill: var(--f3); }
.pax--tri  i::after { top: 70%; width: 38%; }
.pax--sq   i { --shape: inset(8% round 18%); --fill: var(--f1); }
.pax--dia  i { --shape: polygon(50% 2%, 98% 50%, 50% 98%, 2% 50%); --fill: var(--f7); }
.pax--dia  i::after { top: 52%; width: 36%; }
.pax--circ i { --shape: circle(46% at 50% 50%); --fill: var(--f5); }
.pax--circ i::after { top: 50%; }
.pax--pent i { --shape: polygon(50% 3%, 97% 38%, 79% 96%, 21% 96%, 3% 38%); --fill: var(--f6); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: translate(-50%, -50%) scaleY(1); } 48% { transform: translate(-50%, -50%) scaleY(.1); } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  margin-top: clamp(36px, 6vw, 64px); position: relative; z-index: 2;
}
.stat { padding: 22px 24px; text-align: center; }
.stat + .stat { border-left: 2px dashed var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; }
.stat span { color: var(--ink-soft); font-weight: 700; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 2px dashed var(--line); }
  .stat { padding: 16px; }
}

/* ---------- Feature rows ---------- */
.features { display: grid; gap: clamp(56px, 8vw, 96px); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature > * { min-width: 0; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media {
  border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: var(--shadow-pop);
  transform: rotate(var(--tilt, -1.2deg));
  transition: transform .35s cubic-bezier(.3,1.5,.5,1);
  background: var(--sand);
}
.feature:nth-child(even) .feature__media { --tilt: 1.2deg; }
.feature__media:hover { transform: rotate(0) scale(1.015); }
.feature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.feature__pax { --size: 44px; display: block; margin-bottom: 14px; cursor: default; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* ---------- City ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: #fff; padding: 18px 0; border-block: 4px solid var(--yellow); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); white-space: nowrap; }
.ticker__item .floor-num { font-size: 1.15em; -webkit-text-stroke-color: rgba(255,255,255,.35); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 2px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c, var(--ink)); color: #fff; margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.section--night .card { background: #4a3742; border-color: #5c4652; color: #f6ecef; box-shadow: none; }
.section--night .card p { color: #d8c8cf; }

/* ---------- Studio teaser (home) ---------- */
.studio-teaser { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.capy-badge {
  width: clamp(160px, 22vw, 240px); aspect-ratio: 1; border-radius: 50%;
  position: relative; cursor: pointer; border: 0; padding: 0; background: none;
}
.capy-badge img { width: 100%; height: 100%; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.capy-badge:hover img { transform: rotate(-8deg) scale(1.04); }
.capy-badge.is-petted img { animation: wiggle .5s ease; }
.capy-badge::after {
  content: "pet me"; position: absolute; right: -6px; top: 6px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
  padding: 2px 10px; border-radius: 999px; transform: rotate(10deg);
}
@keyframes wiggle { 25% { transform: rotate(-10deg) scale(1.05); } 50% { transform: rotate(8deg) scale(1.08); } 75% { transform: rotate(-4deg); } }
@media (max-width: 700px) { .studio-teaser { grid-template-columns: 1fr; justify-items: center; text-align: center; } .studio-teaser .btn-row { justify-content: center; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95;
  transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 16px;
  font-weight: 700; max-width: min(92vw, 460px); text-align: center;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast b { color: var(--yellow); }

/* ---------- CTA banner ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--red); color: #fff;
  border: 3px solid var(--ink); border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-pop);
  padding: clamp(36px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta h2 { margin-bottom: .25em; }
.cta p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin: 0; max-width: 560px; }
.cta::before {
  content: ""; position: absolute; right: -60px; bottom: -90px; width: 300px; height: 300px;
  background: url("../img/mark.png") center / contain no-repeat; opacity: .12; transform: rotate(-12deg);
  pointer-events: none;
}
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Game page ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { margin-bottom: .2em; }

.trailer {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: var(--shadow-pop); background: #000;
}
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

.game-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .game-layout { grid-template-columns: 1fr; } }
.factbox {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 26px; position: sticky; top: 100px;
}
.factbox h3 { font-size: 1.2rem; }
.factbox dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .98rem; }
.factbox dt { color: var(--muted); font-weight: 700; }
.factbox dd { margin: 0; font-weight: 700; }
.factbox .btn { width: 100%; justify-content: center; }
.factbox .btn + .btn { margin-top: 14px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 40px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--f3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* City grid */
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .cities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cities { grid-template-columns: 1fr; } }
.city {
  background: #fff; border-radius: var(--radius-sm); border: 2px solid var(--line);
  padding: 18px 18px 16px; display: flex; align-items: center; gap: 14px;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), border-color .2s;
}
.city:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--c); }
.city .floor-num { font-size: 2.2rem; width: 34px; text-align: center; }
.city--more { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; justify-content: center; }
.city--more .floor-num { width: auto; -webkit-text-stroke-color: transparent; }
.city--more span { color: #cdbcc3; }
.city b { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.city span { font-size: .9rem; color: var(--muted); font-weight: 700; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery button {
  padding: 0; border: 3px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  background: var(--sand); box-shadow: 0 4px 0 var(--ink);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
  position: relative;
}
.gallery button:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(45,32,38,.85); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 3px 10px; border-radius: 999px;
}

/* Power-up draft (interactive) */
.draft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
@media (max-width: 820px) { .draft { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.pu {
  background: #f8f3ee; color: var(--ink); border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .3s, outline-color .2s;
  outline: 4px solid transparent; outline-offset: 3px;
}
.pu.is-flipping { transform: rotateY(90deg) scale(.95); opacity: .4; }
.pu.is-picked { outline-color: var(--yellow); transform: translateY(-8px); }
.pu.is-dimmed { opacity: .45; transform: scale(.97); }
.pu__top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pu__icon { width: 54px; height: 54px; border-radius: 15px; background: #43302f; color: #fff; display: grid; place-items: center; flex: none; }
.pu__icon svg { width: 28px; height: 28px; }
.pu__tag { font-weight: 800; font-size: .8rem; letter-spacing: .06em; color: #8b7d79; text-transform: uppercase; }
.pu__tag.rare { color: var(--f4); }
.pu h3 { font-family: var(--body); font-weight: 800; font-size: 1.5rem; margin: 0; }
.pu p { font-weight: 700; color: #5f514e; margin: 0; flex: 1; }
.pu .pu__level { font-weight: 800; font-size: .8rem; letter-spacing: .05em; color: #8b7d79; text-transform: uppercase; margin: 6px 0 14px; }
.pu .btn { justify-content: center; border: 0; box-shadow: 0 5px 0 var(--yellow-dark); }
.pu .btn:hover { box-shadow: 0 7px 0 var(--yellow-dark); }
.pu .btn:active { box-shadow: 0 1px 0 var(--yellow-dark); }
.draft-foot { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.draft-status { font-family: var(--display); font-weight: 500; font-size: 1.15rem; min-height: 1.6em; text-align: center; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }
.polaroid-stack { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; margin-inline: auto; }
.polaroid {
  position: absolute; width: 74%; background: #fff; padding: 10px 10px 40px; border-radius: 6px;
  box-shadow: 0 18px 40px -16px rgba(45,32,38,.45);
  transition: transform .4s cubic-bezier(.3,1.5,.5,1);
}
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--display); font-weight: 500; color: var(--ink-soft); }
.polaroid:nth-child(1) { left: 0; top: 4%; transform: rotate(-7deg); }
.polaroid:nth-child(2) { right: 0; top: 22%; transform: rotate(5deg); }
.polaroid:nth-child(3) { left: 10%; bottom: 0; transform: rotate(-2deg); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 3; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px; background: #e9e0b5; }
.timeline li { position: relative; padding: 0 0 34px 72px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .floor-num {
  position: absolute; left: 0; top: -6px; width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--cream); border-radius: 50%;
}
.timeline h3 { margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--ink-soft); }

.capy-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.capy-fact { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; }
.capy-fact b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--yellow); margin-bottom: 6px; font-weight: 600; }
.capy-fact p { margin: 0; color: #d8c8cf; }

/* ---------- Press page ---------- */
.press-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .press-grid { grid-template-columns: 1fr; } }
.press-grid .factbox { position: sticky; top: 100px; }
@media (max-width: 880px) { .press-grid .factbox, .factbox { position: static; } }
.press-block { margin-bottom: 56px; }
.press-block h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); padding-bottom: 12px; border-bottom: 3px dashed var(--line); }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.logo-tile { border-radius: var(--radius-sm); border: 2px solid var(--line); overflow: hidden; background: #fff; }
.logo-tile__img { height: 150px; display: grid; place-items: center; padding: 20px; }
.logo-tile__img img { max-height: 100%; width: auto; }
.logo-tile__img--dark { background: var(--night); }
.logo-tile__img--checker { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.logo-tile a { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 700; text-decoration: none; border-top: 2px solid var(--line); }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dl-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; border: 2px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color .2s, transform .2s;
}
.dl-list a:hover { border-color: var(--ink); transform: translateX(4px); }
.dl-list small { color: var(--muted); font-weight: 700; white-space: nowrap; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .floor-display {
  display: inline-flex; align-items: center; gap: 18px;
  background: #1d1419; color: #ff5b4a; font-family: "Courier New", monospace; font-weight: 700;
  font-size: clamp(3rem, 12vw, 6rem); padding: 10px 34px; border-radius: 18px; border: 5px solid #6b5560;
  text-shadow: 0 0 18px rgba(255, 91, 74, .7); margin-bottom: 28px; letter-spacing: .08em;
}
.lost .floor-display .arrow { font-size: .5em; animation: updown 1.2s ease-in-out infinite; }
@keyframes updown { 50% { transform: translateY(-10px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8c8cf; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { font-family: var(--display); color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid #4a3a42; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: #a8969e; }
.footer-bottom .made { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Scroll elevator (desktop only) ---------- */
.shaft {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column-reverse; gap: 6px; align-items: center;
  background: rgba(255,255,255,.85); border: 2px solid var(--line);
  padding: 10px 6px; border-radius: 999px;
  backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
@media (min-width: 1180px) { .shaft { display: flex; } }
.shaft a {
  position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--c); background: #fff; border: 2px solid var(--line); transition: all .2s;
}
.shaft a:hover { border-color: var(--c); }
.shaft a.is-here { background: var(--c); border-color: var(--c); color: #fff; transform: scale(1.15); box-shadow: 0 0 0 4px rgba(255, 200, 61, .5); }
.shaft a span {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 8px; font-size: .82rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.shaft a:hover span, .shaft a.is-here.just-arrived span { opacity: 1; transform: translate(0, -50%); }

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(20, 12, 18, .88); padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__body { width: min(1100px, 100%); position: relative; transform: scale(.94); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.modal.is-open .modal__body { transform: none; }
.modal__body video, .modal__body img { width: 100%; border-radius: 14px; background: #000; max-height: 82vh; object-fit: contain; }
.modal__close, .modal__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid #fff;
  background: rgba(0,0,0,.4); color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.modal__close { top: -60px; right: 0; }
.modal__nav { top: 50%; transform: translateY(-50%); }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__caption { color: #fff; text-align: center; margin-top: 12px; font-weight: 700; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Upcoming games (home) + Tram City page
   ========================================================================== */
:root {
  --tram-pink: #e84079;
  --tram-blue: #3d7ccb;
  --tram-green: #34a865;
  --tram-orange: #f2a33a;
  --tram-map: #f1ece1;
  --tram-street: #fbf9f4;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  background: #fff4d6; color: #8a5a00; border: 2px solid var(--yellow);
  padding: 4px 12px; border-radius: 999px;
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, .6); animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 138, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); } }

/* Home: upcoming game card */
.upcoming {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  background: #fff; border: 3px solid var(--ink); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-pop);
}
.upcoming > * { min-width: 0; }
.upcoming__media { position: relative; background: var(--tram-map); min-height: 320px; }
.upcoming__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upcoming__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.upcoming__title { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.upcoming__title img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.upcoming__title h3 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; }
.upcoming__body .btn-row { margin-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.tags li { font-size: .85rem; font-weight: 800; color: var(--ink-soft); background: var(--sand); padding: 3px 11px; border-radius: 999px; }
@media (max-width: 820px) { .upcoming { grid-template-columns: 1fr; } .upcoming__media { min-height: 0; aspect-ratio: 16 / 9; } }

/* Tram City hero: a little map with lines that draw themselves */
.tram-hero { position: relative; overflow: hidden; background: var(--tram-map); padding: clamp(56px, 8vw, 100px) 0; }
.tram-hero__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.tram-hero__map .street { stroke: var(--tram-street); stroke-width: 18; fill: none; stroke-linecap: round; }
.tram-hero__map .river { stroke: #9cc3e6; stroke-width: 46; fill: none; stroke-linecap: round; opacity: .7; }
.tram-hero__map .park { fill: #cfe3bf; }
.tram-hero__map .line { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.6,0,.3,1) forwards; }
.tram-hero__map .stop { fill: #fff; stroke-width: 5; opacity: 0; animation: appear .4s ease forwards; }
.tram-hero__map .tram { fill: #fff; stroke-width: 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.tram-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(241,236,225,.97) 0%, rgba(241,236,225,.9) 40%, rgba(241,236,225,0) 75%); pointer-events: none; }
.tram-hero .wrap { position: relative; z-index: 1; }
.tram-hero__content { max-width: 620px; }
.tram-hero__title { display: flex; align-items: center; gap: 20px; margin: 18px 0 14px; }
.tram-hero__title img { width: clamp(72px, 10vw, 104px); height: auto; border-radius: 22px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); transform: rotate(-4deg); }
.tram-hero__title h1 { margin: 0; }
@media (max-width: 760px) { .tram-hero::after { background: rgba(241,236,225,.88); } }

.btn--tram { --bg: var(--tram-pink); --fg: #fff; }

/* Campaign cards */
.campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.campaign {
  position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px 28px; overflow: hidden;
  transition: transform .25s cubic-bezier(.3,1.5,.5,1), border-color .2s;
}
.campaign::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); }
.campaign:hover { transform: translateY(-4px); border-color: var(--c); }
.campaign__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.campaign h3 { margin: 0; font-size: 1.4rem; }
.campaign__num { font-family: var(--display); font-weight: 700; color: var(--c); font-size: 1rem; white-space: nowrap; }
.difficulty { display: inline-flex; gap: 4px; align-items: center; font-size: .82rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.difficulty i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.difficulty i.on { background: var(--c); }
.campaign__twist { font-weight: 700; margin-bottom: 10px; }
.campaign__cities { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Achievements */
.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.achievement { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px; }
.achievement__badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, var(--tram-pink)); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
}
.achievement__badge svg { width: 22px; height: 22px; }
.achievement b { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.achievement div span { color: #cdbcc3; font-size: .93rem; line-height: 1.45; display: block; margin-top: 3px; }

.attribution { font-size: .9rem; color: var(--muted); margin-top: 18px; }
