/* The static web build's start screen (web.js). Only the web build links this file; the Grafana Page and the local stack don't. */
.where { max-width: 980px; margin: 0 auto; padding: 8px 0 24px; }
.where h1 { color: var(--text); font: normal clamp(28px, 4vw, 42px)/1.1 var(--serif); margin: 12px 0 8px; }
.where h1:focus { outline: none; }
.where .lede { margin: 0 0 14px; }
.where .where-prompt { margin: 0 0 16px; color: var(--text); font: normal clamp(18px, 2.4vw, 22px)/1.3 var(--serif); }
.where-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.where-card { display: flex; flex-direction: column; }
.where-card .console-body { display: flex; flex-direction: column; flex: 1; }
.where-card .actions { margin-top: auto; padding-top: 14px; }
.where-card h2 { margin: 0 0 8px; }
.where-list { margin: 0 0 12px; padding-left: 20px; color: #c7d5c9; font-size: 14px; }
.where-list li { margin: 4px 0; }
.where-learn { margin: 0 0 12px; font-size: 14px; color: #c7d5c9; }
.where-learn strong { color: var(--accent, var(--c-ink)); font-family: var(--mono); font-weight: normal; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.where-card a.btn { text-decoration: none; }
/* Keyboard focus on a card's button. */
.where :focus-visible { outline: 3px solid var(--c-peach); outline-offset: 3px; }
@media (max-width: 860px) {
  .where-grid { grid-template-columns: minmax(0, 1fr); }
}
/* While choosing, the top bar's game buttons have nothing to do yet. */
.choosing .topbar .btn { display: none; }
/* The game's name at the top left takes the player back to the start screen. On a phone
   the game's name stays too (the Page hides it because its panel already has a title; this page has none). */
.brand-home { color: inherit; text-decoration: none; }
.brand-home:hover { text-decoration: underline; }
@media (max-width: 720px) { .brand { display: inline; } }
/* On a phone the setup screen's long commands must scroll inside their boxes, not widen the page. */
.setup, .setup-steps { grid-template-columns: minmax(0, 1fr); }

/* ---- neon, CRT and disco: the start screen's cards and the local setup's route cards ------------------------------------- */
.where, .setup { --neon-cyan: #4fe3ff; --neon-magenta: #ff5fd6; --neon-amber: #ffb347; }
.place-play, .route-card.route-mcp { --accent: var(--neon-cyan); }
.route-card.route-gcx { --accent: var(--neon-magenta); }
.place-local { --accent: var(--neon-amber); }
/* A picture in a CRT frame: rounded glass, an inner shadow and faint scanlines over it. */
.where-shot, .route-shot { position: relative; display: block; overflow: hidden; border: 1px solid var(--accent, var(--c-line)); border-radius: 10px / 8px;
  background: #050c0d; box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.7), 0 0 14px color-mix(in srgb, var(--accent, var(--c-mint)) 45%, transparent); }
.where-shot img, .route-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.where-shot::after, .route-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%); }
.where-shot { margin: 0 0 12px; }
.where-card { --accent: var(--c-mint); border-color: color-mix(in srgb, var(--accent) 55%, var(--c-line)); transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s; }
.where-card:hover, .where-card:focus-within { border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 26px color-mix(in srgb, var(--accent) 40%, transparent); }
.where-card .console-bar { color: var(--accent); text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 70%, transparent); }
.where-card .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.where-card h2 { font: normal 21px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink);
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent); }
.where-card .btn-primary { box-shadow: 0 0 0 1px var(--accent), 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.where h1 { text-shadow: 0 0 18px rgba(255, 95, 214, 0.35), 0 0 4px rgba(79, 227, 255, 0.4); }
/* The route cards. */
.route-card { --accent: var(--c-mint); }
.route-pick.btn { gap: 10px; border-color: color-mix(in srgb, var(--accent) 55%, var(--c-line)); transition: box-shadow 0.18s, border-color 0.18s; }
.route-pick.btn:hover, .route-pick.btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.route-pick.is-picked.btn { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 55%, transparent); }
.route-name { color: var(--accent); font-size: 15px; text-transform: uppercase; text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }
.route-name::before { color: var(--accent); }
.is-picked .route-state { background: var(--accent); border-color: var(--accent); }
.route-art { max-width: 300px; }
.route-shot img { aspect-ratio: 2 / 1; }
#setup-hint { margin: 10px 0 6px; }
.dg-box { stroke: color-mix(in srgb, var(--accent) 70%, var(--c-chip-line)); }
@media (prefers-reduced-motion: no-preference) {
  .where-card:hover .where-shot img { transform: scale(1.03); }
  .where-shot img, .route-shot img { transition: transform 0.4s; }
  .route-pick:hover .route-shot img { transform: scale(1.03); }
  #setup-hint::after { content: "\2588"; margin-left: 6px; color: var(--neon-cyan); animation: dj-blink 1.1s steps(2, start) infinite; }
}
@keyframes dj-blink { to { visibility: hidden; } }
