:root {
  color-scheme: dark;
  --bg: #10140f;
  --card: #1b2318;
  --ink: #e8f0e3;
  --muted: #9aaa93;
  --accent: #8fce63;
  --warn: #e2b04a;
  --danger: #e07a6a;
  --line: #2c3828;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, #24301f 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
}

.shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

h1, h2 { margin: 0 0 0.5rem; }
.lede { color: var(--muted); line-height: 1.5; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-top: 1.2rem;
}

.row { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }
.meta { color: var(--muted); font-size: 0.92rem; }
.pin { margin-top: 0.8rem; font-family: ui-monospace, monospace; font-size: 0.8rem; }

button, .buttonish {
  appearance: none;
  border: 1px solid var(--line);
  background: #12180f;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #10200a;
  border-color: transparent;
  font-weight: 700;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.buttonish { display: inline-flex; align-items: center; }

.status { min-height: 1.3rem; }
.status.warn { color: var(--warn); }
.status.ok { color: var(--accent); }

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.shot {
  width: 128px;
  height: 86px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: #000;
}

.play-body { min-height: 100vh; display: flex; flex-direction: column; }
.play-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #0c100b;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
}
.play-bar h1 { font-size: 1.15rem; margin: 0; }
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  flex-shrink: 0;
}
.play-actions #copy-watch {
  border-color: var(--accent);
  font-weight: 700;
}
.play-watch-status {
  margin: 0;
  padding: 0.35rem 1.25rem 0;
  min-height: 1.2rem;
}

.stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#game {
  width: min(960px, 100%);
  aspect-ratio: 3 / 2;
  background: #000;
}

#watch-link {
  width: min(22rem, 70vw);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #12180f;
  color: var(--ink);
}

.watch-video {
  width: min(960px, 100%);
  aspect-ratio: 3 / 2;
  background: #000;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.watch-hint {
  text-align: center;
  padding: 0 1.25rem 1.5rem;
}
