/* ui.css (v1.8.3): Legacy UI (classic v1.7 look) vs Matrix UI. In Legacy mode cyber.css is not loaded at all
   (the inline script in <head> skips it), so styles.css / chat.css / games.css give the exact v1.7 look.
   This file only hides the Matrix-only markup in Legacy, and gives the post-v1.7 features (countdown bar, footer chips,
   Customize countdown section, UI switch) a classic Frutiger-Aero style. */

/* ---------- both modes ---------- */
.ui-l{display:none}
.sky{display:none}
.ui-foot{margin:.2rem 0 0}
.upd-ui{margin:.5rem 0 .2rem;text-align:center}
.ui-swap{position:fixed;left:0;top:0;right:0;bottom:0;z-index:2147483000;background:#020a05;opacity:0;pointer-events:none;animation:uiswap .18s ease-out forwards;text-align:center}
.ui-swap span{position:absolute;left:0;right:0;top:46%;font:800 22px/1.2 sans-serif;color:#39ff6a;letter-spacing:1px}
.ui-swap-legacy{background:#5ec8ff}
.ui-swap-legacy span{color:#fff;text-shadow:0 2px 0 #0753b8}
@keyframes uiswap{to{opacity:1}}

/* ---------- Legacy: show the classic bits, hide the Matrix-only furniture ---------- */
html.ui-legacy .ui-m{display:none!important}
html.ui-legacy .ui-l{display:inline}
html.ui-legacy .sky{display:block}
html.ui-legacy .bg,
html.ui-legacy .tear,
html.ui-legacy .boot,
html.ui-legacy .fx-flash,
html.ui-legacy .hud-top,
html.ui-legacy .hud-read,
html.ui-legacy .hero-tx,
html.ui-legacy .gslice,
html.ui-legacy .ticker,
html.ui-legacy .cat-ix,
html.ui-legacy .cat-line,
html.ui-legacy .cat-n,
html.ui-legacy .f-holo,
html.ui-legacy .zapb,
html.ui-legacy .a-unl,
html.ui-legacy .fx-bolt,
html.ui-legacy .fx-shock,
html.ui-legacy .t-best,
html.ui-legacy .pfp-scan,
html.ui-legacy .pfp-beam,
html.ui-legacy .rain-cv,
html.ui-legacy .lb-open-main .c-tx small,
html.ui-legacy [data-fx-toggle]{display:none!important}
html.ui-legacy .lb-open-main .c-tx,
html.ui-legacy .lb-open-main .c-tx b,
html.ui-legacy .lb-open-main .em{display:inline;font-weight:inherit}
html.ui-legacy .lb-open-main .em{margin-right:.3em}
/* v1.7 had the frosted-glass blur (v1.8 dropped it for speed) */
html.ui-legacy .glass{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.ui-legacy .mute{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.ui-legacy .cloud{filter:blur(1px)}

/* footer: the UI switch + haptics chip in the classic pill style */
html.ui-legacy .fx-foot{margin:.2rem 0 0}
html.ui-legacy .fx-chip{margin:.2rem .25rem}
html.ui-legacy .fx-chip b{font-weight:800}
html.ui-legacy .ui-chip{font-weight:800}

/* ---------- Legacy: drop countdown bar (countdown.js) ---------- */
html.ui-legacy .cd-bar{position:relative;display:block;width:100%;box-sizing:border-box;margin:.3rem auto .9rem;max-width:24rem;padding:.55rem .7rem .7rem;text-align:center;border-radius:1.4rem;background:#eaf7ff;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(225,245,255,.7));border:2px solid #fff;box-shadow:0 8px 24px rgba(3,60,130,.25),inset 0 1px 0 #fff;color:#0a4fa8;font-family:inherit;overflow:hidden}
html.ui-legacy .cd-bar:before,html.ui-legacy .cd-bar:after{display:none}
html.ui-legacy .cd-tag{display:inline-block;margin:0 0 .3rem;padding:.12rem .7rem;border-radius:999px;font-family:inherit;font-weight:800;font-size:.68rem;letter-spacing:.08em;color:#fff;background:linear-gradient(180deg,#5fc8ff,#0b7be0);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
html.ui-legacy .cd-lbl{margin:0 0 .35rem;font-family:inherit;font-weight:800;font-size:1.05rem;line-height:1.2;letter-spacing:0;color:#0a63d1;text-shadow:0 1px 0 #fff;overflow-wrap:break-word;word-wrap:break-word}
html.ui-legacy .cd-clock{white-space:nowrap;line-height:1;color:#fff}
html.ui-legacy .cd-seg{display:inline-block;vertical-align:top;min-width:3.1rem;padding:.35rem .2rem .3rem;border-radius:.9rem;background:#1c8bff;background:linear-gradient(180deg,#6fd0ff,#0b7be0);border:2px solid #fff;box-shadow:0 4px 10px rgba(3,60,130,.3),inset 0 1px 0 rgba(255,255,255,.7)}
html.ui-legacy .cd-seg b{display:block;font-family:inherit;font-weight:800;font-size:1.65rem;letter-spacing:0;color:#fff;text-shadow:0 2px 0 rgba(0,50,130,.35)}
html.ui-legacy .cd-seg i{display:block;margin-top:.15rem;font-style:normal;font-family:inherit;font-weight:700;font-size:.55rem;letter-spacing:.08em;color:#e4f5ff}
html.ui-legacy .cd-col{display:inline-block;vertical-align:top;width:.8rem;padding-top:.45rem;font-family:inherit;font-weight:800;font-size:1.4rem;color:#0b7be0;text-shadow:none;animation:none}
html.ui-legacy .cd-scan{display:none!important}
html.ui-legacy .cd-clock{animation:none!important}
html.ui-legacy .cd-final{border-color:#ffe14d;animation:lgcdpulse 1s ease-out infinite}
html.ui-legacy .cd-final .cd-seg{background:#ffb400;background:linear-gradient(180deg,#ffe14d,#ff9d00)}
html.ui-legacy .cd-final .cd-seg b{color:#fff;text-shadow:0 2px 0 rgba(150,70,0,.45)}
html.ui-legacy .cd-dropped{cursor:pointer;border-color:#8be04e}
html.ui-legacy .cd-drop{display:inline-block;padding:.25rem .1rem;font-family:inherit;font-weight:800;font-size:1.45rem;letter-spacing:0;color:#2f9e1f;text-shadow:0 1px 0 #fff;white-space:normal;animation:none}
html.ui-legacy .cd-drop small{display:block;margin-top:.3rem;font-family:inherit;font-weight:700;font-size:.8rem;letter-spacing:0;color:#0a63d1;text-shadow:none}
html.ui-legacy .cd-boom{animation:lgcdboom 1.2s ease-out 1}
html.ui-legacy .cd-burst{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none;z-index:2}
html.ui-legacy .cd-burst i{position:absolute;left:-.5rem;top:-.6rem;width:1rem;font-style:normal;text-align:center;font-family:inherit;font-weight:800;font-size:1rem;color:#ffb400;text-shadow:0 1px 0 #fff;transition:transform .9s ease-out,opacity .9s ease-in}
@keyframes lgcdpulse{0%{box-shadow:0 0 0 0 rgba(255,200,40,.7),0 8px 24px rgba(3,60,130,.25)}100%{box-shadow:0 0 0 14px rgba(255,200,40,0),0 8px 24px rgba(3,60,130,.25)}}
@keyframes lgcdboom{0%{transform:scale(1)}20%{transform:scale(1.06)}100%{transform:scale(1)}}
@media (max-width:380px){
  html.ui-legacy .cd-seg{min-width:2.75rem}
  html.ui-legacy .cd-seg b{font-size:1.45rem}
  html.ui-legacy .cd-col{width:.6rem;font-size:1.2rem}
  html.ui-legacy .cd-days .cd-seg{min-width:2.5rem}
  html.ui-legacy .cd-days .cd-seg b{font-size:1.3rem}
}
@media (orientation:landscape) and (max-height:540px){
  html.ui-legacy .cd-bar{margin:.2rem auto .5rem;padding:.35rem .7rem .45rem}
  html.ui-legacy .cd-tag{display:none}
  html.ui-legacy .cd-lbl{display:inline-block;vertical-align:middle;margin:0 .7rem 0 0;max-width:40%;text-align:right}
  html.ui-legacy .cd-clock{display:inline-block;vertical-align:middle}
  html.ui-legacy .cd-seg{min-width:2.7rem;padding:.2rem .2rem}
  html.ui-legacy .cd-seg b{font-size:1.35rem}
  html.ui-legacy .cd-col{padding-top:.25rem;font-size:1.15rem}
}
html.ui-legacy.lite .cd-final{animation:none}

/* ---------- Legacy: Customize countdown section (admin) ---------- */
html.ui-legacy .cz-cd{margin-top:.9rem;padding:.65rem .7rem .8rem;border-radius:1rem;border:2px solid #cfe9ff;background:#f3faff}
html.ui-legacy .cz-cd .cz-lbl{margin-top:0}
html.ui-legacy .cz-cdl{display:block;margin:.6rem 0 .25rem;font-weight:800;font-size:.85rem;color:#0a4fa8}
html.ui-legacy .cz-cdl small{font-weight:600;color:#5b7fa8}
html.ui-legacy .cz-cdat{min-height:2.5rem}
html.ui-legacy .cz-cdq{margin:.5rem -.2rem 0}
html.ui-legacy .cz-q{display:inline-block;min-width:4.2rem;margin:.2rem;padding:.5rem .55rem;border-radius:999px;border:2px solid #fff;background:linear-gradient(180deg,#6fd0ff,#0b7be0);color:#fff;font-family:inherit;font-weight:800;font-size:.85rem;box-shadow:0 3px 8px rgba(3,60,130,.25);cursor:pointer}
html.ui-legacy .cz-q:active{background:#0753b8}
html.ui-legacy .cz-cdprev{margin:.6rem 0 0;padding:.45rem .6rem;border-radius:.7rem;border:2px dashed #b9dcff;font-weight:700;font-size:.85rem;line-height:1.35;color:#5b7fa8;overflow-wrap:break-word;word-wrap:break-word}
html.ui-legacy .cz-cdprev.on{color:#0a63d1;border-style:solid}

/* v3.2.2: way back to the Clean Look from Matrix / Legacy Aero */
.look-pill{position:fixed;left:12px;bottom:14px;left:-webkit-calc(env(safe-area-inset-left) + 12px);left:calc(env(safe-area-inset-left) + 12px);bottom:-webkit-calc(env(safe-area-inset-bottom) + 14px);bottom:calc(env(safe-area-inset-bottom) + 14px);z-index:58;margin:0;padding:0 14px;height:40px;min-width:44px;border-radius:20px;border:1px solid rgba(196,181,253,.85);background:#12101c;background:rgba(18,16,28,.92);color:#fff;font:700 14px/38px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;letter-spacing:0;text-transform:none;text-shadow:none;box-shadow:0 4px 14px rgba(0,0,0,.45);cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-clip-path:none;clip-path:none;white-space:nowrap;opacity:.95}
.look-pill:hover,.look-pill:focus{opacity:1;background:#2a1f4d}
.look-pill:focus{outline:3px solid #fff;outline-offset:2px}
html.clean .look-pill,html.clean .look-clean-chip,html.game-on .look-pill,html.lb-on .look-pill{display:none}
html.watch .look-pill{left:4px;bottom:4px;height:30px;padding:0 8px;font-size:12px;line-height:28px;border-radius:15px}
html.watch .look-pill .lp-tx{display:none}
html.watch .look-pill:after{content:'Clean'}
html.ui-legacy .look-pill{border-color:#0b7be0;background:#fff;color:#0b4f96}
html.ui-legacy .look-pill:hover,html.ui-legacy .look-pill:focus{background:#e6f1ff}
html.ui-legacy .look-pill:focus{outline-color:#0b7be0}
.ui-foot .look-clean-chip{margin-left:6px}
