:root {
  --bg: #f7f4e8;
  --paper: rgba(255, 252, 245, 0.94);
  --ink: #1f2a37;
  --muted: #586574;
  --accent: #0b7285;
  --accent-strong: #085d6c;
  --warm: #f4a340;
  --line: rgba(31, 42, 55, 0.12);
  --shadow: 0 20px 45px rgba(31, 42, 55, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 163, 64, 0.25), transparent 35%),
    radial-gradient(circle at top right, rgba(11, 114, 133, 0.22), transparent 28%),
    linear-gradient(180deg, #fdf7e2 0%, #eef7f7 100%);
  min-height: 100vh;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

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

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.5;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

main.container {
  padding-top: 1rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.stack-md > * + * {
  margin-top: 1rem;
}

.stack-sm > * + * {
  margin-top: 0.75rem;
}

.site-header,
.site-footer {
  padding: 1rem 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-title,
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.nav-links form {
  margin: 0;
}

.hero-card,
.panel,
.progress-card,
.list-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
}

.panel,
.progress-card,
.list-card {
  padding: 1.25rem;
}

.panel-subsection {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.muted-inline {
  font-size: 0.65em;
  color: var(--muted);
  font-weight: 400;
}

.hero-progress {
  width: min(360px, 100%);
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 42, 55, 0.1);
  overflow: hidden;
  border: 1px solid rgba(31, 42, 55, 0.08);
}

.hero-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--warm), var(--accent));
  transition: width 200ms ease;
}

.auth-panel {
  max-width: 480px;
}


.flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.flash p,
.flash h2 {
  margin: 0;
}

.flash-modal-card {
  width: min(560px, 100%);
}

.flash-modal-message {
  display: grid;
  gap: 0.75rem;
}

.flash-success {
  background: rgba(47, 133, 90, 0.14);
  border: 1px solid rgba(47, 133, 90, 0.24);
}

.flash-error {
  background: rgba(196, 69, 54, 0.12);
  border: 1px solid rgba(196, 69, 54, 0.24);
}

.field,
.checkbox-row {
  display: grid;
  gap: 0.4rem;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 55, 0.18);
  background: #fffdf9;
}

textarea {
  resize: vertical;
}

.button-primary,
.button-secondary,
.link-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary,
.link-button {
  background: rgba(11, 114, 133, 0.12);
  color: var(--accent-strong);
}

.link-button {
  padding: 0;
  background: transparent;
}

.split-heading,
.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.list-card-stacked {
  align-items: stretch;
}

.list-card-main {
  flex: 1;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-puzzle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-progress-row {
  display: grid;
  gap: 0.5rem;
}

.admin-progress {
  width: min(420px, 100%);
}

.admin-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  flex: 0 0 180px;
}

.admin-actions form {
  margin: 0;
  width: 100%;
}

.admin-actions .button-secondary,
.admin-actions button.button-secondary {
  width: 100%;
  text-align: center;
}

.admin-checkmark {
  min-width: 72px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 133, 90, 0.14);
  border: 2px solid rgba(47, 133, 90, 0.35);
  color: #1f7a49;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clue-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(244, 163, 64, 0.12), rgba(11, 114, 133, 0.08));
}

.progress-grid,
.three-column,
.two-column {
  display: grid;
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.concept-card {
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.concept-card-large {
  min-height: 84px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.concept-card-good {
  background: rgba(47, 133, 90, 0.14);
  border: 1px solid rgba(47, 133, 90, 0.3);
}

.concept-card-bad {
  background: rgba(196, 69, 54, 0.12);
  border: 1px solid rgba(196, 69, 54, 0.24);
}

.success-banner {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 133, 90, 0.12);
  border: 1px solid rgba(47, 133, 90, 0.24);
}

.panel-visual {
  background: linear-gradient(180deg, rgba(255, 249, 219, 0.95), rgba(233, 248, 238, 0.95));
}

.form-span-full {
  grid-column: 1 / -1;
}

.progress-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.three-column {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.two-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.progress-card-active {
  border-color: rgba(11, 114, 133, 0.4);
}

.status-line {
  font-weight: 700;
  color: var(--accent-strong);
}

.puzzle-image,
.upload-preview {
  border-radius: 16px;
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-card {
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  transform: rotate(-1deg);
}

.photo-card:nth-child(even) {
  transform: rotate(1deg);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}

.photo-card-body {
  padding: 0.75rem 0.25rem 0.25rem;
}

.photo-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

@media (max-width: 720px) {
  .header-row,
  .split-heading,
  .list-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .admin-actions {
    width: 100%;
    flex: 1 1 auto;
  }
}

.adventure-page {
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(253, 247, 226, 0.82);
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.site-title {
  font-size: 1.4rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-brand-copy {
  display: grid;
  gap: 0.15rem;
}

.site-brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 10px 20px rgba(31, 42, 55, 0.08);
}

.site-brand-mark img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

.site-brand-mark i {
  font-size: 1.35rem;
  color: var(--accent-strong);
}

.hero-card,
.panel,
.progress-card,
.list-card {
  border-radius: 28px;
}

.hero-card,
.panel {
  overflow: hidden;
}

.quest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(244, 163, 64, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(11, 114, 133, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(238, 247, 247, 0.95));
}

.quest-hero-main,
.quest-hero-side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.quest-hero-side {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 42, 55, 0.08);
}

.hero-location,
.hero-side-copy,
.section-copy,
.player-meta,
.muted-text {
  color: var(--muted);
}

.mission-pill-row,
.hero-action-row,
.status-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.status-badge-row-large {
  gap: 0.75rem;
}

.mission-pill,
.mission-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.mission-pill,
.mission-chip {
  color: var(--accent-strong);
}

.mission-pill-soft,
.mission-chip-soft {
  background: rgba(244, 163, 64, 0.14);
  color: #915612;
}

.mission-chip-muted {
  background: rgba(31, 42, 55, 0.08);
  color: var(--muted);
}

.status-badge-good {
  background: rgba(47, 133, 90, 0.14);
  color: #1f7a49;
  border-color: rgba(47, 133, 90, 0.24);
}

.status-badge-warm {
  background: rgba(244, 163, 64, 0.16);
  color: #915612;
  border-color: rgba(244, 163, 64, 0.24);
}

.status-badge-muted {
  background: rgba(31, 42, 55, 0.08);
  color: var(--muted);
}

.status-badge-complete {
  background: rgba(11, 114, 133, 0.14);
  color: var(--accent-strong);
  border-color: rgba(11, 114, 133, 0.22);
}

.status-icon {
  width: 1rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.section-heading-art,
.section-heading-main,
.mini-icon-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-heading-main {
  min-width: 0;
}

.section-icon-wrap {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(11, 114, 133, 0.1);
  border: 1px solid rgba(11, 114, 133, 0.14);
}

.section-icon {
  width: 1.5rem;
  display: inline-grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--accent-strong);
}

.mini-icon {
  width: 1rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.milestone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.milestone {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(31, 42, 55, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  color: var(--muted);
}

.milestone-complete {
  background: linear-gradient(135deg, rgba(244, 163, 64, 0.85), rgba(11, 114, 133, 0.75));
  color: white;
  border-color: transparent;
}

.milestone-current {
  border-color: rgba(11, 114, 133, 0.5);
  color: var(--accent-strong);
  transform: scale(1.06);
}

.dashboard-grid,
.task-grid,
.puzzle-top-grid {
  display: grid;
  gap: 1rem;
}

.task-grid,
.puzzle-top-grid {
  grid-template-columns: 1fr;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
}

.mission-card,
.action-card,
.collage-feature-card,
.mission-status-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 252, 246, 0.95));
}

.action-card-primary {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 64, 0.15), transparent 25%),
    linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.action-card-focus {
  border: 2px solid rgba(11, 114, 133, 0.32);
  box-shadow:
    0 18px 34px rgba(11, 114, 133, 0.12),
    0 0 0 6px rgba(11, 114, 133, 0.05);
  transform: translateY(-2px);
}

.clue-card-special {
  border: 1px dashed rgba(11, 114, 133, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.hero-clue-card {
  margin-top: 0.25rem;
}

.step-card {
  width: 100%;
  overflow: visible;
}

.step-card > summary,
.team-progress-details > summary {
  list-style: none;
  cursor: pointer;
}

.step-card > summary::-webkit-details-marker,
.team-progress-details > summary::-webkit-details-marker {
  display: none;
}

.step-summary,
.team-progress-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.25rem 0.5rem 0.75rem;
}

.step-summary::after,
.team-progress-toggle::after,
.family-progress-toggle::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--muted);
  transition: transform 120ms ease;
}

.step-card[open] > .step-summary::after,
.team-progress-details[open] > .team-progress-toggle::after,
.family-progress-details[open] > .family-progress-toggle::after {
  transform: rotate(180deg);
}

.step-summary-copy {
  flex: 1;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  padding-right: 0.25rem;
}

.step-card-body {
  padding-top: 1rem;
}

.step-lock {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 42, 55, 0.08);
  color: var(--ink);
  font-size: 1rem;
  cursor: help;
}

.step-lock::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: min(18rem, 60vw);
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(31, 42, 55, 0.96);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.2rem);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 40;
}

.step-lock:hover::after,
.step-lock:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.step-check {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 133, 90, 0.14);
  color: #1f7a49;
  font-size: 1.5rem;
}

.step-check[hidden],
.step-card:not(.is-complete) .step-check {
  display: none !important;
}

.step-card.is-locked .step-card-body {
  display: none;
}

.status-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(31, 42, 55, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    background-color 220ms ease,
    backdrop-filter 220ms ease,
    visibility 0s linear 220ms;
}

.status-modal-backdrop[hidden],
.mission-status-card[hidden] {
  display: none !important;
}

.status-modal-backdrop.is-visible {
  background: rgba(31, 42, 55, 0.45);
  backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    background-color 220ms ease,
    backdrop-filter 220ms ease,
    visibility 0s linear 0s;
}

.status-modal-card {
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(1.5rem) scale(0.975);
  transition:
    opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.status-modal-backdrop.is-visible .status-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.status-modal-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.modal-open {
  overflow: hidden;
}

.team-progress-summary-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 42, 55, 0.1);
  overflow: hidden;
  border: 1px solid rgba(31, 42, 55, 0.08);
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.team-progress-summary-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--warm), var(--accent));
}

.team-progress-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px) auto;
  align-items: center;
  gap: 1rem;
}

.team-progress-toggle .section-heading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.team-progress-toggle::after {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

.team-progress-body {
  padding-top: 1rem;
}

.family-progress-group {
  padding: 1.1rem;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.family-progress-details {
  padding: 1.1rem;
}

.family-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.family-progress-toggle {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.family-progress-toggle::-webkit-details-marker {
  display: none;
}

.family-progress-body {
  padding-top: 0.9rem;
}

.guardian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.mission-card-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.mission-summary-box {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 42, 55, 0.08);
}

.mission-art-card {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.mission-art-image {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 14px 26px rgba(31, 42, 55, 0.12);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.8);
}

.mission-art-caption {
  color: var(--muted);
  font-size: 0.88rem;
}

.player-status-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 12px 28px rgba(31, 42, 55, 0.08);
}

.player-status-card-active {
  border-color: rgba(11, 114, 133, 0.35);
  box-shadow: 0 18px 34px rgba(11, 114, 133, 0.12);
}

.player-status-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.player-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 163, 64, 0.9), rgba(11, 114, 133, 0.8));
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(31, 42, 55, 0.12);
}

.player-status-summary {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--accent-strong);
}

.compact-copy {
  color: var(--muted);
  max-width: 44ch;
}

.next-step-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(244, 163, 64, 0.14);
  border: 1px solid rgba(244, 163, 64, 0.24);
}

.next-step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #915612;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.collage-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.collage-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 55, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.empty-preview {
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.clue-stage-card .concept-card,
.clue-stage-card .panel-subsection {
  background-clip: padding-box;
}

.button-wide {
  width: 100%;
  text-align: center;
}

.upload-card .button-secondary,
.answer-card .button-primary,
.action-card-primary .button-primary {
  width: 100%;
}

.upload-dropzone {
  display: grid;
  gap: 0.75rem;
  place-items: center;
  text-align: center;
  padding: 1.15rem;
  border-radius: 24px;
  border: 2px dashed rgba(11, 114, 133, 0.28);
  background: rgba(255, 255, 255, 0.58);
}

.upload-icon {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 114, 133, 0.12);
  font-size: 1.8rem;
}

.upload-success {
  display: grid;
  gap: 0.75rem;
}

.celebration-card {
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(244, 163, 64, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(244, 255, 248, 0.98), rgba(255, 255, 255, 0.96));
}

.collage-grid-large {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reward-photo-card {
  padding: 1rem;
  border-radius: 24px;
}

.photo-card-topline {
  margin-bottom: 0.55rem;
}

.empty-collage-card {
  display: grid;
  gap: 0.8rem;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 24px;
  border: 2px dashed rgba(31, 42, 55, 0.14);
  background: rgba(255, 255, 255, 0.5);
}

.empty-collage-icon {
  font-size: 2.8rem;
}

.collage-stage {
  background:
    radial-gradient(circle at top left, rgba(244, 163, 64, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 245, 0.98));
}

.hero-progress {
  width: min(420px, 100%);
  height: 18px;
  border-radius: 999px;
  background: rgba(31, 42, 55, 0.09);
}

.hero-progress-bar {
  background: linear-gradient(90deg, #efb54d, #3ea07a, #0b7285);
}

.button-primary,
.button-secondary {
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 42, 55, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, #0b7285, #2d8b6a);
}

.button-secondary {
  background: rgba(11, 114, 133, 0.1);
}

@media (max-width: 860px) {
  .quest-hero,
  .dashboard-grid,
  .mission-card-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-heading,
  .family-progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-progress-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-progress-summary-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .player-status-head {
    align-items: flex-start;
  }
}
