@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #04050c;
  --panel: rgba(12, 14, 28, 0.78);
  --panel-solid: #0e1020;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4fb;
  --muted: #a8adc6;
  --sun: #ffcf5a;
  --flame: #ff7a2f;
  --ember: #ff3d6e;
  --play: #3ee08a;
  --radius: 18px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fire-grad: linear-gradient(90deg, #ffe08a, #ff8a3d 45%, #ff3d6e);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--flame); color: #1a0800; }

/* ── Space layers ──────────────────────────── */
#space-bg, #space-fx {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none;
}
#space-fx { z-index: -1; }
#fire-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 15; pointer-events: none; }
.no-webgl body, html.no-webgl body {
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(255, 120, 40, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, rgba(120, 40, 200, 0.22), transparent 60%),
    radial-gradient(1200px 500px at 50% 120%, rgba(60, 120, 255, 0.25), transparent 60%),
    var(--bg);
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Top bar ───────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 6, 14, 0.55);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  text-decoration: none; letter-spacing: -0.02em; white-space: nowrap;
}
.brand .logo {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c4, #ffb03a 35%, #ff4d2e 70%, #6a0f2a);
  box-shadow: 0 0 18px rgba(255, 140, 50, 0.7), inset -4px -4px 8px rgba(0, 0, 0, 0.35);
  position: relative;
}
.brand .logo::after {
  content: ""; position: absolute; inset: 9px -6px; border-radius: 50%;
  border: 2px solid rgba(255, 220, 160, 0.85); transform: rotate(-20deg);
}
.brand span { background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-links a.yt { color: #fff; background: rgba(255, 50, 60, 0.18); border: 1px solid rgba(255, 70, 80, 0.35); }
.nav-links a.yt:hover { background: rgba(255, 50, 60, 0.32); }
.nav-links a.social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
.nav-links a.social svg { width: 18px; height: 18px; display: block; }
.nav-links a.s-youtube:hover { color: #ff3d4d; }
.nav-links a.s-tiktok:hover { color: #25f4ee; }
.nav-links a.s-x:hover { color: #fff; }
.nav-links a.s-instagram:hover { color: #ff5fa2; }
.nav-links a.s-discord:hover { color: #7b87ff; }
.nav-links a.s-twitch:hover { color: #a970ff; }
.nav-links a.s-itch:hover { color: #ff5c5c; }
.nav-links a.social:focus-visible { outline: 2px solid #ffb03a; outline-offset: 2px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.btn:focus-visible, .card:focus-visible, .chip:focus-visible, .search:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.btn.fire {
  border: 0; color: #2a0a00;
  background: var(--fire-grad);
  box-shadow: 0 8px 30px rgba(255, 110, 40, 0.35);
}
.btn.fire:hover { box-shadow: 0 10px 40px rgba(255, 110, 40, 0.6); background: var(--fire-grad); }
.btn.play { background: var(--play); color: #03200f; border-color: transparent; box-shadow: 0 8px 30px rgba(62, 224, 138, 0.3); }
.btn.play:hover { background: #5cf0a0; }
.btn.yt { background: #ff2d3d; border-color: transparent; color: #fff; }
.btn.yt:hover { background: #ff4b58; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ── Hero ──────────────────────────────────── */
.hero { padding: 84px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero .wrap > * { min-width: 0; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun);
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 180, 60, 0.1); border: 1px solid rgba(255, 180, 60, 0.25);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3d3d; box-shadow: 0 0 10px #ff3d3d; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 9vw, 104px); line-height: 0.9; letter-spacing: -0.045em;
  margin: 18px 0 18px; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.hero h1 .glow {
  background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 120, 50, 0.45));
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #d0d4e6; max-width: 540px; margin: 0 0 28px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.stat {
  padding: 10px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); flex: 0 1 auto; min-width: 0;
}
@media (max-width: 560px) { .stat { flex: 1 1 0; padding: 10px 12px; font-size: 13px; } }
.stat b { display: block; font-family: var(--display); font-size: 24px; color: var(--text); line-height: 1.1; }

/* Featured game */
.featured {
  position: relative; display: block; text-decoration: none;
  border-radius: 22px; overflow: hidden; background: var(--panel-solid);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 160, 80, 0.08);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.featured:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px); }
.featured .cover { aspect-ratio: 16 / 10; }
.featured .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 5, 12, 0.95) 5%, rgba(4, 5, 12, 0.2) 55%, transparent); }
.featured .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.featured .label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }
.featured h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 4px 0 4px; letter-spacing: -0.03em; line-height: 1; }
.featured p { margin: 0 0 14px; color: #cdd1e4; }
@media (max-width: 959px) { .featured { transform: none; } }

/* ── Toolbar: filters + search ─────────────── */
.toolbar {
  position: sticky; top: 64px; z-index: 20;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 12px; margin: 24px 0 8px; border-radius: 16px;
  background: rgba(8, 9, 20, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 700 14px/1 var(--body); color: var(--muted); cursor: pointer;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: #2a0a00; background: var(--fire-grad); border-color: transparent; }
.chip .n { opacity: 0.7; margin-left: 4px; font-weight: 600; }
.search {
  margin-left: auto; flex: 1 1 200px; max-width: 320px;
  font: 500 15px var(--body); color: var(--text);
  padding: 10px 14px 10px 38px; border-radius: 999px; border: 1px solid var(--line); outline: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8adc6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center / 17px;
}
.search::placeholder { color: #7f849c; }
@media (max-width: 560px) { .search { max-width: none; margin-left: 0; } .toolbar { top: 64px; } }

/* ── Sections ──────────────────────────────── */
.section { padding: 26px 0; }
.section[hidden] { display: none; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -0.03em; margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7); }
.section-head .count { color: var(--muted); font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.section-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 140, 60, 0.5), transparent); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ── Game card ─────────────────────────────── */
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 22, 42, 0.92), rgba(10, 11, 24, 0.95));
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Burning border: a spinning fire gradient, masked to a 2px ring */
.card::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--radius) + 2px);
  padding: 2px;
  background: conic-gradient(from var(--spin), #ff3d00, #ffb300, #fff1a8, #ff7a00, #ff2d55, #ff9f1a, #ff3d00);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s ease;
  animation: spin 2.4s linear infinite paused;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  box-shadow: 0 0 0 rgba(255, 100, 30, 0);
  transition: box-shadow 0.3s ease;
}
@keyframes spin { to { --spin: 360deg; } }
@keyframes flicker {
  0%, 100% { box-shadow: 0 0 22px 2px rgba(255, 110, 30, 0.55), 0 0 60px 6px rgba(255, 60, 20, 0.25); }
  30% { box-shadow: 0 0 30px 4px rgba(255, 150, 40, 0.65), 0 0 80px 10px rgba(255, 70, 20, 0.3); }
  60% { box-shadow: 0 0 18px 1px rgba(255, 90, 20, 0.5), 0 0 50px 4px rgba(255, 50, 20, 0.2); }
}
.card:hover, .card.is-burning, .card:focus-visible { transform: translateY(-6px); border-color: transparent; }
.card:hover::before, .card.is-burning::before, .card:focus-visible::before { opacity: 1; animation-play-state: running; }
.card:hover::after, .card.is-burning::after, .card:focus-visible::after { animation: flicker 0.9s ease-in-out infinite; }

.card .cover { border-radius: var(--radius) var(--radius) 0 0; }
.card .cover img { transition: transform 0.5s ease, filter 0.3s ease; }
.card:hover .cover img, .card.is-burning .cover img { transform: scale(1.07); filter: saturate(1.2) brightness(1.08); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-family: var(--display); font-size: 21px; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .meta { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card .go {
  margin-left: auto; font-size: 13px; font-weight: 800; color: var(--sun);
  opacity: 0; transform: translateX(-6px); transition: all 0.2s ease;
}
.card:hover .go, .card.is-burning .go { opacity: 1; transform: none; }

/* Play bubble over the cover */
.cover .bubble {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fire-grad); color: #2a0a00;
  box-shadow: 0 0 0 8px rgba(255, 140, 60, 0.18), 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: scale(0.6); transition: all 0.25s cubic-bezier(.2, .8, .2, 1.3);
}
.cover .bubble svg { width: 26px; height: 26px; margin-left: 3px; }
.card:hover .bubble, .card.is-burning .bubble { opacity: 1; transform: scale(1); }
.cover .soon {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -30%);
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: rgba(4, 5, 12, 0.8); border: 1px solid rgba(255, 180, 80, 0.5); color: var(--sun);
  opacity: 0; transition: all 0.25s ease; white-space: nowrap;
}
.card:hover .soon { opacity: 1; transform: translate(-50%, -50%); }
.card:hover .title-art { filter: blur(3px) brightness(0.6); }

.tag {
  font-size: 12px; font-weight: 600; color: #c2c6da;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.badge.live { background: var(--play); color: #03200f; box-shadow: 0 4px 16px rgba(62, 224, 138, 0.4); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #03200f; }
.badge.dev { background: rgba(4, 5, 12, 0.75); color: #d6d9ea; border: 1px solid var(--line-2); backdrop-filter: blur(6px); }

/* Cover: a screenshot, or a generated title card */
.cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(135deg, var(--c1, #333), var(--c2, #111));
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .title-art {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  font-family: var(--display); font-weight: 800; text-align: center;
  font-size: clamp(26px, 4vw, 36px); line-height: 1; letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: filter 0.3s ease;
}
.cover .title-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000); mask-image: linear-gradient(to bottom, transparent, #000);
}

/* ── Live banner ───────────────────────────── */
.live-band {
  position: relative; overflow: hidden; margin: 40px 0 10px; padding: 34px 28px; border-radius: 24px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255, 60, 70, 0.28), transparent 70%),
    radial-gradient(500px 200px at 0% 100%, rgba(255, 150, 50, 0.2), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-2);
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.live-band h2 { font-family: var(--display); font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 4px; letter-spacing: -0.03em; }
.live-band p { margin: 0; color: #c9cde0; max-width: 560px; }

/* ── Game page ─────────────────────────────── */
.game-head { padding: 34px 0 20px; }
.back { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.back:hover { color: var(--text); }
.game-head h1 {
  font-family: var(--display); font-size: clamp(36px, 7vw, 68px); line-height: 0.95;
  letter-spacing: -0.04em; margin: 18px 0 10px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.game-head .tagline { color: #cdd1e4; font-size: 19px; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.game-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.player.fire-hover:hover { box-shadow: 0 0 40px rgba(255, 110, 30, 0.45), 0 30px 90px rgba(0, 0, 0, 0.65); }
.player .cover { position: absolute; inset: 0; aspect-ratio: auto; }
.player .cover img { filter: blur(4px) brightness(0.8); transform: scale(1.04); }
.player .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75)); }
.player .start {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 12px;
  text-align: center; padding: 16px;
}
.player .start .btn { font-size: 19px; padding: 18px 32px; border-radius: 14px; }
.player .start small { color: #e6e8f2; text-shadow: 0 1px 6px #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.game-body { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding: 26px 0 8px; }
@media (min-width: 860px) { .game-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.game-body h2 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; }
.game-body p { margin: 0 0 12px; color: #d6d9e8; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.note { color: var(--sun); font-size: 14px; }

.more { padding: 30px 0 0; }

/* ── Footer ────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; background: rgba(4, 5, 12, 0.6); }
footer .wrap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* ── Entrance animation ────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .hero { padding: 48px 0 20px; }
  .topbar .nav-links a.hide-sm { display: none; }
  .topbar .wrap { gap: 10px; }
  .topbar .nav-links { flex-wrap: nowrap; gap: 0; }
  .nav-links a.social { width: 32px; height: 32px; }
  .live-band { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .featured, .cover img, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .card:hover::before { animation: none; }
  .card:hover::after { animation: none; box-shadow: 0 0 24px rgba(255, 110, 30, 0.5); }
}

/* ── Competition ───────────────────────────── */
.nav-links a.comp-link { color: var(--sun); }
.nav-links a.comp-link:hover, .nav-links a.comp-link.on { color: #2a0a00; background: var(--fire-grad); }
.label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }

.comp-teaser {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; align-items: center;
  margin: 8px 0 0; padding: 20px 24px; border-radius: 20px; text-decoration: none;
  background:
    radial-gradient(500px 160px at 100% 0%, rgba(255, 120, 40, 0.28), transparent 70%),
    var(--panel);
  border: 1px solid rgba(255, 160, 80, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comp-teaser:hover { border-color: rgba(255, 170, 80, 0.7); box-shadow: 0 0 40px rgba(255, 110, 30, 0.25); }
.comp-teaser b { font-family: var(--display); font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
.comp-teaser .sub { color: var(--muted); font-size: 14.5px; }
.comp-teaser .btn { grid-column: 2; grid-row: 1 / 4; }
@media (max-width: 640px) {
  .comp-teaser { grid-template-columns: 1fr; }
  .comp-teaser .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
}

.comp-hero { padding-bottom: 20px; }
.comp-hero .lead b { color: var(--sun); }
.comp-dates { padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); border-color: var(--line-2); }
.comp-dates dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.comp-dates dt { color: var(--muted); }
.comp-dates dd { margin: 0; font-weight: 600; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.cd-cell { text-align: center; padding: 12px 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.cd-cell b {
  display: block; font-family: var(--display); font-size: clamp(30px, 5vw, 44px); line-height: 1; letter-spacing: -0.03em;
  background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cd-cell span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.cd-closed { grid-column: 1 / -1; font-weight: 700; color: var(--sun); padding: 14px 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.steps li { position: relative; }
.steps h3 { font-family: var(--display); font-size: 21px; margin: 10px 0 6px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; color: #2a0a00; background: var(--fire-grad);
  box-shadow: 0 0 20px rgba(255, 120, 40, 0.4);
}

.comp-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .comp-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.comp-grid .side { display: grid; gap: 22px; align-content: start; }
.comp-grid h3 { font-family: var(--display); font-size: 22px; margin: 0 0 12px; }
.rules ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: #d6d9e8; }
.rules li::marker { color: var(--sun); font-weight: 800; }
.rules b { color: var(--text); }
.judge { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.judge li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.judge span { color: var(--muted); font-size: 14px; }
.prize-card { background: radial-gradient(400px 200px at 100% 0%, rgba(255, 150, 40, 0.25), transparent 70%), var(--panel); border-color: rgba(255, 170, 80, 0.35); }
.prize-big { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; margin: 6px 0 8px; background: var(--fire-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prize-card p { margin: 0; color: #d6d9e8; }

.form-panel { padding: clamp(18px, 3vw, 30px); }
.form-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: 14.5px; padding: 0; margin-bottom: 7px; }
.field > span { margin-bottom: 0; }
.field i { color: var(--flame); font-style: normal; }
.field em { color: var(--muted); font-style: normal; font-weight: 500; }
.field small, .field-note { color: var(--muted); font-size: 13px; margin: 0; }
.field-note { margin-top: -8px; }
.field input, .field textarea {
  width: 100%; font: 500 15.5px var(--body); color: var(--text);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05); outline: none; resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: #737891; }
.field input:focus, .field textarea:focus { border-color: var(--sun); background: rgba(255, 255, 255, 0.08); }
.was-checked .field input:invalid, .was-checked .field textarea:invalid { border-color: var(--ember); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label > span {
  display: inline-block; font-weight: 700; font-size: 14.5px; color: var(--muted);
  padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  transition: all 0.15s;
}
.seg label:hover > span { color: var(--text); }
.seg input:checked + span { color: #2a0a00; background: var(--fire-grad); border-color: transparent; }
.seg input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 3px; }
.callout { padding: 14px 16px; border-radius: 14px; background: rgba(255, 180, 60, 0.08); border: 1px solid rgba(255, 180, 60, 0.3); color: #f2e2c4; font-size: 14.5px; display: grid; gap: 10px; }
.callout[hidden] { display: none; }
.callout a { color: var(--sun); font-weight: 700; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: #d6d9e8; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #ff8a3d; flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.form-foot .btn { font-size: 17px; padding: 16px 28px; }
.form-foot .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin: 0; font-size: 14.5px; color: var(--muted); }
.form-status.err { color: #ff8aa0; }
.entry-done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0; }
.entry-done[hidden] { display: none; }
.entry-done h3 { font-family: var(--display); font-size: 32px; margin: 0; letter-spacing: -0.03em; }
.entry-done p { margin: 0; color: #d6d9e8; max-width: 560px; }
.entry-done .btn-row { justify-content: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #03200f; background: var(--play); box-shadow: 0 0 40px rgba(62, 224, 138, 0.45); }
.entry-copy { text-align: left; width: 100%; max-width: 560px; margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); font-size: 13.5px; white-space: pre-wrap; word-break: break-word; color: #e6e8f2; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 16px; color: #d6d9e8; }
.faq a { color: var(--sun); }
@media (max-width: 560px) {
  /* Make room for the Competition link; these icons are still in the footer */
  .topbar .nav-links a.s-tiktok, .topbar .nav-links a.s-x, .topbar .nav-links a.s-instagram { display: none; }
  .topbar .nav-links a.comp-link { padding: 7px 10px; }
}
.muted-sm { color: var(--muted); font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--sun); text-decoration: underline; cursor: pointer; }
.prize-card .prize-plus { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.field[hidden] { display: none; }
