.v-departures {
  --board: #0f1113; --cell: #1d2024; --cell-edge: #2c3036; --flap: #f4f1e6; --amber: #ffb000; --ok: #58d68d; --bad: #ff6b5e; --dim: #8b929a;
  background: var(--board); color: var(--flap); font: 600 1rem/1.4 Overpass, system-ui, sans-serif; padding: 1rem;
}
.v-departures :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.dp-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0.25rem 0.125rem 0.875rem; border-bottom: 2px solid var(--cell-edge); }
.dp-head h1 { color: var(--amber); font-size: 1.125rem; font-weight: 800; letter-spacing: 0.02em; }
.dp-clock { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-clock small { color: var(--dim); font-size: 0.875rem; }

.dp-board { flex: 1; display: flex; flex-direction: column; gap: 0.875rem; padding-block: 1rem; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: start; position: relative; }
.dp-label { color: var(--dim); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }

/* a row of split flaps */
.dp-flaps { display: flex; flex-wrap: wrap; gap: 3px; }
.dp-flaps i { position: relative; display: grid; place-items: center; width: 1.45rem; height: 2rem; border-radius: 3px; background: linear-gradient(var(--cell) 49%, #0a0b0c 49% 52%, var(--cell) 52%); box-shadow: inset 0 0 0 1px var(--cell-edge); color: var(--flap); font-style: normal; font-size: 1.125rem; font-weight: 800; line-height: 1; }
.dp-flaps i.gap { background: #15171a; box-shadow: none; }
.dp-dest .dp-flaps i { width: 1.75rem; height: 2.5rem; font-size: 1.4375rem; color: var(--amber); }
.dp-final.ok .dp-flaps i { color: var(--ok); }
.dp-final.bad .dp-flaps i { color: var(--bad); }
.dp-miss .dp-flaps i { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.dp-miss .dp-label { color: var(--bad); }
.dp-score .dp-flaps i { width: 2.25rem; height: 3.25rem; font-size: 2rem; }

/* a hint not yet taken: a blank row with a lit key at its end */
.dp-hidden { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.dp-hidden .dp-label { grid-column: 1 / -1; }
.dp-key { align-self: center; padding: 0.4rem 0.7rem; border-radius: 6px; background: var(--amber); color: #1a1300; font-size: 0.875rem; font-weight: 800; box-shadow: 0 3px 0 #a36f00; transition: translate 100ms ease-out, box-shadow 100ms ease-out; }
.dp-hidden:active:not(:disabled) .dp-key { translate: 0 3px; box-shadow: 0 0 0 #a36f00; }
.dp-hidden:disabled { cursor: default; }
.dp-hidden:disabled .dp-key { background: var(--cell-edge); color: var(--dim); box-shadow: 0 3px 0 #17191c; }

.dp-lamps { display: flex; gap: 0.5rem; }
.dp-lamps i { width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #23262a; box-shadow: inset 0 0 0 1px var(--cell-edge); }
.dp-lamps i.on { background: var(--amber); box-shadow: 0 0 10px 1px rgb(255 176 0 / 0.55); }
.dp-lamps.ok i.on { background: var(--ok); box-shadow: 0 0 10px 1px rgb(88 214 141 / 0.55); }
.dp-final .dp-lamps { position: absolute; right: 0; top: 0; }
.dp-final .dp-lamps i { width: 0.625rem; height: 0.625rem; }

/* the row the player types onto; the real input lies over it, unseen */
.dp-typing { cursor: text; padding: 0.625rem; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--cell-edge); }
.dp-typing:focus-within { box-shadow: inset 0 0 0 2px var(--amber); }
.dp-typing .dp-label { color: var(--amber); }
.dp-typing input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 1rem; }
.dp-typed .dp-flaps i:last-child { box-shadow: inset 0 0 0 1px var(--amber); }
.dp-options { display: grid; gap: 0.375rem; }
.dp-options li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); align-items: center; padding: 0.375rem 0.5rem; margin: 0 -0.5rem; border-radius: 6px; cursor: pointer; }
.dp-options li[aria-selected="true"] { background: #23272c; box-shadow: inset 3px 0 0 var(--amber); }
.dp-options li[aria-selected="true"] .dp-label { color: var(--amber); }
.dp-options .dp-flaps i { width: 1.3rem; height: 1.75rem; font-size: 1rem; }

.dp-note { color: #c9cdd2; font-weight: 500; text-wrap: pretty; }
.dp-note::first-letter { text-transform: uppercase; }
.dp-foot { display: flex; align-items: center; min-height: 3.25rem; padding-top: 0.875rem; border-top: 2px solid var(--cell-edge); }
.dp-tip { color: var(--dim); font-size: 0.875rem; }
.dp-button { width: 100%; height: 3.25rem; border: 0; border-radius: 8px; background: var(--amber); color: #1a1300; font-weight: 800; box-shadow: 0 4px 0 #a36f00; transition: translate 100ms ease-out, box-shadow 100ms ease-out; }
.dp-button:active { translate: 0 4px; box-shadow: 0 0 0 #a36f00; }
.dp-button.quiet { background: var(--cell); color: var(--flap); box-shadow: 0 4px 0 #08090a, inset 0 0 0 1px var(--cell-edge); }

@media (prefers-reduced-motion: no-preference) {
  .dp-flaps.fresh i:not(.gap) { animation: dp-flap 360ms cubic-bezier(0.3, 0, 0.2, 1) both; animation-delay: calc(var(--i) * 45ms); }
  .dp-miss.in { animation: dp-in 260ms ease-out both; }
  .dp-typed .dp-flaps i:last-child { animation: dp-blink 1s steps(2, start) infinite; }
}
@keyframes dp-flap { 0% { transform: perspective(12rem) rotateX(90deg); color: transparent; } 55% { transform: perspective(12rem) rotateX(-18deg); } 100% { transform: none; } }
@keyframes dp-in { from { opacity: 0; translate: -10px 0; } }
@keyframes dp-blink { to { box-shadow: inset 0 0 0 1px var(--cell-edge); } }
