:root {
  /* --- Cold Smoke ---------------------------------------------------------
     The studio's line is "made out in the cold", so the ground is a near-black
     biased blue toward the accent rather than a neutral grey, and exactly one
     colour is allowed to be bold. See
     docs/superpowers/specs/2026-08-09-cold-smoke-redesign-design.md
     ---------------------------------------------------------------------- */
  --ground:  #05070a;
  --surface: #0a0f16;
  --raised:  #0e151e;
  --line:    #1a2632;
  --hairline: #121a24;  /* within-section row rules — quieter than --line */
  --text:    #e9f0f7;
  --muted:   #8496a8;
  --dim:     #71829a;   /* recessive, but still AA on --ground and --surface */
  --ice:     #9ecbff;
  --warm:    #ffd0a1;

  /* Semantic, deliberately outside the accent: an error is not a brand moment. */
  --error:   #ff9a9a;

  --radius: 10px;
  --maxw: 1080px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ground);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.01em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ice);
  color: #04121e;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 20;
}
.skip-link:focus { left: 0; }

/* ---------- Hero ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hero {
  position: relative;
  display: flex;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Static stand-in whenever the lighting field does not run. Sitting on .hero
   itself means it is what shows with no JS, no WebGL2, or reduced motion. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 28% 100%, rgba(158, 203, 255, 0.16) 0%, transparent 62%),
    radial-gradient(60% 70% at 82% 8%, rgba(158, 203, 255, 0.08) 0%, transparent 60%);
}
#cs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-ui {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 2.4rem;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Mark and wordmark travel together. The mark is a sibling of .brand rather
   than a child so .brand's textContent stays exactly "bmux" — coldsmoke.js
   reads it to place emitters. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
/* Sized to the mark's own 56×60 aspect so it never distorts, and scaled to sit
   between the wordmark's cap height and its full body. */
.brand-mark {
  width: 1.12rem;
  height: 1.2rem;
  flex: none;
  color: var(--ice);
}

/* The split wordmark. `mux` is a child element rather than a gradient stop so
   the break lands exactly between glyphs, and textContent stays "bmux" for the
   emitter painter in coldsmoke.js. */
.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.045em;
  color: var(--text);
}
.brand-mux { color: var(--ice); }

.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
/* Outbound to the sister site: ice, so it reads as "leaves the page". */
.nav-links a.nav-out { color: var(--ice); }
.nav-links a.nav-out:hover { color: var(--text); }

/* ---------- Hero card: the featured game ----------
   The capsule is contained in the content column (as Steam's own store column
   is) rather than stretched to the viewport, so the standard 1280×720 capsule
   is never upscaled. The lighting field runs full-bleed behind it. */
.hero-card {
  position: relative;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-card .cap { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-card-ui {
  position: absolute;
  inset: auto 0 0 0;
  padding: 7rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  /* Type sits on the image, so the image darkens under it instead of the type casting a shadow. */
  background: linear-gradient(to top, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.88) 35%, rgba(5, 7, 10, 0.45) 70%, transparent 100%);
}
.hero-eyebrow { font-weight: 200; font-size: 0.95rem; color: var(--muted); letter-spacing: -0.01em; }
.hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-tagline { margin: 0; color: var(--text); font-size: clamp(0.95rem, 2vw, 1.05rem); max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.6rem; }
.hero-host { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.04em; }
@media (max-width: 640px) {
  /* On a phone the type flows under the image instead of fighting it. */
  .hero-card-ui { position: static; padding: 0.9rem 1rem 1.1rem; background: none; }
  .hero-card-ui .badges { order: -1; }
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ice); color: #04121e; }
.btn-primary:hover { background: #bcdcff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--ice); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-s { padding: 0.38rem 0.85rem; font-size: 0.78rem; }
/* A game that is not out yet: the Play button's silhouette, with nothing in it. */
.btn-dead { border: 1px dashed var(--line); color: var(--dim); cursor: default; font-weight: 600; }
.btn-dead:hover { transform: none; }

/* ---------- Sections: the two-column rail ----------
   The lower page used to be browser defaults under a hero with a strong voice,
   which read as two different websites. Every section now carries a narrow rail
   whose heading repeats the hero's own 200-against-800 weight contrast, and
   buys vertical space with horizontal space instead of 3.5rem of padding. */
.sec {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 15ch 1fr;
  gap: 2.6rem;
  padding: 1.8rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.sec-last { border-bottom: 0; }
.sec-body { min-width: 0; }

.rail h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.rail-thin { display: block; font-weight: 200; }
.rail-fat { display: block; font-weight: 800; }
.rail-note {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--dim);
  margin: 0.55rem 0 0;
}

/* Retained: app.js writes .section-sub onto the empty-feed note at runtime. */
.section-sub { color: var(--muted); margin: 0; }
.sub-head {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 760px) {
  .sec { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 1.25rem; }
  /* Stacked, the two halves of the heading belong on one line. */
  .rail h2 { display: flex; gap: 0.4ch; align-items: baseline; }
  .rail-thin, .rail-fat { display: inline; }
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
/* One accent means these separate by treatment, not by hue: live is the only
   one that gets the accent, placeholder states get warm, and mock recedes. */
.badge-live { background: rgba(158, 203, 255, 0.14); color: var(--ice); border: 1px solid rgba(158, 203, 255, 0.4); }
.badge-mock { background: transparent; color: var(--dim); border: 1px solid var(--line); }

/* ---------- Shelves and cards ----------
   Three shelves sorted by how finished a game is: full games set big, in
   progress set medium, experiments set small. Imagery supplies the colour; the
   chrome stays cold and quiet, and the accent is spent on the Play button. */
.sec.shelf + .sec.shelf { padding-top: 1.4rem; }
.shelf-grid { display: grid; gap: 0.9rem; }
.shelf-grid-big { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shelf-grid-mid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.shelf-grid-sm  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 640px) {
  /* The curiosity cabinet stays one band tall on a phone: a sideways row. */
  .shelf-grid-sm {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 60%);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }
  .shelf-grid-sm .card { scroll-snap-align: start; }
}

.card {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover, .card:focus-within { transform: translateY(-2px); border-color: var(--line); }
.card-link { display: block; color: inherit; min-width: 0; }
.card-link:hover { text-decoration: none; }
/* The card clips overflow, which would swallow the default outline. */
.card-link:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; border-radius: var(--radius); }
.card-link:hover .card-title { color: var(--ice); }
.cap { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); }
.card-body { display: block; padding: 0.7rem 0.85rem 0.35rem; }
.card-title { display: block; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); transition: color 0.18s; }
.card-tagline { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; margin-top: 0.2rem; }
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.85rem;
}
.card-big .card-title { font-size: 1.25rem; }
.card-sm .card-body { padding: 0.55rem 0.7rem 0.3rem; }
.card-sm .card-title { font-size: 0.9rem; }
.card-sm .card-tagline { font-size: 0.74rem; }
.card-sm .card-row { padding: 0.25rem 0.7rem 0.65rem; }

/* Badges: the status reuses the index's mono label; the tier reuses the
   warm "do not expect this to be finished" flag. Full games carry no tier badge. */
.badges { display: inline-flex; gap: 0.45rem; align-items: baseline; flex-wrap: wrap; }
.badge-status {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.badge-tier {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  border: 1px solid rgba(255, 208, 161, 0.32);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

/* ---------- Game page ---------- */
.hero-page .brand-lockup { color: inherit; }
.hero-page .brand-lockup:hover { text-decoration: none; }
.game {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.2rem;
  display: grid;
  gap: 1.8rem;
}
.game-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.game-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.game-main, .game-side { display: grid; gap: 1.8rem; min-width: 0; }
.game .sub-head { margin-bottom: 0.7rem; }
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.5rem;
}
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--hairline);
  transition: border-color 0.18s;
}
.shot:hover img { border-color: var(--ice); }
.tier-note { color: var(--warm); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.92rem; }
.facts dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-top: 0.2rem; }
.facts dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
/* Three compact cards across the full column, under the two-column body. */
.game-more .shelf-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 760px) {
  .game-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .game-more .shelf-grid-sm { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; }
}

/* ---------- Panels ----------
   The lower page shares the shelves' material: a surface, a hairline, the
   radius. Content sits inside instead of floating on hairline rules. */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.25rem;
  min-width: 0;
}
.panel > .sub-head { margin-bottom: 0.9rem; }

/* ---------- Feeding the agents ----------
   Same hairline rows as the index, so the page reads as one
   system rather than three generations of card design stacked together. */
/* Inline, not stacked. Tip-jar links do not need full rows. */
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.9rem;
  align-items: start;
}
@media (max-width: 760px) { .join-grid { grid-template-columns: 1fr; } }
.support-grid { display: flex; flex-direction: column; gap: 0.5rem; }
/* A tip jar is a button-shaped link: the ghost treatment, so Play keeps the accent. */
.support-card {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: border-color 0.18s, color 0.18s, transform 0.12s;
}
.support-card:hover,
.support-card:focus-visible { text-decoration: none; color: var(--text); border-color: var(--ice); transform: translateY(-1px); }
.support-emoji { font-size: 1rem; line-height: 1; }
.support-name { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.support-handle { color: var(--dim); font-size: 0.78rem; font-family: var(--mono); }
/* app.js is not involved here, but the markup nests name+handle in a bare
   <span> with a <br>; dissolve it so they sit inline. */
.support-card > span { display: contents; }
.support-card br { display: none; }

.crypto-grid { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.7rem; }
.crypto-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
}
.crypto-sym {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(158, 203, 255, 0.3);
  border-radius: 3px;
  padding: 0.12rem 0.4rem;
  text-align: center;
}
.crypto-name { color: var(--muted); font-size: 0.82rem; }
.crypto-addr {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--warm);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Suggestion form ---------- */
.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.suggest-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.82rem; }
.suggest-form label em { color: var(--muted); font-weight: 400; }
.suggest-form input,
.suggest-form textarea {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.suggest-form input:focus,
.suggest-form textarea:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-note-ok { color: var(--ice); }
.form-note-error { color: var(--error); }

/* Honeypot: kept in the DOM for bots, removed from view/flow for humans and
   assistive tech (the wrapper is also aria-hidden). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Prose / lore ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .sub-head { margin-bottom: 0.6rem; }
.prose { max-width: 62ch; color: var(--text); font-size: 0.88rem; line-height: 1.65; min-width: 0; }
.prose p { color: var(--muted); margin: 0 0 0.7em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }


/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  /* Widths follow the content: the link list is the narrowest thing here, the
     colophon the widest. */
  grid-template-columns: 1.1fr 0.9fr 1fr 1.3fr;
  gap: 2rem 3rem;
}

.footer-brand .brand { font-size: 1.15rem; }
.footer-tagline {
  margin: 0.7rem 0 0;
  max-width: 22ch;
  color: var(--dim);
}

.footer-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.7rem;
}
.footer-col p { margin: 0 0 0.5rem; max-width: 30ch; }
.footer-col p:last-child { margin-bottom: 0; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-legal {
  max-width: var(--maxw);
  margin: 2.2rem auto 0;
  padding: 1.2rem 1.25rem 0;
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 0.74rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; }
  /* Six links on one line at 360px+: tighter gaps, slightly smaller type. */
  .nav-links { gap: 0.6rem; }
  .nav-links a { font-size: 0.84rem; }
  .hero-inner { padding-top: 2rem; padding-bottom: 3rem; }
  .crypto-addr { margin-left: 0; }
  .crypto-row { flex-wrap: wrap; }

  /* One stacked, centred column — three columns of small type at phone width
     is unreadable, and the footer is the one place centring still reads. */
  .footer { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-brand .brand-lockup { justify-content: center; }
  .footer-tagline, .footer-col p { max-width: none; }
  .footer-legal { margin-top: 1.8rem; }
}
