/* SkyEnvoy — game UI. Navy design language matching specenvoy.com. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0e1730; color: #eef2fa;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* ------------------------------ menu screens ------------------------------ */
.scr {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
           max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(10, 16, 35, .68), rgba(10, 16, 35, .38));
  overflow-y: auto; touch-action: pan-y;
}
/* `justify-content: center` on a scrolling flex column CLIPS the overflow at
   the top — with 15 scenarios the first cards could not be scrolled to at
   all. Auto margins centre short lists and let long ones scroll. */
.scr { justify-content: flex-start; }
.scr > :first-child { margin-top: auto; }
.scr > :last-child { margin-bottom: auto; }
.scr > .backlink { margin: 0; }
.scr-note { color: #8fa0c4; font-size: 13px; max-width: min(520px, 92vw); text-align: center; }

/* destination picker */
#dest-list { display: flex; flex-direction: column; gap: 8px; width: min(520px, 94vw); }
.dest-card {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left;
  background: rgba(20, 32, 66, .9); border: 1px solid #2c3f74; border-radius: 12px; padding: 11px 16px;
}
.dest-card:hover { background: rgba(30, 45, 90, .95); }
.dest-card.on { border-color: #63e6a4; }
.dest-name { font-weight: 700; font-size: 15.5px; }
.dest-sub { color: #b9c6e4; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game-title { font-size: clamp(38px, 8vw, 64px); font-weight: 800; letter-spacing: .5px; }
.game-title .sky { color: #5b86ec; }
.game-title .envoy { color: #ff5d8f; }
.game-sub { color: #b9c6e4; margin-bottom: 10px; }
.mp-note { color: #8fa0c4; font-size: 13px; margin-top: 18px; }
.backlink { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 18px; color: #b9c6e4; text-decoration: none; font-size: 14px; }
.backlink:hover { color: #fff; }

a.btn { text-decoration: none; }
.btn {
  display: block; min-width: 240px; text-align: center;
  padding: 13px 26px; border-radius: 12px; font-size: 17px; font-weight: 600;
  background: #1b2a52; border: 1px solid #2c3f74; transition: background .15s;
}
.btn:hover { background: #24356a; }
.btn.primary { background: #3b6fe0; border-color: #5b86ec; }
.btn.primary:hover { background: #4a7ce8; }
.btn.small { min-width: 0; padding: 8px 16px; font-size: 14px; }
.btn.small.on { background: #3b6fe0; border-color: #5b86ec; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#scheme-row { align-items: center; }
.scheme-lbl { color: #8fa0c4; font-size: 13.5px; }

h2.scr-h { font-size: clamp(22px, 4.5vw, 30px); margin-bottom: 6px; text-shadow: 0 2px 14px rgba(8, 12, 28, .9), 0 0 4px rgba(8, 12, 28, .8); }

/* scenario cards */
#scen-list { display: flex; flex-direction: column; gap: 10px; width: min(560px, 94vw); }
.scen-card {
  display: flex; gap: 14px; align-items: center; text-align: left;
  background: rgba(20, 32, 66, .9); border: 1px solid #2c3f74; border-radius: 14px;
  padding: 12px 16px;
}
.scen-card:hover { background: rgba(30, 45, 90, .95); }
.scen-icon { font-size: 30px; }
.scen-body { display: flex; flex-direction: column; gap: 2px; }
.scen-name { font-weight: 700; font-size: 16px; }
.scen-desc { color: #b9c6e4; font-size: 13.5px; line-height: 1.35; }
.scen-best { color: #ffc23d; font-size: 12.5px; }

/* hangar */
#scr-hangar { justify-content: flex-end; background: linear-gradient(180deg, rgba(10,16,35,.55) 0%, rgba(10,16,35,.1) 40%, rgba(10,16,35,.82) 78%); }
#hangar-tabs { display: flex; gap: 8px; }
#hangar-tabs button { padding: 8px 20px; border-radius: 999px; background: #16244c; border: 1px solid #2c3f74; font-weight: 600; }
#hangar-tabs button.on { background: #3b6fe0; border-color: #5b86ec; }
#hangar-list { display: flex; gap: 8px; overflow-x: auto; max-width: 94vw; padding: 4px; touch-action: pan-x; }
.plane-chip { flex: 0 0 auto; padding: 9px 14px; border-radius: 10px; background: #16244c; border: 1px solid #2c3f74; font-size: 14px; font-weight: 600; }
.plane-chip.on { background: #ff5d8f; border-color: #ff85ab; color: #fff; }
#hangar-panel {
  width: min(560px, 94vw); background: rgba(14, 22, 46, .92); border: 1px solid #2c3f74;
  border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px;
}
#hangar-name { font-size: 20px; font-weight: 800; }
#hangar-cap { color: #8fa0c4; font-size: 13px; }
#hangar-blurb { color: #cdd7f0; font-size: 14px; line-height: 1.4; }
#hangar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 4px 0; }
.stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #b9c6e4; }
.stat-row .segs i { display: inline-block; width: 14px; height: 7px; margin-left: 3px; border-radius: 2px; background: #2c3f74; }
.stat-row .segs i.on { background: #5b86ec; }

/* briefing */
.brief-box {
  width: min(520px, 94vw); background: rgba(14, 22, 46, .95); border: 1px solid #2c3f74;
  border-radius: 18px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px;
  text-align: center; align-items: center;
}
#brief-icon { font-size: 44px; }
#brief-name { font-size: 24px; }
#brief-desc { color: #cdd7f0; font-size: 14.5px; line-height: 1.45; }
.brief-box h3 { color: #5b86ec; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; }
#brief-steps { text-align: left; margin: 0 0 6px 22px; color: #eef2fa; font-size: 14.5px; line-height: 1.5; }
#brief-steps li { margin: 5px 0; }
#brief-steps li::marker { color: #ffc23d; font-weight: 700; }

/* help */
.help-box { width: min(560px, 94vw); background: rgba(14, 22, 46, .92); border: 1px solid #2c3f74; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.help-box h3 { color: #5b86ec; font-size: 16px; }
.help-box p { color: #cdd7f0; font-size: 14.5px; line-height: 1.5; }
.help-box .tip { color: #ffc23d; }
.help-box a { color: #ff5d8f; }

/* ------------------------------ flight UI ------------------------------ */
#flight-ui { position: fixed; inset: 0; pointer-events: none; }
#flight-ui button { pointer-events: auto; }

.hud-top {
  position: absolute; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; align-items: center;
  background: rgba(10, 16, 35, .72); border: 1px solid #2c3f74; border-radius: 12px;
  padding: 6px 14px; font-variant-numeric: tabular-nums;
}
.hud-item { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.hud-item .lbl { font-size: 9.5px; color: #8fa0c4; letter-spacing: .8px; }
.hud-item .val { font-size: 16px; font-weight: 700; }
.hud-item .unit { font-size: 9px; color: #8fa0c4; }
#hud-thr-wrap { width: 10px; height: 34px; background: #1b2a52; border-radius: 5px; overflow: hidden; position: relative; }
#hud-thr-bar { position: absolute; bottom: 0; left: 0; right: 0; background: #63e6a4; height: 0%; }

.hud-btns { position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: flex; gap: 8px; }
.hud-btns button {
  width: 42px; height: 42px; border-radius: 10px; font-size: 19px;
  background: rgba(10, 16, 35, .72); border: 1px solid #2c3f74;
}

#hud-warn {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  color: #ff5d5d; font-weight: 800; font-size: clamp(20px, 4vw, 30px); letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 60, 60, .6); animation: blink .55s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

#hud-objbar {
  position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  text-align: center; background: rgba(10, 16, 35, .72); border: 1px solid #2c3f74;
  border-radius: 12px; padding: 7px 18px; max-width: 92vw;
}
#hud-objective { font-size: 14.5px; font-weight: 600; }
#hud-dist { font-size: 12px; color: #ffc23d; }
#hud-timer { position: absolute; top: max(58px, calc(env(safe-area-inset-top) + 50px)); right: max(12px, env(safe-area-inset-right)); font-weight: 800; font-size: 20px; color: #ffc23d; font-variant-numeric: tabular-nums; }

/* ------------------------------ navigation ------------------------------ */
#nav-tape {
  position: absolute; top: max(58px, calc(env(safe-area-inset-top) + 50px)); left: 50%; transform: translateX(-50%);
  width: min(430px, 58vw); height: 24px; border-radius: 6px;
  border: 1px solid #2c3f74; background: rgba(10, 16, 35, .55);
}
#hud-chips {
  position: absolute; top: max(88px, calc(env(safe-area-inset-top) + 80px)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px;
  background: rgba(10, 16, 35, .72); border: 1px solid #2c3f74; color: #8fa0c4;
}
.chip.on { color: #63e6a4; border-color: rgba(99, 230, 164, .6); }
.chip.off { color: #6e7b96; }
.chip.warn { color: #ffc23d; border-color: rgba(255, 194, 61, .6); }
.chip.move { color: #ffc23d; border-color: rgba(255, 194, 61, .6); animation: blink .6s steps(2) infinite; }

#nav-panel {
  position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 3px; width: 152px;
}
#nav-map {
  width: 152px; height: 152px; border-radius: 10px;
  border: 1px solid #2c3f74; background: #0d2140; pointer-events: auto; touch-action: none; cursor: pointer;
}
#nav-line, #nav-glide { font-size: 11.5px; font-weight: 700; line-height: 1.5; }
#nav-line:not(:empty), #nav-glide:not(:empty) {
  background: rgba(10, 16, 35, .78); border: 1px solid #2c3f74; border-radius: 7px;
  padding: 2px 7px; align-self: flex-start; max-width: 100%;
}
#nav-line { color: #63e6a4; }
#nav-glide { color: #b9c6e4; }
#nav-glide.ok { color: #63e6a4; border-color: rgba(99, 230, 164, .6); }
#nav-glide.warn { color: #ffc23d; border-color: rgba(255, 194, 61, .6); }

/* configuration buttons — touch only, stacked above the throttle */
#cfg-btns { display: none; }
body.touch #cfg-btns {
  display: flex; flex-direction: column; gap: 7px;
  position: absolute; right: max(18px, env(safe-area-inset-right));
  bottom: max(232px, calc(env(safe-area-inset-bottom) + 220px));
}
#cfg-btns button {
  width: 54px; height: 38px; border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  background: rgba(20, 32, 66, .6); border: 1px solid rgba(91, 134, 236, .55); color: #b9c6e4;
  pointer-events: auto; touch-action: none;
}
#cfg-btns button.held { background: rgba(91, 134, 236, .5); color: #fff; }

#hud-marker { position: absolute; transform: translate(-50%, -50%); font-size: 26px; color: #ffc23d; text-shadow: 0 0 8px rgba(0,0,0,.7); }
#hud-marker.edge { font-size: 20px; opacity: .85; }

#toast {
  position: absolute; top: 32%; left: 50%; transform: translateX(-50%);
  background: rgba(20, 32, 66, .94); border: 1px solid #5b86ec; border-radius: 12px;
  padding: 10px 22px; font-weight: 700; font-size: 16px;
}

#hud-hint { font-size: 13px; color: #63e6a4; font-weight: 700; margin-top: 2px; }

#ctl-card {
  position: absolute; bottom: max(74px, calc(env(safe-area-inset-bottom) + 62px));
  left: 50%; transform: translateX(-50%);
  background: rgba(14, 22, 46, .9); border: 1px solid #5b86ec; border-radius: 12px;
  padding: 9px 18px; font-size: 13.5px; color: #cdd7f0; text-align: center;
  max-width: 92vw; line-height: 1.5; animation: fadein .4s;
}
body.touch #ctl-card { bottom: max(200px, calc(env(safe-area-inset-bottom) + 190px)); }
@keyframes fadein { from { opacity: 0; } }

/* touch controls — only shown on coarse pointers */
#stick, #throt, #btn-brake { display: none; }
body.touch #stick, body.touch #throt, body.touch #btn-brake { display: block; pointer-events: auto; }
#stick {
  position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(56px, calc(env(safe-area-inset-bottom) + 44px));
  width: 128px; height: 128px; border-radius: 50%;
  background: rgba(20, 32, 66, .45); border: 2px solid rgba(91, 134, 236, .55);
  touch-action: none;
}
#stick-knob {
  position: absolute; left: 50%; top: 50%; margin: -26px 0 0 -26px;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(91, 134, 236, .85); pointer-events: none;
}
#throt {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(56px, calc(env(safe-area-inset-bottom) + 44px));
  width: 54px; height: 168px; border-radius: 14px;
  background: rgba(20, 32, 66, .45); border: 2px solid rgba(99, 230, 164, .5);
  touch-action: none;
}
#throt-knob {
  position: absolute; left: 4px; right: 4px; height: 34px; top: 4px; border-radius: 9px;
  background: rgba(99, 230, 164, .85); pointer-events: none;
}
#btn-brake {
  position: absolute; right: max(88px, calc(env(safe-area-inset-right) + 84px)); bottom: max(56px, calc(env(safe-area-inset-bottom) + 44px));
  width: 58px; height: 58px; border-radius: 50%; font-size: 12px; font-weight: 800;
  background: rgba(20, 32, 66, .6); border: 2px solid rgba(255, 93, 143, .55); color: #ffb8cd;
  touch-action: none;
}
#btn-brake.held { background: rgba(255, 93, 143, .5); color: #fff; }

/* ------------------------------ overlay / loading ------------------------------ */
#overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 28, .6); pointer-events: auto;
}
.panel {
  background: rgba(14, 22, 46, .97); border: 1px solid #2c3f74; border-radius: 18px;
  padding: 26px 30px; text-align: center; display: flex; flex-direction: column; gap: 12px;
  width: min(420px, 92vw);
}
.panel h2 { font-size: 24px; }
#ov-detail p { color: #cdd7f0; font-size: 15px; margin: 2px 0; }
#ov-detail b { color: #ffc23d; }
.ov-leave { color: #8fa0c4; font-size: 13px; text-decoration: none; margin-top: 4px; }
.ov-leave:hover { color: #fff; }

#loading {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #0e1730; color: #b9c6e4; font-size: 16px; z-index: 50;
}

/* mission-complete confetti */
#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
#confetti span {
  position: absolute; top: -4vh; width: 10px; height: 14px; border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(115vh) rotate(660deg); }
}

#ov-detail .res-nums { font-size: 12.5px; color: #8fa0c4; }

@media (max-height: 480px) { /* phone landscape: tighten */
  .hud-top { gap: 8px; padding: 4px 10px; }
  .hud-item { min-width: 44px; }
  #stick { width: 104px; height: 104px; }
  #throt { height: 128px; }
  #nav-panel, #nav-map { width: 104px; }
  #nav-map { height: 104px; }
  #nav-tape { width: min(300px, 46vw); height: 20px; }
  body.touch #cfg-btns { bottom: max(190px, calc(env(safe-area-inset-bottom) + 180px)); }
  #cfg-btns button { width: 48px; height: 32px; }
}
@media (max-width: 560px) {
  #nav-panel, #nav-map { width: 112px; }
  #nav-map { height: 112px; }
}

/* ------------------------------ air combat (body.combat only) ------------------------------ */
#cbt-reticle, #cbt-target, #cbt-bars, #btn-fire, #btn-msl, #cbt-flash { display: none; }

body.combat #cbt-reticle {
  display: block; position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 2px solid rgba(255, 210, 61, .9); border-radius: 50%; pointer-events: none;
}
body.combat #cbt-reticle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px;
  background: #ffd23d; border-radius: 50%;
}

body.combat #cbt-target { display: block; position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; }
#cbt-target::before {
  content: ''; position: absolute; inset: 5px; border: 2px solid rgba(242, 245, 251, .85);
  transform: rotate(45deg);
}
#cbt-target.locking::before { border-color: #ffc23d; }
#cbt-target.locking { animation: cbt-pulse .45s infinite alternate; }
#cbt-target.locked::before { border-color: #ff5d5d; border-width: 3px; }
#cbt-lock {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #ffd2d2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75); white-space: nowrap;
}
@keyframes cbt-pulse { from { opacity: .5; } to { opacity: 1; } }

body.combat #cbt-bars {
  display: flex; flex-direction: column; gap: 4px; position: absolute;
  left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom));
  pointer-events: none;
}
body.touch.combat #cbt-bars { bottom: max(212px, calc(env(safe-area-inset-bottom) + 200px)); left: max(18px, env(safe-area-inset-left)); }
.cbt-row { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.cbt-lbl { min-width: 36px; text-align: right; color: #b9c6e4; font-weight: 800; letter-spacing: .06em; }
.cbt-bar {
  width: 118px; height: 8px; border-radius: 4px; overflow: hidden;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
}
#cbt-hp-fill { height: 100%; width: 100%; background: #ffd23d; }
#cbt-heat-fill { height: 100%; width: 0%; background: #ff8a3d; }
#cbt-heat-fill.hot { background: #ff5d5d; }
#cbt-msl { color: #ffd23d; font-size: 13px; letter-spacing: .18em; }

body.combat #cbt-flash {
  display: block; position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(255, 70, 60, .5));
}
#cbt-flash.on { animation: cbt-hit .5s ease-out; }
@keyframes cbt-hit { 0% { opacity: 1; } 100% { opacity: 0; } }

/* combat touch buttons: 🎯 guns above BRK, MSL above that */
body.touch.combat #btn-fire, body.touch.combat #btn-msl { display: block; pointer-events: auto; }
#btn-fire {
  position: absolute; right: max(88px, calc(env(safe-area-inset-right) + 84px)); bottom: max(128px, calc(env(safe-area-inset-bottom) + 116px));
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(20, 32, 66, .6); border: 2px solid rgba(255, 210, 61, .6); color: #ffd23d;
  touch-action: none; padding: 12px;
}
#btn-fire svg { width: 100%; height: 100%; display: block; }
#btn-fire.held { background: rgba(255, 210, 61, .35); color: #fff; }
#btn-msl {
  position: absolute; right: max(88px, calc(env(safe-area-inset-right) + 84px)); bottom: max(202px, calc(env(safe-area-inset-bottom) + 190px));
  width: 58px; height: 58px; border-radius: 50%; font-size: 12px; font-weight: 800;
  background: rgba(20, 32, 66, .6); border: 2px solid rgba(255, 138, 61, .6); color: #ffc79b;
  touch-action: none;
}
#btn-msl.held { background: rgba(255, 138, 61, .45); color: #fff; }

/* logbook */
#log-list { display: flex; flex-direction: column; gap: 6px; width: min(560px, 94vw); }
.log-summary { color: #b9c6e4; font-size: 13px; text-align: center; padding: 8px 0 4px; }
.log-summary b { color: #ffc23d; }
.log-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  background: rgba(20, 32, 66, .85); border: 1px solid #2c3f74; border-radius: 11px; padding: 9px 14px;
}
.log-row.empty { opacity: .55; }
.log-name { font-weight: 700; font-size: 14.5px; }
.log-detail { grid-column: 1 / -1; color: #8fa0c4; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.stars i { font-style: normal; color: #2c3f74; font-size: 15px; letter-spacing: 1px; }
.stars i.on { color: #ffc23d; }
.res-stars { font-size: 22px; }
.res-stars .stars i { font-size: 26px; }
#ov-detail .res-best { color: #63e6a4; font-size: 13px; font-weight: 700; }
.scen-best .stars i { font-size: 13px; }

#wx-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* ------------------------------ weather ------------------------------ */
/* Rain is a composited background shift — no geometry, no per-frame JS, so it
   costs a phone nothing. `drizzle` is the same effect at a quarter strength. */
body.rain::after, body.drizzle::after {
  content: ''; position: fixed; inset: -20%; pointer-events: none; z-index: 5;
  background-image:
    repeating-linear-gradient(102deg, rgba(210,228,255,0) 0 3px, rgba(210,228,255,.30) 3px 4px, rgba(210,228,255,0) 4px 9px),
    repeating-linear-gradient(99deg, rgba(210,228,255,0) 0 7px, rgba(210,228,255,.18) 7px 8px, rgba(210,228,255,0) 8px 17px);
  background-size: 100px 260px, 160px 420px;
  animation: rainfall .5s linear infinite, rainfall 1.1s linear infinite;
  opacity: .85;
}
body.drizzle::after { opacity: .3; animation-duration: .9s, 1.7s; }
@keyframes rainfall { to { background-position: -60px 260px, -110px 420px; } }
@media (prefers-reduced-motion: reduce) {
  body.rain::after, body.drizzle::after { animation: none; opacity: .18; }
}
