/* Turbo Adventures Discovery Map — prototype only */

:root {
  --ink: #1c1a17;
  --muted: #5c574f;
  --panel: rgba(255, 252, 247, 0.96);
  --line: rgba(28, 26, 23, 0.12);
  --accent: #c45c26;
  --turbo: #0b6e4f;
  --turbo-glow: #2bb673;
  --shadow: 0 10px 32px rgba(28, 26, 23, 0.16);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Segoe UI", sans-serif;
  --z-ui: 1000;
  /* Site nav is in normal flow above the map, so the sheet only stacks over the map. */
  --z-sheet: 1200;
  --z-overlay: 7200;
}

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

/* Ensure [hidden] wins over display:flex overlays */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: #d9e2ea;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
}

body.sheet-open #map,
body.overlay-open #map {
  pointer-events: none;
}

#map-app {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  z-index: 0;
}

body.is-welcome #map-app {
  display: none;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Keep Leaflet panes (up to z-index 1000) inside this layer, under the chrome. */
  z-index: 1;
}

/* ---- Top chrome ---- */

.top-bar {
  position: absolute;
  top: calc(10px + var(--safe-top));
  left: 10px;
  right: 10px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.area-bar {
  display: flex;
  gap: 6px;
}

.area-bar select,
.filter-toggle {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  padding: 8px 14px;
}

.area-bar select {
  flex: 1 1 0;
  min-width: 0;
}

.filter-toggle {
  cursor: pointer;
  text-align: left;
}

.map-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}

.controls-summary {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.controls-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls-summary[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

.sabah-prototype-note {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  align-self: flex-start;
  max-width: 100%;
}

#btn-theatre {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.filter-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
}

.mode-switch button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.mode-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

.mode-switch button[data-mode="turbo"].is-active {
  background: var(--turbo);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.05);
  font-size: 13px;
  font-weight: 550;
  min-height: 40px;
  cursor: pointer;
  user-select: none;
}

.filter-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.bottom-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(12px + var(--safe-bottom));
  /* Above Leaflet tiles and zoom (pane z-index 1000), under the destination sheet. */
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  visibility: visible;
  opacity: 1;
}

.bottom-bar > * {
  pointer-events: auto;
}

.bottom-bar-start {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 150px);
}
.locate-stack { display: grid; gap: 6px; min-width: 0; }
.btn-locate {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn-locate-quiet { background: #fff; color: #173043; border: 1px solid #d7c7a2; }
.locate-status {
  margin: 0;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  color: #173043;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow);
}
.here-marker { background: transparent; border: 0; }

.btn-map-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  background: rgba(255, 252, 247, 0.96);
  color: #1c1a17;
}

/* Zoom sits bottom-right. Lift the opening button above the +/− stack. */
#btn-theatre {
  margin-bottom: 96px;
}

.btn-map-back {
  min-width: 44px;
  min-height: 44px;
  padding-left: 0;
  padding-right: 0;
  font-size: 20px;
  line-height: 1;
}

.btn-map-back:disabled {
  opacity: 0.72;
  cursor: default;
}

body.sheet-open .bottom-bar,
body.overlay-open .bottom-bar,
body.overlay-open .top-bar {
  visibility: hidden;
}

.status-pill,
.hint-pill {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  color: var(--muted);
}

/* ---- Turbo markers ---- */

.turbo-disc-marker {
  background: transparent;
  border: 0;
}

.turbo-disc-dot {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #7dffb5,
    var(--turbo-glow) 45%,
    var(--turbo)
  );
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(11, 110, 79, 0.35), 0 4px 10px rgba(11, 110, 79, 0.45);
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: var(--shadow) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 18px !important;
}

.leaflet-tooltip {
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.turbo-popup .popup-title {
  font-weight: 700;
  font-size: 14px;
}

.turbo-popup .popup-en {
  font-size: 12px;
  color: #666;
}

.turbo-popup .popup-meta {
  font-size: 11px;
  color: #777;
  margin-top: 4px;
}

.turbo-popup .popup-turbo {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(11, 110, 79, 0.1);
  color: var(--turbo);
  font-size: 12px;
  font-weight: 700;
}

/* ---- Destination bottom sheet ---- */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: calc(var(--z-sheet) - 1);
  background: rgba(20, 18, 14, 0.35);
}

.destination-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sheet);
  max-height: min(70vh, calc(100% - 8px));
  overflow: auto;
  background: var(--panel);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  padding: 0 0 calc(22px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.18);
  margin: 10px auto 6px;
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.08);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  z-index: 2;
}

.sheet-media {
  position: relative;
  margin: 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #d7dde4;
  aspect-ratio: 16 / 10;
}

.sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(28, 26, 23, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 999px;
  max-width: calc(100% - 20px);
}

.image-badge.is-placeholder {
  background: rgba(140, 90, 20, 0.88);
}

.sheet-body {
  padding: 14px 18px 0;
}

.sheet-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
}

.sheet-name-en {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.sheet-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3630;
}

.sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.gps-checkin-status {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

.gps-checkin-status.is-progress {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 120, 132, 0.14);
  font-weight: 700;
}

.gps-checkin-status.is-ok {
  color: #0e7884;
}

.gps-checkin-status.is-warn {
  color: #8a3b12;
}

.airport-marker span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #173043;
  color: #fff;
  font-size: 14px;
}

.collection-view { overflow-x: hidden; max-width: 100%; }
.collection-body {
  padding: 0 12px 16px;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.collection-menu { display: grid; gap: 10px; }
.collection-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 64px; padding: 14px 16px; box-sizing: border-box;
  border: 1px solid #d7c7a2; border-radius: 16px; background: #fff; color: #173043;
  font: inherit; font-size: 18px; font-weight: 800; text-align: left; cursor: pointer;
}
.collection-menu strong { font-size: 20px; color: #0e7884; }
.collection-back {
  display: block; width: 100%; margin: 0 0 12px; padding: 14px 16px; box-sizing: border-box;
  border: 0; border-radius: 999px; background: #c4473a; color: #fff;
  font: inherit; font-size: 17px; font-weight: 850; cursor: pointer;
}
.collection-empty { margin: 8px 0 16px; line-height: 1.55; }
.collection-create { font-weight: 800; }
.collection-detail-wide .puzzle-finished { width: 100%; }

.collection-body h2 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.collection-welcome { margin: 0 12px 6px; font-weight: 750; }
.collection-help { margin: 0 12px 8px; }
.collection-help summary { font-weight: 800; cursor: pointer; }
.collection-help p { margin: 6px 0 0; }
.collection-line { margin: 8px 0 4px; }
.collection-body ul { margin: 4px 0 8px; padding-left: 1.1em; }
.collection-body .puzzle-finished { display: block; width: 100%; max-width: 100%; margin: 0 0 16px; }
.collection-body .puzzle-complete { max-height: none; }
.collection-view .sticker-grid { grid-template-columns: repeat(3, 1fr); }
.collection-view .sticker-card img { object-fit: contain; }

.collection-note,
.collection-reset {
  color: #173043;
  font-size: 14px;
  line-height: 1.55;
}
.collection-note {
  margin: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  white-space: pre-line;
}

.collection-slogan { margin: 0 16px 8px; color: var(--muted); font-size: 14px; }
.collection-demo-link { margin: 0 16px 12px; }
.collection-demo-link a { display: block; text-align: center; background: #0e7884; color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 800; text-decoration: none; }
.celebration, .wallpaper-view, .image-view {
  position: fixed; inset: 0; z-index: 80; background: #111; color: #fff;
  display: flex; flex-direction: column; overflow: auto;
}
.celebration[hidden], .wallpaper-view[hidden], .image-view[hidden] { display: none; }
.celebration img, .wallpaper-view img, .image-view img {
  display: block; width: min(100%, 960px); height: auto; margin: 0 auto; object-fit: contain;
}
.celebration-actions, .wallpaper-view .celebration-actions { display: grid; gap: 8px; padding: 12px 16px 24px; }
.celebration-actions button, .celebration-actions a {
  display: block; text-align: center; border: 0; border-radius: 999px; padding: 12px; font: inherit; font-weight: 800;
  background: #fff; color: #173043; text-decoration: none;
}
.puzzle-fireworks i { border-radius: 50%; }
.mosaic,
.puzzle-complete {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: none;
  margin: 4px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #123e3a;
  aspect-ratio: var(--scene-w, 1600) / var(--scene-h, 900);
}

.mosaic-scene,
.puzzle-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.puzzle-complete img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  pointer-events: none;
}

.mosaic-tile {
  background: transparent;
}

.mosaic-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mosaic-cheer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  z-index: 4;
  margin: 0;
  text-align: center;
  color: #fffaf2;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.mosaic-victory {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 3;
  height: 78%;
  width: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.puzzle-board {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #d7cfc3;
}

.puzzle-board img {
  display: block;
  width: 100%;
  height: auto;
}

.puzzle-mask {
  position: absolute;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.puzzle-mask.is-hidden {
  background:
    repeating-linear-gradient(135deg, rgba(28, 26, 23, 0.55) 0 8px, rgba(28, 26, 23, 0.72) 8px 16px);
}

.puzzle-complete {
  position: relative;
}

.reveal-final {
  display: block;
  min-height: 44px;
  margin: 8px 0 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #0e7884;
  color: #fffaf4;
  font: inherit;
  font-weight: 700;
}

.puzzle-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.puzzle-confetti i {
  position: absolute;
  top: -8%;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: puzzle-confetti-fall 1.4s ease-in forwards;
}

@keyframes puzzle-confetti-fall {
  to { transform: translateY(120%) rotate(80deg); opacity: 0.2; }
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(var(--puzzle-cols, 5), minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  max-width: 100%;
}

.puzzle-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(28, 26, 23, 0.08);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.puzzle-cell.is-on {
  background: #0e7884;
  color: #fff;
}

.gps-checkin-hint {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6e4;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.gps-checkin-hint p {
  margin: 0 0 8px;
}

.gps-checkin-hint p:last-child {
  margin-bottom: 0;
}

.gps-checkin-hint-title {
  font-weight: 800;
}

.gps-checkin-diag {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.gps-checkin-diag summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.gps-checkin-diag pre {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(28, 26, 23, 0.06);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--turbo);
  color: #fff;
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: rgba(28, 26, 23, 0.06);
  color: var(--ink);
}

.btn-back {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---- Full-screen overlays ---- */

.overlay-view {
  position: absolute;
  inset: 0;
  z-index: var(--z-overlay);
  background: #111;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.collection-view.overlay-view {
  top: 0;
  background: #f6f1e8;
  color: var(--ink);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.overlay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + var(--safe-top)) 12px 10px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f6f1e8;
}

.overlay-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.overlay-caption {
  margin: 0;
  padding: 12px 16px calc(16px + var(--safe-bottom));
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

/* Welcome */

.welcome-view {
  background: #0f1412;
  overflow: auto;
}

.demo-chip {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.welcome-hero {
  position: relative;
  min-height: 42vh;
  margin: 0 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #222;
}

.welcome-hero img {
  width: 100%;
  height: 100%;
  min-height: 42vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.welcome-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 20, 18, 0.92) 0%,
    rgba(15, 20, 18, 0.35) 45%,
    rgba(15, 20, 18, 0.15) 100%
  );
}

.welcome-hero-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.welcome-hero-text h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.welcome-hero-text p {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.welcome-rewards {
  padding: 16px 16px calc(20px + var(--safe-bottom));
  display: grid;
  gap: 12px;
}

.reward-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.reward-emoji {
  font-size: 28px;
  line-height: 1;
}

.reward-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.reward-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.welcome-note {
  margin: 2px 0 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 720px) {
  .top-bar {
    top: 6px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }

  .brand-row {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .top-bar {
    left: 16px;
    right: auto;
    width: min(420px, 42vw);
  }

  .destination-sheet {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: min(420px, 92vw);
    max-height: min(720px, calc(100% - 16px));
    border-radius: 22px;
    padding-bottom: calc(16px + var(--safe-bottom));
  }

  .sheet-backdrop {
    background: rgba(20, 18, 14, 0.2);
  }

  .welcome-hero,
  .stage-frame {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome-rewards {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .destination-sheet {
    max-height: 92vh;
  }

  .sheet-media {
    aspect-ratio: 21 / 9;
    max-height: 28vh;
  }

  .stage-frame {
    margin-bottom: 0;
  }

  .overlay-caption {
    padding-top: 8px;
    padding-bottom: calc(8px + var(--safe-bottom));
  }
}
