/* Stormfront Alpha 18 — real time-trial, compact overlay, mobile-first. */
.rush18-hud {
  position:absolute; z-index:19; top:98px; left:50%;
  transform:translateX(-50%); width:min(530px,calc(100vw - 30px));
  pointer-events:none; padding:9px 11px 7px; border-radius:12px;
  border:1px solid rgba(112,237,218,.48);
  background:rgba(5,27,38,.83);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 8px 30px #0006;
}
.rush18-hud-line {display:flex;align-items:center;gap:10px;min-width:0}
.rush18-hud-line>span {font-size:12px;font-weight:950;color:#85f0d5;white-space:nowrap}
.rush18-hud-line>strong {font-size:13px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff6e6}
.rush18-hud-line>b {font-size:20px;color:#ffd193;font-variant-numeric:tabular-nums}
.rush18-hud-line>button {pointer-events:auto;background:#23515b;border:1px solid #8acdc38c;color:#ecfdf3;border-radius:7px;min-height:30px;padding:4px 8px;font-size:10px;font-weight:950}
.rush18-hud-low {display:flex;justify-content:space-between;gap:8px;margin-top:5px;font-size:9px;font-weight:780;letter-spacing:.03em;color:#bbd8d6}
.rush18-hud-low span:last-child {color:#ffd098;white-space:nowrap}
.rush18-result {position:absolute;inset:0;z-index:60;display:grid;place-items:center;background:rgba(4,17,26,.69);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:16px;pointer-events:auto}
.rush18-result-card {width:min(400px,100%);max-height:95dvh;overflow-y:auto;padding:25px 22px;border-radius:18px;border:1px solid #7debd1a1;background:linear-gradient(145deg,#123e48,#071f30);box-shadow:0 24px 70px #000b}
.rush18-kicker {color:#77e9cd;font-size:10px;font-weight:900;letter-spacing:.13em}
.rush18-result-card h2 {font-size:clamp(28px,6vw,41px);margin:12px 0;line-height:1.04;letter-spacing:-.04em;color:#fff8e9}
.rush18-result-card p {font-size:12px;color:#bfdfdc;line-height:1.55;margin:10px 0 19px}
.rush18-result-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.rush18-result-stats div {text-align:center;background:#e5fff50b;border:1px solid #b0e6d02e;border-radius:9px;padding:11px 5px}
.rush18-result-stats small {display:block;font-size:8px;font-weight:900;color:#a8cbc8;letter-spacing:.05em}
.rush18-result-stats strong {display:block;margin-top:8px;font-size:20px;font-weight:950;color:#ffcc82}
.rush18-result-card button {width:100%;margin-top:8px;min-height:43px;border-radius:9px;border:1px solid #ffe0a7;background:linear-gradient(120deg,#ffdea0,#f6b368);color:#0f3542;font-size:11px;font-weight:950;letter-spacing:.07em}
.rush18-result-card button#rush18Back {background:#16424a;color:#e7fffa;border-color:#81cbbd}
.rush18-launch .launch16-tile-icon {background:#3f4c34;color:#ffd299}
.rush18-dock-button {border-color:#f4d5a46b}
body[data-rush18="on"] .mission-card,
body[data-rush18="on"] .statline,
body[data-rush18="on"] .weather-pill,
body[data-rush18="on"] .career-status,
body[data-rush18="on"] .hint,
body[data-rush18="on"] .activity-dock,
body[data-rush18="on"] .worksite-launch,
body[data-rush18="on"] .defense-readout,
body[data-rush18="on"] .rescue-hud {display:none!important}
body[data-rush18="on"] .controls {z-index:18}
body[data-rush18="on"] .main-action {background:radial-gradient(circle at 40% 20%,#b6e9e5,#46a6ac);border-color:#c8f9e9;color:#10333c}
body[data-rush18="on"] .toast {bottom:140px}
@media(max-width:760px){
  .rush18-hud {top:50px;left:8px;right:8px;transform:none;width:auto;max-width:none;padding:7px 8px 5px;border-radius:10px;background:rgba(5,27,38,.70)}
  .rush18-hud-line {gap:6px}
  .rush18-hud-line>span {font-size:10px}
  .rush18-hud-line>strong {font-size:10px;line-height:1.2}
  .rush18-hud-line>b {font-size:16px}
  .rush18-hud-line>button {min-height:32px;font-size:9px;padding:4px 6px}
  .rush18-hud-low {font-size:8px;letter-spacing:0}
  .rush18-result-card {padding:20px 17px}
  body[data-rush18="on"] .toast {bottom:124px}
}
@media(max-width:350px){
  .rush18-hud-line>strong {font-size:9px}
  .rush18-hud-low {font-size:7.5px}
  .rush18-hud-line>b {font-size:14px}
}
@media(max-height:520px) and (orientation:landscape) and (pointer:coarse){
  .rush18-hud {top:40px;left:50%;right:auto;width:min(395px,60vw);transform:translateX(-50%)}
  .rush18-result-card {max-height:90dvh;padding:13px 15px}
  .rush18-result-card h2 {font-size:24px;margin:6px 0}
  .rush18-result-card p {margin:6px 0 9px;font-size:10px}
  .rush18-result-stats div {padding:6px 4px}
  .rush18-result-card button {min-height:33px;margin-top:5px}
}
@media(prefers-reduced-motion:reduce){.rush18-hud,.rush18-result{transition:none}}
