/* King of OP TCG — web app. "The Page" (design/THE_PAGE.md) for a big screen:
   ink on white paper, square ruled panels, one spot red, lettering in Dela Gothic One.
   No rounded corners, no gradients, no soft shadows: depth is a hard offset block. */

@font-face { font-family: "Dela Gothic One"; src: url("/assets/fonts/DelaGothicOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Yusei Magic"; src: url("/assets/fonts/YuseiMagic-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --mat: #FBFBF8; --panel: #FFFFFF; --raised: #EDECE6;
  --ink: #0B0B0B; --on-ink: #FBFBF8;
  --spot: #DD2129;
  --muted: #4A4A47; --quiet: #6B6964;
  --rule-subtle: rgba(11,11,11,.16); --rule: rgba(11,11,11,.42);
  --op-red: #DD2129; --op-green: #008F62; --op-blue: #0080B6; --op-purple: #8A3382; --op-black: #272424; --op-yellow: #F2DC2E;
  --letter: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --note: "Yusei Magic", "Comic Sans MS", cursive;
  --gutter: 16px; --wrap: 1320px;
  color-scheme: only light;
}
/* The website is always the white page — no dark mode (owner, 23 Oct 2026). */
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mat); color: var(--ink); font: 400 15px/1.5 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--spot); color: #fff; }
:focus-visible { outline: 3px solid var(--spot); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Voices ─────────────────────────────────────────────────── */
.letter { font-family: var(--letter); font-weight: 400; letter-spacing: -.01em; line-height: .98; text-transform: uppercase; }
.lean { display: inline-block; transform: skewX(-9deg); }
.cap { display: inline-block; background: var(--ink); color: var(--on-ink); font: 800 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; padding: 5px 7px 4px; white-space: nowrap; }
.cap.spot { background: var(--spot); color: #fff; }
.cap.tone { background: var(--raised); color: var(--ink); }
.label { font: 800 11px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note { font-family: var(--note); color: var(--spot); font-size: 18px; line-height: 1.2; transform: rotate(-3deg); display: inline-block; }
.muted { color: var(--muted); } .quiet { color: var(--quiet); }
.num { font-variant-numeric: tabular-nums; }
.chapter { font-family: var(--letter); font-size: 22px; line-height: 1; white-space: nowrap; }

/* ── Top bar ────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: var(--mat); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 44px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand svg { display: block; height: 24px; width: auto; }
.brand b { font: 400 14px/1 var(--letter); text-transform: uppercase; white-space: nowrap; }
.brand .tcg { font: 400 10px/1 var(--letter); background: var(--ink); color: var(--mat); padding: 4px 5px 3px; margin-left: -3px; }
.tabs { display: flex; gap: 4px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; padding: 0 10px; text-decoration: none; font: 800 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.top .side { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.who { display: flex; align-items: center; gap: 7px; background: none; border: 1.5px solid var(--ink); padding: 3px 8px 3px 3px; font: 700 12px/1 var(--text); }
.who .av { width: 20px; height: 20px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 400 12px/1 var(--letter); }
.kbd { font: 700 11px/1 var(--text); border: 1px solid var(--rule); padding: 3px 5px; color: var(--quiet); }
@media (max-width: 1100px) { .brand b, .brand .tcg { display: none; } }
@media (max-width: 860px) {
  .brand b { display: inline; } .brand .tcg { display: inline; }
  .top .wrap { flex-wrap: wrap; height: auto; gap: 0 14px; padding-top: 8px; }
  .tabs { order: 3; width: 100%; height: 38px; margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px); width: calc(100% + 2 * var(--gutter)); }
  .brand b { font-size: 15px; }
  .top .side .kbd { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font: 400 14px/1 var(--letter); text-transform: uppercase; letter-spacing: .02em;
  padding: 14px 20px 13px; background: var(--ink); color: var(--on-ink); border: 0; box-shadow: 5px 5px 0 var(--spot); transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--spot); }
.btn:active { transform: translate(5px,5px); box-shadow: 0 0 0 var(--spot); }
.btn.sm { padding: 10px 14px 9px; font-size: 12px; box-shadow: 4px 4px 0 var(--spot); }
.btn svg { width: 18px; height: 18px; flex: none; }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--panel); color: var(--ink); border: 1.5px solid var(--ink); padding: 8px 12px 7px; font: 800 11.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: transform .1s; text-decoration: none; }
.ghost:active { transform: scale(.97); }
.ghost:disabled { opacity: .35; cursor: default; }
.ghost.danger { color: var(--spot); border-color: var(--spot); }
.link { background: none; border: 0; padding: 0; font: 700 13px/1.3 var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--ink); font: 400 16px/1 var(--letter); padding: 0; }
.icon-btn:active { transform: scale(.94); }

/* ── Screen head + masthead ─────────────────────────────────── */
.screen { padding-top: 20px; padding-bottom: 64px; }
.head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.head h1 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); }
.head .count { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.head .chapter { margin-left: auto; padding-bottom: 4px; }
.head .actions { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.masthead { position: relative; display: grid; grid-template-columns: minmax(0,1fr); margin: 0 0 26px; border: 3px solid var(--ink); background: var(--panel); overflow: hidden; }
.masthead .art { height: 150px; position: relative; overflow: hidden; background: var(--raised); clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.masthead .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.masthead .art::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 72% 40%, transparent 0 4deg, rgba(0,0,0,.0) 4deg 8deg); pointer-events: none; }
.masthead .strip { display: flex; align-items: flex-end; gap: 18px; padding: 0 22px 18px; margin-top: -26px; position: relative; }
.masthead h1 { margin: 8px 0 0; font-size: clamp(32px, 4.2vw, 52px); }
.masthead .count { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.masthead .chapter { margin-left: auto; padding-bottom: 6px; }
.masthead .slash { position: absolute; left: 0; right: 0; height: 6px; bottom: 0; }
@media (min-width: 900px) {
  .masthead { grid-template-columns: 1.15fr 1fr; }
  .masthead .art { height: 176px; order: 2; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .masthead .strip { margin-top: 0; padding: 16px 22px; align-items: flex-end; }
}

/* ── Panels, rules, section labels ──────────────────────────── */
.panel { background: var(--panel); border: 1.5px solid var(--ink); }
.panel.hero { border-width: 3px; }
.pad { padding: 16px 18px; }
.raised { background: var(--raised); border: 1px solid var(--ink); }
.rule { height: 0; border-top: 1px solid var(--rule); }
.section { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; }
.section h2 { margin: 0; font: 800 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.section::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.section .more { order: 3; font: 700 12px/1 var(--text); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0,1fr); }
main { overflow-x: clip; }
@media (min-width: 980px) { .grid-2 { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 28px; } }

/* stat band: one ruled strip, ink dividers */
.band { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); border: 1.5px solid var(--ink); background: var(--panel); }
.band > div { padding: 14px 16px 12px; border-left: 1.5px solid var(--ink); min-width: 0; }
.band > div:first-child { border-left: 0; }
.band .v { font: 400 30px/1 var(--letter); display: inline-block; transform: skewX(-9deg); margin-top: 8px; white-space: nowrap; }
.band .v.spot { color: var(--spot); }
.band small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
@media (max-width: 640px) { .band { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .band > div:nth-child(odd) { border-left: 0; } .band > div:nth-child(n+3) { border-top: 1.5px solid var(--ink); } }

/* impact frame: the one figure, speed lines converging on it */
.impact { position: relative; overflow: hidden; border: 3px solid var(--ink); background: var(--panel); padding: 22px 24px 20px; clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
.impact::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 12% 88%, var(--rule-subtle) 0 1.2deg, transparent 1.2deg 7deg); pointer-events: none; }
.impact > * { position: relative; }
.impact .fig { font: 400 clamp(70px, 9vw, 104px)/.9 var(--letter); display: inline-block; transform: skewX(-9deg); margin-top: 10px; }
.impact .fig.spot { color: var(--spot); }
.impact .sub { margin: 10px 0 0; font-weight: 700; }
.sfx { position: absolute; right: 18px; top: 14px; font: 400 44px/1 var(--letter); color: transparent; -webkit-text-stroke: 2px var(--spot); transform: rotate(-8deg) skewX(-9deg); pointer-events: none; animation: slam .38s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes slam { from { transform: rotate(-8deg) skewX(-9deg) scale(1.35); opacity: 0; } to { transform: rotate(-8deg) skewX(-9deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sfx { animation: none; } * { transition: none !important; } }

/* ── Results ────────────────────────────────────────────────── */
.chip { display: inline-grid; place-items: center; width: 22px; height: 20px; font: 400 11px/1 var(--letter); transform: skewX(-12deg); flex: none; }
.chip > span { transform: skewX(12deg); }
.chip.W { background: var(--spot); color: #fff; }
.chip.L { background: var(--ink); color: var(--on-ink); }
.chip.D { background: var(--raised); color: var(--ink); border: 1px solid var(--ink); }
.form { display: inline-flex; gap: 3px; flex-wrap: wrap; max-width: 100%; }
.rate-hi { color: var(--spot); } .rate-mid { color: var(--ink); } .rate-lo { color: var(--muted); }

/* ── Leader identity ────────────────────────────────────────── */
.hex { display: inline-block; width: 12px; height: 13px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.hexes { display: inline-flex; gap: 2px; vertical-align: middle; }
.c-Red { background: var(--op-red); } .c-Green { background: var(--op-green); } .c-Blue { background: var(--op-blue); }
.c-Purple { background: var(--op-purple); } .c-Black { background: var(--op-black); } .c-Yellow { background: var(--op-yellow); }

.lrow { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 0 14px 0 0; border-bottom: 1px solid var(--rule); min-height: 62px; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; color: inherit; text-decoration: none; }
.lrow:hover { background: var(--panel); }
.lrow .art { position: relative; height: 62px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); background: var(--raised); }
.lrow .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.lrow .art i { position: absolute; top: 0; bottom: 0; right: 0; width: 26%; clip-path: polygon(78% 0, 100% 0, 22% 100%, 0 100%); }
.lrow .name { font-weight: 800; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lrow .end { text-align: right; }
.lrow .end b { font: 400 20px/1 var(--letter); display: inline-block; transform: skewX(-9deg); }
.lrow .end small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field > span { font: 800 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; background: var(--panel); border: 1.5px solid var(--ink); padding: 10px 12px; font-size: 15px; border-radius: 0; appearance: none; -webkit-appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.input:focus { outline: none; box-shadow: 4px 4px 0 var(--ink); }
textarea.input { min-height: 90px; resize: vertical; }
.search { position: relative; }
.search .input { padding-left: 38px; font-size: 16px; height: 46px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); background: var(--panel); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 12px 8px; font: 800 11.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; border-left: 1.5px solid var(--ink); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); background: var(--panel); padding: 6px 9px 5px; font: 800 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.pill .hex { width: 10px; height: 11px; }

/* big choice buttons for the log flow */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.choice { border: 1.5px solid var(--ink); background: var(--panel); padding: 16px 10px; font: 400 18px/1 var(--letter); text-transform: uppercase; }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: 4px 4px 0 var(--spot); }
.choice.W[aria-pressed="true"] { background: var(--spot); color: #fff; box-shadow: 4px 4px 0 var(--ink); }

/* ── Cards grid ─────────────────────────────────────────────── */
.cards-layout { display: grid; gap: 22px; }
@media (min-width: 1040px) { .cards-layout { grid-template-columns: 270px minmax(0,1fr); align-items: start; } .filters { position: sticky; top: 58px; max-height: calc(100vh - 72px); overflow: auto; } }
.filters { display: grid; gap: 18px; padding: 16px; }
.filters-done { display: none; }
@media (min-width: 1040px) { .filters-btn { display: none; } }
@media (max-width: 1039px) {
  .filters { display: none; }
  .filters.open { display: grid; position: fixed; inset: 0; z-index: 40; overflow: auto; align-content: start; border: 0; padding: 20px var(--gutter) 40px; }
  .filters.open .filters-done { display: inline-flex; }
}
.filters h3 { margin: 0 0 8px; font: 800 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.range .input { padding: 7px 8px; font-size: 14px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.tile { position: relative; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.tile .pic { aspect-ratio: 600 / 838; background: var(--raised); border: 1.5px solid var(--ink); overflow: hidden; position: relative; transition: transform .12s, box-shadow .12s; }
.tile:hover .pic { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.tile .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font: 800 12px/1.3 var(--text); color: var(--muted); }
.tile .cap-line { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 12px; }
.tile .cap-line b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap-line span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile .badge { position: absolute; top: 6px; left: 6px; z-index: 2; }
.tile .qty { position: absolute; right: -6px; top: -6px; z-index: 3; min-width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 400 13px/1 var(--letter); }
.tile .adder { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; gap: 6px; opacity: 0; transition: opacity .12s; z-index: 3; }
.tile:hover .adder, .tile:focus-within .adder { opacity: 1; }
@media (hover: none) { .tile .adder { opacity: 1; } }
.more-row { display: flex; justify-content: center; margin-top: 22px; }
.empty { padding: 40px 20px; text-align: center; border: 1.5px dashed var(--rule); color: var(--muted); }
.empty .letter { font-size: 22px; color: var(--ink); margin-bottom: 10px; }

/* ── Card / detail dialog ───────────────────────────────────── */
dialog.sheet { border: 3px solid var(--ink); background: var(--mat); color: var(--ink); padding: 0; width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 10px 10px 0 var(--ink); }
dialog.sheet.narrow { width: min(560px, calc(100vw - 24px)); }
dialog.sheet::backdrop { background: rgba(11,11,11,.55); }
.sheet-in { padding: 22px; overflow: auto; max-height: calc(100vh - 46px); }
.sheet-close { position: sticky; top: 0; float: right; margin: -6px -6px 0 0; z-index: 3; }
.card-detail { display: grid; gap: 22px; }
@media (min-width: 760px) { .card-detail { grid-template-columns: 330px minmax(0,1fr); } }
.card-detail .big { aspect-ratio: 600/838; border: 1.5px solid var(--ink); background: var(--raised); box-shadow: 8px 8px 0 var(--ink); }
.card-detail .big img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); margin: 16px 0; }
.facts > div { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 10px 12px; background: var(--panel); }
.facts b { display: block; font: 400 18px/1.1 var(--letter); margin-top: 6px; }
.effect { background: var(--panel); border: 1.5px solid var(--ink); padding: 14px 16px; white-space: pre-wrap; line-height: 1.55; }
.effect .kw { display: inline-block; background: var(--ink); color: var(--on-ink); font: 800 11px/1 var(--text); padding: 3px 5px 2px; letter-spacing: .04em; margin: 0 1px; }
.effect .kw.don { background: var(--spot); color: #fff; }
.effect .tr { font-weight: 800; }
.prints { display: flex; gap: 8px; flex-wrap: wrap; }
.prints button { width: 64px; padding: 0; border: 1.5px solid var(--rule); background: var(--raised); aspect-ratio: 600/838; overflow: hidden; }
.prints button[aria-pressed="true"] { border-color: var(--spot); box-shadow: 3px 3px 0 var(--spot); }
.prints img { width: 100%; height: 100%; object-fit: cover; }
/* A parallel with no photo anywhere yet (Bandai doesn't publish parallels,
   TCGplayer lists them before it photographs them): its base card's art,
   greyed, with a band that says so (main.js data-standin). */
[data-standin] { position: relative; }
[data-standin] img { filter: grayscale(1); opacity: .7; }
.pic[data-standin]::after, .pocket .art[data-standin]::after, .big[data-standin]::after { content: "Regular art · no parallel photo yet"; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 4px 6px; background: var(--ink); color: var(--on-ink); font: 800 9px/1.25 var(--text); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.big[data-standin]::after { content: "Regular art shown · Bandai doesn't publish parallel art and TCGplayer has no photo of this printing yet"; padding: 8px 12px; font-size: 11px; }

/* ── Deck editor ────────────────────────────────────────────── */
.deck-layout { display: grid; gap: 22px; }
@media (min-width: 1100px) { .deck-layout { grid-template-columns: minmax(0,1fr) 400px; align-items: start; } .deck-side { position: sticky; top: 58px; max-height: calc(100vh - 72px); overflow: auto; } }
.deck-side { display: grid; gap: 14px; }
.deck-leader { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; align-items: center; padding: 12px; }
.deck-leader .pic { aspect-ratio: 600/838; border: 1.5px solid var(--ink); overflow: hidden; background: var(--raised); }
.deck-leader .pic img { width: 100%; height: 100%; object-fit: cover; }
.dl { list-style: none; margin: 0; padding: 0; }
.dl li { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--rule-subtle); }
.dl li:hover { background: var(--raised); }
.dl .n { font: 400 15px/1 var(--letter); transform: skewX(-9deg); text-align: center; }
.dl .nm { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dl .nm small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.dl .step { display: flex; gap: 4px; }
.dl .step button { width: 24px; height: 24px; padding: 0; border: 1.5px solid var(--ink); background: var(--panel); font: 800 14px/1 var(--text); }
.dl .bad .nm { color: var(--spot); }
.dl-group { padding: 8px 10px 4px; font: 800 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.curve { display: grid; grid-template-columns: repeat(11, minmax(0,1fr)); gap: 4px; align-items: end; height: 96px; padding: 12px 14px 0; }
.curve div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.curve i { display: block; width: 100%; background: var(--ink); min-height: 2px; }
.curve i.peak { background: var(--ink); }
.curve span { font: 700 10.5px/1 var(--text); color: var(--muted); }
.curve-x { display: grid; grid-template-columns: repeat(11, minmax(0,1fr)); gap: 4px; padding: 4px 14px 12px; text-align: center; font: 800 10.5px/1 var(--text); }
.issues { list-style: none; margin: 0; padding: 0; }
.issues li { padding: 8px 12px; border-top: 1px solid var(--rule-subtle); font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.issues li::before { content: "■"; color: var(--spot); font-size: 9px; }
.issues li.ok::before { color: var(--ink); }
.hand { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.hand .pic { aspect-ratio: 600/838; border: 1.5px solid var(--ink); overflow: hidden; background: var(--raised); }
.hand .pic img { width: 100%; height: 100%; object-fit: cover; }

/* deck list tiles */
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.deck-card { display: block; text-decoration: none; background: var(--panel); border: 1.5px solid var(--ink); transition: transform .12s, box-shadow .12s; text-align: left; padding: 0; width: 100%; color: inherit; }
.deck-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.deck-card .art { height: 130px; overflow: hidden; position: relative; background: var(--raised); clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.deck-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.deck-card .body { padding: 4px 14px 14px; }
.deck-card h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.deck-card .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 6px; flex-wrap: wrap; }
.deck-card.new { display: grid; place-items: center; min-height: 230px; border-style: dashed; background: none; font: 400 18px/1.1 var(--letter); text-transform: uppercase; }

/* ── Matches ────────────────────────────────────────────────── */
.night { margin-bottom: 18px; }
.night-head { display: grid; grid-template-columns: 136px minmax(0,1fr) auto; align-items: center; gap: 14px; padding-right: 10px; border-bottom: 1.5px solid var(--ink); }
.night-head .art { position: relative; height: 96px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); background: var(--raised); }
.night-head .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.night-head .art i { position: absolute; top: 0; bottom: 0; right: 0; width: 26%; clip-path: polygon(78% 0, 100% 0, 22% 100%, 0 100%); }
.night-head b { display: block; font: 400 18px/1.1 var(--letter); text-transform: uppercase; }
.night-head .ev { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.night-head .lead { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.night-head .lead:hover { text-decoration: underline; }
.night-head .lead i { width: 10px; height: 10px; flex: none; }
.night-head .rec { font: 400 20px/1 var(--letter); transform: skewX(-9deg); white-space: nowrap; }
.mrow { display: grid; grid-template-columns: 30px 92px minmax(0,1fr) auto; overflow: hidden; gap: 12px; align-items: center; border-bottom: 1px solid var(--rule); min-height: 58px; padding-right: 10px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.mrow:hover { background: var(--panel); }
.mrow .art { height: 58px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); background: var(--raised); position: relative; }
.mrow .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.mrow .vs { font-weight: 800; }
.mrow .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.mrow .score { font: 400 17px/1 var(--letter); transform: skewX(-9deg); white-space: nowrap; }

/* matchup grid */
.mgrid { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--panel); }
.mgrid table { border-collapse: collapse; width: 100%; font-size: 13px; }
.mgrid th, .mgrid td { padding: 8px 10px; border-bottom: 1px solid var(--rule-subtle); text-align: left; white-space: nowrap; }
.mgrid th { font: 800 10.5px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--raised); border-bottom: 1.5px solid var(--ink); }
.mgrid td.r { text-align: right; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 10px; background: var(--raised); border: 1px solid var(--ink); min-width: 90px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.bar i.hi { background: var(--spot); }

/* ── Sign in ────────────────────────────────────────────────── */
.signin-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; }
.signin-wrap::before { content: ""; position: absolute; inset: -30%; background: repeating-conic-gradient(from 0deg at 50% 42%, var(--rule-subtle) 0 .6deg, transparent .6deg 6deg); opacity: .6; pointer-events: none; }
.signin { position: relative; width: min(470px, 100%); background: var(--panel); border: 3px solid var(--ink); padding: 34px 30px 26px; box-shadow: 10px 10px 0 var(--spot); }
.signin h1 { font-size: clamp(36px, 7vw, 52px); margin: 14px 0 10px; }
.signin .lede { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.sso { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 16px; margin: 0 0 12px; border: 1.5px solid var(--ink); background: var(--panel); font: 700 16px/1 var(--text); transition: transform .1s; }
.sso:active { transform: scale(.98); }
.sso.apple { background: var(--ink); color: var(--on-ink); }
.sso svg { width: 20px; height: 20px; }
.signin .or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--quiet); font: 800 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.signin .or::before, .signin .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.signin .fine { color: var(--quiet); font-size: 12.5px; margin: 18px 0 0; line-height: 1.5; }
.signin .note { position: absolute; right: -8px; top: -26px; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--on-ink); padding: 12px 16px; font-weight: 700; display: flex; gap: 14px; align-items: center; box-shadow: 5px 5px 0 var(--raised); max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: inherit; font: 800 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }

/* ── Meta shelf ─────────────────────────────────────────────── */
.share { display: grid; grid-template-columns: 92px minmax(0,1fr) 140px 70px; gap: 14px; align-items: center; }
@media (max-width: 640px) { .share { grid-template-columns: 70px minmax(0,1fr) 60px; } .share .bar { display: none; } }
.foot { border-top: 1px solid var(--rule); padding: 22px 0 40px; color: var(--quiet); font-size: 12.5px; }
.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: inherit; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.spacer { flex: 1; }
@media (max-width: 560px) {
  .mrow { grid-template-columns: 26px 60px minmax(0,1fr) auto; gap: 10px; }
  .night-head { grid-template-columns: 92px minmax(0,1fr) auto; gap: 10px; }
  .night-head .art { height: 76px; }
  .lrow { grid-template-columns: 64px minmax(0,1fr) auto; }
  .head { flex-wrap: wrap; }
  .head .actions { margin-left: 0; justify-content: flex-start; }
  .masthead .strip { flex-wrap: wrap; }
}

/* ── Collection home ─────────────────────────────────────────── */
kbd { display: inline-block; min-width: 20px; padding: 2px 5px 1px; border: 1.5px solid var(--ink); border-bottom-width: 3px; background: var(--panel); font: 800 11px/1.2 var(--text); text-align: center; color: var(--ink); }
.cbar { display: block; height: 6px; background: var(--raised); border: 1px solid var(--ink); position: relative; margin: 8px 0 5px; }
.cbar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.set-plate.done .cbar i { background: var(--spot); }
.bpage.complete .bpage-head em { background: var(--ink); }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.set-plate { display: grid; grid-template-rows: 96px auto; text-decoration: none; background: var(--panel); border: 1.5px solid var(--ink); transition: transform .12s, box-shadow .12s; }
.set-plate:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.set-plate.done:hover { box-shadow: 5px 5px 0 var(--spot); }
.sp-art { overflow: hidden; background: var(--raised); clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
.sp-art img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { padding: 6px 12px 12px; display: block; min-width: 0; }
.sp-body b { display: block; margin-top: 7px; font-weight: 800; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-body small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.set-plate.all { grid-template-rows: auto; border-width: 3px; }
.set-plate.all .sp-body { padding: 14px 16px; }
.set-plate.all b { font: 400 22px/1 var(--letter); text-transform: uppercase; }
.back-binder { display: grid; grid-template-columns: 140px minmax(0,1fr) auto; gap: 16px; align-items: center; text-decoration: none; padding-right: 16px; overflow: hidden; }
.back-binder img { height: 76px; width: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.back-binder b { display: block; font-size: 16px; margin: 4px 0 2px; }

/* ── The binder ──────────────────────────────────────────────── */
body.binder-mode .foot { display: none; }
.bview { padding: 0 var(--gutter) 24px; max-width: 1800px; margin: 0 auto; }
.bbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.bbar .crumb { font: 400 26px/1 var(--letter); text-decoration: none; padding: 0 4px; }
.bbar-art { height: 38px; width: 68px; object-fit: cover; border: 1.5px solid var(--ink); }
.bbar-title { min-width: 0; }
.bbar-title h1 { margin: 3px 0 0; font: 400 20px/1 var(--letter); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22vw; }
.bbar-done { background: none; border: 0; padding: 0 4px; text-align: left; min-width: 180px; font-size: 13px; }
.bbar-done .cbar { margin: 5px 0 0; }
.bb-head { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.bb-head .bbar-title { flex: 0 1 auto; }
.bb-head .bbar-title h1 { max-width: none; }
.bb-acts { display: flex; align-items: center; gap: 8px; }
.bshow > summary.on { background: var(--ink); color: var(--on-ink); }
.bshow .menu { min-width: 170px; }
.bshow .menu button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
/* search: an icon until you open it, then it takes the title's place */
.bsearch { position: relative; display: flex; align-items: center; }
.bsearch-icon { width: 36px; height: 34px; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--ink); padding: 0; }
.bsearch-icon svg { width: 17px; height: 17px; }
.bsearch .input { width: 0; padding: 0; border-width: 0; height: 34px; font-size: 15px; transition: width .15s; }
.bbar.searching .bb-head { display: none; }
.bbar.searching .bsearch { flex: 1; }
.bbar.searching .bsearch-icon { position: absolute; left: 0; border: 0; background: none; pointer-events: none; }
.bbar.searching .bsearch .input { width: 100%; padding: 0 12px 0 36px; border-width: 1.5px; }
.menu-d { position: relative; }
.menu-d > summary { list-style: none; cursor: pointer; }
.menu-d > summary::-webkit-details-marker { display: none; }
.menu-d .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); min-width: 280px; display: grid; }
.menu-d .menu button { background: none; border: 0; border-bottom: 1px solid var(--rule-subtle); padding: 11px 14px; text-align: left; font-weight: 700; font-size: 13.5px; }
.menu-d .menu a { padding: 11px 14px; border-bottom: 1px solid var(--rule-subtle); font-weight: 700; font-size: 13.5px; text-decoration: none; color: inherit; }
.menu-d .menu button:hover, .menu-d .menu a:hover { background: var(--raised); }
.bfoot { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0 0; flex-wrap: wrap; }
.bfoot .pagemap { flex: 0 1 auto; justify-content: center; }
.pager { display: flex; align-items: center; gap: 4px; position: relative; }
.pager > button { height: 30px; min-width: 30px; background: var(--panel); border: 1.5px solid var(--ink); font: 400 15px/1 var(--letter); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; }
.pager > button:disabled { opacity: .3; cursor: default; }
.pager-label { font: 800 12px/1 var(--text) !important; letter-spacing: .06em; text-transform: uppercase; }
.pager-label span { color: var(--muted); }
.pager-label svg { width: 14px; height: 14px; }
.bbar .pager > button { height: 34px; }
.pager-turn { display: none !important; }
@media (max-width: 760px) { .pager-turn { display: inline-flex !important; } }
.findbox { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 340px; background: var(--panel); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 10px; }
.findbox input { width: 100%; border: 1.5px solid var(--ink); padding: 9px 10px; font-size: 15px; background: var(--panel); border-radius: 0; }
.findbox input:focus { outline: none; }
#find-hits { display: grid; margin-top: 6px; max-height: 50vh; overflow: auto; }
#find-hits button { display: grid; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule-subtle); padding: 8px 6px; }
#find-hits button:hover, #find-hits button:first-child { background: var(--raised); }
#find-hits span { font-size: 12px; color: var(--muted); }
#find-hits p { margin: 6px; font-size: 13px; }
.pagemap { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; min-width: 200px; max-height: 50px; overflow: hidden; }
.pm { width: 14px; height: 20px; padding: 0; border: 1.5px solid var(--rule); background: var(--panel); position: relative; }
.pm i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--f) * 100%); background: var(--quiet); }
.pm.full i { background: var(--ink); }
.pm.on { border-color: var(--ink); border-width: 2px; }

.stage { --pw: 150px; }
.spread { display: flex; align-items: center; justify-content: center; gap: 22px; }
.turn { width: 34px; height: 72px; background: var(--panel); border: 1.5px solid var(--ink); font: 400 22px/1 var(--letter); flex: none; padding: 0; }
.turn:disabled { opacity: .2; cursor: default; }
.turn:not(:disabled):hover { background: var(--ink); color: var(--on-ink); }
.bpage { background: var(--panel); border: 3px solid var(--ink); padding: 0 12px 12px; box-shadow: 6px 6px 0 var(--raised); }
.bpage.complete { box-shadow: 6px 6px 0 var(--ink); }
.bpage.blank { width: calc(var(--cols) * var(--pw) + (var(--cols) - 1) * 10px + 24px); align-self: stretch; display: grid; place-items: center; background: var(--raised); }
.bpage-head { display: flex; align-items: baseline; gap: 10px; height: 30px; padding-top: 8px; font-size: 12px; }
.bpage-head b { font: 800 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.bpage-head span { color: var(--muted); font-weight: 600; }
.bpage-head em { margin-left: auto; font-style: normal; font: 800 10.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px 2px; background: var(--raised); }
.bpage.complete .bpage-head em { color: #fff; }
.pockets { display: grid; grid-template-columns: repeat(var(--cols), var(--pw)); gap: 10px; }
.pocket { position: relative; width: var(--pw); }
.pocket .frame { position: relative; aspect-ratio: 600 / 838; background: var(--raised); border: 1px solid var(--rule); }
.pocket.empty-slot .frame { border-style: dashed; background: none; }
.pocket.gap { visibility: hidden; }
.pocket .art { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.pocket .art img { width: 100%; height: 100%; object-fit: cover; }
.stage.dimmed .pocket.missing .art img { filter: grayscale(1) contrast(.85); opacity: .28; }
.stage.faded .pocket.missing .art img { opacity: .45; }
.pocket.missing .frame { border-style: dashed; border-color: var(--quiet); }
.pocket.has .frame { border-color: var(--ink); }
.pocket.full .frame { box-shadow: 0 0 0 2px var(--ink); }
.pocket .bigplus { position: absolute; inset: 0; display: grid; place-items: center; font: 400 calc(var(--pw) * .3)/1 var(--letter); color: var(--ink); opacity: .35; }
.pocket.copy.missing .art { cursor: copy; }
.pbadge { position: absolute; top: -7px; right: -7px; z-index: 2; min-width: 26px; height: 24px; padding: 0 5px; display: grid; place-items: center; grid-auto-flow: column; background: var(--panel); color: var(--ink); border: 1.5px solid var(--ink); font: 400 13px/1 var(--letter); }
.pbadge small { font: 700 9px/1 var(--text); opacity: .7; margin-left: 1px; }
.pocket.full .pbadge { background: var(--ink); color: var(--on-ink); }
.ptag { position: absolute; left: 5px; top: 5px; z-index: 2; background: var(--ink); color: var(--on-ink); font: 800 9px/1 var(--text); letter-spacing: .1em; padding: 3px 4px 2px; }
.ptag.spot { background: var(--spot); color: #fff; }
.wstar { position: absolute; left: 5px; bottom: 5px; z-index: 2; color: var(--ink); font-size: 16px; line-height: 1; text-shadow: 0 0 2px var(--panel), 0 0 2px var(--panel); }
.pocket .ctl { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; background: var(--panel); border: 1.5px solid var(--ink); opacity: 0; transition: opacity .1s; box-shadow: 3px 3px 0 var(--ink); }
.pocket:hover .ctl, .pocket.kbd-hot .ctl, .pocket:focus-within .ctl { opacity: 1; }
@media (hover: none) { .pocket .ctl { opacity: 1; bottom: 4px; box-shadow: none; } .pocket .ctl button { width: 24px; height: 22px; font-size: 14px; } .pocket .ctl b { min-width: 20px; font-size: 11px; } }
.pocket .ctl button { width: 30px; height: 28px; border: 0; background: none; font: 800 17px/1 var(--text); padding: 0; }
.pocket .ctl button:last-child { background: var(--ink); color: var(--on-ink); }
.pocket .ctl button:disabled { opacity: .25; cursor: default; }
.pocket .ctl b { min-width: 30px; text-align: center; font: 400 13px/1 var(--letter); padding: 0 3px; }
.pocket .under { display: grid; height: 36px; padding-top: 5px; line-height: 1.25; white-space: nowrap; overflow: hidden; }
.pocket .under .nm { font-size: 12px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.pocket .under small { font-size: 10.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.pocket.missing .under .nm { color: var(--muted); }
.pocket.kbd-hot .frame { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 5px 5px 0 var(--ink); }
.pocket.bumped .frame { animation: pop .22s ease-out; }
@keyframes pop { 0% { transform: scale(.94); } 100% { transform: scale(1); } }
.keys { text-align: center; color: var(--quiet); font-size: 12px; margin: 14px 0 0; line-height: 2; }
@media (max-width: 999px) { .keys { display: none; } .bbar-title h1 { max-width: 60vw; } }
@media (max-width: 699px) { .turn { display: none; } .bpage { padding: 0 8px 8px; } .pockets { gap: 8px; } .spread { gap: 0; } }

/* the key tip, folded into a corner after "Got it" */
.keytip { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 300px; background: var(--panel); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 16px 12px; }
.keytip-face { position: absolute; top: -16px; left: -16px; width: 36px; height: 36px; background: var(--ink); color: var(--on-ink); border: 0; display: grid; place-items: center; font-size: 18px; }
.keytip .note { margin: 2px 0 10px 14px; font-size: 16px; }
.keytip dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0 0 12px; align-items: center; font-size: 13px; }
.keytip dt { white-space: nowrap; } .keytip dd { margin: 0; font-weight: 600; }
.keytip .quiet { font-size: 12px; }
.keytip.folded { width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
.keytip.folded .keytip-body { display: none; }
.keytip.folded .keytip-face { position: static; }
.keytip.folded:hover .keytip-body { display: block; position: absolute; right: 0; bottom: 44px; width: 300px; background: var(--panel); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 16px 12px; }

/* card sheet: your copies per print */
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule-subtle); font-size: 13.5px; }
.own-row.here b:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.own-row .step { display: flex; align-items: center; gap: 8px; }
.own-row .step b { min-width: 22px; text-align: center; font-size: 18px; }
.rline { display: grid; grid-template-columns: 120px minmax(0,1fr) 64px; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 700; }
.rline .cbar { margin: 0; }
.rline b { text-align: right; }

/* ── Cards: filter column + binder ───────────────────────────── */
.cardsx { display: grid; gap: 18px; padding: 14px var(--gutter) 20px; max-width: 2000px; margin: 0 auto; }
@media (min-width: 1040px) { .cardsx { grid-template-columns: 250px minmax(0,1fr); align-items: start; } .cardsx .filters { position: sticky; top: 58px; max-height: calc(100vh - 72px); overflow: auto; gap: 14px; padding: 14px; } }
.cmain { min-width: 0; }
.cardsx .bview { padding: 0; max-width: none; }
.cardsx .bbar { padding-top: 0; flex-wrap: nowrap; }
@media (max-width: 760px) { .cardsx .bbar { flex-wrap: wrap; } .bb-head { flex-basis: 100%; } .bbar .bsearch { margin-left: auto; } .bbar.searching .pager { display: none; } .bb-acts { width: 100%; gap: 6px; } .bb-acts > *, .bb-acts summary { flex: 1 1 auto; } .bb-acts .ghost, .bb-acts .btn.sm { width: 100%; padding: 8px 6px 7px; font-size: 10.5px; letter-spacing: .06em; box-shadow: none; } .bbar-done { min-width: 0; flex: none; white-space: nowrap; } .bbar-done .quiet { display: none; } }

/* ── Deck page ───────────────────────────────────────────────── */
.dk { padding: 14px var(--gutter) 40px; max-width: 2000px; margin: 0 auto; }
.dk-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.dk-leader { width: 62px; aspect-ratio: 600/838; padding: 0; border: 1.5px solid var(--ink); background: var(--raised); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; flex: none; display: grid; place-items: center; }
.dk-leader img { width: 100%; height: 100%; object-fit: cover; }
.dk-title { min-width: 0; flex: 1 1 320px; }
.dk-name { display: block; width: 100%; max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: none; font-size: clamp(24px, 3vw, 38px); padding: 4px 0 2px; margin: 4px 0 4px; color: var(--ink); }
.dk-name:hover { border-bottom-color: var(--rule); }
.dk-name:focus { outline: none; border-bottom-color: var(--spot); }
.dk-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dk-meta b { color: var(--ink); }
.dk-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dk-body { display: grid; gap: 22px; }
@media (min-width: 1100px) {
  .dk-body { grid-template-columns: minmax(0,1fr) 340px; align-items: start; }
  .dk.adding .dk-body { grid-template-columns: minmax(0,1fr) 330px; }
  .dk-rail { position: sticky; top: 58px; max-height: calc(100vh - 72px); overflow: auto; }
}
.dk-rail { display: grid; gap: 12px; }
.dk-tools { gap: 8px 12px; margin-bottom: 4px; }
.dk-tools .seg button { padding: 7px 10px 6px; font-size: 10.5px; }
.dk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 14px; }
.dk-card { position: relative; }
.dk-card .pic { display: block; width: 100%; aspect-ratio: 600/838; padding: 0; border: 1.5px solid var(--ink); background: var(--raised); overflow: hidden; cursor: zoom-in;
  box-shadow: calc(var(--k) * 2px - 2px) calc(var(--k) * 2px - 2px) 0 -1px var(--panel), calc(var(--k) * 2px - 2px) calc(var(--k) * 2px - 2px) 0 0 var(--ink); transition: transform .12s; }
.dk-card:hover .pic { transform: translate(-2px,-2px); }
.dk-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.dk-card .qty { position: absolute; left: -6px; top: -6px; z-index: 2; min-width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 400 16px/1 var(--letter); }
.dk-card .need { position: absolute; right: 4px; top: 4px; z-index: 2; background: var(--panel); color: var(--spot); border: 1.5px solid var(--spot); font: 800 9.5px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 3px 4px 2px; }
.dk-card.bad .pic { outline: 3px solid var(--spot); outline-offset: 2px; }
.dk-ctl { position: absolute; left: 50%; top: calc(50% - 20px); transform: translateX(-50%); display: flex; z-index: 3; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); opacity: 0; transition: opacity .1s; }
.dk-card:hover .dk-ctl, .dk-card:focus-within .dk-ctl { opacity: 1; }
@media (hover: none) { .dk-ctl { opacity: 1; top: auto; bottom: 34px; } }
.dk-ctl button { width: 36px; height: 32px; border: 0; background: var(--panel); font: 800 18px/1 var(--text); padding: 0; }
.dk-ctl button:last-child { background: var(--ink); color: var(--on-ink); }
.dk-under { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12px; }
.dk-under b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.dk-under span { color: var(--muted); white-space: nowrap; font-weight: 700; }
.dk-text { background: var(--panel); border: 1.5px solid var(--ink); padding: 16px 18px; font: 600 14px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; margin: 10px 0 0; }
.dk-table td { vertical-align: middle; }
.dk-table tr.grp td { background: var(--raised); font: 800 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dk-table tr.bad td { color: var(--spot); }
.dk-table .step { display: inline-flex; align-items: center; gap: 6px; }
.dk-table .step button { width: 24px; height: 24px; padding: 0; border: 1.5px solid var(--ink); background: var(--panel); font: 800 14px/1 var(--text); }
.dk-table .step b { min-width: 16px; text-align: center; font: 400 15px/1 var(--letter); }
.dk.adding .cards-layout { grid-template-columns: 230px minmax(0,1fr); }
@media (max-width: 1039px) { .dk.adding .cards-layout { grid-template-columns: minmax(0,1fr); } }

/* binder extras: what's showing, added this visit, pack log, peek, trade */
.showing { display: inline-flex; gap: 8px; align-items: center; padding: 4px 8px; background: var(--raised); border: 1px solid var(--ink); font-size: 12px; }
.visit { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.visit-cards { display: flex; gap: 4px; flex-wrap: wrap; }
.visit-cards button { position: relative; width: 26px; padding: 0; border: 1px solid var(--ink); background: var(--raised); aspect-ratio: 600/838; overflow: hidden; }
.visit-cards img { width: 100%; height: 100%; object-fit: cover; }
.visit-cards i { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--on-ink); font: 800 9px/1 var(--text); padding: 2px 3px; font-style: normal; }
.pack-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 12px; min-height: 20px; }
.pk-card { position: relative; display: grid; gap: 3px; }
.pk-card img { width: 100%; aspect-ratio: 600/838; object-fit: cover; border: 1.5px solid var(--ink); background: var(--raised); }
.pk-card.new img { box-shadow: 3px 3px 0 var(--ink); }
.pk-card b { position: absolute; right: -4px; top: -4px; background: var(--ink); color: var(--on-ink); font: 400 11px/1 var(--letter); padding: 3px 4px; }
.pk-card b:empty { display: none; }
.pk-card small { font-size: 10.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-bad { align-self: start; border: 1.5px dashed var(--spot); color: var(--spot); padding: 8px; font: 700 12px/1 ui-monospace, Menlo, monospace; }
#peek { position: fixed; z-index: 45; width: 300px; background: var(--panel); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 8px; pointer-events: none; }
#peek img { width: 100%; aspect-ratio: 600/838; object-fit: cover; background: var(--raised); }
#peek span { display: block; font-size: 12px; margin-top: 6px; color: var(--muted); }
#peek b { color: var(--ink); }
.warn { border-left: 4px solid var(--spot); padding: 6px 10px; background: var(--raised); font-size: 13px; }
.trade-list { max-height: 280px; overflow: auto; border-top: 1.5px solid var(--ink); }
.want-step { display: inline-flex; align-items: center; gap: 8px; }
.want-step b { min-width: 20px; text-align: center; font-size: 18px; }

/* deck page, round 2 */
.dk-lead { display: grid; justify-items: center; gap: 6px; flex: none; }
.dk-lead .link { font-size: 11.5px; }
.dk-count { font: 400 22px/1 var(--letter); transform: skewX(-9deg); color: var(--ink); }
.dk-count small { font: 700 12px/1 var(--text); color: var(--muted); }
.dk-count.off { color: var(--spot); }
.dk-card .need.ext { top: auto; bottom: 30px; color: var(--ink); border-color: var(--ink); }
.dk-grid.shelf .pic { opacity: .82; border-style: dashed; }
.tile .own { position: absolute; left: 6px; bottom: 30px; z-index: 2; background: var(--panel); border: 1.5px solid var(--ink); font: 800 9.5px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 3px 4px 2px; }
.tile .own.none { color: var(--muted); border-color: var(--rule); }
.tile .own.short { color: var(--spot); border-color: var(--spot); }
.grid.dense .tile .own { bottom: 6px; }
.dk-drawer-bar { display: none; }
.ver { padding: 10px 0; border-top: 1px solid var(--rule-subtle); }
.ver-diff { margin: 6px 0 0; font-size: 12.5px; display: flex; gap: 4px 10px; flex-wrap: wrap; }
.ver-diff .plus { font-weight: 800; } .ver-diff .minus { color: var(--muted); }
.hand .pic.drawn { box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 1099px) {
  /* the builder's deck list becomes a drawer on the bottom edge */
  .dk.adding .dk-rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--mat); border-top: 3px solid var(--ink); max-height: 64px; overflow: hidden; display: block; padding: 0 var(--gutter); transition: max-height .2s; }
  .dk.adding .dk-rail.open { max-height: 78vh; overflow: auto; }
  .dk.adding .dk-drawer-bar { display: flex; align-items: center; gap: 14px; width: 100%; height: 58px; background: none; border: 0; padding: 0; text-align: left; font-size: 13px; font-weight: 700; position: sticky; top: 0; background: var(--mat); z-index: 2; }
  .dk.adding .dk-rail.open .dk-drawer-bar .label::after { content: ""; }
  .dk.adding .dk-drawer { display: grid; gap: 12px; padding-bottom: 20px; }
  .dk.adding { padding-bottom: 90px; }
  .mini-curve { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
  .mini-curve i { width: 6px; background: var(--ink); min-height: 1px; }
}
@media (max-width: 640px) {
  .dk-head { gap: 10px; }
  .dk-leader { width: 44px; }
  .dk-name { font-size: 22px; }
  .dk-actions .ghost { padding: 7px 9px 6px; font-size: 10.5px; }
  .dk-actions .btn { padding: 10px 12px 9px; font-size: 12px; box-shadow: 4px 4px 0 var(--spot); }
  .dk-tools .label { display: none; }
}
.seg.mkt { vertical-align: middle; margin-left: 4px; }
.seg.mkt button { padding: 5px 7px 4px; font-size: 10px; }

/* round 3 */
.prints button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ptag-s { font-style: normal; background: var(--ink); color: var(--on-ink); font: 800 8.5px/1 var(--text); padding: 2px 3px 1px; letter-spacing: .08em; }
.rv { padding: 8px 0; border-top: 1px solid var(--rule-subtle); }
.rv-arts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rv-arts button { width: 70px; padding: 0; border: 1.5px solid var(--rule); background: var(--panel); display: grid; }
.rv-arts img { width: 100%; aspect-ratio: 600/838; object-fit: cover; background: var(--raised); }
.rv-arts small { font: 700 10px/1.2 var(--text); padding: 3px 2px; }
.rv-arts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.rv-skip { width: auto !important; padding: 0 10px !important; font: 800 11px/1 var(--text); text-transform: uppercase; letter-spacing: .1em; }
.in-decks { margin: 0 0 8px; font-size: 13px; } .in-decks a { font-weight: 700; }
@media (max-width: 640px) {
  /* adding on a phone: one line of header, the results right under it */
  .dk.adding .dk-lead, .dk.adding .dk-actions .ghost, .dk.adding .dk-actions details, .dk.adding .dk-meta > span { display: none; }
  .dk.adding .dk-head { flex-wrap: nowrap; padding-bottom: 8px; margin-bottom: 8px; }
  .dk.adding .dk-title .label { display: none; }
  .dk.adding .dk-name { font-size: 18px; margin: 0; }
  .dk.adding .dk-meta { margin-top: 2px; }
}
.set-plate.album { grid-template-rows: auto auto; border-style: solid; border-width: 1.5px 1.5px 1.5px 6px; }
.cond-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 0 0 6px; }
.cond-edit { background: var(--raised); border: 1px solid var(--ink); padding: 8px 10px; margin: 0 0 8px; display: grid; gap: 6px; }
.cond-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; }
.cond-row .step { display: flex; align-items: center; gap: 6px; } .cond-row .icon-btn { width: 26px; height: 26px; }
.cond-row .input { padding: 5px 26px 5px 8px; font-size: 13px; }
.input.inline { display: inline-block; width: auto; padding: 3px 24px 3px 6px; font-size: 12.5px; }
.prints button { position: relative; }
.prints button.marked { border-color: var(--ink); border-width: 2px; }
.prints button i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--on-ink); font: 800 8.5px/1.2 var(--text); font-style: normal; padding: 2px; text-transform: uppercase; }
.tile .adder { bottom: auto; top: 40%; }
.dk-card .need.art { color: var(--ink); border-color: var(--ink); }
.moves { font-size: 12.5px; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.move { font-weight: 800; } .move.up { color: var(--ink); } .move.down { color: var(--muted); }
.poster-preview { width: 100%; border: 1.5px solid var(--ink); background: var(--raised); display: block; }

/* Price history on the card page (components.drawHistory): the impact panel. */
.price-history { margin-top: 18px; display: grid; gap: 8px; min-height: 40px; }
.ph-head { display: flex; justify-content: space-between; align-items: baseline; }
.ph-head .label { margin: 0; }
.ph-head b { font: 400 15px/1 var(--letter); transform: skewX(-10deg); } .ph-head b.up { color: var(--spot); }
.ph-seg { display: flex; } .ph-seg button { flex: 1; padding: 8px 6px 7px; font-size: 10.5px; }
.ph-panel { position: relative; height: 220px; background: var(--panel); clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); touch-action: pan-y; cursor: crosshair; user-select: none; }
.ph-panel .frame { fill: none; stroke: var(--ink); stroke-width: 5; vector-effect: non-scaling-stroke; }
.ph-panel svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.ph-panel .rays { fill: var(--ink); opacity: .07; }
.ph-panel .tone { fill: var(--ink); } .ph-panel .tone circle { fill: var(--ink); }
#ph-tone circle { fill: var(--ink); }
.ph-panel .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: miter; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.ph-panel .cursor { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--spot); pointer-events: none; }
.ph-fig { position: absolute; left: 14px; bottom: 18px; display: grid; gap: 2px; pointer-events: none; }
.ph-fig .label { color: var(--muted); margin: 0; }
.ph-fig b { font: 400 clamp(30px, 6vw, 40px)/1 var(--letter); transform: skewX(-10deg); transform-origin: left bottom; }
.price-history.active .ph-fig .label { color: var(--ink); } .price-history.active .ph-fig b { color: var(--spot); }
.ph-high { position: absolute; right: 58px; top: 16px; display: grid; justify-items: end; gap: 6px; pointer-events: none; }
.ph-high .sfx { font: 400 28px/1 var(--letter); color: var(--spot); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; transform: skewX(-12deg) rotate(-6deg); }
.ph-x { display: flex; justify-content: space-between; font: 600 10px/1 var(--text); color: var(--muted); }
.ph-cap, .ph-empty { margin: 0; font-size: 11.5px; color: var(--quiet); }
.ph-empty { font-size: 13px; color: var(--muted); border: 1.5px solid var(--ink); background: var(--panel); padding: 12px; }

/* ── The fan: in a binder pocket, the card's other printings hidden behind it
   until you point at it, then swung out to the right like manga volumes off a
   shelf. The card steps back a little as they come out, so the pocket beside
   it stays mostly in view. Each spine: what you own of it, − / +, its kind. ── */
.pocket.fanned { --sp: 22px; --sl: 5px; }
.pocket.fanned:hover, .pocket.fanned:focus-within, .pocket.fanned.open { z-index: 20; }
.pocket.fanned .frame { transform-origin: 0 50%; transition: transform .26s cubic-bezier(.2,1.4,.4,1), box-shadow .12s; }
.pocket.fanned:hover .frame, .pocket.fanned:focus-within .frame, .pocket.fanned.open .frame { transform: scale(.9); box-shadow: 5px 5px 0 var(--spot); }
.pocket.fanned .art { z-index: 5; background: var(--raised); }
.pocket.fanned .ptag, .pocket.fanned .wstar, .pocket.fanned .ctl { z-index: 6; }
.pocket.fanned .pbadge { z-index: 6; transition: opacity .12s; }
.pocket.fanned:hover .pbadge, .pocket.fanned:focus-within .pbadge, .pocket.fanned.open .pbadge { opacity: 0; }
.leaf { position: absolute; inset: -1px; border: 1.5px solid var(--ink); background: var(--raised); z-index: calc(5 - var(--i));
  transform-origin: 0 100%; transform: none; visibility: hidden;
  transition: transform .3s cubic-bezier(.2,1.5,.4,1), visibility 0s .3s; }
.pocket.fanned:hover .leaf, .pocket.fanned:focus-within .leaf, .pocket.fanned.open .leaf { visibility: visible; transition-delay: 0s;
  transform: translateX(calc(var(--i) * (var(--sp) + var(--sl)))) rotate(calc(var(--i) * 2.5deg)); }
.leaf-pic { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.leaf-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The spine is the art itself: no fill, just the controls on small plates.
   A printing you own in colour, one you do not in grey. Chase arts in red. */
.leaf-pic img { filter: grayscale(1) contrast(.9); opacity: .7; transition: filter .15s, opacity .15s; }
.leaf.have .leaf-pic img { filter: none; opacity: 1; }
.leaf .spine { position: absolute; top: 0; right: 0; bottom: 0; width: var(--sp); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 0 4px; overflow: hidden; pointer-events: none; color: var(--ink); }
.leaf .spine > * { pointer-events: auto; }
.leaf .spine button { flex: none; width: 19px; height: 19px; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); font: 400 15px/1 var(--letter); cursor: pointer; }
.leaf .spine button:hover:not(:disabled) { background: var(--ink); color: var(--on-ink); }
.leaf .spine button:active:not(:disabled) { transform: translate(1px,1px); }
.leaf .spine button:disabled { color: var(--quiet); cursor: default; }
.leaf .spine b { flex: none; min-width: 19px; text-align: center; font: 400 13px/1 var(--letter); padding: 3px 2px 2px; background: var(--panel); border: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.leaf .spine em { min-height: 0; overflow: hidden; margin-top: 3px; font: 400 10px/1 var(--letter); font-style: normal; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: -1px; padding: 4px 2px; background: var(--ink); color: var(--on-ink); }
.leaf .spine u { flex: none; text-decoration: none; font: 400 11px/1 var(--letter); min-width: 17px; text-align: center; padding: 2px 0 1px; background: var(--panel); color: var(--ink); border: 1.5px solid var(--ink); }
.leaf .spine i { flex: none; margin-top: auto; font: 400 10px/1 var(--letter); font-style: normal; background: var(--spot); color: #fff; padding: 3px 3px 2px; transform: rotate(-8deg); }
.leaf.have .spine b { background: var(--ink); color: var(--on-ink); }
.leaf.chase .spine em { background: var(--spot); color: #fff; }
.leaf.chase .spine button, .leaf.chase .spine b, .leaf.chase .spine u { border-color: var(--spot); color: var(--spot); }
.leaf.chase .spine button:hover:not(:disabled) { background: var(--spot); color: #fff; }
.leaf.chase.have .spine b { background: var(--spot); color: #fff; }
/* redrawn after a − / +: already out, no second swing */
.pocket.fanned.open .leaf, .pocket.fanned.open .frame { transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .leaf { transition: none; } }
