.app-shell {
  position: relative;
  min-height: var(--app-height);
  background: transparent;
}

.app-gradient {
  position: fixed;
  inset: 0;
  background: var(--radial-gradient-bg);
  pointer-events: none;
}

.app-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.app-root {
  position: relative;
  z-index: 1;
  min-height: var(--app-height);
}

.phase-app {
  display: flex;
  flex-direction: column;
  min-height: var(--app-height);
  padding:
    calc(12px + var(--safe-top))
    calc(12px + var(--safe-right))
    calc(16px + var(--safe-bottom))
    calc(12px + var(--safe-left));
}

.phase-outlet {
  flex: 1;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.shell-grid {
  display: grid;
  gap: 24px;
}

.shell-grid--two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 4px 8px;
}

.content-panel {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.surface-card {
  padding: 24px;
}

.surface-card--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(22px);
}

.surface-card--tight {
  padding: 18px;
}

.surface-card h1,
.surface-card h2,
.surface-card h3,
.surface-card p {
  margin-top: 0;
}

.cta-list,
.meta-list,
.stat-list,
.action-row,
.inline-actions,
.pill-row,
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-row {
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--brand-light-grey);
  border: 2px solid var(--brand-grey);
}

.tab-button {
  flex: 1 1 120px;
  min-height: 50px;
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 600;
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--brand-red-alpha);
  color: var(--brand-red);
}

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

.score-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--brand-light-grey);
  border: 1px solid rgba(76, 76, 76, 0.08);
}

.metric-card__label {
  display: block;
  margin-bottom: 8px;
  color: rgba(76, 76, 76, 0.7);
  font-size: 0.85rem;
}

.metric-card__value {
  display: block;
  color: var(--brand-dark);
  font-size: clamp(1.1rem, 4vw, 2rem);
  line-height: 1;
  font-weight: 700;
}

.leaderboard-shell,
.form-shell,
.play-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.helper-text {
  margin: 0;
  color: rgba(76, 76, 76, 0.72);
  font-size: 0.92rem;
}

.screen-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline__label {
  color: rgba(76, 76, 76, 0.7);
  font-size: 0.9rem;
}

.mock-view {
  display: grid;
  gap: 16px;
}

.mock-frame {
  min-height: 260px;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, #27303d 0%, #161a23 100%);
  color: #ffffff;
}

.mock-frame--map {
  background:
    linear-gradient(0deg, rgba(27, 112, 172, 0.25), rgba(27, 112, 172, 0.25)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 32px
    ),
    linear-gradient(180deg, #1a3d61 0%, #102639 100%);
}

.map-pin {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 0 0 6px rgba(255, 85, 85, 0.2);
}

.flow-list,
.leaderboard-list,
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-item,
.summary-item,
.state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--brand-light-grey);
}

.leaderboard-item--provisional {
  border: 2px solid var(--brand-orange);
  background: rgba(255, 176, 72, 0.12);
}

.summary-item {
  align-items: flex-start;
  flex-direction: column;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.state-card--error {
  border: 2px solid rgba(220, 53, 69, 0.22);
  background: rgba(220, 53, 69, 0.08);
}

.state-card--success {
  border: 2px solid rgba(94, 188, 42, 0.25);
  background: rgba(94, 188, 42, 0.12);
}

.state-card--warning {
  border: 2px solid rgba(255, 176, 72, 0.35);
  background: rgba(255, 176, 72, 0.12);
}

.footer-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.checkpoint-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkpoint-card strong {
  font-size: 1rem;
}

.screen {
  min-height: calc(var(--app-height) - 120px);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.screen-grid,
.results-grid,
.game-grid,
.landing-meta,
.result-grid {
  display: grid;
  gap: 16px;
}

.landing-shell,
.results-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.landing-shell__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
}

.landing-shell__logo {
  width: min(250px, 54vw);
}

.landing-shell__strapline {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.landing-panel,
.landing-actions,
.results-hero,
.results-panel,
.game-header,
.game-panel,
.result-shell {
  padding: 20px;
}

.landing-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 20px;
}

.landing-panel--event {
  gap: 16px;
}

.landing-panel__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.landing-panel__logo {
  width: min(220px, 48vw);
  height: auto;
}

.landing-panel__strapline {
  margin: 0;
  color: rgba(76, 76, 76, 0.78);
  font-size: 1rem;
  font-weight: 400;
}

.landing-panel__eyebrow,
.results-hero__eyebrow,
.result-shell__eyebrow,
.game-panel__eyebrow,
.results-panel__header {
  color: rgba(76, 76, 76, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-panel__title,
.results-hero__score,
.result-shell__title,
.game-panel__title {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.08;
}

.landing-panel__title {
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: rgba(76, 76, 76, 0.96);
}

.landing-panel__body,
.game-panel__body,
.results-panel__body,
.result-map__body {
  margin: 0;
  color: rgba(76, 76, 76, 0.84);
  line-height: 1.5;
}

.landing-event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 85, 85, 0.08);
  border: 1px solid rgba(255, 85, 85, 0.12);
  color: rgba(76, 76, 76, 0.84);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.landing-event-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-event-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-event-form label span {
  color: rgba(76, 76, 76, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.landing-event-form input[type="text"],
.landing-event-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid var(--brand-grey);
  color: rgba(76, 76, 76, 0.94);
  font: inherit;
  background: #ffffff;
}

.landing-actions__blocked {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-actions__note {
  margin: 0;
  color: rgba(76, 76, 76, 0.72);
  line-height: 1.45;
}

.landing-actions__note--event {
  font-size: 0.96rem;
  color: rgba(76, 76, 76, 0.8);
}

.landing-actions__note--error {
  color: #b52639;
}

.btn.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.btn[disabled],
.button[disabled],
.tab-button[disabled],
.leaderboard-page-header__back[disabled] {
  opacity: 0.58;
  cursor: wait;
  pointer-events: none;
}

.landing-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-meta__item,
.result-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.landing-meta__label,
.result-card__label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.landing-meta__value,
.result-card__value {
  font-size: 1.05rem;
  font-weight: 600;
}

.game-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.game-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-header__timer {
  font-size: 1.3rem;
  font-weight: 700;
}

.game-header__timer.is-warning {
  color: var(--brand-red);
}

.exit-btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(76, 76, 76, 0.14);
  background: transparent;
  cursor: pointer;
}

.game-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.game-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.game-panel__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-light-grey);
  color: rgba(76, 76, 76, 0.75);
}

.game-panel__chip.is-active {
  background: var(--brand-red-alpha);
  color: var(--brand-red);
}

.street-view-placeholder {
  display: grid;
  place-items: end start;
  min-height: 360px;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #2c3442 0%, #171c25 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.street-view-placeholder__glow {
  position: absolute;
  inset: auto -10% -30% 45%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 176, 72, 0.18);
  filter: blur(30px);
}

.street-view-placeholder__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guess-map {
  position: relative;
  min-height: 320px;
  border: none;
  border-radius: 28px;
  padding: 0;
  background:
    linear-gradient(0deg, rgba(27, 112, 172, 0.25), rgba(27, 112, 172, 0.25)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 36px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 36px
    ),
    linear-gradient(180deg, #1a3d61 0%, #102639 100%);
  cursor: crosshair;
}

.guess-map__marker {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%) scale(0.8);
  display: none;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 18px 38px -18px rgba(0, 0, 0, 0.5);
}

.guess-map__marker.is-visible {
  display: inline-flex;
  align-items: center;
  transform: translate(-50%, -50%) scale(1);
}

.btn--submit,
.btn--hero {
  width: 100%;
}

.result-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.screen-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.results-shell--conversion {
  max-width: 760px;
}

.result-map {
  padding: 18px;
  border-radius: 24px;
  background: var(--brand-light-grey);
}

.results-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 72, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.results-hero--joined {
  gap: 18px;
  padding-top: 32px;
}

.results-hero__topline,
.results-hero__score-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.results-hero__score {
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.results-hero__prize-badge {
  display: inline-flex;
  position: absolute;
  top: 14px;
  right: 14px;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  padding: 14px;
  border-radius: 50%;
  max-width: 100%;
  text-align: center;
  background: linear-gradient(160deg, #ff8d67 0%, #ff5c5c 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  box-shadow: 0 14px 28px rgba(255, 115, 92, 0.22);
  z-index: 3;
}

.results-hero__prize-badge-text {
  display: block;
  max-width: 74px;
  font-size: 1rem;
  line-height: 1.05;
  text-shadow: none;
}

.results-hero__question {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.2rem, 3.8vw, 2rem);
  font-weight: 700;
  line-height: 1.08;
}

.results-hero__subcopy {
  margin: 0;
  color: rgba(76, 76, 76, 0.74);
  font-size: 1rem;
  line-height: 1.4;
}

.results-hero__urgency {
  margin: 2px 0 0;
  color: var(--brand-red);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.results-hero__reaction {
  margin: 0;
  color: var(--brand-red);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.1;
}

.results-hero__benefits {
  display: grid;
  gap: 10px;
}

.results-hero__benefits-title {
  color: rgba(76, 76, 76, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-hero__benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(76, 76, 76, 0.9);
  font-size: 1rem;
  line-height: 1.4;
}

.results-hero__benefit-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.38em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-red), #ff8d67);
  flex: 0 0 auto;
}

.results-round-summary {
  display: grid;
  gap: 12px;
}

.results-round-summary__title {
  color: rgba(76, 76, 76, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.results-round-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(76, 76, 76, 0.08);
}

.results-round-card__eyebrow,
.results-round-card__location,
.results-round-card__points {
  margin: 0;
}

.results-round-card__eyebrow {
  color: rgba(76, 76, 76, 0.58);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.results-round-card__distance {
  color: var(--brand-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.results-round-card__location {
  color: rgba(76, 76, 76, 0.84);
  font-size: 0.92rem;
  line-height: 1.35;
}

.results-round-card__points {
  color: var(--brand-red);
  font-weight: 700;
}

.results-hero__chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 176, 72, 0.18);
  color: #b35d00;
  font-weight: 600;
}

.results-hero__chip--prize {
  background: rgba(255, 85, 85, 0.12);
  color: var(--brand-red);
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-grid--conversion {
  grid-template-columns: 1fr;
}

.results-panel--value,
.results-panel--claim {
  gap: 18px;
}

.results-panel--claim {
  background:
    radial-gradient(circle at bottom left, rgba(255, 176, 72, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.results-inline-claim {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(76, 76, 76, 0.08);
}

.results-actions,
.claim-tabs,
.claim-state,
.panel,
.leaderboard-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.claim-form label,
.claim-form .checkbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-form .checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.claim-form input[type="text"],
.claim-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid var(--brand-grey);
}

.claim-form--results {
  gap: 12px;
}

.claim-form--results button[type="submit"] {
  margin-top: 8px;
}

.results-panel__body--secondary {
  color: rgba(76, 76, 76, 0.72);
}

.results-panel__helper-note {
  margin: -2px 0 0;
  color: rgba(76, 76, 76, 0.7);
  font-size: 0.96rem;
  line-height: 1.45;
}

.results-panel__helper-notes {
  display: grid;
  gap: 4px;
}

.results-panel__helper-note {
  margin-top: 4px;
}

.results-reveal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 20, 20, 0.32);
  backdrop-filter: blur(6px);
  z-index: 120;
}

.results-reveal-card {
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(255, 176, 72, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  animation: revealPopIn 220ms ease-out;
}

.results-reveal-card__eyebrow {
  margin: 0;
  color: rgba(76, 76, 76, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.results-reveal-card__rank {
  margin: 0;
  color: var(--brand-red);
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  line-height: 1;
}

.results-reveal-card__body {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.06rem;
  line-height: 1.45;
}

.results-reveal-card__prize {
  display: inline-flex;
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 176, 72, 0.16);
  color: #b35d00;
  font-size: 0.92rem;
  font-weight: 700;
}

@keyframes revealPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.results-claim-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
}

.results-claim-status p,
.results-home-link {
  margin: 0;
}

.results-claim-status--loading {
  background: rgba(255, 255, 255, 0.45);
}

.results-claim-status--success {
  background: rgba(94, 188, 42, 0.12);
  border: 2px solid rgba(94, 188, 42, 0.2);
}

.results-claim-status--error {
  background: rgba(220, 53, 69, 0.08);
  border: 2px solid rgba(220, 53, 69, 0.16);
}

.results-home-link {
  width: fit-content;
  border: none;
  padding: 0;
  background: transparent;
  color: rgba(76, 76, 76, 0.72);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

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

.tab {
  min-height: 48px;
  border-radius: 18px;
  border: 2px solid var(--brand-grey);
  background: #ffffff;
  cursor: pointer;
}

.tab.active {
  border-color: var(--brand-red);
  background: var(--brand-red-alpha);
  color: var(--brand-red);
}

.leaderboard-card {
  padding: 20px;
}

.leaderboard-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 18px;
}

.leaderboard-page-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-page-header__logo {
  width: 126px;
  height: auto;
  flex-shrink: 0;
}

.leaderboard-page-header__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  color: var(--brand-dark);
}

.leaderboard-page-header__text strong {
  font-size: 0.9rem;
  line-height: 1.05;
}

.leaderboard-page-header__text span {
  color: rgba(76, 76, 76, 0.66);
  font-size: 0.8rem;
  line-height: 1.1;
}

.leaderboard-page-header__back {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(76, 76, 76, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.leaderboard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.leaderboard-controls__eyebrow {
  color: rgba(76, 76, 76, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leaderboard-tab-row {
  flex: 1 1 auto;
}

.leaderboard-company-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--brand-light-grey);
  color: var(--brand-dark);
  font-weight: 600;
}

.leaderboard-company-toggle input {
  width: 18px;
  height: 18px;
}

.leaderboard-empty-company {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 72, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 85, 85, 0.05));
  border: 1px solid rgba(255, 85, 85, 0.12);
}

.leaderboard-empty-company h3,
.leaderboard-empty-company p {
  margin: 0;
}

.leaderboard-empty-company__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.leaderboard-empty-company__note {
  color: rgba(76, 76, 76, 0.72);
  font-size: 0.92rem;
}

.leaderboard-summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 72, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 85, 85, 0.08), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(255, 85, 85, 0.12);
}

.leaderboard-summary-card__eyebrow {
  margin: 0;
  color: rgba(76, 76, 76, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leaderboard-summary-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.leaderboard-summary-card__rank {
  display: block;
  color: var(--brand-red);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.leaderboard-summary-card__body {
  margin: 8px 0 0;
  color: rgba(76, 76, 76, 0.86);
  line-height: 1.45;
}

.leaderboard-summary-card__score {
  color: var(--brand-dark);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  white-space: nowrap;
}

.leaderboard-summary-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.leaderboard-summary-card__note {
  margin: 0;
  color: rgba(76, 76, 76, 0.68);
  font-size: 0.92rem;
}

.leaderboard-ocasta-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(94, 188, 42, 0.34), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 196, 58, 0.18), transparent 34%),
    linear-gradient(135deg, #1b70ac 0%, #ef6559 100%);
  border: 1px solid rgba(27, 112, 172, 0.08);
  box-shadow: 0 18px 36px rgba(27, 112, 172, 0.18);
}

.leaderboard-ocasta-card h3,
.leaderboard-ocasta-card p {
  margin: 0;
}

.leaderboard-ocasta-card h3 {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.leaderboard-ocasta-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.leaderboard-ocasta-card__button {
  align-self: flex-start;
  background: #ffffff;
  color: #1b70ac;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.leaderboard-ocasta-card__button:hover,
.leaderboard-ocasta-card__button:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  color: #145987;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(76, 76, 76, 0.08);
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-player-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.leaderboard-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(76, 76, 76, 0.08);
}

.leaderboard-name,
.leaderboard-meta {
  min-width: 0;
}

.leaderboard-meta {
  color: rgba(76, 76, 76, 0.66);
  font-size: 0.92rem;
}

.leaderboard-row.is-viewer {
  border-radius: 18px;
  padding: 14px 0;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  background: linear-gradient(180deg, rgba(255, 85, 85, 0.1), rgba(255, 176, 72, 0.08));
  box-shadow: inset 0 0 0 2px rgba(255, 85, 85, 0.14);
  animation: viewerRowSpotlight 1.2s ease-out;
}

@keyframes viewerRowSpotlight {
  0% {
    transform: scale(0.98);
    box-shadow: inset 0 0 0 2px rgba(255, 85, 85, 0.14), 0 0 0 rgba(255, 85, 85, 0);
  }

  45% {
    transform: scale(1.01);
    box-shadow: inset 0 0 0 2px rgba(255, 85, 85, 0.14), 0 0 0 10px rgba(255, 85, 85, 0.08);
  }

  100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 2px rgba(255, 85, 85, 0.14), 0 0 0 rgba(255, 85, 85, 0);
  }
}

.summary-item {
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: left;
}

.summary-item--active {
  outline: 2px solid var(--brand-red);
  background: var(--brand-red-alpha);
}

@media (max-width: 900px) {
  .shell-grid--two,
  .info-grid,
  .score-grid,
  .settings-grid,
  .game-grid,
  .screen-grid,
  .results-grid,
  .result-grid,
  .landing-meta {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 640px) {
  .screen-shell {
    padding:
      calc(12px + var(--safe-top))
      calc(12px + var(--safe-right))
      calc(20px + var(--safe-bottom))
      calc(12px + var(--safe-left));
  }

  .surface-card {
    padding: 18px;
  }

  .leaderboard-card {
    padding: 16px;
  }

  .leaderboard-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .leaderboard-score {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }

  .leaderboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .leaderboard-page-header {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .leaderboard-page-header__back {
    width: 100%;
    padding: 10px 14px;
  }

  .leaderboard-page-header__logo {
    width: 96px;
  }

  .leaderboard-page-header__text strong {
    font-size: 0.78rem;
  }

  .leaderboard-page-header__text span {
    font-size: 0.72rem;
  }

  .leaderboard-company-toggle {
    justify-content: center;
  }

  .leaderboard-summary-card__row {
    flex-direction: column;
  }

  .leaderboard-ocasta-card__button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .leaderboard-page-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .leaderboard-page-header__brand {
    gap: 10px;
    align-items: center;
  }

  .leaderboard-page-header__logo {
    width: 88px;
  }

  .leaderboard-page-header__text {
    gap: 2px;
  }

  .leaderboard-page-header__text strong {
    font-size: 0.72rem;
  }

  .leaderboard-page-header__text span {
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .leaderboard-page-header__back {
    min-height: 38px;
    font-size: 0.92rem;
  }

  .leaderboard-card {
    padding: 14px;
  }

  .leaderboard-controls {
    gap: 12px;
    margin-bottom: 14px;
  }

  .leaderboard-controls__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  .leaderboard-company-toggle {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .leaderboard-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 0;
  }

  .leaderboard-rank {
    font-size: 0.95rem;
  }

  .leaderboard-player {
    gap: 10px;
  }

  .leaderboard-logo {
    width: 32px;
    height: 32px;
  }

  .leaderboard-name {
    font-size: 0.98rem;
    line-height: 1.05;
  }

  .leaderboard-meta {
    font-size: 0.8rem;
    line-height: 1.05;
  }

  .leaderboard-score {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .leaderboard-row.is-viewer {
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Legacy gameplay overrides */
.phase-app--immersive {
  min-height: var(--app-height);
  padding:
    calc(10px + var(--safe-top))
    calc(10px + var(--safe-right))
    calc(10px + var(--safe-bottom))
    calc(10px + var(--safe-left));
}

.phase-app--immersive .phase-outlet {
  min-height: calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 20px);
  height: calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 20px);
}

.legacy-game-screen.screen {
  min-height: calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 20px);
  height: calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 32px;
}

.demo-coachmark {
  position: absolute;
  z-index: 48;
  pointer-events: none;
}

.demo-coachmark__card {
  width: min(250px, calc(100vw - 44px));
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 85, 85, 0.16);
  box-shadow: 0 12px 28px rgba(76, 76, 76, 0.16);
  pointer-events: auto;
}

.demo-coachmark__eyebrow {
  margin: 0 0 4px;
  color: rgba(76, 76, 76, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-coachmark__title {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 0.98rem;
  line-height: 1.12;
}

.demo-coachmark__body {
  margin: 0;
  color: rgba(76, 76, 76, 0.8);
  font-size: 0.84rem;
  line-height: 1.32;
}

.demo-coachmark__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.demo-coachmark__dismiss,
.demo-coachmark__next {
  border: none;
  background: none;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.demo-coachmark__dismiss {
  color: rgba(76, 76, 76, 0.62);
}

.demo-coachmark__next {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
}

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

.demo-coachmark--step-0 {
  top: 16px;
  left: 16px;
}

.demo-coachmark--step-1 {
  left: 16px;
  bottom: 88px;
}

.demo-coachmark--step-2 {
  right: 16px;
  bottom: 88px;
}

.demo-coachmark--step-3 {
  top: 16px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
}

.demo-coachmark--step-0 .demo-coachmark__card,
.demo-coachmark--step-3 .demo-coachmark__card {
  width: min(420px, calc(100vw - 40px));
}

.demo-coachmark--step-0 .demo-coachmark__card::after,
.demo-coachmark--step-1 .demo-coachmark__card::after,
.demo-coachmark--step-2 .demo-coachmark__card::after,
.demo-coachmark--step-3 .demo-coachmark__card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(255, 85, 85, 0.16);
  border-bottom: 1px solid rgba(255, 85, 85, 0.16);
  transform: rotate(45deg);
}

.demo-coachmark--step-0 .demo-coachmark__card,
.demo-coachmark--step-1 .demo-coachmark__card,
.demo-coachmark--step-2 .demo-coachmark__card,
.demo-coachmark--step-3 .demo-coachmark__card {
  position: relative;
}

.demo-coachmark--step-0 .demo-coachmark__card::after {
  left: 26px;
  bottom: -8px;
}

.demo-coachmark--step-1 .demo-coachmark__card::after,
.demo-coachmark--step-2 .demo-coachmark__card::after {
  right: 26px;
  bottom: -8px;
}

.demo-coachmark--step-3 .demo-coachmark__card::after {
  left: 50%;
  bottom: -8px;
  margin-left: -7px;
}

.legacy-game-screen .game-header {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 5;
  padding: 0;
  border-radius: 32px 32px 0 0;
}

.legacy-game-screen .game-info-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}

.legacy-game-screen .game-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
}

.legacy-game-screen .timer-info {
  position: static;
  justify-self: center;
  min-width: 72px;
  text-align: center;
  pointer-events: none;
}

.legacy-game-screen .demo-brand-slot {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.legacy-game-screen .demo-brand-slot__logo {
  width: 112px;
  height: auto;
  display: block;
}

.legacy-game-screen .score-info {
  justify-self: end;
  min-width: 120px;
  text-align: right;
}

.legacy-game-screen .round-info,
.legacy-game-screen .score-info,
#round-timer {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 600;
}

#round-timer.timer-warning {
  color: var(--brand-red);
}

.legacy-game-screen .exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 2px solid var(--brand-grey);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.legacy-game-screen .game-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #d7d7d7;
  border-radius: 0 0 32px 32px;
}

.street-view-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #d7d7d7;
}

.map-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 400px;
  max-width: calc(100% - 40px);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.map-panel.expanded {
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: auto;
  max-width: none;
  padding: 20px;
  z-index: 40;
}

.map-panel.minimized {
  width: auto;
  max-width: none;
  padding: 10px;
  gap: 0;
}

.map-panel.minimized .map-header,
.map-panel.minimized .guess-map,
.map-panel.minimized #submit-guess {
  display: none;
}

.map-panel.minimized .map-restore-btn {
  display: inline-flex;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.map-helper-text {
  margin-right: auto;
  color: rgba(76, 76, 76, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expand-btn {
  width: 44px;
  height: 36px;
  padding: 0;
  border: 2px solid var(--brand-grey);
  border-radius: 10px;
  background: var(--brand-light-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.expand-btn:hover {
  background: var(--brand-red-alpha);
  border-color: var(--brand-red);
}

.expand-icon {
  font-size: 16px;
  line-height: 1;
}

.map-panel.expanded #expand-map-btn .expand-icon {
  transform: rotate(180deg);
}

.guess-map {
  width: 100%;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f1f1;
}

.map-panel.expanded .guess-map {
  flex: 1 1 auto;
  min-height: 280px;
  height: auto;
}

.map-panel #submit-guess {
  margin-top: auto;
}

.map-restore-btn {
  display: none;
  min-height: 42px;
}

.modal {
  display: flex !important;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 1;
}

.result-modal {
  width: min(1040px, 95vw);
  max-width: 1040px;
  max-height: calc(var(--app-height) - 60px);
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.result-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
  overflow: auto;
}

.result-map-container {
  flex: 1 1 auto;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
}

.result-map {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #ececec;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.result-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--brand-light-grey);
}

.stat-label {
  color: var(--brand-dark);
  font-weight: 600;
}

.stat-value {
  color: var(--brand-red);
  font-size: 24px;
  font-weight: 700;
}

.actual-location {
  padding: 18px;
  border-radius: 16px;
  background: var(--brand-red-alpha);
  color: var(--brand-dark);
}

.actual-location p {
  margin: 4px 0;
}

.result-next-btn {
  width: 100%;
  margin-top: 8px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .result-body {
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
  }

  .result-map-container {
    flex: 1 1 60%;
    min-height: 420px;
  }

  .result-info {
    flex: 0 0 320px;
  }
}

@media (max-width: 768px) {
  .landing-shell,
  .results-shell {
    gap: 14px;
  }

  .landing-panel--event {
    padding: 18px 16px;
    gap: 12px;
  }

  .landing-panel--event .landing-panel__brand {
    gap: 6px;
    padding-bottom: 4px;
  }

  .landing-panel--event .landing-panel__logo {
    width: min(160px, 42vw);
  }

  .landing-panel--event .landing-panel__strapline {
    font-size: 0.92rem;
  }

  .landing-panel--event .landing-panel__title {
    font-size: clamp(1.3rem, 8vw, 1.9rem);
  }

  .landing-panel--event .landing-panel__body {
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .landing-actions__note {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .landing-event-form {
    gap: 10px;
  }

  .landing-event-form label {
    gap: 6px;
  }

  .landing-event-form input[type="text"],
  .landing-event-form input[type="email"] {
    min-height: 50px;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .phase-app--immersive {
    padding:
      calc(8px + var(--safe-top))
      calc(8px + var(--safe-right))
      calc(8px + var(--safe-bottom))
      calc(8px + var(--safe-left));
  }

  .legacy-game-screen.screen {
    border-radius: 24px;
  }

  .legacy-game-screen .game-header {
    border-radius: 24px 24px 0 0;
  }

  .demo-coachmark--step-0,
  .demo-coachmark--step-1,
  .demo-coachmark--step-2,
  .demo-coachmark--step-3 {
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .demo-coachmark--step-1 {
    top: auto;
    bottom: 76px;
  }

  .demo-coachmark--step-2 {
    top: auto;
    right: 10px;
    left: auto;
    bottom: 76px;
  }

  .demo-coachmark__card {
    width: min(220px, calc(100vw - 28px));
    padding: 11px 11px 10px;
  }

  .demo-coachmark--step-0 .demo-coachmark__card,
  .demo-coachmark--step-3 .demo-coachmark__card {
    width: min(310px, calc(100vw - 28px));
  }

  .demo-coachmark--step-1 .demo-coachmark__card::after,
  .demo-coachmark--step-2 .demo-coachmark__card::after,
  .demo-coachmark--step-3 .demo-coachmark__card::after {
    left: 26px;
    right: auto;
    bottom: -8px;
    margin-left: 0;
  }

  .demo-coachmark--step-2 .demo-coachmark__card::after {
    left: auto;
    right: 26px;
  }

  .legacy-game-screen .game-info-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .legacy-game-screen .demo-brand-slot {
    min-width: 92px;
  }

  .legacy-game-screen .demo-brand-slot__logo {
    width: 88px;
  }

  .legacy-game-screen .round-info,
  .legacy-game-screen .score-info,
  #round-timer {
    font-size: 15px;
  }

  .legacy-game-screen .exit-text {
    display: none;
  }

  .map-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 12px;
  }

  .map-panel.expanded {
    top: 12px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
  }

  .guess-map {
    height: clamp(170px, 25vh, 250px);
  }

  .map-panel.expanded .guess-map {
    min-height: 220px;
  }

  .result-modal {
    width: min(96vw, 560px);
    padding: 20px;
    max-height: calc(var(--app-height) - 24px);
  }

  .results-hero__topline,
  .results-hero__score-row {
    flex-direction: column;
  }

  .result-map,
  .result-map-container {
    min-height: 230px;
  }
}

@media (max-width: 480px) {
  .legacy-game-screen .game-info-bar {
    grid-template-columns: auto 1fr auto;
    padding: 10px 12px;
    align-items: center;
  }

  .legacy-game-screen .timer-info {
    justify-self: center;
    min-width: 54px;
    pointer-events: auto;
  }

  .legacy-game-screen .demo-brand-slot {
    min-width: 74px;
  }

  .legacy-game-screen .demo-brand-slot__logo {
    width: 74px;
  }

  .legacy-game-screen .round-info,
  .legacy-game-screen .score-info,
  #round-timer {
    font-size: 14px;
  }

  .legacy-game-screen .game-info-left,
  .legacy-game-screen .score-info {
    min-width: 0;
  }

  .expand-btn {
    width: 38px;
    height: 34px;
  }

  .guess-map {
    height: clamp(150px, 22vh, 210px);
  }

  .result-modal {
    padding: 16px;
  }

  .result-map,
  .result-map-container {
    min-height: 200px;
  }

  .stat-value {
    font-size: 20px;
  }
}
