/* FC VEGA R10 HF10 — LIVE WIDGETS / PREMIER VISUAL POLISH
   Layered over the entire HF09 design; six distinct mini-apps, honest live status,
   a real inline vote, reduced-motion, mobile 3x2 and sticky compact states. */
.vega-hf08-tile.hf09-tile{
  --hf10-edge:rgba(255,255,255,.25);
  border-color:var(--hf10-edge)!important;
  box-shadow:0 14px 30px -16px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.33),inset 0 -22px 28px rgba(3,8,20,.16)!important;
  outline-offset:2px;will-change:transform;
}
.vega-hf08-tile.hf09-tile .hf09-kicker{font-weight:900;letter-spacing:.14em}
.vega-hf08-tile.hf09-tile .hf09-live{backdrop-filter:blur(12px);font-weight:850;letter-spacing:.04em}
.vega-hf08-tile.hf09-tile .hf09-copy .vega-hf08-title{font-weight:900;letter-spacing:-.026em}
.vega-hf08-tile.hf09-tile .hf09-foot{font-weight:800}
.vega-hf08-tile.hf09-tile .hf09-action{transition:transform .2s ease,background .2s ease}
.vega-hf08-tile.hf09-tile:hover .hf09-action{transform:translate(1px,-2px);background:rgba(255,255,255,.28)}
/* WEATHER: horizon, sun/moon, cloud banks, rain, snow, fog and storm classes
   controlled strictly by live WMO code. Offline card never displays fake degrees. */
.hf09-tile[data-hf08=weather]{--hf09-bg:linear-gradient(175deg,#286cc7 0%,#1b9bd4 48%,#035aaf 100%)}
.hf09-tile[data-hf08=weather] .hf09-ambient::before{width:200px;height:200px;right:-86px;top:-104px;background:radial-gradient(circle,rgba(255,228,135,.42),transparent 66%);border:0;box-shadow:none;animation:hf10-weather-glow 8s ease-in-out infinite alternate}
.hf09-tile[data-hf08=weather] .hf09-ambient::after{content:"";position:absolute;inset:auto -20px -30px -20px;height:68px;background:radial-gradient(ellipse at 25% 100%,rgba(242,252,255,.45),transparent 65%),linear-gradient(0deg,rgba(0,39,112,.3),transparent);border-radius:60% 50% 0 0}
.hf09-tile[data-hf08=weather] .hf09-visual{filter:drop-shadow(0 8px 7px rgba(2,35,95,.3));overflow:visible}
.hf09-tile[data-hf08=weather] .hf09-visual svg{width:110%;max-width:67px;animation:hf10-weather-bob 5.3s ease-in-out infinite}
.hf09-tile[data-hf08=weather][data-hf10-weather=night],.hf09-tile[data-hf08=weather][data-hf10-weather=night-cloud]{--hf09-bg:linear-gradient(150deg,#24396f,#20356c 48%,#060f38)}
.hf09-tile[data-hf08=weather][data-hf10-weather=rain]{--hf09-bg:linear-gradient(165deg,#278bb5,#21598a 55%,#283957)}
.hf09-tile[data-hf08=weather][data-hf10-weather=snow]{--hf09-bg:linear-gradient(155deg,#5a9db9,#3f73a9 58%,#285179)}
.hf09-tile[data-hf08=weather][data-hf10-weather=storm]{--hf09-bg:linear-gradient(155deg,#364979,#37385f 58%,#181b43)}
.hf09-tile[data-hf08=weather][data-hf10-weather=fog]{--hf09-bg:linear-gradient(155deg,#779bb7,#4d7293 60%,#304568)}
.hf09-tile[data-hf08=weather] .hf10-fall{animation:hf10-fall 1.3s ease-in infinite}
.hf09-tile[data-hf08=weather] .hf10-bolt{animation:hf10-flash 4.6s linear infinite}
/* PULSE: stadium telemetry with a geometric radar grid. */
.hf09-tile[data-hf08=pulse]{--hf09-bg:radial-gradient(circle at 30% 5%,rgba(75,255,202,.24),transparent 45%),linear-gradient(132deg,#0b5b63,#08364f 56%,#092b43)}
.hf09-tile[data-hf08=pulse] .hf09-ambient:after{content:"";position:absolute;inset:-20px 0 0;background:repeating-linear-gradient(0deg,transparent 0 18px,rgba(142,255,224,.075) 19px 20px),repeating-linear-gradient(90deg,transparent 0 23px,rgba(142,255,224,.075) 24px 25px);mask-image:linear-gradient(to right,transparent 8%,black 70%);transform:perspective(100px) rotateX(12deg)}
.hf09-tile[data-hf08=pulse] .hf09-visual:after{content:"";position:absolute;inset:14px;border-radius:50%;box-shadow:0 0 22px 2px rgba(93,255,192,.32);pointer-events:none}
/* CHALLENGE: high-energy stripes and daily completion state. */
.hf09-tile[data-hf08=challenge]{--hf09-bg:radial-gradient(circle at 10% -20%,rgba(255,230,105,.35),transparent 55%),linear-gradient(125deg,#ed7625,#e3415e 54%,#9b3187)}
.hf09-tile[data-hf08=challenge] .hf09-ambient:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,.055) 0 3px,transparent 4px 22px);mask-image:linear-gradient(90deg,transparent 4%,black 88%)}
.hf09-tile[data-hf08=challenge].hf10-challenge-done{--hf09-bg:radial-gradient(circle at 98% -12%,rgba(252,235,89,.38),transparent 60%),linear-gradient(127deg,#0d9f80,#2b8f85 50%,#28729b)}
.hf09-tile[data-hf08=challenge].hf10-challenge-done .hf09-visual svg{filter:drop-shadow(0 0 13px rgba(238,255,202,.6))}
/* HISTORY: warm trophy glow and embossed radial badge. */
.hf09-tile[data-hf08=history]{--hf09-bg:radial-gradient(ellipse at 26% 36%,rgba(255,213,107,.31),transparent 47%),linear-gradient(135deg,#774b78,#4a375f 57%,#282a4e)}
.hf09-tile[data-hf08=history] .hf09-ambient:after{content:"";position:absolute;width:98px;height:98px;left:4px;top:27px;border-radius:50%;border:1px dashed rgba(255,224,141,.29);box-shadow:0 0 0 10px rgba(255,212,118,.035),inset 0 0 30px rgba(255,197,91,.09)}
/* MEDIA: camera panel + stylized film perforations, not generic gradient. */
.hf09-tile[data-hf08=media]{--hf09-bg:radial-gradient(circle at 105% 95%,rgba(255,89,196,.42),transparent 62%),linear-gradient(135deg,#4f348f,#372d79 45%,#102c58)}
.hf09-tile[data-hf08=media] .hf09-ambient:after{content:"";position:absolute;right:8px;top:0;bottom:0;width:16px;background:repeating-linear-gradient(0deg,rgba(255,255,255,.16) 0 7px,transparent 8px 15px);mask-image:linear-gradient(0deg,transparent,black 30%,black 80%,transparent);opacity:.55}
.hf09-tile[data-hf08=media] .hf09-visual{box-shadow:0 0 16px rgba(239,133,255,.2)}
/* POLL: a genuine inline mini-application. Form controls are siblings,
   not illegal interactive descendants of another button. */
.vega-hf08-tile.hf09-tile.hf10-poll-surface{
  --hf09-bg:radial-gradient(ellipse at 100% -30%,rgba(77,241,227,.48),transparent 66%),linear-gradient(137deg,#b5339b,#8043aa 55%,#483e9a);
  grid-template-rows:17px minmax(0,1fr) 29px 19px!important;
  gap:2px!important;cursor:default!important;
}
.hf10-poll-surface .hf09-ambient:after{content:"";position:absolute;right:-8px;top:28px;width:80px;height:80px;border:1px solid rgba(255,255,255,.25);border-radius:26px;transform:rotate(-19deg)}
.hf10-poll-surface .hf09-body{align-items:center!important;gap:5px}
.hf10-poll-surface .hf09-visual{flex:0 0 34px!important;width:34px!important;height:40px!important}
.hf10-poll-surface .hf09-copy{gap:2px!important}
.hf10-poll-surface .hf09-copy .vega-hf08-title{font-size:11px!important}
.hf10-poll-surface .hf09-copy .vega-hf08-value{font-size:9px!important;-webkit-line-clamp:2!important;line-clamp:2!important}
.hf10-poll-inline{position:relative;z-index:5;min-width:0;align-self:stretch;display:flex;align-items:center}
.hf10-poll-form{display:flex;align-items:center;width:100%;gap:4px;min-width:0}
.hf10-poll-form select{appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:26px;padding:0 15px 0 8px;border-radius:7px;border:1px solid rgba(255,255,255,.43);color:#fff;background:linear-gradient(45deg,rgba(255,255,255,.22),rgba(255,255,255,.08));font:750 9px/1.1 system-ui,Arial,sans-serif;outline-offset:2px;cursor:pointer}
.hf10-poll-form option{color:#17213e;background:#fff}
.hf10-poll-form select:focus-visible,.hf10-poll-form button:focus-visible,.hf10-poll-details:focus-visible,.hf10-poll-retry:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hf10-poll-form button{height:27px;width:31px;border:1px solid rgba(255,255,255,.43);border-radius:7px;background:linear-gradient(140deg,#caffef,#91f7e5);color:#214d65;font-weight:1000;font-size:15px;flex:none;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.hf10-poll-form button:hover{background:#fff}
.hf10-poll-form button:disabled{cursor:wait;opacity:.55}
.hf10-poll-message{display:block;width:100%;padding:5px 7px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);border-radius:6px;font:720 9px/1.2 system-ui,Arial,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hf10-poll-message.is-error{background:rgba(93,10,40,.75);white-space:normal}
.hf10-poll-retry{font-size:9px;border-radius:5px;background:#fff;color:#593578;padding:3px 5px;white-space:nowrap;cursor:pointer}
.hf10-poll-result{position:relative;display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;height:25px;padding:4px 6px;box-sizing:border-box;border:1px solid rgba(255,255,255,.29);border-radius:7px;background:rgba(255,255,255,.12);font:700 8px system-ui,Arial,sans-serif;overflow:hidden}
.hf10-poll-result-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.hf10-poll-result b{flex:none;font-size:10px;z-index:1}
.hf10-poll-result i{position:absolute;bottom:0;left:0;height:3px;width:var(--hf10-pct);background:#b5fff1;box-shadow:0 0 8px #c0ffe4}
.hf10-poll-surface .hf09-foot{border-top:0!important;padding:0!important;align-items:stretch!important}
.hf10-poll-details{width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;border:0;border-top:1px solid rgba(255,255,255,.2);color:#fff;padding:3px 0 0;cursor:pointer;letter-spacing:.07em;text-transform:uppercase;font:800 8px/1 system-ui,Arial,sans-serif}
.hf10-poll-details:hover{text-decoration:underline;text-underline-offset:2px}
.hf10-poll-details span{font-size:13px}
.hf10-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html.vega-hf09-scrolled .vega-hf08-tile.hf10-poll-surface{display:flex!important;align-items:center!important;justify-content:center!important}
html.vega-hf09-scrolled .hf10-poll-surface .hf09-body,html.vega-hf09-scrolled .hf10-poll-surface .hf10-poll-inline{display:none!important}
html.vega-hf09-scrolled .hf10-poll-surface .hf09-foot{display:flex!important;width:100%!important;border:0!important}
html.vega-hf09-scrolled .hf10-poll-surface .hf10-poll-details{border:0!important;padding:0!important;font-size:9px!important;white-space:nowrap}
/* When someone uses a keyboard inside the poll, keep it accessible while
   the sticky band collapses around it. */
html.vega-hf09-scrolled .hf10-poll-surface:has(.hf10-poll-form:focus-within){height:138px!important;min-height:138px!important;display:grid!important;grid-template-rows:17px minmax(0,1fr) 29px 19px!important;align-items:stretch!important;z-index:25}
html.vega-hf09-scrolled .hf10-poll-surface:has(.hf10-poll-form:focus-within) .hf09-body{display:flex!important}
html.vega-hf09-scrolled .hf10-poll-surface:has(.hf10-poll-form:focus-within) .hf10-poll-inline{display:flex!important}
@keyframes hf10-weather-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes hf10-weather-glow{from{opacity:.55;transform:scale(.92)}to{opacity:.85;transform:scale(1.15)}}
@keyframes hf10-fall{0%{transform:translate(0,-3px);opacity:.6}100%{transform:translate(-3px,7px);opacity:1}}
@keyframes hf10-flash{0%,87%,92%,100%{opacity:.9}89%,94%{opacity:.08}}
@media(min-width:1200px){.hf09-tile.hf10-poll-surface .hf09-visual{flex-basis:39px!important;width:39px!important}}
@media(max-width:1199px) and (min-width:831px){
 .hf09-tile.hf10-poll-surface .hf09-visual{flex-basis:24px!important;width:24px!important;height:37px!important}
 .hf10-poll-surface .hf09-copy .vega-hf08-title{font-size:10px!important}
 .hf10-poll-form select{font-size:8px}
}
@media(max-width:830px){
 .vega-hf08-tile.hf09-tile.hf10-poll-surface{grid-template-rows:11px minmax(0,1fr) 22px 11px!important;gap:1px!important}
 .hf10-poll-surface .hf09-head .hf09-live{font-size:5.5px;padding:1px 2px}
 .hf10-poll-surface .hf09-visual{display:none!important}
 .hf10-poll-surface .hf09-body{align-items:center!important}
 .hf10-poll-surface .hf09-copy .vega-hf08-title{font-size:9px!important}
 .hf10-poll-surface .hf09-copy .vega-hf08-value{font-size:7.5px!important;-webkit-line-clamp:1!important;line-clamp:1!important}
 .hf10-poll-form{gap:2px!important}
 .hf10-poll-form select{height:21px;border-radius:5px;padding:0 4px;font-size:7px}
 .hf10-poll-form button{height:21px;width:21px;border-radius:5px;font-size:11px}
 .hf10-poll-details{font-size:6px!important;padding-top:1px}
 .hf10-poll-details span{font-size:10px}
 .hf10-poll-message{font-size:7px;padding:3px 4px;line-height:1.05}
 .hf10-poll-result{height:20px;padding:2px 3px;font-size:7px}
 .hf10-poll-result b{font-size:8px}
 html.vega-hf09-scrolled .hf10-poll-surface .hf10-poll-details{font-size:8px!important}
 html.vega-hf09-scrolled .hf10-poll-surface:has(.hf10-poll-form:focus-within){height:82px!important;min-height:82px!important;grid-template-rows:11px minmax(0,1fr) 22px 11px!important}
}
@media(max-width:370px){.hf10-poll-surface .hf09-live{display:none!important}.hf10-poll-form select{max-width:100%;font-size:6.5px}}
@media(prefers-reduced-motion:reduce){
 .hf09-tile[data-hf08=weather] .hf09-visual svg,
 .hf09-tile[data-hf08=weather] .hf09-ambient::before,
 .hf09-tile[data-hf08=weather] .hf10-fall,
 .hf09-tile[data-hf08=weather] .hf10-bolt{animation:none!important}
 .vega-hf08-tile.hf09-tile{will-change:auto!important}
}
