/* EmporMogul landing page. Brand colour #fb923c (decided 2026-10-23, docs/Brand.md); navy panels from the game's interface. */

/* Inter, the Empor font (SIL OFL 1.1), served from our own server. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand: MAIN is 400 (#fb923c). On the dark page: 400 for accents, 300-200 for light text and glows. */
  --brand-200: #FED7AA;
  --brand-300: #FDBA74;
  --brand-400: #FB923C;
  --brand-500: #F97316;
  --brand-700: #C2410C;
  --brand-rgb: 251, 146, 60;
  /* Neutrals from the game's interface. */
  --navy: #1B2854;
  --navy-deep: #0F1734;
  --slot: #080D1F;
  --white: #F8FAFC;
  --grey: #CBD5E1;
  /* Status only, never the brand. */
  --green: #4ADE80;
  --wide: 1120px;

  --bg: radial-gradient(1400px 700px at 75% -10%, var(--navy), var(--navy-deep) 55%, var(--slot));
  --bg-solid: var(--slot);
  --text: var(--white);
  --muted: var(--grey);
  --accent: var(--brand-400);
  --accent-2: var(--brand-300);
  --card: var(--slot);
  --card-line: rgba(var(--brand-rgb), .38);
  --card-shadow: none;
  --shot-line: rgba(var(--brand-rgb), .3);
  --money: var(--green);
  --focus: var(--brand-300);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-solid); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p, ul { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--brand-400); color: var(--slot); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.hero h1 { font-size: clamp(32px, 8.6vw, 68px); font-weight: 800; letter-spacing: -.03em; margin-top: 8px; white-space: nowrap; }

/* The Empor logo: the brand square with the white stepped E, 0.3 of its size apart from the wordmark. */
.lockup { display: inline-flex; align-items: center; gap: .3em; }
.mark { width: 1.05em; height: 1.05em; flex: none; filter: drop-shadow(0 0 .25em rgba(var(--brand-rgb), .55)); }
.lockup .brand {
  background: linear-gradient(90deg, var(--brand-400), var(--brand-300)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: clamp(18px, 2.1vw, 21px); font-weight: 500; color: var(--muted); margin-top: 14px; max-width: 34ch; }
.chip {
  display: inline-block; margin-top: 18px; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--accent-2);
}

/* ---------- Language switch ---------- */
.langs {
  position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; gap: 2px; padding: 3px;
  background: rgba(15, 23, 52, .86); border: 1.5px solid rgba(var(--brand-rgb), .6); border-radius: 999px;
}
.langs a {
  min-width: 44px; padding: 6px 12px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 600;
  letter-spacing: .04em; color: var(--muted); text-decoration: none;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { background: var(--brand-400); color: var(--slot); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Sections ---------- */
main { padding-bottom: 24px; }
.block { max-width: calc(var(--wide) + 32px); margin: 96px auto 0; padding: 0 16px; display: grid; gap: 28px; }
.block h2 { font-size: clamp(30px, 4.4vw, 44px); }
.lede { font-size: 20px; font-weight: 500; margin-top: 12px; }
.text > p:not(.lede) { color: var(--muted); margin-top: 14px; }
.text { max-width: 60ch; }
@media (min-width: 900px) {
  .block:has(.shots) { grid-template-columns: 5fr 6fr; align-items: center; gap: 48px; }
  .block:has(.shots):nth-of-type(even) .text { order: 2; }
}

.points, .cast { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 28px; color: var(--muted); }
.points li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); transform: rotate(45deg);
}
.cast li { color: var(--muted); }
.cast strong { color: var(--text); }

.shots { display: grid; gap: 16px; }
.shots img, .gallery img { border-radius: 14px; border: 1.5px solid var(--shot-line); }

.log { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .log { grid-template-columns: repeat(3, 1fr); } }
.log li { background: var(--card); border: 1.5px solid var(--card-line); box-shadow: var(--card-shadow); border-radius: 18px; padding: 20px; }
.log h3 { font-size: 18px; color: var(--accent); }
.log p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.money { color: var(--money); font-weight: 700; }

.gallery { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .2s ease; }
.shot:hover img { transform: translateY(-3px); }

/* ---------- Footer ---------- */
.foot { max-width: calc(var(--wide) + 32px); margin: 96px auto 0; padding: 28px 16px 40px; border-top: 1px solid var(--card-line); color: var(--muted); font-size: 15px; }
.foot strong { color: var(--text); }
.foot .lockup { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 10px; }
.foot .mark { filter: none; }
.status { margin-top: 10px; }

/* ---------- Screenshot viewer ---------- */
.viewer { border: 0; padding: 8px; background: transparent; max-width: min(96vw, 1600px); color: var(--white); }
.viewer::backdrop { background: rgba(8, 13, 31, .9); }
.viewer img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.viewer p { text-align: center; margin-top: 12px; padding: 0 16px; }
.viewer form { display: flex; justify-content: flex-end; }
.viewer-close {
  font: inherit; font-size: 28px; line-height: 1; width: 44px; height: 44px; margin-bottom: 8px; cursor: pointer;
  color: var(--white); background: rgba(27, 40, 84, .9); border: 1.5px solid var(--brand-400); border-radius: 50%;
}

/* ---------- Neon HUD hero ---------- */
.hero { min-height: min(88vh, 820px); display: grid; align-items: end; padding: 0 16px 48px; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 31, 0) 40%, rgba(8, 13, 31, .95)); }
.hero-copy {
  position: relative; z-index: 1; width: 100%; max-width: 640px; margin-left: max(0px, calc((100% - var(--wide)) / 2));
  background: linear-gradient(180deg, rgba(27, 40, 84, .9), rgba(15, 23, 52, .94));
  border: 2px solid var(--brand-400); border-radius: 22px; padding: 26px 28px;
  box-shadow: 0 0 24px rgba(var(--brand-rgb), .4), inset 0 0 18px rgba(var(--brand-rgb), .16);
}
.hero h1 { text-shadow: 0 0 18px rgba(var(--brand-rgb), .35); }
.chip { box-shadow: 0 0 12px rgba(var(--brand-rgb), .35); }
.block h2 { text-shadow: 0 0 16px rgba(var(--brand-rgb), .25); }
.log li { box-shadow: inset 0 0 14px rgba(var(--brand-rgb), .1); }
@media (max-width: 699px) {
  .hero { min-height: 0; display: block; padding: 0 16px; }
  .hero-media img { position: static; aspect-ratio: 4 / 3; margin: 0 -16px; width: calc(100% + 32px); max-width: none; }
  .hero::after { display: none; }
  .hero-copy { margin-top: -48px; padding: 22px 20px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- 404 page ---------- */
.missing { min-height: 100vh; margin-top: 0; align-content: center; }
.missing h1 { font-size: clamp(36px, 6vw, 56px); text-shadow: 0 0 16px rgba(var(--brand-rgb), .25); }
.missing a { color: var(--brand-300); }
.missing-tr { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--card-line); }
.missing-tr h2 { font-size: 28px; }
.missing-tr p { margin-top: 12px; }
