:root {
  color-scheme: dark;
  --blue-980: #001f3f;
  --blue-950: #002e5c;
  --blue-900: #003d73;
  --blue-820: #074e83;
  --blue-760: #0d608f;
  --cyan-300: #8ddce7;
  --cyan-200: #b8eef4;
  --cyan-soft: rgba(184, 238, 244, 0.72);
  --yellow-400: #fac132;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --hairline: rgba(141, 220, 231, 0.44);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--blue-980);
}

body {
  color: var(--white);
}

body.cursor-hidden,
body.cursor-hidden * {
  cursor: none !important;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.screen-shell {
  position: fixed;
  inset: 0;
  min-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0, 31, 63, 0.22) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, #003463 0%, #004776 48%, #00355f 100%);
}

.screen-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 24, 52, 0.26), transparent 38%, rgba(0, 22, 45, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%, rgba(0, 16, 36, 0.28));
  pointer-events: none;
}

.ambient-screen,
.campaign-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ambient-screen {
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: min(3.4vh, 34px);
  padding: min(5.4vh, 58px) min(4.8vw, 84px) 0;
  transition: opacity 520ms ease, transform 520ms ease;
}

.campaign-active .ambient-screen {
  opacity: 0;
  transform: scale(1.01);
  pointer-events: none;
}

.region-mark {
  position: relative;
  z-index: 2;
  width: 236px;
  height: 125px;
}

.region-mark img {
  display: block;
  width: 236px;
  height: 125px;
  object-fit: contain;
}

.ambient-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 36%);
  gap: min(4vw, 58px);
}

.waiting-side {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(360px, 0.44fr) minmax(380px, 0.56fr);
  gap: min(4vw, 58px);
  align-items: center;
}

.time-block {
  min-width: 0;
  align-self: center;
}

.clock {
  display: block;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: clamp(5.4rem, 16vh, 10.2rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow: 0 16px 58px rgba(0, 12, 26, 0.34);
  white-space: nowrap;
}

.date-line {
  margin: min(2.4vh, 24px) 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.5rem, 3vh, 2.15rem);
  font-weight: 440;
  letter-spacing: 0;
  line-height: 1.2;
}

.yellow-mark {
  width: 68px;
  height: 4px;
  margin: min(5.2vh, 54px) 0 min(2.8vh, 30px);
  border-radius: 999px;
  background: var(--yellow-400);
}

.time-block h1 {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.72rem, 4.2vh, 3.05rem);
  font-weight: 460;
  letter-spacing: 0;
  line-height: 1.28;
}

.time-block h1 span {
  color: var(--yellow-400);
  font-size: 1.12em;
}

.symbol-field {
  position: relative;
  min-height: 0;
  height: min(58vh, 560px);
  align-self: center;
}

.illustration-map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  transform: scale(1.06);
  transform-origin: 50% 50%;
}

.journey-route-shadow {
  stroke: rgba(0, 22, 45, 0.3);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-route {
  stroke: rgba(184, 238, 244, 0.74);
  stroke-width: 5;
  stroke-dasharray: 14 16;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-step {
  fill: none;
  stroke: rgba(224, 251, 255, 0.96);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 14px 22px rgba(0, 24, 49, 0.24));
}

.journey-step-ring {
  fill: rgba(0, 38, 72, 0.52);
  stroke: rgba(141, 220, 231, 0.62);
  stroke-width: 4;
}

.journey-check,
.journey-fill {
  fill: rgba(141, 220, 231, 0.72);
  stroke: rgba(141, 220, 231, 0.72);
}

.journey-check-mark {
  stroke: #fff;
}

.journey-vaccine {
  stroke: rgba(255, 255, 255, 0.94);
}

.booking-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid rgba(141, 220, 231, 0.68);
  padding-left: min(3.6vw, 52px);
}

.campaign-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.06rem, 2.3vh, 1.5rem);
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.campaign-heading svg {
  width: clamp(34px, 5vh, 48px);
  height: clamp(34px, 5vh, 48px);
  fill: none;
  stroke: var(--yellow-400);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-panel .campaign-heading {
  gap: 10px;
  font-size: clamp(0.9rem, 1.8vh, 1.22rem);
}

.booking-panel .campaign-heading svg {
  width: clamp(30px, 4.4vh, 42px);
  height: clamp(30px, 4.4vh, 42px);
}

.panel-rule {
  width: 100%;
  height: 2px;
  margin: clamp(20px, 3.2vh, 38px) 0;
  background: rgba(141, 220, 231, 0.32);
}

.booking-copy {
  position: relative;
  padding-left: clamp(58px, 4vw, 74px);
}

.booking-copy h2 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 6.15vh, 4.45rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
}

.booking-copy h2 strong {
  display: block;
  color: var(--cyan-300);
  font-weight: inherit;
}

.booking-copy p {
  max-width: 520px;
  margin: clamp(20px, 2.9vh, 36px) 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.14rem, 2.55vh, 1.78rem);
  font-weight: 420;
  letter-spacing: 0;
  line-height: 1.34;
}

.chevron {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-top: 6px solid var(--cyan-300);
  border-right: 6px solid var(--cyan-300);
  transform: rotate(45deg);
  opacity: 0.9;
}

.ambient-footer {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(76px, 10.6vh, 92px);
  align-items: center;
  border-top: 1px solid rgba(141, 220, 231, 0.34);
}

.footer-note {
  display: flex;
  max-width: min(940px, 86vw);
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.12rem, 2.25vh, 1.56rem);
  font-weight: 430;
  letter-spacing: 0;
  line-height: 1.25;
}

.info-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.campaign-screen {
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(520px, 0.62fr);
  align-items: center;
  padding: min(7vh, 78px) min(5.6vw, 104px);
  background:
    linear-gradient(115deg, rgba(0, 31, 63, 0.18) 0 1px, transparent 1px 52px),
    linear-gradient(135deg, #002c58 0%, #004472 52%, #00335d 100%);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity 520ms ease, transform 520ms ease;
}

.campaign-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 18, 40, 0.1), transparent 44%, rgba(0, 17, 36, 0.18));
  pointer-events: none;
}

.campaign-active .campaign-screen {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.campaign-watermark {
  position: relative;
  min-height: 62vh;
  opacity: 0.7;
}

.campaign-watermark .icon-calendar {
  top: 8%;
  left: 24%;
}

.campaign-watermark .icon-syringe {
  top: 38%;
  left: 32%;
}

.icon {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: rgba(224, 251, 255, 0.86);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 12px 20px rgba(0, 24, 49, 0.22));
}

.icon .fill-detail {
  fill: rgba(141, 220, 231, 0.72);
  stroke: rgba(141, 220, 231, 0.72);
}

.icon-calendar {
  top: 0;
  left: 38%;
  width: clamp(112px, 15vh, 156px);
}

.icon-syringe {
  top: 33%;
  left: 34%;
  width: clamp(150px, 20vh, 214px);
  transform: rotate(-2deg);
}

.campaign-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  border-left: 2px solid rgba(141, 220, 231, 0.62);
  padding-left: min(5vw, 74px);
}

.campaign-content h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 8.4vh, 7.4rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
}

.campaign-content h2 span {
  display: block;
  color: var(--cyan-300);
}

.campaign-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.52rem, 3.6vh, 2.5rem);
  line-height: 1.34;
}

.settings-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) minmax(300px, 0.32fr) 54px;
  gap: min(2.2vw, 32px);
  align-items: center;
  padding: 22px min(4.4vw, 72px);
  border-top: 1px solid rgba(141, 220, 231, 0.28);
  background: rgba(0, 28, 55, 0.94);
  box-shadow: 0 -18px 60px rgba(0, 16, 34, 0.38);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(102%);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  visibility: hidden;
}

.settings-visible .settings-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.settings-title {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 18px;
}

.settings-title svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-title strong {
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-group {
  min-width: 0;
}

.settings-group.compact {
  display: flex;
  min-width: 300px;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding-left: min(2.6vw, 36px);
  border-left: 1px solid rgba(141, 220, 231, 0.32);
}

.settings-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
}

.settings-hint,
.status-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.3;
}

.station-list {
  display: flex;
  gap: min(1.1vw, 18px);
  align-items: center;
}

.station-button,
.ghost-button {
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.station-button {
  display: flex;
  min-width: 0;
  align-items: center;
  flex: 1 1 154px;
  gap: 10px;
  padding: 6px 4px;
  text-align: left;
}

.station-copy {
  min-width: 0;
}

.station-copy strong {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.station-copy small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.station-button:hover,
.station-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(184, 238, 244, 0.78);
  border-radius: 8px;
  outline: none;
}

.station-button.is-active {
  color: var(--cyan-200);
}

.station-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 12, 26, 0.2);
  object-fit: contain;
}

.station-button.was-selected:not(.is-active) .station-logo {
  outline: 2px solid rgba(184, 238, 244, 0.72);
  outline-offset: 3px;
}

.station-button.is-active .station-logo {
  border-color: #fff;
  box-shadow:
    0 0 0 3px rgba(184, 238, 244, 0.9),
    0 12px 26px rgba(0, 12, 26, 0.28);
}

.radio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.ghost-button {
  min-height: 36px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 760;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 700;
}

.volume-control input {
  width: 132px;
  accent-color: var(--cyan-300);
}

.switch {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  width: 74px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 180ms ease;
}

.switch span::after {
  position: absolute;
  top: 6px;
  left: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: linear-gradient(90deg, var(--cyan-300), #75d9dc);
}

.switch input:checked + span::after {
  transform: translateX(32px);
}

.switch em {
  min-width: 28px;
  color: #fff;
  font-size: 1.12rem;
  font-style: normal;
  font-weight: 760;
}

.close-button {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.close-button span {
  position: absolute;
  top: 25px;
  left: 9px;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.close-button span:first-child {
  transform: rotate(45deg);
}

.close-button span:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 1280px), (max-height: 760px) {
  .ambient-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 36%);
    gap: 28px;
  }

  .waiting-side {
    grid-template-columns: minmax(320px, 0.48fr) minmax(300px, 0.52fr);
    gap: 28px;
  }

  .clock {
    font-size: clamp(4.5rem, 14vh, 8rem);
  }

  .symbol-field {
    height: min(52vh, 470px);
  }

  .booking-panel {
    padding-left: 42px;
  }

  .booking-copy {
    padding-left: 60px;
  }

  .panel-rule {
    margin: 22px 0;
  }

  .booking-copy h2 {
    font-size: clamp(2.15rem, 5.95vh, 3.9rem);
  }

  .booking-copy p {
    margin-top: 18px;
    font-size: clamp(1.08rem, 2.35vh, 1.42rem);
    line-height: 1.32;
  }

  .settings-panel {
    grid-template-columns: auto minmax(410px, 1fr) minmax(292px, 0.32fr) 52px;
    gap: 24px;
    padding: 18px 52px;
  }

  .settings-title {
    min-width: 250px;
  }

  .settings-group.compact {
    min-width: 292px;
    gap: 24px;
    padding-left: 30px;
  }
}

@media (max-width: 980px) {
  .ambient-screen {
    gap: 18px;
    padding: 24px 24px 0;
  }

  .region-mark {
    width: 236px;
    height: 125px;
  }

  .region-mark img {
    width: 236px;
    height: 125px;
  }

  .ambient-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .waiting-side {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .symbol-field {
    position: absolute;
    right: 0;
    bottom: 98px;
    width: 52vw;
    height: 34vh;
    opacity: 0.5;
  }

  .booking-panel {
    border-left: 0;
    border-top: 1px solid rgba(141, 220, 231, 0.5);
    padding: 18px 0 0;
  }

  .booking-copy {
    padding-left: 44px;
  }

  .booking-copy h2 {
    max-width: 640px;
    font-size: clamp(2.1rem, 5.5vh, 3.4rem);
  }

  .booking-copy p {
    max-width: 620px;
    margin-top: 18px;
    font-size: clamp(1.12rem, 2.7vh, 1.52rem);
  }

  .panel-rule {
    margin: 18px 0;
  }

  .ambient-footer {
    min-height: 78px;
  }

  .footer-note {
    font-size: clamp(1rem, 2.2vh, 1.3rem);
  }

  .campaign-screen {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .campaign-watermark {
    position: absolute;
    inset: 0;
    min-height: auto;
    opacity: 0.24;
  }

  .campaign-content {
    max-width: 720px;
    border-left: 0;
    padding-left: 0;
  }

  .campaign-content h2 {
    font-size: clamp(3rem, 8vh, 5.2rem);
  }

  .settings-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: 86vh;
    overflow: hidden;
    padding: 20px 24px 24px;
  }

  .settings-title {
    min-width: 0;
  }

  .settings-group.compact {
    padding-left: 0;
    border-left: 0;
  }

  .station-list,
  .radio-actions {
    flex-wrap: wrap;
  }

  .close-button {
    position: absolute;
    top: 16px;
    right: 18px;
  }
}

@media (max-width: 560px) {
  .ambient-screen {
    padding: 18px 18px 0;
  }

  .region-mark {
    transform: scale(0.84);
    transform-origin: top left;
  }

  .clock {
    font-size: clamp(3.7rem, 12vh, 5.4rem);
  }

  .date-line {
    font-size: 1.16rem;
  }

  .time-block h1 {
    font-size: 1.42rem;
  }

  .symbol-field {
    display: none;
  }

  .booking-panel {
    justify-content: start;
  }

  .campaign-heading {
    gap: 10px;
    font-size: 0.92rem;
  }

  .booking-copy {
    padding-left: 28px;
  }

  .chevron {
    width: 22px;
    height: 22px;
    border-width: 5px;
  }

  .ambient-footer {
    min-height: 72px;
  }

  .footer-note {
    gap: 12px;
    font-size: 0.98rem;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    border-width: 2px;
    font-size: 1.45rem;
  }
}

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