/* ---------- Heart of the Circus — itch.io-inspired palette ---------- */
:root {
  --bg: #1a0e0e;
  --panel: #251616;
  --panel-2: #2f1c1c;
  --border: #3a2424;
  --text: #f4ebe0;
  --muted: #b89b8a;
  --dim: #8a6e60;
  --red: #e94560;       /* circus red, the dominant accent */
  --red-hot: #ff5c70;
  --gold: #d4a843;
  --blue: #5cb0ff;      /* the support orb hue */
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a { color: var(--red-hot); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- Nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(26, 14, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav.top .back {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 1px; color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
nav.top .back:hover { color: var(--red-hot); }
nav.top .brand {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: 0.5px; color: var(--text);
}
nav.top .brand .dot { color: var(--red); }

/* ---------- Cover ---------- */
.cover {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 24px;
}
.cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(233, 69, 96, 0.15);
}

/* ---------- Layout ---------- */
.game { padding-bottom: 80px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 24px;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

/* ---------- Title ---------- */
.title-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.title-block h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 0;
  letter-spacing: -1px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.title-block .tagline {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--gold);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Video ---------- */
.video { margin-bottom: 36px; }
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.video-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: linear-gradient(135deg, #1a0e0e 0%, #3a1a22 100%);
}
.video-fallback p {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  margin: 0;
}

/* ---------- About ---------- */
.about { margin-bottom: 36px; }
.about h2,
.screens h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--red-hot);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.about p {
  font-size: 15px;
  line-height: 1.7;
  color: #d8cdc0;
  margin: 0 0 14px;
}
.about strong { color: var(--text); }
.about em { color: var(--gold); font-style: italic; }
.orb {
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 12px currentColor;
}
.orb-r { color: var(--red-hot); }
.orb-b { color: var(--blue); }

/* ---------- Meta cards ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.meta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.meta-card h3 {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
}
.meta-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

/* ---------- Screenshots ---------- */
.screens .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.screens .grid a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  transition: border-color .15s, transform .15s;
}
.screens .grid a:hover {
  border-color: var(--red-hot);
  transform: translateY(-3px);
}
.screens .grid img {
  width: 100%;
  display: block;
  aspect-ratio: 347 / 500;
  object-fit: cover;
  image-rendering: pixelated;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex; flex-direction: column; gap: 18px;
}
.play-btn {
  display: block;
  background: var(--red);
  color: #fff !important;
  text-align: center;
  padding: 18px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  border: 1px solid #c2334d;
  box-shadow: 0 6px 22px rgba(233, 69, 96, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.play-btn:hover {
  background: var(--red-hot);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.play-btn .big {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.play-btn .small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.85;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
}
.info {
  list-style: none; padding: 0; margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.info li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info li:last-child { border-bottom: none; }
.info li span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.info li b { color: var(--text); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.tags span:hover { color: var(--red-hot); border-color: var(--red); }
.footnote {
  font-size: 11px;
  color: var(--dim);
  margin: 0;
  font-family: ui-monospace, monospace;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
footer {
  text-align: center; padding: 24px 14px;
  color: var(--dim); font-size: 12px;
  border-top: 1px solid var(--border);
  font-family: ui-monospace, monospace;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--red-hot); }
