/* Queen's Blood, evening ground. Asaban "Twelve Months in Hand" language: lacquer + gold structure, washi cards, vermilion vs indigo players. */
:root {
  --lacquer: #131110; --lacquer-2: #1B1815; --lacquer-3: #262019;
  --washi: #EFE6D2; --washi-2: #E6DBC2; --cream: #F2E8D5; --ink: #1C1B19; --ink-muted: rgba(28,27,25,.66);
  --gold: #C9A227; --gold-ink: #8A6F14; --gold-line: rgba(201,162,39,.34); --gold-line-2: rgba(201,162,39,.6); --gold-soft: rgba(201,162,39,.12);
  --verm: #C73E2E; --verm-text: #B3321F; --verm-l: #D9503E;
  --indigo: #3E4A73; --indigo-l: #7C8BC4;
  --muted: #8A7F6E; --text: var(--cream);
  --p0: var(--verm-l); --p0-fill: var(--verm); --p0-soft: rgba(199,62,46,.2); --p0-line: rgba(217,80,62,.55);
  --p1: var(--indigo-l); --p1-fill: var(--indigo); --p1-soft: rgba(124,139,196,.18); --p1-line: rgba(124,139,196,.55);
  --enh: #6FBF7A; --enf: #E0705F; --enh-ink: #2E7D3A; --enf-ink: #B3321F;
  /* Latin fonts with normal vertical metrics, so text centres inside pills/buttons/chips without per-font overrides. Bodoni Moda carries an optical-size axis (6-96): sturdier hairlines at chip size, finer at score size. Hiragino Mincho stays in the stack only for the CJK legendary glyph. */
  --display: "Bodoni Moda", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --radius: 12px; --radius-s: 8px; --gap: 8px;
  --k: 1; --kt: var(--k); --tile: calc(128px * var(--kt)); --tw: var(--tile); --th: var(--tile);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--lacquer); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; font-style: normal; font-synthesis: none; letter-spacing: 0; color: var(--cream); }
h1 { font-size: 40px; line-height: 1.1; } h2 { font-size: 22px; } h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* buttons: 40px pills, gold hairline; vermilion is action */
.btn { height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: transparent; color: var(--cream); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn:disabled { opacity: .35; cursor: default; background: transparent; border-color: var(--gold-line); }
.btn.primary { background: var(--verm); color: #FCF8EC; border-color: var(--verm); }
.btn.primary:hover { background: var(--verm-l); border-color: var(--verm-l); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); }

.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }
#match.active, #builder.active { height: 100vh; min-height: 0; overflow: hidden; }

/* top bar */
.topbar { min-height: 56px; display: flex; align-items: center; gap: 16px; padding: env(safe-area-inset-top, 0px) calc(24px + env(safe-area-inset-right, 0px)) 0 calc(24px + env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--gold-line); background: rgba(19,17,16,.72); backdrop-filter: blur(8px); }
.topbar .brand { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.topbar .brand .mark { width: 18px; height: 18px; border-radius: 3px; background: var(--verm); display: inline-block; box-shadow: inset 0 0 0 2px rgba(19,17,16,.6), inset 0 0 0 3px var(--verm); }
.topbar .spacer { flex: 1; }
.topbar .btn .short { display: none; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gold-line); font-size: 12px; color: var(--muted); }

/* offline status: the one visible surface for the service worker. Plain language, never a bare glyph. */
.offchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-soft); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* `display` above beats the default [hidden] rule, so restore it or the chip lingers as an empty dot. */
.offchip[hidden] { display: none; }
.offchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: offpulse 1.4s ease-in-out infinite; }
.offchip.ok { color: var(--gold); border-color: var(--gold-line-2); }
.offchip.ok::before { background: var(--gold); animation: none; }
@keyframes offpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .offchip::before { animation: none; } }

.update-pill { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: var(--washi); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.update-pill.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.update-pill .go { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--verm); color: var(--cream); font-weight: 600; }

/* ------------------------------------------------ menu */
.menu-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 56px; width: 100%; display: flex; flex-direction: column; gap: 32px; }
.menu-head p { margin: 8px 0 0; max-width: 560px; }
.pick { display: flex; flex-direction: column; gap: 14px; }
.pick-head { display: flex; align-items: baseline; gap: 12px; }
.pick-head h2 { white-space: nowrap; }
.pick-head .small { min-width: 0; }
.deck-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 12px; }
.deck-tile { position: relative; display: grid; grid-template-columns: 104px 1fr; min-height: 116px; border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden; background: var(--lacquer-2); color: var(--cream); text-align: left; padding: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; font: inherit; }
.deck-tile .art { position: relative; background: var(--lacquer-3); overflow: hidden; }
.deck-tile .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .3s ease; }
.deck-tile .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,24,21,0) 55%, var(--lacquer-2) 100%), linear-gradient(0deg, rgba(27,24,21,.5), rgba(27,24,21,0) 60%); }
.deck-tile .art .q { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--gold); opacity: .8; }
.deck-tile .body { padding: 14px 16px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deck-tile .name { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--cream); }
.deck-tile .desc { font-size: 12.5px; color: rgba(242,232,213,.7); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-tile .meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.deck-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.deck-tile .tile-edit { position: absolute; right: 10px; bottom: 10px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: rgba(19,17,16,.7); color: var(--cream); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; z-index: 2; }
.deck-tile .tile-edit:hover { border-color: var(--gold); background: var(--gold-soft); }
.deck-tile.has-edit .meta { padding-right: 60px; }
.deck-tile.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 12px 28px rgba(0,0,0,.45); }
.deck-tile.selected::after { content: "\2713"; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--lacquer); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.deck-tile.random { background: linear-gradient(135deg, rgba(62,74,115,.35), var(--lacquer-2)); }
/* Random (rolled) deck: hero art is a card actually in the roll; Reroll pill always visible; a quick lacquer flip on each new roll */
.deck-tile.roll { background: linear-gradient(135deg, rgba(212,168,67,.14), var(--lacquer-2) 60%); }
.deck-tile .tile-edit.reroll { display: inline-flex; align-items: center; gap: 5px; }
.deck-tile .tile-edit.reroll .die { font-size: 15px; line-height: 1; color: var(--gold); }
.deck-tile .art { perspective: 600px; }
.deck-tile .art.rolled img { animation: roll-flip .55s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 50%; }
.deck-tile .art.rolled::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--gold); animation: roll-flash .55s ease-out both; pointer-events: none; }
@keyframes roll-flip { 0% { transform: rotateY(-100deg) scale(.86); filter: brightness(2); } 60% { transform: rotateY(12deg) scale(1.04); filter: brightness(1.15); } 100% { transform: none; filter: none; } }
@keyframes roll-flash { 0% { opacity: .7; } 100% { opacity: 0; } }
.deck-tiles.compact .deck-tile .tile-edit.reroll { height: 22px; padding: 0 8px; font-size: 11px; right: 6px; bottom: 6px; gap: 3px; }
.deck-tiles.compact .deck-tile .tile-edit.reroll .die { font-size: 13px; }
.deck-tile.roll .tile-edit.reroll { left: 10px; right: auto; bottom: 10px; }
.deck-tile.roll .meta { padding-right: 0; }
.deck-tiles.compact .deck-tile.roll .tile-edit.reroll { left: auto; right: 6px; }
.deck-tiles.compact .deck-tile.roll .meta { display: none; }
@media (prefers-reduced-motion: reduce) { .deck-tile .art.rolled img, .deck-tile .art.rolled::before { animation: none; } }
.deck-tiles.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.deck-tiles.compact .deck-tile { grid-template-columns: 64px 1fr; min-height: 68px; border-radius: 12px; }
.deck-tiles.compact .deck-tile .body { padding: 10px 12px 8px 10px; gap: 2px; }
.deck-tiles.compact .deck-tile .name { font-size: 15px; }
.deck-tiles.compact .deck-tile .desc { display: none; }
.deck-tiles.compact .deck-tile .meta { padding-top: 4px; }
.deck-tiles.compact .deck-tile .meta span:nth-child(n+3) { display: none; }
.deck-tiles.compact .deck-tile .art .q { font-size: 28px; }
.deck-tiles.compact .deck-tile.selected::after { width: 18px; height: 18px; font-size: 11px; top: 6px; right: 6px; }
.curve { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.curve i { display: block; width: 5px; background: var(--gold); border-radius: 1px; opacity: .85; }
.curve i.r { background: var(--verm-l); }
.start-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border: 1px solid var(--gold-line); border-radius: 16px; background: rgba(27,24,21,.85); position: sticky; bottom: 16px; backdrop-filter: blur(8px); }
.start-bar .first { display: flex; align-items: center; gap: 14px; }
.start-bar .lbl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: rgba(19,17,16,.6); }
.seg button { height: 32px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--gold); color: var(--lacquer); }
.seg button:not(.on):hover { color: var(--cream); }
.credit { margin: -16px 0 0; }
.rules-modal { max-width: 860px; }
/* my decks modal: rows of custom decks with edit / copy / delete, plus prebuilt decks as copy sources */
.decks-modal { max-width: 640px; max-height: 88dvh; overflow: auto; gap: 12px; }
.decks-modal h3 { margin: 8px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.decks-modal .empty { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--gold-line-2); border-radius: 12px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gold-line); }
.drow:last-child { border-bottom: 0; }
.drow .art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--lacquer-3); flex: none; }
.drow .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.drow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.drow .name { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow.editing .name::after { content: "editing"; font-family: var(--sans); font-weight: 600; font-size: 10px; color: var(--gold); margin-left: 8px; letter-spacing: .06em; text-transform: uppercase; }
.drow .meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.drow .acts { display: flex; gap: 6px; flex: none; }
.btn.danger { border-color: var(--verm); color: var(--verm-l); }
.btn.danger:hover { background: rgba(217,80,62,.15); border-color: var(--verm-l); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rules { columns: 2; column-gap: 24px; font-size: 13px; color: var(--muted); }
.rules p { margin: 0 0 8px; break-inside: avoid; }
.rules b { color: var(--cream); font-weight: 700; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }

/* ------------------------------------------------ card (washi) */
.card { width: calc(128px * var(--k)); height: calc(184px * var(--k)); background: var(--lacquer-2); color: var(--cream); border: 1.5px solid var(--p0); border-radius: calc(12px * var(--k)); padding: calc(8px * var(--k)); display: flex; flex-direction: column; gap: 4px; position: relative; user-select: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); }
.card.o1 { border-color: var(--p1); }
/* top row: cost chip (pips) and power chip share one height and centre their contents, so the dots and the numeral sit on the same axis */
.card .top { display: flex; justify-content: space-between; align-items: stretch; height: calc(30px * var(--k)); }
.card .cost { display: inline-flex; align-items: center; }
.card .cost-lbl { display: none; }
.card .pips { display: flex; align-items: center; gap: 3px; margin: 0; }
.card .pips i { width: calc(8px * var(--k)); height: calc(8px * var(--k)); border-radius: 50%; background: var(--cream); display: block; }
.card .pips.replace i { border-radius: 2px; background: transparent; border: 1.5px solid var(--cream); }
.card .power { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: calc(26px * var(--k)); line-height: 1; font-variant-numeric: tabular-nums; }
.card .grid { display: grid; grid-template-columns: repeat(5, calc(9px * var(--k))); grid-auto-rows: calc(9px * var(--k)); gap: calc(1.5px * var(--k)); margin: 4px auto 2px; }
.card .grid i { display: block; border-radius: 2px; background: rgba(242,232,213,.16); }
.card .grid i.c { background: var(--cream); border-radius: 50%; }
.card .grid i.pw { background: var(--p0); }
.card.o1 .grid i.pw { background: var(--p1); }
.card .grid i.af { background: var(--gold); }
.card .grid i.pw.af { background: var(--p0); box-shadow: inset 0 0 0 2px var(--gold); }
.card.o1 .grid i.pw.af { background: var(--p1); }
.card .name { font-size: calc(13px * var(--k)); font-weight: 700; line-height: 1.2; color: var(--cream); }
/* ability text lives in the detail views (inspector lg / builder xl) and the selected-card line under the hand; hand/board-size cards keep to name + tile pattern */
.card:not(.lg):not(.xl) .text { display: none; }
.card .text { font-size: calc(10px * var(--k)); color: rgba(242,232,213,.72); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card .band { display: none; }
.card.legendary { border-color: var(--gold); border-width: 2px; }
.card.legendary::after { content: "\4F1D "; position: absolute; right: calc(8px * var(--k)); top: calc(40px * var(--k)); width: calc(18px * var(--k)); height: calc(18px * var(--k)); border-radius: 3px; background: var(--gold); color: var(--lacquer); font-family: var(--display); font-size: calc(11px * var(--k)); line-height: calc(18px * var(--k)); text-align: center; font-weight: 800; z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.card.playable { cursor: pointer; }
@media (hover: hover) { .card.playable:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.5); } }
.card.selected, .card.playable.selected:hover { transform: translateY(-12px); box-shadow: 0 0 0 2px var(--gold), 0 16px 32px rgba(0,0,0,.55); }
.card.dim { opacity: .45; }
.card.dim.selectable { cursor: pointer; }
.card.dim.selected { opacity: .8; box-shadow: 0 0 0 2px var(--muted), 0 12px 24px rgba(0,0,0,.4); }
.card.back { width: calc(64px * var(--kt)); height: calc(88px * var(--kt)); padding: 0; background: var(--lacquer) url(brand/back-sm.webp) center / cover; border: 1px solid var(--gold-line-2); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.card.back::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201,162,39,.45); border-radius: 8px; }
.card.lg { width: 240px; height: 344px; padding: 16px; gap: 8px; border-radius: 14px; }
.card.lg .top { height: 48px; }
.card.lg .power { font-size: 40px; line-height: 1; }
.card.lg .pips i { width: 10px; height: 10px; }
.card.lg .grid { grid-template-columns: repeat(5, 28px); grid-auto-rows: 28px; gap: 4px; margin: 8px auto; }
.card.lg .name { font-size: 17px; } .card.lg .text { font-size: 13px; }
.card.lg.legendary::after { right: 16px; top: 64px; width: 24px; height: 24px; line-height: 24px; font-size: 14px; border-radius: 4px; }
.card.lg .grid i { border-radius: 4px; }
.card.lg .grid i.af { border-width: 2px; }
.card.lg .name { font-size: 17px; }
.card.lg .text { font-size: 13px; -webkit-line-clamp: 5; }
.card.lg.legendary::after { font-size: 14px; right: 16px; top: 64px; width: 24px; height: 24px; line-height: 24px; border-radius: 4px; }
.card.mini { width: 96px; height: 136px; padding: 6px; }
.card.mini .grid { grid-template-columns: repeat(5, 9px); grid-auto-rows: 9px; gap: 1.5px; }
.card.mini .text { display: none; }
.card.mini .power { font-size: 20px; }

/* full-bleed art on washi */
.card.art { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; grid-template-areas: "top top" "art art" "name grid"; column-gap: 6px; row-gap: 2px; }
.card.art.lg { grid-template-rows: auto 1fr auto auto; grid-template-areas: "top top" "art art" "name grid" "text grid"; }
/* square art fitted to the full card width at the top, never cropped; the scrim takes over below the subject */
.card.art .art-img { position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0; }
.card.art .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(19,17,16,.28) 0, rgba(19,17,16,0) 22%, rgba(19,17,16,0) 44%, rgba(19,17,16,.82) 60%, rgba(19,17,16,.97) 70%, var(--lacquer-2) 100%); }
.card.art > .top, .card.art > .grid, .card.art > .name, .card.art > .text { position: relative; z-index: 1; }
.card.art > .top { grid-area: top; }
.card.art > .grid { grid-area: grid; align-self: end; margin: 0; grid-template-columns: repeat(5, calc(7px * var(--k))); grid-auto-rows: calc(7px * var(--k)); gap: calc(1.5px * var(--k)); }
.card.art > .name { grid-area: name; align-self: end; text-shadow: 0 1px 2px rgba(0,0,0,.6); min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
.card.art > .text { grid-area: text; font-size: calc(9.5px * var(--k)); -webkit-line-clamp: 3; }
.card.art .cost, .card.art .power { background: rgba(19,17,16,.82); color: var(--cream); border-radius: calc(8px * var(--k)); padding: 0 calc(8px * var(--k)); margin: -2px 0 0 -2px; backdrop-filter: blur(3px); }
.card.art .power { margin: -2px -2px 0 0; }
.card.art .pips i { background: var(--cream); }
.card.art .pips.replace i { border-color: var(--cream); }
.card.art.lg { column-gap: 12px; }
.card.art.lg .scrim { background: linear-gradient(to bottom, rgba(19,17,16,.28) 0, rgba(19,17,16,0) 18%, rgba(19,17,16,0) 46%, rgba(19,17,16,.84) 62%, rgba(19,17,16,.97) 70%, var(--lacquer-2) 100%); }
.card.art.lg > .grid { grid-template-columns: repeat(5, 13px); grid-auto-rows: 13px; gap: 2.5px; }
.card.art.lg > .grid i { border-radius: 3px; }
.card.art.lg > .text { font-size: 12px; -webkit-line-clamp: 5; }
.card.art.mini > .grid { grid-template-columns: repeat(5, 6px); grid-auto-rows: 6px; }
/* deck-builder size: inspector width, full art, ability text never clamped, card grows to fit */
.card.xl { width: 240px; height: auto; min-height: 344px; padding: 16px; gap: 8px; border-radius: 14px; column-gap: 12px; grid-template-rows: auto 184px auto auto auto; grid-template-areas: "top top" "art art" "name grid" "text grid" "meta meta"; }
.card.xl .top { height: 48px; }
.card.xl .power { font-size: 40px; line-height: 1; }
.card.xl .pips i { width: 10px; height: 10px; }
.card.xl > .grid { grid-template-columns: repeat(5, 13px); grid-auto-rows: 13px; gap: 2.5px; align-self: start; }
.card.xl > .grid i { border-radius: 3px; }
.card.xl > .name { font-size: 17px; align-self: end; }
.card.xl > .text { font-size: 12.5px; line-height: 1.35; display: block; -webkit-line-clamp: unset; overflow: visible; }
.card.xl .scrim { background: linear-gradient(to bottom, rgba(19,17,16,.28) 0, rgba(19,17,16,0) 60px, rgba(19,17,16,0) 150px, rgba(19,17,16,.86) 212px, var(--lacquer-2) 244px); }
.card.xl.legendary::after { right: 16px; top: 64px; width: 24px; height: 24px; line-height: 24px; font-size: 14px; border-radius: 4px; }
.card.xl .meta { grid-area: meta; align-self: end; position: relative; z-index: 1; font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 6px; border-top: 1px solid rgba(242,232,213,.12); margin-top: 4px; }
.card.xl .meta span { white-space: nowrap; }
.card.xl .meta b { color: var(--cream); font-weight: 600; }

/* ------------------------------------------------ match */
.match { display: grid; grid-template-columns: 1fr 280px; gap: 16px; padding: 16px 24px; flex: 1; min-height: 0; overflow: auto; }
.col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }

/* score cluster in the top bar */
.scores { display: flex; align-items: center; gap: 16px; }
.scores .vs { font-family: var(--display); color: var(--muted); font-size: 14px; }
.scores .side { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 10px; border-radius: 999px; border: 1px solid transparent; }
.scores .side.active { border-color: var(--gold-line-2); background: rgba(201,162,39,.08); }
.scores .side .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--p0); flex: none; }
.scores .side.o1 .dot { background: var(--p1); }
.scores .side .who { font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--cream); }
.scores .side .meta { font-size: 11px; font-weight: 400; color: var(--muted); }
.scores .side .n { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--p0); min-width: 36px; text-align: right; }
.scores .side.o1 .n { color: var(--p1); }

/* floating log panel, off by default */
.logpanel { position: fixed; left: 24px; bottom: 24px; width: 320px; max-height: 50vh; background: rgba(27,24,21,.96); border: 1px solid var(--gold-line-2); border-radius: 16px; padding: 16px; display: none; flex-direction: column; gap: 8px; z-index: 15; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.logpanel.show { display: flex; }
.logpanel .row { display: flex; justify-content: space-between; align-items: center; }
.logpanel ul { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.logpanel li { padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.03); color: var(--muted); }
.logpanel li.play { color: var(--cream); }
.logpanel li.enh { color: var(--enh); } .logpanel li.enf { color: var(--enf); } .logpanel li.destroy { color: var(--verm-l); font-weight: 500; }
.logpanel li.claim { color: var(--cream); } .logpanel li.pass, .logpanel li.sys { color: var(--gold); background: transparent; border: 1px dashed var(--gold-line); }
.ticker { font-size: 12px; color: var(--muted); max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker.enh { color: var(--enh); } .ticker.enf, .ticker.destroy { color: var(--enf); } .ticker.play, .ticker.claim { color: var(--cream); } .ticker.pass, .ticker.sys { color: var(--gold); }

.center { display: flex; flex-direction: column; align-items: center; gap: 16px; justify-content: center; }
.opp-hand { display: flex; gap: 8px; height: calc(88px * var(--kt)); align-items: center; }
.board-wrap { display: grid; grid-template-columns: calc(56px * var(--kt)) auto calc(56px * var(--kt)); gap: 8px; align-items: center; }
.lanes { display: flex; flex-direction: column; gap: var(--gap); padding: calc(var(--gap) + 1px) 0; }
.lane-badge { height: var(--th); display: flex; align-items: center; justify-content: center; }
.lane-badge span { min-width: calc(40px * var(--kt)); height: calc(40px * var(--kt)); padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: calc(18px * var(--kt)); font-variant-numeric: tabular-nums; border: 1px solid var(--gold-line-2); background: rgba(19,17,16,.7); color: var(--muted); }
.lane-badge.win span { background: var(--p0-fill); border-color: var(--p0); color: #FCF8EC; }
.lane-badge.o1.win span { background: var(--p1-fill); border-color: var(--p1); }
.board { display: grid; grid-template-columns: repeat(5, var(--tw)); grid-auto-rows: var(--th); gap: var(--gap); padding: var(--gap); background: rgba(27,24,21,.8); border: 1px solid var(--gold-line-2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.tile { position: relative; border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid var(--gold-line); transition: box-shadow .12s ease, background .12s ease; }
.tile.o0 { background: var(--p0-soft); border-color: var(--p0-line); }
.tile.o1 { background: var(--p1-soft); border-color: var(--p1-line); }
.tile .pins { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; }
.tile .pins i { width: calc(10px * var(--kt)); height: calc(10px * var(--kt)); border-radius: 50%; background: var(--gold-line-2); display: block; }
.tile.o0 .pins i { background: var(--p0); } .tile.o1 .pins i { background: var(--p1); }
.tile.has-card .pins { bottom: 6px; }
.tile.has-card .pins i { width: calc(6px * var(--kt)); height: calc(6px * var(--kt)); }
.tile .pins-n { position: absolute; right: 10px; bottom: 8px; font-size: calc(10px * var(--kt)); color: var(--muted); font-variant-numeric: tabular-nums; }
.tile .need, .tile .aura-here { position: absolute; left: 10px; top: 10px; font-size: calc(10px * var(--kt)); line-height: 1.2; font-weight: 500; pointer-events: none; }
.tile .need { color: var(--gold); }
.tile.near { background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(201,162,39,.08) 8px 10px); }
.tile .aura-here { top: auto; bottom: 28px; left: 0; right: 0; text-align: center; pointer-events: auto; }
.tile .aura-here.enh { color: var(--enh); } .tile .aura-here.enf { color: var(--enf); }
.tile.has-card .aura-here, .tile.has-card .need { display: none; }
.tile.legal { cursor: pointer; box-shadow: inset 0 0 0 2px var(--gold); }
.tile.legal::after { content: "+"; position: absolute; top: 6px; right: 12px; font-family: var(--display); font-size: 20px; color: var(--gold); font-weight: 800; }
@media (hover: hover) { .tile.legal:hover { background: rgba(201,162,39,.22); } }
.tile.legal.replace::after { content: "\21BB"; }
.tile.pv-pawn { box-shadow: inset 0 0 0 3px var(--p0); background: color-mix(in srgb, var(--p0) 32%, transparent); }
.tile.pv-aff { background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(201,162,39,.22) 6px 8px); }
.tile.pv-aff::before { content: ""; position: absolute; inset: 3px; border: 2px dashed var(--gold); border-radius: 9px; pointer-events: none; }
.tile.pv-here { box-shadow: inset 0 0 0 3px var(--cream); }
.tile.last { box-shadow: inset 0 0 0 2px var(--gold-line-2); }
.tile.sh-src { box-shadow: inset 0 0 0 3px var(--cream); }
.tile.sh-pawn { box-shadow: inset 0 0 0 2px var(--gold-line-2); }
.tile.sh-aff::before { content: ""; position: absolute; inset: 3px; border: 2px dashed var(--gold); border-radius: 9px; pointer-events: none; }
.tile.sh-aff { background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(201,162,39,.2) 6px 8px); }
.tile.fx-play { box-shadow: inset 0 0 0 3px var(--gold); }
.tile.fx-aff::before { content: ""; position: absolute; inset: 3px; border: 2px dashed var(--gold); border-radius: 9px; pointer-events: none; animation: pulse 0.9s ease-in-out 2; }
.tile.fx-destroy { background: rgba(199,62,46,.35); border-color: var(--verm-l); }
.fx-badge { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 4px 12px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--cream); background: var(--lacquer); border: 1px solid var(--gold-line-2); z-index: 5; pointer-events: none; animation: rise .5s ease; box-shadow: 0 6px 16px rgba(0,0,0,.5); white-space: nowrap; }
.fx-badge.enh { color: var(--enh); } .fx-badge.enf { color: var(--enf); }
.fx-badge.destroy { font-family: var(--sans); font-weight: 700; font-size: 11px; background: var(--verm); border-color: var(--verm); color: #FCF8EC; top: 50%; }
.fx-badge.out { opacity: 0; transition: opacity .3s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes rise { from { transform: translate(-50%, 0); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

/* card on a tile */
.tcard { position: absolute; inset: calc(8px * var(--kt)) calc(8px * var(--kt)) calc(22px * var(--kt)); border-radius: calc(8px * var(--kt)); background: var(--lacquer-2); color: var(--cream); border: 1px solid var(--p0); display: flex; flex-direction: column; padding: calc(8px * var(--kt)); gap: 2px; overflow: hidden; animation: pop .25s ease; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.tcard.o0 { border-left: 4px solid var(--p0); } .tcard.o1 { border-color: var(--p1); border-left: 4px solid var(--p1); }
.tcard .name { font-size: calc(11px * var(--kt)); font-weight: 700; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.tcard .pw { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: calc(30px * var(--kt)); line-height: 1; margin-top: auto; font-variant-numeric: tabular-nums; }
.tcard .pw.enh { color: var(--enh); } .tcard .pw.enf { color: var(--enf); }
.tcard .delta { font-size: calc(9.5px * var(--kt)); line-height: 1.2; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .delta .enh { color: var(--enh); } .tcard .delta .enf { color: var(--enf); } .tcard .delta .muted { color: rgba(242,232,213,.6); }
.tcard .ab { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); z-index: 1; box-shadow: 0 0 0 2px rgba(19,17,16,.5); }
.tcard .ab.aura { background: transparent; border: 2px solid var(--cream); }
.tcard.art .art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tcard.art .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(19,17,16,.62) 0, rgba(19,17,16,0) 34%, rgba(19,17,16,0) 46%, rgba(19,17,16,.9) 70%, rgba(19,17,16,.96) 100%); }
.tcard.art .name, .tcard.art .pw, .tcard.art .delta { position: relative; z-index: 1; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hand-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.hand { display: flex; gap: calc(12px * var(--k)); min-height: calc(196px * var(--k)); align-items: flex-end; justify-content: center; }
.action-bar { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.hint { font-size: 12px; color: var(--muted); }
/* selected card: its ability shows as a tooltip-style line next to Pass (desktop); phones style the same element in mobile.css */
body:not(.mob) .hint.ability { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 12px; background: rgba(19,17,16,.7); border: 1px solid var(--gold-line-2); color: var(--cream); font-size: 12.5px; line-height: 1.35; max-width: 560px; }
body:not(.mob) .hint.ability b { color: var(--gold); font-weight: 700; white-space: nowrap; }

.inspector { background: rgba(27,24,21,.85); border: 1px solid var(--gold-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.inspector .placeholder { width: 240px; height: 344px; border: 1px dashed var(--gold-line-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; padding: 24px; }
.legend { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend div > span { flex: none; display: inline-flex; align-items: center; }  /* keep the two cost pips side by side when the column is narrow */
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; }
.legend i.pw { background: var(--p0); } .legend i.af { background: var(--gold); } .legend i.c { background: var(--cream); border-radius: 50%; }
.legend i.pip { border-radius: 50%; background: var(--cream); width: 8px; height: 8px; margin: 0 3px; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(19,17,16,.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 20; }
.overlay.show { display: flex; }
.modal { background: rgba(27,24,21,.96); border: 1px solid var(--gold-line-2); border-radius: 20px; padding: 32px; min-width: 560px; max-width: 96vw; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal .cards { display: flex; gap: 12px; justify-content: center; }
.modal .card { cursor: pointer; }

/* ---------------------------------------------- opening hand: review layout
   All five cards show art, cost, power, full ability text, tile pattern and an explicit redraw chip at once -- the mulligan is
   a comparison, so nothing is hidden behind hover or a detail panel. `mull` rescales the `xl` card (the only size whose CSS
   un-hides .text) from 240 to 208px so five plus gaps and modal padding come to 1152px and clear a 1280 laptop.
   The marked state must never dim the ability text: desaturate the ART only. */
.mull-modal .cards { align-items: stretch; }
.mull-modal .legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.mull-foot { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.mull-modal .legend div { align-items: flex-start; }
/* neutral frame: the player-0 vermilion border is the same colour as the marked-for-redraw ring, so the state would not read */
.card.mull { width: 208px; min-height: 300px; padding: 14px; gap: 6px; column-gap: 10px; grid-template-rows: auto 156px auto auto auto; border-color: var(--gold-line-2); }
.card.mull.legendary { border-color: var(--gold); }
.card.mull .top { height: 40px; }
.card.mull .power { font-size: 32px; }
.card.mull .pips i { width: 9px; height: 9px; }
.card.mull > .grid { grid-template-columns: repeat(5, 11px); grid-auto-rows: 11px; gap: 2px; }
.card.mull > .name { font-size: 15px; }
.card.mull > .text { font-size: 11.5px; line-height: 1.35; }
.card.mull > .text.none { color: rgba(242,232,213,.42); font-style: italic; }
.card.mull .nyi { color: var(--gold); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.card.mull .scrim { background: linear-gradient(to bottom, rgba(19,17,16,.28) 0, rgba(19,17,16,0) 44px, rgba(19,17,16,0) 118px, rgba(19,17,16,.86) 172px, var(--lacquer-2) 200px); }
.card.mull.legendary::after { right: 14px; top: 54px; width: 22px; height: 22px; line-height: 22px; font-size: 13px; }
.card.mull .meta { justify-content: center; padding-top: 10px; }
/* state chip: a checkbox with its label spelled out, so the redraw state never needs explaining */
.card .rd { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--gold-line-2); color: var(--cream); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.card .rd .box { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid rgba(242,232,213,.5); flex: none; position: relative; }
.card.redraw .rd { background: var(--verm); border-color: var(--verm); color: #fff; }
.card.redraw .rd .box { background: #fff; border-color: #fff; }
.card.redraw .rd .box::after { content: ""; position: absolute; left: 3.5px; top: .5px; width: 3px; height: 7px; border: solid var(--verm); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.modal .card.redraw { border-color: var(--verm); box-shadow: 0 0 0 2px var(--verm), 0 8px 24px rgba(0,0,0,.45); }
.modal .card.redraw .art-img { filter: grayscale(.9) contrast(.85); opacity: .5; }
.modal .card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) { .modal .card.mull:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.5); } }
.result-lanes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 16px; align-items: center; font-variant-numeric: tabular-nums; }
.result-lanes .pw { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 28px; }
.result-lanes .pw.o0 { color: var(--p0); text-align: right; } .result-lanes .pw.o1 { color: var(--p1); }
.result-lanes .lbl { font-size: 12px; color: var(--muted); text-align: center; }
.result-lanes .lose { opacity: .35; }
.result-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.result-total .t { font-family: var(--display); font-weight: 800; font-synthesis: none; font-size: 56px; line-height: 1; }
.result-total .t.o0 { color: var(--p0); } .result-total .t.o1 { color: var(--p1); }
.toast { position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--washi); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.toast.show { opacity: 1; }

/* ------------------------------------------------ builder */
.builder { display: grid; grid-template-columns: 1fr 336px; gap: 16px; padding: 16px 24px; flex: 1; min-height: 0; }
.pool { background: rgba(27,24,21,.85); border: 1px solid var(--gold-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pool .filters { display: flex; flex-direction: column; gap: 8px; }
.filters .frow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filters .frow.main { gap: 10px; }
.filters .flbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; min-width: 52px; }
.filters .fsep { width: 1px; height: 20px; background: var(--gold-line); margin: 0 4px; }
.filters .ftoggle { display: none; }
.filters .sort { display: inline-flex; align-items: center; gap: 8px; }
.filters select { height: 32px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: rgba(19,17,16,.6); color: var(--cream); padding: 0 12px; font: inherit; font-size: 13px; }
.chip.clear { border-style: dashed; color: var(--muted); }
.chip.clear:hover { color: var(--cream); }
.pool input[type=search], .deck-side input[type=text] { height: 40px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: rgba(19,17,16,.6); color: var(--cream); padding: 0 16px; font: inherit; }
.pool input[type=search] { width: 240px; }
.pool input::placeholder, .deck-side input::placeholder { color: var(--muted); }
.chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: transparent; color: var(--cream); cursor: pointer; font-size: 13px; }
.chip.on { background: var(--verm); color: #FCF8EC; border-color: var(--verm); }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, 240px); gap: 24px 16px; overflow: auto; padding: 14px 2px 12px; align-content: start; justify-content: start; flex: 1; min-height: 0; }
/* builder pool: player colour means nothing here, so frames and pattern pawns are neutral; cards in the working deck get a cream frame, glow, badge and a filled stepper */
.pool-item { display: flex; flex-direction: column; gap: 8px; align-items: center; position: relative; }
.pool-item .card { border-color: var(--gold-line-2); }
.pool-item .card .grid i.pw { background: rgba(242,232,213,.8); }
.pool-item .card .grid i.pw.af { background: var(--gold); }
.pool-item .card.legendary { border-color: var(--gold); }
.pool-item.in .card { border-color: var(--cream); border-width: 2px; box-shadow: 0 0 0 1px rgba(242,232,213,.22), 0 0 28px rgba(242,232,213,.16), 0 8px 24px rgba(0,0,0,.35); }
.pool-item .indeck { display: none; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 3; height: 22px; padding: 0 11px; border-radius: 999px; background: var(--washi); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; align-items: center; gap: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.45); pointer-events: none; }
.pool-item .indeck b { font-family: var(--display); font-size: 13px; font-weight: 800; }
.pool-item.in .indeck { display: inline-flex; }
.pool-item.in .ctr { background: var(--washi); border-radius: 999px; }
.pool-item.in .ctr button { border-color: transparent; color: var(--ink); }
.pool-item.in .ctr button:disabled { opacity: .3; }
.pool-item.in .ctr b { color: var(--ink); }
.pool-item .card.xl { flex: 1; }
.pool-item .ctr { display: flex; align-items: center; gap: 4px; }
.pool-item .ctr button { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--gold-line-2); background: transparent; color: var(--cream); cursor: pointer; }
.pool-item .ctr button:disabled { opacity: .3; cursor: default; }
.pool-item .ctr b { min-width: 24px; text-align: center; font-family: var(--display); }
.pool-item .card.text-only { border-style: dashed; }
.deck-side { background: rgba(27,24,21,.85); border: 1px solid var(--gold-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.deck-side input[type=text] { width: 100%; }
.deck-bar { display: none; }
.deck-body { display: contents; }
.deck-side .meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.deck-side .meter i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s; }
.deck-side .meter i.full { background: var(--verm-l); }
.deck-items { overflow: auto; display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; }
.deck-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 13px; cursor: pointer; }
.deck-item:hover { background: rgba(201,162,39,.12); }
.deck-item .r { display: flex; gap: 2px; width: 28px; } .deck-item .r i { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); display: block; }
.deck-item .p { margin-left: auto; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.deck-item .n { color: var(--muted); }
.curve { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.curve span b { color: var(--cream); }
