:root {
  --bg: #f6efe0;
  --panel: rgba(255, 251, 243, 0.94);
  --panel-strong: rgba(24, 50, 42, 0.94);
  --ink: #203129;
  --muted: #5a6e63;
  --line: rgba(93, 116, 105, 0.18);
  --green: #2f6f52;
  --gold: #d58a2b;
  --gold-deep: #b96a17;
  --accent: #c54c38;
  --teal: #1f4e44;
  --shadow: 0 18px 42px rgba(39, 55, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 138, 43, 0.28), transparent 20%),
    radial-gradient(circle at top right, rgba(47, 111, 82, 0.18), transparent 20%),
    linear-gradient(180deg, #f8f2e5 0%, #f6efe0 38%, #f2ead7 100%);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.app-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 18px 28px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.sales-demo-cta-note {
  max-width: 280px;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 138, 43, 0.15);
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(93, 116, 105, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(39, 55, 44, 0.08);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.topbar-contact:hover,
.topbar-contact:focus-visible {
  border-color: rgba(213, 138, 43, 0.46);
  outline: none;
  box-shadow: 0 12px 28px rgba(213, 138, 43, 0.16);
}

.topbar-sales-cta {
  border-color: rgba(213, 138, 43, 0.7);
  background: linear-gradient(135deg, #c9552d, #d58a2b);
  color: #fffdf8;
}

.topbar-sales-cta:hover,
.topbar-sales-cta:focus-visible {
  border-color: rgba(213, 138, 43, 0.88);
  box-shadow: 0 14px 30px rgba(201, 85, 45, 0.22);
}

.kicker {
  margin: 8px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.sales-page-shell {
  display: grid;
  gap: 18px;
}

.sales-page-hero {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(247, 239, 222, 0.7)),
    url("https://bbwozgyfrdskisbwdysg.supabase.co/storage/v1/object/public/restaurant-images/your-restaurant-game/hero.jpg") center/cover no-repeat;
  border: 1px solid rgba(215, 203, 175, 0.72);
  box-shadow: 0 24px 60px rgba(39, 55, 44, 0.1);
}

.sales-page-hero .page-title {
  max-width: 760px;
  margin-bottom: 0;
}

.sales-page-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.45;
}

.sales-page-callout {
  margin: 0;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 900;
  line-height: 1.3;
}

.sales-page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.sales-feature-list,
.sales-offer-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sales-feature-list li,
.sales-offer-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(235, 243, 236, 0.74);
  color: var(--ink);
  font-weight: 800;
}

.sales-offer-price {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.sales-contact-card {
  display: grid;
  gap: 12px;
}

.sales-keep-playing {
  display: grid;
  gap: 8px;
}

.sales-contact-card .copy,
.sales-keep-playing .copy {
  margin: 0;
}

.sales-keep-playing h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1;
}

.sales-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sales-contact-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.page-title {
  margin: 24px 0 16px;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.subtitle,
.copy,
.note,
.field-label,
.meta,
.stat-label,
.leaderboard-note,
.empty-state,
.list-item {
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-pad {
  padding: 28px 28px 22px;
}

.feedback-results-shell {
  max-width: 980px;
}

.feedback-results-hero {
  margin-bottom: 18px;
}

.feedback-results-message {
  margin-bottom: 18px;
  color: var(--green);
  font-family: Arial, sans-serif;
}

.feedback-results-message.is-error {
  color: var(--accent);
}

.feedback-results-list {
  display: grid;
  gap: 14px;
}

.feedback-result-card {
  display: grid;
  gap: 18px;
}

.feedback-result-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.feedback-result-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.feedback-result-reward {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.feedback-result-answers {
  display: grid;
  gap: 9px;
}

.feedback-result-answer {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  font-family: Arial, sans-serif;
}

.feedback-result-answer strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.feedback-result-answer span {
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -60px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(197, 76, 56, 0.14), transparent 68%);
}

.hero::after {
  bottom: -90px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(47, 111, 82, 0.14), transparent 68%);
}

html.restaurant-hub-mode .challenge-splash,
html.restaurant-hub-mode .challenge-owner-section {
  display: none;
}

html:not(.restaurant-hub-mode) body[data-page="hub"] .hero,
html:not(.restaurant-hub-mode) body[data-page="hub"] .grid-two {
  display: none;
}

.challenge-splash {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.challenge-splash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  justify-items: center;
  min-height: min(560px, calc(100vh - 118px));
  padding: clamp(30px, 6vw, 64px) 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(213, 138, 43, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(47, 111, 82, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 251, 243, 0.98), rgba(246, 238, 219, 0.94));
  box-shadow: var(--shadow);
}

.challenge-splash-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: center;
  text-align: center;
  width: min(100%, 980px);
  max-width: 980px;
}

.challenge-splash-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  max-width: 16ch;
}

.challenge-splash-lead,
.challenge-splash-note {
  margin: 0;
  max-width: 60ch;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--muted);
}

.challenge-splash-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.challenge-splash-note {
  font-size: 0.96rem;
}

.challenge-splash-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 860px);
}

.challenge-splash-step {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 24px rgba(39, 55, 44, 0.06);
}

.challenge-splash-step h2,
.challenge-splash-step p {
  margin: 0;
}

.challenge-splash-step h2 {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.12;
}

.challenge-splash-step p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.35;
}

.challenge-splash-picker {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-top: 8px;
  width: 100%;
}

.challenge-splash-field {
  gap: 6px;
  align-items: center;
  text-align: center;
}

.challenge-splash-field .field-label {
  width: 100%;
}

.challenge-splash-select-shell {
  position: relative;
  display: block;
  width: 100%;
}

.challenge-splash-select-shell::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 18px;
  translate: 0 -50%;
  pointer-events: none;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.challenge-splash-field .select {
  min-height: 54px;
  padding: 0 52px 0 18px;
  border-radius: 18px;
  border-color: rgba(47, 111, 82, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 26px rgba(32, 49, 42, 0.08);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  appearance: none;
}

.challenge-splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  justify-content: center;
}

.challenge-splash-primary {
  min-width: 210px;
  background: var(--gold);
  color: #fff;
  border-color: rgba(171, 102, 19, 0.35);
  box-shadow: 0 14px 30px rgba(213, 138, 43, 0.24);
}

.challenge-splash-secondary {
  min-width: 150px;
  background: rgba(255, 255, 255, 0.92);
}

.challenge-owner-section {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.challenge-owner-section .section-title {
  max-width: 760px;
}

.challenge-owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
}

.challenge-owner-grid .copy {
  margin: 0;
}

.how-to-play-open,
.contact-open {
  overflow: hidden;
}

.how-to-play-modal,
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.how-to-play-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 28, 0.42);
}

.how-to-play-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(93, 116, 105, 0.2);
  border-radius: 24px;
  background: #fffaf1;
  box-shadow: 0 24px 70px rgba(34, 47, 42, 0.28);
}

.how-to-play-panel .section-title,
.how-to-play-panel .copy {
  margin: 0;
}

.how-to-play-close {
  justify-self: end;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(93, 116, 105, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.how-to-play-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.how-to-play-topic {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.how-to-play-topic-wide {
  grid-column: 1 / -1;
}

.how-to-play-topic h3 {
  margin: 0;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.how-to-play-topic p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.sales-demo-audience-topic {
  margin-top: 10px;
}

.sales-demo-audience-topic p {
  color: var(--ink);
  font-weight: 700;
}

.how-to-play-topic ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.how-to-play-topic li + li {
  margin-top: 2px;
}

.how-to-play-return {
  justify-self: center;
  min-width: min(100%, 260px);
}

.contact-panel {
  width: min(100%, 560px);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-extra-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  justify-self: start;
  min-width: 180px;
}

.form-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-message-success {
  color: var(--green);
  background: rgba(47, 111, 82, 0.1);
}

.form-message-error {
  color: #8f2f1e;
  background: rgba(194, 72, 43, 0.1);
}

.challenge-progress-card {
  display: grid;
  gap: 10px;
  width: min(100%, 680px);
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 24px rgba(34, 47, 42, 0.06);
}

.challenge-progress-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 14px;
  align-items: center;
  text-align: left;
}

.challenge-progress-heading strong {
  display: block;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

.challenge-progress-label {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.challenge-progress-scope {
  display: grid;
  gap: 5px;
}

.challenge-progress-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  font-family: Arial, sans-serif;
}

.challenge-progress-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(34, 47, 42, 0.06);
}

.challenge-splash-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.hero-title-panel,
.hero-content-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 251, 244, 0.94), rgba(248, 240, 223, 0.95)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-title-panel {
  padding: 26px 18px 14px;
  overflow: hidden;
  text-align: center;
}

.hero-content-panel {
  padding: 18px;
  overflow: hidden;
  height: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 22px;
  align-items: stretch;
  padding: 0;
}

.hero-content-panel-main,
.hero-content-panel-side {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-feature-card,
.hero-image-card {
  border-radius: 28px;
  border: 1px solid rgba(93, 116, 105, 0.16);
  background: rgba(255, 251, 243, 0.9);
  box-shadow: 0 16px 34px rgba(39, 55, 44, 0.08);
}

.hero-feature-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.hero-image-card {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  background: linear-gradient(180deg, rgba(249, 242, 228, 0.96), rgba(244, 234, 214, 0.96));
}

.hero-copy p {
  margin: 0 0 12px;
  max-width: 66ch;
}

.hero-title-panel .page-title {
  margin: 0;
  line-height: 1.02;
}

.hero-profile-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 16px 18px;
  margin: 8px 0 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.hero-profile-strip-guest {
  background: rgba(47, 111, 82, 0.08);
}

.hub-sign-in-toggle {
  margin-top: 10px;
}

.hub-sign-in-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-width: 620px;
}

.hub-sign-in-form .helper,
.hub-sign-in-form .error {
  margin: 0;
}

.hero-profile-name {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-profile-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hero-profile-subline {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-profile-detailline {
  margin: 10px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-profile-rating-note {
  margin: 6px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.hero-profile-rating-note-compact {
  display: none;
}

@media (max-width: 1180px) {
  .hero-profile-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-profile-head > div:first-child {
    width: 100%;
  }

  .hero-profile-actions-top {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-profile-rating-note-full {
    display: none;
  }

  .hero-profile-rating-note-compact {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.18;
  }
}

.hero-profile-detailline strong {
  color: var(--ink);
}

.hero-profile-subline-sep {
  opacity: 0.65;
}

.hero-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.restaurant-complete-note {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 82, 0.28);
  border-left: 5px solid var(--green);
  background: rgba(47, 111, 82, 0.11);
  box-shadow: 0 8px 18px rgba(39, 55, 44, 0.08);
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.restaurant-complete-note strong {
  color: var(--green);
  font-size: 0.98rem;
}

.restaurant-value-breakdown {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(47, 111, 82, 0.07);
  border: 1px solid rgba(47, 111, 82, 0.12);
}

.restaurant-value-breakdown-head,
.restaurant-value-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: Arial, sans-serif;
}

.restaurant-value-breakdown-head {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green);
}

.restaurant-value-breakdown-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.restaurant-value-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.restaurant-value-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.15;
}

.restaurant-value-breakdown-row span {
  min-width: 0;
}

.restaurant-value-breakdown-row strong {
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.restaurant-net-worth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid rgba(47, 111, 82, 0.12);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green);
}

.restaurant-net-worth-row strong {
  color: var(--ink);
  font-size: 1rem;
  white-space: nowrap;
}

.restaurant-expansion-image-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(260px, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 82, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(240, 247, 240, 0.8));
}

.restaurant-expansion-image-copy {
  display: grid;
  gap: 4px;
  font-family: Arial, sans-serif;
}

.restaurant-expansion-image-copy span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.restaurant-expansion-image-copy strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}

.restaurant-expansion-art {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 2 / 1;
}

.restaurant-expansion-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.restaurant-expansion-image-name {
  position: absolute;
  left: 14.7%;
  top: 33.7%;
  width: 45.5%;
  height: 13.2%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2%;
  color: #1f4639;
  font-family: Arial, sans-serif;
  font-size: clamp(0.52rem, 1.08vw, 0.82rem);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.restaurant-expansion-image-name span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
}

.restaurant-expansion-art-counter-service .restaurant-expansion-image-name {
  left: 19%;
  top: 9%;
  width: 62%;
  height: 16%;
  font-size: clamp(0.62rem, 1.28vw, 1rem);
}

.restaurant-expansion-art-small-diner .restaurant-expansion-image-name {
  left: 29.5%;
  top: 16.4%;
  width: 41%;
  height: 14.5%;
  font-size: clamp(0.56rem, 1.12vw, 0.86rem);
}

.restaurant-expansion-art-family-restaurant .restaurant-expansion-image-name {
  left: 31.5%;
  top: 18.2%;
  width: 37%;
  height: 14.8%;
  font-size: clamp(0.56rem, 1.1vw, 0.86rem);
}

.restaurant-expansion-art-regional-favorite .restaurant-expansion-image-name {
  left: 35%;
  top: 22.8%;
  width: 30%;
  height: 13.8%;
  font-size: clamp(0.5rem, 1vw, 0.78rem);
}

.restaurant-expansion-art-local-landmark .restaurant-expansion-image-name {
  left: 36.5%;
  top: 34%;
  width: 27%;
  height: 12%;
  font-size: clamp(0.44rem, 0.9vw, 0.7rem);
}

.restaurant-expansion-preview {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(213, 138, 43, 0.08);
  border: 1px solid rgba(213, 138, 43, 0.14);
}

.restaurant-cash-note {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(213, 138, 43, 0.18);
  background: rgba(213, 138, 43, 0.11);
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.restaurant-growth-prompt {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(47, 111, 82, 0.18);
  border-radius: 14px;
  background: rgba(47, 111, 82, 0.08);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.35;
}

.restaurant-growth-prompt strong {
  color: var(--green);
  font-size: 0.9rem;
}

.restaurant-growth-prompt span {
  color: var(--muted);
  font-size: 0.84rem;
}

.restaurant-expansion-preview > div {
  display: grid;
  gap: 3px;
  min-height: 42px;
  align-content: center;
}

.restaurant-expansion-label {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--muted);
  text-transform: uppercase;
}

.restaurant-expansion-preview strong {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.1;
  color: var(--ink);
}

.restaurant-expansion-action {
  justify-items: stretch;
}

.restaurant-expansion-button {
  min-height: 36px;
  width: 100%;
  padding: 0 12px;
  font-size: 0.78rem;
}

.restaurant-expansion-status {
  margin: -2px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
}

.restaurant-expansion-status-error {
  color: #8f2415;
}

.restaurant-upgrade-preview {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.restaurant-upgrade-preview-head {
  display: grid;
  gap: 2px;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
}

.restaurant-upgrade-preview-head > span:first-child {
  font-size: 0.9rem;
  font-weight: 800;
}

.restaurant-upgrade-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.restaurant-upgrade-preview-card {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(47, 111, 82, 0.06);
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.12;
}

.restaurant-upgrade-preview-card strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.05;
}

.restaurant-upgrade-button {
  align-self: end;
  justify-self: start;
  min-height: 32px;
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.restaurant-upgrade-preview-locked {
  background: rgba(255, 255, 255, 0.5);
}

.restaurant-upgrade-preview-locked .restaurant-upgrade-preview-card {
  opacity: 0.72;
}

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rating-stars {
  color: #c88b15;
  font-size: 0.94em;
  letter-spacing: 0.03em;
}

.rating-number {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.hero-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-profile-actions-top {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
}

.hero-profile-edit-form {
  width: 100%;
  margin-top: 4px;
}

.hero-profile-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-profile-input {
  min-width: min(100%, 240px);
  flex: 1 1 240px;
  min-height: 44px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.hero-side .hero-card {
  height: 100%;
}

.hero-directory-showcase-compact {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 111, 82, 0.1);
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.hero-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero-card-strong {
  background: linear-gradient(180deg, rgba(31, 27, 22, 0.97), rgba(24, 21, 18, 0.97));
  color: #fffdf8;
}

.hero-card-strong .copy,
.hero-card-strong .meta,
.hero-card-strong .field-label,
.hero-card-strong .list-item,
.hero-card-strong .subtitle,
.hero-card-strong .note {
  color: rgba(255, 253, 248, 0.8);
}

.hero-card-strong .hero-badge {
  color: rgba(255, 253, 248, 0.92);
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  text-shadow: 0 1px 2px rgba(15, 31, 27, 0.35);
}

.hero-directory-showcase {
  padding: 12px;
}

.hero-directory-showcase-compact {
  gap: 10px;
}

.hero-directory-picker {
  display: grid;
  gap: 8px;
}

.hero-directory-picker .kicker {
  color: rgba(255, 253, 248, 0.92);
  font-size: 0.96rem;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 2px rgba(10, 8, 6, 0.4);
}

.hero-directory-select {
  min-width: 100%;
}

.hero-directory-stack {
  display: grid;
  gap: 10px;
}

.hero-directory-note {
  margin: 0;
  font-size: 0.92rem;
}

.hero-directory-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-directory-item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-directory-item-compact {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
}

.hero-directory-button {
  margin-top: 8px;
}

.hero-directory-button:disabled {
  opacity: 0.9;
}

.hero-directory-item-muted {
  background: rgba(255, 255, 255, 0.05);
}

.hero-directory-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.hero-directory-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: rgba(255, 253, 248, 0.9);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-directory-placeholder-small {
  min-height: 74px;
  padding: 10px;
  border-radius: 14px;
  font-size: 0.74rem;
}

.hero-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
}

.hero-logo-horizontal {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px;
}

.hero-banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}

.hero-banner-image-start {
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(39, 55, 44, 0.08);
}

.question-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.question-photo {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-preview-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.top-actions,
.button-row,
.chip-row,
.metric-row,
.form-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(93, 116, 105, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.08);
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}

.button-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: rgba(185, 106, 23, 0.42);
  color: #fffdf8;
}

.button-hot {
  background: linear-gradient(135deg, var(--accent), var(--gold-deep));
  border-color: var(--gold-deep);
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(53, 43, 27, 0.18);
}

.result-save-progress-button {
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.result-save-progress-button small {
  font: inherit;
  font-size: 0.74em;
  font-weight: 800;
  opacity: 0.86;
}

.button-dark {
  background: linear-gradient(135deg, var(--teal), var(--panel-strong));
  color: #fffdf8;
  border-color: var(--panel-strong);
}

.button-muted {
  background: rgba(255, 255, 255, 0.54);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.button:disabled:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.08);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.grid-stack {
  display: grid;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.grid-stack > .panel {
  height: 100%;
}

.mobile-hub-tabs {
  display: none;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

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

.stat-card {
  padding: 16px 15px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(93, 116, 105, 0.16);
  display: grid;
  align-content: start;
  min-height: 102px;
}

.stat-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 111, 82, 0.12);
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.chip.gold {
  background: rgba(213, 138, 43, 0.14);
  color: var(--gold-deep);
}

.chip.accent {
  background: rgba(197, 76, 56, 0.12);
  color: var(--accent);
}

.input-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.save-restaurant-label {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 800;
}

.save-restaurant-helper {
  max-width: 680px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(93, 116, 105, 0.2);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
}

.save-restaurant-input {
  border-color: rgba(213, 138, 43, 0.55);
  background: rgba(255, 248, 231, 0.96);
  box-shadow: 0 0 0 4px rgba(213, 138, 43, 0.1);
}

.save-restaurant-input:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(213, 138, 43, 0.18),
    0 12px 26px rgba(39, 55, 44, 0.08);
}

.textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.helper {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.error {
  margin: 0;
  color: #8f2415;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

.leaderboard-tabs .button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.leaderboard-explainer {
  display: grid;
  gap: 5px;
  margin: 8px 0 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(93, 116, 105, 0.12);
}

.leaderboard-explainer .kicker,
.leaderboard-explainer .helper {
  margin: 0;
}

.leaderboard-current-rank-card {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 138, 43, 0.36);
  border-radius: 14px;
  background: rgba(255, 247, 232, 0.9);
  box-shadow: inset 0 0 0 1px rgba(213, 138, 43, 0.08);
}

.leaderboard-current-rank-card .kicker {
  margin: 0;
}

.leaderboard-current-rank-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.leaderboard-current-rank-number {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 9px;
  border-radius: 12px;
  background: rgba(35, 112, 80, 0.12);
  color: var(--green);
  font-weight: 850;
}

.leaderboard-current-rank-name {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-weight: 850;
}

.leaderboard-current-rank-label {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.leaderboard-current-rank-value {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-weight: 850;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.leaderboard-row-current {
  border-color: rgba(213, 138, 43, 0.34);
  background: rgba(213, 138, 43, 0.08);
  box-shadow: inset 0 0 0 1px rgba(213, 138, 43, 0.08);
}

.multiplayer-winner-panel {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(213, 138, 43, 0.22);
  background: rgba(213, 138, 43, 0.09);
}

.multiplayer-winner-panel .section-title,
.multiplayer-winner-panel .copy,
.multiplayer-winner-panel .kicker,
.multiplayer-results-note {
  margin: 0;
}

.multiplayer-leaderboard-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.multiplayer-leaderboard-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.multiplayer-rank,
.multiplayer-player-name,
.multiplayer-player-status {
  min-width: 0;
}

.multiplayer-rank,
.multiplayer-player-name {
  color: var(--ink);
  font-weight: 850;
}

.multiplayer-player-name {
  overflow-wrap: anywhere;
}

.multiplayer-player-status {
  justify-self: end;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

.leaderboard-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.leaderboard-title-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.leaderboard-help-button {
  min-height: 34px;
}

.leaderboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.leaderboard-actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

.leaderboard-select {
  min-width: 170px;
}

.leaderboard-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(47, 111, 82, 0.12);
  color: var(--green);
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
}

.leaderboard-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.leaderboard-name {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  font-size: 0.94rem;
}

.leaderboard-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.leaderboard-scroll {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
  display: grid;
  align-content: start;
  gap: 8px;
}

#collection-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

#leaderboard-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#leaderboard-panel .leaderboard-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 961px) {
  html.restaurant-hub-mode .grid-two {
    position: relative;
    z-index: 3;
  }

  html.restaurant-hub-mode .hero-stack,
  html.restaurant-hub-mode .hero-grid {
    pointer-events: none;
  }

  html.restaurant-hub-mode .hero-content-panel-main,
  html.restaurant-hub-mode .hero-side {
    pointer-events: auto;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-title-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-tabs {
    gap: 8px;
    margin: 8px 0 10px;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-tabs .button {
    min-height: 38px;
    padding: 0 14px;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-controls .field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-explainer {
    gap: 3px;
    margin: 6px 0 10px;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-scroll {
    gap: 6px;
  }

  html.restaurant-hub-mode #leaderboard-panel .leaderboard-row {
    padding: 8px 12px;
    border-radius: 12px;
  }

  html.restaurant-hub-mode .hero-content-panel-side {
    min-height: 0;
    height: auto;
    align-self: start;
    pointer-events: none;
  }

  html.restaurant-hub-mode .hero-side {
    height: auto;
    pointer-events: auto;
  }

  html.restaurant-hub-mode .hero-side .hero-card,
  html.restaurant-hub-mode .hero-directory-showcase-compact {
    height: auto;
    flex: 0 0 auto;
  }

  html.restaurant-hub-mode .hero-directory-showcase {
    padding: 10px;
  }

  html.restaurant-hub-mode .hero-directory-showcase-compact {
    gap: 8px;
  }

  html.restaurant-hub-mode .hero-directory-picker {
    gap: 6px;
  }

  html.restaurant-hub-mode .hero-directory-item {
    gap: 8px;
    padding: 8px;
  }

  html.restaurant-hub-mode .hero-directory-item-compact {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  html.restaurant-hub-mode .hero-directory-button {
    margin-top: 6px;
  }
}

.compact-profile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.compact-profile-card-lean {
  gap: 0;
}

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

.stat-grid-tight {
  gap: 10px;
}

.stat-grid-tight .stat-card {
  min-height: 92px;
  padding: 14px 13px 12px;
}

.stat-grid-tight .stat-label {
  font-size: 0.88rem;
}

.stat-grid-tight .stat-value {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
}

.compact-copy {
  font-size: 0.92rem;
}

.leaderboard-value {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 800;
  color: var(--ink);
  font-size: 0.92rem;
}

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

.collection-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.collection-tabs {
  margin-top: 12px;
}

.collection-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.collection-invite-field {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

.collection-invite-select {
  min-width: min(100%, 320px);
}

.customer-card {
  display: grid;
  gap: 10px;
  padding: 12px 12px 13px;
  border-radius: 20px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  background: rgba(255, 255, 255, 0.74);
  min-height: 178px;
}

.customer-mini-card {
  appearance: none;
  text-align: left;
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  background: rgba(255, 255, 255, 0.76);
  min-width: 0;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.customer-mini-card summary {
  list-style: none;
}

.customer-mini-card summary::-webkit-details-marker {
  display: none;
}

.customer-mini-summary {
  padding: 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  min-height: 72px;
  outline: none;
}

.customer-avatar-compact {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.customer-mini-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.customer-mini-copy .customer-name {
  font-size: 0.98rem;
  line-height: 1.08;
}

.customer-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.customer-mini-card:hover,
.customer-mini-card:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 54, 47, 0.06);
  border-color: rgba(93, 116, 105, 0.24);
}

.customer-mini-card-regular {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 248, 244, 0.92));
}

.customer-mini-card-occasional {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 236, 0.96));
}

.customer-mini-card-favorite {
  border-color: rgba(213, 138, 43, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 247, 221, 0.94), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(213, 138, 43, 0.14);
}

.customer-mini-card-selected {
  border-color: rgba(213, 138, 43, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 244, 214, 0.96), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(213, 138, 43, 0.24),
    0 10px 24px rgba(213, 138, 43, 0.12);
}

.customer-mini-selected-label {
  justify-self: start;
  grid-column: 1 / -1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.collection-selected-card {
  margin-top: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(93, 116, 105, 0.14);
  display: grid;
  gap: 14px;
}

.collection-selected-card-favorite {
  border-color: rgba(213, 138, 43, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 247, 221, 0.9), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(213, 138, 43, 0.1);
}

.customer-favorite-progress {
  margin: 6px 0 0;
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.customer-favorite-progress-mini {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}

.collection-selected-top {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.collection-selected-avatar {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  object-fit: cover;
}

.collection-selected-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
}

.collection-selected-copy .customer-meta {
  margin-top: 2px;
}

.collection-selected-bio {
  margin: 6px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.48;
  color: var(--muted);
}

.collection-selected-toggle {
  margin-top: 2px;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  width: fit-content;
}

.collection-selected-toggle:hover,
.collection-selected-toggle:focus-visible {
  transform: none;
  background: transparent;
  text-decoration: underline;
}

.customer-card-top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.customer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.collection-selected-card .collection-selected-avatar {
  width: 240px;
  height: 240px;
}

.customer-name {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.customer-bio {
  margin: 8px 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.customer-card .customer-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.menu-card {
  min-height: 150px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 240, 223, 0.88));
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.06);
}

.menu-card-visual {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 10px;
}

.logo-square {
  object-fit: cover;
}

.opening-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.95rem, 4.2vw, 2.7rem);
  line-height: 1;
  color: var(--accent);
}

.opening-title-small {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.opening-title-small-bottom {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  margin-top: 2px;
}

.opening-intro {
  display: grid;
  gap: 8px;
  text-align: center;
}

.opening-start-panel,
.opening-session-panel {
  margin-bottom: 18px;
}

.opening-start-shell {
  display: grid;
  gap: 14px;
}

.opening-start-heading {
  display: grid;
  gap: 8px;
  text-align: center;
}

.opening-title-copy {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

.opening-title-helper {
  margin: 0 auto;
  max-width: 44rem;
}

.opening-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.22fr) minmax(330px, 382px);
  gap: 24px;
  align-items: stretch;
}

.opening-start-hero {
  overflow: hidden;
  border-radius: 28px;
  min-height: 100%;
}

.opening-start-hero .hero-banner-image-start {
  height: 100%;
  min-height: 100%;
}

.opening-start-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.opening-start-side-wide {
  gap: 16px;
}

.opening-start-helper {
  margin: 0;
  text-align: center;
}

.opening-guest-stack {
  display: grid;
  gap: 14px;
}

.opening-guest-section-title {
  margin: 0;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

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

.opening-guest-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(133, 105, 72, 0.14);
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.08);
}

.opening-guest-card-placeholder {
  grid-template-columns: 1fr;
  background:
    linear-gradient(180deg, rgba(252, 247, 237, 0.98), rgba(243, 234, 215, 0.98));
  border: 1px solid rgba(133, 105, 72, 0.14);
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.08);
  min-height: 152px;
}

.opening-guest-card-starter {
  grid-template-columns: 136px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.98), rgba(243, 235, 221, 0.98));
  border: 1px solid rgba(133, 105, 72, 0.14);
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.08);
  min-height: 152px;
}

.opening-guest-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.opening-guest-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 9px 10px 10px;
}

.opening-guest-copy-placeholder {
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
}

.opening-guest-copy-starter {
  flex-direction: column;
  gap: 6px;
  padding: 16px 15px;
  background: transparent;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.opening-guest-photo-starter {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opening-guest-name {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}

.opening-guest-copy-demo {
  flex-direction: column;
  gap: 5px;
}

.opening-guest-caption {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.sales-demo-expectation {
  max-width: 1080px;
  margin: 10px auto 0;
  padding: 0 12px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.opening-guest-kicker {
  margin: 0;
  color: #a25b13;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.opening-guest-name-placeholder {
  color: #1f463a;
  font-size: 1.08rem;
  line-height: 1.12;
  max-width: 12ch;
}

.opening-guest-name-starter {
  color: #1f463a;
  font-size: 1.02rem;
  line-height: 1.06;
  max-width: 12ch;
  text-align: left;
}

.opening-guest-subcopy {
  margin: 0;
  color: #5b6f63;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
  max-width: 18ch;
}

.opening-guest-subcopy-starter {
  max-width: 16ch;
  color: #5b6f63;
  text-align: left;
}

.opening-start-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.opening-start-actions-bottom {
  margin-top: -2px;
}

.opening-start-actions-bottom .button:first-child {
  min-width: 340px;
}

.opening-start-side .opening-start-actions .button {
  width: 100%;
}

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

.opening-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(93, 116, 105, 0.14);
  box-shadow: 0 10px 22px rgba(39, 55, 44, 0.08);
  height: 100%;
}

.opening-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening-card-body {
  flex: 1;
  min-height: 74px;
  padding: 8px 8px 10px;
  text-align: left;
  background: linear-gradient(180deg, rgba(191, 30, 23, 0.96), rgba(157, 34, 24, 0.96));
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opening-card-name {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.opening-card-badge {
  margin: 6px auto 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

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

.opening-food-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(93, 116, 105, 0.14);
  height: 100%;
}

.opening-food-label {
  margin: 0;
  min-height: 68px;
  padding: 8px 10px 10px;
  text-align: center;
  color: #9d2218;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-shell {
  display: grid;
  gap: 16px;
}

.customer-reveal-shell {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.customer-reveal-shell-demo {
  gap: 14px;
}

.customer-reveal-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.customer-reveal-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(246, 238, 219, 0.9)),
    rgba(255, 251, 243, 0.92);
  box-shadow: 0 18px 42px rgba(39, 55, 44, 0.12);
  text-align: left;
}

.customer-reveal-card-demo {
  margin-top: -6px;
}

.customer-reveal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(93, 116, 105, 0.16);
  background: #fff;
  box-shadow: 0 14px 28px rgba(39, 55, 44, 0.12);
}

.customer-reveal-details {
  display: grid;
  gap: 18px;
}

.customer-reveal-rarity {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-reveal-name {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.customer-reveal-card-demo .customer-reveal-name {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.customer-reveal-card-demo .customer-reveal-details {
  gap: 24px;
}

.customer-reveal-card-demo .customer-reveal-rarity {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.customer-reveal-earnings {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.customer-reveal-earnings p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.customer-reveal-earnings strong {
  color: var(--ink);
  font-size: 1.1em;
}

.customer-reveal-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.favorite-progress-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(213, 138, 43, 0.26);
  background: rgba(255, 247, 221, 0.72);
}

.favorite-progress-note .copy,
.favorite-progress-note .helper {
  margin: 0;
}

.favorite-progress-note-complete {
  border-color: rgba(213, 138, 43, 0.42);
  background: rgba(255, 247, 221, 0.9);
}

.customer-reveal-actions {
  justify-content: flex-start;
}

.customer-reveal-card-demo .customer-reveal-actions {
  margin-top: 22px;
}

.question-main-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.question-main-layout-no-image {
  grid-template-columns: 1fr;
}

.question-media-panel,
.question-content-panel {
  display: grid;
  gap: 14px;
}

.question-media-panel {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.question-photo-question {
  width: 100%;
  max-width: none;
  max-height: 360px;
  display: block;
  margin: 0;
}

.question-customer-top {
  grid-template-columns: 80px minmax(0, 1fr);
}

.question-customer-avatar {
  width: 80px;
  height: 80px;
}

.result-hero-panel {
  padding: 10px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(93, 116, 105, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.94), rgba(246, 238, 219, 0.9)),
    rgba(255, 251, 243, 0.9);
  box-shadow: 0 16px 34px rgba(39, 55, 44, 0.08);
}

.result-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  display: block;
}

.result-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: start;
}

.result-top-layout .result-hero-panel,
.result-top-layout .result-banner {
  height: auto;
}

.result-top-layout .result-banner {
  align-content: start;
  display: grid;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(47, 111, 82, 0.12);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.question-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(93, 116, 105, 0.14);
}

.question-text {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.answer-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 0 16px;
  min-height: 58px;
  border-radius: 18px;
  white-space: normal;
}

.answer-button.correct {
  background: rgba(47, 111, 82, 0.14);
  border-color: rgba(47, 111, 82, 0.28);
}

.answer-button.wrong {
  background: rgba(197, 76, 56, 0.14);
  border-color: rgba(197, 76, 56, 0.28);
}

.answer-feedback {
  min-height: 24px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.feedback-reward-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  text-align: left;
}

.feedback-reward-copy {
  display: grid;
  gap: 6px;
}

.feedback-reward-copy .section-title {
  margin: 0;
  font-size: 1.2rem;
}

.feedback-reward-copy .copy,
.feedback-reward-status,
.feedback-reward-error {
  margin: 0;
}

.feedback-reward-customer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.feedback-reward-photo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.feedback-reward-form {
  display: grid;
  gap: 10px;
}

.feedback-survey-demo-intro {
  margin: 0 0 4px;
  max-width: 920px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.42;
}

.feedback-survey-demo-example {
  margin: 2px 0 0;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.feedback-survey-question {
  display: grid;
  gap: 6px;
}

.feedback-reward-textarea {
  min-height: 110px;
  resize: vertical;
}

.result-banner {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  color: #fffdf8;
  background: linear-gradient(135deg, var(--teal), var(--panel-strong));
}

.result-celebration {
  display: grid;
  gap: 4px;
}

.result-celebration-kicker {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 214, 0.88);
}

.result-celebration-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fffdf8;
}

.result-customer-spotlight {
  display: grid;
  grid-template-columns: minmax(176px, 228px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.result-customer-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  display: block;
}

.result-customer-copy {
  min-width: 0;
}

.result-banner h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-banner-demo .result-celebration-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.result-banner-demo .result-customer-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.result-banner .copy,
.result-banner .meta,
.result-banner .note,
.result-banner .customer-bio {
  color: rgba(255, 253, 248, 0.84);
}

.result-banner .customer-bio {
  margin-top: 6px;
}

.result-banner .customer-bio-expanded {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.result-metrics {
  display: grid;
  gap: 10px;
}

.result-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-metric-card {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fffdf8;
}

.result-metric-card-wide {
  grid-column: 1 / -1;
}

.result-metric-label {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.05;
  color: rgba(255, 253, 248, 0.82);
  white-space: nowrap;
}

.result-metric-value {
  font-family: Arial, sans-serif;
  font-size: clamp(0.98rem, 2.2vw, 1.15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fffdf8;
  white-space: nowrap;
}

.result-screen {
  display: grid;
}

.result-screen-return-actions .divider {
  margin-bottom: 14px;
}

.result-screen-return-actions .result-followup-actions {
  justify-content: center;
}

.result-screen-return-actions .result-followup-actions .button {
  min-width: 200px;
}

.result-followup-card {
  margin-top: 0;
}

.result-net-worth-prompt {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-color: rgba(47, 111, 82, 0.18);
  background: rgba(47, 111, 82, 0.08);
}

.result-net-worth-prompt .section-title {
  margin: 0;
  font-size: 1.2rem;
}

.result-net-worth-prompt .copy {
  margin: 0;
}

.result-bio-toggle {
  margin-top: 8px;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.94);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  text-align: left;
  width: fit-content;
}

.result-bio-toggle:hover,
.result-bio-toggle:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  transform: none;
  background: transparent;
}

.text-button {
  cursor: pointer;
}

.collection-grid .customer-card .chip-row {
  gap: 8px;
}

.collection-grid .customer-card .chip {
  min-height: 32px;
}

.collection-grid .customer-card .note {
  margin-top: 2px;
}

.leaderboard-row .leaderboard-value {
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.result-save-mobile-note {
  display: none;
}

.divider {
  height: 1px;
  background: rgba(93, 116, 105, 0.14);
  margin: 18px 0;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a,
.legal-form-note a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.legal-page {
  max-width: 980px;
}

.legal-panel {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}

.legal-section {
  display: grid;
  gap: 8px;
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.legal-section p,
.legal-section li {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.legal-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 960px) {
  body.mobile-hub-overview-only {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .mobile-hub-header {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
  }

  .mobile-hub-title-panel {
    padding: 12px 12px 10px;
  }

  .mobile-hub-tabs-active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    justify-content: center;
    align-items: center;
  }

  .mobile-hub-tabs .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
    width: auto;
  }

  .app-shell {
    padding: 16px 12px 24px;
    min-height: 100dvh;
  }

  .opening-session-panel {
    min-height: calc(100dvh - 96px);
  }

  #result-panel {
    display: flex;
  }

  #result-panel .result-screen {
    flex: 1;
    min-height: 0;
  }

  .brand {
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .hero-grid,
  .grid-two,
  .stat-grid,
  .question-main-layout {
    grid-template-columns: 1fr;
  }

  .opening-start-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .opening-start-hero {
    min-height: 0;
  }

  .opening-start-side {
    gap: 10px;
  }

  .opening-start-shell {
    gap: 10px;
  }

  .opening-start-heading .kicker,
  .opening-title-small-bottom {
    display: none;
  }

  .top-actions {
    display: none;
  }

  .topbar {
    margin-bottom: 8px;
  }

  .hero-stack {
    gap: 12px;
  }

  .hero-grid {
    gap: 16px;
    min-height: 0;
    align-content: start;
  }

  html.restaurant-hub-mode .hero-content-panel-side {
    order: -1;
    padding: 8px;
  }

  html.restaurant-hub-mode .hero-content-panel-main {
    order: 1;
  }

  html.restaurant-hub-mode .hero-content-panel-side .hero-side,
  html.restaurant-hub-mode .hero-content-panel-side .hero-card {
    height: auto;
  }

  .hub-overview-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hub-overview-panel {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(93, 116, 105, 0.14);
  }

  .hub-overview-heading,
  .hub-overview-mini-row {
    border: 0;
    font: inherit;
    cursor: pointer;
  }

  .hub-overview-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: var(--green);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hub-overview-heading span:last-child {
    color: var(--blue);
    letter-spacing: 0;
    text-transform: none;
  }

  .hub-overview-list {
    display: grid;
    gap: 5px;
  }

  .hub-overview-mini-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 5px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .hub-overview-mini-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hub-overview-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
  }

  .hub-overview-leader-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .hub-overview-rank {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(47, 111, 82, 0.1);
    color: var(--green);
  }

  .hub-overview-current {
    background: rgba(214, 124, 21, 0.12);
    outline: 1px solid rgba(214, 124, 21, 0.28);
  }

  .app-shell {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .challenge-splash-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: calc(100vh - 92px);
    padding: 30px 18px;
  }

  .challenge-splash-actions {
    margin-top: 2px;
  }

  .challenge-splash-picker {
    max-width: none;
  }

  .challenge-splash-field .select,
  .challenge-splash-primary {
    width: 100%;
  }

  .challenge-splash-title {
    max-width: 14ch;
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  html.restaurant-hub-mode .challenge-splash-copy > .kicker,
  html.restaurant-hub-mode .challenge-splash-title {
    display: none;
  }

  .challenge-splash-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .challenge-owner-grid {
    grid-template-columns: 1fr;
  }

  .challenge-splash-step {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .challenge-splash-step h2 {
    font-size: 0.98rem;
  }

  .challenge-splash-step p {
    font-size: 0.86rem;
  }

  .challenge-splash-actions {
    gap: 10px;
  }

  .challenge-splash-actions .button {
    width: 100%;
  }

  #splash-my-restaurant-button,
  #splash-leaderboard-button {
    display: none;
  }

  .how-to-play-modal {
    align-items: end;
    padding: 10px;
  }

  .how-to-play-panel {
    max-height: calc(100dvh - 20px);
    padding: 20px 16px 16px;
    border-radius: 22px;
  }

  .how-to-play-topics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .how-to-play-topic {
    padding: 12px;
  }

  .how-to-play-topic p,
  .how-to-play-topic ul {
    font-size: 0.9rem;
  }

  .challenge-progress-strip {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .challenge-progress-item {
    justify-content: center;
  }

  .page-title {
    font-size: clamp(1rem, 5vw, 1.26rem);
    line-height: 1;
  }

  .hero-title-panel {
    padding: 14px 12px 12px;
  }

  .hero-title-panel .page-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    letter-spacing: -0.03em;
  }

  .hero-side {
    gap: 8px;
  }

  .hero,
  .panel {
    border-radius: 22px;
  }

  .hero,
  .panel {
    scroll-margin-top: 14px;
  }

  .hero-content-panel {
    padding: 12px;
    min-height: 0;
  }

  .panel-pad {
    padding: 14px 12px 12px;
  }

  .hero-profile-strip {
    align-items: flex-start;
    gap: 10px;
    padding: 11px 11px 12px;
  }

  .hero-profile-strip-compact {
    padding: 12px 14px 14px;
    gap: 9px;
  }

  .hero-profile-head {
    gap: 8px;
    flex-direction: column;
  }

  .hero-profile-head-compact {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .hero-profile-name {
    font-size: 1.02rem;
    line-height: 1.02;
  }

  .hero-profile-subline {
    display: none;
  }

  .hero-profile-subline-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0 0;
    font-size: 0.74rem;
    line-height: 1.08;
  }

  .hero-profile-detailline {
    display: none;
  }

  .hero-profile-detailline-compact {
    display: none;
  }

  .hero-profile-customer-status {
    display: none;
  }

  .hero-profile-meta {
    width: 100%;
    gap: 8px;
  }

  .hero-profile-meta-compact {
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .restaurant-value-breakdown {
    padding: 9px;
    border-radius: 14px;
  }

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

  .restaurant-value-breakdown-row {
    min-height: 34px;
    padding: 6px 7px;
  }

  .restaurant-expansion-image-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px;
    border-radius: 14px;
  }

  .restaurant-expansion-image-copy {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .restaurant-expansion-image-copy strong {
    font-size: 0.94rem;
    text-align: right;
  }

  .restaurant-expansion-art {
    justify-self: center;
    width: min(100%, 330px);
  }

  .restaurant-expansion-art-counter-service {
    width: min(100%, 350px);
  }

  .restaurant-expansion-art-small-diner {
    width: min(100%, 350px);
  }

  .restaurant-expansion-art-family-restaurant {
    width: min(100%, 360px);
  }

  .restaurant-expansion-art-regional-favorite {
    width: min(100%, 360px);
  }

  .restaurant-expansion-art-local-landmark {
    width: min(100%, 360px);
  }

  .restaurant-expansion-image-name {
    font-size: clamp(0.46rem, 2.55vw, 0.68rem);
  }

  .restaurant-expansion-art-counter-service .restaurant-expansion-image-name {
    font-size: clamp(0.5rem, 2.9vw, 0.76rem);
  }

  .restaurant-expansion-art-small-diner .restaurant-expansion-image-name {
    font-size: clamp(0.46rem, 2.55vw, 0.68rem);
  }

  .restaurant-expansion-art-family-restaurant .restaurant-expansion-image-name {
    font-size: clamp(0.46rem, 2.55vw, 0.68rem);
  }

  .restaurant-expansion-art-regional-favorite .restaurant-expansion-image-name {
    font-size: clamp(0.44rem, 2.4vw, 0.64rem);
  }

  .restaurant-expansion-art-local-landmark .restaurant-expansion-image-name {
    font-size: clamp(0.4rem, 2.2vw, 0.58rem);
  }

  .restaurant-expansion-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 9px;
    border-radius: 14px;
  }

  .restaurant-expansion-preview > div {
    min-height: 38px;
  }

  .restaurant-upgrade-preview {
    padding: 9px;
    border-radius: 14px;
  }

  .restaurant-upgrade-preview-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-upgrade-preview-card {
    min-height: 0;
  }

  .hero-stat-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .hero-profile-meta-compact .hero-stat-chip {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .hero-profile-actions-top {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero-profile-actions-top .button {
    width: 100%;
    min-height: 38px;
    padding-inline: 10px;
    white-space: normal;
    text-align: center;
  }

  .hero-stat-chip-compact {
    display: inline-flex;
  }

  .hero-profile-meta .button {
    width: 100%;
  }

  .hero-profile-edit-row {
    width: 100%;
  }

  .hero-profile-edit-row .button,
  .hero-profile-edit-row .input {
    width: 100%;
  }
  .hero-card-strong {
    gap: 12px;
    padding: 14px;
  }

  .customer-reveal-shell {
    gap: 14px;
    text-align: center;
  }

  .customer-reveal-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
    border-radius: 20px;
    text-align: center;
  }

  .customer-reveal-photo {
    max-width: 260px;
    margin: 0 auto;
    border-radius: 18px;
  }

  .customer-reveal-details {
    gap: 12px;
  }

  .customer-reveal-name {
    font-size: 2rem;
  }

  .customer-reveal-earnings {
    padding: 10px;
  }

  .customer-reveal-earnings p {
    font-size: 0.95rem;
  }

  .customer-reveal-actions {
    justify-content: center;
  }

  .customer-reveal-actions .button {
    width: 100%;
  }

  .question-shell {
    padding: 10px;
  }

  .question-shell .hero-card {
    padding: 10px;
  }

  .question-shell .customer-card-top {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .question-shell .customer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .question-shell .customer-bio {
    display: none;
  }

  .question-shell .chip-row {
    gap: 6px;
    margin-top: 6px;
  }

  .question-shell .chip {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .question-shell .question-card {
    padding: 10px;
    border-radius: 14px;
  }

  .question-photo-question {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  @media (min-width: 700px) {
    .question-media-panel {
      display: grid;
      place-items: center;
    }

    .question-photo-question {
      width: min(100%, 420px);
      height: min(70vw, 420px);
      max-height: none;
    }
  }

  .question-shell .question-text {
    font-size: clamp(0.95rem, 4.4vw, 1.15rem);
    line-height: 1.04;
  }

  .question-shell .answer-grid {
    gap: 6px;
  }

  .question-shell .answer-button {
    min-height: 34px;
    border-radius: 11px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .opening-intro {
    gap: 8px;
  }

  .opening-start-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .opening-start-side {
    gap: 12px;
  }

  .opening-start-shell {
    gap: 14px;
  }

  .opening-start-heading {
    gap: 10px;
  }

  .opening-title-copy {
    font-size: clamp(0.92rem, 4.8vw, 1.05rem);
    line-height: 1.24;
  }

  .opening-title-helper {
    max-width: 28rem;
    font-size: 0.76rem;
    line-height: 1.16;
  }

  .hero-banner-image-start {
    aspect-ratio: 16 / 9;
  }

  .opening-guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: center;
  }

  .opening-guest-grid .opening-guest-card:nth-child(n + 3) {
    display: none;
  }

  .opening-guest-card {
    position: relative;
    grid-template-columns: 1fr;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
  }

  .opening-guest-card-starter {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    justify-self: center;
    grid-column: 1 / -1;
  }

  .opening-guest-copy {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    min-height: 46px;
    padding: 28px 8px 8px;
    background: linear-gradient(180deg, rgba(28, 20, 14, 0), rgba(28, 20, 14, 0.78));
    pointer-events: none;
  }

  .opening-guest-copy-starter {
    min-height: 0;
    padding: 10px 10px 11px;
    align-items: center;
    text-align: center;
  }

  .opening-guest-photo {
    min-height: 0;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .opening-guest-photo-starter {
    min-height: 0;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .opening-guest-name {
    color: #fffdf8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.62);
    font-size: 0.76rem;
    line-height: 1.08;
    max-width: 10ch;
  }

  .opening-guest-card-demo {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(133, 105, 72, 0.14);
  }

  .opening-guest-card-demo .opening-guest-copy-demo {
    position: static;
    min-height: 58px;
    padding: 8px 7px 9px;
    background: transparent;
    pointer-events: auto;
  }

  .opening-guest-card-demo .opening-guest-name {
    color: var(--ink);
    text-shadow: none;
    max-width: none;
  }

  .opening-guest-card-demo .opening-guest-caption {
    color: var(--muted);
    text-shadow: none;
  }

  .opening-guest-name-starter {
    font-size: 0.76rem;
    line-height: 1.08;
    max-width: none;
  }

  .opening-guest-subcopy-starter {
    display: none;
  }

  .opening-title-small-bottom {
    font-size: 0.95rem;
    margin-top: 4px;
  }

  .opening-start-actions-bottom {
    margin-top: 2px;
  }

  .opening-start-actions-bottom .button:first-child {
    min-width: min(100%, 280px);
  }

  .opening-start-panel,
  .opening-session-panel {
    margin-bottom: 8px;
  }

  .opening-title {
    font-size: clamp(1.14rem, 5.4vw, 1.42rem);
  }

  .opening-title-small {
    font-size: 0.8rem;
  }

  .opening-grid,
  .opening-food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .opening-card,
  .opening-food-card {
    border-radius: 12px;
  }

  .opening-card-body {
    min-height: 70px;
    padding: 6px 6px 8px;
  }

  .opening-card-name {
    font-size: 0.74rem;
    min-height: 2em;
  }

  .opening-card-badge {
    margin-top: 3px;
    min-height: 20px;
    font-size: 0.58rem;
    padding: 0 6px;
  }

  .opening-food-label {
    min-height: 46px;
    padding: 6px 7px 7px;
    font-size: 0.64rem;
  }

  .hero-directory-showcase {
    padding: 8px;
    border-radius: 18px;
  }

  .hero-directory-stack {
    gap: 8px;
  }

  .hero-directory-item {
    padding: 0;
    gap: 6px;
    border: 0;
    background: transparent;
  }

  .hero-directory-item-compact {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  .hero-directory-image {
    width: 66px;
    border-radius: 10px;
  }

  .hero-directory-showcase-compact .hero-directory-image {
    display: none;
  }

  .hero-directory-picker .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .hero-directory-item h2 {
    display: none;
  }

  .hero-directory-button {
    margin-top: 4px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.68rem;
    width: 100%;
  }

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

  .hero-directory-item-compact {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-directory-showcase-compact {
    gap: 6px;
  }

  .hero-directory-picker {
    gap: 4px;
  }

  .hero-directory-note {
    display: none;
  }

  .hero-directory-button {
    min-height: 28px;
    margin-top: 4px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .hero-directory-select {
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    font-family: Arial, sans-serif !important;
    font-size: 0.84rem;
    appearance: none;
    -webkit-appearance: none;
  }

  .top-actions .button,
  .form-actions .button,
  .section-actions .button {
    width: 100%;
  }

  .leaderboard-head {
    flex-direction: column;
  }

  .leaderboard-controls {
    width: 100%;
  }

  .leaderboard-actions {
    display: flex;
  }

  .leaderboard-actions .button {
    width: 100%;
  }

  .leaderboard-select {
    width: 100%;
    min-width: 0;
  }

  .leaderboard-tabs .button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .leaderboard-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 7px 9px;
  }

  .leaderboard-rank {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  .leaderboard-name {
    font-size: 0.82rem;
  }

  .leaderboard-sub,
  .leaderboard-value {
    font-size: 0.74rem;
  }

  .leaderboard-scroll {
    max-height: 180px;
  }

  .question-shell {
    padding: 6px;
  }

  .question-shell .section-actions {
    gap: 6px;
    align-items: flex-start;
  }

  .question-shell .section-title {
    font-size: 1rem;
    line-height: 1.02;
  }

  .question-shell .copy {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .question-main-layout {
    gap: 4px;
  }

  .question-main-layout-no-image .question-content-panel {
    gap: 12px;
  }

  .question-main-layout-no-image .question-card {
    padding: 12px;
  }

  .question-main-layout-no-image .question-text {
    font-size: clamp(1rem, 4.8vw, 1.24rem);
    line-height: 1.08;
  }

  .question-main-layout-no-image .answer-grid {
    gap: 8px;
  }

  .question-main-layout-no-image .answer-button {
    min-height: 48px;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .question-media-panel,
  .question-content-panel {
    gap: 8px;
  }

  .question-media-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .question-photo-question {
    max-height: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .question-card {
    padding: 8px;
    border-radius: 14px;
  }

  .question-text {
    font-size: clamp(0.92rem, 4.4vw, 1.12rem);
    line-height: 1.02;
  }

  .answer-grid {
    gap: 4px;
  }

  .answer-button {
    min-height: 34px;
    border-radius: 11px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .question-customer-top,
  .customer-card-top {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 7px;
  }

  .question-customer-avatar,
  .customer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .question-shell .hero-card {
    padding: 8px;
  }

  .question-shell .hero-card .chip-row {
    display: none;
  }

  .question-shell .customer-name {
    font-size: 0.82rem;
    line-height: 1.02;
  }

  .progress-track {
    height: 8px;
  }

  .answer-feedback {
    min-height: 18px;
    font-size: 0.78rem;
    line-height: 1.14;
  }

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

  .stat-grid-tight .stat-card {
    min-height: 72px;
    padding: 10px 10px 9px;
  }

  .stat-grid-tight .stat-value {
    font-size: clamp(0.9rem, 3.7vw, 1.05rem);
  }

  .result-hero-image {
    min-height: 0;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
  }

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

  .result-screen {
    gap: 0;
  }

  .result-customer-spotlight {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .result-customer-image {
    width: 96px;
    max-width: none;
    height: 96px;
    object-fit: cover;
  }

  .result-banner {
    gap: 4px;
    padding: 8px;
  }

  .result-celebration-title {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .result-banner h2 {
    font-size: clamp(1rem, 4.4vw, 1.22rem);
  }

  .result-banner .copy {
    font-size: 0.8rem;
    line-height: 1.28;
  }

  .result-customer-copy {
    gap: 1px;
  }

  .result-customer-copy h2 {
    font-size: clamp(0.96rem, 4.4vw, 1.1rem);
    line-height: 1.02;
  }

  .result-banner-demo .result-customer-copy h2 {
    font-size: clamp(1.18rem, 6vw, 1.45rem);
  }

  .result-bio-toggle {
    font-size: 0.76rem;
  }

  .result-metrics {
    gap: 6px;
  }

  .result-metric-row {
    gap: 6px;
  }

  .result-metric-card {
    min-height: 44px;
    padding: 8px 10px;
    gap: 6px;
  }

  .result-metric-label {
    font-size: 0.62rem;
  }

  .result-metric-value {
    font-size: clamp(0.8rem, 3.2vw, 0.94rem);
  }

  #result-panel .result-banner .customer-bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  #result-panel .result-banner .customer-bio-expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  #result-panel .hero-card {
    padding: 8px;
  }

  #result-panel .hero-card .button-row {
    gap: 5px;
  }

  #result-panel .hero-card .section-title {
    font-size: 0.86rem;
    line-height: 1.04;
  }

  #result-panel .hero-card .copy {
    display: none;
  }

  .result-screen-guest-prompt .result-followup-card,
  .result-screen-register-form .result-followup-card {
    margin-top: 0;
  }

  .result-screen-guest-prompt .result-banner {
    gap: 8px;
    padding: 11px;
  }

  .result-screen-guest-prompt .result-customer-spotlight {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 9px;
  }

  .result-screen-guest-prompt .result-customer-image {
    width: 84px;
    height: 84px;
  }

  .result-screen-guest-prompt .result-celebration-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .result-screen-guest-prompt .result-celebration-title {
    font-size: clamp(0.94rem, 4vw, 1.08rem);
  }

  .result-screen-guest-prompt .result-customer-copy h2 {
    font-size: clamp(0.88rem, 4vw, 1rem);
  }

  .result-screen-guest-prompt .result-banner .copy,
  .result-screen-guest-prompt .result-banner .customer-bio {
    font-size: 0.74rem;
    line-height: 1.22;
  }

  .result-screen-guest-prompt .result-bio-toggle {
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .result-screen-guest-prompt .result-metrics {
    gap: 5px;
  }

  .result-screen-guest-prompt .result-metric-row {
    gap: 5px;
  }

  .result-screen-guest-prompt .result-metric-card {
    min-height: 42px;
    padding: 7px 8px;
  }

  .result-screen-guest-prompt .result-metric-label {
    font-size: 0.6rem;
  }

  .result-screen-guest-prompt .result-metric-value {
    font-size: clamp(0.72rem, 3vw, 0.86rem);
  }

  .result-screen-guest-prompt .divider {
    margin: 10px 0;
  }

  .result-screen-guest-prompt .result-followup-card {
    padding: 14px 12px 16px !important;
    border-radius: 22px;
  }

  .result-screen-guest-prompt .result-followup-card .kicker {
    margin-bottom: 4px !important;
    font-size: 0.74rem;
  }

  .result-screen-guest-prompt .result-followup-card .section-title {
    font-size: 0.86rem !important;
    line-height: 1.06;
    margin-bottom: 8px !important;
  }

  .result-screen-guest-prompt .result-followup-card .copy {
    display: none;
  }

  body.result-screen-register-form #result-panel .result-followup-card .result-save-mobile-note {
    display: block;
    font-size: 0.82rem;
    line-height: 1.28;
  }

  .result-screen-guest-prompt .result-followup-card .button-row {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .result-screen-guest-prompt .result-followup-card .button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.72rem;
    flex: 1 1 0;
  }

  .result-screen-return-actions .result-top-layout {
    flex: 1;
    gap: 10px;
  }

  .result-screen-return-actions .result-banner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .result-screen-return-actions .result-followup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .result-screen-return-actions .result-followup-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .result-screen-return-actions .result-customer-spotlight {
    flex: 1;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
  }

  .result-screen-return-actions .result-customer-image {
    width: 118px;
    height: 118px;
  }

  .result-screen-return-actions .result-celebration-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .result-screen-return-actions .result-celebration-title {
    font-size: clamp(0.94rem, 4vw, 1.08rem);
  }

  .result-screen-return-actions .result-customer-copy h2 {
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  .result-screen-return-actions .result-banner .copy,
  .result-screen-return-actions .result-banner .customer-bio {
    font-size: 0.74rem;
    line-height: 1.18;
  }

  .result-screen-return-actions .result-banner .customer-bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .result-screen-return-actions .result-banner .copy {
    display: none;
  }

  .result-screen-return-actions .result-banner .result-metrics {
    margin-top: 2px;
  }

  .result-screen-return-actions .result-metrics {
    gap: 6px;
  }

  .result-screen-return-actions .result-metric-row {
    gap: 6px;
  }

  .result-screen-return-actions .result-metric-card {
    min-height: 34px;
    padding: 5px 7px;
  }

  .result-screen-return-actions .result-metric-label {
    font-size: 0.62rem;
  }

  .result-screen-return-actions .result-metric-value {
    font-size: clamp(0.76rem, 3vw, 0.9rem);
  }

  .result-screen-return-actions .divider {
    margin: 12px 0;
  }

  .hero-card {
    padding: 10px;
  }

  .hero-card .copy,
  .hero-card .helper {
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .hero-card .button-row {
    gap: 8px;
  }

  .button {
    min-height: 40px;
  }

  .collection-selected-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .collection-selected-card-mobile {
    gap: 12px;
  }

  .collection-selected-copy-mobile {
    gap: 6px;
  }

  .collection-selected-card .collection-selected-avatar {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    justify-self: start;
  }

  .collection-selected-mobile-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .collection-selected-mobile-actions {
    display: grid;
    gap: 8px;
    align-content: start;
  }

  .collection-selected-mobile-actions .button {
    width: 100%;
  }

  .collection-selected-value {
    font-family: Arial, sans-serif;
    font-size: 1.18rem;
    line-height: 1;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.02em;
  }

  .collection-selected-rarity-chip {
    justify-self: start;
  }

  .customer-mini-summary {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 60px;
    padding: 8px;
  }

  .customer-avatar-compact {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .footer-note {
    display: none;
  }

  .hero-profile-strip,
  .hero-card,
  .hero-card-strong,
  .hero-directory-showcase,
  .compact-profile-card,
  .collection-action-bar,
  .collection-selected-card,
  .leaderboard-head,
  .leaderboard-scroll {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding: 12px 10px calc(88px + env(safe-area-inset-bottom));
  }

  .topbar {
    margin-bottom: 6px;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .mobile-hub-header {
    gap: 7px;
    margin-bottom: 8px;
  }

  .mobile-hub-title-panel {
    padding: 10px 12px 9px;
  }

  .mobile-hub-tabs-active {
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-hub-tabs .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .panel {
    border-radius: 20px;
  }

  .panel-pad {
    padding: 12px 10px;
  }

  .hero-card {
    border-radius: 18px;
  }

  .button {
    min-height: 38px;
    border-radius: 18px;
  }

  .opening-start-shell {
    gap: 11px;
  }

  .opening-start-heading {
    gap: 7px;
  }

  .opening-start-heading .kicker {
    display: none;
  }

  .opening-title {
    font-size: clamp(1.06rem, 5.1vw, 1.28rem);
    line-height: 1.02;
  }

  .opening-title-copy {
    font-size: clamp(0.86rem, 4.4vw, 0.98rem);
    line-height: 1.18;
  }

  .hero-banner-image-start {
    border-radius: 18px;
  }

  .opening-guest-grid {
    gap: 8px;
  }

  .opening-guest-photo {
    aspect-ratio: 1 / 1;
  }

  .opening-guest-copy {
    min-height: 38px;
    padding: 24px 7px 7px;
  }

  .opening-guest-name {
    font-size: 0.72rem;
    line-height: 1.02;
  }

  .opening-title-small-bottom {
    display: none;
  }

  .opening-start-actions-bottom {
    gap: 8px;
    margin-top: 0;
  }

  .opening-start-actions-bottom .button:first-child {
    min-width: 0;
    width: 100%;
  }

  .opening-start-actions-bottom .button {
    min-height: 40px;
  }

  .customer-reveal-shell {
    gap: 10px;
  }

  .customer-reveal-card {
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .customer-reveal-photo {
    max-width: min(100%, 220px);
    border-radius: 16px;
  }

  .customer-reveal-rarity {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .customer-reveal-name {
    font-size: clamp(1.55rem, 9vw, 2rem);
  }

  .customer-reveal-details {
    gap: 8px;
  }

  .customer-reveal-earnings {
    gap: 5px;
    padding: 9px;
    border-radius: 14px;
  }

  .customer-reveal-earnings p {
    font-size: 0.92rem;
  }

  .question-shell {
    gap: 8px;
    padding: 8px;
  }

  .question-shell .hero-card {
    padding: 9px;
  }

  .question-main-layout {
    gap: 8px;
  }

  .question-media-panel {
    padding: 8px;
    border-radius: 15px;
  }

  .question-photo-question {
    max-height: 232px;
    max-height: min(232px, 38vh);
    border-radius: 14px;
    object-fit: cover;
  }

  .question-card {
    padding: 8px 10px;
  }

  .question-text {
    font-size: clamp(0.98rem, 5.1vw, 1.18rem);
    line-height: 1.06;
  }

  .answer-grid {
    gap: 6px;
  }

  .answer-button {
    min-height: 38px;
    padding: 6px 9px;
    font-size: 0.78rem;
    line-height: 1.14;
  }

  .question-main-layout-no-image .answer-button {
    min-height: 44px;
  }

  .question-customer-top,
  .customer-card-top {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .question-customer-avatar,
  .customer-avatar {
    width: 40px;
    height: 40px;
  }

  .progress-track {
    height: 7px;
  }

  .result-hero-panel {
    padding: 8px;
    border-radius: 20px;
  }

  .result-hero-image {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 16px;
  }

  .result-screen-return-actions .result-banner {
    padding: 14px;
    border-radius: 22px;
  }

  .result-screen-return-actions .result-customer-spotlight {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .result-screen-return-actions .result-customer-image {
    width: 96px;
    height: 96px;
    border-radius: 18px;
  }

  .result-screen-return-actions .result-metric-row {
    gap: 6px;
  }

  .result-screen-return-actions .result-metric-card {
    min-height: 34px;
    padding: 5px 7px;
    border-radius: 14px;
  }

  .result-screen-return-actions .divider {
    margin: 10px 0;
  }

  .hero-profile-strip-compact,
  .collection-action-bar,
  .collection-selected-card {
    padding: 12px;
    border-radius: 18px;
  }

  .collection-tabs {
    gap: 8px;
  }

  .collection-tabs .button,
  .leaderboard-tabs .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .collection-selected-card .collection-selected-avatar {
    width: 96px;
    height: 96px;
  }

  .collection-selected-mobile-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .collection-selected-bio {
    font-size: 0.86rem;
    line-height: 1.34;
  }

  .collection-grid-compact {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-mini-summary {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    min-height: 94px;
    padding: 9px;
  }

  .customer-avatar-compact {
    width: 40px;
    height: 40px;
  }

  .customer-mini-copy .customer-name {
    font-size: 0.86rem;
    line-height: 1.02;
  }

  .customer-meta {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .customer-favorite-progress-mini {
    font-size: 0.66rem;
    line-height: 1.12;
  }

  .leaderboard-head {
    gap: 10px;
  }

  .leaderboard-tabs {
    gap: 8px;
  }

  .leaderboard-scroll {
    max-height: none;
    padding-bottom: 8px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sales-demo-cta-note {
    max-width: none;
    text-align: left;
  }

  .sales-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px), (max-height: 700px) and (max-width: 480px) {
  .app-shell {
    padding-inline: 8px;
  }

  .panel-pad {
    padding: 10px 8px;
  }

  .opening-start-shell {
    gap: 9px;
  }

  .opening-title-copy {
    font-size: 0.86rem;
  }

  .hero-banner-image-start {
    aspect-ratio: 16 / 8.8;
  }

  .opening-guest-copy {
    min-height: 34px;
  }

  .opening-guest-card-demo .opening-guest-copy-demo {
    min-height: 54px;
    padding: 7px 6px 8px;
  }

  .opening-start-actions-bottom .button {
    min-height: 38px;
  }

  .customer-reveal-photo {
    max-width: 190px;
  }

  .question-photo-question {
    max-height: 210px;
    max-height: min(210px, 35vh);
  }

  .answer-button {
    min-height: 36px;
  }

  .collection-grid-compact {
    gap: 8px;
  }

  .customer-mini-summary {
    min-height: 90px;
    padding: 8px;
    gap: 7px;
  }

  .customer-mini-copy .customer-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 340px) {
  .result-screen-return-actions .result-followup-actions {
    grid-template-columns: 1fr;
  }
}
