
* { box-sizing: border-box; }
body { margin: 0; background: #0b0908; color: #d8c8b8; font: 16px/1.55 Georgia, 'Times New Roman', serif; }
a { color: #c8b0a0; }

/* hero: the main menu's scene - the cemetery at night (vs_menu, a lossless screenshot, the shadows lifted) */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; justify-content: center; text-align: center;
        padding: 40px 20px 60px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20px; background: url(/teaser/menu_scene.jpg) center 45% / cover no-repeat;
                filter: brightness(.8) saturate(.9); transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0;
               background: radial-gradient(ellipse at 50% 35%, rgba(42,18,12,.15) 0%, rgba(11,9,8,.75) 70%),
                           linear-gradient(to bottom, rgba(11,9,8,.2) 0%, rgba(11,9,8,0) 40%, #0b0908 100%); }
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
.hero > div { position: relative; z-index: 1; max-width: 720px; }
#cross { display: block; width: 170px; height: 230px; margin: 0 auto -4px; }
h1.logo { margin: 0 0 4px; line-height: 0; }
h1.logo img { width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.8)); }
.line { margin: 14px 0 0; font-size: 22px; font-style: italic; color: #f0e0d0; text-shadow: 0 2px 10px #000; }
.tag { margin: 8px 0 26px; font: 13px Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: #a89080; }

.trailer { max-width: 960px; margin: 10px auto 60px; padding: 0 16px; text-align: center; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid #5a3a22;
                 box-shadow: 0 10px 40px rgba(0,0,0,.7); }
a.dl { display: inline-block; padding: 15px 34px; background: #6e1c14; border: 1px solid #c8964a; color: #f6e6d0;
       font: bold 15px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-radius: 3px;
       transition: background .2s, box-shadow .2s; }
a.dl:hover { background: #8e2a1e; box-shadow: 0 0 24px 2px rgba(200,150,74,.3); }
a.steam { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; background: #171a21; border: 1px solid #66c0f4;
          color: #fff; text-decoration: none; font: bold 16px Arial, sans-serif; letter-spacing: .5px;
          box-shadow: 0 0 0 0 rgba(102,192,244,.4); transition: background .15s, box-shadow .3s; }
a.steam:hover { background: #2a475e; box-shadow: 0 0 24px 2px rgba(102,192,244,.25); }
a.steam svg { width: 22px; height: 22px; }
.fine { margin: 12px 0 0; font: 13px Arial, sans-serif; color: #998878; }
.scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; color: #776;
          font: 11px Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; }

/* the three pitches, each with a shot */
main { max-width: 1060px; margin: 0 auto; padding: 10px 20px 40px; }
h2 { margin: 0 0 8px; font: bold 15px Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: rgb(159, 95, 47); }
.pitch { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: center; margin: 54px 0; }
.pitch:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.pitch:nth-child(even) .shot { order: 2; }
.shot { display: block; border: 1px solid rgb(159, 95, 47); line-height: 0; cursor: zoom-in; position: relative; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform .6s; }
.shot:hover img { transform: scale(1.03); }
.pitch p { margin: 0; color: #c8b8a8; }
.side { display: inline-block; margin-bottom: 10px; padding: 2px 8px; font: bold 11px Arial, sans-serif; letter-spacing: 2px;
        text-transform: uppercase; border: 1px solid; }
.side.v { color: #e07060; border-color: #803830; }
.side.s { color: #d8b070; border-color: rgb(159, 95, 47); }

/* more shots */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 0; }

/* how to get in */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 0; counter-reset: s; }
.steps div { border: 1px solid #3a2a20; background: rgba(0,0,0,.4); padding: 18px; counter-increment: s; }
.steps div::before { content: counter(s); display: block; font: bold 28px Arial, sans-serif; color: rgb(159, 95, 47); margin-bottom: 4px; }
.steps b { display: block; font: bold 13px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #e8d8c8; margin-bottom: 4px; }
.steps span { font-size: 14px; color: #a89888; }

/* the download (was its own page) */
.download { text-align: center; margin: 60px 0 10px; padding: 46px 20px 30px; border-top: 1px solid #2a1c14; border-bottom: 1px solid #2a1c14;
            background: radial-gradient(ellipse at 50% 0%, #2a120c 0%, transparent 60%); scroll-margin-top: 10px; }
.download .line { margin: 0 0 22px; }
a.dl.big { padding: 18px 44px; font-size: 17px; }
a.dl.small { padding: 10px 22px; font-size: 13px; margin: 4px 0 2px; }
.steps.four { grid-template-columns: repeat(4, 1fr); margin-top: 34px; text-align: left; }
.steps em, .panels em { font-style: normal; color: #e8d0b0; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: .92em; color: #e8d0b0; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; text-align: left; }
.panels > div { border: 1px solid #3a2a20; background: rgba(0,0,0,.4); padding: 18px 20px; }
.panels p { margin: 0 0 10px; font-size: 15px; color: #c8b8a8; }
table.keys { width: 100%; border-collapse: collapse; margin: 10px 0 0; font: 14px Arial, sans-serif; color: #b8a898; }
table.keys td { padding: 5px 6px; border-top: 1px solid #2a1c14; vertical-align: top; }
table.keys td:first-child { color: #e0b070; font-weight: bold; white-space: nowrap; width: 1%; padding-right: 12px; }

/* classic content notice + the Steam group */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin: 40px 0 0; }
.about > div { border: 1px solid #3a2a20; background: rgba(0,0,0,.4); padding: 20px 22px; }
.about p { margin: 0 0 10px; font-size: 15px; color: #c8b8a8; }
.about em { color: #f0d8b8; font-style: normal; }
.about .fine { margin: 0; }
a.dc { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 11px 20px; background: #1b2838; color: #fff;
       text-decoration: none; font: bold 15px Arial, sans-serif; border: 1px solid #7983f5; }
a.dc:hover { background: #2a475e; }
a.dc svg { width: 20px; height: 20px; }

footer { text-align: center; color: #6c5c50; font-size: 13px; margin: 26px 0 30px; padding: 0 20px; }
footer a { color: #8c7460; }

/* the big picture */
#big { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 9; cursor: zoom-out; }
#big.on { display: flex; }
#big img { max-width: 94vw; max-height: 92vh; border: 1px solid rgb(159, 95, 47); }

@media (max-width: 760px) {
  .pitch, .pitch:nth-child(even) { grid-template-columns: 1fr; gap: 16px; margin: 40px 0; }
  .pitch:nth-child(even) .shot { order: 0; }
  .steps, .steps.four, .strip, .about, .panels { grid-template-columns: 1fr; }
  .line { font-size: 19px; }
}

/* the age check (gate.js, the admin 2026-10-26: "more like Steam's - don't call it 18+"): covers the page until a
   birth date old enough + "View page" */
html.gated, html.gated body { overflow: hidden; }
#gate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; overflow: auto;
        padding: 16px; background: radial-gradient(ellipse at 50% 40%, #1d1210 0%, #070505 75%); }
.gate-box { max-width: 760px; text-align: center; color: #d8c8b8; font: 16px/1.55 Georgia, 'Times New Roman', serif; }
.gate-box img { width: 100%; max-width: 380px; height: auto; margin-bottom: 18px; }
.gate-box p { margin: 0 0 14px; }
.gate-h { font-size: 21px; line-height: 1.45; color: #f0e2d0; }
.gate-by { margin-bottom: 2px !important; font: 12px Arial, sans-serif; color: #8a7a6e; }
.gate-quote { font-style: italic; color: #c8b6a2; }
.gate-dob { display: inline-block; margin: 8px 0 18px; padding: 14px 26px; border: 1px solid #3a2a24; border-radius: 3px;
            background: rgba(40, 22, 18, .7); }
.gate-dob p { margin: 0 0 10px; font: 13px Arial, sans-serif; color: #c8b6a2; }
.gate-sel select { margin: 0 3px; padding: 5px 8px; border: 1px solid #c8964a; border-radius: 2px; background: #6e1c14;
                   color: #f6e6d0; font: bold 13px Arial, sans-serif; cursor: pointer; }
.gate-sel select:focus { outline: 2px solid #e0b070; outline-offset: 1px; }
.gate-sorry { color: #e07a5a; font: bold 14px Arial, sans-serif; }
.gate-box button { display: inline-block; margin: 6px; padding: 11px 26px; border: 1px solid #c8964a; border-radius: 3px;
                   background: #6e1c14; color: #f6e6d0; font: bold 13px Arial, sans-serif; letter-spacing: 2px;
                   text-transform: uppercase; cursor: pointer; }
.gate-box button:hover { background: #8e2a1e; }
.gate-box button.gate-plain { background: transparent; border-color: #5a4a40; color: #a89080; }
.gate-note { margin-top: 26px !important; font: 12px Arial, sans-serif; color: #7a6a5e; }
@media (max-width: 560px) { .gate-h { font-size: 17px; } .gate-h br { display: none; } .gate-dob { padding: 12px 10px; } }

/* the pages (build_site.py) */
nav.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
          padding: 10px 22px; background: rgba(11,9,8,.86); backdrop-filter: blur(6px); border-bottom: 1px solid #2a1c14; }
nav.top .brand img { height: 30px; width: auto; display: block; }
nav.top .links { display: flex; flex-wrap: wrap; gap: 4px 22px; font: bold 12px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
nav.top .links a { color: #b8a090; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
nav.top .links a:hover, nav.top .links a.on { color: #f0d8b8; border-bottom-color: rgb(159, 95, 47); }
/* the Steam group as a small copy of the community section's Steam button (the admin, 2026-10-22) */
nav.top .links { align-items: center; }
nav.top .links a.sg.dc { margin: 0; padding: 5px 12px; gap: 7px; color: #fff; font: bold 11px Arial, sans-serif; letter-spacing: 2px;
                         border: 1px solid #7983f5; }
nav.top .links a.sg.dc:hover { background: #2a475e; border-bottom-color: #7983f5; }
nav.top .links a.sg.dc svg { width: 15px; height: 15px; }
.page { max-width: 1000px; }
h1.ptitle { margin: 40px 0 14px; font: bold 26px Arial, sans-serif; letter-spacing: 5px; text-transform: uppercase; color: #e8c890; text-align: center; }
.lead { font-size: 19px; color: #e0d0c0; text-align: center; max-width: 780px; margin: 0 auto 30px; }
.page h2 { margin-top: 34px; }
.page p { color: #c8b8a8; }
.page em { color: #f0d8b8; font-style: normal; }
/* a page's head: the gradient (the admin liked the download's), the title + its line; below, no boxes - columns
   divided by thin lines (2026-10-21: "too many boxes") */
.phead { text-align: center; padding: 54px 20px 40px; border-bottom: 1px solid #2a1c14;
         background: radial-gradient(ellipse 70% 120% at 50% 0%, #3a160e 0%, #1c0d08 45%, transparent 80%); }
.phead h1.ptitle { margin: 0 0 10px; }
.phead .line { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 0 0; }
.cols > div { padding: 4px 30px 0; }
.cols > div:first-child { padding-left: 0; }
.cols > div + div { border-left: 1px solid #3a2a20; }
.community { margin-top: 44px; padding-top: 26px; border-top: 1px solid #2a1c14; text-align: center; }
.community p { margin: 0 0 14px; }
.cta { text-align: center; margin: 60px 0 10px; padding: 40px 20px; border-top: 1px solid #2a1c14; border-bottom: 1px solid #2a1c14;
       background: radial-gradient(ellipse at center, #2a120c 0%, transparent 70%); }
.cta .line { margin: 0 0 22px; }
.download { text-align: center; margin: 0; padding: 34px 0 0; border: 0; background: none; }   /* (the one-page teaser's frame off) */
.options { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.opt { padding: 0 34px; }
.opt:first-child { padding-left: 0; }
.opt + .opt { border-left: 1px solid #3a2a20; }
.options.one { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; text-align: center; }
.options.one .opt { padding: 0; }
.opt h2 { margin-top: 0; }
.opt p { font-size: 15px; }
ol.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 18px 0 0;
          padding: 0; text-align: left; }
ol.flow li { counter-increment: f; padding: 0 20px; }
ol.flow li:first-child { padding-left: 0; }
ol.flow li + li { border-left: 1px solid #2a1c14; }
ol.flow li::before { content: counter(f); display: block; font: bold 30px Arial, sans-serif; color: rgb(159, 95, 47); line-height: 1.1; }
ol.flow b { display: block; font: bold 13px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #e8d8c8; margin: 2px 0 4px; }
ol.flow span { font-size: 14px; color: #a89888; }
.opt .dl { margin: 6px 0 4px; }
.opt ol { margin: 10px 0; padding-left: 20px; color: #c8b8a8; font-size: 15px; }
.rec { margin-left: 8px; padding: 1px 7px; border: 1px solid #c8964a; color: #e0b070; font-size: 10px; letter-spacing: 1px; vertical-align: middle; }
a.dl.big { padding: 16px 34px; font-size: 16px; }
a.dl.alt { background: #2a1c14; }
a.dl.alt:hover { background: #3a2a20; }
a.dl.small { padding: 10px 22px; font-size: 13px; margin: 4px 0 2px; }
.sums { text-align: center; margin-top: 14px; }
h2.mid { text-align: center; margin: 46px 0 0; }
.steps.four { grid-template-columns: repeat(4, 1fr); margin-top: 16px; text-align: left; }
.steps em, .panels em { font-style: normal; color: #e8d0b0; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: .92em; color: #e8d0b0; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; padding-top: 30px; border-top: 1px solid #2a1c14;
          text-align: left; }
.panels > div { padding: 0 24px; border: 0; background: none; }
.panels > div:first-child { padding-left: 0; }
.panels > div + div { border-left: 1px solid #2a1c14; }
.panels h2 { margin-top: 0; }
.panels p { margin: 0 0 10px; font-size: 15px; }
table.keys { width: 100%; border-collapse: collapse; margin: 10px 0 0; font: 14px Arial, sans-serif; color: #b8a898; }
table.keys td { padding: 5px 6px; border-top: 1px solid #2a1c14; vertical-align: top; }
table.keys td:first-child { color: #e0b070; font-weight: bold; white-space: nowrap; width: 1%; padding-right: 12px; }
.legal { max-width: 760px; }
.legal ul { color: #c8b8a8; padding-left: 20px; }
.legal li { margin: 0 0 8px; }
footer .flinks { margin-bottom: 8px; font: 13px Arial, sans-serif; }

/* the width (the admin: "break points - so it won't take the full width on large monitors"): one column for the
   nav + every page, wider from 1600 px */
:root { --col: 1200px; }
@media (min-width: 1600px) { :root { --col: 1280px; } }
nav.top { padding: 10px 24px; display: block; }
nav.top .navin { max-width: var(--col); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
main, main.land { max-width: var(--col); }
.page { max-width: min(var(--col), 1040px); }
footer { max-width: var(--col); margin-left: auto; margin-right: auto; }
/* the about page's head on the landing's scene */
.phead.scene { position: relative; overflow: hidden; padding: 90px 20px 70px; background: none; }
.phead.scene::before { content: ''; position: absolute; inset: 0; background: url(/teaser/menu_scene.jpg) center 45% / cover no-repeat;
                       filter: brightness(.75) saturate(.9); }
.phead.scene::after { content: ''; position: absolute; inset: 0;
                      background: radial-gradient(ellipse at 50% 40%, rgba(42,18,12,.2) 0%, rgba(11,9,8,.8) 75%),
                                  linear-gradient(to bottom, rgba(11,9,8,.1), #0b0908); }
.phead.scene > * { position: relative; z-index: 1; }
/* the hero's video loop (the admin, 2026-10-21: "a video loop on the front page in the header"): 8 s of the trailer
   (teaser/hero_loop.webm / .mp4, silent, faded at both ends), under the same dark wash; the menu scene shows until it
   plays; none for people who ask for less motion */
.hero .bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.9); }
@media (prefers-reduced-motion: reduce) { .hero .bgvid { display: none; } }
/* the hero's alpha badge under the logo (the admin, 2026-10-21: "make open alpha stand out more"; 2026-10-22: under
   the logo, a little smaller) */
p.alpha { display: inline-block; margin: 12px 0 14px; padding: 5px 14px; border: 1px solid #c8964a; border-radius: 2px;
          background: rgba(110,28,20,.55); color: #f6e0b0; font: bold 11px Arial, sans-serif; letter-spacing: 3px;
          text-transform: uppercase; animation: alphaglow 3.2s ease-in-out infinite; }
p.alpha span:first-child { color: #ffd88a; }
@keyframes alphaglow { 0%, 100% { box-shadow: 0 0 10px 0 rgba(200,150,74,.25); }
                       50% { box-shadow: 0 0 26px 4px rgba(220,160,80,.45); } }
@media (prefers-reduced-motion: reduce) { p.alpha { animation: none; box-shadow: 0 0 16px 2px rgba(200,150,74,.35); } }
/* the landing, as Black Mesa's page: big section heads, text, the trailer, a gallery, a band, news */
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
a.dl.ghost { background: rgba(0,0,0,.35); border-color: #8a6a4a; }
a.dl.ghost:hover { background: rgba(60,30,20,.6); }
main.land { padding-top: 0; }
.sec { padding: 70px 0 10px; text-align: center; }
h2.big { font: bold 28px Arial, sans-serif; letter-spacing: 7px; color: #e8c890; margin: 0 0 18px; }
.sec .lead { max-width: 780px; margin: 0 auto 10px; font-size: 18px; color: #d8c8b8; }
.sec em { color: #f0d8b8; font-style: normal; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; text-align: left; }
.three > div { padding: 0 28px; }
.three > div:first-child { padding-left: 0; }
.three > div + div { border-left: 1px solid #2a1c14; }
.three h3 { margin: 6px 0 6px; font: bold 16px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #e8d8c8; }
.three p { margin: 0; color: #b8a898; }
.side.n { color: #c8b8a8; border-color: #5a4a40; }
.sec .trailer { margin: 0 auto; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.band { position: relative; margin: 80px 0 0; padding: 120px 20px; text-align: center; overflow: hidden; }
.band::before { content: ''; position: absolute; inset: 0; background: url(/teaser/onslaught.jpg) center 40% / cover no-repeat;
                filter: brightness(.55) saturate(.85); }
.band::after { content: ''; position: absolute; inset: 0;
               background: linear-gradient(to bottom, #0b0908 0%, rgba(11,9,8,.15) 30%, rgba(11,9,8,.15) 70%, #0b0908 100%); }
.band > div { position: relative; z-index: 1; }
.band .line { margin: 0 0 24px; font-size: 26px; }
p.center { text-align: center; }
.news { max-width: 860px; margin: 10px auto 0; text-align: left; }
.news article { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 20px 0; border-top: 1px solid #2a1c14; }
.news article:last-child { border-bottom: 1px solid #2a1c14; }
.news img { width: 100%; height: auto; border: 1px solid #3a2a20; }
.news time { font: 12px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #9a7a5a; }
.news h3 { margin: 4px 0 6px; font: bold 18px Arial, sans-serif; color: #f0d8b8; }
.news p { margin: 0; color: #b8a898; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .three { grid-template-columns: 1fr; }
  .three > div { padding: 14px 0; border-left: 0 !important; }
  .news article { grid-template-columns: 1fr; }
}
/* only the hero fills the screen under the bar (the admin, 2026-10-22: "only the hero section is the full viewport,
   the rest normal") */
.hero { min-height: calc(100svh - 52px); }
.sec.game .trailer { margin: 24px auto 0; }
.band .line { font-size: 30px; }
@media (max-width: 760px) {
  .cols, .options, .panels, .steps.four, ol.flow { grid-template-columns: 1fr; }
  .cols > div, .opt, .panels > div, ol.flow li { padding: 14px 0; border-left: 0 !important; }
  /* phones: the logo on top, the links in one centred row under it */
  nav.top { padding: 8px 12px; }
  nav.top .navin { flex-direction: column; gap: 6px; }
  nav.top .links { justify-content: center; gap: 4px 16px; font-size: 11px; letter-spacing: 1.5px; }
  nav.top .links a.sg.dc { padding: 4px 9px; font-size: 10px; letter-spacing: 1px; }
}
