/* ============================================================
   Outwitters — outwitters.app  ·  authentic blue "battle of wits" theme
   Palette pulled from the real game UI: deep blue panels, cyan sky,
   warm orange/red logo accents, chunky rounded buttons.
   ============================================================ */

:root {
  --blue-900: #0a2d5e;
  --blue-800: #0f3d7a;
  --blue-700: #1655a3;
  --blue-600: #1b6fd6;
  --blue-500: #2b86e8;
  --blue-400: #4fa3f4;
  --sky:      #9fd4ff;

  --orange:   #f7941e;
  --orange-d: #e2690f;
  --red:      #d6372b;
  --yellow:   #ffd23f;

  --scally:   #ffc933;  /* yellow fish-folk (matches the yellow glow of their avatar) */
  --feedback: #4aa8ff;  /* blue robots (matches the blue glow of their avatar) */
  --veggie:   #57c25a;  /* green vegetation*/
  --adorable: #ff8fc3;  /* pink critters   */

  --ink:      #0a2244;
  --panel:    rgba(255,255,255,0.08);
  --panel-br: rgba(255,255,255,0.16);

  --text:     #eaf4ff;
  --text-dim: #a9c6e8;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(3, 20, 46, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: #0c356e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fixed gradient + bubble layer behind everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% -10%, #3a93ea 0%, transparent 45%),
    radial-gradient(circle at 90% 8%, #2b86e8 0%, transparent 40%),
    linear-gradient(180deg, #1b6fd6 0%, #124a97 40%, #0c356e 100%);
}

/* animated floating bubbles layer */
#bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.22), rgba(255,255,255,0.06) 60%, rgba(255,255,255,0) 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: bubble-rise linear infinite;
  will-change: transform, opacity;
}
@keyframes bubble-rise {
  0%   { transform: translateY(0) translateX(0) scale(0.9); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translateY(-55vh) translateX(var(--drift, 20px)) scale(1); }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(0) scale(1.05); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 0.25; bottom: auto; }
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; color: #fff; }
a { color: var(--sky); text-decoration: none; }
img { max-width: 100%; display: block; }

.accent { color: var(--yellow); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons (chunky game style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  border: none; cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), 0 6px 0 var(--blue-900), 0 10px 16px rgba(0,0,0,0.3);
  transition: transform .08s ease, box-shadow .08s ease;
  text-align: center;
}
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), 0 2px 0 var(--blue-900), 0 4px 8px rgba(0,0,0,0.3); }
.btn--sm { padding: 9px 18px; font-size: 0.95rem; }
.btn--lg { padding: 16px 30px; font-size: 1.1rem; }
.btn--primary {
  background: linear-gradient(180deg, #ffb13f, var(--orange-d));
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), 0 6px 0 #a94a08, 0 10px 16px rgba(0,0,0,0.3);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120,50,0,0.6);
}
.btn--primary:active { box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), 0 2px 0 #a94a08, 0 4px 8px rgba(0,0,0,0.3); }
.btn--ghost {
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.btn--ghost:active { transform: translateY(2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(10,45,94,0.96), rgba(10,45,94,0.82));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(255,255,255,0.12);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; gap: 16px;
}
.brand__logo { height: 42px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.nav__links { display: flex; align-items: center; gap: 22px; }
@media (max-width: 1100px) { .nav__links { gap: 14px; } }
.nav__links a { color: var(--text); font-weight: 700; font-family: var(--font-display); }
.nav__links a:hover { color: var(--yellow); }
.nav__links .btn {
  background: linear-gradient(180deg, #ffb13f, var(--orange-d));
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), 0 4px 0 #a94a08, 0 6px 10px rgba(0,0,0,0.3);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120,50,0,0.6);
}

/* language switcher — flag dropdown */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: #fff; cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 999px; padding: 9px 14px 9px 11px;
  transition: background .15s ease, transform .08s ease;
}
.lang__toggle:hover { background: rgba(255,255,255,0.18); }
.lang__toggle:active { transform: scale(0.97); }
.lang__caret { opacity: 0.8; transition: transform .2s ease; }
.lang__toggle[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }

.lang__flag {
  width: 28px; height: 20px; border-radius: 4px; flex: 0 0 auto;
  object-fit: cover; display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.35);
}

.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  list-style: none; margin: 0; padding: 6px;
  min-width: 172px;
  background: #0f3d7a;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 60;
  animation: langpop .16s ease;
}
@keyframes langpop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lang__menu { animation: none; } }
.lang__menu[hidden] { display: none; }
.lang__menu li {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  color: var(--text);
  padding: 10px 13px; border-radius: 9px; cursor: pointer;
  transition: background .12s ease;
}
.lang__menu li:hover, .lang__menu li:focus { background: rgba(255,255,255,0.12); outline: none; }
.lang__menu li[aria-selected="true"] { background: rgba(255,210,63,0.2); color: var(--yellow); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding: 70px 20px 50px;
}
.badge {
  display: inline-block;
  background: linear-gradient(180deg, #ffe27a, var(--yellow));
  color: #5a3b00; font-weight: 800; font-family: var(--font-display);
  padding: 6px 16px; border-radius: 999px; font-size: 0.85rem;
  letter-spacing: 0.5px; margin-bottom: 18px;
  box-shadow: 0 4px 0 #c99a00, 0 6px 10px rgba(0,0,0,0.25);
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  text-shadow: 0 3px 0 rgba(3,20,46,0.5), 0 0 18px rgba(79,163,244,0.5);
  margin-bottom: 18px;
}
.hero__sub { font-size: 1.15rem; color: var(--text); max-width: 34ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__note { font-size: 0.92rem; color: var(--text-dim); font-weight: 700; }
/* full-width awards band */
.awards {
  position: relative; z-index: 1;
  background: rgba(6, 30, 66, 0.4);
  border-top: 2px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(255,255,255,0.08);
  padding: 22px 20px;
  display: flex; justify-content: center;
}
.awards img {
  width: 100%;
  max-width: 760px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hero__cast {
  line-height: 0;
}
.hero__cast img {
  display: block;
  width: 100%;
  height: auto;
  /* soft glow + shadow that hugs the cutout silhouette */
  filter:
    drop-shadow(0 14px 18px rgba(3, 20, 46, 0.45))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.15));
  animation: cast-float 6s ease-in-out infinite;
}
@keyframes cast-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cast img { animation: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 1;
  overflow: hidden; white-space: nowrap;
  background: rgba(6, 30, 66, 0.55);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 7px 0;
}
.marquee__track { display: inline-flex; gap: 22px; animation: scroll 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; color: var(--sky);
  font-size: 0.82rem; letter-spacing: 0.3px; opacity: 0.85;
}
.marquee__track span:nth-child(even) { color: var(--orange); opacity: 0.7; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; }
.section--alt {
  max-width: none;
  background: rgba(6, 30, 66, 0.4);
  border-top: 2px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; text-shadow: 0 2px 0 rgba(3,20,46,0.4); }
.section__head p { color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Panel helper ---------- */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 2px solid var(--panel-br);
  border-radius: var(--radius);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.15), var(--shadow);
}

/* ---------- How to play ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 2px solid var(--panel-br);
  border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.15), var(--shadow);
}
.step h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.step p { color: var(--text-dim); }
.step__art { height: 120px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.step__art img { height: 120px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35)); transition: transform .2s ease; }
.step:hover .step__art img { transform: translateY(-4px) scale(1.05); }

/* ---------- Races ---------- */
.races { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.race {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 2px solid var(--panel-br);
  border-top: 6px solid var(--race, var(--blue-400));
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.12), var(--shadow);
  transition: transform .15s ease;
}
.race:hover { transform: translateY(-5px); }
.race--scally   { --race: var(--scally); }
.race--feedback { --race: var(--feedback); }
.race--veggie   { --race: var(--veggie); }
.race--adorable { --race: var(--adorable); }
.race h3 { font-size: 1.4rem; color: var(--race); margin-bottom: 2px; }
.race__tag { font-weight: 800; color: var(--text); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; opacity: 0.75; }
.race p { color: var(--text-dim); margin-bottom: 14px; }
.race__special {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  background: color-mix(in srgb, var(--race) 30%, transparent);
  border: 1.5px solid var(--race);
  color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem;
}
.race__art {
  margin: -26px -22px 16px; /* bleed to card edges */
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--race) 45%, transparent), rgba(0,0,0,0.15) 70%);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 12px;
}
.race__art img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35)); }

/* new race teaser */
.newrace {
  margin-top: 26px;
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(120deg, rgba(255,210,63,0.14), rgba(255,255,255,0.05));
  border: 2px dashed rgba(255,210,63,0.6);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
}
.newrace__badge {
  flex: 0 0 auto; width: 150px;
  filter: drop-shadow(0 6px 14px rgba(255,170,0,0.45));
  animation: newrace-glow 3.2s ease-in-out infinite;
}
.newrace__badge img { display: block; width: 100%; height: auto; }
@keyframes newrace-glow {
  0%, 100% { filter: drop-shadow(0 6px 12px rgba(255,170,0,0.35)); }
  50%      { filter: drop-shadow(0 6px 24px rgba(255,200,40,0.8)); }
}
@media (prefers-reduced-motion: reduce) { .newrace__badge { animation: none; } }
.newrace__body h3 { font-size: 1.4rem; color: var(--yellow); margin-bottom: 4px; }
.newrace__tag { font-family: var(--font-display); font-weight: 700; color: #fff !important; font-size: 1.05rem; margin-bottom: 10px !important; }
.newrace__body p { color: var(--text-dim); margin-bottom: 14px; }

/* league */
/* league banners: five side by side, climbing staircase from Tier 1 to Tier 5 */
.ladder {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 14px;
  max-width: 1100px; margin: 0 auto 34px; padding-top: 64px;
}
.ladder img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2); box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.ladder img:nth-child(2) { margin-bottom: 16px; }
.ladder img:nth-child(3) { margin-bottom: 32px; }
.ladder img:nth-child(4) { margin-bottom: 48px; }
.ladder img:nth-child(5) { margin-bottom: 64px; }
.ladder img:hover { transform: translateY(-6px) scale(1.04); }
.season { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.season__card {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 2px solid var(--panel-br); border-top: 5px solid var(--yellow);
  border-radius: 14px; padding: 22px; box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
}
.season__card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.season__card p { color: var(--text-dim); font-size: 0.97rem; }

/* press */
.press { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.press__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 2px solid var(--panel-br); border-radius: 14px; padding: 24px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
  transition: transform .15s ease, border-color .15s ease;
}
.press__card:hover { transform: translateY(-4px); border-color: rgba(255,210,63,0.5); }
.press__card blockquote { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: #fff; line-height: 1.4; }
.press__src { font-weight: 800; font-size: 0.82rem; color: var(--sky); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Units ---------- */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.unit {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 2px solid var(--panel-br);
  border-radius: 14px; padding: 22px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.12);
}
.unit h3 { font-size: 1.2rem; margin-bottom: 6px; }
.unit__cast {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.unit__cast figure {
  flex: 1 1 0; min-width: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
}
.unit__cast img {
  display: block; width: auto; max-width: 100%; height: 104px; flex: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.35));
  transition: transform .18s ease;
}
.unit__cast figure:hover img { transform: translateY(-5px) scale(1.1); }
.unit__cast figcaption {
  font-family: var(--font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.4px;
  text-transform: uppercase; text-align: center; line-height: 1.1; color: var(--text-dim);
}
.unit__cast .r-scally figcaption   { color: var(--scally); }
.unit__cast .r-feedback figcaption { color: var(--feedback); }
.unit__cast .r-veggie figcaption   { color: var(--veggie); }
.unit__cast .r-adorable figcaption { color: var(--adorable); }
.unit__cast .r-pug figcaption      { color: #ffd23f; }
.unit p { color: var(--text-dim); margin-bottom: 14px; font-size: 0.97rem; }
.unit__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.unit__stats span {
  background: rgba(10,45,94,0.6); border: 1px solid rgba(255,255,255,0.18);
  color: var(--sky); font-weight: 700; font-size: 0.8rem;
  padding: 3px 10px; border-radius: 999px;
}
.unit--special { border-color: var(--yellow); background: linear-gradient(180deg, rgba(255,210,63,0.16), rgba(255,210,63,0.05)); }
.unit--special h3 { color: var(--yellow); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px;
  align-items: center; max-width: 1000px; margin: 0 auto;
}
.shot {
  background: #07213f; border: 3px solid rgba(255,255,255,0.18);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.shot:hover { transform: scale(1.03); }
.shot img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: top center; }
.shot--hero { border-color: rgba(255,201,51,0.55); }
.shot--hero img { height: 460px; }
.shot figcaption {
  font-family: var(--font-display); font-weight: 700;
  text-align: center; padding: 10px; background: rgba(10,45,94,0.7); color: #fff;
}

.maps__h {
  font-family: var(--font-display); text-align: center; color: #fff;
  font-size: 1.5rem; margin: 52px auto 20px;
}
.maps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1000px; margin: 0 auto; }
.map {
  background: #07213f; border: 3px solid rgba(255,255,255,0.18);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.map:hover { transform: scale(1.05); }
.map img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.map figcaption {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  text-align: center; padding: 6px; background: rgba(10,45,94,0.7); color: #fff;
}
@media (max-width: 860px) { .maps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .maps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 2px solid var(--panel-br); border-left: 5px solid var(--yellow);
  border-radius: 14px; padding: 22px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 0.97rem; }

/* "What's new" cards: same card, orange accent and a NEW pill */
.feature--new { border-left-color: var(--orange); }
.feature__tag {
  display: inline-block; margin-bottom: 10px;
  background: linear-gradient(180deg, #ff9d3a, var(--orange-d)); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 2px 10px; border-radius: 999px; box-shadow: 0 2px 0 rgba(120, 45, 0, 0.6);
}

/* wide screens: flex so an incomplete last row stays centred */
@media (min-width: 861px) {
  .features { display: flex; flex-wrap: wrap; justify-content: center; }
  .features > .feature { flex: 0 1 calc((100% - 36px) / 3); }
}
/* full width: two rows of five (five new, five tried and true) */
@media (min-width: 1101px) {
  .features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .features > .feature { flex: none; padding: 20px 18px; }
  .feature h3 { font-size: 1.05rem; }
}

/* ---------- News (the game's "Witters' Digest", fed by news.json) ---------- */
.news {
  max-width: 760px; margin: 0 auto; padding: 22px 26px 30px;
  background: linear-gradient(180deg, #f6f4ee, #e8e5db);
  color: #3a3935; border: 3px solid #cfcabd; border-radius: 10px;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.news__mast {
  text-align: center; text-transform: uppercase; color: #3d3b36;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.9rem); line-height: 1.1;
  margin-bottom: 28px;
}
.news__status { text-align: center; font-style: italic; color: #5b5850; padding: 18px 0; }
.news__item { margin: 0 0 34px; }
.news__item:last-child { margin-bottom: 0; }
.news__item h3 {
  position: relative; isolation: isolate; text-align: center;
  margin: 0 -10px; padding: 6px 18px; border-radius: 3px;
  background: linear-gradient(180deg, #ea7a32, #c1501a); color: #fff;
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  text-shadow: 0 2px 0 rgba(90, 30, 0, 0.55); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
/* folded ribbon tails */
.news__item h3::before, .news__item h3::after {
  content: ""; position: absolute; top: 10px; width: 22px; height: 100%;
  background: #9c3f10; z-index: -1;
}
.news__item h3::before { left: -14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 35% 50%); }
.news__item h3::after { right: -14px; clip-path: polygon(0 0, 100% 0, 65% 50%, 100% 100%, 0 100%); }
.news__card {
  margin: -12px 8px 0; padding: 30px 18px 14px;
  background: rgba(255, 255, 255, 0.45); border: 1px solid #8d8a80;
  font-size: 0.98rem;
}
.news__card p { margin-bottom: 0.8em; }
.news__card a { color: #d2581a; font-weight: 800; }
.news__card a:hover { text-decoration: underline; }
.news__date {
  display: block; text-align: center; margin-top: 18px;
  font-size: 0.78rem; font-style: italic; color: #55524a;
}

/* ---------- CTA ---------- */
.cta { position: relative; z-index: 1; padding: 64px 20px; }
.cta__card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 2px solid var(--panel-br);
  border-radius: 26px; padding: 44px 32px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.18), var(--shadow);
}
.cta__card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 12px; }
.cta__card > p { color: var(--text-dim); margin-bottom: 24px; }
.signup { max-width: 520px; margin: 0 auto; text-align: left; }
.signup__row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; padding: 14px 18px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25); background: rgba(10,45,94,0.5);
  color: #fff; font-size: 1rem; font-family: var(--font-body);
}
.signup input::placeholder { color: #8fb4df; }
.signup input[type="email"]:focus { outline: none; border-color: var(--yellow); }
.signup__topics { border: 0; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.signup__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.signup__check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--orange); cursor: pointer; }
.signup__check input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__consent { margin-top: 16px; font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.signup__consent a { color: var(--sky); text-decoration: underline; }
.signup__msg { min-height: 1.2em; margin-top: 14px; font-weight: 700; color: var(--yellow); text-align: center; }
.signup__msg[data-state="error"] { color: #ffb4a8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cta__fine { font-size: 0.85rem; color: var(--text-dim); margin-top: 16px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  background: rgba(5, 24, 54, 0.75);
  border-top: 3px solid rgba(255,255,255,0.12);
  padding: 44px 20px;
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__logo { height: 44px; width: auto; margin: 0 auto 14px; }
.footer__note { color: var(--text-dim); max-width: 60ch; margin: 0 auto 16px; }
.footer__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer__links a { color: var(--text); font-weight: 700; }
.footer__links a:hover { color: var(--yellow); }
.footer__copy { font-size: 0.82rem; color: #7ba0cc; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__cast { order: -1; }
  .hero__sub { max-width: none; }
  .steps, .races, .units, .features, .season, .press { grid-template-columns: 1fr 1fr; }
  .gallery { gap: 12px; }
  .shot img { height: 260px; }
  .shot--hero img { height: 340px; }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; padding-top: 0; }
  .ladder img { margin-bottom: 0 !important; }
  .newrace { flex-direction: column; text-align: center; }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,45,94,0.98);
    padding: 10px 20px 20px;
    display: none;
    border-bottom: 2px solid rgba(255,255,255,0.12);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__links .btn { margin-top: 10px; }
  .lang { align-self: center; margin-top: 12px; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .steps, .races, .units, .features, .season, .press { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .unit__cast { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .unit__cast figure { flex: 0 0 calc(33.333% - 6px); }
  .unit__cast figcaption { font-size: 0.68rem; }
  .shot--hero { grid-column: 1 / -1; order: -1; }
  .shot img { height: 240px; }
  .shot--hero img { height: 380px; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
