/* AM Builder demo FX layer.
   Loaded after each demo's own <style>, so it restyles the existing markup into a
   dark "command centre" look without touching the demo's data or logic.
   Colours come from the demo's own --accent plus a second neon (--fx-b) per demo. */

html.fx { --fx-a: var(--accent); --fx-b: #2fe6ff; --fx-bg: #05060a; background: var(--fx-bg); }
html.fx[data-fx="coach"] { --fx-b: #ffc24d; --fx-bg: #070504; }
html.fx[data-fx="dj"] { --fx-b: #2fe6ff; --fx-bg: #05040b; }
html.fx[data-fx="club"] { --fx-b: #33e6ff; --fx-bg: #030807; }
html.fx body { background: transparent !important; }
html.fx body::before { background: rgba(5,6,10,.9) !important; }

/* ---------- backdrop: aurora + grid + particle canvas + scanlines ---------- */
.fx-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(55% 45% at 12% -5%, color-mix(in srgb, var(--fx-a) 26%, transparent), transparent 70%),
    radial-gradient(45% 40% at 95% 10%, color-mix(in srgb, var(--fx-b) 16%, transparent), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, color-mix(in srgb, var(--fx-a) 14%, transparent), transparent 70%),
    var(--fx-bg); }
.fx-sky::before { content: ""; position: absolute; inset: -50%; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; transform: perspective(700px) rotateX(58deg) translateY(10%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 60%); mask-image: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 60%); }
.fx-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-scan { position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45)); }

/* ---------- header ---------- */
html.fx header { background: rgba(6,7,11,.72) !important; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,.08) !important; }
html.fx header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--fx-a), var(--fx-b), var(--fx-a), transparent); background-size: 200% 100%;
  box-shadow: 0 0 18px var(--fx-a); animation: fx-sweep 5s linear infinite; }
html.fx header .lines { opacity: .35; }
html.fx .brand .t1 { text-shadow: 0 0 22px color-mix(in srgb, var(--fx-a) 55%, transparent); }
html.fx .sample { background: rgba(255,255,255,.06); color: #fff; border: 1px solid color-mix(in srgb, var(--fx-b) 50%, transparent); box-shadow: 0 0 16px -4px var(--fx-b); }
html.fx nav.tabs a { color: rgba(255,255,255,.66); }
html.fx nav.tabs a:hover { color: #fff; background: rgba(255,255,255,.07); }
html.fx nav.tabs a[aria-current="page"] { color: #05060a; background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); box-shadow: 0 0 20px -3px var(--fx-a); }
html.fx .badge { box-shadow: 0 0 10px var(--fx-a); }

/* ---------- headings ---------- */
html.fx main h1 { background: linear-gradient(100deg, #fff 0%, #fff 38%, var(--fx-b) 48%, var(--fx-a) 54%, #fff 64%, #fff 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shine 7s ease-in-out infinite; }
html.fx main h1 a { -webkit-text-fill-color: initial; }
html.fx :is(.card > h2, .panel-h h2)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 10px; vertical-align: middle; flex: none; align-self: center;
  background: var(--fx-a); box-shadow: 0 0 10px var(--fx-a), 0 0 2px #fff inset; animation: fx-blink 2.4s ease-in-out infinite; }
html.fx .card > h2::before { margin-right: 0; }
html.fx .lede { color: rgba(255,255,255,.62); }

/* ---------- glass panels with a cursor spotlight ---------- */
html.fx :is(.card, .panel, .kpi) { position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)), rgba(9,11,17,.62) !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  box-shadow: 0 22px 44px -24px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  transition: transform .25s ease, box-shadow .25s ease; }
html.fx :is(.card, .panel, .kpi, .fx-viz, .fx-hud)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -60%), color-mix(in srgb, var(--fx-a) 11%, transparent), transparent 45%); }
html.fx :is(.card, .panel, .kpi, .fx-viz, .fx-hud)::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -60%), var(--fx-a), color-mix(in srgb, var(--fx-b) 50%, transparent) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s; }
html.fx :is(.card, .panel, .kpi, .fx-viz, .fx-hud):hover::after { opacity: 1; }
html.fx .card.soon { background: rgba(255,255,255,.015) !important; border-style: dashed !important; }

/* KPIs */
html.fx .kpi { transform-style: preserve-3d; will-change: transform; }
html.fx .kpi .k { color: rgba(255,255,255,.55); }
html.fx .kpi:not(.attn):not(.good) .v { background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--fx-b) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--fx-a) 45%, transparent)); }
html.fx .kpi.good .v, html.fx .kpi.attn .v { text-shadow: 0 0 18px currentColor; }
html.fx .kpi.hot, html.fx .kpi.attn { border-color: color-mix(in srgb, var(--fx-a) 55%, transparent) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fx-a) 25%, transparent), 0 0 36px -10px var(--fx-a), inset 0 1px 0 rgba(255,255,255,.08); }
html.fx .kpi.hot::before, html.fx .kpi.attn::before { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--fx-a) 22%, transparent), transparent 60%); }
html.fx .kpi .v .fx-tick { display: inline-block; }

/* nested surfaces */
html.fx :is(.col, .day, .todo .item, .flow button, .lead, .post, .funnel div, .case select, .search, .chip, .hbar .track, .track, .meter) { border-color: rgba(255,255,255,.08) !important; }
html.fx :is(.col, .day, .todo .item, .flow button) { background: rgba(255,255,255,.03) !important; }
html.fx :is(.lead, .post) { background: rgba(0,0,0,.28) !important; }
html.fx .flow button { transition: transform .2s, box-shadow .2s, border-color .2s; }
html.fx .flow button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fx-a) 45%, transparent) !important; }
html.fx .flow button[aria-pressed="true"] { border-color: var(--fx-a) !important; background: color-mix(in srgb, var(--fx-a) 12%, transparent) !important; box-shadow: 0 0 24px -8px var(--fx-a); }
html.fx .funnel div { background: linear-gradient(90deg, color-mix(in srgb, var(--fx-a) 18%, transparent), rgba(255,255,255,.02)) !important; }
html.fx .msg { border-color: rgba(255,255,255,.1); box-shadow: 0 0 30px -14px var(--fx-a); }
html.fx .msg .mh { background: linear-gradient(90deg, color-mix(in srgb, var(--fx-a) 30%, #0b0c12), #0b0c12); }
html.fx .msg .mb { background: rgba(0,0,0,.35); }
html.fx .sms { background: linear-gradient(135deg, color-mix(in srgb, var(--fx-a) 22%, #10121a), #10121a) !important; border: 1px solid color-mix(in srgb, var(--fx-a) 35%, transparent); box-shadow: 0 0 26px -10px var(--fx-a); }
html.fx :is(.countdown, .live) { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--fx-a) 40%, transparent);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--fx-a) 30%, transparent), transparent 55%), radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--fx-b) 22%, transparent), transparent 55%), #07080d !important;
  box-shadow: 0 0 50px -16px var(--fx-a); }
html.fx .countdown .big, html.fx .live .tips b { text-shadow: 0 0 26px currentColor; }

/* buttons */
html.fx .btn:not(.ghost) { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); color: #05060a; box-shadow: 0 0 22px -6px var(--fx-a); transition: transform .15s, box-shadow .2s, filter .2s; }
html.fx .btn:not(.ghost):hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 0 30px -4px var(--fx-a); }
html.fx .btn.ghost { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }

/* tags & pills */
html.fx :is(.tag.c, .tag.g, .pill.good, .pill.info, .pill.warn) { box-shadow: 0 0 14px -5px currentColor; }
html.fx .tag.c, html.fx .pill.info { color: var(--fx-a); }
html.fx .dot { box-shadow: 0 0 12px -2px currentColor; }

/* bars and meters */
html.fx :is(.hbar .fill, .fillbar, .meter div) { position: relative; overflow: hidden; transform-origin: left center;
  background: linear-gradient(90deg, var(--fx-a), var(--fx-b)) !important; box-shadow: 0 0 16px -2px color-mix(in srgb, var(--fx-a) 70%, transparent);
  animation: fx-growx 1.2s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
html.fx:not([data-fx="club"]) .bars > div { position: relative; overflow: hidden; transform-origin: bottom center; opacity: 1 !important;
  background: linear-gradient(0deg, color-mix(in srgb, var(--fx-a) 70%, transparent), var(--fx-b)) !important; box-shadow: 0 0 18px -4px var(--fx-a);
  animation: fx-growy 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
html.fx :is(.hbar .fill, .fillbar, .meter div, .bars > div)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%); animation: fx-shimmer 3.2s ease-in-out infinite; animation-delay: calc(1.2s + var(--i, 0) * 180ms); }
html.fx[data-fx="club"] .bars > .bar-row::after { content: none; }
html.fx .hbar .track, html.fx .track, html.fx .meter { background: rgba(255,255,255,.05) !important; }

/* tables */
html.fx th { color: color-mix(in srgb, var(--fx-b) 60%, #fff); background: transparent !important; }
html.fx td { border-color: rgba(255,255,255,.06) !important; }
html.fx tbody tr { transition: background .2s; }
html.fx tbody tr:hover td { background: color-mix(in srgb, var(--fx-a) 7%, transparent) !important; }
html.fx pre.csv { background: rgba(0,0,0,.4) !important; color: color-mix(in srgb, var(--fx-b) 55%, #fff) !important; }
html.fx .mail.flash { background: color-mix(in srgb, var(--fx-a) 18%, transparent) !important; box-shadow: inset 3px 0 0 var(--fx-a); }

/* club toast -> glass */
html.fx .toast { background: rgba(10,12,18,.85) !important; color: #fff !important; border: 1px solid color-mix(in srgb, var(--fx-a) 50%, transparent); box-shadow: 0 0 30px -8px var(--fx-a); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

html.fx footer { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.45); }

/* ---------- entrance animations ---------- */
html.fx .view > *, html.fx[data-fx="club"] main > section:not([hidden]) > * { animation: fx-rise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
html.fx:not([data-fx="club"]) :is(.feed, .checks, .timeline, .runsheet, .todo, .kpis, .mini, .funnel, .pipe, .week, .flow, .hbars) > * { animation: fx-rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i, 0) * 55ms); }
html.fx :is(.feed, .checks) > * { animation-name: fx-slide; }

/* ---------- ticker ---------- */
.fx-ticker { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.35);
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fx-ticker .fx-track { display: flex; width: max-content; gap: 0; padding: 9px 0; animation: fx-marquee 60s linear infinite; }
.fx-ticker span { padding: 0 22px; white-space: nowrap; }
.fx-ticker span b { color: var(--fx-b); font-weight: 600; }
.fx-ticker span::before { content: "\25C6"; color: var(--fx-a); margin-right: 22px; text-shadow: 0 0 8px var(--fx-a); }

/* ---------- hero: live visual + HUD ---------- */
.fx-hero { padding-top: 22px; }
.fx-hero[hidden] { display: none; }
.fx-stage { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 16px; }
.fx-viz, .fx-hud { min-width: 0; position: relative; isolation: isolate; border-radius: 16px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)), rgba(6,8,13,.72);
  box-shadow: 0 30px 60px -30px #000, 0 0 60px -30px var(--fx-a), inset 0 1px 0 rgba(255,255,255,.06); }
.fx-viz { height: 430px; overflow: hidden; }
.fx-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-over { position: absolute; left: 18px; right: 18px; top: 14px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
  font: 600 11px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); z-index: 2; }
.fx-over.fx-bot { top: auto; bottom: 14px; color: rgba(255,255,255,.55); }
.fx-over #fx-cap { color: #fff; text-shadow: 0 0 12px var(--fx-a); transition: opacity .3s; }
.fx-live { display: inline-flex; gap: 7px; align-items: center; color: #fff; }
.fx-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: fx-pulse 1.4s ease-in-out infinite; }
.fx-c { position: absolute; width: 18px; height: 18px; border: 2px solid var(--fx-b); z-index: 2; opacity: .8; filter: drop-shadow(0 0 6px var(--fx-b)); pointer-events: none; }
.fx-c.tl { left: 8px; top: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.fx-c.tr { right: 8px; top: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.fx-c.bl { left: 8px; bottom: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.fx-c.br { right: 8px; bottom: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.fx-viz .fx-sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--fx-b) 9%, transparent) 50%, transparent); height: 30%; animation: fx-scanline 5s linear infinite; }

.fx-hud { display: flex; flex-direction: column; padding: 16px; gap: 14px; min-height: 430px; }
.fx-hud-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fx-hud-h b { font-family: var(--f-display); font-size: 21px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; display: block; color: #fff; }
.fx-hud-h small { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-b); margin-top: 4px; }
.fx-ring { width: 46px; height: 46px; flex: none; }
.fx-ring circle { fill: none; stroke-width: 4; }
.fx-ring .bg { stroke: rgba(255,255,255,.08); }
.fx-ring .fg { stroke: url(#fx-grad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; filter: drop-shadow(0 0 4px var(--fx-a)); animation: fx-spin 6s linear infinite; }
.fx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-stat { border-radius: 11px; padding: 10px 11px 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); min-width: 0; }
.fx-stat .k { font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-stat .v { font-family: var(--f-display); font-size: 27px; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px color-mix(in srgb, var(--fx-a) 60%, transparent); transition: color .3s; }
.fx-stat .v.up { color: var(--fx-b); }
.fx-stat svg { display: block; width: 100%; height: 24px; margin-top: 2px; overflow: visible; }
.fx-stat svg polyline { fill: none; stroke: var(--fx-b); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px var(--fx-b)); }
.fx-stat svg polygon { fill: color-mix(in srgb, var(--fx-b) 14%, transparent); }
.fx-log { flex: 1; min-height: 120px; border-radius: 11px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06); padding: 10px 12px; overflow: hidden; position: relative;
  font: 12px/1.65 var(--f-mono); color: rgba(255,255,255,.78);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); display: flex; flex-direction: column; justify-content: flex-end; }
.fx-log ol { list-style: none; margin: 0; padding: 0; }
.fx-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fx-rise .35s ease-out both; }
.fx-log time { color: rgba(255,255,255,.35); margin-right: 8px; }
.fx-log .ok { color: var(--fx-b); margin-right: 6px; }
.fx-log li:last-child::after { content: "\2588"; color: var(--fx-a); margin-left: 3px; animation: fx-blink 1s steps(1) infinite; }

/* ---------- live notifications ---------- */
.fx-notes { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; gap: 10px; width: min(330px, calc(100vw - 32px)); pointer-events: none; }
.fx-note { pointer-events: auto; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 13px;
  background: rgba(10,12,18,.82); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px -16px #000, 0 0 30px -12px var(--fx-a); color: #fff;
  animation: fx-in .5s cubic-bezier(.2,.9,.25,1.2) both; }
.fx-note.out { animation: fx-out .45s ease-in both; }
.fx-note .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); color: #05060a; box-shadow: 0 0 18px -4px var(--fx-a); }
.fx-note .t { font: 600 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-b); display: flex; justify-content: space-between; gap: 8px; }
.fx-note .t span { color: rgba(255,255,255,.4); letter-spacing: .04em; text-transform: none; }
.fx-note .m { font-size: 14px; line-height: 1.35; }

/* ---------- boot screen ---------- */
.fx-boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--fx-bg); cursor: pointer;
  background-image: radial-gradient(50% 40% at 50% 45%, color-mix(in srgb, var(--fx-a) 18%, transparent), transparent 70%); }
.fx-boot.done { animation: fx-fade .55s ease-in both; pointer-events: none; }
.fx-boot-in { width: min(440px, calc(100vw - 48px)); font: 13px/1.8 var(--f-mono); color: rgba(255,255,255,.75); }
.fx-boot h3 { margin: 0 0 4px; font: 800 clamp(34px, 7vw, 52px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: 0 0 28px var(--fx-a); animation: fx-glitch 1.6s steps(2) infinite; }
.fx-boot h3 span { color: var(--fx-a); }
.fx-boot .sub { color: var(--fx-b); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; margin-bottom: 18px; }
.fx-boot ol { list-style: none; padding: 0; margin: 0 0 16px; min-height: 96px; }
.fx-boot li { animation: fx-rise .25s ease-out both; }
.fx-boot li b { color: var(--fx-b); font-weight: 600; float: right; }
.fx-boot .bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.fx-boot .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fx-a), var(--fx-b)); box-shadow: 0 0 14px var(--fx-a); transition: width .3s ease; }

/* ---------- keyframes ---------- */
@keyframes fx-sweep { to { background-position: -200% 0; } }
@keyframes fx-shine { 0%, 15% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes fx-blink { 50% { opacity: .25; } }
@keyframes fx-pulse { 50% { transform: scale(.6); opacity: .5; } }
@keyframes fx-spin { to { transform: rotate(270deg); } }
@keyframes fx-growx { from { transform: scaleX(0); } }
@keyframes fx-growy { from { transform: scaleY(0); } }
@keyframes fx-shimmer { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fx-slide { from { opacity: 0; transform: translateX(-14px); } }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
@keyframes fx-scanline { from { transform: translateY(-100%); } to { transform: translateY(430%); } }
@keyframes fx-in { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes fx-out { to { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes fx-fade { to { opacity: 0; visibility: hidden; } }
@keyframes fx-glitch { 0%, 92% { transform: none; } 94% { transform: translate(2px, -1px) skewX(-6deg); text-shadow: -3px 0 var(--fx-a), 3px 0 var(--fx-b); } 97% { transform: translate(-2px, 1px); } }

@media (max-width: 860px) {
  .fx-stage { grid-template-columns: minmax(0, 1fr); }
  .fx-viz { height: 320px; }
  .fx-hud { min-height: 0; }
  .fx-log { min-height: 150px; }
}
@media (max-width: 480px) {
  .fx-viz { height: 270px; }
  .fx-over { font-size: 10px; letter-spacing: .1em; }
  .fx-stat .v { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html.fx *, html.fx *::before, html.fx *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Round 2: agents, ask bar, simulate-a-day, systems, dock, cursor,
   status strip, tab glitch and per-demo specials.
   ===================================================================== */
.fx-sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.fx-sec-h h2 { font-family: var(--f-display); font-size: 24px; text-transform: uppercase; margin: 0; color: #fff; }
.fx-sec-h h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 10px; vertical-align: middle; background: var(--fx-b); box-shadow: 0 0 10px var(--fx-b); }
.fx-sec-h small { font: 500 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-b); }
.fx-agents[hidden], .fx-systems[hidden] { display: none !important; }

/* agents */
.fx-agrid { position: relative; display: grid; gap: 16px 44px; grid-template-columns: 1fr .8fr 1fr; grid-template-areas: "a1 core a3" "a2 core a4"; }
.fx-agrid > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fx-agent { position: relative; z-index: 1; border-radius: 14px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), rgba(7,9,14,.86); box-shadow: 0 18px 40px -22px #000; min-width: 0; }
.fx-agent.hit { animation: fx-hit .7s ease-out; }
.fx-agent .top { display: flex; gap: 10px; align-items: center; }
.fx-agent .ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--fx-a) 18%, transparent); border: 1px solid color-mix(in srgb, var(--fx-a) 45%, transparent); }
.fx-agent .nm { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-transform: uppercase; line-height: 1.05; color: #fff; }
.fx-agent .rl { font-size: 12px; color: rgba(255,255,255,.5); }
.fx-agent .top > div { min-width: 0; padding-right: 74px; }
.fx-agent .st { position: absolute; top: 13px; right: 13px; display: inline-flex; gap: 6px; align-items: center; font: 600 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #3fe08a; white-space: nowrap; }
.fx-agent .st i { width: 7px; height: 7px; border-radius: 50%; background: #3fe08a; box-shadow: 0 0 8px #3fe08a; animation: fx-pulse 1.2s ease-in-out infinite; }
.fx-agent .task { display: flex; gap: 8px; align-items: center; margin: 10px 0 8px; padding: 7px 9px; border-radius: 8px; background: rgba(0,0,0,.4); font: 12px/1.4 var(--f-mono); color: rgba(255,255,255,.82); min-height: 32px; }
.fx-agent .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spin { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--fx-b); animation: fx-rot .8s linear infinite; display: inline-block; }
.fx-agent .ft { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.5); }
.fx-agent .ft b { color: #fff; font-family: var(--f-mono); }
.fx-agent .bars { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.fx-agent .bars i { width: 4px; background: var(--fx-b); border-radius: 1px; height: 30%; animation: fx-eqb 1s ease-in-out infinite alternate; box-shadow: 0 0 6px var(--fx-b); }
.fx-agent .bars i:nth-child(2) { animation-delay: -.2s; } .fx-agent .bars i:nth-child(3) { animation-delay: -.5s; } .fx-agent .bars i:nth-child(4) { animation-delay: -.7s; } .fx-agent .bars i:nth-child(5) { animation-delay: -.35s; }
.fx-core { display: grid; place-items: center; text-align: center; align-content: center; gap: 4px; padding: 20px 14px; border-color: color-mix(in srgb, var(--fx-a) 45%, transparent);
  box-shadow: 0 0 60px -20px var(--fx-a), 0 18px 40px -22px #000; background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--fx-a) 18%, transparent), transparent 70%), rgba(7,9,14,.9); }
.fx-core-ring { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 6px; }
.fx-core-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--fx-a); border-right-color: color-mix(in srgb, var(--fx-a) 40%, transparent); animation: fx-rot 3s linear infinite; filter: drop-shadow(0 0 6px var(--fx-a)); }
.fx-core-ring i:nth-child(2) { inset: 12px; border-top-color: var(--fx-b); border-right-color: transparent; border-left-color: color-mix(in srgb, var(--fx-b) 40%, transparent); animation-duration: 2.1s; animation-direction: reverse; filter: drop-shadow(0 0 6px var(--fx-b)); }
.fx-core-ring i:nth-child(3) { inset: 24px; border-top-color: #fff; animation-duration: 1.4s; opacity: .6; }
.fx-core-ring b { font: 800 22px/1 var(--f-display); color: #fff; text-shadow: 0 0 14px var(--fx-a); }
.fx-core .nm { font-size: 22px; }
.fx-core-n { margin-top: 10px; display: grid; gap: 2px; }
.fx-core-n span { font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.fx-core-n b { font: 800 34px/1 var(--f-display); color: #fff; text-shadow: 0 0 18px var(--fx-a); font-variant-numeric: tabular-nums; }

/* simulate a day */
.fx-simbtn, .fx-hud .fx-mic { font: 700 13px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--fx-a) 60%, transparent); color: #fff; cursor: pointer;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fx-a) 28%, transparent), color-mix(in srgb, var(--fx-b) 18%, transparent)); border-radius: 10px; padding: 11px 14px; display: flex; gap: 9px; align-items: center; justify-content: center;
  box-shadow: 0 0 24px -8px var(--fx-a); transition: transform .15s, box-shadow .2s; position: relative; overflow: hidden; }
.fx-simbtn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: translateX(-100%); animation: fx-shimmer 3s ease-in-out infinite; }
.fx-simbtn:hover:not(:disabled), .fx-hud .fx-mic:hover { transform: translateY(-1px); box-shadow: 0 0 34px -6px var(--fx-a); }
.fx-simbtn:disabled { cursor: progress; opacity: .85; }
.fx-simbtn span:first-child { color: var(--fx-b); }
.fx-hud .fx-mic { margin-top: -6px; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: 600; }
.fx-mic.on { border-color: #ff3b5c !important; box-shadow: 0 0 22px -6px #ff3b5c !important; }
.fx-sim { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; background: radial-gradient(60% 50% at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,.15)); pointer-events: none; }
.fx-sim[hidden] { display: none; }
.fx-sim .lbl { font: 600 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fx-b); }
.fx-sim .clk { font: 800 clamp(56px, 10vw, 96px)/1 var(--f-display); color: #fff; text-shadow: 0 0 30px var(--fx-a), 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.fx-sim .bar { width: min(320px, 70vw); height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.fx-sim .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fx-a), var(--fx-b)); box-shadow: 0 0 12px var(--fx-a); }
.fx-sim .tal { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; margin-top: 8px; max-width: 90%; }
.fx-sim .tal span { display: grid; font: 600 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.fx-sim .tal b { font: 800 26px/1.1 var(--f-display); color: #fff; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fx-sum, .fx-ask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(2,3,6,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.fx-sum.on, .fx-ask.on { opacity: 1; }
.fx-sum[hidden], .fx-ask[hidden] { display: none; }
.fx-sum-p, .fx-ask-p { width: min(560px, 100%); border-radius: 18px; padding: 22px; border: 1px solid color-mix(in srgb, var(--fx-a) 45%, transparent);
  background: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--fx-a) 20%, transparent), transparent 60%), rgba(8,10,16,.96); box-shadow: 0 40px 80px -30px #000, 0 0 80px -30px var(--fx-a); color: #fff;
  transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.2,.9,.25,1.2); }
.fx-sum.on .fx-sum-p, .fx-ask.on .fx-ask-p { transform: none; }
.fx-sum .tag { font: 600 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--fx-b); }
.fx-sum h3 { font: 800 34px/1.05 var(--f-display); text-transform: uppercase; margin: 6px 0 16px; }
.fx-sum .g { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.fx-sum .g div { border-radius: 12px; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.fx-sum .g b { display: block; font: 800 32px/1.05 var(--f-display); text-shadow: 0 0 18px var(--fx-a); font-variant-numeric: tabular-nums; }
.fx-sum .g span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.fx-sum p { color: rgba(255,255,255,.75); margin: 16px 0; }

/* ask */
.fx-ask { place-items: start center; padding-top: min(14vh, 120px); }
.fx-ask-p { padding: 0; overflow: hidden; width: min(640px, 100%); }
.fx-ask-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin: 0; }
.fx-ask-in .spark { color: var(--fx-b); font-size: 20px; text-shadow: 0 0 12px var(--fx-b); animation: fx-blink 2s ease-in-out infinite; }
.fx-ask-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 500 18px/1.3 var(--f-body); }
.fx-ask-in input::placeholder { color: rgba(255,255,255,.4); }
html.fx kbd { font: 600 11px/1 var(--f-mono); padding: 4px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); }
.fx-ask-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; }
.fx-ask-chips button { font: 500 13px/1.2 var(--f-body); color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 7px 12px; cursor: pointer; }
.fx-ask-chips button:hover { border-color: var(--fx-a); color: #fff; box-shadow: 0 0 16px -6px var(--fx-a); }
.fx-ask-out { padding: 0 18px; max-height: 52vh; overflow: auto; }
.fx-ask-out:empty { display: none; }
.fx-ask-out .q { font-weight: 700; margin: 6px 0 10px; color: var(--fx-b); }
.fx-ask-out .steps { list-style: none; margin: 0 0 12px; padding: 0; font: 12.5px/1.8 var(--f-mono); color: rgba(255,255,255,.6); }
.fx-ask-out .steps li { display: flex; gap: 9px; align-items: center; animation: fx-rise .25s ease-out both; }
.fx-ask-out .steps i { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--fx-b); animation: fx-rot .7s linear infinite; font-style: normal; }
.fx-ask-out .steps li.ok i { border: 0; animation: none; width: 11px; height: auto; }
.fx-ask-out .steps li.ok i::before { content: "✓"; color: #3fe08a; }
.fx-ask-out .a { font-size: 16px; line-height: 1.55; color: #fff; }
.fx-ask-out .ch { margin: 14px 0 4px; display: grid; gap: 8px; }
.fx-ask-out .ch:empty { display: none; }
.fx-ask-out .ct { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.fx-ask-out .r { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; animation: fx-rise .4s ease-out both; animation-delay: calc(var(--i) * 80ms); }
.fx-ask-out .tr { height: 10px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.fx-ask-out .tr i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--fx-a), var(--fx-b)); box-shadow: 0 0 10px var(--fx-a); transform-origin: left; animation: fx-growx 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 80ms); }
.fx-ask-out .r b { font-family: var(--f-mono); font-size: 13px; }
.fx-ask-out .src { margin: 12px 0 4px; font: 11.5px/1.8 var(--f-mono); color: rgba(255,255,255,.45); }
.fx-ask-out .src span { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.fx-ask-ft { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font: 11px/1.3 var(--f-mono); color: rgba(255,255,255,.4); letter-spacing: .04em; }

/* dock */
.fx-dock { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 41; display: flex; gap: 8px; }
.fx-dock button { font: 700 14px/1 var(--f-body); color: #fff; cursor: pointer; border-radius: 99px; padding: 11px 15px; display: inline-flex; gap: 8px; align-items: center;
  background: rgba(10,12,18,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--fx-a) 50%, transparent); box-shadow: 0 10px 30px -10px #000, 0 0 26px -8px var(--fx-a); }
.fx-dock .ask span { color: var(--fx-b); text-shadow: 0 0 10px var(--fx-b); }
.fx-dock .snd { padding: 11px 12px; border-color: rgba(255,255,255,.14); box-shadow: 0 10px 30px -10px #000; }
@media (max-width: 640px) { .fx-dock kbd { display: none; } }

/* systems */
.fx-systems { padding-block: 26px 40px; }
.fx-sysgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.fx-sysmap { height: 440px; }
.fx-syslist table { min-width: 0; font-size: 14px; }
.fx-syslist td { padding: 9px 8px 9px 0; }
.fx-ok { display: inline-flex; gap: 6px; align-items: center; font: 600 11px/1 var(--f-mono); color: #3fe08a; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.fx-ok i { width: 7px; height: 7px; border-radius: 50%; background: #3fe08a; box-shadow: 0 0 8px #3fe08a; animation: fx-pulse 1.6s ease-in-out infinite; }
.fx-syslist .num { font-family: var(--f-mono); font-size: 13px; text-align: right; white-space: nowrap; }
.fx-sysrow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.fx-hours { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.fx-hours i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(0deg, color-mix(in srgb, var(--fx-a) 60%, transparent), var(--fx-b)); box-shadow: 0 0 12px -4px var(--fx-a); transform-origin: bottom; animation: fx-growy .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 30ms); }
.fx-hours-x { display: flex; justify-content: space-between; font: 11px/1 var(--f-mono); color: rgba(255,255,255,.4); margin-top: 6px; }
@media (max-width: 860px) { .fx-sysgrid, .fx-sysrow { grid-template-columns: 1fr; } .fx-sysmap { height: 340px; } }

/* cursor + status */
.fx-cursor { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
.fx-status { flex-basis: 100%; display: flex; gap: 6px 18px; flex-wrap: wrap; font: 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.42); padding: 8px 0 12px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 4px; }
.fx-status b { color: var(--fx-b); font-weight: 600; }
.fx-status .ok { color: #3fe08a; display: inline-flex; gap: 6px; align-items: center; }
.fx-status .ok i { width: 7px; height: 7px; border-radius: 50%; background: #3fe08a; box-shadow: 0 0 8px #3fe08a; animation: fx-pulse 1.6s infinite; }
html.fx footer { padding-bottom: 96px; }

/* tab glitch */
.fx-glitching { animation: fx-glitchin .42s steps(1) both !important; }
@keyframes fx-glitchin {
  0% { clip-path: inset(0 0 85% 0); transform: translateX(-14px); filter: hue-rotate(60deg) saturate(2); opacity: .6; }
  20% { clip-path: inset(40% 0 30% 0); transform: translateX(10px); }
  40% { clip-path: inset(10% 0 60% 0); transform: translateX(-6px); filter: hue-rotate(-40deg); }
  60% { clip-path: inset(0 0 20% 0); transform: translateX(4px); filter: none; opacity: 1; }
  80% { clip-path: inset(0); transform: translateX(-2px); }
  100% { clip-path: none; transform: none; }
}

/* coach: 3D book */
.fx-book { margin-left: auto; display: grid; justify-items: center; gap: 10px; perspective: 900px; padding: 4px 18px; }
.fx-book .b3 { position: relative; width: 104px; height: 148px; transform-style: preserve-3d; animation: fx-book 9s ease-in-out infinite; }
.fx-book .b3 > div { position: absolute; top: 0; left: 0; width: 104px; height: 148px; border-radius: 2px 6px 6px 2px; }
.fx-book .f { transform: translateZ(14px); padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 80% at 20% 10%, var(--fx-b), var(--fx-a) 45%, #2a0c03 100%); box-shadow: inset 4px 0 0 rgba(0,0,0,.3), 0 0 40px -6px var(--fx-a); color: #fff; }
.fx-book .f small { font: 700 8px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.fx-book .f b { font: 800 21px/.95 var(--f-display); text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.fx-book .f span { font: 600 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.fx-book .bk { transform: translateZ(-14px) rotateY(180deg); background: #2a0c03; }
.fx-book .b3 > .sp { width: 28px; left: -14px; transform: rotateY(-90deg); background: linear-gradient(90deg, #3a1206, var(--fx-a)); display: grid; place-items: center; }
.fx-book .sp span { writing-mode: vertical-rl; font: 800 10px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.fx-book .b3 > .pg { width: 100px; left: 2px; background: repeating-linear-gradient(90deg, #f3eadc 0 1px, #e5dac8 1px 2px); transform-origin: left center; }
.fx-book .p1 { transform: translateZ(10px); } .fx-book .p2 { transform: translateZ(2px); } .fx-book .p3 { transform: translateZ(-8px); }
.fx-book.flip .p1 { animation: fx-page .9s ease-in-out; } .fx-book.flip .p2 { animation: fx-page2 .9s .12s ease-in-out; } .fx-book.flip .p3 { animation: fx-page3 .9s .24s ease-in-out; }
.fx-book .cap { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-b); }
@keyframes fx-book { 0%, 100% { transform: rotateY(-28deg) rotateX(8deg); } 50% { transform: rotateY(-62deg) rotateX(4deg) translateY(-6px); } }
@keyframes fx-page { 50% { transform: translateZ(16px) rotateY(-150deg); } }
@keyframes fx-page2 { 50% { transform: translateZ(16px) rotateY(-140deg); } }
@keyframes fx-page3 { 50% { transform: translateZ(16px) rotateY(-130deg); } }

/* dj: heat map */
.fx-heat { margin-bottom: 16px; }
.fx-heat .hm { position: relative; height: 210px; border-radius: 10px; overflow: hidden; background: #06070c; border: 1px solid rgba(255,255,255,.06); }
.fx-heat canvas { width: 100%; height: 100%; display: block; }
.fx-heat .lg { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; align-items: center; font: 10px/1 var(--f-mono); color: rgba(255,255,255,.6); text-transform: uppercase; background: rgba(0,0,0,.55); padding: 5px 8px; border-radius: 6px; }
.fx-heat .lg i { width: 70px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #0a0b14, var(--fx-a), var(--fx-b), #fff); }
.fx-heat .row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.fx-heat .row2 b { color: #fff; }

/* club: scoreboard + team heat */
.fx-board { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: 10px; align-items: stretch; margin-bottom: 16px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #0b0f0d, #050706); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 0 0 4px rgba(0,0,0,.6), 0 0 50px -20px var(--fx-a); }
.fx-board .seg { display: grid; gap: 6px; justify-items: center; align-content: center; }
.fx-board .seg > span { font: 700 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: #f6d55c; }
.fx-board .vs { font: 800 20px/1 var(--f-display); color: rgba(255,255,255,.35); padding: 0 4px; }
.fx-board .fd { display: flex; gap: 3px; perspective: 400px; }
.fx-board .fd span { font: 800 clamp(22px, 3.2vw, 38px)/1 var(--f-mono); color: #fff; text-shadow: 0 0 12px var(--fx-a); min-width: .62em; text-align: center; }
.fx-board .fd span.d { background: linear-gradient(180deg, #1b211e 50%, #121714 50%); border-radius: 5px; padding: 6px 3px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05), 0 2px 0 #000; position: relative; }
.fx-board .fd span.d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.8); }
.fx-board .fd span.s { color: rgba(255,255,255,.7); padding: 6px 0; }
.fx-board .fd span.flip { animation: fx-flip .55s ease-out; }
@keyframes fx-flip { 0% { transform: rotateX(90deg); color: var(--fx-b); } 60% { transform: rotateX(-12deg); } 100% { transform: none; } }
@media (max-width: 640px) { .fx-board { grid-template-columns: 1fr 1fr; } .fx-board .vs { display: none; } .fx-board .seg:last-child { grid-column: 1 / -1; } }
.fx-teams { margin-top: 16px; }
.fx-teams table { min-width: 420px; }
.fx-teams th { text-align: center; }
.fx-teams tbody th { text-align: left; font: 700 17px/1 var(--f-display); color: #fff; border: 0; }
.fx-teams td { text-align: center; padding: 4px !important; border: 0 !important; }
.fx-teams td span { display: block; border-radius: 8px; padding: 9px 0; font: 600 13px/1 var(--f-mono); color: #fff;
  background: color-mix(in srgb, var(--fx-a) calc(var(--v) * 85%), #0b1310); box-shadow: 0 0 calc(var(--v) * 22px) -6px var(--fx-a); text-shadow: 0 1px 2px rgba(0,0,0,.6); }

@keyframes fx-rot { to { transform: rotate(360deg); } }
@keyframes fx-eqb { to { height: 100%; } }
@keyframes fx-hit { 0% { box-shadow: 0 0 0 1px var(--fx-a), 0 0 40px -6px var(--fx-a); border-color: var(--fx-a); } 100% { box-shadow: 0 18px 40px -22px #000; } }

@media (max-width: 860px) {
  .fx-agrid { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "a1 a2" "a3 a4"; gap: 12px; }
}
@media (max-width: 520px) {
  .fx-agrid { grid-template-columns: 1fr; grid-template-areas: "core" "a1" "a2" "a3" "a4"; }
  .fx-book { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.fx *, html.fx *::before, html.fx *::after { animation: none !important; transition: none !important; }
}
.fx-sum:not(.on), .fx-ask:not(.on) { pointer-events: none; }
