/* ==========================================================================
   ilvraelmorraven.com — zine-style guide to six free browser games
   Design tokens + components. Two inks: fluorescent pink and violet.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper:        #f2eff4;
  --ink:          #221c58;
  --ink-soft:     #4f4a78;
  --ink-print:    #22093a;   /* ink multiplied over the second pass */
  --pink:         #ff4fa7;
  --pink-pale:    #ffd0e6;
  --lilac:        #dcd9e6;
  --tape:         rgba(237, 230, 214, 0.82);
  --staple:       #9c99ac;
  --staple-edge:  #6e6a80;

  --display: "Ultra", "Rockwell", Georgia, serif;
  --text:    "Karla", "Helvetica Neue", Arial, sans-serif;

  --gutter:  80px;
  --rule:    3px;
  --shadow-hard: 10px 10px 0 0 var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.hero :focus-visible,
.marquee :focus-visible,
.section--pink :focus-visible { outline-color: var(--ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-weight: 800; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Paper texture ---------- */
.texture::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/img/paper-texture.png");
  background-size: 512px 512px;
  background-position: top left;
  pointer-events: none;
}
.texture > * { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.section {
  position: relative;
  padding: 112px var(--gutter) 120px;
}
.section--paper { background: var(--paper); }
.section--lilac { background: var(--lilac); }
.section--pink  { background: var(--pink); }
.section--pink::before  { opacity: .6; }
.section--rose  { background: var(--pink-pale); }
.section--rose::before  { opacity: .35; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}
.section__intro {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  max-width: 460px;
}

/* ---------- Headings: two-pass misregistered print ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: .98;
  color: var(--ink-print);
  position: relative;
  z-index: 0;
}
.display::before {
  content: attr(data-pass);
  position: absolute;
  left: .05em; top: -.06em;
  width: 100%;
  z-index: -1;
  color: var(--pass-ink, var(--pink));
  pointer-events: none;
}
/* on the pink sheets the second pass is printed in paper instead */
.hero, .page-head, .section--pink, .section--rose { --pass-ink: var(--paper); }

h1.display { font-size: 104px; line-height: .94; max-width: 840px; }
h2.display { font-size: 80px; }
.display--sm { font-size: 64px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  padding: 18px 28px;
  filter: drop-shadow(6px 6px 0 var(--paper));
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); filter: drop-shadow(8px 8px 0 var(--paper)); }
.btn:active { transform: translate(2px, 2px); filter: drop-shadow(3px 3px 0 var(--paper)); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 3px solid var(--ink);
  filter: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); filter: none; }

.link-strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-position: from-font;
}
.link-strong:hover { color: var(--pink); }
.section--pink .link-strong:hover,
.section--rose .link-strong:hover { color: var(--paper); }

.strap {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
}

/* paper scraps */
.scrap {
  background: var(--paper);
  padding: 22px 26px;
  filter: drop-shadow(8px 8px 0 var(--ink));
}
.scrap--tilt  { transform: rotate(1.2deg); }
.scrap--tilt-n { transform: rotate(-1.5deg); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--paper);
  z-index: 20;
}
.site-header__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter) 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}
.tabs { display: flex; align-items: flex-end; gap: 6px; }
.tabs__link {
  position: relative;
  display: block;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.tabs__link:hover { background: var(--pink-pale); }
.tabs__link[aria-current="page"] {
  background: var(--pink);
  font-weight: 800;
}
.tabs__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: calc(var(--rule) * -1);
  height: var(--rule);
  background: var(--pink);
}
.site-header__rule { height: var(--rule); background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  background: var(--pink);
  padding: 72px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.hero::before { opacity: .7; }
.hero > * { position: relative; z-index: 2; }
.hero__deco { position: absolute; z-index: 1; pointer-events: none; }
.hero__disc { left: 760px; top: 60px; width: 700px; height: 700px; opacity: .28; }
.hero__disc img { width: 100%; height: 100%; object-fit: cover; }
.hero__robot {
  left: 899px; top: 131px; width: 401px; height: 860px;
  transform: rotate(4deg);
  filter: drop-shadow(14px 10px 0 var(--ink));
}
.hero__robot img { width: 100%; height: 100%; object-fit: contain; }
.hero__note {
  z-index: 3;
  left: 1053px; top: 682px; width: 230px;
  transform: rotate(-5deg);
  background: var(--paper);
  padding: 14px 16px;
  filter: drop-shadow(4px 4px 0 var(--ink));
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
}
.hero__tape {
  z-index: 4;
  left: 1238px; top: 669px; width: 80px; height: 30px;
  background: var(--tape);
  transform: rotate(-28deg);
}
.hero__staples { left: 30px; top: 250px; display: grid; gap: 140px; }
.hero__staples span {
  display: block; width: 5px; height: 34px;
  background: var(--staple);
  border: 1px solid var(--staple-edge);
  border-radius: 2px;
}
.hero__reg { width: 28px; height: 28px; }
.hero__reg--tr { left: auto; right: 24px; top: 24px; }
.hero__reg--bl { left: 24px; bottom: 24px; }
/* the scrap is tilted, so reserve the height its rotated box takes in the design */
.hero__lede { width: 620px; max-width: 100%; margin-bottom: 13px; font-weight: 500; font-size: 20px; line-height: 1.5; }
.hero__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 8px;
  font-size: 19px;
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  height: 84px;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  flex: none;
  will-change: transform;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__text {
  font-family: var(--display);
  font-size: 34px;
  color: var(--pink);
  padding-right: 24px;
}
.marquee--footer { background: var(--pink); height: 128px; }
.marquee--footer .marquee__text { font-size: 64px; color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Contents (game entries) ---------- */
.contents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.genre-stack { display: grid; gap: 36px; align-content: start; }
.genre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .64px;
  text-transform: uppercase;
}
.genre__screen {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--ink);
  background: var(--paper) top left / 23.04px 23.04px;
}
.genre__screen--arcade    { background: var(--pink); }
.genre__screen--racing    { background-image: url("/assets/img/genre-racing.png"); }
.genre__screen--adventure { background-image: url("/assets/img/genre-adventure.png"); }
.genre__screen--strategy  { border-width: 3px; }
.genre-group__label { padding-bottom: 12px; }

.entry {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-top: var(--rule) solid var(--ink);
  padding: 22px 0 26px;
  text-decoration: none;
  color: inherit;
}
.entry:hover, .entry:focus-visible {
  background: var(--pink-pale);
  padding-left: 16px;
  padding-right: 16px;
  outline: none;
}
.entry:hover .entry__cover,
.entry:focus-visible .entry__cover {
  transform: rotate(0deg);
  box-shadow: 16px 16px 0 0 var(--pink);
}
.entry:hover .entry__title,
.entry:focus-visible .entry__title { text-decoration: underline; text-underline-position: from-font; }
.entry:hover .entry__link,
.entry:focus-visible .entry__link {
  background: var(--ink);
  color: var(--pink);
  padding: 6px 12px;
  text-decoration: none;
}
.entry__tip {
  position: relative;
  width: 174px; height: 174px;
  flex: none;
}
.entry__cover {
  position: absolute;
  left: 12px; top: 12px;
  width: 150px; height: 150px;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-hard);
  transform: rotate(2deg);
  transition: transform .15s ease;
}
.entry__tip--alt .entry__cover { transform: rotate(-2.5deg); }
.entry__cover img { width: 100%; height: 100%; object-fit: cover; }
.entry__tape {
  position: absolute;
  width: 51px; height: 15px;
  background: var(--tape);
  transform: rotate(-32deg);
  z-index: 2;
}
.entry__tape--tl { left: -4px;  top: 8px; }
.entry__tape--br { left: 120px; top: 152px; }
.entry__body { display: grid; gap: 8px; min-width: 0; justify-items: start; }
.entry__title {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.05;
}
.entry__desc { font-size: 16px; line-height: 1.45; }
.entry__meta { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.entry__link {
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-underline-position: from-font;
}

/* ---------- Glossary ---------- */
.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
}
.term {
  border-top: 2px dashed var(--ink);
  padding: 22px 0 26px;
  display: grid;
  gap: 10px;
}
.term__name { font-family: var(--display); font-size: 36px; line-height: 1.05; }
.term__def  { font-size: 18px; line-height: 1.5; }

/* ---------- Split (heading + body) ---------- */
.split {
  display: flex;
  align-items: flex-start;
  gap: 96px;
}
.split__aside { width: 540px; flex: none; }
.split__body  { flex: 1; min-width: 0; padding-top: 12px; display: grid; gap: 22px; justify-items: start; }
.split__lede  { font-weight: 500; font-size: 24px; line-height: 1.45; }

.colophon {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 2px dashed var(--ink);
  padding-top: 16px;
  width: 100%;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}
.swatch { width: 16px; height: 16px; flex: none; }
.swatch--pink { background: var(--pink); border: 1.5px solid var(--ink); }
.swatch--ink  { background: var(--ink); }

/* ---------- Comparison table ---------- */
.table-wrap { filter: drop-shadow(10px 10px 0 var(--ink)); }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  text-align: left;
}
.table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  padding: 14px 0;
}
.table thead th:first-child { padding-left: 24px; }
.table thead th:last-child  { padding-right: 24px; }
.table tbody tr + tr { border-top: 1.5px solid var(--ink); }
.table tbody tr:hover { background: var(--pink-pale); }
.table td {
  padding: 18px 12px;
  font-size: 16px;
  line-height: 1.4;
  vertical-align: middle;
}
.table td:first-child, .table th:first-child { padding-left: 24px; }
.table td:last-child,  .table th:last-child  { padding-right: 24px; }
.table td:first-child { font-weight: 800; font-size: 18px; }
.table td:first-child a { text-decoration: underline; text-underline-position: from-font; }
.table td:first-child a:hover { color: var(--pink); }
.table col.c-game     { width: 300px; }
.table col.c-genre    { width: 200px; }
.table col.c-controls { width: 300px; }
.table col.c-players  { width: 250px; }
.table .genre { font-size: 14px; letter-spacing: .56px; }
.table .genre__screen { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; }
.faq__item {
  border-top: var(--rule) solid var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 20px 0 22px;
}
.faq__q { width: 300px; flex: none; font-weight: 800; font-size: 20px; line-height: 1.3; }
.faq__a { flex: 1; min-width: 0; font-size: 18px; line-height: 1.5; }

/* ---------- Contact card ---------- */
.contact-split {
  display: flex;
  align-items: flex-end;
  gap: 96px;
}
.contact-split__text { width: 640px; flex: none; display: grid; gap: 20px; }
.contact-split__text p { font-weight: 500; font-size: 21px; line-height: 1.5; }
.contact-card {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  padding: 24px 28px;
  display: grid;
  gap: 14px;
  justify-items: start;
  filter: drop-shadow(8px 8px 0 var(--ink));
  transform: rotate(-1.5deg);
}
.contact-card__address {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.1;
  word-break: break-word;
  text-decoration: none;
}
.contact-card__address:hover { color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer__body {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 64px var(--gutter) 40px;
}
.site-footer__brand { width: 420px; flex: none; display: grid; gap: 14px; }
.site-footer__brand .logo { margin: 0; }
.site-footer__brand .logo__word { color: var(--paper); }
.site-footer__tagline { font-size: 17px; line-height: 1.5; }
.site-footer__small { font-size: 15px; line-height: 1.5; color: var(--lilac); }
.site-footer__col { flex: 1; min-width: 0; display: grid; gap: 14px; align-content: start; }
.site-footer__col--contact { flex: none; width: 300px; }
.site-footer .eyebrow { color: var(--lilac); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 500;
  font-size: 17px;
}
.footer-links a { text-decoration: underline; text-underline-position: from-font; }
.footer-links a:hover { color: var(--pink); }
.site-footer__email {
  font-weight: 700;
  font-size: 20px;
  text-decoration: underline;
  text-underline-position: from-font;
  word-break: break-word;
}
.site-footer__email:hover { color: var(--pink); }
.social { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.social a {
  border: 1.5px solid var(--paper);
  padding: 6px 12px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.social a:hover { background: var(--paper); color: var(--ink); }
.site-footer__legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-soft);
  padding: 20px var(--gutter) 36px;
  font-size: 15px;
  color: var(--lilac);
}
.site-footer__legal button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--paper);
  text-decoration: underline;
  text-underline-position: from-font;
  cursor: pointer;
  font-size: 15px;
}
.site-footer__legal button:hover { color: var(--pink); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 60;
  width: 500px;
  max-width: calc(100vw - 32px);
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 26px 28px;
  display: grid;
  gap: 14px;
}
.cookie[hidden] { display: none; }
.cookie__strip {
  position: absolute;
  left: calc(var(--rule) * -1); top: calc(var(--rule) * -1);
  width: 500px; max-width: calc(100% + var(--rule) * 2); height: 10px;
  background: var(--pink);
}
.cookie__head { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.cookie__head img { width: 30px; height: 30px; flex: none; }
.cookie__title { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.cookie__text { font-size: 17px; line-height: 1.5; }
.cookie__actions { display: flex; gap: 12px; }
.cookie__actions button {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  padding: 13px 16px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.cookie__actions button:hover { background: var(--pink); }
.cookie__more { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-position: from-font; justify-self: start; }
.cookie__more:hover { color: var(--pink); }

/* ---------- Prose (legal & article pages) ---------- */
.prose { max-width: 820px; display: grid; gap: 20px; font-size: 18px; line-height: 1.6; }
.prose h2 { font-family: var(--display); font-size: 34px; line-height: 1.1; margin-top: 22px; }
.prose h3 { font-weight: 800; font-size: 21px; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; background: var(--pink);
  border: 1.5px solid var(--ink);
}
.prose a { text-decoration: underline; text-underline-position: from-font; font-weight: 700; }
.prose a:hover { color: var(--pink); }

/* ---------- Page intro (inner pages) ---------- */
.page-head {
  position: relative;
  background: var(--pink);
  padding: 72px var(--gutter) 80px;
  overflow: hidden;
}
.page-head::before { opacity: .6; }
.page-head__inner { display: grid; gap: 24px; justify-items: start; max-width: 900px; }
.page-head__lede { font-weight: 500; font-size: 21px; line-height: 1.5; max-width: 720px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li::after { content: "·"; padding-left: 8px; }
.breadcrumbs li:last-child::after { content: ""; }


/* ---------- Page head (inner pages) ---------- */
.page-head__meta {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}
.page-head h1.display { font-size: 96px; line-height: .96; max-width: 1000px; }
.page-head .hero__reg--tl { left: 24px; top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; }
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-underline-position: from-font;
}
.chips a:hover { background: var(--pink-pale); }

/* ---------- Genre divider ---------- */
.genre-divider {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--ink);
  color: var(--paper);
  padding: 36px var(--gutter);
  scroll-margin-top: 0;
}
.genre-divider__name {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 520px;
  flex: none;
  font-family: var(--display);
  font-size: 52px;
  line-height: 1;
  color: var(--pink);
}
.genre-divider .genre__screen { width: 30px; height: 30px; }
.genre-divider p { flex: 1; min-width: 0; font-size: 18px; line-height: 1.5; }

/* ---------- Game screen (Games page) ---------- */
.screen {
  display: flex;
  align-items: center;
  gap: 88px;
  padding: 88px var(--gutter) 96px;
  background: var(--paper);
}
.screen--alt { background: var(--pink-pale); }
.tipin {
  position: relative;
  width: 508px; height: 508px;
  flex: none;
}
.tipin__cover {
  position: absolute;
  left: 24px; top: 24px;
  width: 460px; height: 460px;
  border: 6px solid var(--paper);
  box-shadow: 16px 16px 0 0 var(--pink);
  transform: rotate(2.5deg);
}
.screen--alt .tipin__cover { box-shadow: 16px 16px 0 0 var(--ink); transform: rotate(-2.5deg); }
.tipin__cover img { width: 100%; height: 100%; object-fit: cover; }
.tipin__tape {
  position: absolute;
  width: 156px; height: 46px;
  background: var(--tape);
  transform: rotate(-32deg);
  z-index: 2;
}
.tipin__tape--tl { left: -4px; top: -6px; }
.tipin__tape--br { left: 368px; top: 448px; }
.screen__body { flex: 1; min-width: 0; display: grid; gap: 20px; justify-items: start; }
.screen__body .genre { font-size: 15px; letter-spacing: .6px; }
.screen__body .genre__screen { width: 20px; height: 20px; }
.screen__body h2.display { max-width: 600px; }
.screen__lede { font-weight: 500; font-size: 20px; line-height: 1.5; }

.fields {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  text-align: left;
}
.fields th {
  width: 170px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  vertical-align: middle;
}
.fields td { padding: 12px 20px 12px 0; font-size: 17px; line-height: 1.4; }
.fields tr + tr { border-top: 1.5px solid var(--ink); }

.btn--pink { filter: drop-shadow(5px 5px 0 var(--pink)); font-size: 18px; padding: 16px 24px; }
.btn--pink:hover { filter: drop-shadow(8px 8px 0 var(--pink)); }
.btn--pink:active { filter: drop-shadow(3px 3px 0 var(--pink)); }


/* ---------- Guide page ---------- */
.page-head--guide h1.display { font-size: 104px; line-height: .96; max-width: 760px; }
.page-head--guide .page-head__inner { max-width: 760px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 6px; }
.meta-line .genre-box {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  font-weight: 700; font-size: 13px; letter-spacing: .52px; text-transform: uppercase;
}
.meta-line .genre-box .genre__screen { width: 14px; height: 14px; }
.meta-line__byline { font-weight: 600; font-size: 16px; line-height: 1.45; max-width: 560px; }
.page-head__cover {
  position: absolute;
  left: 868px; top: 70px;
  width: 416px; height: 416px;
  z-index: 1;
}
.page-head__cover .tipin__cover {
  left: 28px; top: 28px; width: 360px; height: 360px;
  box-shadow: 14px 14px 0 0 var(--ink);
  transform: rotate(-2.5deg);
}
.page-head__cover .tipin__tape { width: 122px; height: 36px; }
.page-head__cover .tipin__tape--tl { left: -4px; top: -8px; }
.page-head__cover .tipin__tape--br { left: 288px; top: 352px; }

.guide {
  display: flex;
  align-items: flex-start;
  gap: 88px;
  padding: 88px var(--gutter) 120px;
}
.toc {
  position: sticky;
  top: 24px;
  width: 300px;
  flex: none;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  filter: drop-shadow(6px 6px 0 var(--pink));
  padding: 22px;
  display: grid;
  gap: 12px;
}
.toc ol { display: grid; gap: 12px; }
.toc li { display: flex; align-items: center; gap: 10px; }
.toc__marker { width: 12px; height: 12px; flex: none; border: 2px solid var(--ink); }
.toc li.is-current .toc__marker { background: var(--pink); }
.toc a { font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: underline; text-underline-position: from-font; }
.toc a:hover { color: var(--pink); }
.toc li.is-current a { font-weight: 800; text-decoration: none; }

.guide__main { width: 800px; max-width: 100%; display: grid; gap: 64px; }
.guide__section { display: grid; gap: 20px; justify-items: start; scroll-margin-top: 24px; }
.guide__section h2.display { font-size: 44px; max-width: 800px; }
.guide__lede { font-weight: 500; font-size: 22px; line-height: 1.5; }
.guide__section p { font-size: 18px; line-height: 1.65; }

.facts { filter: drop-shadow(8px 8px 0 var(--ink)); width: 100%; }
.facts .fields { width: 100%; }

.controls-list { width: 100%; display: grid; }
.controls-list div {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 0;
}
.controls-list div + div { border-top: 1.5px dashed var(--ink); }
.controls-list dt { width: 240px; flex: none; font-weight: 700; font-size: 17px; }
.controls-list dd {
  margin: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 16px;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.section--alt .controls-list dd, .screen--alt .controls-list dd { background: var(--paper); }

.tips { display: grid; gap: 14px; width: 100%; }
.tips li { display: flex; align-items: flex-start; gap: 14px; padding-left: 0; }
.tips li::before {
  content: "";
  flex: none;
  margin-top: 7px;
  width: 14px; height: 14px;
  background: var(--pink);
  border: 2px solid var(--ink);
  position: static;
}
.tips li span { font-size: 18px; line-height: 1.6; }

.verdict { display: flex; gap: 24px; width: 100%; align-items: stretch; }
.verdict > div { flex: 1; min-width: 0; padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.verdict__good { background: var(--pink-pale); }
.verdict__weigh { border: var(--rule) solid var(--ink); }
.verdict p { font-size: 17px; line-height: 1.55; }

.qa { width: 100%; display: grid; }
.qa div { border-top: var(--rule) solid var(--ink); padding: 12px 0; display: grid; gap: 6px; }
.qa dt { font-weight: 800; font-size: 19px; line-height: 1.3; }
.qa dd { margin: 0; font-size: 17px; line-height: 1.5; }

.related { width: 100%; display: grid; }
.poki-box {
  width: 100%;
  border: 2px dashed var(--ink);
  padding: 22px 24px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.poki-box p { font-size: 17px; line-height: 1.55; }


/* ---------- About page ---------- */
.about-body { padding: 96px var(--gutter) 120px; }
.about-row {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 48px 0 56px;
}
.about-row + .about-row { border-top: var(--rule) solid var(--ink); }
.about-row__head { width: 420px; flex: none; }
.about-row__head h2.display { font-size: 44px; max-width: 420px; }
.about-row__body { flex: 1; min-width: 0; display: grid; gap: 20px; justify-items: start; }
.about-row__body p { font-weight: 500; font-size: 20px; line-height: 1.55; }
.authors { display: flex; gap: 20px; width: 100%; flex-wrap: wrap; }
.author {
  flex: 1;
  min-width: 240px;
  background: var(--pink-pale);
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}
.author__name { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.author p:last-child { font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.criteria {
  width: 100%;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  filter: drop-shadow(6px 6px 0 var(--pink));
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.criteria li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.4; font-weight: 400; }
.criteria li::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--ink); }

/* ---------- Contact page ---------- */
.contact-body {
  display: flex;
  align-items: flex-start;
  gap: 88px;
  padding: 96px var(--gutter) 120px;
}
.contact-body__col { display: grid; gap: 20px; justify-items: start; }
.contact-body__col--left { width: 560px; flex: none; }
.contact-body__col--right { flex: 1; min-width: 0; }
.contact-body h2.display { font-size: 44px; }
.contact-body .facts { width: 100%; }
.contact-body .fields td { font-weight: 700; }
.contact-body .fields td a { text-decoration: underline; text-underline-position: from-font; }
.contact-body .fields td a:hover { color: var(--pink); }
.topic { width: 100%; border-top: var(--rule) solid var(--ink); padding: 14px 0; display: grid; gap: 6px; }
.topic h3 { font-weight: 800; font-size: 20px; }
.topic p { font-size: 17px; line-height: 1.5; }
.contact-aside {
  width: 100%;
  background: var(--pink-pale);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.contact-aside p { font-weight: 500; font-size: 17px; line-height: 1.5; }
.contact-aside__links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; font-size: 16px; }


/* ---------- Legal pages ---------- */
.legal-body {
  display: flex;
  align-items: flex-start;
  gap: 88px;
  padding: 88px var(--gutter) 120px;
}
.legal-toc {
  position: sticky;
  top: 24px;
  width: 300px;
  flex: none;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  filter: drop-shadow(6px 6px 0 var(--pink));
  padding: 20px;
  display: grid;
  gap: 10px;
}
.legal-toc a { font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: underline; text-underline-position: from-font; }
.legal-toc a:hover { color: var(--pink); }
.legal-main { width: 760px; max-width: 100%; display: grid; gap: 40px; }
.legal-main section { display: grid; gap: 12px; scroll-margin-top: 24px; }
.legal-main h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.legal-main p { font-size: 18px; line-height: 1.65; }

@media (max-width: 1280px) {
  .legal-body { gap: 48px; }
  .legal-main { width: auto; flex: 1; min-width: 0; }
}
@media (max-width: 900px) {
  .legal-body { flex-direction: column; gap: 32px; }
  .legal-toc { position: static; width: 100%; }
}
@media (max-width: 760px) {
  .legal-body { padding: 48px var(--gutter) 64px; }
  .legal-main { gap: 28px; }
  .legal-main h2 { font-size: 24px; }
  .legal-main p { font-size: 17px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  h1.display { font-size: 84px; }
  h2.display { font-size: 64px; }
  .hero { min-height: 0; padding-bottom: 72px; }
  .hero__tape, .hero__staples { display: none; }
  .hero__disc {
    left: auto; right: -70px; top: auto; bottom: 90px;
    width: 420px; height: 420px;
  }
  .hero__robot {
    position: static;
    order: 10;
    align-self: flex-end;
    width: min(100%, 320px);
    height: auto;
    margin-top: 16px;
    transform: rotate(3deg);
  }
  .hero__robot img { height: auto; }
  .hero__note {
    position: static;
    order: 11;
    align-self: flex-start;
    margin-top: -56px;
    width: 230px;
  }
  .split { gap: 56px; }
  .split__aside { width: 400px; }
  .contact-split { gap: 56px; }
  .contact-split__text { width: 420px; }
  .table-wrap { overflow-x: auto; }
  .table { min-width: 1000px; }
}

@media (max-width: 900px) {
  .contents-grid { grid-template-columns: 1fr; gap: 36px; }
  .glossary { grid-template-columns: 1fr; }
  .split, .contact-split { flex-direction: column; align-items: stretch; gap: 32px; }
  .split__aside, .contact-split__text { width: auto; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section__intro { max-width: none; }
  .site-footer__body { flex-wrap: wrap; gap: 40px; }
  .site-footer__brand { width: 100%; }
  .site-footer__col--contact { width: 100%; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 56px var(--gutter) 64px; }
  h1.display { font-size: 48px; }
  h2.display { font-size: 40px; }
  .display--sm { font-size: 34px; }
  .display::before { left: 3px; top: 2px; }

  .site-header__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px var(--gutter) 0;
  }
  .logo { margin-bottom: 0; }
  .logo__word { font-size: 20px; }
  .tabs { width: 100%; gap: 5px; }
  .tabs__link { flex: 1; text-align: center; padding: 11px 6px; font-size: 14px; border-radius: 8px 8px 0 0; }

  .hero { padding: 40px var(--gutter) 56px; gap: 24px; }
  .hero__reg { display: none; }
  .hero__disc { right: -160px; bottom: 60px; width: 380px; height: 380px; }
  .hero__robot { width: min(100%, 260px); }
  .hero__note { margin-top: -48px; width: 210px; font-size: 15px; }
  .hero__lede { font-size: 18px; padding: 18px 20px; }
  .hero__links { gap: 18px; font-size: 17px; }
  .btn { font-size: 17px; padding: 15px 22px; }

  .marquee { height: 62px; }
  .marquee__text { font-size: 26px; }
  .marquee--footer { height: 82px; }
  .marquee--footer .marquee__text { font-size: 38px; }

  .entry { flex-direction: column; gap: 6px; }
  .entry__tip { width: 160px; height: 160px; }
  .entry__title { font-size: 26px; }
  .term__name { font-size: 28px; }
  .split__lede { font-size: 20px; }

  .faq__item { flex-direction: column; gap: 10px; }
  .faq__q { width: auto; font-size: 19px; }
  .faq__a { font-size: 17px; }

  .contact-card { transform: none; }
  .cookie__actions { flex-direction: column; }
  .contact-card__address { font-size: 24px; }

  .page-head { padding: 40px var(--gutter) 48px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 27px; }

  .site-footer__body { padding: 48px var(--gutter) 32px; }
  .site-footer__legal { padding: 20px var(--gutter) 32px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
}

/* ---------- Responsive: inner pages ---------- */
@media (max-width: 1280px) {
  .page-head h1.display { font-size: 72px; }
  .screen { gap: 48px; }
  .tipin { width: 380px; height: 380px; }
  .tipin__cover { width: 344px; height: 344px; left: 18px; top: 18px; }
  .tipin__tape--br { left: 274px; top: 332px; }
  .genre-divider__name { width: auto; font-size: 42px; }
}
@media (max-width: 900px) {
  .screen { flex-direction: column; align-items: flex-start; gap: 32px; }
  .genre-divider { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 760px) {
  .page-head h1.display { font-size: 44px; }
  .page-head__lede { font-size: 18px; }
  .chips a { font-size: 15px; padding: 8px 12px; }
  .genre-divider { padding: 28px var(--gutter); }
  .genre-divider__name { font-size: 32px; }
  .genre-divider p { font-size: 16px; }
  .screen { padding: 48px var(--gutter) 56px; }
  .tipin { width: 100%; max-width: 300px; height: 300px; }
  .tipin__cover { width: 272px; height: 272px; left: 14px; top: 14px; }
  .tipin__tape { width: 110px; height: 32px; }
  .tipin__tape--tl { left: -6px; top: -4px; }
  .tipin__tape--br { left: 200px; top: 262px; }
  .screen__lede { font-size: 18px; }
  .fields th { width: 120px; font-size: 12px; padding: 10px 12px; }
  .fields td { font-size: 16px; padding: 10px 12px 10px 0; }
}

/* ---------- Responsive: guide ---------- */
@media (max-width: 1280px) {
  .page-head--guide h1.display { font-size: 72px; }
  .page-head__cover { display: none; }
  .guide { gap: 48px; }
  .guide__main { width: auto; flex: 1; min-width: 0; }
}
@media (max-width: 900px) {
  .guide { flex-direction: column; gap: 40px; }
  .toc { position: static; width: 100%; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .verdict { flex-direction: column; }
}
@media (max-width: 760px) {
  .page-head--guide h1.display { font-size: 42px; }
  .guide { padding: 48px var(--gutter) 64px; gap: 32px; }
  .guide__main { gap: 44px; }
  .guide__section h2.display { font-size: 30px; }
  .guide__lede { font-size: 19px; }
  .guide__section p { font-size: 17px; }
  .toc ol { grid-template-columns: 1fr; }
  .controls-list dt { width: auto; }
  .meta-line__byline { font-size: 15px; }
}

/* ---------- Responsive: about & contact ---------- */
@media (max-width: 1280px) {
  .about-row { gap: 48px; }
  .about-row__head { width: 320px; }
  .contact-body { gap: 48px; }
  .contact-body__col--left { width: 440px; }
}
@media (max-width: 900px) {
  .about-row, .contact-body { flex-direction: column; gap: 24px; }
  .about-row__head, .contact-body__col--left { width: auto; }
  .contact-body { gap: 48px; }
}
@media (max-width: 760px) {
  .about-body, .contact-body { padding: 48px var(--gutter) 64px; }
  .about-row { padding: 32px 0 36px; }
  .about-row__head h2.display, .contact-body h2.display { font-size: 30px; }
  .about-row__body p { font-size: 18px; }
}
