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

html, body {
  height: 100%;
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow: hidden;
  /* Prevent text selection and callouts on iPad */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hidden {
  display: none !important;
}

/* ---- Standby ---- */
#standby {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
}

#standby-name {
  font-size: 4vw;
  font-weight: 700;
  text-align: center;
}

#standby-id {
  font-size: 2.5vw;
  color: #aaa;
}

#clock {
  font-size: 6vw;
  font-weight: 300;
  margin-top: 2rem;
  font-variant-numeric: tabular-nums;
}

/* ---- Active Call ---- */
#call {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Compact header — pack info tight so the map gets maximum space */
#call-header {
  background: #b71c1c;
  padding: 0.6rem 1.2rem;
  flex-shrink: 0;
  line-height: 1.2;
}

#call-row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

#call-type {
  font-size: 4vw;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#call-timer {
  font-size: 3vw;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

#call-row2 {
  font-size: 2.6vw;
  font-weight: 500;
  margin-top: 0.15rem;
}

#call-cross {
  color: #ffcdd2;
  margin-left: 0.5em;
}

#call-cross:empty {
  display: none;
}

#call-row3 {
  font-size: 1.6vw;
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  color: #ffcdd2;
}

#call-place:empty,
#call-eta:empty {
  display: none;
}

#call-eta {
  color: #fff;
  font-weight: 700;
}

#map {
  flex: 1;
  width: 100%;
}
