@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #101b2d;
  --navy-2: #18283f;
  --ink: #081018;
  --gold: #e4c15a;
  --gold-2: #f6e7bc;
  --paper: #f3e6c8;
  --teal: #7fd0cf;
  --hp: #e23a32;
  --leaf: #8bc56a;
  --muted: #b7ab90;
  --serif: "Source Sans 3", "Segoe UI", sans-serif;
  --pixel: "Press Start 2P", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #07110d;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: var(--gold-2); }
a:hover { color: white; }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-200%);
  background: var(--gold);
  color: var(--ink);
  padding: 8px;
  z-index: 5;
}
.skip:focus { transform: none; }

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 12px;
}

.brand {
  margin: 0;
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--paper);
  border: 2px solid transparent;
  padding: 8px 10px;
}
.nav a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--gold-2);
}

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #102018;
  box-shadow: 0 0 0 2px var(--gold);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-finn {
  position: absolute;
  left: 6%;
  bottom: 8%;
  height: 42%;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.28));
}

.hero-plaque {
  position: absolute;
  top: 4%;
  left: 4%;
  max-width: min(420px, 70%);
}

.plaque {
  background: rgba(16, 27, 45, 0.92);
  color: var(--paper);
  border: 0;
  box-shadow:
    0 0 0 2px var(--gold),
    inset 0 0 0 2px #2a2114;
  padding: 12px 14px;
}

.kicker, h1, h2, h3, .pixel {
  font-family: var(--pixel);
  font-weight: normal;
  line-height: 1.45;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 9px;
}

h1 {
  margin: 0;
  color: var(--gold-2);
  font-size: 15px;
}

.lede {
  margin: 8px 0 0;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}

.panel h2 {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
}

.watch {
  position: relative;
  background: #0c1410;
  box-shadow: inset 0 0 0 2px #2a2114;
  aspect-ratio: 16 / 9;
}

.watch iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-placeholder {
  margin: 0;
  padding: 22px 16px;
  color: var(--muted);
}

.status {
  margin: 0;
}

.status div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(228, 193, 90, 0.25);
}

.status dt {
  margin: 0;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.5;
}

.status dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.prose {
  display: grid;
  gap: 16px;
}

.prose section, .prose article {
  padding: 16px 16px 8px;
}

.prose h1 { font-size: 16px; margin-bottom: 8px; }
.prose h2 { font-size: 11px; color: var(--gold-2); margin: 8px 0; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 1.2em; }

.ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.ranges button {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--paper);
  background: var(--navy);
  border: 2px solid var(--gold);
  padding: 10px 12px;
  cursor: pointer;
}
.ranges button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.chart-card { margin-bottom: 16px; }
.chart-card h2 { font-size: 11px; }
.chart {
  width: 100%;
  height: auto;
  display: block;
  background:
    linear-gradient(180deg, rgba(228, 193, 90, 0.08), transparent 28%),
    #0c141c;
  box-shadow: inset 0 0 0 2px rgba(228, 193, 90, 0.35);
}
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--serif); }
.summary { margin: 8px 0 0; }

.site-foot {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 15px;
}

.cta { margin-top: 16px; }
.cta h2 { margin: 0 0 8px; color: var(--gold-2); font-size: 12px; }
.button {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.45;
}
.button:hover { color: var(--ink); background: var(--gold-2); }

form.waitlist { display: grid; gap: 12px; }
label.field { display: grid; gap: 6px; }
label.field span, .check { font-family: var(--pixel); font-size: 8px; line-height: 1.5; color: var(--gold-2); }
input, select, textarea {
  width: 100%;
  font: 16px var(--serif);
  color: var(--paper);
  background: #0c141c;
  border: 2px solid var(--gold);
  padding: 10px;
}
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: auto; margin-top: 2px; }
button.submit {
  justify-self: start;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 12px 14px;
  cursor: pointer;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#waitlist-result { min-height: 1.4em; }

.page-hero {
  position: relative;
  min-height: 220px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--gold);
}
.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
.page-hero .plaque {
  position: absolute;
  left: 4%;
  bottom: 12%;
  max-width: min(520px, 88%);
}

.region-strip, .roster, .works {
  margin-top: 22px;
}
.section-title {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.region-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--gold);
}
.region-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.region-card span {
  display: block;
  padding: 8px;
  font-family: var(--pixel);
  font-size: 8px;
  line-height: 1.45;
  color: var(--gold-2);
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.roster-card {
  background: rgba(16, 27, 45, 0.92);
  box-shadow: 0 0 0 2px var(--gold);
  padding: 8px;
}
.roster-card h3 {
  margin: 0 0 8px;
  font-size: 8px;
  color: var(--gold);
}
.roster-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.roster-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}
.roster-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.work {
  background: rgba(16, 27, 45, 0.92);
  box-shadow: 0 0 0 2px var(--gold);
  padding: 12px;
}
.work img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.work h3 { margin: 8px 0; font-size: 8px; color: var(--gold-2); }
.work p { margin: 0; font-size: 15px; }

.watch {
  background: #102018 url('/art/cards/camp.webp') center / cover no-repeat;
}
.watch-placeholder {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 18px 16px;
  background: linear-gradient(transparent, rgba(8, 16, 24, 0.82));
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.6;
  color: var(--gold-2);
}

.quest-live { display: grid; gap: 12px; }
.quest-live[hidden] { display: none; }
.quest-top, .hp-row, .enemy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quest-top img, .region-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold);
}
.hp-row img, .enemy-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.meter {
  flex: 1;
  height: 12px;
  background: #2a1214;
  box-shadow: inset 0 0 0 2px #140c0a;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(#f07068, var(--hp));
}
.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 8px;
  background: #3a1214;
  color: #ffb0a8;
  font-family: var(--pixel);
  font-size: 8px;
  box-shadow: 0 0 0 2px var(--hp);
}
.badge[hidden] { display: none; }

@media (max-width: 980px) {
  .cards, .roster-grid, .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards, .roster-grid, .works-grid { grid-template-columns: 1fr; }
  .page-hero img { height: 200px; }
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 13px; }
  .hero-plaque { max-width: 86%; }
  .status div { grid-template-columns: 1fr; }
  .status dd { text-align: left; }
}

@media (max-width: 420px) {
  .brand { font-size: 10px; }
  .hero-finn { height: 38%; }
}
