:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.30);
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.58);
  --fg-faint: rgba(255, 255, 255, 0.34);
  --accent: #ffffff;
  --danger: #ff8686;
  --warning: #ffce54;
  --mars: #d64530;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-full: 999px;

  --content-width: 480px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  overscroll-behavior: none;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

button,
select,
input {
  font: inherit;
}

#camera {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#gameCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  pointer-events: none;
}

.jump-guide-text {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 10;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 80%;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 650;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.screen {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-width);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: calc(var(--safe-top) + var(--space-6)) var(--space-4) calc(var(--safe-bottom) + 100px);
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screen::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.screen button,
.screen a,
.screen select,
.screen video,
.screen img {
  position: relative;
  z-index: 60;
  pointer-events: auto;
}

#screen-permission,
#screen-gameover,
#screen-ticket {
  justify-content: flex-start;
  gap: var(--space-3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--safe-top) + var(--space-5));
  padding-bottom: calc(var(--safe-bottom) + 100px);
}

/* The ticket can be taller than the viewport. Keep this screen as the
   scrolling container instead of shrinking the ticket to make it fit. */
#screen-ticket {
  height: 100%;
  min-height: 0;
  gap: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.ticket-scroll-content {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 100%;
  padding:
    calc(var(--safe-top) + var(--space-5))
    var(--space-4)
    calc(var(--safe-bottom) + 124px);
}

#screen-gameover .btn-primary,
#screen-gameover .btn-secondary,
#screen-gameover .btn-link {
  flex-shrink: 0;
}

.hidden,
.screen.hidden {
  display: none;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.mission-screen {
  overflow: hidden;
  background: #000;
}

.mission-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.mission-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 55%, #000 100%);
}

.mission-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: var(--content-width);
  flex: 1;
  min-height: 0;
}

.mission-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.mission-title .accent,
.mission-tagline .accent {
  color: var(--mars);
}

.mission-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: 220px;
  margin: var(--space-2) 0;
}

.mission-divider span:not(.dot) {
  flex: 1;
  height: 1px;
  background: rgba(214, 69, 48, 0.35);
}

.mission-divider .dot {
  color: var(--mars);
  font-size: 12px;
}

.mission-tagline {
  margin: var(--space-2) 0 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.mission-subtagline {
  margin: 2px 0 var(--space-4);
  font-size: 14px;
  color: var(--fg-dim);
}

.mission-name-label {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: auto;
  margin-bottom: var(--space-1);
}

.mission-name-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  border: 1px solid rgba(214, 69, 48, 0.45);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  background: rgba(214, 69, 48, 0.06);
}

.mission-name-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.mission-name-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.mission-name-input:focus {
  outline: none;
}

.mission-name-count {
  display: none;
}

.mission-guest-hint {
  align-self: flex-start;
  margin: 4px 0 var(--space-4);
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg-faint);
  text-align: left;
}

.mission-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 17px 22px;
  background: var(--mars);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(214, 69, 48, 0.45);
}

.mission-start-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.mission-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: var(--content-width);
  margin: var(--space-2) 0 var(--space-6);
  font-size: 12px;
  color: var(--fg-dim);
  text-align: left;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.logo {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.rule,
.hint {
  margin: 0;
  max-width: var(--content-width);
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.5;
}

.permission-error,
.gameover-notice,
.download-hint {
  max-width: var(--content-width);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.permission-error {
  color: var(--danger);
}

.gameover-notice {
  color: var(--warning);
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.btn-primary {
  min-width: 200px;
  border: 1px solid rgba(214, 69, 48, 0.6);
  border-radius: var(--radius-full);
  padding: 16px 36px;
  background: rgba(214, 69, 48, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  background: var(--surface);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  padding: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-close {
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  padding: var(--space-2);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
  opacity: 0.86;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.bodycheck-controls {
  display: grid;
  width: 100%;
  max-width: var(--content-width);
  gap: 22px;
  align-items: start;
}

#btn-switch-camera {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.55);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bodycheck-setting {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.bodycheck-setting-head {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}

.setting-options {
  display: flex;
  gap: 18px;
  min-width: 0;
}

.setting-options-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.setting-options-scroll::-webkit-scrollbar { display: none; }

.setting-option {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.42);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
}

.setting-option.is-active {
  border-bottom-color: #fff;
  color: #fff;
}

.setting-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.countdown-number {
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  animation: pop 0.85s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }

  45% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.gameover-title {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gameover-subtitle,
.gameover-best,
.download-hint {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
}

.gameover-jumps {
  margin: 0;
  color: var(--mars);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.gameover-almost {
  margin: 0;
  font-size: 14px;
  color: var(--fg);
}

.reward-summary {
  max-width: var(--content-width);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  font-size: 13px;
  line-height: 1.6;
}

.banner-image {
  width: 100%;
  max-width: var(--content-width);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.media-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.qr-image {
  width: 116px;
  height: 116px;
  object-fit: contain;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: #fff;
}

.replay-video {
  width: 100%;
  max-width: var(--content-width);
  max-height: 55vh;
  border-radius: var(--radius-md);
  background: #000;
}

.video-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: var(--content-width);
}

@media (max-height: 720px) {
  #screen-gameover {
    gap: var(--space-2);
  }

  .gameover-jumps {
    font-size: 38px;
  }

  .replay-video {
    max-height: 42vh;
  }
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--fg-dim);
}

.powered-by.hidden {
  display: none;
}

.powered-by-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.powered-by-logo {
  height: 18px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.powered-by-logo.hidden {
  display: none;
}


/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.qr-ticket-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: transparent;
}

.ticket-download-link {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  width: 100%;
  max-width: calc(var(--content-width) - 32px);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ticket-download-link:active .qr-ticket-image {
  transform: scale(0.99);
}

#screen-ticket .qr-ticket-image {
  /* The generated PNG contains about 10.5% empty space on both sides.
     Bleed that space outside the viewport so the visible ticket card,
     rather than the PNG canvas, aligns with the bottom navigation. */
  width: 126.667%;
  max-width: none;
  height: auto;
  margin-right: -13.3335%;
  margin-left: -13.3335%;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.bottom-nav {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  height: calc(58px + var(--safe-bottom));
  padding: 0 20px var(--safe-bottom);
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.bottom-nav-btn {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.bottom-nav-btn.active { color: #fff; }

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.ticket-text-action {
  align-self: flex-start;
  margin: 2px 0 14px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.42);
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  cursor: pointer;
}

.ticket-progress-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticket-progress-item {
  min-width: 0;
  padding: 17px 0 16px;
}

.ticket-progress-item + .ticket-progress-item {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.ticket-progress-item > span {
  display: block;
  margin-bottom: 7px;
  color: var(--fg-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.ticket-progress-item strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ticket-progress-target small {
  display: block;
  margin-top: 6px;
  color: var(--mars);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}


.ticket-week-section {
  width: 100%;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--border);
}

.ticket-week-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ticket-week-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}

.ticket-week-heading > span {
  color: var(--fg-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.ticket-week-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-height: 128px;
}

.ticket-week-column {
  display: grid;
  grid-template-rows: 18px 88px 16px;
  align-items: end;
  min-width: 0;
}

.ticket-week-value {
  align-self: center;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ticket-week-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 88px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.ticket-week-bar {
  width: 54%;
  min-height: 2px;
  background: #fff;
}

.ticket-week-bar.is-zero {
  background: rgba(255,255,255,.18);
}

.ticket-week-day {
  align-self: end;
  color: var(--fg-faint);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.travel-log-section {
  width: 100%;
  margin-top: 20px;
}

.travel-log-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}

.travel-log-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}

.travel-log-heading > span {
  color: var(--fg-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.travel-log-list {
  display: grid;
  width: 100%;
  gap: 12px;
}

.travel-log-ticket {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 224px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: #0b0b0b;
  text-align: left;
}

.travel-log-ticket::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(214, 69, 48, .55);
  border-radius: inherit;
  pointer-events: none;
}

/* Physical ticket cut-outs. The arc is drawn only on the inside half so
   no accent line protrudes beyond the ticket edge. */
.travel-ticket-notch {
  position: absolute;
  z-index: 4;
  top: 69%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  transform: translateY(-50%);
  pointer-events: none;
}

.travel-ticket-notch::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(214, 69, 48, .55);
  border-radius: 50%;
}

.travel-ticket-notch-left {
  left: -8px;
}

.travel-ticket-notch-left::after {
  clip-path: inset(0 0 0 50%);
}

.travel-ticket-notch-right {
  right: -8px;
}

.travel-ticket-notch-right::after {
  clip-path: inset(0 50% 0 0);
}

.travel-log-ticket-bg {
  position: absolute !important;
  inset: 0;
  z-index: -2 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.travel-log-ticket-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .46), rgba(0, 0, 0, .82));
  pointer-events: none;
}

.travel-ticket-header,
.travel-ticket-route,
.travel-ticket-info {
  position: relative;
  z-index: 1;
}

.travel-ticket-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, .22);
}

.travel-ticket-brand {
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.travel-ticket-mission {
  color: rgba(255, 255, 255, .58);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.travel-ticket-route {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.travel-ticket-route strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.travel-ticket-route span {
  color: var(--mars);
  font-size: 15px;
  font-weight: 900;
}

.travel-ticket-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 14px;
}

.travel-ticket-score strong {
  color: #fff;
  font-size: 42px;
  font-weight: 950;
  line-height: .94;
  font-variant-numeric: tabular-nums;
}

.travel-ticket-score span {
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.travel-ticket-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
  padding-top: 13px;
  border-top: 1px dashed rgba(255, 255, 255, .22);
}

.travel-ticket-label,
.travel-ticket-value {
  display: block;
}

.travel-ticket-label {
  color: rgba(255, 255, 255, .42);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .11em;
}

.travel-ticket-value {
  overflow: hidden;
  margin-top: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-ticket-align-right {
  text-align: right;
}

.travel-log-ticket.is-new-best .travel-ticket-info > :last-child .travel-ticket-value {
  color: var(--mars);
}

.travel-log-more {
  width: 100%;
  min-height: 52px;
  margin: 4px 0 0;
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
}

.travel-log-empty {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  color: var(--fg-dim);
  font-size: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

.orientation-warning {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg);
  color: #fff;
  text-align: center;
}

.orientation-warning .logo {
  font-size: 22px;
}

.orientation-warning p {
  margin: 0;
  max-width: 260px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
}

@media (orientation: landscape) and (max-height: 500px) {
  .orientation-warning {
    display: flex;
  }

  .orientation-warning.dismissed {
    display: none;
  }
}

/* v59 release polish: game over is result-first, never a floating prototype card. */
#screen-gameover {
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  padding-left: 20px;
  padding-right: 20px;
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#screen-gameover .gameover-title { margin-top: 10px; }
#screen-gameover .gameover-notice { max-width: 330px; color: var(--fg-dim); font-size: 12px; line-height: 1.45; }
#screen-gameover .reward-summary { padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
#screen-gameover .banner-image { display: block; width: 100%; max-width: 420px; border-radius: 0; }
#screen-gameover .qr-image { display: block; width: 132px; height: 132px; padding: 8px; border-radius: 0; background: #fff; }
#screen-gameover .replay-video { border-radius: 0; }
#screen-gameover .btn-primary,
#screen-gameover .btn-secondary { border-radius: 0; }
#screen-gameover .download-hint:empty { display: none !important; }
