/* HORRORTEL landing page. Colours and the Oswald face come from the game's UI (src/ui/ui_theme.gd); the title is the
   hotel's neon sign with its dead T, as on floor 1. */
@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald.woff") format("woff");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080a;
  --panel: #0e1013;
  --line: rgba(255, 255, 255, .09);
  --ink: #d9dbd8;
  --dim: #8b908c;
  --faint: #5c615e;
  --red: #d4231f;
  --neon: #ff3b2f;
  --green: #5fd68a;
  --display: "Oswald", "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --gutter: clamp(18px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
/* film grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* the street band takes whatever height is left, so the hero fits the screen and the scroll cue stays on it */
  grid-template-rows: auto minmax(140px, 1fr);
  overflow: hidden;
  /* the sign's light on the wet facade */
  background:
    radial-gradient(ellipse 60% 42% at 50% 30%, rgba(212, 35, 31, .26), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(120, 14, 20, .25), transparent 70%),
    var(--bg);
}
.hero-copy {
  align-self: center;
  text-align: center;
  padding: calc(10vh + env(safe-area-inset-top, 0px)) var(--gutter) 4vh;
  position: relative;
  z-index: 1;
}

.sign {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 14vw, 156px);
  line-height: 1;
  letter-spacing: .09em;
  padding-left: .09em; /* letter-spacing trails the last letter: keep the word centred */
  /* hollow neon tubes as on the in-game sign: the glow follows the outline only (drop-shadow, not text-shadow) */
  color: transparent;
  -webkit-text-stroke: .03em #ffd3cd;
}
.sign .lit, .sign .dead { display: inline-block; }
.sign .lit {
  filter:
    drop-shadow(0 0 .02em #ff6a5e)
    drop-shadow(0 0 .08em var(--neon))
    drop-shadow(0 0 .28em rgba(212, 35, 31, .8));
}
/* the dead tube: dark, no glow, and once in a while it almost catches */
.sign .dead {
  -webkit-text-stroke-color: #421a1c;
  animation: dead-letter 9s infinite;
}
@keyframes dead-letter {
  0%, 71%, 73.5%, 75%, 100% { -webkit-text-stroke-color: #421a1c; filter: none; }
  72%, 74.2% { -webkit-text-stroke-color: #ffd3cd; filter: drop-shadow(0 0 .08em var(--neon)) drop-shadow(0 0 .28em rgba(212, 35, 31, .8)); }
}

.tagline {
  margin: 1.6em 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(14px, 1.9vw, 19px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

.actions {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-width: 232px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s, box-shadow .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-stack { flex-direction: column; gap: 1px; }
.btn small {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .72;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 0 0 1px #ff6156, 0 0 26px rgba(212, 35, 31, .45), 0 12px 32px rgba(0, 0, 0, .55);
}
.btn-primary:hover {
  background: #e52b26;
  box-shadow: inset 0 0 0 1px #ff8178, 0 0 40px rgba(255, 59, 47, .6), 0 12px 32px rgba(0, 0, 0, .55);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(10, 11, 13, .6);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(24, 26, 30, .7); }

.others {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--dim);
}
.others a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.others a:hover { text-decoration-color: var(--neon); }
.others a.all { color: var(--dim); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
  opacity: .8;
  transition: opacity .15s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue svg { animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 1px 4px #000); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.build {
  margin: 18px 0 0;
  min-height: 1.4em;
  font: 12px/1.4 var(--mono);
  color: var(--faint);
}

.street { position: relative; }
.street img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 38%, #000 78%, transparent 100%);
}

/* ---------------------------------------------------------------- sections */
main { padding: 0 var(--gutter); }
main > * { max-width: 1040px; margin-inline: auto; }

.pitch { text-align: center; padding-block: clamp(56px, 10vw, 110px) clamp(40px, 6vw, 64px); }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
}
.pitch h2 {
  margin: 0 auto;
  max-width: 17em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.pitch p:last-child { margin: 22px auto 0; max-width: 34em; color: var(--dim); }

.shots {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot-wide { grid-column: 1 / -1; }
}
.shot { margin: 0; position: relative; }
.shot a { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(.92); }
.shot a:hover img { transform: scale(1.025); filter: saturate(1.05); }
.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px #000, 0 0 2px #000;
  pointer-events: none;
}

.downloads { padding-block: clamp(64px, 10vw, 110px) 0; scroll-margin-top: 24px; }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.section-head img { border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); flex: none; }
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.muted { margin: 4px 0 0; color: var(--dim); font-size: 15px; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%), var(--panel);
}
.card.is-yours { border-color: rgba(212, 35, 31, .7); box-shadow: 0 0 0 1px rgba(212, 35, 31, .25), 0 0 32px rgba(212, 35, 31, .12); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.os { font-family: var(--display); font-size: 25px; font-weight: 500; letter-spacing: .04em; }
.chip {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
/* one option per store listing or download; the last one fills the card so every card's buttons line up */
.option { display: flex; flex-direction: column; gap: 6px; }
.option:last-child { flex: 1; }
.option + .option { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.meta { font: 13px/1.4 var(--mono); color: var(--dim); }
.note { font-size: 14px; color: var(--faint); flex: 1; }
.card .btn { min-width: 0; min-height: 46px; margin-top: 10px; font-size: 15px; }
.card:not(.is-yours) .btn-primary { background: transparent; box-shadow: inset 0 0 0 1px rgba(212, 35, 31, .8); }
.card:not(.is-yours) .btn-primary:hover { background: var(--red); }
.sha { margin-top: 4px; font-size: 12px; color: var(--faint); }
.sha summary { cursor: pointer; width: max-content; }
.sha summary:hover { color: var(--dim); }
.sha code { display: block; margin-top: 6px; font: 11px/1.5 var(--mono); word-break: break-all; user-select: all; color: var(--dim); }
.empty { color: var(--dim); }

.footer {
  margin-top: clamp(64px, 10vw, 110px);
  padding: 36px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(1040px + 2 * var(--gutter));
  margin-inline: auto;
}
.footer img { height: 40px; width: auto; opacity: .85; }
.footer p { margin: 0; font: 12px/1.5 var(--mono); color: var(--faint); }
.footer a { color: var(--dim); text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }

/* privacy.html: long-form text in the landing page's palette */
.doc-bar { padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.doc-home {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
}
.doc-home:hover { color: var(--neon); }
.doc { max-width: 44em; margin-inline: auto; padding-block: clamp(40px, 8vw, 80px) 0; }
.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  text-transform: uppercase;
}
.doc-date { margin: 10px 0 34px; font: 13px/1.5 var(--mono); color: var(--faint); }
.doc h2 {
  margin: 38px 0 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* :where() keeps this at element specificity, so .eyebrow and .doc-date (also <p>s) keep their own colour and spacing */
:where(.doc) p { margin: 0 0 14px; color: var(--dim); }
.doc a { color: var(--ink); text-underline-offset: 3px; }

@media (max-width: 520px) {
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
  .section-head img { width: 52px; height: 52px; }
  .tagline { letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sign .dead, .scroll-cue svg { animation: none; }
  .shot img, .btn { transition: none; }
}
