/* Self-hosted so the booth works with no signal, and subset to the glyphs the
   app can actually render (see tools/subset-fonts.py). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-300-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jost-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/jost-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Julius Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/julius-sans-one-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Your Mayja Match — Mayja Skin × Afro+ Fest
   Tokens
   ============================================================ */
:root {
  /* The brand commits to one visual world — black and gold, no light mode.
     Declared so form controls and scrollbars follow rather than render light. */
  color-scheme: dark;

  --bg: #0c0906;
  --bg-2: #241708;
  --panel: #120d07;
  --panel-2: #15100a;
  --panel-3: #0e0a06;
  --panel-4: #1c130a;
  --ink: #f3e9d2;
  --ink-bright: #fdf6e4;
  --muted: #cbbb99;
  --dim: #a08b63;
  --faint: #8a795b;

  --gold: #e6c987;
  --gold-lt: #f7e3ae;
  --gold-mid: #f0d48a;
  --gold-dk: #c99b3f;
  --gold-ink: #1a1206;
  --gold-rgb: 216, 178, 92;
  --gold-lt-rgb: 230, 201, 135;
  --gold-grad: linear-gradient(120deg, #f0d48a, #c99b3f);

  --violet: #b18cff;
  --violet-lt: #c9aef5;
  --violet-rgb: 138, 92, 240;
  --cyan: #62d9ff;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Julius Sans One', 'Optima', 'Gill Sans', var(--sans);

  --masthead-h: 77px;

  --shell: 860px;
  --gutter: 18px;
  --nav-h: 118px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a,
a:visited { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

input { outline: none; font: inherit; }

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ============================================================
   Motion
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes glowPulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* Scroll-reveal. Elements rest VISIBLE — the observer only hides the ones that
   start below the fold — so the first painted frame is already complete and
   nothing is stranded blank if scripting or the observer never runs. */
[data-anim] {
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
[data-anim].is-out {
  opacity: 0;
  transform: scale(.94) translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-anim].is-out { opacity: 1; transform: none; }
}

/* ============================================================
   Shell
   ============================================================ */
.app {
  font-family: var(--sans);
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(140% 60% at 50% -10%, var(--bg-2) 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--ink);
  padding-bottom: var(--nav-h);
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.screen { animation: fadeUp .45s ease both; }
.screen--home { animation-duration: .5s; }
.screen--sub { padding-top: 30px; }

/* ============================================================
   Header
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 2px 10px;
  background: rgba(12, 9, 6, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--gold-rgb), .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 0;
}

.brand__logo {
  height: 54px;
  width: auto;
}

.fest-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .26em;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.fest-tag--glow {
  color: var(--violet);
  text-shadow: 0 0 14px rgba(var(--violet-rgb), .8);
  border: 1px solid rgba(var(--violet-rgb), .45);
}
.fest-tag--quiet {
  color: var(--dim);
  border: 1px solid rgba(var(--gold-rgb), .35);
}

/* HER / HIM */
.gender-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(var(--gold-rgb), .35);
  border-radius: 999px;
  background: var(--panel);
}

.gender-switch button {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  background: transparent;
  color: var(--dim);
  transition: background .2s ease, color .2s ease, transform .1s ease;
}
.gender-switch button[aria-pressed='true'] {
  background: var(--gold-grad);
  color: var(--gold-ink);
}
.gender-switch button:active { transform: scale(.95); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding: 22px 6px 18px;
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: -20px 10% auto;
  height: 140px;
  background:
    radial-gradient(50% 100% at 30% 0%, rgba(var(--violet-rgb), .22), transparent 70%),
    radial-gradient(50% 100% at 75% 10%, rgba(62, 201, 240, .14), transparent 70%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

.eyebrow {
  position: relative;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .38em;
  color: var(--dim);
  margin-bottom: 10px;
}

.lockup {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

/* "Your" and "Match" share one setting so they cannot drift apart — they read
   as a matched pair bracketing the MAYJA wordmark, which keeps the logo face. */
.lockup__word {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(22px, 4.4vw, 30px);
  line-height: 1;
  letter-spacing: normal;
  color: var(--ink);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(30px, 7.4vw, 48px);
  line-height: 1;
  letter-spacing: .1em;
  background: linear-gradient(100deg, #f7e3ae 20%, #c99b3f 50%, #f7e3ae 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero__sub {
  position: relative;
  margin: 12px auto 0;
  max-width: 400px;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
}
.hero__sub em { color: var(--gold); }

/* ============================================================
   Option cards
   ============================================================ */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.option {
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(155deg, var(--panel-4), #100b06);
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
/* Decorative corner glow. Positioned pseudo-elements paint above in-flow text,
   so it and the card content each get an explicit layer. */
.option::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .18), transparent 70%);
  z-index: 0;
}
.option > * { position: relative; z-index: 1; }
.option--quiz {
  background: linear-gradient(155deg, #17101f, #100b06);
}
.option--quiz::after {
  background: radial-gradient(circle, rgba(var(--violet-rgb), .22), transparent 70%);
}
.option:hover { border-color: rgba(var(--gold-lt-rgb), .7); transform: translateY(-3px); }
.option--quiz:hover { border-color: rgba(var(--violet-rgb), .7); }
.option:active { transform: scale(.98); }

.kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--dim);
}

.option__title {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-lt);
}

.option__blurb {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}

.option__cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--gold);
}
.option__cta span { font-size: 15px; }
.option--quiz .option__cta { color: var(--violet-lt); }

/* ============================================================
   Family strip
   ============================================================ */
.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.strip-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.link-btn {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 0;
}

.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.strip::-webkit-scrollbar { display: none; }

.strip-card {
  cursor: pointer;
  flex: 0 0 auto;
  width: 132px;
  border: 1px solid rgba(var(--gold-rgb), .22);
  border-radius: 16px;
  padding: 16px 12px;
  background: var(--panel);
  text-align: center;
  scroll-snap-align: start;
  transition: border-color .25s ease, transform .15s ease;
}
.strip-card:hover { border-color: rgba(var(--gold-lt-rgb), .6); }
.strip-card:active { transform: scale(.97); }

.strip-card__label {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.strip-card__count {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--dim);
}

/* Overlapping colour bubbles with the bottle badge sitting in the overlap */
/* The bottle stands taller than the colour bubbles and breaks out of them top
   and bottom. The container is sized to the bottle, not the bubbles, so the
   overhang is real space and never collides with the label beneath. */
.orbs {
  position: relative;
  display: flex;
  align-items: center;
  /* Hug the bubbles, so the bottle's left:50% is the middle of the Venn
     overlap rather than the middle of whatever card contains it. */
  width: fit-content;
}
.orbs--center {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.orb {
  border-radius: 50%;
  flex: 0 0 auto;
}

.orbs--sm .orb { width: 34px; height: 34px; }
.orbs--sm .orb + .orb { margin-left: -10px; opacity: .9; }

.orbs--md .orb { width: 44px; height: 44px; animation: floaty 4s ease-in-out infinite; }
.orbs--md .orb + .orb { margin-left: -14px; }
.orbs--md .orb:nth-child(2) { animation-delay: .6s; }
.orbs--md .orb:nth-child(3) { animation-delay: 1.2s; opacity: .85; }

.orbs--lg .orb { width: 46px; height: 46px; animation: floaty 5s ease-in-out infinite; }
.orbs--lg .orb + .orb { margin-left: -15px; }
.orbs--lg .orb:nth-child(2) { animation-delay: .7s; }
.orbs--lg .orb:nth-child(3) { animation-delay: 1.4s; opacity: .85; }

.orbs__bottle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .65));
  pointer-events: none;
}

/* Bubbles 34px, bottle 62px — it clears them by 14px at each end. */
.orbs--sm { min-height: 62px; }
.orbs--sm .orbs__bottle { height: 62px; }

/* Bubbles 44px, bottle 80px. */
.orbs--md { min-height: 80px; }
.orbs--md .orbs__bottle { height: 80px; }

/* ============================================================
   Join + Follow row
   ============================================================ */
.duo {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.duo-card {
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(var(--gold-rgb), .28);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(155deg, var(--panel-2), var(--panel-3));
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .25s ease, transform .15s ease;
}
.duo-card:hover { border-color: rgba(var(--gold-lt-rgb), .6); }
.duo-card:active { transform: scale(.98); }

.duo-card--follow {
  background: linear-gradient(155deg, #17101f, var(--panel-3));
}
.duo-card--follow:hover { border-color: rgba(var(--violet-rgb), .6); }

.duo-card__ceo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.duo-card__qr {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fdf6e4;
  flex: 0 0 auto;
}

.duo-card__body {
  flex: 1;
  min-width: 0;
}

.duo-card__eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--dim);
}
.duo-card--follow .duo-card__eyebrow { color: var(--violet); }

.duo-card__title {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-lt);
}
.duo-card--follow .duo-card__title { color: var(--ink); }

.pill-cta {
  flex: 0 0 auto;
  border: 1px solid rgba(var(--gold-lt-rgb), .5);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--gold-ink);
  background: var(--gold-grad);
}

.duo-card__arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--violet-lt);
}

.tagline {
  text-align: center;
  padding: 22px 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--dim);
}

/* ============================================================
   Buttons + inputs
   ============================================================ */
.btn-gold {
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--gold-ink);
  background: var(--gold-grad);
  transition: transform .1s ease;
}
.btn-gold:active { transform: scale(.96); }

.btn-gold--lift { box-shadow: 0 8px 26px rgba(201, 155, 63, .35); }

.btn-ghost {
  border: 1px solid rgba(var(--gold-rgb), .4);
  color: var(--gold);
  border-radius: 999px;
  padding: 15px 24px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  transition: transform .1s ease, background .2s ease;
}
.btn-ghost:hover { background: rgba(var(--gold-lt-rgb), .1); }
.btn-ghost:active { transform: scale(.96); }

.btn-back {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 6px 0;
}
.btn-back:hover { color: var(--gold); }

.btn-close {
  border: 1px solid rgba(var(--gold-rgb), .4);
  color: var(--gold);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-family: var(--sans);
  flex: 0 0 auto;
  transition: transform .1s ease;
}
.btn-close:active { transform: scale(.92); }
.btn-close--sm { width: 32px; height: 32px; font-size: 14px; }

/* ============================================================
   Scan to text — lead capture
   ============================================================ */
.scan {
  display: grid;
  gap: 14px 16px;
  align-items: center;
}

/* In the Join modal the code is the point, so it leads, centred and large
   enough to scan off a tablet held at arm's length. */
.scan--lg {
  justify-items: center;
  text-align: center;
}
.scan--lg .scan__qr { width: 190px; height: 190px; }

/* On the results screen it sits beside the copy — the match is the hero there. */
.scan--sm {
  grid-template-columns: 116px 1fr;
}
.scan--sm .scan__qr { width: 116px; height: 116px; }

.scan__qr {
  border-radius: 12px;
  background: #fff;
  padding: 7px;
  object-fit: contain;
}

/* Two classes, to outrank `.modal p` — the instruction stays body copy in both
   placements so the quoted message is the only italic thing in the block. */
.scan .scan__how {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.scan__how em {
  color: var(--gold-lt);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

.tap-link {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid rgba(var(--gold-lt-rgb), .5);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--gold-mid);
  transition: background .2s ease, transform .1s ease;
}
.tap-link:hover { background: rgba(var(--gold-lt-rgb), .12); color: var(--gold-lt); }
.tap-link:active { transform: scale(.97); }

/* ============================================================
   Sub-screen headings
   ============================================================ */
.screen-title {
  margin: 16px 0 6px;
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 700;
  color: var(--ink);
}
.screen-title--flush { margin: 0 0 4px; font-size: clamp(28px, 7vw, 34px); }

.screen-sub {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}
.screen-sub em { color: var(--gold); }

/* ============================================================
   Search
   ============================================================ */
.search-input {
  width: 100%;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  padding: 17px 20px;
  font-family: var(--sans);
  font-size: 18px;
}
.search-input::placeholder { color: var(--faint); }
.search-input:focus { border-color: rgba(var(--gold-lt-rgb), .8); }

.hit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.hit {
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(var(--gold-rgb), .24);
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--panel);
  transition: border-color .2s ease, background .2s ease, transform .1s ease;
}
.hit:hover { border-color: rgba(var(--gold-lt-rgb), .65); background: #17110a; }
.hit:active { transform: scale(.985); }

.hit__name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.hit__house { display: block; font-size: 13px; color: var(--dim); }
.hit__go {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
  white-space: nowrap;
}

.empty {
  margin-top: 20px;
  text-align: center;
  border: 1px dashed rgba(var(--gold-rgb), .35);
  border-radius: 18px;
  padding: 28px 20px;
}
.empty__title { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.empty p { margin: 8px 0 16px; font-size: 14px; color: var(--dim); }

/* ============================================================
   Quiz
   ============================================================ */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.vibe {
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(var(--gold-rgb), .26);
  border-radius: 18px;
  padding: 20px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.vibe:hover { border-color: rgba(var(--gold-lt-rgb), .7); transform: translateY(-2px); }
.vibe:active { transform: scale(.97); }

.vibe__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vibe .orbs { margin-bottom: 12px; }

.vibe__label {
  display: block;
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
}
.vibe__traits {
  display: block;
  position: relative;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--dim);
}
.vibe .note-tags { position: relative; }

.note-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.note-tags span {
  font-size: 11.5px;
  border: 1px solid rgba(var(--gold-rgb), .28);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  cursor: pointer;
  border: 1px solid rgba(var(--gold-rgb), .3);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .1s ease;
}
.chip[aria-pressed='true'] {
  background: rgba(var(--gold-lt-rgb), .18);
  border-color: rgba(240, 212, 138, .9);
  color: var(--gold-lt);
}
.chip:active { transform: scale(.95); }

.quiz-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.quiz-actions .btn-gold {
  flex: 1;
  padding: 15px 24px;
  font-size: 15px;
  letter-spacing: .1em;
}

/* ============================================================
   Results
   ============================================================ */
.results-head {
  text-align: center;
  margin: 18px 0 24px;
}
.results-head__note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .36em;
  color: var(--dim);
}
.results-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 700;
  color: var(--ink);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack--lg { gap: 16px; }

.match {
  border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: 24px;
  overflow: hidden;
}

.match__inner {
  padding: 24px 24px 22px;
  position: relative;
}

.match__rank {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-lt-rgb), .5);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--gold-mid);
  background: rgba(12, 9, 6, .5);
}

.match__family {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--gold);
}

.match h3 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  color: var(--ink-bright);
  padding-right: 56px;
}

.match__notes {
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.match__mem {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.match__line {
  margin-top: 12px;
  display: inline-block;
  border-left: 2px solid var(--gold-dk);
  padding: 2px 0 2px 12px;
  font-size: 14px;
  color: var(--gold);
}

.match__layer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(var(--gold-rgb), .2);
  padding-top: 14px;
  flex-wrap: wrap;
}
.match__layer dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--dim);
}
.match__layer dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Upsell */
.upsell {
  margin-top: 18px;
  border: 1px solid rgba(var(--gold-rgb), .28);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  background: linear-gradient(155deg, var(--panel-2), var(--panel-3));
}
.upsell img {
  width: 120px;
  height: 100%;
  object-fit: cover;
}
.upsell__body { padding: 18px 20px; }
.upsell__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold);
}
.upsell h3 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.upsell p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.result-actions .btn-ghost { padding: 15px 22px; }
.result-actions .btn-gold {
  flex: 1;
  padding: 15px 22px;
  font-size: 15px;
  letter-spacing: .12em;
}

.save-card {
  margin-top: 22px;
  border: 1px solid rgba(var(--gold-rgb), .24);
  border-radius: 20px;
  padding: 20px 22px;
  background: var(--panel);
}
.save-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-lt);
}
.save-card p {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
}

/* ============================================================
   Families
   ============================================================ */
.family {
  border: 1px solid rgba(var(--gold-rgb), .26);
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.family__blob {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
}
.family__head {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.family__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.family__traits {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--dim);
}
.family .note-tags { margin-top: 12px; position: relative; }
.family .note-tags span {
  font-size: 12px;
  border-color: rgba(var(--gold-rgb), .3);
  padding: 4px 11px;
  background: rgba(12, 9, 6, .4);
}

.scent-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  position: relative;
}
.scent-btn {
  cursor: pointer;
  border: 1px solid rgba(var(--gold-lt-rgb), .4);
  background: rgba(12, 9, 6, .55);
  color: var(--gold-mid);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, transform .1s ease;
}
.scent-btn:hover { background: rgba(var(--gold-lt-rgb), .14); }
.scent-btn:active { transform: scale(.95); }

/* ============================================================
   Staff cheat sheet
   ============================================================ */
.staff-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.staff-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 700;
  color: var(--ink);
}
.staff-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--violet);
  white-space: nowrap;
}

.cheat {
  border: 1px solid rgba(var(--gold-rgb), .24);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}
.cheat__head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(var(--gold-rgb), .18);
}
.cheat__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cheat__label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.cheat__traits {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: .06em;
}
.cheat__row {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(var(--gold-rgb), .1);
}
.cheat__row:last-child { border-bottom: none; }
.cheat__top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cheat__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--gold-mid);
}
.cheat__notes { font-size: 12.5px; color: var(--dim); }
.cheat__mem { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.cheat__say { margin-top: 4px; font-size: 13px; color: var(--gold); }

.quick {
  border: 1px solid rgba(var(--violet-rgb), .35);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(150deg, #17101f, var(--panel));
}
.quick h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--violet-lt);
}
.quick__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: baseline;
}
.quick__want {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-mid);
}
.quick__names { font-size: 14px; color: var(--muted); }

.staff-panel {
  margin-top: 16px;
  border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: 18px;
  padding: 20px;
  background: var(--panel);
}
.staff-panel h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-lt);
}

.formula__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.formula__n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-lt-rgb), .5);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-mid);
}
.formula__t {
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 13px;
  color: var(--gold-mid);
}
.formula__d {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.formula__sign {
  margin-top: 16px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}

.tricks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}
.tricks div {
  border: 1px solid rgba(var(--gold-rgb), .2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
}
.tricks b { color: var(--gold-mid); font-weight: 600; }

/* ============================================================
   Prices
   ============================================================ */
/* Running total, pinned below the sticky masthead while the list scrolls. */
.tally {
  position: sticky;
  top: var(--masthead-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 12px 18px;
  border: 1px solid rgba(var(--gold-lt-rgb), .45);
  border-radius: 16px;
  background: linear-gradient(150deg, #1c130a, #0e0a06);
  box-shadow: 0 10px 26px rgba(6, 4, 2, .55);
}
.tally__count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.tally__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tally__total {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--gold-mid);
  font-variant-numeric: lining-nums tabular-nums;
}
.tally__clear {
  border: 1px solid rgba(var(--gold-rgb), .4);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--dim);
  transition: color .2s ease, border-color .2s ease, transform .1s ease;
}
.tally__clear:hover { color: var(--gold); border-color: rgba(var(--gold-lt-rgb), .6); }
.tally__clear:active { transform: scale(.94); }

.price-card {
  border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: 22px;
  padding: 8px 22px;
  background: var(--panel);
}
.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(var(--gold-rgb), .1);
}
.price-row:last-child { border-bottom: none; }

.price-row__add {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  text-align: left;
  transition: opacity .15s ease;
}
.price-row__add:active { opacity: .55; }

.price-row__n { font-size: 15.5px; color: var(--ink); }
.price-row__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(var(--gold-rgb), .35);
  transform: translateY(-4px);
}
.price-row__p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold-mid);
  /* Cormorant defaults to old-style figures; a till needs even digit heights. */
  font-variant-numeric: lining-nums tabular-nums;
}

/* Reserved whether or not the row has a quantity, so nothing shifts on tap. */
.price-row__step {
  flex: 0 0 auto;
  width: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.price-row__sub {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .45);
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  transition: transform .1s ease, background .2s ease;
}
.price-row__sub:hover { background: rgba(var(--gold-lt-rgb), .14); }
.price-row__sub:active { transform: scale(.9); }
.price-row__qty {
  min-width: 26px;
  text-align: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-ink);
  background: var(--gold-grad);
  border-radius: 999px;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.price-row.is-on .price-row__n { color: var(--gold-lt); }
.price-note {
  margin: 18px 4px 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.6;
}
.price-note span { color: var(--gold); }

/* ============================================================
   Bottom nav
   ============================================================ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(14, 10, 6, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(var(--gold-rgb), .25);
}

.tabbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 88px 1fr 1fr;
  align-items: center;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  font-family: var(--sans);
  color: var(--faint);
  transition: color .2s ease, transform .1s ease;
}
.tab[aria-current='page'] { color: var(--gold-mid); }
.tab:active { transform: scale(.94); }
.tab__icon { font-size: 17px; }
.tab__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
}

.pay-slot { display: grid; place-items: center; }

.pay-fab {
  width: 66px;
  height: 66px;
  margin-top: -30px;
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold-ink);
  background: linear-gradient(140deg, #f7e3ae, #c99b3f);
  box-shadow: 0 10px 30px rgba(201, 155, 63, .5), 0 0 0 5px rgba(12, 9, 6, .9);
  animation: glowPulse 4s ease-in-out infinite;
  transition: transform .1s ease;
}
.pay-fab:active { transform: scale(.93); }

/* ============================================================
   Overlays
   ============================================================ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 4, 2, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  padding: 20px;
  animation: fadeUp .3s ease both;
}
.scrim--center { place-items: center; }
.scrim--bottom { place-items: end center; padding: 0; }

.modal {
  width: min(420px, 100%);
  background: linear-gradient(165deg, var(--panel-4), var(--panel-3));
  border: 1px solid rgba(var(--gold-lt-rgb), .45);
  border-radius: 22px;
  padding: 26px 24px;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal__ceo { width: 44px; height: 44px; object-fit: contain; }
.modal h3 {
  margin: 14px 0 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-lt);
}
.modal p {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.sheet {
  width: min(560px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(165deg, var(--panel-4), var(--panel-3));
  border: 1px solid rgba(var(--gold-lt-rgb), .45);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  padding: 26px 24px calc(28px + env(safe-area-inset-bottom));
}
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-lt);
}
.sheet__sub {
  margin: 6px 0 18px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}
.sheet__sign {
  margin-top: 18px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--dim);
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.pay-grid--half {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.pay-card {
  border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: 18px;
  padding: 16px;
  background: var(--panel);
}
.pay-card--qr { text-align: center; }
.pay-card__label {
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 12px;
}
.pay-card--qr .pay-card__label { margin-bottom: 10px; }
.pay-card__label--venmo { color: var(--cyan); }
.pay-card__label--zelle { color: var(--violet); }
.pay-card__label--gold { color: var(--gold-mid); }
.pay-card__qr {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
.pay-card__handle { margin-top: 10px; font-size: 14px; color: var(--ink); }
.pay-card__value { margin-top: 6px; font-size: 15px; color: var(--ink); }
.pay-card__meta { font-size: 12px; color: var(--dim); }
.pay-card .tap-link { margin-top: 12px; font-size: 11.5px; padding: 8px 16px; }

/* ============================================================
   Responsive — phones
   ============================================================ */
@media (max-width: 620px) {
  :root { --gutter: 14px; }

  .masthead { padding: 10px 2px 8px; }
  .brand__logo { height: 44px; }
  .brand { gap: 9px; }
  .fest-tag { font-size: 9.5px; letter-spacing: .2em; padding: 4px 8px; }
  .gender-switch button { padding: 8px 15px; font-size: 13px; }

  .hero { padding: 16px 4px 14px; }
  .hero__sub { font-size: 14.5px; }

  .screen--sub { padding-top: 22px; }

  .match__inner { padding: 20px 18px 18px; }
  .match h3 { padding-right: 50px; }

  .upsell { grid-template-columns: 96px 1fr; }
  .upsell img { width: 96px; }
  .upsell__body { padding: 14px 16px; }

  .quick__row { grid-template-columns: 1fr; gap: 2px; }

  :root { --masthead-h: 64px; }
  .tally { padding: 10px 14px; }
  .tally__total { font-size: 26px; }
  .price-card { padding: 6px 16px; }

  /* Narrow phones: stack the code above the copy rather than squeezing both. */
  .scan--sm { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .scan--sm .scan__qr { width: 150px; height: 150px; }

  .tabbar__inner { grid-template-columns: 1fr 1fr 76px 1fr 1fr; padding-left: 4px; padding-right: 4px; }
  .tab__label { font-size: 9.5px; letter-spacing: .1em; }
  .pay-fab { width: 60px; height: 60px; font-size: 12px; }
}

@media (max-width: 430px) {
  .options { gap: 10px; }
  .option { padding: 14px 16px; }
  .result-actions,
  .quiz-actions { flex-wrap: wrap; }
  .result-actions .btn-ghost,
  .quiz-actions .btn-ghost { flex: 1; text-align: center; }
  .pay-grid--half { grid-template-columns: 1fr; }
  .family { padding: 18px; }
  .staff-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Tablet portrait/landscape gets the full 860px shell — nothing to override,
   but give the tabbar a little more breathing room on wide screens. */
@media (min-width: 900px) {
  .tabbar__inner { padding-left: 24px; padding-right: 24px; }
}

/* Landscape phones: the sticky header + fixed tabbar eat the viewport. */
@media (max-height: 480px) and (orientation: landscape) {
  .masthead { position: static; }
  .hero { padding: 12px 4px 10px; }
  .sheet { max-height: 94vh; }
}
