
:root{
  --bg:#050506;
  --panel:rgba(22,22,24,.72);
  --panel2:rgba(10,10,12,.56);
  --glass:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.14);
  --text:#f6f3ea;
  --muted:rgba(246,243,234,.68);
  --gold:#efb90b;
  --gold2:#ffd35d;
  --cyan:#64ffe4;
  --green:#21f08b;
  --red:#ff4848;
  --blue:#496dff;
  --shadow:0 24px 80px rgba(0,0,0,.45);
  --radius:28px;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;overflow:hidden}
button,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.muted{color:var(--muted)}
.prefront{
  position:fixed;inset:0;overflow:hidden;background:
  radial-gradient(circle at 52% 40%, rgba(77,63,139,.26), transparent 38%),
  radial-gradient(circle at 50% 52%, rgba(239,185,11,.09), transparent 28%),
  linear-gradient(180deg,#020203 0%,#07070a 70%,#020203 100%);
}
.prefront-radar,.global-globe,.radar-canvas{position:absolute;inset:0;width:100%;height:100%}
.prefront-radar{opacity:.34}
.prefront-grid{
  position:absolute;inset:0;opacity:.11;background-image:
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:radial-gradient(circle at 50% 45%, #000 0 44%, transparent 78%);
}
.prefront-inner{position:relative;z-index:2;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}
.brand-mark{display:flex;align-items:center;gap:18px;letter-spacing:.45em;font-family:Georgia,serif;color:var(--gold2);font-weight:800}
.brand-mark.xl{font-size:56px;letter-spacing:.55em;margin-left:.55em}
.orb,.brand-orb{display:inline-block;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffd44d 0 16%,#27efbc 30%,#2347ff 56%,#09090a 72%);box-shadow:0 0 24px rgba(239,185,11,.45)}
.orb{width:30px;height:30px}.brand-orb{width:28px;height:28px}
.pre-kicker{letter-spacing:.58em;color:rgba(255,255,255,.64);font-size:13px;margin:18px 0 12px}
.pre-globe{width:min(39vh,430px);height:min(39vh,430px);position:relative;margin:4px 0 18px}
.pre-globe canvas{width:100%;height:100%;filter:drop-shadow(0 0 40px rgba(239,185,11,.22))}
h1{font-family:Georgia,serif;font-size:clamp(36px,5vw,64px);line-height:1.12;margin:8px 0 10px;font-weight:800}
h1 em{font-style:normal;color:var(--gold2)}
.pre-sub{max-width:780px;color:rgba(255,255,255,.7);font-size:18px;line-height:1.55;margin:0 auto 26px}
.pre-actions{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}
.primary-btn,.gold-btn,.ghost-btn,.pill-btn,.round-btn,.menu-btn{
  border:1px solid var(--line);color:var(--text);background:var(--glass);backdrop-filter:blur(18px);box-shadow:0 12px 36px rgba(0,0,0,.25);transition:.18s ease;white-space:nowrap
}
.primary-btn{padding:17px 28px;border-radius:14px;background:rgba(239,185,11,.09);border-color:rgba(239,185,11,.62);color:var(--gold2);letter-spacing:.16em;text-transform:uppercase;font-weight:900}
.primary-btn.small{padding:12px 16px;font-size:13px;letter-spacing:.06em}
.primary-btn:hover,.gold-btn:hover,.pill-btn:hover,.round-btn:hover,.menu-btn:hover,.ghost-btn:hover{transform:translateY(-1px);filter:brightness(1.12)}
.gold-btn{border:0;border-radius:999px;background:var(--gold);color:#161105;font-weight:900;padding:14px 24px}
.ghost-btn,.pill-btn{border-radius:999px;padding:12px 18px}
.round-btn{width:54px;height:54px;border-radius:50%;display:grid;place-items:center}
.menu-btn{width:58px;height:58px;border-radius:50%;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;background:#d7131b;border:0}
.menu-btn span{width:24px;height:3px;border-radius:99px;background:#fff}
.pre-meta{display:flex;gap:36px;margin-top:48px;color:rgba(255,255,255,.56);font-size:12px;letter-spacing:.28em;flex-wrap:wrap;justify-content:center}
.app{position:fixed;inset:0;overflow:hidden;background:#0a0a0b}
.global-globe{z-index:0;opacity:.9}
.radar-canvas{z-index:1;mix-blend-mode:screen;opacity:.98}
.map-overlay{position:absolute;inset:0;z-index:2;pointer-events:none;background:
  radial-gradient(circle at 50% 44%, transparent 0 31%, rgba(0,0,0,.24) 56%, rgba(0,0,0,.72) 100%),
  linear-gradient(180deg,rgba(0,0,0,.46),transparent 20%,transparent 72%,rgba(0,0,0,.62))}
.topbar{position:absolute;z-index:10;left:22px;right:22px;top:22px;display:grid;grid-template-columns:minmax(260px,500px) 58px 1fr auto;align-items:center;gap:12px}
.searchbox{height:58px;border-radius:999px;background:rgba(255,255,255,.84);display:flex;align-items:center;padding:0 18px;box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.searchbox button{border:0;background:transparent;font-size:28px;color:#4a4a4a;width:34px}
.searchbox input{border:0;background:transparent;outline:none;flex:1;color:#111;font-size:20px;padding:0 12px}
.app-title{justify-self:center;height:58px;display:flex;align-items:center;gap:14px;padding:0 24px;border-radius:999px;background:rgba(15,15,15,.56);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(18px);box-shadow:var(--shadow)}
.app-title strong{font-size:24px;letter-spacing:.03em}.app-title span:last-child{letter-spacing:.32em;color:rgba(255,255,255,.58);font-size:13px}
.top-actions{display:flex;align-items:center;gap:10px;justify-self:end}
.status-card{position:absolute;z-index:9;left:28px;bottom:210px;width:min(430px,calc(100vw - 56px));padding:18px 20px;border-radius:18px;background:rgba(18,18,18,.76);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(16px);box-shadow:var(--shadow)}
.status-line{font-size:16px;margin-bottom:6px}.chips{display:flex;gap:8px;margin-top:13px}.chip{font-size:12px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.1)}.chip.live{color:#7dffc9;border:1px solid rgba(33,240,139,.3)}.chip.core{color:var(--gold2);border:1px solid rgba(239,185,11,.4)}
.layer-rail{position:absolute;z-index:11;right:24px;top:132px;display:flex;flex-direction:column;gap:11px;align-items:flex-end}
.layer{height:46px;border:0;background:transparent;color:#fff;display:flex;flex-direction:row-reverse;align-items:center;gap:10px;padding:0}
.layer span:last-child{display:inline-flex;min-width:fit-content;padding:10px 15px;border-radius:999px;background:rgba(20,20,20,.68);backdrop-filter:blur(16px);box-shadow:0 12px 30px rgba(0,0,0,.22)}
.layer.active span:last-child{background:var(--gold);color:#151105;font-weight:900}
.bubble{width:46px;height:46px;border-radius:50%;display:inline-grid;place-items:center;box-shadow:0 10px 26px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.15);position:relative;overflow:hidden}
.bubble:before{content:"";position:absolute;inset:0;background:var(--grad);filter:saturate(1.15)}
.bubble:after{position:relative;z-index:1;font-weight:900;text-shadow:0 1px 4px rgba(0,0,0,.45)}
.radar{--grad:conic-gradient(#1ad5ff,#24ff8f,#f9e74b,#ff6a2b,#d31920,#1ad5ff)}.radar:after{content:"⊙"}
.satellite{--grad:radial-gradient(circle,#bad6ff,#244364,#18233a)}.satellite:after{content:"◌"}
.wind{--grad:linear-gradient(135deg,#16fde5,#dfda4f,#5149ff)}.wind:after{content:"≈"}
.rain{--grad:linear-gradient(135deg,#18d6ff,#34f48c,#ffe14d,#ff5f1b)}.rain:after{content:"↯"}
.temp{--grad:conic-gradient(#3150ff,#00d8ff,#ffcf19,#ff381d,#3150ff)}.temp:after{content:"°"}
.pressure{--grad:radial-gradient(circle,#aaa,#191919)}.pressure:after{content:"h"}
.clouds{--grad:radial-gradient(circle,#f0f0f0,#888,#363636)}.clouds:after{content:"☁"}
.waves{--grad:linear-gradient(135deg,#1824ff,#00e3ff,#5a34ff)}.waves:after{content:"≈"}
.air{--grad:linear-gradient(135deg,#37f4a0,#b8ff51,#3ea03d)}.air:after{content:"AQ"}
.moredot{--grad:linear-gradient(135deg,#111,#333)}.moredot:after{content:"+"}
.quick-weather{position:absolute;z-index:9;left:28px;bottom:104px;display:flex;gap:12px;align-items:stretch;max-width:calc(100vw - 56px)}
.quick-weather>div{min-width:130px;padding:14px 16px;border-radius:18px;background:rgba(18,18,18,.70);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(16px);box-shadow:var(--shadow)}
.quick-weather small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.12em}
.quick-weather strong,.quick-weather span{display:block;font-size:25px;font-weight:900;margin-top:5px}
.timeline{position:absolute;z-index:10;left:14%;right:22px;bottom:20px;display:flex;gap:12px;align-items:flex-end;justify-content:flex-end}
.timeline-main{flex:1;max-width:980px;display:flex;gap:0;align-items:center}
.play{width:78px;height:52px;border:0;background:rgba(22,22,22,.86);color:white;border-radius:14px 0 0 14px;font-size:22px}
.timebar{height:52px;flex:1;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;position:relative;overflow:hidden;background:rgba(239,185,11,.82);border-radius:0 14px 14px 0;box-shadow:var(--shadow)}
.time-fill{position:absolute;left:0;top:0;bottom:0;width:18%;background:rgba(255,255,255,.18);transition:.3s}
.timebar button{position:relative;z-index:1;border:0;background:transparent;color:white;font-weight:900;font-size:14px;height:100%}.timebar button.active{background:rgba(255,255,255,.17)}
.models{display:flex;height:60px;border-radius:18px;overflow:hidden;background:rgba(20,20,20,.8);box-shadow:var(--shadow)}
.model{border:0;background:transparent;color:#fff;min-width:100px;padding:0 18px;font-weight:800}.model.active{background:var(--gold);color:#161105}
.legend{height:60px;min-width:335px;border-radius:18px;background:rgba(20,20,20,.78);box-shadow:var(--shadow);padding:8px 16px;display:grid;grid-template-columns:50px repeat(5,1fr);align-items:end;gap:7px}
.legend span{grid-row:1/3;font-size:20px;font-weight:900;color:#fff}.legend i{grid-column:2/7;height:22px;border-radius:2px;background:linear-gradient(90deg,#3b57e7,#23f0e5,#aef25d,#f5d442,#e63932);grid-row:1}.legend b{font-size:12px;color:#ddd;text-align:center}
.drawer-scrim{position:absolute;inset:0;background:rgba(0,0,0,.35);z-index:20;backdrop-filter:blur(3px)}
.drawer{position:absolute;z-index:21;right:18px;top:92px;bottom:92px;width:min(560px,calc(100vw - 36px));background:rgba(10,10,12,.88);border:1px solid rgba(255,255,255,.14);border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(22px);transform:translateX(calc(100% + 40px));transition:.24s ease;overflow:hidden;display:flex;flex-direction:column}
.drawer.open{transform:translateX(0)}
.drawer-head{padding:22px 22px 12px;display:flex;align-items:center;justify-content:space-between}.drawer-head small,.plan-card small{color:var(--gold2);letter-spacing:.2em}.drawer-head h2{margin:3px 0 0;font-size:24px}
.tabs{display:flex;gap:8px;overflow:auto;padding:8px 18px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.tab{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:10px 14px;white-space:nowrap}.tab.active{background:var(--gold);color:#151105;font-weight:900;border-color:transparent}
.tab-panel{display:none;overflow:auto;padding:20px 22px 28px}.tab-panel.active{display:block}.tab-panel h3{font-size:26px;margin:0 0 14px}
.weather-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 22px}.weather-grid div,.analysis-result,.special-result,.plan-card,.more-layer-box{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);border-radius:18px;padding:15px}.weather-grid small{color:var(--muted)}.weather-grid strong{display:block;font-size:22px;margin-top:4px}
.hourly-strip{display:flex;gap:8px;overflow:auto;padding-bottom:4px}.hourly{min-width:92px;border-radius:16px;padding:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);text-align:center}.hourly strong{display:block;font-size:20px}.hourly small{display:block;color:var(--muted)}
.analysis-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.analysis-head h3{font-size:42px;color:var(--gold2);margin:0}
.analysis-result.empty{color:var(--muted)}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.result-box{border-radius:18px;padding:18px;border:1px solid rgba(255,255,255,.1)}.result-box.green{background:linear-gradient(180deg,rgba(33,240,139,.18),rgba(33,240,139,.05));border-color:rgba(33,240,139,.34)}.result-box.red{background:linear-gradient(180deg,rgba(255,72,72,.18),rgba(255,72,72,.05));border-color:rgba(255,72,72,.34)}.result-box strong{font-size:38px;display:block}.diff{font-size:46px;font-weight:950;text-align:center;color:var(--gold2);letter-spacing:.03em}.verdict{font-size:16px;line-height:1.55}
.specialist-list{display:grid;gap:10px}.special-card{text-align:left;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);border-radius:18px;color:#fff;padding:16px}.special-card strong{display:block;font-size:19px}.special-card span{display:block;color:var(--muted);margin-top:4px}.special-card.space{background:linear-gradient(135deg,rgba(99,88,255,.18),rgba(239,185,11,.08))}
.special-result{margin-top:14px;color:var(--muted)}
.plan-card{padding:22px}.plan-card h3{font-size:34px;margin:10px 0}.plan-card p{color:var(--muted);line-height:1.6}.price{margin:18px 0;padding:18px;border-radius:18px;background:rgba(255,255,255,.06)}.price strong{font-size:36px;color:var(--gold2);display:block}.price span,.price em{display:block;color:var(--muted);font-style:normal}.plan-card li{margin:9px 0;color:rgba(255,255,255,.82)}.wide{width:100%;justify-content:center;text-align:center}.premium-plan{background:linear-gradient(180deg,rgba(100,255,228,.09),rgba(255,255,255,.04))}.pro-plan{background:linear-gradient(180deg,rgba(239,185,11,.12),rgba(255,255,255,.04))}
.extra-layers{display:flex;gap:8px;flex-wrap:wrap}.extra-layers button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:10px 14px}
.toast{position:absolute;z-index:99;left:50%;bottom:100px;transform:translateX(-50%);padding:14px 18px;background:rgba(10,10,10,.86);border:1px solid rgba(255,255,255,.12);border-radius:999px;box-shadow:var(--shadow)}
@media(max-width:980px){
  .topbar{grid-template-columns:1fr 50px auto;left:12px;right:12px;top:12px}
  .app-title{grid-column:1/4;grid-row:2;justify-self:center;height:48px}
  .app-title strong{font-size:18px}.app-title span:last-child{font-size:10px}
  .top-actions{gap:6px}.gold-btn{padding:12px 14px}.pill-btn{padding:10px 12px}
  .layer-rail{right:8px;top:162px;gap:7px}.layer span:last-child{display:none}.bubble{width:44px;height:44px}
  .status-card{bottom:190px;left:12px;width:calc(100vw - 100px);padding:14px}
  .quick-weather{left:12px;right:12px;bottom:92px;overflow:auto}.quick-weather>div{min-width:110px;padding:12px}
  .timeline{left:8px;right:8px;bottom:8px;display:block}.models,.legend{display:none}.timeline-main{max-width:none}.timebar button{font-size:12px}
  .drawer{right:8px;top:70px;bottom:70px;width:calc(100vw - 16px)}
  .brand-mark.xl{font-size:42px}.pre-meta{gap:18px;font-size:10px}.pre-sub{font-size:15px}.pre-globe{width:min(34vh,320px);height:min(34vh,320px)}
}
@media(max-width:560px){
  .searchbox{height:50px}.searchbox input{font-size:16px}.round-btn{width:50px;height:50px}.menu-btn{width:52px;height:52px}
  #loginBtn{display:none}.result-grid{grid-template-columns:1fr}.weather-grid{grid-template-columns:1fr}
  .status-card{bottom:178px}.quick-weather{bottom:76px}.quick-weather>div{min-width:100px}
}

/* WR MOBILE CLEAN RADAR PATCH v20260523 */
.active-layer-fab,
.status-close {
  display: none;
}

@media (max-width: 700px) {
  .topbar {
    left: 10px;
    right: 10px;
    top: 10px;
    grid-template-columns: minmax(0, 1fr) 46px auto;
    gap: 8px;
  }

  .searchbox {
    height: 46px;
    padding: 0 14px;
  }

  .searchbox input {
    font-size: 16px;
  }

  .searchbox button {
    font-size: 24px;
    width: 28px;
  }

  .round-btn {
    width: 46px;
    height: 46px;
  }

  .pill-btn {
    padding: 9px 11px;
    font-size: 13px;
  }

  .gold-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .menu-btn {
    width: 48px;
    height: 48px;
  }

  .app-title {
    grid-column: 1 / 4;
    grid-row: 2;
    height: 42px;
    max-width: calc(100vw - 104px);
    padding: 0 16px;
    justify-self: center;
  }

  .app-title strong {
    font-size: 18px;
  }

  .app-title span:last-child {
    display: none;
  }

  .brand-orb {
    width: 24px;
    height: 24px;
  }

  .layer-rail {
    right: 8px;
    top: 132px;
    gap: 8px;
    max-height: calc(100vh - 255px);
    overflow-y: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .layer-rail::-webkit-scrollbar {
    display: none;
  }

  .layer span:last-child {
    display: none;
  }

  .bubble {
    width: 43px;
    height: 43px;
  }

  .status-card {
    left: 12px;
    right: auto;
    bottom: 150px;
    width: calc(100vw - 92px);
    max-width: 360px;
    padding: 16px;
    border-radius: 20px;
    z-index: 50;
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }

  .status-card.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .status-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.10);
    font-size: 20px;
  }

  .active-layer-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 12px;
    bottom: 156px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    z-index: 49;
    background: rgba(14,14,16,.82);
    color: #efb90b;
    box-shadow: 0 12px 32px rgba(0,0,0,.34);
    backdrop-filter: blur(16px);
    font-size: 22px;
  }

  .quick-weather {
    left: 10px;
    right: 74px;
    bottom: 76px;
    max-width: calc(100vw - 86px);
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-weather::-webkit-scrollbar {
    display: none;
  }

  .quick-weather > div {
    min-width: 104px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .quick-weather strong,
  .quick-weather span {
    font-size: 22px;
  }

  .quick-weather small {
    font-size: 10px;
  }

  .timeline {
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: block;
  }

  .timeline-main {
    max-width: none;
  }

  .play {
    width: 58px;
    height: 48px;
  }

  .timebar {
    height: 48px;
  }

  .timebar button {
    font-size: 12px;
  }

  .models,
  .legend {
    display: none;
  }
}

@media (max-width: 700px) and (max-height: 740px) {
  .layer-rail {
    top: 120px;
    gap: 6px;
  }

  .bubble {
    width: 40px;
    height: 40px;
  }

  .quick-weather {
    bottom: 70px;
  }

  .active-layer-fab {
    bottom: 145px;
  }

  .status-card {
    bottom: 138px;
  }

  .play,
  .timebar {
    height: 44px;
  }
}
