/* 458 Weather · public live radar page. Command-deck look from the 458WEATHER v3 stream deck, made responsive. */
@font-face { font-family: "Barlow458"; src: url("BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter458"; src: url("Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Orbitron458"; src: url("Orbitron-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --void: #04030d; --violet: #a77bff; --violet2: #7b4dff; --gold: #ffc247; --gold2: #ffd98a; --blue: #3db8ff; --cyan: #6ff3ff;
  --red: #ff4b5c; --green: #7dffb2; --text: #f2f0ff; --soft: #d6dcf5; --muted: #a3a9d6;
  --edge: rgba(167,123,255,.55); --gap: 12px; --pad: 18px; --crawl: 52px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); }
body { margin: 0; min-height: 100vh; position: relative; font-family: "Inter458", Inter, system-ui, Arial, sans-serif; color: var(--text); background: var(--void);
  padding: var(--gap) var(--gap) calc(var(--crawl) + var(--gap) * 2 + env(safe-area-inset-bottom)); }
a { color: var(--cyan); }
h1, h2 { margin: 0; font: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.orb { font-family: "Orbitron458", "Barlow458", sans-serif; letter-spacing: .12em; }
.bar { font-family: "Barlow458", "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; }
.nodata { color: var(--muted); font-style: italic; }

/* ---------- Backdrop (fixed, static) ---------- */
#aurora, #bgimg, #scan { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
#aurora { background:
    radial-gradient(900px 520px at 12% 8%, rgba(123,77,255,.38), transparent 70%),
    radial-gradient(800px 600px at 92% 18%, rgba(61,184,255,.30), transparent 70%),
    radial-gradient(1000px 520px at 60% 108%, rgba(255,170,60,.16), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(80,40,200,.30), transparent 70%),
    linear-gradient(180deg, #070418 0%, #04030d 60%, #060312 100%); }
#bgimg { background: url("deck_bg.jpg") center/cover no-repeat; opacity: .14; mix-blend-mode: screen; }
#scan { opacity: .5; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); }

/* ---------- Frosted glass panels ---------- */
.glass { position: relative; border-radius: 14px; overflow: hidden; min-width: 0;
  background: linear-gradient(155deg, rgba(120,90,255,.20) 0%, rgba(30,26,80,.38) 45%, rgba(10,10,34,.55) 100%);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(61,184,255,.10), 0 0 26px rgba(123,77,255,.28), 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
.glass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, var(--violet), var(--blue) 50%, var(--gold)); opacity: .85; }
.glass > .run { position: absolute; top: 0; left: 0; width: 30%; height: 2px; z-index: 7; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .9; animation: run 7s linear infinite; }
@keyframes run { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(380%); } }
.corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); pointer-events: none; z-index: 8; opacity: .9;
  filter: drop-shadow(0 0 4px rgba(255,194,71,.8)); }
.corner.tl { left: 3px; top: 3px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.br { right: 3px; bottom: 3px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.ph { position: relative; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 24px;
  background: linear-gradient(90deg, rgba(123,77,255,.38), rgba(61,184,255,.10) 60%, transparent);
  border-bottom: 1px solid rgba(167,123,255,.35); font-size: 14px; font-weight: 700; color: #efe8ff; white-space: nowrap; overflow: hidden; }
.ph .tick { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px var(--gold); flex: none; }
.ph .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ph .right { margin-left: auto; flex: none; max-width: 55%; color: var(--gold2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; z-index: 6;
  background: linear-gradient(90deg, var(--violet), var(--gold)); box-shadow: 0 0 8px var(--gold); }

/* ---------- Header ---------- */
#header { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 8px 22px 8px 14px; margin-bottom: var(--gap); }
#brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
#badge { position: relative; width: 66px; height: 66px; flex: none; }
#badge img { position: absolute; inset: 5px; width: 56px; height: 56px; border-radius: 50%; }
#badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--gold), var(--violet), var(--blue), var(--gold)); animation: spin 6s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px); mask: radial-gradient(circle, transparent 29px, #000 30px); }
@keyframes spin { to { transform: rotate(360deg); } }
#brand .name { font-size: 54px; line-height: 50px; letter-spacing: .01em; white-space: nowrap; }
#brand .n { color: var(--gold); text-shadow: 0 0 16px rgba(255,194,71,.55); }
#brand .w { background: linear-gradient(180deg, #ffffff 0%, #8fdcff 55%, #3db8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(61,184,255,.55)); }
#brand .loc { font-size: 13px; color: var(--soft); margin-top: 4px; letter-spacing: .16em; white-space: nowrap; }
#brand .loc b { color: var(--gold2); font-weight: 700; }
#mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.pill { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 15px; font-weight: 800; white-space: nowrap; }
#livePill { color: #fff; background: linear-gradient(90deg, rgba(255,60,90,.55), rgba(160,20,70,.35)); border: 1px solid rgba(255,110,130,.9); box-shadow: 0 0 16px rgba(255,60,90,.45); }
#livePill i { width: 11px; height: 11px; border-radius: 50%; background: #ff3d5e; box-shadow: 0 0 10px #ff3d5e; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
#hdrAlert { color: var(--green); background: rgba(40,160,110,.18); border: 1px solid rgba(125,255,178,.6); }
#hdrAlert.watch { color: var(--gold2); background: rgba(255,170,40,.16); border-color: rgba(255,194,71,.8); }
body.warning #hdrAlert { color: #fff; background: rgba(220,20,50,.55); border-color: #ff8090; box-shadow: 0 0 18px rgba(255,40,70,.7); animation: blink 1.2s infinite; }
#clock { display: flex; align-items: center; gap: 14px; flex: none; }
#clockTime { font-size: 56px; line-height: 56px; color: #fff; text-shadow: 0 0 18px rgba(167,123,255,.8); white-space: nowrap; }
#clockDate { font-size: 13px; color: var(--gold2); line-height: 20px; white-space: nowrap; }

/* ---------- Deck grid ---------- */
#deck { display: grid; gap: var(--gap);
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(420px, 500px);
  grid-template-rows: auto minmax(150px, 1fr) auto auto auto auto;
  grid-template-areas:
    "radar radar cond"
    "radar radar alerts"
    "radar radar cams"
    "fc fc fc"
    "detail afd hwo"
    "detail afd sun"; }
#radarBox { grid-area: radar; min-height: clamp(470px, calc(100vh - 430px), 860px); }
#cond { grid-area: cond; } #alertsP { grid-area: alerts; } #cams { grid-area: cams; } #fc { grid-area: fc; }
#detail { grid-area: detail; } #afd { grid-area: afd; } #hwo { grid-area: hwo; } #sun { grid-area: sun; }

/* ---------- Radar ---------- */
#map { position: absolute; inset: 0; background: #060818; }
#sweep { position: absolute; pointer-events: none; border-radius: 50%; animation: spin 7s linear infinite;
  background: conic-gradient(from 0deg, rgba(111,243,255,0) 0deg, rgba(111,243,255,0) 290deg, rgba(167,123,255,.10) 330deg, rgba(111,243,255,.30) 358deg, rgba(255,255,255,.55) 359.6deg, rgba(111,243,255,0) 360deg);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 71%); mask: radial-gradient(circle, #000 60%, transparent 71%); }
#ping { position: absolute; pointer-events: none; border-radius: 50%; border: 3px solid var(--gold); opacity: 0;
  box-shadow: 0 0 22px var(--gold), inset 0 0 22px rgba(255,194,71,.5); }
.ov { position: absolute; z-index: 900; background: rgba(8,8,28,.80); border: 1px solid rgba(167,123,255,.55); border-radius: 10px; box-shadow: 0 0 18px rgba(123,77,255,.35); }
#frameChip { left: 14px; top: 14px; padding: 9px 14px; border-left: 4px solid var(--blue); }
#frameChip .lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cyan); }
#frameChip .lbl i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 1.4s infinite; }
#frameTime { display: block; font-size: 28px; line-height: 32px; margin-top: 2px; white-space: nowrap; }
#loopBar { display: flex; gap: 4px; margin-top: 7px; }
#loopBar span { width: 18px; height: 6px; border-radius: 3px; background: rgba(120,110,200,.30); }
#loopBar span.on { background: var(--blue); } #loopBar span.live { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
#legend { right: 14px; top: 14px; padding: 8px 14px 9px; font-size: 13px; color: var(--soft); }
#legend .grad { width: 260px; max-width: 100%; height: 11px; margin-top: 5px; border-radius: 3px;
  background: linear-gradient(90deg,#04e9e7 0%,#019ff4 9%,#0300f4 18%,#02fd02 27%,#01c501 36%,#008e00 45%,#fdf802 54%,#e5bc00 63%,#fd9500 72%,#fd0000 81%,#d40000 86%,#bc0000 90%,#f800fd 95%,#9854c6 100%); }
#legend .ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
#resetView { right: 14px; bottom: 28px; padding: 7px 12px; font-size: 11px; color: var(--gold2); }
#alertBanner { display: none; position: absolute; left: 14px; right: 14px; top: 104px; z-index: 1100; padding: 11px 16px;
  background: linear-gradient(90deg, rgba(190,10,40,.94), rgba(130,10,60,.94)); border: 1px solid #ff8090; border-radius: 10px;
  box-shadow: 0 0 26px rgba(255,40,70,.7); font-size: 21px; font-weight: 800; text-align: center; line-height: 1.3; }
body.warning #alertBanner { display: block; }
body.warning #radarBox { border-color: #ff6070; box-shadow: 0 0 30px rgba(255,40,70,.65), inset 0 0 40px rgba(255,40,70,.25); }
.leaflet-container { font-family: "Inter458", sans-serif; background: #060818; }
.bm-topo-dark { filter: invert(1) hue-rotate(195deg) brightness(0.55) contrast(1.2) saturate(0.8); }
.city { pointer-events: none; }
.city .dot { position: absolute; left: -6px; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid #120c34; }
.city .dot.home { background: var(--gold); width: 16px; height: 16px; left: -9px; top: -9px; box-shadow: 0 0 12px var(--gold), 0 0 0 4px rgba(255,194,71,.35); }
.city .name { position: absolute; left: 12px; top: -14px; white-space: nowrap; font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 0 3px #000, 0 0 7px #000, 1px 1px 2px #000; }
.city .name.home { color: var(--gold2); font-size: 22px; top: -15px; }
.city .name.left { left: auto; right: 12px; }
.ring-lbl { color: rgba(111,243,255,.9); font: 700 12px "Orbitron458", sans-serif; letter-spacing: .1em; white-space: nowrap; text-shadow: 0 0 3px #000; }
.leaflet-control-attribution { font-size: 10.5px !important; background: rgba(6,6,22,.78) !important; color: var(--muted) !important; border-top-left-radius: 6px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: rgba(14,12,40,.9) !important; color: var(--gold2) !important; border-color: rgba(167,123,255,.4) !important; }
.leaflet-bar { border: 1px solid rgba(167,123,255,.55) !important; box-shadow: 0 0 12px rgba(123,77,255,.35) !important; }
.leaflet-top.leaflet-left { top: 112px; }
body.warning .leaflet-top.leaflet-left { top: 176px; }

/* ---------- Current conditions ---------- */
#nowTop { display: flex; padding: 12px 18px 0; gap: 16px; }
#tempBlock { width: 190px; flex: none; }
#temp { font-size: 112px; line-height: 100px; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 30%, var(--gold2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255,194,71,.45)); }
#thermo { display: block; width: 180px; height: 8px; margin-top: 6px; }
#feels { font-size: 12px; color: var(--gold2); margin-top: 7px; white-space: nowrap; }
#nowRight { flex: 1; min-width: 0; padding-top: 4px; }
#sky { font-size: 30px; line-height: 32px; color: #fff; }
#windLine { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#windLine b { font: 700 12px "Orbitron458", sans-serif; letter-spacing: .12em; color: var(--cyan); }
#cWind { font: 700 26px "Barlow458", sans-serif; color: #fff; white-space: nowrap; }
#nextLine { margin-top: 10px; font-size: 15px; line-height: 20px; color: var(--soft); }
#nextLine b { font: 700 12px "Orbitron458", sans-serif; letter-spacing: .1em; color: var(--gold2); margin-right: 8px; }
#tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 18px 0; }
.tile { border-radius: 9px; background: rgba(123,77,255,.14); border: 1px solid rgba(167,123,255,.30); padding: 6px 10px 4px; min-width: 0; }
.tile b { display: block; font: 700 10.5px "Orbitron458", sans-serif; letter-spacing: .1em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { display: block; font: 700 24px/30px "Barlow458", sans-serif; color: #fff; white-space: nowrap; }
.tile small { font-size: 15px; }
#condFoot { padding: 8px 18px 10px; font-size: 13px; color: var(--muted); }

/* ---------- Alerts ---------- */
#alertsP { display: flex; flex-direction: column; }
#alertList { padding: 8px 14px 10px; overflow-y: auto; flex: 1; min-height: 0; }
.al { border-bottom: 1px dashed rgba(167,123,255,.25); padding: 4px 0; }
.al:last-child { border-bottom: 0; }
.al summary { display: flex; gap: 10px; align-items: baseline; font-size: 17px; line-height: 24px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.al summary::-webkit-details-marker { display: none; }
.al .chip { flex: none; width: 11px; height: 11px; border-radius: 3px; transform: translateY(1px); }
.al .ev { font-weight: 800; } .al .ct { color: var(--soft); font-size: 14.5px; }
.al .more { margin-left: auto; color: var(--muted); font-size: 12px; }
.al[open] .more { color: var(--gold2); }
.al .body { font-size: 14.5px; line-height: 21px; color: var(--soft); padding: 6px 2px 8px 21px; white-space: pre-line; }
.al .body b { color: #fff; }
.ok { color: var(--green); font-size: 17px; font-weight: 600; padding: 4px 0; }
.ok small { color: var(--muted); font-size: 13px; font-weight: 500; }
.alnote { font-size: 12.5px; color: var(--muted); padding: 2px 0 0; }
body.warning #alertsP { border-color: #ff6070; box-shadow: 0 0 22px rgba(255,40,70,.6); }

/* ---------- Cams ---------- */
#camBody { display: flex; gap: 14px; padding: 12px 14px 14px; }
#camLink { flex: none; width: 54%; max-width: 280px; display: block; }
#camImgWrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #02030a; border: 1px solid rgba(111,243,255,.4); }
#camImg { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .5s; }
#camMsg { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 8px; }
#camRec { position: absolute; left: 7px; top: 7px; font: 700 10px "Orbitron458", sans-serif; letter-spacing: .1em; color: #fff; background: rgba(200,20,50,.75); padding: 3px 6px; border-radius: 4px; }
#camSide { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#camCap { font-size: 23px; line-height: 25px; color: #fff; }
#camSub { font-size: 13.5px; line-height: 18px; color: var(--soft); margin-top: 3px; }
#camBtns { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
#camBtns button { width: 40px; height: 32px; border-radius: 8px; background: rgba(123,77,255,.22); border: 1px solid rgba(167,123,255,.5); font-size: 20px; line-height: 1; color: var(--gold2); }
#camAttr { font-size: 11.5px; line-height: 15px; color: var(--muted); margin-top: 8px; }
#camAttr a { color: var(--muted); }

/* ---------- 7-day ---------- */
#fcCards { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.fcard { flex: 1 0 118px; min-width: 0; text-align: center; padding: 8px 4px 10px; border-radius: 9px; scroll-snap-align: start;
  background: rgba(123,77,255,.10); border: 1px solid rgba(167,123,255,.20); }
.fcard.now { background: linear-gradient(180deg, rgba(123,77,255,.35), rgba(61,184,255,.12)); border-color: rgba(255,194,71,.65); box-shadow: 0 0 14px rgba(255,194,71,.25); }
.fcard .d { font-size: 12.5px; line-height: 18px; color: #efe8ff; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .ic { position: relative; width: 52px; height: 52px; margin: 5px auto 4px; }
.fcard img { width: 52px; height: 52px; border-radius: 9px; box-shadow: 0 0 10px rgba(61,184,255,.4); }
.fcard .p { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); font-size: 11.5px; font-weight: 800; color: #fff; white-space: nowrap;
  background: rgba(40,120,255,.88); border-radius: 8px; padding: 0 5px; line-height: 15px; }
.fcard .t { font-size: 32px; line-height: 34px; margin-top: 6px; white-space: nowrap; } .fcard .t .hi { color: #fff; } .fcard .t .lo { color: #9fd8ff; font-size: 24px; }
.fcard .s { font-size: 12.5px; color: var(--soft); line-height: 16px; min-height: 32px; padding: 2px 4px 0; }
.fcard .w { font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* ---------- Text panels ---------- */
.txtbody { padding: 10px 18px 12px; font-size: 15px; line-height: 22px; color: var(--soft); }
.dp { padding: 7px 0; border-bottom: 1px dashed rgba(167,123,255,.22); }
.dp:last-child { border-bottom: 0; }
.dp b { display: block; font: 700 12px "Orbitron458", sans-serif; letter-spacing: .1em; color: var(--gold2); margin-bottom: 2px; }
.km { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--violet); }
.km b { color: var(--gold2); }
.hsec { margin-bottom: 10px; } .hsec b { display: block; font: 700 12px "Orbitron458", sans-serif; letter-spacing: .1em; color: var(--cyan); margin-bottom: 2px; }
.issued { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.plink { padding: 0 18px 14px; font-size: 13px; }
#sunBody { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 18px 4px; }
#sunBody .tile span { font-size: 26px; }
#sunFoot { padding: 6px 18px 12px; font-size: 12px; color: var(--muted); }

/* ---------- Crawl (pinned to the bottom of the screen) ---------- */
#ldl { position: fixed; left: var(--gap); right: var(--gap); bottom: calc(var(--gap) + env(safe-area-inset-bottom)); height: var(--crawl); border-radius: 12px; z-index: 2000;
  background: linear-gradient(155deg, rgba(40,30,110,.92), rgba(10,10,34,.94)); }
#ldlLabel { position: absolute; left: 0; top: 0; width: 180px; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 2;
  background: linear-gradient(135deg, var(--gold) 0%, #ff9d2e 100%); color: #1a0d00; font-size: 15px; font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding-right: 14px; }
#ldlLabel .w { display: none; }
body.warning #ldlLabel { background: linear-gradient(135deg, #ff4b5c, #b0102c); color: #fff; }
body.warning #ldlLabel .n { display: none; } body.warning #ldlLabel .w { display: inline; }
#ticker { position: absolute; left: 180px; right: 10px; top: 0; height: 100%; overflow: hidden; white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent); mask: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent); }
#tickerInner { position: absolute; left: 0; top: 0; height: var(--crawl); line-height: var(--crawl); font-size: 24px; font-weight: 500; will-change: transform; padding-left: 24px; }
#tickerInner .sep { color: var(--violet); padding: 0 24px; text-shadow: 0 0 8px var(--violet); }
#tickerInner .ev { font-weight: 800; } .ev.warn { color: #ff8090; } .ev.watch { color: var(--gold2); } .ev.adv { color: var(--cyan); }
#tickerInner .tag { font-weight: 800; color: var(--cyan); }
#tickerInner .meta { color: #e4e6fa; }

/* ---------- Footer ---------- */
#foot { margin-top: var(--gap); padding: 14px 18px; border-radius: 12px; background: rgba(8,8,28,.70); border: 1px solid rgba(167,123,255,.35); font-size: 13px; color: var(--muted); line-height: 20px; }
#foot p { margin: 0 0 8px; } #foot p:last-child { margin: 0; }
#foot .disc { font-size: 15px; color: var(--soft); } #foot .disc b { color: #fff; }
#foot .links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 700; }
#foot .links a { color: var(--gold2); text-decoration: none; } #foot .links a:hover { text-decoration: underline; }
#foot .fine b { color: var(--soft); font-weight: 600; }

/* ---------- Tablet ---------- */
@media (max-width: 1279px) {
  #deck { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: none;
    grid-template-areas: "radar radar" "cond alerts" "fc fc" "cams detail" "afd hwo" "sun sun"; }
  #radarBox { min-height: clamp(420px, 62vh, 720px); }
  #alertList { max-height: 320px; }
}
/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --gap: 8px; --crawl: 44px; }
  #deck { grid-template-columns: minmax(0,1fr); grid-template-areas: "radar" "cond" "alerts" "fc" "detail" "cams" "afd" "hwo" "sun"; }
  #header { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px 10px 8px; min-height: 0; }
  #badge { width: 48px; height: 48px; } #badge img { inset: 4px; width: 40px; height: 40px; }
  #badge::before { -webkit-mask: radial-gradient(circle, transparent 21px, #000 22px); mask: radial-gradient(circle, transparent 21px, #000 22px); }
  #brand { gap: 10px; flex: 1; }
  #brand .name { font-size: 36px; line-height: 34px; }
  #brand .loc { font-size: 9.5px; letter-spacing: .1em; }
  #clock { gap: 0; } #clockTime { font-size: 30px; line-height: 30px; } #clockDate { display: none; }
  #mid { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 8px; }
  .pill { height: 30px; font-size: 10px; letter-spacing: .05em; padding: 0 10px; gap: 6px; } #mid { gap: 6px; flex-wrap: nowrap; } #livePill i { width: 8px; height: 8px; }
  #radarBox { min-height: 0; height: clamp(340px, 60vh, 520px); }
  #frameChip { left: 8px; top: 8px; padding: 6px 10px; } #frameChip .lbl { font-size: 9.5px; }
  #frameTime { font-size: 20px; line-height: 24px; } #loopBar span { width: 9px; height: 5px; } #loopBar { gap: 3px; margin-top: 5px; }
  #legend { right: 8px; top: 8px; font-size: 10px; padding: 5px 8px 6px; } #legend .grad { width: 120px; height: 8px; } #legend .ticks { font-size: 9px; }
  .leaflet-top.leaflet-left { top: 78px; }
  body.warning .leaflet-top.leaflet-left { top: 160px; }
  #resetView { right: 8px; bottom: 24px; font-size: 10px; padding: 6px 9px; }
  #alertBanner { top: 76px; left: 8px; right: 8px; font-size: 15px; padding: 8px 10px; }
  .city .name { font-size: 14px; top: -10px; left: 9px; } .city .name.home { font-size: 16px; top: -11px; } .city .name.left { right: 9px; }
  .city .dot { width: 9px; height: 9px; left: -5px; top: -5px; } .ring-lbl { font-size: 10px; }
  .ph { font-size: 12px; height: 36px; padding-left: 18px; } .ph .right { font-size: 10.5px; }
  #nowTop { padding: 10px 14px 0; gap: 12px; } #tempBlock { width: 132px; }
  #temp { font-size: 80px; line-height: 74px; } #thermo { width: 124px; } #feels { font-size: 10.5px; }
  #sky { font-size: 24px; line-height: 26px; } #cWind { font-size: 22px; } #nextLine { font-size: 14px; }
  #tiles { grid-template-columns: repeat(2, 1fr); padding: 10px 14px 0; }
  #condFoot { padding: 8px 14px 10px; }
  #alertList { max-height: none; }
  .al summary { font-size: 16px; }
  #camBody { flex-direction: column; } #camLink { width: 100%; max-width: none; }
  #camCap { font-size: 21px; }
  .fcard { flex: 0 0 104px; } .fcard .t { font-size: 28px; }
  #ldlLabel { width: 112px; font-size: 11px; padding-right: 10px; } #ticker { left: 112px; }
  #tickerInner { font-size: 18px; }
  #foot { padding: 12px; } #foot .disc, #foot .links { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .glass > .run, #badge::before, #sweep, #livePill i, #frameChip .lbl i { animation: none !important; }
}
