/* =========================================================================
   Chooni — alternate design (/alt pages): loud pastels, pill stickers, tilted cards.
   Self-contained: tokens.css/base.css are not loaded on these pages.
   Sizing: everything is in em off one fluid root size (16px at a 1920px-wide window),
   so the whole layout scales with the viewport between the breakpoints below.
   RTL-first: logical properties only; "forward" arrows point left.
   ========================================================================= */

:root {
  --black: #000;
  --white: #fff;
  --violet: #3b308f;
  --magenta: #d90077;
  --orange: #f9a220;
  --yellow: #ffd24a;
  --pale-yellow: #faed8f;
  --soft-pink: #ffdbfd;
  --pale-pink: #feb6fa;
  --pale-blue: #a4f6f8;
  --soft-blue: #ddfcfc;
  --periwinkle: #9982de;
  --pale-periwinkle: #c2b4eb;
  --soft-periwinkle: #d7cdf1;
  --soft-orange: #fddaa6;
  --pale-orange: #fbbe63;
  --pale-green: #8dfc91;
  --soft-green: #d3fed4;
  --soft-grey: #f2f2f2;
  --disabled: #c4c4c4;

  --font-display: "Lalezar", "Vazirmatn", system-ui, sans-serif;
  --font-body: "Vazirmatn", system-ui, sans-serif;
  --font-hand: "Aref Ruqaa", "Lalezar", serif;

  --size-unit: 16;
  --size-container-ideal: 1920;
  --size-container-min: 992px;
  --size-container-max: 3840px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));

  --grid-margin: 1.5em;
  --header-height: 6.625em;

  --font-size-heading-xxl: 10em;
  --font-size-heading-l: 6.5em;
  --font-size-heading-m: 5em;
  --font-size-heading-s: 2.5em;
  --font-size-paragraph-large: 2em;
  --font-size-paragraph-medium: 1.75em;
  --font-size-paragraph-regular: 1.5em;
  --font-size-paragraph-small: 1.25em;

  --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft-overshoot: cubic-bezier(0.59, 1, 0.88, 1.01);
  --ease-bounce: cubic-bezier(0.34, 1.57, 0.64, 1);
  --ease-bounce-strong: cubic-bezier(0.34, 2.27, 0.64, 1);
  --ease-click: cubic-bezier(0.4, 0, 0.2, 1);
  /* elastic.out(1, 0.72): the springy settle every entrance uses. */
  --ease-elastic: linear(0, 0.5737 7.6%, 0.8382 11.87%, 0.9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, 0.9995 46.99%, 0.9872 51.63%, 0.9842 58.77%, 1.0011 81.26%, 1);

  /* Popcorn puffs: they pop over the active nav pill, the picked genre and a hovered card. */
  --puff-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 44'%3E%3Cpath d='M11 43c-8 0-11-9-5-13-6-6 0-16 8-13 1-9 13-11 16-3 6-6 16 0 12 9 7 4 4 15-4 15 0 7-8 10-14 6-4 3-10 3-13-1Z'/%3E%3C/svg%3E");
  --puff-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 52'%3E%3Cpath d='M9 51c-6-1-9-8-5-12-5-5-1-13 6-12-3-7 2-14 9-13 0-8 10-11 14-5 5 4 3 11-2 13 6 3 6 12-1 14 4 5 0 12-6 12 0 4-8 7-15 3Z'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
    --grid-margin: 1em;
    --header-height: 5em;
    --font-size-heading-xxl: 6em;
    --font-size-heading-l: 2.75em;
    --font-size-heading-m: 2.25em;
    --font-size-heading-s: 1.875em;
    --font-size-paragraph-large: 1.25em;
    --font-size-paragraph-medium: 1.25em;
    --font-size-paragraph-regular: 1.125em;
    --font-size-paragraph-small: 1em;
  }
}

@media (max-width: 767px) {
  :root {
    --size-container-ideal: 550;
    --size-container-min: 480px;
    --size-container-max: 767px;
    --font-size-heading-xxl: 4.25em;
  }
}

@media (max-width: 479px) {
  :root {
    --size-container-ideal: 402;
    --size-container-min: 320px;
    --size-container-max: 479px;
    --font-size-heading-xxl: 3.25em;
  }
}

/* Hero tones: the hero fill, its blobs, the softer tone the header pills and the reading band take, and the CTA. */
[data-hero="periwinkle"] { --hero-bg: var(--pale-periwinkle); --hero-blob: var(--soft-periwinkle); --hero-soft: var(--soft-periwinkle); --cta-bg: var(--magenta); --cta-fg: var(--white); }
[data-hero="orange"]     { --hero-bg: var(--soft-orange); --hero-blob: #fbc677; --hero-soft: var(--pale-orange); --cta-bg: var(--orange); --cta-fg: var(--black); }
[data-hero="pink"]       { --hero-bg: var(--pale-pink); --hero-blob: #ffcafc; --hero-soft: var(--soft-pink); --cta-bg: var(--magenta); --cta-fg: var(--white); }
[data-hero="blue"]       { --hero-bg: var(--pale-blue); --hero-blob: var(--soft-blue); --hero-soft: var(--soft-blue); --cta-bg: var(--magenta); --cta-fg: var(--white); }
[data-hero="green"]      { --hero-bg: var(--pale-green); --hero-blob: #bdfebf; --hero-soft: var(--soft-green); --cta-bg: var(--violet); --cta-fg: var(--white); }
[data-hero="yellow"]     { --hero-bg: var(--yellow); --hero-blob: #fbe68b; --hero-soft: var(--pale-yellow); --cta-bg: var(--orange); --cta-fg: var(--black); }

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--fixed-header-height, var(--header-height)) + 0.75rem);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--size-font);
  font-weight: 600;
  line-height: 1.25;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 0.125em solid var(--black); outline-offset: 0.125em; }
.search__input:focus-visible { outline: 0.1875rem solid var(--violet); outline-offset: -0.25rem; }
.skip-link { position: fixed; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; z-index: 2100; min-block-size: 2.75rem; padding: 0.75rem 1rem; background: var(--white); color: var(--black); translate: 0 -200%; }
.skip-link:focus { translate: none; }
main:focus { outline: none; }

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

/* ----- type scale (Lalezar is single-weight; Persian needs more line height than a Latin display face) ----- */

.u-heading-xxl { font-family: var(--font-display); font-weight: 400; font-size: var(--font-size-heading-xxl); line-height: 1.02; }
.u-heading-l   { font-family: var(--font-display); font-weight: 400; font-size: var(--font-size-heading-l); line-height: 1.05; }
.u-heading-m   { font-family: var(--font-display); font-weight: 400; font-size: var(--font-size-heading-m); line-height: 1.08; }
.u-heading-s   { font-family: var(--font-display); font-weight: 400; font-size: var(--font-size-heading-s); line-height: 1.12; }
.u-paragraph-large   { font-size: var(--font-size-paragraph-large); line-height: 1.35; }
.u-paragraph-medium  { font-size: var(--font-size-paragraph-medium); line-height: 1.4; }
.u-paragraph-regular { font-size: var(--font-size-paragraph-regular); line-height: 1.45; }
.u-paragraph-small   { font-size: var(--font-size-paragraph-small); line-height: 1.45; }
.u-handwritten-regular { font-family: var(--font-hand); font-weight: 700; font-size: 2.25em; line-height: 1.2; }

.page-wrapper { position: relative; width: 100%; }

main {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 0 0 10em 10em;
  padding-bottom: 6em;
}

/* =========================================================================
   Icons — Font Awesome Pro 7 Duotone (Rendering/Fa.cs, assets/icons/fa.svg). One em tall in a box wide
   enough for the widest glyph; both layers take the text color, the second at 40% — a sticker look on
   the pastel pills. RT's own marks, platform logos and the genre/mode badge emoji are not icons here.
   ========================================================================= */

.fa {
  display: inline-block;
  width: 1.25em;
  height: 1em;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: -0.125em;
  --fa-primary-color: currentColor;
  --fa-secondary-color: currentColor;
  --fa-secondary-opacity: 0.4;
}
.fa-xmark, .fa-check, .fa-chevron-down { --fa-secondary-opacity: 1; }
.at-a-glance__icon { display: inline-flex; }
.at-a-glance__icon .fa { width: 1.3em; height: 1em; vertical-align: 0; }
.tag__fa { font-size: 1.35em; }
.accordion__fa { margin-inline-end: 0.5em; color: var(--violet); --fa-secondary-color: var(--magenta); --fa-secondary-opacity: 0.7; }
.review__verdict .fa, .review__chip .fa, .review__meta .fa, .flow__card-verdict .fa, .reviews-pending .fa { margin-inline-end: 0.35em; }
.steps__emoji .fa { width: 1.3em; height: 1em; vertical-align: 0; }
.score-mark--icon .fa { width: 1.2em; height: 1.1em; }
.slides__close .fa { font-size: 1.4em; }

/* =========================================================================
   Buttons
   ========================================================================= */

.button {
  --button-height: 3.5em;
  position: relative;
  display: inline-grid;
  height: var(--button-height);
  color: var(--black);
  font-weight: 600;
  transition: scale 0.15s var(--ease-click);
  -webkit-user-select: none;
  user-select: none;
}
.button__bg {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  justify-content: center;
  background: var(--button-bg, var(--hero-soft));
  border-radius: 2em;
  transition: scale 0.15s var(--ease-soft-overshoot), transform 0.15s var(--ease-soft-overshoot);
}
.button__inner { grid-area: 1 / 1; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0 1em; }
.button__text { font-size: 1.375em; white-space: nowrap; }
.button:active { scale: 0.955 0.925; }

/* Popcorn over the current section's pill. */
.button__bg::before,
.button__bg::after {
  content: "";
  position: absolute;
  top: 0;
  background: inherit;
  -webkit-mask: var(--puff-a) center / contain no-repeat;
  mask: var(--puff-a) center / contain no-repeat;
  width: 1.1em;
  height: 1em;
  translate: 0 -85%;
  transform-origin: bottom center;
  transform: rotate(36deg) scale(0);
  transition: transform 0.25s var(--ease-smooth);
}
.button__bg::before { inset-inline-start: 22%; }
.button__bg::after {
  inset-inline-start: 38%;
  width: 0.8em;
  height: 1.2em;
  -webkit-mask-image: var(--puff-b);
  mask-image: var(--puff-b);
  transform: rotate(-60deg) scale(0);
}
.button[aria-current="page"] .button__bg::before,
.button[aria-current="page"] .button__bg::after {
  transform: rotate(0) scale(1);
  transition: transform 0.45s 0.15s var(--ease-bounce);
}
.button[aria-current="page"] .button__bg::before { animation: puff-bob 4.2s 0.6s infinite; }
.button[aria-current="page"] .button__bg::after { animation: puff-hop 4.2s 0.6s infinite; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:is(:hover, :focus-visible) .button__bg {
    scale: 0.955 0.925;
    transform: scale(1.0471, 1.0811);
    transition: scale 0.15s var(--ease-soft-overshoot), transform 0.35s 0.15s var(--ease-bounce-strong);
  }
}

.button-alt {
  --button-alt-height: 3.5em;
  display: inline-flex;
  height: var(--button-alt-height);
  color: var(--cta-fg, var(--white));
  font-weight: 800;
  transition: scale 0.15s var(--ease-click);
  -webkit-user-select: none;
  user-select: none;
}
.button-alt:active { scale: 0.955 0.925; }
.button-alt__text-wrap,
.button-alt__icon-wrap { position: relative; display: grid; flex-shrink: 0; pointer-events: none; }
.button-alt__icon-wrap { aspect-ratio: 1; width: var(--button-alt-height); margin-inline-start: -0.0625em; }
.button-alt__bg {
  grid-area: 1 / 1;
  background: var(--cta-bg, var(--magenta));
  border-radius: 0.5em;
  transition: scale 0.15s var(--ease-soft-overshoot), transform 0.15s var(--ease-soft-overshoot);
}
.button-alt__text-outer,
.button-alt__icon-outer { grid-area: 1 / 1; z-index: 1; display: flex; align-items: center; justify-content: center; }
.button-alt__text { padding: 0 1em; font-size: 1.125em; white-space: nowrap; }
.button-alt__icon { width: 0.875em; height: 0.75em; }
.button-alt__text-wrap { transform-origin: center right; transition: translate 0.15s var(--ease-soft-overshoot), rotate 0.15s var(--ease-soft-overshoot), transform 0.15s var(--ease-soft-overshoot); }
.button-alt__icon-wrap { transform-origin: center left; transition: translate 0.15s var(--ease-soft-overshoot), rotate 0.15s var(--ease-soft-overshoot), transform 0.15s var(--ease-soft-overshoot); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.button-alt:is(:hover, :focus-visible) .button-alt__bg {
    scale: 0.955 0.925;
    transform: scale(1.0471, 1.0811);
    transition: scale 0.15s var(--ease-soft-overshoot), transform 0.35s 0.15s var(--ease-bounce-strong);
  }
  a.button-alt:is(:hover, :focus-visible) .button-alt__text-wrap {
    translate: -0.25em -0.125em 0;
    rotate: -4deg;
    transform: rotate(4deg);
    transition: translate 0.15s var(--ease-soft-overshoot), rotate 0.15s var(--ease-soft-overshoot), transform 0.35s 0.15s var(--ease-bounce-strong);
  }
  a.button-alt:is(:hover, :focus-visible) .button-alt__icon-wrap {
    translate: -0.5em -0.25em 0;
    rotate: 18deg;
    transform: rotate(-18deg);
    transition: translate 0.15s var(--ease-soft-overshoot), rotate 0.15s var(--ease-soft-overshoot), transform 0.35s 0.15s var(--ease-bounce-strong);
  }
}

/* =========================================================================
   Header — logo and badge slide away once the page scrolls; the section pills stay.
   ========================================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.header__inner {
  width: 100%;
  padding: 0 var(--grid-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
/* Once content scrolls beneath the fixed navigation it needs one opaque surface,
   including the space between the primary pills and the item navigation. */
[data-scrolling-started="true"] .header {
  background: var(--white);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.12);
  pointer-events: auto;
}
.header__title,
.header__sub {
  flex: 1 1 0;
  display: flex;
  transition: opacity 0.125s ease-out, translate 0.45s var(--ease-smooth);
}
.header__sub { justify-content: flex-end; }
.header__title-link { pointer-events: auto; }
.header__title-logo { width: 13em; height: auto; }
.header__nav-list { display: flex; align-items: center; justify-content: center; gap: 0.5em; }
.header__nav-list-item { pointer-events: auto; display: flex; }
/* Design switch: this design ("نسل زد") and the other one ("دهه شصت"), as one white pill with two halves. */
.ui-switch {
  display: inline-flex;
  align-items: center;
  height: 3.5em;
  padding: 0.3em;
  border-radius: 2em;
  background: var(--white);
  font-weight: 800;
  white-space: nowrap;
}
.ui-switch__option {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 0.9em;
  border-radius: 2em;
  font-size: 1.125em;
  transition: background-color 0.2s, color 0.2s, scale 0.15s var(--ease-click);
}
.ui-switch__option.is--active { background: var(--violet); color: var(--white); }
a.ui-switch__option:hover { background: var(--hero-soft); }
a.ui-switch__option:active { scale: 0.94; }
[data-scrolling-started="true"] .header__title,
[data-scrolling-started="true"] .header__sub {
  translate: 0 calc(var(--header-height) * -1) 0;
  pointer-events: none;
}

/* =========================================================================
   Hero (both pages)
   ========================================================================= */

.hero-xs {
  position: relative;
  background: var(--hero-bg);
  clip-path: inset(0 round 0 0 10em 10em);
  overflow: hidden;
}
.hero-xs__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--hero-blob);
  pointer-events: none;
}
.hero-xs__bg-svg { width: 100%; height: auto; overflow: visible; }
.hero-xs__inner {
  position: relative;
  z-index: 1;
  padding: 17.5em var(--grid-margin) 7.875em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5em;
}
.hero-xs__inner.is--all-books { padding-bottom: 2.8125em; }
.hero-xs__inner.is--book { padding-bottom: 16.0625em; gap: 2.25em; }
.hero-xs__content {
  position: relative;
  max-width: 96.625em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5em;
  text-align: center;
}
.hero-xs__content.is--all-books { width: 100%; }
.hero-xs__content.is--book { flex-direction: column-reverse; gap: 1.25em; }
.hero-xs__title { max-width: 11ch; text-wrap: balance; }
.hero-xs__title.is--long { font-size: calc(var(--font-size-heading-xxl) * 0.7); max-width: 14ch; }
.hero-xs__title.is--longer { font-size: calc(var(--font-size-heading-xxl) * 0.5); max-width: 18ch; }
.hero-xs__paragraph { max-width: 34ch; }
.hero-xs__content.is--book .hero-xs__paragraph { font-size: 1.75em; max-width: none; }
.hero-xs__sep { margin: 0 0.4em; opacity: 0.5; }
.hero-xs__genre-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3125em; max-width: 60em; }

.hero-xs__easter-egg {
  position: absolute;
  inset-inline-end: 11%;
  top: 15em;
  width: 6.5em;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0.375em solid var(--white);
  overflow: hidden;
  background: var(--white);
  rotate: -8deg;
  animation: egg-wobble 6s 1s infinite;
}
.hero-xs__easter-egg img { width: 100%; height: 100%; object-fit: cover; }
.hero-xs__easter-egg.is--book { top: auto; bottom: 5.125em; inset-inline-end: 5.5em; }

/* Search */
.search__form { display: flex; align-items: center; justify-content: center; width: 51.25em; max-width: 100%; height: 4.375em; }
.search__input {
  flex: 1;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0.625em;
  outline: 0;
  padding: 0 1.25em 0 0;
  padding-inline-start: 1.25em;
  background: var(--white);
  color: var(--black);
  font: 600 1.4em/1.5 var(--font-body);
}
.search__input::placeholder { color: var(--black); opacity: 1; }
.search__button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.375em;
  height: 4.375em;
  margin-inline-start: -0.125em;
  border-radius: 0.625em;
  background: var(--magenta);
  color: var(--white);
  transition: scale 0.15s var(--ease-click);
}
.search__button:active { scale: 0.92; }
.search__button-icon { width: 1.75em; height: 1.4em; }

/* Genre filter bar */
/* As the reference: the white plate is the track itself and clips its pills to its rounded shape; the popcorn
   over a picked pill rises into the list's own top padding, inside the plate. */
.filter { position: relative; margin-top: 1.25em; max-width: 100%; }
.filter__inner {
  width: 78.625em;
  max-width: 100%;
  background: var(--white);
  border-radius: 2.5em;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
/* Pills are links (crawlable, work without JS): never let the browser pick one up as a dragged URL. */
.filter .tag, .sort__option { -webkit-user-drag: none; }
.filter__inner::-webkit-scrollbar { display: none; }
.filter__list { display: flex; align-items: center; padding: 1em 0.75em; width: max-content; }
.filter__item { padding: 0 0.25em; }

.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 3em;
  padding: 0 0.85em;
  border-radius: 2em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: scale 0.15s var(--ease-click), translate 0.25s var(--ease-smooth);
}
.tag:active { scale: 0.94; }
.tag__text { font-size: 1.375em; line-height: 1.2; }
.tag__icon { font-size: 1.4em; line-height: 1; }

.filter .tag.is--active { translate: 0 0.25em; }
.filter .tag::before,
.filter .tag::after {
  content: "";
  position: absolute;
  top: 0;
  background: inherit;
  -webkit-mask: var(--puff-a) center / contain no-repeat;
  mask: var(--puff-a) center / contain no-repeat;
  width: 1em;
  height: 0.9em;
  translate: 0 -80%;
  transform-origin: bottom center;
  transform: rotate(36deg) scale(0);
  transition: transform 0.25s var(--ease-smooth);
}
.filter .tag::before { inset-inline-start: 20%; }
.filter .tag::after {
  inset-inline-start: 34%;
  width: 0.75em;
  height: 1.1em;
  -webkit-mask-image: var(--puff-b);
  mask-image: var(--puff-b);
  transform: rotate(-60deg) scale(0);
}
.filter .tag.is--active::before,
.filter .tag.is--active::after { transform: rotate(0) scale(1); transition: transform 0.35s 0.1s var(--ease-bounce); }

.filter__controls {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.filter__controls-button {
  pointer-events: auto;
  display: inline-grid;
  width: 3.375em;
  height: 3.375em;
  color: var(--white);
  transition: opacity 0.2s, scale 0.15s var(--ease-click);
}
.filter__controls-button.is--previous { translate: calc(100% + 0.6125em); rotate: 180deg; }
.filter__controls-button.is--next { translate: calc(-100% - 0.6125em); }
.filter__controls-button[disabled] { opacity: 0; pointer-events: none; }
.filter__controls-button-bg { grid-area: 1 / 1; background: var(--black); border-radius: 50%; }
.filter__controls-button-icon-wrap { grid-area: 1 / 1; z-index: 1; display: flex; align-items: center; justify-content: center; }
.filter__controls-button-icon { width: 0.8125em; height: 0.75em; }

/* =========================================================================
   Browse rows (one per release year) and the slider
   ========================================================================= */

/* clip, not hidden: hidden would make the section a scroll box that traps the wheel. */
.books-list { overflow-x: clip; }
.books-list__inner { padding-top: 10em; }
.books-list__list-item + .books-list__list-item { margin-top: 0; }
.books-list__header {
  position: relative;
  text-align: center;
  padding: 0 var(--grid-margin) 4em;
}
.books-list__title { max-width: 18ch; margin: 0 auto; }
.books-list__content { padding-bottom: 10em; }
.books-list__empty { text-align: center; padding: 4em var(--grid-margin) 10em; }

.books-slider__controls {
  position: absolute;
  inset-inline-end: 2.5em;
  top: 50%;
  translate: 0 -75%;
  display: flex;
  gap: 0.5em;
}
.books-slider__controls-button {
  display: inline-grid;
  width: 4.5em;
  height: 4.5em;
  color: var(--white);
  transition: scale 0.15s var(--ease-click);
}
.books-slider__controls-button:active { scale: 0.9; }
.books-slider__controls-button.is--previous { rotate: 180deg; }
.books-slider__controls-button-bg { grid-area: 1 / 1; background: var(--black); border-radius: 50%; transition: background-color 0.2s, scale 0.15s var(--ease-soft-overshoot); }
.books-slider__controls-button[disabled] { cursor: default; }
.books-slider__controls-button[disabled] .books-slider__controls-button-bg { background: var(--disabled); }
.books-slider__controls-button-icon-wrap { grid-area: 1 / 1; z-index: 1; display: flex; align-items: center; justify-content: center; }
.books-slider__controls-button-icon { width: 1.125em; height: 1em; }
@media (hover: hover) and (pointer: fine) {
  .books-slider__controls-button:not([disabled]):hover .books-slider__controls-button-bg { scale: 1.08; }
}

/* The track scrolls sideways; the padding gives the tilted cards, the popcorn and the hover tab room
   inside the scroll box, and the negative margin takes that room back from the page. */
.books-slider__list {
  display: flex;
  align-items: stretch;
  padding: 10em 7em 6em;
  margin: -10em 0 -6em;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.books-slider__list::-webkit-scrollbar { display: none; }
.books-slider__list.is--dragging { cursor: grabbing; scroll-behavior: auto; }
.books-slider__list.is--dragging .books-slider__item-link { pointer-events: none; }
.books-slider__list.is--centered { justify-content: center; }
/* Every card in a row is as tall as the tallest and stands straight; it leans a little on hover. */
.books-slider__list-item { flex: none; width: 24em; display: flex; }

.books-slider__item { display: flex; width: 100%; padding: 0 1em; -webkit-user-select: none; user-select: none; }
.books-slider__item-inner {
  --rot: 0deg;
  --hover-rot: -1.6deg;
  position: relative;
  display: grid;
  flex: 1;
  rotate: var(--rot);
  color: var(--black);
  transition: rotate 0.35s var(--ease-bounce), color 0.3s;
}
.books-slider__list-item:nth-child(even) .books-slider__item-inner { --hover-rot: 1.6deg; }
.books-slider__item-inner.is--dark { color: var(--white); }

.books-slider__item-bg {
  grid-area: 1 / 1;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 2em;
  transition: background-color 0.4s var(--ease-smooth);
}
.books-slider__item-bg-ears {
  position: absolute;
  bottom: calc(100% - 0.35em);
  inset-inline-start: 50%;
  translate: 50% 0;
  display: flex;
  align-items: flex-end;
  color: var(--card-bg);
  pointer-events: none;
}
.books-slider__item-bg-left-ear {
  width: 4.875em;
  height: 4.47em;
  margin-inline-end: -1.6em;
  transform-origin: bottom left;
  transform: rotate(36deg) scale(0);
  transition: transform 0.25s var(--ease-smooth);
}
.books-slider__item-bg-right-ear {
  width: 3.6em;
  height: 5.2em;
  transform-origin: bottom center;
  transform: rotate(-80deg) scale(0);
  transition: transform 0.25s var(--ease-smooth);
}
.books-slider__item-bg-bottom {
  width: 100%;
  height: 5em;
  background: var(--card-bg);
  border-radius: 0 0 2em 2em;
  transition: translate 0.4s var(--ease-smooth), background-color 0.4s var(--ease-smooth);
}
.books-slider__item-cta { position: absolute; bottom: -3em; display: flex; align-items: center; justify-content: center; }
.books-slider__item-cta .button-alt { --cta-bg: var(--magenta); --cta-fg: var(--white); pointer-events: none; }
.books-slider__item-cta .button-alt__text-wrap,
.books-slider__item-cta .button-alt__icon-wrap {
  opacity: 0;
  translate: 0 -1.5em 0;
  transition: opacity 0.1s var(--ease-smooth), translate 0.35s var(--ease-bounce-strong), rotate 0.35s var(--ease-bounce-strong), transform 0.35s var(--ease-bounce-strong);
}

.books-slider__item-container {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  height: 100%;
  padding: 1em 1em 1.5em;
}
.books-slider__item-cover {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 1em;
  overflow: clip;
  background: rgb(0 0 0 / 0.12);
}
.books-slider__item-img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.books-slider__item-content { display: flex; flex-direction: column-reverse; gap: 0.75em; }
.books-slider__item-text { display: flex; flex-direction: column; gap: 0.5em; padding: 0 0.125em; }
.books-slider__item-paragraph {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-weight: 500;
}
.books-slider__genre-list { display: flex; flex-wrap: wrap; gap: 0.25em; }
.tag-small { display: inline-flex; align-items: center; justify-content: center; padding: 0.4375em 0.6em; border-radius: 1.5em; }
.tag-small__text { font-size: 1em; line-height: 1.1; font-weight: 700; }
.books-slider__item-link { grid-area: 1 / 1; position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 2em; -webkit-user-drag: none; }

/* Cover badges: the reference's "EARLY RELEASE" pill at the top corner, and the score with its source's mark. */
.books-slider__item-cover { position: relative; }
.card-badge {
  position: absolute;
  top: 0.85em;
  inset-inline-start: 0.85em;
  z-index: 1;
  padding: 0.35em 0.8em 0.4em;
  border-radius: 2em;
  font-size: 1.05em;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.card-score {
  position: absolute;
  bottom: 0.85em;
  inset-inline-end: 0.85em;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.55em 0.3em 0.7em;
  border-radius: 2em;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0.25em 0.75em rgb(0 0 0 / 0.2);
}
.card-score .score-mark { font-size: 1.15em; }
.card-score .score-mark--word { font-size: 0.7em; }
.card-score__number { font-family: var(--font-display); font-size: 1.45em; line-height: 1; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .books-slider__item:has(.books-slider__item-link:hover) .books-slider__item-inner {
    rotate: var(--hover-rot);
    transition: rotate 0.35s 0.1s var(--ease-bounce);
  }
  .books-slider__item:has(.books-slider__item-link:hover) .books-slider__item-bg-bottom {
    translate: 0 1.5em 0;
    transition: translate 0.35s 0.1s var(--ease-bounce), background-color 0.4s;
  }
  .books-slider__item:has(.books-slider__item-link:hover) .books-slider__item-bg-left-ear {
    transform: rotate(0) scale(1);
    transition: transform 0.45s 0.15s var(--ease-bounce);
    animation: puff-bob 3.2s 0.6s infinite;
  }
  .books-slider__item:has(.books-slider__item-link:hover) .books-slider__item-bg-right-ear {
    transform: rotate(0) scale(1);
    transition: transform 0.45s 0.1s var(--ease-bounce);
    animation: puff-hop 3.2s 0.6s infinite;
  }
  .books-slider__item:has(.books-slider__item-link:hover) .books-slider__item-cta .button-alt__text-wrap {
    opacity: 1;
    translate: 0 0 0;
    rotate: 16deg;
    transform: rotate(-16deg);
    transition: opacity 0.2s var(--ease-smooth), translate 0.35s var(--ease-bounce-strong), rotate 0.15s var(--ease-bounce-strong), transform 0.35s 0.2s var(--ease-bounce-strong);
    transition-delay: 0.15s;
  }
  .books-slider__item:has(.books-slider__item-link:hover) .books-slider__item-cta .button-alt__icon-wrap {
    opacity: 1;
    translate: 0 0 0;
    rotate: -16deg;
    transform: rotate(16deg);
    transition: opacity 0.2s var(--ease-smooth), translate 0.35s var(--ease-bounce-strong), rotate 0.15s var(--ease-bounce-strong), transform 0.35s 0.2s var(--ease-bounce-strong);
    transition-delay: 0.15s;
  }
}

.load-more { display: flex; justify-content: center; padding-bottom: 6em; }
.button.is--load-more { --button-bg: var(--pale-yellow); }

/* =========================================================================
   Work page
   ========================================================================= */

.hero-xs__genre-list .tag { transition: scale 0.15s var(--ease-click), rotate 0.3s var(--ease-bounce); }
@media (hover: hover) and (pointer: fine) {
  .hero-xs__genre-list .tag:hover { rotate: -3deg; }
}

.detail { position: relative; z-index: 2; }
.detail__header { display: flex; justify-content: center; margin-top: -11.0625em; padding: 0 var(--grid-margin); pointer-events: none; }
/* The work's own cover at its own proportions (never cropped): a poster or a game cover lies flat. */
.detail__visual {
  position: relative;
  width: 37em;
  border-radius: 0.75em;
  overflow: clip;
  background: var(--soft-grey);
  box-shadow: 0 2.5em 4em -1.5em rgb(0 0 0 / 0.4);
}
.detail__visual-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* A book is drawn as a hardcover book: a spine crease on the right — Persian books bind on the right —
   and the page block and back board along the open (left) and bottom edges, then its shadow. */
.detail__visual.is--book {
  overflow: visible;
  border-start-start-radius: 0.2em;
  border-end-start-radius: 0.2em;
  border-start-end-radius: 0.6em;
  border-end-end-radius: 0.6em;
  background: var(--soft-grey);
  box-shadow:
    -0.12em 0.12em 0 #fbf8f1,
    -0.24em 0.24em 0 #f1ece1,
    -0.36em 0.36em 0 #fbf8f1,
    -0.48em 0.48em 0 #ece6d9,
    -0.6em 0.6em 0 #f7f3ea,
    -0.72em 0.72em 0 #e6dfd0,
    -0.84em 0.84em 0 #f3eee3,
    -0.96em 0.96em 0 #ddd5c4,
    -1.12em 1.12em 0 #2b2622,
    -1.5em 2.5em 3em -0.5em rgb(0 0 0 / 0.35),
    -3em 4em 5em -1em rgb(0 0 0 / 0.2);
}
/* Spine crease, light across the board, and a faint rim. */
.detail__visual.is--book::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(to left,
      rgb(0 0 0 / 0.38) 0,
      rgb(0 0 0 / 0.12) 1.2%,
      rgb(255 255 255 / 0.28) 2.2%,
      rgb(255 255 255 / 0.08) 3.4%,
      rgb(0 0 0 / 0.16) 4.6%,
      rgb(0 0 0 / 0) 7%),
    linear-gradient(105deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0.12) 55%, rgb(255 255 255 / 0) 70%);
  box-shadow: inset 0 0 0 0.06em rgb(0 0 0 / 0.18);
}

/* Score source marks (_ScoreMark): Steam, RT popcorn, Book Marks… — sized by the text around them. */
.score-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; vertical-align: middle; }
.score-mark--img { width: 1.4em; height: 1.4em; object-fit: contain; }
.score-mark--steam { width: 1.3em; height: 1.3em; }
.score-mark--emoji { font-size: 1.2em; line-height: 1; }
.score-mark--word {
  padding: 0.2em 0.45em;
  border-radius: 0.35em;
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.score-mark--word.is--rawg { background: #151515; color: #fff; letter-spacing: 0.08em; }
.score-mark--word.is--metacritic { background: #ffcc34; color: #000; border-radius: 50%; padding: 0.3em 0.4em; }
.score-mark--word.is--bookmarks { background: #c4122f; color: #fff; }
.score-mark--word.is--openlibrary { background: #e1dcc5; color: #3a2a12; }
.at-a-glance__mark { display: inline-flex; font-size: 2.1em; }
.at-a-glance__mark .score-mark--word { font-size: 0.55em; }
.pop-up__mark { display: inline-flex; padding-inline-start: 0.75em; font-size: 1.1em; }
.pop-up__mark .score-mark--word { font-size: 0.65em; }

.content__container { padding: 0 var(--grid-margin); margin-bottom: 10em; }

.at-a-glance { position: relative; max-width: 66em; margin: 5.5em auto 0; }
.at-a-glance .book__text {
  position: absolute;
  inset-inline-start: -1em;
  top: -1.75em;
  color: var(--violet);
  opacity: 0.8;
  rotate: 10deg;
}
.at-a-glance__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75em 1em; padding: 1.5em 6em 0; }
.at-a-glance__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.95em 0.6em;
  border-radius: 2.07em;
  transition: rotate 0.3s var(--ease-bounce);
}
.at-a-glance__tag:nth-child(3n + 1) { rotate: -1.2deg; }
.at-a-glance__tag:nth-child(3n + 2) { rotate: 1deg; }
.at-a-glance__tag__heading { font-family: var(--font-display); font-size: 2.5em; line-height: 1.05; white-space: nowrap; }

.content__text { width: min(100%, 85em); margin: 8em auto 0; }
.richtext__heading { font-size: 3.5em; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.richtext__paragraph { font-size: var(--font-size-paragraph-regular); font-weight: 500; line-height: 1.75; }
.content__text__inner { margin-top: 1.6em; max-width: 48em; }
.content__text__inner.is--columns { max-width: none; column-count: 2; column-gap: 4em; }

.testimonials__wrapper { width: min(100%, 85em); margin: 9em auto 0; padding: 2.5em 0; }
.testimonials-heading { max-width: 12ch; }
.flow__list { display: flex; justify-content: center; align-items: flex-start; margin-top: 1.5em; padding-bottom: 12em; }
.flow__list-item { flex: none; }
.flow__list-item:not(:first-child) { margin-inline-start: -5em; }
.flow__card {
  display: flex;
  width: 25em;
  min-height: 30em;
  border-radius: 2em;
  transition: transform 0.9s var(--ease-bounce);
}
.flow__card.is--yellow { background: var(--pale-yellow); }
.flow__card.is--pink { background: var(--soft-pink); }
.flow__card.is--blue { background: var(--pale-blue); }
.flow__card-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25em; width: 100%; padding: 2.5em 2em 1.75em; }
.flow__card-content { display: flex; flex-direction: column; gap: 0.75em; }
.flow__card-verdict { align-self: flex-start; padding: 0.3em 0.75em; border-radius: 1em; background: rgb(0 0 0 / 0.08); font-size: 1em; }
.flow__card-content-paragraph {
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 11;
  overflow: hidden;
}
.flow__card-content-autor { font-size: 1.125em; font-weight: 600; opacity: 0.8; }
.flow__card-content-autor a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Resting fan. alt.js flies the items up into it when the list scrolls in, and on hover straightens the
   card under the pointer while the others lean away (--push). */
.flow__list-item { position: relative; translate: calc(var(--push, 0) * 1%) 0; transition: translate 0.85s var(--ease-elastic); }
.flow__list-item.is--focus { z-index: 2; }
.flow__list-item:nth-child(1) .flow__card { transform: translate3d(0, 0, 0) rotate(-6deg); }
.flow__list-item:nth-child(2) .flow__card { transform: translate3d(0, 2.5em, 0) rotate(8deg); }
.flow__list-item:nth-child(3) .flow__card { transform: translate3d(0, 13em, 0) rotate(2deg); }
.flow__list-item.is--focus .flow__card { transform: translate3d(0, 0, 0) rotate(0) scale(1.075); }
.flow__card { transition: transform 0.85s var(--ease-elastic); }
.flow__list-item:only-child { margin: 0; }

/* The reading band */
.flow.is--inner-clip {
  position: relative;
  margin: 0 var(--grid-margin);
  background: var(--hero-bg);
  border-radius: 7.5em;
  overflow: hidden;
}
.flow__bg { position: absolute; inset: 0; color: var(--hero-blob); pointer-events: none; }
.flow__bg-svg { width: 100%; height: 100%; }
.flow__inner { position: relative; z-index: 1; padding: 0 var(--grid-margin); }
.flow__header { display: flex; justify-content: center; padding: 7.5em 0 4em; }
.flow__page {
  max-width: 48em;
  margin: 0 auto 7.5em;
  padding: 7.5em;
  background: var(--white);
  border-radius: 2em;
  display: flex;
  flex-direction: column;
  gap: 2.75em;
}
.flow__page-review { display: flex; flex-direction: column; gap: 0.75em; }
.flow__page-review .richtext__paragraph { font-size: 1.375em; }
.flow__page-verdict { opacity: 0.8; }
.flow__page-pending { padding-top: 1.5em; border-top: 0.0625em solid rgb(0 0 0 / 0.12); font-size: 1.125em; opacity: 0.7; }

/* Notes (accordion) */
.notes__header { display: flex; flex-direction: column; align-items: center; gap: 1.5em; padding: 10em var(--grid-margin) 2em; text-align: center; }
.notes__logo { width: 5.5em; height: 5.5em; border-radius: 50%; border: 0.3em solid var(--black); object-fit: cover; }
.notes__content { width: min(calc(100% - 2 * var(--grid-margin)), 48em); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2em; }
.accordion__list { display: flex; flex-direction: column; gap: 0.5em; width: 100%; }
.accordion__details { width: 100%; background: var(--pale-yellow); border-radius: 1.5em; transition: background-color 0.2s; }
.accordion__summary { cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__title-wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75em; padding: 1.6em 2em; }
.accordion__title { font-weight: 700; }
.accordion__icon-wrap { position: relative; flex: none; width: 1.25em; height: 1.25em; }
.accordion__icon-wrap::before,
.accordion__icon-wrap::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 0.2em;
  translate: 0 -50%;
  background: var(--black);
  border-radius: 0.1em;
  transition: rotate 0.35s var(--ease-bounce);
}
.accordion__icon-wrap::after { rotate: 90deg; }
.accordion__details[open] .accordion__icon-wrap::after { rotate: 0deg; }
.accordion__content-inner { padding: 0 2em 2em; }
.notes__lead { font-size: 1.25em; margin-bottom: 0.75em; }
.notes__list { display: flex; flex-direction: column; font-size: 1.25em; font-weight: 500; }
.notes__list li { display: flex; justify-content: space-between; gap: 1em; padding: 0.6em 0; border-bottom: 0.05em solid rgb(0 0 0 / 0.12); }
.notes__list li:last-child { border-bottom: 0; }
.notes__list a { text-decoration: underline; text-underline-offset: 0.2em; }
.notes__credit { font-size: 1.125em; font-weight: 500; opacity: 0.75; }
.notes__credit a { text-decoration: underline; }

.related { padding-top: 10em; }
.related .books-list__content { padding-bottom: 4em; }

/* Floating score button */
.pop-up {
  position: fixed;
  bottom: 1.5em;
  inset-inline-end: 1.5em;
  z-index: 900;
  padding: 0.75em;
  border-radius: 1em;
  background: var(--soft-grey);
  transition: translate 0.45s var(--ease-smooth), opacity 0.3s;
}
/* Over the reviews (where it leads) and over the footer it drops out of the way. */
.pop-up.is--away { translate: 0 calc(100% + 2em); opacity: 0; visibility: hidden; pointer-events: none; }
.pop-up .button-alt { --cta-bg: var(--magenta); --cta-fg: var(--white); }
.pop-up .button-alt__icon { rotate: -90deg; }

/* =========================================================================
   Footer
   ========================================================================= */

.footer { position: relative; margin-top: -10em; padding-top: 10em; background: var(--violet); color: var(--white); overflow: hidden; }
.footer__top { position: relative; padding: 7em 0 2.5em; min-height: 32em; }
.footer__top-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 3em; padding: 0 calc(var(--grid-margin) + 7.5em); }
.footer__top-nav { display: flex; flex-direction: column; gap: 1.75em; }
.footer__logo-img { width: 18.375em; height: auto; }
.footer__tagline { font-size: 1.375em; font-weight: 500; opacity: 0.85; }
.footer__sections { display: flex; gap: 0.5em; flex-wrap: wrap; }
.footer__sections a { display: inline-flex; align-items: center; height: 2.75em; padding: 0 1em; border-radius: 2em; background: var(--white); color: var(--black); font-size: 1.125em; transition: scale 0.15s var(--ease-click); }
.footer__sections a:active { scale: 0.94; }
.footer__top-form { display: flex; flex-direction: column; gap: 1.5em; padding-top: 2em; }
.footer__form-title { font-family: var(--font-display); font-weight: 400; font-size: 3.25em; line-height: 1.1; }
.search__form--footer { width: 26em; height: 3.75em; }
.search__form--footer .search__input { font-size: 1.125em; }
.search__form--footer .search__button { width: 3.75em; height: 3.75em; }
.footer__visual { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.footer__visual-img { position: absolute; bottom: -9em; width: 26em; height: auto; rotate: -21deg; translate: 4em 0; }
.footer__bottom { position: relative; z-index: 1; background: var(--black); padding: 0.875em calc(var(--grid-margin) + 7.5em) 1em; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1em; }
.footer__bottom-text { font-size: 1em; opacity: 0.55; }
a.footer__bottom-text:hover { opacity: 1; }

/* =========================================================================
   Home
   ========================================================================= */

.hero-xs__inner.is--home {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4em;
  min-height: 62em;
  padding: 12em calc(var(--grid-margin) + 3em) 8em;
}
.hero-xs__content.is--home { align-items: flex-start; text-align: start; max-width: 64em; gap: 2.25em; }
.hero-xs__content.is--home .hero-xs__title { max-width: 9ch; text-wrap: balance; }
.hero-xs__content.is--home .hero-xs__paragraph { max-width: 38ch; }
.home-sections { display: flex; flex-wrap: wrap; gap: 0.75em; }
.home-float { position: relative; flex: none; width: 42em; height: 48em; }
.home-float__item {
  position: absolute;
  width: 21em;
  aspect-ratio: 2 / 3;
  border-radius: 0.8em;
  overflow: clip;
  box-shadow: -1.5em 2.5em 3.5em -1em rgb(0 0 0 / 0.35);
  animation: home-float 7s ease-in-out infinite;
}
.home-float__item img { width: 100%; height: 100%; object-fit: cover; }
.home-float__item.is--1 { top: 0; inset-inline-start: 14em; rotate: 12deg; }
.home-float__item.is--2 { top: 9em; inset-inline-start: 0; rotate: -10deg; animation-delay: -2.5s; }
.home-float__item.is--3 { top: 21em; inset-inline-start: 17em; rotate: 4deg; animation-delay: -5s; }
.home-float__note { position: absolute; bottom: 2em; inset-inline-end: -3em; color: var(--violet); rotate: -8deg; }
.hero-xs__easter-egg.is--home { top: auto; bottom: 3em; inset-inline-end: 3em; }
@keyframes home-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.4em; } }

.home-row .books-list__header,
.books-list__header { position: relative; }
.home-row__note { position: absolute; top: -1.5em; inset-inline-start: 12%; color: var(--violet); opacity: 0.85; rotate: 8deg; }
.home-row__lede { max-width: 36ch; margin: 1em auto 0; font-weight: 500; }

/* "How chooni works": four tilted step cards on a pink band. */
.flow.is--steps { --hero-bg: var(--pale-pink); --hero-blob: #ffd6fd; margin-top: 4em; }
.flow__list.is--steps { margin-top: 0; padding-bottom: 9em; }
.flow__list.is--steps .flow__card { width: 22em; min-height: 28em; }
.flow__card.is--periwinkle { background: var(--periwinkle); color: var(--white); }
.flow__list-item:nth-child(4) .flow__card { transform: translate3d(0, 7em, 0) rotate(-4deg); }
.steps__number { text-align: center; font-size: 2em; }
.steps__emoji { display: block; text-align: center; font-size: 6em; line-height: 1.2; }

/* =========================================================================
   Section landing, person, reviewer
   ========================================================================= */

.hero-xs__inner.is--section { padding-bottom: 6em; }
.spotlight {
  display: flex;
  align-items: center;
  gap: 5em;
  max-width: 92em;
  margin: 8em auto 0;
  padding: 0 calc(var(--grid-margin) + 2em);
}
.spotlight__cover {
  flex: none;
  width: 26em;
  border-radius: 0.75em;
  overflow: clip;
  rotate: -3deg;
  box-shadow: -1.5em 2.5em 3.5em -1em rgb(0 0 0 / 0.3);
  transition: rotate 0.45s var(--ease-bounce);
}
.spotlight__cover:hover { rotate: 0deg; }
.spotlight__cover img { width: 100%; height: auto; }
.spotlight__body { display: flex; flex-direction: column; gap: 1em; }
.spotlight__note { color: var(--violet); rotate: -5deg; align-self: flex-start; }
.spotlight__score { display: flex; align-items: center; gap: 0.5em; font-size: 1.5em; font-weight: 800; }
.spotlight__score .score-mark { font-size: 1.3em; }
.spotlight__count { font-size: 0.75em; opacity: 0.6; }
.spotlight__quote { margin: 0.5em 0 0; padding-inline-start: 1em; border-inline-start: 0.3em solid var(--hero-bg); font-weight: 500; line-height: 1.6; }

.detail__visual.is--portrait { width: 26em; aspect-ratio: 1; border-radius: 50%; display: grid; background: var(--violet); }
.detail__visual.is--portrait .detail__visual-img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: 1; }
.detail__initial { display: grid; place-items: center; font-family: var(--font-display); font-size: 10em; color: var(--white); }
.reviewer__note { color: var(--violet); rotate: -6deg; }
.reviewer-list { padding: 6em var(--grid-margin) 4em; }

/* People and screenshots: sideways tracks with the same arrows as the card rows. The top room clears the
   tilted review cards that hang below the content above them. */
.people, .shots { padding-top: 10em; }
.people__list,
.shots__list {
  display: flex;
  gap: 2em;
  padding: 1em 7em 6em;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.people__list::-webkit-scrollbar, .shots__list::-webkit-scrollbar { display: none; }
.people__item { flex: none; width: 12em; text-align: center; }
.people__link { display: block; }
.people__photo {
  display: grid;
  place-items: center;
  width: 12em;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: clip;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1em;
  transition: scale 0.35s var(--ease-bounce), rotate 0.35s var(--ease-bounce);
}
.people__photo span { font-size: 4em; }
.people__photo img { width: 100%; height: 100%; object-fit: cover; }
.people__link:hover .people__photo { scale: 1.06; rotate: -4deg; }
.people__name { display: block; margin-top: 0.75em; font-size: 1.25em; font-weight: 800; }
.people__role { display: block; font-size: 1em; font-weight: 500; opacity: 0.65; }
.shots__item { flex: none; width: 38em; }
.shots__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.25em;
  box-shadow: 0 1.5em 2.5em -1.5em rgb(0 0 0 / 0.4);
  transition: rotate 0.35s var(--ease-bounce);
}
.shots__item a:hover img { rotate: -1.5deg; }

/* =========================================================================
   Reviews: controls, the grid, one review
   ========================================================================= */

.flow__header.is--book { flex-direction: column; align-items: center; text-align: center; }
.flow__subtitle { margin-top: 0.75em; font-size: 1.4em; font-weight: 600; }
.reviews-controls { display: flex; flex-direction: column; align-items: center; gap: 0.9em; margin: 0 auto 3em; }
.reviews-controls[hidden] { display: none; }
.reviews-controls__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5em; }
.reviews-controls__label { margin-inline-end: 0.5em; font-size: 1.15em; font-weight: 800; }
button.tag { border: 0; cursor: pointer; font: inherit; }
.reviews-controls .tag { background: var(--white); color: var(--black); }
.reviews-controls .tag.is--active { background: var(--black); color: var(--white); translate: 0 0.15em; }
.season-pill__score { display: inline-flex; align-items: center; gap: 0.3em; font-size: 1.15em; font-weight: 800; }
.season-pill__score .score-mark { font-size: 1em; }

.reviews-grid { column-count: 2; column-gap: 1.5em; max-width: 100em; margin: 0 auto; padding-bottom: 5em; }
.reviews-grid.is--reviewer { column-count: 3; max-width: 120em; }
.review {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  margin-bottom: 1.5em;
  padding: 1.75em 2em;
  break-inside: avoid;
  border-radius: 1.5em;
  background: var(--white);
  box-shadow: 0 0.6em 1.6em -1em rgb(0 0 0 / 0.3);
}
.review[hidden] { display: none; }
.reviews-grid.is--reviewer .review { background: var(--soft-grey); box-shadow: none; }
.review__work { display: flex; align-items: center; gap: 0.75em; font-size: 1.3em; font-weight: 800; }
.review__work img { width: 3em; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 0.35em; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.review__verdict { padding: 0.3em 0.8em; border-radius: 2em; font-size: 1.05em; font-weight: 800; }
.review__verdict.is--up { background: #2de124; color: var(--black); }
.review__verdict.is--down { background: #ff5a5f; color: var(--black); }
.review__stars {
  font-size: 1.5em;
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(to left, var(--orange) var(--pct), #d6d6d6 var(--pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review__chip { padding: 0.3em 0.75em; border-radius: 2em; background: var(--soft-grey); font-size: 1em; font-weight: 700; }
.reviews-grid.is--reviewer .review__chip { background: var(--white); }
.review__text { font-size: 1.35em; font-weight: 500; line-height: 1.75; }
.js .review__text.is--clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
html:not(.js) .reviews-controls { display: none; }
.review__more { align-self: flex-start; color: var(--magenta); font-size: 1.05em; font-weight: 800; }
.review__more[hidden] { display: none; }
.review__awards { display: flex; flex-wrap: wrap; gap: 0.4em; }
.review__awards li { display: inline-flex; align-items: center; gap: 0.25em; padding: 0.2em 0.5em; border-radius: 1em; background: var(--soft-grey); font-size: 0.95em; }
.review__awards img { width: 1.4em; height: 1.4em; }
.review__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75em; padding-top: 0.9em; border-top: 0.06em solid rgb(0 0 0 / 0.08); }
.review__avatar {
  display: grid;
  place-items: center;
  width: 2.6em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hero-bg);
  font-family: var(--font-display);
  font-size: 1.3em;
}
.review__who { display: flex; flex-direction: column; }
.review__name { font-size: 1.15em; font-weight: 800; }
a.review__name { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.review__role { font-size: 0.95em; font-weight: 500; opacity: 0.6; }
.review__meta { display: flex; flex-wrap: wrap; gap: 0.75em; margin-inline-start: auto; font-size: 0.95em; font-weight: 600; opacity: 0.7; }
.review__source { text-decoration: underline; }
.reviews-empty, .reviews-pending { max-width: 48em; margin: 0 auto; padding-bottom: 4em; text-align: center; font-size: 1.3em; }
.reviews-empty[hidden] { display: none; }

.notes__sub { margin: 0.75em 0 0.4em; font-size: 1.15em; font-weight: 800; }
.notes__pre { margin: 0; padding: 1em 1.25em; border-radius: 0.75em; background: rgb(255 255 255 / 0.65); direction: ltr; text-align: left; white-space: pre-wrap; font: 500 1em/1.6 ui-monospace, Consolas, monospace; }
.notes__company { display: inline-flex; align-items: center; gap: 0.5em; }
.notes__company img { height: 1.6em; width: auto; }

/* =========================================================================
   Page transition — a violet curtain stroke plus the mascot. Closed at first paint (.is-entering, set in
   <head>); alt.js retracts it on enter and draws it on leave. The failsafe opens it if alt.js never runs.
   ========================================================================= */

.transition {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  pointer-events: none;
  visibility: hidden;
  color: var(--violet);
}
.is-entering .transition,
.is-leaving .transition { visibility: visible; pointer-events: auto; }
.is-entering .transition { animation: transition-failsafe 0.01s 4s forwards; }
.transition__fill { position: absolute; inset: 0; background: var(--violet); opacity: 0; }
.is-entering .transition__fill { opacity: 1; }
/* Oversized so the stroke reaches every corner of any window shape. */
.transition__svg { position: absolute; top: -35%; inset-inline-start: -35%; width: 170%; height: 170%; overflow: visible; }
.transition__svg path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.is-entering .transition__svg path { stroke-dashoffset: 0; }
.transition__logo {
  position: absolute;
  width: 15em;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 0.5em solid var(--white);
  scale: 0;
  opacity: 0;
}
.transition__logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes transition-failsafe { to { visibility: hidden; pointer-events: none; } }

/* The hero blobs breathe: a same-colored stroke swells and they lean a little (paused off screen). */
.hero-xs__bg-svg path,
.flow__bg-svg path {
  stroke: currentColor;
  stroke-width: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: blob-breathe 6s ease-in-out infinite;
}
.hero-xs__bg-svg path:nth-child(2), .flow__bg-svg path:nth-child(2) { animation-delay: -2s; }
.hero-xs__bg-svg path:nth-child(3) { animation-delay: -4s; }
.is--offscreen path { animation-play-state: paused; }
@keyframes blob-breathe {
  0%, 100% { stroke-width: 0; rotate: 0deg; }
  50% { stroke-width: 60; rotate: 2deg; }
}

/* Split text (alt.js): words and letters become inline blocks it can throw around. */
.split-word, .split-char { display: inline-block; }
.split-word { white-space: nowrap; }

/* Filter swap in flight */
[data-swap="results"] { transition: opacity 0.25s var(--ease-smooth); }
[data-swap="results"][aria-busy="true"] { opacity: 0.35; pointer-events: none; }

.accordion__details { overflow: clip; }

/* =========================================================================
   Motion
   ========================================================================= */

@keyframes puff-bob {
  0%, 20%, 100% { rotate: 0deg; }
  24% { rotate: 3deg; }
  28% { rotate: -1.5deg; }
  32% { rotate: 1deg; }
  36% { rotate: 0deg; }
  68% { rotate: 2deg; }
  72% { rotate: -0.5deg; }
  76% { rotate: 0deg; }
}
@keyframes puff-hop {
  0%, 18%, 100% { rotate: 0deg; translate: 0 0; }
  22% { rotate: -8deg; translate: 0 -0.15em; }
  26% { rotate: 4deg; translate: 0 0; }
  30% { rotate: -2.5deg; }
  34% { rotate: 1deg; }
  38% { rotate: 0deg; }
  66% { rotate: -5deg; translate: 0 -0.1em; }
  70% { rotate: 2deg; translate: 0 0; }
  74% { rotate: -1deg; }
  78% { rotate: 0deg; }
}
@keyframes egg-wobble {
  0%, 80%, 100% { rotate: -8deg; }
  84% { rotate: 6deg; }
  88% { rotate: -12deg; }
  92% { rotate: 2deg; }
  96% { rotate: -9deg; }
}

/* =========================================================================
   Image skeletons (alt.js marks a picture still on its way): its frame shimmers until it arrives,
   then it fades in. A cover that sizes itself from the picture holds a 2:3 frame meanwhile.
   ========================================================================= */

img.is--img-loading {
  background-color: rgb(0 0 0 / 0.1);
  background-image: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: skeleton 1.2s linear infinite;
}
.detail__visual:not(.is--portrait) .detail__visual-img.is--img-loading,
.spotlight__cover img.is--img-loading { aspect-ratio: 2 / 3; }
img.is--img-loaded { animation: img-in 0.45s ease-out; }
@keyframes skeleton { from { background-position: 125% 0; } to { background-position: -25% 0; } }
@keyframes img-in { from { opacity: 0; } }

/* Desktop filter bars move by transform (alt.js, like the reference): no native scroller, a grab cursor. */
.filter.is--glide .filter__inner { overflow: clip; scroll-behavior: auto; cursor: grab; }
.filter.is--glide .filter__inner.is--grabbing { cursor: grabbing; }
.filter.is--glide .filter__inner.is--grabbing .tag { pointer-events: none; }
.filter.is--glide .filter__list { will-change: transform; }

/* Browse sort: three pills above the filter bars. */
.sort { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5em; margin-top: 1.25em; }
.sort__option {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: 2.75em;
  padding: 0 1em;
  border-radius: 2em;
  background: var(--hero-soft);
  font-size: 1.15em;
  font-weight: 800;
  transition: background-color 0.2s, color 0.2s, scale 0.15s var(--ease-click);
}
.sort__option:hover { background: var(--white); }
.sort__option.is--active { background: var(--black); color: var(--white); }
.sort__option:active { scale: 0.94; }

/* Games: the second filter row (game modes) under the genre bar. */
.filter.is--modes { margin-top: 0.25em; }

/* Reviews past the first ten wait behind this button. */
.reviews-more { display: flex; justify-content: center; margin: -2em 0 5em; }
.reviews-more[hidden] { display: none; }
button.button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.reviews-more .button { --button-bg: var(--black); color: var(--white); }

/* Screenshot slide view: every shot full size, previous/next, arrow keys, swipe, Esc or a backdrop click closes. */
.slides {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(26 21 72 / 0.94);
  color: var(--white);
  overscroll-behavior: contain;
}
.slides::backdrop { background: transparent; }
.slides__stage { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 5em 7em; }
.slides__img { max-width: 100%; max-height: calc(100dvh - 10em); object-fit: contain; border-radius: 1em; box-shadow: 0 2em 4em -1em rgb(0 0 0 / 0.6); }
.slides__nav,
.slides__close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.75em;
  height: 3.75em;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: scale 0.15s var(--ease-click), background-color 0.2s;
}
.slides__nav:hover, .slides__close:hover { background: var(--yellow); }
.slides__nav:active, .slides__close:active { scale: 0.9; }
.slides__nav { top: 50%; translate: 0 -50%; }
.slides__nav.is--prev { inset-inline-start: 1.5em; }
.slides__nav.is--next { inset-inline-end: 1.5em; }
.slides__nav svg { width: 1.1em; height: 1em; }
.slides__nav.is--prev svg { rotate: 180deg; }
.slides__close { top: 1.5em; inset-inline-end: 1.5em; font-size: 1em; font-weight: 800; }
.slides__count { position: absolute; bottom: 1.5em; inset-inline: 0; text-align: center; font-size: 1.25em; font-weight: 800; }
@media (max-width: 767px) {
  .slides__stage { padding: 5em 1em; }
  .slides__nav { top: auto; bottom: 1em; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* =========================================================================
   Tablet and phone
   ========================================================================= */

@media (max-width: 991px) {
  main { border-radius: 0 0 2.5em 2.5em; padding-bottom: 3em; }
  .header__sub { display: none; }
  .header__title { flex: none; }
  .header__title-logo { width: 9em; }
  .header__nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav-list { justify-content: flex-start; width: max-content; padding: 1em 0.25em 0.25em; }
  .header__nav-list-item.is--switch { order: -1; } /* first in the sideways nav, so it is on screen */
  .button { --button-height: 2.75em; }
  .button__text { font-size: 1.05em; }
  .button-alt { --button-alt-height: 2.75em; }
  .button-alt__text { font-size: 0.95em; }

  .hero-xs { clip-path: inset(0 round 0 0 2.5em 2.5em); }
  .hero-xs__inner { padding-top: 9em; padding-bottom: 3em; gap: 1.25em; }
  .hero-xs__inner.is--all-books { padding-bottom: 1.5625em; }
  .hero-xs__inner.is--book { padding-top: 8.5em; padding-bottom: 10.375em; }
  .hero-xs__content { gap: 1em; }
  .hero-xs__title { max-width: 10ch; }
  .hero-xs__easter-egg { display: none; }
  .search__form { height: 3.5em; }
  .search__input { font-size: 1.125em; }
  .search__button { width: 3.5em; height: 3.5em; }
  .search__button-icon { width: 1.4em; height: 1.15em; }
  .filter { width: 100%; margin-top: 0.5em; }
  .filter__inner { width: auto; }
  .filter__list { padding: 0.5em; }
  .filter__item { padding: 0 0.125em; }
  .filter__controls { display: none; }
  .tag { height: 2.4em; padding: 0 0.6em; gap: 0.375em; }
  .tag__text, .tag__icon { font-size: 1.05em; }

  .books-list__inner { padding-top: 4.5em; }
  .books-list__header { padding-bottom: 1.5em; }
  .books-list__content { padding-bottom: 4.5em; }
  .books-slider__controls { display: none; }
  .books-slider__list { padding: 3em 1.25em 2em; margin: -3em 0 -2em; scroll-snap-type: x mandatory; }
  .books-slider__list-item { width: 16.125em; scroll-snap-align: start; }
  .books-slider__item { padding: 0 0.75em; }
  .books-slider__item-bg { border-radius: 1.5em; }
  .books-slider__item-container { gap: 0.75em; padding: 0.75em 0.75em 1.125em; }
  .books-slider__item-cover { border-radius: 0.75em; }
  .books-slider__item-bg-bottom, .books-slider__item-cta, .books-slider__item-bg-ears { display: none; }
  .tag-small { padding: 0.3125em 0.45em; }
  .tag-small__text { font-size: 0.8em; }
  .card-badge { font-size: 0.8em; top: 0.6em; inset-inline-start: 0.6em; }
  .card-score { font-size: 0.85em; bottom: 0.6em; inset-inline-end: 0.6em; }

  .detail__header { margin-top: -8.75em; }
  .detail__visual { width: 24em; }
  .content__container { margin-bottom: 3em; }
  .at-a-glance { margin-top: 3em; }
  .at-a-glance .book__text { font-size: 1.5em; top: -1.25em; }
  .at-a-glance__list { padding: 1.25em 0 0; gap: 0.5em; }
  .at-a-glance__tag__heading { font-size: 1.4em; }
  .content__text { margin-top: 3.5em; }
  .richtext__heading { font-size: 1.75em; }
  .content__text__inner { column-count: 1; }
  .testimonials__wrapper { margin-top: 4em; }
  .flow__list { justify-content: flex-start; margin: 0 calc(var(--grid-margin) * -1); padding: 1.5em var(--grid-margin) 2em; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .flow__list-item { scroll-snap-align: center; padding: 0 0.5em; }
  .flow__list-item:not(:first-child) { margin: 0; }
  .flow__card { width: 18.75em; min-height: 24em; }
  .flow__list-item:nth-child(n) .flow__card,
  .js .flow__list:not(.is--in) .flow__list-item:nth-child(n) .flow__card { transform: rotate(0); }
  .flow__list-item:nth-child(odd) .flow__card { transform: rotate(1.5deg); }
  .flow__list-item:nth-child(even) .flow__card { transform: rotate(-1deg); }
  .flow.is--inner-clip { border-radius: 2.5em; }
  .flow__header { padding: 3em 0 2em; }
  .flow__page { padding: 2em; margin-bottom: 3em; }
  .notes__header { padding-top: 4em; }
  .notes__logo { width: 4em; height: 4em; }
  .accordion__details { border-radius: 1em; }
  .accordion__title-wrap { padding: 1.25em 1em; }
  .accordion__content-inner { padding: 0 1em 1.25em; }
  .notes__list { font-size: 1em; }
  .related { padding-top: 4.5em; }
  .pop-up { bottom: 1em; inset-inline-end: 1em; padding: 0.5em; }

  .footer { margin-top: -2.5em; padding-top: 2.5em; }
  .footer__top { padding: 4em 0 16em; }
  .footer__top-inner { flex-direction: column; padding: 0 1.5em; }
  .footer__logo-img { width: 12em; }
  .footer__form-title { font-size: 2em; }
  .search__form--footer { width: 100%; }
  .footer__visual-img { width: 16em; bottom: -4em; }
  .footer__bottom { padding-inline: 1.5em; }
}

@media (max-width: 991px) {
  .hero-xs__inner.is--home { flex-direction: column; align-items: stretch; min-height: 0; padding: 9em var(--grid-margin) 3em; }
  .hero-xs__content.is--home .hero-xs__title { max-width: none; }
  .home-float { width: 100%; height: 26em; }
  .home-float__item { width: 12em; }
  .home-float__item.is--1 { inset-inline-start: 45%; }
  .home-float__item.is--2 { top: 5em; inset-inline-start: 10%; }
  .home-float__item.is--3 { top: 9em; inset-inline-start: 60%; }
  .home-float__note { inset-inline-end: 1em; bottom: 0; }
  .home-row__note { display: none; }
  .flow__list.is--steps .flow__card { width: 16em; min-height: 22em; }
  .spotlight { flex-direction: column; gap: 2em; margin-top: 4em; }
  .spotlight__cover { width: 16em; }
  .people__list, .shots__list { padding: 1em 1.25em 3em; gap: 1em; }
  .people__item, .people__photo { width: 8em; }
  .shots__item { width: 80vw; }
  .reviews-grid, .reviews-grid.is--reviewer { column-count: 1; }
  .review { padding: 1.25em; }
  .review__meta { margin-inline-start: 0; }
  .detail__visual.is--portrait { width: 16em; }
  .reviewer-list { padding-top: 3em; }
}

@media (max-width: 767px) {
  .detail__visual { width: 15em; }
  .hero-xs__content.is--book .hero-xs__paragraph { font-size: 1.125em; }
  .testimonials-heading { max-width: none; }
}

/* Keep readable type and operable controls independent of the artboard's em scale. */
.button { --button-height: max(3.5em, 2.75rem); }
.button-alt { --button-alt-height: max(3.5em, 2.75rem); }
:is(a.tag, button.tag, .sort__option, .ui-switch__option, .search__button,
    .books-slider__controls-button, .filter__controls-button, .search__input, .slides__nav, .slides__close) {
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
}
:is(.review__more, a.review__name, .review__source, .footer__bottom a,
    .flow__card-content-autor a, .notes a, .footer__sections a) {
  display: inline-flex;
  align-items: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
}
.hero-xs__content, .review__who, .review__work bdi { min-inline-size: 0; }
.header__menu, .header__context { display: none; }
.header__search { display: none; }
.item-nav { display: flex; justify-content: center; gap: 0.25rem; width: 100%; padding: 0.25rem 1rem; background: var(--white); pointer-events: auto; overflow-x: auto; }
.item-nav a { display: inline-flex; align-items: center; flex: none; min-height: 2.75rem; padding-inline: 0.75rem; font-size: max(0.875rem, 1em); border-radius: 0.5rem; }
.item-nav a:hover, .item-nav a[aria-current] { background: var(--soft-periwinkle); }
.header:has(.item-nav) { flex-wrap: wrap; height: auto; }
.reviews-controls__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; width: min(100%, 32rem); }
.reviews-controls__fields label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; text-align: start; }
.reviews-controls__fields select { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.5rem; border: 1px solid rgb(0 0 0 / 0.2); border-radius: 0.5rem; background: var(--white); color: var(--black); font: 600 1rem var(--font-body); }
.reviews-more { gap: 1rem; align-items: center; margin: 0 0 1rem; }
.reviews-more button { min-width: 4rem; min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 0.5rem; background: var(--black); color: var(--white); }
.reviews-more button:disabled { opacity: 0.4; cursor: default; }
.reviews-skip { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; margin-bottom: 1rem; text-decoration: underline; }
.slides__count { pointer-events: none; }
.spotlight__score { flex-wrap: wrap; }
:is(.hero-xs__title, .hero-xs__paragraph, .review, .content__text, .notes__list, .notes__pre) { overflow-wrap: anywhere; }
.at-a-glance__tag { max-inline-size: 100%; }
.at-a-glance__tag__heading { white-space: normal; overflow-wrap: anywhere; }
.footer__bottom-inner { flex-wrap: wrap; align-items: center; }
.footer__bottom-text { opacity: 0.8; }
.slides__close { top: max(1.5em, env(safe-area-inset-top)); inset-inline-end: max(1.5em, env(safe-area-inset-left)); }

@media (max-width: 991px) {
  body { font-size: max(1rem, var(--size-font)); }
  .header { position: fixed; height: auto; padding-block: env(safe-area-inset-top) 0; background: var(--hero-bg, var(--white)); box-shadow: 0 1px 0 rgb(0 0 0 / 0.12); pointer-events: auto; }
  .header__inner { position: relative; flex-wrap: nowrap; gap: 0.75rem; min-height: 3.5rem; }
  .header__title { flex: none; justify-content: flex-start; translate: none; }
  [data-scrolling-started="true"] .header__title { translate: none; }
  .header__title-logo { width: 5rem; }
  .header__title-link { display: flex; align-items: center; min-height: 2.75rem; }
  .header__search { display: flex; margin-top: 1rem; }
  .header__context { display: block; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1rem; font-weight: 800; min-height: 2.75rem; line-height: 2.75rem; }
  .header__menu { display: grid; place-items: center; flex: none; min-width: 2.75rem; min-height: 2.75rem; font-size: 1.6rem; border: 1px solid rgb(0 0 0 / 0.15); border-radius: 0.5rem; }
  .header__nav { position: absolute; inset-block-start: 100%; inset-inline: 0; padding: 1rem; background: var(--white); box-shadow: 0 0.75rem 1rem rgb(0 0 0 / 0.12); max-height: calc(100dvh - 7rem); overflow-y: auto; }
  .js .header__menu[aria-expanded="false"] + .header__nav { display: none; }
  html:not(.js) .header__menu { display: none; }
  html:not(.js) .header { position: static; }
  html:not(.js) .header__inner { flex-wrap: wrap; }
  html:not(.js) .header__nav { position: static; flex-basis: 100%; box-shadow: none; }
  .item-nav { justify-content: flex-start; padding: 0 0.5rem; scrollbar-width: thin; }
  .item-nav a { font-size: 0.875rem; padding-inline: 0.65rem; }
  .header__nav-list { width: 100%; flex-wrap: wrap; justify-content: center; padding: 0; gap: 0.5rem; }
  .header__nav-list-item.is--switch { order: 0; }
  .button { --button-height: max(2.75em, 2.75rem); }
  .button-alt { --button-alt-height: max(2.75em, 2.75rem); }
  .ui-switch { height: auto; padding: 0.25rem; }
  .ui-switch__option { padding-inline: 0.6em; font-size: 1em; }
  .hero-xs__inner, .hero-xs__inner.is--book, .hero-xs__inner.is--home { padding-top: 6rem; }
  .page-wrapper:has(.item-nav) .hero-xs__inner { padding-top: 8rem; }
  .hero-xs__content { max-inline-size: 100%; }
  .hero-xs__title { max-inline-size: 100%; }
  .search__input, .search__form--footer .search__input { font-size: max(1rem, 1.125em); }
  .search__form { width: 100%; }
  .footer__top-form { width: 100%; min-inline-size: 0; }
  .at-a-glance .book__text { position: static; rotate: none; text-align: center; }
  .at-a-glance__list { padding-top: 1em; }
  .content__text__inner.is--columns { column-count: 1; }
  .home-float__item { width: 40%; }
  .home-float__item.is--3 { inset-inline-start: 55%; }
  .spotlight { padding-inline: var(--grid-margin); }
  .spotlight__body { min-inline-size: 0; max-inline-size: 100%; }
  .spotlight__note { rotate: none; max-inline-size: 100%; overflow-wrap: anywhere; }
  .flow__list-item { max-inline-size: 100%; flex-shrink: 0; }
  .flow__card, .flow__list.is--steps .flow__card { max-inline-size: calc(100vw - 3rem); }
  .detail__visual, .detail__visual.is--portrait { max-inline-size: 100%; }
  .pop-up { position: static; width: fit-content; max-width: 100%; margin: 1em auto; }
  .pop-up.is--away { translate: none; }
  .reviews-controls { padding-inline: 1rem; }
  #reviews { border-radius: 1rem; margin-inline: 0.75rem; scroll-margin-block-start: 0.75rem; }
  #reviews .flow__inner { padding-inline: 0.75rem; }
  #reviews .flow__header { padding: 1.25rem 0 0.75rem; gap: 0.25rem; align-items: flex-start; text-align: start; }
  #reviews .flow__title { font-size: 1.75rem; }
  #reviews .flow__subtitle { margin: 0; font-size: 0.875rem; line-height: 1.6; }
  #reviews .reviews-controls { margin-bottom: 1rem; padding: 0; gap: 0.5rem; }
  #reviews .reviews-controls__row { flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; padding-block: 0.25rem; }
  #reviews .reviews-controls__row .tag { flex: none; }
  #reviews .reviews-grid { padding-bottom: 0; }
  #reviews .review { padding: 1rem; border-radius: 0.75rem; margin-bottom: 0.75rem; gap: 0.5rem; }
  .js #reviews .review__text.is--clamped { -webkit-line-clamp: 4; }
  #reviews .review__text { font-size: 1rem; line-height: 1.85; }
  #reviews .review__byline { gap: 0.5rem; padding-top: 0.5rem; }
  #reviews .review__meta { gap: 0.5rem; }
  .notes__header { padding-top: 2rem; gap: 0.5rem; }
  .notes__logo { display: none; }
  .related, .books-list__inner { padding-top: 2rem; }
  .content__text { margin-top: 2rem; }
  .testimonials__wrapper { margin-top: 2rem; padding-block: 1rem; }
  .reviews-controls__label { flex-basis: 100%; text-align: center; }
  .flow__page { padding: 1.25em; }
  .slides__count { bottom: max(1.5em, env(safe-area-inset-bottom)); }
  .slides__nav { bottom: max(1em, env(safe-area-inset-bottom)); }
}

@media (max-width: 479px) {
  .header__nav-list-item.is--switch { flex-basis: 100%; justify-content: center; }
}
