:root {
  /* Brand */
  --ink: #152238;
  --muted: #3d4f6f;
  --muted-soft: #5a6b82;
  --teal: #0f5c5c;
  --teal-deep: #0a4545;
  --accent: #d9652e;
  --accent-hover: #c45522;
  --sun: #ffcf5a;
  --focus: #ffcf5a;
  --sky: #eaf4ff;
  --grass: #e3f2e4;
  --park-end: #d5ebcf;
  --card: #ffffff;
  --card-tint: #f7fbf9;
  --border: rgba(15, 92, 92, 0.14);
  --border-strong: rgba(15, 92, 92, 0.22);
  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(21, 34, 56, 0.05);
  --shadow: 0 8px 24px rgba(21, 34, 56, 0.08);
  --shadow-lg: 0 18px 48px rgba(21, 34, 56, 0.1);
  /* Shape */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  /* Type */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--grass) 52%, var(--park-end) 100%);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 16px 16px 36px;
}

button,
a.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

a {
  color: var(--teal);
}

.app {
  width: min(1100px, 100%);
  margin: 0 auto;
}
/* Outing pages: a bit wider on large desktops so cards can breathe */
@media (min-width: 1200px) {
  .app.app-outing {
    width: min(1180px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* 1Less product threads */
.product-threads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  width: fit-content;
  max-width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 92, 92, 0.18);
  box-shadow: var(--shadow);
}

.product-threads .thread {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid transparent;
}

.product-threads .thread:hover {
  background: rgba(15, 92, 92, 0.08);
  color: var(--teal-deep);
}

.product-threads .thread.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal-deep);
}

.product-threads .thread-copy {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.product-threads .thread small {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.88;
}

/* Header */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  background: var(--teal);
  color: white;
  border-radius: 22px;
  padding: 16px 22px;
  box-shadow: var(--shadow);
  max-width: min(640px, 100%);
}

.brand-kicker {
  margin: 0 0 4px !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85 !important;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand p {
  margin: 6px 0 0;
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.35;
  max-width: 36rem;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.venue-select-wrap {
  display: flex;
  align-items: center;
}

.venue-select {
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid rgba(15, 92, 92, 0.35);
  background: white;
  color: var(--teal-deep);
  box-shadow: var(--shadow);
  max-width: min(280px, 70vw);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.choice:focus-visible,
.animal-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 18px rgba(217, 101, 46, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--teal);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
}

.btn-cam {
  background: #1d6fd8;
  color: white;
}

.btn-big {
  min-height: 56px;
  font-size: 1.1rem;
  padding: 14px 22px;
  border-radius: var(--radius);
}

/* Home intro */
.hero {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 1.5px solid var(--border);
}

.objective-hero {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 207, 90, 0.28), transparent 18rem),
    linear-gradient(165deg, #ffffff 0%, #f3fbf6 55%, #eef8ff 100%);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.85fr);
  gap: 18px;
  align-items: center;
}

.hero-art {
  justify-self: end;
  width: min(100%, 320px);
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(15, 92, 92, 0.18));
}

.venue-card .vc-photo {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 12px;
  display: block;
  background: linear-gradient(135deg, #cfe8ff, #dff0d6);
  margin-bottom: 4px;
}

.promise-pill,
.step-chip {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 92, 92, 0.1);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  color: var(--teal-deep);
  line-height: 1.15;
  max-width: 22ch;
}

.hero p {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46rem;
}

.hero .lead {
  font-size: 1.18rem;
  line-height: 1.5;
  color: #2a3d55;
  max-width: 48rem;
}

.hero .lead.tight {
  margin-top: 8px;
  font-size: 1.08rem;
}

.how-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.how-steps li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(15, 92, 92, 0.14);
  box-shadow: 0 6px 16px rgba(21, 34, 56, 0.06);
}

.how-steps strong {
  color: var(--teal-deep);
  font-size: 0.95rem;
}

.how-steps span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.venue-picker-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 92, 92, 0.12);
}

.venue-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.venue-picker-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--teal-deep);
}

.field-inline-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  margin-right: 8px;
}

.venue-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.venue-card {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 3px solid rgba(15, 92, 92, 0.14);
  background: white;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.venue-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 92, 0.35);
}

.venue-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 101, 46, 0.22), var(--shadow);
}

.venue-card .vc-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.venue-card .vc-name {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--teal-deep);
}

.venue-card .vc-meta {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
}

.primary-actions {
  margin-top: 18px;
}

.trips-section {
  margin-top: 4px;
}

.site-footer {
  margin-top: 28px;
  padding: 16px 4px 8px;
  border-top: 1px solid rgba(15, 92, 92, 0.15);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-promise {
  color: var(--teal-deep);
  font-weight: 750;
}

.mission-guide {
  text-align: left !important;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 92, 92, 0.12);
}

@media (max-width: 820px) {
  .how-steps,
  .venue-cards {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: center;
    order: -1;
    width: min(100%, 280px);
  }

  .hero h2 {
    max-width: none;
  }
}

.section-title {
  margin: 8px 0 12px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--teal-deep);
}

.venue-chip {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--grass);
  border: 2px solid rgba(31, 107, 74, 0.25);
  font-weight: 800;
  color: var(--teal-deep);
  font-size: 1.05rem;
}

.empty-note {
  color: var(--muted);
  font-weight: 700;
  font-size: 1.1rem;
}

.field-label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-weight: 800;
  color: var(--teal-deep);
  max-width: 420px;
}

.text-input {
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(15, 92, 92, 0.3);
  background: #f8fbfd;
  color: var(--ink);
}

.trip-list {
  display: grid;
  gap: 12px;
}

.trip-card {
  display: grid;
  gap: 4px;
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: white;
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: inherit;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.trip-card:hover {
  border-color: rgba(15, 92, 92, 0.35);
  transform: translateY(-1px);
}

.trip-card-title {
  font-size: 1.35rem;
  font-weight: 900;
}

.trip-card-meta {
  font-weight: 700;
  color: var(--muted);
}

.trip-card-stats {
  font-weight: 800;
  color: var(--teal);
  margin-top: 4px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid transparent;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.picker-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 101, 46, 0.25), var(--shadow);
}

.picker-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  background: #dfe7f2;
}

.picker-name {
  padding: 10px;
  font-weight: 900;
  font-size: 1rem;
}

.picker-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 900;
  display: grid;
  place-items: center;
  opacity: 0;
}

.picker-card.selected .picker-check {
  opacity: 1;
}

/* Animal grid — grow into available desktop width */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .animal-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
}
@media (min-width: 960px) {
  .animal-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

.animal-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
  padding: 0;
  color: inherit;
  min-height: 210px;
  transition:
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.animal-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.animal-card.has-progress {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 101, 46, 0.18), var(--shadow-sm);
}

.animal-card-media {
  position: relative;
  display: block;
  width: 100%;
}
.animal-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  /* Head/face bias when cover-cropping tall portraits (giraffe, gorilla, etc.) */
  object-position: 50% 16%;
  background: #dfe7f2;
  display: block;
}
.animal-cam-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: #d9652e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(217, 101, 46, 0.45);
  pointer-events: none;
}
@media (min-width: 720px) {
  .animal-card {
    min-height: 248px;
  }
  .animal-card img {
    height: 188px;
  }
  .animal-card .meta {
    padding: 14px 14px 16px;
  }
  .animal-card .name {
    font-size: 1.12rem;
  }
  .animal-cam-badge {
    font-size: 0.72rem;
    padding: 4px 9px;
  }
}
@media (min-width: 960px) {
  .animal-card {
    min-height: 272px;
  }
  .animal-card img {
    height: 208px;
  }
}

.animal-card .meta {
  padding: 12px 12px 14px;
  display: grid;
  gap: 4px;
}

.animal-card .name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
  line-height: 1.2;
}

.animal-card .status {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--muted-soft);
  min-height: 1.2em;
}

/* Detail view */
.hidden {
  display: none !important;
}

.detail {
  display: grid;
  gap: 16px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 18px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  align-items: stretch;
}
@media (min-width: 900px) {
  .detail-hero {
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.15fr);
    gap: 26px;
    padding: 24px 26px;
  }
}

.detail-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8eef6;
  border: 1.5px solid var(--border);
  min-height: 100%;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 320px;
  object-fit: cover;
  /* Prefer head/face in frame over lower body when cropping */
  object-position: 50% 18%;
  display: block;
}
@media (min-width: 900px) {
  .detail-photo img {
    min-height: 320px;
    max-height: 420px;
  }
  .detail-copy h1,
  .detail-copy #detail-name {
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    letter-spacing: -0.03em;
  }
  .detail-copy .lead {
    font-size: 1.12rem;
    max-width: 38rem;
  }
}

.detail-photo figcaption {
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f4f7fb;
}

.detail-info h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.detail-info .blurb {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grass);
  border: 2px solid rgba(31, 107, 74, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--teal-deep);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* Prefer 3 wide pick-one cards on desktop when width allows */
@media (min-width: 900px) {
  .mission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
  .mission {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 14px;
  }
  .mission-q {
    font-size: 1.12rem;
    min-height: 3.4em; /* even question block across the row */
    flex: 0 0 auto;
  }
  .mission .choices {
    margin-top: auto;
  }
}

.mission {
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(31, 107, 74, 0.22);
  min-height: 210px;
}

.mission[data-color="0"] { background: #ffe4c4; }
.mission[data-color="1"] { background: #cff0e4; }
.mission[data-color="2"] { background: #ddd4ff; }
.mission[data-color="3"] { background: #ffd4e6; }
.mission[data-color="4"] { background: #cde8ff; }
.mission[data-color="5"] { background: #fff0a8; }

.mission-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.mission-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mission-q {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 900;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid rgba(15, 92, 92, 0.22);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: left;
  color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.choice:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.choice[aria-pressed="true"] {
  background: var(--teal);
  color: white;
  border-color: var(--teal-deep);
}

.choice .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid currentColor;
  flex: 0 0 auto;
  position: relative;
}

.choice[aria-pressed="true"] .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: white;
}

.mission.done {
  outline: 3px solid rgba(217, 101, 46, 0.55);
}

.teach-banner {
  display: none;
  background: white;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  font-weight: 800;
}

.teach-banner.show {
  display: block;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .choices {
    grid-template-columns: 1fr;
  }

  .animal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Confetti-ish stamp */
.stamp {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.1rem;
}

.btn-print {
  background: #2c6e49;
  color: white;
}

.btn-submit {
  background: #c45c26;
  color: white;
  width: min(100%, 420px);
  font-size: 1.25rem;
}

.submit-bar {
  margin-top: 18px;
  background: white;
  border: 3px solid rgba(196, 92, 38, 0.35);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  justify-items: start;
}

.submit-hint {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
}

.results-panel {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8e8, #eefaf3);
  border: 2px solid rgba(15, 92, 92, 0.25);
}

.results-panel[hidden] {
  display: none !important;
}

.results-summary {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--teal-deep);
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.results-list li {
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  border: 2px solid rgba(21, 34, 56, 0.08);
  font-size: 1.08rem;
  font-weight: 700;
}

.results-list .r-title {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--teal);
  margin-bottom: 4px;
}

.results-list .r-ok {
  color: #1a7a3c;
}

.results-list .r-try {
  color: #b45309;
}

.results-list .r-open {
  color: #1d4f91;
}

.results-list .r-key {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

/* After submit: mark choices */
.choice.is-correct-key {
  border-color: #1a7a3c !important;
  box-shadow: 0 0 0 2px rgba(26, 122, 60, 0.25);
}

.choice.is-correct-pick {
  background: #1a7a3c !important;
  border-color: #145c2e !important;
  color: white !important;
}

.choice.is-wrong-pick {
  background: #fff1e0 !important;
  border-color: #d97706 !important;
  color: var(--ink) !important;
}

.choice.is-wrong-pick .dot {
  border-color: #d97706;
}

.mission.mission-ok {
  outline: 3px solid rgba(26, 122, 60, 0.55);
}

.mission.mission-try {
  outline: 3px solid rgba(217, 119, 6, 0.55);
}

.mission.mission-open {
  outline: 3px solid rgba(29, 79, 145, 0.4);
}

.mission-feedback {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.mission-feedback.ok {
  color: #145c2e;
}

.mission-feedback.try {
  color: #9a3412;
}

.mission-feedback.open {
  color: #1d4f91;
}

/* ---- Print sheet (hidden on screen) ---- */
.print-sheet {
  display: none;
}

@media print {
  /*
   * One letter page with slack.
   * Letter = 11in; @page margins leave ~10.3–10.4in. Packing content to a hard 10in
   * leaves almost no room for Chrome’s print engine rounding — preview often shows a
   * hairline page-2 until scale is toggled (forces reflow). Target ~9.7in so ~2 lines
   * of paper margin remain below the sheet at 100% scale.
   */
  @page {
    size: letter portrait;
    margin: 0.35in;
  }

  html,
  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .app,
  .no-print {
    display: none !important;
  }

  .print-sheet {
    display: none !important;
    color: #152238;
    font-family: "Segoe UI", system-ui, sans-serif;
  }

  body:not(.printing-treasure) #print-sheet:not(:empty) {
    display: block !important;
  }

  body.printing-treasure #treasure-sheet {
    display: block !important;
  }

  body.printing-treasure #print-sheet {
    display: none !important;
  }

  .print-sheet,
  .print-sheet * {
    box-sizing: border-box;
  }

  /* Wrapper clamp — slightly under one printable page */
  body.printing-treasure #treasure-sheet,
  body:not(.printing-treasure):not(.printing-safari) #print-sheet:not(:empty) {
    max-height: 9.85in;
    overflow: hidden;
    page-break-after: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.printing-safari #print-sheet:not(:empty) {
    max-height: none !important;
    overflow: visible !important;
    page-break-after: auto;
    page-break-inside: auto;
    break-inside: auto;
  }

  /* ---- Mission / Q&A card (one page — hard clamp with slack) ---- */
  .ps-page {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* ~9.7in content; leaves ~1–2 lines of paper margin vs packing to 10in */
    height: 9.7in;
    max-height: 9.7in;
    overflow: hidden !important;
    color: #152238;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .ps-page-with-photo {
    height: 9.7in;
    max-height: 9.7in;
  }

  .ps-banner {
    background: #0f5c5c;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 4px 7px;
    margin-bottom: 4px;
    flex: 0 0 auto;
  }

  .ps-banner h1 {
    margin: 0;
    font-size: 11.5pt;
    line-height: 1.1;
  }

  .ps-banner p {
    margin: 1px 0 0;
    font-size: 7.5pt;
    opacity: 0.95;
  }

  /* Compact text header — photo moves to bottom fill */
  .ps-head {
    flex: 0 0 auto;
    border: 1.5px solid #1f6b4a;
    border-radius: 8px;
    padding: 4px 7px;
    margin-bottom: 4px;
  }
  .ps-head h2 {
    margin: 0 0 1px;
    font-size: 13pt;
    line-height: 1.1;
  }
  .ps-head .ps-line {
    margin: 0;
    font-size: 8.5pt;
    line-height: 1.25;
  }

  /* Legacy hero (if any older HTML) */
  .ps-hero {
    display: grid;
    grid-template-columns: 1.35in 1fr;
    gap: 8px;
    border: 1.5px solid #1f6b4a;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
  }

  .ps-hero img {
    width: 100%;
    height: 1.15in;
    object-fit: cover;
    /* Prefer faces/heads over feet when cover-cropping */
    object-position: 50% 18%;
    border-radius: 6px;
    border: 1px solid #c5d4e4;
  }

  .ps-hero h2 {
    margin: 0 0 2px;
    font-size: 14pt;
    line-height: 1.05;
  }

  .ps-hero .ps-meta {
    margin: 0;
    font-size: 8.5pt;
    color: #3d4f6f;
    line-height: 1.25;
  }

  .ps-hero .ps-line {
    margin: 3px 0 0;
    font-size: 9pt;
  }

  .ps-talk {
    flex: 0 0 auto;
    margin: 0 0 4px;
    padding: 4px 7px 5px;
    border: 1.5px solid #1f6b4a;
    border-radius: 7px;
    background: #f3faf7;
  }
  .ps-talk-label {
    margin: 0 0 2px;
    font-size: 7.5pt;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0a4545;
  }
  .ps-talk-list {
    margin: 0;
    padding-left: 1.1em;
    font-size: 8pt;
    font-weight: 650;
    color: #1a2b3c;
    line-height: 1.18;
  }
  .ps-talk-list li:nth-child(n+5) {
    /* keep sixth prompt readable but compact */
  }
  .ps-talk-list li {
    margin: 0 0 1px;
  }
  .ps-write {
    margin: 3px 0 0;
    border-bottom: 1px solid #9aa8b8;
    min-height: 12px;
  }
  .ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    flex: 0 1 auto;
    min-height: 0;
    margin-bottom: 3px;
    overflow: hidden;
  }

  /* Big animal photo fills leftover sheet space (sheet clamp prevents page-2) */
  .ps-photo-fill {
    flex: 1 1 0;
    min-height: 2.0in;
    /* no max-height — grow into remaining sheet; overflow:hidden on .ps-page */
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 0 2px;
    overflow: hidden;
  }
  .ps-photo-frame {
    flex: 1 1 0;
    min-height: 0;
    border: 1.5px solid #1f6b4a;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #eef3f8;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }
  .ps-page-with-photo .ps-photo-frame {
    border-radius: 8px 8px 0 0;
  }
  .ps-photo-big {
    display: block;
    width: 100%;
    height: 100%;
    /* no max-height — cover fills frame; head bias keeps faces in crop */
    object-fit: cover;
    /* default head bias; per-animal override via inline style / --ps-photo-pos */
    object-position: var(--ps-photo-pos, 50% 12%);
  }
  .ps-wow {
    flex: 0 0 auto;
    border: 1.5px solid #1f6b4a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff8e8;
    padding: 4px 7px 5px;
  }
  .ps-wow-solo {
    border-top: 1.5px solid #1f6b4a;
    border-radius: 8px;
    margin-top: 3px;
  }
  .ps-wow-q {
    display: block;
    font-size: 7.5pt;
    font-weight: 850;
    color: #c45c26;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 1px;
  }
  .ps-wow-a {
    display: block;
    font-size: 9pt;
    font-weight: 750;
    color: #0a4545;
    line-height: 1.2;
  }

  .ps-card {
    border: 1.5px solid #1f6b4a;
    border-radius: 7px;
    padding: 3px 5px 2px;
    /* avoid forces page-2 when 6 cards + photo don't fit */
    break-inside: auto;
    page-break-inside: auto;
    min-height: 0;
  }
  .ps-page-with-photo .ps-card {
    padding: 2px 4px 1px;
  }
  .ps-page-with-photo .ps-q {
    font-size: 8pt;
    margin: 0 0 1px;
    line-height: 1.15;
  }
  .ps-page-with-photo .ps-choice {
    font-size: 7pt;
    padding: 0;
    line-height: 1.15;
  }
  .ps-page-with-photo .ps-card-head {
    margin-bottom: 0;
  }
  .ps-page-with-photo .ps-title {
    font-size: 7.5pt;
  }
  .ps-page-with-photo .ps-num {
    width: 12px;
    height: 12px;
    font-size: 7pt;
  }

  .ps-card.c0 { background: #ffe4c4; }
  .ps-card.c1 { background: #cff0e4; }
  .ps-card.c2 { background: #ddd4ff; }
  .ps-card.c3 { background: #ffd4e6; }
  .ps-card.c4 { background: #cde8ff; }
  .ps-card.c5 { background: #fff0a8; }

  .ps-card-head {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1px;
  }

  .ps-num {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0f5c5c;
    color: white;
    font-size: 8pt;
    font-weight: 800;
    display: grid;
    place-items: center;
  }

  .ps-title {
    margin: 0;
    font-size: 7.5pt;
    font-weight: 800;
    color: #0f5c5c;
    text-transform: uppercase;
  }

  .ps-q {
    margin: 0 0 3px;
    font-size: 9.5pt;
    font-weight: 900;
    line-height: 1.15;
  }

  .ps-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 6px;
  }

  .ps-choice {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8pt;
    font-weight: 700;
    line-height: 1.15;
  }

  .ps-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid #0f5c5c;
    flex: 0 0 auto;
    background: white;
  }

  .ps-choice.on .ps-dot {
    background: #0f5c5c;
    box-shadow: inset 0 0 0 1.5px white;
  }

  .ps-choice.on {
    font-weight: 900;
  }

  .ps-footer {
    margin-top: 2px;
    text-align: center;
    font-size: 6pt;
    color: #3d4f6f;
    flex: 0 0 auto;
  }

  .ps-taught {
    margin-top: 3px;
    font-size: 9pt;
    font-weight: 800;
    color: #d9652e;
  }

  /* ---- Treasure hunt (one page) ---- */
  .th-page {
    color: #152238;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .th-banner {
    background: #0f5c5c;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 5px 8px;
    margin-bottom: 5px;
  }

  .th-banner h1 {
    margin: 0;
    font-size: 14pt;
    line-height: 1.1;
  }

  .th-banner p {
    margin: 1px 0 0;
    font-size: 8pt;
  }

  .th-meta {
    border: 1.5px solid #1f6b4a;
    border-radius: 7px;
    padding: 5px 8px;
    margin-bottom: 4px;
    font-size: 9pt;
    line-height: 1.25;
  }

  .th-meta p {
    margin: 1px 0;
  }

  .th-intro {
    font-size: 9pt;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.25;
  }

  .th-list {
    display: grid;
    gap: 3px;
    margin-bottom: 5px;
  }

  .th-row {
    display: grid;
    grid-template-columns: 16px 16px 1fr;
    gap: 5px;
    align-items: center;
    border: 1.25px solid #1f6b4a;
    border-radius: 6px;
    padding: 3px 6px;
    background: #f3faf6;
    font-size: 9.5pt;
    font-weight: 700;
    line-height: 1.2;
  }

  .th-box {
    width: 13px;
    height: 13px;
    border: 2px solid #0f5c5c;
    border-radius: 3px;
    background: white;
  }

  .th-num {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0f5c5c;
    color: white;
    font-size: 8pt;
    display: grid;
    place-items: center;
  }

  .th-stars {
    margin: 0 0 4px;
    padding: 4px 6px;
    border: 1.25px dashed #c45c26;
    border-radius: 7px;
  }

  .th-stars-title {
    margin: 0 0 3px;
    font-size: 8.5pt;
    font-weight: 800;
    color: #c45c26;
  }

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

  .th-chip {
    border: 1px solid #1f6b4a;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 7.5pt;
    font-weight: 700;
    background: #fff8e8;
    line-height: 1.3;
  }

  .th-map-title {
    margin: 0 0 1px;
    font-size: 8.5pt;
    font-weight: 800;
  }

  .th-map-hint {
    margin: 0 0 2px;
    font-size: 7.5pt;
    color: #3d4f6f;
  }

  .th-map-box {
    height: 0.55in;
    border: 1.5px solid #1f6b4a;
    border-radius: 6px;
    background:
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 12px,
        rgba(15, 92, 92, 0.06) 12px,
        rgba(15, 92, 92, 0.06) 13px
      );
  }

  /* Official map squeezed into hunt footer — stay on one letter page */
  .th-page-with-map .th-banner {
    padding: 4px 7px;
    margin-bottom: 4px;
  }
  .th-page-with-map .th-banner h1 {
    font-size: 12.5pt;
  }
  .th-page-with-map .th-meta {
    padding: 4px 7px;
    margin-bottom: 3px;
    font-size: 8.5pt;
  }
  .th-page-with-map .th-intro {
    font-size: 8.5pt;
    margin-bottom: 3px;
  }
  .th-page-with-map .th-list {
    gap: 2px;
    margin-bottom: 3px;
  }
  .th-page-with-map .th-row {
    padding: 2px 5px;
    font-size: 8.5pt;
  }
  .th-page-with-map .th-stars {
    margin-bottom: 3px;
    padding: 3px 5px;
  }
  .th-page-with-map .th-chip {
    font-size: 7pt;
    padding: 0 5px;
  }
  .th-map-has-photo {
    margin: 0 0 2px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .th-page-with-map {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 9.7in;
    max-height: 9.7in;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
  }
  .th-map-photo-wrap {
    border: 1.5px solid #1f6b4a;
    border-radius: 6px;
    overflow: hidden;
    background: #f3faf6;
    flex: 1 1 auto;
    min-height: 1.8in;
    /* Cap height so wide landscape maps (Joshua Tree, etc.) cannot force page 2 */
    max-height: 3.35in;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .th-map-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 3.3in;
    object-fit: contain;
    object-position: center;
  }
  .th-map-credit {
    margin: 2px 0 0;
    font-size: 6.5pt;
    color: #3d4f6f;
    font-weight: 600;
    line-height: 1.2;
  }

  .th-footer {
    margin-top: 3px;
    text-align: center;
    font-size: 7pt;
    color: #3d4f6f;
  }
  .th-page-with-map .th-footer {
    margin-top: 2px;
    font-size: 6.5pt;
  }

  /* Home Safari — two landscape pages: hunt cards, then cut-outs */
  .hs-page {
    box-sizing: border-box;
    width: 10.3in;
    height: 7.55in;
    max-height: 7.55in;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    color: #152238;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always;
    break-after: page;
  }
  .hs-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .hs-banner {
    background: #0f5c5c;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 5px 8px;
    margin-bottom: 5px;
    flex: 0 0 0.58in;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hs-banner h1 {
    margin: 0;
    font-size: 13pt;
    letter-spacing: 0.02em;
  }
  .hs-banner p {
    margin: 2px 0 0;
    font-size: 8.5pt;
    font-weight: 600;
  }
  .hs-footer {
    margin-top: 4px;
    text-align: center;
    font-size: 8pt;
    color: #3d4f6f;
    flex: 0 0 0.28in;
    line-height: 0.28in;
  }
  .hs-grid,
  .hs-cuts {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(var(--hs-cols, 5), minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 6px;
  }
  .hs-card {
    border: 1.4px solid rgba(15, 92, 92, 0.28);
    border-radius: 8px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .hs-card-media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #e8eee8;
  }
  .hs-card-photo,
  .hs-cut-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
  }
  .hs-card-emoji,
  .hs-cut-emoji {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 1.2in;
    font-size: 28pt;
  }
  .hs-box {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 16px;
    height: 16px;
    border: 1.7px solid #0f5c5c;
    border-radius: 3px;
    background: #fff;
  }
  .hs-card-copy {
    flex: 0 0 auto;
    padding: 3px 6px 2px;
  }
  .hs-card-name {
    display: block;
    font-size: 9pt;
    font-weight: 800;
    color: #0a4545;
    line-height: 1.15;
  }
  .hs-card-ask {
    margin: 1px 0 0;
    font-size: 7.5pt;
    font-weight: 600;
    line-height: 1.2;
    color: #3d4f6f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hs-card-doodle {
    flex: 0 0 0.42in;
    margin: 0 5px 5px;
    border: 1.2px dashed rgba(15, 92, 92, 0.32);
    border-radius: 5px;
    background: #fffdf8;
  }
  .hs-cut.is-blank {
    background: #f4f6f7;
    border-color: #c5ccd1;
  }
  .hs-cut {
    border: 1.5px dashed #0f5c5c;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .hs-cut-media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8eee8;
  }
  .hs-cut-photo,
  .hs-cut-emoji {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    background: #e8eee8;
  }
  .hs-cut-emoji {
    display: grid;
    place-items: center;
    font-size: 28pt;
  }
  .hs-cut-write {
    flex: 1 1 0.64in;
    min-height: 0.58in;
    max-height: 0.72in;
    margin: 4px 6px 3px;
    border: 1.2px solid #9aa3a8;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0 6px;
  }
  .hs-cut-rule {
    position: relative;
    flex: 1 1 50%;
    display: block;
  }
  .hs-cut-rule::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 66.67%;
    border-bottom: 1px dotted #b4bcc2;
  }
  .hs-cut-foot {
    flex: 0 0 0.58in;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .hs-cut-name {
    display: block;
    font-size: 9.5pt;
    font-weight: 800;
    color: #0a4545;
    padding: 2px 5px 1px;
  }
  .hs-cut-ask {
    margin: 0;
    padding: 0 5px 5px;
    font-size: 7.5pt;
    font-weight: 600;
    line-height: 1.2;
    color: #3d4f6f;
  }
  .hs-cut-answer {
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hs-answer-turn {
    transform: rotate(180deg);
    text-align: center;
    max-width: 100%;
  }
  .hs-cut-ans {
    margin: 3px 0 0;
    font-size: 8pt;
    font-weight: 600;
    line-height: 1.25;
    color: #152238;
  }
}

/* Win banner */
.win-banner {
  display: none;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e8faf0, #fff8e0);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.win-banner.show {
  display: block;
}
.win-banner strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-deep);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.win-banner p {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.win-banner .win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Promote print buttons slightly */
.btn-print.btn-big {
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(217, 101, 46, 0.28);
}
.primary-actions .btn-print {
  order: 0;
}

/* Hand-write explorer name on printouts */
.write-in-line {
  display: inline-block;
  min-width: 12ch;
  border-bottom: 2px solid #1a1a1a;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #888;
}
.write-in-hint {
  font-size: 0.85em;
  font-weight: 600;
  color: #666;
  font-style: italic;
}
@media print {
  .write-in-hint {
    color: #444;
  }
  .write-in-line {
    color: transparent;
    border-bottom-color: #000;
    min-width: 14ch;
  }
}

/* ===== Phase B: outing + item craft ===== */
body.app-body {
  padding-top: 12px;
  padding-bottom: 32px;
}

.app-outing .oneless-shell {
  margin-bottom: 10px;
}

/* Slim nav under shell (replaces heavy teal brand topbar) */
.app-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--border);
}
.app-nav-back {
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--teal);
  text-decoration: none;
}
.app-nav-back:hover {
  text-decoration: underline;
}
.app-nav-context {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-nav-list {
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  margin-left: auto;
}

/* Outing hero */
.outing-hero {
  padding: 20px 22px 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 207, 90, 0.22), transparent 14rem),
    linear-gradient(165deg, #ffffff 0%, #f7fbf9 100%);
}
.outing-hero .venue-chip {
  margin: 0 0 8px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 750;
  background: rgba(15, 92, 92, 0.08);
  border: 1.5px solid var(--border);
  color: var(--teal-deep);
}
.outing-hero h1,
.outing-hero #outing-heading {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--teal-deep);
  max-width: 22ch;
}
.outing-hero .lead.tight {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
  max-width: 40rem;
}
.outing-hero .primary-actions {
  margin-top: 16px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.outing-hero .primary-actions .btn-big {
  flex: 1 1 12rem;
}
.outing-hero .sample-qa-hint {
  margin-top: 8px !important;
}
.outing-hero .secondary-actions {
  margin-top: 8px;
  margin-bottom: 0;
  gap: 6px;
}
.outing-hero .secondary-actions .btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: none;
}
.outing-hint {
  margin: 10px 0 0 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--muted-soft) !important;
}

.section-title {
  margin: 4px 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}
.section-sub {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-soft);
}

.mission-optional-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-tint);
  border: 1.5px dashed var(--border);
  font-weight: 650;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-kicker {
  margin-bottom: 8px !important;
}
.detail-copy h1,
.detail-copy #detail-name {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  line-height: 1.15;
}
.detail-copy .lead {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}
/* Print is the hero action — high, big, before wiki-style extras */
.detail-tools-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 8px;
}
.detail-tools-primary .btn-print {
  flex: 1 1 12rem;
  min-height: 52px;
  font-size: 1.08rem;
  font-weight: 850;
  box-shadow: 0 5px 16px rgba(44, 110, 73, 0.22);
}
.detail-tools-primary .btn-secondary {
  flex: 0 1 auto;
  min-height: 52px;
  font-size: 0.95rem;
}
.detail-print-hint {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted-soft, #5a6b82);
  line-height: 1.35;
}
.detail-links .btn,
.detail-tools .btn {
  min-height: 44px;
  font-size: 0.95rem;
}
.detail-links-quiet {
  margin-top: 4px;
  opacity: 0.92;
}
.detail-links-quiet .btn {
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 650;
}
.detail-qa-launch {
  margin-top: 6px;
}
.detail-qa-launch .btn-more-questions {
  font-size: 0.88rem;
  font-weight: 650;
  min-height: 40px;
}
@media (max-width: 520px) {
  .detail-tools-primary {
    flex-direction: column;
  }
  .detail-tools-primary .btn-print,
  .detail-tools-primary .btn-secondary {
    width: 100%;
  }
}
.progress-pill {
  border-width: 1.5px;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 8px 12px;
}

.share-status {
  font-weight: 750;
  color: var(--teal);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.outing-customize {
  margin: 0 0 14px;
}
.outing-customize .btn-ghost {
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 700;
}
.customize-panel {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border);
}
.customize-panel.hidden {
  display: none !important;
}

.app-outing .site-footer-slim {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.app-outing .site-footer-slim p {
  margin: 0;
  color: var(--muted-soft);
  font-weight: 600;
}

/* Legacy topbar classes (if any leftover) */
.topbar-compact {
  margin-bottom: 12px;
  padding-bottom: 8px;
}
.topbar-compact .brand {
  background: transparent;
  color: #153858;
  box-shadow: none;
  padding: 4px 0;
  border-radius: 0;
}
.topbar-compact .brand-sub-only {
  margin: 0;
  font-weight: 750;
  font-size: 1rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .outing-hero {
    padding: 16px;
  }
  .outing-hero .primary-actions .btn-big {
    width: 100%;
    flex: 1 1 100%;
  }
  .app-nav-context {
    order: 3;
    flex: 1 1 100%;
    font-size: 0.85rem;
  }
}

/* Floor prompts — 3 equal cards on desktop (use the empty width) */
.floor-prompts-wrap {
  margin: 0 0 16px;
}
.qa-level-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
}
.qa-level-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-soft, #5a6b82);
  flex: 0 0 auto;
}
.qa-level-seg {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 28rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 92, 92, 0.18);
  overflow: hidden;
  background: #fff;
}
.qa-level-chip {
  appearance: none;
  flex: 1 1 0;
  margin: 0;
  border: none;
  border-right: 1px solid rgba(15, 92, 92, 0.12);
  background: transparent;
  color: #3d4f6f;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 8px 4px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.qa-level-chip:last-child {
  border-right: none;
}
.qa-level-chip:hover {
  background: #f0faf6;
  color: #0a4545;
}
.qa-level-chip.is-active {
  background: #0f5c5c;
  color: #fff;
}
.qa-level-chip.qa-level-bonus.is-active {
  background: #8a6d3b;
  color: #fff;
}
.qa-level-chip.qa-level-bonus:not(.is-active) {
  color: #6b5a3e;
  font-weight: 750;
}
.qa-level-chip.qa-level-alpha.is-active {
  background: #4a5568;
  color: #fff;
}
.qa-level-chip.qa-level-alpha:not(.is-active) {
  color: #4a5568;
  font-weight: 750;
}
.floor-prompts-wrap.is-bonus .floor-prompts-kicker {
  color: #8a6d3b;
}
.floor-prompts-wrap.is-bonus .floor-prompts-kicker::before {
  background: #8a6d3b;
}
.floor-prompts-wrap.is-alpha .floor-prompts-kicker {
  color: #4a5568;
}
.floor-prompts-wrap.is-alpha .floor-prompts-kicker::before {
  background: #4a5568;
}
.floor-prompt-card.floor-prompt-bonus {
  border-color: rgba(138, 109, 59, 0.28);
  background: linear-gradient(135deg, #fffaf3, #fff8f0);
}
.floor-prompt-card.floor-prompt-alpha {
  border-color: rgba(74, 85, 104, 0.28);
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
}
.floor-prompt-card.floor-prompt-alpha .floor-prompt-n {
  background: #4a5568;
  color: #fff;
}
.floor-prompt-card.floor-prompt-bonus .floor-prompt-n {
  background: #8a6d3b;
}
.floor-prompts-kicker {
  margin: 4px 0 10px;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-deep, #0a4545);
}
.floor-prompts-kicker::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  background: #d9652e;
  vertical-align: 0.1em;
}
@media (min-width: 720px) {
  .floor-prompts-kicker {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }
}
.floor-prompts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}
.floor-prompt-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card-tint, #f7fbf9);
  border: 1.5px solid var(--border, rgba(15, 92, 92, 0.12));
  min-height: 0;
}
.floor-prompt-n {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--teal, #0f5c5c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.floor-prompt-card p {
  margin: 0;
  font-weight: 650;
  color: var(--ink, #152238);
  line-height: 1.35;
  font-size: 1rem;
}
@media (min-width: 720px) {
  .floor-prompts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
  }
  .floor-prompt-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 16px 16px 18px;
    min-height: 8.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }
  .floor-prompt-n {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.88rem;
  }
  .floor-prompt-card p {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
  }
}
@media (min-width: 960px) {
  .floor-prompts {
    gap: 14px;
  }
  .floor-prompt-card {
    min-height: 9.25rem;
    padding: 18px 18px 20px;
  }
  .floor-prompt-card p {
    font-size: 1.1rem;
  }
}
.detail-missing-hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted, #3d4f6f);
}
.detail-qa-launch {
  align-items: center;
  margin-top: 4px;
}
.btn-more-questions {
  font-weight: 800;
}
.advanced-qa {
  margin: 16px 0 8px;
  padding: 12px 14px;
  border-radius: var(--radius, 16px);
  background: rgba(255,255,255,0.75);
  border: 1.5px dashed var(--border, rgba(15, 92, 92, 0.18));
  scroll-margin-top: 72px;
}
.advanced-qa summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--teal-deep, #0a4545);
  font-size: 1.02rem;
  list-style: none;
}
.advanced-qa summary::-webkit-details-marker {
  display: none;
}
.advanced-qa summary::before {
  content: "▾ ";
  color: #d9652e;
}
.advanced-qa[open] summary {
  margin-bottom: 10px;
}
.advanced-qa[open] summary::before {
  content: "▴ ";
}
.progress-pill {
  cursor: pointer;
}


/* Unified Q&A: one list of 6 under the level chips */
.qa-questions {
  margin: 0.5rem 0 1.5rem;
  padding: 0 4px 8px;
}
.qa-questions .mission-grid {
  margin-top: 0.25rem;
}
.floor-prompts-wrap.is-bonus .floor-prompts-kicker,
#qa-level-wrap.is-bonus .floor-prompts-kicker {
  color: #8a6d3b;
}
.floor-prompts-wrap.is-alpha .floor-prompts-kicker,
#qa-level-wrap.is-alpha .floor-prompts-kicker {
  color: #4a5568;
}
.detail-tools .progress-pill {
  align-self: center;
}

.th-safety {
  font-size: 0.78rem;
  line-height: 1.25;
  margin: 0.35rem 0 0.2rem;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: #eef5ea;
  border: 1px solid #cfe0c8;
  color: #2f3d2c;
}
@media print {
  .th-safety {
    font-size: 7.5pt;
    margin: 2pt 0;
    padding: 2pt 4pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
