/* AtmPips live demos. Colours mirror the app: k_chart ChartColors defaults,
   Flutter Material accents used by the chart widgets, and lib/src/style.dart. */
.demo {
  --up: #03AD90; --dn: #D14B64; --ma5: #ECCA67; --ma10: #84DFD7; --ma20: #AE8AD9;
  --cbg: #17212F; --cbg2: #263238; --axis: #ABB8C1;
  --pnl: rgba(44,59,69,.7); --bg-line: rgba(96,125,139,.3);
  --green: #4CAF50; --red: #F44336; --teal: #64FFDA; --lblue: #40C4FF; --gacc: #69F0AE;
  --racc: #FF5252; --cyan: #18FFFF; --orange: #FFAB40; --pink: #FF4081;
  --grass: #7ED957; --borange: #FF914D; --entry: #42A5F5; --sl: #FF8A65; --pm: #80CBC4;
  position: relative; color: #fff; font: 10px/1.3 var(--sans); font-variant-numeric: tabular-nums;
  text-align: left; -webkit-user-select: none; user-select: none;
}
.demo *, .demo *::before, .demo *::after { box-sizing: border-box; }
.demo p { margin: 0; color: inherit; }
.demo .i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.demo-note { font: 9px/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-block { margin-top: 28px; }
.demo:not(.demo-ready) button { visibility: hidden; }

/* Phone frames: keep the old screenshot proportions so nothing shifts. */
.phone .demo { width: 100%; display: flex; flex-direction: column; background: #0D1117; overflow: hidden; }
.phone .dc { aspect-ratio: 600 / 1233; }
.phone .db { aspect-ratio: 600 / 1059; }
.dc-screen, .db-screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.dc-screen[data-market="cry"], [data-symbol] .dc-screen[data-market="fut"] { display: none; }
[data-symbol] .dc-screen[data-market="cry"] { display: flex; }

/* Pinned command dock (chart_floating_command_dock.dart) */
.dm-top { display: flex; align-items: center; gap: 6px; padding: 7px 8px 5px; background: var(--cbg); }
.dm-logo { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #7ED957; color: #111; font: italic 800 6.5px/18px Georgia, serif; text-align: center; flex: none; }
.dm-sym { font-weight: 700; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.dm-ic { display: flex; gap: 7px; margin-left: auto; align-items: center; font-size: 10px; }
.dm-ic .t { color: var(--teal); }
.dm-ic .b { color: var(--teal); border: 1px solid rgba(100,255,218,.45); background: rgba(100,255,218,.14); border-radius: 5px; padding: 2px; }
.dm-ic .p { color: var(--pink); }
.dm-chips { display: flex; gap: 4px; padding: 0 6px 6px; background: var(--cbg); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; white-space: nowrap; }
.dm-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border-radius: 7px; font-size: 7.5px; font-weight: 600; color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); flex: none; }
.dm-chip.on { color: var(--teal); background: rgba(100,255,218,.12); border-color: rgba(100,255,218,.4); }
.dm-chip .i { width: 10px; height: 10px; }
.dm-chip .f { color: rgba(255,255,255,.54); width: 8px; height: 8px; }

/* Chart (k_chart) */
.dc-chart { position: relative; flex: 1 1 auto; min-height: 150px; background: linear-gradient(180deg, var(--cbg), var(--cbg2)); }
.dc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dc-svg line, .dc-svg polyline { vector-effect: non-scaling-stroke; }
.dc-ov { position: absolute; inset: 0; font-size: 7px; color: var(--axis); pointer-events: none; }
.dc-ov > * { position: absolute; }
.dc-leg { left: 3px; top: 3px; white-space: nowrap; background: rgba(23,33,47,.6); padding: 1px 3px; border-radius: 2px; }
.dc-leg b { font-weight: 400; margin-right: 4px; }
.dc-leg i { font-style: normal; opacity: .65; }
.dc-mab { right: 3px; top: 3px; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 8px; padding: 2px 4px; border-radius: 3px; }
.dc-ax { right: 2px; transform: translateY(-110%); }
.dc-tag { right: 0; transform: translateY(-50%); color: #fff; font-weight: 700; padding: 1px 3px 1px 5px; border-radius: 2px 0 0 2px; clip-path: polygon(4px 0, 100% 0, 100% 100%, 4px 100%, 0 50%); }
.dc-vol { left: 3px; background: rgba(255,255,255,.1); padding: 1px 4px; border-radius: 3px; font-weight: 600; transform: translateY(2px); }
.dc-time { display: flex; justify-content: space-around; padding: 2px 30px 3px 0; font-size: 7px; color: var(--axis); background: var(--cbg2); white-space: nowrap; }

/* Auto panel (captured_widget_content.dart) */
.da-auto { margin: 4px 4px 3px; border-radius: 12px; border: 3px solid rgba(76,175,80,.68); background: linear-gradient(135deg, #1E2B34, #2C3B45); box-shadow: 0 0 9px 1px rgba(0,0,0,.45); padding: 3px 7px 6px; transition: border-color .6s; }
.da-hd { display: flex; align-items: center; gap: 8px; }
.da-hd strong { font-size: 10.5px; color: #fff; margin-right: auto; }
.da-hd .x { color: var(--racc); } .da-hd .s { color: var(--lblue); } .da-hd .h { color: rgba(255,255,255,.7); }
.da-row { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 8px; color: var(--lblue); white-space: nowrap; overflow: hidden; }
.da-row .i { width: 10px; height: 10px; }
.da-tf { border: 1px solid rgba(64,196,255,.4); background: rgba(64,196,255,.15); border-radius: 3px; padding: 0 4px; font-weight: 700; font-size: 7.5px; }
.da-chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(100,255,218,.5); background: rgba(100,255,218,.16); color: var(--teal); border-radius: 3px; padding: 0 4px; font-weight: 700; font-size: 7.5px; }
.da-chip.armed { border-color: rgba(255,171,64,.5); background: rgba(255,171,64,.16); color: var(--orange); }
.da-sub { padding-left: 14px; font-size: 7.5px; color: rgba(100,255,218,.9); margin-top: 1px; }
.da-bar { display: flex; height: 13px; margin-top: 4px; border-radius: 3px; background: rgba(0,0,0,.45); overflow: hidden; font-size: 8.5px; font-weight: 700; }
.da-bar span { display: flex; align-items: center; justify-content: center; min-width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.da-bar .l { background: rgba(76,175,80,.7); } .da-bar .r { background: rgba(244,67,54,.7); }

/* Account panel (account_mode_header + account_display_widget) */
.dc-acct { margin: 0 4px; padding: 5px 6px 4px; background: #1B2733; border: 1px solid rgba(96,125,139,.25); border-radius: 8px 8px 0 0; }
.dc-ah { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.dc-ah strong { font-size: 9.5px; }
.dc-sim { display: inline-flex; align-items: center; gap: 2px; color: var(--gacc); font-weight: 700; font-size: 9px; }
.dc-ah .r { margin-left: auto; display: flex; gap: 9px; color: var(--lblue); }
.dc-ah .r .x { color: var(--racc); }
.dm-tbl { background: var(--pnl); border: 1px solid var(--bg-line); border-radius: 3px; padding: 2px 6px; font-size: 8.5px; }
.dm-tbl > div { display: grid; grid-template-columns: 2fr 3fr; padding: 1.5px 0; }
.dm-tbl .hd { color: rgba(255,255,255,.7); font-weight: 700; border-bottom: 1px solid var(--bg-line); padding-bottom: 2px; margin-bottom: 1px; }
.dm-tbl b { font-weight: 700; }
.c-g { color: var(--gacc); } .c-r { color: var(--racc); } .c-c { color: var(--cyan); }
.dc-pos { margin: 0 4px; font-size: 7.5px; }
.dc-pos .hd, .dc-pos [data-r] > div { display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1.8fr 1fr; align-items: center; gap: 2px; padding: 3px 6px; border-bottom: 1px solid rgba(96,125,139,.2); white-space: nowrap; }
.dc-pos .hd { color: rgba(255,255,255,.7); font-weight: 700; background: var(--pnl); border: 1px solid var(--bg-line); }
.dc-pos b { font-weight: 700; }
.dc-pos .pg { color: var(--green); } .dc-pos .pr { color: var(--red); }
.dc-pos u { text-decoration: none; background: rgba(255,82,82,.5); border-radius: 3px; padding: 0 3px; text-align: center; font-size: 7px; }
.dc-sym { overflow: hidden; text-overflow: ellipsis; }
.phone .demo-note { padding: 4px 8px 6px; text-align: center; margin-top: auto; }

/* Bias demo (Auto widget expanded + AnalysisDetailsDialog) */
.db-vis { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.db-vis > div { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.db .da-auto { margin: 6px; flex: 1; display: flex; flex-direction: column; }
.db-body { position: relative; flex: 1; min-height: 112px; margin: 4px -4px 0; border-radius: 0 0 9px 9px; overflow: hidden; background: rgba(0,0,0,.26); }
.db-body svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.db-bot { position: absolute; left: 8px; right: 8px; bottom: 6px; }
.db-ind { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.db-circ { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(76,175,80,.8); box-shadow: 0 0 4px 1px rgba(0,0,0,.38); transition: background .3s; }
.db-circ .i { width: 15px; height: 15px; }
.db-circ .spin { display: none; width: 14px; height: 14px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: dmspin .8s linear infinite; }
.db.busy .db-circ { background: rgba(33,150,243,.8); }
.db.busy .db-circ .i { display: none; } .db.busy .db-circ .spin { display: block; }
.db-bl { font-size: 8px; color: rgba(255,255,255,.7); line-height: 1.2; }
.db-bl b { display: block; font-size: 10px; color: var(--green); }
.db.busy .db-bl b { color: #2196F3; }
.db .da-bar { height: 22px; font-size: 9.5px; }
.db-card { margin: 0 6px; padding: 8px 9px; border-radius: 10px; border: 1px solid #455A64; background: linear-gradient(135deg, #1E2B34, #2C3B45); font-size: 8.5px; color: rgba(255,255,255,.7); }
.db-card h4 { margin: 0 0 4px; font-size: 10.5px; color: #fff; }
.db-card .kv { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.db-card .kv b { color: rgba(255,255,255,.7); }
.db-reason { margin-top: 3px; color: rgba(255,255,255,.75); line-height: 1.4; }
.db-reason .u { color: transparent; }
.db.typing .db-reason .t::after { content: ""; display: inline-block; width: 1px; height: 9px; background: var(--lblue); margin-left: 1px; vertical-align: -1px; }
.db-act { display: flex; align-items: center; gap: 8px; padding: 6px 6px 0; }
.dm-btn { font: 700 10px/1 var(--sans); color: #fff; background: #40C4FF; border: 0; border-radius: 18px; padding: 8px 14px; cursor: pointer; }
.dm-btn:hover { filter: brightness(1.08); }
.dm-btn:focus-visible, .da-sw:focus-visible, .dm-run:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.dm-btn:disabled { background: #607D8B; cursor: default; }
.db-act .demo-note { padding: 0; text-align: left; margin: 0; }

/* Auto-trade flow (filter card, Auto-Trade Execution, order placed, Position Manager) */
.dt { background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; padding: 16px; font-size: 12px; }
.dt-g { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1.25fr; }
@media (max-width: 860px) { .dt-g { grid-template-columns: 1fr; } }
.dt-c { position: relative; border-radius: 10px; border: 1px solid #455A64; background: linear-gradient(135deg, #1E2B34, #2C3B45); padding: 12px; min-width: 0; }
.dt-c h4 { margin: 0 0 8px; font-size: 13px; color: #fff; display: flex; align-items: center; gap: 6px; }
.dt-step { font: 10px var(--mono); color: var(--sky); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.dt-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 11.5px; }
.dt-kv dt { color: rgba(255,255,255,.6); } .dt-kv dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.dt-ex { padding: 10px; border-radius: 8px; border: 1px solid #455A64; background: rgba(55,71,79,.3); transition: background .3s, border-color .3s; }
.dt.on .dt-ex { background: rgba(230,81,0,.2); border-color: rgba(255,171,64,.6); }
.dt-sr { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 12.5px; }
.dt-sr span { flex: 1; }
.da-sw { position: relative; width: 44px; height: 26px; border-radius: 13px; border: 2px solid #8FA1B3; background: #2A3947; cursor: pointer; flex: none; padding: 0; transition: background .2s, border-color .2s; }
.da-sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: #8FA1B3; transition: transform .2s, background .2s, width .2s, height .2s, top .2s; }
.da-sw[aria-checked="true"] { background: rgba(255,171,64,.5); border-color: var(--orange); }
.da-sw[aria-checked="true"]::after { transform: translateX(16px); top: 2px; width: 18px; height: 18px; background: var(--orange); }
.dt-info { display: flex; gap: 6px; margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.6); }
.dt-info .i { width: 14px; height: 14px; margin-top: 1px; }
.dt.on .dt-info { color: var(--orange); }
.dt-arm { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.6); }
.dt .da-chip { font-size: 10px; padding: 1px 6px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.dt .da-chip.armed { color: var(--orange); background: rgba(255,171,64,.16); border-color: rgba(255,171,64,.5); }
.dt-res { min-height: 250px; display: flex; flex-direction: column; }
.dt-idle { color: rgba(255,255,255,.6); font-size: 12px; margin: auto 0; text-align: center; }
.dt-pm { display: none; flex-direction: column; gap: 8px; }
.dt.on .dt-pm { display: flex; } .dt.on .dt-idle { display: none; }
.dt-prow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; font-size: 11px; padding: 6px 8px; background: var(--pnl); border: 1px solid var(--bg-line); border-radius: 4px; }
.dt-prow b { color: var(--green); }
.dt-st { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--lblue); min-height: 22px; }
.dt-st .i { width: 14px; height: 14px; }
.dt-st .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt.rev .dt-st { color: var(--pm); }
.dt-st .spin { display: none; width: 14px; height: 14px; border: 2px solid var(--pm); border-right-color: transparent; border-radius: 50%; animation: dmspin .8s linear infinite; }
.dt.rev .dt-st .spin { display: block; } .dt.rev .dt-st .tm { display: none; }
.dt-st .da-tf { font-size: 10px; }
.dm-run { font: 700 10px/1 var(--sans); color: var(--pm); background: rgba(128,203,196,.16); border: 1px solid rgba(128,203,196,.5); border-radius: 4px; padding: 5px 8px; cursor: pointer; white-space: nowrap; }
.dm-run:disabled { color: rgba(255,255,255,.54); background: rgba(128,203,196,.08); border-color: rgba(128,203,196,.25); cursor: default; }
.dt-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dt-log li { display: flex; gap: 6px; font-size: 11px; color: rgba(255,255,255,.75); padding: 5px 8px; border-radius: 4px; background: rgba(38,50,56,.6); animation: dmin .4s ease-out both; }
.dt-log li::before { content: "\2713"; color: var(--pm); font-weight: 700; }
.dt-log time { color: rgba(255,255,255,.5); font-family: var(--mono); font-size: 10px; }
.dt .demo-note { margin-top: 10px; }

/* Order placed overlay (order_placed_animation.dart, orderMilestone) */
.dt-op { position: absolute; inset: 0; z-index: 2; border-radius: 10px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(23,33,47,.94); text-align: center; overflow: hidden; }
.dt.op .dt-op { display: flex; animation: dmop 2.8s ease-in both; }
.dt-rings { position: relative; width: 92px; height: 92px; margin-bottom: 6px; animation: dmring 2.8s cubic-bezier(.3,1.5,.5,1) both; }
.dt-rings svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.dt-rings .r1 { animation: dmspin 2.2s linear infinite; } .dt-rings .r2 { animation: dmspin 1.6s linear infinite reverse; } .dt-rings .r3 { animation: dmspin 3.1s linear infinite; }
.dt-core { position: absolute; inset: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,200,83,.32); box-shadow: 0 0 18px 2px rgba(0,200,83,.4); color: #B9F6CA; }
.dt-core .i { width: 26px; height: 26px; }
.dt-rv { animation: dmrv 2.8s ease-out both; }
.dt-rv .o { color: rgba(255,145,77,.9); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; }
.dt-rv .d { color: #B9F6CA; font-size: 24px; font-weight: 800; letter-spacing: 2px; line-height: 1.15; }
.dt-rv .s { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; }
.dt-rv .p { color: rgba(255,255,255,.65); font-size: 11.5px; margin-top: 4px; }
.dt-rv .m { color: rgba(255,145,77,.85); font-size: 10px; font-weight: 500; letter-spacing: .6px; }

/* History (bias_analysis_history_widget.dart + chart verification labels) */
.dh { border-radius: 16px; border: 1px solid #455A64; background: linear-gradient(135deg, #1E2B34, #2C3B45); padding: 12px; font-size: 11px; box-shadow: 0 6px 14px rgba(0,0,0,.45); width: 100%; }
.dh-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dh-hd strong { font-size: 15px; margin-right: auto; }
.dh-hd .i { color: rgba(255,255,255,.7); width: 16px; height: 16px; }
.dh-strip { position: relative; aspect-ratio: 16 / 7; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, var(--cbg), var(--cbg2)); margin-bottom: 8px; }
.dh-strip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dh-strip line { vector-effect: non-scaling-stroke; }
.dh-lab { position: absolute; transform: translate(-50%, -50%); font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; color: #fff; white-space: nowrap; }
.dh-lab.hit { background: #00BFA5; transform: translate(-50%, -135%); }
.dh-lab.ent { background: var(--entry); }
.dh-edge { position: absolute; right: 0; transform: translateY(-50%); font-size: 9px; font-weight: 700; color: #fff; padding: 1px 4px 1px 6px; clip-path: polygon(5px 0, 100% 0, 100% 100%, 5px 100%, 0 50%); }
.dh-f { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.dh-f span { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #546E7A; background: rgba(38,50,56,.45); border-radius: 12px; padding: 2px 8px; color: rgba(255,255,255,.7); font-size: 10px; }
.dh-f span.on { border-color: var(--borange); color: var(--borange); }
.dh-f .i { width: 11px; height: 11px; }
.dh-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; align-items: center; gap: 6px; padding: 5px 6px; }
.dh-row:nth-child(even) { background: rgba(38,50,56,.3); }
.dh-row.hd { color: rgba(255,255,255,.7); font-weight: 700; font-size: 10px; border-bottom: 1px solid #455A64; background: none; }
.dh-t { display: flex; align-items: center; gap: 6px; }
.dh-t small { display: block; font-size: 10px; line-height: 1.25; color: rgba(255,255,255,.7); }
.dh-t small:first-child { color: #fff; }
.dh-t em { display: block; font-size: 9px; color: rgba(255,255,255,.38); }
.dh-b { font-size: 9px; font-weight: 700; padding: 3px 5px; border-radius: 7px; border: .5px solid; }
.dh-b.L { color: var(--green); background: rgba(76,175,80,.2); border-color: rgba(76,175,80,.5); }
.dh-b.S { color: var(--red); background: rgba(244,67,54,.2); border-color: rgba(244,67,54,.5); }
.dh-cf div { display: flex; align-items: center; gap: 4px; font-size: 9.5px; }
.dh-cf div + div { margin-top: 3px; }
.dh-cf i { display: block; width: 36px; height: 7px; border-radius: 4px; background: rgba(76,175,80,.2); overflow: hidden; }
.dh-cf i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--green); border-radius: 4px; }
.dh-cf div + div i { background: rgba(244,67,54,.2); } .dh-cf div + div i::after { background: var(--red); }
.dh-cf .g { color: var(--green); } .dh-cf .r { color: var(--red); }
.dh-s { display: flex; gap: 5px; flex-wrap: wrap; }
.dh-c { display: inline-flex; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 600; padding: 2px 4px; border-radius: 4px; }
.dh-c .i { width: 11px; height: 11px; }
.dh-c.hit { color: var(--grass); background: rgba(126,217,87,.12); border: 1px solid rgba(126,217,87,.5); }
.dh-c.miss { color: var(--racc); background: rgba(255,82,82,.12); border: 1px solid rgba(255,82,82,.5); }
.dh-c.exp { color: #FF9800; background: rgba(255,152,0,.1); font-weight: 400; }
.dh-c.ok { color: var(--green); background: rgba(76,175,80,.1); font-weight: 400; }
.dh .demo-note { margin-top: 8px; }
.dh.anim .dh-row:not(.hd), .dh.anim .dh-strip .k, .dh.anim .dh-lab.hit, .dh.anim .dh-strip .tg { opacity: 0; }
.dh.anim.go .dh-row:not(.hd) { animation: dmin .45s ease-out both; animation-delay: calc(var(--i) * 140ms + 700ms); }
.dh.anim.go .dh-strip .k { animation: dmfade .25s ease-out both; animation-delay: calc(var(--i) * 45ms); }
.dh.anim.go .dh-strip .tg { animation: dmfade .4s ease-out 1.05s both; }
.dh.anim.go .dh-lab.hit { animation: dmpop .45s cubic-bezier(.3,1.6,.5,1) 1.2s both; }

@keyframes dmspin { to { transform: rotate(360deg); } }
@keyframes dmin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dmfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmpop { from { opacity: 0; transform: translate(-50%, -135%) scale(.5); } to { opacity: 1; transform: translate(-50%, -135%) scale(1); } }
@keyframes dmop { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dmring { 0%, 12% { transform: scale(.35); } 32% { transform: scale(1); } 100% { transform: scale(1); } }
@keyframes dmrv { 0%, 32% { opacity: 0; transform: translateY(18px); } 70%, 100% { opacity: 1; transform: none; } }
.dt-rings svg circle { transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; transition: none !important; }
  .dh.anim .dh-row, .dh.anim .dh-strip .k, .dh.anim .dh-lab.hit, .dh.anim .dh-strip .tg { opacity: 1; }
  .dt.op .dt-op { display: none; }
}
