/* XAUUSD Global Community — lighter effects (audit, 3 Nov 2026). Loaded last, so it wins over the older files.
   Same look (dark Command Centre, gold), but nothing that makes the phone repaint every frame or moves things under a finger:
   - no backdrop-filter blur anywhere (solid tints instead)
   - no 1.25 s 3D "unfold" of the whole app, no staggered slide-in of tiles: content appears at once (a 150 ms fade at most)
   - the logo glow is still, not a filter animation that repaints the header 60 times a second */

/* 1. backdrop blur off everywhere; the panels keep their tint, darkened a little where text sits on top */
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.top { background: rgba(4,8,19,.97); }
.modal-bg { background: rgba(1,1,2,.74); }
.scrim { background: rgba(1,1,2,.6); }
.d-a { --cc-glass: rgba(8,21,51, .9); }
.mkp .dk { background: rgba(8,21,51,.9); }
.mkp-jump { background: rgba(4,8,19,.98); }
@media (max-width: 899px) { .tabbar { background: linear-gradient(180deg, #0b1b42, #061028); } }

/* 2. no entrance animations that move content under the pointer */
.app.unfold { animation: none !important; transform: none !important; opacity: 1 !important; }
@media (min-width: 900px) { .stage { perspective: none; } }
.tile, .door, .pcard, .ctx, .cb, .gw-in, .msg--in { animation: xgQuickIn .15s ease-out both !important; animation-delay: 0s !important; }
@keyframes xgQuickIn { from { opacity: 0; } to { opacity: 1; } }

/* 3. logo: a still glow instead of an animated drop-shadow filter */
.brandline img, .boot__mark img, .ucard > img, .onb__logo, .celebrate__logo { animation: none !important; will-change: auto; filter: drop-shadow(0 0 5px rgba(242,193,78,.55)); }
.brandline::before { animation-duration: 9s; }

/* 4. toasts never block a tap, and sit above the phone tab bar */
.toast { pointer-events: none; }
@media (max-width: 899px) { .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* 5. chips inside a clickable thread row stay clickable (they sit above the row's stretched title link) */
.fx-row .fx-space, .fx-row .fx-tag a, .fx-row a:not(.fx-row__title), .fx-row button { position: relative; z-index: 2; }

/* 6. badge celebration: a small card in the corner, never a full-screen layer that catches taps */
.xg-bdpop { position: fixed; inset: auto 16px 16px auto; z-index: 95; display: block; padding: 0; background: none !important; width: min(340px, calc(100vw - 32px)); pointer-events: none; animation: none; }
.xg-bdpop.is-ready { pointer-events: auto; }
.xg-bdpop .xg-bdpop__card { width: 100%; padding: 16px 16px 14px; border-radius: 18px; text-align: left; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-items: center; animation: xgQuickIn .2s ease-out both; }
.xg-bdpop .xg-bdpop__burst { display: none; }
.xg-bdpop .xg-bdpop__ic { width: 52px; height: 52px; margin: 0; font-size: 26px; grid-row: span 3; animation: none; }
.xg-bdpop h2 { margin: 2px 0; font-size: 1.05rem; }
.xg-bdpop p { margin: 0 0 10px; font-size: .84rem; }
.xg-bdpop .xg-bdpop__a { grid-column: 1 / -1; justify-content: flex-start; }
.xg-bdpop .xg-bdpop__a .btn { min-height: 44px; }
@media (max-width: 899px) { .xg-bdpop { inset: auto 12px calc(96px + env(safe-area-inset-bottom)) 12px; width: auto; } }

/* 7. live chart page: the chart fills the whole box, as tall as the screen allows (min 420 px) */
.lc-box { flex: 1 1 auto; min-height: 420px; height: calc(100dvh - 250px); }
.lc-box > .tv, .lc-box .tradingview-widget-container { height: 100%; width: 100%; }
.lc-box iframe { display: block; width: 100% !important; }
@media (max-width: 899px) { .lc-box { height: calc(100dvh - 270px); min-height: 360px; } }
.lc-bar .chip-t { min-height: 44px; min-width: 44px; }

/* 8. Today: hold the routine's space while it loads, so the cards below don't jump under a finger */
#tdSteps:has(> .hint:only-child) { min-height: 270px; }
@media (max-width: 640px) { #tdSteps:has(> .hint:only-child) { min-height: 520px; } }

/* 9. Compact desktop (4 Nov 2026): on screens 900 px and wider the whole app renders at 90 %, like browser zoom 90 % (owner: 80 % was too small).
   Phones (< 900 px) are untouched. CSS zoom does not shrink vh/dvh units, so every height tied to the screen
   is divided by the zoom (--xg-z) to keep filling the window. JS that mixes getBoundingClientRect() with
   CSS pixels uses window.xgZoom() from fit.js. */
@media (min-width: 900px) {
  html { --xg-z: .9; zoom: .9; }
  .shell { height: calc(100vh / var(--xg-z)); height: calc(100dvh / var(--xg-z)); }
  .gate::before { height: calc(90vh / var(--xg-z)); }
  .modal { max-height: calc(100dvh / var(--xg-z) - 36px); }
  .mlist, .hw-picks, .online-list, .eng-alist { max-height: calc(60vh / var(--xg-z)); }
  .dk-chart { height: min(calc(62vh / var(--xg-z)), 560px); }
  .lv-chart { height: min(calc(56vh / var(--xg-z)), 460px); }
  .pd-feed { max-height: min(calc(62vh / var(--xg-z)), 640px); }
  .sc-msgs, .eng-pin > .eng-cotd { max-height: calc(52vh / var(--xg-z)); }
  .lc-box { height: calc(100dvh / var(--xg-z) - 250px); }
  .mkp-s__b--chart .lc-box { height: min(calc(68vh / var(--xg-z)), 600px); }
  .xg-bdpop { width: min(340px, calc(100vw / var(--xg-z) - 32px)); }
  .toasts { width: min(calc(92vw / var(--xg-z)), 420px); }
}
