/*
 * Final UX layer. New visual changes live here so the older prototype rules in
 * styles.css do not keep overriding one another while the pilot is validated.
 */

html {
  background: #070b10;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  --ink-soft: #b7c0c1;
  --muted: #919da8;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(root) {
    animation-duration: 180ms;
    animation-timing-function: ease-out;
  }

  ::view-transition-old(root) {
    animation: none;
  }

  ::view-transition-new(root) {
    animation: page-crossfade-in 180ms ease-out both;
  }
}

@keyframes page-crossfade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* The mark stays recognisable at favicon and phone-header sizes. */
.brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 0;
  border-radius: 0;
  background: url("/assets/portal-radar-mark.svg?v=1") center / contain no-repeat;
  box-shadow: none;
}

.brand__mark i,
.brand__mark::after {
  display: none;
}

.brand__word {
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand__word > span {
  display: inline-block;
  margin-left: 0.14em;
  color: var(--quest-accent, var(--lime));
}

.site-header > .brand {
  margin-left: 6px;
}

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

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--quest-accent, var(--lime)) 65%, white);
  outline-offset: 3px;
}

.topline {
  min-height: 30px;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.home-nav-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 22, 30, 0.78);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.header-actions .home-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  background: rgba(24, 34, 44, 0.96);
}

.header-actions .home-nav-link--active,
.header-actions .home-nav-link[aria-current="page"] {
  border-color: color-mix(in srgb, var(--quest-accent, var(--lime)) 58%, transparent);
  color: #10160d;
  background: var(--quest-accent, var(--lime));
}

.eyebrow,
.catalog-card__title span {
  font-size: 11px;
}

.breadcrumbs,
.quest-switcher a {
  font-size: 12px;
}

.location-switcher {
  display: flex;
  margin: 0 0 14px;
  padding: 11px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 21, 29, 0.86);
}

.location-switcher[hidden] {
  display: none;
}

.location-switcher__head {
  display: grid;
  min-width: 215px;
  gap: 3px;
}

.location-switcher__head strong {
  color: var(--ink);
  font-size: 12px;
}

.location-switcher__head span {
  color: var(--muted);
  font-size: 10px;
}

.location-switcher .quest-switcher {
  margin: 0;
  justify-content: flex-end;
}

.finder-field > span,
.section-label > span {
  font-size: 11px;
}

.finder-field input,
.finder-field select {
  min-height: 28px;
  font-size: 14px;
}

/* The formatted label replaces the native date text only on phones. */
.finder-date-display {
  display: none;
}

.finder-button {
  min-height: 58px;
  font-size: 14px;
}

.trust-row {
  font-size: 12px;
}

.trust-row i {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.catalog-card__format,
.catalog-card__rating {
  font-size: 10px;
  white-space: nowrap;
}

.catalog-card__rating {
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card__facts b {
  font-size: 12px;
}

.catalog-card__facts small {
  font-size: 10px;
}

.catalog-card__facts {
  grid-template-columns: repeat(3, 1fr);
}

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

.quest-level {
  display: flex;
  min-width: 0;
  padding: 10px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 12, 18, 0.54);
}

.quest-level__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.quest-level__copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quest-level__copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-level__scale {
  display: flex;
  min-width: 54px;
  flex: 0 1 88px;
  gap: 3px;
}

.quest-level__scale i {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #27313a;
}

.quest-level__scale i.is-active {
  background: var(--quest-accent, var(--lime));
  box-shadow: 0 0 8px color-mix(in srgb, var(--quest-accent, var(--lime)) 30%, transparent);
}

.catalog-card__levels {
  margin-bottom: 12px;
}

.catalog-card__levels .quest-level {
  min-height: 61px;
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}

.catalog-card__levels .quest-level__copy b {
  white-space: normal;
}

.catalog-card__levels .quest-level__scale {
  width: 100%;
  min-width: 0;
  flex-basis: auto;
}

.quest-levels--detail {
  margin: -8px 0 22px;
}

.catalog-card__lead {
  min-height: 42px;
  color: var(--ink-soft);
  font-size: 13px;
}

.catalog-card__address,
.catalog-card__schedule,
.catalog-card__price span {
  font-size: 11px;
}

.catalog-card__link {
  min-height: 48px;
  font-size: 13px;
}

.catalog-card__schedule .schedule-time {
  min-height: 25px;
  padding-inline: 9px;
  align-items: center;
}

.quest-facts span,
.address-card span,
.price span,
.section-label small,
.slot-legend,
.booking-note {
  font-size: 11px;
}

.tags span,
.address-card strong,
.description summary {
  font-size: 12px;
}

.description p {
  font-size: 14px;
}

.quest-disclosures {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.34);
}

.pre-game {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 13, 19, 0.46);
}

.pre-game__head {
  display: flex;
  min-height: 58px;
  padding: 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pre-game__head .eyebrow {
  margin-bottom: 3px;
  color: var(--quest-accent);
  font-size: 9px;
}

.pre-game__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.pre-game__route {
  display: inline-flex;
  min-height: 32px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--quest-accent) 45%, var(--line));
  border-radius: 999px;
  color: #11160d;
  background: var(--quest-accent);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.pre-game__route span {
  font-size: 12px;
}

.pre-game__list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  list-style: none;
}

.pre-game__list li {
  display: grid;
  min-width: 0;
  padding: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.pre-game__list li + li {
  border-left: 1px solid var(--line);
}

.pre-game__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--quest-accent) 38%, var(--line));
  border-radius: 9px;
  color: var(--quest-accent);
  background: color-mix(in srgb, var(--quest-accent) 8%, transparent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.pre-game__list div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pre-game__list strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.pre-game__list div > span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.quest-disclosures .description {
  border: 0;
}

.quest-disclosures .description + .description {
  border-top: 1px solid var(--line);
}

.quest-disclosures .description summary {
  min-height: 50px;
  padding: 12px 14px;
  transition: color 150ms ease, background 150ms ease;
}

.quest-disclosures .description summary:hover,
.quest-disclosures .description[open] summary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}

.quest-disclosures .description summary:focus-visible {
  outline: 0;
  box-shadow: inset 3px 0 0 var(--quest-accent);
}

.quest-disclosures .description > div {
  padding: 2px 14px 15px;
}

.quest-disclosures .description p:first-child {
  margin-top: 0;
}

.quest-disclosures .description p:last-child {
  margin-bottom: 0;
}

.organizer-details__content {
  display: grid;
  gap: 12px;
}

.organizer-details__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 16px;
}

.organizer-details__heading span {
  color: var(--quest-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.organizer-details__heading strong {
  color: var(--ink);
  font-size: 13px;
}

.organizer-details__requisites {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.organizer-details__requisites div {
  display: flex;
  min-width: 0;
  gap: 6px;
}

.organizer-details__requisites dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.organizer-details__requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.organizer-details__contacts {
  display: flex;
  padding-top: 10px;
  flex-wrap: wrap;
  gap: 7px 15px;
  border-top: 1px solid rgba(145, 157, 168, 0.18);
}

.organizer-details__contacts a {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-decoration-color: color-mix(in srgb, var(--quest-accent) 55%, transparent);
  text-underline-offset: 3px;
}

.organizer-details__contacts a:hover {
  color: var(--quest-accent);
}

.live-status {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 10px;
  white-space: nowrap;
}

.date-button {
  min-height: 48px;
}

.date-button span {
  font-size: 10px;
}

.date-button strong {
  font-size: 15px;
}

.date-week-button,
.date-picker {
  min-height: 40px;
}

.counter {
  height: 42px;
}

.mode-options button strong {
  font-size: 12px;
}

.mode-options button span {
  font-size: 10px;
}

.slot-button {
  min-height: 52px;
  font-size: 14px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
}

.mobile-booking-jump,
.mobile-filter-jump {
  display: none;
}

.form-field > span {
  font-size: 11px;
}

.form-field input {
  min-height: 48px;
  font-size: 15px;
}

.consent-field {
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
}

.consent-field input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.marketing-optin {
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}

.marketing-optin summary {
  display: flex;
  min-height: 44px;
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.marketing-optin summary::-webkit-details-marker {
  display: none;
}

.marketing-optin summary::after {
  color: var(--quest-accent);
  content: "+";
  font-size: 18px;
}

.marketing-optin[open] summary::after {
  content: "−";
}

.marketing-optin summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.marketing-optin .consent-field--optional {
  margin: 0;
  padding: 4px 0 13px;
  border: 0;
}

.footer-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

.booking-trust-band {
  display: grid;
  margin-top: 26px;
  padding: 18px 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 25, 36, 0.72);
}

.booking-trust-band > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.booking-trust-band i {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0b1408;
  background: var(--lime);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.booking-trust-band p {
  display: grid;
  margin: 0;
  gap: 2px;
}

.booking-trust-band strong {
  color: var(--ink);
  font-size: 12px;
}

.booking-trust-band span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.quest-page-loading {
  display: none;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quest-page-loading i {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: quest-page-spin 0.7s linear infinite;
}

.quest-loading .quest-page-loading,
.quest-load-failed .quest-page-loading {
  display: flex;
}

.quest-loading .breadcrumbs,
.quest-loading .location-switcher,
.quest-loading .quest-layout,
.quest-load-failed .breadcrumbs,
.quest-load-failed .location-switcher,
.quest-load-failed .quest-layout {
  display: none;
}

.quest-load-failed .quest-page-loading i {
  display: none;
}

@keyframes quest-page-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1041px) {
  .quest-layout {
    align-items: start;
  }

  .quest-info,
  .booking-card {
    height: auto;
    min-height: 0;
    align-self: start;
  }

  .booking-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topline {
    min-height: 30px;
    overflow: hidden;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .site-header .brand {
    font-size: 17px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .city {
    display: none;
  }

  .home-nav-link--booking {
    display: inline-flex;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(19, 26, 35, 0.85);
    font-size: 11px;
  }

  .home-hero .eyebrow,
  .catalog-head .eyebrow {
    font-size: 11px;
  }

  .finder-field {
    min-height: 66px;
  }

  .trust-row {
    gap: 12px;
    font-size: 13px;
  }

  .catalog-card__format,
  .catalog-card__rating {
    font-size: 10px;
  }

  .catalog-card__facts b {
    font-size: 13px;
  }

  .catalog-card__facts small {
    font-size: 10px;
  }

  .quest-level__copy b {
    font-size: 13px;
  }

  .catalog-card__lead {
    min-height: 44px;
    font-size: 14px;
  }

  .catalog-card__address,
  .catalog-card__schedule {
    font-size: 12px;
  }

  .catalog-card__link {
    min-height: 50px;
  }

  .quest-layout {
    scroll-margin-top: 12px;
  }

  .quest-info,
  .booking-card {
    order: 0;
  }

  .booking-card {
    scroll-margin-top: 10px;
  }

  .mobile-booking-jump {
    display: flex;
    min-height: 50px;
    margin: 2px 0 16px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    color: #11160d;
    background: var(--quest-accent);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }

  .quest-copy h1 {
    font-size: 42px;
  }

  .quest-lead {
    font-size: 15px;
  }

  .quest-facts strong {
    font-size: 14px;
  }

  .mode-options button {
    min-height: 60px;
  }

  .mobile-filter-jump {
    position: fixed;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 20;
    min-height: 46px;
    padding: 0 16px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(200, 255, 98, 0.45);
    border-radius: 999px;
    color: #11160d;
    background: var(--lime);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-filter-jump.is-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pilot-dialog {
    scrollbar-gutter: stable;
  }

  .pilot-dialog h2 {
    font-size: 28px;
  }

  .consent-field {
    font-size: 12px;
  }

  .booking-trust-band {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .topline__schedule {
    overflow: hidden;
    max-width: 190px;
    text-overflow: ellipsis;
  }

  .quest-copy h1 {
    font-size: 38px;
  }

  .live-status {
    padding-inline: 8px;
    font-size: 9px;
  }

  .mode-options button span {
    font-size: 9px;
  }

  .date-button span {
    font-size: 9px;
  }
}

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

.error-page {
  min-height: 100vh;
}

.error-main {
  display: grid;
  width: min(100% - 32px, 1180px);
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  place-items: center;
}

.error-card {
  display: grid;
  width: 100%;
  padding: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 50%, rgba(187, 255, 74, 0.12), transparent 34%),
    rgba(16, 22, 30, 0.94);
}

.error-code {
  color: var(--lime);
  font-size: clamp(108px, 17vw, 230px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.error-card h1 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
}

.error-card > div:last-child > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.error-secondary-link {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .error-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .error-code {
    font-size: 112px;
  }
}

.stats-main {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.stats-head {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.stats-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(44px, 7vw, 82px);
}

.stats-head > div:first-child > p:last-child,
.stats-panel__head > p {
  color: var(--muted);
}

.stats-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.stats-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-controls select,
.stats-controls button,
.stats-access input,
.stats-access button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
}

.stats-controls button,
.stats-access button {
  border-color: var(--lime);
  color: #11160d;
  background: var(--lime);
  cursor: pointer;
}

.stats-kpis {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stats-system {
  display: grid;
  margin-bottom: 14px;
  padding: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 22, 30, 0.94);
}

.stats-system article {
  display: flex;
  min-width: 0;
  min-height: 54px;
  padding: 9px 11px;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.stats-system article div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.stats-system small,
.stats-system > p {
  color: var(--muted);
  font-size: 10px;
}

.stats-system strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-system > p {
  margin: 0 7px;
  white-space: nowrap;
}

.stats-system__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #66717e;
  box-shadow: 0 0 0 5px rgba(102, 113, 126, 0.12);
}

.stats-system__dot.is-ok {
  background: #5ce0aa;
  box-shadow: 0 0 0 5px rgba(92, 224, 170, 0.12);
}

.stats-system__dot.is-warn {
  background: #ffc95c;
  box-shadow: 0 0 0 5px rgba(255, 201, 92, 0.12);
}

.stats-system__dot.is-error {
  background: #ff705c;
  box-shadow: 0 0 0 5px rgba(255, 112, 92, 0.12);
}

.stats-kpis article,
.stats-panel,
.stats-access {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 22, 30, 0.94);
}

.stats-kpis article {
  display: grid;
  min-height: 128px;
  padding: 18px;
  align-content: space-between;
}

.stats-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.stats-kpis strong {
  color: var(--lime);
  font-size: 40px;
  letter-spacing: -0.05em;
}

.stats-panel {
  margin-top: 18px;
  padding: 24px;
}

.stats-panel__head {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.stats-panel h2,
.stats-access h2 {
  margin: 4px 0 0;
  font-size: 30px;
}

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

.stats-panel table {
  width: 100%;
  border-collapse: collapse;
}

.stats-panel th,
.stats-panel td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.stats-panel th:first-child,
.stats-panel td:first-child,
.stats-panel tbody th {
  text-align: left;
}

.stats-panel thead th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-operations tbody th {
  min-width: 190px;
}

.stats-operations code {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.stats-status {
  display: inline-flex;
  min-height: 26px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(132, 145, 159, 0.12);
  font-size: 10px;
  font-weight: 800;
}

.stats-status--confirmed {
  color: #77e5b8;
  background: rgba(92, 224, 170, 0.1);
}

.stats-status--pending {
  color: #ffd57f;
  background: rgba(255, 201, 92, 0.1);
}

.stats-status--cancelled,
.stats-status--declined {
  color: #aeb7c1;
  background: rgba(132, 145, 159, 0.11);
}

.stats-status--delivery_failed,
.stats-status--booking_failed {
  color: #ffad9f;
  background: rgba(255, 112, 92, 0.11);
}

.stats-bookings > div:last-child {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-bookings > div:last-child > div {
  display: inline-flex;
  min-width: 150px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stats-bookings span,
.stats-empty,
.stats-loading {
  color: var(--muted);
}

.stats-bookings strong {
  color: var(--lime);
  font-size: 24px;
}

.stats-access {
  max-width: 680px;
  padding: 28px;
}

.stats-access > p:not(.eyebrow) {
  margin: 10px 0 20px;
  color: var(--muted);
}

.stats-access form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats-access form button {
  grid-column: 1 / -1;
}

.stats-access input {
  min-width: 0;
  flex: 1;
}

.stats-error {
  margin-top: 14px;
  color: #ff9585;
}

@media (max-width: 820px) {
  .stats-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .stats-kpis article:last-child {
    grid-column: 1 / -1;
  }

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

  .stats-system > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .stats-main {
    width: min(100% - 20px, 1180px);
    padding-top: 32px;
  }

  .stats-controls,
  .stats-access form {
    width: 100%;
    align-items: stretch;
  }

  .stats-access form {
    grid-template-columns: 1fr;
  }

  .stats-controls label,
  .stats-controls select,
  .stats-controls button {
    width: 100%;
  }

  .stats-kpis {
    grid-template-columns: 1fr;
  }

  .stats-kpis article:last-child {
    grid-column: auto;
  }

  .stats-system {
    grid-template-columns: 1fr;
  }

  .stats-system > p {
    grid-column: auto;
  }

  .stats-panel {
    padding: 18px 14px;
  }
}

/* Mobile-first product pass: the booking path should feel native on a phone. */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
    background:
      radial-gradient(circle at 100% 0%, rgba(128, 108, 255, 0.12), transparent 22rem),
      linear-gradient(180deg, #090d13, #070a0f 58%);
  }

  .topline {
    display: none;
  }

  .site-header,
  .home-header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    height: 64px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 18, 0.9);
    box-sizing: border-box;
    backdrop-filter: blur(18px);
  }

  .site-header .brand {
    gap: 8px;
    margin-left: 4px;
    font-size: 17px;
  }

  .site-header .brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .home-nav-link--booking {
    min-height: 38px;
    padding: 0 13px;
    border-color: rgba(255, 255, 255, 0.11);
    background: #121923;
    font-size: 11px;
  }

  main,
  footer {
    width: min(100% - 20px, 1180px);
  }

  /* Home: less poster, more useful content above the fold. */
  .home-hero {
    min-height: 0;
    padding: 27px 20px 25px;
    border-radius: 21px;
  }

  .home-hero .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .home-hero h1 {
    max-width: 330px;
    margin-bottom: 16px;
    font-size: clamp(38px, 11.4vw, 48px);
    line-height: 0.94;
    letter-spacing: -0.055em;
  }

  .home-hero h1 br {
    display: none;
  }

  .home-hero h1 em {
    display: inline;
  }

  .home-hero__copy > p:last-child {
    max-width: 305px;
    font-size: 13px;
    line-height: 1.48;
  }

  .home-radar {
    right: -78px;
    bottom: -76px;
    width: 188px;
    height: 188px;
    opacity: 0.46;
  }

  .finder {
    margin: 10px 0 0;
    padding: 8px;
    gap: 7px;
    border-radius: 18px;
  }

  .finder-field {
    min-height: 62px;
    padding: 8px 10px;
    justify-content: center;
    border-radius: 12px;
  }

  .finder-field > span {
    font-size: 9px;
  }

  .finder-field input,
  .finder-field select {
    min-height: 26px;
    font-size: 13px;
  }

  .finder-field--date {
    padding-right: 30px;
  }

  .finder-date-display {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 26px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .finder-field--date::after {
    position: absolute;
    right: 11px;
    bottom: 16px;
    color: var(--muted);
    content: "⌄";
    font-size: 16px;
    pointer-events: none;
  }

  .finder-field .finder-date-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }

  .finder-button {
    min-height: 54px;
    border-radius: 12px;
  }

  .trust-row {
    width: 100%;
    margin-left: 0;
    padding: 13px 0 27px;
    align-items: center;
    gap: 8px;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .trust-row::-webkit-scrollbar,
  .date-strip::-webkit-scrollbar,
  .mode-options::-webkit-scrollbar,
  .tags::-webkit-scrollbar {
    display: none;
  }

  .trust-row span {
    min-height: 34px;
    padding: 0 11px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(17, 24, 33, 0.8);
    font-size: 10px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .trust-row i {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 10px;
  }

  .catalog {
    padding-top: 3px;
  }

  .catalog-head {
    margin-bottom: 15px;
    gap: 10px;
  }

  .catalog-head h2 {
    font-size: 36px;
  }

  .catalog-head__status > p {
    max-width: none;
    padding: 6px 9px;
    font-size: 10px;
  }

  .quest-grid {
    gap: 13px;
  }

  .catalog-card {
    border-radius: 19px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }

  .catalog-card__visual {
    min-height: 205px;
  }

  .catalog-card__format,
  .catalog-card__rating {
    top: 12px;
    padding: 6px 8px;
  }

  .catalog-card__format {
    left: 12px;
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-card__rating {
    right: 12px;
  }

  .catalog-card__title {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .catalog-card__title h3 {
    max-width: 100%;
    font-size: 28px;
    line-height: 0.98;
  }

  .catalog-card__body {
    padding: 0 15px 15px;
  }

  .catalog-card__facts {
    margin: 0 -15px 13px;
  }

  .catalog-card__facts span,
  .catalog-card__facts span:first-child {
    padding: 10px 6px;
  }

  .catalog-card__facts span:first-child {
    padding-left: 15px;
  }

  .catalog-card__facts span:last-child {
    padding-right: 15px;
  }

  .catalog-card__levels {
    margin-bottom: 11px;
  }

  .quest-level {
    padding: 9px 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .quest-level__copy {
    width: 100%;
  }

  .quest-level__copy b {
    font-size: 11px;
    white-space: normal;
  }

  .quest-level__scale {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .catalog-card__lead {
    min-height: 38px;
    margin-bottom: 7px;
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .catalog-card__address {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .catalog-card__schedule {
    margin-bottom: 13px;
    overflow: hidden;
  }

  .catalog-card__footer {
    gap: 11px;
  }

  .catalog-card__price strong {
    font-size: 20px;
  }

  .catalog-card__link {
    min-height: 50px;
    width: 100%;
    justify-content: space-between;
  }

  .how-it-works {
    margin-top: 18px;
  }

  /* Quest overview: compact story first, obvious booking action second. */
  .breadcrumbs {
    margin: 10px 0 9px;
    font-size: 10px;
  }

  .quest-switcher {
    margin: 0;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quest-switcher::-webkit-scrollbar {
    display: none;
  }

  .quest-switcher a {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
  }

  .location-switcher {
    margin-bottom: 10px;
    padding: 13px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
  }

  .location-switcher__head {
    min-width: 0;
  }

  .location-switcher__head strong {
    font-size: 12px;
  }

  .location-switcher .quest-switcher {
    width: calc(100% + 13px);
    padding-right: 13px;
    justify-content: flex-start;
  }

  .quest-layout {
    gap: 10px;
  }

  .quest-info,
  .booking-card {
    border-radius: 20px;
    box-shadow: none;
  }

  .quest-cover {
    min-height: 205px;
  }

  .quest-cover__label {
    top: 12px;
    left: 12px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .quest-cover__score {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 8px 11px;
  }

  .quest-cover__score strong {
    font-size: 21px;
  }

  .quest-cover__score span {
    font-size: 9px;
    line-height: 1.2;
  }

  .quest-copy {
    padding: 21px 18px 20px;
  }

  .quest-copy h1 {
    margin-bottom: 11px;
    font-size: clamp(34px, 10vw, 40px);
  }

  .quest-lead {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .quest-facts {
    margin-bottom: 14px;
  }

  .quest-levels--detail {
    margin: 0 0 14px;
  }

  .quest-facts div,
  .quest-facts div + div {
    padding: 10px 7px;
  }

  .quest-facts strong {
    font-size: 13px;
  }

  .quest-facts span {
    font-size: 9px;
  }

  .mobile-booking-jump {
    min-height: 52px;
    margin-bottom: 13px;
    border-radius: 13px;
    font-size: 12px;
  }

  .tags {
    margin-right: -18px;
    padding-right: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tags span {
    flex: 0 0 auto;
  }

  .address-card {
    padding: 10px 11px;
  }

  .pre-game__head {
    min-height: 58px;
    padding: 10px 11px;
  }

  .pre-game__head h2 {
    font-size: 16px;
  }

  .pre-game__route {
    min-height: 32px;
    padding-inline: 11px;
    font-size: 10px;
  }

  .pre-game__list {
    grid-template-columns: 1fr;
  }

  .pre-game__list li {
    padding: 10px 11px;
    align-items: center;
  }

  .pre-game__list li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pre-game__list strong {
    font-size: 11px;
    white-space: normal;
  }

  .pre-game__list div > span {
    font-size: 9px;
  }

  /* Booking: swipeable dates and readable controls instead of seven tiny cells. */
  .booking-card {
    width: 100%;
    max-width: none;
    padding: 18px;
    scroll-margin-top: 74px;
  }

  .booking-card__head {
    position: relative;
    display: block;
    align-items: flex-start;
  }

  .booking-card__head h2 {
    font-size: 25px;
  }

  .live-status {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .booking-card__head .eyebrow {
    max-width: calc(100% - 116px);
  }

  .booking-section {
    padding: 10px 0;
  }

  .section-label {
    margin-bottom: 7px;
  }

  .date-toolbar {
    width: 100%;
    gap: 7px;
  }

  .date-week-nav {
    width: auto;
    min-width: 0;
    flex: 1;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .date-week-button,
  .date-picker {
    min-height: 44px;
  }

  .date-period {
    padding-inline: 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .date-picker {
    min-width: 91px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .date-strip {
    display: flex;
    width: calc(100% + 18px);
    margin-right: -18px;
    padding: 0 18px 4px 0;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .date-button {
    min-width: 58px;
    min-height: 50px;
    padding: 5px 4px;
    flex: 0 0 58px;
    border-radius: 11px;
    scroll-snap-align: start;
  }

  .date-button span {
    font-size: 9px;
  }

  .date-button strong {
    font-size: 17px;
  }

  .booking-section--row {
    align-items: flex-end;
  }

  .counter {
    height: 40px;
  }

  .price strong {
    font-size: 23px;
  }

  .mode-options {
    display: flex;
    width: calc(100% + 18px);
    margin-right: -18px;
    padding-right: 18px;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mode-options button {
    min-width: 108px;
    min-height: 52px;
    padding: 7px 9px;
    flex: 1 0 108px;
    scroll-snap-align: start;
  }

  .mode-options button strong {
    font-size: 12px;
  }

  .mode-options button span {
    font-size: 9px;
  }

  .slot-grid {
    display: flex;
    min-height: 0;
    gap: 7px;
    flex-wrap: wrap;
  }

  .slot-button {
    width: 92px;
    min-height: 46px;
    flex: 0 0 92px;
    border-radius: 11px;
    font-size: 14px;
  }

  .slot-legend {
    margin-top: 7px;
    font-size: 10px;
  }

  .selection {
    margin-top: 4px;
  }

  #selection:not([hidden]) ~ #continue-button {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  }

  .booking-note {
    margin-top: 7px;
    font-size: 10px;
  }

  .booking-trust-band {
    margin-top: 10px;
    padding: 15px;
    gap: 12px;
    border-radius: 17px;
  }

  /* Booking form behaves like a native bottom sheet. */
  .pilot-dialog[open] {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    margin: 0;
    padding: 23px 18px max(20px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .pilot-dialog h2 {
    margin-bottom: 7px;
    font-size: 28px;
  }

  .dialog-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 11px;
  }

  .dialog-close {
    top: 16px;
    right: 16px;
  }

  .form-field input {
    min-height: 52px;
    border-radius: 12px;
    font-size: 16px;
  }

  .consent-field {
    font-size: 11px;
  }

  .pilot-dialog .primary-button,
  .pilot-dialog .secondary-button,
  .manage-booking-button {
    min-height: 54px;
  }

  /* Booking management remains usable with one thumb. */
  .manager-main {
    padding-bottom: 34px;
  }

  .manager-intro {
    padding: 30px 0 22px;
  }

  .manager-intro h1 {
    margin-bottom: 11px;
    font-size: 48px;
  }

  .manager-intro > p:last-child {
    font-size: 14px;
  }

  .manager-empty,
  .manager-card {
    padding: 22px 17px;
    border-radius: 19px;
  }

  .manager-empty > span,
  .manager-error-state > span {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
  }

  .manager-empty h2,
  .manager-error-state h2 {
    font-size: 26px;
  }

  .manager-primary-link,
  .manager-primary-button,
  .manager-danger-button,
  .manager-secondary-button {
    width: 100%;
    min-height: 52px;
  }

  footer {
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .site-header,
  .home-header {
    padding-inline: 10px;
  }

  .site-header .brand {
    font-size: 15px;
  }

  .home-nav-link--booking {
    padding-inline: 10px;
    font-size: 10px;
  }

  .home-hero h1 {
    font-size: 37px;
  }

  .finder-field {
    padding-inline: 8px;
  }

  .finder-field input,
  .finder-field select {
    font-size: 12px;
  }

  .booking-card {
    padding-inline: 14px;
  }

  .date-picker {
    min-width: 82px;
    font-size: 8px;
  }

  .date-button {
    min-width: 56px;
    flex-basis: 56px;
  }

  .mode-options button {
    min-width: 102px;
    flex-basis: 102px;
  }

  .slot-button {
    width: 86px;
    flex-basis: 86px;
  }
}

/* Verified reviews */
.quest-reviews {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--quest-accent, var(--lime)) 10%, transparent), transparent 28rem),
    rgba(16, 23, 32, 0.92);
}

.quest-reviews__head {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.quest-reviews h2 {
  margin: 5px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.quest-reviews__summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.quest-reviews__summary strong {
  color: var(--quest-accent, var(--lime));
  font-size: 30px;
}

.quest-reviews__summary span,
.quest-reviews__empty p {
  color: var(--muted);
}

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

.quest-reviews__list article,
.quest-reviews__empty {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 13, 19, 0.72);
}

.quest-reviews__list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quest-reviews__list article > div strong,
.stats-review-list article > div:first-child span {
  color: #ffc95c;
  letter-spacing: 0.08em;
}

.quest-reviews__list article > div span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #76e6b9;
  background: rgba(92, 224, 170, 0.1);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quest-reviews__list article p {
  margin: 17px 0 15px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.quest-reviews__list time {
  color: var(--muted);
  font-size: 10px;
}

.quest-reviews__empty {
  text-align: center;
}

.quest-reviews__empty p {
  max-width: 620px;
  margin: 8px auto 0;
  font-size: 12px;
  line-height: 1.55;
}

.manager-review {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.manager-review h3 {
  margin: 5px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.manager-review__lead {
  max-width: 570px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.review-stars {
  display: flex;
  margin-bottom: 16px;
  gap: 7px;
}

.review-stars button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #52606d;
  background: var(--surface-soft);
  font-size: 22px;
  cursor: pointer;
}

.review-stars button:hover,
.review-stars button.is-active {
  border-color: rgba(255, 201, 92, 0.55);
  color: #ffc95c;
  background: rgba(255, 201, 92, 0.08);
}

.manager-review__field {
  display: grid;
  gap: 7px;
}

.manager-review__field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-review__field textarea {
  width: 100%;
  min-height: 128px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}

.manager-review__field small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.manager-review__status {
  margin: 13px 0;
  padding: 12px 13px;
  border-radius: 11px;
  color: #e0c381;
  background: rgba(255, 201, 92, 0.08);
  font-size: 11px;
  line-height: 1.5;
}

.manager-review__status.is-approved {
  color: #84e9bd;
  background: rgba(92, 224, 170, 0.09);
}

.manager-review__status.is-rejected {
  color: #ffad9f;
  background: rgba(255, 112, 92, 0.09);
}

.manager-review > .manager-primary-button {
  width: 100%;
  margin-top: 13px;
}

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

.stats-review-list article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.stats-review-list article > div:first-child,
.stats-review-list article > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-review-list article p {
  margin: 14px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.stats-review-list button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #121a23;
  font-weight: 800;
  cursor: pointer;
}

.stats-review-list button:first-child {
  border-color: var(--lime);
  color: #11160d;
  background: var(--lime);
}

@media (max-width: 720px) {
  .site-header .header-actions .home-nav-link:not(.home-nav-link--booking) {
    display: inline-flex;
    padding-inline: 6px;
    font-size: 10px;
  }

  .quest-reviews {
    margin-top: 10px;
    padding: 21px 17px;
    border-radius: 19px;
  }

  .quest-reviews__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .quest-reviews__list {
    grid-template-columns: 1fr;
  }

  .quest-reviews__list article > div {
    align-items: flex-start;
  }

  .manager-review h3 {
    font-size: 25px;
  }

  .review-stars {
    justify-content: space-between;
  }

  .review-stars button {
    width: min(18%, 48px);
  }

  .stats-review-list article > div:first-child,
  .stats-review-list article > div:last-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-review-list article > div:last-child button {
    width: 100%;
  }

  .site-header .header-actions .home-nav-link {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .site-header .brand__word {
    font-size: 14px;
  }
}

/* Final homepage composition overrides. Keep this block last. */
.home-intro {
  box-sizing: border-box;
}

.catalog-card[data-theme] .catalog-card__rating {
  display: inline-flex;
  max-width: none;
  align-items: center;
  gap: 5px;
  overflow: visible;
  color: #f4f7f2;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(7, 11, 16, 0.84);
  text-overflow: clip;
}

.catalog-card__rating b {
  color: var(--lime);
  font-size: 1.08em;
  line-height: 1;
}

.catalog-card[data-theme] .catalog-card__link {
  color: #10150d;
  background: var(--lime);
}

.catalog-card__lead {
  display: block;
  min-height: 0;
  margin-bottom: 9px;
  overflow: visible;
  font-size: 12px;
  line-height: 1.48;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

.how-it-works {
  margin: 22px 0 42px;
}

.how-it-works__top {
  margin: 0;
}

.how-it-works .how-it-works__icon {
  display: none;
}

.how-it-works .how-it-works__number {
  margin-bottom: 12px;
}

@media (min-width: 981px) {
  .home-intro {
    min-height: 0;
  }

  .home-intro .home-hero {
    min-height: clamp(340px, 42svh, 470px);
  }

  .home-intro .trust-row {
    padding-bottom: 24px;
  }

  .how-it-works {
    min-height: 178px;
    margin: 20px 0 38px;
    overflow: hidden;
    border-color: rgba(184, 255, 79, 0.18);
    border-radius: 24px;
    background:
      linear-gradient(110deg, rgba(184, 255, 79, 0.055), transparent 34%),
      rgba(14, 20, 28, 0.78);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.16);
  }

  .how-it-works > div {
    display: flex;
    min-width: 0;
    padding: 25px 30px 27px;
    flex-direction: column;
    justify-content: center;
  }

  .how-it-works > div + div {
    border-left-color: rgba(184, 255, 79, 0.14);
  }

  .how-it-works__top {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
  }

  .how-it-works .how-it-works__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0;
    place-items: center;
    color: var(--lime);
    border: 1px solid rgba(184, 255, 79, 0.24);
    border-radius: 15px;
    background: rgba(184, 255, 79, 0.08);
  }

  .how-it-works__icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .how-it-works .how-it-works__number {
    margin: 0;
    color: rgba(244, 247, 242, 0.42);
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .how-it-works strong {
    color: #f4f7f2;
    font-size: 18px;
    line-height: 1.15;
  }

  .how-it-works p {
    max-width: 300px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 720px) {
  .home-intro {
    min-height: 0;
  }

  .home-intro .home-hero {
    min-height: 315px;
  }

  .home-hero__copy > p:last-child {
    max-width: 290px;
  }

  .trust-row {
    width: 100%;
    margin-left: 0;
    padding: 13px 0 27px;
    scroll-padding-left: 0;
  }

  .trust-row span {
    padding-inline: 9px;
  }

  .how-it-works {
    margin: 14px 0 30px;
  }

  .how-it-works > div {
    padding: 16px 18px;
  }

  .how-it-works span {
    margin-bottom: 6px;
  }

  .how-it-works p {
    margin-top: 3px;
  }

  .catalog-card__lead {
    min-height: 0;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  /* Mobile navigation belongs to the document flow and must not cover content. */
  html {
    scroll-padding-top: 0;
  }

  .site-header,
  .home-header {
    position: static;
    top: auto;
  }

  .quest-layout {
    align-items: stretch;
  }

  /* Use all available width and keep every time slot exactly the same size. */
  .slot-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .slot-button {
    width: auto;
    min-width: 0;
    flex: none;
  }
}

@media (max-width: 370px) {
  .site-header,
  .home-header {
    padding-inline: 10px;
  }

  .site-header .brand {
    gap: 6px;
    margin-left: 2px;
  }

  .site-header .brand__mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .site-header .brand__word {
    font-size: 13px;
  }

  .site-header .header-actions {
    gap: 4px;
  }

  .site-header .header-actions .home-nav-link {
    min-height: 36px;
    padding-inline: 7px;
    font-size: 9px;
  }

  .slot-button {
    width: auto;
    flex-basis: auto;
  }
}
