/* Dark on purpose: it gets used outside at night, and a bright screen ruins
   your eyes' adjustment to the dark for minutes. */
:root {
  --bg: #070b16;
  --panel: #0c1222;
  --card: #121a30;
  --card-2: #18223d;
  --line: #243155;
  --text: #eef2fd;
  --muted: #9aa8cb;
  --faint: #62709a;
  --aurora: #5cf2a5;
  --aurora-2: #2bd4c4;
  --violet: #b46bff;
  --sky: #8ab4ff;
  --warn: #ffc15c;
  --bad: #ff6b6b;
  --tabbar: 64px;
  --demo-h: 0px;
  color-scheme: dark;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 80% 0%, rgba(92, 242, 165, .10), transparent 65%),
    radial-gradient(800px 600px at 10% 100%, rgba(180, 107, 255, .10), transparent 65%),
    #04060d;
  color: var(--text);
  font: 500 15px/1.45 var(--font);
  overscroll-behavior: none;
}
a { color: var(--sky); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }

/* The app is a phone-sized frame. On a phone it fills the screen; on a
   computer it sits centred like a device, so it always reads as an app. */
.app {
  position: relative;
  height: 100dvh;
  max-width: 460px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 620px) and (min-height: 700px) {
  body { display: grid; place-items: center; }
  .app {
    height: min(920px, calc(100dvh - 48px)); width: 420px;
    border-radius: 38px; border: 1px solid #1f2a47;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 10px #0b0f1c, 0 0 0 11px #222c48;
  }
}

/* ---------- top bar ---------- */
.appbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top) + var(--demo-h)) 14px 10px;
  pointer-events: none;
}
.appbar > * { pointer-events: auto; }
.place-pill, .icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(7, 11, 22, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px;
  padding: 8px 12px 8px 10px; font-weight: 800; min-height: 40px;
  transition: transform .15s;
}
.place-pill:active, .icon-btn:active { transform: scale(.94); }
.place-pill svg { width: 18px; height: 18px; color: var(--aurora); }
.place-pill .chev { width: 16px; height: 16px; color: var(--muted); }
.icon-btn { width: 40px; justify-content: center; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- views ---------- */
.views { position: relative; flex: 1; min-height: 0; }
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s ease, transform .25s ease; }

/* ---------- aurora: sky ---------- */
.sky-wrap { position: relative; height: 54%; min-height: 330px; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-score {
  position: absolute; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top) + var(--demo-h));
  text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 18px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.sky-score .when { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.sky-score .big { font-size: 78px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.sky-score .big small { font-size: 16px; font-weight: 800; letter-spacing: 0; opacity: .6; margin-left: 2px; }
.sky-score .verdict { font-size: 22px; font-weight: 900; margin-top: 2px; }
.lvl-3 .sky-score .verdict, .lvl-4 .sky-score .verdict { color: var(--aurora); }
.lvl-4 .sky-score .big { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); text-shadow: 0 0 30px rgba(92, 242, 165, .7); } }

/* ---------- puffin ---------- */
/* Room above him to hop; he fades in once his 3D model has loaded. */
.puffin {
  position: absolute; left: 0; bottom: -4px; width: 160px; height: 214px; padding: 0; z-index: 3;
  opacity: 0; transform: translateY(12px) scale(.9); transform-origin: 50% 100%;
  transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.5, .5, 1);
}
.puffin.ready { opacity: 1; transform: none; }
.puffin canvas { width: 100%; height: 100%; display: block; }

.bubble {
  position: absolute; left: 118px; bottom: 96px; max-width: calc(100% - 120px); z-index: 3;
  background: #fff; color: #10131c; font-weight: 800; font-size: 14px; line-height: 1.3;
  padding: 10px 13px; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: 0 100%;
  transition: opacity .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1);
  pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; }

/* ---------- aurora: panel ---------- */
.panel {
  position: relative; margin-top: -22px; z-index: 2;
  background: var(--panel); border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(var(--tabbar) + 24px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
}
.scrub-head { display: flex; justify-content: space-between; align-items: center; min-height: 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 800;
  background: var(--card-2); border: 1px solid var(--line);
  transition: transform .15s, background .2s, opacity .2s;
}
.chip:active { transform: scale(.94); }
#now-chip { background: var(--aurora); color: #04110a; border-color: transparent; }

.scrub { position: relative; height: 92px; margin-top: 8px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 12px; }
.scrub:active { cursor: grabbing; }
.scrub-bars { position: absolute; inset: 0 0 18px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; }
.sb { position: relative; height: 100%; display: flex; align-items: flex-end; border-radius: 6px; }
.sb.night { background: rgba(138, 180, 255, .07); }
.sb i { display: block; width: 100%; min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--line); transition: height .5s cubic-bezier(.3, 1.3, .5, 1); }
.sb.l1 i { background: var(--sky); } .sb.l2 i { background: var(--aurora-2); }
.sb.l3 i, .sb.l4 i { background: linear-gradient(0deg, var(--aurora), var(--violet)); }
.sb b { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--faint); font-weight: 800; white-space: nowrap; }
.sb.best::after { content: "★"; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); color: var(--warn); font-size: 12px; }
.scrub-thumb {
  position: absolute; top: -4px; bottom: 14px; width: calc(100% / 24 + 6px); margin-left: -3px;
  border: 2.5px solid #fff; border-radius: 10px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 4px 14px rgba(0, 0, 0, .4);
  transition: left .12s ease-out; pointer-events: none;
}
.reason { margin: 16px 0 0; font-size: 16px; font-weight: 700; text-align: center; min-height: 23px; }

.saw-btn {
  position: relative; display: block; width: 100%; margin-top: 16px; padding: 16px; border-radius: 18px;
  font-size: 19px; font-weight: 900; letter-spacing: .01em; color: #04110a;
  background: linear-gradient(100deg, var(--aurora), var(--aurora-2) 55%, var(--violet));
  box-shadow: 0 10px 30px rgba(92, 242, 165, .25);
  overflow: hidden; transition: transform .15s;
}
.saw-btn:active { transform: scale(.97); }
.saw-glow { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.saw-text { position: relative; }
.saw-count { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; margin: 8px 0 0; min-height: 19px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; min-width: 0; text-align: left; transition: transform .15s; align-self: start; }
.tile:active { transform: scale(.97); }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 800; display: flex; justify-content: space-between; }
.tile .k::after { content: "?"; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--faint); color: var(--faint); font-size: 10px; display: grid; place-items: center; }
.tile.open .k::after { content: "×"; }
.tile .v { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile .v small { font-size: 12px; color: var(--faint); font-weight: 800; }
.tile .d { font-size: 12px; color: var(--faint); font-weight: 700; }
.tile .more { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: none; line-height: 1.35; }
.tile.open .more { display: block; }
.tile.good .v { color: var(--aurora); } .tile.meh .v { color: var(--warn); }

/* ---------- pages (roads, about) ---------- */
.page { padding: calc(64px + env(safe-area-inset-top) + var(--demo-h)) 16px calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); }
.page-title { font-size: 28px; font-weight: 900; margin: 6px 0 16px; }
.section { font-size: 14px; font-weight: 900; color: var(--muted); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.section .hint { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--faint); font-size: 12px; }
.fine { color: var(--faint); font-size: 12.5px; margin-top: 22px; }
.card-plain { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px 14px; margin-bottom: 12px; }
.card-plain p { margin: 0; color: var(--muted); }
.card-plain p + p { margin-top: 10px; }

.warn-none, .warn-unknown, .warning { border-radius: 18px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); }
.warn-none { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.warn-none .ok { width: 34px; height: 34px; border-radius: 50%; background: rgba(92, 242, 165, .14); color: var(--aurora); display: grid; place-items: center; flex: none; font-weight: 900; }
.warn-unknown { border-color: var(--bad); color: var(--bad); font-weight: 700; }
.warning { margin-bottom: 10px; border-left: 5px solid var(--warn); }
.warning.sev-severe, .warning.sev-extreme { border-left-color: var(--bad); }
.warning h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.warning p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.warning .when { font-size: 12px; color: var(--faint); font-weight: 700; }

.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.station { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.station > button { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; }
.station.warn { border-color: rgba(255, 193, 92, .5); }
.station.bad { border-color: rgba(255, 107, 107, .6); }
.station.stale { opacity: .6; }
.station .n { font-weight: 900; font-size: 15.5px; overflow-wrap: anywhere; }
.station .s { color: var(--muted); font-size: 13px; font-weight: 700; }
.station .dist { color: var(--faint); font-size: 12px; font-weight: 800; }
.station .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.station .detail { display: none; padding: 0 14px 14px 78px; color: var(--muted); font-size: 13.5px; }
.station.open .detail { display: block; animation: drop .25s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.station .detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.station .detail dt { color: var(--faint); font-weight: 700; }
.station .detail dd { margin: 0; color: var(--text); font-weight: 800; }

/* Wind dial: the arrow points where the wind blows to and swings in gusts. */
.dial { position: relative; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #1c2747, #111a31); border: 1px solid var(--line); display: grid; place-items: center; }
.dial .arrow { position: absolute; inset: 0; transform: rotate(var(--deg, 0deg)); animation: gust var(--gust-s, 3s) ease-in-out infinite; }
@keyframes gust { 0%, 100% { transform: rotate(var(--deg, 0deg)); } 50% { transform: rotate(calc(var(--deg, 0deg) + var(--swing, 4deg))); } }
.dial .arrow::before { content: ""; position: absolute; left: 50%; top: 5px; margin-left: -6px; border: 6px solid transparent; border-bottom: 11px solid var(--sky); border-top: 0; }
.dial .arrow::after { content: ""; position: absolute; left: 50%; top: 14px; bottom: 8px; width: 3px; margin-left: -1.5px; background: var(--sky); border-radius: 2px; opacity: .55; }
.dial .spd { position: relative; font-size: 12px; font-weight: 900; background: #111a31; border-radius: 6px; padding: 0 3px; z-index: 1; }
.station.warn .dial .arrow::before { border-bottom-color: var(--warn); } .station.warn .dial .arrow::after { background: var(--warn); }
.station.bad .dial .arrow::before { border-bottom-color: var(--bad); } .station.bad .dial .arrow::after { background: var(--bad); }

.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: var(--line); }
.tag.warn { background: rgba(255, 193, 92, .16); color: var(--warn); }
.tag.bad { background: rgba(255, 107, 107, .16); color: var(--bad); }
.tag.ok { background: rgba(92, 242, 165, .12); color: var(--aurora); }

.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alerts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.alerts li span:first-child { min-width: 0; overflow-wrap: anywhere; }

.status { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
.status span { display: flex; align-items: center; gap: 8px; }
.status span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--aurora); flex: none; }
.status .stale::before { background: var(--warn); }
.status .down { color: var(--bad); }
.status .down::before { background: var(--bad); }

/* ---------- map ---------- */
#view-map { overflow: hidden; }
#map { position: absolute; inset: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); background: #0a0f1d; }
.map-tiles { filter: invert(1) hue-rotate(200deg) brightness(.85) contrast(.9) saturate(.35); }
.leaflet-container { font: inherit; background: #0a0f1d; }
.leaflet-top.leaflet-left { top: calc(60px + env(safe-area-inset-top)); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card-2); color: var(--text); border-radius: 14px; }
.leaflet-popup-content { margin: 10px 14px; font-size: 13px; font-weight: 700; }
.leaflet-control-attribution { background: rgba(7, 11, 22, .7) !important; color: var(--faint) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--card-2) !important; color: var(--text) !important; border-color: var(--line) !important; }
.map-chips { position: absolute; z-index: 500; left: 0; right: 0; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0 12px; }
.map-chips .chip { background: rgba(12, 18, 34, .85); backdrop-filter: blur(10px); padding: 8px 14px; }
.map-chips .chip:not(.on) { opacity: .45; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.aur { background: var(--aurora); } .dot.warn { background: var(--warn); } .dot.seen { background: var(--violet); }
.seen-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--violet); border: 2px solid #fff; animation: ping 1.8s infinite; }
.seen-pin.wow { background: var(--aurora); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(180, 107, 255, .7); } 70% { box-shadow: 0 0 0 16px rgba(180, 107, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 107, 255, 0); } }
.map-off { display: grid; place-content: center; height: 100%; color: var(--faint); text-align: center; padding: 20px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; z-index: 30; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(9, 13, 26, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 11px; font-weight: 800; transition: color .2s; }
.tab svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tab.active { color: var(--aurora); }
.tab.active svg { transform: translateY(-2px) scale(1.12); }
.tab:active svg { transform: scale(.88); }
.badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.dot-badge { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 12px; left: calc(50% + 8px); }

/* ---------- sheet ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.sheet {
  position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 82%;
  overflow-y: auto; background: var(--card); border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, 1.1, .4, 1);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .5);
}
.sheet.show { transform: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { margin: 4px 0 14px; font-size: 21px; font-weight: 900; }
.place-list { display: grid; gap: 6px; }
.place-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 14px; border-radius: 14px; background: var(--card-2); font-weight: 800; text-align: left; transition: transform .12s; }
.place-list button:active { transform: scale(.98); }
.place-list button.current { outline: 2px solid var(--aurora); }
.place-list .mini { font-size: 13px; font-weight: 900; color: var(--muted); }
.place-list .near-me { background: var(--aurora); color: #04110a; }
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.strengths button { padding: 16px 6px; border-radius: 18px; background: var(--card-2); border: 2px solid transparent; font-weight: 900; display: grid; gap: 4px; justify-items: center; transition: transform .15s, border-color .2s; }
.strengths button .e { font-size: 30px; line-height: 1; }
.strengths button.on { border-color: var(--aurora); transform: scale(1.04); }
.sheet .where-line { color: var(--muted); font-weight: 700; margin: 14px 0; font-size: 14px; }
.sheet .where-line button { color: var(--sky); font-weight: 800; text-decoration: underline; padding: 0; }
.primary { display: block; width: 100%; padding: 15px; border-radius: 16px; background: var(--aurora); color: #04110a; font-weight: 900; font-size: 17px; transition: transform .15s, opacity .2s; }
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .4; }

/* ---------- toast + confetti ---------- */
.toast {
  position: absolute; z-index: 60; left: 50%; top: calc(62px + env(safe-area-inset-top));
  transform: translate(-50%, -20px); opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.3, 1.5, .5, 1);
  background: #fff; color: #10131c; font-weight: 900; padding: 10px 16px; border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); width: max-content; max-width: calc(100% - 32px); text-align: center; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); color: #fff; }
.confetti { position: absolute; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }

@media (max-height: 700px) {
  .sky-wrap { min-height: 290px; }
  .sky-score .big { font-size: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- get the app ---------- */
.get-app { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: #04110a;
  background: linear-gradient(100deg, var(--aurora), var(--aurora-2) 60%, var(--violet)); margin-bottom: 6px; transition: transform .15s; }
.get-app:active { transform: scale(.98); }
.get-app img { border-radius: 12px; flex: none; }
.get-app b { display: block; font-size: 17px; font-weight: 900; }
.get-app small { display: block; font-size: 12.5px; font-weight: 800; opacity: .75; }
.get-app-help { margin: 0 0 16px; }
.android-chip { display: block; width: max-content; margin: 10px auto 0; padding: 7px 14px; border-radius: 99px; background: var(--card-2);
  border: 1px solid var(--line); color: var(--aurora); font-weight: 900; font-size: 13px; text-decoration: none; }

/* ---- Glimmr Plus ---- */
.tour-line { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.tour-line a { color: var(--sky); font-weight: 800; }
.tour-line small { display: block; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.plus-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin: 0 0 12px; border-radius: 18px; text-align: left;
  background: var(--card); border: 1px solid var(--aurora-2); color: var(--text); }
.plus-card:active { transform: scale(.98); }
.plus-card svg { width: 20px; height: 20px; margin-left: auto; color: var(--muted); flex: none; }
.plus-badge { flex: none; padding: 6px 10px; border-radius: 10px; font-weight: 900; font-size: 13px; color: #04110a;
  background: linear-gradient(100deg, var(--aurora), var(--aurora-2)); }
.plus-text b { display: block; font-size: 16px; font-weight: 900; }
.plus-text small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ghost { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: 15px; }
a.primary { text-align: center; text-decoration: none; }
.plus-lead { margin: 0 0 10px; font-weight: 800; font-size: 16px; }
.plus-list { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.plus-list li { margin-bottom: 6px; }
.plus-list b { color: var(--text); }
.plus-list .soon { font-size: 13px; }
.plus-on { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.plus-code { word-break: break-all; margin-top: 16px; }
.plus-code b { color: var(--text); user-select: all; }
.plus-restore { margin-top: 16px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.plus-restore summary { cursor: pointer; padding: 6px 0; }
.plus-restore input { width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; }

/* ---- Pretend aurora (testers) ---- */
body.demo { --demo-h: 34px; }
.demo-bar { position: absolute; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: calc(7px + env(safe-area-inset-top)) 12px 7px; background: var(--warn); color: #1a1100; font-size: 13px; font-weight: 900; }
.demo-bar button { padding: 2px 10px; border-radius: 99px; background: #1a1100; color: var(--warn); font-weight: 900; font-size: 12px; }
.demo-card p { margin: 0 0 12px; }
.demo-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-presets button { padding: 12px 4px; border-radius: 14px; background: var(--card-2); border: 2px solid transparent; color: var(--text); font-weight: 900; font-size: 14px; }
.demo-presets button.on { border-color: var(--warn); color: var(--warn); }
.demo-notif { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 14px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.demo-notif b { font-size: 15px; font-weight: 900; }
.demo-notif span { color: var(--muted); font-weight: 700; font-size: 14px; }
