/* Side Eye website. Same tokens as the app: docs/design.md. No scripts, no external files. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #15131A;
  --paper: #FFF4E0;
  --white: #FFFFFF;
  --tomato: #FF4B3E;
  --sun: #FFC83D;
  --sky: #4D8DFF;
  --mint: #2ED3A0;
  --gum: #FF7AC6;
  --grape: #9B70FF;
  --orange: #FF9A3D;
  --night: #221E2E;
  --deep: #0B0A10;

  --bg: var(--paper);
  --fg: var(--ink);
  --line: var(--ink);
  --card: var(--white);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --soft: rgba(21, 19, 26, .14);
  --surface: var(--bg);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --fg: var(--paper);
    --line: var(--deep);
    --card: var(--paper);
    --btn-bg: var(--paper);
    --btn-fg: var(--ink);
    --soft: rgba(255, 244, 224, .16);
    --surface: var(--bg);
  }
}

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 600 17px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Display type: Bricolage Grotesque, ExtraBold, narrow, upper case */
.d {
  font-family: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -.015em;
  line-height: .9;
  text-transform: uppercase;
}
:lang(nb) .d { line-height: .96; }

.lbl {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
}
.skip:focus { top: 12px; }

/* ---------- pieces ---------- */

.st {
  --surface: var(--card);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--line);
  background: var(--card);
  color: var(--ink);
}

.c-tomato { --surface: var(--tomato); background: var(--tomato); color: var(--ink); }
.c-sun    { --surface: var(--sun);    background: var(--sun);    color: var(--ink); }
.c-sky    { --surface: var(--sky);    background: var(--sky);    color: var(--ink); }
.c-mint   { --surface: var(--mint);   background: var(--mint);   color: var(--ink); }
.c-gum    { --surface: var(--gum);    background: var(--gum);    color: var(--ink); }
.c-grape  { --surface: var(--grape);  background: var(--grape);  color: var(--ink); }

.tilt-l  { transform: rotate(-1.4deg); }
.tilt-r  { transform: rotate(1.2deg); }
.tilt-l2 { transform: rotate(-1deg); }
.tilt-r2 { transform: rotate(2deg); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.chip.c-sun { background: var(--sun); }
.chip.c-mint { background: var(--mint); }
.chip.c-grape { background: var(--grape); }
.chip.c-sky { background: var(--sky); }

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

/* Chips that are links: they pop up a little and press down */
.pop {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 0 3px 0 var(--line);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.pop:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); }
.pop:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.pop[aria-current="page"] { background: var(--sun); }

/* Brand eyes: half-lidded, glancing right. The lid takes the colour of the surface under it. */
.eyes {
  --e: 28px;
  display: inline-flex;
  gap: calc(var(--e) * .14);
  flex: none;
}
.eyes b {
  position: relative;
  display: block;
  width: var(--e);
  height: calc(var(--e) * 1.2);
  overflow: hidden;
  border: max(2px, calc(var(--e) * .1)) solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.eyes b::after {
  content: "";
  position: absolute;
  top: 42%;
  right: 3%;
  width: 50%;
  height: 42%;
  border-radius: 50%;
  background: var(--ink);
}
.eyes b::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  border-bottom: max(2px, calc(var(--e) * .1)) solid var(--line);
  background: var(--surface);
}
.eyes.live b::before { animation: blink 5.6s infinite; }
.eyes.live b::after { animation: glance 11s infinite; }
.eyes.live.slow b::before { animation-duration: 7.3s; animation-delay: -2s; }
.eyes.live.slow b::after { animation-duration: 13s; animation-delay: -4s; }

@keyframes blink {
  0%, 93%, 100% { height: 36%; }
  96% { height: 100%; }
}
@keyframes glance {
  0%, 46% { right: 3%; }
  50%, 64% { right: 46%; }
  68%, 100% { right: 3%; }
}

/* Creatures: a blob with two eyes and a mouth */
.av {
  --s: 40px;
  --c: var(--sun);
  --px: 66%;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--s);
  height: var(--s);
  border: max(2px, calc(var(--s) * .06)) solid var(--line);
  border-radius: 48% 52% 46% 54% / 54% 50% 50% 46%;
  background: var(--c);
}
.av::before, .av::after {
  content: "";
  position: absolute;
  top: 25%;
  width: 28%;
  height: 33%;
  border: max(1.5px, calc(var(--s) * .045)) solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at var(--px) 58%, var(--ink) 0 calc(var(--s) * .05), transparent calc(var(--s) * .05 + .6px)) #fff;
}
.av::before { left: 18%; }
.av::after { right: 18%; }
.av i {
  position: absolute;
  left: 39%;
  right: 39%;
  bottom: 18%;
  height: max(2px, calc(var(--s) * .05));
  border-radius: 9px;
  background: var(--ink);
}
.av.r { border-radius: 50%; }
.av.q { border-radius: 32%; }
.av.t { border-radius: 50% 50% 30% 30%; }
.av.u { border-radius: 30% 30% 50% 50%; }
.av.l { --px: 30%; }
.av.k-sun { --c: var(--sun); }
.av.k-sky { --c: var(--sky); }
.av.k-mint { --c: var(--mint); }
.av.k-gum { --c: var(--gum); }
.av.k-grape { --c: var(--grape); }
.av.k-tomato { --c: var(--tomato); }
.av.k-orange { --c: var(--orange); }
.av.k-paper { --c: var(--paper); }

.add {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 2.5px dashed var(--ink);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  opacity: .6;
}

/* Main button: ink in light mode, paper in dark mode */
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 10px 24px;
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
}
.btn .d { font-size: 30px; }
.btn .lbl { font-size: 11px; opacity: .8; margin-bottom: 3px; }
.btn.soon { cursor: default; }

/* ---------- header and footer ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.brand .eyes { --e: 19px; }
.brand .d { font-size: 32px; padding-top: 3px; white-space: nowrap; }
@media (max-width: 399px) {
  .bar .brand .d { font-size: 28px; }
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav .wide { display: none; }
@media (min-width: 640px) {
  .nav .wide { display: inline-flex; }
}

.foot {
  --surface: var(--ink);
  margin-top: 88px;
  padding: 44px 0 40px;
  background: var(--ink);
  color: var(--paper);
}
@media (prefers-color-scheme: dark) {
  .foot { --surface: var(--deep); background: var(--deep); }
}
.foot-grid {
  display: grid;
  gap: 28px;
}
.foot .brand .d { font-size: 40px; }
.foot .brand .eyes { --e: 24px; }
.foot .eyes b { border-color: var(--paper); }
.foot .eyes b::before { border-bottom-color: var(--paper); }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.foot nav a { display: inline-block; padding: 10px 0; font-weight: 800; }
.foot .fine { font-size: 14px; line-height: 1.5; opacity: .8; max-width: 40em; }
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
  .foot nav ul { justify-content: flex-end; }
  .foot .fine { grid-column: 1 / -1; }
}

/* ---------- home ---------- */

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 16px;
}
.hero h1 { font-size: clamp(56px, 15vw, 116px); margin: 20px 0 22px; }
.hero h1 span { display: block; }
.lead { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.45; max-width: 31em; }
.hero .chips { margin: 26px 0 32px; }
.hero .chips .chip { font-size: 13px; padding: 7px 13px; }
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.store .fine { font-size: 15px; opacity: .8; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 6px 0 16px;
}
.phone {
  position: relative;
  width: 276px;
  height: 560px;
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: 46px;
  box-shadow: 0 10px 0 var(--line);
  background: var(--tomato);
  transform: rotate(2deg);
}
.island {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 80px;
  height: 23px;
  border-radius: 14px;
  background: var(--deep);
  transform: translateX(-50%);
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 52px 16px 22px;
  text-align: center;
}
.grow { flex: 1; }
.screen .name { font-size: 86px; }
.av.big { --s: 112px; }
.hold .eyes { --e: 26px; }
.hold {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 24px;
  text-align: left;
}
.hold .d { font-size: 25px; }
.sub { font-size: 13px; font-weight: 700; line-height: 1.3; }
.dots { display: flex; gap: 6px; margin-top: 4px; }
.dots span { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; }
.dots .on { background: var(--ink); }
@media (prefers-color-scheme: dark) {
  .dots span { border-color: var(--deep); }
  .dots .on { background: var(--deep); }
}

.reveal {
  position: absolute;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 212px;
  padding: 24px 14px 20px;
  text-align: center;
  background: var(--paper);
  transform: rotate(-6deg);
}
.reveal .d { font-size: 50px; }
.reveal .eyes { --e: 40px; }

.conf { position: absolute; width: 16px; height: 16px; border: 3px solid var(--line); }
.conf.round { border-radius: 50%; }
.conf.k1 { top: 3%; right: 0; background: var(--sun); transform: rotate(18deg); }
.conf.k2 { top: 30%; left: 0; background: var(--gum); }
.conf.k3 { bottom: 16%; right: 0; background: var(--sky); transform: rotate(-24deg); }
.conf.k4 { bottom: 4%; left: 2px; background: var(--mint); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 36px; padding-bottom: 104px; }
  .hero h1 { font-size: min(100px, 7.6vw); }
  .hero-art { justify-content: flex-end; padding-right: 28px; }
  .reveal { display: flex; left: 0; top: 30%; }
}

/* Sections */
.section { padding-top: 64px; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.section-head h2 { font-size: clamp(44px, 10vw, 76px); }
.section-head p { font-size: 19px; line-height: 1.45; max-width: 34em; }

/* Three worlds */
.worlds { display: grid; gap: 26px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-top .eyes { --e: 24px; }
.tile h3 { font-size: clamp(50px, 13vw, 64px); }
.tile .tagline { font-size: 18px; font-weight: 800; }
.tile p { font-size: 16px; line-height: 1.5; }
.tile .chips { margin-top: auto; padding-top: 6px; }
@media (min-width: 900px) {
  .worlds { grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; gap: 24px; }
  .tile { padding: 22px 22px 24px; }
}

/* How it works */
.steps { display: grid; gap: 24px; list-style: none; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 26px;
}
.step h3 { font-size: 34px; }
.step p { font-size: 16px; line-height: 1.5; }
.step .scene {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 124px;
  padding: 14px;
  border-radius: 20px;
  background: var(--paper);
  border: 2.5px solid var(--line);
}
.crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crew .av { --s: 36px; }
.crew .add { width: 36px; height: 36px; font-size: 18px; }
.mini-hold { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; text-align: left; }
.mini-hold .d { font-size: 22px; }
.mini-hold .eyes { --e: 22px; }
.mini-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; text-align: center; background: var(--paper); }
.mini-card .d { font-size: 36px; }
.scene.on-ink { background: var(--ink); --surface: var(--ink); }
@media (prefers-color-scheme: dark) {
  .scene.on-ink { background: var(--deep); --surface: var(--deep); }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Numbers */
.numbers {
  display: grid;
  gap: 4px;
  padding: 10px 22px;
  list-style: none;
}
.numbers li { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 18px; border-bottom: 2px solid rgba(21, 19, 26, .12); }
.numbers li:last-child { border-bottom: 0; }
.numbers .d { font-size: clamp(64px, 18vw, 96px); }
.numbers .what { font-size: 18px; font-weight: 800; line-height: 1.3; }
@media (min-width: 900px) {
  .numbers { grid-template-columns: repeat(3, 1fr); padding: 18px 28px; gap: 28px; }
  .numbers li { border-bottom: 0; }
}
.numbers-note { margin-top: 18px; font-size: 16px; opacity: .85; }

/* Promise */
.promise { display: grid; gap: 22px; list-style: none; }
.promise li { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.promise h3 { font-size: 40px; }
.promise p { font-size: 16px; line-height: 1.5; }
@media (min-width: 640px) {
  .promise { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .promise { grid-template-columns: repeat(4, 1fr); }
}

/* Final call */
.cta {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding: 28px 22px 30px;
}
.cta h2 { font-size: clamp(46px, 11vw, 80px); }
.cta .text { display: grid; gap: 14px; }
.cta p { font-size: 18px; line-height: 1.45; max-width: 32em; }
.cta .btn { --line: var(--ink); background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) {
  .cta .btn { --line: var(--deep); }
}
@media (min-width: 900px) {
  .cta { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
}

/* ---------- text pages: privacy and support ---------- */

.page-head { padding-top: 24px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(60px, 16vw, 112px); margin: 18px 0 0; }
.updated { margin-top: 16px; font-size: 15px; opacity: .8; }

.summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 30px;
  padding: 20px;
  max-width: 760px;
}
.summary .eyes { --e: 30px; margin-top: 4px; }
@media (max-width: 559px) {
  .summary { flex-direction: column; gap: 14px; }
}
.summary h2 { font-size: 32px; margin-bottom: 8px; }
.summary p { font-size: 17px; line-height: 1.5; }

.prose { max-width: 720px; padding-top: 16px; }
.prose section { padding-top: 40px; }
.prose h2 { font-size: clamp(32px, 7vw, 42px); margin-bottom: 14px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--fg);
  border-radius: 50%;
  background: var(--sun);
}
.prose strong { font-weight: 900; }

.contact {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 22px;
  max-width: 760px;
}
.contact h2 { font-size: 36px; }
.contact .mail {
  font-size: clamp(19px, 5.4vw, 26px);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.contact ul { display: grid; gap: 6px; list-style: none; font-size: 16px; }
.contact li::before { content: "→ "; font-weight: 900; }

.faq { display: grid; gap: 16px; max-width: 760px; margin-top: 8px; }
.faq details { border-radius: 22px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--line);
  border-radius: 50%;
  background: var(--sun);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--mint); }
.faq .answer { padding: 0 18px 18px; font-size: 16px; line-height: 1.55; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- guides: rules, questions and words ---------- */

.crumbs { padding-top: 6px; font-size: 14px; font-weight: 800; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { display: inline-block; padding: 6px 0; }

.guide-head h1 { font-size: clamp(50px, 12.5vw, 100px); }
.guide-head .lead { margin-top: 20px; }

.toc { margin-top: 28px; padding: 18px 20px 20px; max-width: 860px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; list-style: none; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.toc a:hover { background: var(--sun); }

.guide { max-width: 860px; }
.guide > section { padding-top: 52px; }
.guide h2 { font-size: clamp(36px, 8.5vw, 56px); margin-bottom: 16px; }
.guide h3 { font-size: clamp(26px, 6vw, 32px); margin: 32px 0 6px; }
.guide p { max-width: 40em; }
.guide p + p { margin-top: 12px; }
.guide .note { font-size: 16px; opacity: .85; }
.guide strong { font-weight: 900; }
.guide ul.dots { display: grid; gap: 10px; margin-top: 14px; list-style: none; max-width: 40em; }
.guide ul.dots li { position: relative; padding-left: 26px; }
.guide ul.dots li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--fg);
  border-radius: 50%;
  background: var(--sun);
}

/* Numbered rules, one card per step */
.rules { display: grid; gap: 14px; margin-top: 18px; list-style: none; counter-reset: rule; }
.rules > li { counter-increment: rule; position: relative; padding: 16px 18px 18px 66px; font-size: 17px; line-height: 1.5; }
.rules > li::before {
  content: counter(rule);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--line);
  border-radius: 50%;
  background: var(--sun);
  font: 800 22px/1 "Bricolage Grotesque", "Arial Narrow", sans-serif;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
}
.rules h3 { margin: 0 0 4px; font-size: 26px; }

/* Numbered questions, two columns on wide screens */
.qlist { margin-top: 18px; list-style: none; counter-reset: q; }
.qlist li {
  counter-increment: q;
  position: relative;
  padding: 12px 4px 13px 52px;
  border-bottom: 2px solid var(--soft);
  font-size: 18px;
  line-height: 1.45;
  break-inside: avoid;
}
.qlist li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 6px;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.qlist b { font-weight: 900; }
@media (min-width: 960px) {
  .qlist { columns: 2; column-gap: 44px; }
}

/* Words as small stickers */
.words {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  list-style: none;
}
.words li {
  padding: 10px 12px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) { .words { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .words { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Word and hint tables */
.wtable {
  width: 100%;
  table-layout: fixed;
  margin-top: 16px;
  border: 3px solid var(--line);
  border-radius: 20px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}
.wtable th, .wtable td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid rgba(21, 19, 26, .12); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
.wtable th { background: var(--sun); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.wtable td:first-child { width: 50%; font-weight: 900; }
.wtable tbody tr:last-child td { border-bottom: 0; }
.wtable.pairs td:first-child { font-weight: 700; }

/* The app, inside a guide */
.app-box { display: grid; gap: 16px; justify-items: start; margin-top: 56px; padding: 26px 22px 28px; max-width: 860px; }
.app-box h2 { font-size: clamp(38px, 9vw, 60px); margin: 0; }
.app-box p { font-size: 18px; line-height: 1.45; max-width: 34em; }
.app-box .btn { --line: var(--ink); background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) {
  .app-box .btn { --line: var(--deep); }
}

/* Two store buttons side by side when there is room */
.store .btn { min-width: 200px; }
.btn .store-name { font-size: 26px; }

/* Cards that link to the other games */
.related { display: grid; gap: 16px; margin-top: 18px; list-style: none; }
.related a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 18px 20px 20px;
  text-decoration: none;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.related a:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--line); }
.related .d { font-size: 30px; }
.related p { font-size: 16px; line-height: 1.45; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .related { grid-template-columns: repeat(3, 1fr); } .related.four { grid-template-columns: repeat(4, 1fr); } }

/* Footer guide list: ".foot" in front so it wins over ".foot nav ul" */
.foot-guides { display: grid; gap: 8px; }
.foot .foot-guides ul { display: grid; gap: 0 26px; justify-content: start; }
.foot .foot-guides a { padding: 8px 0; }
.foot-guides a[aria-current] { text-decoration-color: var(--sun); }
@media (min-width: 640px) { .foot .foot-guides ul { grid-template-columns: repeat(2, max-content); } }
@media (min-width: 800px) {
  .foot-guides { grid-column: 1 / -1; }
  .foot .foot-guides ul { grid-template-columns: repeat(3, max-content); }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .eyes.live b::before, .eyes.live b::after { animation: none; }
  .pop, .related a { transition: none; }
  .pop:hover, .pop:active, .related a:hover { transform: none; }
}
