/* Caverat Games.
   The home page is a shelf of box fronts; each game's page is the back of its
   box, full bleed in the game's own colour; support and privacy are the
   leaflet inside. Shared grammar: italic condensed headlines, tilted prints
   with a white keyline, numbered callout discs, a boxed spec strip, a barcode. */

@font-face {
  font-family: 'Barlow';
  src: url('fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('fonts/barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-800-italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces Black';
  src: url('fonts/fraunces-black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('fonts/josefin-sans-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #101014;
  /* The shop's own ground, charcoal, and everything that sits on it. Never
     white (owner, 16 Nov 2026). Change the ground here and nowhere else. */
  --card: #1d1d25;
  --card-ink: #f3f1ed;
  --card-soft: #b9b7c6;
  --card-lift: #4b4b5e;
  --card-deep: #2a2a35;
  --card-rule: #5b5b70;
  --shelf-edge: #4b4b5e;
  --shelf-top: #6c6c84;
  --ticket-bg: #2e2e3a;
  --ticket-ink: #f3f1ed;
  --ticket-meta: #b9b7c6;
  --ticket-on-bg: #f3f1ed;
  --ticket-on-ink: #101014;
  --ticket-on-meta: #3b3b46;
  --card-focus: #ffffff;

  --text: 'Barlow', system-ui, sans-serif;
  --loud: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --gutter: clamp(16px, 4.2vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

main {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

b,
strong {
  font-weight: 600;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

:focus-visible {
  outline: 3px solid var(--accent, #fff);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #fff;
  color: #101014;
}

.box-gliss ::selection {
  background: #f7dc4d;
  color: #0d1322;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  outline: 2px solid #fff;
  font-weight: 600;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------ publisher strip */

.strip {
  --accent: #fff;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 12px var(--gutter);
  background: var(--ink);
}

.strip-mark {
  color: inherit;
  text-decoration: none;
  font-family: var(--loud);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strip-nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
}

.strip-nav a {
  padding: 11px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.strip-nav a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------- the boxes */

.box {
  --line: color-mix(in srgb, var(--fg) 34%, transparent);
  position: relative;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

.box-gliss {
  --bg: #0d1322;
  --fg: #eef2fd;
  --soft: #c6cee6;
  --accent: #f7dc4d;
  --accent-ink: #0d1322;
  --keyline: #ffffff;
}

.box-nmb {
  --bg: #1b5e38;
  --fg: #f2efe6;
  --soft: #d6dfd6;
  --accent: #e6c97f;
  --accent-ink: #0f0d0b;
  --keyline: #f2efe6;
}

.box-nmb ::selection {
  background: #e6c97f;
  color: #0f0d0b;
}

.box-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'head' 'screens' 'copy' 'inbox' 'extra' 'foot';
  row-gap: clamp(28px, 5vw, 44px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 48px);
}

.box-head { grid-area: head; }
.box-screens { grid-area: screens; }
.box-copy { grid-area: copy; }
.box-inbox { grid-area: inbox; }
.box-extra { grid-area: extra; }
.box-foot { grid-area: foot; }

.gliss-mark {
  font-family: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  font-size: clamp(4rem, 2.2rem + 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

.gliss-mark i {
  position: relative;
  font-style: normal;
}

.gliss-mark i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.1em;
  width: 0.19em;
  height: 0.19em;
  margin-left: -0.095em;
  border-radius: 50%;
  background: #8fdcff;
}

.nmb-mark {
  font-family: 'Fraunces Black', Georgia, serif;
  font-size: clamp(2.75rem, 1.5rem + 5.4vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.shout {
  margin-top: clamp(14px, 2vw, 22px);
  max-width: 17ch;
  font-family: var(--loud);
  font-size: clamp(2.2rem, 1.3rem + 3.7vw, 4.25rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--accent);
}

.box-nmb .shout {
  max-width: 30ch;
}

/* ---------------------------------------------------------- prints and discs */

.box-screens {
  position: relative;
}

.screens {
  position: relative;
}

.print {
  display: block;
  border: 4px solid var(--keyline);
  border-radius: 5px;
  background: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 44px -10px rgba(0, 0, 0, 0.6);
}

.screens figcaption {
  margin-top: 22px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--soft);
}

.box-gliss .screens {
  max-width: 440px;
  margin: 0 auto;
  padding-top: 8px;
}

.box-gliss .print-back {
  position: absolute;
  left: 0;
  top: 9%;
  width: 47%;
  rotate: -6deg;
}

.box-gliss .print-front {
  position: relative;
  z-index: 1;
  width: 64%;
  margin-left: auto;
  margin-right: 2%;
  rotate: 2.5deg;
}

.box-gliss .screens figcaption {
  margin-top: 34px;
}

.disc {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--bg);
  font-family: var(--loud);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  translate: -50% -50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transition: background-color 200ms var(--ease), scale 200ms var(--ease);
}

button.disc {
  cursor: pointer;
}

/* A larger target than the disc looks. */
button.disc::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

/* The leader line from the disc into the print. */
.box-gliss .disc::after,
.box-nmb .disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 1.5rem;
  height: 2px;
  margin-top: -1px;
  background: #fff;
  transition: background-color 200ms var(--ease);
}

.box-gliss .disc-3::after {
  left: auto;
  right: 100%;
}

.disc[aria-current='true'] {
  background: var(--accent);
  scale: 1.18;
}

.disc[aria-current='true']::after {
  background: var(--accent);
}

/* Positions are fractions of the demonstration's own frame. */
.disc-1 { left: -3%; top: 27.7%; }
.disc-2 { left: -3%; top: 65.6%; }
.disc-3 { left: 103%; top: 40.3%; }

.sticker {
  position: absolute;
  z-index: 5;
  left: max(0px, calc(50% - 230px));
  top: -18px;
  display: grid;
  place-content: center;
  width: 9rem;
  aspect-ratio: 1;
  padding: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--loud);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  rotate: -9deg;
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.5);
}

.sticker span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.3125rem;
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

/* No More Bets: one wide print, with the shop and a card laid over its corners. */
.box-nmb .screens {
  padding-bottom: 20%;
}

.box-nmb .print-wide {
  position: relative;
  rotate: -1.2deg;
}

.box-nmb .print-wide img {
  width: 100%;
  border-radius: 1px;
}

.box-nmb .print-shop {
  position: absolute;
  right: -2%;
  bottom: 9%;
  width: 46%;
  rotate: 3deg;
}

.box-nmb .print-card {
  position: absolute;
  left: 3%;
  bottom: 7%;
  width: 22%;
  rotate: -6deg;
}

.box-nmb .screens {
  margin-bottom: 4.6rem;
}

.box-nmb .screens figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 14px 0 0;
}

.box-nmb .sticker {
  left: auto;
  right: 0;
  top: -40px;
  rotate: 8deg;
}

.box-nmb .disc::after {
  width: 1.1rem;
  background: var(--keyline);
}

.disc-wheel { left: 73%; top: 6%; }
.disc-rail { left: 35.5%; top: 42.5%; }
.disc-respin { left: 18.5%; top: 43.5%; }
.disc-rigs { left: 29%; top: 4.5%; }

/* --------------------------------------------------------------------- copy */

.blurb {
  max-width: 44ch;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.45;
}

.box .sub {
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  font-family: var(--loud);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent);
}

.legend {
  counter-reset: rule;
  max-width: 50ch;
}

.legend li {
  counter-increment: rule;
}

.legend li > * {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  width: 100%;
  padding: 9px 12px 9px 8px;
  margin-left: -8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--soft);
  font: inherit;
  text-align: left;
}

.legend li > *::before {
  content: counter(rule);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--fg);
  font-family: var(--loud);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.legend b {
  color: var(--fg);
}

.legend button {
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.legend button:hover {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.legend button[aria-current='true'] {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--fg);
}

.legend button[aria-current='true']::before {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}

.legend-plain li > *::before {
  background: #fff;
  box-shadow: none;
  color: var(--bg);
}

.aside {
  max-width: 50ch;
  margin-top: 10px;
  padding-left: calc(2rem + 14px);
  color: var(--soft);
}

.box-inbox .sub {
  margin-top: 0;
}

.contents {
  max-width: 50ch;
}

.contents li {
  position: relative;
  padding: 5px 0 5px calc(2rem + 14px);
}

.contents li::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0.95em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}

/* --------------------------------------------- No More Bets: the extra panel */

.box-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px clamp(32px, 5vw, 72px);
  padding-top: 8px;
  border-top: 2px solid var(--line);
}

.spreads ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 28px;
}

.spreads li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-areas: 'glyph name' 'glyph text';
  column-gap: 14px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.spreads svg {
  grid-area: glyph;
  width: 3.25rem;
  fill: var(--accent);
}

.spreads svg.is-red {
  fill: #ff7a6e;
}

.spreads svg .frame {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.6;
  stroke-dasharray: 1.6 1.2;
}

.spreads b {
  grid-area: name;
  align-self: end;
  font-family: 'Josefin Sans', var(--loud);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.spreads span {
  grid-area: text;
  align-self: start;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--soft);
}

.packs {
  display: flex;
  margin: 18px 0 0 calc(2rem + 6px);
  padding-bottom: 6px;
}

.packs img {
  width: clamp(56px, 16%, 84px);
  margin-right: -10px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

.packs img:nth-child(1) { rotate: -7deg; }
.packs img:nth-child(2) { rotate: -2deg; translate: 0 -4px; }
.packs img:nth-child(3) { rotate: 3deg; translate: 0 -3px; }
.packs img:nth-child(4) { rotate: 8deg; }

.rigtext dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 28px;
  max-width: 50ch;
}

.rigtext dl > div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.rigtext dt {
  font-family: 'Josefin Sans', var(--loud);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rigtext dd {
  color: var(--soft);
}

/* ---------------------------------------------------------------- spec strip */

.box-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 32px;
  align-items: end;
  margin-top: clamp(8px, 2vw, 24px);
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: var(--line);
}

.specs > div {
  padding: 12px 14px 14px;
  background: var(--bg);
}

.specs > div:last-child:nth-child(odd) {
  grid-column: span 2;
}

.specs dt {
  margin-bottom: 3px;
  font-family: var(--loud);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--accent);
}

.specs dd {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.imprint {
  display: flex;
  align-items: center;
  gap: 14px;
}

.barcode {
  width: 104px;
  padding: 7px 8px;
  border-radius: 2px;
  background: #fff;
  fill: #101014;
}

.imprint p {
  font-family: var(--loud);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------- flap */

.flap {
  --accent: var(--card-focus);
  background: var(--card);
  color: var(--card-ink);
}

.flap ::selection {
  background: var(--card-ink);
  color: var(--card);
}

.flap-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) var(--gutter) clamp(28px, 4vw, 44px);
}

.flap h2 {
  font-family: var(--loud);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.flap-text {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.1875rem;
}

.flap-text p + p {
  margin-top: 0.9em;
}

.flap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
}

.flap-links a {
  padding: 9px 0;
  font-family: var(--loud);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flap a:hover {
  text-decoration-thickness: 0.16em;
}

.smallprint {
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 16px;
  border-top: 2px solid var(--card-rule);
  font-size: 0.9375rem;
  color: var(--card-soft);
}

/* ------------------------------------------------------------------- wider */

@media (max-width: 939px) {
  /* The board is something to play on a phone, so it takes nearly the full
     width and the capture behind it only peeks out. */
  .box-gliss .screens {
    max-width: 400px;
  }

  .box-gliss .print-front {
    width: 88%;
    margin-right: 0;
  }

  .box-gliss .print-back {
    left: -3%;
    top: 5%;
    width: 42%;
  }

  /* The board now reaches the page edge, so the third disc sits on it, not outside it. */
  .box-gliss .disc-3 {
    left: 97%;
  }

  .sticker {
    width: 7rem;
    padding: 0.6rem;
    font-size: 0.8125rem;
  }

  .sticker span {
    font-size: 1.0625rem;
  }

  /* Beside the last lines of the headline, clear of the board and its discs. */
  .box-gliss .sticker {
    left: auto;
    right: -4px;
    top: -122px;
  }

  /* In the gap between the card and the shop print, clear of every callout. */
  .box-nmb .sticker {
    left: 25%;
    right: auto;
    top: auto;
    bottom: calc(4.6rem + 4px);
    rotate: -8deg;
  }
}

@media (min-width: 620px) {
  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .specs > div:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .specs > div:last-child:nth-child(3n + 2) {
    grid-column: span 2;
  }

  .box-foot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .box-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .box-extra .spreads {
    grid-column: 1 / -1;
  }
}

@media (min-width: 940px) {
  .box-gliss .box-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas:
      'head screens'
      'copy screens'
      'copy inbox'
      'foot foot';
    grid-template-rows: auto auto 1fr auto;
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 36px;
  }

  .box-gliss .box-copy .sub:first-of-type {
    margin-top: 2rem;
  }

  .box-gliss .box-screens {
    align-self: start;
    padding-top: 12px;
  }

  .box-gliss .box-inbox {
    align-self: start;
    padding-left: 34px;
  }

  .box-gliss .screens {
    max-width: 500px;
    margin-right: 0;
  }

  .box-gliss .sticker {
    left: -34px;
    top: -6px;
  }

  .box-nmb .box-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas:
      'head head'
      'screens copy'
      'extra extra'
      'foot foot';
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 40px;
  }

  .box-nmb .box-head {
    padding-right: 10rem;
  }

  .box-nmb .box-screens {
    padding-top: 6px;
  }

  .box-nmb .sticker {
    right: auto;
    left: -30px;
    top: -34px;
    rotate: -9deg;
  }

  .box-nmb .box-copy .sub:first-of-type {
    margin-top: 1.8rem;
  }

  .box-extra {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: 'spreads inbox' 'rigtext inbox';
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 80px);
  }

  .box-extra .spreads {
    grid-area: spreads;
    grid-column: auto;
  }

  .box-extra .inbox { grid-area: inbox; }
  .box-extra .rigtext { grid-area: rigtext; }

  .spreads ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rigtext dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .rigtext dl > div {
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .box-nmb .screens {
    margin-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .disc,
  .disc::after,
  .legend button,
  .legend li > *::before {
    transition: none;
  }
}

/* ============================================================== box fronts
   A cover scales with its own width (cqw), so the same mark-up serves the
   shelf, the "also on the shelf" link and the small ones in the strip. */

.boxlink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cover {
  container-type: inline-size;
  position: relative;
  display: block;
}

/* A box stands straight at all times. Under the pointer it grows a little
   from its base, so it stays planted on the shelf (owner, 16 Nov 2026). */
.cover-body {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  transform-origin: 50% 100%;
  transition: scale 320ms var(--ease);
}

.boxlink:hover .cover-body,
.boxlink:focus-visible .cover-body {
  scale: 1.045;
}

/* The box's shadow on the shelf. */
.cover::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 4%;
  right: -6%;
  bottom: -3.5cqw;
  height: 8cqw;
  background: radial-gradient(closest-side, rgba(16, 16, 20, 0.42), transparent);
  filter: blur(1.2cqw);
}

.cover-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1.4cqw;
  background: var(--cover-bg);
  color: var(--cover-fg);
}

.cover-spine {
  display: none;
}

.cover-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  height: 9.5cqw;
  background: var(--cover-accent);
  color: var(--cover-accent-ink);
  font-family: var(--loud);
  font-size: 4.5cqw;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.cover-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8cqw;
  padding: 0 5cqw;
  background: #101014;
  color: #fff;
  font-family: var(--loud);
  font-size: 3.5cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.cover-line {
  position: absolute;
  font-family: var(--loud);
  font-size: 6.4cqw;
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cover-accent);
}

.cover-sticker {
  position: absolute;
  right: -5cqw;
  top: 14cqw;
  display: grid;
  place-content: center;
  width: 31cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  /* A shop's price flash, in the red both games already carry. */
  background: #d8362b;
  color: #fff;
  font-family: var(--loud);
  font-size: 7cqw;
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
  rotate: 11deg;
  box-shadow: 0 1.6cqw 3cqw -0.6cqw rgba(0, 0, 0, 0.5);
}

.cover-gliss {
  --cover-bg: radial-gradient(120% 85% at 62% 34%, #2a4687 0%, #172446 46%, #0d1322 100%);
  --cover-fg: #eef2fd;
  --cover-side: #080c18;
  --cover-accent: #f7dc4d;
  --cover-accent-ink: #0d1322;
}

.cover-gliss .cover-name {
  position: absolute;
  left: 8cqw;
  top: 14cqw;
  font-family: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  font-size: 31cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

.cover-name i {
  position: relative;
  font-style: normal;
}

.cover-gliss .cover-name i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.1em;
  width: 0.19em;
  height: 0.19em;
  margin-left: -0.095em;
  border-radius: 50%;
  background: #8fdcff;
}

.cover-gliss .cover-line {
  left: 8.6cqw;
  top: 45cqw;
  width: 46cqw;
}

.cover-gliss .cover-art {
  position: absolute;
  left: -13cqw;
  bottom: -19cqw;
  width: 121cqw;
  max-width: none;
}

.cover-nmb {
  --cover-bg: radial-gradient(95% 70% at 50% 52%, #24744a 0%, #1b5e38 52%, #123f25 100%);
  --cover-fg: #f2efe6;
  --cover-side: #0c2a19;
  --cover-accent: #e6c97f;
  --cover-accent-ink: #0f0d0b;
}

.cover-nmb .cover-name {
  position: absolute;
  left: 0;
  right: 0;
  top: 14.5cqw;
  font-family: 'Fraunces Black', Georgia, serif;
  font-size: 16.5cqw;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-align: center;
}

.cover-nmb .cover-art {
  position: absolute;
  left: 27cqw;
  top: 49cqw;
  width: 46cqw;
  border-radius: 2.2cqw;
  rotate: -5deg;
  box-shadow: 0 0.6cqw 1.2cqw rgba(0, 0, 0, 0.35), 0 4cqw 7cqw -1.5cqw rgba(0, 0, 0, 0.6);
}

.cover-nmb .cover-sticker {
  top: 60cqw;
}

.cover-nmb .cover-line {
  left: 0;
  right: 0;
  bottom: 11cqw;
  font-size: 5.4cqw;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Small covers (the strip): flat, and only what survives at that size. */
.cover-mini .cover-body {
  transition: translate 240ms var(--ease);
}

.cover-mini::after,
.cover-mini .cover-spine,
.cover-mini .cover-band,
.cover-mini .cover-foot,
.cover-mini .cover-line,
.cover-mini .cover-sticker {
  display: none;
}

.cover-mini .cover-face {
  border-radius: 3px;
}

.cover-mini.cover-gliss .cover-name {
  top: 9cqw;
  font-size: 34cqw;
}

.cover-mini.cover-gliss .cover-art {
  bottom: -14cqw;
}

.cover-mini.cover-nmb .cover-name {
  display: none;
}

.cover-mini.cover-nmb .cover-art {
  left: 19cqw;
  top: 15cqw;
  width: 62cqw;
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------- the strip's box chooser */

.strip-nav {
  align-items: center;
}

.strip-nav .pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.strip-nav .pick .cover {
  width: 30px;
}

.strip-nav .pick:hover {
  text-decoration: none;
}

.strip-nav .pick:hover .cover-body {
  translate: 0 -2px;
}

.strip-nav .pick:hover > span:last-child {
  text-decoration: underline;
}

.strip-nav .pick[aria-current='page'] .cover-face {
  box-shadow: 0 0 0 2px #101014, 0 0 0 4px #fff;
}

@media (max-width: 559px) {
  /* The covers carry it on a phone; their names stay for screen readers. */
  .strip-nav .pick > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------- the shelf */

body.on-card {
  background: var(--card);
  color: var(--card-ink);
}

body.on-card ::selection {
  background: var(--card-ink);
  color: var(--card);
}

body.on-card {
  --accent: var(--card-focus);
}

.shelf {
  --gap: clamp(22px, 7vw, 110px);
  --box-w: min(330px, calc((100vw - 2 * var(--gutter) - var(--gap)) / 2));
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 84px) var(--gutter) clamp(40px, 6vw, 80px);
}

.shelf h1 {
  max-width: 12ch;
  font-family: var(--loud);
  font-size: clamp(2.9rem, 1.5rem + 6.4vw, 6rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.shelf-sub {
  max-width: 44ch;
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
}

.shelf-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, var(--box-w));
  grid-template-rows: auto auto;
  justify-content: center;
  gap: 0 var(--gap);
  margin-top: clamp(40px, 6vw, 72px);
}

.shelf-row .boxlink {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}

/* The shelf's front edge, under the boxes and above their tickets. */
.shelf-row::before {
  content: '';
  position: absolute;
  left: -100vw;
  right: -100vw;
  top: calc(var(--box-w) * 1.4 - 7px);
  /* 9px of shelf top plus a 12px black front edge. */
  height: 21px;
  /* The lighter band is the top of the shelf; the boxes stand on it. */
  border-top: 9px solid var(--shelf-top);
  background: var(--shelf-edge);
  box-shadow: 0 10px 18px -8px rgba(16, 16, 20, 0.45);
}

.ticket {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 40px;
  padding: 12px 14px 13px;
  border: 2px solid var(--ticket-bg);
  background: var(--ticket-bg);
  color: var(--ticket-ink);
  line-height: 1.3;
}

.ticket strong {
  font-family: var(--loud);
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.ticket-meta {
  color: var(--ticket-meta);
  font-size: 0.9375rem;
}

.ticket-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Pinned to the foot of the ticket so the two tickets' last lines agree. */
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--loud);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-go svg {
  width: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 240ms var(--ease);
}

.boxlink:hover .ticket-go svg,
.boxlink:focus-visible .ticket-go svg {
  translate: 5px 0;
}

.boxlink:hover .ticket,
.boxlink:focus-visible .ticket {
  border-color: var(--ticket-on-bg);
  background: var(--ticket-on-bg);
  color: var(--ticket-on-ink);
}

.boxlink:hover .ticket-meta,
.boxlink:focus-visible .ticket-meta {
  color: var(--ticket-on-meta);
}

.boxlink:focus-visible {
  outline: 3px solid var(--card-focus);
  outline-offset: 8px;
}

@media (min-width: 940px) {
  .shelf {
    --gap: clamp(36px, 5vw, 72px);
    --box-w: clamp(
      180px,
      min(calc((100svh - 420px) / 1.4), calc((100vw - 2 * var(--gutter) - 348px - var(--gap)) / 2)),
      330px
    );
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
    padding-top: clamp(40px, 5.5vw, 72px);
  }

  .shelf h1 {
    max-width: none;
    font-size: clamp(3.1rem, 5.3vw, 4.75rem);
  }

  .shelf-row {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }
}

/* ---------------------------------- the foot of a game page and of a leaflet */

.also {
  display: grid;
  grid-template-columns: clamp(96px, 22vw, 150px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  max-width: 640px;
  padding: 6px 0 4px;
}

.also-text strong {
  display: block;
  margin: 0 0 6px;
  font-family: var(--loud);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.also-text span {
  display: block;
}

.also-text .ticket-go {
  display: inline-flex;
}

.flap-inner > .flap-links:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------ the leaflet */

.leaflet {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(20px, 3vw, 40px);
}

.leaflet h1 {
  font-family: var(--loud);
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}

.leaflet-body {
  max-width: 68ch;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 1.125rem;
  line-height: 1.6;
}

.leaflet-body > p:first-child {
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
}

.leaflet h2 {
  margin-top: 2.6em;
  font-family: var(--loud);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.leaflet h3 {
  margin-top: 1.7em;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.leaflet p,
.leaflet ul,
.leaflet ol {
  margin-top: 0.75em;
}

.leaflet ul,
.leaflet ol {
  padding-left: 1.3em;
  list-style: revert;
}

.leaflet li + li {
  margin-top: 0.35em;
}

.leaflet li::marker {
  font-weight: 600;
}

.notice {
  margin-top: 1.6em;
  padding: 14px 18px 16px;
  border: 2px solid var(--card-rule);
  background: var(--card-deep);
}

.notice p {
  margin-top: 0;
}

.notice p + p {
  margin-top: 0.5em;
}

.notice b {
  font-family: var(--loud);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc {
  columns: 2 14rem;
  column-gap: 32px;
}

.flap-plain .flap-inner {
  padding-top: clamp(28px, 4vw, 48px);
}

.flap-plain .smallprint {
  margin-top: 28px;
}

.leaflet .dated {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--card-soft);
}

/* The full policy: Gliss's sections sit one level down, under "Gliss". */
.policy-full h3 {
  margin-top: 2em;
  font-family: var(--loud);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.leaflet h4 {
  margin: 1.5em 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

/* A game's own policy, set in the leaflet. Its wording comes from the game. */
.policy h1 {
  margin-top: 6px;
}

.policy .back {
  margin: 0;
  font-family: var(--loud);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy .dated {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--card-soft);
}

.policy h2 {
  margin-top: 2.2em;
}

/* ------------------------------------------------- turning a box over
   Where the browser supports it, the cover you chose travels to its place in
   the strip while the page changes underneath. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

.vt-gliss { view-transition-name: box-gliss; }
.vt-nmb { view-transition-name: box-nmb; }

::view-transition-group(box-gliss),
::view-transition-group(box-nmb) {
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .cover-body,
  .ticket-go svg {
    transition: none;
  }
}

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

.strip-mark[aria-current='page'] {
  cursor: default;
}

.flap-home .flap-inner {
  padding-top: clamp(36px, 5vw, 64px);
}
