/* LAST LIGHT's site: the game's night palette (the cyan orb, gold, lilac text), kept minimal. */
@font-face {
  font-family: "Exo 2";
  src: url("/fonts/Exo-2-Bold-Italic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #07071a;
  --panel: rgba(28, 24, 74, 0.5);
  --border: rgba(190, 182, 230, 0.16);
  --text: #ece9ff;
  --muted: #aaa3d8;
  --cyan: #5cecff;
  --cyan-deep: #12a8c4;
  --red: #ff5f74;
  --ok: #7dff9a;
  --display: "Exo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 920px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 17px/1.6 var(--body);
  color: var(--text);
  background: var(--bg) radial-gradient(1000px 600px at 50% -10%, rgba(92, 236, 255, 0.1), transparent 60%) no-repeat;
  min-height: 100vh;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #b6f6ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(190, 182, 230, 0.1); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cyan); color: #000; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, .brand, .btn { font-family: var(--display); font-style: italic; font-weight: 700; }
h2 { font-size: 1.6rem; margin: 0 0 0.6em; }

main > section { max-width: var(--max); margin: 0 auto; padding: 48px 20px; }
.note { color: var(--muted); font-size: 0.92rem; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; gap: 20px; max-width: var(--max); margin: 0 auto; padding: 16px 20px; }
.brand { color: var(--text); text-decoration: none; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.nav nav { display: flex; gap: 18px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--text); }
.orb {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 25%, var(--cyan) 45%, rgba(92, 236, 255, 0) 72%);
  box-shadow: 0 0 12px 3px rgba(92, 236, 255, 0.5);
}

/* ---------- button ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #8af2ff, var(--cyan) 40%, var(--cyan-deep));
  color: #031018; font-size: 1.1rem; text-decoration: none; line-height: 1.2;
}
.btn:hover { color: #031018; filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- hero, trailer, about ---------- */
.hero { text-align: center; padding-top: 56px; padding-bottom: 16px; }
.hero h1 {
  font-size: clamp(3rem, 11vw, 6rem); margin: 0; line-height: 1; color: #fff;
  text-shadow: 0 0 28px rgba(92, 236, 255, 0.4);
}
.lead { max-width: 560px; margin: 1em auto 1.4em; color: #d9d4ff; font-size: 1.1rem; }
.hero .note { margin-top: 1em; }

.trailer { padding-top: 16px; }
.video { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; }
.video video { display: block; width: 100%; height: 100%; }

.facts { margin: 0 0 28px; padding-left: 1.2em; color: #d4cff8; }
.facts li { margin: 0.35em 0; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shot { padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #000; cursor: zoom-in; display: block; width: 100%; }
.shot img { display: block; width: 100%; height: auto; image-rendering: pixelated; aspect-ratio: 4 / 3; }
.shot:hover { border-color: var(--cyan); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1280px, 96vw); }
dialog.lightbox::backdrop { background: rgba(3, 3, 12, 0.9); }
dialog.lightbox img { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 8px; }
dialog.lightbox p { text-align: center; color: var(--muted); margin: 8px 0 0; }
dialog.lightbox button { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* ---------- install ---------- */
.steps { padding-left: 1.3em; }
.steps > li { margin: 0.8em 0; }
.steps ul { padding-left: 1.1em; margin: 0.5em 0; color: #d4cff8; }
.steps ul li { margin: 0.4em 0; }

/* ---------- feedback ---------- */
.form { max-width: 620px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
.row { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: #0b0a24; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
textarea { resize: vertical; }
#f-log { font-family: var(--mono); font-size: 0.82rem; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; }
[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 0.86rem; margin: 4px 0 0; }
.err:empty { display: none; }
details.log summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.actions .note { margin: 0; }
.status { margin: 6px 0 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--red); }

/* ---------- footer and the other pages ---------- */
.footer { border-top: 1px solid var(--border); text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 0.92rem; }
.footer p { margin: 0.3em auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.legal h1 { font-size: 2.4rem; margin: 0 0 0.2em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal li { margin: 0.4em 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { color: var(--cyan); }
.legal .table { overflow-x: auto; }
.notfound { text-align: center; padding: 100px 20px; }
