/* I, Rogue's page. The look is the game's own: a terminal in lamp-lit greens, set in monospace. */
:root {
  --bg: #080b09;
  --raised: #10150e;
  --line: #343d2e;
  --text: #dedcca;
  --dim: #a3ab93;
  --accent: #d5df83;
  --mono: "Courier New", ui-monospace, Menlo, Consolas, monospace;
  /* The shared Playable Things bar above the page (site/shared/pt.css). */
  --bar: 37px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
html.is-playing { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--mono); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; z-index: 3000; padding: 10px 14px; background: var(--accent); color: #20291b; }
.skip:focus { left: 0; }
kbd { font: inherit; font-size: 0.9em; color: var(--accent); border: 1px solid #566046; padding: 1px 6px; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
  background: #20271b; border: 1px solid #48513a;
}
.btn:hover { background: #333e28; color: #eff4d5; }
.btn--primary { background: #c4d09b; border-color: #c4d09b; color: #20291b; font-weight: 700; padding: 0 28px; }
.btn--primary:hover { background: #e0e8bd; border-color: #e0e8bd; color: #20291b; }

/* ---- The hero: the game above, a strip with the name and Play below ---- */

.hero { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); min-height: 440px; background: #050705; }
.hero__stage { position: relative; grid-row: 1; min-height: 0; overflow: hidden; }
.hero__poster, .hero__game { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero__poster { object-fit: cover; }
/* The game stays out of sight until it is drawing. */
.hero__game { opacity: 0; transition: opacity 0.6s; }
.is-live .hero__game { opacity: 1; }
.is-live .hero__poster { visibility: hidden; transition: visibility 0s 0.6s; }
@media (prefers-reduced-motion: reduce) { .hero__game { transition: none; } .is-live .hero__poster { transition: none; } }

.hero__bar {
  grid-row: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 28px;
  padding: 16px clamp(16px, 3vw, 32px) 14px;
  border-top: 1px solid var(--line); background: var(--bg);
}
.hero__copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
.hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--text); }
.hero__actions { grid-row: span 2; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__note { color: var(--dim); font-size: 13px; }

/* Play: the game fills the window, under a thin strip with the way back. */
.hero.is-playing { position: fixed; inset: 0; z-index: 2000; height: auto; grid-template-rows: auto minmax(0, 1fr); }
.is-playing .hero__stage { grid-row: 2; }
.is-playing .hero__bar { display: none; }
.hero__playbar {
  grid-row: 1;
  display: flex; align-items: center; gap: 18px;
  padding: 0 14px; min-height: 32px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.12em; color: var(--dim);
}
.hero__playbar > span:first-child { color: var(--accent); }
.hero__playbar-keys { margin-right: auto; letter-spacing: 0.04em; }
.hero__playbar button { font: inherit; letter-spacing: 0.04em; color: var(--text); background: none; border: 0; padding: 6px 4px; cursor: pointer; }
.hero__playbar button::before { content: "["; color: var(--dim); }
.hero__playbar button::after { content: "]"; color: var(--dim); }
.hero__playbar button:hover { color: #f3f6c3; text-decoration: underline; }

@media (max-width: 720px) {
  .hero__bar { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { grid-row: auto; }
  .hero__playbar-keys { visibility: hidden; }
}

/* ---- The page below ---- */

.band { padding: clamp(52px, 8vw, 96px) clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); }
.band--alt { background: var(--raised); }
.wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow { margin-bottom: 14px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.eyebrow::before { content: "# "; color: var(--accent); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.2; letter-spacing: -0.01em; color: #f0eed9; margin-bottom: 20px; }
h3 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.intro, .split p { max-width: 68ch; color: var(--text); text-wrap: pretty; }
.intro + .intro, .split p + p { margin-top: 16px; }

.points { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.points li { padding-top: 18px; border-top: 1px dashed #566046; }
.points p { color: var(--dim); font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.shot { margin: 0; border: 1px solid var(--line); background: #000; }

.keys { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.keys div { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.keys dt { color: var(--text); }
.keys dd { margin: 0; color: var(--dim); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.band--news { padding-block: clamp(36px, 5vw, 56px); }
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 64px); align-items: center; }
.news h2 { margin-bottom: 12px; }
.news__form { display: flex; gap: 10px; }
.news__form input {
  flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 14px;
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid #566046; border-radius: 0;
}
.news__form input::placeholder { color: #8d967e; opacity: 1; }
.cta { margin-top: 32px; }
.band--credits { padding-block: 40px; }
.band--credits p:last-child { max-width: 80ch; color: var(--dim); font-size: 14px; }

@media (max-width: 900px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .points { grid-template-columns: minmax(0, 1fr); }
  .keys div { grid-template-columns: 8.5em minmax(0, 1fr); }
  .news__form { flex-wrap: wrap; }
  .news__form .btn { flex: 1 1 100%; justify-content: center; }
}
