.ugw{--ugw-navy:#20275D;--ugw-navy-2:#2B347A;--ugw-gold:#FFBF51;--ugw-gold-d:#E3A21F;--ugw-cream:#FFF8EA;--ugw-tint:#F4F5FA;--ugw-line:#E3E6F0;--ugw-grey:#5F6B85;color:var(--ugw-navy);font-family:inherit;line-height:1.45;margin:0 0 36px}
.ugw *{box-sizing:border-box}
.ugw svg{display:block}
.ugw__tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.ugw__tab{border:0;background:var(--ugw-cream);color:var(--ugw-navy);font:inherit;font-weight:700;font-size:13px;letter-spacing:.4px;text-transform:uppercase;padding:9px 16px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.ugw__tab:hover{background:#FFEFC9}
.ugw__tab.is-active{background:var(--ugw-navy);color:#fff;box-shadow:inset 0 -3px 0 var(--ugw-gold)}
.ugw__tab:focus-visible,.ugw__units button:focus-visible{outline:3px solid var(--ugw-gold);outline-offset:2px}

.ugw__hero{position:relative;overflow:hidden;border-radius:14px;padding:24px 26px 0;color:#fff;background:linear-gradient(160deg,#2B347A 0%,#20275D 55%,#1A2050 100%);border-left:5px solid var(--ugw-gold);border-right:5px solid var(--ugw-gold)}
.ugw.is-night .ugw__hero{background:linear-gradient(160deg,#1A2050 0%,#141A42 60%,#10153A 100%)}
.ugw__hero-top,.ugw__now,.ugw__summary{position:relative;z-index:2}
.ugw__hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.ugw__title{font-size:26px;font-weight:800;line-height:1.15;color:#fff}
.ugw__title span{color:var(--ugw-gold)}
.ugw__date{font-size:14px;opacity:.9;margin-top:6px}
.ugw__sep{opacity:.5;margin:0 4px}
.ugw__units{display:inline-flex;background:rgba(255,255,255,.12);border-radius:999px;padding:3px}
.ugw__units button{border:0;background:transparent;color:#fff;font:inherit;font-weight:700;font-size:14px;padding:6px 12px;border-radius:999px;cursor:pointer}
.ugw__units button.is-active{background:var(--ugw-gold);color:var(--ugw-navy)}

.ugw__now{display:flex;align-items:center;gap:18px;margin-top:18px;flex-wrap:wrap}
.ugw__now-icon{width:96px;height:96px;flex:none}
.ugw__now-icon svg{width:96px;height:96px}
.ugw__now-temp{font-size:76px;font-weight:800;line-height:1;color:#fff;display:flex;align-items:flex-start;letter-spacing:-1px}
.ugw__now-unit{font-size:28px;margin-top:8px;color:var(--ugw-gold)}
.ugw__now-text{font-size:15px;line-height:1.7}
.ugw__now-text b{color:var(--ugw-gold)}
.ugw__cond{font-size:22px;font-weight:800;line-height:1.2;margin-bottom:2px}
.ugw__summary{margin:16px 0 0;font-size:15px;line-height:1.6;color:#E7EAF6;max-width:820px;position:relative;z-index:2}
.ugw__skyline{position:relative;z-index:1;width:100%;height:auto;margin-top:12px;opacity:.95}

.ugw__tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.ugw__tile{background:var(--ugw-cream);border-radius:12px;padding:14px 16px;border-top:4px solid var(--ugw-gold)}
.ugw__tile-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ugw-grey);display:flex;align-items:center;gap:6px}
.ugw__tile-val{font-size:24px;font-weight:800;margin-top:4px}
.ugw__tile-sub{font-size:13px;color:var(--ugw-grey);margin-top:2px;min-height:18px}
.ugw__arrow{display:inline-block;color:var(--ugw-navy);font-size:15px;line-height:1;transition:transform .3s}
.ugw__dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#9AA3B8}

.ugw__tomorrow{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--ugw-line);border-left:6px solid var(--ugw-gold);border-radius:12px;padding:14px 18px;box-shadow:0 2px 10px rgba(32,39,93,.06)}
.ugw__tomorrow:empty{display:none}
.ugw__tm-icon svg{width:64px;height:64px}
.ugw__tm-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ugw-grey)}
.ugw__tm-cond{font-size:20px;font-weight:800}
.ugw__tm-meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;margin-top:2px}

.ugw__sec{display:inline-block;font-size:17px;font-weight:800;text-transform:uppercase;letter-spacing:.3px;margin:26px 0 12px;padding-bottom:6px;border-bottom:4px solid var(--ugw-gold)}
.ugw__hours{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.ugw__hour{flex:0 0 74px;background:var(--ugw-tint);border-radius:12px;padding:10px 6px;text-align:center}
.ugw__hour.is-now{background:var(--ugw-navy);color:#fff}
.ugw__hour svg{width:36px;height:36px;margin:4px auto}
.ugw__hour-t{font-size:12px;font-weight:700;opacity:.85}
.ugw__hour-temp{font-size:17px;font-weight:800}
.ugw__hour-pop{font-size:11px;color:#4F7CD6;font-weight:700;min-height:14px}
.ugw__hour.is-now .ugw__hour-pop{color:var(--ugw-gold)}

.ugw__days{border:1px solid var(--ugw-line);border-radius:12px;overflow:hidden}
.ugw__day{display:grid;grid-template-columns:110px 44px 1fr 46px minmax(80px,1.2fr) 46px;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--ugw-line);background:#fff}
.ugw__day:last-child{border-bottom:0}
.ugw__day:nth-child(even){background:#FAFBFE}
.ugw__day-name{font-weight:800}
.ugw__day-icon svg{width:40px;height:40px}
.ugw__day-cond{font-size:14px;color:var(--ugw-grey)}
.ugw__day-pop{color:#4F7CD6;font-weight:700}
.ugw__day-lo{text-align:right;color:var(--ugw-grey);font-weight:700;font-variant-numeric:tabular-nums}
.ugw__day-hi{font-weight:800;font-variant-numeric:tabular-nums}
.ugw__day-bar{position:relative;height:8px;background:var(--ugw-line);border-radius:999px}
.ugw__day-bar span{position:absolute;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,var(--ugw-gold),#F07B2E)}

.ugw__normal{margin-top:16px;background:var(--ugw-tint);border-left:5px solid var(--ugw-navy);border-radius:10px;padding:14px 18px;font-size:15px;line-height:1.6}
.ugw__normal:empty{display:none}
.ugw__status{display:none;margin-top:12px;background:var(--ugw-cream);border-left:5px solid var(--ugw-gold);border-radius:10px;padding:12px 16px;font-size:14px}
.ugw__status.is-visible{display:block}
.ugw__credit{font-size:12.5px;color:var(--ugw-grey);margin:14px 0 0;line-height:1.6}
.ugw__credit a{color:var(--ugw-navy);font-weight:700}

@media (max-width:900px){.ugw__tiles{grid-template-columns:repeat(2,1fr)}.ugw__row{grid-template-columns:1fr}}
@media (max-width:640px){
  .ugw__hero{padding:18px 16px 0}
  .ugw__title{font-size:22px}
  .ugw__now{gap:12px}
  .ugw__now-icon,.ugw__now-icon svg{width:72px;height:72px}
  .ugw__now-temp{font-size:60px}
  .ugw__tab{padding:8px 12px;font-size:12px}
  .ugw__day{grid-template-columns:78px 34px 38px 1fr 38px;padding:10px 12px;gap:8px}
  .ugw__day-cond{display:none}
  .ugw__day-icon svg{width:32px;height:32px}
  .ugw__tile-val{font-size:20px}
}


/* ===== Layout additions ===== */
.ugw__row{display:grid;grid-template-columns:1.5fr 1fr;gap:12px;margin-top:16px}
.ugw__sunpath{background:#fff;border:1px solid var(--ugw-line);border-radius:12px;padding:12px 18px;box-shadow:0 2px 10px rgba(32,39,93,.06)}
.ugw__sunpath:empty{display:none}
.ugw__sp-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ugw-grey)}
.ugw__sp-svg{width:100%;height:auto;max-height:110px;margin:4px 0 2px}
.ugw__sp-meta{display:flex;justify-content:space-between;font-size:13px;color:var(--ugw-grey)}
.ugw__sp-meta b{color:var(--ugw-navy)}
.ugw__sp-note{font-size:14px;font-weight:700;margin-top:2px}

/* Gauges */
.ugw__gauge{position:relative;height:6px;border-radius:999px;background:#EDE3CB;margin:8px 0 4px;overflow:visible}
.ugw__gauge-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:999px;background:var(--ugw-navy);transition:width .9s cubic-bezier(.2,.8,.2,1)}
.ugw__gauge--uv{background:linear-gradient(90deg,#2E9E5B 0%,#2E9E5B 18%,#E3A21F 27%,#E3A21F 45%,#F07B2E 55%,#D64545 73%,#8E44AD 100%)}
.ugw__gauge--aqi{background:linear-gradient(90deg,#2E9E5B 0%,#2E9E5B 16%,#E3A21F 17%,#E3A21F 33%,#F07B2E 34%,#F07B2E 50%,#D64545 51%,#D64545 66%,#8E44AD 67%,#8E44AD 100%)}
.ugw__gauge-mark{position:absolute;top:50%;left:0;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#fff;border:3px solid var(--ugw-navy);box-shadow:0 1px 4px rgba(0,0,0,.25);transition:left .9s cubic-bezier(.2,.8,.2,1)}

/* Hourly sparkline */
.ugw__hours-track{position:relative}
.ugw__spark{display:block;height:56px;margin-bottom:-6px}
.ugw__spark-line{fill:none;stroke:var(--ugw-gold-d);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.ugw__spark-area{fill:url(#ugwSparkGrad)}
.ugw__spark-dot{fill:#fff;stroke:var(--ugw-gold-d);stroke-width:2}
.ugw__hours-row{display:flex;gap:8px}

/* ===== Sky phases ===== */
.ugw__hero{transition:background .8s}
.ugw[data-phase="day"] .ugw__hero{background:linear-gradient(165deg,#34408F 0%,#26307A 45%,#20275D 100%)}
.ugw[data-phase="dawn"] .ugw__hero{background:linear-gradient(180deg,#20275D 0%,#3A3F86 45%,#B5677A 82%,#F2A65A 100%)}
.ugw[data-phase="dusk"] .ugw__hero{background:linear-gradient(180deg,#1C2255 0%,#3D3A80 45%,#C25E5E 82%,#F59E4C 100%)}
.ugw[data-phase="night"] .ugw__hero{background:linear-gradient(170deg,#161C49 0%,#11163C 60%,#0C1030 100%)}

/* ===== Scene layer ===== */
.ugw__scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ugw__scene i{position:absolute;display:block}
.ugw__glow{width:340px;height:340px;right:-90px;top:-120px;border-radius:50%;background:radial-gradient(circle,rgba(255,191,81,.55) 0%,rgba(255,191,81,.18) 38%,rgba(255,191,81,0) 70%);animation:ugwPulse 6s ease-in-out infinite}
.ugw__ray{right:60px;top:-40px;width:3px;height:260px;transform-origin:50% 0;background:linear-gradient(180deg,rgba(255,215,140,.35),rgba(255,215,140,0));animation:ugwRay 9s ease-in-out infinite}
.ugw__star{width:3px;height:3px;border-radius:50%;background:#fff;opacity:.2;animation:ugwTwinkle 3.2s ease-in-out infinite}
.ugw__mglow{width:260px;height:260px;right:-60px;top:-90px;border-radius:50%;background:radial-gradient(circle,rgba(255,226,170,.28) 0%,rgba(255,226,170,0) 65%)}
.ugw__cl{width:180px;height:56px;border-radius:60px;background:rgba(255,255,255,.12);filter:blur(1px);animation:ugwDrift 38s linear infinite}
.ugw__cl::before,.ugw__cl::after{content:"";position:absolute;border-radius:50%;background:inherit}
.ugw__cl::before{width:84px;height:84px;left:28px;top:-38px}
.ugw__cl::after{width:62px;height:62px;left:92px;top:-26px}
.ugw__drop{width:2px;height:22px;border-radius:2px;background:linear-gradient(180deg,rgba(170,200,255,0),rgba(170,200,255,.75));animation:ugwRain .9s linear infinite}
.ugw__flash{inset:0;background:rgba(255,255,255,.0);animation:ugwFlash 7s infinite}
.ugw__fogb{left:-30%;width:160%;height:44px;border-radius:40px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.16),rgba(255,255,255,0));animation:ugwFog 14s ease-in-out infinite alternate}
.ugw__haze{inset:0;background:linear-gradient(180deg,rgba(214,170,100,.08),rgba(214,170,100,.32))}
.ugw__grain{width:3px;height:3px;border-radius:50%;background:rgba(240,210,150,.55);animation:ugwDust 6s linear infinite}

@keyframes ugwPulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.08);opacity:1}}
@keyframes ugwRay{0%,100%{transform:rotate(18deg);opacity:.5}50%{transform:rotate(30deg);opacity:1}}
@keyframes ugwTwinkle{0%,100%{opacity:.15;transform:scale(.8)}50%{opacity:.95;transform:scale(1.15)}}
@keyframes ugwDrift{from{transform:translateX(-260px)}to{transform:translateX(1400px)}}
@keyframes ugwRain{from{transform:translate(0,-40px) rotate(12deg)}to{transform:translate(-40px,420px) rotate(12deg)}}
@keyframes ugwFlash{0%,88%,92%,100%{background:rgba(255,255,255,0)}89%,91%{background:rgba(255,255,255,.35)}}
@keyframes ugwFog{from{transform:translateX(-8%)}to{transform:translateX(8%)}}
@keyframes ugwDust{from{transform:translate(-40px,0)}to{transform:translate(900px,-30px)}}

/* ===== Animated icons ===== */
.ugw svg .a-rays{transform-origin:24px 24px;animation:ugwSpin 24s linear infinite}
.ugw svg .a-cloud{animation:ugwBob 5s ease-in-out infinite}
.ugw svg .a-drop{animation:ugwDropFall 1.1s linear infinite}
.ugw svg .a-drop:nth-child(2){animation-delay:.35s}
.ugw svg .a-drop:nth-child(3){animation-delay:.7s}
.ugw svg .a-bolt{animation:ugwBolt 3s infinite}
.ugw svg .a-fog{animation:ugwFogLine 4s ease-in-out infinite alternate}
.ugw svg .a-moon{transform-origin:30px 22px;animation:ugwMoon 6s ease-in-out infinite}
.ugw svg .a-dust{animation:ugwFogLine 3s ease-in-out infinite alternate}
@keyframes ugwSpin{to{transform:rotate(360deg)}}
@keyframes ugwBob{0%,100%{transform:translateX(0)}50%{transform:translateX(2.5px)}}
@keyframes ugwDropFall{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}100%{transform:translateY(5px);opacity:0}}
@keyframes ugwBolt{0%,70%,100%{opacity:1}75%,85%{opacity:.15}}
@keyframes ugwFogLine{from{transform:translateX(-3px)}to{transform:translateX(3px)}}
@keyframes ugwMoon{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}

/* ===== Entrance ===== */
.ugw.is-rendered .ugw__tile,.ugw.is-rendered .ugw__hour,.ugw.is-rendered .ugw__day,.ugw.is-rendered .ugw__tomorrow,.ugw.is-rendered .ugw__sunpath{animation:ugwUp .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 45ms)}
@keyframes ugwUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ugw__spark-line{stroke-dasharray:2400;stroke-dashoffset:0}
.ugw.is-rendered .ugw__spark-line{animation:ugwDraw 1.4s ease-out both}
@keyframes ugwDraw{from{stroke-dashoffset:2400}to{stroke-dashoffset:0}}
.ugw__tile{transition:transform .2s,box-shadow .2s}
.ugw__tile:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(32,39,93,.10)}
.ugw__arrow{animation:ugwSway 3s ease-in-out infinite}
@keyframes ugwSway{0%,100%{translate:0 0}50%{translate:0 -2px}}

@media (prefers-reduced-motion:reduce){
  .ugw *,.ugw *::before,.ugw *::after{animation:none!important;transition:none!important}
}

/* ===== v1.2: tab temperatures, UAE line, live badge, tips ===== */
.ugw__tab{display:inline-flex;align-items:center;gap:7px}
.ugw__tab-t{font-weight:800;color:var(--ugw-gold-d);text-transform:none;letter-spacing:0}
.ugw__tab-t:empty{display:none}
.ugw__tab.is-active .ugw__tab-t{color:var(--ugw-gold)}
.ugw__uae{margin:-6px 0 14px;font-size:14.5px;color:var(--ugw-grey)}
.ugw__uae:empty{display:none}
.ugw__uae b{color:var(--ugw-navy)}
.ugw__live{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);color:#fff;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:2px 9px 2px 7px;border-radius:999px;margin-right:6px;vertical-align:1px}
.ugw__live i{width:8px;height:8px;border-radius:50%;background:#3DDC84;box-shadow:0 0 0 0 rgba(61,220,132,.7);animation:ugwLive 1.8s infinite}
@keyframes ugwLive{0%{box-shadow:0 0 0 0 rgba(61,220,132,.7)}70%{box-shadow:0 0 0 8px rgba(61,220,132,0)}100%{box-shadow:0 0 0 0 rgba(61,220,132,0)}}
.ugw__advice{margin-top:16px;background:linear-gradient(135deg,#FFF8EA 0%,#FFF1D2 100%);border:1px solid #F5DFAE;border-radius:12px;padding:14px 18px}
.ugw__advice:empty{display:none}
.ugw__adv-t{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ugw-grey);margin-bottom:6px}
.ugw__advice ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 22px}
.ugw__advice li{position:relative;padding-left:18px;font-size:14.5px;line-height:1.5;margin:0}
.ugw__adv-dot{position:absolute;left:0;top:.45em;width:9px;height:9px;border-radius:50%}
.ugw.is-rendered .ugw__advice{animation:ugwUp .5s cubic-bezier(.2,.8,.2,1) both}
@media (max-width:700px){.ugw__advice ul{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.ugw__live i{animation:none!important}}
