/* Ootan: ühine kujundus */
:root {
  --sand: #e9dece;
  --cream: #f6efe4;
  --ink: #3a2c22;
  --muted: #8a7462;
  --line: rgba(58, 44, 34, .16);
  --accent: #9a5b36;
  --pill-shadow: 0 2px 8px rgba(90, 64, 40, .08);
  --logo-shadow: 0 6px 18px rgba(90, 64, 40, .12);
  /* pehme valgusvihk nagu katuseaknast */
  --bg:
    linear-gradient(118deg, transparent 22%, rgba(255, 251, 243, .55) 38%, transparent 56%),
    radial-gradient(ellipse at 50% -10%, #f7efe3 0%, #e9dece 55%, #ddcdb7 100%);
}
/* Tume kujundus: logo taustavärv, soe ja summutatud tekst */
html[data-theme="dark"] {
  --sand: #2c2a2a;
  --cream: #3a3636;
  --ink: #e4d9c9;
  --muted: #9c8f80;
  --line: rgba(228, 217, 201, .12);
  --accent: #d39468;
  --pill-shadow: none;
  --logo-shadow: 0 0 0 1px rgba(228, 217, 201, .14);
  --bg: radial-gradient(ellipse at 50% -10%, #353232 0%, #2c2a2a 60%, #262424 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--sand); -webkit-text-size-adjust: 100%; }
body {
  color: var(--ink);
  font-family: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 400;
  min-height: 100dvh;
  background: var(--bg);
  padding:
    calc(env(safe-area-inset-top) + clamp(22px, 7vw, 44px))
    clamp(18px, 6vw, 32px)
    calc(env(safe-area-inset-bottom) + 28px);
  transition: color .3s;
}
.wrap { max-width: 540px; margin: 0 auto; }

.logo {
  display: block;
  width: clamp(62px, 18vw, 88px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--logo-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform .15s;
}
.logo:active { transform: scale(.94); }
.logo img { width: 100%; height: 100%; display: block; }

h1 {
  text-align: center;
  font-weight: 400;
  font-size: clamp(24px, 7.5vw, 36px);
  letter-spacing: .04em;
  line-height: 1.1;
  margin: clamp(14px, 4vw, 22px) 0 clamp(20px, 6vw, 34px);
  min-height: 1.1em;
}

.msg {
  text-align: center;
  color: var(--muted);
  font-size: clamp(20px, 6.5vw, 30px);
  line-height: 1.3;
  padding: clamp(24px, 8vw, 44px) 0;
}
.nw { white-space: nowrap; }

/* Väljumiste tabel */
.board { transition: opacity .5s; }
.board.stale { opacity: .4; }

.dep {
  display: grid;
  grid-template-columns: clamp(62px, 19vw, 96px) 1fr auto;
  align-items: center;
  gap: clamp(12px, 4vw, 20px);
  padding: clamp(14px, 4vw, 20px) 0;
}
.dep + .dep { border-top: 1px solid var(--line); }

.route {
  justify-self: start;
  min-width: 100%;
  text-align: center;
  background: var(--cream);
  border-radius: 999px;
  padding: .18em .3em .22em;
  font-weight: 500;
  font-size: clamp(26px, 8.5vw, 42px);
  line-height: 1;
  box-shadow: var(--pill-shadow);
  transition: background-color .3s;
}
.dest {
  font-size: clamp(20px, 6vw, 28px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.mins {
  text-align: right;
  font-weight: 500;
  font-size: clamp(36px, 11.5vw, 58px);
  line-height: 1;
  white-space: nowrap;
}
.mins small { font-size: .38em; font-weight: 400; color: var(--muted); margin-left: .15em; }
.mins.now { color: var(--accent); font-size: clamp(24px, 7.5vw, 38px); }
