@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/oswald-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: 'Work Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/work-sans-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;
}

/* Sized for a tablet on a show stand, read at arm's length by someone
   standing. Phones still work but aren't the target. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* Embryo's website look: Oswald and Work Sans, Embryo green, the flat
     swirl mark. --brand is Embryo's green darkened so white text on it
     reads; --green is their own green for lines and marks. */
  --brand: #0f7d5f;
  --brand-dark: #0c6a51;
  --green: #169d74;
  --mint: #7fe0bf;
  --ground: #11505d;
  --ink: #1c1c1c;
  --dark: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --error: #fecaca;
  --error-bg: rgba(239, 68, 68, 0.12);
  --alert: #b91c1c;
  --font: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --gap: 16px;
  --pad: 20px;
  --radius: 6px;
}

html {
  font-size: 16px;
  height: 100%;
  overflow: hidden;
  background: var(--ground);
  overscroll-behavior: none;
}

@media (min-width: 700px) {
  html { font-size: 18px; }
  :root { --gap: 20px; --pad: 40px; }
}

body {
  font-family: var(--font);
  color: white;
  background: var(--ground);
  height: var(--app-height, 100dvh);
  width: 100vw;
  overflow: hidden;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

input { -webkit-user-select: text; user-select: text; }
button { font-family: var(--font); color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('img/background-embryo.jpg') center / cover no-repeat;
  pointer-events: none;
}

#mainHeader, #scrollWrapper { position: relative; z-index: 1; }

/* Header */
#mainHeader {
  height: clamp(80px, 12dvh, 140px);
  background: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The flat swirl mark and the name, as in Embryo's website header */
.brand { display: flex; align-items: center; justify-content: center; gap: 18px; height: 100%; }
.brand-mark { flex: 0 0 auto; height: 58%; aspect-ratio: 1; background: url('img/embryo-mark.svg') center / contain no-repeat; }
.brand-name {
  font-family: var(--head);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 420px) { .brand { gap: 12px; } .brand-name { font-size: 1.05rem; letter-spacing: 0.1em; } }
body.test-tablet #mainHeader::before {
  content: "Test tablet";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.15rem 0.8rem;
  border-radius: 0 0 4px 4px;
  background: var(--alert);
  color: white;
  font-family: var(--head);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Status banner */
.status-banner {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 44px;
  border: 0;
  background: var(--brand-dark);
  color: white;
  padding: 10px 16px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.status-banner.warn { background: var(--alert); }

#scrollWrapper {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
#scrollWrapper::-webkit-scrollbar { display: none; }

/* Launch screen: the attract loop people see walking past the stand */
#launchScreen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--gap);
  padding: var(--gap) 0 calc(var(--gap) + env(safe-area-inset-bottom));
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#launchScreen.hiding { opacity: 0; transform: scale(0.97); pointer-events: none; }

.marquee {
  width: 100%;
  padding: 3dvh 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
  will-change: transform;
}
.marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
.marquee-item {
  width: clamp(200px, min(40vw, 38dvh), 380px);
  margin: 0 0.75rem;
  padding: 8px 8px 0;
  border-radius: 3px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.marquee-thumb {
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1) center / cover no-repeat;
}
.marquee-label {
  padding: 10px 8px;
  text-align: center;
  font-family: var(--head);
  font-size: 1.05rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.launch-cta { width: 100%; max-width: 900px; padding: 0 var(--pad); }

/* A white card with Embryo's green along the foot, like their banners' calls to action */
#startBtn {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 2.2rem 1.5rem 2.4rem;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease;
}
#startBtn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--green); }
#startBtn:active { transform: scale(0.97); }
.start-title {
  font-family: var(--head);
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.start-sub { font-size: 1.05rem; color: #4a4a4a; }

.tap { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 0.25rem; }
.tap-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(22, 157, 116, 0.35);
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.tap img { position: relative; width: 60px; height: 60px; animation: tapPulse 1.2s ease-in-out infinite; }
@keyframes tapPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.82); } }

.droplet {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  pointer-events: none;
  z-index: 40;
  will-change: transform, opacity;
  animation: splash var(--dur) cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}
@keyframes splash {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Form */
#mainContent {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem var(--pad) calc(4rem + env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#mainContent.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 1000px) { #mainContent { max-width: 920px; } }

.form-section { margin-bottom: 2.75rem; }
.section-title {
  font-family: var(--head);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: normal;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.section-title::after { content: ""; display: block; width: 72px; height: 3px; margin: 0.7rem auto 0; background: var(--mint); }
.section-sub {
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: -0.25rem 0 1.5rem;
}
.section-sub.picked { color: white; }
.req { color: var(--error); }

.email-hint {
  display: block;
  margin: 0.85rem auto 0;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  font-family: var(--font);
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.email-hint[hidden] { display: none; }

.error-hint {
  font-size: 1rem;
  color: var(--error);
  text-align: center;
  margin-top: 0.85rem;
}

/* Venue grid: photos keep their own 3:2 shape so nothing baked into them is
   cropped, and the name sits under the photo rather than over it. */
.venue-grid { --cols: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
@media (min-width: 700px) { .venue-grid { --cols: 3; } }

.venue-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 8px 0;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
/* Picked: a mint ring and a green tick over the photo */
.venue-card[aria-pressed="true"] { box-shadow: 0 0 0 5px var(--mint), 0 6px 18px rgba(0, 0, 0, 0.28); }
.venue-card:focus-visible { outline: none; box-shadow: 0 0 0 5px white, 0 6px 18px rgba(0, 0, 0, 0.28); }
.venue-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  overflow: hidden;
  background: #e8ecec center / cover no-repeat;
}
.venue-tick {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 125, 95, 0.82);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.venue-card[aria-pressed="true"] .venue-tick { opacity: 1; }
.venue-label {
  min-height: 3.6rem;
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.2;
}
.venue-name { font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; }
.venue-type { font-size: 0.85rem; color: #555; }

/* Dates */
.date-card {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  border-radius: var(--radius);
  padding: 0.9rem 0.75rem 0.6rem;
  text-align: center;
  font-family: var(--font);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.date-primary { margin-bottom: var(--gap); }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.date-row > *, .details-row > *, .choice-row > * { min-width: 0; }
.date-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.date-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 1.1rem;
  color: var(--muted);
}
.date-field.has-date .date-value { color: var(--dark); }
.date-card:focus-visible { outline: none; box-shadow: 0 0 0 3px white, 0 4px 12px rgba(0, 0, 0, 0.1); }

/* The calendar sheet */
.date-sheet { max-width: 460px; padding: 22px 20px 20px; }
.date-sheet-for {
  font-family: var(--head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--brand-dark);
}
.date-sheet-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; margin: 0.4rem 0 1rem; }
.date-sheet-title {
  font-family: var(--head);
  font-size: clamp(1.25rem, 6vw, 1.7rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
}
.date-nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #e8f4ef;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.date-nav svg { width: 22px; height: 22px; }
.date-nav:disabled { opacity: 0.3; cursor: default; }
.date-weekdays, .date-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.date-days { grid-auto-rows: 46px; }
.date-weekdays span {
  padding-bottom: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted);
}
.date-day {
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.date-day:disabled { color: #b8c0c0; cursor: default; }
.date-day:not(:disabled):active { transform: scale(0.94); }
.date-day.is-today { box-shadow: inset 0 0 0 2px var(--green); }
.date-day.is-first { background: #dff5ec; }
.date-day.is-picked { background: var(--brand); color: white; }
.date-day:focus-visible { outline: 3px solid var(--mint); outline-offset: 1px; }
.date-clear {
  display: block;
  min-height: 48px;
  margin: 0.75rem auto 0;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--brand-dark);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.date-clear[hidden] { display: none; }

/* Details */
.details-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}
.details-row { display: grid; grid-template-columns: 1fr 1fr; }
.details-row .field:first-child { border-right: 1px solid var(--line); }
.field {
  display: block;
  width: 100%;
  min-height: 64px;
  font-family: var(--font);
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  color: var(--dark);
  text-align: center;
  padding: 0.9rem 0.75rem;
  font-size: 1.1rem;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.3s ease;
}
.details-card > .field:last-child { border-bottom: 0; }
.field::placeholder { color: #8a94a6; }
.field:focus { background: #eaf7f2; }
.field.bad { background: var(--error-bg); }
.field.bad::placeholder { color: #dc2626; }

/* Contact and consent */
.contact-grid { display: grid; gap: var(--gap); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: var(--radius);
  background: white;
  color: var(--dark);
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.choice-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-card:has(input:checked) { background: var(--brand); color: white; box-shadow: 0 0 0 3px var(--mint); }
.choice-card:has(input:focus-visible) { box-shadow: 0 0 0 3px white, 0 4px 14px rgba(0, 0, 0, 0.15); }

.consent-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.18);
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.consent-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent-box {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 3px;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consent-card input:checked + .consent-box { background: white; }
.consent-card input:checked + .consent-box::after {
  content: "";
  width: 9px;
  height: 16px;
  border: solid var(--brand);
  border-width: 0 3px 3px 0;
  transform: translateY(-2px) rotate(45deg);
}
.consent-card:has(input:focus-visible) { box-shadow: 0 0 0 3px white; }

.text-link {
  display: block;
  min-height: 48px;
  margin: 0.75rem auto 0;
  padding: 12px 16px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Actions */
.form-actions { text-align: center; max-width: 620px; margin: 0 auto; }
#submitBtn {
  width: 100%;
  min-height: 80px;
  padding: 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font-family: var(--head);
  font-size: clamp(1.6rem, 3.8vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.3s ease;
}
#submitBtn:active:not(:disabled) { transform: scale(0.97); }
#submitBtn:disabled { opacity: 0.7; cursor: default; }

.quiet-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: 0.9rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

/* Landscape tablets: four venues a row, and the lower sections side by side,
   so the whole form is about two screens instead of four. */
@media (min-width: 1000px) and (orientation: landscape) {
  #mainContent { max-width: 1180px; }
  .venue-grid { --cols: 4; }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    align-items: start;
  }
  .sec-contact { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* Done screen */
.done {
  min-height: calc(var(--app-height, 100dvh) - 6rem);
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 2rem;
  text-align: center;
}
.done-logo {
  width: 100%;
  height: clamp(120px, 18dvh, 220px);
  border-radius: var(--radius);
  background: white;
}
.done-logo .brand-name { font-size: clamp(1.4rem, 3.6vw, 2.3rem); }
.check-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border: 2px solid var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}
.done-heading {
  font-family: var(--head);
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.done-text { font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.5; overflow-wrap: anywhere; }
.done-note { margin-top: 0.75rem; font-size: 1rem; color: rgba(255, 255, 255, 0.8); }
.done-actions { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.reset-pill {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.3rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.2);
}
.restart-btn {
  min-height: 72px;
  border: 0;
  border-radius: var(--radius);
  background: white;
  color: var(--brand);
  padding: 1.1rem 3.5rem;
  font-family: var(--head);
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Sheets */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(0, 0, 0, 0.55);
}
.sheet-card {
  width: 100%;
  max-width: 620px;
  max-height: 85dvh;
  overflow-y: auto;
  border-radius: var(--radius);
  background: white;
  color: var(--dark);
  padding: 32px 28px;
  -webkit-user-select: text;
  user-select: text;
}
.sheet-title {
  font-family: var(--head);
  font-size: 1.7rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}
.sheet-body { font-size: 1rem; line-height: 1.6; }
.sheet-body p + p, .sheet-body ul + p { margin-top: 0.8rem; }
.sheet-body h3 {
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 1.5rem 0 0.4rem;
}
.sheet-body h3:first-child { margin-top: 0; }
.sheet-body ul { margin-top: 0.5rem; padding-left: 1.3rem; }
.sheet-body li + li { margin-top: 0.3rem; }
.sheet-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 1.5rem;
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font-family: var(--head);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.sheet-card .quiet-btn { color: var(--muted); margin-top: 0.5rem; }
.setup-input {
  width: 100%;
  min-height: 56px;
  margin-top: 1rem;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1.15rem;
  text-align: center;
  color: var(--dark);
}
.setup-status { min-height: 1.5em; margin-top: 0.75rem; font-size: 1rem; text-align: center; }

/* Validation shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* Short screens (small tablets on their side): tighten the launch screen so
   it fits without scrolling. */
@media (max-height: 800px) {
  #startBtn { padding: 1.25rem 1.5rem; gap: 0.75rem; }
  .marquee { padding: 2dvh 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .tap-ring, .tap img, .shake { animation: none; }
  #launchScreen, #mainContent { transition: none; }
}
