/* «Primeros 5 minutos» (Plataforma): full-screen route on the phone, a centred panel on wider screens. */
.gs-open { overflow: hidden; }
.gs-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--bg, #07172e); overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.gs-panel { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.gs-head p { margin: 6px 0 0; }
.gs-progress { display: flex; gap: 6px; }
.gs-segment { flex: 1; height: 6px; border-radius: 3px; background: var(--sep, rgba(127,127,127,.35)); position: relative; }
.gs-segment.is-done { background: var(--accent, #c8ff31); }
.gs-segment.is-skipped { background: var(--accent, #c8ff31); opacity: .45; }  /* passed, without doing it: the same solid bar */
.gs-segment.is-current { background: var(--muted); }
.gs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gs-step-labels span { white-space: nowrap; }
.gs-step-labels [aria-current] { color: var(--text); font-weight: 700; }
.gs-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.gs-body h2 { margin: 8px 0 0; }
.gs-brands, .gs-choices { display: grid; gap: 10px; }
.gs-brand, .gs-choice { min-height: 52px; text-align: left; padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
.gs-choice { display: flex; flex-direction: column; gap: 2px; }
.gs-arriving { height: 6px; border-radius: 3px; background: var(--sep, rgba(127,127,127,.35)); overflow: hidden; }
.gs-arriving span { display: block; width: 40%; height: 100%; background: var(--accent, #c8ff31); animation: gs-move 1.6s ease-in-out infinite; }
@keyframes gs-move { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .gs-arriving span { animation: none; width: 100%; opacity: .5; } }
.gs-have { padding-left: 1.2em; }
.gs-foot { display: flex; justify-content: center; padding-bottom: 8px; }
.gs-resume { display: grid; gap: 8px; }
.gs-resume-text { margin: 0; }
.gs-home { display: grid; gap: 12px; }
/* The card menu («⋯») sits top right: the bar leaves it room. Skipped steps read apart from pending ones. */
.gs-resume .gs-progress { margin-right: 56px; }
.gs-race-form, .gs-race-fields, .gs-race-actions { display: grid; gap: 10px; }
.gs-race-fields { background: var(--card); border: 1px solid var(--sep); border-radius: 16px; padding: 12px; }
.gs-race-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gs-race-field { display: grid; gap: 4px; min-width: 0; color: var(--muted); }
.gs-race-field input { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.gs-race-fields fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gs-race-fields legend { color: var(--muted); padding: 0 0 4px; }
.gs-race-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gs-race-types label { position: relative; cursor: pointer; }
.gs-race-types input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gs-race-types span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--sep); border-radius: 10px; font-size: .875rem; }
.gs-race-types input:checked + span { background: var(--fill); border-color: var(--accent); font-weight: 700; }
.gs-race-types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gs-race-actions button { min-height: 44px; }
.gs-race-actions button[type="button"] { background: transparent; border: 1px solid var(--sep); color: var(--text); }
.gs-race-intro { margin: 0; }
.gs-race-error { margin: 0; }
@media (max-width: 350px) { .gs-race-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
