/* Portrait watch — static vertical route, moving GPS dot only */

html.watch-page,
html.watch-page body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #06080c;
}

body.watch-page {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.watch-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto;
  background: #06080c;
}

body.watch-page.overlay-mode .watch-shell__header {
  display: none;
}

.watch-shell__header {
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
  background: rgba(10, 12, 16, 0.92);
  border-bottom: 1px solid #1e2430;
  font-size: 0.7rem;
}

.watch-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.watch-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.7s ease,
    visibility 0s linear 0.7s;
}

.watch-panel--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition:
    opacity 0.7s ease,
    visibility 0s linear 0s;
}

.watch-schematic {
  background: radial-gradient(ellipse at 50% 80%, #141c28 0%, #06080c 70%);
  overflow: hidden;
}

.watch-geo-map {
  background: #0a0e14;
}

.watch-geo-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0a0e14;
}

.watch-hud {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.watch-hud__block {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(6, 8, 12, 0.85);
  border: 1px solid rgba(240, 193, 77, 0.3);
  min-width: 0;
}

.watch-hud__label {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9aa3b2;
  margin-bottom: 0.15rem;
}

.watch-hud__row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.watch-hud__speed-value,
.watch-hud__dist-value,
.watch-hud__eta-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.watch-hud__block--speed .watch-hud__speed-value {
  font-size: 1.25rem;
}

.watch-hud__speed-unit {
  font-size: 0.65rem;
  font-weight: 600;
  color: #f0c14d;
  text-transform: uppercase;
}

.watch-schematic__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.watch-schematic__route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.watch-schematic__route--done {
  stroke: #5a6d88;
  stroke-width: 2;
  opacity: 0.42;
}

.watch-schematic__route--ahead {
  stroke: #00e5ff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.55));
}

.watch-schematic__dot {
  fill: #ff3b3b;
  stroke: #fff;
  stroke-width: 0.6;
}

.watch-schematic__dot-halo {
  fill: rgba(255, 59, 59, 0.35);
  stroke: none;
  animation: watch-dot-pulse 1.6s ease-out infinite;
}

.watch-schematic__finish-pole {
  stroke: rgba(220, 220, 220, 0.95);
  stroke-width: 0.55;
  stroke-linecap: round;
}

.watch-schematic__finish-flag {
  stroke: rgba(30, 36, 48, 0.9);
  stroke-width: 0.25;
}

.watch-finish-marker {
  background: transparent;
  border: none;
}

.watch-finish-marker__icon {
  position: relative;
  width: 18px;
  height: 20px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
}

.watch-finish-marker__pole {
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 2px;
  height: 15px;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8e8e8, #9aa3b2);
}

.watch-finish-marker__flag {
  position: absolute;
  left: 4px;
  top: 0;
  width: 13px;
  height: 9px;
  border: 1px solid rgba(30, 36, 48, 0.85);
  border-radius: 1px;
  background: conic-gradient(#f0c14d 0 25%, #fff 0 50%) 0 0 / 6px 6px;
}

@keyframes watch-dot-pulse {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.15;
  }
}

.watch-state-label {
  background: transparent;
  border: none;
}

.watch-state-label span {
  display: block;
  font: 700 11px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: rgba(240, 193, 77, 0.92);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  user-select: none;
}

.watch-finish[hidden] {
  display: none !important;
}

.watch-finish {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(6px);
}

.watch-finish__card {
  width: 100%;
  max-width: 22rem;
  padding: 1.25rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 193, 77, 0.45);
  background: linear-gradient(160deg, rgba(28, 36, 52, 0.98), rgba(12, 16, 24, 0.98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.watch-finish__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0c14d;
}

.watch-finish__title {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.watch-finish__stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.watch-finish__stat {
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.watch-finish__stat dt {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b2;
}

.watch-finish__stat dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e8eaed;
}

body.watch-route-complete .watch-hud {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
