/* The site's one stylesheet: the game's dark gold-rimmed UI (UiStyle colours, Cinzel for headings) for every page. */
@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --text: #f2f0e6;
  --dim: #9ea8bd;
  --gold: #ffd666;
  --cream: #f5ebd1;
  --rim: #d9b873;
  --teal: #299e99;
  --face: #2b3042;
  --panel: #171a21;
  --inset: #0d0f17;
  --line: #2b3042;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--inset);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, .brand, .btn, .kicker, .name { font-family: "Cinzel", Georgia, serif; }
h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; color: var(--gold); margin: 0 0 28px; text-align: center; }
section { padding: 64px 0; }

/* A window as the game draws one: dark panel, gold rim, a thin inner line. */
.panel {
  background: rgba(23, 26, 33, .92);
  border: 2px solid var(--rim);
  border-radius: 18px;
  box-shadow: inset 0 0 0 4px rgba(13, 15, 23, .9), inset 0 0 0 5px rgba(217, 184, 115, .35), 0 12px 32px rgba(0, 0, 0, .5);
}

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: .04em; text-decoration: none;
}
.btn.gold { background: linear-gradient(180deg, #ffe08a, #e0a63a); color: #3a2206; box-shadow: 0 4px 0 #8a5a16; }
.btn.dark { background: var(--face); color: var(--cream); border: 2px solid var(--rim); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* top bar, on every page */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; line-height: 1; color: var(--gold); text-decoration: none; letter-spacing: .06em; }
.brand img { width: 38px; height: 38px; }
.bar nav { display: flex; gap: 20px; font-size: 15px; }
.bar nav a { color: var(--cream); text-decoration: none; }

/* home: hero over the title painting, the game on a phone held sideways */
.hero {
  background: linear-gradient(90deg, rgba(13, 15, 23, .96) 0%, rgba(13, 15, 23, .8) 40%, rgba(13, 15, 23, .35) 100%),
    url("img/key-art.webp") center / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 48px 0 72px; }
.kicker { font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: .2em; color: var(--rim); text-transform: uppercase; margin-bottom: 10px; }
.logo { font-weight: 700; font-size: clamp(52px, 8vw, 96px); line-height: 1; color: var(--gold); margin: 0; letter-spacing: .06em; text-shadow: 0 3px 0 #7a4a12, 0 8px 20px rgba(0, 0, 0, .6); }
.line { font-size: 20px; color: var(--cream); margin: 14px 0 26px; max-width: 470px; }
.phone {
  border-radius: 34px; padding: 12px; background: #05060a;
  border: 3px solid #3a3f52; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px #000; transform: rotate(-2deg);
}
.phone img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 19.5 / 9; object-fit: cover; display: block; }

/* home: what you do, as the HUD's round slots */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.slot { text-align: center; padding: 26px 18px 22px; }
.ring {
  width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #3a4160, var(--face) 70%);
  border: 3px solid var(--rim);
  box-shadow: 0 0 0 4px var(--inset), 0 0 0 6px rgba(217, 184, 115, .4), 0 0 24px rgba(255, 214, 102, .25);
}
.ring img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.slot h3 { font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0 0 6px; color: var(--cream); }
.slot p { margin: 0; color: var(--dim); font-size: 15px; }

/* home: screenshots, a strip that swipes on a phone */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; }
.strip figure { flex: 0 0 min(560px, 86vw); margin: 0; scroll-snap-align: center; }
.strip img { border-radius: 16px; border: 2px solid rgba(217, 184, 115, .45); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.strip figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }

/* home: the alpha call, as the game's dialogue window */
.quest { max-width: 820px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; position: relative; }
.quest .name {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--teal); border: 2px solid var(--rim); border-radius: 8px; padding: 4px 18px;
  font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; white-space: nowrap;
}
.quest .face { width: 120px; height: 120px; border-radius: 12px; border: 2px solid var(--rim); overflow: hidden; }
.quest p { margin: 0 0 18px; font-size: 18px; color: var(--cream); }
.quest b { color: var(--gold); }

/* text pages: privacy, delete */
.doc { max-width: 760px; margin: 24px auto 48px; padding: 32px 28px; }
.doc h1 { font-weight: 700; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; color: var(--gold); margin: 0 0 6px; }
.doc h2 { font-size: 21px; text-align: left; margin: 32px 0 8px; color: var(--cream); }
.doc p, .doc ul, .doc ol { margin: 8px 0; color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .meta { color: var(--dim); font-size: 15px; margin-bottom: 20px; }
.doc .short { border-left: 4px solid var(--rim); padding: 2px 0 2px 14px; margin: 18px 0 8px; }
.doc code { color: var(--cream); }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--cream); text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 24px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bar nav { display: none; }
  .slots { gap: 12px; }
  .slot { padding: 18px 10px; }
  .ring { width: 76px; height: 76px; }
  .slot p { font-size: 14px; }
  .quest { grid-template-columns: 1fr; padding: 28px 18px 20px; }
  .quest .face { width: 84px; height: 84px; margin: 0 auto; }
  .row .btn { flex: 1 1 100%; }
  section { padding: 44px 0; }
  .doc { padding: 24px 18px; margin-top: 8px; }
}
