#roadAlertButton { flex: 0 0 50px; min-width: 50px; padding: 10px; color: #ff776e; background: #351e22; border: 1px solid #e5645a88; }
#roadAlertButton svg { display: block; width: 28px; height: 28px; margin: auto; }
#roadAlertButton:disabled { opacity: .4; cursor: default; }
#roadAlertButton.on { color: #ffe7e4; background: #a52d2d; box-shadow: 0 0 0 3px #ef625626; }
#drivePanel > .row #center { flex: 0 0 44px; padding: 8px; }
#roadAlertPrompt { margin: 0 0 12px; padding: 12px; border: 1px solid #e5645a; border-radius: 14px; color: #ffe3e0; background: #321e22; }
#roadAlertPrompt[hidden], #roadAlertNotice[hidden] { display: none; }
#roadAlertPrompt b { display: block; font-size: 15px; line-height: 1.35; }
#roadAlertPrompt .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
#roadAlertPrompt button { min-width: 0; min-height: 44px; padding: 8px 4px; border-radius: 10px; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
#roadAlertYes { color: #fff; background: #a53636; }
#roadAlertNo, #roadAlertSkip { color: #e4edea; background: #293b3c; }
#roadAlertNotice { margin: 8px 0; color: #f0cdc7; font-size: 12px; line-height: 1.4; }
.road-alert-marker { background: transparent; border: 0; }
.road-alert-beacon { display: block; width: 38px; height: 38px; color: #fff0ed; background: #b32d2d; border: 1px solid #ff9389; border-radius: 50%; box-shadow: 0 0 0 5px #ef625633; }
.road-alert-beacon svg { display: block; width: 28px; height: 28px; margin: 4px; }
.road-alert-beacon { animation: roadAlertPulse 1.8s ease-in-out infinite; }
@keyframes roadAlertPulse { 50% { box-shadow: 0 0 0 12px #ef625609; background: #e14a3f; } }
@media (prefers-reduced-motion: reduce) { .road-alert-beacon { animation: none; } }
@media (max-height: 480px) and (orientation: landscape) {
  #roadAlertPrompt { padding: 8px; margin-bottom: 8px; }
  #roadAlertPrompt b { font-size: 13px; }
  #roadAlertPrompt .row { margin-top: 6px; }
}

@media (max-width: 350px), (max-height: 480px) and (orientation: landscape) {
  #drivePanel {
    max-height: calc(100% - 24px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #drivePanel > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, 44px);
    gap: 6px;
  }
  #drivePanel > .row > button { width: 100%; min-width: 0; min-height: 44px; }
  #drivePanel > .row > #play { padding: 8px 6px; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
  #drivePanel > .row > #roadAlertButton { padding: 6px; }

  /* Leave the score and multiplier visible while the question needs the space. */
  #roadAlertPrompt:not([hidden]) ~ .score-row .flow-glass,
  #roadAlertPrompt:not([hidden]) ~ .score-row .flow-title,
  #roadAlertPrompt:not([hidden]) ~ .score-row .now,
  #roadAlertPrompt:not([hidden]) ~ .sub { display: none; }
  #roadAlertNotice { max-height: 4.2em; overflow-y: auto; }

  /* Capture multipliers use the same large banner in every orientation. */
}

/* Persistent early notice, not the on-site confirmation question. */
#roadAlertNearby { display:flex; align-items:center; gap:8px; padding:8px 12px; margin:0 0 6px; border:1px solid #e5645a88; border-radius:12px; background:#321b1aeb; color:#ffd6d2; font-size:12px; pointer-events:none; }
#roadAlertNearby[hidden] { display:none; }
#roadAlertNearby b { flex:1; }
#roadAlertDistance { white-space:nowrap; font-variant-numeric:tabular-nums; }
@media (max-height:480px) and (orientation:landscape) { #roadAlertNearby { padding:5px 8px; margin-bottom:3px; font-size:11px; } }

/* 30 logical pixels become 45 screen pixels at 1.5×; all three actions fit. */
body.a11y-zoomed #drivePanel > .row{display:grid;grid-template-columns:minmax(0,1fr) 30px 30px;gap:5px}
body.a11y-zoomed #drivePanel > .row > button{width:100%;min-width:0;min-height:32px;min-inline-size:0;padding:5px;border-radius:11px}
body.a11y-zoomed #drivePanel > .row > #play{font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
body.a11y-zoomed #drivePanel > .row > #center{font-size:20px;padding:0}
body.a11y-zoomed #roadAlertButton svg{width:21px;height:21px}
