/* Riftcount Deck Board. World: the Riftcount app's black instrument panel. System type, 6px corners, one green. */
:root {
  --bg: #000;
  --surface: #0f0f11;
  --card: #161618;
  --raise: #1f1f22;
  --seg: #2c2c2e;
  --seg-hi: #3a3a3c;
  --line: rgba(255,255,255,.06);
  --line-2: rgba(255,255,255,.1);
  --line-3: rgba(255,255,255,.18);
  --text: #fff;
  --text-2: #8e8e93;
  --text-3: #6c6c70;
  --green: #30d158;
  --green-soft: rgba(48,209,88,.16);
  --green-ink: #002a0f;
  --red: #ff453a;
  --red-soft: rgba(255,69,58,.16);
  --orange: #ff9f0a;
  --orange-soft: rgba(255,159,10,.16);
  --gold: #ffd60a;
  --fury: #e5484d;
  --calm: #30a46c;
  --mind: #3e8ef7;
  --body: #f76b15;
  --chaos: #8e4ec6;
  --order: #e2b931;
  --r: 6px;
  --r-lg: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  --top-h: 52px;
  --tabbar-h: 55px;
  --peek-h: 0px;
  --panel-w: clamp(380px, 34vw, 540px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.4 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
a { color: var(--text); text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Riot's card symbols (js/glyphs.js): colour ones are images, white ones masks in the text colour */
.g { display: inline-block; flex: none; width: 1.2em; height: 1.2em; vertical-align: -0.25em; object-fit: contain; }
.g.m { background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.gnum { font-weight: 600; font-variant-numeric: tabular-nums; }
.gcost { display: inline-flex; align-items: center; gap: 2px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--text); }
.gchip .g { width: 18px; height: 18px; vertical-align: 0; }
.gchip .gcost .g + .g { width: 16px; height: 16px; }
.grow { flex: 1; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- numbers ---------- */
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.none { color: var(--text-3); }

/* value bar: centre line is par (1.00); green grows right, red grows left */
.vbar { position: relative; display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.vbar > i { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,.32); }
.vbar > b { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.vbar > b.up { background: var(--green); }
.vbar > b.down { background: var(--red); }
.vbar > b.soft { opacity: .5; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border: 0; border-radius: var(--r);
  background: var(--card); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--raise); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--green); color: var(--green-ink); font-weight: 600; }
.btn.primary:hover { background: #3ee066; }
.btn.quiet { background: none; color: var(--text-2); }
.btn.quiet:hover { background: var(--card); color: var(--text); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; }
.iconbtn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r);
  background: none; color: var(--text-2); font-size: 15px; line-height: 1;
}
.iconbtn:hover { background: var(--card); color: var(--text); }
.iconbtn[disabled] { opacity: .35; cursor: not-allowed; }
.iconbtn svg circle { fill: currentColor; stroke: none; }
.link { padding: 0; border: 0; background: none; color: var(--green); font-size: 13px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.toggle {
  height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: none; color: var(--text-2); font-size: 13px; white-space: nowrap;
}
.toggle:hover { color: var(--text); }
.toggle[aria-pressed="true"] { background: var(--green-soft); border-color: transparent; color: var(--green); }
.segc { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--card); }
.segc button {
  height: 30px; padding: 0 12px; border: 0; border-radius: var(--r); background: none;
  color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s;
}
.segc button:hover { color: var(--text); }
.segc button[aria-pressed="true"] { background: var(--seg); color: var(--text); }
.segc button b { margin-left: 6px; font-weight: 500; color: var(--text-3); }
.segc button[aria-pressed="true"] b { color: var(--text-2); }
.segc.small button { height: 26px; padding: 0 10px; font-size: 12px; }
.sel {
  height: 30px; padding: 0 28px 0 10px; border: 0; border-radius: var(--r); appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text); font-size: 13px;
}
.sel:hover { background-color: var(--raise); }
.sel.small { height: 28px; font-size: 12px; }
.tools .sel { field-sizing: content; }
.field, input[type="number"] {
  height: 34px; padding: 0 10px; border: 0; border-radius: var(--r); background: var(--seg); color: var(--text); font-size: 14px;
}
.field::placeholder { color: var(--text-3); }
.note { margin: 0 0 10px; font-size: 13px; color: var(--text-2); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  height: var(--top-h); padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand .mark { width: 18px; height: 18px; border-radius: 5px; background: var(--green); }
.tsep { width: 1px; height: 20px; background: var(--line-2); }
.deckname { display: flex; align-items: center; min-width: 0; }
.deckname label { display: flex; min-width: 0; }
.deckname input {
  width: clamp(120px, 20vw, 300px); min-width: 0; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r);
  background: none; font-size: 15px; font-weight: 600; text-overflow: ellipsis;
}
@supports (field-sizing: content) { .deckname input { field-sizing: content; width: auto; min-width: 120px; max-width: 300px; } }
.deckname input:hover { background: var(--card); }
.deckname input:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-3); }
.status {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.warn { background: var(--orange-soft); color: var(--orange); }
.status.bad { background: var(--red-soft); color: var(--red); }
.topactions { display: flex; gap: 6px; }
.topbar .more { display: none; }

/* ---------- split ---------- */
.split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); height: calc(100dvh - var(--top-h)); }
.pool { min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.deck { min-width: 0; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--line); background: var(--bg); }
.divider { position: absolute; top: 0; bottom: 0; right: var(--panel-w); z-index: 8; width: 10px; translate: 5px 0; cursor: col-resize; touch-action: none; }
.divider::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background-color .15s; }
.divider:hover::after, .divider.on::after, .divider:focus-visible::after { background: var(--line-3); }
.divider:focus-visible { outline: none; }

/* ---------- gallery toolbar ---------- */
.tools {
  position: sticky; top: 0; z-index: 5; display: grid; gap: 10px; padding: 14px 18px 10px;
  background: rgba(0,0,0,.9); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.trow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 10px 0 12px;
  border-radius: var(--r); background: var(--card); color: var(--text-3);
}
.search svg { width: 15px; height: 15px; stroke-width: 2.2; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font-size: 14px; outline: none; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--line-3); }
.search kbd { padding: 0 5px; border: 1px solid var(--line-2); border-radius: 4px; font: 11px/16px var(--font); color: var(--text-2); }
.zones { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.zones::-webkit-scrollbar { display: none; }
.tray-toggle { display: none; }
.tools .doms, .tools .types { display: flex; flex-wrap: wrap; gap: 6px; }
.dom {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text-2); font-size: 13px;
}
.dom .g { width: 16px; height: 16px; vertical-align: 0; }
.dom:hover { color: var(--text); }
.dom[aria-pressed="true"] { background: var(--card); border-color: transparent; color: var(--text); }
.costs { display: inline-flex; gap: 2px; }
.costs button { display: inline-grid; grid-auto-flow: column; place-items: center; place-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r); background: none; color: var(--text-2); font-size: 11px; font-weight: 700; }
.costs button .g { width: 20px; height: 20px; vertical-align: 0; }
.costs:has([aria-pressed="true"]) button:not([aria-pressed="true"]) .g { opacity: .45; }
.costs button:hover { background: var(--card); color: var(--text); }
.costs button[aria-pressed="true"] { background: var(--seg); color: var(--text); }
.tslot { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.tslot .tlabel { font-size: 13px; color: var(--text-2); }
.tsize { display: inline-flex; gap: 2px; }
.trow.active { gap: 6px; min-height: 26px; font-size: 13px; color: var(--text-2); }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 10px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--text); font-size: 12px;
}
.fchip span { color: var(--text-3); font-size: 14px; line-height: 1; }
.fchip:hover { background: var(--raise); }
.search .count { flex: none; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.search .count b { color: var(--text-2); font-weight: 600; }
.trow.active .help { color: var(--text-3); font-size: 12px; }

/* ---------- gallery grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile, 150px), 1fr)); gap: 18px 14px; padding: 16px 18px 28px; }
.tile { position: relative; display: grid; align-content: start; gap: 7px; cursor: pointer; border-radius: var(--r); content-visibility: auto; contain-intrinsic-size: 150px 260px; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.tile .art { position: relative; aspect-ratio: 744 / 1039; border-radius: var(--r); overflow: hidden; background: var(--surface); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .2s; }
.tile.bf .art { aspect-ratio: 1039 / 744; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .art, .tile:focus-visible .art { transform: translateY(-3px); box-shadow: 0 14px 24px -14px rgba(0,0,0,.95); }
.tile:active .art { transform: scale(.985); transition-duration: .08s; }
.tile.off .art { filter: grayscale(.8) brightness(.5); }
.tile.off .cap { opacity: .5; }
.tile .tags { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; z-index: 2; }
.tile .tag { padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.78); font-size: 11px; font-weight: 600; color: var(--text); }
.tile .tag.ban { color: var(--red); }
.tile .qty {
  position: absolute; left: 50%; bottom: 8px; z-index: 2; translate: -50% 0; display: none; align-items: center; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tile .qty.on { display: flex; }
.tile .qty.single [data-q="1"] { display: none; }
.tile .qty button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); font-size: 16px; line-height: 1; }
.tile .qty button:hover { background: rgba(255,255,255,.14); }
.tile .qty .num { min-width: 18px; text-align: center; font-size: 13px; font-weight: 700; color: var(--green); }
.cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1px 8px; }
.cap .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .val .num { font-size: 13px; font-weight: 600; }
.cap .sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.cap .sub .g { width: 15px; height: 15px; vertical-align: 0; }
.cap .sub .gcost .g + .g { width: 12px; height: 12px; }
.empty-note { grid-column: 1 / -1; padding: 60px 0; color: var(--text-2); text-align: center; }
.intro { grid-column: 1 / -1; padding: 20px 22px; border-radius: var(--r-lg); background: var(--card); }
.intro h2 { margin: 0 0 6px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; max-width: 34ch; text-wrap: balance; }
.intro p { margin: 0 0 12px; color: var(--text-2); max-width: 64ch; }
.intro ol { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; }
.intro ol b { color: var(--text); font-weight: 600; }
.intro-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0; }
.intro-cta a { font-size: 13px; color: var(--text-2); }
.legal { padding: 22px 18px 36px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.legal p { margin: 0 0 8px; max-width: 110ch; }
.legal a { color: var(--text-2); }
.noscript { padding: 40px; }

/* ---------- deck panel ---------- */
.peek { display: none; }
.tabbar { position: sticky; top: 0; z-index: 7; padding: 10px 14px; background: rgba(0,0,0,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 2px; border-radius: 8px; background: var(--card); }
.tabs button { height: 30px; border: 0; border-radius: var(--r); background: none; color: var(--text-2); font-size: 13px; font-weight: 600; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--seg); color: var(--text); }
#stats, #hand, #agent { padding: 14px 16px 32px; }

/* identity and counts */
.dhead { padding: 14px 16px 6px; }
.ident { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; }
.ident .thumb { position: relative; width: 52px; aspect-ratio: 744 / 1039; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--surface); }
.ident .thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.ident .thumb:hover img { filter: brightness(1.12); }
.ident .thumb.empty { display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); font-size: 10px; }
.ident .thumb.empty:hover { color: var(--text); background: var(--raise); }
.idtext { min-width: 0; padding-left: 2px; }
.idtext h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idtext .sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ident .doms { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.ident .doms span { display: inline-flex; align-items: center; gap: 5px; }
.ident .doms .g { width: 15px; height: 15px; vertical-align: 0; }
.emptyid { grid-column: 1 / -1; padding: 16px; border-radius: var(--r-lg); background: var(--card); }
.emptyid p { margin: 0 0 12px; color: var(--text-2); }
.emptyid b { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--card); font-size: 12px; color: var(--text-2); }
.chip b { font-weight: 600; color: var(--text); }
.chip.ok b { color: var(--green); }
.chip.over b { color: var(--red); }

/* quick add stays under the tabs while the deck scrolls */
.qslot { position: sticky; top: var(--tabbar-h); z-index: 6; padding: 8px 16px 10px; background: rgba(0,0,0,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.qadd { position: relative; display: flex; }
.qadd .field { flex: 1; min-width: 0; height: 36px; padding: 0 12px; background: var(--card); }
.qadd .field:focus { outline: none; box-shadow: inset 0 0 0 1px var(--line-3); }
.qhint { margin: 6px 0 0; font-size: 11px; color: var(--text-3); }
.qlist { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 8; margin: 0; padding: 4px; list-style: none; border-radius: var(--r-lg); background: #1c1c1e; box-shadow: 0 0 0 1px var(--line-2), 0 18px 36px -14px rgba(0,0,0,.9); }
.qlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 7px 10px; border-radius: var(--r); cursor: pointer; }
.qlist .qn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qlist .qm { grid-column: 1; font-size: 12px; color: var(--text-2); }
.qlist .qv { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
.qlist li[aria-selected="true"], .qlist li:hover { background: var(--seg); }

/* value band */
.vband { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 16px; align-items: end; margin: 6px 16px 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); }
.vb-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.vb-lbl { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.vband .vbar { margin-top: 10px; }
.vband p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.curve { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; height: 86px; }
.curve > div { display: grid; grid-template-rows: auto 1fr auto; text-align: center; min-width: 0; }
.curve em { font-style: normal; font-size: 11px; color: var(--text-2); min-height: 14px; }
.curve span { align-self: end; min-height: 1px; border-radius: 3px 3px 0 0; background: var(--seg-hi); }
.curve b { margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--text-3); }

/* sections */
.dsec { padding-bottom: 6px; transition: background-color .15s; }
.dsec.drop { background: rgba(48,209,88,.05); }
.dsec.drop .sh h3::after { content: "Drop to add"; margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--green); }
.sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px; }
.sh h3 { display: flex; align-items: center; margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sh .cnt { margin-left: 6px; font-weight: 500; color: var(--text-3); }
.tgt { display: inline-flex; align-items: center; gap: 0; margin: -4px -8px; padding: 4px 8px; border: 0; border-radius: var(--r); background: none; color: inherit; font: inherit; }
.tgt:hover { background: var(--card); color: var(--text); }
.tgt.on { color: var(--text); }
.tgt small { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 600; }
.hint { margin: 0; padding: 0 16px 8px; font-size: 13px; color: var(--text-2); }
.vbarrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 16px 8px; }
.vbarrow .toggle { height: 28px; font-size: 12px; margin-left: auto; }
.grp { display: flex; align-items: center; gap: 6px; width: calc(100% - 32px); margin: 6px 16px 4px; padding: 4px 0; border: 0; background: none; color: var(--text-2); font-size: 12px; font-weight: 600; text-align: left; }
.grp svg { width: 12px; height: 12px; transition: transform .18s var(--ease); }
.grp[aria-expanded="false"] svg { transform: rotate(-90deg); }
.grp .cnt { color: var(--text-3); font-weight: 500; }
.grp .g { width: 15px; height: 15px; vertical-align: 0; }
.grp:hover { color: var(--text); }

/* main deck as card thumbnails */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 10px; padding: 4px 16px 12px; }
.cc { position: relative; display: grid; align-content: start; gap: 6px; cursor: pointer; border-radius: 5px; }
.cart { position: relative; aspect-ratio: 744 / 1039; border-radius: 5px; overflow: hidden; background: var(--surface); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.cart img { width: 100%; height: 100%; object-fit: cover; }
.cc:hover .cart, .cc:focus-visible .cart { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(0,0,0,.95); }
.ccount { position: absolute; right: 4px; bottom: 4px; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.84); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cstep { position: absolute; left: 4px; bottom: 4px; display: none; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(0,0,0,.84); }
.cstep button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); font-size: 14px; line-height: 1; }
.cstep button:hover { background: rgba(255,255,255,.16); }
@media (hover: hover) and (pointer: fine) { .cc:hover .cstep { display: flex; } }
.cval { display: grid; gap: 4px; text-align: center; }
.cval .num { font-size: 12px; font-weight: 600; }

/* rows */
.list { margin: 0 12px 8px; border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.row { position: relative; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--raise); }
.row[draggable="true"] { cursor: grab; }
.row .q .num { display: block; text-align: right; font-size: 15px; font-weight: 650; }
.cost { display: inline-flex; align-items: center; gap: 3px; }
.cost .g { width: 20px; height: 20px; vertical-align: 0; }
.cost .gcost .g + .g { width: 14px; height: 14px; }
.nmw { display: grid; gap: 5px; min-width: 0; }
.nm { padding: 0; border: 0; background: none; color: var(--text); font-size: 15px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.nm:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.nmw .bar:empty { display: none; }
.val .num { font-size: 13px; font-weight: 600; }
.ctl { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: flex; gap: 2px; padding: 2px; border-radius: var(--r); background: var(--raise); opacity: 0; pointer-events: none; transition: opacity .12s; }
.row:hover .ctl, .row:focus-within .ctl { opacity: 1; pointer-events: auto; }
.ib { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r); background: var(--seg); color: var(--text); font-size: 15px; line-height: 1; }
.ib:hover { background: var(--seg-hi); }

/* stacks */
.stacks { columns: 2 150px; column-gap: 14px; padding: 2px 16px 16px; }
.stk { --peek: 30px; display: flex; flex-direction: column; break-inside: avoid; margin-bottom: 16px; }
.stk .grp { width: 100%; margin: 0 0 6px; }
.sc { position: relative; display: block; width: 100%; aspect-ratio: 744 / 1039; margin-top: calc(var(--peek) - 139.65%); border-radius: 5px; overflow: hidden; background: var(--surface); box-shadow: 0 -6px 12px -6px rgba(0,0,0,.9); cursor: pointer; transition: transform .2s var(--ease); }
.stk .grp + .sc { margin-top: 0; }
.sc img { width: 100%; height: 100%; object-fit: cover; }
.sc:hover, .sc:focus-visible { z-index: 3; transform: translateY(-8px); }
.sl { position: absolute; left: 0; right: 0; top: 0; height: var(--peek); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 7px; background: linear-gradient(90deg, rgba(10,10,12,.95), rgba(10,10,12,.85) 65%, rgba(10,10,12,.55)); }
.sl .sq { font-size: 12px; font-weight: 700; }
.sl .sn { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl .num { font-size: 12px; font-weight: 600; }

/* runes and battlefields */
.runes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.rune { flex: 1 1 150px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: var(--r-lg); background: var(--card); }
.rune > .g { width: 20px; height: 20px; vertical-align: 0; }
.rune .rn { flex: 1; font-size: 14px; }
.rune .rc { min-width: 20px; text-align: center; font-size: 15px; font-weight: 650; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px; }
.bf { display: grid; gap: 5px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer; border-radius: var(--r); }
.bf .ph { position: relative; display: block; aspect-ratio: 1039 / 744; border-radius: var(--r); overflow: hidden; background: var(--card); }
.bf .ph img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.bf:hover .ph img { filter: brightness(1.12); }
.bf .bn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf.empty .ph { display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); font-size: 20px; }
.bf.empty:hover .ph { background: var(--raise); color: var(--text); }
.dfoot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 16px 16px 28px; border-top: 1px solid var(--line); }

/* ---------- stats and hand ---------- */
.tsec h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tsec:first-child h3 { margin-top: 2px; }
.heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.head { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--card); }
.head .num { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.head .lbl { font-size: 12px; color: var(--text-2); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.chart { padding: 12px 14px; border-radius: var(--r-lg); background: var(--card); }
.chart h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; height: 128px; align-items: end; }
.bars .col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; text-align: center; gap: 4px; }
.bars .col b { font-size: 12px; font-weight: 600; }
.bars .stack { display: flex; flex-direction: column-reverse; height: 100%; gap: 1px; transition: opacity .2s; }
.bars .stack i { display: block; flex: none; width: 100%; border-radius: 2px; transform-origin: bottom; animation: rise .3s var(--ease) both; }
.bars .col span { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.bars .col span .g { width: 15px; height: 15px; vertical-align: 0; }
.bars .col[data-e] { cursor: pointer; border-radius: 4px; }
.bars .col[data-e]:hover span, .bars .col.picked span { color: var(--text); }
.bars:has(.picked) .col:not(.picked) .stack { opacity: .3; }
@keyframes rise { from { transform: scaleY(0); opacity: .2; } to { transform: none; opacity: 1; } }
.curvecards { margin-top: 10px; }
.curvecards h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.ccards button { display: grid; gap: 5px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; font-size: 12px; }
.ccards img { width: 100%; aspect-ratio: 744 / 1039; object-fit: cover; border-radius: 5px; }
.odds { border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.odds .tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.odds .tr:first-child { border-top: 0; }
.odds .num { font-weight: 650; }
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end; padding: 14px; border-radius: var(--r-lg); background: var(--card); }
.calc label { display: grid; gap: 5px; font-size: 12px; color: var(--text-2); }
.calc label.wide { grid-column: 1 / -1; }
.calc .sel { width: 100%; background-color: var(--seg); }
.calc input { width: 100%; }
.calc output { grid-column: 1 / -1; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.calc .note { grid-column: 1 / -1; margin: 0; }
.hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 6px; }
.hand .card { margin: 0; cursor: pointer; transition: filter .15s; }
.hand .card img { width: 100%; aspect-ratio: 744 / 1039; object-fit: cover; border-radius: var(--r); }
.hand .card.mull { filter: brightness(.35) grayscale(.6); }

/* ---------- coach ---------- */
.styles { display: grid; gap: 6px; margin-bottom: 12px; }
.style-key { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: var(--r-lg); background: var(--card); color: var(--text); text-align: left; transition: background-color .15s; }
.style-key b { font-size: 14px; font-weight: 600; }
.style-key span { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.style-key:hover { background: var(--raise); }
.style-key[aria-pressed="true"] { background: var(--green-soft); }
.style-key[aria-pressed="true"] b { color: var(--green); }
.log { display: grid; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.log li { display: flex; align-items: center; gap: 8px; }
.log li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.log li.done::before { background: var(--green); }
.report { display: grid; gap: 16px; }
.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); }
.verdict .score .num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.verdict h3 { margin: 0; font-size: 16px; font-weight: 650; }
.verdict p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.rsec h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.rsec p { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.tape { border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.tape .tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.tape .tr:first-child { border-top: 0; }
.tape .side { padding: 3px 0; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; }
.tape .side.buy { background: var(--green-soft); color: var(--green); }
.tape .side.sell { background: var(--red-soft); color: var(--red); }
.tape .side.pair { background: rgba(255,214,10,.14); color: var(--gold); }
.tape .side.hold { background: var(--seg); color: var(--text-2); }
.tape .t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape button.t { padding: 0; border: 0; background: none; color: var(--text); text-align: left; }
.tape button.t:hover { text-decoration: underline; text-underline-offset: 3px; }
.tape .why { grid-column: 2 / -1; font-size: 12.5px; color: var(--text-2); }
.gauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gauge { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--card); }
.gauge .lbl { font-size: 12px; color: var(--text-2); }
.gauge .lbl::first-letter { text-transform: uppercase; }
.gauge .num { font-size: 15px; font-weight: 650; }
.bar { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--text-2); transform-origin: left; }
.bar.good > i { background: var(--green); }
.bar.bad > i { background: var(--red); }
.claude { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.claude summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.claude[open] summary { color: var(--text); }
.claude .note { margin-top: 10px; }
.crow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.crow .field { flex: 1 1 220px; background: var(--card); }
.crow .sel { background-color: var(--card); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.check input { accent-color: var(--green); }
.read { display: grid; gap: 6px; }
.read:empty { display: none; }
.read h4 { margin: 12px 0 2px; font-size: 13px; font-weight: 650; color: var(--text); }
.read p, .read li { margin: 0; font-size: 14px; color: var(--text); max-width: 68ch; }
.read ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- sheet (dialog) ---------- */
.sheet {
  margin: 0 0 0 auto; width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0;
  border: 0; border-left: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  box-shadow: -24px 0 48px -24px rgba(0,0,0,.9);
}
.sheet::backdrop { background: rgba(0,0,0,.6); }
.sheet[open] { animation: sheet-in .28s var(--ease); }
@keyframes sheet-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .in { display: grid; gap: 14px; padding: 22px 24px 40px; }
.sheet h2 { margin: 0; padding-right: 40px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.sheet .close { position: absolute; right: 14px; top: 14px; }
.sheet textarea {
  width: 100%; min-height: 240px; padding: 12px; resize: vertical; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--bg); color: var(--text); font: 13px/1.5 var(--mono);
}
.sheet textarea.code { min-height: 84px; word-break: break-all; }
.sheet .detail { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.sheet .detail > img { width: 100%; border-radius: var(--r-lg); }
.sheet .rules { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.sheet .rules p, .sheet .rules ul { margin: 0 0 8px; }
.sheet .rules ul { padding-left: 18px; }
.sheet .rules .g { margin: 0 1px; }
.sheet .rules .kw { font-weight: 650; color: var(--text); }
.sheet .rsec h3 { margin: 8px 0; }
.ledger { border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.ledger .lr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.ledger .lr:first-child { border-top: 0; }
.ledger .lr span { color: var(--text-2); }
.ledger .lr.tot { background: var(--raise); font-weight: 600; }
.ledger .lr.tot span { color: var(--text); }
.calc-note { padding: 10px 12px; border-radius: var(--r); background: var(--card); color: var(--text-2); font: 12px/1.55 var(--mono); overflow-wrap: anywhere; white-space: pre-line; }
.deck-list { border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.deck-list .dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.deck-list .dl:first-child { border-top: 0; }
.deck-list .dl.cur { background: var(--raise); }
.deck-list .dl button.t { padding: 0; border: 0; background: none; color: var(--text); font-weight: 600; text-align: left; }
.deck-list .dl small { display: block; color: var(--text-2); font-weight: 400; font-size: 12px; }

/* ---------- menu ---------- */
.rmenu { position: fixed; z-index: 80; display: grid; min-width: 220px; padding: 5px; border-radius: var(--r-lg); background: #1c1c1e; box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -14px rgba(0,0,0,.9); }
.rmenu button { display: flex; justify-content: space-between; gap: 18px; padding: 8px 10px; border: 0; border-radius: var(--r); background: none; color: var(--text); font-size: 14px; text-align: left; }
.rmenu button:hover, .rmenu button:focus-visible { background: var(--seg); outline: none; }
.rmenu button[disabled] { color: var(--text-3); }
.rmenu button b { font-weight: 500; font-size: 12px; color: var(--text-2); }
.rmenu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line-2); }

/* ---------- toast, flying card, drop-out ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + var(--peek-h)); z-index: 90; max-width: min(560px, calc(100vw - 32px));
  padding: 10px 16px; border-radius: 999px; background: #2c2c2e; color: var(--text); font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.9); translate: -50% 12px; opacity: 0; pointer-events: none;
  transition: translate .25s var(--ease), opacity .2s;
}
.toast.on { translate: -50% 0; opacity: 1; }
.toast.bad { background: #b3261e; color: #fff; }
.flyer { position: fixed; z-index: 95; pointer-events: none; object-fit: cover; border-radius: var(--r); box-shadow: 0 14px 24px -12px #000; }
.grid.dropout { background: rgba(255,69,58,.04); }
.grid.dropout::before {
  content: "Drop to take it out of the deck · Shift takes every copy"; grid-column: 1 / -1; position: sticky; top: 0; z-index: 3;
  padding: 9px 14px; border-radius: var(--r); background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 600;
}

/* ---------- phones: gallery full screen, deck in a bottom sheet ---------- */
@media (max-width: 900px) {
  :root { --top-h: 48px; --peek-h: 64px; --tabbar-h: 49px; }
  .topbar { gap: 8px; padding: 0 10px 0 12px; }
  .brand .word, .tsep, .topactions { display: none; }
  .topbar .more { display: inline-grid; }
  .deckname { flex: 1; }
  .deckname label { flex: 1; }
  .deckname input { width: 100%; min-width: 0; max-width: none; field-sizing: fixed; }
  .status { flex: none; }
  .topbar .grow { display: none; }
  .split { display: block; height: auto; }
  .pool { overflow: visible; padding-bottom: calc(var(--peek-h) + 8px); }
  .tools { top: var(--top-h); padding: 10px 12px 8px; gap: 8px; }
  .search { flex: 1 1 0; }
  .search kbd { display: none; }
  .tray-toggle { display: inline-flex; }
  .zones { order: 2; flex-basis: 100%; }
  .tools .tray { display: none; }
  .tools.open .tray:not([hidden]) { display: flex; }
  /* open filters stay one row each and swipe sideways, so the grid keeps the screen */
  .tools .tray { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tools .tray::-webkit-scrollbar { display: none; }
  .tools .tray > *, .tools .doms > *, .tools .types > * { flex: none; }
  .tools .doms, .tools .types { flex-wrap: nowrap; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; padding: 12px; }
  .cap .sub { display: none; }
  .cap .nm { font-size: 12px; }
  .divider, .tslot { display: none; }
  .deck {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 88dvh; border: 0; border-radius: 14px 14px 0 0;
    background: #0c0c0e; box-shadow: 0 -18px 40px -18px rgba(0,0,0,.95); overflow: hidden;
    transform: translateY(calc(88dvh - var(--peek-h) - env(safe-area-inset-bottom))); transition: transform .32s var(--ease);
  }
  body.sheet-open .deck { transform: none; overflow-y: auto; }
  body.sheet-open { overflow: hidden; }
  .peek {
    position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 10px; width: 100%; height: var(--peek-h);
    padding: 12px 16px 8px; border: 0; border-radius: 14px 14px 0 0; background: #0c0c0e; color: var(--text); text-align: left; touch-action: none;
  }
  .peek .grip { position: absolute; left: 50%; top: 6px; translate: -50% 0; width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
  .peek .pthumb { flex: none; width: 30px; aspect-ratio: 744 / 1039; border-radius: 3px; overflow: hidden; background: var(--card); }
  .peek .pthumb img { width: 100%; height: 100%; object-fit: cover; }
  .peek .ptext { flex: 1; min-width: 0; display: grid; }
  .peek .ptext b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .peek .ptext span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .peek .pchev { color: var(--text-2); transition: transform .25s var(--ease); }
  body.sheet-open .peek .pchev { transform: rotate(180deg); }
  .tabbar { top: var(--peek-h); background: #0c0c0e; padding: 6px 12px 8px; }
  .qslot { top: calc(var(--peek-h) + var(--tabbar-h)); background: rgba(12,12,14,.94); }
  .row .ctl { position: static; translate: none; opacity: 1; pointer-events: auto; background: none; }
  .row .ctl [data-dec], .row .ctl [data-inc] { display: none; }
  .row { grid-template-columns: 22px 34px minmax(0, 1fr) auto auto; }
  .vband { grid-template-columns: 1fr; }
  .sheet { width: 100vw; border-left: 0; }
  .sheet .detail { grid-template-columns: 1fr; }
  .sheet .detail > img { max-width: 240px; }
  .toast { bottom: calc(16px + var(--peek-h)); }
}
@media (max-width: 900px) and (hover: hover) { .row .ctl [data-dec], .row .ctl [data-inc] { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
