/* Mineblox Royale website
   Colours come from the icon (purple ring, gold crown, grass block) and the game's own
   Locker screen (dark slate panels, gold headings). Rarity colours match design/rarities.json. */

:root {
  --bg: #100d1a;
  --bg-2: #161226;
  --panel: #1d2030;
  --panel-2: #262a3d;
  --panel-3: #30354b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f2fb;
  --muted: #aaa7be;
  --dim: #7d7a93;

  --gold: #ffc93c;
  --gold-hi: #ffdb6e;
  --gold-deep: #c98a06;
  --purple: #7a3fe0;
  --purple-hi: #a070ff;
  --purple-deep: #3b1878;
  --storm: #9b4dff;
  --grass: #63b33d;
  --grass-deep: #3f8a26;
  --dirt: #8a5a2e;
  --danger: #ff5a5a;
  --ok: #5dbb2c;

  --common: #b0b0b0;
  --uncommon: #5dbb2c;
  --rare: #3c9be8;
  --epic: #b44ce8;
  --legendary: #f0a626;
  --mythic: #ffd84a;
  --boss: #f0302a;

  --font-display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --header-h: 68px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* A faint storm glow and block grid behind every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(122, 63, 224, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(155, 77, 255, 0.12), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  pointer-events: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-hi);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

p {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0.08em 0.4em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: #1b1405;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(16, 13, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--gold);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.nav a[aria-current="page"] {
  color: var(--gold);
  background: rgba(255, 201, 60, 0.1);
}

.nav .btn {
  margin-left: 8px;
}

.nav a.btn,
.nav a.btn:hover,
.nav a.btn[aria-current="page"] {
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 9px 16px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(16, 13, 26, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .nav .btn {
    margin: 8px 0 0;
    justify-content: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  --btn-edge: #12141f;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--btn-edge), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}

.btn:hover {
  color: var(--btn-fg);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Pressed like a block: the bottom edge goes in */
.btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 -1px 0 var(--btn-edge), 0 2px 8px -4px rgba(0, 0, 0, 0.6);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-gold {
  --btn-bg: linear-gradient(180deg, var(--gold-hi), var(--gold));
  --btn-fg: #2a1c00;
  --btn-edge: var(--gold-deep);
}

.btn-purple {
  --btn-bg: linear-gradient(180deg, var(--purple-hi), var(--purple));
  --btn-fg: #fff;
  --btn-edge: var(--purple-deep);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-edge: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 17px 28px;
  font-size: 1.3rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Small parts ---------- */

/* Gold label with a line after it, like the Locker's section headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 201, 60, 0.55), transparent);
  max-width: 220px;
}

.eyebrow.center {
  justify-content: center;
}

.eyebrow.center::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(270deg, rgba(255, 201, 60, 0.55), transparent);
  max-width: 120px;
}

.eyebrow.center::after {
  max-width: 120px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--text);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}

.chip-gold {
  background: rgba(255, 201, 60, 0.14);
  border-color: rgba(255, 201, 60, 0.45);
  color: var(--gold);
}

.chip-green {
  background: rgba(93, 187, 44, 0.15);
  border-color: rgba(93, 187, 44, 0.5);
  color: #8fe05f;
}

.chip-purple {
  background: rgba(155, 77, 255, 0.16);
  border-color: rgba(155, 77, 255, 0.5);
  color: #c9a6ff;
}

.chip-red {
  background: rgba(240, 48, 42, 0.15);
  border-color: rgba(240, 48, 42, 0.5);
  color: #ff8a85;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.center {
  text-align: center;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Rarity bar under items, like the hotbar */
.rarity {
  --r: var(--common);
}

.rarity-common { --r: var(--common); }
.rarity-uncommon { --r: var(--uncommon); }
.rarity-rare { --r: var(--rare); }
.rarity-epic { --r: var(--epic); }
.rarity-legendary { --r: var(--legendary); }
.rarity-mythic { --r: var(--mythic); }
.rarity-boss { --r: var(--boss); }

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

/* A little grass block as the bullet */
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(var(--grass) 0 40%, var(--dirt) 40%);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.45);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.band {
  background: linear-gradient(180deg, rgba(29, 32, 48, 0.55), rgba(29, 32, 48, 0.2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 44px 0;
  }
}

/* Page title area for the inner pages */
.page-hero {
  padding: 72px 0 40px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  padding: 64px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  opacity: 0.9;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 13, 26, 0.96) 0%, rgba(16, 13, 26, 0.82) 38%, rgba(16, 13, 26, 0.25) 75%, rgba(16, 13, 26, 0.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.hero h1 .gold {
  display: block;
  color: var(--gold);
  font-style: italic;
  transform: skewX(-6deg);
  transform-origin: left;
}

.hero .lead {
  font-size: 1.28rem;
  color: #d6d3e6;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--grass);
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
}

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 112, 255, 0.55), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding: 40px 0 72px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    order: -1;
    width: min(220px, 60%);
  }

  .hero::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(16, 13, 26, 0.88) 50%, rgba(16, 13, 26, 0.7) 100%);
  }
}

/* ---------- Victory Royale strip (the v2.0.0 countdown) ---------- */

.strip {
  position: relative;
  z-index: 2;
  margin: -48px auto 0;
}

.strip-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 22px 30px;
  border-radius: 14px;
  color: #2a1c00;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #f2b51f);
  box-shadow: inset 0 -6px 0 var(--gold-deep), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 24px 50px -20px rgba(255, 201, 60, 0.45);
  transform: rotate(-0.8deg);
}

.strip-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

.strip-sub {
  margin: 4px 0 0;
  font-weight: 800;
  opacity: 0.8;
}

.strip-badge {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.strip .btn {
  --btn-bg: #2a1c00;
  --btn-fg: var(--gold);
  --btn-edge: #000;
}

@media (max-width: 860px) {
  .strip {
    margin-top: -32px;
  }

  .strip-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
    gap: 14px;
    padding: 22px 18px;
    transform: rotate(-0.6deg);
  }

  .strip-badge {
    display: none;
  }
}

.countdown {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.countdown-unit {
  min-width: 64px;
  text-align: center;
  background: rgba(42, 28, 0, 0.12);
  border-radius: 10px;
  padding: 6px 8px 4px;
}

.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 2px;
}

/* The countdown on a dark panel */
.countdown.on-dark .countdown-unit {
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  min-width: 82px;
  padding: 12px 10px 8px;
}

.countdown.on-dark .countdown-num {
  font-size: 2.6rem;
  color: var(--gold);
}

.countdown.on-dark .countdown-label {
  color: var(--muted);
  opacity: 1;
}

@media (max-width: 480px) {
  .countdown {
    gap: 6px;
  }

  .countdown-unit {
    min-width: 54px;
  }

  .countdown.on-dark .countdown-unit {
    min-width: 0;
    flex: 1;
  }

  .countdown.on-dark .countdown-num {
    font-size: 2rem;
  }
}

[hidden] {
  display: none !important;
}

/* ---------- Three games ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trio .card {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
}

.trio .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--gold));
}

.trio-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
}

.trio .tag {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.shot.wide {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: auto;
}

.shot.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.shot button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.shot button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shot:hover img {
  transform: scale(1.04);
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(10, 8, 18, 0.88));
  font-family: var(--font-display);
  font-size: 1.1rem;
  pointer-events: none;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot,
  .shot.wide,
  .shot.tall {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .shot.wide {
    grid-column: span 2;
  }
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1200px, 94vw);
  max-height: 92vh;
}

.lightbox::backdrop {
  background: rgba(8, 6, 14, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-height: 84vh;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.lightbox p {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 12px 0 0;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Features ---------- */

.feature {
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 201, 60, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 201, 60, 0.3);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature p {
  color: var(--muted);
}

/* ---------- Loot shelf ---------- */

.loot {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 860px) {
  .loot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .loot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.loot-item {
  margin: 0;
  text-align: center;
}

.loot-item img {
  width: 100%;
  border-radius: 14px;
  background: #2e3241;
  transition: transform 0.2s;
}

.loot-item:hover img {
  transform: translateY(-4px) rotate(-2deg);
}

.loot-item figcaption {
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.25;
}

.loot-item figcaption span {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--r, var(--muted));
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 2px;
}

.rarity-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.rarity-scale .chip {
  border-color: color-mix(in srgb, var(--r) 55%, transparent);
  background: color-mix(in srgb, var(--r) 14%, transparent);
  color: var(--r);
}

/* ---------- Controls ---------- */

.keys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

.keycap {
  flex-shrink: 0;
  min-width: 46px;
  height: 42px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  color: var(--text);
  background: linear-gradient(180deg, #3a3f57, #2c3045);
  border-radius: 8px;
  box-shadow: inset 0 -4px 0 #1a1d2b, inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  white-space: nowrap;
}

.key-row span:last-child {
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.3;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 22px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--gold);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(160, 112, 255, 0.4), transparent 70%),
    linear-gradient(180deg, #2a1957, #1a1236);
  border: 1px solid rgba(160, 112, 255, 0.35);
  box-shadow: var(--shadow);
}

.cta img.cta-logo {
  width: 110px;
  margin: 0 auto 18px;
}

.cta .lead {
  margin: 0 auto 28px;
}

.cta .btn-row {
  justify-content: center;
}

@media (max-width: 640px) {
  .cta {
    padding: 40px 20px;
  }
}

/* ---------- Downloads ---------- */

.melty-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 20px;
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(255, 201, 60, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid rgba(255, 201, 60, 0.4);
  box-shadow: var(--shadow);
}

.melty-card h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 10px;
}

.melty-card .ticks {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}

.melty-card .actions {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

@media (max-width: 860px) {
  .melty-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 20px;
  }

  .melty-card .ticks {
    grid-template-columns: minmax(0, 1fr);
  }

  .melty-card .actions {
    justify-items: stretch;
  }

  .melty-card .actions .btn {
    justify-content: center;
  }
}

.version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
}

.launchers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .launchers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .launchers {
    grid-template-columns: minmax(0, 1fr);
  }
}

.launcher {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.launcher:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.launcher.is-pick {
  border-color: rgba(93, 187, 44, 0.55);
  background: linear-gradient(180deg, rgba(93, 187, 44, 0.08), transparent 40%), var(--panel);
}

.launcher-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.launcher h3 {
  font-size: 1.35rem;
  margin: 0;
  white-space: nowrap;
}

.launcher .file {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--dim);
  word-break: break-all;
  margin-bottom: 12px;
}

.launcher ol {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  display: grid;
  gap: 4px;
}

.launcher ol li::marker {
  color: var(--gold);
  font-weight: 800;
}

.launcher .btn {
  margin-top: auto;
  justify-content: center;
}

.launcher .size {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  opacity: 0.8;
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 760px) {
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.note h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.note h3 svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.note p,
.note li {
  color: var(--muted);
}

.note ul {
  margin: 0;
  padding-left: 20px;
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(155, 77, 255, 0.1);
  border: 1px solid rgba(155, 77, 255, 0.35);
  color: #ddd0ff;
}

.callout svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--purple-hi);
}

.callout p {
  margin: 0;
}

/* ---------- Changelog ---------- */

.log-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.log-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
}

.log-nav h2 {
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 4px 6px 10px;
}

.log-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.log-nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.log-nav a small {
  font-weight: 600;
  color: var(--dim);
  font-size: 0.8rem;
}

.log-nav a:hover,
.log-nav a.is-active {
  background: var(--panel-2);
  color: var(--text);
}

.log-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

@media (max-width: 900px) {
  .log-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .log-nav {
    position: static;
    max-height: none;
  }

  .log-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .log-nav a {
    background: var(--panel-2);
  }

  .log-nav a small {
    display: none;
  }
}

.log {
  display: grid;
  gap: 24px;
}

.release {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.release-head h2 {
  margin: 0;
  font-size: 2rem;
}

.release-head time {
  color: var(--muted);
  font-weight: 700;
}

.release h3 {
  font-size: 1.25rem;
  color: var(--gold);
  margin: 26px 0 10px;
}

.release h4 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.release p {
  color: #d5d2e4;
}

.release ul {
  margin: 0 0 1em;
  padding-left: 22px;
}

.release li {
  margin: 6px 0;
  color: #d5d2e4;
}

.release li::marker {
  color: var(--gold);
}

.release li ul {
  margin: 6px 0;
}

.release strong {
  color: var(--text);
}

.release.is-upcoming {
  border-style: dashed;
  border-color: rgba(255, 201, 60, 0.45);
  background: linear-gradient(180deg, rgba(255, 201, 60, 0.07), transparent 60%), var(--panel);
}

@media (max-width: 640px) {
  .release {
    padding: 22px 18px;
  }
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  padding: 30px;
}

.loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(var(--grass) 0 40%, var(--dirt) 40%);
  animation: spin-block 1s steps(4) infinite;
}

@keyframes spin-block {
  to { transform: rotate(360deg); }
}

/* ---------- What's new ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.showcase + .showcase {
  margin-top: 96px;
}

.showcase.flip .showcase-media {
  order: 2;
}

.showcase-media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.showcase-media img,
.showcase-media video {
  width: 100%;
}

.showcase h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.showcase .ticks {
  margin-top: 18px;
}

.showcase .ticks li {
  color: #d5d2e4;
}

@media (max-width: 860px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .showcase.flip .showcase-media {
    order: 0;
  }

  .showcase + .showcase {
    margin-top: 64px;
  }
}

.tiles {
  display: grid;
  gap: 14px;
}

.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile {
  margin: 0;
  background: #2e3241;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.tile img,
.tile video {
  width: 100%;
  aspect-ratio: 480 / 408;
  object-fit: cover;
}

.tile.car img {
  aspect-ratio: 600 / 388;
}

.tile figcaption {
  padding: 8px 12px 10px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
  background: var(--panel);
}

.tile figcaption span {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 520px) {
  .tiles-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.boss-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.boss {
  margin: 0;
  background: #2e3241;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.boss::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--boss);
}

.boss img {
  aspect-ratio: 480 / 470;
  object-fit: cover;
}

.boss figcaption {
  padding: 10px 12px 12px;
  background: var(--panel);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
}

.boss figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  color: #ff8a85;
  margin-top: 3px;
}

@media (max-width: 960px) {
  .boss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .boss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.more-list {
  columns: 2;
  column-gap: 40px;
}

.more-list .card {
  break-inside: avoid;
  margin-bottom: 20px;
}

.more-list ul {
  margin: 0;
  padding-left: 20px;
  color: #d5d2e4;
}

.more-list li {
  margin: 5px 0;
}

.more-list li::marker {
  color: var(--gold);
}

@media (max-width: 760px) {
  .more-list {
    columns: 1;
  }
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.roadmap .card {
  display: flex;
  flex-direction: column;
}

.roadmap .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.roadmap h3 {
  margin: 0;
}

.roadmap .ticks li {
  color: #d5d2e4;
}

.roadmap .ticks li strong {
  color: var(--text);
}

@media (max-width: 960px) {
  .roadmap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Feature request form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .form-card {
    padding: 22px 18px;
  }
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.field .opt {
  font-weight: 600;
  color: var(--dim);
  font-size: 0.88rem;
}

.field .hint {
  display: block;
  font-size: 0.88rem;
  color: var(--dim);
  margin-top: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #151826;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc93c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.2);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6a6880;
}

.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  position: relative;
}

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #151826;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pill input:checked + span {
  background: rgba(255, 201, 60, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.pill input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.counter {
  float: right;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 6px;
}

.counter.is-near {
  color: var(--legendary);
}

.form-hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 700;
  min-height: 1.6em;
}

.form-status.is-error {
  color: var(--danger);
}

.form-success {
  text-align: center;
  padding: 20px 0 8px;
}

.form-success .strip-inner {
  display: inline-block;
  margin-bottom: 24px;
  padding: 16px 30px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--panel-3);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.steps strong {
  color: var(--text);
  display: block;
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(10, 8, 18, 0.6);
  padding: 56px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.footer-grid h2 {
  font-size: 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-brand p {
  max-width: 40ch;
  margin-top: 14px;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.85rem;
  color: var(--dim);
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */

.lost {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0;
}

.lost .placed {
  font-family: var(--font-pixel);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lost h1 {
  font-size: clamp(3.4rem, 10vw, 7rem);
  font-style: italic;
  color: var(--danger);
  text-transform: uppercase;
  transform: skewX(-6deg);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.lost .lead {
  margin: 0 auto 30px;
}

.lost .btn-row {
  justify-content: center;
}

.lost .hint-key {
  margin-top: 24px;
  color: var(--dim);
  font-weight: 700;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Accent colours for the three-games cards (classes, so the CSP needs no inline styles) */
.accent-grass { --accent: var(--grass); }
.accent-gold { --accent: var(--gold); }
.accent-storm { --accent: var(--storm); }

@media (min-width: 861px) and (max-width: 1080px) {
  .strip-badge {
    display: none;
  }

  .strip-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

.fineprint {
  margin-top: 32px;
}

#log {
  display: grid;
  gap: 24px;
}

/* ---------- What's new: mode portals (Build and No Build) ---------- */

.portals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    #2a2d3a;
}

.portal {
  --p: var(--purple);
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: end start;
  padding: 10px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 2px) 0 0 / 25% 25%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 2px, transparent 2px) 0 0 / 25% 25%,
    var(--p);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25);
}

.portal small {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  text-shadow: none;
  opacity: 0.85;
}

.portal.solo { --p: #8b45d6; }
.portal.duos { --p: #2c97df; }
.portal.trios { --p: #f07c1a; }
.portal.squads { --p: #df45b0; }

/* No Build portals get warning stripes */
.portal.nobuild {
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.16) 0 10px, transparent 10px 20px),
    var(--p);
}

.emote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}

.emote-chips .chip {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

.hero-countdown {
  margin: 28px 0 30px;
}

/* The weapons showcase: loot cards on the hub's grid floor */
.loot-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    #2a2d3a;
}

.form-success .btn-row {
  justify-content: center;
}

/* Short footer on the 404 and thanks pages */
.footer-legal:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* "#1 Idea": the display font squeezes the space after #1 */
.form-success .strip-title {
  word-spacing: 0.25em;
}

/* Send button with the email address and a copy button beside it */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 56px;
  padding: 6px 6px 6px 14px;
  border-radius: 12px;
  background: #151826;
  border: 1px solid var(--line-2);
}

.email-copy-icon {
  width: 18px;
  height: 18px;
  color: var(--dim);
  flex-shrink: 0;
}

.email-copy a {
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.email-copy a:hover {
  text-decoration: underline;
}

.email-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--panel-3);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.email-copy-btn:hover {
  background: #3a3f57;
}

.email-copy-btn svg {
  width: 16px;
  height: 16px;
}

.email-copy-btn.is-copied {
  background: rgba(93, 187, 44, 0.18);
  border-color: rgba(93, 187, 44, 0.6);
  color: #8fe05f;
}

@media (max-width: 560px) {
  .form-actions .btn,
  .email-copy {
    width: 100%;
    justify-content: center;
  }
}

/* Pictures and clips: no dragging them out, no long-press save menu on phones.
   The right-click menu on them is turned off in js/main.js. */
img,
video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* "You need all 3 games" notice (downloads page) and its short version in the home hero */
.games-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 201, 60, 0.1), rgba(255, 201, 60, 0.03)), var(--panel);
  border: 1px solid rgba(255, 201, 60, 0.5);
  max-width: 860px;
}

.games-notice-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.games-notice-title {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 8px;
}

.games-notice p {
  margin: 0 0 12px;
}

.games-notice p:last-child {
  margin-bottom: 0;
}

.games-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.games-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #d5d2e4;
}

.games-list .chip {
  justify-content: center;
}

@media (max-width: 560px) {
  .games-notice {
    padding: 18px 16px;
    gap: 12px;
  }

  .games-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    justify-items: start;
  }
}

.hero-req {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  max-width: 560px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16, 13, 26, 0.75);
  border: 1px solid rgba(255, 201, 60, 0.45);
  font-size: 0.95rem;
  color: #d6d3e6;
}

.hero-req svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

.hero-req p {
  margin: 0;
}

.hero-req strong {
  color: var(--gold);
}
