/* GummyPrism — base tokens */
:root {
  --gp-page: #ffffff;
  --gp-ink: #000000;
  --gp-ink-soft: #111111;
  --gp-mute: #5c5c5c;
  --gp-line: #e4e4e4;
  --gp-line-soft: #f0f0f0;
  --gp-wash: #fafafa;
  --gp-accent: #0096f7;

  --gp-r-soft: 12px;
  --gp-r-pill: 24px;
  --gp-r-round: 999px;

  --gp-lift-1: rgba(0, 0, 0, 0.12) 0 0.5px 2px 0;
  --gp-lift-2: rgba(0, 0, 0, 0.08) 0 2px 10px 0;

  --gp-hold: 1200px;
  --gp-gap-block: clamp(64px, 9vw, 116px);
  --gp-pad-x: clamp(20px, 5vw, 40px);

  --gp-face: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--gp-page);
  color: var(--gp-ink-soft);
  font-family: var(--gp-face);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-feature-settings: "lnum", "tnum";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gp-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--gp-ink);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gp-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.gp-frame {
  width: 100%;
  max-width: var(--gp-hold);
  margin-inline: auto;
  padding-inline: var(--gp-pad-x);
}

.gp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gp-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--gp-r-soft);
  z-index: 60;
}
.gp-skip:focus { left: 12px; top: 12px; }

.gp-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.gp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- crest (masthead) ---------- */
.gp-crest {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gp-page);
  border-bottom: 1px solid var(--gp-line);
}

.gp-crest__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.gp-crest__mark {
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gp-ink);
  text-decoration: none;
  white-space: nowrap;
}
.gp-crest__mark:hover { text-decoration: none; }
.gp-crest__mark-b { color: var(--gp-accent); }

.gp-crest__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  list-style: none;
}

.gp-crest__link {
  color: var(--gp-ink-soft);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  display: inline-block;
}
.gp-crest__link:hover,
.gp-crest__link:focus-visible {
  color: var(--gp-accent);
  border-bottom-color: var(--gp-accent);
  text-decoration: none;
}

.gp-crest__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(0, 0, 0, 0.04);
  border: 0;
  border-radius: var(--gp-r-soft);
  color: var(--gp-ink);
  cursor: pointer;
}
.gp-crest__toggle svg { width: 22px; height: 22px; }
.gp-crest__toggle-close { display: none; }
.gp-crest__toggle[aria-expanded="true"] .gp-crest__toggle-open { display: none; }
.gp-crest__toggle[aria-expanded="true"] .gp-crest__toggle-close { display: block; }

/* ---------- shared shells ---------- */
.gp-shelf { padding-block: var(--gp-gap-block); }
.gp-shelf--rule { border-top: 1px solid var(--gp-line-soft); }

.gp-shelf__head { margin-bottom: clamp(32px, 4.5vw, 56px); }

.gp-shelf__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gp-accent);
  margin-bottom: 18px;
}

.gp-shelf__title {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.02;
  font-weight: 300;
}

.gp-shelf__lede {
  margin-top: 18px;
  max-width: 66ch;
  color: var(--gp-mute);
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- actions ---------- */
.gp-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--gp-r-soft);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.gp-act:hover { text-decoration: none; }
.gp-act svg { width: 16px; height: 16px; flex: none; }

.gp-act--solid {
  background: var(--gp-accent);
  color: #ffffff;
  box-shadow: var(--gp-lift-1);
}
.gp-act--solid:hover { opacity: 0.88; }

.gp-act--quiet {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gp-ink);
  border-radius: var(--gp-r-pill);
}
.gp-act--quiet:hover { background: rgba(0, 0, 0, 0.08); }

.gp-act--edge {
  background: transparent;
  color: var(--gp-ink);
  border-color: var(--gp-line);
}
.gp-act--edge:hover { border-color: var(--gp-accent); color: var(--gp-accent); }

.gp-act--wide { width: 100%; }

/* ---------- facet (opening screen) ---------- */
.gp-facet {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}

.gp-facet__title {
  font-size: clamp(42px, 7.2vw, 72px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-inline: auto;
  max-width: 17ch;
}
.gp-facet__title-b { color: var(--gp-accent); }

.gp-facet__lede {
  margin: 26px auto 0;
  max-width: 58ch;
  color: var(--gp-mute);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.gp-facet__acts {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.gp-facet__meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  color: var(--gp-mute);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.gp-facet__meta b { color: var(--gp-ink); font-weight: 500; }

.gp-facet__frieze {
  margin-top: clamp(38px, 5vw, 62px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gp-facet__slot {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  background: var(--gp-wash);
}
.gp-facet__slot img { width: 100%; height: 100%; object-fit: cover; }

.gp-facet__cap {
  margin-top: 16px;
  color: var(--gp-mute);
  font-size: 13px;
}

/* ---------- panes (game entries) ---------- */
.gp-shelf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  list-style: none;
}

.gp-pane {
  display: flex;
  flex-direction: column;
  background: var(--gp-page);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  overflow: hidden;
}

.gp-pane__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  aspect-ratio: 16 / 9;
  background: var(--gp-wash);
  border-bottom: 1px solid var(--gp-line);
}
.gp-pane__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gp-pane__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.gp-pane__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gp-pane__badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--gp-line);
  flex: none;
}

.gp-pane__name {
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gp-pane__maker {
  margin-top: 6px;
  color: var(--gp-mute);
  font-size: 14px;
}

.gp-pane__lede {
  max-width: 60ch;
  color: var(--gp-ink-soft);
  font-size: 16px;
  line-height: 1.62;
}

.gp-pane__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.gp-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-pill);
  font-size: 13px;
  color: var(--gp-mute);
  letter-spacing: 0;
}
.gp-tag--mark { border-color: var(--gp-accent); color: var(--gp-accent); }

.gp-pane__foot { margin-top: auto; padding-top: 6px; }

/* ---------- score ---------- */
.gp-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.gp-score__stars { position: relative; display: inline-block; line-height: 0; }
.gp-score__base, .gp-score__fill { display: block; line-height: 0; white-space: nowrap; }
.gp-score__base { color: var(--gp-line); }
.gp-score__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--gp-accent);
}
.gp-score__stars svg { width: 17px; height: 17px; display: inline-block; }

.gp-score__num {
  font-size: 20px;
  font-weight: 500;
  color: var(--gp-ink);
  letter-spacing: -0.02em;
}
.gp-score__count { font-size: 13px; color: var(--gp-mute); }

/* ---------- plans ---------- */
.gp-plan__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  list-style: none;
}

.gp-plan__item {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--gp-page);
}
.gp-plan__item--pick { border-color: var(--gp-accent); }

.gp-plan__name {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gp-ink);
}

.gp-plan__rate {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gp-ink);
}
.gp-plan__per { font-size: 15px; color: var(--gp-mute); letter-spacing: -0.01em; }

.gp-plan__list { list-style: none; display: grid; gap: 12px; }
.gp-plan__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--gp-ink-soft);
}
.gp-plan__list svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--gp-accent); }

.gp-quiet {
  color: var(--gp-mute);
  font-size: 14px;
  line-height: 1.65;
}
.gp-quiet--note {
  margin-top: 26px;
  border-left: 2px solid var(--gp-accent);
  padding-left: 18px;
  max-width: 90ch;
}
.gp-quiet--mid { margin-top: 22px; text-align: center; }
.gp-quiet--tail { margin-top: 18px; }

/* ---------- join (subscribe) ---------- */
.gp-join {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  padding: clamp(26px, 3.4vw, 44px);
}

.gp-join__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gp-join__field { display: flex; flex-direction: column; gap: 8px; }
.gp-join__field--long { grid-column: 1 / -1; }
.gp-join__field--long .gp-act { align-self: flex-start; }

.gp-join__label { font-size: 14px; color: var(--gp-ink); letter-spacing: -0.01em; }

.gp-join__input {
  font: inherit;
  font-size: 16px;
  padding: 15px;
  color: var(--gp-ink);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--gp-r-soft);
}
.gp-join__input:focus-visible { border-color: var(--gp-accent); background: #fff; }

.gp-join__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gp-mute);
  line-height: 1.6;
}
.gp-join__check input {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--gp-accent);
  flex: none;
}

.gp-join__done {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--gp-accent);
  border-radius: var(--gp-r-soft);
  padding: 15px 18px;
  color: var(--gp-ink);
  font-size: 15px;
}
.gp-join__done.is-shown { display: block; }

/* ---------- ask (questions) ---------- */
.gp-ask { border-top: 1px solid var(--gp-line); }
.gp-ask__item { border-bottom: 1px solid var(--gp-line); }

.gp-ask__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font: inherit;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--gp-ink);
  background: none;
  border: 0;
  padding: 26px 0;
  cursor: pointer;
}
.gp-ask__q:hover { color: var(--gp-accent); }
.gp-ask__sign { width: 18px; height: 18px; flex: none; color: var(--gp-accent); transition: transform 180ms ease; }
.gp-ask__item.is-open .gp-ask__sign { transform: rotate(45deg); }

.gp-ask__a { display: none; padding: 0 0 26px; }
.gp-ask__item.is-open .gp-ask__a { display: block; }
.gp-ask__a p { max-width: 78ch; color: var(--gp-mute); font-size: 16px; line-height: 1.68; }
.gp-ask__a p + p { margin-top: 12px; }

/* ---------- voices (player reviews) ---------- */
.gp-voice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  list-style: none;
}

.gp-voice__item {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gp-voice__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gp-ink-soft);
  margin: 0;
}

.gp-voice__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.gp-voice__seal {
  width: 40px; height: 40px;
  border-radius: var(--gp-r-round);
  border: 1px solid var(--gp-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--gp-accent);
  flex: none;
}

.gp-voice__who { font-size: 15px; color: var(--gp-ink); }
.gp-voice__on { font-size: 13px; color: var(--gp-mute); }

/* ---------- ledger (editorial model) ---------- */
.gp-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.gp-ledger__body { display: grid; gap: 18px; }
.gp-ledger__body p { color: var(--gp-mute); font-size: 17px; line-height: 1.68; max-width: 62ch; }
.gp-ledger__body p strong { color: var(--gp-ink); font-weight: 500; }

.gp-ledger__shot {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  overflow: hidden;
}
.gp-ledger__shot img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gp-ledger__cap { padding: 14px 18px; border-top: 1px solid var(--gp-line); font-size: 13px; color: var(--gp-mute); }

/* ---------- stubs (working method) ---------- */
.gp-stub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 48px);
  list-style: none;
}

.gp-stub__item { display: grid; gap: 12px; }

.gp-stub__glyph {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gp-accent);
  border-radius: var(--gp-r-soft);
  color: var(--gp-accent);
}
.gp-stub__glyph svg { width: 20px; height: 20px; }

.gp-stub__name { font-size: 21px; font-weight: 400; letter-spacing: -0.025em; }
.gp-stub__text { color: var(--gp-mute); font-size: 16px; line-height: 1.65; max-width: 52ch; }

.gp-stub__shot {
  margin-top: clamp(30px, 4vw, 48px);
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-r-soft);
  overflow: hidden;
}
.gp-stub__shot img { width: 100%; aspect-ratio: 24 / 9; object-fit: cover; }

/* ---------- base (site foot) ---------- */
.gp-base {
  border-top: 1px solid var(--gp-line);
  padding-block: clamp(44px, 5vw, 70px) 34px;
}

.gp-base__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.gp-base__blurb { margin-top: 16px; color: var(--gp-mute); font-size: 15px; line-height: 1.65; max-width: 42ch; }

.gp-base__title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gp-mute);
  margin-bottom: 16px;
}

.gp-base__list { list-style: none; display: grid; gap: 11px; }
.gp-base__link { color: var(--gp-ink-soft); text-decoration: none; font-size: 15px; }
.gp-base__link:hover { color: var(--gp-accent); text-decoration: underline; }

.gp-base__rule {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--gp-line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  color: var(--gp-mute);
  font-size: 13px;
}

/* ---------- lift + veil ---------- */
.gp-lift {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  display: none;
  align-items: center; justify-content: center;
  background: var(--gp-ink);
  color: #fff;
  border: 0;
  border-radius: var(--gp-r-soft);
  cursor: pointer;
  z-index: 35;
  box-shadow: var(--gp-lift-2);
}
.gp-lift.is-shown { display: flex; }
.gp-lift svg { width: 18px; height: 18px; }

.gp-veil {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--gp-page);
  border-top: 1px solid var(--gp-line);
  box-shadow: var(--gp-lift-2);
  display: none;
}
.gp-veil.is-shown { display: block; }

.gp-veil__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
  padding-block: 18px;
}
.gp-veil__text { font-size: 14px; color: var(--gp-mute); max-width: 74ch; line-height: 1.6; }
.gp-veil__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-veil__acts .gp-act { padding: 12px 20px; font-size: 14px; }

/* ---------- legal pages ---------- */
.gp-page__title { font-size: clamp(34px, 5vw, 56px); font-weight: 200; letter-spacing: -0.03em; }
.gp-page__stamp { margin-top: 16px; color: var(--gp-mute); font-size: 14px; }
.gp-page__back { margin-top: 26px; }

.gp-doc { padding-bottom: var(--gp-gap-block); display: grid; gap: 34px; }
.gp-doc__part { display: grid; gap: 12px; }
.gp-doc__h { font-size: clamp(21px, 2.4vw, 27px); font-weight: 300; letter-spacing: -0.025em; }
.gp-doc p, .gp-doc li { color: var(--gp-mute); font-size: 16px; line-height: 1.72; max-width: 82ch; }
.gp-doc ul { list-style: none; display: grid; gap: 9px; }
.gp-doc ul li { position: relative; padding-left: 20px; }
.gp-doc ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 1px;
  background: var(--gp-accent);
}

.gp-lost { padding-block: clamp(70px, 12vw, 150px); text-align: center; }
.gp-lost__code { font-size: clamp(72px, 14vw, 150px); font-weight: 200; letter-spacing: -0.05em; line-height: 1; color: var(--gp-accent); }
.gp-lost__text { margin: 22px auto 0; max-width: 52ch; color: var(--gp-mute); font-size: 18px; }
.gp-lost__acts { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .gp-ledger { grid-template-columns: minmax(0, 1fr); }
  .gp-base__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .gp-crest__toggle { display: inline-flex; }
  .gp-crest__menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--gp-page);
    border-bottom: 1px solid var(--gp-line);
    padding: 8px var(--gp-pad-x) 20px;
  }
  .gp-crest__menu.is-open { display: flex; }
  .gp-crest__link { padding: 13px 0; border-bottom: 1px solid var(--gp-line-soft); }
  .gp-crest__row { position: relative; }

  .gp-shelf__grid,
  .gp-plan__grid,
  .gp-voice__grid,
  .gp-stub__grid { grid-template-columns: minmax(0, 1fr); }

  .gp-facet__frieze { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .gp-pane__body { padding: 24px; }
  .gp-join__grid { grid-template-columns: minmax(0, 1fr); }
  .gp-base__cols { grid-template-columns: minmax(0, 1fr); }
  .gp-veil__acts .gp-act { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
