/* The Forgotten Island, landing v2.
 * Built from the game's own material: RPG Maker windows with a thin light frame,
 * the gold of the logo, the colour of each girl's card on the official roster,
 * the command menu, the name box and the pause arrow from the windowskin. */

:root {
  color-scheme: dark;

  --bg: oklch(18.5% 0.028 158);
  --bg-2: oklch(22% 0.032 152);
  --bg-deep: oklch(14% 0.026 158);
  --ink: oklch(96.5% 0.012 95);
  --ink-2: oklch(89% 0.016 95);
  --muted: oklch(80% 0.02 110);
  --line: oklch(100% 0 0 / 0.13);
  --line-soft: oklch(100% 0 0 / 0.08);

  --gold-hi: oklch(96.5% 0.085 98);
  --gold: oklch(86% 0.145 88);
  --gold-lo: oklch(70% 0.15 68);
  --gold-edge: oklch(27% 0.06 60);
  --gold-ink: oklch(22% 0.05 60);

  --lemon: oklch(94% 0.2 107);
  --lemon-ink: oklch(22% 0.05 107);

  --win-hi: oklch(39% 0.012 310 / 0.9);
  --win-lo: oklch(22% 0.01 310 / 0.94);
  --win-frame: oklch(95% 0.008 90);
  --win-edge: oklch(0% 0 0 / 0.55);
  --cursor: oklch(100% 0 0 / 0.17);
  --cursor-edge: oklch(100% 0 0 / 0.6);

  --bar-bg: oklch(13% 0.026 158 / 0.84);
  --scrim: oklch(13% 0.03 158 / 0.84);
  --scrim-soft: oklch(13% 0.03 158 / 0.5);
  --scrim-none: oklch(13% 0.03 158 / 0);
  --shadow: oklch(6% 0.015 158 / 0.5);
  --text-shadow: oklch(0% 0 0 / 0.5);
  --focus: var(--lemon);

  /* each girl's colours, from her card on the official roster */
  --marigold-1: #8db697; --marigold-2: #4f7f8c; --marigold-3: #c6651e;
  --ulfa-1: #9fc3ce; --ulfa-2: #3f6a87; --ulfa-3: #8a2a06;
  --roxy-1: #737f97; --roxy-2: #3e4658; --roxy-3: #6b5226;
  --sophie-1: #8a6a50; --sophie-2: #3f2d1f; --sophie-3: #2a4256;
  --hannah-1: #8c5257; --hannah-2: #4a272d; --hannah-3: #3f5f3b;
  --grey-1: #5b9fcb; --grey-2: #275d84; --grey-3: #c95c31;
  --astrid-1: #4d806f; --astrid-2: #23423a; --astrid-3: #8b0d33;
  --tina-1: #6f5a4c; --tina-2: #33271f; --tina-3: #3e5643;

  --font-display: "Gelasio", Georgia, "Times New Roman", serif;
  --font-ui: "M PLUS 1 Code", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 64px;
  --r-win: 7px;
  --r-in: 4px;
  --section: clamp(64px, 7.5vw, 108px);

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --h2: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
}

/* Base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lemon);
  color: var(--lemon-ink);
  font-weight: 700;
  border-radius: var(--r-in);
  translate: 0 -200%;
}
.skip:focus-visible { translate: 0 0; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h2);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

.sec-head {
  display: grid;
  gap: 14px;
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-head p { color: var(--muted); font-size: 1.125rem; }

.link {
  color: var(--gold);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link:hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }

/* RPG Maker window, as drawn by the game's windowskin */

.win {
  position: relative;
  background: radial-gradient(130% 160% at 50% 35%, var(--win-hi), var(--win-lo));
  border: 2px solid var(--win-frame);
  border-radius: var(--r-win);
  box-shadow:
    0 0 0 1px var(--win-edge),
    inset 0 0 0 1px var(--win-edge),
    0 14px 34px var(--shadow);
  color: var(--ink);
}

/* Command lists: the cursor sits on the first command until you point at another */

.cmd {
  display: grid;
  gap: 2px;
  padding: 10px;
  width: min(100%, 25rem);
}

.cmd__item,
.shop__row {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 10px 16px 11px;
  border-radius: var(--r-in);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.12s ease;
}

.cmd__item small {
  display: block;
  margin-top: 3px;
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
}

.cmd__item::before,
.shop__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--cursor);
  box-shadow: inset 0 0 0 1px var(--cursor-edge);
  opacity: 0;
}

.cmd__item:first-child,
.shop__row:first-child .shop__item { color: var(--gold); }

.cmd__item:first-child::before,
.cmd__item:hover::before,
.cmd__item:focus-visible::before {
  opacity: 1;
  animation: cursor-blink 1.6s ease-in-out infinite;
}

.cmd:has(.cmd__item:hover, .cmd__item:focus-visible) .cmd__item:not(:hover, :focus-visible)::before {
  opacity: 0;
  animation: none;
}

.shop:not(:hover, :focus-within) .shop__row:first-child::before,
.shop__row:hover::before,
.shop:not(:has(.shop__row:hover)) .shop__row:focus-visible::before {
  opacity: 1;
}

.cmd__item:focus-visible,
.shop__row:focus-visible { outline-offset: 1px; }
.cmd__item:active,
.shop__row:active { transform: translateY(1px); }

@keyframes cursor-blink {
  50% { opacity: 0.55; }
}

/* Message window with a name box */

.msg {
  padding: 18px 26px 24px;
  font-size: clamp(1.0625rem, 0.92rem + 0.55vw, 1.375rem);
  line-height: 1.5;
}

.msg__name {
  position: absolute;
  left: 14px;
  bottom: calc(100% + 6px);
  padding: 3px 18px 5px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.msg--quote .msg__name { left: auto; right: 14px; }

.msg__lines li + li { margin-top: 0.5em; }
.js .msg__lines { min-height: 3em; }
.msg__lines .rest { color: transparent; }

.msg__count {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.msg__next {
  position: absolute;
  left: 50%;
  bottom: -4px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--r-in);
  cursor: pointer;
}
.msg__next img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  animation: arrow-bob 0.9s steps(2, jump-none) infinite;
}

@keyframes arrow-bob {
  from { transform: translateY(-2px); }
  to { transform: translateY(2px); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-in);
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 46%, var(--gold-lo));
  color: var(--gold-ink);
  border: 2px solid var(--gold-edge);
  box-shadow: inset 0 1px 0 var(--gold-hi), 0 2px 0 var(--gold-edge);
}
.btn--gold:hover { filter: brightness(1.07); }
.btn--gold:active { transform: translateY(1px); box-shadow: inset 0 1px 0 var(--gold-hi), 0 1px 0 var(--gold-edge); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: var(--step--1); }

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}

.bar__row {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.bar__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  white-space: nowrap;
}
.bar__logo:hover { color: var(--gold-hi); }

.bar__nav {
  display: flex;
  gap: 2px;
  margin-inline-start: auto;
}
.bar__nav a {
  padding: 8px 12px;
  border-radius: var(--r-in);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.bar__nav a:hover { background: var(--cursor); color: var(--ink); }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(640px, 100svh - var(--bar-h), 940px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-soft) 36%, var(--scrim-none) 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  height: 26%;
  background: linear-gradient(to top, var(--bg) 6%, var(--scrim-none));
  pointer-events: none;
}

.party {
  position: absolute;
  right: max(-2%, (100% - 1720px) / 2);
  bottom: 0;
  z-index: 1;
  width: min(60%, 980px);
  aspect-ratio: 5 / 4;
}

.party__fig {
  position: absolute;
  bottom: 0;
  left: var(--x);
  z-index: var(--z);
  height: calc(var(--s) * 100%);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 12px 22px var(--shadow));
}

.hero__copy {
  position: relative;
  z-index: 7;
  display: grid;
  justify-items: start;
  gap: 22px;
  padding-block: 40px 88px;
}

.sticker {
  display: inline-block;
  rotate: -4deg;
  padding: 5px 14px 7px;
  background: var(--lemon);
  color: var(--lemon-ink);
  border: 2px solid var(--lemon-ink);
  border-radius: var(--r-in);
  box-shadow: 3px 3px 0 var(--lemon-ink);
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  transition: rotate 0.15s ease, transform 0.15s ease;
}
.sticker:hover { rotate: -1deg; transform: translateY(-1px); }

.logo {
  display: grid;
  justify-items: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 1rem + 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  min-width: 0;
}

.logo__line {
  display: block;
  padding-inline-end: 0.08em;
  background: linear-gradient(180deg, var(--gold-hi) 12%, var(--gold) 50%, var(--gold-lo) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(1px 1px 0 var(--gold-edge))
    drop-shadow(1px 1px 0 var(--gold-edge))
    drop-shadow(2px 2px 0 var(--gold-edge))
    drop-shadow(0 8px 16px var(--shadow));
}

.logo__the {
  font-size: 0.4em;
  line-height: 1;
  margin-bottom: 0.14em;
}

.logo__edition {
  display: block;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
  color: var(--ink);
  text-shadow: 0 1px 3px var(--text-shadow);
}

.hero__lead {
  max-width: 27ch;
  font-size: var(--step-1);
  line-height: 1.45;
  text-shadow: 0 1px 3px var(--text-shadow);
}

/* Prologue */

.prologue { padding-block: var(--section) calc(var(--section) * 0.8); }
.prologue .h2 { margin-bottom: clamp(24px, 3.5vw, 40px); }

.scene {
  position: relative;
  border-radius: var(--r-win);
  overflow: clip;
  box-shadow: 0 0 0 1px var(--line), 0 28px 60px var(--shadow);
}

.scene__art { position: relative; }

.scene__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* On the last line Eirik comes round and the gull is gone */
.scene__img--awake {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.scene.is-awake .scene__img--awake { opacity: 1; }

.scene .msg {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 5%;
  cursor: pointer;
}
.js .scene .msg { padding-bottom: 40px; }
.scene .msg__next { bottom: -2px; }

/* Companions */

.cast {
  padding-block: calc(var(--section) * 0.7);
  background: linear-gradient(var(--bg), var(--bg-2) 22%, var(--bg-2) 78%, var(--bg));
}

.select__tabs {
  display: flex;
  gap: 8px;
  margin: 0 -4px 22px;
  padding: 4px 4px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.no-js .select__tabs { display: none; }

.tab {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 6px 4px;
  background: none;
  border: 0;
  border-radius: var(--r-win);
  cursor: pointer;
}

.tab img {
  width: 88px;
  height: 88px;
  border-radius: var(--r-in);
  border: 2px solid var(--line);
  filter: saturate(0.55) brightness(0.72);
  transition: filter 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.tab span {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}

.tab:hover img { filter: none; transform: translateY(-2px); }
.tab:hover span { color: var(--ink); }
.tab:focus-visible { outline-offset: 0; }

.tab[aria-selected="true"] img {
  filter: none;
  border-color: var(--win-frame);
  box-shadow: 0 0 0 3px var(--gold), 0 10px 20px var(--shadow);
}
.tab[aria-selected="true"] span { color: var(--gold); font-weight: 700; }

.card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 600px;
  border-radius: var(--r-win);
  overflow: clip;
  background: radial-gradient(70% 105% at 20% 34%, var(--c1), var(--c2));
  box-shadow: 0 0 0 2px var(--win-frame), 0 0 0 3px var(--win-edge), 0 28px 56px var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--scrim-none) 28%, var(--scrim-soft) 52%, var(--scrim) 100%);
}

.no-js .card + .card { margin-top: 28px; }

.card__art {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 600px;
}

.card__art img {
  position: absolute;
  bottom: -10%;
  left: 50%;
  translate: -50% 0;
  height: 112%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 16px 26px var(--shadow));
}

.js .card:not([hidden]) .card__art img { animation: step-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.js .card:not([hidden]) .card__info { animation: fade-in 0.42s ease both; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card__info {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px) 32px 8px;
}

.card__name {
  padding: 4px 18px 8px;
  background: var(--c3);
  border-radius: var(--r-in);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.8rem);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--win-edge);
  box-shadow: 0 8px 18px var(--shadow);
}

.card__kind {
  max-width: 30ch;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.45;
  text-shadow: 0 1px 3px var(--text-shadow);
}

.card__stats {
  display: grid;
  gap: 6px;
  text-shadow: 0 1px 3px var(--text-shadow);
}
.card__stats div { display: flex; gap: 16px; }
.card__stats dt { min-width: 6.5rem; color: var(--ink-2); }
.card__stats dd { font-weight: 700; }

.card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
}

/* The side-view battler from the game, idling in its ready pose */
.sprite {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  background-image: var(--sheet);
  background-size: 1152px 768px;
  background-repeat: no-repeat;
  background-position: 0 0;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 var(--win-edge));
  animation: battler-idle 0.9s step-end infinite;
}

/* Hold each sprite cell in place until the next pose. */
@keyframes battler-idle {
  0%, 100% { background-position: 0 0; }
  25%, 75% { background-position: -128px 0; }
  50% { background-position: -256px 0; }
}

.msg--quote {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 2;
  margin: 40px 22px 22px;
  min-height: 92px;
}

/* Gameplay */

.play { padding-block: calc(var(--section) * 0.7) var(--section); }

.play__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
}

.shot {
  grid-column: span 3;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 14px;
}

.play__head {
  grid-column: 9 / -1;
  grid-row: 1;
  align-self: center;
  margin: 0;
}

.shot--big {
  grid-column: 1 / span 8;
  grid-row: 1;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-win);
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px var(--shadow);
}


.shot figcaption {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 44ch;
}
.shot figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 700;
}

/* Updates */

.log {
  padding-block: var(--section);
  background: var(--bg-2);
}

.log__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.log__head {
  position: sticky;
  top: calc(var(--bar-h) + 32px);
  justify-items: start;
}

.log__win { padding: 6px 24px 8px; }

.log__title {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 22px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.entry:last-child { border-bottom: 0; }

.entry__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-in);
  box-shadow: 0 0 0 1px var(--line);
}

.entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--step--1);
}

.tag {
  padding: 0 8px 1px;
  background: var(--lemon);
  color: var(--lemon-ink);
  border-radius: 3px;
  font-weight: 700;
}

.entry__title {
  margin: 4px 0 6px;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.25;
}
.entry__title a { color: var(--ink); text-decoration: none; }
.entry__title a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.entry__body > p:last-child { color: var(--ink-2); }

/* Download */

.get { padding-block: var(--section); }

.get__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: end;
}

.get__lead {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 1.125rem;
}

.shop {
  display: grid;
  padding: 10px;
}

.shop__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.shop__note {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.status { padding: 24px 28px 26px; }

.status__score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.status__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.status__list {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}
.status__list div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
}
.status__list dt { color: var(--muted); }

/* Support */

.back {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(96px, 13vw, 176px);
}

.back__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--bg) 0%, var(--scrim-soft) 34%, var(--scrim-soft) 62%, var(--bg) 100%);
}

.back__inner {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}
.back .h2 { text-shadow: 0 2px 12px var(--shadow); }

.back__talk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.cmd--choice {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 17rem;
}

.msg--talk {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 40px;
  padding-top: 22px;
}
.msg--talk p:last-child { max-width: 62ch; }

/* Footer */

.foot {
  padding-block: 56px 44px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.foot__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px 48px;
  align-items: end;
}

.foot__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--gold);
}
.foot__logo span { display: block; font-size: 0.42em; margin-bottom: 0.1em; }

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 26px;
}
.foot__links a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot__links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

.foot__legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--step--1);
}

/* Tablet and phone */

@media (max-width: 1180px) {
  .play__head { grid-column: 1 / -1; grid-row: auto; max-width: 46rem; }
  .shot--big { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 1080px) {
  .bar__nav a { padding-inline: 9px; }
  .party { width: min(66%, 900px); right: -8%; }
}

@media (max-width: 900px) {
  .bar__nav { display: none; }
  .bar__row { justify-content: space-between; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero::before {
    background: linear-gradient(180deg, var(--scrim) 0%, var(--scrim-soft) 48%, var(--scrim-none) 72%);
  }
  .hero::after { height: 18%; }
  .hero__copy { order: 1; padding-block: 32px 8px; gap: 18px; }
  .party {
    order: 2;
    position: relative;
    right: auto;
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .card::before { background: linear-gradient(180deg, var(--scrim-none) 30%, var(--scrim) 52%, var(--scrim) 100%); }
  .card__row { display: block; }
  .card .sprite {
    position: absolute;
    top: calc(min(92vw, 440px) - 136px);
    right: 12px;
    z-index: 2;
  }
  .card__art { grid-row: 1; min-height: 0; height: min(92vw, 440px); }
  .card__art img { height: 100%; }
  .card__info { grid-column: 1; grid-row: 2; padding: 24px 22px 8px; }
  .msg--quote { grid-row: 3; margin: 40px 14px 16px; }
  .card__art img { bottom: 0; height: 100%; }

  .play__grid { gap: 32px 20px; }
  .shot { grid-column: span 6; }
  .play__head { grid-column: 1 / -1; grid-row: auto; }
  .shot--big { grid-column: 1 / -1; grid-row: auto; }

  .log__grid,
  .get__grid { grid-template-columns: minmax(0, 1fr); }
  .log__head { position: static; margin-bottom: 0; }

  .back__talk { grid-template-columns: minmax(0, 1fr); }
  .msg--talk { grid-row: 1; }
  .cmd--choice { grid-column: 1; grid-row: 2; justify-self: end; }
}

@media (max-width: 720px) {
  .scene { overflow: visible; box-shadow: none; }
  .scene__img { border-radius: var(--r-win); box-shadow: 0 0 0 1px var(--line); }
  .scene .msg {
    position: relative;
    inset: auto;
    margin: -28px 10px 0;
  }
}

@media (max-width: 560px) {
  .bar__logo { font-size: 0.95rem; }
  .shot { grid-column: 1 / -1; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .log__win { padding-inline: 18px; }
  .status { padding-inline: 20px; }
  .status__list div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__links { justify-content: flex-start; }
  .cmd--choice { justify-self: stretch; min-width: 0; }
  .msg { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
