@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14131f;
  --ink-2: #1c1a2b;
  --panel: #262338;
  --line: #4a3a33;
  --wood: #8f4e2c;
  --wood-hi: #b86a3c;
  --gold: #ffd94d;
  --glow: #7fd8ff;
  --text: #ece7df;
  --muted: #b9b2c4;
  --display: "Lilita One", "Trebuchet MS", sans-serif;
  --body: var(--display);  /* one font everywhere, like the game */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: 0.012em;
  font-synthesis: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); }
a:hover { color: #b9e9ff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(20, 19, 31, 0.94); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font-family: var(--display); font-size: 1.3rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 6px; }
.site-nav a:hover { background: var(--panel); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--gold); }

.hero { position: relative; background: var(--ink); }
.hero-art { width: 100%; height: clamp(280px, 46vw, 540px); object-fit: cover; object-position: 50% 62%; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to bottom, rgba(20, 19, 31, 0), var(--ink) 92%); pointer-events: none; }
.hero-text { position: relative; z-index: 1; margin-top: -92px; padding-bottom: 28px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(3rem, 11vw, 6rem); color: var(--gold); text-shadow: 0 3px 0 #000, 0 0 26px rgba(0, 0, 0, 0.7); }
.tagline { margin: 6px 0 20px; font-size: clamp(1.1rem, 3vw, 1.45rem); }
.badge { display: inline-block; margin: 0; padding: 10px 22px 12px; font-family: var(--display); font-size: 1.15rem; color: #fff6dd; background: linear-gradient(to bottom, var(--wood-hi), var(--wood)); border: 2px solid #2b1a12; border-bottom-width: 6px; border-radius: 8px; }

.section { padding: 56px 0; }
.section-dark { background: var(--ink-2); border-block: 2px solid #2a2638; }
.section h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 5vw, 2.7rem); color: var(--gold); text-align: center; }
.lead { max-width: 720px; margin: 0 auto 30px; text-align: center; color: var(--text); }

.merge-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.5fr; align-items: center; gap: 12px; }
.merge-row figure { margin: 0; text-align: center; }
.merge-row figure img { margin-inline: auto; height: 180px; width: 100%; object-fit: contain; }
.merge-row figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
.merge-row figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--text); }
.merge-row .merge-result img { height: auto; object-fit: fill; border: 3px solid var(--wood); border-radius: 10px; }
.merge-sign { font-family: var(--display); font-size: 2.5rem; color: var(--gold); text-align: center; }

.wide-shot { width: 100%; max-width: 960px; margin-inline: auto; border: 3px solid var(--line); border-radius: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.feature { padding: 18px; background: var(--panel); border: 2px solid var(--line); border-radius: 10px; }
.feature-art { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.feature-art img { max-height: 130px; width: auto; }
.feature-row { display: flex; justify-content: center; align-items: flex-end; gap: 4px; width: 100%; }
.feature-row figure { flex: 1 1 0; min-width: 0; margin: 0; text-align: center; }
.feature-row img { display: block; margin: 0 auto; height: 96px; max-width: 100%; object-fit: contain; }
.feature-row figcaption { margin-top: 6px; font-size: .74rem; line-height: 1.1; }
.feature-pair { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.feature-pair img { height: 120px; }
.feature h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--gold); }
.feature p { margin: 0; color: var(--text); font-size: 1rem; }

.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.area { position: relative; overflow: hidden; border: 2px solid var(--line); border-radius: 10px; }
.area img { width: 100%; height: 210px; object-fit: cover; }
.area span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; text-align: center; font-family: var(--display); font-size: 1.15rem; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82)); }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.shots img { width: 100%; border: 2px solid var(--line); border-radius: 8px; }
.note { margin: 22px 0 0; text-align: center; color: var(--muted); }

.legal { padding: 36px 0 56px; }
.legal h1 { margin: 0 0 4px; font-size: clamp(2.2rem, 7vw, 3rem); color: var(--gold); }
.legal h2 { margin: 34px 0 8px; font-size: 1.45rem; color: var(--gold); }
.effective { margin: 0 0 22px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.glance { padding: 16px 20px; background: var(--panel); border: 2px solid var(--line); border-radius: 10px; }
.glance h2 { margin-top: 0; }

.lost { padding: 60px 0; text-align: center; }
.lost img { margin-inline: auto; max-height: 240px; width: auto; transform: scaleX(-1); }
.lost h1 { margin: 16px 0 6px; font-size: clamp(2.2rem, 7vw, 3rem); color: var(--gold); }
.button { display: inline-block; padding: 10px 20px 12px; font-family: var(--display); color: #fff6dd; text-decoration: none; background: linear-gradient(to bottom, var(--wood-hi), var(--wood)); border: 2px solid #2b1a12; border-bottom-width: 5px; border-radius: 8px; }
.button:hover { color: #fff; }

.site-footer { padding: 26px 0; border-top: 2px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .area img { height: 150px; }
  .merge-row { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .merge-row .merge-sign:nth-of-type(3) { grid-column: 1 / -1; }
  .merge-row .merge-result { grid-column: 1 / -1; width: 100%; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero-text { margin-top: -56px; }
  .merge-row { gap: 4px; }
  .merge-row figure img { height: 92px; }
  .merge-row figcaption { font-size: 0.8rem; line-height: 1.3; }
  .merge-row figcaption b { font-size: 1.05rem; }
  .merge-sign { font-size: 1.6rem; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
