/* Offworld Corporation site. Plain CSS, no build step. */
:root{
  --bg:#0b0f1e; --bg2:#121a33; --card:#161f3d; --line:rgba(182,192,255,.16);
  --text:#f3f5ff; --muted:#b6c0ff; --accent:#d94f2b; --accent-ink:#fff; --navy:#1e2a78;
  --header:#f5f7ff; --header-ink:#1e2a78;
  --radius:14px; --max:1100px;
}
:root[data-theme="light"]{
  --bg:#f5f7ff; --bg2:#e9edff; --card:#ffffff; --line:rgba(30,42,120,.14);
  --text:#12183a; --muted:#46507f; --header:#ffffff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);
  font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
img{max-width:100%;display:block}
a{color:var(--accent)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}

/* header */
.top{background:var(--header);position:sticky;top:0;z-index:10;box-shadow:0 1px 0 var(--line)}
.top .wrap{display:flex;align-items:center;gap:12px;min-height:64px}
.logo img{height:44px;width:auto;cursor:pointer}
.top nav{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pill{display:inline-block;padding:7px 15px;border-radius:999px;border:1.5px solid var(--accent);
  color:var(--accent);text-decoration:none;font-weight:600;font-size:14px;background:transparent;cursor:pointer;font-family:inherit}
.pill.solid{background:var(--accent);color:var(--accent-ink)}
.pill.navy{background:var(--navy);border-color:var(--navy);color:#fff}
.pill:hover{filter:brightness(1.1)}

/* sections */
section{padding:56px 0}
h1,h2,h3{line-height:1.2;margin:0 0 12px}
h1{font-size:clamp(34px,6vw,58px)}
h2{font-size:clamp(26px,3.4vw,36px)}
h3{font-size:19px}
p{margin:0 0 14px;color:var(--muted);max-width:68ch}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:13px;font-weight:700;color:var(--accent);margin-bottom:10px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* Gloaming Hand banner */
.banner{position:relative;min-height:min(78vh,640px);display:flex;align-items:flex-end;overflow:hidden;padding:0;background:#000}
.banner .slides img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
.banner .slides img.on{opacity:1}
.banner::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,10,20,.96) 12%,rgba(8,10,20,.7) 50%,rgba(8,10,20,.1))}
.banner .wrap{position:relative;z-index:2;padding-bottom:44px;padding-top:120px;width:100%}
.banner h1{color:#fff}
.banner p{color:#e6e2d6}
.phases{display:flex;gap:6px;margin-top:16px;flex-wrap:wrap}
.phases button{font:inherit;font-size:13px;font-weight:600;padding:5px 12px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.35);color:#fff}
.phases button.on{background:#e8c66a;color:#1b1406;border-color:#e8c66a}

/* game cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;
  text-decoration:none;color:inherit;transition:transform .15s ease}
.card:hover{transform:translateY(-3px)}
.card img{aspect-ratio:460/215;object-fit:cover;width:100%}
.card .body{padding:14px 16px 18px;display:flex;flex-direction:column;flex:1}
.card p{font-size:15px;margin-bottom:10px}
.card .meta{margin-top:auto;font-size:13px;color:var(--muted);opacity:.85}
.card.big{grid-column:1/-1}
div.card:hover{transform:none}

/* media */
.video{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:#000}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.steam-widget{width:100%;max-width:646px;height:190px;border:0;border-radius:8px;display:block;margin-top:18px}
.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.shots img{border-radius:8px;cursor:zoom-in;aspect-ratio:16/9;object-fit:cover;width:100%}
.two{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;align-items:start}
@media (max-width:820px){.two{grid-template-columns:1fr}}
ul.facts{margin:0 0 14px;padding-left:20px;color:var(--muted)}
ul.facts li{margin-bottom:6px}

/* game page hero */
.hero{padding:0;position:relative;background:#000}
.hero img.bg{width:100%;height:min(52vh,460px);object-fit:cover;opacity:.5}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,10,20,.96) 5%,rgba(8,10,20,.35) 70%)}
.hero .wrap{z-index:2}
.hero .wrap{position:absolute;left:0;right:0;bottom:28px}
.hero h1{color:#fff}
.hero p{color:#eee}
.back{display:inline-block;margin-bottom:12px;color:#fff;text-decoration:none;font-size:14px;opacity:.85}

/* follow + footer */
.socials{display:flex;gap:10px;flex-wrap:wrap}
.alt{background:var(--bg2)}
footer{padding:36px 0 48px;font-size:14px;color:var(--muted);border-top:1px solid var(--line)}
footer p{font-size:14px}

/* lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:50;cursor:zoom-out;padding:20px}
.lightbox.open{display:flex}
.lightbox img{max-height:92vh;border-radius:6px}

/* the rocket */
.rocket{position:fixed;left:50%;bottom:-120px;font-size:64px;z-index:60;pointer-events:none;animation:launch 2.4s ease-in forwards}
@keyframes launch{0%{transform:translate(-50%,0) rotate(-45deg)}20%{transform:translate(-48%,-10px) rotate(-45deg)}100%{transform:translate(-50%,-140vh) rotate(-45deg)}}
@media (prefers-reduced-motion:reduce){.banner .slides img{transition:none}.card{transition:none}.rocket{display:none}}

/* ---------- The Gloaming Hand look (banner on the homepage, its own page) ---------- */
@font-face{font-family:"EB Garamond";src:url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"EB Garamond";src:url("fonts/eb-garamond-latin-600-normal.woff2") format("woff2");font-weight:600 700;font-display:swap}
@font-face{font-family:"EB Garamond";src:url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
.gloaming{--g-ink:#efe3c8;--g-gold:#e8c66a;--g-ember:#b3412c;--g-dark:#140d08}
.gloaming h1,.gloaming .eyebrow,.gloaming p{font-family:"EB Garamond",Garamond,Georgia,serif}
.gloaming h1{font-weight:600;letter-spacing:.01em;color:var(--g-ink);text-shadow:0 2px 18px rgba(0,0,0,.6)}
.gloaming h1 a{color:inherit;text-decoration:none}
.gloaming h1 a:hover{color:var(--g-gold)}
.gloaming .eyebrow{color:var(--g-gold);font-weight:600;letter-spacing:.18em;font-size:15px}
.gloaming .eyebrow::after{content:"";display:block;width:120px;height:1px;margin-top:10px;background:linear-gradient(90deg,var(--g-gold),transparent)}
.gloaming p{color:var(--g-ink);font-size:20px;line-height:1.5;font-style:italic}
.gloaming .pill{font-family:"EB Garamond",Garamond,Georgia,serif;font-size:17px;border-radius:4px;border-color:var(--g-gold);color:var(--g-gold);background:rgba(20,13,8,.55)}
.gloaming .pill.solid{background:var(--g-gold);color:var(--g-dark)}
.gloaming .pill.ghost{color:var(--g-ink);border-color:rgba(239,227,200,.6)}
.banner.gloaming::after{background:linear-gradient(0deg,rgba(20,13,8,.97) 12%,rgba(20,13,8,.72) 50%,rgba(20,13,8,.15))}
.hero.gloaming::after{background:linear-gradient(0deg,rgba(20,13,8,.97) 5%,rgba(20,13,8,.35) 70%)}
.hero.gloaming .back{font-family:inherit;color:var(--g-ink)}
/* the game's own page: warm brown and gold below the Offworld header */
.gloaming-page{--bg:#140d08;--bg2:#1d140d;--card:#22180f;--line:rgba(232,198,106,.18);--text:#efe3c8;--muted:#cdbd9b;--accent:#e8c66a;--accent-ink:#140d08}
.gloaming-page main h2,.gloaming-page section h2,.gloaming-page section h3{font-family:"EB Garamond",Garamond,Georgia,serif;font-weight:600}
.gloaming-page section h2{font-size:clamp(30px,3.8vw,40px)}
.gloaming-page .pill{border-radius:4px}
.gloaming-page .top .pill{border-radius:999px}
.gloaming-page .top .pill.solid{background:#d94f2b;border-color:#d94f2b;color:#fff}
.gloaming-page .top .pill:not(.solid):not(.navy){color:#d94f2b;border-color:#d94f2b}

/* ---------- Each game's own page wears that game's look ---------- */
@font-face{font-family:"Oswald";src:url("fonts/oswald-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"DM Serif Display";src:url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Cinzel";src:url("fonts/cinzel-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
.theme-mrq section h1,.theme-mrq section h2,.theme-mrq section h3,
.theme-amal section h1,.theme-amal section h2,.theme-amal section h3,
.theme-omf section h1,.theme-omf section h2,.theme-omf section h3{font-family:var(--head);font-weight:var(--head-w);letter-spacing:var(--head-ls);text-transform:var(--head-case)}
.theme-mrq .top .pill,.theme-amal .top .pill,.theme-omf .top .pill{border-radius:999px}
.theme-mrq .top .pill:not(.navy),.theme-amal .top .pill:not(.navy),.theme-omf .top .pill:not(.navy){border-color:#d94f2b;color:#d94f2b}
.theme-mrq .top .pill.solid,.theme-amal .top .pill.solid,.theme-omf .top .pill.solid{background:#d94f2b;color:#fff}
.theme-mrq .hero .eyebrow,.theme-amal .hero .eyebrow,.theme-omf .hero .eyebrow{color:var(--accent)}

/* March of the Red Queen: black, white and the Queen's red */
.theme-mrq{--bg:#0d0c0c;--bg2:#171515;--card:#1c1919;--line:rgba(255,255,255,.12);--text:#f4f0ea;--muted:#c9c2b8;--accent:#c8202a;--accent-ink:#fff;
  --head:"Oswald","Arial Narrow",Arial,sans-serif;--head-w:600;--head-ls:.02em;--head-case:uppercase}
.theme-mrq .pill{border-radius:2px}
.theme-mrq .hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(13,12,12,.97) 5%,rgba(13,12,12,.3) 70%)}
.theme-mrq .hero h1 span,.theme-mrq section h2::first-letter{color:var(--accent)}

/* Amalgamated: cream paper, retro stripes, an old serif */
.theme-amal{--bg:#efe6d2;--bg2:#e5d9bf;--card:#f7f1e3;--line:rgba(60,40,20,.18);--text:#2b2118;--muted:#5a4a3a;--accent:#d9622b;--accent-ink:#fff;
  --head:"DM Serif Display",Georgia,serif;--head-w:400;--head-ls:.03em;--head-case:uppercase}
.theme-amal .pill{border-radius:3px}
.theme-amal .hero{background:#2b2118}
.theme-amal .hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(43,33,24,.95) 5%,rgba(43,33,24,.25) 70%)}
.theme-amal .hero .eyebrow{color:#f0b84a}
.theme-amal section:not(.hero){position:relative}
.theme-amal main::before,.theme-amal .hero + section::before{content:"";display:block;height:12px;margin:-56px 0 44px;
  background:linear-gradient(180deg,#d9622b 0 25%,#f0b84a 25% 50%,#7fae9b 50% 75%,#2c6f80 75%)}
.theme-amal section h2{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}
.theme-amal .card .meta{color:var(--muted)}

/* One More Floor: a dark tower, gold lettering, purple and green floors */
.theme-omf{--bg:#16131f;--bg2:#1f1a2c;--card:#241e33;--line:rgba(217,178,74,.2);--text:#f1e9d4;--muted:#c4b9a0;--accent:#d9b24a;--accent-ink:#16131f;
  --head:"Cinzel",Georgia,serif;--head-w:600;--head-ls:.08em;--head-case:uppercase}
.theme-omf .pill{border-radius:3px}
.theme-omf .hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(22,19,31,.97) 5%,rgba(22,19,31,.3) 70%)}
.theme-omf section.alt{background:linear-gradient(180deg,#1f1a2c,#1a2a24)}
.theme-omf .shots img{border:1px solid var(--line)}

/* Vaudeville (Bumblebee Studios): black and white silent-film noir, deco lettering */
@font-face{font-family:"Poiret One";src:url("fonts/poiret-one-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
.theme-vaud{--bg:#0a0a0a;--bg2:#151515;--card:#1a1a1a;--line:rgba(255,255,255,.14);--text:#f2f2f2;--muted:#bdbdbd;--accent:#f2f2f2;--accent-ink:#0a0a0a}
.theme-vaud section h1,.theme-vaud section h2,.theme-vaud section h3,.theme-vaud-band h2{font-family:"Poiret One",Georgia,serif;font-weight:400;letter-spacing:.14em;text-transform:uppercase}
.theme-vaud .pill{border-radius:0}
.theme-vaud .top .pill{border-radius:999px}
.theme-vaud .top .pill:not(.navy){border-color:#d94f2b;color:#d94f2b}
.theme-vaud .top .pill.solid{background:#d94f2b;color:#fff}
.theme-vaud .hero img.bg{filter:grayscale(1) contrast(1.1)}
.theme-vaud .hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,10,10,.97) 5%,rgba(10,10,10,.3) 70%)}
.theme-vaud .shots img{filter:grayscale(.15)}
/* the Bumblebee band on the homepage */
.theme-vaud-band{background:#0a0a0a;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}
.theme-vaud-band h2{color:#f2f2f2;font-size:clamp(30px,4vw,42px)}
.theme-vaud-band p{color:#c8c8c8}
.theme-vaud-band .eyebrow{color:#f2c14e}
.theme-vaud-band .pill{border-radius:0;border-color:#f2f2f2;color:#f2f2f2}
.theme-vaud-band .pill.solid{background:#f2f2f2;color:#0a0a0a}
.theme-vaud-band a{color:#f2c14e}
.vaud-header{border-radius:4px;width:100%}
.theme-vaud-band .shots{grid-template-columns:repeat(4,1fr)}
@media (max-width:700px){.theme-vaud-band .shots{grid-template-columns:repeat(2,1fr)}}
