/* Layout: a deep court-green opening band ruled with white court lines, then chalk-white sections; the ball is the only bright thing on the page. */
:root {
  --court: #1E4636;        /* hard-court green, hero + accents */
  --court-deep: #163729;
  --line: #F4F6EE;         /* court-line white, used on green */
  --ball: #D6E04A;         /* optic yellow, used sparingly */
  --ball-shade: #B9C436;
  --bg: #F6F7F2;           /* chalk white with a green bias */
  --surface: #ECEFE5;
  --fg: #15251D;
  --muted: #56645C;
  --rule: #D3D9CC;
  --ink: #1E4636;          /* print ink on the balls */
  --focus: #2F7A5A;
  --accent-text: #1E4636;
  --btn-bg: #1E4636; --btn-fg: #F4F6EE; --btn-hover: #163729;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --radius-sm: 4px;  /* buttons, inputs, tags, thumbnails */
  --radius-lg: 8px;  /* cards, panels, main images */
  --display-opsz: "opsz" 14; /* fixed Bodoni optical size: sturdier thin strokes than the automatic display cut */
  --mono: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif; /* labels and small meta text: was DM Mono */

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 7vw, 4.6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --court: #173829; --court-deep: #102A1F; --line: #E9EEE2;
    --ball: #D6E04A; --ball-shade: #AEB833;
    --bg: #0F1914; --surface: #17241D; --fg: #E8EDE3; --muted: #9AA89F;
    --rule: #2A3A31; --ink: #1E4636; --focus: #8FD3AF; --accent-text: #B5DEC6; --btn-bg: #D6E04A; --btn-fg: #15251D; --btn-hover: #AEB833;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --court: #173829; --court-deep: #102A1F; --line: #E9EEE2;
  --ball: #D6E04A; --ball-shade: #AEB833;
  --bg: #0F1914; --surface: #17241D; --fg: #E8EDE3; --muted: #9AA89F;
  --rule: #2A3A31; --ink: #1E4636; --focus: #8FD3AF; --accent-text: #B5DEC6; --btn-bg: #D6E04A; --btn-fg: #15251D; --btn-hover: #AEB833;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom of the window on short pages. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
svg text[font-family^="Bodoni"] { font-variation-settings: var(--display-opsz); }
h1, h2, h3 { font-family: var(--display); font-variation-settings: var(--display-opsz); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- Buttons ---------- */
.reserve {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  text-align: center;
  background: var(--ball); color: #15251D;
  font-family: var(--body); font-weight: 500; font-size: .88rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, background .15s ease;
}
.reserve:hover { background: var(--ball-shade); }
.reserve svg { width: 18px; height: 18px; }
.reserve--court { background: var(--btn-bg); color: var(--btn-fg); }
.reserve--court:hover { background: var(--btn-hover); }
.cta-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  background: var(--court);
  color: var(--line);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
  padding-block: 4.5rem 5rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-variation-settings: var(--display-opsz); font-size: 1.75rem;
  margin-bottom: 3rem;
}
.brand svg { width: 26px; height: 26px; }
/* The black logo, turned white for the green header and footer. */
.brand-logo { height: 46px; width: auto; display: block; filter: brightness(0) invert(1); }
footer .brand-logo { height: 40px; }
footer .brand { font-size: 1.55rem; }
.hero .label { color: var(--ball); }
.hero h1 { font-size: var(--step-4); margin: 1rem 0 1.25rem; }
.hero .lede { font-size: var(--step-1); max-width: 30ch; opacity: .92; }
/* Hero price: founding price on one line, what's included beneath */
.price-block { margin: 2rem 0 1.6rem; }
.price-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem;
  font-family: var(--mono); font-size: .95rem;
}
.price-label { font-weight: 600; }
.price-sub { margin-top: .35rem; font-family: var(--mono); font-size: .95rem; opacity: .85; }
/* Hero purchase area: price, full-width Reserve button and note stacked between two
   thin rules, so they read as one unit. The button sits under the price (not beside it)
   so "Reserve with £5 deposit" stays on one line at every width. */
.hero .buy {
  margin-top: 2rem; max-width: 28rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(244,246,238,.22); border-bottom: 1px solid rgba(244,246,238,.22);
}
/* "Limited to 100 tubes": small ball-yellow caps just inside the top rule (no rule of its own) */
.hero .buy .limit-line {
  margin: 0 0 1rem;
  color: var(--ball); font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero .buy .price-block { margin: 0; }
.hero .buy .price-sub { margin-top: .15rem; white-space: nowrap; }
.hero .buy .reserve { display: flex; width: 100%; margin-top: 1.1rem; white-space: nowrap; }
.hero .buy .reserve-note { margin: 1rem 0 0; font-size: .85rem; }
.price-line strong { font-family: var(--display); font-variation-settings: var(--display-opsz); font-weight: 400; font-size: 2.2rem; color: var(--ball); }
.hero .cta-note { color: var(--line); opacity: .75; margin-top: .9rem; }

/* Hero product photo: name-tube.jpg with its backdrop made transparent (shadow kept),
   so it sits on the hero green in light and dark mode. */
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; }
@media (max-width: 860px) { .hero-photo img { max-width: 420px; } }

/* ---------- Sections ---------- */
section.block { padding-block: 5rem; }
section.block + section.block { border-top: 1px solid var(--rule); }
.section-head { max-width: 38rem; margin-bottom: 2.75rem; display: grid; gap: .8rem; }
.section-head .label { color: var(--muted); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Steps: a real sequence, so they are numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; gap: .6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--accent-text); }
.steps .when { font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .08em; color: var(--accent-text); text-transform: uppercase; }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); }

/* Occasions */
/* "Who it's for": full-width court photo with the text on the left */
.court-feature { position: relative; min-height: clamp(420px, 46vw, 660px); display: flex; align-items: center; overflow: hidden; color: var(--line); }
.court-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.court-feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,38,26,.62) 0%, rgba(14,38,26,.35) 38%, rgba(14,38,26,0) 62%); }
.court-feature-copy { position: relative; z-index: 2; display: grid; gap: .8rem; width: 100%; }
.court-feature-copy h2 { font-size: var(--step-3); max-width: 14ch; }
.court-feature-copy p { font-size: var(--step-1); max-width: 24ch; opacity: .92; }
.court-feature + section.block { border-top: 0; }

/* Founding offer */
.offer { background: var(--surface); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.call { font-family: var(--display); font-variation-settings: var(--display-opsz); font-size: var(--step-3); line-height: 1.1; }
.call em { font-style: normal; color: var(--accent-text); }
.offer-copy { display: grid; gap: 1.25rem; }
.offer-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.perks { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .8rem; }
.perks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: .8rem; align-items: start; }
.perks li::before { content: ""; box-sizing: border-box; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--ball); border: 1.5px solid var(--court); } /* a border and whole-pixel offset keep the ring concentric in every browser */
/* Founding price: the usual £20, struck through beside the £15. */
.perks s { font-weight: 400; color: var(--muted); text-decoration-thickness: 1px; margin: 0 .15em 0 .35em; }

.ticket {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid; gap: 1.25rem;
}
.ticket .label { color: var(--muted); }
/* Founding price box: a payment schedule (today / launch day / total) */
.sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sum td { padding: .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.sum td:last-child { text-align: right; font-family: var(--mono); }
.sum .when { display: block; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.sum tr.total td { border-bottom: 0; padding-top: 1rem; font-weight: 600; }
.sum tr.total td:last-child { font-family: var(--display); font-variation-settings: var(--display-opsz); font-weight: 400; font-size: 1.9rem; color: var(--accent-text); }
.sum .small { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }

.batch { display: grid; gap: .6rem; }
.batch p { font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.2rem 0; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--muted); max-width: 40rem; }


/* Footer */
footer { background: var(--court-deep); color: var(--line); }
footer .footer-main { padding-block: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; font-size: .9rem; }
footer .brand { margin: 0 0 .4rem; }
footer p { opacity: .78; }
.footer-brand p { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; row-gap: .4rem; font-size: .85rem; }
.footer-links a { color: inherit; text-decoration: none; opacity: .78; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a + a::before { content: "\00B7"; display: inline-block; padding-inline: .7rem; opacity: .6; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(244,246,238,.14); padding: 1rem 16px; text-align: center; font-size: .8rem; }
.placeholder { background: rgba(214,224,74,.18); border-radius: var(--radius-sm); padding: 0 .3em; }

/* Terms and Privacy pages */
.legal { display: grid; gap: 1rem; justify-items: start; }
.legal > * { max-width: 40rem; }
.legal > .label { color: var(--muted); }
.legal h1 { font-size: var(--step-4); }
.legal h2 { font-size: var(--step-2); margin-top: 1.25rem; }
.legal p { color: var(--fg); }
.legal a { color: var(--accent-text); overflow-wrap: anywhere; }
.legal-updated { color: var(--muted); font-size: .95rem; }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .45rem; }
.legal li { color: var(--fg); }
.legal-draft { color: var(--muted) !important; font-size: .95rem; padding: .8rem 1rem; border: 1px dashed var(--rule); border-radius: var(--radius-sm); }
/* Contact page */
.contact { display: grid; gap: 1.25rem; justify-items: start; }
.contact > * { max-width: 40rem; }
.contact > .label { color: var(--muted); }
.contact h1 { font-size: var(--step-4); }
.contact-lede { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.contact-email { margin-top: 1rem; font-size: var(--step-1); font-weight: 500; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration-color: var(--ball-shade); }
.contact-note { margin-top: 2rem; width: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: .6rem; }
.contact-note .label { color: var(--muted); }
.contact-note p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 2.5rem 3.5rem; }
  .brand { margin-bottom: 2rem; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  footer .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-brand p { white-space: normal; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section.block { padding-block: 3.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .court-feature { min-height: 560px; align-items: flex-end; }
  .court-feature img { object-position: 78% 50%; }
  .court-feature::before { background: linear-gradient(0deg, rgba(14,38,26,.75) 0%, rgba(14,38,26,.3) 45%, rgba(14,38,26,0) 70%); }
  .court-feature-copy { padding-bottom: 2.5rem; }
  .reserve { width: 100%; justify-content: center; }
  .footer-links { column-gap: 1.25rem; row-gap: .6rem; }
  .footer-links a + a::before { content: none; }
}

/* ---------- Themes (grid on desktop, swipe carousel on phones) ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 2rem;
  list-style: none; margin: 0; padding: 0;
}
/* No frame: each card is the image, the title and a one-line description. Hover only changes the image. */
.theme-card {
  position: relative;
  display: grid; gap: .75rem; align-content: start;
}
.theme-card .art { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; background: var(--court); border-radius: var(--radius-lg); }
.theme-card .art svg { width: 74%; height: auto; }
.theme-card h3 { font-size: 1.45rem; }
.theme-card h3 a { text-decoration: none; }
.theme-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); } /* whole card clickable */
.theme-card p { color: var(--muted); font-size: .95rem; margin-top: -.45rem; }
.theme-card .meta { white-space: nowrap; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: .4rem; border-top: 1px dashed var(--rule); }
.theme-card .meta span:last-child { color: var(--accent-text); }
@media (max-width: 860px) {
  /* Phones and tablets: a 2-column grid (sideways swipes are kept for each card's own gallery). */
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .9rem; }
  .theme-card { gap: .5rem; }
  .theme-card h3 { font-size: 1.15rem; }
  .theme-card p { font-size: .85rem; margin-top: -.3rem; line-height: 1.4; }
}

/* ---------- Theme card galleries (home page) ---------- */
.card-gallery {
  position: relative; z-index: 1;                 /* above the card's full-size link, so arrows and swipes work */
  aspect-ratio: 1; max-width: 100%; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--court);
  cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.cg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .45s ease; }
.cg-img.is-active { opacity: 1; }
.cg-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  /* Bare white chevrons with a soft shadow (readable on dark and bright photos); 32 px click area. */
  width: 32px; height: 32px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: none; color: #fff;
  opacity: 0; transition: opacity .2s ease;
}
.cg-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) drop-shadow(0 0 6px rgba(0,0,0,.25)); }
.cg-prev { left: 0; }
.cg-next { right: 0; }
.theme-card.is-hover .cg-arrow, .card-gallery:focus-within .cg-arrow { opacity: 1; }
.cg-arrow:focus-visible { opacity: 1; outline: 2px solid var(--focus); outline-offset: 2px; }

/* Progress bar under the image: a segment slides along as you move through the gallery. */
/* Phones and tablets only: a segment in a full-width track. Not shown on desktop. */
.cg-bar { display: none; height: 2px; margin-top: calc(-.75rem + 4px); position: relative; overflow: hidden; background: var(--rule); }
.cg-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fg); transition: transform .35s ease; }

/* Phones and tablets (the 2-column layout, or any touch screen): bar shown, 3 px under the image. */
@media (max-width: 860px), (hover: none), (pointer: coarse) {
  .cg-bar { display: block; margin-top: calc(-.5rem + 3px); }
  .theme-card h3 { margin-top: -.2rem; }   /* the bar already adds a little space under the image */
}
/* Touch screens: no arrows (swipe instead). */
@media (hover: none), (pointer: coarse) {
  .cg-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-img, .cg-bar span { transition: none; }
}

.reserve-note { font-size: .95rem; color: var(--muted); }
.reserve-note strong { color: var(--fg); }
.hero .reserve-note, .hero .reserve-note strong { color: var(--line); }
.hero .reserve-note { opacity: .85; margin-top: .9rem; }

/* ---------- Design pages ---------- */
.topbar { background: var(--court); color: var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.topbar .brand { margin: 0; text-decoration: none; }
.crumbs-bar { border-bottom: 1px solid var(--rule); }
.crumbs-bar .crumbs { padding-block: .85rem; }
.crumbs { font-family: var(--mono); font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumb-sep { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; flex: none; }
.crumbs [aria-current="page"] { color: var(--fg); }
.crumbs a:hover { text-decoration: underline; }
.design-head { display: grid; gap: 1rem; max-width: 40rem; margin: 1.25rem 0 2.5rem; }
.design-head h1 { font-size: var(--step-4); }
.design-head p { color: var(--muted); font-size: 1.1rem; }
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.preview-stage { background: var(--court); border-radius: var(--radius-lg); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; }
.preview-stage svg { width: 62%; height: auto; }
.customiser {
  border: 2px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid; gap: 1rem;
}
.customiser h2 { font-size: var(--step-2); }
.customiser p, .customiser li { color: var(--muted); }
.customiser ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.order-box { display: grid; gap: 1rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); }
.order-box .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.order-box .price strong { font-family: var(--display); font-variation-settings: var(--display-opsz); font-weight: 400; font-size: 2rem; color: var(--accent-text); }
.other-themes { display: flex; flex-wrap: wrap; gap: .6rem; }
.other-themes a { text-decoration: none; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .55rem 1rem; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.other-themes a:hover { border-color: var(--accent-text); }
@media (max-width: 860px) {
  .design-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Live customiser (theme pages) ---------- */
.preview-col { margin: 0; display: grid; gap: .9rem; }
.preview-stage svg#name-ball { width: 86%; }
.print-guide { stroke: #1E4636; stroke-width: .45; stroke-dasharray: 2 1.6; opacity: .55; }
.preview-notes { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.preview-notes span:first-child { font-family: var(--mono); font-size: .8rem; color: var(--fg); }
.customiser--live { border: 1px solid var(--rule); gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field-head label { font-weight: 600; }
.count { font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field input[type="text"] {
  width: 100%; font: inherit; font-size: 1.15rem;
  padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--rule); background: var(--bg); color: var(--fg);
}
.field input[type="text"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field input.is-upper { text-transform: uppercase; }
.field input.is-upper::placeholder { text-transform: none; }
.field input[aria-invalid="true"] { border-color: var(--error); }
/* Always one line tall, so messages appearing never move the controls below. */
.field-msg { font-size: .88rem; line-height: 1.6; color: var(--muted); height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root { --error: #B4442F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --error: #F0927E; } }
:root[data-theme="dark"] { --error: #F0927E; }
.field-msg.is-error { color: var(--error); }
.font-options { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.font-options legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.font-option { position: relative; display: grid; place-items: center; min-height: 3rem; text-align: center; padding: .35rem .5rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg); min-width: 0; }
.font-option input { position: absolute; opacity: 0; pointer-events: none; }
.font-option:has(input:checked) { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.font-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.font-option .sample { font-size: 1.5rem; line-height: 1.2; max-width: 100%; white-space: nowrap; }
.font-option .sample[data-font="imperial"] { font-family: "Imperial Script", cursive; font-size: 1.9rem; }
.font-option .sample[data-font="montserrat"] { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.font-option .sample[data-font="zendots"] { font-family: "Zen Dots", sans-serif; font-size: 1.05rem; }
/* Zodiac Style picker: the sign's symbol in each style above the style name */
.style-option { gap: .3rem; padding-block: .6rem .5rem; }
.style-option .style-glyph { width: 1.9rem; height: 1.9rem; fill: currentColor; }
/* Monogram: Crest band on/off switch (label left, switch right) */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.switch-row .switch-label { font-weight: 600; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch { position: relative; flex: none; width: 2.75rem; height: 1.5rem; border-radius: 999px; background: var(--rule); transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s ease; }
.switch-row input:checked + .switch { background: var(--accent-text); }
.switch-row input:checked + .switch::after { transform: translateX(1.25rem); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
/* Personal logo: image upload, Darkness slider, Invert switch */
.field-head .field-label { font-weight: 600; }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.upload-btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border: 1px solid var(--accent-text); border-radius: var(--radius-sm); background: var(--bg); color: var(--accent-text); font-weight: 600; cursor: pointer; }
.upload-btn:hover { box-shadow: inset 0 0 0 1px var(--accent-text); }
.upload-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.upload-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.upload-btn:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* "i" button next to "Your image" and the small panel it opens */
.label-with-info { display: inline-flex; align-items: center; gap: .4rem; }
.info-btn { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: -.2rem 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.info-btn svg { width: 1.1rem; height: 1.1rem; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--accent-text); background: var(--surface); }
.info-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.info-panel-pop { display: grid; gap: .3rem; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); animation: chip-in .2s ease; }
.customiser .info-panel-pop p { font-size: .85rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .info-panel-pop { animation: none; } }
.upload-file { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .5rem .6rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); }
.upload-file img { flex: none; width: 2.75rem; height: 2.75rem; object-fit: contain; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.upload-name { flex: 1; min-width: 0; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customiser .field-hint { font-size: .88rem; }
.image-controls { display: grid; gap: 1.4rem; }
/* Personal logo messages can be long, so they wrap, and take no space when empty.
   (The "nothing would print" message sits under the slider, so it never moves the slider.) */
#image-msg, #darkness-msg { height: auto; white-space: normal; }
#image-msg:empty, #darkness-msg:empty { display: none; }
/* Small pill buttons (Darkness "Auto", "Remove" image): quiet until hovered. Fits inside the label's line, so appearing never moves the slider. */
.image-controls .field-head { min-height: 1.6rem; align-items: center; }
.chip-btn { display: inline-flex; align-items: center; gap: .35rem; height: 1.6rem; padding: 0 .7rem 0 .55rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .04em; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; animation: chip-in .2s ease; }
.chip-btn svg { width: .85rem; height: .85rem; flex: none; transition: transform .3s ease; }
.chip-btn:hover { color: var(--accent-text); border-color: var(--accent-text); }
#darkness-reset:hover svg { transform: scale(1.15) rotate(15deg); }
.upload-actions { flex: none; display: flex; gap: .4rem; }
/* Phones: the name gets its own line, with Replace and Remove underneath it (beside the thumbnail). */
@media (max-width: 520px) {
  .upload-file { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; row-gap: .35rem; align-items: center; }
  .upload-file img { grid-row: span 2; }
  .upload-actions { justify-self: start; }
}
#image-replace:hover svg { transform: rotate(180deg); }
.chip-btn--remove { flex: none; }
.chip-btn--remove:hover { color: var(--error); border-color: var(--error); }
.chip-btn--remove:hover svg { transform: rotate(90deg); }
.chip-btn:active { background: var(--bg); }
.chip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chip-btn, .chip-btn svg { animation: none; transition: none; } }
.field input[type="range"] { width: 100%; margin: .2rem 0 0; accent-color: var(--accent-text); cursor: pointer; }
.field input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.range-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
/* Zodiac: sign picker, birthday finder, text options */
.customiser--live [hidden] { display: none !important; }
.sign-picker { border: 0; margin: 0; padding: 0; display: grid; gap: .7rem; min-width: 0; }
.sign-picker legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.sign-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.sign-option { position: relative; display: grid; justify-items: center; gap: .35rem; padding: .65rem .2rem .55rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; min-width: 0; text-align: center; }
.sign-option input { position: absolute; opacity: 0; pointer-events: none; }
.sign-option svg { width: 1.55rem; height: 1.55rem; fill: currentColor; }
.sign-option span { font-size: .78rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sign-option:hover { border-color: var(--muted); }
.sign-option:has(input:checked) { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); color: var(--accent-text); }
.sign-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.customiser .sign-dates { font-family: var(--mono); font-size: .8rem; }
.sign-finder summary { cursor: pointer; width: fit-content; font-size: .9rem; color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; list-style: none; display: flex; align-items: baseline; gap: .45rem; }
.sign-finder summary::-webkit-details-marker { display: none; }
/* Chevron that turns as the finder opens and closes (in step with accordion.js). */
.sign-finder summary::before { content: ""; flex: none; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.1rem) rotate(-45deg); transition: transform .35s ease; }
.sign-finder[open] summary::before { transform: translateY(-.2rem) rotate(45deg); }
.sign-finder.is-closing summary::before { transform: translateY(-.1rem) rotate(-45deg); }
.sign-finder summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sign-finder-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .8rem; }
.sign-finder-row label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.sign-finder select { font: inherit; font-size: 1rem; padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); }
.sign-finder select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.customiser .finder-msg { font-size: .88rem; margin-top: .6rem; }
.customiser .finder-msg:empty { display: none; }
.text-options .font-option span { font-size: .92rem; font-weight: 500; }
@media (max-width: 420px) {
  .sign-grid { gap: .4rem; }
  .sign-option { padding-inline: .1rem; }
  .sign-option span { font-size: .7rem; letter-spacing: -.01em; }
}
.toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; }
.toggle input { width: 1.05rem; height: 1.05rem; accent-color: var(--court); }
.spec { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px dashed var(--rule); display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.spec li::before { content: "·"; margin-right: .5rem; color: var(--accent-text); }
@media (max-width: 620px) {
}

/* ---------- Product page: gallery + options ---------- */
section.product-block { padding-top: 2.5rem; } /* sits under the breadcrumb strip */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "gallery head" "gallery form";
  grid-template-rows: auto 1fr;
  column-gap: 3.5rem; row-gap: 1.75rem;
  align-items: start;
}
.product-head { grid-area: head; display: grid; gap: .9rem; }
.product-head h1 { font-size: var(--step-4); }
.product-head p { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.product-head .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.product-head .price strong { font-family: var(--display); font-variation-settings: var(--display-opsz); font-weight: 400; font-size: 2rem; color: var(--accent-text); }
.product-head .price .price-label { color: var(--fg); }
.product-head .price-sub { margin-top: .3rem; font-size: .9rem; color: var(--muted); opacity: 1; }
.product-form { grid-area: form; display: grid; gap: 1.5rem; }
.product-form .order-box { margin-top: 0; }

.gallery { grid-area: gallery; display: grid; gap: .9rem; min-width: 0; }
/* Desktop: the gallery stays in view while the options and details beside it scroll past.
   Only when the window is tall enough to show the whole gallery (photo + thumbnails). */
@media (min-width: 861px) and (min-height: 720px) {
  .gallery { position: sticky; top: 1.5rem; }
}
.gallery-main {
  position: relative; aspect-ratio: 1; max-width: 100%;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--court);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.gallery-main:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide--design svg { width: 84%; height: auto; }
.slide-tag { /* "Your design": plain bold text like the Front / Back labels, a little larger as the slide's title */
  position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(244, 246, 238, .8); white-space: nowrap;
}
.chip-toggle {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  font-size: .82rem; color: var(--line); background: rgba(16, 42, 31, .55); padding: .35rem .75rem .35rem .55rem; border-radius: 999px;
}
button.chip-toggle { border: 0; font: inherit; font-size: .82rem; }
.chip-toggle .eye { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-toggle .eye--shut { display: none; }
.chip-toggle[aria-pressed="false"] .eye--open { display: none; }
.chip-toggle[aria-pressed="false"] .eye--shut { display: block; }
.chip-toggle:focus-visible { outline: 2px solid #D6E04A; outline-offset: 2px; }

.ph { display: grid; justify-items: center; gap: .4rem; text-align: center; color: var(--line); padding: 1rem; }
.ph-icon { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; }
.ph strong { font-family: var(--display); font-variation-settings: var(--display-opsz); font-weight: 400; font-size: 1.5rem; }
.ph > span { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.slide:not(.slide--design) { background: repeating-linear-gradient(135deg, rgba(244,246,238,.04) 0 12px, transparent 12px 24px); }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(246, 247, 242, .92); color: #15251D;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: background .15s ease, transform .15s ease;
}
.gallery-arrow:hover { background: #fff; }
.gallery-arrow:active { transform: translateY(-50%) scale(.95); }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow--prev { left: .9rem; }
.gallery-arrow--next { right: .9rem; }

.thumbs {
  display: flex; gap: .6rem; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: 0 0 84px; aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--court); color: var(--line); opacity: .7;
  transition: opacity .2s ease, outline-color .2s ease;
  outline: 2px solid transparent; outline-offset: 2px;
}
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; outline-color: var(--accent-text); }
.thumb > svg, .thumb > img { width: 100%; height: 100%; display: block; }
.thumb > img { object-fit: cover; }
.thumb-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 2px; background: #163729; line-height: 1.2; font-family: var(--mono); font-weight: 500; font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--line); }
.ph--thumb { gap: .15rem; padding: .3rem; height: 100%; align-content: center; }
.ph--thumb .ph-icon { width: 22px; height: 22px; }
.ph--thumb > span { font-size: .55rem; letter-spacing: .04em; line-height: 1.2; }

.gallery-dots { display: none; justify-content: center; gap: .5rem; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent-text); transition: background .2s ease; }
.gallery-dots span.is-active { background: var(--accent-text); }

.gallery-caption { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.gallery-caption span:first-child { font-family: var(--mono); font-size: .8rem; color: var(--fg); }

.info-panels { border-top: 1px solid var(--rule); }
.info-panel { border-bottom: 1px solid var(--rule); }
.info-panel summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.02rem;
}
.info-panel summary::-webkit-details-marker { display: none; }
.info-panel summary::after { content: "+"; display: inline-block; font-family: var(--mono); font-weight: 400; color: var(--muted); transition: transform .35s ease; }
.info-panel[open] summary::after { transform: rotate(45deg); }
.info-panel.is-closing summary::after { transform: none; }
/* Panel contents are indented so the panel titles stand alone on the left edge. Labels are bold and
   in the main text colour; each label sits close to its answer, with more space between items. */
.info-panel .details { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; padding: 0 0 1.4rem 1.25rem; }
.info-panel .details div { padding-top: 0; border-top: 0; gap: .15rem; }
.info-panel .details dt { font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--fg); }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.details div { display: grid; gap: .25rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.details dt { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 0; }

@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "gallery" "form"; grid-template-rows: auto; row-gap: 1.25rem; }
  .gallery-arrow, .thumbs { display: none; }
  .gallery-dots { display: flex; }
  .slide { opacity: 1; transition: none; transform: translateX(100%); }
  .slide.is-active { transform: none; transition: none; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .product-head h1 { font-size: 2.6rem; }
  .font-option .sample[data-font="montserrat"] { font-size: .98rem; }
  .font-option .sample[data-font="zendots"] { font-size: .92rem; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .info-panel .details { padding-left: 1rem; }
  .slide-tag { top: .9rem; font-size: .78rem; }   /* the ball sits closer to the top on small screens */
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

/* ---------- Ready to play: phrase picker and playful fonts ---------- */
.phrase-picker { border: 0; margin: 0; padding: 0; display: grid; gap: .7rem; min-width: 0; }
.phrase-picker legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
/* Phrase list: one calm row per phrase, divided by hairlines. */
.phrase-list { display: grid; border-top: 1px solid var(--rule); }
.phrase-row { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 3rem; padding: .7rem .15rem; border-bottom: 1px solid var(--rule); cursor: pointer; transition: color .15s ease; }
.phrase-row input { position: absolute; opacity: 0; pointer-events: none; }
/* Whole-pixel sizes (18 px ring, 2 px border, 8 px dot) so the dot sits exactly centred at any zoom. */
.phrase-dot { flex: none; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; transition: border-color .15s ease; }
.phrase-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); transform: scale(0); transition: transform .15s ease; }
.phrase-text { min-width: 0; font-size: 1rem; color: var(--muted); transition: color .15s ease; }
.phrase-row:hover .phrase-text { color: var(--fg); }
.phrase-row:has(input:checked) .phrase-dot { border-color: var(--accent-text); }
.phrase-row:has(input:checked) .phrase-dot::after { transform: scale(1); }
.phrase-row:has(input:checked) .phrase-text { color: var(--fg); font-weight: 600; }
.phrase-row:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Only for long collections: fixed height (about 5.5 rows) with a soft fade at the bottom. */
.phrase-list.is-scrolling { max-height: 16.5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent); }

.font-option .sample[data-font="marker"] { font-family: "Permanent Marker", cursive; }
.font-option .sample[data-font="comic"] { font-family: "Luckiest Guy", cursive; letter-spacing: .02em; }
.font-option .sample[data-font="friendly"] { font-family: "Fredoka", sans-serif; font-weight: 700; }
.font-option .sample[data-font="deco"] { font-family: "Righteous", sans-serif; }
.font-option .sample[data-font="swagger"] { font-family: "Kavoon", cursive; }
.font-option .sample[data-font="poster"] { font-family: "Alfa Slab One", serif; }
.font-option .sample[data-font="marker"], .font-option .sample[data-font="comic"], .font-option .sample[data-font="friendly"],
.font-option .sample[data-font="deco"], .font-option .sample[data-font="swagger"], .font-option .sample[data-font="poster"] { font-size: 1.15rem; text-transform: uppercase; }
@media (max-width: 620px) {
  .font-option .sample[data-font="marker"], .font-option .sample[data-font="comic"], .font-option .sample[data-font="friendly"],
  .font-option .sample[data-font="deco"], .font-option .sample[data-font="swagger"], .font-option .sample[data-font="poster"] { font-size: 1rem; }
}

/* ---------- Home: theme groups ("Personalised" / "Ready to play") ---------- */
.theme-group + .theme-group { margin-top: 3.5rem; }
.theme-group-head { display: grid; gap: .35rem; margin-bottom: 1.5rem; max-width: 38rem; }
.theme-group-head h3 { font-size: var(--step-2); }
.theme-group-head p { color: var(--muted); }
