/* The showcase ("/") and the guide ("/guide"): the look of the sign-up page (sign-up.html), shared by both.
   The game itself keeps game.css. */
:root {
  --bg: #0f0c0a; --panel: #1b1714; --panel-2: #241e19; --line: #3a322a; --line-2: #5a4d3e;
  --text: #ece4d6; --soft: #d8ccb8; --muted: #a39683; --gold: #d9a441; --gold-2: #f0c66e; --ink: #1a1408;
  --bad: #c8553d; --good: #6fae7a; --blue: #7d9bd1;
  --display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --prose: Spectral, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--prose); overflow-x: hidden;
       background-image: radial-gradient(ellipse 80% 60% at 70% 20%, #2a1c10 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 10% 90%, #161a22 0%, transparent 60%);
       background-attachment: fixed; }
button, input { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { color: var(--gold-2); }
.hidden { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font: 600 14px var(--sans); }
.skip:focus { top: 12px; }

/* the scene behind everything (realm.js), and the veil that keeps words readable over it */
#realm { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; transition: opacity .8s ease; pointer-events: none; }
body.reading #realm { opacity: .22; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
        background: linear-gradient(90deg, rgba(15,12,10,.92) 0%, rgba(15,12,10,.55) 38%, rgba(15,12,10,0) 62%); }
.still { display: none; }
body.no3d .still { display: block; position: fixed; right: max(4vw, 16px); top: 50%; width: min(38vw, 440px); transform: translateY(-50%); opacity: .35; z-index: 0; pointer-events: none; }
body.no3d .veil { display: none; }
.wrap { position: relative; z-index: 1; }

/* the mark and the bar along the top */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo svg { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 0 12px rgba(217,164,65,.35)); }
.logo .wm { display: grid; line-height: 1; }
.logo .wm small { font: 12px var(--sc); letter-spacing: .42em; color: var(--gold); margin-left: 2px; }
.logo .wm b { font: 400 30px var(--display); letter-spacing: .04em; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 14px var(--gutter); transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(15,12,10,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(255,255,255,.06); }
.top nav { display: flex; align-items: center; gap: 6px; font: 14.5px var(--sans); }
.top nav a { color: var(--soft); text-decoration: none; padding: 7px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); background: rgba(255,255,255,.05); }
.top nav a.pill { border: 1px solid var(--line); background: rgba(15,12,10,.5); }
.top nav a.pill:hover { border-color: var(--line-2); }
.top nav a.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); font-weight: 650; }
.top nav a.gold:hover { color: var(--ink); filter: brightness(1.06); }

/* type */
.kicker { font: 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 28px; border-top: 1px solid var(--gold); }
.eyebrow { font: 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
h1 { font: 400 clamp(42px, 6.4vw, 78px)/1.02 var(--display); margin: 14px 0 18px; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--gold-2); font-style: italic; }
h2 { font: 400 clamp(32px, 4vw, 48px)/1.1 var(--display); margin: 0 0 18px; }
h3 { font: 400 26px/1.15 var(--display); margin: 0 0 8px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--soft); margin: 0 0 30px; max-width: 36em; }
.muted { color: var(--muted); }
kbd { font: 12.5px var(--sans); padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: #15110e; color: var(--text); white-space: nowrap; }

/* buttons */
.cta { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); border: 0; border-radius: 999px;
       padding: 16px 28px; font: 650 17px var(--sans); cursor: pointer; box-shadow: 0 10px 34px rgba(217,164,65,.28), inset 0 1px 0 rgba(255,255,255,.35);
       transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(217,164,65,.38), inset 0 1px 0 rgba(255,255,255,.35); }
.cta .arrow { transition: transform .15s ease; } .cta:hover .arrow { transform: translateX(3px); }
.ghost { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 15px 24px; color: var(--text);
         background: rgba(15,12,10,.5); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ghost:hover { border-color: var(--gold); background: rgba(217,164,65,.08); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* cards */
.card { background: linear-gradient(180deg, rgba(36,30,25,.86), rgba(27,23,20,.86)); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
section.block { padding: 84px var(--gutter); max-width: var(--max); margin: 0 auto; }

/* pictures and clips of the game, in a dark frame with a little window bar */
.frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0908;
         box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4), 0 0 60px rgba(217,164,65,.06); }
.frame::before { content: ""; display: block; height: 26px; background: #171310 radial-gradient(circle at 14px 13px, #c8553d 4px, transparent 5px),
                 radial-gradient(circle at 30px 13px, #d9a441 4px, transparent 5px), radial-gradient(circle at 46px 13px, #6fae7a 4px, transparent 5px);
                 border-bottom: 1px solid var(--line); }
.frame img, .frame video { width: 100%; height: auto; background: #0b0908; }
.frame.phone { border-radius: 30px; border: 8px solid #221c17; max-width: 300px; }
.frame.phone::before { display: none; }
button.zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
button.zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* the full-size picture */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(8,6,5,.88); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line-2); }
dialog.lightbox p { text-align: center; color: var(--soft); font: 15px var(--sans); margin: 10px 0 0; }
dialog.lightbox .x { position: fixed; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(15,12,10,.8); color: var(--text); font: 22px/1 var(--sans); cursor: pointer; }

footer.site { position: relative; z-index: 1; padding: 34px var(--gutter) 46px; color: var(--muted); font: 13px/1.6 var(--sans); border-top: 1px solid rgba(255,255,255,.06);
              display: grid; gap: 14px; max-width: var(--max); margin: 0 auto; }
footer.site .row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site nav a { color: var(--soft); text-decoration: none; } footer.site nav a:hover { color: var(--text); }
footer.site .legal { margin: 0; max-width: 80em; }
footer.site .legal a { color: var(--muted); }

/* things that rise into view as you scroll (site.js adds .seen) */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rise.seen { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .veil { background: linear-gradient(180deg, rgba(15,12,10,.1) 0%, rgba(15,12,10,.35) 30%, rgba(15,12,10,.92) 58%); }
  .top { padding: 10px 16px; }
  .top nav .wide { display: none; }
  .logo svg { width: 34px; height: 34px; } .logo .wm b { font-size: 24px; } .logo .wm small { font-size: 10px; }
  section.block { padding: 60px 16px; }
  body.no3d .still { top: 80px; transform: none; right: 50%; margin-right: -100px; width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .cta, .ghost { transition: none; }
}
