/* Game-branded, not MaxEnt-branded: this page belongs to the title. Dark
   ground, the Red Nun's red as the one accent. Abel (the game's UI face, the
   free Google Fonts cut) for copy, Cormorant Garamond standing in for the
   licensed Albertina on headings. */

@font-face { font-family: "Abel"; src: url("/remothered-red-nuns-legacy/assets/fonts/abel-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/remothered-red-nuns-legacy/assets/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/remothered-red-nuns-legacy/assets/fonts/cormorant-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0a0c;
  --bg-raised: #151317;
  --line: #2a262c;
  --ink: #ece7e1;
  --ink-dim: #a39b95;
  --accent: #a3141c;
  --accent-hot: #c91b25;
  --ok: #7cc48f;
  --err: #e0636b;
  --font-body: "Abel", "Trebuchet MS", sans-serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(163, 20, 28, 0.22), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
.page { max-width: 620px; margin: 0 auto; padding: 48px 16px 64px; }

.hero { text-align: center; margin-bottom: 40px; }
.logo { width: min(360px, 80%); height: auto; margin-bottom: 24px; }
h1, h2 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
.lede { color: var(--ink-dim); margin: 0; }

.redeem { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.label { display: block; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 10px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"] {
  flex: 1 1 260px;
  font: inherit;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
}
input[type="text"]:focus { outline: 2px solid var(--accent-hot); outline-offset: 1px; border-color: var(--accent-hot); }
input[aria-invalid="true"] { border-color: var(--err); }
button {
  flex: 0 0 auto;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
}
button:hover { background: var(--accent-hot); }
button:disabled { opacity: 0.6; cursor: progress; }
.hint { font-size: 0.9rem; color: var(--ink-dim); margin: 12px 0 0; }
.message { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--err); color: var(--err); background: rgba(224, 99, 107, 0.08); }
.message.ok { border-color: var(--ok); color: var(--ok); background: rgba(124, 196, 143, 0.08); }

.result { margin-top: 40px; }
.files { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.file {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.file .cover { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.file .cover.empty { border: 1px dashed var(--line); }
.file h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
.file .meta { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 10px; }
.file a.download {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
}
.file a.download:hover { background: var(--accent-hot); }
@media (max-width: 420px) {
  .file { grid-template-columns: 1fr; }
  .file .cover { width: 100%; height: auto; aspect-ratio: 1; }
}

.footer { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 28px; }
.marks { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; margin-bottom: 18px; }
.mark-stormind { width: 72px; height: 72px; }
.mark-esrb { height: 56px; width: auto; }
.mark-group { display: inline-flex; align-items: flex-end; gap: 6px; }
.mark-pegi { height: 56px; width: auto; }
.mark-pegi-desc { height: 32px; width: auto; }
.mark-usk { height: 44px; width: auto; }
.legal { font-size: 0.8rem; color: var(--ink-dim); margin: 0 0 10px; line-height: 1.5; }
.back { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.back:hover { color: var(--ink); }

.download.spent { background: var(--line); color: var(--ink-dim); cursor: not-allowed; pointer-events: none; }
