/* Rule Ø design scale layer (owner 2026-10-18, live for everyone since the same day): loaded after style.css for every page of the app;
   body always carries the class tight (core.js applyTheme). New layout rules go here, on the scale. Every value comes from the scale tokens in style.css (:root --sp-*, --fs-*, --r-*, --h-*);
   tests/test_design_scale.py refuses any other px value here. Icons, labels and names never change in this pass: only sizes and spacing.
   Step 1: utility classes for the inline styles that move out of the JS. */

/* ---------- utilities (gap, padding, font size, corners) ---------- */
body.tight .g2 { gap: var(--sp-1); } body.tight .g4 { gap: var(--sp-2); } body.tight .g6 { gap: var(--sp-3); } body.tight .g8 { gap: var(--sp-4); }
body.tight .g12 { gap: var(--sp-5); } body.tight .g16 { gap: var(--sp-6); } body.tight .g24 { gap: var(--sp-7); }
body.tight .p8 { padding: var(--sp-4); } body.tight .p12 { padding: var(--sp-5); } body.tight .p16 { padding: var(--sp-6); } body.tight .p24 { padding: var(--sp-7); }
body.tight .fs12 { font-size: var(--fs-xs); } body.tight .fs13 { font-size: var(--fs-sm); } body.tight .fs14 { font-size: var(--fs-md); }
body.tight .fs16 { font-size: var(--fs-lg); } body.tight .fs18 { font-size: var(--fs-xl); } body.tight .fs22 { font-size: var(--fs-2xl); }
body.tight .r6 { border-radius: var(--r-tag); } body.tight .r8 { border-radius: var(--r-ctl); } body.tight .r12 { border-radius: var(--r-box); }
body.tight .t2 { color: var(--text2); } body.tight .minw0 { min-width: 0; } body.tight .mt8 { margin-top: var(--sp-4); }
body.tight .asc { align-self: center; } body.tight .ais { align-items: flex-start; } body.tight .aib { align-items: baseline; }

/* the one small label (Q8): filter labels and step counters */
body.tight .label { font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- step 2: the frame (Q4, Q5, Q6, Q7) ---------- */
/* top bar: 60 px, 36 px buttons with 8 px corners, on the gutter */
body.tight header.top { min-height: var(--topbar); padding: 0 var(--gutter); gap: var(--sp-4) var(--sp-5); box-sizing: border-box; }
body.tight .navbtn { min-height: var(--h-sm); padding: 0 var(--sp-5); border-radius: var(--r-ctl); }
body.tight .navbtn.nexthl { border-radius: var(--r-ctl); }
body.tight header.top .iconbtn { width: var(--h-sm); height: var(--h-sm); }
body.tight header.top .btn, body.tight header.top .themebtn, body.tight header.top .acctbtn { min-height: var(--h-sm); }
@media (max-width: 700px) { body.tight header.top { padding: var(--sp-3) var(--gutter); gap: var(--sp-3) var(--sp-4); } }

/* banner: 64 px, title 22, line 14 */
body.tight .pagehead { height: var(--banner); padding-top: 0; padding-bottom: 0; }
body.tight .pagehead-text { gap: var(--sp-1); }
body.tight .pagehead-text b { font-size: var(--fs-2xl); }
body.tight .pagehead-text span { font-size: var(--fs-md); }

/* the sub-bar band: 60 px, 36 px controls 8 apart, a line under it that runs to the page edges (Build keeps its framed panes) */
body.tight .filterbar.subbar { min-height: var(--barh); padding-top: var(--sp-5); padding-bottom: var(--sp-5); gap: var(--sp-4); box-sizing: border-box; }
@media (max-width: 1000px) { body.tight .filterbar.subbar { padding-left: var(--gutter); padding-right: var(--gutter); } }
body.tight .page { padding-top: var(--sp-6); }
body.tight .xband { min-height: var(--barh); margin-top: calc(-1 * var(--sp-6)); padding: var(--sp-5) 0; gap: var(--sp-4) !important; align-items: center; box-sizing: border-box;
  border-bottom: 1px solid var(--line); border-image: linear-gradient(var(--line), var(--line)) 0 0 1 0 / 0 0 1px 0 / 0 100vmax; }
body.tight .xband > .row { gap: var(--sp-4) !important; }
body.tight .xband::after { top: calc(100% + 1px); }   /* T171: the sticky bar's fade starts under the divider, not on it (it hid the line across the bar) */
body.tight .xband :is(.tabbtn, .btn, .fbtn, select, .exsearch) { min-height: var(--h-sm); }
body.tight .xband .seg { height: var(--h-sm); box-sizing: border-box; padding: 0; gap: 0; border-radius: var(--r-ctl); overflow: hidden; }   /* the frame is 36 in all (Q4) */
body.tight .xband .seg button { min-height: 0; height: 100%; border-radius: 0; }
/* T776 (owner 2026-11-14, "buttons are messed up on collection"): a fold in the band (Sort on Cards, Collection and Sets) opens its
   options outside its frame, so the frame must not clip them; the chosen option rounds its own corners, and the options keep their size */
body.tight .xband .seg.segfold { overflow: visible; }
body.tight .xband .seg.segfold .segwrap { height: 100%; }
body.tight .xband .seg.segfold .segwrap > button.on { border-radius: var(--r-tag); }
body.tight .xband .seg.segfold .segpop button { min-height: var(--h-sm); height: auto; border-radius: var(--r-tag); }
body.tight .dvbar.xband { margin-bottom: var(--sp-4); }   /* the deck view: room between the band and the first panel */
body.tight .exp .exinner, body.tight .ecpage .ecinner { gap: var(--sp-6); }

/* My decks: the table tools in a More menu (same icons and names) */
body.tight .dkmore { position: relative; display: inline-flex; }
body.tight .dkmorepop { position: absolute; top: calc(100% + var(--sp-2)); left: 0; z-index: 30; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2);
  border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); min-width: 220px; }
body.tight .dkmorepop .tabbtn { justify-content: flex-start; width: 100%; }

/* phone: the gutter is 16 (Q5), the top bar packs its two rows, and a band is one row that scrolls sideways instead of wrapping into a block */
@media (max-width: 700px) {
  body.tight header.top { padding: var(--sp-2) var(--gutter); gap: var(--sp-2) var(--sp-4); }
  body.tight .page { padding-left: var(--gutter); padding-right: var(--gutter); }
  body.tight .xband { flex-wrap: wrap; }   /* phones: a band wraps instead of scrolling, so its drop-downs (Sort, More) are never clipped (owner 2026-10-18) */
  body.tight .dkmorepop { position: fixed; top: auto; left: var(--gutter); right: var(--gutter); bottom: 88px; }   /* a sheet above the bottom tabs: a band that scrolls would clip a drop-down */
}

body.tight .pickalt { justify-content: center; }
/* Play's gold (Home's New game, Open tables) */
body.tight .btn.gold { background: var(--gold); color: #17130a; border-color: transparent; }
body.tight .btn.goldline { border-color: var(--gold); color: var(--gold); background: transparent; }
@media (max-width: 700px) {
  body.tight:has(.brewfoot) .toast { bottom: 136px; }   /* the import toast over the gameplan screen: above its Skip / Done footer, not on it */
}

/* ---------- the Playtest board (owner 2026-10-18; playtest.js, playcore.js; DESIGN 4.10) ----------
   Moved here from style.css and put on the scale: the board fills the screen like Chronicle's table (body.bare): its own 60 px bar,
   the phase bar, then three columns (zones | board | you, mana, log); up to 1100 px the side columns fold into sheets and a strip;
   phones get a dock at the bottom (prompt, hand, Hand/Mana/Zones/Log). Card sizes (--cw), card corners and positions are not on the
   scale on purpose: they follow the card picture. */
body.tight.bare #app .ptwrap { flex: 1 1 0; }
body.tight .ptwrap { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
body.tight .ptbar { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); min-height: var(--topbar); box-sizing: border-box; background: var(--bar); border-bottom: 1px solid var(--line); }
body.tight .pttitle { font-size: var(--fs-lg); min-width: 0; }
body.tight .ptbarsp { flex: 1 1 auto; }
body.tight .ptmode { flex: 0 0 auto; }
body.tight .ptbar > .btn { flex: 0 0 auto; }
body.tight .ptphases { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6); min-height: var(--h-md); box-sizing: border-box; border-bottom: 1px solid var(--line); }
body.tight .ptturn { font-size: var(--fs-lg); white-space: nowrap; }
body.tight .ptwho { white-space: nowrap; margin-right: var(--sp-3); }
body.tight .ptphlist { display: flex; gap: var(--sp-2); flex-wrap: wrap; min-width: 0; }
body.tight .ptph { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); font-size: var(--fs-xs); color: var(--muted); border: 1px solid transparent; background: transparent; white-space: nowrap; }
body.tight button.ptph { cursor: pointer; min-height: var(--h-xs); }
body.tight .ptph.now { color: var(--onAccent); background: var(--accent); font-weight: var(--fw-title); }
body.tight .ptphone { display: none; }
body.tight .ptmain { flex: 1 1 0; min-height: 0; display: flex; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); }
body.tight .ptleft { width: 210px; flex: 0 0 210px; display: flex; flex-direction: column; gap: var(--sp-4); overflow-y: auto; scrollbar-width: none; }
body.tight .ptright { width: 260px; flex: 0 0 260px; display: flex; flex-direction: column; gap: var(--sp-4); min-height: 0; overflow-y: auto; scrollbar-width: none; }
body.tight .ptleft > *, body.tight .ptright > * { flex-shrink: 0; }
body.tight .ptright > .ptlogbox { flex: 1 1 0; flex-shrink: 1; }
body.tight .ptcenter { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .ptboard { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-4); scrollbar-width: none; padding: var(--sp-5) var(--sp-5) var(--sp-2); margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) 0; }
body.tight .ptboard > * { flex-shrink: 0; }
body.tight .ptleft::-webkit-scrollbar, body.tight .ptright::-webkit-scrollbar, body.tight .ptboard::-webkit-scrollbar, body.tight .ptlog::-webkit-scrollbar, body.tight .ptrow.nowrap::-webkit-scrollbar,
body.tight .ptpick::-webkit-scrollbar, body.tight .ptopts::-webkit-scrollbar, body.tight .ptsheet::-webkit-scrollbar, body.tight .ptprompt::-webkit-scrollbar { display: none; }
body.tight .ptzone { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
body.tight button.ptzone { text-align: left; color: var(--text); font: inherit; cursor: pointer; }
body.tight .ptzl { font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
body.tight .ptzl b { color: var(--text); font-size: var(--fs-md); letter-spacing: 0; }
body.tight .ptzhint { text-transform: none; font-weight: var(--fw-text); letter-spacing: 0; font-size: var(--fs-xs); text-align: right; }
body.tight .ptsec { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .ptsec + .ptsec { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
body.tight .ptrow { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; padding: var(--sp-4) var(--sp-4) var(--sp-1) 0; }
body.tight .ptrow.nowrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
/* the hand fans out when it is wider than the column: the slots shrink and the cards overlap; the one under the pointer or focus comes to the front */
body.tight .pthand .ptrow.nowrap { gap: var(--sp-4); overflow: visible; padding-right: var(--sp-4); }
body.tight .pthand .ptrow.nowrap > .ptslot { flex: 0 1 var(--cw); min-width: 22px; justify-content: flex-start; }
body.tight .pthand .ptrow.nowrap > .ptslot:last-child { flex-shrink: 0; }
body.tight .pthand .ptrow.nowrap > .ptslot:hover, body.tight .pthand .ptrow.nowrap > .ptslot:focus-within { z-index: 5; }
body.tight .pthand { overflow: hidden; }
/* a card: its picture, the name on a scrim, badges; tapped cards turn a quarter and take the room they need */
body.tight .ptslot { --cw: 92px; position: relative; width: var(--cw); height: calc(var(--cw) * 1.393); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
body.tight .ptslot.hand { --cw: 104px; } body.tight .ptslot.land { --cw: 74px; } body.tight .ptslot.sm { --cw: 66px; } body.tight .ptslot.xs { --cw: 54px; }
body.tight .ptslot.tapped { width: calc(var(--cw) * 1.393); height: var(--cw); }   /* a tapped card lies on its side: as wide as a card is tall, as tall as it is wide */
/* T136: graveyard / exile rows in the zones sheets: the width from PC.gyFit (--gw), proper size until the line is full, then smaller; at the
   smallest the cards overlap by --gs (the newest first and on top, --gz); a hovered or focused card comes up whole */
body.tight .ptgyrow { overflow: visible; }
/* T752 (owner sign-off 2026-11-13): the zones sheet. Wide enough for the type lanes; it scrolls without a bar (wheel, swipe, a mouse drag:
   playtest.js zlScroll) and the edge that has more fades (.ft top, .fb bottom). The graveyard in lanes: each lane an overlapped stack of
   title strips ending in the newest card in full (PC.zoneLanes / laneStep); the lane headers spread a type out; a lit strip, its card shown
   beside the lane (.ptlnpv, fixed, lets the mouse through). Exile: Playable from exile on top, a group per source, face-down backs + Peek. */
body.tight .ptsheet.wide.ptzones { width: min(1200px, 100%); scrollbar-width: none; }
body.tight .ptsheet.ptzones::-webkit-scrollbar { display: none; }
body.tight .ptsheet.ptzones.fb { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 48px), transparent); }
body.tight .ptsheet.ptzones.ft { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px); mask-image: linear-gradient(to bottom, transparent, #000 48px); }
body.tight .ptsheet.ptzones.ft.fb { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
/* T800: graveyard and exile share a row when there is room (a short graveyard), else Exile wraps right under the lanes */
body.tight .ptzrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-6) var(--sp-7); }
body.tight .ptzgy { flex: 0 1 auto; min-width: 0; max-width: 100%; }
body.tight .ptzex { flex: 1 1 260px; min-width: min(260px, 100%); }
body.tight .ptlnctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
body.tight .ptlnfind { display: flex; align-items: center; gap: var(--sp-4); height: 36px; padding: 0 var(--sp-5); border-radius: var(--r-ctl); background: var(--panel2, #0b0e14); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); min-width: 0; width: 240px; max-width: 100%; box-sizing: border-box; }
body.tight .ptlnfind input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
body.tight .ptlanes { display: flex; gap: var(--sp-6); align-items: flex-start; }
body.tight .ptlanes.swipe { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: var(--sp-2); -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent); }
body.tight .ptlanes.swipe::-webkit-scrollbar { display: none; }
body.tight .ptlanes.swipe > .ptlng { scroll-snap-align: start; }
body.tight .ptlng { display: flex; flex-direction: column; gap: var(--sp-4); flex: none; min-width: 0; }
body.tight .ptlngl { display: flex; gap: var(--sp-4); align-items: flex-start; }
body.tight .ptlnhs { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .ptlnh { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 28px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: none; color: var(--tgold, #e9cf8f); font: inherit; font-size: var(--fs-sm); font-weight: 800; white-space: nowrap; cursor: pointer; }
body.tight .ptlnh:hover, body.tight .ptlnh:focus-visible { background: rgba(233, 207, 143, .12); outline: 0; }
body.tight .ptlnh.on { background: var(--tgold, #e9cf8f); color: #1a130c; }
body.tight .ptlnh .ptlnn { color: var(--muted); font-weight: 700; }
body.tight .ptlnh.on .ptlnn { color: #3a2c12; }
@media (pointer: coarse) { body.tight .ptlnh { min-height: 44px; } }
body.tight.light .ptlnh:not(.on) { color: #7c570d; }   /* the pale gold does not read on the light sheet (archive gold, 6:1) */
body.tight .ptzti { display: inline-flex; }
body.tight .ptlane { position: relative; flex: none; }
body.tight .ptlnc { position: absolute; left: 0; width: 100%; transition: top .16s ease-out; }
body.tight .ptlane .ptslot.gy { --cw: var(--lw); }
body.tight .ptlane .ptslot.gy .ptcap, body.tight .ptlane .ptslot.gy .ptinfo { display: none; }   /* the strip shows the printed title bar itself */
body.tight .ptlane .ptslot.gy > .ptc { box-shadow: 0 -2px 8px rgba(0, 0, 0, .45); }
body.tight .ptlnc.hov .ptslot.gy > .ptc, body.tight .ptlnc.open .ptslot.gy > .ptc { box-shadow: 0 0 0 3px var(--tgold, #e9cf8f), 0 0 18px rgba(233, 207, 143, .5); }
body.tight .ptlnhit .ptc, body.tight .ptlnhit.ptc { box-shadow: 0 0 0 3px var(--tgold, #e9cf8f) !important; }
body.tight .ptlndim { opacity: .35; }
body.tight .ptlnpv { position: fixed; z-index: 120; display: none; pointer-events: none; border-radius: var(--r-box); box-shadow: 0 20px 50px rgba(0, 0, 0, .8); }
body.tight .ptxv { gap: var(--sp-6); }
body.tight .ptxg { display: flex; flex-direction: column; gap: var(--sp-4); }
/* ticket #323: the Playable from exile frame is as wide as its cards, not the whole sheet */
body.tight .ptxg.play { align-self: flex-start; max-width: 100%; padding: var(--sp-5); border-radius: var(--r-box); background: rgba(233, 207, 143, .06); box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .28); }
body.tight .ptxg h4 { margin: 0; display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text); }
body.tight .ptxg.play h4 { color: var(--tgold, #e9cf8f); }
body.tight .ptxg h4 > span { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); }
body.tight .ptxsrc { width: 34px; border-radius: var(--r-tag); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
body.tight .ptxrow { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
body.tight .ptxc { position: relative; margin: 0; width: 112px; display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .ptxc > .ptslot.gy { --cw: 112px; }
body.tight .ptxc.play > .ptslot.gy > .ptc { box-shadow: 0 0 0 2px var(--tgold, #e9cf8f), 0 0 16px rgba(233, 207, 143, .45); }
body.tight .ptxc figcaption { font-size: var(--fs-xs); line-height: 1.3; color: var(--text2, #c9c4b8); }
/* #316: the card panel's "Exiled with this card": the pile's figures, three across the docked panel (more in the wider bottom sheet) */
body.tight .ptexw { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .ptppstate > .ptexw:first-child { border-top: 0; padding-top: 0; }
body.tight .ptexw .ptxrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--sp-4); }
body.tight .ptexw .ptxc { width: auto; container-type: inline-size; }
body.tight .ptexw .ptxc > .ptslot.gy { --cw: 100cqw; }
body.tight .ptxchip { align-self: flex-start; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--tgold, #e9cf8f); color: #1a130c; font-size: var(--fs-xs); font-weight: 800; }
body.tight .ptxpeek { position: absolute; left: var(--sp-3); right: var(--sp-3); top: 116px; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 28px; border: 0; border-radius: var(--r-pill); background: rgba(9, 13, 18, .92); color: var(--tgold, #e9cf8f); box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .5); font: inherit; font-size: var(--fs-xs); font-weight: 800; cursor: pointer; }
body.tight .ptgyrow > .ptslot.gy { --cw: var(--gw); z-index: var(--gz); }
body.tight .ptgyrow.over { gap: 0; }
body.tight .ptgyrow.over > .ptslot.gy + .ptslot.gy { margin-left: calc(var(--gs) - var(--gw)); }
body.tight .ptgyrow.over > .ptslot.gy:is(:hover, :focus-within) { z-index: 400; }
body.tight .ptgyrow.big .ptcap { display: none; }   /* the printed name is readable from 120 px */
body.tight .ptgyrow.over > .ptslot.gy + .ptslot.gy:not(:hover, :focus-within) .ptcap { display: none; }   /* a covered card: no cut-off name */
body.tight .ptc { position: relative; flex: 0 0 auto; width: var(--cw); height: calc(var(--cw) * 1.393); padding: 0; border: 1px solid var(--line); border-radius: calc(var(--cw) * .055); background: var(--imgbg); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; color: var(--text); font: inherit; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
/* B19 (Scryfall's image rules: never blur, desaturate, darken or colour-shift card images): a dimmed card gets an even dark veil over the
   whole card (--veil 0..1), the picture's own pixels stay untouched */
body.tight .ptc { --veil: 0; }
body.tight .ptc::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: rgb(8 10 14 / var(--veil, 0)); pointer-events: none; transition: background .15s ease; }
body.tight .ptc > img, body.tight .ptc > .cardback { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
body.tight .ptc > .cardback svg, body.tight .ptc > .cardback img, body.tight .ptc > .cardback picture { width: 100%; height: 100%; display: block; border-radius: inherit; }
body.tight .ptslot.tapped .ptc { transform: rotate(90deg); }
body.tight .ptc.sick > img { opacity: .62; }
body.tight .ptc.flip180 > img { transform: rotate(180deg); }
body.tight .ptc.can { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); }
/* playable on the board (owner 2026-10-20: the faint glow was hard to see): a 3 px ring in a fixed strong gold (--tplay; the palette's --tline can be
   near white) plus a soft outer glow that breathes slowly (--pg, 2 s); distinct from the combo's pale --tline ring, the accent ring with a check (.sel)
   and the dashed target outline (.tgt). Not under reduced motion. */
body.tight .ptwrap.ptt .ptc.can { border-color: var(--tplay); }
body.tight .ptwrap.ptt .ptslot:not(.fxhit, .fxrecoil, .fxspawn) > .ptc.can { animation: ptplay 2s ease-in-out var(--pbd, 0s) 3 alternate both; }   /* T787/T805: --pbd (playtest.js breathAt) is how far this card already is into its three breaths, so a redraw does not start them again. The motion effects keep their own animation. T697: three breaths (6 s), then the full glow holds: --pg is a custom property, so every frame of the breath was a style recalc and a repaint of the board on the main thread */
@media (prefers-reduced-motion: reduce) { body.tight .ptwrap.ptt .ptslot:not(.fxhit, .fxrecoil, .fxspawn) > .ptc.can { animation: none; } }
body.tight .ptwrap.ptt.fxoff .ptslot:not(.fxhit, .fxrecoil, .fxspawn) > .ptc.can { animation: none; }
body.tight .ptc.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
body.tight .ptc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.tight .ptcap { position: absolute; left: 0; right: 0; top: 0; padding: var(--sp-1) var(--sp-2); font-size: 11px; line-height: 1.25; color: #fff; background: #000a; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; pointer-events: none; }
body.tight .ptnoimg { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); width: 100%; height: 100%; box-sizing: border-box; text-align: left; font-size: 11px; line-height: 1.25; color: var(--text); background: var(--imgbg); border-radius: inherit; overflow: hidden; }
body.tight .ptnoimg span { color: var(--text2); }
body.tight .ptnoimg.big { aspect-ratio: 488 / 680; height: auto; font-size: var(--fs-lg); }
/* ticket #181: a token without a picture (Kibo's Banana) shows the token mark, centred, so it reads as a permanent and not an empty slot */
body.tight .ptnoimg.tok { align-items: center; justify-content: center; text-align: center; }
body.tight .ptnoimg.tok > .uico { color: var(--gold); }
body.tight .ptnoimg .ptnoimgo { color: inherit; white-space: pre-line; }
body.tight .pttile > .ptnoimg { padding-bottom: calc(var(--tw) * .18 + var(--sp-1)); gap: var(--sp-1); }   /* above the nameplate (.ptnp), never under it (#181) */
body.tight :is(.tw64, .tw56, .tw48, .tw40) .pttile > .ptnoimg > span:not(.uico) { display: none; }   /* small tiles: the mark and the nameplate only */
body.tight .ptbadge, body.tight .ptpt, body.tight .ptctrs, body.tight .ptcheck, body.tight .ptcount { pointer-events: none; }
body.tight .ptbadge { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); padding: 1px var(--sp-3); border-radius: var(--r-tag); font-size: 11px; font-weight: var(--fw-title); background: var(--accent); color: var(--onAccent); white-space: nowrap; z-index: 2; max-width: 130%; overflow: hidden; text-overflow: ellipsis; }
body.tight .ptbadge.blk { background: var(--panel); color: var(--text); border: 1px solid var(--accent); }
body.tight .ptbadge.quiet { background: var(--panel); color: var(--text2); border: 1px solid var(--line); font-weight: var(--fw-label); }
body.tight .ptcount { position: absolute; top: -8px; right: -8px; min-width: var(--sp-7); height: var(--sp-7); padding: 0 var(--sp-2); box-sizing: border-box; border-radius: var(--r-box); background: var(--panel); color: var(--text); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: var(--fw-display); display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
body.tight .ptpt { position: absolute; right: 3px; bottom: 3px; white-space: nowrap; padding: 1px var(--sp-2); border-radius: var(--r-tag); background: var(--panel); color: var(--text); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .ptpt.hot { color: var(--bad); border-color: var(--bad); }
body.tight .ptctrs { position: absolute; left: 3px; bottom: 3px; display: flex; flex-direction: column; gap: var(--sp-1); align-items: flex-start; max-width: 64%; }
/* ticket #326 (owner 2026-11-25, mockup t326): a battle on its defender's side carries its controller ON the card (no room above it): avatar + name */
body.tight .ptguest { position: absolute; top: 3px; left: 3px; z-index: 3; max-width: calc(100% - 6px); display: inline-flex; align-items: center; gap: var(--sp-1); padding: 1px var(--sp-3) 1px 2px; border-radius: var(--r-pill); background: rgba(9, 13, 18, .86); color: #f1ece0; box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .55); font-size: 11px; font-weight: var(--fw-title); line-height: 1.3; pointer-events: none; }
body.tight .ptguestn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .ptguest .ptgav { flex: none; width: var(--sp-6); height: var(--sp-6); border-radius: 50%; font-size: var(--fs-xs); line-height: var(--sp-6); text-align: center; object-fit: cover; }
body.tight .ptctr { padding: 0 var(--sp-2); border-radius: var(--r-tag); background: var(--panel); border: 1px solid var(--line); font-size: 11px; font-weight: var(--fw-title); color: var(--text); white-space: nowrap; }
body.tight .ptcheck { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: var(--h-xs); height: var(--h-xs); border-radius: 50%; background: var(--accent); color: var(--onAccent); display: flex; align-items: center; justify-content: center; }
body.tight .ptinfo { position: absolute; right: -10px; top: 38%; width: var(--sp-7); height: var(--sp-7); border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text2); font: italic 700 var(--fs-xs) Georgia, serif; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; opacity: 0; }
body.tight .ptslot:hover .ptinfo, body.tight .ptslot:focus-within .ptinfo { opacity: 1; }
@media (hover: none) { body.tight .ptinfo { opacity: 1; } }
@media (pointer: coarse) { body.tight .ptinfo::before { content: ''; position: absolute; inset: -8px; } }   /* a 40 px hit area */
/* the opponent, you, the mana pool */
body.tight .ptme.can { padding: var(--sp-3) var(--sp-4); margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-4)); border-radius: var(--r-ctl); }
body.tight .ptopp.can, body.tight .ptme.can { box-shadow: 0 0 0 2px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
body.tight .ptopp.sel { border-color: var(--accent); }
body.tight .ptopp.dead .ptsval { color: var(--bad); }
body.tight .ptopphead { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
body.tight .ptoppnums { margin-left: auto; display: flex; align-items: center; gap: var(--sp-4) var(--sp-5); flex-wrap: wrap; justify-content: flex-end; }
body.tight .ptlifebox { display: inline-flex; align-items: baseline; gap: var(--sp-4); }
body.tight .ptlife { font-size: var(--fs-3xl); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; line-height: 1.1; }
body.tight .ptopprow { gap: var(--sp-4); }
body.tight .ptstep { display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .ptsbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: var(--fs-xl); font-weight: var(--fw-title); line-height: 1; cursor: pointer; padding: 0; flex: 0 0 auto; }
body.tight .ptsbtn:disabled { opacity: .4; cursor: default; }
body.tight .ptsval { min-width: 28px; text-align: center; font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .ptstep.big .ptsval { font-size: var(--fs-3xl); min-width: 52px; }
body.tight .ptpool { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
body.tight .ptpip { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-lg); padding: var(--sp-1) var(--sp-2); border-radius: var(--r-ctl); border: 1px solid transparent; background: transparent; color: var(--text); }
body.tight .ptpip.zero { opacity: .45; }
body.tight button.ptpip { min-height: 40px; padding: 0 var(--sp-5); border-color: var(--accent); cursor: pointer; }
body.tight .ptpoolset { display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .ptpoolc { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .ptcmd { display: flex; gap: var(--sp-4); align-items: flex-start; }
body.tight .ptmestrip { display: none; }
body.tight .ptmestrip-in { display: flex; gap: var(--sp-5) var(--sp-6); flex-wrap: wrap; align-items: center; justify-content: space-between; }
body.tight .ptmoblife { white-space: nowrap; color: var(--text2); }
body.tight .ptmoblife b { font-size: var(--fs-lg); color: var(--text); }
body.tight .ptattack { margin-left: auto; align-self: center; }
/* ticket #205 (mockup 4nA4QavA7E5KuZ5TMk8czr): the Assisted board's phone life bar, the zone piles above the hand (phones and tablets) and the
   desktop's Graveyard and Exile piles with their top card */
body.tight .ptalife { flex-direction: row; align-items: center; justify-content: space-around; gap: var(--sp-4); height: calc(var(--h-md) + var(--sp-4)); box-sizing: border-box; padding: 0 var(--sp-4); }
body.tight .ptalside { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
body.tight .ptall { font-size: var(--fs-sm); color: var(--muted); }
body.tight .ptalife .ptsbtn { width: var(--h-sm); height: var(--h-sm); font-size: var(--fs-lg); }
body.tight .ptalv { min-width: var(--h-md); height: var(--h-md); padding: 0 var(--sp-2); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-2xl); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .ptalv.dead { color: var(--bad); }
body.tight .ptalsep { flex: 0 0 1px; height: var(--h-xs); background: var(--line); }
body.tight .ptapiles { display: none; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) 0; }
body.tight .ptapile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-xs); }
body.tight .ptapw { position: relative; width: 52px; aspect-ratio: 488 / 680; display: block; }
body.tight .ptapc { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; border-radius: var(--r-tag); overflow: hidden; background: var(--imgbg); }
body.tight .ptapc > img, body.tight .ptapc > .cardback, body.tight .ptapc > .cardback svg { width: 100%; height: 100%; display: block; object-fit: cover; }
body.tight .ptapc.empty { background: transparent; border: 1.5px dashed var(--line); }
body.tight .ptapc.lib { box-shadow: 2px 2px 0 var(--bg), 3px 3px 0 var(--line), 5px 5px 0 var(--bg), 6px 6px 0 var(--line); }
body.tight .ptapc.tok { background: var(--panel); border: 1.5px solid var(--line); color: var(--text); font-size: var(--fs-2xl); }
body.tight .ptapnm { padding: var(--sp-2); font-size: 11px; line-height: 1.2; color: var(--text2); text-align: center; overflow: hidden; }
body.tight .ptapn { position: absolute; right: -6px; bottom: -6px; min-width: var(--sp-7); height: var(--sp-7); padding: 0 var(--sp-3); box-sizing: border-box; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: var(--fs-xs); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
body.tight .ptaptax { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--sec); color: var(--onAccent); font-size: 11px; font-weight: var(--fw-title); line-height: 16px; white-space: nowrap; }
body.tight .ptapl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body.tight .ptapile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl); }
@media (hover: hover) { body.tight .ptapile:hover { color: var(--text); } body.tight .ptapile:hover .ptapc { box-shadow: 0 0 0 2px var(--accent); } }
@media (max-width: 1100px) { body.tight .ptapiles { display: flex; } }
body.tight .ptwrap.mob.hassheet .ptdock .ptapiles { display: none; }   /* a question as a bottom sheet: the board gets the room */
body.tight .ptapz { flex-direction: row; align-items: center; gap: var(--sp-5); }
body.tight .ptapz > .ptapc { flex: 0 0 40px; width: 40px; height: auto; aspect-ratio: 488 / 680; }
body.tight .ptapzt { flex: 1 1 auto; min-width: 0; }
body.tight .ptazn { text-align: left; color: var(--text); }
/* the stack and the log */
body.tight .ptlogbox { min-height: calc(5 * var(--h-xs)); }
body.tight .ptlog { overflow-y: auto; min-height: 0; flex: 1 1 0; font-size: var(--fs-xs); color: var(--text2); line-height: 1.45; scrollbar-width: none; }
body.tight .ptlog > div { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
body.tight .ptlog .turn { color: var(--text); font-weight: var(--fw-title); }
body.tight .ptsheet .ptlog { max-height: 56vh; flex: 0 1 auto; }
body.tight .ptlogphases { text-transform: none; font-weight: var(--fw-text); display: inline-flex; gap: var(--sp-3); align-items: center; }
body.tight .ptstats { line-height: 1.6; }
/* the prompt bar above the hand ("Forge asks"); a bottom sheet on phones */
body.tight .ptprompt { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-4) var(--sp-5); flex-wrap: wrap; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-box); border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
body.tight .ptprompt.quiet { border-color: var(--line); background: var(--card); padding: var(--sp-4) var(--sp-5); }
body.tight .ptprompt.dialog { flex-direction: column; flex-wrap: nowrap; align-items: stretch; max-height: 48vh; overflow-y: auto; scrollbar-width: none; }
body.tight .ptprompt.dialog > * { flex: 0 0 auto; }
/* T749 (owner signed off Style A, 2026-11-13): the question frame. A header band (thumbnail, Your move, the card's name), the question,
   the buttons bottom right. T715/T749: a frame held taller (promptHold) keeps its buttons on its bottom edge. */
body.tight .ptprompt.pf { --pfx: var(--sp-6); --pfb: color-mix(in srgb, var(--accent) 70%, var(--card)); flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--sp-3);
  padding: 0 var(--pfx) var(--sp-5); background: var(--card); border: 1.5px solid var(--pfb);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 40px rgba(0, 0, 0, .5); }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt.pf { --pfx: var(--sp-5); padding: 0 var(--pfx) var(--sp-4); }
@media (max-width: 700px) { body.tight .ptprompt.pf { --pfx: var(--sp-5); } }
body.tight .ptprompt.pf > * { flex: 0 0 auto; }
body.tight .ptprompt.pf > .pfhd { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--sp-4); margin: 0 calc(-1 * var(--pfx)) var(--sp-1);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-5); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--card));
  background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--text); text-transform: none; letter-spacing: 0; font-size: var(--fs-md); font-weight: 400; }
body.tight .pfthumb { flex: none; width: 34px; aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--inset); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
body.tight .pfthumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
body.tight .pfthumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .pfwho { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.tight .pfk { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
body.tight .pfdot { flex: none; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); animation: pfdot 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .pfdot { animation: none; } }
body.tight .pfn { font-weight: var(--fw-title); color: var(--text); }
body.tight .ptprompt.pf .ptpm { font-size: var(--fs-md); font-weight: 500; }
body.tight .ptprompt.pf > .ptbtns:last-child { margin-top: auto; padding-top: var(--sp-2); justify-content: flex-end; }
body.tight .ptprompt.pf.sheet > .pfhd { background: transparent; border-bottom: 0; position: static; }
body.tight .ptpq { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
body.tight .ptpk { font-size: var(--fs-xs); color: var(--accent); font-weight: var(--fw-title); letter-spacing: .04em; text-transform: uppercase; }
body.tight .ptprompt.quiet .ptpk { color: var(--muted); }
body.tight .ptpm { font-size: var(--fs-lg); white-space: pre-line; }
body.tight .ptbtns { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
body.tight .ptpick { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--sp-5); overflow-x: hidden; overflow-y: auto; max-height: 40vh; overscroll-behavior: contain; padding: var(--sp-5) var(--sp-4) var(--sp-2) var(--sp-1); flex: 1 1 100%; scrollbar-width: thin; }   /* T53: cards wrap into rows and scroll down, none cut off at the edge */
body.tight .ptpick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl); }   /* ticket #53: the strip takes the keyboard (arrows, Page Down) */
body.tight .ptnotice .ptnoticen { font-weight: 400; margin-left: var(--sp-3); white-space: nowrap; }
body.tight .ptopts { display: flex; flex-direction: column; gap: var(--sp-3); max-height: 40vh; overflow-y: auto; scrollbar-width: none; }
body.tight .ptopt { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; font: inherit; cursor: pointer; width: 100%; box-sizing: border-box; flex-shrink: 0; }
body.tight div.ptopt { cursor: default; flex-wrap: wrap; }
body.tight .ptopt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
body.tight .ptopt:disabled { opacity: .5; cursor: default; }
body.tight .ptdot { flex: 0 0 var(--sp-6); width: var(--sp-6); height: var(--sp-6); box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); }
body.tight .ptopt[aria-pressed="true"] .ptdot { border-color: var(--accent); background: radial-gradient(var(--accent) 42%, transparent 48%); }
body.tight .ptoptl { flex: 1 1 140px; min-width: 0; font-size: var(--fs-md); }
body.tight .ptopthint { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--muted); }   /* T942: a sticker's line (playcore.js optionHints) */
body.tight .ptoptwhy { flex: 0 1 auto; min-width: 0; font-size: var(--fs-sm); color: var(--muted); text-align: right; }
body.tight .ptoptimg { flex: 0 0 40px; width: 40px; aspect-ratio: 488 / 680; border-radius: 4.75% / 3.4%; overflow: hidden; background: var(--imgbg); padding: 0; border: 0; display: block; }
body.tight .ptoptimg img { width: 100%; height: 100%; display: block; object-fit: cover; }
body.tight .ptoptimg.big { flex-basis: 64px; width: 64px; cursor: pointer; }
body.tight .ptordn { width: 24px; text-align: center; }
body.tight .ptorder .seg button { min-height: var(--h-sm); }
/* T877 (owner 2026-11-19): the order prompt's two arrows are one block at the row's right end, up above down, and a row that has the
   block stays one line, so the down arrow cannot drop under the picture. Other .ptorder rows (graveyard, exile, library search, Scry)
   have no block and keep wrapping. The phone board's rules are with its other order-row rules (.pttbl.ptph .ptorder). */
body.tight .ptordmv { flex: none; display: flex; flex-direction: column; gap: var(--sp-2); margin-left: auto; }
body.tight .ptordmv .iconbtn2 { width: var(--h-md); height: var(--h-sm); }
body.tight div.ptorder:has(> .ptordmv) { flex-wrap: nowrap; }

body.tight .ptprompt.sheet { border-radius: var(--r-box) var(--r-box) 0 0; border-left: 0; border-right: 0; border-bottom: 0; margin: 0 calc(-1 * var(--sp-5)); box-shadow: 0 -12px 30px #0006; max-height: 52vh; overflow-y: auto; }
body.tight .ptnotice { gap: var(--sp-4); }
body.tight .ptnotice { white-space: normal; } body.tight .ptnotice > .row.between { align-items: flex-start; } body.tight .ptnotice > .row.between > b { min-width: 0; overflow-wrap: anywhere; } body.tight .ptnotice > .row.between > .btn { flex: 0 0 auto; }   /* ticket #76: a long reveal title wraps; the close button stays on screen on phones */
body.tight .ptnote { gap: var(--sp-4); align-items: flex-start; padding: var(--sp-3) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
body.tight .ptnote summary { display: flex; gap: var(--sp-4); align-items: center; cursor: pointer; list-style: none; min-height: var(--h-xs); }
body.tight .ptnote summary::-webkit-details-marker { display: none; }
body.tight .ptnotefull { padding: var(--sp-3) 0; line-height: 1.5; }
/* the phone dock and the sheets (cards, zones, log, stops, library actions) */
body.tight .ptdock { flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--sp-4); padding: 0 var(--sp-5); background: var(--bg); }
body.tight .ptdock .pthand { padding: var(--sp-3) var(--sp-4); }
body.tight .ptnav { display: flex; height: var(--h-lg); margin: 0 calc(-1 * var(--sp-5)); background: var(--bar); border-top: 1px solid var(--line); }
body.tight .ptnavb { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); border: 0; background: transparent; color: var(--muted); font-size: var(--fs-xs); cursor: pointer; min-height: var(--h-lg); min-width: 0; }
body.tight .ptnavb b { font-size: var(--fs-lg); color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .ptsheet-bg { position: fixed; inset: 0; background: #0009; z-index: 65; display: flex; align-items: flex-end; justify-content: center; }
body.tight .ptsheet { width: min(560px, 100%); max-height: 86vh; overflow-y: auto; gap: var(--sp-5); border-radius: var(--r-box) var(--r-box) 0 0; background: var(--bar); border-bottom: 0; scrollbar-width: none; box-sizing: border-box; }
body.tight .ptsheet.wide { width: min(880px, 100%); }
body.tight .ptsheet-h { position: sticky; top: -14px; background: var(--bar); z-index: 4; padding: var(--sp-2) 0; margin-top: calc(-1 * var(--sp-2)); }
body.tight .ptsheet-t { font-size: var(--fs-xl); min-width: 0; }
body.tight .ptsheet .ptleft, body.tight .ptsheet .ptright { display: flex; width: auto; flex: 1 1 auto; overflow: visible; }
body.tight .ptdetail { display: flex; gap: var(--sp-6); flex-wrap: wrap; align-items: flex-start; }
body.tight .ptdetail-img { width: 260px; max-width: 100%; display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .ptdetail-text { flex: 1 1 240px; min-width: 0; gap: var(--sp-5); }
body.tight .ptover-bg { position: fixed; inset: 0; background: #0009; z-index: 64; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); }
body.tight .ptover { width: min(520px, 100%); gap: var(--sp-5); }
body.tight .ptwarnlist { margin: 0; padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .ptwait { flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); }
body.tight .ptwaitbox { max-width: 520px; }
/* the engine's cold start (owner 2026-10-18: it starts only on Start the game or Resume): fills over 10 s, then waits at 95 % */
body.tight .ptengbar { height: var(--sp-3); border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
body.tight .ptengbar > i { display: block; height: 100%; width: 95%; border-radius: var(--r-pill); background: var(--accent); transform-origin: left; animation: ptengfill 10s cubic-bezier(.25, .6, .4, 1) forwards; }
body.tight .ptmanapick { min-width: 72px; }
body.tight .ptprecons { max-height: 280px; scrollbar-width: none; }
body.tight .ptnomatch { padding: var(--sp-4) var(--sp-5); }
body.tight .ptdeckimg { width: 56px; }
body.tight .ptstopcol { flex: 1 1 220px; }
body.tight .ptctrl { min-width: 72px; }
body.tight .pttokname { flex: 1 1 180px; }
body.tight .pttoknum { width: 80px; }
body.tight .page.narrow.ptsetup > .inner { max-width: 980px; }   /* as wide as Chronicle's setup box (.brewbox) */
body.tight .ptsetup select { width: 100%; }
/* Phase A WP3 (2026-10-18): letters on identical cards, stops on the phase bar, the inline combat question, motion, the hand cursor */
body.tight .ptltr { position: absolute; left: 3px; top: 19px; min-width: var(--sp-7); height: var(--sp-7); padding: 0 var(--sp-2); box-sizing: border-box; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: var(--fs-xs); font-weight: var(--fw-display); display: inline-flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; box-shadow: 0 0 0 2px var(--bg); }
body.tight .ptltrin { display: inline-flex; align-items: center; justify-content: center; min-width: var(--sp-6); height: var(--sp-6); padding: 0 var(--sp-2); box-sizing: border-box; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: 11px; font-weight: var(--fw-display); line-height: 1; vertical-align: 1px; }
body.tight button.ptph.stop { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); }
body.tight .ptstopdot { width: var(--sp-3); height: var(--sp-3); border-radius: 50%; border: 1px solid currentColor; box-sizing: border-box; opacity: .45; flex: 0 0 auto; }
body.tight .ptph.on .ptstopdot { background: var(--accent); border-color: var(--accent); opacity: 1; }
body.tight .ptph.now.on .ptstopdot { background: var(--onAccent); border-color: var(--onAccent); }
body.tight .ptph.stop.on:not(.now) { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
body.tight .ptstopside { padding: 1px; flex: 0 0 auto; }
body.tight .ptstopside button { min-height: var(--h-xs); padding: 0 var(--sp-4); font-size: var(--fs-xs); }
body.tight .ptnoask { margin-right: auto; color: var(--text2); }
body.tight .ptfx { position: fixed; inset: 0; pointer-events: none; z-index: 62; overflow: hidden; }
/* T961: the mana that paid for your spell flies into it (playcast.js): a canvas over the board for the light, the mana symbol on each
   permanent that paid (.ptcastsym) and the spell's cost filling above it (.ptcastpip). Sizes and moves are set by the script (--cs). */
body.tight .ptfx > .ptcastcv { position: absolute; inset: 0; width: 100%; height: 100%; }
body.tight .ptcastsym, body.tight .ptcastpip { --cm: #d6deec; position: absolute; display: grid; place-items: center; width: var(--cs); height: var(--cs); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); background: #0d1018; box-shadow: 0 0 0 2px var(--cm), 0 0 12px 1px var(--cm); will-change: transform, opacity; }
body.tight .ptcastpip { width: calc(var(--cs) * .85); height: calc(var(--cs) * .85); }
body.tight .ptcastsym > .pip, body.tight .ptcastpip > .pip { background: var(--cm) !important; }
body.tight [data-m="W"].ptcastsym, body.tight [data-m="W"].ptcastpip { --cm: #ffecaa; }
body.tight [data-m="U"].ptcastsym, body.tight [data-m="U"].ptcastpip { --cm: #4aa8ff; }
body.tight [data-m="B"].ptcastsym, body.tight [data-m="B"].ptcastpip { --cm: #b07aff; }
body.tight [data-m="R"].ptcastsym, body.tight [data-m="R"].ptcastpip { --cm: #ff6a3d; }
body.tight [data-m="G"].ptcastsym, body.tight [data-m="G"].ptcastpip { --cm: #58d678; }
body.tight .ptfxghost { position: fixed; border-radius: 4.75% / 3.4%; overflow: hidden; background: var(--imgbg); box-shadow: 0 8px 24px #0008; will-change: transform, opacity; }
body.tight .ptfxveil { position: absolute; inset: 0; border-radius: inherit; background: #07090d; opacity: 0; pointer-events: none; }
body.tight .ptfxveil.ex { background: #fff6dc; }
body.tight .ptfxghost > img, body.tight .ptfxghost > .cardback, body.tight .ptfxghost > .cardback svg { width: 100%; height: 100%; display: block; object-fit: cover; }
body.tight .ptwrap { --fxk: 1; }
body.tight .ptwrap.fxfast { --fxk: .5; }
body.tight .ptslot.fxhit::after { content: ''; position: absolute; inset: 0; border-radius: calc(var(--cw) * .055); background: var(--bad); pointer-events: none; opacity: 0; z-index: 1; animation: ptefhit calc(650ms * var(--fxk)) ease-out; }
body.tight .ptslot.fxhit > .ptc { animation: ptfxshake calc(650ms * var(--fxk)) ease-out; }
body.tight .fxlife { animation: ptfxlife calc(650ms * var(--fxk)) ease-out; }
body.tight .ptslot.fxarrive { animation: ptfxarrive calc(480ms * var(--fxk)) linear both; }
body.tight .ptwrap.fxoff .fxhit::after, body.tight .ptwrap.fxoff .fxhit > .ptc, body.tight .ptwrap.fxoff .fxlife, body.tight .ptwrap.fxoff .fxarrive { animation: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptslot.fxhit::after, body.tight .ptslot.fxhit > .ptc, body.tight .fxlife, body.tight .ptslot.fxarrive { animation: none; } }
/* Phase A WP4 (2026-10-18): the stack's targets and arrows, clickable stack tiles, chosen values, Don't pay, spent sources, the bridge's info line,
   the name-a-card search, the update bar beside the phone's phase pill */
body.tight .ptboard { position: relative; }   /* the arrows' SVG sits inside the scrolling board, so a scroll needs no re-measuring */
body.tight .ptstack.ping { animation: ptefping calc(900ms * var(--fxk)) ease-out; }
body.tight .ptwrap.fxoff .ptstack.ping { animation: none; }
body.tight .ptstackfold { width: var(--h-xs); height: var(--h-xs); min-height: var(--h-xs); padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: 0 0 auto; }
body.tight .ptstackfold:hover { border-color: var(--accent); color: var(--accent); }
@media (pointer: coarse) { body.tight .ptstackfold::after { content: ''; position: absolute; inset: -6px; } }   /* a 40 px hit area */
body.tight .ptstacktg { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-xs); color: var(--text2); }
body.tight .pttg { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3); min-height: var(--h-xs); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: var(--fs-xs); line-height: 1; white-space: nowrap; max-width: 100%; }
body.tight .pttg.player { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
body.tight .pttg.stack { border-style: dashed; }
body.tight button.pttg { cursor: pointer; }
body.tight button.pttg:hover, body.tight button.pttg:focus-visible { border-color: var(--accent); color: var(--accent); }
@media (pointer: coarse) { body.tight button.pttg { min-height: var(--h-sm); } }
body.tight .ptctr.chosen { border-color: var(--accent); color: var(--accent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
body.tight .ptchosenfull { color: var(--text2); line-height: 1.5; }
body.tight .ptspent { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-1); }
/* T111 Planechase: the face-up plane in the side panel (the card small, its name, the planar deck, Roll the die) */
body.tight .ptplane { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-4); background: var(--panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); max-width: 360px; }
body.tight .ptplanec { flex: none; }
body.tight .pttbl.ptcol .ptfields > .ptplane { margin: 0 var(--sp-4); max-width: none; }
body.tight .ptinfoline { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--panel); color: var(--text2); font-size: var(--fs-sm); line-height: 1.45; }
body.tight .ptinfoi { flex: 0 0 auto; width: var(--sp-7); height: var(--sp-7); border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: italic 700 var(--fs-xs) Georgia, serif; display: inline-flex; align-items: center; justify-content: center; }
body.tight .ptlog .info { color: var(--text); border-left: 2px solid var(--accent); padding-left: var(--sp-3); }
body.tight .ptnamesearch { width: 100%; }
body.tight .ptnamechips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
body.tight .ptlongpick { max-height: 36vh; overflow-y: auto; align-content: flex-start; scrollbar-width: thin; }
body.tight .ptnamechips .chip { min-height: var(--h-xs); padding: 0 var(--sp-4); font-size: var(--fs-xs); cursor: pointer; }
/* the targets of the stack glow on phones, where there are no arrows */
@media (max-width: 700px) {
  body.tight .ptc.tgt { outline: 2px dashed var(--accent); outline-offset: 2px; }
  body.tight .ptopp.tgt, body.tight .ptmine.tgt { border-color: var(--accent); border-style: dashed; }
  body.tight.bare #maintbar { top: calc(var(--h-lg) + var(--h-md)); width: max-content; max-width: calc(100% - 2 * var(--sp-5)); }   /* T716: same place as the update strip, in a game too */
  body.tight.bare:has(#maintbar) #updatebar:not(.mini) { top: calc(var(--h-lg) + var(--h-md) + var(--sp-8) + var(--sp-6)); }
  body.tight.bare #updatebar { top: calc(var(--h-lg) + var(--h-md)); width: max-content; max-width: calc(100% - 2 * var(--sp-5)); }   /* under the bar and the phase pill, never over them (WP3 report); full width, so the text does not wrap into a tall box */
  body.tight.bare #updatebar.mini { top: auto; }   /* T255: hidden, it is the small icon in the bottom-left corner (style.css) */
}
/* Phase A WP5 (2026-10-18): priority controls, the passing bar, the Cheats sheet, Report a problem */
body.tight .ptpassing { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--text); font-size: var(--fs-sm); }
body.tight .ptpasssw { display: flex; gap: var(--sp-3); flex: 0 1 auto; min-width: 0; }   /* T662: shrinks, never overlaps the label */
body.tight .ptpassing { flex-wrap: nowrap; overflow: hidden; }
body.tight .ptpassing > .btn { flex: 0 0 auto; white-space: nowrap; }
/* T844 the loop shortcut (mockup A9HJ4Cq9yb7br6nXXv2SCc v4): the recording bar's red dot, the steps list, the progress bar */
body.tight .ptlooprecdot { flex: 0 0 auto; width: var(--sp-4); height: var(--sp-4); border-radius: 50%; background: var(--danger, #e5534b); }
body.tight .ptloopsteps { margin: 0; padding-left: 1.4em; display: grid; gap: 2px; max-height: 9.5em; overflow-y: auto; }
body.tight .ptloop input[type=number] { width: 5.5em; min-height: 44px; }
body.tight .ptloopbar { appearance: none; width: 100%; height: var(--sp-3); border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 14%, transparent); overflow: hidden; }
body.tight .ptloopbar::-webkit-progress-bar { background: transparent; }
body.tight .ptloopbar::-webkit-progress-value { background: var(--accent); }
body.tight .ptloopbar::-moz-progress-bar { background: var(--accent); }
body.tight .ptpassing .ptpasst1 { flex: 1 1 4ch; min-width: 4ch; white-space: nowrap; }
body.tight .ptpassing .ptpasssw .ptend.ptico { min-width: 0; flex: 0 1 auto; width: auto; flex-direction: row; max-width: 100%; }
body.tight .ptpassing .ptpasssw .ptend .ptendl { display: block; flex: 0 1 auto; min-width: 0; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: inherit; -webkit-line-clamp: unset; }
@media (max-width: 599.98px) { body.tight .ptpassing .ptpasssw .ptend .ptendl { display: none; } }   /* T632: switch End turn <-> To my turn while passing */
body.tight .ptpassing .ptend.ptico { height: var(--h-sm); padding: 0 var(--sp-3); border-radius: var(--r-ctl); }
body.tight .ptpassdot { flex: 0 0 auto; width: var(--sp-4); height: var(--sp-4); border-radius: 50%; background: var(--accent); animation: ptefping calc(1400ms * var(--fxk)) ease-out infinite; }
body.tight .ptwrap.fxoff .ptpassdot { animation: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptpassdot { animation: none; } }
body.tight .ptsheet .ptnoask { margin-right: 0; padding: var(--sp-3) 0; }
body.tight .ptcheat { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .ptcheat .ptopts { max-height: 30vh; overflow-y: auto; }
body.tight .ptcheat .ptbtns { flex-wrap: wrap; align-items: center; }
body.tight .ptcheatnum { width: 120px; }
body.tight .ptmanarow { flex: 1 1 100%; }
@media (min-width: 701px) { body.tight .ptmanarow { flex: 1 1 auto; } }
body.tight .ptmanab { display: inline-flex; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
body.tight .ptmanab.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .ptrepdesc { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
/* Phase C C6 (2026-10-19): a person as the opponent (avatar, name, deck), quick phrases and emotes (a bar in the side column and the strip,
   a Say sheet on phones), phrase bubbles at the plates, the disconnect banner with its countdown, the move clock chip, the watchers list,
   the controlled hand under Mindslaver, the centred mode choice of a modal spell, the watcher's bar */
body.tight .ptav { width: var(--h-xs); height: var(--h-xs); border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); color: var(--text2); font-size: var(--fs-xs); font-weight: var(--fw-title); }
body.tight .ptav.md { width: var(--h-sm); height: var(--h-sm); font-size: var(--fs-md); }
body.tight .ptav.sm { width: var(--sp-7); height: var(--sp-7); font-size: 11px; }
body.tight .ptbubble { display: inline-flex; align-items: center; min-height: var(--h-xs); padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-label); white-space: nowrap; animation: ptbubblein calc(220ms * var(--fxk)) ease-out; }
body.tight .ptbubble.emo { font-size: var(--fs-lg); padding: 0 var(--sp-3); }
body.tight .ptwrap.fxoff .ptbubble { animation: none; }
body.tight .ptsay { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
body.tight .ptsaychips, body.tight .ptsayemo { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
body.tight .ptsaychip { min-height: var(--h-xs); padding: 0 var(--sp-4); font-size: var(--fs-xs); }
body.tight .ptemo { width: var(--h-sm); height: var(--h-sm); padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: var(--fs-lg); line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
body.tight .ptemo:disabled, body.tight .ptsaychip:disabled { opacity: .5; }
body.tight .ptsay.insheet .ptsaychip { min-height: var(--h-md); font-size: var(--fs-md); padding: 0 var(--sp-5); }
body.tight .ptsay.insheet .ptemo { width: var(--h-lg); height: var(--h-lg); font-size: var(--fs-xl); }
body.tight .ptmestrip > .ptsay { padding-top: var(--sp-3); border-top: 1px solid var(--line); }
body.tight .ptmestrip > .ptsay .ptsaychips, body.tight .ptmestrip > .ptsay .ptsayemo { display: inline-flex; }
body.tight .ptmestrip > .ptsay { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
body.tight .ptclock { display: inline-flex; align-items: center; min-height: var(--h-xs); padding: 0 var(--sp-3); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .ptclock.hot { color: var(--bad); border-color: var(--bad); }
body.tight .ptdrop { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); color: var(--text); font-size: var(--fs-sm); flex-wrap: wrap; }
body.tight .ptdrop.own { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
body.tight .ptdropcd { font-size: var(--fs-2xl); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; color: var(--warn); }
body.tight .ptdrop .btn { flex: 0 0 auto; }
body.tight .ptidlew .col > span { white-space: normal; }   /* T129: the idle warning's line wraps */
body.tight .pttbl.ptcol .ptidlew .btn { flex: 1 1 100%; }   /* T129: the column puts I'm here under the text */
body.tight .ptwatchers .ptwatcher { align-items: center; min-height: var(--h-xs); }
/* T44 (owner 2026-10-21): the watchers as an eye and "Watching 2" on a pill of the timers' family (.ptpturn), hidden at 0 */
body.tight .ptwatchn { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-xs); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: rgba(9, 13, 18, .92);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline, #e9cf8f) 55%, transparent), 0 6px 14px rgba(0, 0, 0, .5); font-family: var(--tserif, Georgia, serif); font-size: var(--fs-md); font-weight: 700; line-height: 1; color: var(--tgold2, #f3e4bd); white-space: nowrap; }
body.tight .ptwatchn .uico { color: var(--tline, #e9cf8f); }
body.tight .ptwatchn b { font-variant-numeric: lining-nums tabular-nums; }
body.tight .ptwatchn:hover, body.tight .ptwatchn:focus-visible { box-shadow: inset 0 0 0 1px var(--tline, #e9cf8f), 0 6px 14px rgba(0, 0, 0, .5); }
body.tight .ptmode.watching { border-color: var(--accent); color: var(--accent); }
body.tight .ptctlhand { border-color: var(--warn); }
body.tight .ptlog .phrase { color: var(--text); font-style: italic; }
@media (max-width: 700px) {
  body.tight .ptbar .ptwatchn { display: none; }   /* the Menu's Watchers item has it; the bar keeps the life totals */
  body.tight .ptdock .ptdrop { margin: 0 calc(-1 * var(--sp-5)); border-radius: var(--r-box) var(--r-box) 0 0; border-left: 0; border-top: 1px solid var(--warn); padding: var(--sp-5); }
  body.tight .ptdock .ptdrop .btn { flex: 1 1 100%; min-height: var(--h-md); }
}
body.tight .ptwrap button:not(:disabled), body.tight .ptwrap summary, body.tight .ptwrap label, body.tight .ptsetup button:not(:disabled), body.tight .ptsetup label, body.tight .ptsheet-bg button:not(:disabled) { cursor: pointer; }   /* checklist 16: every control shows the hand */
body.tight .ptwrap button:disabled, body.tight .ptsetup button:disabled { cursor: not-allowed; }
@media (pointer: coarse) { body.tight button.ptph.stop::after { content: ''; position: absolute; inset: -6px 0; } }   /* a 40 px hit area on the 28 px pills */
@media (min-width: 701px) { body.tight .ptsheet-bg { align-items: center; padding: var(--sp-6); } body.tight .ptsheet { border-radius: var(--r-box); border-bottom: 1px solid var(--line); } }
@media (min-width: 1101px) { body.tight .ptlogbtn { display: none; } }
@media (max-width: 1100px) {
  body.tight .ptleft, body.tight .ptright { display: none; }
  body.tight .ptmestrip { display: flex; }
  body.tight .ptmain { padding: var(--sp-4) var(--sp-5); }
  body.tight .ptslot { --cw: 76px; } body.tight .ptslot.hand { --cw: 84px; } body.tight .ptslot.land { --cw: 64px; } body.tight .ptslot.sm { --cw: 58px; } body.tight .ptslot.xs { --cw: 48px; }
}
@media (max-width: 700px) {
  body.tight .ptbar { padding: var(--sp-3) var(--sp-5); gap: var(--sp-4); min-height: var(--h-lg); }
  body.tight .ptphases { padding: var(--sp-3) var(--sp-5); min-height: 0; flex-wrap: wrap; }
  body.tight .ptphlist, body.tight .ptwho, body.tight .ptstopside { display: none; }
  body.tight .ptphone { display: inline-block; }
  body.tight .ptmain { padding: var(--sp-4) var(--sp-5) 0; }
  body.tight .ptslot { --cw: 60px; } body.tight .ptslot.hand, body.tight .ptslot.sm { --cw: 56px; } body.tight .ptslot.land { --cw: 52px; } body.tight .ptslot.xs { --cw: 44px; }
  body.tight .ptrow { gap: var(--sp-4); }
  body.tight .ptopphead { gap: var(--sp-4); }
  body.tight .ptoppnums { margin-left: 0; gap: var(--sp-4) var(--sp-5); justify-content: flex-start; }
  body.tight .ptprompt { padding: var(--sp-5); }
  body.tight .ptbtns { width: 100%; } body.tight .ptbtns .btn { flex: 1 1 auto; }
  body.tight .ptmestrip-in { justify-content: flex-start; }
  body.tight .ptwrap.mob.hassheet .ptdock .pthand, body.tight .ptwrap.mob.hassheet .ptmestrip { display: none; }   /* a question as a bottom sheet: the board gets the room (Hand stays in the bottom nav) */
}
@media (pointer: coarse) { body.tight .ptsbtn { width: var(--h-md); height: var(--h-md); } }
@media (hover: hover) {
  body.tight .ptc:hover { transform: translateY(-2px); }
  body.tight .ptslot.tapped .ptc:hover { transform: rotate(90deg) translateX(-2px); }
  body.tight .ptopt:not(:disabled):hover, body.tight button.ptzone:hover, body.tight button.ptph:hover, body.tight .ptstackimg:hover, body.tight .ptoptimg.big:hover { border-color: var(--accent); }
  body.tight .ptsbtn:not(:disabled):hover, body.tight .ptinfo:hover { border-color: var(--accent); color: var(--accent); }
  body.tight .ptnavb:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
}
@media (hover: none) {
  body.tight .ptc:active { transform: scale(.97); }
  body.tight .ptslot.tapped .ptc:active { transform: rotate(90deg) scale(.97); }
  body.tight .ptopt:not(:disabled):active, body.tight button.ptzone:active, body.tight .ptsbtn:not(:disabled):active, body.tight .ptnavb:active, body.tight button.ptph:active { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); }
}
@media (prefers-reduced-motion: reduce) { body.tight .ptc { transition: none; } }

/* ---------- the Playtest table (board look D1, owner sign-off 2026-10-19; docs/design/board-look/Board5.dc.html, Board5Tablet, Board4Phone;
   DESIGN 4.10). The board is a table: no side panels, the Challenger's half on top, yours below, a soft seam between them. Positions follow
   the design's layout maths (renderVals; layout.json at 1440 x 900) and are not on the spacing scale on purpose; type, corners, heights,
   gaps and paddings are. .pttbl.ptwide = landscape from 960 px (tiers .tL desktop, .tM tablet/laptop, .tS short screens); .pttbl.ptcol =
   phones and portrait tablets (Board4Phone's structure with round 5's pieces). The fields are transparent when .ptwrap.arena (D5) puts a
   painting into .ptarena under them. Tile widths are classes (.tw<N>, PC.TILE_W), so playtest.js writes no sizes inline. ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/static/fonts/cormorant-garamond-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url(/static/fonts/cormorant-garamond-italic-latin.woff2) format('woff2'); }
/* AT (SCOPE 17.20): --tline/--tline2 (the board's decorative gold: rings, slot edges, seam, engraving, combo glow, keyword icons) and --tglow/--tglow2
   (an arena's glow spots) follow the palette; playtest.js tintVars sets them from core.js RZ.arenaTint, these are the Arcane values. Text keeps --tgold/--tgold2. */
@property --hcw { syntax: '<length>'; inherits: true; initial-value: 0px; }   /* T947: registered, so getComputedStyle gives the scaled width in px (playtest.js fanMeasure) */
body.tight .ptwrap.ptt { --tplay: #ffb52e; --tgold: #e9cf8f; --tgold2: #f3e4bd; --tline: #e9cf8f; --tline2: #f3e4bd; --tglow: #ffc46e; --tglow2: #ffaa50; --kw-icon: var(--tline); --tsteel: #c8d2e1; --tink: #0e141a; --tink2: #0b1016; --ttext: #f1ece0; --tserif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --av: 100px; --libw: 104px; --peek: 54px; --sidew: 360px; --hcwb: 150px; --hcw: calc(var(--hcwb) * var(--hk, 1)); --handzone: 640px; background: #090d12; }   /* T947: --hcwb is the tier's hand card width (also .tP, the phone pod), --hk the player's Hand size (Board settings, .8-1.2), --hcw what the hand uses */
body.tight .ptwrap.ptt.tM { --av: 84px; --libw: 86px; --peek: 48px; --sidew: 280px; --hcwb: 130px; --handzone: 440px; }
body.tight .ptwrap.ptt.tS { --av: 64px; --libw: 72px; --peek: 40px; --sidew: 280px; --hcwb: 110px; --handzone: 440px; }
body.tight .ptwrap.ptt.tC { --av: 40px; --libw: 40px; --peek: 40px; --hcwb: 96px; }
@media (min-width: 701px) { body.tight .ptwrap.ptt.tC { --av: 56px; --libw: 56px; --hcwb: 120px; --peek: 48px; } }
body.tight .pttbl { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; --seam: calc((100% - var(--peek)) * .47); -webkit-user-select: none; user-select: none; }   /* T977: a double click on the table selected a playmat (the whole mat turned blue) */
body.tight .pttbl :is(input, textarea, [contenteditable], .ptnote, .ptnotice, .ptinfoline) { -webkit-user-select: text; user-select: text; }   /* fields stay fields (Safari takes the table's rule into them too), and the notes on the table stay text to copy (the list of cards the engine plays badly) */
body.tight .ptarena { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
body.tight .ptfield { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
body.tight .ptfield.opp, body.tight .ptfhalf.opp { background: radial-gradient(ellipse 80% 90% at 50% 100%, #1b2531 0%, #121a23 60%, #0b1016 100%); }
body.tight .ptfield.me, body.tight .ptfhalf.me { background: radial-gradient(ellipse 80% 70% at 50% 0%, #252a33 0%, #181c24 55%, #0d1015 100%); }
body.tight .ptfield.opp { top: 0; height: var(--seam); }
body.tight .ptfield.me { top: var(--seam); bottom: 0; }
body.tight .ptwrap.arena .pttbl, body.tight .ptwrap.ptt.arena { background: transparent; }
body.tight .ptwrap.ptt.arena { background: transparent; }
body.tight .ptwrap.arena .ptfield.opp, body.tight .ptwrap.arena .ptfhalf.opp { background: linear-gradient(180deg, rgba(6, 9, 14, .05), rgba(6, 9, 14, .28)); }
body.tight .ptwrap.arena .ptfield.me, body.tight .ptwrap.arena .ptfhalf.me { background: linear-gradient(180deg, rgba(6, 9, 14, .28), rgba(6, 9, 14, .05)); }
body.tight .ptwrap.arena .ptchart { display: none; }
/* the arena picker (Profile > Arena, the board's settings; style.css .arpick): a locked arena (2026-10-19, it opens with a level) is dimmed, with a lock and the level */
body.tight .arpick { position: relative; }
body.tight .arpicks.board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tight .arpick img { height: auto; }
body.tight .arpick.locked { cursor: not-allowed; }
body.tight .arpick.locked:hover { transform: none; }
body.tight .arpick.locked img { filter: grayscale(.7) brightness(.4); }
body.tight .arpick.locked .arname { color: var(--muted); }
/* ---------- playmats (Phase D, D12, 2026-10-20; core.js RZ.matBox): a mat as the board draws it. The picture cover-fit with the player's
   crop (--mx/--my: the point kept in the middle, --mz: the zoom around it), turned 180° for a mat across the table (.flip), a dark scrim
   (--matdim, Board settings > Playmat brightness; 35 % by default) and the gold frame in the arena's tint (--tline, SCOPE 17.20). ---------- */
body.tight .rzmat { --bindw: 2px; --bind: #121317; --thread: #3b3d44; position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-box); pointer-events: none; background: #0b1018;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .8), 0 1px 1px rgba(0, 0, 0, .6), 0 3px 6px rgba(0, 0, 0, .4), 0 10px 22px rgba(0, 0, 0, .35); }   /* the contact shadow: the mat lies on the bed */
body.tight .rzmatin { position: absolute; inset: 0; overflow: hidden; }
body.tight .rzmat.flip .rzmatin { transform: rotate(180deg); }
body.tight .rzmat .rzmatimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--mx, 50%) var(--my, 50%);
  transform: scale(var(--mz, 1)); transform-origin: var(--mx, 50%) var(--my, 50%); }
body.tight .rzmatscrim { position: absolute; inset: 0; background: rgba(5, 7, 12, min(.9, calc(var(--matdim, .35) * var(--matboost, 1)))); }   /* --matboost: the mat's own multiplier (core.js RZ.PLAYMATS scrim) */
/* the real-mat look (owner 2026-10-21; their stitched mat, docs/design/playmats/refs/owner-mat-stitched-edge.png): a vector grain and a
   soft sheen of rubber-backed cloth, the arena's light (--ml from playtest.js matLight, RZ.ARENAS matLight) under the brightness scrim,
   then the overlock-stitched binding (a dark band of fine diagonal threads, --bindw by tier, crisp at 1.7x: gradients, no bitmap) and
   the mat's thickness (a highlight on the top edge, a soft dark roll inside the binding). The art never carries an edge of its own. */
body.tight .rzmatgrain { position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: overlay;
  background: url(/static/arenas/felt-grain.svg?v=1) 0 0 / 120px 120px, linear-gradient(122deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .04)); }
body.tight .rzmatlight { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: var(--ml, none); }
body.tight .rzmatframe { position: absolute; inset: 0; border-radius: inherit; border: var(--bindw) solid transparent;
  background: repeating-linear-gradient(58deg, var(--thread) 0 .9px, var(--bind) .9px 2.3px) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
body.tight .rzmatedge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .5), inset 0 0 0 calc(var(--bindw) + .5px) rgba(0, 0, 0, .25), inset 0 0 7px 1px rgba(0, 0, 0, .45); }
body.tight .ptwrap.ptt.tL .rzmat { --bindw: 3px; }
body.tight .ptwrap.ptt.tM .rzmat { --bindw: 2.5px; }
/* My Tale > Looks > Playmat: the picks (2.7 : 1 thumbnails), then the crop step: the pods' mat (3 and 4 players) or the 1v1 half, drag or sliders */
body.tight .pmpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-4); max-width: 680px; }
body.tight .pmpicks.board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.tight .pmthumb { position: relative; display: block; width: 100%; aspect-ratio: 2.7 / 1; }
body.tight .pmthumb .rzmat { border-radius: 0; box-shadow: none; }
body.tight .pmthumb .rzmatscrim { display: none; }   /* a thumbnail shows the bare picture; the crop previews show it as the board does */
body.tight .pmph { color: var(--muted); font-weight: 400; }
body.tight .pmcrop { max-width: 980px; }
body.tight .pmprevs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--sp-6); align-items: start; }
body.tight .pmprev { position: relative; width: 100%; cursor: grab; touch-action: none; user-select: none; }
body.tight .pmprev:active { cursor: grabbing; }
body.tight .pmprev.p4 { aspect-ratio: 2.7 / 1; }
body.tight .pmprev.p1 { aspect-ratio: 3.9 / 1; }   /* T206: the 1v1 half; the 1v1 switch shows it alone */
body.tight .pmprevs.one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
body.tight .pmcropfold.board .pmprevs, body.tight .pmcropfold.board .pmsls { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }   /* the board's menu is narrow */
body.tight .pmsls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
body.tight .pmsl { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
body.tight .pmsl input, body.tight .ptrng input { width: 100%; accent-color: var(--accent); }
@media (max-width: 700px) {
  body.tight .pmprevs, body.tight .pmsls { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  body.tight .pmpicks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the 2-player board: a chosen playmat lies on each half of the mat (above the painted one of today's 1v1 stills), the seam between them */
/* owner 2026-10-21: each half fills its half of the painted felt (playtest.js matVars --felt*, PC.ARENA_FELT): the felt's own rounded
   corners outside, straight at the seam, so a chosen mat sits inside the table frame like the painted default */
body.tight .pttbl.ptwide > .ptmat1 { z-index: 1; left: var(--feltl, var(--matl)); right: var(--feltr, var(--matr)); }
body.tight .pttbl.ptwide > .ptmat1.opp { top: var(--feltt, var(--matt)); bottom: calc(100% - var(--seam) + var(--matgap, 1px)); border-radius: var(--feltrad) var(--feltrad) 0 0; }
body.tight .pttbl.ptwide > .ptmat1.me { top: calc(var(--seam) + var(--matgap, 1px)); bottom: calc(100% - var(--feltb, var(--matb))); border-radius: 0 0 var(--feltrad) var(--feltrad); }
/* T65 (owner 2026-10-22): on the drawn table (a room arena) each half's playmat is a whole mat, as in pods: four round corners, the pods' sliver at the seam (--matgap) */
body.tight .ptwrap.hasbed .pttbl.ptwide > .ptmat1 { border-radius: var(--r-box); }
body.tight .ptfhalf.hasmat { position: relative; isolation: isolate; }
body.tight .ptfhalf > .ptmatc { z-index: -1; inset: 0 var(--sp-2); }
/* My Tale > Looks (arpicks.lk, 2026-10-20): every arena in one row on tablets and computers, the thumbnails shrink to fit; phones keep two
   a row so the paintings stay big enough to tell apart. A pick that previews on a long press (core.js popBind o.hold) never selects text
   or opens the image menu under the finger. */
body.tight .arpicks.lk { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
body.tight .arpicks.lk .arname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { body.tight .arpicks.lk { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; } }
/* T591 (owner 2026-11-06): the Lobby room tiles are as big as the Arena ones beside them (5 a row: Random, None and the three arenas), not one tile across
   the whole column; phones keep two a row like Arena. The bigger look on hover is RZ.lookPop 'lobby_room'. */
body.tight .arpicks.lk.room { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; }
@media (max-width: 700px) { body.tight .arpicks.lk.room { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.tight [data-hold] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.tight .arlock { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2); padding: 0 var(--sp-2); text-align: center; font-size: var(--fs-xs); font-weight: 700; color: #f1ece0; text-shadow: 0 1px 3px #000; }
/* arenas (board look D5): the painting is cover-fit under the board; .ptarbox is a 16:9 box sized like background-size: cover through container
   units, so the glows (percent positions on the painting) stay put; in the column (.rot) the box is turned 90 degrees, the painting's long
   side running down the table. A calm dark gradient shows until the image has loaded. */
body.tight .ptarena { container-type: size; overflow: hidden; background: radial-gradient(ellipse 90% 80% at 50% 45%, #1a2230 0%, #0e131b 65%, #080b10 100%); }
body.tight .ptarbox { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; translate: -50% -50%; }
body.tight .ptarena.rot .ptarbox { width: max(100cqh, 177.78cqw); rotate: 90deg; }
/* T958: the arena's answer to a click on an empty spot (playtest.js arenaTouch): a few small parts in a box round the pointer, cut out where a card or control lies (behind the cards) */
body.tight .ptatouch { position: fixed; z-index: 39; overflow: hidden; pointer-events: none; }
body.tight .ptatouch .ptatclip { position: absolute; inset: 0; }   /* one per card or control near the click: that one is cut out */
body.tight .ptatouch i { position: absolute; left: 50%; top: 50%; display: block; border-radius: 50%; opacity: 0; }
body.tight .ptatouch .ring { border: 1px solid var(--tline); box-shadow: 0 0 6px var(--tline); }
body.tight .ptatouch .ring.moon { border-color: color-mix(in srgb, #cfdcff 75%, var(--tline)); box-shadow: 0 0 6px #b9caff; }
body.tight .ptatouch .ring.moon2 { border-color: color-mix(in srgb, #9fb6ff 75%, var(--tline)); box-shadow: none; }
body.tight .ptatouch .ring.forge { border-color: color-mix(in srgb, #ffb866 75%, var(--tline)); box-shadow: 0 0 6px #ff8a3c; }
body.tight .ptatouch .mote { background: #e6edff; box-shadow: 0 0 5px #b9caff; }
body.tight .ptatouch .spark { background: #ffd9a0; box-shadow: 0 0 5px #ff8a3c; }
body.tight .ptatouch .ember { background: #ffc27a; box-shadow: 0 0 5px #ff9a48; }
body.tight .ptatouch .puff { background: radial-gradient(circle, rgba(196, 190, 178, .5), rgba(196, 190, 178, 0) 70%); }
body.tight .ptarena.port .ptarbox { width: max(100cqw, 56.25cqh); aspect-ratio: 9 / 16; }   /* a portrait room painting on a phone (RZ.ARENAS roomPortrait) */
body.tight .ptarbox picture, body.tight .ptarimg, body.tight .ptarvid { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
body.tight .ptarimg { opacity: 0; transition: opacity .6s ease; }
body.tight .ptarimg.on { opacity: 1; }
body.tight .ptarvid { object-fit: cover; }
body.tight .ptarglow { position: absolute; left: var(--gx); top: var(--gy); width: calc(var(--gr) * 2); aspect-ratio: 1; translate: -50% -50%; border-radius: 999px; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tglow) 50%, transparent), color-mix(in srgb, var(--tglow2) 15%, transparent) 55%, transparent); animation: ptargl 2.4s ease-in-out infinite alternate; }
body.tight .ptarena.ar-workshop .ptarglow { animation-duration: 2s; }
body.tight .ptarena.ar-labyrinth .ptarglow { animation-duration: 1.7s; }   /* fire bowls flicker a little quicker than lanterns */
body.tight .ptwrap.arena .ptname { text-shadow: 0 1px 4px rgba(0, 0, 0, .85); }
body.tight .ptwrap.arena .pttbl.ptcol .ptturnno { text-shadow: 0 1px 4px rgba(0, 0, 0, .85); }
/* D6: over the Workshop's bright wood and gears the italic title and the corner's text need a darker halo and a firmer colour */
body.tight .ptwrap.arena .ptctltx { text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .95), 0 0 16px rgba(0, 0, 0, .7); }
body.tight .ptwrap.ptt.fxoff .ptarglow { animation: none; opacity: .8; }
body.tight .ptwrap.ptt.fxoff .ptarimg { transition: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptarglow { animation: none; opacity: .8; } body.tight .ptarimg { transition: none; } }
body.tight .ptseam { position: absolute; left: 0; right: 0; top: calc(var(--seam) - 8px); height: var(--sp-6); z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35) 45%, color-mix(in srgb, var(--tline) 16%, transparent) 50%, rgba(0, 0, 0, .25) 55%, transparent); }
body.tight .ptchart { position: absolute; z-index: 1; left: 50%; top: calc(var(--seam) + (100% - var(--peek) - var(--seam)) / 2); width: calc((100% - var(--peek) - var(--seam)) * 1.1); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--tgold); opacity: .06; pointer-events: none; }
body.tight .ptchart svg { width: 100%; display: block; }
body.tight .ptturnno { position: absolute; z-index: 4; left: 24px; top: calc(var(--seam) - 44px); font-family: var(--tserif); font-size: 36px; font-weight: 700; letter-spacing: .04em; color: color-mix(in srgb, var(--tline) 16%, transparent); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); pointer-events: none; white-space: nowrap; }
/* fix 2026-10-19 (D6 open issue 3): the watermark sits in a box the size of the table (a size container), so on an arena it moves onto the painted
   table: a quarter of the painting's width left of the centre (the painting is cover-fit, so its width is max(100cqw, 177.78cqh)), soft and without a halo */
body.tight .ptturnbox { position: absolute; inset: 0; z-index: 4; container-type: size; pointer-events: none; }
/* BF (vb27): on an arena the number sits in the room left of the mat at the seam's height, right-aligned to the frame: never on the mat, never
   on the seam; the halo keeps it readable over the painting */
/* #66 (owner 2026-10-23): the 2-player board shows the pods' timer chip (Round, game, turn, you) at the top right under the tools, in place of the
   faint watermark; the Watching pill and the combo pill sit under it */
body.tight .pttbl.ptwide .ptpturnw { position: absolute; right: 12px; top: calc(10px + 40px + var(--sp-4)); z-index: 58; }
body.tight .ptpturnw .ptpturn { position: relative; transform: none; padding: 0; pointer-events: auto; background: none; box-shadow: none; font-family: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--ttext); }
body.tight .ptpturnw .ptptimes { left: auto; right: 0; transform: none; }
/* T65's turn number on the frame's left rail was dropped (owner 2026-10-22: the 1v1 bed is the former play area again, PC.roomTable), so the
   number is back in the room left of the mat (the BF rule above) */
/* the seam is a grip on the wide table (Board5's grabSplit): the mat's width, a gold pill at its right end; touch gets a taller hit area */
body.tight .pttbl.ptwide .ptseamg { left: var(--matl); right: var(--matr); z-index: 25; pointer-events: auto; cursor: row-resize; touch-action: none; display: flex; align-items: center; justify-content: flex-end; padding-right: 24px; box-sizing: border-box; }
body.tight .pttbl.ptwide .ptseamg::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
body.tight .ptseampill { width: 48px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--tline) 50%, transparent); opacity: 0; transition: background 150ms, width 150ms, opacity 150ms; }
body.tight .pttbl.ptwide .ptseamg:is(:hover, :focus-visible) .ptseampill, body.tight .pttbl.ptdragging .ptseamg .ptseampill { opacity: 1; }   /* T814: shown under the mouse only */
@media (hover: none) and (pointer: coarse) { body.tight .ptseampill { opacity: 1; } }
body.tight .pttbl.ptwide .ptseamg:hover .ptseampill, body.tight .pttbl.ptwide .ptseamg:focus-visible .ptseampill, body.tight .pttbl.ptdragging .ptseamg .ptseampill { width: 64px; background: var(--tline); }
body.tight .pttbl.ptwide .ptseamg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.tight .ptseampill { transition: none; } }
/* the medallions on their board-drawn plinths (dark stone disc, gold ring), the life badge under each */
body.tight .ptplinth { position: absolute; z-index: 33; left: calc(50% - var(--av) / 2 - 20px); width: calc(var(--av) + 40px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, #2a313b 0%, #161b22 70%, #0e1217 100%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tline) 55%, transparent), inset 0 0 0 6px rgba(11, 16, 22, .9), inset 0 0 0 7px color-mix(in srgb, var(--tline) 22%, transparent), 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 26px rgba(0, 0, 0, .55); }
body.tight .ptplinth.opp { top: -2px; }
body.tight .ptplinth.me { top: calc(100% - var(--peek) - 60px - var(--av)); }
body.tight .ptmed { position: absolute; z-index: 34; left: calc(50% - var(--av) / 2); width: var(--av); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: #161b22; color: var(--tgold);
  --ring: var(--tsteel); box-shadow: 0 0 0 3px #0b1016, 0 0 0 5px var(--ring), 0 0 0 9px rgba(11, 16, 22, .8), 0 0 0 10px color-mix(in srgb, var(--tline) 25%, transparent), 0 14px 30px rgba(0, 0, 0, .6); }
body.tight .ptmed.me { --ring: var(--tline); top: calc(100% - var(--peek) - 40px - var(--av)); }
body.tight .ptmed.opp { top: 18px; }
body.tight .ptmed.active { box-shadow: 0 0 0 3px #0b1016, 0 0 0 5px var(--ring), 0 0 0 9px rgba(11, 16, 22, .8), 0 0 0 10px color-mix(in srgb, var(--tline) 55%, transparent), 0 0 28px color-mix(in srgb, var(--tline) 45%, transparent), 0 14px 30px rgba(0, 0, 0, .6); }
body.tight .ptmed.can { --ring: var(--accent); cursor: pointer; box-shadow: 0 0 0 3px #0b1016, 0 0 0 5px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent), 0 14px 30px rgba(0, 0, 0, .6); }
/* ticket #341 (2026-11-21): a picked player (proliferate, a choice of players) differs from a pickable one: a solid gold ring and a
   Picked badge under the portrait; the panel's player buttons fill when picked */
body.tight .ptmed.sel { --ring: var(--gold); box-shadow: 0 0 0 3px #0b1016, 0 0 0 6px var(--gold), 0 0 26px color-mix(in srgb, var(--gold) 70%, transparent), 0 14px 30px rgba(0, 0, 0, .6); }
body.tight .ptmed.active.sel { box-shadow: 0 0 0 3px #0b1016, 0 0 0 6px var(--gold), 0 0 0 9px rgba(11, 16, 22, .8), 0 0 0 10px color-mix(in srgb, var(--tline) 55%, transparent), 0 0 28px color-mix(in srgb, var(--tline) 45%, transparent), 0 14px 30px rgba(0, 0, 0, .6); }   /* picked on your own turn: the gold ring inside the turn halo */
body.tight .ptmedpick { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #1a1408; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; pointer-events: none; z-index: 3; }
body.tight .ptwrap.ptt.tC .ptmedpickw, body.tight .ptwrap.ptt.tS .ptmedpickw, body.tight .ptwrap.ptt.tP .ptmedpickw, body.tight .pttbl.ptcol .ptmedpickw { display: none; }   /* a 40-64px portrait has room for the check only */
body.tight .ptwrap.ptt.tC .ptmedpick, body.tight .ptwrap.ptt.tS .ptmedpick, body.tight .ptwrap.ptt.tP .ptmedpick, body.tight .pttbl.ptcol .ptmedpick { padding: 2px 4px; bottom: 4%; }
body.tight .ptbtns .btn.ptplpick.on { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); color: var(--text); }
body.tight .ptbtns .btn.ptplpick .uico { margin-right: 4px; }
body.tight .ptmed.tgt { outline: 2px dashed var(--accent); outline-offset: 12px; }
body.tight .ptmed img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
body.tight .ptmed img.crop { object-position: 50% 22%; }
body.tight .ptmed > .rzav.ptmedpic { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }   /* fix10: a pod person's own picture and frame */
body.tight .ptmed > .rzav.ptmedpic img { object-position: 50% 50%; }
/* fix10 (owner): the say button on your own avatar, at its lower left (the badges hold the other corners, the life badge the bottom) */
body.tight .ptsaybtn { position: absolute; z-index: 38; width: var(--h-xs); height: var(--h-xs); padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--tink, #0e141a); color: var(--tgold2, #f3e4bd); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tline) 60%, transparent), 0 4px 10px rgba(0, 0, 0, .55); }
body.tight .ptsaybtn:hover { box-shadow: inset 0 0 0 1.5px var(--tgold), 0 4px 10px rgba(0, 0, 0, .55); }
body.tight .ptsaybtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .pttbl.ptpod .ptpav .ptsaybtn { left: 0; top: calc(20px + var(--av) * .62); }
body.tight .ptmedwrap.me > .ptsaybtn { left: calc(50% - var(--av) / 2 - 22px); top: calc(100% - var(--peek) - 40px - var(--av) * .38); }
body.tight .pttbl.ptpod .ptpav .ptmedwrap.me > .ptsaybtn { left: 0; top: calc(20px + var(--av) * .62); }
body.tight .pttbl.ptcol .ptmedwrap.me > .ptsaybtn { left: -6px; top: auto; bottom: 0; }
body.tight .ptmedini { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--tserif); font-size: 36px; font-weight: 700; }
body.tight .ptlifeb { position: absolute; z-index: 35; left: calc(50% - 34px); width: 68px; height: var(--h-sm); box-sizing: border-box; border-radius: var(--r-pill); background: var(--tink); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tline) 60%, transparent), 0 6px 14px rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center; font-family: var(--tserif); font-size: var(--fs-3xl); font-weight: 700; color: var(--tgold2); font-variant-numeric: lining-nums tabular-nums; pointer-events: none; }
/* T39 (owner 2026-10-21): crisp, handsome life totals on every table. Vector text at its real size (no transform on it), the serif's
   hairlines thickened a touch with a stroke in its own colour, a dark edge so it holds on bright art, and a lit gold rim on the pill */
body.tight .ptlifeb { font-size: 32px; line-height: 1; letter-spacing: .01em; font-kerning: normal; font-feature-settings: 'lnum' 1, 'tnum' 1; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: .35px currentColor; paint-order: stroke fill; text-shadow: 0 1px 0 rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .55);
  background: linear-gradient(180deg, #1b232c 0%, var(--tink) 55%, #070b10 100%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tline) 78%, transparent), inset 0 1px 0 rgba(255, 244, 214, .14), inset 0 0 0 1px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .6); }
body.tight .ptturnno, body.tight .ptpturnn { font-variant-numeric: lining-nums; }   /* T38: "Round 9" with lining figures (the serif's default 9 drops below the line) */
body.tight .ptlifeb.opp { top: calc(4px + var(--av)); }
body.tight .ptlifeb.me { top: calc(100% - var(--peek) - 54px); }
/* the names in the outer corners: name, a crest line with the commander, an italic title */
body.tight .ptname { position: absolute; z-index: 23; display: flex; flex-direction: column; gap: var(--sp-1); text-shadow: 0 2px 8px rgba(0, 0, 0, .85); min-width: 0; color: var(--ttext); }   /* D6: the table is dark in both themes, so the plate's own text (commander damage lines) takes the table's ink, not the theme's */
body.tight .ptname.opp { left: 22px; top: 12px; max-width: min(360px, calc(50% - var(--av) - 40px)); }
body.tight .ptname.me { left: 22px; bottom: 14px; max-width: calc(268px - var(--libw) * .8); }
body.tight .ptnm { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; font-size: var(--fs-lg); font-weight: var(--fw-display); color: var(--ttext); }
body.tight .ptcrest { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; font-family: var(--tserif); font-size: var(--fs-lg); font-weight: 700; color: var(--tgold); }
body.tight .ptnmx { font-size: var(--fs-xs); color: rgba(241, 236, 224, .75); }
body.tight .ptname .tag { align-self: flex-start; }
/* libraries: the Rule Ø gold card back in a gold-edged slot the board draws; the commander sticks out of the outer side with its tax */
body.tight .ptlib { position: absolute; z-index: 22; width: var(--libw); aspect-ratio: 63 / 88; }
body.tight .ptlib::before { content: ''; position: absolute; inset: -9px; border-radius: var(--r-box); z-index: -1; pointer-events: none; background: linear-gradient(160deg, rgba(10, 14, 20, .75), rgba(16, 21, 28, .6));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tline) 55%, transparent), inset 0 0 0 5px rgba(9, 13, 18, .8), inset 0 0 0 6px color-mix(in srgb, var(--tline) 20%, transparent), inset 0 8px 18px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .04); }
body.tight .ptlib.opp { right: 285px; top: 16px; }
body.tight .ptlib.me { left: 305px; bottom: calc(16px - var(--pdrop, 0px)); }   /* T830: --pdrop keeps it off the table (PC.roomTable) */
body.tight .ptlibback { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: var(--r-tag); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--tserif); font-weight: 700; color: var(--tgold);
  background: radial-gradient(ellipse at 50% 45%, #1d2a44 0%, #10172a 60%, #0a0f1c 100%);
  box-shadow: inset 0 0 0 2px #0a0f1c, inset 0 0 0 3px rgba(233, 207, 143, .75), inset 0 0 0 6px #0a0f1c, inset 0 0 0 7px rgba(233, 207, 143, .35), 2px 2px 0 #0b1016, 3px 3px 0 rgba(233, 207, 143, .25), 5px 5px 0 #0b1016, 6px 6px 0 rgba(233, 207, 143, .18), 10px 14px 24px rgba(0, 0, 0, .6); }
body.tight .ptlibback:hover, body.tight .ptlibback:focus-visible { box-shadow: inset 0 0 0 2px #0a0f1c, inset 0 0 0 3px var(--tgold2), inset 0 0 0 6px #0a0f1c, inset 0 0 0 7px rgba(233, 207, 143, .55), 2px 2px 0 #0b1016, 3px 3px 0 rgba(233, 207, 143, .25), 5px 5px 0 #0b1016, 6px 6px 0 rgba(233, 207, 143, .18), 10px 14px 24px rgba(0, 0, 0, .6); }
body.tight .ptlibo { font-size: calc(var(--libw) * .5); line-height: 1; }
/* the known top card (after a scry or surveil, own seat only): face up on the pile, the count and "+N known" on it */
body.tight .ptlibtop { position: absolute; inset: 0; z-index: 4; padding: 0; border: 0; border-radius: var(--r-tag); overflow: hidden; cursor: pointer; background: #0a0f1c; box-shadow: 0 0 0 2px var(--tgold2, #f3e4bd), 4px 6px 14px rgba(0, 0, 0, .6); }
body.tight .ptlibtop img, body.tight .ptlibtop picture { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .ptlibtop:hover, body.tight .ptlibtop:focus-visible { box-shadow: 0 0 0 3px var(--tglow, #ffc46e), 4px 6px 14px rgba(0, 0, 0, .6); }
body.tight .ptlibtn, body.tight .ptlibkn { position: absolute; padding: 0 var(--sp-2); border-radius: 999px; background: rgba(9, 13, 18, .88); color: var(--tgold2, #f3e4bd); font-size: 11px; font-weight: 700; line-height: 1.5; pointer-events: none; }
body.tight .ptlibtn { right: 4px; bottom: 4px; }
body.tight .ptlibkn { left: 4px; top: 4px; }
body.tight .ptlibkn { white-space: nowrap; }
body.tight .pttbl.ptcol .ptlibknw { display: none; }
body.tight .ptlibn { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: var(--fs-lg); color: rgba(233, 207, 143, .85); }
body.tight .ptcmdout { position: absolute; z-index: 2; width: var(--libw); aspect-ratio: 63 / 88; transform: rotate(calc(8deg * var(--lean, 1))); }
body.tight .ptlib.me .ptcmdout { left: 42%; top: -10%; }
body.tight .ptlib.opp .ptcmdout { left: -42%; top: 6%; }
body.tight .ptlib.me .ptcmdout.n1 { left: 70%; top: -18%; transform: rotate(calc(14deg * var(--lean, 1))); }
body.tight .ptlib.opp .ptcmdout.n1 { left: -70%; top: 14%; transform: rotate(calc(14deg * var(--lean, 1))); }
/* T122: a companion beside partner commanders fans one step further out */
body.tight .ptlib.me .ptcmdout.n2 { left: 98%; top: -26%; transform: rotate(calc(20deg * var(--lean, 1))); }
body.tight .ptlib.opp .ptcmdout.n2 { left: -98%; top: 22%; transform: rotate(calc(20deg * var(--lean, 1))); }
/* T196: with a companion it lies at the bottom (n0, nearest the library) and the commander(s) on top, fanned wider so both are easy to pick */
body.tight .ptlib.me .ptcmdout.fan.n0 { left: 46%; top: -34%; transform: rotate(calc(4deg * var(--lean, 1))); }
body.tight .ptlib.opp .ptcmdout.fan.n0 { left: -44%; top: -2%; transform: rotate(calc(4deg * var(--lean, 1))); }
body.tight .ptlib.me .ptcmdout.fan.n1 { left: 92%; top: -8%; transform: rotate(calc(12deg * var(--lean, 1))); }
body.tight .ptlib.opp .ptcmdout.fan.n1 { left: -92%; top: 18%; transform: rotate(calc(12deg * var(--lean, 1))); }
body.tight .ptlib.me .ptcmdout.fan.n2 { left: 138%; top: -16%; transform: rotate(calc(20deg * var(--lean, 1))); }
body.tight .ptlib.opp .ptcmdout.fan.n2 { left: -138%; top: 26%; transform: rotate(calc(20deg * var(--lean, 1))); }
body.tight .ptslot.pile { --cw: var(--libw); }
body.tight .ptslot.pile .ptc { box-shadow: 0 0 0 1px var(--tline), 0 10px 20px rgba(0, 0, 0, .6); border: 0; border-radius: var(--r-tag); }
body.tight .ptslot.pile .ptc.can { box-shadow: 0 0 0 3px var(--tplay, var(--accent)), 0 0 var(--pg) color-mix(in srgb, var(--tplay, var(--accent)) 70%, transparent); }
body.tight .ptslot.pile .ptcap, body.tight .ptslot.pile .ptpt, body.tight .ptslot.pile .ptbadge { display: none; }
/* T750 (owner sign-off 2026-11-13): the tax as a struck gold coin (playtest.js taxCoin), a soft shadow cast on what it lies on. w14 #7
   (owner, staging 2026-11-14): one coin per player, ON the commander's card (.on) on the clearest spot of the part sticking out of the
   pile: a bottom corner, else low on a side edge (over the text box), never on the name or the art. taxFit (playtest.js) places it there
   after every paint and reads --txo (how much of the coin hangs over the card's edge) and --txv (a side spot's height on the card). The
   rules below are where it starts, and where it stays for a commander away from the command zone: the library pile's outer corner */
body.tight .pttax { --txo: .2; --txv: .74; position: absolute; z-index: 4; left: 50%; top: -12px; width: 40px; height: 40px; transform: translateX(-50%); filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, .75)); pointer-events: auto; }
body.tight .pttax > svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.tight .ptlib.me .pttax, body.tight .pttbl.ptpod .ptlib.pl .pttax { left: -16px; right: auto; transform: none; }
body.tight .ptlib.opp .pttax, body.tight .pttbl.ptpod .ptlib.pr .pttax { left: auto; right: -16px; transform: none; }
body.tight .pttbl.ptpod .ptlib.pt .pttax { top: -6px; }   /* a top seat's pile is near the window's top edge: the coin stays on screen */
body.tight .pttbl.ptcol .ptlib:is(.pl, .pr, .me, .opp) .pttax { left: 50%; right: auto; top: -8px; width: 28px; height: 28px; transform: translateX(-50%); }
/* T446: emblems on the library pile: a star (and their count) on its lower left; one opens the card, more open the zones */
body.tight .ptemb { position: absolute; z-index: 4; left: -8px; bottom: -8px; display: inline-flex; align-items: center; gap: var(--sp-1); height: var(--h-xs); padding: 0 var(--sp-3); box-sizing: border-box; border: 0; border-radius: var(--r-pill);
  background: var(--tink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tgold) 70%, transparent), 0 2px 8px rgba(0, 0, 0, .55); color: var(--tgold); font-size: var(--fs-sm); cursor: pointer; }
body.tight .ptemb .uico { display: inline-flex; }
@media (pointer: coarse) { body.tight .ptemb::after { content: ''; position: absolute; inset: -8px; } }
/* the graveyard: face up beside the library, slightly tilted (mirrored for the Challenger) */
body.tight .ptgrave { position: absolute; z-index: 21; width: calc(var(--libw) * .8); aspect-ratio: 63 / 88; padding: 0; border: 0; border-radius: var(--r-tag); background: rgba(9, 13, 18, .35); cursor: pointer;
  box-shadow: 2px 2px 0 #0b1016, 3px 3px 0 color-mix(in srgb, var(--tline) 20%, transparent), 0 10px 20px rgba(0, 0, 0, .5); }
body.tight .ptgrave.empty { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 25%, transparent); }
body.tight .ptgrave img { width: 100%; height: 100%; display: block; border-radius: var(--r-tag); }
body.tight .ptgrave:not(.empty)::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-tag); background: rgb(8 10 14 / .08); pointer-events: none; }
body.tight .ptgrave.opp { right: calc(268px - var(--libw) * .8); top: 30px; transform: rotate(7deg); }
body.tight .ptgrave.me { left: calc(288px - var(--libw) * .8); bottom: calc(14px - var(--pdrop, 0px)); transform: rotate(-7deg); }
body.tight .ptgraven { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 0 var(--sp-3); border-radius: var(--r-tag); background: var(--tink); box-shadow: 0 0 0 1px rgba(233, 207, 143, .35); font-family: var(--tserif); font-size: var(--fs-md); font-weight: 700; color: var(--tgold); }
body.tight .ptexn { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); white-space: nowrap; padding: 0 var(--sp-3); border-radius: var(--r-tag); background: var(--tink); box-shadow: 0 0 0 1px rgba(200, 210, 225, .35); font-size: 11px; color: var(--tsteel); }
/* ticket #68: suspended cards on the pile: a clock and the time counters left per card (public), over the middle of the pile, the column too */
body.tight .ptsusp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: var(--sp-1); white-space: nowrap; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-tag); background: var(--tink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tgold) 70%, transparent), 0 2px 8px rgba(0, 0, 0, .55); font-size: var(--fs-sm); font-weight: 700; color: var(--tgold); pointer-events: none; }
body.tight .ptsusp .uico { display: inline-flex; }
/* the rows: creatures by the seam; lands left of centre and artifacts/enchantments right of it, between the creatures and the medallion */
body.tight .ptrowt { position: absolute; z-index: 20; display: flex; gap: 12px; align-items: center; }
/* BF (owner 2026-10-19, vb25): every row lies on the mat (playtest.js matVars from PC.tableGeom: --matl/--matr/--matt/--matb the mat's edges,
   --seam, --backo/--backm the back rows' outer edges, --landl, --artro/--artrm, --gapo/--gapm the free middle); each half from the seam out:
   creatures in the front row, then the back row with lands from the left edge and artifacts/enchantments from the right edge, mirrored */
body.tight .pttbl.ptwide .ptrowt.land { left: var(--landl); --tsx: 1; flex-wrap: wrap; justify-content: flex-start; }
body.tight .pttbl.ptwide .ptrowt.land.opp { max-width: calc(50% - var(--gapo) - var(--landl)); }
body.tight .pttbl.ptwide .ptrowt.land.me { max-width: calc(50% - var(--gapm) - var(--landl)); }
body.tight .pttbl.ptwide .ptrowt.land.spill { width: calc(50% - var(--gapm) - var(--landl)); }
body.tight .pttbl.ptwide .ptrowt.land.opp.spill { width: calc(50% - var(--gapo) - var(--landl)); }
body.tight .pttbl.ptwide .ptspill { flex: 1 1 0; min-width: 0; }   /* pushes the artifacts that spilled to the free middle */
body.tight .pttbl.ptwide .ptrowt.art { --tsx: -1; flex-wrap: wrap; justify-content: flex-end; }
body.tight .pttbl.ptwide .ptrowt.art.opp { right: var(--artro); max-width: calc(50% - var(--gapo) - var(--artro)); }
body.tight .pttbl.ptwide .ptrowt.art.me { right: var(--artrm); max-width: calc(50% - var(--gapm) - var(--artrm)); }
body.tight .pttbl.ptwide .ptrowt.land.opp, body.tight .pttbl.ptwide .ptrowt.art.opp { top: var(--backo); --tsy: 1; align-items: flex-start; }
body.tight .pttbl.ptwide .ptrowt.land.me, body.tight .pttbl.ptwide .ptrowt.art.me { bottom: calc(100% - var(--backm)); --tsy: -1; align-items: flex-end; }
body.tight .pttbl.ptwide .ptrowt.cre { left: calc(var(--matl) + 12px); right: calc(var(--matr) + 12px); justify-content: center; flex-wrap: wrap; }
body.tight .pttbl.ptwide .ptrowt.cre.opp { bottom: calc(100% - var(--seam) + var(--crf, 16px)); align-items: flex-end; }   /* --crf: T27's front gap (PC.frontFit) */
body.tight .pttbl.ptwide .ptrowt.cre.me { top: calc(var(--seam) + var(--crf, 16px)); align-items: flex-start; }
body.tight .pttbl.ptwide .ptrowt.cre.opp { pointer-events: none; } body.tight .pttbl.ptwide .ptrowt > * { pointer-events: auto; }
/* FR 3 (2026-10-19): a big artifact board keeps the back row to one line: the artifacts/enchantments that spill after the lands scroll sideways, so the creatures keep their size */
body.tight .pttbl.ptwide .ptrowt.land.scrollx { flex-wrap: nowrap; }
body.tight .pttbl.ptwide .ptrowt.land.scrollx > .pttl { flex: 0 0 auto; }
body.tight .pttbl.ptwide .ptrowt.land.scrollx > .ptspill { flex: 0 0 var(--sp-3); }
body.tight .pttbl.ptwide .ptrowt.land.scrollx.wrap2 { flex-wrap: wrap; }   /* T17: the lands wrap once, the strip fills the rest of their last line (never a third) */
body.tight .ptspillx { flex: 1 1 0; min-width: calc(var(--sp-8) * 3); display: flex; gap: 12px; align-items: inherit; overflow-x: auto; overflow-y: hidden; padding: var(--sp-4) var(--sp-2); margin: calc(var(--sp-4) * -1) 0; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--tgold, #e9cf8f) 45%, transparent) transparent; overscroll-behavior-x: contain; border-radius: var(--r-ctl); }
body.tight .ptspillx > * { flex: 0 0 auto; }
body.tight .ptspillx { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--sp-7)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--sp-7)), transparent); }
body.tight .ptspillx:focus-visible { outline: 2px solid var(--tgold, #e9cf8f); outline-offset: 2px; }
/* a tile: the art, the name on a nameplate inside it (gold serif on a dark band, P/T on the plate); tapped = a 20° tilt, dimmed, a tap glyph */
body.tight .ptslot.pttl { --cw: var(--tw); width: var(--tw); height: calc(var(--tw) * .74); --edge: rgba(233, 207, 143, .55); }
body.tight .ptslot.pttl.opp { --edge: rgba(200, 210, 225, .35); }
body.tight .tw208 { --tw: 208px; } body.tight .tw184 { --tw: 184px; } body.tight .tw164 { --tw: 164px; }   /* T17: large screens (PC.scaledTier) */
body.tight .tw146 { --tw: 146px; } body.tight .tw132 { --tw: 132px; } body.tight .tw120 { --tw: 120px; } body.tight .tw108 { --tw: 108px; } body.tight .tw96 { --tw: 96px; } body.tight .tw90 { --tw: 90px; } body.tight .tw84 { --tw: 84px; }
body.tight .tw80 { --tw: 80px; } body.tight .tw74 { --tw: 74px; } body.tight .tw72 { --tw: 72px; } body.tight .tw64 { --tw: 64px; } body.tight .tw56 { --tw: 56px; } body.tight .tw48 { --tw: 48px; } body.tight .tw40 { --tw: 40px; }
body.tight .ptslot.pttl.tapped { width: var(--tw); height: calc(var(--tw) * .74); }
body.tight .ptslot.pttl .ptc { width: 100%; height: 100%; border: 0; border-radius: calc(var(--tw) * .07); overflow: hidden; background: #121820; box-shadow: 0 0 0 1px var(--edge), 0 12px 24px rgba(0, 0, 0, .55); }
body.tight .ptslot.pttl.many .ptc { box-shadow: 0 0 0 1px var(--edge), 4px -4px 0 -1px var(--tink), 4px -4px 0 0 var(--edge), 8px -8px 0 -1px var(--tink), 8px -8px 0 0 var(--edge), 0 12px 24px rgba(0, 0, 0, .55); overflow: visible; }
body.tight .ptslot.pttl.many .ptc > img, body.tight .ptslot.pttl.many .ptc > .ptnp { border-radius: inherit; }
body.tight .ptslot.pttl.many .ptc > .ptnp { border-top-left-radius: 0; border-top-right-radius: 0; }
body.tight .ptslot.pttl .ptc > img { object-fit: cover; }
body.tight .ptslot.pttl .ptc > img.crop { object-position: 50% 22%; }
body.tight .ptslot.pttl .ptc.can { box-shadow: 0 0 0 3px var(--tplay, var(--accent)), 0 0 var(--pg) color-mix(in srgb, var(--tplay, var(--accent)) 70%, transparent), 0 12px 24px rgba(0, 0, 0, .55); }
body.tight .ptslot.pttl .ptc.sel { box-shadow: 0 0 0 3px var(--accent), 0 12px 24px rgba(0, 0, 0, .55); }
body.tight .ptslot.pttl.tapped .ptc { transform: var(--ttap); --veil: .3; }
/* T830: a tapped tile in a row anchored to the mat's edge moves in by --tnx / --tny (playtest.js tileTilt); the anchoring rule sets the
   direction (--tsx / --tsy: 1 away from the left / top edge, -1 away from the right / bottom one) */
body.tight .ptslot.pttl.tapped { --ttap: translate(calc(var(--tsx, 0) * var(--tnx, 0px)), calc(var(--tsy, 0) * var(--tny, 0px))) rotate(20deg); }
body.tight .ptslot.pttl.tapped .ptc.can, body.tight .ptslot.pttl.tapped .ptc.sel { --veil: 0; }
/* T858: the card's overlays (playtest.js tile: .ptonc) are one layer the size of the card: every overlay is placed against it as it was
   against the slot; on a tapped tile the layer takes the card's turn and move, so they stay on the card */
body.tight .ptonc { position: absolute; inset: 0; pointer-events: none; transition: transform .15s ease; }
body.tight :where(.ptonc) > :where(*) { pointer-events: auto; }
body.tight .ptslot.pttl.tapped > .ptonc { transform: var(--ttap); }
@media (prefers-reduced-motion: reduce) { body.tight .ptonc { transition: none; } }
/* blocking (owner 2026-10-21): the attacker your next blockers go to has a solid double ring, the other attackers a dashed "click to block" look */
body.tight .pttbl .ptslot.pttl > .ptc.ptbcur, body.tight .ptwrap.ptt .pttbl .ptslot.pttl > .ptc.ptbcur.sel { box-shadow: 0 0 0 3px #0b1016, 0 0 0 6px var(--tgold, var(--accent)), 0 0 24px color-mix(in srgb, var(--tgold, var(--accent)) 70%, transparent), 0 12px 24px rgba(0, 0, 0, .55); animation: none; }
body.tight .pttbl .ptslot.pttl > .ptc.ptbatk.can, body.tight .ptwrap.ptt .pttbl .ptslot.pttl > .ptc.ptbatk.can { box-shadow: 0 12px 24px rgba(0, 0, 0, .55); outline: 2px dashed var(--tgold, var(--accent)); outline-offset: 4px; animation: none; }
body.tight .ptslot.pttl .ptbadge.ptbcurb { background: var(--tgold, var(--accent)); color: var(--tink, #0e141a); }
body.tight .ptslot.pttl .ptbadge.ptbatkb { background: rgba(9, 13, 18, .9); color: var(--tgold2, var(--text)); border: 1px dashed var(--tgold, var(--accent)); font-weight: var(--fw-label); }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64, .tw72, .tw74, .tw80) .ptbadge.ptbatkb { display: none; }   /* small tiles: the dashed ring alone, the badges would overlap */
body.tight .ptslot.pttl.over { margin-left: calc(12px - var(--tw)); }
body.tight .ptslot.pttl:hover, body.tight .ptslot.pttl:focus-within { z-index: 5; }
body.tight .ptnp { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tw) * .18); box-sizing: border-box; padding: 0 var(--sp-3) 0 var(--sp-4); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  background: linear-gradient(180deg, rgba(9, 13, 18, .55), rgba(9, 13, 18, .94)); box-shadow: inset 0 1px 0 var(--edge); pointer-events: none; }
body.tight .ptnpn { min-width: 0; font-family: var(--tserif); font-size: var(--fs-lg); font-weight: 700; letter-spacing: .01em; color: var(--tgold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
body.tight .ptslot.pttl.opp .ptnpn { color: #e3e7ee; }
body.tight .ptnp.ptnpfd .ptnpn { font-style: italic; font-weight: 600; color: var(--muted); }   /* ticket #287: a face-down creature shows its P/T on the back */
body.tight .ptnppt { flex: none; padding: 0 var(--sp-3); border-radius: var(--r-tag); background: var(--tink2); box-shadow: 0 0 0 1px var(--edge); font-family: var(--tserif); font-size: var(--fs-lg); font-weight: 700; color: var(--tgold2); line-height: 1.15; font-variant-numeric: lining-nums; }
body.tight .ptnppt.hot { color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
body.tight :is(.tw96, .tw90, .tw84, .tw80, .tw74, .tw72) .ptnpn { font-size: var(--fs-md); }
body.tight :is(.tw64, .tw56, .tw48, .tw40) .ptnpn, body.tight :is(.tw64, .tw56, .tw48, .tw40) .ptnppt { font-size: var(--fs-xs); }   /* T17 decision 7: names never under 12 px */
body.tight :is(.tw64, .tw56, .tw48, .tw40) .ptnp { padding: 0 var(--sp-2); }
body.tight .ptslot.kland.tw40 .ptnp { display: none; }
body.tight .pttapg { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: var(--h-xs); height: var(--h-xs); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(9, 13, 18, .72); color: #e3e7ee; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
body.tight :is(.tw56, .tw48, .tw40) .pttapg { transform: translate(-50%, -50%) scale(.7); }
body.tight .ptslot.pttl .ptcount { top: -10px; right: -10px; background: rgba(9, 13, 18, .9); color: var(--tgold); border-color: rgba(233, 207, 143, .5); font-family: var(--tserif); font-size: var(--fs-md); }
body.tight .ptslot.pttl .ptltr { top: 4px; left: 4px; }
body.tight .ptslot.pttl .ptctrs { bottom: calc(var(--tw) * .18 + 4px); }
body.tight .ptslot.pttl .ptinfo { top: 30%; }
/* card effects (forge-bridge PROTOCOL 14, 2026-10-20): the newest effect's source as a round art crest in the tile's top right corner (the i moves down), in its own
   cyan ring (--tfx: not the playable gold, the combo's pale line, the accent of .sel/.tgt or the counters' chips), a count for more; P/T numbers
   against the printed P/T, up green, down red (MB2's damage red); a card that lost all its abilities is desaturated */
body.tight .ptwrap.ptt, body.tight .ptinsp, body.tight .ptdetail { --tfx: #6fd6e8; --tup: #74e08f; }
body.tight .ptefx { position: absolute; z-index: 4; right: 4px; top: 4px; width: 22px; aspect-ratio: 1; border-radius: 50%; background: #0b1016; box-shadow: 0 0 0 2px var(--tfx), 0 2px 8px rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; pointer-events: none; }
body.tight .ptefx > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
body.tight .ptefx > img.crop { object-position: 50% 22%; }
body.tight .ptefxg { color: var(--tfx); font-size: 12px; line-height: 1; }
body.tight .ptefxn { position: absolute; right: -6px; top: -6px; min-width: 14px; padding: 0 var(--sp-1); box-sizing: border-box; border-radius: 999px; background: var(--tfx); color: #0b1016; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; font-variant-numeric: tabular-nums; }
body.tight :is(.tw56, .tw48, .tw40) .ptefx { width: 16px; box-shadow: 0 0 0 1px var(--tfx), 0 2px 6px rgba(0, 0, 0, .7); }
body.tight :is(.tw48, .tw40) .ptefxn { display: none; }
body.tight .ptslot.pttl.tapped .ptefx { opacity: .8; }
body.tight .ptslot.pttl.many .ptefx { right: 18px; }
/* ticket #82: a mutated pile, "Mutated 3" in the tile's top right corner (under the effect mark when there is one); small tiles: the number */
body.tight .ptmutb { position: absolute; z-index: 4; right: 4px; top: 4px; padding: 0 var(--sp-2); border-radius: 999px; background: rgba(9, 13, 18, .88); box-shadow: 0 0 0 1px var(--tgold, var(--accent)); color: var(--tgold2, var(--text)); font-size: 11px; line-height: 16px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
body.tight .ptslot.pttl.hasfx .ptmutb { top: 30px; }
body.tight .ptslot.pttl.many .ptmutb { right: 18px; }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64, .tw72) .ptmutw { display: none; }
body.tight .ptslot.pttl.hasfx .ptinfo { top: 44%; }
body.tight .ptnppt .ptup, body.tight .ptpt.ptup { color: var(--tup); }
body.tight .ptnppt .ptdn, body.tight .ptpt.ptdn { color: var(--bad); }
body.tight .ptslot.ptlost .ptc { --veil: .42; }
body.tight .ptslot.ptlost .ptkws { display: none; }
body.tight .ptslot.ptlost .ptnpn { opacity: .75; }
@media (hover: hover) {
  body.tight .ptslot.pttl .ptc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--tgold), 0 16px 28px rgba(0, 0, 0, .6); }
  body.tight .ptslot.pttl .ptc.can:hover { box-shadow: 0 0 0 3px var(--tplay, var(--accent)), 0 0 28px color-mix(in srgb, var(--tplay, var(--accent)) 80%, transparent), 0 16px 28px rgba(0, 0, 0, .6); }
  body.tight .ptslot.pttl.tapped .ptc:hover { transform: var(--ttap) translateY(-3px); }
}
@media (hover: none) { body.tight .ptslot.pttl.tapped .ptc:active { transform: var(--ttap) scale(.97); } }
/* the corner tools (round 5): icons with Rule Ø tooltips (the title, tips.js) */
body.tight .pttools { position: absolute; right: 12px; top: 10px; z-index: 90; display: flex; gap: var(--sp-2); align-items: center; }
body.tight .acct-bg:has(> .acctslim) { z-index: 100; }   /* FR 4: the Profile drawer lies over the board's corner tools (90), the combo panel (92) and the big video (80) */
body.tight .pttool { width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-box); background: transparent; color: #c9c6bf; display: flex; align-items: center; justify-content: center; }
body.tight .pttool:not(:disabled):hover, body.tight .pttool:focus-visible { background: rgba(233, 207, 143, .1); color: var(--tgold2); }
body.tight .pttool:disabled { opacity: .35; }
/* T113: Leave (the door) is the bar's last icon; it turns the danger red on hover and focus (SCOPE 17.5) */
body.tight .pttool.ptquit:not(:disabled):hover, body.tight .pttool.ptquit:focus-visible { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
/* T816 (owner 2026-11-16, mockup TzkHgWf4z7xnFdS7u6m4cM): Leave or concede in one sheet; on a phone its choices stack, Keep playing last */
@media (max-width: 560px) { body.tight .ptquitsh .ptbtns { flex-direction: column; align-items: stretch; } body.tight .ptquitsh .ptbtns > .btn { width: 100%; justify-content: center; } body.tight .ptquitsh .ptquitkeep { order: 9; } }
body.tight .pttoolst { padding: 0 var(--sp-3); }
body.tight .pttoolsx { position: absolute; right: 0; top: 100%; display: flex; gap: var(--sp-4); align-items: center; white-space: nowrap; padding-top: var(--sp-2); }
body.tight .pttbl.ptcol .pttoolsx { position: static; padding: 0 var(--sp-2); }
/* live combo hints (PE5, mockup BoardCombo.dc.html, canvas 7tt45vk5baAHZvoihZBB2F): the gold pill in the corner tools, the panel under
   it (a bottom sheet on phones), the pieces' gold ring and "◆ combo" badge, the other cards dimmed while the panel is open */
body.tight .ptcbpill { position: relative; display: inline-flex; align-items: center; gap: var(--sp-4); min-height: 44px; max-width: 340px; padding: var(--sp-3) var(--sp-6) var(--sp-3) var(--sp-5); margin-right: var(--sp-2); border: 0; border-radius: var(--r-pill); background: rgba(10, 15, 28, .9); color: var(--tgold2); text-align: left; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tline) 40%, transparent); cursor: pointer; }
body.tight .ptcbpill.hot { box-shadow: 0 0 0 1px var(--tline), 0 0 18px color-mix(in srgb, var(--tline) 35%, transparent); }
body.tight .ptcbpill.hot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: dotpulse 2.4s ease-out infinite; pointer-events: none; }
body.tight .ptcbpill:hover, body.tight .ptcbpill:focus-visible, body.tight .ptcbpill[aria-expanded="true"] { background: rgba(23, 30, 48, .95); }
body.tight .ptcbdia { color: var(--tline); font-size: var(--fs-md); }
body.tight .ptcbpt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
body.tight .ptcbpt b { font-size: var(--fs-md); }
body.tight .ptcbsub { font-size: var(--fs-xs); color: #c9c6bf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .pttbl.ptwide .ptcbpill { position: absolute; right: 0; top: calc(100% + var(--h-xs) + 2 * var(--sp-4)); margin: 0; white-space: nowrap; }   /* under the tools: clear of the Challenger's library */
body.tight .pttbl.ptcol .ptcbpill { min-height: 40px; padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-4); white-space: nowrap; flex: 0 0 auto; }   /* FR 8: "1 away" stays one line at 390 */
body.tight .pttbl.ptcol .ptcbsub { display: none; }
body.tight .ptcbpanel { position: absolute; z-index: 92; right: 12px; top: 116px; width: 400px; max-width: calc(100% - 32px); max-height: calc(100% - 240px); overflow-y: auto; scrollbar-width: none; box-sizing: border-box;
  display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6) var(--sp-6); border-radius: var(--r-box); background: var(--bar); color: var(--text); border: 1px solid color-mix(in srgb, var(--tgold) 50%, transparent); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
body.tight .ptwrap.ptt.tM .ptcbpanel, body.tight .ptwrap.ptt.tS .ptcbpanel { width: 360px; }
body.tight .ptcbpanel.sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 72vh; padding: var(--sp-4) var(--sp-6) var(--sp-7); border-radius: var(--r-box) var(--r-box) 0 0; border-width: 1px 0 0; box-shadow: 0 -16px 40px rgba(0, 0, 0, .6); }
body.tight .ptcbgrip { align-self: center; width: 40px; height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--tgold) 40%, transparent); }
body.tight .ptcbh { margin: 0; font-family: var(--tserif); font-size: var(--fs-2xl); font-weight: 700; }
body.tight .ptcbh3 { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text2); }
body.tight .ptcbcard { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--tgold) 22%, transparent); }
body.tight .ptcbcard.ready { border-color: color-mix(in srgb, var(--tgold) 60%, transparent); background: color-mix(in srgb, var(--tgold) 7%, transparent); gap: var(--sp-4); }
body.tight .ptcbcard.opp { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 6%, transparent); gap: var(--sp-4); }
body.tight .ptcbcard b { font-size: var(--fs-md); }
body.tight .ptcbtag { flex: 0 0 auto; padding: var(--sp-1) var(--sp-4); border-radius: var(--r-tag); font-size: var(--fs-xs); font-weight: 700; }
body.tight .ptcbtag.ready { background: color-mix(in srgb, var(--tgold) 18%, transparent); color: var(--tgold); }
body.tight .ptcbtag.near, body.tight .ptcbtag.opp { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
body.tight .ptcbtx { font-size: var(--fs-sm); line-height: 1.45; color: var(--text2); }
body.tight .ptcbnote { font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
body.tight .ptcbpcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-sm); }
body.tight .ptcbpc { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .ptcbck { flex: 0 0 auto; font-weight: 700; color: var(--muted); }
body.tight .ptcbpc.ok .ptcbck { color: var(--ok); }
body.tight .ptcbwh { flex: 0 1 auto; color: var(--muted); text-align: right; }
body.tight .ptcblink { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-ctl); color: var(--tgold); text-decoration: none; font-size: var(--fs-lg); }
body.tight .ptcblink:hover, body.tight .ptcblink:focus-visible { background: color-mix(in srgb, var(--tgold) 12%, transparent); }
body.tight .ptcbpanel .btn.sm.on { border-color: var(--accent); }
body.tight .ptcbpanel a.btn { text-decoration: none; }
@media (pointer: coarse) { body.tight .ptcblink { position: relative; } body.tight .ptcblink::after { content: ''; position: absolute; inset: -6px; } }
/* BF: with the combo marking on, a piece shows the gold glow even when it can act (the purple ring stays for every other card that can act) */
body.tight .ptslot.ptcombo .ptc, body.tight .ptslot.ptcombo.ptcombo .ptc.can, body.tight .ptslot.ptcombo.ptcombo .ptc.can:hover, body.tight .pthand.tt .ptslot.ptcombo .ptc.can { box-shadow: 0 0 0 2px var(--tline2), 0 0 24px color-mix(in srgb, var(--tline) 55%, transparent), 0 10px 24px rgba(0, 0, 0, .6); border-color: var(--tline); }
body.tight .ptcombob { position: absolute; z-index: 6; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px var(--sp-4); border-radius: var(--r-pill); background: var(--tline); color: #17130a; font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; }
/* T211: a source Auto-pay would tap while you pay: a steady double ring in the Auto colour (no pulse, so it reads apart from "can tap")
   and an "Auto" tag under it (playtest.js autoMark). --tauto sits beside the table palette; the plain board uses the accent */
body.tight .ptwrap.ptt { --tauto: #7fd8ff; }
body.tight .ptslot.ptauto > .ptc, body.tight .ptslot.ptauto > .ptc.can, body.tight .ptslot.pttl.ptauto > .ptc.can, body.tight .ptslot.pile.ptauto .ptc.can,
body.tight .ptwrap.ptt .ptslot.ptauto:not(.fxhit, .fxrecoil, .fxspawn) > .ptc.can { border-color: var(--tauto, var(--accent)); box-shadow: 0 0 0 2px #0b1016, 0 0 0 4px var(--tauto, var(--accent)), 0 0 18px color-mix(in srgb, var(--tauto, var(--accent)) 65%, transparent); animation: none; }
body.tight .ptautob { position: absolute; z-index: 6; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px var(--sp-3); border-radius: var(--r-pill); background: var(--tauto, var(--accent)); color: #0b1016; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; pointer-events: none; }
body.tight .ptslot.ptcombo .ptautob { bottom: 8px; }
/* ticket #203: pointing at Auto-pay spotlights its sources (playtest.js autoPreview): everything else on the table dims, the sources glow brighter and their Auto tag grows */
body.tight .ptwrap.ptautohot .ptslot:not(.ptauto) { opacity: .4; transition: opacity 150ms; }
/* T957 (owner video vb48, mockup t957): the mouse on one playable card: every other playable thing (card, attached strip, land chip,
   library top) drops its gold; the board's .ptone and what keeps it, .ptkept, come from playtest.js oneSync (the one card and the lands with
   the Auto mark). The gold is --tplay, so the ring fades with the card's own transition */
body.tight .ptwrap.ptt.ptone :is(.ptc, .ptax, .ptlchip, .ptlibtop).can:not(.ptkept) { --tplay: transparent; }
body.tight .ptwrap.ptt.ptone .ptc.can:not(.ptkept) { border-color: var(--line); }
body.tight .ptwrap.ptautohot .ptslot.ptauto > .ptc, body.tight .ptwrap.ptt.ptautohot .ptslot.ptauto:not(.fxhit, .fxrecoil, .fxspawn) > .ptc.can { box-shadow: 0 0 0 2px #0b1016, 0 0 0 4px var(--tauto, var(--accent)), 0 0 26px var(--tauto, var(--accent)); }
body.tight .ptwrap.ptautohot .ptslot.ptauto .ptautob { font-size: 12px; padding: 2px var(--sp-3); }
@media (prefers-reduced-motion: reduce) { body.tight .ptwrap.ptautohot .ptslot { transition: none; } }
body.tight .ptslot.ptcdim { opacity: .55; transition: opacity 200ms; }
/* ticket #330 (2026-11-21): a phased-out permanent is treated as though it does not exist: a faint, grey ghost of itself; hover or focus
   brings it back to read it. Its "Phased out" tag stays */
body.tight .ptslot.ptphased .ptc, body.tight .ptslot.pttl.ptphased .ptc { opacity: .45; --veil: .5; transition: transform .15s ease, box-shadow .15s ease, opacity 200ms; }   /* the --veil overlay, never a filter on the card picture (Scryfall); .pttl: a tapped ghost veils alike */
body.tight .ptslot.ptphased:hover .ptc, body.tight .ptslot.ptphased:focus-within .ptc, body.tight .ptslot.pttl.ptphased:hover .ptc, body.tight .ptslot.pttl.ptphased:focus-within .ptc { opacity: .9; --veil: .15; }
@media (prefers-reduced-motion: reduce) { body.tight .ptcbpill.hot::after { animation: none; } body.tight .ptslot.ptcdim { transition: none; } body.tight .ptslot.ptphased .ptc { transition: none; } }
body.tight .ptwrap.ptt.fxoff .ptcbpill.hot::after { animation: none; }
body.tight .ptside .ptdrop .btn { flex: 1 1 100%; }
/* the right side: messages and the decision corner (the prompt) stay in the right band, so no row is ever covered by them (C7: your lands
   were hidden at 1440 by the stack and the priority panel); the stack floats since D3 (below), D4 brings the pass button */
body.tight .ptside { position: absolute; z-index: 50; right: 16px; width: var(--sidew); top: max(176px, calc(var(--seam) - 100px)); bottom: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-4); pointer-events: none; }
body.tight .ptside > *, body.tight .ptsidetop > * { pointer-events: auto; }
body.tight .ptsidetop { flex: 0 0 auto; margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-4); pointer-events: none; }   /* D3: the notes sit just above the decision corner, so the floating stack keeps the band's top */
body.tight .ptsidetop:empty { display: none; }
body.tight .ptdockw { flex: 0 1 auto; display: flex; flex-direction: column; gap: var(--sp-4); min-height: 0; pointer-events: none; }
body.tight .ptdockw > * { pointer-events: auto; }
body.tight .ptdockw > .ptprompt { flex: 0 1 auto; min-height: 0; max-height: 62vh; overflow-y: auto; scrollbar-width: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
body.tight .ptdockw > .ptprompt.quiet { border-color: color-mix(in srgb, var(--tgold) 35%, var(--line)); }
/* tablets and the column: the priority prompt keeps Pass and End turn; Pass until they act, Pass to end of turn and Hold priority stay in Board settings */
body.tight .ptwrap.ptt:is(.tM, .tS, .tC) .ptprompt.quiet :is(.ptpu, .ptnoask) { display: none; }
body.tight .ptidle { align-self: flex-end; font-size: var(--fs-sm); color: #c9c6bf; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); padding: var(--sp-3) var(--sp-2); }
body.tight .ptpoolrow { display: flex; align-items: center; gap: var(--sp-4); align-self: flex-end; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-box); background: var(--card); box-shadow: 0 0 0 1px rgba(233, 207, 143, .25); }
body.tight .ptpooll { color: var(--text2); }
body.tight .ptside .ptinfoline, body.tight .ptside .ptnote, body.tight .ptside .ptnotice, body.tight .ptside .ptdrop { box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
/* the hand: tucked away (card tops only) until you reach for it (hover, focus, a tap on touch, or a prompt that asks for hand cards);
   D2 adds the mana pips, the lift and the fan */
body.tight .pthand.tt { position: absolute; z-index: 60; left: 50%; bottom: 0; width: var(--handzone); max-width: calc(100% - 32px); padding: 0; border: 0; border-radius: 0; background: transparent; display: block; overflow: visible;
  transform: translate(-50%, calc(var(--hcw) * 1.393 - var(--peek) + 10px)); transition: transform 260ms cubic-bezier(.2, .8, .2, 1), translate 260ms cubic-bezier(.2, .8, .2, 1); }
body.tight .pthand.tt.up, body.tight .pthand.tt:focus-within { transform: translate(-50%, calc(-1 * var(--hup))); }   /* --hup and the rises below: playcore.js P.FAN_FOC */
@media (hover: hover) { body.tight .pthand.tt:hover { transform: translate(-50%, calc(-1 * var(--hup))); } }
body.tight .pthand.tt.hovup { transform: translate(-50%, calc(-1 * var(--hup))); }   /* fix10: the same rise, set by playtest.js handHover for a mouse or pen */
body.tight .pthand.tt .ptrow.nowrap { justify-content: center; padding: 0; gap: var(--sp-4); }
body.tight .pthand.tt .ptslot.hand { --cw: var(--hcw); }
body.tight .pthand.tt .ptc { box-shadow: 0 12px 28px rgba(0, 0, 0, .65); }
body.tight .pthand.tt:not(.up):not(.hovup):not(:hover):not(:focus-within) .ptc:not(.can) { --veil: .15; }
body.tight .pthand.tt .ptc.can { box-shadow: 0 0 0 3px var(--tplay), 0 0 var(--pg) color-mix(in srgb, var(--tplay) 75%, transparent), 0 12px 28px rgba(0, 0, 0, .65); border-color: var(--tplay); }
body.tight .ptnohand { display: block; text-align: center; padding: var(--sp-4); color: #9aa0ad; }
body.tight .ptwrap.ptt.hassheet .pthand.tt { display: none; }
@media (prefers-reduced-motion: reduce) { body.tight .pthand.tt { transition: none; } }
body.tight .ptwrap.ptt.fxoff .pthand.tt { transition: none; }
/* tablets (Board5Tablet, 1024 x 768) and short screens: the design's compact numbers through the variables above */
/* the column (phones, portrait tablets; Board4Phone with round 5's pieces): a plate per player, the two halves, the decision corner, the hand */
body.tight .pttbl.ptcol { display: flex; flex-direction: column; padding-bottom: var(--peek); box-sizing: border-box; background: #090d12; }
body.tight .ptwrap.arena .pttbl.ptcol { background: transparent; }
body.tight .pttbl.ptcol > * { position: relative; z-index: 2; }
body.tight .pttbl.ptcol > .ptarena { position: absolute; z-index: 0; }
body.tight .pttbl.ptcol > .pthand.tt { position: absolute; z-index: 60; }
body.tight .pttopline { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 0 var(--sp-4); min-height: var(--h-md); }
body.tight .pttbl.ptcol .ptturnno { position: static; font-size: var(--fs-xl); color: color-mix(in srgb, var(--tline) 45%, transparent); }
body.tight .pttbl.ptcol .pttools { position: static; gap: 0; }
body.tight .ptplate { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-3) var(--sp-5); margin: 0 var(--sp-4); min-height: var(--h-lg); border-radius: var(--r-box); background: rgba(14, 20, 26, .92); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 16%, transparent); }
body.tight .ptplate.me { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 40%, transparent); }
body.tight .pttbl.ptcol .ptmedwrap { position: relative; flex: 0 0 auto; width: calc(var(--av) + 16px); aspect-ratio: 1; }
body.tight .pttbl.ptcol .ptplinth { left: 0; top: 0; width: 100%; }
body.tight .pttbl.ptcol .ptmed { left: 8px; top: 8px; }
body.tight .pttbl.ptcol .ptmedini { font-size: var(--fs-xl); }
body.tight .pttbl.ptcol .ptlifeb { position: static; flex: 0 0 auto; width: auto; height: auto; padding: 0; background: none; box-shadow: none; font-size: 32px; line-height: 1; }
body.tight .pttbl.ptcol .ptname { position: static; flex: 1 1 auto; max-width: none; gap: 0; }
body.tight .pttbl.ptcol .ptcrest { font-size: var(--fs-md); }
body.tight .pttbl.ptcol .ptpiles { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-3) 0; }
body.tight .pttbl.ptcol .ptpiles.opp, body.tight .pttbl.ptcol .ptpiles.me { flex-direction: row-reverse; }
body.tight .pttbl.ptcol .ptlib { position: relative; inset: auto; margin-right: calc(var(--libw) * 1.3); }
body.tight .pttbl.ptcol .ptlib::before { inset: -4px; border-radius: var(--r-tag); }
body.tight .pttbl.ptcol .ptlib .ptcmdout { left: calc(100% + 6px); top: -2px; transform: rotate(6deg); }
body.tight .pttbl.ptcol .ptlib .ptcmdout.n1 { left: calc(100% + 12px); top: 2px; transform: rotate(12deg); }
body.tight .pttbl.ptcol .ptlib .ptcmdout.n2 { left: calc(100% + 18px); top: 6px; transform: rotate(18deg); }
body.tight .pttbl.ptcol .ptlib .ptcmdout.fan.n0 { left: calc(100% + 4px); top: -24%; transform: rotate(-4deg); }
body.tight .pttbl.ptcol .ptlib .ptcmdout.fan.n1 { left: calc(100% + var(--libw) * .45); top: 4px; transform: rotate(8deg); }
body.tight .pttbl.ptcol .ptlib .ptcmdout.fan.n2 { left: calc(100% + var(--libw) * .9); top: 8px; transform: rotate(16deg); }
body.tight .pttbl.ptcol .ptlibn { bottom: 2px; font-size: var(--fs-xs); }
body.tight .pttbl.ptcol .ptgrave { position: relative; inset: auto; transform: rotate(-6deg); }
body.tight .pttbl.ptcol .ptgraven { font-size: var(--fs-xs); bottom: -6px; }
body.tight .pttbl.ptcol .ptexn { display: none; }
body.tight .ptfields { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4) 0; }
body.tight .ptfields::-webkit-scrollbar { display: none; }
body.tight .ptfhalf { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--rowpad) var(--sp-4); }
body.tight .ptfhalf.opp .ptrowt.land, body.tight .ptfhalf.me .ptrowt.cre { --tsy: 1; }   /* T830: the rows at the half's top edge */
body.tight .ptfhalf.me .ptrowt.land, body.tight .ptfhalf.opp .ptrowt.cre { --tsy: -1; }   /* and at its bottom edge */
body.tight .ptfhalf.opp { justify-content: space-between; }
body.tight .ptfhalf.me { justify-content: space-between; }
body.tight .pttbl.ptcol .ptseam { position: relative; top: auto; flex: 0 0 auto; margin: calc(-1 * var(--sp-6)) 0; }
body.tight .pttbl.ptcol .ptrowt { position: static; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
body.tight .pttbl.ptcol .ptrowt.land .ptslot.pttl.over { margin-left: calc(18px - var(--tw)); }
body.tight .pttbl.ptcol .ptfields > .ptzone, body.tight .pttbl.ptcol .ptfields > .ptinfoline, body.tight .pttbl.ptcol .ptfields > .ptnote, body.tight .pttbl.ptcol .ptfields > .ptdrop { margin: 0 var(--sp-4); }
body.tight .pttbl.ptcol .ptdock { background: transparent; padding: 0 var(--sp-4); gap: var(--sp-3); }
body.tight .pttbl.ptcol .ptdock:empty { display: none; }
body.tight .pttbl.ptcol .ptidle { align-self: center; padding: var(--sp-2); }
body.tight .pttbl.ptcol .ptpoolrow { align-self: stretch; }
body.tight .pttbl.ptcol .ptmed.tgt, body.tight .pttbl.ptcol .ptc.tgt { outline: 2px dashed var(--accent); outline-offset: 2px; }
body.tight .pttbl.ptcol .pthand.tt { width: calc(100% - 16px); max-width: none; }
body.tight .pttbl.ptcol .pthand.tt.up, body.tight .pttbl.ptcol .pthand.tt:focus-within { transform: translate(-50%, -8px); }
@media (hover: hover) { body.tight .pttbl.ptcol .pthand.tt:hover { transform: translate(-50%, -8px); } }
body.tight .pttbl.ptcol .pthand.tt.hovup { transform: translate(-50%, -8px); }
/* D6: a question that needs the hand (mulligan, discard) raises it; in the column the prompt then sits above the raised hand instead of behind it */
body.tight .ptwrap.ptt.hasked .pttbl.ptcol { padding-bottom: calc(var(--hcw) * 1.393 + 8px); }
@media (max-width: 700px) {
  body.tight .pttbl.ptcol .ptdock .ptprompt.sheet { margin: 0 calc(-1 * var(--sp-4)); }
  body.tight .pttbl.ptcol .ptplate { gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); }
  body.tight .pttbl.ptcol .pttool { width: var(--h-sm); height: var(--h-sm); }
  body.tight .pttbl.ptcol .ptnm { font-size: var(--fs-md); }
}

/* T6 (owner 2026-10-22, mockup LusUxiHULnwYEwbXNkWHLL, phone layout A): the column's plate is the pod's seat laid sideways (playtest.js
   colSeat) at the plate's old height: the medallion with the life badge on its lower edge and the ring badges on its shoulder, then the
   ribbon (name · title, the commander under it) with the mana chip under it, the piles at the end. The 2-player table keeps its plates. */
body.tight .pttbl.ptcol .ptplate.ptseat { --av: 52px; }
@media (min-width: 701px) { body.tight .pttbl.ptcol .ptplate.ptseat { --av: 64px; } }
body.tight .pttbl.ptcol .ptseatav { position: relative; flex: 0 0 auto; display: flex; }
body.tight .pttbl.ptcol .ptseatav > .ptmedwrap { isolation: isolate; }   /* the medallion's own layers stay under the life badge and the ring badges */
body.tight .pttbl.ptcol .ptseatav > .ptlifeb { position: absolute; z-index: 4; left: 50%; top: auto; bottom: calc(-1 * var(--sp-2)); translate: -50% 0; width: auto; min-width: var(--h-md); height: var(--h-xs); padding: 0 var(--sp-3);
  font-size: var(--fs-2xl); background: linear-gradient(180deg, #1b232c 0%, var(--tink) 55%, #070b10 100%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tline) 78%, transparent), inset 0 1px 0 rgba(255, 244, 214, .14), inset 0 0 0 1px rgba(0, 0, 0, .55), 0 4px 10px rgba(0, 0, 0, .6); }
body.tight .pttbl.ptcol .ptseatav .ptmedwrap.me > .ptsaybtn { top: calc(-1 * var(--sp-2)); bottom: auto; }   /* the life badge has the lower edge */
body.tight .pttbl.ptcol .ptseatbdg { position: absolute; z-index: 5; right: calc(-1 * var(--sp-4)); top: calc(-1 * var(--sp-1)); display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }
body.tight .pttbl.ptcol .ptseatbdg .ptpbadge { position: relative; padding: var(--sp-1) var(--sp-2); font-size: 11px; line-height: 1; }
body.tight .pttbl.ptcol .ptseatav.me .ptptip { top: auto; bottom: 0; }   /* the bottom seat's breakdown opens upwards, on the table */
body.tight .pttbl.ptcol .ptseatn { flex: 1 1 auto; min-width: 0; align-items: stretch; gap: var(--sp-2); }
body.tight .pttbl.ptcol .ptseatn > .ptprib { align-self: flex-start; max-width: 100%; align-items: flex-start; padding: var(--sp-2) var(--sp-5); text-align: left; }   /* as wide as its text, as a pod's ribbon */
body.tight .pttbl.ptcol .ptseatn .ptprib .ptclock { margin-left: var(--sp-2); min-height: 0; padding: 0 var(--sp-2); font-size: 11px; line-height: 1.3; border-radius: var(--r-tag); }
body.tight .pttbl.ptcol .ptseatn > .ptmav { align-self: flex-start; position: relative; z-index: 2; }   /* T266: a long readout stays readable over the pile thumbnail beside it */
/* ---------- the Playtest pod table (Phase D, D7a, 2026-10-20; docs/design/pods/wire4/Main.dc.html, FitNotes, P3Fit; playtest.js podView,
   playcore.js PC.podGeom). 3 or 4 players on one table: a mat per player (.ptpmat; D12 fills .ptpmatbg with the player's playmat), rows
   on it from the seam out, piles in the outer corners, the avatar on the outer edge with a name ribbon and ring badges, the turn number
   where the mats meet, the tools at the top centre. Every place is a variable from podGeom (.ptpat: --px, --py, --pw, --ph), so nothing
   here is a layout number of its own; .ptpodlayer is the table layer the camera (D7b) moves. The 2-player board has none of these classes. ---------- */
body.tight .ptwrap.ptt.tM.ptpodw { --libw: 72px; }   /* the wireframe's tier M piles (72 x 100, graveyard 58) */
body.tight .pttbl.ptpod { overflow: hidden; }
body.tight .ptpodbox { position: absolute; }
body.tight .ptpodbox.fit { transform-origin: 0 0; transform: translate(var(--pox), var(--poy)) scale(var(--pfit)); }   /* under 1024 x 680: the tier M table scaled to fit */
body.tight .ptpodlayer { position: absolute; inset: 0; }
/* D7b: the camera. playtest.js writes one transform (PC.podCamera: scale 1.7 and a translate) on the layer while zoomed or gliding, none
   at rest, so the unzoomed table is untouched; will-change only while it moves. The stack's beams start in the HUD (outside the layer),
   so they wait for the glide to end and are drawn again there; attack lines live in the layer and move with it. */
body.tight .ptpodcam { transform-origin: 0 0; }
body.tight .ptpodcam.moving { will-change: transform; }
body.tight .pttbl.ptcamgo .ptarrows path:is(.beam, .faint) { opacity: 0; }
body.tight .pttbl.ptpod .ptpat { position: absolute; left: var(--px); top: var(--py); }
body.tight .pttbl.ptpod .ptpat.psz { width: var(--pw); height: var(--ph); }
body.tight .ptpodplain { background: radial-gradient(ellipse 80% 75% at 50% 46%, color-mix(in srgb, var(--tglow) 10%, #18202b) 0%, #0f141c 60%, #080b10 100%); }
/* ---------- the table bed (the board-drawn table, owner 2026-10-21; playcore.js PC.podBed / PC.tableBed, playtest.js bedEl). One rounded
   panel under every mat with a margin: felt in the arena's base colour (--tbed, RZ.ARENAS bed) lit faintly by its glow, a vector grain
   (arenas/felt-grain.svg, sharp at the camera's 1.7x), and a carved wooden rim whose highlights and inlay follow the arena tint (--tline,
   SCOPE 17.20). Pods without a pod painting and arenas with room: true (a room-only painting) get it; None and today's 1v1 stills do not.
   It lies in the table/camera layer at z 0, under the mats, rows, arrows and effects; --bedm keeps its corners concentric with the mats'. */
body.tight .pttablebed { position: absolute; left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); z-index: 0; pointer-events: none;
  --bedm: 24px; --bedrim: 10px; border: var(--bedrim) solid transparent; border-radius: calc(var(--r-box) + var(--bedm));
  background: url(/static/arenas/felt-grain.svg?v=1) 0 0 / 240px 240px padding-box,
    radial-gradient(ellipse 75% 70% at 50% 46%, color-mix(in srgb, var(--tglow) 8%, color-mix(in srgb, var(--tbed, #18202b) 86%, #ffffff)) 0%, var(--tbed, #18202b) 58%, color-mix(in srgb, var(--tbed, #18202b) 60%, #000000) 100%) padding-box,
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 6px, rgba(0, 0, 0, .1) 6px 8px, transparent 8px 13px) border-box,
    linear-gradient(170deg, color-mix(in srgb, var(--tline) 40%, #4a3221) 0%, color-mix(in srgb, var(--tline) 20%, #2b1d12) 40%, color-mix(in srgb, var(--tline) 30%, #3a2716) 70%, color-mix(in srgb, var(--tline) 14%, #1a110a) 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 22px 56px rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .45),
    inset 0 0 0 1px color-mix(in srgb, var(--tline) 62%, transparent), inset 0 0 0 3px rgba(0, 0, 0, .45), inset 0 14px 30px rgba(0, 0, 0, .42), inset 0 0 70px rgba(0, 0, 0, .4); }
body.tight .pttablebed::before { content: ''; position: absolute; inset: calc(-1 * var(--bedrim)); border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tline) 70%, transparent), inset 0 2px 3px color-mix(in srgb, var(--tline2) 22%, transparent), inset 0 -2px 3px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .35); }
/* the rim's inner bevel: a dark groove, then the gold edge where the felt starts (the carved step down to the cloth) */
body.tight .pttablebed::after { content: ''; position: absolute; inset: -2px; border-radius: calc(var(--r-box) + var(--bedm) - var(--bedrim)); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 -1px 0 1px rgba(0, 0, 0, .3), 0 1px 0 1px color-mix(in srgb, var(--tline2) 25%, transparent); }
body.tight .ptbedinlay { position: absolute; inset: calc(-.5 * var(--bedrim) - .5px); border: 1px solid color-mix(in srgb, var(--tline) 40%, transparent); pointer-events: none;
  border-radius: calc(var(--r-box) + var(--bedm) - var(--bedrim) / 2); }
/* a room painting's darkening (RZ.ARENAS roomDim, --roomdim on the wrap): strongest along the top (avatars, ribbons, piles) and the bottom
   (hand, turn block, your ribbon), lighter in the middle, which the bed covers anyway */
body.tight .ptroomdim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 12, calc(var(--roomdim, 0) * 1.7)) 0%, rgba(5, 7, 12, calc(var(--roomdim, 0) * 1.15)) 20%, rgba(5, 7, 12, calc(var(--roomdim, 0) * .7)) 50%, rgba(5, 7, 12, calc(var(--roomdim, 0) * 1.15)) 78%, rgba(5, 7, 12, calc(var(--roomdim, 0) * 1.8)) 100%); }
/* the bed with the arena still's own carved frame (bin/frame9_cut.py, RZ.ARENAS frame9; owner 2026-10-21: "make its rim as good as the
   painted frames"): a 9-slice border image at one scale (PC.frame9Css), the felt under it to the outer edge (the slices reach under the
   mats, their middle is transparent), the CSS rim's bevel and inlay off */
body.tight .pttablebed.f9 { border-style: solid; border-color: transparent; border-width: var(--f9by) var(--f9bx); border-radius: var(--f9r);
  border-image-source: var(--f9img); border-image-slice: var(--f9slice); border-image-width: var(--f9by) var(--f9bx); border-image-repeat: stretch;
  background: url(/static/arenas/felt-grain.svg?v=1) 0 0 / 240px 240px border-box,
    radial-gradient(ellipse 75% 70% at 50% 46%, color-mix(in srgb, var(--tglow) 8%, color-mix(in srgb, var(--tbed, #18202b) 86%, #ffffff)) 0%, var(--tbed, #18202b) 58%, color-mix(in srgb, var(--tbed, #18202b) 60%, #000000) 100%) border-box;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .45), inset 0 0 60px rgba(0, 0, 0, .35); }
body.tight .pttablebed.f9::before, body.tight .pttablebed.f9::after { display: none; }
/* the column (phones, portrait tablets) over a room painting: the fields' box is the bed (the rim drawn inside it, so no row moves) */
body.tight .ptwrap.hasbed .pttbl.ptcol .ptfields { border-radius: var(--r-box);
  background: url(/static/arenas/felt-grain.svg?v=1) 0 0 / 240px 240px, radial-gradient(ellipse 90% 70% at 50% 50%, color-mix(in srgb, var(--tglow) 7%, color-mix(in srgb, var(--tbed, #18202b) 88%, #ffffff)) 0%, var(--tbed, #18202b) 60%, color-mix(in srgb, var(--tbed, #18202b) 62%, #000000) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 6px color-mix(in srgb, var(--tline) 24%, #2b1d12), inset 0 0 0 7px color-mix(in srgb, var(--tline) 62%, transparent), inset 0 10px 24px rgba(0, 0, 0, .45); }
/* a mat: the 2-player half's look, smaller; out players are dimmed (their ribbon says when and how they went out) */
body.tight .pttbl.ptpod .ptpmat { z-index: 1; }
body.tight .ptpmatbg { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-box); pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 32%, transparent), inset 0 0 24px rgba(0, 0, 0, .35); }
body.tight .ptpmat.you .ptpmatbg { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 55%, transparent), inset 0 0 24px rgba(0, 0, 0, .35); }
body.tight .ptpmat.out { opacity: .42; }
/* D12: a mat with its playmat (core.js RZ.matBox in .ptpmatbg): the frame is the playmat's own gold, a little brighter on yours */
body.tight .ptpmatbg.hasmat { background: none; box-shadow: none; }
/* T918: a 3-player table's full-width mat: the playmat in its own format (2.7 : 1) at the bed's height in the middle, the plain bed beside it */
body.tight .ptpmatbg.hasmat.fit { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)); }
body.tight .ptpmat.you .ptpmatbg.hasmat .rzmat { --thread: color-mix(in srgb, var(--tline) 55%, #3b3d44); }   /* your mat: the thread catches the arena's gold */
body.tight .pttbl.ptpod .ptpmat .ptrowt { z-index: 20; }
body.tight .pttbl.ptpod .ptpmat .ptrowt.land { left: var(--rowpad); --tsx: 1; max-width: calc(50% - var(--pgap) - var(--rowpad)); flex-wrap: wrap; justify-content: flex-start; }
body.tight .pttbl.ptpod .ptpmat .ptrowt.art { right: var(--rowpad); --tsx: -1; max-width: calc(50% - var(--pgap) - var(--rowpad)); flex-wrap: wrap; justify-content: flex-end; }
body.tight .pttbl.ptpod .ptpmat.top .ptrowt:is(.land, .art) { top: var(--rowpad); --tsy: 1; align-items: flex-start; }
body.tight .pttbl.ptpod .ptpmat.bot .ptrowt:is(.land, .art) { bottom: var(--rowpad); --tsy: -1; align-items: flex-end; }
body.tight .pttbl.ptpod .ptpmat .ptrowt.cre { left: 12px; right: 12px; justify-content: center; flex-wrap: wrap; }
body.tight .pttbl.ptpod .ptpmat.top .ptrowt.cre { bottom: var(--pfront, 2px); align-items: flex-end; }   /* --pfront: T27's front gap (PC.podRows front) */
body.tight .pttbl.ptpod .ptpmat.bot .ptrowt.cre { top: var(--pfront, 2px); align-items: flex-start; }
body.tight .pttbl.ptpod .ptpmat .ptrowt.land .ptslot.pttl.over { margin-left: calc(24px - var(--tw)); }
/* T615 (owner sign-off 2026-11-10): folded lands (PC.matFit). A basic land's chip (PC.landChips): its mana symbol and name, the count and
   how many are untapped, as tall as the small land tiles beside it (--tw), --cw wide; the phone table's chip has the symbol and numbers */
body.tight .pttbl.ptpod .ptpmat .ptrowt.cre.ovl > * { margin-right: calc(-1 * var(--crov, 0px)); }   /* past the smallest tiles: each lies over the one before */
body.tight .pttbl.ptpod .ptpmat .ptrowt.cre.ovl { max-width: var(--crw); margin: 0 auto; }   /* per tiles a line, centred as before */
body.tight .ptlpile { flex: none; display: flex; }
body.tight .ptlpile > * + * { margin-left: calc(var(--pstep) - var(--tw)); }
body.tight .ptlpile > :hover { z-index: 1; }
body.tight .pttbl.ptpod .ptpmat .ptrowt.cre.ovl > :hover { z-index: 1; }
body.tight .ptlchip { flex: none; position: relative; width: var(--cw); height: calc(var(--tw) * .74); box-sizing: border-box; padding: 0 var(--sp-2); border: 0; border-radius: calc(var(--tw) * .07);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; overflow: hidden; background: rgba(9, 13, 18, .88);
  box-shadow: 0 0 0 1px rgba(233, 207, 143, .55), 0 8px 16px rgba(0, 0, 0, .5); color: var(--ttext); font: inherit; font-size: 11px; font-weight: 700; line-height: 1; text-align: left; cursor: pointer; }
body.tight .ptlchip .ptlcn { display: flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; }
body.tight .ptlchip .ptlcn > :first-child { flex: none; }
body.tight .ptlchip .ptlcd { width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--tsteel); }
body.tight .ptlchip .ptlcc { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
body.tight .ptlchip .ptlcc b { font-size: 12px; }
body.tight .ptlchip .ptlco { font-size: 11px; font-weight: 600; color: var(--tsteel); }
body.tight .ptlchip.bare { padding: 0 2px; align-items: center; }
body.tight .ptlchip:hover { box-shadow: 0 0 0 1px var(--tline2), 0 8px 16px rgba(0, 0, 0, .5); }
body.tight .ptlchip:focus-visible { outline: 2px solid var(--tline); outline-offset: 2px; }
body.tight .ptlchip.can { box-shadow: 0 0 0 2px var(--tplay), 0 0 14px color-mix(in srgb, var(--tplay) 55%, transparent); }
body.tight .ptlchip.on { box-shadow: 0 0 0 2px var(--tline2), 0 0 12px color-mix(in srgb, var(--tline2) 50%, transparent); }
/* T616 (owner sign-off 2026-11-10): the turn-order number on a pod seat's name plate, a small round numeral before the name; gold on the
   active player's turn (with T633's gold plate); T782: in the active player's ember colour (--turng) */
body.tight .ptpl .ptplno { flex: none; width: 15px; aspect-ratio: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #1d1a22;
  box-shadow: inset 0 0 0 1px #b8964e; color: #e2c27a; font-family: var(--tserif); font-size: 11px; font-weight: 700; line-height: 1; }
body.tight .ptpl .ptplno.on { background: var(--turng, var(--gold)); color: var(--turnink, #1a1300); }
body.tight .pttbl.ptpod .ptprib.ptseatpl .ptpl:has(> .ptplno) { padding-left: var(--sp-1); }
/* T744 (owner 2026-11-12): the voice menu (⋯) and the turn-order number as segments attached to the left of the name pill, one ink strip */
body.tight .ptplgrp { display: inline-flex; align-items: stretch; max-width: 100%; min-width: 0; border-radius: var(--r-pill); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
body.tight .ptplgrp > .ptpl { min-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 50%, transparent); }
body.tight .ptplgrp > .ptpl.turn { box-shadow: inset 0 0 0 1.5px var(--turng), 0 0 12px rgba(var(--turnw), .35); }
body.tight .ptplgrp > .ptplseg { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 0 var(--sp-2); box-sizing: border-box;
  background: rgba(9, 13, 18, .92); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 50%, transparent); color: var(--ttext); margin-right: -1px; }
body.tight .ptplgrp > .ptplseg:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); padding-left: var(--sp-3); }
body.tight .ptplgrp > .ptplno { width: auto; aspect-ratio: auto; font-family: var(--tserif); font-size: 11px; font-weight: 700; line-height: 1; color: #e2c27a; }
body.tight .ptplgrp > .ptplno.on { background: var(--turng, var(--gold)); color: var(--turnink, #1a1300); }
/* w14 #5 (owner 2026-11-14, round 3): after the turn-order number's divider, a plate's first item (a badge, else the name) starts at the
   same distance on every plate: --ptpl-lead, the one value the badge-less pill's own left padding uses too */
body.tight .ptplgrp > .ptpl, body.tight .pttbl.ptpod .ptprib.ptseatpl .ptplgrp > .ptpl { padding-left: var(--ptpl-lead); }
body.tight .ptplgrp > .lvmedbtn.ptpldots { position: relative; left: auto; top: auto; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; cursor: pointer; }
body.tight .ptplgrp > .lvmedbtn.ptpldots:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }
body.tight .ptplgrp > .lvmedbtn.ptpldots:hover { color: var(--tline); }
body.tight .ptplgrp > .lvmedbtn.ptpldots.off { color: var(--vvoff, var(--bad)); box-shadow: inset 0 0 0 1px var(--vvoff, var(--bad)); }
body.tight .ptplgrp > .lvmedbtn.ptpldots::after { content: ''; position: absolute; inset: -10px -2px; }   /* a 44 px target on a slim segment */
/* T616 (fix-mat-616): your mat's size, width and height on their own. Three handles on your mat's free edges: the corner where the mats meet
   (a 120 px circle, nwse), the edge toward the middle (height, ns) and the edge toward your neighbour (width, ew), each in a reveal zone that
   takes the pointer only while the pointer is in it (or the button has the focus); the hit areas are 44 px for touch. The corner's bar:
   My mat - W x H % + Equal. A dashed outline while dragging. */
body.tight .pttbl.ptpod .ptmh { z-index: 40; pointer-events: none; }
body.tight .pttbl.ptpod .ptmh.kc { border-radius: 50%; }
body.tight .ptmh:is(.hot, :focus-within, .touch) :is(.ptmhb, .ptmhp) { pointer-events: auto; }
/* calm layout (owner QA 2026-11-11, vb166 vs vb167): every device gets the Deck tab's splitter look: a short thin line in the board's accent
   between the mats, a little brighter and longer under the pointer; no pill, no icon. The hit area stays 44 px and invisible. */
body.tight .ptmh .ptmhb { position: absolute; box-sizing: border-box; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--tline); touch-action: none; opacity: 1; }
body.tight .ptmh .ptmhb .ptmhi { display: none; }
body.tight .ptmh .ptmhb::before, body.tight .ptmh .ptmhb::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: var(--r-pill); background: var(--tline); opacity: 0; pointer-events: none; transition: opacity .15s, width .15s, height .15s; }
/* T814 (owner 2026-11-15): with a mouse the resizer stays hidden until the pointer is in its reveal zone (.hot); a touch screen (hover: none and pointer: coarse, as touchUI) has no hover, so
   there it keeps its faint line to be found */
@media (hover: none) and (pointer: coarse) { body.tight .ptmh .ptmhb::before, body.tight .ptmh .ptmhb::after { opacity: .45; } }
body.tight .ptmh.kc .ptmhb { left: 38px; top: 38px; width: 44px; height: 44px; border-radius: 50%; cursor: nwse-resize; }
body.tight .ptmh.kc .ptmhb::before { width: 28px; height: 3px; }
body.tight .ptmh.kc .ptmhb::after { width: 3px; height: 28px; }
body.tight .ptmh.kh .ptmhb { left: 0; top: 8px; width: 100%; height: 44px; cursor: ns-resize; }
body.tight .ptmh.kh .ptmhb::before { width: 44px; height: 3px; }
body.tight .ptmh.kw .ptmhb { left: 8px; top: 0; width: 44px; height: 100%; cursor: ew-resize; }
body.tight .ptmh.kw .ptmhb::before { width: 3px; height: 44px; }
body.tight .ptmh:is(.kh, .kw) .ptmhb::after { display: none; }
body.tight .ptmh:is(.hot, :focus-within, .drag) .ptmhb::before, body.tight .ptmh:is(.hot, :focus-within, .drag) .ptmhb::after { opacity: 1; }
body.tight .ptmh.kh:is(.hot, :focus-within, .drag) .ptmhb::before { width: 64px; }
body.tight .ptmh.kw:is(.hot, :focus-within, .drag) .ptmhb::before { height: 64px; }
body.tight .ptmh.kc:is(.hot, :focus-within, .drag) .ptmhb::before { width: 36px; }
body.tight .ptmh.kc:is(.hot, :focus-within, .drag) .ptmhb::after { height: 36px; }
body.tight .ptmh.drag .ptmhb { cursor: grabbing; }
/* the board's "every button points" rule (.ptwrap :is(button, …):not(:disabled)) outranks the plain cursors above: the resize cursors win here */
body.tight .ptwrap .ptmh.kc .ptmhb:not(:disabled) { cursor: nwse-resize; }
body.tight .ptwrap .ptmh.kh .ptmhb:not(:disabled) { cursor: ns-resize; }
body.tight .ptwrap .ptmh.kw .ptmhb:not(:disabled) { cursor: ew-resize; }
body.tight .ptwrap .ptmh.drag .ptmhb:not(:disabled) { cursor: grabbing; }
body.tight .ptmh .ptmhp { position: absolute; left: 96px; top: -24px; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-4); border-radius: var(--r-box);
  background: rgba(9, 13, 18, .94); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 60%, transparent), 0 8px 24px rgba(0, 0, 0, .55); color: var(--ttext); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .15s; }
body.tight .ptmh.kh .ptmhp { left: 124px; top: 8px; }
body.tight .ptmh .ptmhv { min-width: 40px; text-align: center; }
body.tight .ptmh .ptmhp button { height: var(--h-sm); min-width: var(--h-sm); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); color: var(--ttext); font: inherit; cursor: pointer; }
body.tight .ptmh .ptmhp button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
body.tight .ptmh .ptmhp button:disabled { opacity: .4; cursor: default; }
body.tight .ptmh :is(.ptmhb, .ptmhp button):focus-visible { outline: 2px solid var(--tline); outline-offset: 2px; }
body.tight .ptmh:is(.hot, :focus-within) .ptmhp { opacity: 1; visibility: visible; }
body.tight .ptmh.drag .ptmhp button { visibility: hidden; }
body.tight .pttbl.ptpod .ptmhpv { z-index: 39; box-sizing: border-box; border: 2px dashed var(--tline); border-radius: var(--r-box); background: color-mix(in srgb, var(--tline) 7%, transparent); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptmh :is(.ptmhb, .ptmhp, .ptmhb::before, .ptmhb::after) { transition: none; } }
/* the avatar: the 2-player medallion on its plinth, placed by its box (the plinth's square); the life badge under the portrait */
body.tight .pttbl.ptpod .ptpav { z-index: 33; pointer-events: none; }
body.tight .pttbl.ptpod .ptpav > * { pointer-events: auto; }
body.tight .pttbl.ptpod .ptpav .ptplinth { left: 0; top: 0; }
body.tight .pttbl.ptpod .ptpav .ptmed { left: 20px; top: 20px; }
body.tight .pttbl.ptpod .ptpav .ptlifeb { left: calc(50% - 34px); top: calc(var(--av) + 6px); }
body.tight .pttbl.ptpod .ptpav.out { opacity: .42; }
/* T23 (owner 2026-10-21): the others' hands as card backs on the mat in front of their avatar (PC.podBacks: under a top seat's life badge,
   above a bottom seat's), the fan centred on the avatar, the count beside it */
body.tight .pttbl.ptpod .ptohand.pod { z-index: 32; gap: 0; transform: translateX(-50%); }
body.tight .pttbl.ptpod .ptohand.pod .ptohbs { width: calc(var(--ohw) * 3.7); height: var(--ohh); }
body.tight .pttbl.ptpod .ptohand.pod .ptohn { position: absolute; z-index: 1; left: calc(100% - var(--sp-5)); top: 50%; transform: translateY(-50%); padding: 0 var(--sp-3); font-size: var(--fs-lg); }
body.tight .pttbl.ptpod .ptohand.pod.empty .ptohn { position: static; transform: none; }
body.tight .pttbl.ptpod .ptohand.pod.bot .ptohb { top: auto; bottom: calc(var(--a) * 3px); transform: rotate(calc(var(--o) * 5deg)); transform-origin: 50% 100%; }
/* the name ribbon on the plinth (above the portrait for the top mats, below it for the bottom ones): name · title, the commander under it */
body.tight .ptprib { z-index: 36; box-sizing: border-box; padding: 0 var(--sp-6); border-radius: var(--r-pill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; overflow: hidden;
  background: rgba(9, 13, 18, .9); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 45%, transparent), 0 6px 14px rgba(0, 0, 0, .55); color: var(--ttext); text-align: center; line-height: 1.15; }
body.tight .ptpribs { max-width: 100%; font-size: 11px; color: rgba(233, 207, 143, .8); font-family: var(--tserif); font-weight: 700; }
body.tight .ptprib.out .ptpribs { color: var(--tsteel); font-family: inherit; font-weight: 700; }
/* the ring badges (36 x 22 at tier L, only when non-zero or active): Q9 colours for commander damage, gold for monarch and initiative */
body.tight .ptpbadge { z-index: 37; box-sizing: border-box; padding: 0 var(--sp-2); border: 0; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; gap: var(--sp-1);
  background: var(--tink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tline) 60%, transparent), 0 4px 10px rgba(0, 0, 0, .55); color: var(--tgold2); font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
body.tight .ptpbadge.hi { background: color-mix(in srgb, var(--tline) 85%, #3a2a10); color: #1a130c; }
body.tight .ptpbadge.kprio { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), 0 4px 10px rgba(0, 0, 0, .55); }
body.tight .ptpbadge.amber { box-shadow: inset 0 0 0 1.5px var(--warn), 0 4px 10px rgba(0, 0, 0, .55); color: var(--warn); }
body.tight .ptpbadge.red { background: color-mix(in srgb, var(--bad) 30%, var(--tink)); box-shadow: inset 0 0 0 1.5px var(--bad), 0 4px 10px rgba(0, 0, 0, .55); color: #fff; }
body.tight .ptpbi { display: inline-flex; flex: none; }
body.tight button.ptpbadge { cursor: pointer; }
body.tight button.ptpbadge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .ptptip { position: absolute; z-index: 96; left: calc(100% + 6px); top: -12px; display: none; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); white-space: pre; text-align: left;
  background: var(--tink2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 40%, transparent), 0 8px 18px rgba(0, 0, 0, .5); color: rgba(241, 236, 224, .85); font-size: 11px; font-weight: 600; pointer-events: none; }
body.tight .ptptip > b { color: var(--ttext); font-size: var(--fs-xs); }
body.tight .ptpbadge.open .ptptip, body.tight button.ptpbadge:focus-visible .ptptip { display: flex; }
@media (max-width: 1100px) { body.tight .ptpbadge.pr .ptptip { left: auto; right: calc(100% + 6px); } }   /* ticket #306: on tablets and phones a right-hand pod seat's list opens leftwards, toward the table (wider screens have room on the right, and leftwards would cover the life total) */
@media (hover: hover) { body.tight button.ptpbadge:hover .ptptip { display: flex; } }
/* the piles in the outer corner: the commander sticks out of the library towards the middle of the table */
body.tight .pttbl.ptpod .ptlib, body.tight .pttbl.ptpod .ptgrave { right: auto; bottom: auto; }
body.tight .pttbl.ptpod .ptgrave.pl { transform: rotate(-7deg); }
body.tight .pttbl.ptpod .ptgrave.pr { transform: rotate(7deg); }
body.tight .pttbl.ptpod .ptlib.pl .ptcmdout { left: 42%; top: 0; }
body.tight .pttbl.ptpod .ptlib.pr .ptcmdout { left: -42%; top: 0; }
body.tight .pttbl.ptpod .ptlib.pb .ptcmdout { top: -10%; }
body.tight .pttbl.ptpod .ptlib.pl .ptcmdout.n1 { left: 70%; top: -8%; }
body.tight .pttbl.ptpod .ptlib.pr .ptcmdout.n1 { left: -70%; top: -8%; }
body.tight .pttbl.ptpod .ptlib.pl .ptcmdout.n2 { left: 98%; top: -16%; }
body.tight .pttbl.ptpod .ptlib.pr .ptcmdout.n2 { left: -98%; top: -16%; }
body.tight .pttbl.ptpod .ptlib.pl .ptcmdout.fan.n0 { left: 46%; top: -30%; }
body.tight .pttbl.ptpod .ptlib.pr .ptcmdout.fan.n0 { left: -46%; top: -30%; }
body.tight .pttbl.ptpod .ptlib.pl .ptcmdout.fan.n1 { left: 92%; top: -4%; }
body.tight .pttbl.ptpod .ptlib.pr .ptcmdout.fan.n1 { left: -92%; top: -4%; }
body.tight .pttbl.ptpod .ptlib.pl .ptcmdout.fan.n2 { left: 138%; top: -12%; }
body.tight .pttbl.ptpod .ptlib.pr .ptcmdout.fan.n2 { left: -138%; top: -12%; }
/* ticket #318: a right-hand seat's commander is the mirror of a left-hand seat's: every tilt of the pile (rotate(calc(A * var(--lean)))) leans the other way, towards the middle */
body.tight .pttbl.ptpod .ptlib.pr { --lean: -1; }
body.tight .pttbl.ptpod .ptlib.pt .ptcmdout.fan.n0 { top: -2%; }
body.tight .pttbl.ptpod .ptlib.pt .ptcmdout.fan.n1 { top: 18%; }
body.tight .pttbl.ptpod .ptlib.pt .ptcmdout.fan.n2 { top: 26%; }
/* the middle: the turn number where the mats meet; the tools at the top centre with the key hint under them (the corners hold piles) */
body.tight .ptpturn { z-index: 40; width: auto; height: auto; transform: translate(-50%, -50%); padding: var(--sp-1) var(--sp-6); border-radius: var(--r-pill); white-space: nowrap; pointer-events: none;
  background: rgba(9, 13, 18, .92); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 55%, transparent), 0 6px 14px rgba(0, 0, 0, .5); font-family: var(--tserif); font-size: var(--fs-lg); font-weight: 700; color: var(--tgold2); }
body.tight .ptpturn:empty { display: none; }
body.tight .pttbl.ptpod .pttools { left: var(--px); top: var(--py); right: auto; transform: translateX(-50%); }
body.tight .pttbl.ptpod .pttools .ptcbpill { position: absolute; right: calc(100% + 8px); top: 0; margin: 0; white-space: nowrap; }
body.tight .pttbl.ptwide .pttoolsx { top: calc(100% + var(--h-xs) + var(--sp-4)); }
body.tight .pttbl.ptpod .pttools .pttoolsx { right: auto; left: 50%; top: calc(100% + 24px); transform: translateX(-50%); padding-top: 0; }   /* D7c: Watching and the watcher count under the key hint, between the top ribbons */
/* T28 (owner 2026-10-21): in a pod they have their own line under the key hint (.ptpstat, PC.POD_STAT_H), clear of the timers pill */
body.tight .pttbl.ptpod .ptpstat { z-index: 57; display: flex; align-items: center; gap: var(--sp-4); height: var(--h-xs); transform: translateX(-50%); white-space: nowrap; }
body.tight .ptwrap.overup .pttbl.ptpod .ptpstat { visibility: hidden; }
body.tight .ptwrap.ptpodw .ptcbpanel { right: auto; left: calc(50% - 200px); top: 96px; }
body.tight .ptphint { z-index: 89; display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(241, 236, 224, .7); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); white-space: nowrap; pointer-events: none; }
body.tight .ptphint:empty { display: none; }
body.tight .ptwrap.arena .ptphint { color: rgba(241, 236, 224, .86); text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .95); }   /* over a room's bright top strip (the Archive's moon window) */
/* your corner: the hand fans under your mat, your turn block (the decision corner) sits on the wireframe's rectangle and grows upwards */
body.tight .pttbl.ptpod .pthand.tt { left: var(--phx); }
body.tight .pttbl.ptpod .ptside.ptpat { left: var(--px); width: var(--pw); height: auto; right: auto; top: auto; bottom: calc(100% - var(--py) - var(--ph)); max-height: calc(var(--py) + var(--ph) - 96px); --sidew: var(--pw); }
/* fix10 (D10's open overlaps, 2026-10-20). The notes column (a player out, a reveal, Forge's notes; playtest.js podView) stacks from the
   top centre under the key hint and scrolls above your turn block, so it never piles onto the question over mats 3 and 4. A long question
   shows 4 lines (3 at tier M) and scrolls; at tier M a declare-attackers block drops its how-to line (the avatars' rings and the confirm
   button say it), so it fits between the mats and the hand. While the camera is in, your corner gets a dark backing so its text never
   runs over the zoomed cards or a ribbon. The floating stack's list ends above your turn block (--stroom). */
body.tight .pttbl.ptpod .ptside.ptpnotes.ptpat { top: var(--py); bottom: auto; height: auto; max-height: var(--pnmax); justify-content: flex-start; overflow-y: auto; scrollbar-width: none; z-index: 52; }
body.tight .pttbl.ptpod .ptside.ptpnotes::-webkit-scrollbar { display: none; }
body.tight .pttbl.ptpod .ptside.ptpnotes > .ptsidetop { margin-top: 0; }
body.tight .pttbl.ptpod .ptside.ptpnotes:not(:has(.ptsidetop > *)) { display: none; }
body.tight .pttbl.ptpod .ptside .ptprompt .ptpm { max-height: calc(4 * 1.45em); line-height: 1.45; overflow-y: auto; scrollbar-width: thin; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt .ptpm { max-height: calc(3 * 1.45em); font-size: var(--fs-sm); line-height: 1.45; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt:has(.ptatkbtns) .ptpm { display: none; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt { padding: var(--sp-4) var(--sp-5); gap: var(--sp-3) var(--sp-4); }
body.tight .ptwrap.ptt:is(.tM, .tL).ptpodw .ptside:has(.ptprompt) .ptsteps { display: none; }   /* the stop icons wait for the priority corner (Board settings has them too); audit Pl18: .tL too, else they lie over my back row */
body.tight .pttbl.ptpod.ptzoomed .ptpodbox > .ptside.ptpat:not(.ptpnotes) .ptctl { border-radius: var(--r-box); background: rgba(9, 13, 18, .9); box-shadow: 0 0 0 var(--sp-4) rgba(9, 13, 18, .9), 0 12px 30px rgba(0, 0, 0, .5); }
body.tight .pttbl.ptpod .ptstackf.float .ptstackrest { max-height: min(var(--stklh, calc(6 * (var(--stkh) + var(--sp-2)) + 40px)), max(72px, calc(var(--stroom, 400px) - 70px))); }
/* tier M: the turn block keeps to the wireframe's compact height (the glowing cards say what is playable), and the tucked hand's pips stay off your ribbon */
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptctlsub { display: none; }
/* D12 (D7c's open items). While your hand is up (the mulligan, a discard) the turn block sits above the raised cards (podGeom block.up), so
   the hand never covers the question. At tier M a declare-attackers block stays short: the "Selected" line goes (the confirm button says
   it), the Attack buttons share one row and the buttons one more, so the block no longer grows over mats 3 and 4. */
body.tight .ptpodbox:has(> .pthand.tt.asked) > .ptside.ptpat:not(.ptpnotes) {   /* fix10 (owner): only a hand that asks (mulligan, discard) lifts the block; a hovered or tapped-up hand is drawn over it */
   bottom: calc(100% - var(--py) - var(--ph) + var(--pbup, 0px)); max-height: calc(var(--py) + var(--ph) - 96px - var(--pbup, 0px)); }
/* ticket #346 (owner vb212): while the hand is up for a question (the mulligan, a discard) the question stands above it (the hand is z 60),
   in the dock or at a place it was moved to (a moved frame is fixed inside its block, so the block's own layer decides), on every board */
body.tight .ptwrap.ptt.hasked .ptside:not(.ptpnotes):has(.ptprompt) { z-index: 61; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt:has(.ptatkbtns) .ptpq > .small.muted { display: none; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt:has(.ptatkbtns) .ptpm { font-size: var(--fs-sm); }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptatkbtns { flex-wrap: nowrap; gap: var(--sp-2); }
/* #292 / T753 (owner sign-off 2026-11-13): declaring attackers is one step: the frame's live tally (who gets how many, how many are left) */
body.tight .ptatksum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); background: var(--inset); font-size: var(--fs-sm); color: var(--muted); }
body.tight .ptatksum b { color: var(--text); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
body.tight .ptatksum .ptatkleft { margin-left: auto; }
/* #292 / T753 step 2: a picked stack's counter ("20 of 40", under the stack with a mouse, a row in the frame on touch), the drag box */
body.tight .ptpickn { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1); border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-sm); white-space: nowrap; }
body.tight .ptpickn b { font-weight: var(--fw-title); font-variant-numeric: tabular-nums; padding: 0 var(--sp-1); }
body.tight .ptpickb { width: var(--sp-7); height: var(--sp-7); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--inset); color: var(--text); font-size: var(--fs-md); line-height: 1; cursor: pointer; padding: 0; }
body.tight .ptpickb:hover:not(:disabled) { border-color: var(--accent); }
body.tight .ptpickb:disabled { opacity: .4; cursor: default; }
body.tight .ptslot.pttl > .ptpickn { position: absolute; top: calc(100% + var(--sp-2)); left: 50%; transform: translateX(-50%); z-index: 6; }
body.tight .ptpickrows { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .ptpickrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); }
body.tight .ptpickrow .ptpickb { width: var(--h-md); height: var(--h-md); }
body.tight .ptbox { position: fixed; z-index: 60; pointer-events: none; border: 1px dashed var(--accent); border-radius: var(--r-box); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight.ptboxing { user-select: none; cursor: crosshair; }
body.tight .ptslot.ptboxin .ptc { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .ptarrows text.ptlnn { fill: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-title); paint-order: stroke; stroke: rgba(9, 13, 18, .9); stroke-width: 4px; stroke-linejoin: round; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptatkbtns > .btn { flex: 1 1 0; min-width: 0; padding: 0 var(--sp-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt:has(.ptatkbtns) > .ptbtns:last-child { flex-wrap: nowrap; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt:has(.ptatkbtns) > .ptbtns:last-child > .btn:not(.primary) { flex: none; white-space: nowrap; }
body.tight .ptwrap.ptt.tM.ptpodw .ptside .ptprompt:has(.ptatkbtns) > .ptbtns:last-child > .btn.primary { flex: 1 1 auto; min-width: 0; white-space: normal; font-size: var(--fs-sm); }
body.tight .pthand.tt:not(.up):not(.hovup):not(:focus-within):not(:hover) .ptpips { display: none; }   /* pt 10 (owner feedback round 2026-10-20): the cost pips only on a raised hand, every table */
/* D7c (pod interactions, 2026-10-20; wireframe D4atk): attack picking (a dashed orange ring on an avatar that can be attacked, a solid
   one on an avatar under attack, Forge's attack lines in the camera layer), a bubble and the disconnect countdown over the portrait,
   Wait 5 more minutes and the others' mana available and curses in a strip by the avatar, your own in your corner, the watcher panel. */
body.tight .pttbl .ptmed.atkcan { outline: 3px dashed #c2581b; outline-offset: 6px; }   /* attack fix B (2026-10-21): the 1v1 table with planeswalkers too */
body.tight .pttbl .ptmed.atkcan.can { outline-color: #e07a3a; }
body.tight .pttbl.ptpod .ptmed.atked { outline: 4px solid #c2581b; outline-offset: 6px; }
body.tight .pttbl.ptpod .ptpbub { z-index: 39; display: flex; align-items: center; justify-content: center; pointer-events: none; }
body.tight .pttbl.ptpod .ptpdropcd { z-index: 34; box-sizing: border-box; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; pointer-events: none;
  background: rgba(9, 13, 18, .78); box-shadow: inset 0 0 0 3px var(--warn); color: var(--ttext); font-size: 11px; font-weight: 700; }
body.tight .pttbl.ptpod .ptpdropcd > b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--warn); }
body.tight .pttbl.ptpod .ptpinfo { z-index: 36; width: 180px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2); pointer-events: none; }
body.tight .pttbl.ptpod .ptpinfo > * { pointer-events: auto; }
body.tight .pttbl.ptpod .ptpinfo .ptmav { flex: none; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: rgba(9, 13, 18, .82); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 35%, transparent); }
body.tight .pttbl.ptpod .ptpinfo .ptmavn { font-size: var(--fs-sm); }
body.tight .pttbl.ptpod .ptpinfo .ptmav.zero { display: none; }
body.tight .pttbl.ptpod .ptpinfo .ptcurses { margin-top: 0; justify-content: center; }
body.tight .pttbl.ptpod .ptpinfo .ptcurse { max-width: 120px; background: rgba(9, 13, 18, .82); }
body.tight .pttbl.ptpod .ptpwait { box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
body.tight .pttbl.ptpod .ptprib .ptclock { margin-left: var(--sp-3); min-height: 0; padding: 0 var(--sp-2); font-size: 11px; line-height: 1.3; border-radius: var(--r-tag); }   /* compact: the ribbon keeps its two lines */
/* T41 (owner 2026-10-21, vb59): the centre-of-table moment for a player out, the winner, Victory / Defeat. Over the table, under the
   sheets and the game-over panel; only the card itself takes a click (dismiss). ~3.2 s (MOMENT_MS in playtest.js); the board redraws
   whole, so every part runs on the card's negative animation-delay (inherit). Gold for a win, the arena's line colour muted for out. */
body.tight .ptmomentw { position: fixed; inset: 0; z-index: 63; display: flex; align-items: center; justify-content: center; pointer-events: none; }
body.tight .ptmoment { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); max-width: min(420px, calc(100vw - 32px)); padding: var(--sp-7) var(--sp-8);
  border: 0; border-radius: var(--r-box); background: none; color: var(--ttext); text-align: center; pointer-events: auto; cursor: pointer;
  --mc: color-mix(in srgb, var(--tline) 60%, var(--tsteel)); --mg: color-mix(in srgb, var(--tline) 35%, transparent);
  animation: ptmomin 3.2s cubic-bezier(.2, .8, .2, 1) both; }
body.tight .ptmoment.k-win { --mc: var(--tgold); --mg: rgba(255, 196, 110, .45); }
body.tight .ptmoment.k-draw { --mc: var(--tline); }
body.tight .ptmomglow { position: absolute; inset: -32% -40%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(9, 13, 18, .94), rgba(9, 13, 18, .86) 62%, rgba(9, 13, 18, 0)); }   /* the scrim: readable over bright cards */
body.tight .ptmoment.k-win .ptmomglow { background: radial-gradient(closest-side, rgba(9, 13, 18, .92), rgba(9, 13, 18, .82) 58%, rgba(9, 13, 18, 0)), radial-gradient(closest-side, var(--mg), transparent); }
body.tight .ptmommed { position: relative; width: clamp(96px, 13vw, 144px); aspect-ratio: 1; margin-bottom: var(--sp-4); border-radius: 50%; overflow: hidden; background: #161b22;
  box-shadow: 0 0 0 2px var(--mc), 0 0 0 6px rgba(9, 13, 18, .85), 0 0 0 7px var(--mg), 0 12px 32px rgba(0, 0, 0, .6); animation: ptmommed 3.2s ease-out both; animation-delay: inherit; }
body.tight .ptmoment.k-win .ptmommed { box-shadow: 0 0 0 2px var(--tgold), 0 0 0 6px rgba(9, 13, 18, .85), 0 0 0 8px var(--tgold), 0 0 40px var(--mg), 0 12px 32px rgba(0, 0, 0, .6); }
body.tight .ptmommed img, body.tight .ptmommed .rzav { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 30%; }
body.tight .ptmommed .rzav img { object-position: 50% 50%; }
body.tight .ptmoment:is(.k-out, .k-lose) .ptmommed::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgb(8 10 14 / .45); pointer-events: none; animation: ptmomveil 3.2s ease-out both; animation-delay: inherit; }
body.tight .ptmomini { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-family: var(--tserif); font-size: 36px; font-weight: 700; color: var(--mc); }
body.tight .ptmomring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 200deg, transparent 0 70%, rgba(255, 236, 190, .55) 80%, transparent 90%); mix-blend-mode: screen; opacity: 0; animation: ptmomsweep 3.2s ease-in-out both; animation-delay: inherit; }
body.tight .ptmoment:not(.k-win) .ptmomring { display: none; }
body.tight .ptmomplace { font-family: var(--tserif); font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: .08em; color: var(--mc); text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); font-variant-numeric: lining-nums; animation: ptmomplace 3.2s cubic-bezier(.2, .8, .2, 1) both; animation-delay: inherit; }
body.tight .ptmoment.k-win .ptmomplace { color: var(--tgold2); text-shadow: 0 0 18px var(--mg), 0 2px 12px rgba(0, 0, 0, .8); }
body.tight .ptmomname { max-width: 100%; font-family: var(--tserif); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--tgold2); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
body.tight .ptmomline { font-size: var(--fs-md); color: var(--tsteel); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
body.tight .ptmomline::before, body.tight .ptmomline::after { content: ''; display: inline-block; width: 24px; height: 1px; margin: 0 var(--sp-4); vertical-align: middle; background: var(--mc); opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  body.tight .ptmoment { animation-name: ptmomfade; animation-timing-function: linear; }
  body.tight .ptmoment :is(.ptmommed, .ptmomplace, .ptmomring), body.tight .ptmoment .ptmommed::after { animation: none; }
  body.tight .ptmoment .ptmomring { opacity: 0; }
}
@media (max-width: 700px) {
  body.tight .ptmoment { padding: var(--sp-6) var(--sp-7); }
  body.tight .ptmomplace { font-size: 28px; }
  body.tight .ptmomname { font-size: 18px; }
}
body.tight .ptwrap.overup .pttbl.ptpod :is(.pttools, .ptphint) { visibility: hidden; }   /* the game-over panel: the pod's top-centre tools stay under it */
body.tight .pttbl.ptpod .ptprib .ptmav { justify-content: center; gap: var(--sp-2); font-size: 11px; line-height: 1; }
body.tight .pttbl.ptpod .ptprib .ptmavn { font-size: 11px; }
body.tight .pttbl.ptpod .ptprib .ptmp > :first-child { width: 12px !important; height: auto !important; aspect-ratio: 1; }
body.tight .ptpmine { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
body.tight .ptpmine .ptcurses { margin-top: 0; }
body.tight .ptpwatch { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--tink, #0e141a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 35%, transparent); color: var(--ttext); }
body.tight .ptpwatch .btn { flex: 1 1 auto; }
body.tight .ptstackeach { flex-wrap: wrap; }
body.tight .pttg.player.you { border-color: var(--accent); }
body.tight .ptgost { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .ptgost > li { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); font-size: var(--fs-sm); }
body.tight .ptgost > li.you { box-shadow: inset 0 0 0 1px var(--accent); }
body.tight .ptgost > li > .tag { flex: none; min-width: 40px; justify-content: center; }
/* ---------- the Playtest board: hand, inspector and keywords (board look D2, 2026-10-19; Board5.dc.html, Board4Phone; DESIGN 4.10) ----------
   The hand fans out from the middle: playtest.js sets --n on the row and --o (the card's distance from the middle) and --a (the same,
   unsigned) on each card. Tucked it shows the card tops only; up it spreads, tilts and drops towards the ends; the hovered (or focused)
   card lifts further and grows; mana pips sit above every card but that one. The inspector (.ptinsp) is the full card beside the hovered
   tile with the keyword notes flush against it. Keyword icons take the theme token --kw-icon (style.css :root: var(--sec), gold in the
   default dark theme). The Challenger's hand is backs only with the count, by their medallion. ---------- */
body.tight .pttbl.ptwide .pthand.tt { max-width: calc(100% - 2 * var(--sidew) - 96px); }   /* the fanned hand stays clear of the decision corner */
/* ticket #144 (owner 2026-10-31): the focus fan, the one hand display on every board. playtest.js places each card from PC.focusFan:
   --fx its centre from the fan's middle, --fs its scale (the focused card whole, its neighbours smaller and tucked behind it, as tight
   as the room asks), --fd / --fa its signed / plain distance from the focus (tilt and drop while raised), --fz its stacking. The focused
   card (.foc) or the hovered one (.hov) lifts while the hand is up. A raised column fan (phones, portrait tablets, the phone pod) is drawn
   --fanbig times larger, so the focused card reads like the mockup's; there the focus only rises a little (--fl) and grows no further (--fk). */
body.tight .pthand.tt .ptrow.nowrap.fan { display: block; position: relative; height: calc(var(--hcw) * 1.393); padding: 0; --rot: 0deg; --drop: 0px; --fanbig: 1; }   /* --fk / --fl: on .pthand from playcore.js P.FAN_FOC */
body.tight .pthand.tt:is(.up, :focus-within) .ptrow.fan { --rot: min(3deg, calc(24deg / var(--n))); --drop: 8px; }
@media (hover: hover) { body.tight .pthand.tt:hover .ptrow.fan { --rot: min(3deg, calc(24deg / var(--n))); --drop: 8px; } }
body.tight .pthand.tt.hovup .ptrow.fan { --rot: min(3deg, calc(24deg / var(--n))); --drop: 8px; }
body.tight .pttbl.ptph .pthand.tt:is(.up, .asked) .ptrow.fan { --fanbig: 1.5; --fk: 1; --fl: -14px; }
body.tight .pthand.tt .ptrow.fan > .ptslot.hand { position: absolute; top: 0; left: calc(50% - var(--hcw) / 2 + var(--fx, 0px)); min-width: 0; z-index: var(--fz, 1);
  transform: translateY(calc(var(--fa, 0) * var(--drop))) rotate(calc(var(--fd, 0) * var(--rot))) scale(var(--fs, 1)); transform-origin: 50% 0;
  transition: left 220ms cubic-bezier(.2, .8, .2, 1), transform 220ms cubic-bezier(.2, .8, .2, 1), transform-origin 220ms; }
/* tucked, the cards shrink from their tops, so every card's top peeks; raised, from their feet, so they tuck behind the focus */
body.tight .pthand.tt:is(.up, .asked, .hovup, :focus-within) .ptrow.fan > .ptslot.hand { transform-origin: 50% 100%; }
@media (hover: hover) { body.tight .pthand.tt:hover .ptrow.fan > .ptslot.hand { transform-origin: 50% 100%; } }
body.tight .pthand.tt .ptrow.fan.still > .ptslot.hand { transition: none; }
body.tight .pthand.tt .ptrow.fan > .ptslot.hand.far .ptpips { display: none; }   /* a tight fan: the cost pips only near the focus */
body.tight .pthand.tt:is(.up, .asked, .hovup, :focus-within) .ptrow.fan > .ptslot.hand:is(.foc, .hov, :focus-within) { transform: translateY(var(--fl)) scale(calc(var(--fs, 1) * var(--fk))); z-index: 90; }
body.tight .pthand.tt:is(.up, .asked, .hovup, :focus-within) .ptrow.fan > .ptslot.hand:is(.foc, .hov, :focus-within) .ptpips { display: none; }
body.tight .pthand.tt.hovup .ptrow.fan.hashov > .ptslot.hand:not(.hov) { pointer-events: none; }
@media (hover: hover) {
  body.tight .pthand.tt:hover .ptrow.fan > .ptslot.hand:is(.foc, .hov) { transform: translateY(var(--fl)) scale(calc(var(--fs, 1) * var(--fk))); z-index: 90; }
  body.tight .pthand.tt:hover .ptrow.fan > .ptslot.hand:is(.foc, .hov) .ptpips { display: none; }
  body.tight .pthand.tt .ptrow.fan.hashov > .ptslot.hand:not(.hov) { pointer-events: none; }   /* vb1: playtest.js handHover picks the card by its slice */
  body.tight .pthand.tt .ptrow.fan > .ptslot.hand .ptc:hover { transform: none; }
}
/* the controls under the raised fan (#144): previous, the count, next, the whole hand (and on touch, tuck it away); shown while the hand is up */
body.tight .pthctl { position: absolute; left: 50%; top: calc(100% + var(--sp-3)); transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-3); z-index: 95; white-space: nowrap;
  padding: var(--sp-1); border-radius: 999px; background: rgba(9, 13, 18, .72); box-shadow: 0 0 0 1px rgba(233, 207, 143, .22); transition: opacity 160ms; }
body.tight .pthbtn { flex: none; width: var(--h-sm); height: var(--h-sm); border-radius: 999px; color: #f3e4bd; border-color: rgba(233, 207, 143, .4); background: rgba(9, 13, 18, .85); }
body.tight .pthbtn:hover:not(:disabled), body.tight .pthbtn:focus-visible { background: rgba(233, 207, 143, .2); color: #fff8e6; }
body.tight .pthbtn:disabled { opacity: .4; }
/* ticket #354: your mana readout at the bar's front, as the hand up covers your seat's own; a rule parts it from the hand's buttons */
body.tight .pthmana { display: flex; align-items: center; padding: 0 var(--sp-3) 0 var(--sp-2); border-right: 1px solid rgba(233, 207, 143, .22); }
body.tight .pthmana:has(> .ptmav.zero) { display: none; }   /* nothing to read */
body.tight .pthcnt { min-width: 52px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: #ece9e2; }
@media (pointer: coarse) { body.tight .pthbtn { width: var(--h-md); height: var(--h-md); } }
body.tight .pthand.tt:not(.up):not(.asked):not(.hovup):not(:focus-within) .pthctl { opacity: 0; pointer-events: none; }
@media (hover: hover) { body.tight .pthand.tt:hover .pthctl { opacity: 1; pointer-events: auto; } }
/* room for the controls: the raised hand rises by their height (the column's bay already leaves it) */
body.tight .pthand.tt:is(.up, .asked, .hovup, :focus-within) { translate: 0 calc(-1 * var(--hctl)); }
@media (hover: hover) { body.tight .pthand.tt:hover { translate: 0 calc(-1 * var(--hctl)); } }
@media (pointer: coarse) { body.tight .pthand.tt:is(.up, .asked, .hovup, :focus-within) { translate: 0 calc(-1 * var(--hctlt)); } }
body.tight .pthgrid { flex-wrap: wrap; justify-content: center; }
body.tight .pthgrid > .ptslot.foc .ptc { outline: 2px solid var(--tgold2, #f3e4bd); outline-offset: 3px; }   /* the card in the fan's focus */
body.tight .pthand.tt { touch-action: pan-y; }
body.tight .pthand.tt .ptslot.hand { touch-action: none; }   /* T988: a finger drags a card up out of the hand; the browser must not take that as a scroll */   /* a sideways swipe along the hand is the board's (playtest.js handHover) */
@media (prefers-reduced-motion: reduce) { body.tight .pthand.tt .ptrow.fan > .ptslot.hand, body.tight .pthctl { transition: none; } }
body.tight .ptwrap.ptt.fxoff .pthand.tt .ptrow.fan > .ptslot.hand { transition: none; }
/* a chosen hand card (the mulligan's bottom pick, a discard) rises out of the fan, its check in the corner the next card leaves free (2026-10-20) */
body.tight .pthand.tt .ptrow.fan > .ptslot.hand:has(> .ptc.can) { translate: 0 -6px; }   /* a playable hand card lifts a little */
/* tickets #44 / #45 (2026-10-20): cards you may play from exile, the graveyard or a library top sit at the right end of the fan, faded with a
   dashed gold edge and a tag at their foot (MTG Arena's look); full strength while playable now, hovered or focused */
body.tight .pthand.tt .ptslot.ptxh .ptc { outline: 2px dashed var(--tgold2, #f3e4bd); outline-offset: -4px; }
body.tight .pthand.tt .ptslot.ptxh .ptc:not(.can) { opacity: .6; --veil: .15; }
body.tight .pthand.tt .ptslot.ptxh.hov .ptc, body.tight .pthand.tt .ptslot.ptxh:focus-within .ptc { opacity: 1; filter: none; }
body.tight .pthand.tt .ptslot.ptxh .ptbadge { top: auto; bottom: var(--sp-3); background: var(--tink, #0e141a); color: var(--tgold2, #f3e4bd); border: 1px solid var(--tgold, #e9cf8f); }
body.tight .ptlibtop.can { box-shadow: 0 0 0 3px var(--tplay), 0 0 14px color-mix(in srgb, var(--tplay) 70%, transparent), 4px 6px 14px rgba(0, 0, 0, .6); }
body.tight .pthand.tt .ptrow.fan > .ptslot.hand:has(> .ptc.sel) { translate: 0 -24px; }
body.tight .ptslot.hand .ptcheck { top: 22%; left: 22%; }
body.tight .pttbl.ptcol .pthand.tt .ptrow.fan { --fk: 1.18; --fl: -24px; }   /* the column's lift (a raised column fan is --fanbig larger instead) */
/* the hand's mana cost: the app's own symbols (RZ.glyph, the glyph filled with the theme's mana colour; owner 2026-10-20) on a dark pill */
body.tight .ptpips { position: absolute; z-index: 3; left: 50%; top: -26px; transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-2); border-radius: 999px; background: var(--tink2, #0b1016); box-shadow: 0 0 0 1px var(--edge), 0 3px 8px rgba(0, 0, 0, .6); pointer-events: none; }
body.tight .ptpips .symimg { flex: none; }
body.tight .pttbl.ptcol .ptpips { top: -22px; transform: translateX(-50%) scale(.8); }
/* the Challenger's hand: card backs hanging from the top edge left of their medallion (the library sits right of it), the count beside them */
body.tight .ptohand { position: absolute; z-index: 21; display: flex; align-items: center; gap: var(--sp-4); --ohw: calc(var(--av) * .44); }
body.tight .pttbl.ptwide .ptohand.opp { right: calc(50% + var(--av) / 2 + 28px); top: var(--sp-3); flex-direction: row-reverse; }
body.tight .pttbl.ptwide .ptname.opp { max-width: min(360px, calc(50% - var(--av) * 2.2 - 100px)); }   /* leaves room for the hand's backs */
/* fix 2026-10-19 (owner, vb19): the fan shows whole, no clipping box behind it (it used to hang half off the top edge inside an overflow box) */
body.tight .ptohbs { position: relative; display: block; width: calc(var(--ohw) * 3.8); height: calc(var(--ohw) * 1.62); overflow: visible; background: none; }
body.tight .ptohb { position: absolute; left: calc(50% - var(--ohw) / 2 + var(--o) * var(--ohw) * .45); top: calc(var(--a) * 3px); width: var(--ohw); aspect-ratio: 63 / 88;
  transform: rotate(calc(var(--o) * -5deg)); transform-origin: 50% 0; border-radius: var(--r-tag);
  background: radial-gradient(ellipse at 50% 45%, #1d2a44 0%, #10172a 60%, #0a0f1c 100%); box-shadow: inset 0 0 0 2px #0a0f1c, inset 0 0 0 3px rgba(233, 207, 143, .7), inset 0 0 0 5px #0a0f1c, inset 0 0 0 6px rgba(233, 207, 143, .3), 0 6px 14px rgba(0, 0, 0, .55); }
body.tight .ptohn { padding: 0 var(--sp-3); border-radius: var(--r-tag); background: var(--tink); box-shadow: 0 0 0 1px rgba(233, 207, 143, .35); font-family: var(--tserif); font-size: var(--fs-lg); font-weight: 700; color: var(--tgold); }
body.tight .ptohand.empty .ptohbs { display: none; }
/* ticket #209: a hand revealed to you (Sen Triplets, Telepathy): a button that opens it, with a tag */
body.tight button.ptohand.rev { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
body.tight .ptohrev { padding: 0 var(--sp-2); border-radius: var(--r-tag); background: var(--tink); border: 1px solid var(--tgold, #e9cf8f); color: var(--tgold2, #f3e4bd); font-size: var(--fs-xs); white-space: nowrap; }
body.tight .ptpbadge.khand.rev { cursor: pointer; outline: 1px solid var(--tgold, #e9cf8f); }
body.tight .pthgrid .ptslot.ptxh .ptc { outline: 2px dashed var(--tgold2, #f3e4bd); outline-offset: -4px; }
body.tight .ptohand.empty .ptohn { opacity: .6; }
body.tight .pttbl.ptcol .ptohand { position: relative; flex: 0 0 auto; gap: 0; --ohw: 12px; }
body.tight .pttbl.ptcol .ptohbs { display: none; }
body.tight .pttbl.ptcol .ptohn { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-2); font-size: var(--fs-md); }
body.tight .pttbl.ptcol .ptohn::before { content: ''; width: var(--ohw); aspect-ratio: 63 / 88; border-radius: var(--sp-1); background: #10172a; box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .7); }
/* fix 2026-10-19 (D6 open issue 2): a watcher sees the bottom player's hand too: backs rising from the bottom edge right of their medallion (the library sits left of it) */
body.tight .pttbl.ptwide .ptohand.me { left: calc(50% + var(--av) / 2 + 28px); bottom: var(--sp-3); }
body.tight .pttbl.ptwide .ptohand.me .ptohb { top: auto; bottom: calc(var(--a) * 3px); transform: rotate(calc(var(--o) * 5deg)); transform-origin: 50% 100%; }
/* fix 2026-10-19 (D6 open issue 4): commander damage on a phone plate (and in the narrow bottom-left corner of the table) is one short line: crest icon,
   the commander's short name, the count; the full text is its title. The name gives way, the count always shows. */
body.tight .ptcdi { display: none; }
body.tight :is(.pttbl.ptcol, .pttbl.ptwide .ptname.me) :is(.ptcdl, .ptcdf) { display: none; }
body.tight :is(.pttbl.ptcol, .pttbl.ptwide .ptname.me) .ptcdi { display: inline-flex; margin-right: var(--sp-2); }
body.tight :is(.pttbl.ptcol, .pttbl.ptwide .ptname.me) .ptcdmg { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
body.tight :is(.pttbl.ptcol, .pttbl.ptwide .ptname.me) .ptcdmg > * { flex: 0 0 auto; }
body.tight :is(.pttbl.ptcol, .pttbl.ptwide .ptname.me) .ptcdmg > .ptcdn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.tight :is(.pttbl.ptcol, .pttbl.ptwide .ptname.me) .ptcdmg > b { margin-left: var(--sp-2); }
/* keyword icons on a tile: up to three in the top-left corner */
body.tight .ptkws { position: absolute; z-index: 3; left: 4px; top: 4px; display: flex; gap: var(--sp-1); pointer-events: none; }
body.tight .ptltr + .ptkws { left: 32px; }
body.tight .ptkws .ptkwi { width: 20px; aspect-ratio: 1; border-radius: var(--r-tag); display: flex; align-items: center; justify-content: center; background: rgba(9, 13, 18, .85); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tline) 35%, transparent); color: var(--kw-icon); }
body.tight .ptslot.pttl.tapped .ptkws { opacity: .7; }
body.tight.light .ptkws .ptkwi { background: rgba(250, 247, 240, .94); }
/* ticket #304 (owner sign-off 2026-11-17): summoning sick, a round zz first in the keyword corner (every tile size) and in the card panel's line */
body.tight .ptsick { width: 20px; aspect-ratio: 1; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #cfe0ff; background: rgba(9, 13, 18, .85); box-shadow: 0 0 0 1px rgba(201, 190, 255, .7); }
body.tight.light .ptsick { color: #34408a; background: rgba(250, 247, 240, .94); box-shadow: 0 0 0 1px rgba(52, 64, 138, .45); }
body.tight :is(.tw40, .tw48, .tw56) .ptsick-corner { width: 16px; }
body.tight :is(.tw40, .tw48, .tw56) .ptsick-corner svg { transform: scale(.85); }
body.tight :is(.tw40, .tw48, .tw56) .ptltr + .ptkws:has(> .ptsick-corner) { left: auto; right: 2px; }   /* beside a letter the corner would hang past a small tile: the other top corner */
body.tight.light .ptwrap.ptt { --kw-icon: var(--tkwl, #8f6200); }   /* AT: light chips take the palette's darker colour (the arena tint is for the dark table) */
/* the inspector: the full card beside the hovered tile (on the side away from the screen edge), the notes flush against its far side */
body.tight .ptinsp { position: fixed; z-index: 95; left: 0; top: 0; display: none; align-items: flex-start; pointer-events: none; --icw: 240px; --inw: 230px; }
body.tight .ptinsp.on { display: flex; }
body.tight .ptinsp.l { flex-direction: row-reverse; }
body.tight .ptinsp.small { --icw: 200px; --inw: 210px; }
body.tight .ptinsp.pin { pointer-events: auto; }
body.tight .ptinspcol { position: relative; z-index: 1; flex: none; width: var(--icw); display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .ptinspcol > img, body.tight .ptinspcol > .ptnoimg { width: 100%; aspect-ratio: 63 / 88; border-radius: var(--r-box); box-shadow: 0 20px 50px rgba(0, 0, 0, .7); display: block; }
body.tight .ptinspcol > .ptinspf { display: block; position: relative; width: 100%; border-radius: var(--r-box); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }   /* T732: the hover inspector's picture with its foil layer (playtest.js inspFill) */
body.tight .ptinspcol > .ptinspf > img { display: block; width: 100%; aspect-ratio: 63 / 88; }
/* T741 (owner 2026-11-12): a battle's front lies sideways, as printed: the card at the same size, turned a quarter so its text reads */
body.tight .ptinsp.side .ptinspcol { width: calc(var(--icw) * 88 / 63); }
body.tight .ptinspside { position: relative; display: block; width: 100%; aspect-ratio: 88 / 63; }
body.tight .ptinspside > :is(img, .ptinspf) { position: absolute; left: 50%; top: 50%; width: calc(100% * 63 / 88); aspect-ratio: 63 / 88; border-radius: var(--r-box); box-shadow: 0 20px 50px rgba(0, 0, 0, .7); transform: translate(-50%, -50%) rotate(90deg); }
body.tight .ptinspside > .ptinspf { overflow: hidden; }
body.tight .ptinspside > .ptinspf > img { display: block; width: 100%; aspect-ratio: 63 / 88; }
body.tight .ptinspcol > .ptnoimg { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); box-sizing: border-box; background: #121820; color: #ece9e2; }
body.tight .ptinspn { flex: none; width: var(--inw); margin-top: var(--sp-6); max-height: calc(100vh - 60px); overflow-y: auto; scrollbar-width: none; background: rgba(12, 16, 22, .97); box-shadow: 0 0 0 1px rgba(233, 207, 143, .3), 0 16px 40px rgba(0, 0, 0, .6); }
body.tight .ptinsp.r .ptinspn { border-radius: 0 var(--r-box) var(--r-box) 0; }
body.tight .ptinsp.l .ptinspn { border-radius: var(--r-box) 0 0 var(--r-box); }
body.tight .ptinspnote { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid rgba(233, 207, 143, .14); }
body.tight .ptinspnote:last-child { border-bottom: 0; }
body.tight .ptinspnt { display: flex; align-items: center; gap: var(--sp-3); font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; color: #e9cf8f; }
body.tight .ptinspnt .ptkwi { flex: none; display: inline-flex; color: var(--kw-icon); }
body.tight .ptinspnx { margin-top: var(--sp-1); font-size: var(--fs-xs); line-height: 1.45; color: #d8d3c7; }
body.tight .ptinspb { display: flex; gap: var(--sp-4); justify-content: center; }
body.tight .ptinspb .btn { flex: 1 1 0; }
/* owner 2026-10-25: Card details and Close under the board's card close-up had see-through backgrounds, so in light mode the dark text sat on the dark board; a solid card ground keeps them readable in both themes */
body.tight .ptinspb .btn { background: var(--card); color: var(--text); border-color: var(--line); }
body.tight .ptinspb .btn:hover, body.tight .ptinspb .btn:focus-visible { border-color: var(--accent); }
body.tight .ptinspbg { position: fixed; inset: 0; z-index: 94; background: rgba(5, 7, 10, .45); }
body.tight .ptinsp.mob { flex-direction: column; align-items: center; --icw: min(240px, 62vw); --inw: min(360px, calc(100vw - 32px)); }
body.tight .ptinsp.mob .ptinspn { margin-top: var(--sp-4); border-radius: var(--r-box); max-height: 30vh; }
body.tight.light .ptinspn { background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .3); }
body.tight.light .ptinspnote { border-bottom-color: var(--line); }
body.tight.light .ptinspnt { color: var(--text); }
body.tight.light .ptinspnx { color: var(--text2); }
/* the Effects section (PROTOCOL 14) in the inspector and the card sheet: "Loses all abilities · Azure Beastbinder · until your next turn" */
body.tight .pteff { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid rgba(233, 207, 143, .14); }
body.tight .ptefh { font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; color: var(--tfx); }
body.tight .ptefp { margin-top: var(--sp-1); font-size: var(--fs-xs); color: #aeb6c2; font-variant-numeric: tabular-nums; }
body.tight .ptefr { margin-top: var(--sp-2); font-size: var(--fs-xs); line-height: 1.45; color: #d8d3c7; }
body.tight .pteft { font-weight: 700; color: #f3e4bd; }
body.tight .ptefn { font-weight: 700; color: var(--tfx); font-variant-numeric: tabular-nums; }
body.tight .ptefr.lost .pteft { color: var(--tfx); }
body.tight .ptefsrc { font: inherit; color: #f3e4bd; }
body.tight button.ptefsrc { padding: 0; border: 0; background: none; color: var(--tfx); text-decoration: underline dotted; text-underline-offset: 2px; cursor: pointer; }
body.tight .pteff.sheet { padding: var(--sp-4) 0; border-bottom: 0; border-top: 1px solid var(--line); }
body.tight .pteff.sheet .ptefh { font-family: inherit; font-size: var(--fs-md); color: var(--text); }
body.tight .pteff.sheet .ptefr, body.tight .pteff.sheet .ptefp { color: var(--text2); font-size: var(--fs-sm); }
body.tight .pteff.sheet .pteft { color: var(--text); }
body.tight .ptmutt { margin-top: var(--sp-1); font-weight: 400; color: #d8d3c7; white-space: pre-line; }
body.tight .pteff.sheet .ptmutt { color: var(--text2); }
body.tight.light .ptmutt { color: var(--text2); }
body.tight.light .pteff { border-bottom-color: var(--line); }
body.tight.light .ptefh { color: #137a8a; }
body.tight.light .ptefr, body.tight.light .ptefp { color: var(--text2); }
body.tight.light .pteft, body.tight.light .ptefsrc { color: var(--text); }
body.tight.light button.ptefsrc { color: #137a8a; }
/* "Choose one" for a modal spell (round 5): centred over the board, the modes as cards that lift on hover, the full card beside them */
body.tight .ptmodes-bg { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: rgba(5, 7, 10, .84); }
/* while the centred choice is open the hand stays tucked behind the backdrop, its own buttons hidden (owner review 2026-10-19) */
body.tight .ptwrap.hasmodal .pthand .pthctl, body.tight .ptwrap.hasmodal .pthand .ptpips { display: none; }
body.tight .ptwrap.hasmodal .pthand { pointer-events: none; }
body.tight .ptwrap.hasmodal .pthand .ptc { --veil: .4; }
/* T986 (owner 2026-11-29, mockup ~/ce-work/mockups/t986): the opening hand in the middle of the screen. One of the centred choices
   (.ptmodes-bg above): the whole hand face up and readable, Keep and Mulligan under it, the note, who has kept. Always one row (T999, below).
   --mcw: one card's width. */
/* T999 (owner 2026-11-29): always ONE row, on every device. A card is as wide as the row allows for the hand's size (--n, set by
   mullView), never under --mmin and never taller than the screen leaves; when the cards do not fit at --mmin the row slides sideways
   (a finger drags along it; a mouse has the row's thin scrollbar, a trackpad swipes), each card whole and readable as it passes. The readable
   width wins over the screen's height: on a very short screen the layer scrolls down to its buttons (.ptmodes). */
body.tight .ptmull { --mmin: 96px; --mroom: min(1240px, 100vw - var(--sp-8)); --mchrome: 232px; width: min(1240px, 100%); }   /* --mchrome: about the height the title, the buttons and the note take */
/* T1011: the Hand size setting (--hk, 80 .. 120 %) sizes these cards too: the width the row allows, times --hk; bigger cards slide in the one row */
body.tight .ptmullhand { --mcw: calc(clamp(var(--mmin), min(calc((var(--mroom) - (var(--n) - 1) * var(--sp-2) - 2 * var(--sp-8)) / var(--n)), calc((100dvh - var(--mchrome)) / 1.393)), 176px) * var(--hk, 1));
  display: flex; flex-wrap: nowrap; align-items: flex-end; gap: var(--sp-2); max-width: 100%; padding: var(--sp-5) var(--sp-7) var(--sp-8); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #6a6788 transparent; overscroll-behavior-x: contain; }
@media (pointer: coarse) { body.tight .ptmullhand { scrollbar-width: none; } body.tight .ptmullhand::-webkit-scrollbar { display: none; } }   /* a finger drags the row itself; a mouse gets the bar */
body.tight .ptmullcard:first-child { margin-left: auto; } body.tight .ptmullcard:last-child { margin-right: auto; }   /* centred while it fits; from its first card when it slides */
body.tight .ptmullcard { display: block; flex: none; rotate: calc((var(--i) - (var(--n) - 1) / 2) * 2.2deg); translate: 0 calc(max(var(--i) - (var(--n) - 1) / 2, (var(--n) - 1) / 2 - var(--i)) * var(--sp-1)); }
body.tight .ptmull .ptslot.hand { --cw: var(--mcw); }
body.tight .ptmullbtns { justify-content: center; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .ptmullbtns .btn { min-height: var(--h-lg); min-width: 168px; font-size: var(--fs-lg); }
body.tight .ptmullbtns .btn:not(.primary) { background: rgba(34, 33, 47, .92); border-color: #6a6788; color: #ebe8ec; }   /* on the dark layer in the light theme too */
body.tight .ptmullbtns .btn.ptmulltable { min-width: 0; gap: var(--sp-3); background: none; border-style: dashed; }
body.tight .ptmullnote { color: #c9c6bf; text-align: center; }
/* T1011: Board settings' Hand size slider under the opening hand's buttons (rangeLine); the copy of a card under the mouse (playtest.js mullZoomOn), over the layer (120/121) and
   under a card's panel (122) */
body.tight .ptmull .ptrng { flex-direction: row; align-items: center; justify-content: center; gap: var(--sp-4); width: min(420px, 100%); margin-inline: auto; color: #c9c6bf; }
body.tight .ptmull .ptrng .ptmline { display: contents; }   /* the label, the range, then the value: one line, as drawn */
body.tight .ptmull .ptrng .ptmlab { order: 0; flex: none; white-space: nowrap; color: #c9c6bf; }   /* on the dark layer in the light theme too */
body.tight .ptmull .ptrng input { order: 1; flex: 1 1 auto; width: auto; min-width: 0; }
body.tight .ptmull .ptrng .ptrngv { order: 2; min-width: 44px; color: #ebe8ec; font-weight: 600; font-variant-numeric: tabular-nums; }
body.tight .ptmullzoom { position: fixed; z-index: 121; display: block; rotate: none; translate: none; pointer-events: none; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); }
body.tight .ptmullwho { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
body.tight .ptmullchip { padding: var(--sp-1) var(--sp-4); border: 1px solid #4a4766; border-radius: 999px; font-size: var(--fs-sm); color: #c9c6bf; }
body.tight .ptmullchip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
body.tight .ptmull.fadein .ptmullcard { animation: ptmulldeal .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 35ms); }   /* the keyframes are in style.css (this file holds only body.tight rules) */
@media (prefers-reduced-motion: reduce) { body.tight .ptmull.fadein .ptmullcard { animation: none; } }
@media (max-width: 899px) {
  body.tight .ptmull { --mmin: 132px; }   /* phones and upright tablets: readable cards, the row slides */
  body.tight .ptmullcard { rotate: none; translate: none; }
  body.tight .ptmullbtns .btn { flex: 1 1 140px; min-width: 0; }
  body.tight .ptmullbtns .btn.ptmulltable { flex: 0 0 auto; }
}
body.tight .ptmodes { display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); max-width: 100%; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
body.tight .ptmodehd { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center; }
body.tight .ptmodet { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 36px; font-weight: 700; line-height: 1.1; color: #f3e4bd; }
body.tight .ptmodesub { font-size: var(--fs-md); color: #c9c6bf; }
body.tight .ptmodedone { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
body.tight .ptmodedc { display: inline-flex; align-items: center; gap: var(--sp-3); max-width: 420px; padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill); background: rgba(233, 207, 143, .14); color: #f3e4bd; font-size: var(--fs-sm); }
body.tight .ptmodemain { display: flex; align-items: center; gap: var(--sp-7); }
body.tight .ptmodelist { display: flex; gap: var(--sp-6); align-items: stretch; flex-wrap: wrap; justify-content: center; }
body.tight .ptmodec { position: relative; width: 210px; padding: 0; display: flex; flex-direction: column; align-items: stretch; border: 0; border-radius: var(--r-box); background: #121820; font: inherit; text-align: left; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(233, 207, 143, .25), 0 20px 40px rgba(0, 0, 0, .6); transition: transform 180ms, box-shadow 180ms; }
body.tight .ptmodec:hover, body.tight .ptmodec:focus-visible { transform: translateY(-12px) scale(1.06); box-shadow: 0 0 0 2px #f3e4bd, 0 0 36px rgba(233, 207, 143, .5), 0 24px 44px rgba(0, 0, 0, .7); }
body.tight .ptmodeart { display: block; width: 100%; aspect-ratio: 210 / 118; overflow: hidden; }
body.tight .ptmodeart img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tight .ptmodeart img.crop { object-position: 50% 22%; }
body.tight .ptmodetx { flex: 1 1 auto; padding: var(--sp-5) var(--sp-5) var(--sp-5); font-size: var(--fs-md); line-height: 1.4; color: #d8d3c7; }
body.tight .ptmodec:hover .ptmodetx, body.tight .ptmodec:focus-visible .ptmodetx { color: #fff8e6; }
body.tight .ptmodefull { flex: none; width: 230px; padding: 0; border: 0; border-radius: var(--r-box); background: none; display: none; }
@media (min-width: 1300px) { body.tight .ptmodefull { display: block; } }
body.tight .ptmodefull img { width: 100%; display: block; border-radius: var(--r-box); box-shadow: 0 0 0 1px rgba(233, 207, 143, .4), 0 24px 50px rgba(0, 0, 0, .7); }
body.tight .ptmodebtns { justify-content: center; }
/* the backdrop is dark in both themes, so its buttons (No more modes, Cancel) carry their own light-on-dark colours: the theme's --text
   is near-black in light mode and made them unreadable (ticket #171) */
body.tight .ptmodebtns .btn { background: #121820; border-color: rgba(233, 207, 143, .45); color: #f3e4bd; }
body.tight .ptmodebtns .btn:hover, body.tight .ptmodebtns .btn:focus-visible { border-color: #f3e4bd; color: #fff8e6; background: #1a2230; }
@media (prefers-reduced-motion: reduce) { body.tight .ptmodec { transition: none; } }
@media (max-width: 900px) {
  body.tight .ptmodes-bg { align-items: stretch; padding: var(--sp-7) var(--sp-6); background: rgba(5, 7, 10, .94); }
  body.tight .ptmodes { width: 100%; align-items: stretch; gap: var(--sp-4); }
  body.tight .ptmodet { font-size: 32px; }
  body.tight .ptmodelist { flex-direction: column; flex-wrap: nowrap; gap: var(--sp-4); }
  body.tight .ptmodemain { display: block; }
  body.tight .ptmodec { width: auto; min-height: var(--h-lg); flex-direction: row; align-items: center; }
  body.tight .ptmodec:hover, body.tight .ptmodec:focus-visible { transform: none; }
  body.tight .ptmodeart { flex: 0 0 84px; width: 84px; aspect-ratio: auto; align-self: stretch; }
  body.tight .ptmodetx { color: #ece9e2; }
  body.tight .ptmodebtns { margin-top: auto; }
  body.tight .ptmodebtns .btn { flex: 1 1 0; min-height: var(--h-lg); }
}

/* the library search (BF, owner vb26: Recruiter of the Guard, tutors, a card choice from a hidden zone): a centred dialog over the board, the
   search field and the "Only cards I can pick" chip, a big carousel (drag, swipe, the arrow buttons, arrow keys), choosable cards glowing in the
   accent and first, a chosen one with the solid ring and a check, a round zoom button per card; phones get a full-screen sheet */
body.tight .ptsrchbg { z-index: 121; }
/* ticket #376: a card's panel opened from a centred choice (a card of the opening hand, on every device) lies over that choice
   (120/121), not behind it; the card details drawer (125) and pop-ups (130+) stay over it */
body.tight:has(.ptmodes-bg) .ptsheet-bg.ptppbg { z-index: 122; }
body.tight .ptsrch { position: relative; width: min(1180px, 100%); max-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--sp-6); padding: var(--sp-7); border-radius: var(--r-box);
  background: rgba(14, 20, 26, .97); box-shadow: 0 0 0 1px rgba(233, 207, 143, .3), 0 30px 80px rgba(0, 0, 0, .7); color: #ece9e2; overflow: hidden; }
body.tight .ptsrchhd { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .ptsrcht { margin: 0; font-family: var(--tserif); font-size: 28px; font-weight: 700; line-height: 1.15; color: #f3e4bd; }
body.tight .ptsrchsub { font-size: var(--fs-md); color: #c9c6bf; }
body.tight .ptsrchtools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .ptsrchq { flex: 1 1 260px; display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: 0 var(--sp-5); box-sizing: border-box; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .25); color: #c9c6bf; }
body.tight .ptsrchq:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
body.tight .ptsrchq input { flex: 1 1 auto; min-width: 0; min-height: var(--h-md); padding: 0; border: 0; background: none; color: #f1ece0; font: inherit; font-size: var(--fs-lg); outline: none; box-shadow: none; }
body.tight .ptsrchtools .chip { min-height: var(--h-md); padding: 0 var(--sp-6); cursor: pointer; }
body.tight .ptsrchcar { position: relative; display: flex; align-items: center; gap: var(--sp-4); min-height: 0; }
body.tight .ptsrchtrack { --sw: clamp(150px, min(19vw, 32vh), 236px); flex: 1 1 auto; min-width: 0; display: flex; gap: var(--sp-6); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; padding: var(--sp-6) var(--sp-4) var(--sp-4); cursor: grab; }
body.tight .ptsrchtrack::-webkit-scrollbar { display: none; }
body.tight .ptsrchtrack.dragging { scroll-snap-type: none; cursor: grabbing; }
body.tight .ptsrchcw { flex: 0 0 var(--sw); width: var(--sw); scroll-snap-align: center; display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .ptsrchc { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-box); background: none; cursor: pointer; transition: transform 160ms; }
body.tight .ptsrchc:hover, body.tight .ptsrchc:focus-visible { transform: translateY(-6px); }
body.tight .ptsrchc:focus-visible { outline: 2px solid #f3e4bd; outline-offset: 4px; }
body.tight .ptsrchimg { display: block; width: 100%; aspect-ratio: 63 / 88; border-radius: var(--r-box); overflow: hidden; background: #121820; box-shadow: 0 0 0 1px rgba(233, 207, 143, .2), 0 16px 32px rgba(0, 0, 0, .6); }
body.tight .ptsrchimg img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
body.tight .ptsrchcw.pick .ptsrchimg { box-shadow: 0 0 0 2px var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent), 0 16px 32px rgba(0, 0, 0, .6); }
body.tight .ptsrchcw.on .ptsrchimg { box-shadow: 0 0 0 4px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 75%, transparent), 0 16px 32px rgba(0, 0, 0, .6); }
body.tight .ptsrchimg { position: relative; }
body.tight .ptsrchcw.off .ptsrchimg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(8 10 14 / .48); pointer-events: none; }
body.tight .ptsrchok { position: absolute; right: var(--sp-4); top: var(--sp-4); width: 32px; aspect-ratio: 1; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
body.tight .ptsrchcap { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); }
body.tight .ptsrchn { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e7e2d6; }
body.tight .ptsrchz { flex: none; width: 36px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #e7e2d6; box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .3); cursor: pointer; }
body.tight .ptsrchz:hover, body.tight .ptsrchz:focus-visible { background: rgba(233, 207, 143, .22); }
body.tight .ptsrcharr { flex: none; width: 44px; aspect-ratio: 1; border-radius: 999px; color: #f3e4bd; border-color: rgba(233, 207, 143, .4); background: rgba(9, 13, 18, .85); }
body.tight .ptsrcharr:hover:not(:disabled), body.tight .ptsrcharr:focus-visible { background: rgba(233, 207, 143, .2); color: #fff8e6; }
body.tight .ptsrcharr:disabled { opacity: .3; cursor: default; }
body.tight .ptsrchcar.fits .ptsrcharr, body.tight .ptsrchcar:not(:has(.ptsrchtrack)) .ptsrcharr { visibility: hidden; }   /* T861: core.js edgeHints sets .fits; no match = no strip */
body.tight .ptsrchnone { flex: 1 1 auto; padding: var(--sp-8) 0; text-align: center; }
body.tight .ptsrchbtns .btn { min-height: var(--h-md); }
body.tight .ptsrchzoom { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: var(--sp-7); padding: var(--sp-7); box-sizing: border-box; background: rgba(9, 13, 18, .97); }
body.tight .ptsrchzimg { flex: none; height: min(64vh, 100%); aspect-ratio: 63 / 88; }
body.tight .ptsrchzimg img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: var(--r-box); box-shadow: 0 0 0 1px rgba(233, 207, 143, .4), 0 24px 50px rgba(0, 0, 0, .7); }
body.tight .ptsrchzx { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 320px; }
body.tight .ptsrchzx b { font-family: var(--tserif); font-size: 22px; color: #f3e4bd; }
body.tight .ptsrchzx .ptbtns { justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) { body.tight .ptsrchc { transition: none; } body.tight .ptsrchc:hover, body.tight .ptsrchc:focus-visible { transform: none; } }
@media (pointer: coarse) { body.tight .ptsrchz { position: relative; } body.tight .ptsrchz::after { content: ''; position: absolute; inset: -4px; } }
@media (max-width: 700px) {
  body.tight .ptsrchbg { padding: 0; align-items: stretch; }
  body.tight .ptsrch { width: 100%; max-height: none; border-radius: 0; padding: var(--sp-6); gap: var(--sp-5); }
  body.tight .ptsrcht { font-size: 22px; }
  body.tight .ptsrchcar { flex: 1 1 auto; }
  body.tight .ptsrchtrack { --sw: min(62vw, 46vh); padding: var(--sp-6) calc(50% - var(--sw) / 2) var(--sp-4); scroll-snap-type: x mandatory; }
  body.tight .ptsrcharr { position: absolute; z-index: 2; top: 42%; }
  body.tight .ptsrcharr.l { left: 0; }
  body.tight .ptsrcharr.r { right: 0; }
  body.tight .ptsrchhint { display: none; }
  body.tight .ptsrchbtns { margin-top: auto; }
  body.tight .ptsrchbtns .btn { flex: 1 1 0; min-height: var(--h-lg); }
  /* ticket #109 (2026-10-28): on a phone the card (sized by vh, the tall viewport behind Safari's bars) ran over Cancel and Confirm and took
     their taps. The carousel now keeps to its own space, the cards fit its height, and the buttons sit on top */
  body.tight .ptsrchcar { flex: 1 1 0; min-height: 0; overflow: hidden; container-type: size; }
  body.tight .ptsrchtrack { --sw: min(62vw, 40svh); align-self: stretch; }
  @supports (height: 1cqh) { body.tight .ptsrchtrack { --sw: min(62vw, calc((100cqh - var(--sp-6) - var(--sp-4) - var(--sp-3) * 2 - var(--h-sm)) * 63 / 88)); } }
  body.tight .ptsrchbtns { position: relative; z-index: 3; }
  body.tight .ptsrchzoom { flex-direction: column; justify-content: flex-start; padding: var(--sp-6); }
  body.tight .ptsrchzimg { height: auto; width: min(78vw, 56vh); }
  body.tight .ptsrchzx { max-width: none; width: 100%; }
}

/* the two-faced card choice (MDFC, PROTOCOL 3 (h) faces: true; owner 2026-10-19): the modes' centred panel with one card per face, the face's
   own picture (front or back image), its label under it; a face that cannot be paid now is greyed with the reason written under it */
body.tight .ptfacelist { display: flex; gap: var(--sp-7); flex-wrap: wrap; justify-content: center; align-items: flex-start; }
body.tight .ptfacec { width: 220px; padding: 0; border: 0; background: none; font: inherit; color: #ece9e2; display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); cursor: pointer; transition: transform 180ms; }
body.tight .ptfaceimg { display: block; width: 100%; aspect-ratio: 63 / 88; border-radius: var(--r-box); overflow: hidden; background: #121820; box-shadow: 0 0 0 1px rgba(233, 207, 143, .35), 0 20px 40px rgba(0, 0, 0, .6); transition: box-shadow 180ms; }
body.tight .ptfaceimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tight .ptfaceimg .ptnoimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); box-sizing: border-box; text-align: center; }
body.tight .ptfacec:not(:disabled):hover, body.tight .ptfacec:not(:disabled):focus-visible { transform: translateY(-12px) scale(1.04); outline: none; }
body.tight .ptfacec:not(:disabled):hover .ptfaceimg, body.tight .ptfacec:not(:disabled):focus-visible .ptfaceimg { box-shadow: 0 0 0 2px #f3e4bd, 0 0 36px rgba(233, 207, 143, .5), 0 24px 44px rgba(0, 0, 0, .7); }
body.tight .ptfacel { font-size: var(--fs-md); line-height: 1.4; text-align: center; }
body.tight .ptfacec.off { cursor: not-allowed; opacity: 1; }
body.tight .ptfaceimg { position: relative; }
body.tight .ptfacec.off .ptfaceimg { box-shadow: 0 0 0 1px rgba(200, 210, 225, .25); }
body.tight .ptfacec.off .ptfaceimg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(8 10 14 / .55); pointer-events: none; }
body.tight .ptfacec.off .ptfacel { color: #9a968e; }
body.tight .ptfacewhy { font-size: var(--fs-xs); line-height: 1.4; text-align: center; color: #f0b46a; }
@media (prefers-reduced-motion: reduce) { body.tight .ptfacec { transition: none; } }
@media (max-width: 900px) {
  body.tight .ptfacelist { flex-wrap: nowrap; gap: var(--sp-5); }
  body.tight .ptfacec { width: auto; flex: 1 1 0; min-width: 0; max-width: 220px; }
  body.tight .ptfacec:not(:disabled):hover, body.tight .ptfacec:not(:disabled):focus-visible { transform: none; }
}

/* attachments (owner report 2026-10-19; owner 2026-10-21: "always below the card it is equipped to, not above"): an equipment or aura is
   tucked behind its host, its name strip showing under the host's bottom edge (host on top); host and strips are one unit (the slot), so
   they lean, tap, glow and move together; a mouse over a strip slides it a little further out. One strip is 0.18 of the tile
   width, two or three are 0.13 each, never under 14 px (playcore.js axStrips / axRise use the same numbers; the row makes room for them).
   The strip's edge has its controller's side colour (gold yours, silver theirs). */
body.tight .ptslot.pttl.hasax { isolation: isolate; margin-bottom: calc(var(--axh) * var(--axn)); }
body.tight .ptslot.pttl.ax1 { --axh: max(14px, calc(var(--tw) * .18)); --axn: 1; }
body.tight .ptslot.pttl.ax2 { --axh: max(14px, calc(var(--tw) * .13)); --axn: 2; }
body.tight .ptslot.pttl.ax3 { --axh: max(14px, calc(var(--tw) * .13)); --axn: 3; }
body.tight .pttbl .ptrowt.hasax, body.tight .pttbl.ptwide .ptrowt.cre.hasax { align-items: flex-start; }
/* ticket #280 (Shenji, 2026-11-12): an opponent's creatures that wrap fill the line by the seam first, the rest goes on the line beyond it,
   so the fullest line is the one nearest you and the short one (centred) leaves their lands in view. wrap-reverse swaps the cross axis:
   flex-start is now each line's foot (toward the seam) and flex-end its top (where tiles with attachment strips line up) */
body.tight .pttbl.ptwide .ptrowt.cre.opp, body.tight .pttbl.ptpod .ptpmat.top .ptrowt.cre, body.tight .pttbl.ptcol .ptrowt.cre.opp { flex-wrap: wrap-reverse; align-items: flex-start; }
body.tight .pttbl.ptwide .ptrowt.cre.opp.hasax, body.tight .pttbl.ptpod .ptpmat.top .ptrowt.cre.hasax, body.tight .pttbl.ptcol .ptrowt.cre.opp.hasax { align-items: flex-end; }
body.tight .ptaxs { position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: transform 180ms; }
body.tight .ptslot.pttl.tapped .ptaxs { transform: var(--ttap); }
body.tight .ptax { --axedge: rgba(233, 207, 143, .7); position: absolute; left: 5%; right: 5%; bottom: calc(var(--axh) * -1); height: calc(var(--axh) + var(--sp-4)); padding: 0; border: 0;
  border-radius: 0 0 calc(var(--tw) * .05) calc(var(--tw) * .05); overflow: hidden; background: #121820; box-shadow: inset 0 -2px 0 var(--axedge), 0 0 0 1px var(--axedge), 0 2px 8px rgba(0, 0, 0, .5);
  display: block; font: inherit; text-align: left; cursor: pointer; pointer-events: auto; transition: transform 140ms ease-out; }
body.tight .ptax:hover, body.tight .ptax:focus-visible { transform: translateY(calc(var(--axh) * .35)); }
body.tight .ptax.opp { --axedge: rgba(200, 210, 225, .6); }
body.tight .ptax.axi1 { bottom: calc(var(--axh) * -2); }
body.tight .ptax.axi2 { bottom: calc(var(--axh) * -3); }
body.tight .ptax > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
body.tight .ptax::after { content: ''; position: absolute; inset: 0; background: rgb(8 10 14 / var(--veil, .45)); pointer-events: none; transition: background .15s ease; }   /* B19: a veil keeps the name readable, the art untouched */
body.tight .ptax > span { z-index: 1; }
body.tight .ptax > img.crop { object-position: 50% 18%; }
body.tight .ptax .ptaxn { position: absolute; left: 0; right: 0; bottom: 0; display: block; height: var(--axh); line-height: var(--axh); padding: 0 var(--sp-3); font-family: var(--tserif); font-size: 11px; font-weight: 700; color: var(--tgold2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
body.tight :is(.tw208, .tw184, .tw164, .tw146, .tw132, .tw120, .tw108).ax1 .ptax .ptaxn { font-size: var(--fs-sm); }
body.tight .ptax.opp .ptaxn { color: #e3e7ee; }
body.tight .ptax .ptaxm { position: absolute; right: var(--sp-2); bottom: var(--sp-1); padding: 0 var(--sp-2); border-radius: var(--r-tag); background: rgba(9, 13, 18, .9); color: var(--tgold); font-size: 11px; line-height: 1.3; }
body.tight .ptax .ptaxl { position: absolute; right: var(--sp-2); bottom: var(--sp-1); padding: 0 var(--sp-2); border-radius: var(--r-tag); background: var(--accent); color: var(--onAccent); font-size: 11px; font-weight: 700; line-height: 1.3; }
body.tight .ptax .ptaxm + .ptaxl, body.tight .ptax .ptaxl + .ptaxm { right: calc(var(--sp-8) + var(--sp-2)); }
body.tight .ptax { --veil: .45; }
body.tight .ptax.tapped { --veil: .6; }
body.tight .ptax:hover, body.tight .ptax:focus-visible { --veil: .2; }
body.tight .ptax:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .ptax.can { box-shadow: inset 0 -2px 0 var(--tplay, var(--accent)), 0 0 0 3px var(--tplay, var(--accent)), 0 0 14px color-mix(in srgb, var(--tplay, var(--accent)) 70%, transparent); }
body.tight .ptax.sel { box-shadow: inset 0 -2px 0 var(--accent), 0 0 0 3px var(--accent); }
body.tight .ptax.tgt { outline: 2px dashed var(--accent); outline-offset: 1px; }
/* a mill (owner 2026-10-21): the graveyard glows briefly once the milled cards land (with Motion Off it is the only sign) */
body.tight .ptgrave.fxgyglow { box-shadow: 0 0 0 2px var(--tgold), 0 0 18px 4px color-mix(in srgb, var(--tgold) 55%, transparent); }
/* auras on a player (curses): a chip each under their name */
body.tight .ptcurses { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); pointer-events: auto; }
body.tight .ptcurse { position: relative; display: inline-flex; align-items: center; max-width: 180px; min-height: var(--h-xs); padding: 0 var(--sp-4); border-radius: var(--r-tag); border: 1px solid rgba(233, 207, 143, .55);
  background: rgba(9, 13, 18, .85); color: #f3e4bd; font-family: var(--tserif); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
body.tight .ptcurse.opp { border-color: rgba(200, 210, 225, .5); color: #e3e7ee; }
body.tight .ptcurse:hover, body.tight .ptcurse:focus-visible { border-color: var(--tgold); }
body.tight .ptcurse.can { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
body.tight .ptcurse.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
body.tight .ptcurse.tgt { outline: 2px dashed var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { body.tight .ptcurse::before { content: ''; position: absolute; inset: -8px 0; } }   /* a 44 px hit area */
/* the inspector and the card sheet: "Equipped with ...", "Enchanted by ...", "Attached to ..." */
body.tight .ptrels { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-box); background: rgba(12, 16, 22, .97); box-shadow: 0 0 0 1px rgba(233, 207, 143, .3); font-size: var(--fs-xs); color: #c9c6bf; }
body.tight .ptrel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
body.tight .ptrel b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-sm); color: #e9cf8f; }
body.tight .ptrelb { min-height: var(--h-xs); }
body.tight .ptrelb.can { border-color: var(--accent); color: var(--accent); }
body.tight .ptinsp.mob .ptrelb, body.tight .ptinsp.mob .ptinspgo { min-height: var(--h-md); }
body.tight .ptinspgo { width: 100%; }
body.tight .ptrels.sheet { padding: 0; background: none; box-shadow: none; font-size: var(--fs-sm); color: var(--text2); }
body.tight .ptrels.sheet .ptrel b { color: var(--text); }
body.tight.light .ptrels:not(.sheet) { background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--text2); }
body.tight.light .ptrels:not(.sheet) .ptrel b { color: var(--text); }

/* the FAQ (owner 2026-10-18): About's FAQ tab and the public /faq page; one <details class="fold big"> per question, grouped under small caps headings */
body.tight .faq { display: flex; flex-direction: column; }
body.tight .faq h2 { font-size: var(--fs-sm); font-weight: var(--fw-label); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: var(--sp-6) 0 var(--sp-2); }
body.tight .faq .fold.big > summary { font-weight: var(--fw-label); }
body.tight .faq .fold:target > summary, body.tight .faq .fold.hit > summary { color: var(--accent); }
body.tight .faqa { display: flex; flex-direction: column; gap: var(--sp-4); padding: 0 0 var(--sp-6) var(--sp-7); color: var(--text2); line-height: 1.6; }
body.tight .faqa p, body.tight .faqa ul { margin: 0; }
body.tight .faqa ul { padding-left: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .faqa a { color: var(--accent); }

/* ---------- the Playtest board: stack and motion (board look D3, 2026-10-19; Board5.dc.html: the floating stack with the big top card,
   the spell beam, attack and block lines, wind-up/slam/shake, the medallion smack, damage numbers; Board4Phone: the phone's stack at the
   right edge; DESIGN 4.10). The window's place is set by playtest.js (left/top on the element, remembered per account); durations scale
   with --fxk (Settings > Motion: Fast = .5); .fxoff and prefers-reduced-motion turn every animation off. Keyframes in style.css (ptfx*). ---------- */
/* T843: --stw the panel's width (playtest.js stackW), --stkh a title strip's height */
body.tight .ptwrap.ptt { --stw: 262px; --stkh: 56px; --stxw: 252px; }   /* --stxw: the preview window's width */
body.tight .ptwrap.ptt.tM { --stw: 240px; --stkh: 50px; --stxw: 228px; }
body.tight .ptwrap.ptt.tS { --stw: 224px; --stkh: 46px; --stxw: 208px; }
body.tight .ptwrap.ptt.tC { --stw: 168px; --stkh: 40px; }
/* T843 (owner sign-off 2026-11-18): one panel in the player's theme (every colour a theme token: panel, inset, text, gold, bad, accent, line) */
body.tight .ptstackf { position: absolute; z-index: 45; width: var(--stw); box-sizing: border-box; display: flex; flex-direction: column; padding-bottom: var(--sp-5); border-radius: var(--r-box); color: var(--text);
  background: color-mix(in srgb, var(--panel) 96%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent), 0 10px 24px rgba(0, 0, 0, .5); }
body.tight .pttbl.ptcol > .ptstackf { position: absolute; z-index: 6; right: var(--sp-4); top: 16%; }   /* ticket #113 (owner): top right of the battlefield, the opponent's side (playtest.js sets the exact top under their plate; was 27%) */
/* the header bar: the grip, the title (a click folds the stack up to this bar), the side button */
body.tight .ptstackhd { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2); min-width: 0; background: var(--inset); border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--r-box) var(--r-box) 0 0; }
body.tight .ptstkttl { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: 0 var(--sp-2); border: 0; border-radius: var(--r-ctl); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
body.tight .ptstkchev { flex: none; display: inline-flex; color: var(--muted); }
body.tight .ptstkttl:hover .ptstkchev, body.tight .ptstkttl:focus-visible .ptstkchev { color: var(--gold); }
body.tight .ptstackt { display: inline-flex; align-items: center; gap: var(--sp-3); font-family: var(--tserif); font-size: var(--fs-xl); font-weight: 700; color: var(--gold); white-space: nowrap; }
body.tight .ptstackn { padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--panel); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); font-family: inherit; font-size: var(--fs-md); line-height: 1.4; }
body.tight .ptstackgrip { flex: 0 0 auto; position: relative; width: var(--h-xs); height: var(--h-xs); min-height: var(--h-xs); padding: 0; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
body.tight .ptstackgrip:hover, body.tight .ptstackgrip:focus-visible { color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
body.tight .ptdragging .ptstackgrip { cursor: grabbing; }
@media (pointer: coarse) { body.tight .ptstackgrip::after { content: ''; position: absolute; inset: -6px; } }
body.tight .ptgripi { display: inline-flex; }
body.tight .ptstackf .ptstackfold { border-color: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--text2); background: none; }
body.tight .ptstackf .ptstackfold:hover { border-color: var(--gold); color: var(--gold); }
body.tight .ptstackf .ptstackfold.on { border-color: var(--gold); color: var(--bg); background: var(--gold); }   /* T843: the eye, on: the preview stays open (pressed state and icon, not colour alone) */
body.tight .ptstackf.fold { width: auto; max-width: var(--stw); padding-bottom: 0; border-radius: var(--r-pill); }   /* folded: only the bar */
body.tight .ptstackf.fold .ptstackhd { border-bottom: 0; border-radius: var(--r-pill); background: none; }
body.tight .ptstackf.fold .ptzhint { color: var(--text2); max-width: 160px; }
/* T670 item 16: phones and portrait tablets keep the pill folded; a new trigger makes it glow once (the count says how many) */
body.tight .ptstackf.fold.ping { animation: ptstkping calc(900ms * var(--fxk, 1)) ease-out; }
@media (prefers-reduced-motion: reduce) { body.tight .ptstackf.fold.ping { animation: none; } }
body.tight .pttbl.ptcol > .ptstackf.fold { max-width: 60%; }
body.tight .pttbl.ptcol.ptstk .ptfields > :is(.ptinfoline, .ptnote, .ptnotice, .ptdrop) { margin-right: calc(var(--stw) + var(--sp-6)); }   /* the notes stay readable beside the pinned stack */
/* the floating window's list ends above the decision corner where it can (--sty: the window's top, set with its place); it scrolls */
/* the list: every item is the title strip of its card, all the same size; it scrolls, its end fades (and says how many more) while
   more wait below; --stklh: the height you dragged it to (playtest.js stackSizeGrab), else six strips; it ends above the screen's bottom */
body.tight .ptstklw { position: relative; }
body.tight .ptstackrest { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-2) var(--sp-7); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  max-height: min(var(--stklh, calc(6 * (var(--stkh) + var(--sp-2)) + 40px)), max(72px, calc(100vh - var(--sty, 0px) - 96px))); }
body.tight .ptstackrest::-webkit-scrollbar { display: none; }
body.tight .ptstackf.float .ptstackrest { min-height: calc(var(--stkn, 3) * (var(--stkh) + var(--sp-2)) + var(--sp-7) + var(--sp-3)); }   /* never under three whole strips (--stkn: fewer for a shorter stack): the band, the gap under it and the list's own padding are the 30 px */
body.tight .ptstkmore { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1px; font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--text2);
  background: linear-gradient(to bottom, transparent, var(--panel) 78%); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
body.tight .ptstackrest.more + .ptstkmore { opacity: 1; }
body.tight .ptstackrow { position: relative; flex: none; display: flex; flex-direction: column; border-radius: var(--r-ctl); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
body.tight .ptstkbody { position: relative; display: block; height: var(--stkh); }
body.tight .ptstkb { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--inset); color: inherit; font: inherit; text-align: left; cursor: pointer; }
body.tight .ptstkin { display: flex; width: 100%; height: 100%; }
/* the resolve number, inside the item's own strip (and, smaller, wherever another item points at it): #1 resolves first */
body.tight .ptstkn { flex: none; width: 40px; height: 100%; box-sizing: border-box; display: grid; place-items: center; font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); background: var(--inset); border-right: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
body.tight .ptstkn.first { background: var(--gold); color: var(--bg); }
body.tight .ptstackimg { position: relative; flex: 1; min-width: 0; height: 100%; display: block; overflow: hidden; background: var(--inset); }
body.tight .ptstackimg img { width: 107%; max-width: none; margin: -3.2% 0 0 -3.5%; display: block; }   /* the card picture's own light corners stay outside the strip */
body.tight .ptstackimg .ptstacknoimg { display: flex; flex-direction: column; gap: 0; align-items: flex-start; justify-content: flex-start; height: 100%; padding: var(--sp-2) var(--sp-4); white-space: nowrap; background: var(--inset); color: var(--text); text-shadow: none; }
body.tight .ptstacknoimg .ptstackk { font-family: var(--tserif); font-size: var(--fs-sm); font-weight: 700; color: var(--gold); letter-spacing: .04em; }
body.tight .ptstacknoimg b { font-size: var(--fs-sm); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* who and what it targets, over the strip's lower edge */
body.tight .ptstkcap { position: absolute; left: 44px; right: var(--sp-2); bottom: 3px; display: flex; gap: var(--sp-2); align-items: center; min-width: 0; font-size: var(--fs-xs); pointer-events: none; }
body.tight .ptstkcap > * { pointer-events: auto; }
body.tight .ptstackrow.can .ptstkcap > * { pointer-events: none; }   /* the whole row is the choice */
body.tight .ptstackwho { flex: 0 1 auto; min-width: 0; padding: 1px var(--sp-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--inset) 92%, transparent); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .ptstacksus { display: inline-flex; align-items: flex-start; gap: var(--sp-2); max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; color: var(--gold); font-weight: 600; }   /* ticket #68: "Ancestral Vision: remove a time counter (3 left)" */
body.tight .ptstacksus .uico { display: inline-flex; flex: none; margin-top: var(--sp-1); }
body.tight .ptstkcap .ptstacksus { padding: 1px var(--sp-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--inset) 92%, transparent); white-space: nowrap; overflow: hidden; }
body.tight .ptstackf .ptstacktg, body.tight .ptstx .ptstacktg { display: flex; flex-wrap: nowrap; flex: 0 1 auto; min-width: 0; gap: var(--sp-2); align-items: center; color: var(--bad); font-size: var(--fs-xs); }
body.tight .ptstackto { font-weight: 700; color: var(--bad); }
body.tight .ptstkcap .ptstackto { padding: 1px var(--sp-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--inset) 92%, transparent); }
body.tight .ptstackf .ptstkcap .ptstkbrief { display: block; flex: 0 0 auto; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* ticket #332: "each opponent" / "3 targets" as one chip, whole, on one line: whose it is gives way first */
body.tight .ptstackf .pttg, body.tight .ptstx .pttg { min-width: 0; flex: 0 1 auto; min-height: var(--sp-6); overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--inset) 92%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--bad) 55%, transparent); text-shadow: none; }
/* a reference to another stack item: that item's own #N block and its name (never a bare digit) */
body.tight .ptstkref { display: inline-flex; align-items: stretch; gap: var(--sp-3); padding: 0 var(--sp-3) 0 0; }
body.tight .ptstkref .ptstkn { width: auto; min-width: 26px; padding: 0 var(--sp-2); font-size: var(--fs-sm); border-right: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
body.tight .ptstkrn { align-self: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.tight button.ptstkref:hover, body.tight .ptstkref.on { border-color: var(--gold); box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 50%, transparent); }
/* the newest entry: a band on the item itself, and a small gap under it */
body.tight .ptstkband { display: flex; justify-content: space-between; align-items: center; height: var(--sp-6); padding: 0 var(--sp-4); background: var(--gold); color: var(--bg); font-size: var(--fs-xs); line-height: 1; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.tight .ptstackrow.newest { margin-bottom: var(--sp-3); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent), 0 0 16px color-mix(in srgb, var(--gold) 30%, transparent); }
/* the item you look at (accent; the alert colour when it aims at something, not colour alone: its line shows too), the item a reference points at, a choice */
body.tight .ptstackrow.look { --stkg: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--stkg) 90%, transparent), 0 0 16px color-mix(in srgb, var(--stkg) 45%, transparent); }
body.tight .ptstackrow.look.aims { --stkg: var(--bad); }
body.tight .ptstackrow.refd { box-shadow: 0 0 0 2px var(--gold), 0 0 20px color-mix(in srgb, var(--gold) 65%, transparent); }
body.tight .ptstackrow.refd .ptstkin > .ptstkn { background: var(--gold); color: var(--bg); }
body.tight .ptstackrow.can { box-shadow: 0 0 0 2px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
body.tight .ptstackrow.can:hover, body.tight .ptstackrow.can:focus-within { box-shadow: 0 0 0 3px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 70%, transparent); }
/* a new item lands: it drops in from above and the others move down (--lage: how long ago, so a redraw keeps the phase); keyframes in style.css */
body.tight .ptstackrest.landing > .newest { z-index: 2; animation: ptstkdrop calc(600ms * var(--fxk, 1)) cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--lage, 0ms); }
body.tight .ptstackrest.landing > :not(.newest) { animation: ptstkshift calc(400ms * var(--fxk, 1)) ease both; animation-delay: var(--lage, 0ms); }
@media (prefers-reduced-motion: reduce) { body.tight .ptstackrest.landing > * { animation: none; } body.tight .ptstkmore { transition: none; } }
body.tight .ptwrap.fxoff .ptstackrest.landing > * { animation: none; }
/* exactly one item: in full inside the panel, as its whole card (a trigger: its source's card; T885: its details are the preview's); no picture: its text, source and targets; no strip */
body.tight .ptstkone { padding: var(--sp-4) var(--sp-4) 0; }
body.tight .ptstkfull { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .ptstkfb { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
body.tight .ptstkfull.can :is(.ptstxc, .ptstkfb > .ptstxt) { box-shadow: 0 0 0 3px var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
body.tight .ptstkone.landing > .ptstkfull { animation: ptstkin calc(280ms * var(--fxk, 1)) ease-out both; animation-delay: var(--lage, 0ms); }   /* T885: it settles in its place, inside the frame (the drop from above showed over the header) */
body.tight .ptstkone.landing > .ptstkfull.flew, body.tight .ptstackrest.landing > .newest.flew { animation: none; }   /* T885: a cast spell arrives by its flight, straight into its place */
body.tight .ptstackrest.landing.from1 > :not(.newest) { animation-name: ptstkfold; transform-origin: 50% 0; }   /* the full card folds into strip #2 as the new one lands as #1 */
@media (prefers-reduced-motion: reduce) { body.tight .ptstkone.landing > .ptstkfull { animation: none; } }
body.tight .ptwrap.fxoff .ptstkone.landing > .ptstkfull { animation: none; }
/* the resize grip: a short line on the panel's bottom edge, no label; brighter and a little longer under the pointer */
body.tight .ptstackf .ptstksize { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--sp-3)); height: var(--sp-7); display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; touch-action: none; }
body.tight .ptwrap .ptstack.ptstackf button.ptstksize { cursor: ns-resize; }   /* over the board's 'every button is a pointer' rule */
body.tight .ptstksize::before { content: ''; width: 26px; height: 3px; border-radius: var(--r-pill); background: var(--muted); opacity: .6; transition: opacity .12s ease, background .12s ease, width .12s ease; }
body.tight .ptstksize:hover::before, body.tight .ptstksize:focus-visible::before { background: var(--gold); opacity: 1; width: 34px; }
/* the links between two stack items, drawn inside the panel (playtest.js drawArrows; the lines' own look is .ptarrows .ptln below) */
body.tight .ptstackf > .ptstkarw { z-index: 3; }
/* the column's pinned stack (phones): narrower strips, no who chip */
body.tight .ptstackf.pin .ptstackrest { max-height: 22vh; padding-left: var(--sp-3); }
body.tight .ptstackf.pin .ptstackwho { display: none; }
body.tight .ptstackf.pin .ptstkcap .ptstackto { display: none; }   /* the reference's #N block says it; room for the name */
body.tight .ptstackf.pin .ptstkref { gap: var(--sp-2); padding-right: var(--sp-2); }
body.tight .ptstackf.pin .ptstkref .ptstkn { min-width: 22px; padding: 0 var(--sp-1); }
body.tight .ptstackf.pin .ptstkn { width: 30px; font-size: var(--fs-sm); }
body.tight .ptstackf.pin .ptstkcap { left: 34px; }
/* the preview window (playtest.js stxShow): card-sized, its own height, beside the panel; ::before is the bridge over the gap to the
   panel, so the pointer never leaves the stack on its way to the window. .mob: a bottom sheet (phones and portrait tablets, pinned) */
body.tight .ptstx { position: fixed; z-index: 95; left: 0; top: 0; display: none; flex-direction: column; gap: var(--sp-4); width: var(--stxw, 252px); box-sizing: border-box; padding: var(--sp-5); border-radius: var(--r-box); color: var(--text); font-size: var(--fs-sm);
  background: color-mix(in srgb, var(--panel) 96%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent), 0 10px 24px rgba(0, 0, 0, .5); }
body.tight .ptstx.on { display: flex; }
body.tight .ptstx::before { content: ''; position: absolute; top: 0; bottom: 0; left: -16px; width: 18px; }
body.tight .ptstx.l::before { left: auto; right: -16px; }
body.tight .ptstx.mob { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 72vh; overflow-y: auto; border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
body.tight .ptstx.mob::before { content: none; }
body.tight .ptstx.mob .ptstxc { width: min(240px, 62vw); align-self: center; }   /* the sheet: the card at a card's size, in the middle */
body.tight .ptstx.mob.keep:not(.pin) .ptstxc { width: min(150px, 40vw); }
body.tight .ptstx.mob.keep:not(.pin) { max-height: 38vh; }   /* kept open on a phone: a lower sheet, no backdrop, the table above it stays in reach */
body.tight .ptstxh { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .ptstxh .ptstkn { width: auto; min-width: 30px; height: var(--sp-7); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-ctl); font-size: var(--fs-md); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
body.tight .ptstxn { min-width: 0; font-family: var(--tserif, 'Cormorant Garamond', Georgia, serif); font-size: var(--fs-xl); line-height: 1.15; color: var(--gold); }
body.tight .ptstxw { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; font-size: var(--fs-xs); }
body.tight .ptstxc { width: 100%; aspect-ratio: 488 / 680; display: block; border-radius: 4.75% / 3.4%; --stkg: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--stkg) 70%, transparent), 0 0 16px color-mix(in srgb, var(--stkg) 30%, transparent); }
body.tight .ptstxc.ptstxwait { background: color-mix(in srgb, var(--inset) 92%, transparent); }   /* T904: the card's place while its picture is on its way */
body.tight .ptstxc.aims { --stkg: var(--bad); }   /* aspect-ratio (T885): the card's room is there before its picture loads, so the frame does not grow under a landing cast */
body.tight .ptstxt { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.45; }
body.tight .ptstxk { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
body.tight .ptstxsrc { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .ptstxsrc img { flex: none; width: 46px; height: var(--h-sm); object-fit: cover; object-position: 50% 19%; border-radius: var(--sp-2); }
body.tight .ptstx .ptinspb { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; }
/* the lines (drawArrows): the spell beam and the attack lines red and glowing, a blocker's line gold, the items below the top faint */
body.tight .ptarrows { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 36; overflow: visible; }
body.tight .pttbl.ptcol > .ptarrows { position: absolute; z-index: 5; }
body.tight .pttbl.ptcol > .ptdock { z-index: 7; }
body.tight .ptarrows path { fill: none; stroke-linecap: round; }
body.tight .ptarrows path.beam, body.tight .ptarrows path.att { stroke: #e0605a; stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(224, 96, 90, .9)); }
body.tight .ptarrows path.blk { stroke: var(--tgold); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(233, 207, 143, .9)); }
body.tight .ptarrows path.faint { stroke: rgba(233, 207, 143, .6); stroke-width: 2; stroke-dasharray: 2 7; }
body.tight .pttbl.ptcol .ptarrows > path { stroke-width: 3; filter: none; }
body.tight .pttbl.ptcol .ptarrows path.beam { stroke-dasharray: 2 7; }
body.tight .ptarrows path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ptfxdraw 700ms ease-out both; }
body.tight .ptdragging .ptarrows, body.tight .ptscrolling .ptarrows { display: none; }
/* an attacker leans towards the other side (Board5 rzready); a blocker that is hit recoils; the striking copy flies in the layer meanwhile */
body.tight .ptslot.pttl.ptatt.opp { translate: 0 8px; scale: 1.04; }   /* T27: PC.ATK_STEP / PC.ATK_SCALE (the front gap makes room for them) */
body.tight .ptslot.pttl.ptatt.me { translate: 0 -8px; scale: 1.04; }
body.tight .pttbl.ptpod .ptpmat.top .ptslot.pttl.ptatt { translate: 0 8px; }   /* a pod: toward the mats across (a bottom opponent's attackers lean up, too) */
body.tight .pttbl.ptpod .ptpmat.bot .ptslot.pttl.ptatt { translate: 0 -8px; }
body.tight .pttbl.ptcol .ptslot.pttl.ptatt.opp { translate: 0 8px; }
body.tight .pttbl.ptcol .ptslot.pttl.ptatt.me { translate: 0 -8px; }
body.tight .ptslot.pttl.fxready { animation: ptefready calc(380ms * var(--fxk)) cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: var(--fxdr, 0s); }
body.tight .ptslot.pttl.fxhit::after, body.tight .ptslot.pttl.fxhit > .ptc { animation-delay: var(--fxdh, 0s); }
body.tight .ptslot.pttl.fxrecoil > .ptc { animation: ptefrecoil calc(560ms * var(--fxk)) ease-out; animation-delay: var(--fxdc, 0s); }
body.tight .ptslot.pttl.fxarrive { animation: ptfxarrive calc(480ms * var(--fxk)) linear both; animation-delay: var(--fxdv, 0s); }
body.tight .ptslot.fxaway { visibility: hidden; }
/* board look E1 (2026-10-19): nothing teleports. A spell flies from the hand (or the Challenger's backs, turning face up) to its place on the
   stack, which stays hidden until the copy lands (.fxland); a card that appears on the battlefield from elsewhere fades and scales in (.fxspawn) */
body.tight .ptslot.fxspawn > .ptc { animation: ptfxspawn calc(560ms * var(--fxk)) cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--fxdp, 0s); }
body.tight .ptstackrow.fxland .ptstackimg, body.tight .ptstkfull.fxland .ptstxc { visibility: hidden; }
body.tight .ptfxghost.flip { overflow: visible; background: none; box-shadow: none; transform-style: preserve-3d; }
body.tight .ptfxface { position: absolute; inset: 0; border-radius: 4.75% / 3.4%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--imgbg); box-shadow: 0 8px 24px #0008; }
body.tight .ptfxface > img { width: 100%; height: 100%; display: block; object-fit: cover; }
body.tight .ptfxface.back { transform: rotateY(180deg); background: radial-gradient(ellipse at 50% 45%, #1d2a44 0%, #10172a 60%, #0a0f1c 100%);
  box-shadow: inset 0 0 0 2px #0a0f1c, inset 0 0 0 3px rgba(233, 207, 143, .7), inset 0 0 0 5px #0a0f1c, inset 0 0 0 6px rgba(233, 207, 143, .3), 0 8px 24px #0008; }
/* the medallion is smacked when its player is hit (pushed away from the blow), glows green on life gain; that side of the table shakes */
body.tight .ptmed.me { --smy: 14px; }
body.tight .ptmed.opp { --smy: -14px; }
body.tight .ptmed.fxsmack { animation: ptfxsmack calc(620ms * var(--fxk)) ease-out both; animation-delay: var(--fxds, 0s); }
body.tight .ptmed.fxheal { animation: ptefheal calc(900ms * var(--fxk)) ease-out both; animation-delay: var(--fxdl, 0s); }
body.tight .ptfield.fxshake, body.tight .ptfhalf.fxshake { animation: ptfxquake calc(420ms * var(--fxk)) ease-out; animation-delay: var(--fxdk, 0s); }
/* the motion layer (fixed, outside #app): bursts, rays, smoke, the projectile and the damage numbers (Board5 rzburst, rzrays, rzsmoke, rzorb, rzpop) */
body.tight .ptfxs { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
body.tight .ptfxburst { width: 170px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 252, 236, .98), rgba(255, 200, 110, .8) 32%, rgba(255, 120, 40, .35) 60%, transparent); }
body.tight .ptfxburst.white { background: radial-gradient(closest-side, #fff, rgba(230, 240, 255, .8) 35%, rgba(160, 200, 255, .3) 62%, transparent); }
body.tight .ptefrays { width: 220px; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 8deg, rgba(255, 226, 160, .85) 0deg 3deg, transparent 3deg 24deg);
  -webkit-mask: radial-gradient(closest-side, transparent 22%, #000 40%, transparent 100%); mask: radial-gradient(closest-side, transparent 22%, #000 40%, transparent 100%); }
body.tight .ptfxsmoke { width: 150px; aspect-ratio: 15 / 11; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 95, 105, .75), rgba(60, 64, 72, .35) 60%, transparent); filter: blur(6px); }
body.tight .ptefpop { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 36px; font-weight: 700; line-height: 1; white-space: nowrap; color: #ffd9a0; -webkit-text-stroke: 1.5px #3a1a0a; paint-order: stroke fill; text-shadow: 0 0 12px rgba(255, 120, 40, .9), 0 2px 0 #3a1a0a, 0 0 4px #000; scale: 1.2; }
body.tight .ptefpop.big { scale: 1.6; }
body.tight .ptefpop.heal { color: #c8f7c5; -webkit-text-stroke-color: #0a2a14; text-shadow: 0 0 12px rgba(80, 200, 120, .9), 0 2px 0 #0a2a14, 0 0 4px #000; }
/* T924 (owner sign-off 2026-11-30): the dealer's damage effect. The burst, its rays and the number take its colours (Strike = today's
   look above); its pieces (playtest.js fxShards) fly out from the hit: frost shards, ember sparks, shadow smoke */
body.tight .ptfxburst.dmg-frost { background: radial-gradient(closest-side, #fff, rgba(200, 236, 255, .85) 32%, rgba(110, 180, 255, .35) 62%, transparent); }
body.tight .ptfxburst.dmg-ember { background: radial-gradient(closest-side, rgba(255, 246, 214, .98), rgba(255, 170, 60, .85) 30%, rgba(255, 90, 10, .4) 62%, transparent); }
body.tight .ptfxburst.dmg-shadow { background: radial-gradient(closest-side, rgba(236, 222, 255, .95), rgba(150, 100, 240, .75) 32%, rgba(70, 20, 140, .4) 62%, transparent); }
body.tight .ptefrays.dmg-frost { background: repeating-conic-gradient(from 8deg, rgba(200, 236, 255, .85) 0deg 3deg, transparent 3deg 24deg); }
body.tight .ptefrays.dmg-ember { background: repeating-conic-gradient(from 8deg, rgba(255, 190, 90, .85) 0deg 3deg, transparent 3deg 24deg); }
body.tight .ptefrays.dmg-shadow { background: repeating-conic-gradient(from 8deg, rgba(190, 150, 255, .75) 0deg 3deg, transparent 3deg 24deg); }
body.tight .ptefpop.dmg-frost { color: #e4f6ff; -webkit-text-stroke-color: #0d2a44; text-shadow: 0 0 12px rgba(120, 200, 255, .95), 0 2px 0 #000; }
body.tight .ptefpop.dmg-ember { color: #ffe0a0; text-shadow: 0 0 14px rgba(255, 140, 30, 1), 0 0 4px rgba(255, 80, 0, .9), 0 2px 0 #000; }
body.tight .ptefpop.dmg-shadow { color: #e7d9ff; -webkit-text-stroke-color: #1c0d33; text-shadow: 0 0 14px rgba(150, 90, 255, .95), 0 2px 0 #000; }
body.tight .ptdmgp.dmg-frost { width: 7px; aspect-ratio: 7 / 26; background: linear-gradient(#fff, #9edcff 60%, #4fb2ff); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 5px #bfe8ff); }
body.tight .ptdmgp.dmg-ember { width: 6px; aspect-ratio: 1; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px 2px #ff7a1a; }
body.tight .ptdmgp.dmg-shadow { width: 34px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 70, 220, .75), rgba(40, 10, 80, 0)); }
/* T924: the winner's victory effect behind the centre moment (playtest.js victoryFx): falling stars, rising lanterns */
body.tight .ptvicp.vic-stars { width: 13px; aspect-ratio: 1; background: #fff6d8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 6px #ffd98f); }
body.tight .ptvicp.vic-lanterns { width: 13px; aspect-ratio: 13 / 17; border-radius: 40% 40% 30% 30%; background: radial-gradient(circle at 50% 60%, #fff2c2, #ffb347 55%, #c4621a); box-shadow: 0 0 14px 4px rgba(255, 170, 70, .55); }
body.tight .ptfxorb { width: 24px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff, #ffe2a0 38%, rgba(255, 140, 60, 0) 70%); box-shadow: 0 0 26px 10px rgba(255, 200, 110, .65); offset-rotate: 0deg; }
body.tight .ptfxghost.strike { border-radius: 7% / 9.5%; }
body.tight .ptwrap.fxoff :is(.fxready, .fxrecoil > .ptc, .fxsmack, .fxheal, .fxshake, .fxarrive, .fxspawn > .ptc), body.tight .ptwrap.fxoff .ptarrows path.draw { animation: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  body.tight :is(.ptslot.fxready, .fxrecoil > .ptc, .ptmed.fxsmack, .ptmed.fxheal, .fxshake, .ptslot.fxarrive, .ptslot.fxspawn > .ptc), body.tight .ptarrows path.draw { animation: none; stroke-dashoffset: 0; }
}
/* ---------- the Playtest board: controls (board look D4, 2026-10-19; Board5.dc.html "pass", Board4Phone.dc.html; DESIGN 4.10) ----------
   Step icons and the pass button float without a panel in the decision corner; a lit icon is a stop in the turn that is on now (gold in
   yours, blue in theirs); Ctrl is full control (held, or the button until the end of the turn); End turn sits beside the big Pass button. */
body.tight .ptctl { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-4); flex: 0 0 auto; color: #d8d3c7; }
body.tight .ptctltx { display: flex; flex-direction: column; gap: var(--sp-1); text-align: right; font-size: var(--fs-sm); line-height: 1.4; text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 2px #000; white-space: pre-line; }
body.tight .ptctlsub { font-size: var(--fs-xs); color: #b4b1a8; }
body.tight .ptctlwho { font-size: var(--fs-xs); color: var(--tgold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.tight .ptsteps { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); flex: 0 0 auto; }
body.tight button.ptstep { position: relative; width: var(--h-sm); height: var(--h-md); padding: 0; border: 0; border-radius: var(--r-ctl); display: flex; align-items: center; justify-content: center; background: transparent; color: #7c8290; transition: background .15s ease, color .15s ease; }
body.tight .ptstep.mine { --stc: var(--tgold); }
body.tight .ptstep.theirs { --stc: #7fb4ee; }
body.tight .ptstep.on { color: var(--stc); }
body.tight .ptstep.now { background: rgba(233, 207, 143, .1); box-shadow: inset 0 -2px 0 var(--stc); }
body.tight button.ptstep:hover, body.tight button.ptstep:focus-visible { background: rgba(233, 207, 143, .14); }
body.tight .ptstepi { display: flex; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .9)); }
body.tight .ptstepdot { position: absolute; bottom: var(--sp-1); left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: transparent; }
body.tight .ptstep.on .ptstepdot { background: var(--stc); }
body.tight .ptstep.smart .ptstepdot { box-shadow: inset 0 0 0 1px var(--stc); }   /* #59: the smart stop after an attack, a maybe: a ring, not a dot */
body.tight .ptfc { height: var(--h-xs); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: rgba(9, 13, 18, .55); color: #b4b1a8; font-size: var(--fs-xs); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .3); }
body.tight .ptfc.on { background: var(--tgold); color: var(--tink); box-shadow: none; }
body.tight .ptfc:not(.on):hover, body.tight .ptfc:focus-visible { color: var(--tgold2); }
body.tight .ptfcl.f, body.tight .pttbl.ptcol .ptfcl.k { display: none; }
body.tight .pttbl.ptcol .ptfcl.f { display: inline; }
body.tight .ptctlmain { display: flex; gap: var(--sp-4); align-items: stretch; }
body.tight .ptend { flex: 0 0 auto; height: var(--h-lg); padding: 0 var(--sp-5); border-radius: var(--r-box); border: 1px solid rgba(233, 207, 143, .3); background: rgba(9, 13, 18, .55); color: #c9c6bf; font: inherit; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .ptend:not(:disabled):hover, body.tight .ptend:focus-visible { border-color: var(--tgold); color: var(--tgold2); }
body.tight .ptend:disabled, body.tight .ptpass:disabled { opacity: .45; }
body.tight .ptpass { flex: 1 1 auto; min-width: 0; height: var(--h-lg); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-box); background: var(--accent); color: var(--onAccent); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
body.tight .ptpass:not(:disabled):hover, body.tight .ptpass:focus-visible { filter: brightness(1.08); }
body.tight .ptpassl { font-size: var(--fs-xl); font-weight: 800; white-space: nowrap; }
body.tight .ptpasss { font-size: var(--fs-xs); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* pt 12 (owner feedback round 2026-10-20): the label names the next stop ("To Nyxn Declare blockers"): a long one steps down to two lines and never overflows */
body.tight .ptpass .ptpassl { display: flex; align-items: baseline; max-width: 100%; }
body.tight .ptpasst { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.tight .ptpass .ptkey { flex: none; }
body.tight .ptpass.long .ptpassl { font-size: var(--fs-md); white-space: normal; align-items: center; }
body.tight .ptpass.long .ptpasst { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }
body.tight .ptkey { margin-left: var(--sp-3); padding: 1px var(--sp-3); border-radius: var(--r-tag); box-shadow: inset 0 0 0 1px rgba(23, 19, 10, .45); font: inherit; font-size: var(--fs-xs); font-weight: 700; vertical-align: 2px; }
@media (hover: none) { body.tight .ptkey { display: none; } }
body.tight .ptdockw > .ptsteps { padding-top: var(--sp-2); }
body.tight .ptjoinst { padding-top: var(--sp-3); }
/* the phone's strip (Board4Phone): the icons on the left, Full control on the right, End turn and Pass full width under them */
body.tight .pttbl.ptcol .ptsteps { justify-content: space-between; }
body.tight .pttbl.ptcol .ptctltx { text-align: left; }
@media (max-width: 700px) { body.tight .pttbl.ptcol button.ptstep { width: 34px; } }   /* T71: button only: the number stepper (div.ptstep) kept its width */
@media (prefers-reduced-motion: reduce) { body.tight button.ptstep { transition: none; } }
/* every control on the board shows the hand cursor (checklist 16), also where a reset sets another */
body.tight .ptwrap :is(button, [role="button"], summary, a[href], select, input[type="checkbox"], input[type="radio"]):not(:disabled) { cursor: pointer; }
body.tight .ptinsp button { cursor: pointer; }
body.tight .ptwrap :is(button, [role="button"]):disabled { cursor: default; }
/* ---------- Full width (owner 2026-10-18, live for everyone after the owner preview): use the full width on tablets and big screens ---------- */
/* the pages may grow to 1920 px instead of 1360; reading pages (About, FAQ, a Workshop post) keep a comfortable line length */
body.tight { --pagew: 1920px; }
body.tight .page.narrow.read > .inner { max-width: 960px; }
/* the stepped setups (the brew start, Chronicle, Playtest, Find a commander) use the page instead of a 980 px box */
body.tight .brewbox { max-width: var(--readw); }   /* T408: at the readable width (below), not the full page */
body.tight .page.narrow.ptsetup > .inner { max-width: var(--formw); }   /* T408: Play's New game is a form (980), see the width rules below */
body.tight .finderwrap, body.tight .finderpanel { max-width: var(--pagew) !important; }   /* Find a commander (its width is inline) */

/* the bug and wish button (owner 2026-10-18: the thin bug blended in): the key button style (tinted, see .iconbtn2.key), a bolder bug with a filled body */
body.tight .reportbtn svg { stroke-width: 2.3; }
body.tight .reportbtn svg path:first-child { fill: currentColor; fill-opacity: .35; }

/* ---------- Play a friend (Playtest Phase C, C5, 2026-10-18; playfriend.js, friends.js; DESIGN 4.11; mockup NdV7vtH1218mGo6uaWGUM9) ----------
   The request toast on every page, the Challenge and Incoming sheets, the deck pick, the friend's menu, the table and the invite page.
   A play request is gold (the signed-off mockup: the gold edge, ring and countdown, like the Friends gold dot); everything else is neutral. */
body.tight .pfsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.tight .pfav { width: var(--h-sm); height: var(--h-sm); border-radius: var(--r-pill); background: var(--imgbg2); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-display); font-size: var(--fs-md); flex: none; object-fit: cover; }
body.tight .pfav.sm { width: var(--h-xs); height: var(--h-xs); font-size: var(--fs-xs); }
body.tight .pfav.md { width: var(--h-md); height: var(--h-md); font-size: var(--fs-xl); }
body.tight .pfav.ring { box-shadow: 0 0 0 3px var(--gold); }
body.tight .pfavwrap { position: relative; display: inline-flex; flex: none; align-self: flex-start; }
body.tight .frli > .pfavwrap { margin-top: var(--sp-1); }
body.tight .pfon { position: absolute; right: calc(-1 * var(--sp-1)); bottom: calc(-1 * var(--sp-1)); width: var(--sp-5); height: var(--sp-5); box-sizing: border-box; border-radius: var(--r-pill);
  background: var(--ok); border: 2px solid var(--panel); }
body.tight .pfon.away { background: var(--warn); }   /* lobby seat Away (owner 2026-10-22), as .szpres.away */
body.tight .pfon.else { background: linear-gradient(90deg, var(--warn) 50%, var(--bar) 50%); }   /* T568: elsewhere, as .szpres.else */
body.tight .pfcd { font-variant-numeric: tabular-nums; font-weight: var(--fw-title); }
body.tight .pfcd.strong, body.tight .pftoastcd { color: var(--gold); }
body.tight .pfbar { display: block; height: var(--sp-2); background: var(--track); overflow: hidden; }
body.tight .pfbar > i { display: block; height: 100%; background: var(--gold); transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { body.tight .pfbar > i { transition: none; } }
body.tight .pftags { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
body.tight .pftrunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .label.pfl { display: block; }

/* the toast: desktop and tablet top right under the top bar, phones at the top; the toast band of the z-scale (DESIGN 4.9) */
body.tight .pflayer { display: contents; }
body.tight .pftoast { position: fixed; top: calc(var(--topbar) + var(--sp-6)); right: var(--gutter); z-index: 82; width: min(400px, calc(100vw - 2 * var(--gutter))); box-sizing: border-box;
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); overflow: hidden; }
body.tight .pftoast.quiet { top: auto; bottom: var(--gutter); }   /* your waiting challenge, back to your table: out of the way, bottom right */
body.tight .pftoast.gold { border-color: var(--gold); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
body.tight .pftoastrow { display: flex; gap: var(--sp-5); align-items: flex-start; padding: var(--sp-5) var(--sp-6); }
body.tight .pftoastcd { font-size: var(--fs-md); }
body.tight .pftoastacts { display: flex; gap: var(--sp-4); padding: 0 var(--sp-6) var(--sp-5); }
body.tight .pftoastacts .btn { flex: 1 1 0; justify-content: center; }
body.tight .pftoastacts .btn.primary { flex-grow: 2; }
body.tight .pfmore { align-self: flex-start; margin: 0 var(--sp-6) var(--sp-4); }
body.tight .pfavbtn { padding: 0; border: 0; background: none; border-radius: var(--r-pill); cursor: pointer; flex: none; color: inherit; }
@media (max-width: 700px) { body.tight .pftoast, body.tight .pftoast.quiet { top: var(--sp-4); bottom: auto; left: var(--sp-5); right: var(--sp-5); width: auto; } }

/* the sheets: a dialog under the top bar from 701 px, a bottom sheet on phones (the modal band, 60) */
body.tight .pfscrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-start; justify-content: center; box-sizing: border-box;
  padding: calc(var(--topbar) + var(--sp-7)) var(--gutter) var(--sp-7); overflow-y: auto; }
body.tight .pfsheet { width: min(680px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: var(--sp-6); padding: var(--sp-7); background: var(--bar);
  border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
body.tight .pfsheet.gold { border-color: var(--gold); }
body.tight .pfsheet p { margin: 0; }
body.tight .pfhead { display: flex; gap: var(--sp-5); align-items: center; }
body.tight .pftitle { margin: 0; font-size: var(--fs-2xl); font-weight: var(--fw-title); line-height: 1.25; }
body.tight .pfplays { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); }
body.tight .pfwait { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .pfwait .pfbar { flex: 1 1 100%; border-radius: var(--r-pill); }
body.tight .pfacts { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
body.tight .pfacts .pfgo { margin-left: auto; }
body.tight .pfacts.col { flex-direction: column; align-items: stretch; }
body.tight .pfwide { width: 100%; justify-content: center; }
@media (max-width: 700px) {
  body.tight .pfscrim { align-items: flex-end; padding: var(--sp-7) 0 0; }
  body.tight .pfsheet { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: var(--r-box) var(--r-box) 0 0; padding: var(--sp-6) var(--gutter) var(--sp-7); }
  body.tight .pftitle { font-size: var(--fs-xl); }
  body.tight .pfacts:not(.col) > .btn { flex: 1 1 auto; justify-content: center; }
  body.tight .pfacts .pfgo { order: -1; flex: 1 1 100%; margin-left: 0; }
}

/* the deck pick: one radio row per deck (a ring that fills with the accent), the commander's art, the bracket chip */
body.tight .pfdecks { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .pfdecks > .linkbtn { align-self: flex-start; }
body.tight .pfdeck { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-lg); padding: var(--sp-4) var(--sp-5); box-sizing: border-box; border: 1px solid var(--line);
  border-radius: var(--r-box); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .pfdeck:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
body.tight .pfdeck.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
body.tight .pfradio { width: var(--sp-6); height: var(--sp-6); box-sizing: border-box; border-radius: var(--r-pill); border: 2px solid var(--muted); flex: none; }
body.tight .pfdeck.on .pfradio { border: 5px solid var(--accent); }
body.tight .pfdeckchev { flex: none; display: inline-flex; color: var(--accent); }   /* T529: the folded deck list's row */
body.tight .pfdeckhead .pfpreq { flex: 1 1 auto; min-width: 0; }
body.tight .pfdeckhead .pfdeckup { margin-left: auto; flex: none; }
body.tight .pfdeck.pfshort { opacity: .5; cursor: not-allowed; }   /* the 100-card gate (owner 2026-10-21): shown, not pickable */
body.tight .pfdeck.pfshort:hover { border-color: var(--line); }
body.tight .pfdeck.pfshort.pfpdhfit { opacity: .72; cursor: pointer; }   /* T707: a Pauper-legal Commander deck at a PDH pick: greyed, one tap switches it */
body.tight .pfdeck .pfpdhset { flex: none; white-space: nowrap; }
body.tight .pfdeck.pfshort.pfpdhfit:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
body.tight .gseatdeck:disabled { opacity: .5; cursor: not-allowed; }
body.tight .gseatdeck:disabled:hover { border-color: var(--line); }
body.tight .pfdeckart { width: 56px; height: var(--h-md); border-radius: var(--r-tag); background: var(--imgbg) center / cover no-repeat; flex: none; }
body.tight .pfdeckart.lg { width: 72px; height: var(--h-lg); }
body.tight .pfdecktext { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; flex: 1 1 auto; }
body.tight .pfdecktext > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .pfdecktags { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; align-items: center; flex: none; }
@media (max-width: 700px) { body.tight .pfdeck .pfdeckart { display: none; } body.tight .pfdecktags { max-width: 40%; } }

/* the invite link (the friend's menu became a sheet, T430) */
body.tight .pflink { display: flex; gap: var(--sp-4); align-items: center; }
body.tight .pflink input { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); }
@media (max-width: 700px) {
  body.tight .pflink { flex-wrap: wrap; }
  body.tight .pflink input { flex-basis: 100%; }
}

/* the table (/play/table/<id>): two seats with "vs" between (stacked on phones), the settings, the footer with Ready last */
body.tight .pfpage > .inner { width: 100%; max-width: 1100px; margin: 0 auto; }
body.tight .page.narrow.pfpage > .inner { max-width: 640px; }   /* the invite page reads as one column */
body.tight .pfseats { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--sp-6); align-items: stretch; }
body.tight .pfvs { align-self: center; font-size: var(--fs-3xl); font-weight: var(--fw-title); color: var(--muted); }
body.tight .pfseat { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
body.tight .pfseat.ready { border-color: var(--ok); }
body.tight .pfseathead { display: flex; gap: var(--sp-5); align-items: center; }
body.tight .pfseatart, body.tight .pfhero { position: relative; overflow: hidden; display: flex; align-items: flex-end; box-sizing: border-box; border-radius: var(--r-box); background: var(--imgbg2) center / cover no-repeat; }
body.tight .pfseatart { aspect-ratio: 16 / 7; padding: var(--sp-5); }
body.tight .pfseatart::before, body.tight .pfhero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 65%); }
body.tight .pfseatart > span { position: relative; font-weight: var(--fw-title); color: #fff; }   /* text on the art's scrim, as on the board's card names */
body.tight .pfsettings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
body.tight .pfspan { grid-column: 1 / -1; }
body.tight .pffoot { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; }
body.tight .pffoot .pfgo { min-width: 240px; justify-content: center; }
@media (max-width: 700px) {
  body.tight .pfseats { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  body.tight .pfvs { justify-self: center; font-size: var(--fs-xl); }
  body.tight .pfsettings { grid-template-columns: minmax(0, 1fr); }
  body.tight .pffoot .pfgo { flex: 1 1 100%; min-width: 0; }
}

/* the invite page (/play/i/<token>): the sender's deck art with a scrim, then the deck pick */
body.tight .pfhero { aspect-ratio: 5 / 2; }
body.tight .pfheroin { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); color: #fff; }
body.tight .pfcheck { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); font-size: var(--fs-md); cursor: pointer; }
body.tight .pfcheck input { accent-color: var(--accent); }
@media (max-width: 700px) { body.tight .pfhero { aspect-ratio: 16 / 10; } }
body.tight .pfhero.nodeck { aspect-ratio: auto; }   /* a link sent without a deck: the sender picks at the table */
body.tight .pfsettings .seg, body.tight .pfsettings .kindswitch { align-self: flex-start; }

/* ---------- Pods lobby (Playtest Phase D, D6, 2026-10-20; playfriend.js; artboards docs/design/pods/rejected-4ef5/) ----------
   The pod table (seats left, the host's settings and Ready right), the invite and bot sheets, the pod invite toast and Open tables.
   Desktop only this round: under 1024 px the screens show .pdnarrow instead. Seat chips are one look everywhere (.pdchip). */
body.tight .pdgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-7); align-items: start; }
body.tight .pdseats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .pdh2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); }
body.tight .pdseat { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; box-sizing: border-box; }
body.tight .pdseat.ready { border-color: var(--ok); }
body.tight .pdseat.invited { border-color: var(--gold); }
body.tight .pdopenseat { padding: var(--sp-6); border: 1px dashed var(--line); border-radius: var(--r-box); background: none; }
body.tight .pdhead { display: flex; gap: var(--sp-5); align-items: center; min-width: 0; }
body.tight .pdhead > .tag { flex: none; }
/* an open or closed seat's head (playfriend.js podOpen, podPlain): its parts may wrap under the title */
body.tight .pdseat .pdhead { flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); }
body.tight .pdseat .pdhead > .grow { flex: 1 1 6.5em; min-width: min(6.5em, 100%); }
/* T875 (owner sign-offs 2026-11-20, variation A of mockup TtUniGzVtpWXy6oN3zSCkd with the flair of 8wqM62vvLUvRWnDcNCnmw8): a filled
   seat's head (playfriend.js seatHead) is the portrait and one column: the name's line, which ends in a quiet ⋯, and the flair line
   under it (title, badges, Host / Away). The name is one line and ends in an ellipsis; in the flair line only the title gives way.
   The ⋯ menu (.pdmenu) opens in the card under the head. */
body.tight .pdseat { position: relative; }
body.tight .pdsh { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); align-items: center; min-width: 0; height: var(--h-md); }   /* the frame's crest may stand a few px over the line: the head keeps its height */
body.tight .pdwho { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
body.tight .pdwhol { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; min-height: var(--sp-7); }
body.tight .pdwhon { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: var(--fs-lg); }
body.tight .pdwhon > * { max-width: 100%; }
body.tight .pdwhon > .pftrunc { display: block; }
body.tight .pdflair { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; min-height: var(--sp-7); overflow: hidden; }
body.tight .pdflair > * { flex: none; }
body.tight .pdflair > .pdtitle { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); }
body.tight .pdbadges { display: inline-flex; align-items: center; gap: var(--sp-1); }
body.tight .pdword { white-space: nowrap; }
/* the ⋯: quiet (no box) at the end of the name's line; it looks small and takes taps on 44 */
body.tight .pdmore { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--h-xs); height: var(--sp-7); padding: 0; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); cursor: pointer; }
body.tight .pdmore::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--h-md); height: var(--h-md); transform: translate(-50%, -50%); }
body.tight .pdmore[aria-expanded="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .pdmore:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { body.tight .pdmore:hover { color: var(--text); } }
body.tight .pdmore.off { color: var(--bad); }
/* ready is the card: the green border (.pdseat.ready) and this seal on its corner */
body.tight .pdseal { position: absolute; top: calc(var(--sp-4) * -1 - 1px); right: calc(var(--sp-4) * -1 - 1px); z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--sp-7); height: var(--sp-7); border-radius: var(--r-pill); background: var(--ok); color: var(--bg); box-shadow: 0 0 0 2px var(--bg); }
body.tight .pdmenu { display: flex; flex-direction: column; padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bg); }
body.tight .pdmh { padding: var(--sp-3) var(--sp-5); }
body.tight .pdmi { width: 100%; box-sizing: border-box; }
body.tight .pdmirow { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: 0 var(--sp-5); font-size: var(--fs-md); }
@media (min-width: 701px) { body.tight .pdmirow .hint > .hintbox { left: auto; right: 0; } }   /* T975: the i sits at the row's right end (the bot's ⋯ in the Play drawer): its box opens to the left, on the screen; phones keep the bottom sheet */
body.tight .pdnodeck { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); min-height: calc(var(--h-md) * 2); border: 1px dashed var(--line); border-radius: var(--r-box); color: var(--muted); font-size: var(--fs-sm); }
body.tight .pdplus { width: var(--h-md); height: var(--h-md); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill);
  border: 1px dashed var(--muted); color: var(--muted); font-size: var(--fs-xl); box-sizing: border-box; }
body.tight .pdbotav { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
body.tight .pdclosest > .tag { align-self: flex-start; }
body.tight .pddeck { display: flex; align-items: center; gap: var(--sp-5); min-width: 0; }
body.tight .pdset { position: sticky; top: calc(var(--topbar) + var(--sp-6)); }
body.tight .pdset .seg, body.tight .pdset .kindswitch { align-self: flex-start; }
body.tight .pdfoot { padding-top: var(--sp-6); border-top: 1px solid var(--line); }
body.tight .pdnarrow { border-color: var(--warn); }
/* the 5-minute ring around an invited friend: the gold share left of the invite (--p, set by the ticker) */
body.tight .pdring { display: inline-flex; flex: none; padding: var(--sp-2); border-radius: var(--r-pill); background: conic-gradient(var(--gold) calc(var(--p, 1) * 360deg), var(--track) 0); }
body.tight .pdring > .pfav { box-shadow: 0 0 0 2px var(--panel); }
/* seat chips: a person, a bot, an open seat (dashed), your seat in an invite (dashed accent) */
body.tight .pdchips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
body.tight .pdchip { display: inline-flex; align-items: center; height: var(--h-xs); box-sizing: border-box; padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--chip); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-label); white-space: nowrap; }
body.tight .pdchip.bot { background: var(--inset); color: var(--text2); }
body.tight .pdchip.open { background: none; border: 1px dashed var(--line); color: var(--muted); }
body.tight .pdchip.open.you { border-color: var(--accent); color: var(--accent); }
body.tight .pdtoastseats { padding: 0 var(--sp-6) var(--sp-5); }
/* the invite sheet: one row per friend with a check box; those who cannot be invited are dimmed */
body.tight .pdfrlist { display: flex; flex-direction: column; gap: var(--sp-4); max-height: min(50vh, 420px); overflow-y: auto; overscroll-behavior: contain; }   /* T622: a long friends list scrolls inside */
body.tight .pdfr { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-lg); padding: var(--sp-3) var(--sp-5); box-sizing: border-box; border: 1px solid var(--line);
  border-radius: var(--r-box); background: var(--card); cursor: pointer; }
body.tight .pdfr input { accent-color: var(--accent); flex: none; }
body.tight .pdfr.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
body.tight .pdfr.off { cursor: default; opacity: .6; }
body.tight .pdfr .szname { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }   /* T128: the drawer's name row, dot and line */
body.tight .pdfr .szpres { border-color: var(--card); }
body.tight .pdfr.on .szpres { border-color: color-mix(in srgb, var(--accent) 12%, var(--card)); }
/* Open tables (/play/open) */
body.tight .pdopenpage > .inner { max-width: 1000px; }
body.tight .pdotlist { display: flex; flex-direction: column; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; }
body.tight .pdotrow { display: flex; align-items: center; gap: var(--sp-6); }
body.tight .pdotend { align-items: flex-end; flex: none; }

/* the lobby drawer (owner 2026-10-20, playfriend.js podDrawer / RZ.podButton): the pod lobby in the friends drawer's frame (.szdrawer.desk), 400 px,
   no backdrop, so the page under it keeps working; one seat per row, settings folded, Ready in the footer. The top-bar icon left of Friends:
   a soft pulse and a dot while seats are open (a still dot under reduced motion), "2/4", gold when everyone is ready. Sheets (invite, bot)
   go over the drawer; the play toast keeps clear of it. */
body.tight .pddrawer { width: 400px; }
body.tight .pdhead2 .szh { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .szbody.pdbody { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6) var(--sp-6); }
body.tight .pdh3 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); }
body.tight .pdseats.one { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
body.tight .pddrawer .pdseat.box, body.tight .pddrawer .pdopenseat { padding: var(--sp-5); gap: var(--sp-4); }
body.tight .pdsetfold > summary { font-weight: var(--fw-title); }
body.tight .pdsetrows { padding: var(--sp-3) 0 var(--sp-4); }
body.tight .pdsetrows .seg, body.tight .pdsetrows .kindswitch { align-self: flex-start; }
body.tight .pdfoot2 { flex-direction: column; gap: 0; }
body.tight .pdfoot2 .pdfoot { padding-top: 0; border-top: 0; }
body.tight .pdfoot2 .pdfoot > .small.muted { display: none; }   /* the drawer keeps the button and what the start still needs */
body.tight .pdfoot2.gold { border-top-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--bar)); box-shadow: inset 0 2px 0 var(--gold); }
body.tight .pdfoot2.gold .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--onAccent); }
body.tight.pdopen .pfscrim { z-index: 69; }
@media (min-width: 1024px) { body.tight.pdopen .pftoast { right: calc(400px + var(--sp-6)); } }
body.tight .pdbtn { position: relative; gap: var(--sp-3); font-variant-numeric: tabular-nums; }
body.tight .pdbtnico { position: relative; display: inline-flex; }
body.tight .pdbtn .pddot { position: absolute; top: -2px; right: -4px; width: var(--sp-4); height: var(--sp-4); border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 0 0 2px var(--bar); animation: thinkpulse 1.4s ease-in-out infinite; }
body.tight .pdbtn.search { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); animation: iglow 2.4s ease-in-out infinite; }
body.tight .szbtn.pdbtn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .szbtn.pdbtn.gold { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); animation: attnpulse 2s ease-in-out infinite; }
body.tight .pdbtnn { font-weight: var(--fw-title); }
@media (prefers-reduced-motion: reduce) { body.tight .pdbtn, body.tight .pdbtn.search, body.tight .pdbtn.gold, body.tight .pdbtn .pddot { animation: none; } }
/* the Play drawer (owner 2026-10-21, mockup DANQbyt58UL1PD7G2APrXW; playfriend.js playDrawer / RZ.playButton / RZ.openPlay): the lobby
   drawer's frame for everyone signed in; a bottom sheet on phones. Hub rows, New game's seats (+ Add a seat, an x on an empty seat),
   the quiet balance line, settings one line each with an (i). Less = more: explanations only behind the (i). */
body.tight .plact { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-lg); padding: var(--sp-4) var(--sp-5); box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
body.tight .plact:hover { border-color: var(--accent); }
body.tight .plact b { font-size: var(--fs-md); }
body.tight .plico { width: var(--h-sm); height: var(--h-sm); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-ctl);
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
body.tight .plchev { color: var(--muted); display: inline-flex; flex: none; }
body.tight .plact.gold { border-color: var(--gold); background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 16%, var(--card)), var(--card)); }
body.tight .plact.gold .plico { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
body.tight .plsect { margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* T95 (owner 2026-10-22): up to 3 quick seats hang under the hub's Open tables row as one card with it; a tap takes the seat */
body.tight .plgrp { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); overflow: hidden; }
body.tight .plgrp > .plact { border: 0; border-radius: 0; }
body.tight .plgrp:has(> .plact:hover) { border-color: var(--accent); }
body.tight .plqt { list-style: none; margin: 0; padding: 0; }
body.tight .plqj { display: flex; align-items: center; gap: var(--sp-4); width: 100%; min-height: var(--h-md); padding: var(--sp-2) var(--sp-5) var(--sp-2) calc(var(--sp-5) * 2 + var(--h-sm));
  box-sizing: border-box; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: var(--fs-sm); }
body.tight .plqj:hover, body.tight .plqj:focus-visible { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight .plqj .pftoastav { width: var(--h-xs); height: var(--h-xs); flex: none; }
body.tight .plqjn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-title); }
body.tight .plqjgo { color: var(--accent); font-weight: var(--fw-title); flex: none; }
/* T131: the deck a deck's Play button picked, on top of the hub; a tap unfolds the usual deck list under it */
body.tight .plhdpick { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); }
body.tight .pdbal { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-ctl); font-size: var(--fs-xs); color: var(--text2);
  border: 1px solid var(--line); }
body.tight .pdbal.even { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
body.tight .pdbal.even b { color: var(--ok); }
body.tight .pdbal.uneven { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
body.tight .pdbal.uneven b { color: var(--warn); }
body.tight .pddots { display: inline-flex; gap: var(--sp-1); flex: none; }
body.tight .pddots i { width: 18px; aspect-ratio: 1; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font-size: var(--fs-xs); font-weight: var(--fw-display); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
body.tight .pddots i.none { background: var(--chip); color: var(--muted); }
/* T213: label left, control right, one line in every row whatever option is picked (the row used to wrap when label + control came within a few px
   of the drawer width, and the bold picked option made that depend on the selection). The label shrinks and wraps inside its own cell instead. */
/* T387: the label never shrinks below its longest word: a control too wide for both on one line (Bot style's four options) drops to its own
   line, right-aligned, instead of being drawn over the label. Flex wraps on the label's min-content, so short rows keep one line (T213). */
body.tight .pdsetrow { min-height: var(--h-sm); display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-5); row-gap: var(--sp-2); }
body.tight .pdsetrow > :first-child { flex: 1 1 0; min-width: min-content; }
body.tight .pdsetrow > :last-child { flex: 0 1 auto; max-width: 100%; margin-left: auto; }
body.tight .pfhl .hint summary { width: 18px; height: auto; aspect-ratio: 1; font-size: var(--fs-xs); }
/* T655 (owner sign-off 2026-11-10, mockup EiYYve1mJgpqqJYd49eJVV variant C): the Play drawer's Settings (playfriend.js setPanel). One fixed
   label column, every control fills the same second column (same left and right edge on every row), one line a row, grouped like the
   lobby bar's chips; the label carries its tip (dotted underline), no (i) */
body.tight .pdsetc { --pdc-l: 96px; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-3) 0 var(--sp-4); }
body.tight .pdcg { display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .pdcgh { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--sp-7); }
body.tight .pdcgt { font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* T689: the group heading is its fold button (chevron down = open, right = folded); same text look as before */
body.tight button.pdcgt { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--sp-7); margin: 0 0 0 calc(-1 * var(--sp-1)); padding: 0 var(--sp-1); border: 0; border-radius: var(--r-tag); background: none; font-family: inherit; cursor: pointer; }
body.tight button.pdcgt:hover { color: var(--text2); }
body.tight button.pdcgt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight button.pdcgt .uico { display: inline-flex; transition: transform .15s ease; }
body.tight .pdcg.shut button.pdcgt .uico { transform: rotate(-90deg); }
body.tight .pdcg.shut > :not(.pdcgh) { display: none; }
@media (prefers-reduced-motion: reduce) { body.tight button.pdcgt .uico { transition: none; } }
@media (pointer: coarse) { body.tight button.pdcgt { min-height: var(--h-sm); } }
body.tight .pdcgh > i { flex: 1 1 auto; height: 1px; background: var(--line); }
body.tight .pdcgh .pdcgact { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--sp-7); padding: 0 var(--sp-1); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-title); cursor: pointer; }
body.tight .pdsetc .pdsetrow, body.tight .pdsetc .pdmode, body.tight .pdsetc .pdlimrow { display: grid; grid-template-columns: var(--pdc-l) minmax(0, 1fr); column-gap: var(--sp-4); row-gap: 0; align-items: center; min-height: var(--h-sm); }
body.tight .pdsetc .pdsetrow > :first-child { min-width: 0; }
body.tight .pdsetc .pdsetrow > :last-child { min-width: 0; max-width: none; margin-left: 0; }
body.tight .pdtipl { min-width: 0; }
body.tight .pdtipl .label { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-sm); font-weight: var(--fw-text); letter-spacing: 0; text-transform: none; color: var(--text2); }
body.tight .pdtipl .label[data-tip] { cursor: help; text-decoration: underline dotted color-mix(in srgb, var(--muted) 70%, transparent); text-underline-offset: 4px; }
body.tight .pdsetc .seg { display: flex; flex-wrap: wrap; width: 100%; box-sizing: border-box; align-self: auto; }   /* T706: options that do not fit wrap to a second line instead of being cut */
body.tight .pdsetc .seg button { flex: 1 1 0; min-width: max-content; max-width: 100%; padding: 0 var(--sp-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.tight .pdsetc .pdlvseg button { flex-direction: column; gap: var(--sp-1); min-height: var(--h-sm); padding-top: var(--sp-2); padding-bottom: var(--sp-2); }   /* T655 + T643: the pips and the level's name */
body.tight .pdlvw { font-size: var(--fs-xs); line-height: 1; }
body.tight .pdsetc .pdlvro { gap: var(--sp-4); }
body.tight .pdsetc .pdsetrow > .t2, body.tight .pdsetc .pdmode > .t2 { justify-self: start; }
body.tight .pdsetc .pflfg { padding-left: calc(var(--pdc-l) + var(--sp-4)); }
body.tight .pdopenacts { margin-left: auto; }
body.tight .pdopenseat .pdhead { flex-wrap: wrap; }
body.tight .pdseatx { margin-left: auto; color: var(--muted); }
/* T827 (owner sign-off 2026-11-18): the next seat is a dashed row, Seat N and three equal buttons: Open, Invite, Bot (icon + short label) */
body.tight .pdaddseat { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4); border: 1px dashed rgba(255, 255, 255, .28); border-radius: var(--r-box); }
body.tight .pdaddn { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); color: var(--t2, var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .pdaddbtns { display: flex; flex: none; gap: var(--sp-2); }
body.tight .pdaddbtn { gap: var(--sp-2); padding-inline: var(--sp-3); }
@media (max-width: 700px) { body.tight .pdaddbtn { min-height: var(--h-md); } }   /* T87: a 44 px touch target on phones */
body.tight .pdcloses { flex: none; font-variant-numeric: tabular-nums; }
body.tight .pddrawer .pdhead2 .szi:first-child { margin-left: calc(-1 * var(--sp-3)); }
body.tight .pddrawer .pdfr { cursor: default; }
/* Play drawer follow-up (owner 2026-10-21): the (i) hint, New game's bot seat, Open tables in the drawer */
body.tight .hint.hi summary { font-style: italic; }
@media (min-width: 701px) {
  body.tight .pddrawer .pfhl { position: relative; }
  body.tight .pddrawer .pfhl .hint { position: static; }
  body.tight .pddrawer .pfhl .hint > .hintbox { left: 0; top: 100%; width: 280px; max-width: calc(100vw - 48px); }
}
body.tight .pdbotq { width: 100%; box-sizing: border-box; }
body.tight .pdbotres { display: flex; flex-direction: column; gap: var(--sp-1); max-height: 240px; overflow-y: auto; }
body.tight .pdbotpick { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
body.tight .pddrawer .pdotlist .pdotrow { align-items: flex-start; flex-wrap: wrap; }
body.tight .pddrawer .pdotrow .pdotend { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
body.tight .pdfoot .pfleave { width: 100%; }
/* Play drawer seats (owner 2026-10-21): every seat's deck is a banner (the commander's art as a strip with the colour pips and the "plays as"
   pill on it, the name under it, icon actions at the end); a bot is one row, tagged Bot on the art. A ready seat is plainly green. */
body.tight .pdban { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
body.tight .pdbanart { position: relative; height: 64px; border-radius: var(--r-ctl); overflow: hidden; background: var(--imgbg); }
body.tight .pdbanart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
body.tight .pdbanscrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 12, 17, .85), rgba(9, 12, 17, 0) 75%); }
body.tight .pdbanpips { position: absolute; left: var(--sp-4); bottom: var(--sp-4); display: flex; gap: var(--sp-1); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)); }
body.tight .pdbanpow { position: absolute; right: var(--sp-3); bottom: var(--sp-3); display: flex; }
body.tight .pdbanpow .expow { padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-1); }
body.tight .pdbanpow > .brkchip, body.tight .pdbanpow > .tag { border-radius: var(--r-pill); background: rgba(9, 12, 17, .8); color: #ece9e2; box-shadow: inset 0 0 0 1px rgba(236, 233, 226, .4); }
body.tight .pdbantag { position: absolute; left: var(--sp-3); top: var(--sp-3); display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-4); border-radius: var(--r-pill); background: rgba(9, 12, 17, .8); color: #ece9e2; font-size: var(--fs-xs); font-weight: 700; }
body.tight .pdbanstripe { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: flex; }
body.tight .pdbanstripe span { flex: 1 1 0; }
body.tight .pdbanbody { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .pdbanbody .pftrunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .pdbanacts { flex: none; }
body.tight .pdbanacts .iconbtn2 { width: var(--h-sm); height: var(--h-sm); }
/* T875 variation A: a seat's banner (playfriend.js seatBan, .pdban.onart) holds the deck: a dark band behind its names at the top, the
   art open in the middle, a lighter shade behind the colours and the power; its buttons in the top corner. Always light text on the band. */
body.tight .pdban.onart { display: block; }
body.tight .pdban.onart .pdbanart { height: calc(var(--h-md) * 2); }
body.tight .pdban.onart .pdbanscrim { background: linear-gradient(to bottom, rgba(9, 12, 17, .82) 0, rgba(9, 12, 17, .82) 48px, rgba(9, 12, 17, .1) 62px, rgba(9, 12, 17, .45) 100%); }
body.tight .pdbancap { position: absolute; left: var(--sp-5); top: var(--sp-3); right: var(--sp-5); display: flex; flex-direction: column; min-width: 0; color: #ece9e2; }
body.tight .pdbancap.n1 { right: calc(var(--h-md) + var(--sp-4)); }   /* room for the banner's buttons (seatBan acts) */
body.tight .pdbancap.n2 { right: calc(var(--h-md) * 2 + var(--sp-4)); }
body.tight .pdbann { font-size: var(--fs-lg); line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .pdbans { font-size: var(--fs-sm); line-height: 16px; color: #c9c6bf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .pdban.onart .pdbanacts { position: absolute; top: var(--sp-3); right: var(--sp-3); display: flex; gap: var(--sp-4); }   /* 8 apart: two 44 px tap areas meet, they do not overlap */
body.tight .pdban.onart .pdbanacts > .pdbanbtn { position: relative; width: var(--h-sm); height: var(--h-sm); background: rgba(9, 12, 17, .55); border-color: rgba(236, 233, 226, .45); color: #ece9e2; }
body.tight .pdban.onart .pdbanacts > .pdbanbtn::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--h-md); height: var(--h-md); transform: translate(-50%, -50%); }   /* looks 36, takes taps on 44 */
body.tight .pdban.onart .pdbanacts > .pdbanbtn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
body.tight .pdbotpicker { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .pdseat.ready { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--card)); box-shadow: 0 0 0 1px var(--ok), 0 0 14px color-mix(in srgb, var(--ok) 30%, transparent); }
body.tight .tag.pdreadytag { background: var(--ok); color: var(--bg); font-weight: 700; }
body.tight .btn.pdreadyon, body.tight .pdfoot2.gold .btn.pdreadyon { background: var(--ok); border-color: var(--ok); color: var(--bg); font-weight: 700; }
body.tight .btn.pdreadyon:hover { background: color-mix(in srgb, var(--ok) 85%, var(--text)); border-color: var(--ok); }
/* T90 (owner 2026-10-22): the host's start button. Waiting for the others: a dashed neutral outline; everyone ready: the primary with a soft glow */
body.tight .btn.pdstartwait { background: transparent; border: 1px dashed var(--muted); color: var(--text2); font-weight: 600; }
body.tight .btn.pdstartwait:hover { border-color: var(--text2); color: var(--text); background: var(--panel); }
body.tight .btn.pdstartgo { --glow: var(--accent); font-weight: 700; animation: pdstartglow 2.4s ease-in-out infinite; }
/* T694: the start button keeps one line; too narrow for phrase + count, it shows the count alone (never a cut phrase) */
body.tight .btn.pdstart1 { flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; container-type: inline-size; }
body.tight .pdstart1 .pdstph { white-space: pre; }
body.tight .pdstart1 .pdstcnt { flex: none; }
@container (max-width: 27ch) { body.tight .pdstart1 .pdstph { display: none; } }
@container (max-width: 34ch) { body.tight .pdstart1.pdstlong .pdstph { display: none; } }
body.tight .pdfoot2.gold .btn.pdstartgo { --glow: var(--gold); }
body.tight .pdunready { flex: 0 0 auto; align-self: stretch; }
@media (prefers-reduced-motion: reduce) { body.tight .btn.pdstartgo { animation: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--glow) 45%, transparent); } }

/* ---------- Want list (owner 2026-10-18, wants.js): one list per deck and a general one; Buy opens the printing on Cardmarket ---------- */
body.tight .wlpage { gap: var(--sp-6); }
body.tight .wlbar { align-items: center; }
/* the list selector (owner 2026-10-19): pick, add, rename and delete lists in one popover */
body.tight .wlpk { position: relative; }
body.tight .wlpkbtn { display: inline-flex; align-items: center; gap: var(--sp-4); height: var(--h-sm); max-width: 380px; padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--inset); color: var(--text); font: inherit; cursor: pointer; }
body.tight .wlpkbtn:hover, body.tight .wlpkbtn[aria-expanded=true] { border-color: var(--accent); }
body.tight .wlpkcur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-label); }
body.tight .wlpkpop { position: absolute; left: 0; top: calc(100% + var(--sp-2)); width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .wlpkrow { display: flex; align-items: center; gap: var(--sp-1); border-radius: var(--r-ctl); }
body.tight .wlpkrow.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
body.tight .wlpkrow:not(.on):hover { background: var(--chip); }
body.tight .wlpkrow.editing { gap: var(--sp-3); padding: var(--sp-2); background: var(--inset); }
body.tight .wlpkrow.editing input { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); }
body.tight .wlpkname { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .wlpkn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .wlpkrow .dlbtn { flex: 0 0 auto; }
body.tight .wlpkhead { padding: var(--sp-4) var(--sp-4) var(--sp-2); }
body.tight .wlpkadd { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); padding: 0 var(--sp-4); margin-top: var(--sp-2); border: 1px dashed var(--line); border-radius: var(--r-ctl); background: none; color: var(--accent); font: inherit; font-weight: var(--fw-label); cursor: pointer; }
body.tight .wlpkadd:hover { border-color: var(--accent); }
body.tight .wlpkmsg { padding: var(--sp-2) var(--sp-4); }
body.tight .wlpknote { padding: var(--sp-3) var(--sp-4) var(--sp-1); justify-content: flex-end; }
@media (max-width: 700px) { body.tight .wlpk, body.tight .wlpkbtn { width: 100%; max-width: none; } body.tight .wlpkbtn .wlpkcur { flex: 1 1 auto; text-align: left; } body.tight .wlpkpop { width: 100%; max-width: none; } }
body.tight .wlstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .wlstat { gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); }
body.tight .wlstat > b { font-size: var(--fs-2xl); }
body.tight .wlgold, body.tight .wlprice { color: var(--text); }   /* audit D16: prices in plain text; gold = progression (SCOPE 17.2c), amber = attention (17.7) */
body.tight .wlbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
body.tight .wlbody.withprints { grid-template-columns: minmax(0, 1fr) 340px; }
body.tight .wllist { padding: var(--sp-2) 0; gap: 0; }
body.tight .wlrow { display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.6fr) auto 72px 76px auto 36px; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); }
body.tight .wlrow:first-child { border-top: 0; }
body.tight .wlrow.bought { opacity: .6; }
body.tight .wlrow.bought .wlname .linkbtn { text-decoration: line-through; }
body.tight .wlthumb { padding: 0; border: 0; background: none; border-radius: var(--r-tag); overflow: hidden; display: flex; }
body.tight .wlname { gap: var(--sp-1); min-width: 0; }
body.tight .wlname .linkbtn { font-weight: var(--fw-title); font-size: var(--fs-md); text-align: left; }
body.tight .wlfriend { color: var(--ok, #7fd1b9); }
body.tight .wlprint { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; min-height: var(--h-md); padding: 0 var(--sp-4); border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--text); text-align: left; }
body.tight .wlprint:hover, body.tight .wlprint.on { border-color: var(--line); background: var(--chip); }
body.tight .wlpname { min-width: 0; gap: 0; font-size: var(--fs-sm); }
body.tight .wlpname > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .wlset { flex: 0 0 auto; padding: 0 var(--sp-3); border-radius: var(--r-tag); background: var(--chip); font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--text2); letter-spacing: .04em; }
body.tight .wlstep { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-ctl); min-height: var(--h-sm); }
body.tight .wlstep button { width: 32px; min-height: var(--h-sm); border: 0; background: none; font-size: var(--fs-lg); }
body.tight .wlstep button:disabled { opacity: .35; cursor: default; }
body.tight .wlstep span { min-width: 20px; text-align: center; font-weight: var(--fw-title); }
body.tight .wlfoil { display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .wlprice { text-align: right; font-variant-numeric: tabular-nums; }
body.tight .wlbuy { text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-3); white-space: nowrap; }   /* a neutral outline .btn (audit D16) */
body.tight .wlgot { color: var(--ok, #7fd1b9); }
body.tight .wlmore { position: relative; }
body.tight .wlmenu.barpop { position: absolute; right: 0; top: calc(100% + var(--sp-2)); display: flex; flex-direction: column; min-width: 240px; border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .wlmenu button { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-ctl); background: none; text-align: left; font-size: var(--fs-md); }
body.tight .wlmenu button:hover { background: var(--chip); }
body.tight .wlmenu .dangertext { color: var(--bad); }
body.tight .wlsep { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); background: var(--inset); }
body.tight .wlprints { position: sticky; top: var(--sp-6); gap: var(--sp-5); }
body.tight .wlpcur { gap: var(--sp-5); align-items: flex-start; }
body.tight .wlpcur img { width: 120px; height: auto; flex: 0 0 auto; }
body.tight .wlplist { gap: var(--sp-1); max-height: 420px; overflow-y: auto; }
body.tight .wlpopt { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: none; text-align: left; font-size: var(--fs-sm); }
body.tight .wlpopt:hover { background: var(--chip); }
body.tight .wlpopt.on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
body.tight .wlpopt .wlpname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .wlexcols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-7); }
body.tight .wltext { width: 100%; font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: var(--fs-sm); line-height: 1.6; resize: vertical; }
body.tight .wlsteps { list-style: none; margin: 0; padding: var(--sp-6); gap: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--inset); align-self: start; }
body.tight .wlsteps li { display: flex; gap: var(--sp-5); align-items: flex-start; font-size: var(--fs-md); line-height: 1.5; }
body.tight .wlnum { flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-display); font-size: var(--fs-sm); color: var(--onAccent); background: linear-gradient(135deg, var(--accent), var(--sec)); }
body.tight .wlsub { list-style: none; margin: 0; padding: var(--sp-4) 0 0; gap: var(--sp-5); }
body.tight .wlsteps li.wlrest { display: block; }
body.tight .wlimport { gap: var(--sp-5); max-width: 760px; }
body.tight .wlimport input[type=text] { width: 100%; }
body.tight .wlfile { align-self: flex-start; position: relative; cursor: pointer; }
body.tight .wlfile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .wlires { gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); }
body.tight .wlempty { gap: var(--sp-3); padding: var(--sp-7); }
@media (max-width: 1100px) {
  body.tight .wlbody.withprints { grid-template-columns: minmax(0, 1fr); }
  body.tight .wlprints { position: static; order: -1; }
  body.tight .wlexcols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  body.tight .wlstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
  body.tight .wlstat { padding: var(--sp-4); }
  body.tight .wlstat > b { font-size: var(--fs-lg); }
  body.tight .wlrow { grid-template-columns: 48px minmax(0, 1fr) auto auto; grid-template-areas: 'th nm nm mo' 'th pt pt pt' 'th st pr by'; gap: var(--sp-3) var(--sp-4); padding: var(--sp-4); }
  body.tight .wlthumb { grid-area: th; align-self: start; }
  body.tight .wlname { grid-area: nm; }
  body.tight .wlprint { grid-area: pt; min-height: var(--h-sm); padding: 0; }
  body.tight .wlstep { grid-area: st; }
  body.tight .wlfoil { display: none; }
  body.tight .wlprice { grid-area: pr; }
  body.tight .wlrow > .wlbuy, body.tight .wlrow > .wlgot { grid-area: by; min-height: var(--h-sm); }
  body.tight .wlmore { grid-area: mo; }
}

/* ---------- the deck view's Select mode (owner 2026-10-18): checkboxes on the rows, one bar of actions ---------- */
body.tight .dvselbar { gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-color: var(--accent); }
body.tight .dvselbar .btn.sm { min-height: var(--h-sm); }
body.tight .dvselbar .btn.ghost { border-color: transparent; }
body.tight .dvseladd { gap: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .dlrow.dlsel { cursor: pointer; }
body.tight .dlrow.dlsel.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .dlpick { width: var(--sp-6); height: var(--sp-6); flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
body.tight .dlselhead { gap: var(--sp-4); align-items: center; }
body.tight .dlselhead .dltoggle { flex: 1 1 auto; min-width: 0; }
body.tight .dvsumbuy { margin-left: var(--sp-4); }
/* #129: the summary bar is the deck view's footer: on a short page (an empty Compare, a short deck) it sits at the bottom, not under the content */
body.tight .page > .dvsum { margin-top: auto; }

/* deck list tools (owner 2026-10-19): Bulk edit beside the view settings; Add a card as a search-plus icon at the right end of the same row,
   opening into the search field there with its results over the list, so nothing below moves */
body.tight .dlbar { align-items: center; }
body.tight .dlbar .dlbulk, body.tight .dlbar .dladdbtn { height: var(--h-sm); }
body.tight .dlbar .dladdbtn { width: var(--h-sm); padding: 0; justify-content: center; }
/* T402: Short on lands sits right of the list's buttons, quiet, on one line; on phones it takes its own line under them */
body.tight .dlbar .dlhint { align-self: center; white-space: nowrap; font-size: var(--fs-xs); }
@media (max-width: 700px) { body.tight .dlbar .dlhint { white-space: normal; flex: 1 1 100%; order: 9; } }
body.tight .dlbarend { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; flex: 0 1 auto; min-width: 0; }
body.tight .dlbarend:has(.dladd) { flex: 1 1 220px; max-width: 360px; }
body.tight .dladd { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-width: 200px; height: var(--h-md); padding: 0 var(--sp-2) 0 var(--sp-5); border: 1px solid var(--accent); border-radius: var(--r-ctl); background: var(--inset); color: var(--muted); }
body.tight .dladd input[type=search] { flex: 1 1 auto; min-width: 0; min-height: 0; height: 100%; border: 0; background: transparent; padding: 0 var(--sp-2); outline: none; }
body.tight .dladd input[type=search]::-webkit-search-cancel-button { display: none; }
body.tight .dladd:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
body.tight .dladd .themelist.overlay { left: auto; right: 0; width: min(480px, calc(100vw - 32px)); }
body.tight .dladd .addrow { gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); }
body.tight .dladd .addrow b { overflow-wrap: anywhere; }
/* T288: the maybeboard button at the end of an Add a card result (warn colour, as the maybeboard everywhere); disabled once the card is there */
body.tight .dladd .addrow .addmaybe { width: var(--h-xs); height: var(--h-xs); }
body.tight .dladd .addrow .addmaybe:not(:disabled):hover { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
body.tight .dladd .addrow .addmaybe.on { color: var(--warn); opacity: .6; cursor: default; }
body.tight .dladd .addall { display: flex; width: 100%; justify-content: center; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); min-height: 44px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; text-align: center; }   /* T1006: See all results, under the first 10 */
body.tight .dladd .addall:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .dladd .addrow .symrow { flex-shrink: 0; }
@media (max-width: 700px) {
  body.tight .dlbarend:has(.dladd) { flex: 1 1 200px; max-width: none; }
  body.tight .dladd .addrow .addmaybe { width: var(--h-sm); height: var(--h-sm); }
}
body.tight .wlpkrow .dlbtn.armed { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); border-color: var(--bad); }

/* Trim (owner 2026-10-19): the picture answers hover with the whole card; Keep blue (the owned colour), To maybeboard amber, Remove red with the armed second click */
body.tight .trimpic { flex: 0 0 auto; padding: 0; border: 0; background: none; border-radius: var(--r-tag); cursor: pointer; }
body.tight .trimpic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* T686 round 2 (owner 2026-11-12): the art is as tall as its row, from the name down to "What would replace it?" (trim.js sizes it from
   the number of reasons and pushes the text aside); phones keep the fixed 80 px picture, its crop in percent so it scales down */
@media (max-width: 900px) {
  body.tight .trimpic .artthumb { width: 80px !important; height: 56px !important; background-size: 116.3% 233.3% !important; background-position: 50% 20% !important; }
}
body.tight .trimacts .btn.sm { min-height: var(--h-sm); gap: var(--sp-3); font-weight: var(--fw-label); }
body.tight .btn.trimkeep { border-color: color-mix(in srgb, #5aa9f0 60%, var(--line)); color: #5aa9f0; background: color-mix(in srgb, #5aa9f0 9%, transparent); }
body.tight .btn.trimmaybe { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); }
body.tight .btn.trimrem { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); color: color-mix(in srgb, var(--bad) 85%, var(--text)); background: color-mix(in srgb, var(--bad) 9%, transparent); }
body.tight .btn.trimrem.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
@media (hover: hover) {
  body.tight .btn.trimkeep:not(:disabled):hover { background: color-mix(in srgb, #5aa9f0 18%, transparent); }
  body.tight .btn.trimmaybe:not(:disabled):hover { background: color-mix(in srgb, var(--warn) 18%, transparent); }
  body.tight .btn.trimrem:not(:disabled):not(.armed):hover { background: color-mix(in srgb, var(--bad) 18%, transparent); }
}
body.tight .dvright > .sharepanel { max-width: none; margin: 0; }   /* in the deck view's right column, like Trim and Gameplan (owner 2026-10-19) */

/* deck list (owner 2026-10-19): the count before a card is quiet and sits level with the name (Moxfield-like); a group's ▾ opens a small menu by its header */
body.tight .dlqty { flex: 0 0 18px; font-size: var(--fs-xs); color: color-mix(in srgb, var(--muted) 80%, transparent); font-variant-numeric: tabular-nums; align-self: center; }
/* T289: a count you can change is a quiet button (underlined on hover); the field that replaces it keeps the row height */
body.tight .dlqtybtn { padding: 0; border: 0; background: none; cursor: pointer; justify-content: flex-end; border-radius: var(--r-tag); }
body.tight .dlqtybtn:hover, body.tight .dlqtybtn:focus-visible { color: var(--accent); text-decoration: underline dotted; }
body.tight .dlqtyin { flex: 0 0 auto; width: 48px; height: var(--h-xs); padding: 0 var(--sp-1); font-size: var(--fs-xs); text-align: right; border-radius: var(--r-tag); align-self: center; }
body.tight .dlqtyin { -moz-appearance: textfield; appearance: textfield; }   /* no spin arrows: they hid the number; arrow keys still step it */
body.tight .dlqtyin::-webkit-inner-spin-button, body.tight .dlqtyin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 700px) { body.tight .dlqtyin { height: var(--h-sm); } }
body.tight .dlname { display: inline-flex; align-items: center; align-self: stretch; }
body.tight .dlheadrow { gap: var(--sp-2); align-items: center; }
/* T294: the maybeboard and tokens as full-width bands under the deck (like Moxfield's Considering / Tokens); opened, their groups use the deck's columns */
body.tight .dlband { gap: var(--sp-2); align-items: center; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .dlband > .dltoggle { flex: 1 1 auto; min-width: 0; }
body.tight .dlband .dlhead { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
body.tight .dlgroup .dltoggle[aria-expanded="true"] .chev, body.tight .dlband .dltoggle[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--accent); }   /* an open group or band turns its chevron (the style.css rule stopped matching once headers got .dlheadrow) */
body.tight .dlband + .dlband { border-top: 0; padding-top: 0; }
body.tight .dlcols .dltokrows { break-inside: auto; }
body.tight .dlheadrow > .dltoggle { flex: 1 1 auto; min-width: 0; }
body.tight .dlgm { position: relative; flex: 0 0 auto; }
body.tight .dlgmbtn.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .dlgmenu { position: absolute; top: calc(100% + var(--sp-2)); right: 0; z-index: 60; min-width: 260px; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .dlgmenu button { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: none; color: var(--text); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer; white-space: nowrap; }
body.tight .dlgmenu button .uico { color: var(--muted); }
body.tight .dlgmhead { padding: var(--sp-2) var(--sp-4) var(--sp-3); }
body.tight .dlgmnote { padding: var(--sp-3) var(--sp-4); }
@media (hover: hover) { body.tight .dlgmenu button:hover { background: var(--chip); } }
@media (hover: none) { body.tight .dlgmenu button:active { background: var(--chip); } }

/* deck list rows (owner 2026-10-19): smaller row buttons, and smaller again in Condensed text; touch keeps them a little larger */
body.tight .dlrows .dlbtn { width: 28px; height: 28px; }
body.tight .dlrows.tight .dlbtn { width: var(--sp-7); height: var(--sp-7); }
body.tight .dlrows.tight .dlbtn svg { width: var(--sp-5); height: var(--sp-5); }
body.tight .dlrows.tight .ownchk { flex-basis: var(--sp-6); width: var(--sp-6); height: var(--sp-6); font-size: var(--fs-xs); }
/* T290: amber = you own it but other decks hold every copy; T291: the grey tick of a free other print is a button (ring on hover) */
body.tight .ownchk.taken { background: var(--warn); }
body.tight .ownchk.other { box-sizing: border-box; background: transparent; border: 2px solid #5aa9f0; color: #5aa9f0; }   /* blue ring: your copy, another print */
body.tight .ownchk.ownuse { position: relative; padding: 0; cursor: pointer; }
body.tight .ownchk.ownuse::after { content: ""; position: absolute; inset: calc(-1 * var(--sp-4)); }
body.tight .ownchk.ownuse:hover, body.tight .ownchk.ownuse:focus-visible { background: #5aa9f0; color: #0c1018; }   /* hover previews the filled blue it becomes */
body.tight .ownlegend { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); padding: var(--sp-2) var(--sp-4) var(--sp-4); }
body.tight .ownlegend .row { gap: var(--sp-3); align-items: center; }
body.tight .ownlegend .ownchk { flex: 0 0 var(--sp-6); width: var(--sp-6); height: var(--sp-6); font-size: var(--fs-xs); }
@media (pointer: coarse) {
  body.tight .dlrows .dlbtn { width: var(--sp-8); height: var(--sp-8); }
  body.tight .dlrows.tight .dlbtn { width: 28px; height: 28px; }
  body.tight .dlrows.tight .dlrow { min-height: var(--sp-8); padding: 0 var(--sp-2); }
  body.tight .dlrows.tight .dlname { min-height: var(--sp-8); margin: 0; }
}

/* the card details panel (owner 2026-10-19, mockup DHQ9RtWq7iYaMbk3b4WPGT): the card fills a 420 px panel, everything else below it */
body.tight .drawer.cd2 { width: min(420px, 100%); padding: 0 0 var(--sp-7); gap: 0; }
body.tight .cd2 > * { padding-left: var(--sp-6); padding-right: var(--sp-6); }
body.tight .cdhead { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-lg); padding: 0 var(--sp-4) 0 var(--sp-6); background: var(--bar); border-bottom: 1px solid var(--line); }
body.tight .cdname { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .cdcost { flex: 0 0 auto; }
body.tight .cdclose { border-color: transparent; }
/* #313: previous / next card of the list in the head (mockup HVeM2wPULN52bu5GxjXkUq): borderless, apart from the bordered printing arrows */
body.tight .cdnav { flex: none; display: flex; align-items: center; gap: 2px; }
body.tight .cdhead.hasnav .cdcost { margin-right: var(--sp-2); }
body.tight .cdstep { width: var(--h-sm); height: var(--h-sm); border-color: transparent; background: transparent; box-shadow: none; }
body.tight .cdstep:disabled { opacity: .35; }
body.tight .cdcount { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tight .cdswipe { touch-action: pan-y; }
@media (max-width: 599px) { body.tight .cdstep { display: none; } }   /* phones: the count only, the name keeps the room (the keys still step) */
body.tight .cdmedia { gap: var(--sp-5); padding-top: var(--sp-6); }
body.tight .cdcard, body.tight .cdart { position: relative; }
body.tight .cdcard .cardimg { width: 100%; height: auto; aspect-ratio: 488 / 680; display: block; border-radius: 4.75% / 3.4%; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
body.tight .cdart img { width: 100%; aspect-ratio: 626 / 457; object-fit: cover; display: block; border-radius: var(--r-box); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
body.tight .cdtext { gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--inset); }
body.tight .cdtype { gap: var(--sp-4); align-items: baseline; font-size: var(--fs-md); }
body.tight .cdtext .oracle { font-size: var(--fs-md); line-height: 1.55; color: var(--text2); }
body.tight .cdpt { align-self: flex-end; font-size: var(--fs-lg); }
body.tight .cdtools { gap: var(--sp-4); align-items: center; }
body.tight .cdprint { gap: var(--sp-3); }
body.tight .cdset { font: 600 var(--fs-xs) ui-monospace, 'JetBrains Mono', monospace; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-tag); background: var(--chip); }
body.tight .cdacts { gap: var(--sp-4); padding-top: var(--sp-6); }
body.tight .cdrow { gap: var(--sp-4); flex-wrap: wrap; }
body.tight .cdstate { display: flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-md); color: var(--text2); }
body.tight .btn.cdbtn { min-height: var(--h-md); gap: var(--sp-3); padding: 0 var(--sp-6); font-weight: var(--fw-label); }
body.tight .btn.sm.cdbtn { min-height: var(--h-sm); padding: 0 var(--sp-5); }
body.tight .btn.cdbtn.primary { font-weight: var(--fw-title); padding: 0 var(--sp-7) 0 var(--sp-6); }
body.tight .btn.cdbtn.icon { width: var(--h-md); padding: 0; }
body.tight .btn.cdbtn.maybe { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); }
body.tight .btn.cdbtn.rem { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); color: color-mix(in srgb, var(--bad) 85%, var(--text)); background: color-mix(in srgb, var(--bad) 9%, transparent); }
body.tight .btn.cdbtn.rem.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
@media (hover: hover) { body.tight .btn.cdbtn.maybe:hover { background: color-mix(in srgb, var(--warn) 18%, transparent); } body.tight .btn.cdbtn.rem:not(.armed):hover { background: color-mix(in srgb, var(--bad) 18%, transparent); } }
body.tight .cdadded { gap: var(--sp-4); align-items: center; }
body.tight .cd2 .ecpick { border-color: var(--line); border-radius: var(--r-box); }
body.tight .cdfacts { gap: var(--sp-4); padding-top: var(--sp-6); }
body.tight .cdtile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--card); border: 1px solid var(--line); }
body.tight .cdtile > span { font-size: var(--fs-xs); color: var(--muted); }
body.tight .cdtile b { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .cdtile small { font-size: var(--fs-sm); font-weight: var(--fw-text); color: var(--muted); }
body.tight .cdprice { color: var(--accent); }
body.tight .cdchips { gap: var(--sp-3); padding-top: var(--sp-5); }
body.tight .cdmine { gap: 0; padding-top: var(--sp-7); }
body.tight .cdmine > .label { padding-bottom: var(--sp-3); }
body.tight .cdrow2 { display: flex; gap: var(--sp-5); padding: var(--sp-4) 0; border-top: 1px solid var(--line); font-size: var(--fs-md); }
body.tight .cdk { flex: 0 0 96px; color: var(--muted); font-size: var(--fs-sm); padding-top: var(--sp-1); }
body.tight .cdv { flex: 1 1 auto; min-width: 0; gap: var(--sp-2); align-items: flex-start; }
body.tight .cdfolds { gap: 0; padding-top: var(--sp-6); }
body.tight .cdfold { border-top: 1px solid var(--line); padding: var(--sp-4) 0; }
body.tight .cdfold > summary { gap: var(--sp-4); }
body.tight .cdn { font-weight: var(--fw-text); }
body.tight .cdfoldnone { display: flex; gap: var(--sp-4); align-items: baseline; padding: var(--sp-5) 0 var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); font-size: var(--fs-lg); }
body.tight .cdfoot { padding-top: var(--sp-5); border-top: 1px solid var(--line); margin: 0 var(--sp-6); padding-left: 0; padding-right: 0; }
@media (max-width: 700px) {
  body.tight .drawer.cd2 { width: 100%; }
  body.tight .cd2 > * { padding-left: var(--sp-6); padding-right: var(--sp-6); }
}
body.tight .cdv .linkbtn { color: var(--accent); text-align: left; }
body.tight .dkbanner .dkbrk:has(.expow) { top: var(--sp-4); bottom: auto; right: var(--sp-4); }   /* the plays pill of a finished deck: top right, clear of the colour pips (owner 2026-10-19) */

/* ---------- Settings > Sound (board look E1, 2026-10-19; core.js soundSection, RZ.sfx) ---------- */
body.tight .sfxon { justify-content: flex-start; }
body.tight .sfxrow { display: grid; grid-template-columns: auto minmax(0, 1.5fr) minmax(80px, 1fr) auto; align-items: center; gap: var(--sp-4); }
body.tight .sfxrow.master { grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) auto; }
body.tight .sfxrow.admlv { grid-template-columns: auto minmax(120px, 2fr) auto auto; }   /* Admin > Sounds (T229): a sound's volume for everyone */
body.tight .sfxname { font-size: var(--fs-sm); color: var(--text2); }
body.tight .sfxrow.own .sfxname, body.tight .sfxrow.master .sfxname { color: var(--text); }
body.tight .sfxpct { min-width: 4ch; font-size: var(--fs-xs); color: var(--text2); text-align: right; font-variant-numeric: tabular-nums; }
body.tight .sfxplay { min-height: var(--h-xs); padding: 0 var(--sp-3); }
body.tight .sfxlist > summary { cursor: pointer; color: var(--text2); padding: var(--sp-2) 0; }
body.tight .sfxrows { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); }

/* ---------- Analyze > Playtest (Phase E PE6, 2026-10-19; pages2.js playtestTab, mockup 7tt45vk5baAHZvoihZBB2F) ---------- */
body.tight .aptwrap { display: flex; flex-wrap: wrap; gap: var(--sp-7); align-items: flex-start; }
body.tight .aptmain { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-6); }
body.tight .aptside { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-6); }
@media (min-width: 701px) and (max-width: 1199px) { body.tight .aptside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
body.tight .aptbox { display: flex; flex-direction: column; gap: var(--sp-6); min-width: 0; padding: var(--sp-6); border-radius: var(--r-box); }
body.tight .aptbox.aptcards, body.tight .aptbox.aptgames { gap: 0; padding: 0; overflow: hidden; }
body.tight .apth2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); }
body.tight .aptt16 { font-size: var(--fs-lg); font-weight: var(--fw-title); }
body.tight .aptstaterow { display: flex; align-items: center; gap: var(--sp-4) var(--sp-5); flex-wrap: wrap; min-width: 0; }
body.tight .aptgrow { flex: 1 1 auto; min-width: 0; }
body.tight .aptcol { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
body.tight .aptcol.aptg0 { gap: var(--sp-1); }
body.tight .aptlbl { font-size: var(--fs-sm); font-weight: var(--fw-label); color: var(--text2); }
body.tight .apttext { color: var(--text); }
body.tight .apttext2 { color: var(--text2); }
body.tight .hint.apti summary { font-family: Georgia, serif; font-style: italic; }
body.tight .aptcount { display: inline-flex; align-items: center; padding: 0 var(--sp-3); border-radius: var(--r-tag); background: var(--chip); color: var(--text); font-size: var(--fs-xs); font-weight: var(--fw-label); }
/* the batch box */
body.tight .aptopps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
body.tight .aptopp { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); border: 1px solid var(--line); min-width: 0; }
body.tight .aptava { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip) 50% 22% / 150% auto no-repeat; display: inline-flex; align-items: center; justify-content: center; font-weight: var(--fw-title); color: var(--text2); }
body.tight .aptoppt { display: flex; flex-direction: column; min-width: 0; }
body.tight .aptoppt > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .aptoppt b { font-size: var(--fs-md); }
body.tight .aptopppanel { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); border: 1px solid var(--line); }
body.tight .aptchips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .aptctlrow { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); }
body.tight .aptstate { display: flex; flex-direction: column; gap: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .aptprog { height: var(--sp-3); border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
body.tight .aptprog > i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
body.tight .aptrun { min-height: var(--h-md); }
@media (max-width: 700px) { body.tight .aptrun { width: 100%; justify-content: center; } }
/* stats */
body.tight .aptsrcbar .seg button { display: inline-flex; align-items: center; gap: var(--sp-2); }
body.tight .aptn { font-weight: var(--fw-text); opacity: .75; }
body.tight .apttiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-4); }
@media (max-width: 700px) { body.tight .apttiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.tight .apttile { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-5); border-radius: var(--r-box); background: var(--card); border: 1px solid var(--line); }
body.tight .apttile > b { font-size: var(--fs-3xl); font-weight: var(--fw-title); line-height: 1.1; }
body.tight .apttile.sm { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); }
body.tight .apttile.sm > b { font-size: var(--fs-lg); }
body.tight .aptlbl2 { font-size: var(--fs-xs); font-weight: var(--fw-label); color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
body.tight .aptcharts { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
body.tight .aptfig { margin: 0; flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); border-radius: var(--r-box); }
body.tight .aptfig figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-md); }
body.tight .aptbarrow { display: grid; grid-template-columns: minmax(0, 120px) 1fr 72px; align-items: center; gap: var(--sp-4); min-height: var(--h-xs); }
body.tight .aptbarname { font-size: var(--fs-sm); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .aptbar { position: relative; height: var(--sp-5); border-radius: 0; background: var(--track); }
body.tight .aptbar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 var(--r-tag) var(--r-tag) 0; background: var(--accent); transition: width .3s ease; }
body.tight .aptbar > b { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--muted); }
body.tight .aptbarrow:hover .aptbar > i { filter: brightness(1.15); }
body.tight .aptbarval { font-size: var(--fs-sm); font-weight: var(--fw-title); text-align: right; white-space: nowrap; }
body.tight .aptbarval .muted { font-weight: var(--fw-text); }
body.tight .aptleg { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text2); }
body.tight .aptlegline { width: 14px; height: 2px; background: var(--accent); }
body.tight .aptlegdash { width: 14px; height: 0; border-top: 2px dashed var(--muted); }
body.tight .aptlands { width: 100%; height: auto; display: block; }
body.tight .aptlands .aptgrid { stroke: var(--line); stroke-width: 1; }
body.tight .aptlands .aptax { fill: var(--muted); font-size: 11px; font-family: inherit; }
body.tight .aptlands .aptnote { fill: var(--text); font-size: 11px; font-weight: var(--fw-title); font-family: inherit; }
body.tight .aptlands .aptref { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
body.tight .aptlands .aptline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
body.tight .aptlands .aptdot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
body.tight .aptnums { font-variant-numeric: tabular-nums; }
/* the card table (a list on phones) */
body.tight .aptcardshead { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line); }
body.tight .apttable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
body.tight .apttable th { padding: var(--sp-4); font-weight: var(--fw-label); color: var(--muted); text-align: left; }
body.tight .apttable td { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); color: var(--text2); }
body.tight .apttable th:first-child, body.tight .apttable td:first-child { padding-left: var(--sp-6); }
body.tight .apttable th:last-child, body.tight .apttable td:last-child { padding-right: var(--sp-6); }
body.tight .apttable .num { text-align: right; font-variant-numeric: tabular-nums; }
body.tight .apttable td.b { font-weight: var(--fw-title); color: var(--text); }
@media (hover: hover) { body.tight .apttable tbody tr:hover, body.tight .aptgame:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); } }
body.tight .aptclist, body.tight .aptglist { list-style: none; margin: 0; padding: 0; }
body.tight .aptclist > li { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); }
body.tight .aptempty { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .aptfoot { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); }
body.tight .aptwide { width: 100%; justify-content: center; }
/* Tamiyo's box (PE7 fills it) */
body.tight .apttam { border-color: var(--accent); background: var(--bar); gap: var(--sp-5); }
body.tight .apttamava { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle at 50% 40%, var(--imgbg2), var(--bg)); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); font-size: var(--fs-xl); }
/* Test a swap */
body.tight .aptpair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-4); }
body.tight .aptpill { min-height: var(--h-lg); justify-content: flex-start; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); white-space: normal; text-align: left; min-width: 0; }
body.tight .aptpill.out { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
body.tight .aptpill.in { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
body.tight .aptpill.on { box-shadow: 0 0 0 1px var(--accent); }
body.tight .aptpill img, body.tight .aptpickrow img { width: 32px; border-radius: 5%; flex: none; }
body.tight .aptpickph { flex: none; width: 32px; height: 44px; border-radius: var(--r-tag); border: 1px dashed var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
body.tight .aptpilll { font-size: var(--fs-xs); font-weight: var(--fw-title); }
body.tight .aptpill.out .aptpilll { color: var(--bad); }
body.tight .aptpill.in .aptpilll { color: var(--ok); }
body.tight .aptpilln { font-size: var(--fs-sm); overflow-wrap: anywhere; }
body.tight .aptarrow { color: var(--muted); font-size: var(--fs-xl); }
body.tight .aptpicklist { display: flex; flex-direction: column; gap: var(--sp-1); max-height: 320px; overflow-y: auto; }
body.tight .aptpickrow { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: var(--sp-2) var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
body.tight .aptpickrow:hover, body.tight .aptpickrow:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.tight .aptpickrow b { font-size: var(--fs-sm); }
body.tight .aptleg2 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-5); color: var(--text2); }
body.tight .aptsw { width: var(--sp-5); height: var(--sp-5); border-radius: 0; }
body.tight .aptsw.a, body.tight .aptabbar.a > i { background: var(--muted); }
body.tight .aptsw.b, body.tight .aptabbar.b > i { background: var(--accent); }
body.tight .aptab { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .aptabbar { display: block; height: var(--sp-4); border-radius: 0; background: var(--track); }
body.tight .aptabbar > i { display: block; height: 100%; border-radius: 0 var(--r-tag) var(--r-tag) 0; }
body.tight .aptverdict { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); line-height: 1.45; }
body.tight .aptverdict > .tag { flex: none; }
/* the games list and one game */
body.tight .aptres { width: 28px; text-align: center; flex: none; font-weight: var(--fw-title); }
body.tight .aptglist > li { border-top: 1px solid var(--line); display: flex; }
body.tight .aptgame { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-lg); padding: var(--sp-4) var(--sp-6); border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
body.tight .aptgname { font-size: var(--fs-md); font-weight: var(--fw-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .aptfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-4); }
body.tight .aptlog > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-4); }
body.tight .aptlog > summary::-webkit-details-marker { display: none; }
body.tight .aptlog > summary .chev { display: inline-block; transition: transform .15s ease; }
body.tight .aptlog[open] > summary .chev { transform: rotate(90deg); }
body.tight .aptlog ol { list-style: none; margin: var(--sp-4) 0 0; padding: var(--sp-4) var(--sp-5); max-height: 360px; overflow-y: auto; border-radius: var(--r-ctl); background: var(--inset); font-size: var(--fs-sm); color: var(--text2); display: flex; flex-direction: column; gap: var(--sp-1); }
body.tight .aptlog li.turn { color: var(--text); font-weight: var(--fw-title); padding-top: var(--sp-3); }
body.tight .aptlands { max-height: 240px; }

/* Analyze bar (owner 2026-10-19): the section tabs start right after the divider, on the left, also when they wrap */
body.tight .subbar.anbar .antabgrp { margin-left: 0; justify-content: flex-start; }
/* Tamiyo's review (PE7): findings with card links, the one-game review in a game's detail */
body.tight .aptfind { margin: 0; padding: 0 0 0 var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); font-size: var(--fs-md); line-height: 1.5; color: var(--text); }
body.tight .aptp, body.tight .ptgop { margin: 0; line-height: 1.5; }
/* the deep review of one game (T49): turning points above the findings, a turn per finding, the better line under it */
body.tight .aptturns { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .aptturn { color: var(--accent); font-weight: var(--fw-label); }
body.tight .aptbetter { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text2); }
body.tight .aptgrev { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-ctl); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--inset); }
body.tight .apttamava.sm { width: 28px; height: 28px; border-width: 1px; font-size: var(--fs-sm); }
/* the game-over screen (PE7; mockup "3 After a game"): headline, facts, turning points, the match log card, Tamiyo's review, actions */
body.tight .ptgo-bg { align-items: flex-start; overflow-y: auto; padding: var(--sp-8) var(--sp-7); }
body.tight .ptgo { position: relative; width: min(1100px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: var(--sp-6); padding: var(--sp-7); border-radius: var(--r-box);
  background: var(--bar); color: var(--text); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 30px 80px #0009; margin: auto 0; }
body.tight .ptgohead { gap: var(--sp-1); }
body.tight .ptgokick { font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: 1.2px; text-transform: uppercase; color: var(--text2); }
body.tight .ptgoh1 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: var(--fw-title); font-size: 36px; line-height: 1; color: var(--text); }
body.tight .ptgoh1.won { color: var(--gold); }
body.tight .ptgocols { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: flex-start; }
body.tight .ptgoleft { flex: 1 1 380px; min-width: 0; gap: var(--sp-6); }
body.tight .ptgofacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .ptgofact { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; padding: var(--sp-5); border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
body.tight .ptgofact > b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-3xl); font-weight: var(--fw-title); line-height: 1.1; color: var(--text); }
body.tight .ptgofl { font-size: 11px; font-weight: var(--fw-title); color: var(--muted); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .ptgocard { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
body.tight .ptgocard.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 6%, transparent); }
body.tight .ptgorow { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--inset); }
body.tight .ptgotp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .ptgotp > li { display: flex; gap: var(--sp-5); font-size: var(--fs-sm); line-height: 1.45; color: var(--text2); }
body.tight .ptgot { flex: none; width: 32px; color: var(--gold); font-weight: var(--fw-title); }
body.tight .ptgotp > li.k-combo > span:last-child { color: var(--gold); }
body.tight .ptgolog > summary { list-style: none; cursor: pointer; }
body.tight .ptgolog > summary::-webkit-details-marker { display: none; }
body.tight .ptgolog .linkish { color: var(--gold); text-decoration: underline; }
body.tight .ptgolog .ptlog { max-height: 320px; overflow-y: auto; margin-top: var(--sp-4); }
/* owner 2026-10-22: a game under 3 minutes folds its sections (playtest.js goFold); the house .fold summary, the card's own spacing */
body.tight details.ptgofold { display: block; padding-block: var(--sp-2); }
body.tight details.ptgofold > summary { min-height: var(--h-xs); }
body.tight details.ptgofold > :not(summary) { margin: var(--sp-3) 0 var(--sp-4); }
body.tight .ptgotam { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); border-radius: var(--r-box); border: 1px solid var(--accent); background: var(--panel); }
body.tight .ptgoself { align-self: flex-start; }
body.tight .ptgoacts { display: flex; flex-wrap: wrap; gap: var(--sp-4); padding-top: var(--sp-6); border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); }
/* T812 First table: one next game on the first finished game's end screen (the planned row is Home's, .hmpgrow) */
body.tight .ptgonext { padding: var(--sp-5) var(--sp-6); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: var(--r-box); background: var(--panel); }
body.tight .ptgonext > .label { color: var(--muted); }
body.tight .ptgonextalt { font-size: var(--fs-sm); }
@media (max-width: 600px) {
  body.tight .ptgo-bg { padding: 0; }
  body.tight .ptgo { border-radius: 0; border: 0; padding: var(--sp-7) var(--sp-6) 0; min-height: 100%; margin: 0; }
  body.tight .ptgoh1 { font-size: 32px; }
  body.tight .ptgofacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tight .ptgoacts { position: sticky; bottom: 0; background: var(--bar); padding-bottom: var(--sp-4); z-index: 2; }
  body.tight .ptgoacts .grow { display: none; }
  body.tight .ptgoacts > .btn { flex: 1 1 auto; }
}

/* decision stamps (owner 2026-10-19): in the card's top right corner, 15% smaller than the art-centred try of the same day
   (carousel 87 -> 74, Power's "cards that would raise it" 72 -> 61, Combos 57 -> 48) */
body.tight .carstamp { left: 5%; right: auto; top: 4%;   /* the builder's carousel: top left (owner 2026-10-19); Analyze and Sets top left too since 2026-10-22 (Q8) */
   width: 74px; height: auto; aspect-ratio: 1; border-width: 5px; transform: translateZ(2px) rotate(-14deg); }
body.tight .carstamp .uico svg { width: 41px; height: auto; }
body.tight .benchrec .carstamp { left: 6%; right: auto; top: 5%; width: 61px; border-width: 4px; }
body.tight .benchrec .carstamp .uico svg { width: 34px; height: auto; }
body.tight .stampimg .carstamp { left: 5%; right: auto; top: 4%; width: 48px; border-width: 3px; }
body.tight .stampimg .carstamp .uico svg { width: 27px; height: auto; }

/* ---------- the social framework (social.js, roadmap 'social', mockup Won2xUjeuu2muka6QZ7T3U option A, owner 2026-10-19) ----------
   The Friends button in the top bar, the drawer (bottom sheet on phones, a drawer with a backdrop on tablets, without one from 1200 px),
   chat, report, the friend profile head, Add friend after a game and Admin > Moderation. Scale values only. */
body.tight .szbtn { position: relative; gap: var(--sp-4); font-weight: var(--fw-title); flex: none; }
body.tight .szbtn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .szbtn .navico, body.tight .szbtn .navico svg { width: 18px; height: auto; display: inline-flex; }
body.tight .szonl { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ok); font-variant-numeric: tabular-nums; }
body.tight .szonl i { width: var(--sp-4); height: var(--sp-4); border-radius: var(--r-pill); background: var(--ok); display: inline-block; }
body.tight .szcount { display: inline-block; min-width: 20px; padding: 0 var(--sp-3); line-height: 20px; border-radius: var(--r-pill); background: var(--gold); color: var(--onAccent); font-size: var(--fs-xs); font-weight: var(--fw-display); text-align: center; font-variant-numeric: tabular-nums; box-sizing: border-box; pointer-events: none; }
body.tight .szbtn .szcount, body.tight .szi .szcount { position: absolute; top: -7px; right: -7px; }
/* T519: in the Friends + bell capsule (core.js hdrCap) the count hangs on the friends icon's top-right corner, clear of the line to the bell */
body.tight .szbtn .szico { position: relative; display: inline-flex; }
body.tight .szbtn .szico > .szcount { top: -15px; left: 10px; right: auto; z-index: 1; box-shadow: 0 0 0 2px var(--bar); }
@media (max-width: 700px) { body.tight .szbtn .szlbl { display: none; } body.tight .szbtn { padding: 0 var(--sp-4); } }
body.tight .szlayer { display: contents; }
body.tight .szscrim { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 66; background: rgba(0, 0, 0, .45); }
body.tight .szdrawer { position: absolute; right: 0; bottom: 0; z-index: 67; width: 380px; max-width: 100%; display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--bar); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(0, 0, 0, .18); transition: transform .18s ease; }
body.tight .szdrawer.phone { left: 0; width: 100%; height: var(--sheet-h); border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r-box) var(--r-box) 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: reduce) { body.tight .szdrawer { transition: none; } }
body.tight .szgrab { flex: none; display: flex; justify-content: center; padding: var(--sp-4) 0 var(--sp-2); touch-action: none; cursor: grab; }
body.tight .szgrab i { display: block; width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--line); }
body.tight .szhead { flex: none; display: flex; align-items: center; gap: var(--sp-4); min-height: 60px; padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line); box-sizing: border-box; }
body.tight .szh { margin: 0; flex: 1 1 auto; min-width: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); }
body.tight .szbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--sp-3) 0 var(--sp-5); overscroll-behavior: contain; }
body.tight .szfoot { flex: none; display: flex; gap: var(--sp-4); padding: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .szfoot > .btn { flex: 1 1 0; }
body.tight .szsect { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6) var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
body.tight .szsecbtn { margin-left: auto; min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-xs); font-weight: var(--fw-label); letter-spacing: 0; text-transform: none; color: var(--muted); }
/* T102: the list's sections fold (Online, Offline, Messages, Played with recently): the collapsible look (SCOPE 17.8) on a 44 px row */
body.tight .szsect.szsectf { padding: var(--sp-2) var(--sp-5) 0; }
body.tight .szsech { flex: 1 1 auto; min-height: 44px; gap: var(--sp-3); padding: 0 var(--sp-1); font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; border-radius: var(--r-ctl); }
body.tight .szsech:hover, body.tight .szsech:focus-visible { color: var(--text); }
body.tight .szsech .chev { font-size: var(--fs-xl); }
body.tight .szempty { padding: var(--sp-6); line-height: 1.5; }
body.tight .szrow { display: flex; align-items: center; gap: var(--sp-5); min-height: 60px; padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-6); box-sizing: border-box; }
body.tight .sztap { display: flex; align-items: center; gap: var(--sp-5); flex: 1 1 auto; min-width: 0; min-height: 44px; padding: var(--sp-2); margin-left: calc(-1 * var(--sp-2)); border: 0; border-radius: var(--r-ctl); background: transparent; color: inherit; text-align: left; font: inherit; }
body.tight button.sztap { cursor: pointer; }
body.tight button.sztap:hover, body.tight button.sztap:active { background: var(--panel); }
body.tight .sztap > .szcount { margin-left: auto; flex: 0 0 auto; }
body.tight .szwho { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
body.tight .szwho b, body.tight .szwho span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .szwho b { font-size: var(--fs-md); }
body.tight .szacc { color: var(--accent); }
body.tight .szacts { display: flex; gap: var(--sp-3); flex: none; align-items: center; }
body.tight .szrow.dim .szav { opacity: .5; filter: grayscale(1); }   /* offline friends dimmed, online ones stand out (owner 2026-10-22, vb74); Away is not dimmed */
body.tight .szrow.dim .szwho b { color: var(--muted); font-weight: var(--fw-text); }
body.tight .szrow.dim .szacts { opacity: .6; transition: opacity .15s ease; }   /* vb77: the whole offline row reads dim, its buttons too, until hovered or focused */
body.tight .szrow.dim:hover .szacts, body.tight .szrow.dim:has(:focus-visible) .szacts { opacity: 1; }
body.tight .szi { position: relative; width: 44px; height: 44px; flex: none; }
body.tight .szi.bare { border-color: transparent; }
body.tight .szi:disabled { opacity: .4; cursor: default; }
body.tight .szavwrap { position: relative; display: inline-flex; flex: none; }
body.tight .szav.sm { width: 28px; height: 28px; font-size: var(--fs-xs); }
body.tight .szpres { position: absolute; right: -2px; bottom: -2px; width: var(--sp-5); height: var(--sp-5); box-sizing: border-box; border-radius: var(--r-pill); border: 2px solid var(--bar); background: var(--muted); }
body.tight .szpres.on { background: var(--ok); } body.tight .szpres.play { background: var(--accent); }
body.tight .szpres.away { background: var(--warn); }   /* rich presence (2026-10-21): Away, the status token */
body.tight .szpres.else { background: linear-gradient(90deg, var(--warn) 50%, var(--bar) 50%); }   /* T568: Rule Ø open, the player elsewhere: half here */
body.tight .szrow .szwho span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }   /* rich presence: a long activity line takes two lines in the list */
body.tight .szpres.off { background: var(--bar); box-shadow: inset 0 0 0 2px var(--muted); }
body.tight .szsent { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ok); }
/* favourite friends (owner 2026-10-22, vb74): a gold star after the name, on top within Online and Offline (T98), the row's star button on
   hover or keyboard focus (touch: the profile and the Friends page menu); a favourite always shows the name star */
body.tight .szrow .szwho .szname { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .szstar { display: inline-flex; flex: none; color: var(--gold); font-style: normal; }
body.tight .szstar svg { display: block; }
body.tight .frnamerow { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
/* T430 (owner 2026-11-04): a friend is one line at every width: picture, name, presence · decks for friends, Challenge, (Open), ⋯ */
body.tight .frli.frline { flex-wrap: nowrap; align-items: center; min-height: 60px; padding: var(--sp-4) 0; cursor: pointer; }
body.tight .frli.frline > .pfavwrap { margin-top: 0; }
body.tight .frline .frwho { gap: 0; flex: 1 1 0; }
body.tight .frline .frname { font-size: var(--fs-md); }
body.tight .frline .frmeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .frline > .fracts { width: auto; flex: none; flex-wrap: nowrap; justify-content: flex-end; }
body.tight .frline > .fracts > .btn { flex: none; }
body.tight .frsheetshare { gap: var(--sp-5); align-items: center; padding: var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--line); }
body.tight .frsheetshare > .uico { color: var(--accent); }
body.tight .frli.dim .frav { opacity: .5; filter: grayscale(1); }
body.tight .frli.dim .frname { color: var(--muted); }
/* chat */
body.tight .szthread { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6); }
body.tight .szday { align-self: center; padding: var(--sp-3) 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
body.tight .szearlier { align-self: center; }
body.tight .szmsg { align-self: flex-start; max-width: 82%; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-box) var(--r-box) var(--r-box) var(--sp-2); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); font-size: var(--fs-md); line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
body.tight .szmsg.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 22%, var(--bar)); border-radius: var(--r-box) var(--r-box) var(--sp-2) var(--r-box); }
body.tight .szt { display: block; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }   /* T876: the same time style as the table chat (.tctime) */
body.tight .szmsg.blur .szmsgin { filter: blur(5px); user-select: none; }
body.tight .szmhide { display: flex; flex-direction: column; gap: var(--sp-2); align-self: flex-start; max-width: 82%; }
body.tight .szmhide.me { align-self: flex-end; align-items: flex-end; }
body.tight .szmhide > .szmsg { max-width: 100%; }
body.tight .szshow { min-height: 28px; padding: 0 var(--sp-2); font-size: var(--fs-xs); color: var(--accent); }
@media (pointer: coarse) { body.tight .szshow { min-height: 40px; } }
body.tight .szdeck { display: flex; align-items: center; gap: var(--sp-5); width: 100%; margin-top: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); color: inherit; text-align: left; font: inherit; cursor: pointer; white-space: normal; }
body.tight .szdeck:hover { border-color: var(--accent); }
body.tight .szdecksq { width: 40px; height: 40px; flex: none; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--imgbg)); }
body.tight .szcompose { flex: none; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--bar); }
body.tight .szcomprow { display: flex; align-items: flex-end; gap: var(--sp-4); }
/* T361: the composer while you edit a message, and the "edited" mark in a message's time line */
body.tight .szediting { display: flex; align-items: center; gap: var(--sp-3); padding-left: var(--sp-4); border-left: 2px solid var(--accent); color: var(--text2); }
body.tight .szedited { font-style: italic; }
body.tight .szfield { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 44px; max-height: 140px; box-sizing: border-box; padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--inset); color: var(--text); font: inherit; font-size: var(--fs-md); line-height: 1.35; resize: none; }
body.tight .szcc:empty { display: none; }
body.tight .szswitch { display: flex; align-items: center; gap: var(--sp-4); min-height: 40px; }
body.tight .szheld { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--bad); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--bad) 8%, var(--bar)); font-size: var(--fs-sm); line-height: 1.45; }
body.tight .szheld > b { color: var(--bad); }
body.tight .szstrikes { display: inline-flex; gap: var(--sp-2); }
body.tight .szstrikes i { display: inline-block; width: 22px; height: var(--sp-3); border-radius: var(--r-pill); background: var(--line); }
body.tight .szstrikes i.on { background: var(--bad); }
body.tight .sztimeout { padding: var(--sp-5); border: 1px solid var(--warn); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--warn) 10%, var(--bar)); font-size: var(--fs-sm); line-height: 1.45; }
/* report */
body.tight .szreport { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); }
body.tight .szreport p { margin: 0; line-height: 1.5; }
body.tight .szreport > .btn { align-self: flex-start; }
body.tight .szopt { display: flex; align-items: flex-start; gap: var(--sp-5); width: 100%; min-height: 44px; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: inherit; text-align: left; font: inherit; cursor: pointer; }
body.tight .szopt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
body.tight .szrad { flex: none; width: 20px; aspect-ratio: 1; margin-top: var(--sp-1); box-sizing: border-box; border-radius: var(--r-pill); border: 2px solid var(--line); }
body.tight .szopt.on .szrad { border: 6px solid var(--accent); }
body.tight .szsnap { padding: var(--sp-4) var(--sp-5); border: 1px dashed var(--line); border-radius: var(--r-ctl); line-height: 1.5; }
/* the friend profile head (friends.js) */
body.tight .frphead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6); }
body.tight .frpname { flex: 1 1 220px; min-width: 0; }
body.tight .frttl { font-size: var(--fs-xl); font-style: italic; font-weight: var(--fw-text); color: var(--gold); }
body.tight .frlvl { display: inline-flex; align-items: center; gap: var(--sp-3); padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-2); border-radius: var(--r-tag); background: color-mix(in srgb, var(--moon) 14%, transparent); color: var(--moon); font-size: var(--fs-sm); white-space: nowrap; }
body.tight .frlvl .moon { display: inline-flex; }
body.tight .frpacts { flex: none; }
body.tight .frrecline { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-5); }
body.tight .frrecbig { font-size: 36px; font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .frrecbig em { font-style: normal; font-weight: var(--fw-label); color: var(--muted); padding: 0 var(--sp-2); }
body.tight .frrecbar { display: flex; height: var(--sp-4); border-radius: var(--r-pill); overflow: hidden; background: var(--line); }
body.tight .frrecbar i { display: block; background: var(--accent); }
body.tight .frrecgl { display: flex; flex-direction: column; }
body.tight .frrecg { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
body.tight .frrecg:first-child { border-top: 0; }
body.tight .frwl { flex: none; width: 28px; height: 28px; border-radius: var(--r-tag); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: var(--fw-display); background: var(--chip); }
body.tight .frwl.w { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
body.tight .frwl.l { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
@media (max-width: 700px) { body.tight .frpacts { width: 100%; } body.tight .frpacts > .btn { flex: 1 1 0; } }
/* Add friend on the game-over panel (playtest.js) */
body.tight .szmeet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
/* Admin > Moderation (people.js tab, social.js view) */
body.tight .szmodpage { max-width: 1180px; }
body.tight .szmintro { margin: 0; max-width: 72ch; line-height: 1.5; }
body.tight .szmtiles { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
body.tight .szmtile { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); }
body.tight .szmn { font-size: var(--fs-3xl); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .szmtile.alert { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
body.tight .szmtile.alert .szmn { color: var(--bad); }
body.tight .szmcols { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { body.tight .szmcols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
body.tight .szmtable { overflow-x: auto; }
body.tight .szmod { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-md); }
body.tight .szmod th { padding: var(--sp-3) var(--sp-4); text-align: left; font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
body.tight .szmod td { padding: var(--sp-4); border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
body.tight .szmod .num { text-align: right; }
body.tight .szmod tr.sel td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
body.tight .szmname { min-height: 44px; font-weight: var(--fw-title); color: var(--text); }
body.tight .szmcards { display: none; flex-direction: column; gap: var(--sp-5); }
body.tight .szmcard { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); color: inherit; text-align: left; font: inherit; cursor: pointer; }
body.tight .szmcard.on { border-color: var(--accent); }
body.tight .szmkv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
body.tight .szmkv b { display: block; font-size: var(--fs-xl); color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { body.tight .szmtable { display: none; } body.tight .szmcards { display: flex; } }
body.tight .szrep { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); }
body.tight .szquote { margin: 0; padding: var(--sp-4) var(--sp-5); border-left: 3px solid var(--line); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; background: var(--inset); font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
body.tight .szqline + .szqline { margin-top: var(--sp-2); }
body.tight .szflag { color: var(--bad); font-weight: var(--fw-title); }
body.tight .szmini { margin-left: var(--sp-3); font-size: 11px; }
/* phones up to 480 px: the Friends button joins the header's action row, so the theme button shows only its dot there (as it already
   did up to 380 px; its aria-label names the palette) and the header stays two rows */
@media (max-width: 480px) { body.tight .themebtn .themename { display: none; } body.tight .themebtn { min-width: 40px; justify-content: center; }
  body.tight header.top .hdr-actions { gap: var(--sp-3); } body.tight header.top .szbtn { padding: 0 var(--sp-3); gap: var(--sp-2); } }
/* narrow phones (up to 380 px): the Friends button is its icon with the gold count; the online count waits in the drawer */
@media (max-width: 380px) { body.tight header.top { column-gap: var(--sp-3); } body.tight header.top .hdr-actions { gap: var(--sp-2); }
  body.tight header.top .szbtn { min-width: 40px; padding: 0; justify-content: center; } body.tight header.top .szbtn .szonl { display: none; } }
/* night mobile sweep 2026-11-04: phones up to 480 px while the Play pill carries a second segment (lobbies): the bar wrapped to two rows
   (390 px: 94 px high); the logo takes the smaller size and the online count waits in the drawer, as up to 380 px */
@media (max-width: 480px) { body.tight header.top:has(.pdseg + .pdseg) .logo svg { height: var(--h-xs); width: auto; }
  body.tight header.top:has(.pdseg + .pdseg) .szbtn { min-width: 40px; padding: 0; justify-content: center; } body.tight header.top:has(.pdseg + .pdseg) .szbtn .szonl { display: none; } }

/* ---------- step 4: components (design scale, 2026-10-19): the base rules in style.css now use the scale tokens; only new pieces here ---------- */
body.tight .stephead { gap: var(--sp-3); }
/* MB2: available mana by the player plate (bridge mana_available) */
/* T266/T274 (owner 2026-10-26): one line everywhere (never wraps), the total apart behind a thin rule, and each colour one pill with its
   symbol and count together ([W 3] [C 2]), so "5 W 3 C 2" no longer reads as "5 white, 3 generic, 2". The tooltip spells it out. */
body.tight .ptmav { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--ttext); }
body.tight .ptmav.zero { opacity: .6; }
/* AT (MB2 leftover): on phones a bare 0 says nothing, so an empty pool shows nothing there; desktop and tablet keep the muted "0 mana" */
@media (max-width: 700px) { body.tight .ptmav.zero { display: none; } }
body.tight .ptwrap.mob .ptmav.zero { display: none; }
body.tight .ptmavn { font-size: var(--fs-md); font-weight: var(--fw-display); }
body.tight .ptmavl { color: rgba(241, 236, 224, .75); margin-left: calc(-1 * var(--sp-1)); }
body.tight .ptmavp { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-1); padding-left: var(--sp-3); border-left: 1px solid rgba(241, 236, 224, .3); }
body.tight .ptmp { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-2) 0 var(--sp-1); border-radius: var(--r-pill); background: rgba(241, 236, 224, .13); line-height: 1.3; }
body.tight .ptmp > b { font-weight: 700; font-variant-numeric: tabular-nums; }
/* ticket #327: mana of any colour, a ring in the five mana colours (W U B R G clockwise from the top); em, so it follows the readout's size on every seat */
body.tight .ptmany { flex: none; width: 1.2em; height: 1.2em; border-radius: 50%; background: conic-gradient(var(--mana-W) 0 72deg, var(--mana-U) 0 144deg, var(--mana-B) 0 216deg, var(--mana-R) 0 288deg, var(--mana-G) 0 360deg); -webkit-mask: radial-gradient(circle, transparent 38%, #000 41%); mask: radial-gradient(circle, transparent 38%, #000 41%); }
body.tight .ptmp > .mglyph { -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
body.tight .ptmav.many .ptmavl { display: none; }   /* four or more colours: the bare total keeps the line short (the rule and the tooltip say what it is) */
@media (max-width: 700px) { body.tight .ptmavl { display: none; } }
body.tight .pttbl.ptcol .ptmavl { display: none; }
body.tight .ptcdmg > b { white-space: nowrap; }
body.tight .ptttlrow { display: contents; }   /* FR 7: the title and commander damage; on the table each keeps its line (order), on phones one line so the plate keeps its height */
body.tight .ptname > .ptttlrow > .ptcdmg { order: 1; } body.tight .ptname > :is(.tag, .ptcurses) { order: 2; }
body.tight .pttbl.ptcol .ptttlrow { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
body.tight .pttbl.ptcol .ptttlrow > .ptcdmg { flex: 0 0 auto; font-size: var(--fs-xs); line-height: 1.15; }
body.tight .pttbl.ptcol .ptttlrow > .ptcdmg :is(.ptcdn, .ptcdc, .ptcdmax) { display: none; }   /* the crest and the count; the title and label spell it out */
body.tight .pttbl.ptcol .ptmav { gap: var(--sp-2); } body.tight .pttbl.ptcol .ptmavp { padding-left: var(--sp-2); }   /* FR 7: the mana readout stays one line on phones (it may run under the hand count) */
/* T266: the phone and tablet tables are tight on width: smaller symbols, slimmer pills (still one line, nothing hidden) */
body.tight .pttbl:is(.ptcol, .ptpph) .ptmp { gap: 0; padding: 0 var(--sp-1) 0 1px; } body.tight .pttbl:is(.ptcol, .ptpph) .ptmp > b { margin-left: 1px; }
body.tight .pttbl:is(.ptcol, .ptpph) .ptmp > :first-child { width: 13px !important; height: auto !important; aspect-ratio: 1; }   /* RZ.glyph sizes inline */
body.tight .pttbl:is(.ptcol, .ptpph, .ptpod) .ptmav.many { gap: var(--sp-1); font-size: 11px; } body.tight .pttbl:is(.ptcol, .ptpph, .ptpod) .ptmav.many .ptmavp { gap: 0; padding-left: var(--sp-1); } body.tight .pttbl:is(.ptcol, .ptpph, .ptpod) .ptmav.many .ptmp + .ptmp { margin-left: 1px; }
body.tight .pttbl:is(.ptcol, .ptpph, .ptpod) .ptmav.many .ptmp { padding-right: var(--sp-1); } body.tight .pttbl:is(.ptcol, .ptpph, .ptpod) .ptmav.many .ptmp > :first-child { width: 12px !important; height: auto !important; aspect-ratio: 1; }

/* ---------- your profile (/profile, Package P 2026-10-19, mockup Profile.dc.html): a section menu on the left (desktop), section chips on
   top up to 1100 px, fold-outs on phones (up to 700 px). Sections and parts come from profile.js (RZ.PROFILE_SECTIONS, RZ.PROFILE_PARTS). ---------- */
body.tight .prfwrap { display: flex; align-items: flex-start; gap: var(--sp-7); width: 100%; max-width: 1360px; margin: 0 auto; }
body.tight .prfnav { position: sticky; top: 0; flex: 0 0 220px; display: flex; flex-direction: column; gap: var(--sp-1); }
body.tight .prfnavhead { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0 0 var(--sp-4); }
body.tight .prfnav .label { padding: 0 var(--sp-5); }
body.tight .prfnavbtn { display: flex; align-items: center; gap: var(--sp-4); min-height: 40px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text2); font-size: var(--fs-md); font-weight: var(--fw-label); text-align: left; }
/* the menu wears the top bar's menu look (style.css .navbtn, owner 2026-10-20 "the same styling, not the colours"): an icon per section in
   the accent, the current one filled with the accent (--onAccent text), hover and focus an accent tint; the tablet chips match */
body.tight .prfnavbtn { color: var(--text); }
body.tight .prfnavbtn .uico, body.tight .prfchip .uico, body.tight .prfheadico { color: var(--accent); display: inline-flex; flex: none; }
body.tight .prfnavlbl { min-width: 0; }
body.tight .prfnavbtn:not(.on):hover, body.tight .prfnavbtn:not(.on):focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
body.tight .prfnavbtn.on { background: var(--accent); color: var(--onAccent); }
body.tight .prfnavbtn.on .uico, body.tight .prfchip.on .uico { color: var(--onAccent); }
body.tight .prfchips { display: none; }
body.tight .prfchip { min-height: var(--h-sm); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--text2); font-size: var(--fs-sm); font-weight: var(--fw-label); display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .prfchip { color: var(--text); }
body.tight .prfchip:not(.on):hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
body.tight .prfchip.on { border-color: var(--accent); background: var(--accent); color: var(--onAccent); }
body.tight .prfmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-6); }
body.tight .prfsec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-box); scroll-margin-top: var(--sp-6); }
body.tight .prfhead { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-6) var(--sp-6) var(--sp-5); }
body.tight .prfhead h2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); display: flex; align-items: center; gap: var(--sp-4); }
body.tight button.prfhead { width: 100%; min-height: 64px; padding: var(--sp-5) var(--sp-6); border: 0; border-radius: var(--r-box); background: transparent; color: var(--text); text-align: left; font: inherit; }
body.tight .prfsum { font-size: var(--fs-sm); color: var(--muted); }
body.tight .prfchev { flex: none; width: var(--h-xs); height: var(--h-xs); border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text2); font-size: var(--fs-xl); line-height: 1; transition: transform .2s ease; }
body.tight button.prfhead[aria-expanded="true"] .prfchev { transform: rotate(90deg); color: var(--accent); border-color: var(--accent); }
body.tight .prfbody { display: flex; flex-direction: column; gap: var(--sp-6); padding: 0 var(--sp-6) var(--sp-6); }
body.tight .prfgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7); align-items: start; }
body.tight .prfblock { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
body.tight .prfbh { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-title); color: var(--text); }
body.tight .prfbh .secnote { font-size: var(--fs-sm); margin-left: var(--sp-1); }
/* Overview: the picture (no ring here: Q14 Option A), the name, then Moonlight and Tales side by side */
body.tight .prfov { display: flex; align-items: center; gap: var(--sp-7); }
body.tight .prfov > .prfavf { margin: var(--sp-6); }   /* T427: room for the crest, a supporter's ring and aura: they stay inside the card, clear of the heading */
body.tight .prfav { flex: none; width: 128px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--chip); color: var(--accent); font-size: var(--fs-3xl); font-weight: var(--fw-display); box-shadow: 0 0 0 1px var(--line); }
body.tight .prfav img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .prfname { font-size: var(--fs-3xl); font-weight: var(--fw-title); line-height: 1.1; overflow-wrap: anywhere; }
body.tight .prfnum.mn { color: var(--moon); }
body.tight .prfnum.tl { color: var(--tale); }
body.tight .prftag.mn { color: var(--moon); background: color-mix(in srgb, var(--moon) 14%, transparent); }
body.tight .prftag.tl { color: var(--tale); background: color-mix(in srgb, var(--tale) 14%, transparent); }
body.tight .prfbar { height: var(--sp-4); border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
body.tight .prfbar > i { display: block; height: 100%; border-radius: var(--r-pill); }
body.tight .prfbar.mn > i { background: linear-gradient(90deg, var(--moon2), var(--moon)); }
body.tight .prfbar.tl > i { background: var(--tale); }
/* Friends & sharing */
body.tight .prffr { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
body.tight .prffr:first-child { border-top: 0; padding-top: 0; }
/* Account: the parts moved from the side panel (core.js RZ.acct) */
body.tight .prfstart { align-self: flex-start; }
body.tight .prfleft { text-align: left; }
body.tight .prfedit { width: 100%; }
body.tight .prfbreak { word-break: break-all; }
body.tight .prfwarnbox { border-color: var(--warn); }
body.tight .prfmsg { color: var(--sec); }
body.tight .prfcenter { text-align: center; }
body.tight a.prfa { color: var(--accent); }
body.tight a.prflink { text-decoration: none; display: inline-flex; align-items: center; }
body.tight .styleopt.on { border-color: var(--accent); }
/* T145: the cartoon Tamiyo of each experience answer (owner art 2026-10-24) */
body.tight .styleopt { display: flex; align-items: center; gap: var(--sp-5); }
body.tight .styleface { flex: 0 0 auto; width: var(--h-lg); height: var(--h-lg); object-fit: contain; }
@media (max-width: 700px) { body.tight .styleface { width: var(--h-md); height: var(--h-md); } }
body.tight .prfend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  body.tight .prfnav { display: none; }
  body.tight .prfchips { display: flex; flex-wrap: wrap; gap: var(--sp-2); position: sticky; top: calc(-1 * var(--sp-6)); z-index: 2; margin: calc(-1 * var(--sp-6)) auto 0; width: 100%; max-width: 1360px; padding: var(--sp-6) 0 var(--sp-4); background: var(--bg); }   /* it also covers the page's top padding, so nothing shows above it */
  body.tight .prfsec { scroll-margin-top: calc(var(--h-sm) + var(--sp-7)); }
}
@media (max-width: 700px) {
  body.tight .prfchips { display: none; }
  body.tight .prfsec { scroll-margin-top: var(--sp-4); }
  body.tight .prfmain { gap: var(--sp-5); }
  body.tight .prfbody { padding: 0 var(--sp-5) var(--sp-6); }
  body.tight .prfgrid { grid-template-columns: minmax(0, 1fr); }
  body.tight .prfov { flex-direction: column; text-align: center; gap: var(--sp-5); }
  body.tight .prfov .row { justify-content: center; }
  body.tight .prfav { width: 104px; }
}
@media (prefers-reduced-motion: reduce) { body.tight .prfchev { transition: none; } }
/* My Tale (Package T, 2026-10-19): the profile and the Tamiyo page in one; your Favour, her memories, today's table */
body.tight .prfmem { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-5) 0; border-top: 1px solid var(--line); font-size: var(--fs-md); }
body.tight .prfmem:first-child { border-top: 0; }
body.tight .prfmembtns { flex: 0 0 auto; }
body.tight .prftoday { margin-top: var(--sp-3); width: min(360px, 100%); }
body.tight .prftoday .prfbar { background: color-mix(in srgb, var(--tale) 18%, var(--track)); }   /* the plain track vanishes on the card */   /* T74: a line in the card's Tales block, no box of its own */
body.tight .prfcenterrow { justify-content: center; }
@media (max-width: 700px) {
  body.tight .prfmem { flex-wrap: wrap; }
  body.tight .prfmembtns { margin-left: auto; }
}
/* the Moonlight ladder holds six columns while level 0 leads it (apprentice): one row, the bar from the first moon to the last */
@media (min-width: 801px) {
  body.tight .ladder { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  body.tight .ladder:has(> .ladcol:nth-child(7)) .ladbar { left: calc(100% / 12); right: calc(100% / 12); }
}
/* the level-up ceremony fits every window (Package T): the card scrolls under the moon and its buttons stay in view at the bottom */
body.tight .lu-core { max-height: calc(100dvh - var(--lucy, min(36dvh, 300px)) + 55px - var(--sp-6)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.tight .lu-foot { position: sticky; bottom: 0; align-self: stretch; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-4); padding: var(--sp-5) 0 var(--sp-2); }
/* #157: only a card that scrolls needs the shade behind its buttons (levelup.js sets .lu-scroll); otherwise it drew a dark band */
body.tight .lu-core.lu-scroll .lu-foot { background: linear-gradient(to bottom, transparent, rgba(4, 3, 10, .92) 30%); }
/* #157: the level-up screen is always dark, so its text and controls keep the dark theme's tokens in the light theme too.
   #315: Tamiyo's portal (profile.js portalView) is always dark as well: its plain buttons and body text were dark on dark in the light theme */
body.tight :is(.lu, .portalbg) { --text: #ece9e2; --text2: #c9c6bf; --muted: #9aa0ad; --line: #5d6270; --moon: #bcd3f7; --moon2: #7fa3dc; color: var(--text); color-scheme: dark; }
/* the slim side panel (core.js acctPanel, Package P 2026-10-19, mockup SidePanel.dc.html): quick access only; a full-screen sheet on phones */
body.tight .acctslim { gap: var(--sp-6); padding: var(--sp-6) var(--sp-7); }
body.tight .acctwho { display: flex; align-items: center; gap: var(--sp-6); }
body.tight .acctname { font-size: var(--fs-2xl); font-weight: var(--fw-title); line-height: 1.1; overflow-wrap: anywhere; }
body.tight .acctsec { display: flex; flex-direction: column; gap: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .acctsec .thinkswitch { justify-content: flex-start; }
body.tight .acctslim .arpicks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tight .acctslim .prfnum.mn { color: var(--moon); }
body.tight .acctslim .prfnum.tl { color: var(--tale); }
@media (max-width: 700px) { body.tight .acctslim { width: 100%; border-left: 0; padding: var(--sp-5) var(--gutter) var(--sp-6); } }
body.tight .secnote.muted { color: var(--muted); }   /* a part that is not set yet (Profile > Magic experience) */

/* ---------- Explore > Sets > Precons (Package H, owner mockup round 2, 2026-10-19) ---------- */
body.tight .pctabs { display: flex; justify-content: flex-start; }   /* T369: on the left of the page */
body.tight .pctabs .seg { padding: var(--sp-1); }
body.tight .pctabs .seg button { min-height: var(--h-md); padding: 0 var(--sp-6); font-size: var(--fs-md); }
body.tight .pcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); gap: var(--sp-5); }   /* small tiles (owner 2026-10-19: "way too big"): 3 a row at 1024, 4 at 1440, 8 at 2500 */
body.tight .pctile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); overflow: hidden; min-width: 0; }
body.tight .pctile.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
body.tight .pctile:not(.on):hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
body.tight .pcpick { display: flex; flex-direction: column; padding: 0; margin: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 0; min-height: 0; }
body.tight .pcart { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: 50% 25%; background: var(--imgbg2); }   /* the whole art crop (owner 2026-10-20: was a 7:2 slit) */
body.tight .pctile.shoponly .pcart { object-fit: cover; object-position: 50% 42%; }   /* a sealed box photo: the strip shows the box's artwork, like the other tiles show their commander's (owner 2026-10-20) */
body.tight .pcnoart { display: flex; align-items: flex-end; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-lg); font-weight: var(--fw-title); background: linear-gradient(135deg, var(--imgbg), var(--imgbg2)); }
body.tight .pchead { display: flex; align-self: stretch; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5) 0; }
body.tight .pctile .pcname { font-size: var(--fs-md); max-width: none; }
body.tight .pcbody { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5) var(--sp-5); margin-top: auto; }
body.tight .pcbody .btn { flex: 1 1 0; }
body.tight .pcbr { gap: var(--sp-2); }
body.tight .pcpow { gap: var(--sp-4); }
body.tight .pcpow .muted { white-space: nowrap; }
body.tight .pcshop { color: var(--text2); }
body.tight .pcshop b { color: var(--sec); }
body.tight .pcdet { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); scroll-margin-top: var(--sp-8); }
body.tight .pchero { display: flex; gap: var(--sp-6); align-items: flex-start; }
body.tight .pchero img { width: 280px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-box); flex: none; background: var(--imgbg2); }
body.tight .pctitle { font-size: var(--fs-3xl); line-height: 1.1; margin: 0; }
body.tight .pcup { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--card); }
body.tight .pclistwrap { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: var(--sp-7); align-items: start; padding-top: var(--sp-6); border-top: 1px solid var(--line); }   /* the list, always open: the deck view's showcase and list (owner 2026-10-19) */
body.tight .pclistwrap.nocmd { grid-template-columns: minmax(0, 1fr); }
body.tight .pcshow { position: sticky; top: calc(var(--barh) + var(--sp-5)); min-width: 0; }
body.tight .pcdl { min-width: 0; }
@media (max-width: 900px) { body.tight .pclistwrap { grid-template-columns: minmax(0, 1fr); } body.tight .pcshow { display: none; } }
body.tight .precondoor { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--accent); border-radius: var(--r-box); background: var(--panel); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
body.tight .precondoor:hover { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
@media (max-width: 700px) {
  body.tight .pchero { flex-direction: column; }
  body.tight .pchero img { width: 100%; aspect-ratio: 2 / 1; }
  body.tight .pctabs, body.tight .pctabs .seg { width: 100%; }
  body.tight .pctabs .seg button { flex: 1 1 0; }
  body.tight .pctitle { font-size: var(--fs-2xl); }
}

/* ---------- Titles & achievements (Package C, 2026-10-19; achievements.js, mockup Titles.dc.html) ---------- */
body.tight .rztitle { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; color: color-mix(in srgb, var(--tale) 85%, var(--text)); }
body.tight .rztitle.prftitle { font-size: var(--fs-lg); }
/* the side panel's title dropdown (achievements.js RZ.titleDrop, owner 2026-10-21): earned to wear, then locked with an i, then secret */
body.tight .titledrop { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-xs); padding: 0 var(--sp-3); max-width: 100%; border: 1px solid transparent; border-radius: var(--r-ctl); background: transparent; color: var(--text); text-align: left; }
body.tight .titledrop:hover, body.tight .titledrop[aria-expanded="true"] { border-color: color-mix(in srgb, var(--tale) 45%, var(--line)); background: color-mix(in srgb, var(--tale) 6%, transparent); }
body.tight .titledrop .rztitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.tight .titledrop .chev { color: var(--muted); font-size: var(--fs-xs); }
body.tight .titledropwrap { position: relative; min-width: 0; max-width: calc(100% + var(--sp-3)); margin-left: calc(-1 * var(--sp-3)); }
body.tight .titlelist { position: absolute; z-index: 5; top: calc(100% + var(--sp-2)); left: 0; width: 200px; list-style: none; margin: 0; padding: var(--sp-1); max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
body.tight .titlelist .tdrow { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-tag); background: transparent; color: var(--text); text-align: left; font-size: var(--fs-sm); }
body.tight .titlelist button.tdrow:hover { background: var(--chip); }
body.tight .titlelist .tdrow.on { color: var(--tale); font-weight: 600; }
body.tight .titlelist .tdrow.locked { color: var(--muted); }
body.tight .titlelist .tdsep { padding: var(--sp-3) var(--sp-4) var(--sp-1); }
body.tight .achwrap { display: flex; flex-direction: column; gap: var(--sp-6); min-width: 0; }
body.tight .achlbl { color: var(--tale); }
body.tight .achshow { justify-content: flex-start; }
body.tight .achchips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .achname { font-size: var(--fs-lg); }
/* T341 (owner 2026-10-28, mockup #t341): one track per achievement, tier medallions linked by a line, the progress under each */
body.tight .achtitle { flex-wrap: wrap; }
body.tight .achtracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-3); align-items: start; }
body.tight .achtr { --md: 40px; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); min-width: 0; }
body.tight .achtr.earned { border-color: color-mix(in srgb, var(--gold) 25%, var(--line)); }
body.tight .achtr.achsecret { flex-direction: row; align-items: center; gap: var(--sp-3); border-style: dashed; background: transparent; }
body.tight .achtag { margin-left: auto; }
body.tight .achsteps { display: flex; margin: 0; padding: 0; list-style: none; min-width: 0; }
body.tight .achstep { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
body.tight .achstep::before { content: ''; position: absolute; top: calc(var(--md) / 2 - 1px); right: 50%; width: 100%; border-top: 2px solid var(--line); }
body.tight .achstep.first::before { display: none; }
body.tight .achmd { position: relative; z-index: 1; width: var(--md); aspect-ratio: 1; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; }
body.tight .achmd .medal { width: 100%; }
body.tight .achstep.got::before { border-top-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
body.tight .achmd.sel, body.tight .achmd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .achst { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--text2); }
body.tight .achsp { white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); }
body.tight .achstep.next .achsp { color: var(--gold); font-weight: var(--fw-title); }
body.tight .achsel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .achsel > .col { flex: 1 1 200px; }
@media (max-width: 1100px) { body.tight .achtracks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  body.tight .achtr { padding: var(--sp-5); }
  body.tight .achsteps.many { --md: 28px; }
  body.tight .achsteps.many .achat { display: none; }
  body.tight .achsteps.many .achstep:not(.next) .achsp { visibility: hidden; }
  body.tight .achsteps.many .achsp { font-size: 11px; }
}

/* ---------- Level 0, Tamiyo's apprenticeship (Package B2, apprentice.js; mockup Apprentice.dc.html) ---------- */
body.tight .apprcard { display: flex; gap: var(--sp-7); padding: var(--sp-7); border-radius: var(--r-box); border: 1px solid var(--gold); background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 16%, var(--card)), color-mix(in srgb, var(--gold) 10%, var(--card))); }
body.tight .apprcard.around { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: var(--card); padding: var(--sp-6); gap: var(--sp-6); }
body.tight .apprface { flex: none; align-self: flex-start; display: block; width: 140px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
body.tight .apprface.sm { width: 72px; }
body.tight .apprface.big { width: 150px; align-self: center; }
body.tight .apprface img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tight .appreyebrow { color: var(--gold); }
body.tight .apprbig { font-size: var(--fs-2xl); line-height: 1.2; }
body.tight .apprbig.sm { font-size: var(--fs-xl); }
body.tight .apprlvl { gap: var(--sp-2); color: var(--moon); background: color-mix(in srgb, var(--moon) 14%, transparent); }
body.tight .apprmoon { flex: none; display: inline-flex; margin-top: var(--sp-1); }
body.tight .apprmoonc { color: var(--moon); }
body.tight .apprtalec { color: var(--tale); }
body.tight .apprgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .apprtask { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-lg); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
body.tight .apprtick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--muted); color: var(--onAccent); }
body.tight .apprtask.done .apprtick { border-color: var(--ok); background: var(--ok); }
body.tight .apprtask.done .apprtt { color: var(--muted); text-decoration: line-through; }
body.tight .apprgo { flex: none; gap: var(--sp-3); }
body.tight .apprgo .navdot { margin-left: 0; }
body.tight .apprbar { max-width: 420px; }
body.tight .apprsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.tight .apprwc { border-color: var(--gold); }
body.tight .apprwcbody { align-items: center; text-align: center; gap: var(--sp-5); padding: var(--sp-8) var(--sp-7) var(--sp-7); }
body.tight .apprwcbody h2 { font-size: var(--fs-3xl); line-height: 1.1; }
body.tight .apprmoontext { color: var(--moon); }
body.tight .apprbtns { justify-content: center; }
body.tight .lu-gift { display: flex; flex-direction: column; gap: var(--sp-3); width: min(440px, calc(100vw - 32px)); margin: var(--sp-5) auto 0; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-box); border: 1px solid var(--gold); background: rgba(20, 16, 34, .72); text-align: left; color: #f3e4bd; }
body.tight .lu-gift.lu-held { border-color: color-mix(in srgb, var(--moon) 60%, transparent); color: #eef4ff; }
body.tight .lu-gift .uico { color: var(--gold); }
body.tight .lu-bar { display: block; height: var(--sp-4); border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); overflow: hidden; }
body.tight .lu-bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--moon2), var(--moon)); }
@media (max-width: 1100px) { body.tight .apprface:not(.sm):not(.big) { width: 110px; } }
@media (max-width: 700px) {
  body.tight .apprcard { flex-direction: column; padding: var(--sp-6); gap: var(--sp-5); }
  body.tight .apprface:not(.big) { width: 72px; }
  body.tight .apprface.big { width: 96px; }
  body.tight .apprgrid { grid-template-columns: minmax(0, 1fr); }
  body.tight .apprwcbody h2 { font-size: var(--fs-2xl); }
}

/* ---------- Voice and video at the table (roadmap voicevideo, package V3, 2026-10-19; playtest.js MV / vv*, playmedia.js; mockup
   6sWzWSXMqafR97hG9Bp8WS, signed off with the non-modal join panel). The opponent's video fills their medallion (the life badge stays under it)
   with a green ring while they talk (still for reduced motion); the badge on the medallion opens the tile menu; your view sits above your name
   (wide) or in the bar (column); the Mic / Camera / Settings bar is red when off. The join and settings panels dock above the bar with no
   backdrop, so the decision corner (deck, mulligan) stays usable. The table is dark in both themes; panels, menus and cards take the theme's
   tokens like the decision corner does. ---------- */
body.tight .ptwrap.ptt { --vvon: #5fd08a; --vvoff: #e0605a; }
body.tight .vvvid { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b1016; }
body.tight .vvvid.self { transform: scaleX(-1); }
body.tight .vvmedv { display: block; width: 100%; height: 100%; }
body.tight .vvmedv .vvvid { border-radius: 50%; }
body.tight .ptmed.vvtap { cursor: pointer; }
body.tight .ptmed.vvtap:focus-visible, body.tight .vvbadge:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.tight .vvhid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 24, .55); color: var(--ttext); pointer-events: none; }
/* the ring while they talk: behind the medallion, so the pulse (thinkpulse, style.css) grows out from under its rim */
body.tight .vvring { position: absolute; z-index: 33; left: calc(50% - var(--av) / 2 - 8px); top: 10px; width: calc(var(--av) + 16px); aspect-ratio: 1; box-sizing: border-box; border-radius: 50%;
  border: 3px solid var(--vvon); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vvon) 30%, transparent), 0 0 24px color-mix(in srgb, var(--vvon) 50%, transparent); pointer-events: none; opacity: 0; transition: opacity 160ms; }
body.tight .ptmedwrap.vvspeak .vvring { opacity: 1; }
/* 2026-10-21 (owner): the ring follows the voice: --vvlvl 0..1 (playtest.js vvLevelPaint, smoothed in playmedia.js) swells it and its glow;
   only while they talk (vvspeak), so silence stays calm. Your Mic button gets a small level bar (.vvlvl). Reduced motion: the still ring. */
body.tight .vvring::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 28px 8px color-mix(in srgb, var(--vvon) 70%, transparent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  body.tight .ptmedwrap.vvspeak .vvring { transform: scale(calc(1 + var(--vvlvl, 0) * .2)); transition: opacity 160ms, transform 90ms linear; }
  body.tight .ptmedwrap.vvspeak .vvring::after { opacity: var(--vvlvl, 0); transition: opacity 90ms linear; }
}
@media (prefers-reduced-motion: reduce) { body.tight .vvring { transition: none; } }
body.tight .pttbl.ptcol .vvring { left: 0; top: 0; width: 100%; }
/* the badge on the medallion: the sound state, and the visible way into the tile menu (44 px target, 32 px disc) */
body.tight .vvbadge { position: absolute; z-index: 36; width: var(--h-md); height: var(--h-md); padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ttext); }
body.tight .vvbadgei { display: inline-flex; width: 32px; aspect-ratio: 1; border-radius: 50%; align-items: center; justify-content: center; background: var(--tink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tline) 70%, transparent), 0 4px 10px rgba(0, 0, 0, .5); }
body.tight .vvbadge.off .vvbadgei { color: var(--vvoff); box-shadow: 0 0 0 2px var(--vvoff), 0 4px 10px rgba(0, 0, 0, .5); }
body.tight .pttbl.ptwide .vvbadge { left: calc(50% + var(--av) / 2 - 16px); top: calc(var(--av) - 30px); }
body.tight .pttbl.ptcol .vvbadge { right: -16px; bottom: -12px; }
body.tight .pttbl.ptcol .ptplate.opp.vvlive .ptmedwrap { --av: 64px; }   /* the video gets a bigger disc; only the medallion grows, the plate keeps its row */
/* under the medallion (wide) or the plate (column): the tile menu, a problem, the non-friend chip, Tap to hear */
body.tight .vvslot { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
body.tight .pttbl.ptwide .vvslot { position: absolute; z-index: 70; left: 50%; top: calc(var(--av) + 48px); width: min(420px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
body.tight .pttbl.ptwide .vvslot > * { pointer-events: auto; }
body.tight .pttbl.ptcol > .vvslot { position: relative; z-index: 70; margin: var(--sp-2) var(--sp-4) 0; }
body.tight .pttbl.ptcol .vvslot > .vvmenu { position: absolute; left: 0; top: 0; }
body.tight .vvbanner { display: flex; flex-direction: column; gap: var(--sp-3); width: 100%; box-sizing: border-box; padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-box);
  background: var(--panel); color: var(--text2); font-size: var(--fs-sm); line-height: 1.45; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
body.tight .vvbanner.warn { border-left-color: var(--warn); }
body.tight .vvbanner b { color: var(--text); font-size: var(--fs-md); }
body.tight .vvbanner .vvrow { justify-content: flex-start; }
body.tight .vvline { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: #c9c6bf; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
body.tight .vvchip { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); width: 100%; box-sizing: border-box; padding: var(--sp-5) var(--sp-6); text-align: center; border: 1px solid var(--accent); border-radius: var(--r-box);
  background: var(--panel); color: var(--text2); font-size: var(--fs-sm); line-height: 1.45; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
body.tight .vvchip b { color: var(--text); }
body.tight .vvrow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); width: 100%; }
body.tight .vvrow .btn, body.tight .vvhear { min-height: var(--h-md); gap: var(--sp-3); }
body.tight .vvchip .vvrow .btn, body.tight .vvpanel .vvrow .btn { flex: 1 1 auto; }
/* the tile menu */
body.tight .vvmenu { display: flex; flex-direction: column; width: min(260px, 100%); box-sizing: border-box; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bar); color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
body.tight .vvmi { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-md); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font-size: var(--fs-md); text-align: left; }
body.tight .vvmi .uico { color: var(--muted); }
body.tight .vvmi:active, body.tight .vvmi:focus-visible { background: var(--panel); }
@media (hover: hover) { body.tight .vvmi:hover { background: var(--panel); } }
body.tight .vvmi.bad, body.tight .vvmi.bad .uico { color: var(--bad); }
body.tight .vvhr { width: 100%; margin: var(--sp-2) 0; border: 0; border-top: 1px solid var(--line); }
body.tight .vvvol { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-2) var(--sp-5); font-size: var(--fs-xs); color: var(--muted); }
body.tight .vvvol input[type=range] { width: 100%; min-height: var(--h-md); margin: 0; accent-color: var(--accent); }
body.tight .vvpanel .vvvol { padding: 0; }
/* the bar (owner 2026-10-21): right under the top-right tools, a column of Mic, Camera, Settings and Fold; folded: a tab on the right edge
   with a live dot and the mic and camera icons (green on, red struck off); Join and Settings open left of it */
body.tight .vvlook { display: inline-flex; align-items: center; gap: var(--sp-1); }
/* the camera and microphone in the board's tool bar (owner 2026-10-21): the bar's left end; open, the controls unfold to its left
   (absolute, so the bar does not move) and the Join / Settings panels hang below */
body.tight .ptavw { position: relative; display: flex; align-items: center; }
body.tight .pttool.ptav { width: auto; padding: 0 var(--sp-4); justify-content: center; }   /* #67: the mic and camera icons (16 + 16) sit inside the box; the live dot is left out here (the icons' green and red say it) */
body.tight .pttool.ptav .vvdot, body.tight .ptphtop .vvtop .vvdot { display: none; }
body.tight .pttool.ptav.open { color: var(--tgold2); box-shadow: inset 0 0 0 1px var(--tline); }
/* T24 (owner 2026-10-21, vb50): unfolded, the controls are bar icons: 40 x 40 like every .pttool, the bar's own 4 px gap, its corners and
   centre line; the state stays in the colour and the thin outline (green on, red off), no panel behind them; icons only (the labels are
   in aria-label and the tooltip), so the row stays clear of the opponent's piles (1v1) and the top-left seat's name (pods) */
body.tight .ptavw > .vvbar { position: absolute; right: calc(100% + var(--sp-2)); top: 0; bottom: 0; transform: none; z-index: 91; padding: 0; gap: var(--sp-2); align-items: center;
  border-radius: 0; background: none; box-shadow: none; }
body.tight .pttools { --avb: 40px; }   /* the bar icon's size (.pttool): 40, a touch tablet's 44 */
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .pttools { --avb: var(--h-md); }
body.tight .ptavw > .vvbar .vvbtn { box-sizing: border-box; flex: none; flex-direction: row; gap: 0; width: var(--avb); height: var(--avb); min-height: 0; padding: 0; border-radius: var(--r-box); background: rgba(9, 13, 18, .5); }
body.tight .ptavw > .vvbar .vvbtn.off { background: color-mix(in srgb, var(--vvoff) 14%, rgba(9, 13, 18, .5)); }
body.tight .ptavw > .vvbar .vvbl { display: none; }
body.tight .ptavw > .vvbar .vvlvl { left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-2); }
body.tight .pttool.ptav { height: 40px; min-height: 0; }   /* touch too: the 44 px hit area is the .pttool::after (pointer: coarse) */
body.tight .pttbl.ptpod .pttools:has(.ptavw.open > .vvbar) .ptcbpill { right: calc(100% + 8px + 2 * var(--avb) + 2 * var(--sp-2) + 8px); }   /* the combo pill moves left of the unfolded Mic and Voices */
body.tight .pttbl.ptpod .pttools:has(.ptavw.open > .vvbar > .vvbtn:nth-child(3)) .ptcbpill { right: calc(100% + 8px + 3 * var(--avb) + 3 * var(--sp-2) + 8px); }   /* T443: Settings (and Camera) unfolded too */
body.tight .pttbl.ptpod .pttools:has(.ptavw.open > .vvbar > .vvbtn:nth-child(4)) .ptcbpill { right: calc(100% + 8px + 4 * var(--avb) + 4 * var(--sp-2) + 8px); }
body.tight .pttbl.ptwide .pttools:has(> .pttoolsx) .ptcbpill { top: calc(100% + 72px); }   /* T28: the 2-player combo pill under "N watching" */
body.tight .ptavw > .vvpanel { position: absolute; top: calc(100% + var(--sp-4)); right: 0; z-index: 91; width: 320px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
body.tight .vvlook .on { display: inline-flex; color: var(--vvon); }
body.tight .vvlook .off { display: inline-flex; color: var(--vvoff); }
body.tight .vvdot { width: 8px; height: var(--sp-4); border-radius: 50%; background: #7d848f; }
body.tight .vvlook.live .vvdot { background: var(--vvon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vvon) 25%, transparent); }
body.tight .vvbar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-box); background: rgba(14, 20, 26, .92);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 22%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
body.tight .vvbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); width: 64px; min-height: var(--h-lg); padding: 0; border: 1px solid color-mix(in srgb, var(--tline) 22%, transparent);
  border-radius: var(--r-ctl); background: transparent; color: #c9c6bf; font-size: 11px; }
body.tight .vvbtn.on { color: var(--vvon); border-color: color-mix(in srgb, var(--vvon) 55%, transparent); }
body.tight .vvbtn.off { color: var(--vvoff); border-color: color-mix(in srgb, var(--vvoff) 60%, transparent); background: color-mix(in srgb, var(--vvoff) 12%, transparent); }
body.tight .vvbtn.open { color: var(--tgold2); border-color: var(--tline); }
body.tight .vvbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .vvbtn:active { transform: translateY(1px); }
body.tight .vvbl { line-height: 1; }
body.tight .vvbtn#vvmic { position: relative; }
body.tight .vvlvl { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-1); height: 3px; border-radius: var(--r-pill); background: var(--vvon); opacity: .85;
  transform: scaleX(var(--vvlvl, 0)); transform-origin: left center; transition: transform 90ms linear; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.tight .vvlvl { transform: none; opacity: calc(var(--vvlvl, 0) * 4); transition: none; } }
body.tight .pttbl.ptcol.vvon { padding-bottom: calc(var(--peek) + 64px); }
body.tight .pttbl.ptcol.vvon > .pthand.tt { bottom: 64px; }
body.tight .ptwrap.ptt.hasked .pttbl.ptcol.vvon { padding-bottom: calc(var(--hcw) * 1.393 + 72px); }
body.tight .pttbl.ptcol > .vvbar { position: absolute; z-index: 66; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-2); }
body.tight .pttbl.ptcol .vvbar .vvbtn { flex: 1 1 0; width: auto; min-height: var(--h-md); }
body.tight .pttbl.ptcol .vvbar .vvbl { display: none; }
/* the panels above the bar */
body.tight .vvpanel { display: flex; flex-direction: column; gap: var(--sp-4); width: min(320px, 100%); box-sizing: border-box; padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box);
  background: var(--bar); color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
body.tight .vvpanel.join { border-color: var(--accent); }
body.tight .vvph { font-size: var(--fs-lg); }
body.tight .vvpanel .vvrow { justify-content: stretch; }
body.tight .vvprev { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); overflow: hidden; background: #0b1016; }
body.tight .vvdevs { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .vvdevs select { width: 100%; min-width: 0; }
body.tight .ptside .vvprev { aspect-ratio: 16 / 9; }
body.tight .pttbl.ptcol > .vvpanel { width: auto; margin: var(--sp-2) var(--sp-4) 0; }
body.tight .pttbl.ptcol > .vvpanel.join { padding: var(--sp-3); }
body.tight .pttbl.ptcol > .vvpanel.join :is(.vvph, .vvpl, .vvfine) { display: none; }
body.tight .pttbl.ptcol > .vvpanel.set { position: absolute; z-index: 67; left: auto; right: var(--sp-4); width: min(400px, calc(100% - 16px)); bottom: 72px; margin: 0; max-height: calc(100% - 140px); overflow-y: auto; }
/* your own view */
body.tight .vvself { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 112px; aspect-ratio: 4 / 3; margin-bottom: var(--sp-3); border-radius: var(--r-box); overflow: hidden;
  background: #0b1016; color: #c9c6bf; font-size: var(--fs-xs); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tline) 30%, transparent), 0 8px 20px rgba(0, 0, 0, .5); }
body.tight .ptwrap.ptt.tS .vvself { width: 88px; }
body.tight .vvtag { position: absolute; left: 6px; bottom: 4px; padding: 0 var(--sp-3); border-radius: var(--r-tag); background: rgba(0, 0, 0, .55); color: var(--ttext); font-size: 11px; }
body.tight .vvselfmic { position: absolute; right: 4px; top: 4px; display: inline-flex; color: var(--vvoff); }
body.tight .pttbl.ptcol .vvbar .vvself { width: 64px; margin: 0; border-radius: var(--r-ctl); }
/* the enlarged view (Enlarge in the tile menu) */
body.tight .vvbig { position: absolute; z-index: 80; right: 16px; top: 64px; width: 300px; max-width: calc(100% - 32px); aspect-ratio: 4 / 3; border-radius: var(--r-box); overflow: hidden; background: #0b1016;
  box-shadow: 0 0 0 3px var(--tline), 0 16px 40px rgba(0, 0, 0, .6); }
body.tight .pttbl.ptcol > .vvbig { position: absolute; left: var(--sp-4); right: var(--sp-4); top: 52px; width: auto; max-width: none; }
body.tight .vvbigbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: var(--ttext); font-size: var(--fs-sm); }
body.tight .vvbigb { display: inline-flex; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); padding: 0; border: 0; border-radius: var(--r-ctl); background: rgba(0, 0, 0, .45); color: var(--ttext); }
body.tight .vvbigb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the game-over screen's two toggles; the Report sheet's Also block (a square box) */
body.tight .vvover { display: inline-flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .vvblock .rad { border-radius: var(--r-tag); }
/* Package K (2026-10-19): RZ.avatar (core.js), a round picture in its avatar frame; the size is set inline by the caller (opts.size) */
body.tight .rzav { position: relative; display: inline-block; flex: none; vertical-align: middle; }
body.tight .rzavpic { position: absolute; border-radius: var(--r-pill); overflow: hidden; display: grid; place-items: center; background: var(--chip); color: var(--accent); font-weight: var(--fw-display); line-height: 1; }
body.tight .rzavpic img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .rzavframe, body.tight .rzavart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
body.tight .rzavframe svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.tight .frli > .frav { margin-top: var(--sp-1); }
body.tight .exwho .exav { margin-right: var(--sp-2); }
body.tight .pageheadav { margin-right: var(--sp-2); }
/* My Tale > Looks > Avatar frame: a tile per frame (5 across, 3 on a tablet, 2 on a phone; mockup Frames.dc.html) */
body.tight .avfpicks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .avfpick { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-4); border-radius: var(--r-box); border: 2px solid transparent; background: transparent; color: var(--text); font: inherit; text-align: center; cursor: pointer; }
body.tight .avfpick.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .avfpick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .avfpick.locked .rzav { opacity: .55; }
body.tight .avflock { position: absolute; right: var(--sp-4); top: var(--sp-4); display: inline-flex; align-items: center; justify-content: center; width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-pill); background: var(--inset); color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); }
body.tight .avfname { font-size: var(--fs-sm); font-weight: var(--fw-title); }
body.tight .avfwhy { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--text2); }
body.tight .avfwhy.ok { color: var(--ok); }
body.tight .avfmsg { font-weight: var(--fw-title); }
@media (hover: hover) { body.tight .avfpick:hover { background: var(--card); } body.tight .avfpick.on:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); } }
@media (max-width: 1100px) { body.tight .avfpicks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { body.tight .avfpicks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } }
/* ---------- Voice in the Play lobby (2026-10-21, lobbyvoice.js; mockup H9Uv1nf3Wg1QGhoH5YhJLg sections 1-2). The ask line on top of the
   table ("Talk with the table?"), your Mic and Voices in the drawer's footer next to Ready (green while you talk, red when off), a green ring
   on a seat's avatar while that person talks (--vvlvl swells it, still for reduced motion), a small red mic when they muted themselves, the
   seat's voice menu (the board's .vvmenu). In a pod game the bar sits under the decision corner and the medallions ring as on the 1v1 board. ---------- */
body.tight .lvask { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--accent); border-radius: var(--r-box);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel)); font-size: var(--fs-xs); color: var(--text2); }
body.tight .lvask > .uico { color: var(--accent); flex: none; }
body.tight .lvask > .grow { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1 1 160px; }
body.tight .lvask b { font-size: var(--fs-sm); color: var(--text); }
body.tight .lvaskb { display: flex; gap: var(--sp-3); margin-left: auto; }
/* P2P backlog C8 (p2plobby.js card): a P2P table's one line (where the game runs, who hosts it) and the picked host's ask (the .lvask look,
   its 20 s countdown before Host / Not now) */
body.tight .p2pline { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--text2); }
body.tight .p2pline > .uico { flex: none; color: var(--text2); opacity: .8; }
body.tight .p2pline.on > .uico, body.tight .p2pline.you > .uico { color: var(--accent); }
body.tight .p2pline.you { color: var(--text); }
body.tight .p2pask .lvaskb { align-items: center; }
body.tight .p2pcd { font-variant-numeric: tabular-nums; color: var(--text2); min-width: 3ch; }
body.tight .dkhost { margin-top: var(--sp-4); }
body.tight .lvfoot { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .lvfoot .lvn { margin-left: auto; }
body.tight .lvbtn { position: relative; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--card); color: var(--text); font-size: var(--fs-xs); font-weight: 800; }
body.tight .lvbtn.on { color: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 25%, transparent); }
body.tight .lvbtn.on.lvtalk { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 25%, transparent), 0 0 calc(4px + var(--vvlvl, 0) * 14px) color-mix(in srgb, var(--ok) 60%, transparent); }
body.tight .lvbtn.off { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
body.tight .lvbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .lvlvl { display: inline-flex; align-items: flex-end; gap: var(--sp-1); }
body.tight .lvlvl i { display: block; width: 3px; aspect-ratio: 3 / 14; border-radius: var(--r-pill); background: var(--ok); transform-origin: bottom; transform: scaleY(calc(.25 + var(--vvlvl, 0) * .75)); transition: transform 90ms linear; }
body.tight .lvlvl i:nth-child(2) { transform: scaleY(calc(.35 + var(--vvlvl, 0) * .65)); }
body.tight .lvlvl i:nth-child(3) { transform: scaleY(calc(.2 + var(--vvlvl, 0) * .6)); }
@media (prefers-reduced-motion: reduce) { body.tight .lvlvl i, body.tight .lvlvl i:nth-child(2), body.tight .lvlvl i:nth-child(3) { transform: none; transition: none; opacity: calc(.4 + var(--vvlvl, 0) * 3); } }
body.tight .lvav { position: relative; display: inline-flex; flex: none; align-self: flex-start; }
body.tight .lvring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--ok); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--ok) 55%, transparent); opacity: 0; pointer-events: none; transition: opacity 160ms; }
body.tight .lvav.lvtalk .lvring { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { body.tight .lvav.lvtalk .lvring { transform: scale(calc(1 + var(--vvlvl, 0) * .15)); transition: opacity 160ms, transform 90ms linear; } }
body.tight .lvmut { position: absolute; right: -4px; bottom: -4px; width: 18px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--inset); border: 1px solid var(--line); color: var(--bad); }
body.tight .lvrep { padding: var(--sp-4); font-size: var(--fs-sm); }
body.tight .lvrep .bad { color: var(--bad); }
/* T254 (2026-10-25): the pod's Mic, Camera and Voices sit in the tool bar (avTool, .ptavw > .vvbar); the old under-the-corner margin pushed
   them below the bar's centre line */
body.tight .ptavw > .vvbar.lvboard { margin: 0; align-self: auto; }
body.tight .vvbtn#lvmic { position: relative; }
/* T62 + T68 (2026-10-22): a pod medallion's voice parts. A red struck mic on its upper right when that person muted themselves, the voice
   menu button on its lower right (struck speaker while you do not hear them), the menu under a top seat's medallion and above a bottom
   seat's; the camera's face is the 1v1 board's round .vvmedv. Under the voice tool: "Show your camera to the table?" and the strangers note. */
body.tight .pttbl.ptpod .ptpav .lvmedmut { left: calc(20px + var(--av) * .8); top: calc(20px + var(--av) * .02); right: auto; bottom: auto; z-index: 37; width: 24px; }
body.tight .lvmedbtn { position: absolute; z-index: 37; left: calc(20px + var(--av) * .76); top: calc(20px + var(--av) * .76); width: 30px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--tink, #0b1016); color: var(--ttext, #e6edf3); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tline, #8b7a52) 70%, transparent), 0 4px 10px rgba(0, 0, 0, .5); cursor: pointer; }
body.tight .lvmedbtn.off { color: var(--vvoff, var(--bad)); box-shadow: 0 0 0 2px var(--vvoff, var(--bad)), 0 4px 10px rgba(0, 0, 0, .5); }
body.tight .lvmedbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { body.tight .lvmedbtn::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; } }
body.tight .lvmedmenu { position: absolute; z-index: 95; width: 240px; left: calc(20px + var(--av) / 2 - 120px); top: calc(20px + var(--av) + 12px); }
body.tight .pttbl.ptpod .ptpav.bot .lvmedmenu { top: auto; bottom: calc(100% - 12px); }
body.tight .lvmedmenu .lvrep { padding: 0; }
body.tight .lvpanel { flex-direction: row; flex-wrap: wrap; align-items: center; font-size: var(--fs-xs); color: var(--text2); }
body.tight .lvpanel > .uico { color: var(--accent); flex: none; }
body.tight .lvpanel > .grow { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1 1 160px; }
body.tight .lvpanel b { font-size: var(--fs-sm); color: var(--text); }
body.tight .lvstr > .uico { color: var(--warn, var(--accent)); }
body.tight .pttbl.ptpod .pttools:has(.ptavw.open > .vvbar #lvcam) .ptcbpill { right: calc(100% + 8px + 3 * var(--avb) + 3 * var(--sp-2) + 8px); }   /* three buttons when the pod may have video */
body.tight .ptmedwrap.lvwrap.lvtalk .vvring { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  body.tight .ptmedwrap.lvwrap.lvtalk .vvring { transform: scale(calc(1 + var(--vvlvl, 0) * .2)); transition: opacity 160ms, transform 90ms linear; }
  body.tight .ptmedwrap.lvwrap.lvtalk .vvring::after { opacity: var(--vvlvl, 0); transition: opacity 90ms linear; }
}
/* ---------- T209 (2026-10-24): spectators in voice (lobbyvoice.js dock). One dock at the top middle of the board: a friend who watches asks
   (Ask to join voice), then has Mic, Voices, Leave and a chip per person in voice; a player sees a spectator's ask (Accept / Decline) and a
   chip per spectator in voice (Spectator tag, the green dot while they talk, the voice menu: mute for you, volume, remove). ---------- */
body.tight .lvgdock { position: fixed; z-index: 92; top: calc(var(--h-lg) * 2); left: var(--sp-5); display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--sp-3); width: max-content; max-width: min(360px, calc(100vw - 2 * var(--sp-5))); }   /* wide: under the top-left name, clear of the medallion and the camera panel */
@media (max-width: 700px) { body.tight .lvgdock { top: auto; bottom: calc(var(--h-lg) * 2 + var(--sp-5)); left: 50%; transform: translateX(-50%); align-items: center; } }   /* phone: above the dock */
body.tight .lvgdock > .lvfoot { padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-box); background: color-mix(in srgb, var(--panel) 92%, transparent); }
body.tight .lvgdock > .btn { background: var(--panel); border-color: var(--accent); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
body.tight .lvgdock .lvgreq { width: 100%; box-sizing: border-box; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
body.tight .lvgchips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
body.tight .lvgchip { position: relative; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: 0 var(--sp-2) 0 var(--sp-4); border: 1px solid var(--line);
  border-radius: var(--r-pill); background: color-mix(in srgb, var(--panel) 92%, transparent); font-size: var(--fs-xs); color: var(--text); max-width: 100%; }
body.tight .lvgchip .gtrunc { max-width: 120px; }
body.tight .lvgdot { flex: none; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--muted); }
body.tight .lvgchip.lvtalk .lvgdot { background: var(--ok); box-shadow: 0 0 calc(2px + var(--vvlvl, 0) * 8px) var(--ok); }
body.tight .lvgchip .lvmut { position: static; width: 18px; }
body.tight .lvgchip .lvmedbtn { position: static; width: var(--h-xs); box-shadow: none; }
body.tight .lvgchip .lvmedmenu { left: 0; right: auto; top: calc(100% + var(--sp-2)); }
@media (max-width: 700px) { body.tight .lvgchip .lvmedmenu { top: auto; bottom: calc(100% + var(--sp-2)); left: 50%; transform: translateX(-50%); } }
/* ---------- Packages D and F (2026-10-19, mockup Plates.dc.html + Pickers.dc.html): your card back on the board, your name style ----------
   Name colours are tokens (registry kind name_colour, namestyle.js RZ.NAME_COLOURS); a name off the dark table (.rzns.soft) keeps the
   page's ink in the light theme, the flourish always shows. The board draws each side's back from --cbme / --cbopp (playtest.js backVars).
   Fix 2026-10-20: off the table (.soft) the light theme swaps in a darker twin of every colour (same hue, at least 4.99:1 on the light bg,
   panel, card and inset of every palette, 4.57:1 on a chip), so the colour shows in both themes; the board plate is always dark and keeps
   the pale tokens. */
body.tight { --nc-parchment: #f1ece0; --nc-arcane: #c9a8f7; --nc-steel: #c8d2e1; --nc-moonlit-silver: #cfe0fa; --nc-archive-gold: var(--gold); --nc-ember: #ef8a5a; --nc-tide: #6fc3c8; --nc-nebula: #a59bff; --nc-aurora: #5fdcc4; --nc-aurora2: #b98cff; }
body.tight.light .rzns.soft, body.tight.light .rwpname .rzns { --nc-parchment: #6e5c31; --nc-arcane: #6a3cc0; --nc-steel: #475e82; --nc-moonlit-silver: #2f5a9e; --nc-archive-gold: #7c570d; --nc-ember: #a03e10; --nc-tide: #246569; --nc-nebula: #4b40c8; --nc-aurora: #176858; --nc-aurora2: #6a35c4; }
body.tight .nc-parchment { --nc: var(--nc-parchment); }
body.tight .nc-arcane { --nc: var(--nc-arcane); }
body.tight .nc-steel { --nc: var(--nc-steel); }
body.tight .nc-moonlit-silver { --nc: var(--nc-moonlit-silver); }
body.tight .nc-archive-gold { --nc: var(--nc-archive-gold); }
body.tight .rzns:not(.soft) { --nc-archive-gold: var(--gold); }   /* the plate is always dark: keep the pale gold in the light theme too (style.css .rzns:not(.soft)) */
body.tight .nc-ember { --nc: var(--nc-ember); }
body.tight .nc-tide { --nc: var(--nc-tide); }
body.tight .nc-nebula { --nc: var(--nc-nebula); }
body.tight .nc-aurora { --nc: var(--nc-aurora); }
/* Aurora (chapter 23, 2026-10-20): the name itself runs teal to violet; the flourish keeps the teal (currentColor); off the table in the
   light theme the darker twin tokens above draw a darker gradient */
body.tight .rzns.nc-aurora .rznsn { background: linear-gradient(90deg, var(--nc-aurora), var(--nc-aurora2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tight .nsw.nc-aurora > span:first-child { background: linear-gradient(135deg, var(--nc-aurora), var(--nc-aurora2)); }
body.tight .rzns { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; max-width: 100%; vertical-align: bottom; }
body.tight .rzns.nc { color: var(--nc); }
body.tight .rznsf { flex: 0 0 auto; display: inline-flex; }
body.tight .rznsf svg { display: block; width: 1em; height: 1em; }
body.tight .ptnm .rzns { flex: 0 1 auto; }
/* T393, restyled by T420 + T407 "Night tide" (mockup t420-supporter-looks.html, artifact CQKMt3S4vgryrGyK6PcZmH, signed off by the owner
   2026-10-30; its values, layers and timings carried over). Keys: apprentice (Lampwarden, moonlit), archivist (tide), loremaster (sunset
   prism) and team (Rule Ø tide, the team's own look; never on the Support page). The display names live in patreon.py SUPPORTER_TIERS only.
   Each look sets four prism stops (--sx1..4), a glow, the aura's strength (--sxa) and the ring's width (--sxrw); the light theme's white
   surfaces take darker twins (a soft name, and every portrait outside the dark table, the name plate preview and the Support showcase).
   Portrait (core.js RZ.avatar; --sg = the mockup's --g = size / 40): .rzsupa a blurred prism aura that slowly changes shape (dropped
   below 28px), .rzsupr a crisp prism ring a hairline outside, .rzsupw Loremaster's ripples, .rzsupmo the team's orbiting Rule Ø mark.
   Name (namestyle.js RZ.styledName): the sigil in the tier gradient (rzSupG1..3 / the L twins, the team's mark) and, from
   Archivist up, a wave under the name that flows and fades at both ends. Keyframes sup* in style.css; reduced motion stops all of it. */
body.tight .sup-apprentice, body.tight.light :is(.ptboard, .pttbl, .nsplate, .supshow, .ptpcard) .rzav.sup.sup-apprentice { --sx1: #bfe6ff; --sx2: #7fa6ff; --sx3: #9fd8ff; --sx4: #7fa6ff; --sxglow: #7fb4ff; --sxa: .28; --sxrw: 2; }
body.tight .sup-archivist, body.tight.light :is(.ptboard, .pttbl, .nsplate, .supshow, .ptpcard) .rzav.sup.sup-archivist { --sx1: #8fe3ff; --sx2: #a99bff; --sx3: #f27ac8; --sx4: #a99bff; --sxglow: #b08cff; --sxa: .45; --sxrw: 2.4; }
body.tight .sup-loremaster, body.tight.light :is(.ptboard, .pttbl, .nsplate, .supshow, .ptpcard) .rzav.sup.sup-loremaster { --sx1: #7fe0e8; --sx2: #a59bff; --sx3: #ff6fb5; --sx4: #ffb36b; --sxglow: #ff8ac0; --sxa: .55; --sxrw: 2.8; }
body.tight .sup-team, body.tight.light :is(.ptboard, .pttbl, .nsplate, .supshow, .ptpcard) .rzav.sup.sup-team { --sx1: #9ff5df; --sx2: #3fe0b8; --sx3: #c9fff0; --sx4: #3fe0b8; --sxglow: #3fe0b8; --sxa: .34; --sxrw: 1.8; }
body.tight.light :is(.rzav, .rzns.soft).sup-apprentice { --sx1: #2f6fb8; --sx2: #4a5fd0; --sx3: #2f86c8; --sx4: #4a5fd0; --sxglow: #4a7fd0; --sxa: .16; }
body.tight.light :is(.rzav, .rzns.soft).sup-archivist { --sx1: #1b8db0; --sx2: #6a4fd8; --sx3: #c03d8f; --sx4: #6a4fd8; --sxglow: #8455e0; --sxa: .22; }
body.tight.light :is(.rzav, .rzns.soft).sup-loremaster { --sx1: #1b8d99; --sx2: #5b4fd8; --sx3: #c2417a; --sx4: #c06a12; --sxglow: #c2417a; --sxa: .26; }
body.tight.light :is(.rzav, .rzns.soft).sup-team { --sx1: #13a582; --sx2: #0e7f66; --sx3: #2fbf9a; --sx4: #0e7f66; --sxglow: #13a582; --sxa: .2; }
/* the portrait: ivory initial on ink in both themes; the layers sit behind it (aura, ripples, ring) and the team's mark above it */
body.tight .rzav.sup { --sg: 1; border-radius: var(--r-pill); isolation: isolate; }
body.tight .rzav.sup .rzavpic { z-index: 2; box-shadow: 0 0 calc(10px * var(--sg)) color-mix(in srgb, var(--sxglow) 38%, transparent); }
body.tight .rzav.sup .rzavpic:not(:has(img)) { background: radial-gradient(circle at 35% 30%, #313849, #232836 70%); color: #f6f2e8; }
body.tight .rzav.sup :is(.rzavframe, .rzavart) { z-index: 2; }
body.tight :is(.rzsupa, .rzsupr, .rzsupw, .rzsupmo) { position: absolute; pointer-events: none; }
body.tight .rzsupa { inset: calc(-6px * var(--sg)); z-index: 0; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; background: conic-gradient(from 0deg, var(--sx1), var(--sx2), var(--sx3), var(--sx4), var(--sx1)); filter: blur(calc(4.5px * var(--sg))); opacity: var(--sxa); animation: supMorph 13s ease-in-out infinite alternate, supSpin 34s linear infinite; }
body.tight .sup-loremaster > .rzsupa { inset: calc(-8px * var(--sg)); animation-duration: 11s, 26s; }
body.tight .rzsupr { inset: calc(-3px * var(--sg)); z-index: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--sx1), var(--sx2), var(--sx3), var(--sx4), var(--sx1));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--sxrw) * var(--sg) * 1px), #000 calc(100% - var(--sxrw) * var(--sg) * 1px + .6px)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--sxrw) * var(--sg) * 1px), #000 calc(100% - var(--sxrw) * var(--sg) * 1px + .6px)); animation: supSpin 40s linear infinite; }
body.tight .sup-archivist > .rzsupr { animation-duration: 22s; }
body.tight .sup-loremaster > .rzsupr { animation-duration: 14s; }
body.tight .sup-team > .rzsupr { animation: none; }
body.tight .rzsupw { inset: calc(-3px * var(--sg)); z-index: 0; border-radius: 50%; border: calc(1px * var(--sg)) solid color-mix(in srgb, var(--sx3) 70%, transparent); opacity: 0; animation: supRipple 7s cubic-bezier(.2, .6, .3, 1) infinite; }
body.tight .rzsupw.w2 { animation-delay: -3.5s; border-color: color-mix(in srgb, var(--sx1) 70%, transparent); }
body.tight .rzsupmo { inset: calc(-7px * var(--sg)); z-index: 3; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--sx2) 14%, transparent); animation: supSpin 28s linear infinite; }
body.tight .rzsupmo::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 255deg, transparent 0deg, color-mix(in srgb, #7fe0e8 30%, transparent) 50deg, color-mix(in srgb, var(--sx1) 80%, transparent) 104deg, transparent 105deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1px)); }
body.tight .rzsupmo svg { position: absolute; left: 50%; top: 0; width: calc(12px * var(--sg)); height: auto; aspect-ratio: 312 / 344; transform: translate(-50%, -50%) rotate(90deg); filter: drop-shadow(0 0 2px var(--sxglow)); }
body.tight .rzteam path { fill: url(#rzTeamG); }
body.tight.light :is(.rzav, .rzns.soft).sup-team .rzteam path { fill: url(#rzTeamGL); }
body.tight.light :is(.ptboard, .pttbl, .nsplate, .supshow, .ptpcard) .rzav.sup-team .rzteam path { fill: url(#rzTeamG); }
body.tight :is(.ptmed, .ptmommed) .rzav.sup > :is(.rzsupa, .rzsupr, .rzsupw, .rzsupmo) { display: none; }   /* a picture filling a video or moment tile: no look */
body.tight :is(.ptmed, .ptmommed) .rzav.sup .rzavpic { box-shadow: none; }
/* the sigil: inline SVG filled with the tier gradient, a little larger than the name's letters; a soft glow on dark ground */
body.tight .rzsig { flex: 0 0 auto; display: inline-flex; line-height: 1; font-size: 1em; }
body.tight .rzsig svg { display: block; width: 1.15em; height: 1.15em; overflow: visible; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--sxglow, #a99bff) 55%, transparent)); }
body.tight.light .rzns.soft .rzsig svg { filter: none; }
body.tight .rzsig:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-tag); }
body.tight .rzsig.sup-apprentice svg { fill: url(#rzSupG1); }
body.tight .rzsig.sup-archivist svg { fill: url(#rzSupG2); }
body.tight .rzsig.sup-loremaster svg { fill: url(#rzSupG3); }
body.tight .rzsig.sup-loremaster .g3s { stroke: url(#rzSupG3); }
body.tight.light .rzns.soft .rzsig.sup-apprentice svg { fill: url(#rzSupG1L); }
body.tight.light .rzns.soft .rzsig.sup-archivist svg { fill: url(#rzSupG2L); }
body.tight.light .rzns.soft .rzsig.sup-loremaster svg { fill: url(#rzSupG3L); }
body.tight.light .rzns.soft .rzsig.sup-loremaster .g3s { stroke: url(#rzSupG3L); }
body.tight .rzsig.sup-team svg { width: 1em; height: 1em; filter: none; }   /* T425: the mark at the size of the letters, crisp */
body.tight .rzsig.sup-loremaster .flk { animation: supFlick 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
body.tight :is(.szwho, .szrow .szwho) .rzns { display: inline-flex; -webkit-line-clamp: unset; overflow: visible; }   /* the list's two-line activity rule (.szrow .szwho span) must not stack or clip the name, its sigil and its line */
body.tight .szwho .szname:has(> .rzns.sup) { overflow: visible; }
body.tight .szwho .rzns .rzsig { display: inline-flex; }
/* the chat dock badge: the sigil on a small ink disc at the picture's lower left */
body.tight .szsig { position: absolute; left: -3px; bottom: -3px; z-index: 3; width: var(--sp-6); height: var(--sp-6); border-radius: var(--r-pill); background: #0e141a; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; box-shadow: 0 0 0 1.5px var(--card); pointer-events: none; }
body.tight .szsig .rzsig svg { width: 1em; height: 1em; }
/* the wave under the name (Archivist, Loremaster and the team; the lowest tier has none; o.noline leaves it out): a small wave masked
   so it thins and fades out at both ends, flowing slowly to the right; Loremaster's colours also slide */
body.tight :is(.rzns.sup-archivist, .rzns.sup-loremaster, .rzns.sup-team):not(.noline) .rznsn { position: relative; padding-bottom: 6px; }
body.tight :is(.rzns.sup-archivist, .rzns.sup-loremaster, .rzns.sup-team):not(.noline) .rznsn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none;
  background: var(--sxln); background-size: 200% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5' viewBox='0 0 14 5' preserveAspectRatio='none'%3E%3Cpath d='M0 2.5Q3.5 0.3 7 2.5T14 2.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 14px 4px repeat-x, linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5' viewBox='0 0 14 5' preserveAspectRatio='none'%3E%3Cpath d='M0 2.5Q3.5 0.3 7 2.5T14 2.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 14px 4px repeat-x, linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-composite: intersect;
  animation: supFlow 3.6s linear infinite; }
body.tight .rzns.sup-archivist { --sxln: linear-gradient(90deg, var(--sx1), var(--sx2) 45%, var(--sx3)); }
body.tight .rzns.sup-loremaster { --sxln: linear-gradient(90deg, var(--sx1), var(--sx2), var(--sx3), var(--sx4), var(--sx1)); }
body.tight .rzns.sup-team { --sxln: linear-gradient(90deg, var(--sx1), #7fe0e8 50%, #a59bff); }
body.tight .rzns.sup-loremaster:not(.noline) .rznsn::after { animation: supFlow 3.6s linear infinite, supSlide 12s linear infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .rzav.sup *, body.tight .rzav.sup *::before, body.tight .rzsig *, body.tight .rzns .rznsn::after { animation: none !important; } }
/* T697 (owner 2026-11-12): supporter names stay static on the board during a game, and everywhere with Battery saver; profiles, chat and the Hearth keep them animated */
body.tight .ptwrap .rzav.sup *, body.tight .ptwrap .rzav.sup *::before, body.tight .ptwrap .rzsig *, body.tight .ptwrap .rzns .rznsn::after, body.tight.rzsave .rzav.sup *, body.tight.rzsave .rzav.sup *::before, body.tight.rzsave .rzsig *, body.tight.rzsave .rzns .rznsn::after { animation: none !important; }
/* the Looks picker: colour swatches, flourish buttons, the plate preview */
body.tight .nspick { display: flex; gap: var(--sp-7); align-items: flex-start; }
body.tight .nssw { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .nsswc { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); width: 84px; text-align: center; }
body.tight .nsw { position: relative; width: var(--h-md); height: var(--h-md); padding: var(--sp-2); border-radius: var(--r-pill); border: 2px solid transparent; background: transparent; cursor: pointer; }
body.tight .nsw > span:first-child { display: block; width: 100%; height: 100%; border-radius: var(--r-pill); background: var(--nc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
body.tight .nsw.on { border-color: var(--text); }
body.tight .nslock { position: absolute; right: -6px; top: -6px; width: var(--sp-7); height: var(--sp-7); border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; background: rgba(14, 20, 26, .92); color: #f3e4bd; box-shadow: 0 0 0 1.5px rgba(233, 207, 143, .6); }
body.tight .nsswn { font-size: var(--fs-xs); font-weight: var(--fw-title); }
body.tight .nswhy { font-size: 11px; line-height: 1.2; color: var(--text2); font-weight: var(--fw-title); }
body.tight .nsfls { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .nsfl { position: relative; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-md); padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-label); text-align: left; cursor: pointer; }
body.tight .nsfl.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .nsfl .nslock { right: -8px; top: -8px; }
body.tight .nsflg { display: inline-flex; color: color-mix(in srgb, var(--gold) 80%, var(--text)); }
body.tight .nsflt { display: flex; flex-direction: column; }
@media (hover: hover) { body.tight .nsfl:hover, body.tight .nsw:hover { background: var(--card); } }
body.tight .nsprev { flex: 0 1 auto; min-width: 0; max-width: 100%; }
body.tight .nsplate { display: inline-flex; flex-direction: column; gap: var(--sp-1); max-width: 100%; min-width: 0; padding: var(--sp-5) var(--sp-7); border-radius: var(--r-box); background: #0e141a; color: #f1ece0; box-shadow: inset 0 0 0 1.5px rgba(233, 207, 143, .5); }
body.tight .nsplate .rzns { font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-3xl); line-height: 1.05; }
body.tight .nsplatet { font-family: 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-lg); font-weight: 600; color: #e9cf8f; }
@media (max-width: 700px) { body.tight .nspick { flex-direction: column; gap: var(--sp-6); } body.tight .nsswc { width: 72px; } }
/* the board: each side's chosen back on its library and its hand's backs (Challenger and goldfish: the Rule Ø back) */
body.tight .ptlib.me .ptlibback, body.tight .ptohand.me { --cb: var(--cbme, none); }
body.tight .ptlib.opp .ptlibback, body.tight .ptohand.opp { --cb: var(--cbopp, none); }
body.tight .pttbl.cbk .ptlibback { background: var(--cb) center / cover no-repeat, #15121f; box-shadow: inset 0 0 0 1px rgba(10, 15, 28, .9), 2px 2px 0 #0b1016, 3px 3px 0 rgba(233, 207, 143, .25), 5px 5px 0 #0b1016, 6px 6px 0 rgba(233, 207, 143, .18), 10px 14px 24px rgba(0, 0, 0, .6); }
body.tight .pttbl.cbk .ptlibback:hover, body.tight .pttbl.cbk .ptlibback:focus-visible { box-shadow: inset 0 0 0 2px var(--tgold2), 2px 2px 0 #0b1016, 3px 3px 0 rgba(233, 207, 143, .25), 5px 5px 0 #0b1016, 6px 6px 0 rgba(233, 207, 143, .18), 10px 14px 24px rgba(0, 0, 0, .6); }
body.tight .pttbl.cbk .ptlibo { display: none; }
body.tight .pttbl.cbk .ptlibn { left: 50%; right: auto; transform: translateX(-50%); padding: 0 var(--sp-3); border-radius: var(--r-tag); background: rgba(10, 14, 20, .78); color: var(--tgold2); }
body.tight .pttbl.cbk .ptohb { background: var(--cb) center / cover no-repeat, #15121f; box-shadow: inset 0 0 0 1px rgba(10, 15, 28, .9), 0 6px 14px rgba(0, 0, 0, .55); }
body.tight .pttbl.cbk.ptcol .ptohn::before { background: var(--cb) center / cover no-repeat, #15121f; }
/* a gilded Legend back (ticket #172): its cover's file through the gold filter of .gild (playtest.js backVars sets gme / gopp) */
body.tight .pttbl.cbk.gme .ptlib.me .ptlibback, body.tight .pttbl.cbk.gme .ptohand.me .ptohb, body.tight .pttbl.cbk.gme.ptcol .ptohand.me .ptohn::before,
body.tight .pttbl.cbk.gopp .ptlib.opp .ptlibback, body.tight .pttbl.cbk.gopp .ptohand.opp .ptohb, body.tight .pttbl.cbk.gopp.ptcol .ptohand.opp .ptohn::before,
body.tight .ptfxface.gild { filter: sepia(1) saturate(2.4) hue-rotate(-10deg) brightness(1.06) contrast(1.05); }
body.tight .prfgrid > .prfspan { grid-column: 1 / -1; }   /* a Looks part that takes the whole row (Package K: Avatar frame) */
body.tight .ptnm .rzav { flex: 0 0 auto; }
body.tight .pttbl.ptcol .ptnm .rzav { display: none; }   /* phones: the plate row is full (medallion, life, piles); the name keeps the room */
body.tight .nspick > :first-child { flex: 1 1 360px; }
body.tight .nspick > .nsprev { flex: 0 1 340px; }

/* the top bar when its buttons do not fit (core.js RZ.fitHeader, vb31 2026-10-19): first the menu labels go (the current page keeps its own), then Friends and the theme keep their icons */
/* a header that runs out of room first drops the words on the right-hand buttons (Play, Friends, the theme name), and only then the menu's
   labels (owner 2026-10-21: opening the Play drawer added its "Play" label and the menu lost its words) */
body.tight.hdrfit1 header.top .szlbl { display: none; }   /* the menu keeps its words now (owner 2026-10-21): see the top bar block at the end */

/* a card dragged in from Scryfall or EDHREC (core.js, ticket #36): the whole window shows where it will go */
body.tight #dropcatch { display: none; }
body.tight.dropping #dropcatch { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: var(--sp-7); pointer-events: none; background: color-mix(in srgb, var(--bg) 55%, transparent); }
body.tight #dropcatch .dropmsg { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-8); border: 2px dashed var(--accent); border-radius: var(--r-box); background: var(--card); color: var(--text); text-align: center; box-shadow: 0 12px 40px #0008; }
body.tight #dropcatch .dropmsg b { font-size: var(--fs-lg); color: var(--accent); }
body.tight #dropcatch .dropmsg .small { color: var(--text2); }

/* chat toasts (social.js, owner 2026-10-19): fixed on <body>, top right under the top bar (social.js sets top under the bar, or under a
   play request toast when one shows); newest on top, slide in from the right, the stack slides down (FLIP in JS), the oldest fades out.
   The toast band of the z-scale: 81, under the play request toast (82), over the friends drawer (67). Phones: the gutter's full width. */
body.tight .szts { position: fixed; top: calc(var(--topbar) + var(--sp-4) + env(safe-area-inset-top, 0px)); right: calc(var(--gutter) + env(safe-area-inset-right, 0px)); z-index: 81;
  width: min(360px, calc(100vw - 2 * var(--gutter))); display: flex; flex-direction: column; gap: var(--sp-4); pointer-events: none; }
body.tight .szts:empty { display: none; }
@media (min-width: 1100px) { body.tight .szts.bydrawer { right: calc(380px + var(--sp-6)); } }   /* the desktop drawer stays readable */
body.tight .sztst { pointer-events: auto; display: flex; align-items: stretch; box-sizing: border-box; background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r-box); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); overflow: hidden; transition: transform .24s ease, opacity .25s ease; }
body.tight .sztst.in { animation: szt-in .28s cubic-bezier(.2, .8, .2, 1); }
body.tight .sztst.out { opacity: 0; pointer-events: none; }
body.tight .sztmain { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-2) var(--sp-4) var(--sp-5); min-height: var(--h-lg);
  border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
body.tight .sztmain:focus-visible, body.tight .sztx:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .sztxt { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; flex: 1 1 auto; }
body.tight .sztop { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
body.tight .sztname { font-size: var(--fs-md); font-weight: var(--fw-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.tight .sztn { flex: none; font-size: var(--fs-xs); font-weight: var(--fw-label); color: var(--gold); }
body.tight .sztime { flex: none; margin-left: auto; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .sztprev { font-size: var(--fs-sm); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .sztprev.hid { color: var(--muted); font-style: italic; }
body.tight .sztx { flex: none; width: 44px; min-height: var(--h-md); display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
body.tight .sztx:hover { color: var(--text); }
/* the Playtest board and Chronicle's table (body.bare): smaller, no time, the board stays in view */
body.tight .szts.compact { width: min(300px, calc(100vw - 2 * var(--gutter))); }
body.tight .szts.compact .sztmain { min-height: var(--h-md); padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); gap: var(--sp-4); }
body.tight .szts.compact .sztime { display: none; }
@media (max-width: 700px) { body.tight .szts, body.tight .szts.compact { left: calc(var(--gutter) + env(safe-area-inset-left, 0px)); right: calc(var(--gutter) + env(safe-area-inset-right, 0px)); width: auto; } }
@media (prefers-reduced-motion: reduce) { body.tight .sztst { transition: opacity .2s ease; } body.tight .sztst.in { animation: szt-fade .2s ease; } }

/* friends and chat on the Playtest board and Chronicle's table (body.bare, social.js, owner 2026-10-19 "see the friends list within the
   playtester and chat back"). The board's Friends button is one of its corner tools (.pttool, 40 px; 36 px in the column) with the
   header button's badges: the gold count at the top, the green online count at the bottom. The drawer starts at the screen's top and
   lies over the board: z 109/110, over the corner tools (90), the combo panel (92), the inspector (95) and the video (80); under the
   centred choices that must be answered (.ptmodes-bg 120, the search 121). The toasts stay over it (112). Desktop: the drawer is 320 px
   and lies over the right edge of the play area without a backdrop; nothing moves and the table keeps its full width (owner 2026-10-20,
   replacing the docked drawer of 2026-10-19). A chat opens in the floating chat window (.szwin, below). */
body.tight .szbd { gap: 0; }
body.tight .szbd .navico, body.tight .szbd .navico svg { width: 20px; }
body.tight .szbd .szonl { position: absolute; right: -4px; bottom: -4px; gap: var(--sp-1); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--tink, var(--bar)); font-size: 11px; font-weight: var(--fw-display); line-height: 16px; }
body.tight .pttbl.ptpod .szbd .szonl { top: -4px; bottom: auto; left: -6px; right: auto; }   /* T801: in a pod the round pill sits right under the tools; the online count goes to the top-left corner (unread stays top-right) */
body.tight .szbd.on { color: var(--tgold2, var(--accent)); background: rgba(233, 207, 143, .14); }
body.tight.bare .szscrim { z-index: 109; }
body.tight.bare .szdrawer { z-index: 110; }
body.tight.bare .szdrawer.desk { width: 320px; }
body.tight.bare .szts { z-index: 112; }
@media (min-width: 1100px) { body.tight.bare .szts.bydrawer { right: calc(320px + var(--sp-6)); } }
body.tight .ptmenub { position: relative; }   /* Assisted on a phone: Friends sits in Menu, which carries the gold count */
body.tight .ptbar .ptmenub .szcount { position: absolute; top: -7px; right: -7px; }
body.tight .ptsheet .ptmenub .szcount { margin-left: auto; }

/* vb1 (2026-10-19): the hand rises when the mouse reaches it; an invisible strip under it keeps a mouse at the screen's bottom edge on the hand.
   #278 (owner vb18, 2026-11-12): the rise grew to 66 px (18 + 48 for the controls under the fan) while the strip stayed 44 px, so a mouse in
   the last 22 px raised the hand, lost it, dropped it and raised it again. The strip now covers the whole rise and the controls, also for a
   pen or mouse on a tablet that reports no hover (.hovup) */
@media (hover: hover) { body.tight .pthand.tt::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--h-md) + var(--sp-8)); } }
body.tight .pthand.tt.hovup::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--h-md) + var(--sp-8)); }

/* the Playtest game log as a window (playtest.js logWin, owner 2026-10-19): no backdrop, dragged by its header, the board stays usable */
body.tight .ptlogwin { position: fixed; z-index: 64; right: var(--sp-7); top: 96px; width: min(380px, calc(100vw - 32px)); max-height: min(60vh, 560px); padding: 0; gap: 0; overflow: hidden;
  background: var(--bar); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 16px 40px #000a; }
body.tight .ptlogwin[style*="left"] { right: auto; }
body.tight .ptlogwin-h { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; }
body.tight .ptlogwin-h:active { cursor: grabbing; }
body.tight .ptlogwin .ptlog { overflow-y: auto; min-height: 0; flex: 1 1 auto; padding: var(--sp-3) var(--sp-4); max-height: none; }
/* T748: the log's search field (window and phone sheet), in the search look of the card picker (.ptsrchq) but in the panel's own colours;
   a match is marked in the accent */
body.tight .ptlogfind { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); margin: var(--sp-3) var(--sp-4) 0; padding: 0 var(--sp-2) 0 var(--sp-4); box-sizing: border-box; border-radius: var(--r-ctl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text2); flex: 0 0 auto; }
body.tight .ptlogfind:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
body.tight .ptlogfind .ptlogq { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); outline: none; box-shadow: none; }
body.tight .ptlogfind .ptlogq::-webkit-search-cancel-button { display: none; }
body.tight .ptsheet .ptlogfind { margin: 0 0 var(--sp-3); }
body.tight .ptlog .ptlogmk { padding: 0 1px; border-radius: var(--sp-1); background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--text); }
/* T743: the window's size from its right edge, bottom edge or the bottom-right corner (a button: arrow keys, Home); .sized: a kept size */
body.tight .ptlogwin.sized { min-height: 0; }
body.tight .ptlogrs { position: absolute; z-index: 3; touch-action: none; }
body.tight .ptlogrs.r { top: var(--sp-8); right: 0; bottom: var(--sp-6); width: var(--sp-4); cursor: ew-resize; }
body.tight .ptlogrs.b { left: var(--sp-6); right: var(--sp-6); bottom: 0; height: var(--sp-4); cursor: ns-resize; }
body.tight .ptlogrs.br { right: 0; bottom: 0; width: var(--sp-6); height: var(--sp-6); padding: 0; border: 0; border-radius: 0 0 var(--r-box) 0; background: none; color: var(--muted); cursor: nwse-resize; display: flex; align-items: flex-end; justify-content: flex-end; opacity: .55; }
body.tight .ptlogrs.br .uico { margin: 0 var(--sp-1) var(--sp-1) 0; }
body.tight .ptlogrs.br:hover, body.tight .ptlogrs.br:focus-visible { opacity: 1; color: var(--text); }
body.tight .ptlogrs.br:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* My Tale, more interactive (owner 2026-10-19): the cabinet's reward books (a lining and a seal drawn in core.js archiveSvg, a real button over
   each book), the one floating preview (RZ.popBind: hover or focus, a pinned popover on a click, a bottom sheet on phones), the folded
   Moonlight levels (a click unfolds the text, hover shows a drawing of what the level opens; touch shows the drawing inside the fold) */
body.tight .archcase { position: relative; }
body.tight .archsvg .sprw.own { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--tale) 80%, transparent)); }
body.tight .archspot { position: absolute; padding: 0; margin: 0; border: 0; border-radius: var(--r-tag); background: transparent; cursor: pointer; transition: box-shadow .15s ease, background .15s ease; }
body.tight .archspot:hover, body.tight .archspot[aria-expanded="true"] { background: color-mix(in srgb, var(--tale) 12%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tale) 75%, transparent), 0 0 14px color-mix(in srgb, var(--tale) 45%, transparent); }
body.tight .archspot:focus-visible { outline: 2px solid var(--tale); outline-offset: 2px; }
body.tight .rzpop { position: fixed; left: 0; top: 0; z-index: 185; width: 280px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--panel); color: var(--text); line-height: 1.4; box-shadow: 0 12px 32px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); animation: fadein .14s ease both; }
body.tight .rzpop.tale { border-color: color-mix(in srgb, var(--tale) 50%, var(--line)); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--tale) 70%, transparent), 0 12px 32px rgba(0, 0, 0, .45); }
body.tight .rzpop.moon { width: 340px; border-color: color-mix(in srgb, var(--moon) 50%, var(--line)); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--moon) 70%, transparent), 0 12px 32px rgba(0, 0, 0, .45); }
body.tight .rzpop.hov { pointer-events: none; }
body.tight .rzpop.hov.use { pointer-events: auto; }   /* T655 addendum: a lobby chip's options, usable from a hover */
body.tight .rzpop.pin { padding-right: var(--sp-8); }
body.tight .rzpop.sheet { left: var(--sp-6); right: var(--sp-6); top: auto; bottom: var(--sp-6); width: auto; max-width: none; max-height: 70dvh; overflow-y: auto; padding: var(--sp-6); }
body.tight .rzpopx { position: absolute; top: var(--sp-3); right: var(--sp-3); }
@media (prefers-reduced-motion: reduce) { body.tight .rzpop { animation: none; } body.tight .archspot { transition: none; } }
/* T130 the archive closets (RZ.archiveCase): one shelf per closet, stacked; each folds to its crown rail. The fold animates the height,
   dust puffs out of the seam as it shuts, and opening wakes the books with a faint shine. Reduced motion: no animation, it just folds. */
body.tight .archcase { border-radius: 8px; overflow: hidden; }
body.tight .archcase svg { border-radius: 0; }
body.tight .archcl { position: relative; overflow: hidden; transition: height .5s cubic-bezier(.45, .05, .2, 1); }
body.tight .archsheet { position: relative; }
/* T176 (owner 2026-10-24): the rail's words sit on the carved plate drawn in the cabinet, the chevron on the drawn knob (core.js archiveSvg) */
body.tight .archrail { position: absolute; left: 0; right: 0; display: block; padding: 0; margin: 0; border: 0; background: transparent; color: var(--text); font: inherit; line-height: normal; cursor: pointer; }
body.tight .archrail:focus-visible { outline: 2px solid var(--tale); outline-offset: -2px; }
body.tight .archtag { position: absolute; display: flex; align-items: center; justify-content: center; gap: var(--sp-4); padding: 0 var(--sp-6); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; color: var(--text); transition: color .15s ease; }
body.tight .archtag > * { flex: none; }
body.tight .archtag b { font-family: Georgia, serif; color: var(--tale); }
body.tight .archstate { color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
body.tight .archstate::before { content: '·'; margin-right: var(--sp-4); color: var(--text2); }
body.tight .archcl.written .archstate { color: var(--tale); }
body.tight .archchev { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: var(--h-xs); height: var(--h-xs); margin: calc(var(--h-xs) / -2) 0 0 calc(var(--h-xs) / -2); border-radius: 50%; color: var(--tale); transition: box-shadow .15s ease; }
body.tight .archrail:hover .archtag { color: var(--tale); }
body.tight .archrail:hover .archchev { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tale) 60%, transparent); }
body.tight .archchev .ico { display: flex; transition: transform .3s ease; }
body.tight .archcl.folded .archchev .ico { transform: rotate(-90deg); }
body.tight .archcase { container-type: inline-size; }
/* the dust: motes blown out of the seam, drifting and fading; a few glint in Tales gold */
body.tight .archdust { position: absolute; left: 0; right: 0; height: 0; pointer-events: none; z-index: 2; }
body.tight .archdust i { position: absolute; left: var(--x); top: 0; width: 5px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text2) 70%, var(--card)); opacity: 0; filter: blur(.6px); animation: archdust 1.1s ease-out var(--t) forwards; }
body.tight .archdust i.glint { background: var(--tale); filter: blur(.3px); box-shadow: 0 0 6px var(--tale); }
/* the wake: one soft band of light sweeps along the shelf the way the closet is written, and the written books glow for a moment */
body.tight .archsheet.wake::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--tale) 22%, transparent) 50%, transparent 65%); background-size: 260% 100%; animation: archwake 1.3s ease-out forwards; mix-blend-mode: screen; }
body.tight .archcl.rtl .archsheet.wake::after { animation-name: archwakertl; }
body.tight .archsheet.wake .sp.done, body.tight .archsheet.wake .sprw.own { animation: archglow 1.4s ease-out; }
@media (prefers-reduced-motion: reduce) { body.tight .archcl, body.tight .archrail, body.tight .archchev .ico { transition: none; } body.tight .archdust { display: none; } body.tight .archsheet.wake::after, body.tight .archsheet.wake .sp.done, body.tight .archsheet.wake .sprw.own { animation: none; } }
body.tight .rwplbl, body.tight .lvpoplbl { display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .rwplbl { color: var(--tale); }
body.tight .lvpoplbl { color: var(--moon); }
body.tight .rwpstage { display: flex; justify-content: center; align-items: flex-end; gap: var(--sp-6); padding: var(--sp-5) var(--sp-4); border-radius: var(--r-ctl); background: var(--inset); }
body.tight .rwpitem { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); min-width: 0; }
body.tight .rwpname2 { font-size: var(--fs-sm); text-align: center; max-width: 160px; }
body.tight .rwpback { width: 84px; aspect-ratio: 63 / 88; border-radius: var(--r-tag); overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
body.tight .rwpstage.two .rwpback, body.tight .rwpstage.two .rwph.card { width: 64px; }
body.tight .rwph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); width: 120px; aspect-ratio: 16 / 10; border-radius: var(--r-ctl); border: 1px dashed color-mix(in srgb, var(--tale) 60%, var(--line)); background: color-mix(in srgb, var(--tale) 6%, var(--card)); color: var(--tale); text-align: center; }
body.tight .rwph.card { width: 84px; aspect-ratio: 63 / 88; border-radius: var(--r-tag); }
body.tight .rwph.emote { width: 96px; aspect-ratio: 1; border-radius: var(--r-box); }
body.tight .rwph.music { border-style: solid; width: 140px; aspect-ratio: auto; padding: var(--sp-4); }   /* T249: board music, with a Listen button */
body.tight .rwph.music .btn { display: inline-flex; align-items: center; gap: var(--sp-2); }
body.tight .rwproman { font-family: Georgia, serif; font-size: var(--fs-3xl); line-height: 1; }
body.tight .rwphw { font-size: var(--fs-md); color: var(--text); }
body.tight .rwphs { font-size: var(--fs-xs); color: var(--muted); }
body.tight .rwparena { display: block; width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-ctl); }
body.tight .rwpstage.two .rwparena, body.tight .rwpstage.two .rwph { width: 100px; }
body.tight .rwpemote { width: 96px; aspect-ratio: 1; object-fit: contain; }
body.tight .rwpdice { display: flex; justify-content: center; align-items: center; width: 96px; aspect-ratio: 1; }   /* T112: a dice reward's flat d20 */
/* T112 dice picker: the live die beside the tiles; tiles carry a flat d20 in the set's colours */
body.tight .dicepick { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
body.tight .dicepv { position: relative; width: 140px; aspect-ratio: 1; flex: none; display: flex; justify-content: center; align-items: center; border-radius: var(--r-box); background: radial-gradient(circle, color-mix(in srgb, var(--text) 8%, transparent), transparent 70%); cursor: pointer; }
body.tight .dicepick.board .dicepv { width: 96px; }
body.tight .dicepicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-4); flex: 1 1 280px; max-width: 560px; }
body.tight .dicetile { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-3); }
body.tight .dicetile .rwpdice, body.tight .dicepv .rwpdice { width: auto; }
body.tight .dicetile .arlock { max-width: calc(100% - var(--sp-3)); white-space: normal; text-align: center; justify-content: center; }
body.tight .dicetile.locked .rwpdice { filter: grayscale(.7) brightness(.5); }
@media (max-width: 700px) { body.tight .dicepv { width: 112px; } body.tight .dicepicks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.tight .rwpname { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--card); font-size: var(--fs-lg); max-width: 100%; }
body.tight .rwpst { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
body.tight .rwpst.ok { color: var(--ok); }
body.tight .rwpseal { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: 0 var(--sp-5) 0 var(--sp-2); border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 26%, transparent), color-mix(in srgb, var(--gold) 8%, transparent)); color: var(--gold); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold) 35%, transparent); }   /* T170: a finished chapter's Rewarded seal */
body.tight .rwpsealm { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--sp-6) - var(--sp-1)); height: calc(var(--sp-6) - var(--sp-1)); border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--gold) 55%, white), var(--gold) 60%, color-mix(in srgb, var(--gold) 70%, black)); color: var(--onAccent); }
/* T169: a locked book's popover, where its chapter opens and how far you are from it */
body.tight .rwpnum { color: var(--tale); }
body.tight .rwpgo .prfbar { background: color-mix(in srgb, var(--tale) 18%, var(--track)); }
/* My Tale > Looks, the bigger look on hover and focus (core.js RZ.lookPop) */
body.tight .rzpop.look { width: 296px; }
body.tight .lkplbl { color: var(--accent); }
body.tight .lkstage { align-items: center; }
body.tight .lkback { width: 160px; aspect-ratio: 63 / 88; border-radius: var(--r-ctl); overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
body.tight .lkback .cardback { width: 100%; height: 100%; }
body.tight .lkback img, body.tight .lkcards img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .lkarena { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-ctl); overflow: hidden; background: var(--tink); }
body.tight .lkarena > img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .lkcards { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); display: flex; gap: var(--sp-2); }
body.tight .lkcards > .cardback { width: 30px; height: auto; aspect-ratio: 63 / 88; border-radius: var(--r-tag); overflow: hidden; box-shadow: 0 3px 8px rgba(0, 0, 0, .55); }
body.tight .lkcards > .cardback:nth-child(1) { transform: rotate(-8deg) translateY(2px); }
body.tight .lkcards > .cardback:nth-child(3) { transform: rotate(8deg) translateY(2px); }
body.tight .lkstage .nsplate { width: 100%; }
body.tight .lkmat { position: relative; width: 100%; aspect-ratio: 2.7 / 1; }   /* T515: the whole playmat as the board draws it */
body.tight .lkemote { display: block; width: 128px; aspect-ratio: 1; object-fit: contain; }
body.tight .lkname { font-size: var(--fs-md); }
body.tight .prftag .rwglyph { margin-right: var(--sp-2); vertical-align: -2px; }
/* the folded Moonlight levels: the head is one button (the moon, the title, the level and the names of what it opens) */
body.tight .ladhead { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); width: 100%; padding: 0 0 var(--sp-2); margin: 0; border: 0; border-radius: var(--r-ctl); background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
body.tight .ladhead:hover .ladtitle { color: var(--moon); }
body.tight .ladhead:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }
body.tight .ladnames { display: inline-flex; align-items: flex-start; justify-content: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text2); }
body.tight .ladnames .chev { margin: 0; font-size: var(--fs-md); line-height: 1; transition: transform .15s ease; }
body.tight .ladhead[aria-expanded="true"] .ladnames .chev { transform: rotate(90deg); color: var(--moon); }
body.tight .ladcol.open .ladwhat { border-color: color-mix(in srgb, var(--moon) 45%, var(--line)); }
body.tight .ladprev { display: none; }
body.tight .lvprev { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
body.tight .lvprev.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tight .lvprevit { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
body.tight .lvmk { display: block; width: 100%; aspect-ratio: 200 / 112; object-fit: cover; border-radius: var(--r-ctl); }
@media (hover: none) and (pointer: coarse) { body.tight .ladprev { display: block; } }
@media (max-width: 800px) {
  body.tight .ladcol { flex-direction: column; align-items: stretch; }
  body.tight .ladhead { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-1); align-items: center; text-align: left; padding: 0; }
  body.tight .ladhead .ladmoon { grid-row: 1 / span 3; align-self: start; }
  body.tight .ladhead .ladtitle { margin-top: 0; }
  body.tight .ladnames { justify-content: flex-start; }
  body.tight .ladcol .ladwhat { margin-left: 48px; width: calc(100% - 48px); }
}
@media (pointer: coarse) { body.tight .ladhead { min-height: 44px; } }

/* Tamiyo's Draw, the wait (pages2.js drawWait, owner 2026-10-19, mockup 1KFv8MR4pXgShgFb5p62n4 variant B): her orbit centred in a ring that fills
   with her thinking, glimpses of her shortlist on the ring, the phase line and four step marks; the ring closes and seven backs are dealt when her cards come */
body.tight .drawwait { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-6); padding: var(--sp-8) var(--sp-5); }
body.tight .dwring { position: relative; width: 220px; aspect-ratio: 1; display: grid; place-items: center; }
body.tight .dwsvgw, body.tight .dwglimpses, body.tight .dwflash { position: absolute; inset: 0; }
body.tight .dwsvg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; display: block; }
body.tight .dwtrack { fill: none; stroke: color-mix(in srgb, var(--accent) 16%, var(--line)); stroke-width: 4; }
body.tight .dwfill { fill: none; stroke: url(#dwgrad); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
body.tight .dwhead { fill: #fff8e6; filter: drop-shadow(0 0 8px var(--gold)); }
body.tight .drawwait.late .dwfill { animation: dwlate 1.8s ease-in-out infinite; }
body.tight .drawwait.done .dwfill { transition: stroke-dashoffset .5s cubic-bezier(.2, .8, .2, 1); }
/* her orbit, large: the same four rings as on every Favour button, centred by the grid (the other layers are absolute and take no room) */
body.tight .dworb { position: relative; width: 88px; aspect-ratio: 1; display: block; }
body.tight .dworb span { position: absolute; border-radius: 50%; }
body.tight .dworb .o1 { inset: 0; border: 3px solid var(--accent); border-right-color: transparent; border-bottom-color: transparent; animation: spin 1.6s linear infinite; }
body.tight .dworb .o2 { inset: 13%; border: 3px solid var(--gold); border-left-color: transparent; border-top-color: transparent; animation: spin 2.3s linear infinite reverse; }
body.tight .dworb .o3 { inset: 27%; border: 3px solid var(--accent); border-bottom-color: transparent; animation: spin 1.1s linear infinite; }
body.tight .dworb .core { inset: 40%; background: var(--gold); box-shadow: 0 0 18px var(--gold); animation: dwcore 1.4s ease-in-out infinite; }
body.tight .dwglimpses { pointer-events: none; }
body.tight .dwglimpse { position: absolute; width: 46px; aspect-ratio: 4 / 3; border-radius: var(--r-tag); background-size: cover; background-position: center; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 4px 14px #000a; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .5s ease, transform .5s ease; }
body.tight .dwglimpse.on { opacity: .95; transform: translate(-50%, -50%) scale(1); }
body.tight .dwglimpse.keep { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 50%, transparent), 0 4px 14px #000a; }
body.tight .dwflash { inset: -30px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 55%, transparent), transparent 65%); opacity: 0; pointer-events: none; }
body.tight .drawwait.done .dwflash { animation: dwflash .9s ease-out forwards; }
body.tight .dwsay { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center; max-width: 36ch; }
body.tight .dwsay b { font-size: var(--fs-lg); color: var(--text); }
body.tight .dwsay span { font-size: var(--fs-sm); color: var(--muted); }
body.tight .dwsteps { display: flex; gap: var(--sp-3); }
body.tight .dwsteps i { width: 22px; height: 4px; border-radius: var(--r-pill); background: var(--line); transition: background .4s; }
body.tight .dwsteps i.done { background: var(--gold); }
body.tight .dwsteps i.now { background: var(--accent); }
body.tight .dwfan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
body.tight .dwfan i { position: absolute; width: 120px; aspect-ratio: 488 / 680; border-radius: var(--r-ctl); background: linear-gradient(160deg, #2a2340, #17131f); border: 2px solid #3b3252; box-shadow: 0 10px 30px #000b; opacity: 0; animation: dwdeal .6s cubic-bezier(.2, .8, .2, 1) forwards; }
body.tight .dwfan i::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; border: 3px solid var(--gold); border-right-color: transparent; opacity: .7; }
body.tight .drawwait.arrive > :not(.dwfan) { opacity: 0; transition: opacity .35s; }
@media (max-width: 700px) { body.tight .dwring { width: 184px; } body.tight .dworb { width: 76px; } }
@media (prefers-reduced-motion: reduce) { body.tight .dworb span, body.tight .drawwait.late .dwfill { animation: none; } }

/* the builder's draw row with four buttons (Previous draw appears after a draw; owner vb35 2026-10-20): the labels were clipped in 154 px columns.
   The row may take 820 px and each column is as wide as its label; when the row itself is narrower, the short labels take over (container query,
   so it follows the row, not the screen) */
body.tight .drawbar.cardraw { container: drawbar / inline-size; }
body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) { width: min(100%, 820px); grid-auto-columns: minmax(max-content, 1fr); }
@container drawbar (max-width: 819px) {
  body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) .freetag, body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) .histlong { display: none; }
  body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) .histshort { display: inline; }
  body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) > .btn { padding: 0 var(--sp-4); gap: var(--sp-3); font-size: var(--fs-md); }
}
@container drawbar (max-width: 619px) {   /* a tablet's narrow middle column: two rows of two, each label whole */
  body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container drawbar (min-width: 440px) and (max-width: 619px) {   /* card first (owner 2026-10-22, T58): one row, Previous draw icon-only (its name in the tooltip), so the card keeps the height */
  body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) { grid-auto-flow: column; grid-template-columns: var(--h-lg) repeat(3, minmax(0, 1fr)); }
  body.tight .drawbar.cardraw .drawmid > .btn.prevdraw { padding: 0; }
  body.tight .drawbar.cardraw .drawmid > .btn.prevdraw > .prevlbl { display: none; }
}
/* the card back picker's locked covers (2026-10-20): the cover dimmed, a lock and its chapter over it; a click says what opens it (core.js RZ.cardBackPicks) */
body.tight .cbpick { position: relative; }
body.tight .cbpick.locked { cursor: not-allowed; }
body.tight .cbpick.locked:hover { transform: none; }
body.tight .cbpick.locked .cardback { filter: grayscale(.6) brightness(.45); }
body.tight .cblock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--gold); pointer-events: none; }
body.tight .cblockt { font-size: var(--fs-xs); font-weight: var(--fw-title); line-height: 1; color: #f3e4bd; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
/* the cartoon Tamiyo emotes (2026-10-20): the image in the Say bar's round buttons and in the bubble at a plate (playcore.js P.emoteFace) */
body.tight .ptemoimg { display: block; width: 100%; height: 100%; object-fit: contain; }
body.tight .ptemo:has(.ptemoimg) { padding: var(--sp-1); }
body.tight .ptbubble.emo.img { position: relative; width: var(--h-lg); height: var(--h-xs); min-height: 0; padding: 0; border: 0; background: none; overflow: visible; }   /* keeps the plate's row height: the picture stands out above and below */
body.tight .ptbubble.emo.img .ptemoimg { position: absolute; left: 0; top: 50%; width: var(--h-lg); height: var(--h-lg); transform: translateY(-50%); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
/* fix 2026-10-20: a bubble at a 2-seat plate sits beside it, out of the flow (playtest.js nameBlock puts it last in .ptname): below the top
   seat's plate, above the bottom seat's, from the plate's left edge, so the name keeps its width and nothing on the plate is covered.
   On phones the plate is a full-width strip (.ptplate; .ptname is static there), so the bubble hangs under or over the strip. */
body.tight .ptname > .ptbubble, body.tight .ptname > .ptbubble.emo.img { position: absolute; left: 0; z-index: 3; pointer-events: none; }
body.tight .ptname.opp > .ptbubble { top: calc(100% + var(--sp-3)); }
body.tight .ptname.me > .ptbubble { bottom: calc(100% + var(--sp-3)); }
body.tight .ptname > .ptbubble.emo.img { height: var(--h-lg); }
body.tight .pttbl.ptcol .ptname > .ptbubble, body.tight .pttbl.ptcol .ptname > .ptbubble.emo.img { left: var(--sp-5); }
body.tight .pttbl.ptcol .ptplate:has(> .ptname > .ptbubble) { z-index: 5; }

/* social polish (2026-10-20, social.js). 1. The gold count on the board's Friends corner tool and on the Assisted bar's Menu / Friends
   button stays inside the screen: it overlaps the button's corner less far up (the buttons do not move), with a ring in the board's ink
   so it reads over the icon. 2. The play request toast (.pftoast) keeps clear of an open desktop drawer (body.szdesk, set by social.js;
   the overlay drawer on the board covers the same 320 px at the right, so the rule stays) and of the chat window (social.js beside):
   left of it, like the chat toasts (.szts.bydrawer); on a bare page it also lies over the drawer and its scrim (111, the chat toasts 112
   sit under it, social.js tplace). 3. One message's actions: the quiet "..." in the time line, the row under the bubble, the quoted
   message on the report sheet, the reported line in Admin > Moderation. 4. The phone sheet drags from the header too. */
body.tight .szbd .szcount { top: -3px; right: -6px; box-shadow: 0 0 0 2px var(--tink, var(--bar)); }
body.tight .pttbl.ptcol .szbd .szcount { top: 0; }
body.tight .ptbar .ptmenub .szcount, body.tight .ptbar .szbtn .szcount { top: -3px; box-shadow: 0 0 0 2px var(--bar); }
@media (min-width: 1100px) {
  body.tight.szdesk .pftoast { right: calc(380px + var(--sp-6)); }
  body.tight.bare.szdesk .pftoast { right: calc(320px + var(--sp-6)); }
}
body.tight.bare .pftoast { z-index: 111; }
body.tight .szmsg.tap { cursor: pointer; }
@media (pointer: coarse) { body.tight .szmsg.tap { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }   /* T173: a long press opens the reactions (the row has Copy) */
body.tight .szmsg.act { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
body.tight .szt { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
/* T299: Sent / Received / Seen on my newest message (social.js ticks); Seen in the ok green (as Telegram), the others quiet */
body.tight .szrc { display: inline-flex; color: var(--muted); }
body.tight .szrc.seen { color: var(--ok); }
body.tight .szmo { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; margin: 0 calc(-1 * var(--sp-3)) 0 0; padding: var(--sp-1) var(--sp-2); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-display); line-height: 1; letter-spacing: .04em; cursor: pointer; }
body.tight .szmo:hover, body.tight .szmo:focus-visible, body.tight .szmo[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
body.tight .szmo:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* T629: a pencil on your own recent messages: shows on hover/focus, always on touch */
body.tight .szpen { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); cursor: pointer; opacity: 0; }
body.tight .szmsg:hover .szpen, body.tight .szpen:focus-visible { opacity: 1; }
body.tight .szpen:hover, body.tight .szpen:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
body.tight .szpen:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) { body.tight .szpen { opacity: .8; min-width: 36px; height: 28px; } }
@media (pointer: coarse) { body.tight .szmo { min-width: 40px; height: 28px; } }
body.tight .szmwrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); max-width: 82%; }
body.tight .szmwrap > .szmsg { max-width: 100%; }
body.tight .szmacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
/* T173 (owner 2026-10-24, vb87): reactions stick to the bubble's bottom corner; the quick row and + every emoji open from the ··· */
body.tight .szmwrap.me { align-self: flex-end; align-items: flex-end; }
body.tight .szrx { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: calc(-1 * var(--sp-4)) 0 0 var(--sp-3); }
body.tight .szrx.me { margin: calc(-1 * var(--sp-4)) var(--sp-3) 0 0; }
body.tight .szrxchip, body.tight .szrxb { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: pointer; }
body.tight .szrxchip { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 28px; padding: 0 var(--sp-2); border: 2px solid var(--bar); border-radius: var(--r-pill); background: var(--card); color: var(--text); font-size: var(--fs-md); line-height: 1; }
body.tight .szrxchip.mine { background: color-mix(in srgb, var(--accent) 20%, var(--card)); }
body.tight .szrxchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .szrxn { font-family: inherit; font-size: var(--fs-xs); font-weight: var(--fw-label); color: var(--muted); }
body.tight .szrxq { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-1); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); }
body.tight .szrxb { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: var(--fs-xl); line-height: 1; }
body.tight .szrxb:hover, body.tight .szrxb:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .szrxb.on, body.tight .szrxb[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--text); }
body.tight .szrxall { flex-basis: 100%; min-width: 240px; max-height: 160px; overflow-y: auto; padding: var(--sp-1); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); }
/* T829 (owner sign-off 2026-11-17, mockup N1foZSKW33KRyYUuzaC3pm): Reply beside the quick reactions; "Replying to" above the field; a one-line quote in the reply */
body.tight .szrxline { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: nowrap; }
body.tight .szmwrap:has(> .szmacts) { max-width: 100%; }   /* the open row may use the chat's width, so Reply stays beside the pill */
body.tight .szrxreply { display: inline-grid; place-items: center; width: var(--h-md); height: var(--h-md); padding: 0; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--text2); cursor: pointer; }
body.tight .szrxreply:hover, body.tight .szrxreply:focus-visible { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
body.tight .szrxreply:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .szreplying { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--text2); }
body.tight .szreplyt { min-width: 0; line-height: 1.3; }
body.tight .szreplyt b { color: var(--text); font-weight: 600; }
body.tight .szreplyq { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.tight .szq { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; margin: 0 0 var(--sp-2); padding: var(--sp-1) var(--sp-3); border: 0; border-left: 3px solid var(--accent); border-radius: var(--r-sm, 6px); background: color-mix(in srgb, var(--card) 55%, transparent); color: var(--text2); font: inherit; font-size: var(--fs-sm); line-height: 1.3; text-align: left; cursor: pointer; }
body.tight .szq b { color: var(--accent); font-weight: 600; }
body.tight .szq span { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.tight .szq.gone { cursor: default; font-style: italic; color: var(--muted); }
body.tight .szq:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .szreplying.tclreply { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--sp-2)); }   /* over the board's chat line */
body.tight .tcm .tcq { margin-bottom: var(--sp-1); }
body.tight .tcm.szflash { animation: szflash 1.3s ease-out; border-radius: var(--r-ctl); }
body.tight .szmsg { touch-action: pan-y; transition: transform 120ms; }
body.tight .szmsg.szflash { animation: szflash 1.3s ease-out; }
@media (prefers-reduced-motion: reduce) { body.tight .szmsg { transition: none; } body.tight .szmsg.szflash { animation: none; outline: 3px solid var(--accent); } }
body.tight .szrq { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .szrq .szquote { border-left-color: var(--warn); white-space: pre-wrap; max-height: 160px; overflow-y: auto; }
body.tight .szrq .szquote.hid { color: var(--muted); font-style: italic; }
body.tight .szqline.rep { margin-left: calc(-1 * var(--sp-5)); padding: var(--sp-3) var(--sp-5); border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
body.tight .szqline.rep + .szqline, body.tight .szqline + .szqline.rep { margin-top: var(--sp-3); }
body.tight .szrept { margin: 0 var(--sp-3) 0 0; }
body.tight .szrepm { display: flex; align-items: center; gap: var(--sp-3); color: var(--muted); }
body.tight .szdrawer.phone .szhead { touch-action: none; }
/* game over (2026-10-20): the stranger video chip and the call cards sit inside the panel, above its footer (playtest.js vvSlot(R, true));
   the board's own chip, cards and Mic/Camera bar stay hidden while the panel is up, so nothing covers Add friend or Rematch */
body.tight .ptgo .vvslot.ptgovv { position: static; transform: none; width: auto; align-items: stretch; }
body.tight .ptgo .vvslot.ptgovv .vvchip, body.tight .ptgo .vvslot.ptgovv .vvbanner { width: 100%; }
body.tight .szacts .szsent { padding-right: var(--sp-2); }   /* the row's 16 px gutter on the right too */
/* the pay prompt (2026-10-20): "Pay for <name>" then the cost on its own line; the name chip shows the card on hover */
body.tight .ptpaytt { display: block; }
body.tight .ptpaycost { display: block; margin-top: var(--sp-1); }
body.tight .ptpaycost .tipi { margin-left: var(--sp-3); vertical-align: middle; }   /* T211: the Auto-pay (i) after the cost */
body.tight .ptsrcchip { cursor: default; font-size: inherit; }
/* the scry choice (2026-10-20): the looked-at cards big in a row, each with Top / Bottom and its place among the kept ones */
body.tight .ptscrys { display: flex; flex-wrap: nowrap; gap: var(--sp-4); justify-content: center; max-height: 60vh; overflow: auto; padding: var(--sp-2) 0; }
body.tight .ptscry { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); flex: 1 1 0; min-width: 96px; max-width: 150px; }
body.tight .ptscry.bot .ptscryimg { opacity: .55; }
body.tight .ptscryimg { width: 100%; aspect-ratio: 488 / 680; padding: 0; border: 0; border-radius: 4.75% / 3.4%; overflow: hidden; background: var(--imgbg); cursor: pointer; }
body.tight .ptscryimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .ptscryseg { width: 100%; }
body.tight .ptscryseg { display: flex; }
body.tight .ptscryseg button { flex: 1 1 0; min-width: 0; min-height: var(--h-sm); padding: 0 var(--sp-2); font-size: var(--fs-sm); }
body.tight .ptscryord { align-items: center; justify-content: center; }
body.tight .ptscryord { width: 100%; }
body.tight .ptscryord .iconbtn2, body.tight .ptscrygap { flex: none; width: var(--h-md); height: var(--h-md); }   /* T886: an arrow that would do nothing is not drawn; its place stays, so the label keeps the middle */
body.tight .ptscrypos { flex: 1 1 auto; min-width: 0; text-align: center; }
/* the chat window on the Playtest board and Chronicle's table (social.js chatWin, owner 2026-10-20: "the chat should just be a frame that
   you can drag around, just like the stack"): fixed, no backdrop, dragged by its header (touch-action none there) or moved with the arrow
   keys on its grip; the board stays playable around it. z 108: over the board, the game log window (64), the corner tools (90), the combo
   panel (92), the inspector (95) and the video (80); under the friends drawer and its scrim (109/110), the play request toast (111), the
   chat toasts (112) and the choices that must be answered (120) and the search (121). Phones keep the bottom sheet instead. */
body.tight .szwin { position: fixed; z-index: 108; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; background: var(--bar); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 16px 40px #000a; }
body.tight .szwin.min { height: auto; }
body.tight .szwinh { min-height: 56px; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-2); cursor: grab; user-select: none; touch-action: none; }
body.tight .szwinh:active { cursor: grabbing; }
body.tight .szwin.min .szwinh { border-bottom: 0; }
body.tight .szwinh .sztap { gap: var(--sp-4); margin-left: 0; }
body.tight .szwinh .szi { width: 36px; height: 36px; }
body.tight .szwinh .szh { font-size: var(--fs-lg); }
body.tight .szwinh .navico, body.tight .szwinh .navico svg { width: 20px; height: auto; display: inline-flex; }
body.tight .szwgrip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 36px; padding: 0; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); cursor: grab; touch-action: none; }
body.tight .szwgrip:hover, body.tight .szwgrip:focus-visible { color: var(--text); }
body.tight .szwgrip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .szwin .szthread { padding: var(--sp-4) var(--sp-5); }
body.tight .szwin .szcompose { padding: var(--sp-4) var(--sp-5); gap: var(--sp-3); }
body.tight .szwin .szreport { padding: var(--sp-5); gap: var(--sp-4); }
/* T25 (2026-10-21): resize by either bottom corner; a faint corner mark, brighter on hover */
body.tight .szwrs { position: absolute; bottom: 0; z-index: 2; width: 28px; height: 28px; touch-action: none; opacity: .45; }
body.tight .szwrs.r { right: 0; cursor: nwse-resize; background: linear-gradient(135deg, transparent 0 62%, var(--muted) 62% 68%, transparent 68% 78%, var(--muted) 78% 84%, transparent 84%); }
body.tight .szwrs.l { left: 0; cursor: nesw-resize; background: linear-gradient(225deg, transparent 0 62%, var(--muted) 62% 68%, transparent 68% 78%, var(--muted) 78% 84%, transparent 84%); }
body.tight .szwrs:hover { opacity: 1; }
body.tight button.szwrs { padding: 0; border: 0; border-radius: 0; }   /* T690: the right corner is a button (keyboard resize) */
body.tight button.szwrs:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .szwinh .szi.on { color: var(--accent); }

/* your own tags on cards (ticket #43): chips in the deck list, the + on a row, the picker (a bottom sheet on phones) */
body.tight .utags { display: inline-flex; gap: var(--sp-2); min-width: 0; overflow: hidden; flex: 0 1 auto; }
body.tight .utag { font-size: var(--fs-xs); font-weight: 700; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: hsl(var(--th, 260) 60% 72%); color: #17131f; white-space: nowrap; line-height: 1.5; }
body.tight .dltiletags { gap: var(--sp-2); align-items: center; }   /* T501: the spoiler tile's tags, named, then the + */
body.tight .utag.more { background: var(--chip, var(--card2)); color: var(--muted); }
body.tight .dltagbtn { opacity: 0; }
body.tight .dlrow:hover .dltagbtn, body.tight .dltagbtn:focus-visible, body.tight .dltagbtn[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { body.tight .dltagbtn { opacity: .7; } }
body.tight .dltagpop { position: fixed; z-index: 60; width: min(320px, calc(100vw - var(--sp-6) * 2)); display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-box); }
body.tight .dltagpop input { flex: 1 1 auto; min-width: 0; height: var(--h-sm); }
body.tight .dltagchips { display: flex; flex-wrap: wrap; gap: var(--sp-3); max-height: 180px; overflow: auto; }
body.tight .dltagchip { display: inline-flex; align-items: center; gap: var(--sp-3); height: var(--h-xs); padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card2, var(--card)); font-size: var(--fs-sm); font-weight: 600; }
body.tight .dltagchip i { width: var(--sp-4); height: var(--sp-4); border-radius: 50%; background: hsl(var(--th) 60% 66%); }
body.tight .dltagchip.on { border-color: hsl(var(--th) 60% 66%); box-shadow: inset 0 0 0 1px hsl(var(--th) 60% 66%); }
body.tight .dltagitem { display: inline-flex; align-items: center; gap: var(--sp-1); }
body.tight .dltagdel { opacity: .7; }
@media (max-width: 600px) {
  body.tight .dltagpop { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
  body.tight .utags .utag:nth-child(2) { display: none; }
}
body.tight .utagdot { width: var(--sp-4); height: var(--sp-4); border-radius: 50%; background: hsl(var(--th) 60% 66%); flex: 0 0 auto; }
body.tight .utags:has(.utagdot) { align-items: center; gap: var(--sp-1); overflow: visible; }
/* players outside the board in their looks (2026-10-20): Explore author lines, Chronicle and Pod check seats, the challenge toast and the
   contributors board draw RZ.avatar (frame) and RZ.styledName (colour + flourish). .rzwho = picture + name in one row. */
body.tight .rzwho { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .rzwho.pcby { gap: var(--sp-2); flex-wrap: wrap; }
body.tight .gseatplayer .rzavart { border-radius: 0; }
body.tight .gseatplayer .rzav, body.tight .gseatav { flex: 0 0 auto; }
body.tight .exby .rzns.nc:not(.nc-aurora) .rznsn { color: inherit; }
body.tight .exwho .rzns { vertical-align: middle; }
body.tight .gseatplayer .rzns { flex: 0 1 auto; }
body.tight .gseatplayer .rztitle { flex: 0 1000 auto; min-width: 0; }   /* the title gives way before the name */
/* Package E (2026-10-20): the emote picker (Board settings > Table looks > Emotes and My Tale > Looks > Emotes) and the board's compact
   Looks tabs (mockup Pickers.dc.html "Board > table settings"); the Say bar's + button for the other owned emotes */
body.tight .emopicks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .emopicks.board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 700px) { body.tight .emopicks { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.tight .emopicks.board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.tight .emopick { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-ctl); border: 2px solid transparent; background: transparent; color: var(--text); font: inherit; text-align: center; cursor: pointer; min-width: 0; }
body.tight .emopick:hover { background: var(--card); }
body.tight .emopick.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .emopick img { display: block; width: 100%; max-width: 96px; aspect-ratio: 1; object-fit: contain; }
body.tight .emopick.locked { cursor: not-allowed; }
body.tight .emopick.locked img { filter: grayscale(.6) brightness(.55); }
body.tight .emoname { font-size: var(--fs-xs); font-weight: var(--fw-label); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
body.tight .emowhy { font-size: var(--fs-2xs, 11px); color: var(--text2); line-height: 1.2; }
body.tight .emoon { position: absolute; left: var(--sp-3); top: var(--sp-3); padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--accent); color: var(--onAccent, #17130a); font-size: var(--fs-2xs, 11px); font-weight: var(--fw-label); line-height: 1.6; }
body.tight .emolock { position: absolute; right: var(--sp-3); top: var(--sp-3); width: var(--h-xs); height: var(--h-xs); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(14, 20, 26, .92); color: var(--tgold2, #f3e4bd); }
body.tight .emopicks.board .emowhy { display: none; }
body.tight .ptlooksname .nswhy { display: none; }   /* compact: the lock icon stays, a click says what opens it */
body.tight .ptlooks { min-width: 0; }
body.tight .ptlooks .cbpicks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .ptlooks .cbpick { width: auto; min-width: 0; }
body.tight .ptlooks .cbpick .cardback { width: 100%; height: auto; aspect-ratio: 63 / 88; }
body.tight .ptlooksname .nsplate { align-self: flex-start; }
@media (min-width: 701px) { body.tight .ptlooks .cbpicks, body.tight .emopicks.board { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
body.tight .ptemomore { font-size: var(--fs-sm); font-weight: var(--fw-label); }

/* ===== Admin dashboard (people.js + admin-sections.js, owner 2026-10-20, docs/ADMIN-DASHBOARD-PLAN.md): a 220 px section menu on the
   left from 900 px, a sideways row below; every size from the scale ===== */
body.tight .page.admpage { padding-bottom: var(--sp-7); }
body.tight .admwrap { display: flex; gap: var(--sp-7); align-items: flex-start; width: 100%; max-width: 1440px; margin: 0 auto; }
body.tight .admnav { flex: 0 0 220px; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); position: sticky; top: 0; box-sizing: border-box; }
body.tight .admnavi { display: flex; align-items: center; gap: var(--sp-4); width: 100%; min-height: 40px; padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 0; background: transparent; color: var(--text2); font-size: var(--fs-md); font-weight: var(--fw-label); text-align: left; white-space: nowrap; }
body.tight .admnavi.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
body.tight .admcnt { margin-left: auto; min-width: 20px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--chip); color: var(--text2); font-size: var(--fs-xs); font-weight: var(--fw-title); line-height: 20px; text-align: center; }
body.tight .admcnt.hot { background: var(--accent); color: var(--onAccent); }
body.tight .admmain { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-6); }
body.tight .admhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
body.tight .admh1 { margin: 0; font-size: var(--fs-2xl); font-weight: var(--fw-display); }
body.tight .admh2 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); }
body.tight .admh3 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-display); overflow-wrap: anywhere; }
body.tight .admsp { flex: 1 1 auto; }
body.tight .admlbl { font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-label); }
body.tight .admbig { font-size: var(--fs-3xl); font-weight: var(--fw-display); line-height: 1.1; }
body.tight .admsec { display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .admsec.p0 { padding: 0; gap: 0; overflow-x: auto; }
body.tight .admsec .admsechead { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line); }
body.tight .admcols { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: flex-start; }
body.tight .admcols > * { flex: 1 1 300px; min-width: 0; }
body.tight .tag.acc { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
body.tight .adminfo { font-size: var(--fs-sm); color: var(--text2); line-height: 1.5; }
body.tight .admerr { font-size: var(--fs-sm); color: var(--muted); }
/* the KPI tiles: each one is a button that opens its section */
body.tight .admkpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-5); }
body.tight .admkpi { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-2); text-align: left; color: var(--text); font: inherit; cursor: pointer; }
body.tight .admkpi .s { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
body.tight .admkpi .admspark { display: block; color: var(--accent); }
body.tight .admkpi .tag { align-self: flex-start; }
body.tight .admkpi .bar { margin-top: var(--sp-3); }
/* Needs you: list left, detail right; below 900 px the list, then the detail on its own with the actions in a bar at the bottom */
body.tight .adminbox { padding: 0; overflow: hidden; }
body.tight .adminbox.det { overflow: visible; }
body.tight .adminhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line); background: var(--panel); border-radius: var(--r-box) var(--r-box) 0 0; }
body.tight .adminbody { display: flex; flex-wrap: wrap; }
body.tight .adminlist { flex: 1 1 300px; max-width: 400px; min-width: 0; border-right: 1px solid var(--line); background: var(--bar); }
body.tight .admitem { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; min-height: 56px; padding: var(--sp-5) var(--sp-6); border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; background: transparent; color: var(--text); text-align: left; font-size: var(--fs-md); }
body.tight .admitem:last-child { border-bottom: 0; }
body.tight .admitem.on { background: color-mix(in srgb, var(--accent) 10%, transparent); border-left-color: var(--accent); }
body.tight .admitem.done { opacity: .55; }
body.tight .admitem .t { font-weight: var(--fw-label); overflow-wrap: anywhere; }
body.tight .admitem .m { font-size: var(--fs-sm); color: var(--muted); }
body.tight .admitem .r { display: flex; align-items: center; gap: var(--sp-4); width: 100%; }
body.tight .admdetail { flex: 2 1 380px; min-width: 0; padding: var(--sp-6) var(--sp-7) var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .admquote { padding: var(--sp-5) var(--sp-6); border-radius: var(--r-ctl); background: var(--inset); color: var(--text2); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); }
/* T674: a teaser's clip or still in Needs you; the Teasers list on Growth */
body.tight .admmedia { border-radius: var(--r-ctl); background: var(--inset); overflow: hidden; display: flex; justify-content: center; }
body.tight .admmedia video, body.tight .admmedia img { display: block; max-width: 100%; max-height: 280px; }
body.tight .admtz .admtzimg { width: 44px; height: 28px; object-fit: cover; border-radius: var(--r-ctl); background: var(--inset); flex: none; }
body.tight .admkv { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: var(--sp-4) var(--sp-6); font-size: var(--fs-md); align-content: start; }
body.tight .admkv.sm { font-size: var(--fs-sm); }
body.tight .admkv > .k { color: var(--muted); }
body.tight .admkv > span { overflow-wrap: anywhere; }
body.tight .admlink { align-self: flex-start; border: 0; background: transparent; color: var(--accent); font-weight: var(--fw-label); padding: var(--sp-4) 0; min-height: 40px; font-size: var(--fs-md); }
body.tight .admacts { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
body.tight .admdtop { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line); background: var(--panel); border-radius: var(--r-box) var(--r-box) 0 0; }
body.tight .admdbar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); background: var(--bar); border-radius: 0 0 var(--r-box) var(--r-box); }
body.tight .admdbar .btn { width: 100%; justify-content: center; }
body.tight .admdbar > .admdone { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-4); }
/* bars: a day per column (heights come inline as %) */
body.tight .admbars { display: flex; align-items: flex-end; gap: var(--sp-2); height: calc(var(--h-lg) + var(--sp-8)); }
body.tight .admbars.sm { height: calc(var(--h-md) + var(--sp-2)); gap: var(--sp-1); }
body.tight .admbars.lg { height: calc(var(--h-lg) * 2 - var(--sp-5)); gap: var(--sp-1); }
body.tight .admbars > i { flex: 1 1 0; min-width: 0; background: var(--accent); border-radius: var(--sp-1) var(--sp-1) 0 0; opacity: .75; }
body.tight .admbars > i.now { opacity: 1; }
body.tight .admbars > i.future { background: var(--track); opacity: 1; }
body.tight .admbars > i.pair { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-1); height: 100%; background: transparent; opacity: 1; }
body.tight .admbars > i.pair > b { display: block; border-radius: var(--sp-1); background: var(--accent); opacity: .75; }
body.tight .admbars > i.pair > b.su { background: var(--sec); opacity: 1; }
body.tight .admaxis { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
/* T620 Admin > Growth: where new accounts come from (mockup QkzryZEm4Ag7FrAyixFUU6) */
body.tight .admsrc { display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .admsrchead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .admsrchead.ph { flex-direction: column; align-items: stretch; }
body.tight .admsrchead.ph .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.tight .admsrchead.ph .seg button { min-height: var(--h-md); }
body.tight .admsrckpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.tight .admsrclbl { display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .admsrcsw { flex: none; inline-size: 10px; block-size: 10px; border-radius: var(--sp-1); background: var(--muted); }
body.tight .admsrcsw.inv, body.tight .admsrcbar b.inv { background: var(--accent); }
body.tight .admsrcsw.cmp, body.tight .admsrcbar b.cmp { background: var(--sec); }
body.tight .admsrcsw.own, body.tight .admsrcbar b.own { background: var(--muted); }
body.tight .admsrcsw.ai, body.tight .admsrcbar b.ai { background: var(--accent); }   /* T675 channels */
body.tight .admsrcsw.sea, body.tight .admsrcbar b.sea { background: var(--ok); }
body.tight .admsrcsw.soc, body.tight .admsrcbar b.soc { background: var(--love); }
body.tight .admsrcsw.oth, body.tight .admsrcbar b.oth { background: var(--text2); }
body.tight .admsrcsw.non { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
body.tight .admch { gap: var(--sp-4); }
body.tight .admchleg { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); color: var(--text2); }
body.tight .admchwrap { overflow-x: auto; }
body.tight .admchtbl td.r, body.tight .admchtbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tight .admchsites { overflow-wrap: anywhere; }
body.tight .admsrcbar { display: flex; gap: 2px; block-size: 14px; border-radius: var(--sp-1); overflow: hidden; background: var(--track); }
body.tight .admsrcbar b { display: block; min-inline-size: 2px; }
body.tight .admsrccols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); align-items: start; }
body.tight .admsrc .admline { flex-wrap: nowrap; }
body.tight .admsrc .admline .grow { flex: 1 1 0; }
body.tight .admsrc .admline .tag { white-space: nowrap; }
body.tight .admsrcrow { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-md); }
body.tight .admsrcrow .grow { flex: 1 1 0; }
body.tight .admsrcact { min-inline-size: 72px; text-align: right; }
body.tight .admsrcday { min-inline-size: 52px; text-align: right; }
body.tight .admcamp .admcampn { display: flex; flex-direction: column; }
body.tight .admcamp .iconbtn2 { flex: none; }
body.tight .admcampform { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--inset); }
body.tight .admcampbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 899px) { body.tight .admcampbtns .btn, body.tight .admcampform input, body.tight .admsrc .admsec > .btn.invite { min-height: var(--h-md); } body.tight .admcamp .iconbtn2 { width: var(--h-md); height: var(--h-md); } body.tight .admsrc .admsec > .btn.invite { align-self: flex-start; } }
@media (max-width: 1100px) { body.tight .admsrckpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.tight .admsrccols { grid-template-columns: minmax(0, 1fr); } }
body.tight .admkey { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
body.tight .admkey > i { inline-size: var(--sp-5); block-size: var(--sp-5); border-radius: var(--sp-1); background: var(--accent); }
body.tight .admkey > i.su { background: var(--sec); }
body.tight .admkey > i.w { background: var(--warn); }
body.tight .admhbar { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) minmax(48px, auto); align-items: center; gap: var(--sp-4); font-size: var(--fs-sm); }
body.tight .admhbar > span:first-child { color: var(--text2); overflow-wrap: anywhere; }
body.tight .admhbar > span:last-child { text-align: right; font-weight: var(--fw-label); }
body.tight .admdiv { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); align-items: center; font-size: var(--fs-sm); }
body.tight .admdiv > .lo { display: flex; justify-content: flex-end; }
body.tight .admdiv i { display: block; block-size: var(--sp-4); background: var(--accent); border-radius: var(--sp-2) 0 0 var(--sp-2); }
body.tight .admdiv > .hi i { background: var(--warn); border-radius: 0 var(--sp-2) var(--sp-2) 0; }
body.tight .admdiv.axis { font-size: var(--fs-xs); color: var(--muted); }
body.tight .admdiv.axis > span:nth-child(2) { text-align: right; }
/* tables: a grid per row, scrolling sideways inside their box on small screens */
body.tight .admtin { min-width: 680px; }
body.tight .admtin.rules { min-width: 560px; }
body.tight .admtin.pay { min-width: 560px; }
body.tight .admtrow { display: grid; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); border: 0; border-bottom: 1px solid var(--line); min-height: 44px; font-size: var(--fs-md); width: 100%; background: transparent; color: var(--text); text-align: left; box-sizing: border-box; }
body.tight .admtrow.head { min-height: 36px; }
body.tight .admtrow.open { background: var(--panel); }
body.tight .admtrow.acc { grid-template-columns: 24px minmax(140px, 2fr) 72px 104px 56px 64px 56px 72px 64px 56px minmax(96px, 1.2fr); font-variant-numeric: tabular-nums; }   /* T412: level %, chapter, Tales, games, medals, seen */
body.tight .admtin:has(.admtrow.acc) { min-width: 960px; }
/* T469: the Accounts column headers sort the list; the arrow marks the column and its direction */
body.tight .admth { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; min-width: 0; }
body.tight .admth:hover, body.tight .admth.on { color: var(--text); }
body.tight .admth:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
body.tight .admthdir { font-size: 11px; color: var(--accent); }
body.tight .admtrow .admleg { color: var(--gold); }
body.tight .tag.sup { color: var(--love); border-color: color-mix(in srgb, var(--love) 45%, transparent); }
body.tight .admtrow.rule { grid-template-columns: minmax(200px, 1fr) repeat(4, 84px); }
body.tight .admtrow.pay { grid-template-columns: 110px minmax(120px, 1fr) 110px 72px 110px 100px; }
body.tight .admtrow .r { text-align: right; justify-self: end; }
body.tight .admtrow .b { font-weight: var(--fw-label); overflow-wrap: anywhere; }
body.tight .admtrow .tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
body.tight .admtrow .chev { color: var(--muted); }
/* T609: resizable columns (RZ.adm.cols): a grip on every edge between two column heads, the widths only apply above phone width.
   At rest the edge is a faint --line divider so it reads as movable; hover, focus or a drag turns it into a 2 px accent bar */
body.tight .admtrow.head, body.tight .colhead, body.tight th:has(> .admgrip) { position: relative; }
body.tight .admtin { --colgap: var(--sp-4); --colpad: calc(2 * var(--sp-5)); }
body.tight .admgrip { display: none; }
@media (min-width: 701px) {
  body.tight .admgrip { display: block; position: absolute; z-index: 2; top: 0; bottom: 0; right: calc(var(--colgap, var(--sp-4)) / -2 - 6px); width: 12px; cursor: col-resize; touch-action: none; border-radius: var(--r-tag); }
  body.tight th > .admgrip { right: -7px; }
  body.tight .admgrip::after { content: ''; position: absolute; top: 22%; bottom: 22%; left: 5px; width: 1px; background: var(--line); }
  body.tight :is(.admtrow.head, .colhead, thead):hover .admgrip::after { background: var(--muted); }
  body.tight .admgrip:hover::after, body.tight .admgrip:focus-visible::after, body.tight .rszing .admgrip:active::after { top: 8%; bottom: 8%; left: 5px; width: 2px; background: var(--accent); }
  body.tight .admgrip:focus-visible { outline: none; background: color-mix(in srgb, var(--accent) 14%, transparent); }
  body.tight .rszing, body.tight .rszing * { cursor: col-resize; user-select: none; }
  body.tight .admsec .admtin.rsz, body.tight .admsec .admtin.rsz:has(.admtrow.acc) { min-width: var(--colsw); }   /* T811: sized columns set the width (people.js keeps them inside the card), not Accounts' 960 px */
  body.tight .admtin.rsz .admtrow { grid-template-columns: var(--cols); }
  body.tight .admtin.rsz .admtrow > * { min-width: 0; overflow-wrap: anywhere; }
  body.tight table.rsz { table-layout: fixed; width: 100%; min-width: var(--colsw); }
  body.tight table.rsz :is(th, td) { box-sizing: border-box; overflow-wrap: anywhere; }
  /* Admin > Backlog: ID, title, status and buttons are columns under a head row (one key for every group and search) */
  body.tight .tdlist { --colgap: var(--sp-4); --colpad: calc(var(--sp-4) + var(--sp-6)); --tdcols: 64px minmax(0, 1fr) 280px 120px; }
  body.tight .tdrow.tdcols { display: grid; grid-template-columns: var(--tdcols); }
  body.tight .tdlist.rsz { overflow-x: auto; }
  body.tight .tdlist.rsz .tdrow.tdcols { grid-template-columns: var(--cols); min-width: var(--colsw); }
  body.tight .tdc { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
  body.tight .tdc.tdcst { flex-wrap: wrap; }
  body.tight .tdc.tdcttl > .tdpage:not(.tdarea) { flex-shrink: 0; }   /* the submitter and votes stay readable; the title gives way */
  body.tight .tdc.tdcbt { justify-content: flex-end; gap: var(--sp-2); }
  body.tight .tdrow.tdhead { min-height: 36px; border-top: 0; }
  /* AI and cost > Running costs: the column labels are the head row */
  body.tight .rcbox { --colgap: var(--sp-5); --colpad: calc(2 * var(--sp-3)); }
  body.tight .rcbox.rsz :is(.rcrow, .pyrow) { grid-template-columns: var(--cols); }
}
@media (max-width: 700px) {
  body.tight .tdc { display: contents; }
  body.tight .tdrow.tdhead { display: none; }
  body.tight .tdrow.tdcols .tdttl { flex-basis: 0; }   /* the title takes what is left of the first line instead of wrapping it */
}
body.tight .rin.chg { border-color: var(--warn); color: var(--warn); }
body.tight .admuser { display: flex; flex-direction: column; gap: var(--sp-6); padding: var(--sp-5) var(--sp-6) var(--sp-6) var(--sp-8); border-bottom: 1px solid var(--line); background: var(--panel); }
body.tight .admdel { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; padding: var(--sp-5); border: 1px solid var(--bad); border-radius: var(--r-ctl); }
body.tight .admdel > span { flex: 1 1 260px; font-size: var(--fs-sm); }
body.tight .admdel input { flex: 0 1 200px; min-width: 0; }
/* phone: an account is a card (PhoneFull mockup) */
body.tight .admucard { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .admucard.open { border-color: var(--accent); }
body.tight .admucard > .rowbtn { display: flex; align-items: center; gap: var(--sp-4); min-height: 40px; }
body.tight .admbtn2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .admbtn2 .btn { width: 100%; justify-content: center; }
/* list rows inside a box (payments, players, quiet accounts, tickets, guard) */
body.tight .admline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line); min-height: 44px; font-size: var(--fs-sm); }
body.tight .admline:last-child { border-bottom: 0; }
body.tight .admnsir { align-items: flex-end; text-align: right; }   /* T695: Joined, then the reminder mails, under each other */
@media (max-width: 700px) { body.tight .admnsir { align-items: flex-start; text-align: left; } }   /* T695: on a phone the two lines wrap under the name, left */
body.tight .admline.tight { padding-left: 0; padding-right: 0; }
body.tight .admline .grow { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
body.tight .admline .full { flex: 1 1 100%; color: var(--text2); overflow-wrap: anywhere; white-space: pre-wrap; }
body.tight .admline .admsubh { flex: 1 1 100%; gap: var(--sp-4); min-height: var(--h-xs); font-size: var(--fs-sm); }   /* T454: a folding group inside Sign-ups */
body.tight .admline .admsubh .tchev { width: var(--h-xs); height: var(--h-xs); }
body.tight .admline .id { color: var(--muted); min-width: 40px; }
body.tight .admmono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
body.tight .admsvc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-5); }
body.tight .admstrip { display: flex; gap: var(--sp-2); }
body.tight .admstrip > i { flex: 1 1 0; height: var(--h-xs); border-radius: var(--r-tag); background: var(--track); }
body.tight .admstrip > i.ok { background: var(--ok); } body.tight .admstrip > i.bad { background: var(--bad); }
body.tight .admswatch { inline-size: var(--sp-5); block-size: var(--sp-5); border-radius: 50%; flex: 0 0 auto; }
body.tight .admsavebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bar); }
body.tight .admfield { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .admfield.amt { flex: 0 1 140px; } body.tight .admfield.note { flex: 1 1 200px; }
body.tight .admfield input, body.tight .admfield select { width: 100%; min-width: 0; }
body.tight .admset { display: flex; align-items: center; gap: var(--sp-4); min-height: 40px; flex-wrap: wrap; }
body.tight .admset > span:first-child { flex: 1 1 auto; }
@media (hover: hover) {
  body.tight :is(.admnavi, .admitem, .admtrow.btnrow, .admlink, .admkpi):hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
  body.tight .admkpi:hover { border-color: var(--accent); }
}
@media (hover: none) {
  body.tight :is(.admnavi, .admitem, .admtrow.btnrow, .admkpi):active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
}
@media (max-width: 899px) {
  body.tight .admwrap { flex-direction: column; gap: var(--sp-5); }
  body.tight .admnav { position: static; flex: none; width: 100%; flex-direction: row; overflow-x: auto; padding: var(--sp-2); scrollbar-width: none; }
  body.tight .admnav::-webkit-scrollbar { display: none; }
  body.tight .admnavi { width: auto; flex: 0 0 auto; }

  body.tight .admmain { width: 100%; }
  body.tight .adminlist { max-width: none; border-right: 0; flex-basis: 100%; }
  body.tight .admdetail { padding: var(--sp-6); }
}
@media (max-width: 700px) {
  body.tight .admuser { padding: var(--sp-5) var(--sp-6); }
  body.tight .admkv { grid-template-columns: minmax(90px, 110px) minmax(0, 1fr); gap: var(--sp-3) var(--sp-5); font-size: var(--fs-sm); }
  body.tight .admkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  body.tight .admbig { font-size: var(--fs-2xl); }
}
/* Admin > AI and cost > Running costs (T605; T724 ledger, mockup PtsF7AjAZ8ESsZYNqXfZwD): Per month and Payments are grids under a head
   row (resizable, T609); the Add / Edit form is a 4-column grid; a phone stacks every row into name + line under it, amount on the right */
body.tight .rcbox { gap: var(--sp-4); }
body.tight .rctop { flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
body.tight .rctop .dkswitch { margin: 0; }
body.tight .rctop .rctot { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--sp-2); }
body.tight .rctop .rcbig { font-size: var(--fs-2xl); font-weight: var(--fw-display); }
body.tight .rcrow { display: grid; grid-template-columns: 210px minmax(0, 1fr) 170px 100px 190px 44px 20px; column-gap: var(--sp-5); align-items: center; }
body.tight .pyrow { display: grid; grid-template-columns: 110px 220px minmax(0, 1fr) 100px 90px 90px 72px; column-gap: var(--sp-5); align-items: center; }
body.tight :is(.rcrow, .pyrow) { padding: var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); min-height: 40px; }
body.tight :is(.rcrow, .pyrow).rccols { border-bottom: 0; padding-top: 0; padding-bottom: 0; min-height: 0; }
body.tight .rclist { border-top: 1px solid var(--line); }
body.tight :is(.rcrow, .pyrow) > * { min-width: 0; overflow-wrap: anywhere; }
body.tight :is(.rcrow .rce, .pyrow .pyt, .pyrow .pyv, .pyrow .pyb) { text-align: right; }
body.tight :is(.rcrow .rci, .pyrow .pyi) { display: flex; justify-content: center; }
body.tight button.rcline { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: inherit; font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
body.tight button.rcline:hover, body.tight button.rcline:focus-visible { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight .rcline.rcoff { opacity: .6; }   /* a spread line after its last month (or not started yet): not in the total */
body.tight :is(.rcline .rcw, .rcline .rcp, .rcline .rcs, .pyline .pyd, .pyline .pyw, .pyline .pyv, .pyline .pyb) { color: var(--text2); }
body.tight .rcline .rcs { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .rcbar { display: block; width: 150px; max-width: 100%; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
body.tight .rcbar > span { display: block; height: 100%; background: var(--accent); }
body.tight .rcinv { display: inline-flex; position: relative; color: var(--muted); }
body.tight .rcinv.on { color: var(--accent); }
body.tight .rcinv:not(.on)::after { content: ''; position: absolute; top: -2px; right: -3px; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--warn); }   /* no invoice yet */
body.tight .rcline .rcgo { text-align: center; font-size: var(--fs-lg); }
body.tight .rcai .rcn { display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight :is(.rcrow .rcsub, .pyrow .pysub) { display: none; }
body.tight .pyline .pys { font-weight: 600; min-height: 0; padding: 0; font-size: inherit; overflow-wrap: anywhere; }
body.tight .pyline .pyi a { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); }
body.tight .rcattach { color: var(--warn); border-style: dashed; border-color: color-mix(in srgb, var(--warn) 50%, transparent); cursor: pointer; }
body.tight .pytot { border-bottom: 0; }
body.tight .rcmiss { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
body.tight .rcmiss.on { color: var(--bg); background: var(--warn); border-color: var(--warn); }
body.tight .rcyear { display: inline-flex; align-items: center; gap: var(--sp-2); }
body.tight .rctop a.btn { text-decoration: none; }
body.tight .rcnote { margin: 0; padding: 0 var(--sp-3); }
body.tight .rcend { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: 0 var(--sp-3); }
body.tight .rcend .btn, body.tight .rcfoot .btn { min-height: 44px; }
body.tight .rced { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
body.tight .rcform { display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .rch3 { margin: 0; font-size: var(--fs-md); }
body.tight .rcgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .rcfld { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
body.tight .rcfld.w2 { grid-column: span 2; }
body.tight .rclab { font-size: var(--fs-sm); color: var(--muted); }
body.tight .rcform input:not([type=file]) { width: 100%; min-width: 0; }
body.tight .rcform input[type=date] { font-family: inherit; color: var(--text); background: var(--inset); border: 1px solid var(--field); border-radius: var(--r-ctl); min-height: var(--h-md); padding: 0 var(--sp-3); font-size: var(--fs-md); color-scheme: inherit; }   /* style.css styles text fields only */
body.tight .rcunit { display: flex; align-items: center; gap: var(--sp-3); color: var(--text2); }
body.tight .rcform input.rcsm { width: 80px; }
body.tight .rcform .seg { width: 100%; }
body.tight .rcform .seg button { flex: 1 1 0; }
body.tight .rcdrop { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: var(--sp-2) var(--sp-4); border: 1px dashed var(--muted); border-radius: var(--r-ctl); color: var(--text2); cursor: pointer; }
body.tight .rcdrop .uico { color: var(--accent); }
body.tight .rcdrop.on { border-style: solid; border-color: var(--accent); }
body.tight .rcdrop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .rclink { color: var(--accent); }
body.tight .rcfoot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--sp-4); }
body.tight .rcbtns { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@media (max-width: 700px) {
  body.tight .rctop .dkswitch { order: 3; flex: 1 1 100%; }
  body.tight .rctop .dkswitch > button { flex: 1 1 0; }
  body.tight .rctop .admsp { display: none; }
  body.tight .pybox .rctop .dkswitch { order: 1; }
  body.tight .pybox .rctop > :not(h2):not(.dkswitch) { order: 2; }
  body.tight :is(.rcrow, .pyrow).rccols { display: none; }
  body.tight :is(.rcrow, .pyrow) { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'n e i' 'sub sub sub'; column-gap: var(--sp-4); row-gap: var(--sp-1); padding: var(--sp-3) var(--sp-1); }
  body.tight :is(.rcrow .rcn, .pyrow .pys) { grid-area: n; }
  body.tight :is(.rcrow .rce, .pyrow .pyt) { grid-area: e; }
  body.tight :is(.rcrow .rci, .pyrow .pyi) { grid-area: i; }
  body.tight :is(.rcrow .rcw, .rcrow .rcp, .rcrow .rcs, .rcrow .rcgo, .pyrow .pyd, .pyrow .pyw, .pyrow .pyv, .pyrow .pyb) { display: none; }
  body.tight :is(.rcrow .rcsub, .pyrow .pysub) { display: block; grid-area: sub; font-size: var(--fs-xs); }
  body.tight :is(.rcrow .rcsub, .pyrow .pysub):empty { display: none; }
  body.tight .pytot { grid-template-areas: 'n e i'; }
  body.tight .pytot .pyw { display: inline; grid-area: i; }
  body.tight .pytot > span:empty { display: none; }
  body.tight .rcend { flex-direction: column-reverse; align-items: stretch; }
  body.tight .rcgrid { grid-template-columns: minmax(0, 1fr); }
  body.tight .rcfld.w2 { grid-column: auto; }
  body.tight .rcform input, body.tight .rcbtns .btn { min-height: 44px; }
  body.tight .rcform input[type=date] { font-size: 16px; }   /* as style.css's text fields: no iOS zoom */
  body.tight .rcform .seg { flex-wrap: wrap; }
  body.tight .rcfoot .rcbtns { width: 100%; }
  body.tight .rcfoot .rcbtns .btn { flex: 1 1 auto; }
}
/* ===== end Admin dashboard ===== */
/* a foil or etched card in the deck list (ticket #46) */
body.tight .foilmk { display: inline-flex; color: var(--gold); flex: 0 0 auto; }
/* chat stickers (2026-10-20): the picker above the composer row (64 px tiles), a sticker in the thread at 96 px without a bubble,
   the toast's thumbnail, the report quote and Admin's snapshot line */
body.tight .szstk { display: flex; flex-direction: column; gap: var(--sp-3); max-height: 232px; overflow-y: auto; overscroll-behavior: contain; }
body.tight .szstkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--sp-2); }
body.tight .szstkb { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: var(--sp-1); border: 1px solid transparent; border-radius: var(--r-ctl); background: none; cursor: pointer; }
body.tight .szstkb:hover, body.tight .szstkb:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--line); }
body.tight .szstkb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .szstkb:disabled { opacity: .5; cursor: default; }
body.tight .szstkb .szstkimg { width: 56px; height: auto; pointer-events: none; }
body.tight .szstkmore { align-self: flex-start; color: var(--muted); }
body.tight #szstkbtn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
/* emoji (T97, 2026-10-22): an Emoji / Stickers tab row that stays on top while the picker scrolls, a tighter grid of plain emoji */
body.tight .szpickbar { position: sticky; top: 0; z-index: 1; flex: none; display: flex; padding-bottom: var(--sp-2); background: var(--bar); }
body.tight .szemogrid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 0; }
body.tight .szstkb.szemo { min-height: 40px; padding: 0; font-size: var(--fs-2xl); line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
body.tight .szmsg.stk { padding: 0; background: none; border-radius: var(--r-ctl); max-width: none; }
body.tight .szmsg.stk .szstkimg { display: block; width: 96px; height: auto; }
body.tight .szmsg.stk.act { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
body.tight .szmwrap.stk { max-width: none; }
body.tight .sztprev.stk { display: flex; align-items: center; gap: var(--sp-3); }
body.tight .sztprev.stk .szstkimg { width: 28px; height: auto; flex: none; }
body.tight .szquote.stk { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .szquote.stk .szstkimg { width: 48px; height: auto; flex: none; }
body.tight .szqstk { display: inline-flex; align-items: center; gap: var(--sp-2); vertical-align: middle; }
body.tight .szqstk .szstkimg { width: 28px; height: auto; }
/* the chat options menu (2026-10-20): "..." in the chat header opens Hide mature language and Report */
body.tight .szcmwrap { position: relative; display: inline-flex; flex: none; }
body.tight .szcm { position: absolute; top: calc(100% + var(--sp-2)); right: 0; z-index: 5; width: 260px; max-width: calc(100vw - 2 * var(--gutter)); display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5); box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); cursor: default; touch-action: auto; }
body.tight .szcm .szswitch { min-height: 44px; }
body.tight .szcmrep { align-self: stretch; justify-content: center; min-height: 44px; }
body.tight .szwin .szcm { width: 240px; }
/* T589: a friend row's ⋯ menu (social.js rowActs): Chat, Profile, Challenge (with why not, when not), Watch; 44 px rows */
body.tight .szrmwrap { position: relative; display: inline-flex; flex: none; }
body.tight .szrm { position: absolute; top: calc(100% + var(--sp-2)); right: 0; z-index: 5; width: 220px; max-width: calc(100vw - 2 * var(--gutter)); display: flex; flex-direction: column;
  padding: var(--sp-2); box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
body.tight .szrmi { display: flex; align-items: center; gap: var(--sp-4); min-height: 44px; padding: var(--sp-2) var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .szrmi:hover:not(:disabled), body.tight .szrmi:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.tight .szrmi:disabled { color: var(--muted); cursor: default; }
body.tight .szrmt { display: flex; flex-direction: column; min-width: 0; }
body.tight .szrow .szrmt span { white-space: normal; display: block; -webkit-line-clamp: unset; }   /* not the list's two-line activity rule */
body.tight header.top:has(.navxpanel) { z-index: 68; }   /* the More panel is a .navxpanel too (#273) */   /* Explore menu open: on top of the friends and Play drawers (67) and their scrim (66); T405 */
/* owner feedback 2026-10-20 (pts 3-5): the round card trio in the card details panel and Tamiyo's chat, its armed ✕, and the chat's quiet lines */
body.tight .bracts .carbtn.armed { background: var(--bad); color: var(--onAccent); border-color: var(--bad); }
body.tight .cdrow .bracts.cdtrio { flex: none; gap: var(--sp-4); margin-right: var(--sp-4); }
body.tight .bracts.tctrio { justify-content: flex-start; gap: var(--sp-4); }
body.tight .chat .tcnote { align-self: center; max-width: 90%; text-align: center; padding: var(--sp-1) var(--sp-5); border-radius: var(--r-pill); background: color-mix(in srgb, var(--line) 40%, transparent); color: var(--text2); }
/* Chronicle: who sits where (owner 2026-10-20), the table's shape in small; tap one seat, then another, to swap */
body.tight .gseatmap { display: grid; gap: var(--sp-3); width: min(100%, 420px); aspect-ratio: 4 / 3; padding: var(--sp-3); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--card2, var(--card)); }
body.tight .gseatbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); min-width: 0; padding: var(--sp-2); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: var(--fs-sm); font-weight: 700; }
body.tight .gseatbtn.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
body.tight .gseatn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .gseatyou { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }
/* T597 (owner 2026-11-08, mockup AkcBK2FJLPrSrp3si5QvSC): the Table block (how the numbers face, the shape for this many players), empty seats, the hub as a column */
body.tight .gtpick { display: flex; flex-wrap: wrap; gap: var(--sp-7); align-items: flex-start; }
body.tight .gtblock { flex: 1 1 320px; min-width: 0; gap: var(--sp-5); padding: var(--sp-5); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--card2, var(--card)); }
body.tight .gtbtitle { font-size: var(--fs-lg); }
body.tight .gtbpart { gap: var(--sp-4); }
body.tight .gtbh { font-size: var(--fs-md); font-weight: var(--fw-title); }
body.tight .gtbin { display: none; font-weight: var(--fw-text); color: var(--muted); }
body.tight .gtbcap { font-size: var(--fs-sm); color: var(--muted); }
body.tight .gtbopts { flex-wrap: nowrap; gap: var(--sp-4); }
body.tight .gfacebtn { flex: 0 1 var(--h-lg); min-width: 0; aspect-ratio: 1; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-box); border: 1px solid var(--line); background: var(--inset); color: var(--text); font-size: var(--fs-2xl); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; cursor: pointer; }
body.tight .gfacebtn.each { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1); padding: var(--sp-3); }
body.tight .gfacebtn.on, body.tight .gshapebtn.on { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
body.tight .gfmini { align-self: stretch; display: flex; align-items: center; justify-content: center; border-radius: var(--sp-1); background: var(--text); color: var(--inset); font-size: var(--fs-xs); letter-spacing: -.04em; }
body.tight .gfnum { display: inline-block; }
body.tight .gfmini.r180, body.tight .gfnum.r180 { transform: rotate(180deg); }
body.tight .gfnum.r90 { transform: rotate(90deg); }
body.tight .gfnum.r270 { transform: rotate(270deg); }
body.tight .gshapebtn { flex: 0 1 var(--h-lg); min-width: 0; height: calc(var(--h-lg) + var(--sp-7)); padding: var(--sp-2); display: grid; gap: var(--sp-1); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--inset); cursor: pointer; }
body.tight .gthseat { align-self: stretch; justify-self: stretch; min-width: 0; min-height: 0; border-radius: var(--sp-1); background: color-mix(in srgb, var(--text) 32%, var(--inset)); }
body.tight .gshapebtn.on .gthseat { background: color-mix(in srgb, var(--accent) 72%, var(--text)); }
body.tight .gthseat.empty, body.tight .gshapebtn.on .gthseat.empty { background: transparent; border: 1px dashed var(--muted); }
body.tight .gtpseats { display: none; }
@media (min-width: 700px) {
  body.tight .gtpseats { display: block; flex: 0 0 240px; }
  body.tight .gtpseats .gseatmap { aspect-ratio: 24 / 26; }
  body.tight .gseatlow { display: none; }
  body.tight .gtbin { display: inline; }
  body.tight .gtbcap { display: none; }
}
body.tight .gseatbtn.empty { border-style: dashed; background: transparent; }
body.tight .gempty { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; border-radius: var(--r-box); border: 1px dashed var(--line); background: var(--bar); color: var(--muted); font-size: var(--fs-sm); }
body.tight .gempty.side span { transform: rotate(-90deg); white-space: nowrap; }
body.tight .ghub.spine { flex-direction: column; gap: var(--sp-4); padding: var(--sp-3) var(--sp-2); }
body.tight .ghub.spine .ghubbtns { flex-direction: column; gap: var(--sp-4); }
body.tight .ghub.spine .iconbtn2 { width: var(--h-md); height: var(--h-md); }
body.tight .ghub.spine .gnext { width: var(--h-md); height: calc(var(--h-lg) + var(--sp-4)); padding: 0; display: flex; align-items: center; justify-content: center; }
body.tight .ghubr { font-size: var(--fs-xs); color: var(--muted); }
/* the selected precon's picture when it is a sealed box (no decklist yet): the whole box, upright, not cropped (owner 2026-10-20) */
body.tight .pchero img.pcbox { width: 168px; aspect-ratio: auto; object-fit: contain; background: none; border-radius: var(--r-ctl); }
@media (max-width: 700px) { body.tight .pchero img.pcbox { width: min(55%, 200px); aspect-ratio: auto; align-self: center; } }
/* Chronicle life: the left half of a panel takes 1 life, the right half gives 1 (owner 2026-10-20, was top + / bottom −); in the panel's own turn, so "left" is the player's left */
body.tight .ghalf { top: 0; bottom: 0; height: auto; }
body.tight .ghalf.minus { left: 0; right: 50%; }
body.tight .ghalf.plus { left: 50%; right: 0; }
body.tight .ghalf .gsign { top: 50%; bottom: auto; transform: translateY(-50%); }
body.tight .ghalf.minus .gsign { left: 6%; right: auto; }
body.tight .ghalf.plus .gsign { right: 6%; left: auto; }
/* Chronicle hit effects (owner 2026-10-20, keyframes in style.css): a layer over the panel that never takes a tap; each hit is a small
   spot on a ring around the life total (chronicle.js hitFx places and sizes it), so a burst of hits lands in different places */
body.tight .gfx { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
body.tight .gpin.gfxshake { animation: gfxshake .22s linear; }
body.tight .gfxspot { position: absolute; transform: rotate(var(--tilt)); }
body.tight .gfxburst { position: absolute; inset: 0; animation: gfxpop .7s cubic-bezier(.2, 1.6, .4, 1) forwards; }
body.tight .gfxburst svg { width: 100%; height: 100%; display: block; fill: #ff4f6d; stroke: #1b1020; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(3px 3px 0 #1b1020); }
body.tight .gfxburst b { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-xl); font-weight: 900; font-style: italic; letter-spacing: .04em; color: #fff; -webkit-text-stroke: 1.5px #1b1020; transform: rotate(-8deg); }
body.tight .gfxslash { position: absolute; left: -30%; width: 160%; height: var(--sp-3); top: calc(50% - var(--sp-2)); border-radius: var(--r-tag); transform: rotate(var(--ang)); background: linear-gradient(90deg, transparent, #fff 25%, #fff 75%, transparent);
  box-shadow: 0 0 0 1.5px rgba(20, 10, 10, .85), 0 0 10px 3px rgba(255, 255, 255, .85), 0 0 22px 6px rgba(220, 30, 50, .65); animation: gfxcut .45s cubic-bezier(.2, .8, .2, 1) forwards; }
body.tight .gfxink { position: absolute; width: var(--sp-3); height: var(--sp-3); border-radius: 50%; background: #b3122b; animation: gfxink .65s ease-out forwards; }
body.tight .gfxring { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #c9a7ff; box-shadow: 0 0 14px 3px rgba(183, 148, 244, .75), inset 0 0 10px rgba(183, 148, 244, .6); animation: gfxring .7s ease-out forwards; }
body.tight .gfxrune { position: absolute; left: 50%; top: 50%; --a: 0deg; font-size: var(--fs-xl); font-weight: 700; color: #efe4ff; text-shadow: 0 0 8px #b794f4; animation: gfxrune .75s ease-out forwards; }
body.tight .gfxmote { position: absolute; left: 50%; top: 50%; width: var(--sp-2); height: var(--sp-2); border-radius: 50%; background: #f3e9ff; box-shadow: 0 0 8px 2px #b794f4; animation: gfxmote .7s ease-out forwards; }
body.tight .gfxheal { position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(111, 207, 151, .55), transparent 60%); animation: gfxfade .6s ease-out forwards; }
body.tight .gfxflash { position: absolute; inset: 0; background: rgba(224, 108, 108, .35); animation: gfxfade .45s ease-out forwards; }

/* ---------- less text (owner 2026-10-21, DESIGN 5): explanations behind a round i (RZ.tipI, the app tooltip of tips.js) ---------- */
body.tight .aic { align-items: center; }
body.tight .tipi { position: relative; flex: none; cursor: help; vertical-align: middle; text-transform: none; letter-spacing: 0; font-family: Georgia, serif; font-size: var(--fs-xs); font-weight: var(--fw-title); line-height: 1; }
body.tight .tipi::before { content: ''; position: absolute; inset: calc(-1 * var(--sp-3)); }   /* a 32 px tap area around the 20 px mark */
body.tight .tipi:hover, body.tight .tipi:focus-visible { background: var(--accent); color: var(--onAccent); border-color: transparent; }
body.tight .prfbh .tipi, body.tight .lvlhead .tipi { font-weight: var(--fw-title); }
/* Looks > Playmat: the crop step folds */
body.tight .pmcropfold > summary { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; list-style: none; }
body.tight .pmcropfold > summary::-webkit-details-marker { display: none; }
body.tight .pmcropfold[open] > .pmcrop { margin-top: var(--sp-5); }
/* "Less text" folds (RZ.lessFold, owner 2026-10-21, DESIGN 5): a closed fold with its title and a short muted note */
body.tight .lessfold { width: 100%; min-width: 0; }
body.tight .lessfold > summary { flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
body.tight .lessfold > .lessfoldb { padding-top: var(--sp-3); }

/* ---------- the Playtest board: polish round (owner, 2026-10-21, after a live 4-player pod; docs/PLAYTEST-PHASE-D-PLAN.md "Polish round") ----------
   Items 2, 7, 9: mirrored seats (top: mana, ribbon, avatar; bottom: avatar, ribbon, mana), the life badge toward the table, your ribbon
   like everyone's. Item 4: the turn number and the timers under the tools. Item 5: the turn block (End turn under the phase button, no
   subtext, a bigger label, a backing for the step icons, one themed phase button per arena). Item 6: the say fan. Item 8: the tucked hand
   a little smaller. Item 10: the mat numbers blend into the mat. */
/* the life badge on a bottom seat sits on the medallion's top (the table side); a top seat keeps it at the bottom (podGeom life) */
body.tight .pttbl.ptpod .ptpav.bot .ptlifeb { top: -2px; }
body.tight .pttbl.ptwide .ptlifeb.me { top: calc(100% - var(--peek) - 62px - var(--av)); }
/* the mana strip: under a bottom ribbon, above a top one (it grows upwards, mana nearest the ribbon) */
body.tight .pttbl.ptpod .ptpinfo.top { transform: translateY(-100%); flex-wrap: wrap-reverse; align-content: flex-end; }
body.tight .pttbl.ptpod .ptpinfo.top.psz { height: auto; min-height: var(--ph); }   /* ticket #299: a top seat's strip grows upwards with its lines (mana under a curse); a fixed one-line box spilled its second line down onto the nameplate */
/* 1v1 plates: the name, the commander's crest line and the title share one left edge (the crest icon hangs in the plate's gutter) */
body.tight .ptname .ptnm, body.tight .ptname .ptcrest, body.tight .ptname .ptttlrow { align-items: center; }
body.tight .ptname .ptnm .rzns { align-self: center; }
/* the turn number and the timers: a pill under the top-centre tools (HUD, not zoomed); everyone's times on hover, focus or a tap */
body.tight .pttbl.ptpod .ptpturn { z-index: 58; transform: translateX(-50%); padding: 0; border-radius: var(--r-pill); pointer-events: auto; background: none; box-shadow: none; font-family: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--ttext); }
body.tight .ptpturnb { display: inline-flex; align-items: center; gap: var(--sp-4); height: var(--h-xs); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
  background: rgba(9, 13, 18, .9); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 50%, transparent), 0 6px 14px rgba(0, 0, 0, .5); color: rgba(241, 236, 224, .9); font: inherit; font-variant-numeric: tabular-nums; }
body.tight .ptpturnb:hover, body.tight .ptpturn.open .ptpturnb { box-shadow: inset 0 0 0 1px var(--tline), 0 6px 14px rgba(0, 0, 0, .5); }
body.tight .ptpturnb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .ptpturnn { font-family: var(--tserif); font-size: var(--fs-md); font-weight: 700; color: var(--tgold2); }
body.tight .ptpturnk { display: inline-flex; align-items: center; gap: var(--sp-1); }
body.tight .ptpturnk .uico { color: color-mix(in srgb, var(--tline) 80%, transparent); }
body.tight .ptpturnl { color: rgba(241, 236, 224, .6); }
body.tight .ptpturnk.me .ptpturnv { color: var(--tgold2); }
body.tight .ptptimes { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 97; display: none; min-width: 220px; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-box);
  background: var(--tink2, #121a22); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 40%, transparent), 0 12px 28px rgba(0, 0, 0, .6); color: rgba(241, 236, 224, .9); font-size: var(--fs-xs); }
body.tight .ptpturn.open .ptptimes, body.tight .ptpturn:focus-within .ptptimes { display: block; }
@media (hover: hover) { body.tight .ptpturn:hover .ptptimes { display: block; } }
body.tight .ptpthead { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; gap: var(--sp-1) var(--sp-3); padding-bottom: var(--sp-3); margin-bottom: var(--sp-2); border-bottom: 1px solid color-mix(in srgb, var(--tline) 25%, transparent); color: rgba(241, 236, 224, .65); }
body.tight .ptpthead .ptpturnv { color: var(--ttext); font-weight: 700; font-variant-numeric: tabular-nums; }
body.tight .ptptrow { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); }
body.tight .ptptrow .ptpturnv { font-weight: 700; font-variant-numeric: tabular-nums; }
body.tight .ptptdot { width: 4px; height: 4px; justify-self: center; border-radius: 50%; background: transparent; }
body.tight .ptptrow.acting .ptptdot { background: var(--tline); box-shadow: 0 0 6px var(--tline); }
body.tight .ptptrow.me .ptptwho { color: var(--tgold2); font-weight: 700; }
body.tight .ptptrow.out { opacity: .5; }
body.tight .ptptnote { padding-top: var(--sp-2); color: rgba(241, 236, 224, .55); font-size: 11px; }
body.tight .ptwrap.ptt.tM.ptpodw .ptpturnb { gap: var(--sp-3); padding: 0 var(--sp-4); }
/* the turn block: the step icons on a backing, the phase button, then End turn (and Undo) under it */
body.tight .ptctlmain { flex-direction: column; gap: var(--sp-3); }
body.tight .ptctlsec { display: flex; gap: var(--sp-3); }
body.tight .ptctlsec .ptend { flex: 1 1 0; justify-content: center; height: var(--h-sm); border-radius: var(--r-ctl); background: rgba(9, 13, 18, .78); color: #dcd8cf; }
body.tight .ptctlsec .ptend.ptundo { flex: 0 0 auto; }
/* T516 (owner 2026-11-04): Undo, End turn and To my turn are icon only (the tooltip names them) */
body.tight .ptctlsec .ptend.ptico { padding: 0 var(--sp-4); }
body.tight .ptctlsec .ptend.ptico.ptundo { min-width: var(--h-sm); padding: 0 var(--sp-3); }
/* T453 (owner 2026-11-03, mockup RjRPsAyEz5SKraGyGfUhQc C): the one Undo button's line. Layer 1 (a held pick): it drains around the edge over
   the 3 s hold; layer 2 (mana Forge can take back): it stays full. Disabled: quiet, no line. The drain is a clock, so it also runs with Motion Off */
body.tight .ptend.ptundo { position: relative; }
body.tight .ptend.ptundo.live { color: var(--tgold2); border-color: rgba(233, 207, 143, .15); }
body.tight .ptend.ptundo .ptring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
body.tight .ptend.ptundo .ptring rect { fill: none; stroke: var(--tgold); stroke-width: 2; stroke-dasharray: 100 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px rgba(255, 196, 110, .6)); }
body.tight .ptend.ptundo.run .ptring rect { animation: ptundodrain 3s linear forwards; animation-delay: inherit; }
body.tight .ptheld .ptctlwho { color: var(--tgold2); }
body.tight button.ptstep { color: #a7adba; }
body.tight .ptstep.on { color: var(--stc); }
body.tight .ptstepi { filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, .9)); }
body.tight .ptstep.now { background: color-mix(in srgb, var(--stc) 16%, transparent); }
body.tight .ptfc { background: rgba(9, 13, 18, .8); }
body.tight .ptpassl { font-size: var(--fs-2xl); letter-spacing: .01em; }
body.tight .ptpass.long .ptpassl { font-size: var(--fs-lg); line-height: 1.15; }
body.tight .ptwrap.ptt.tM.ptpodw .ptsteps button.ptstep { height: var(--h-sm); }
body.tight .ptwrap.ptt.tM.ptpodw .ptpass { height: var(--h-md); }
body.tight .ptwrap.ptt.tM.ptpodw .ptpassl { font-size: var(--fs-xl); }
body.tight .ptwrap.ptt.tM.ptpodw .ptpass.long .ptpassl { font-size: var(--fs-md); }
body.tight .ptwrap.ptt.tM.ptpodw .ptctlsec .ptend { height: var(--h-xs); }
body.tight .ptwrap.ptt.tM.ptpodw .ptctl, body.tight .ptwrap.ptt.tM.ptpodw .ptctlmain, body.tight .ptwrap.ptt.tM.ptpodw .ptctlsec { gap: var(--sp-2); }
/* the phase button is the board's primary (rule 17.1), themed per arena. None: the accent, refined (a lit top edge, a fine inner line) */
body.tight .ptpass { position: relative; isolation: isolate; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 78%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .5), 0 10px 26px color-mix(in srgb, var(--accent) 36%, transparent); }
body.tight .ptpass::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
/* Archive: deep night blue (the accent in its heart), a gold edge and filigree corners */
body.tight .ptwrap.ar-archive .ptpass { color: #f6ead0; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  background: radial-gradient(130% 150% at 50% 0%, color-mix(in srgb, var(--accent) 42%, #22407e) 0%, #12234d 58%, #0a1531 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 75%, transparent), inset 0 0 0 3px #0b1736, inset 0 0 0 4px color-mix(in srgb, var(--tline) 40%, transparent), inset 0 1px 12px rgba(150, 190, 255, .18), 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 26px rgba(4, 10, 30, .7), 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent); }
body.tight .ptwrap.ar-archive .ptpass::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg %3E%3Cpath d='M2 26 V10 Q2 2 10 2 H26' fill='none' stroke='%23e9cf8f' stroke-width='1.4'/%3E%3Cpath d='M6 22 V12 Q6 6 12 6 H22' fill='none' stroke='%23e9cf8f' stroke-width='.8' opacity='.7'/%3E%3Cpath d='M10 10 q5 -1 6 3 q1 4 -3 4 q-3 0 -2 -3' fill='none' stroke='%23e9cf8f' stroke-width='1'/%3E%3Ccircle cx='4.5' cy='4.5' r='1.6' fill='%23e9cf8f'/%3E%3C/g%3E%3C/svg%3E") left 3px top 3px / 28px 28px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='translate%2828 0%29 scale%28-1 1%29'%3E%3Cpath d='M2 26 V10 Q2 2 10 2 H26' fill='none' stroke='%23e9cf8f' stroke-width='1.4'/%3E%3Cpath d='M6 22 V12 Q6 6 12 6 H22' fill='none' stroke='%23e9cf8f' stroke-width='.8' opacity='.7'/%3E%3Cpath d='M10 10 q5 -1 6 3 q1 4 -3 4 q-3 0 -2 -3' fill='none' stroke='%23e9cf8f' stroke-width='1'/%3E%3Ccircle cx='4.5' cy='4.5' r='1.6' fill='%23e9cf8f'/%3E%3C/g%3E%3C/svg%3E") right 3px top 3px / 28px 28px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='translate%280 28%29 scale%281 -1%29'%3E%3Cpath d='M2 26 V10 Q2 2 10 2 H26' fill='none' stroke='%23e9cf8f' stroke-width='1.4'/%3E%3Cpath d='M6 22 V12 Q6 6 12 6 H22' fill='none' stroke='%23e9cf8f' stroke-width='.8' opacity='.7'/%3E%3Cpath d='M10 10 q5 -1 6 3 q1 4 -3 4 q-3 0 -2 -3' fill='none' stroke='%23e9cf8f' stroke-width='1'/%3E%3Ccircle cx='4.5' cy='4.5' r='1.6' fill='%23e9cf8f'/%3E%3C/g%3E%3C/svg%3E") left 3px bottom 3px / 28px 28px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='translate%2828 28%29 scale%28-1 -1%29'%3E%3Cpath d='M2 26 V10 Q2 2 10 2 H26' fill='none' stroke='%23e9cf8f' stroke-width='1.4'/%3E%3Cpath d='M6 22 V12 Q6 6 12 6 H22' fill='none' stroke='%23e9cf8f' stroke-width='.8' opacity='.7'/%3E%3Cpath d='M10 10 q5 -1 6 3 q1 4 -3 4 q-3 0 -2 -3' fill='none' stroke='%23e9cf8f' stroke-width='1'/%3E%3Ccircle cx='4.5' cy='4.5' r='1.6' fill='%23e9cf8f'/%3E%3C/g%3E%3C/svg%3E") right 3px bottom 3px / 28px 28px no-repeat; opacity: .85; }
body.tight .ptwrap.ar-archive .ptpass .ptkey { color: #f6ead0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 55%, transparent); }
/* Workshop: oiled leather in a brass frame with four rivets */
body.tight .ptwrap.ar-workshop .ptpass { color: #fbefd6; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); border: 3px solid transparent;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, rgba(0, 0, 0, .04) 2px 5px) padding-box, radial-gradient(120% 140% at 50% 10%, color-mix(in srgb, var(--accent) 22%, #6b3f22) 0%, #47281a 60%, #2c180f 100%) padding-box,
    linear-gradient(180deg, #f3d48a 0%, #b88a3e 35%, #7a5522 65%, #d9b566 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 2px 8px rgba(255, 210, 150, .12), 0 0 0 1px rgba(0, 0, 0, .65), 0 10px 26px rgba(20, 8, 2, .7), 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent); }
body.tight .ptwrap.ar-workshop .ptpass::before { inset: 3px; background: radial-gradient(circle at 6px 6px, #f7dc98 0 2px, #6b4a1c 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 6px) 6px, #f7dc98 0 2px, #6b4a1c 2.5px, transparent 3.5px),
  radial-gradient(circle at 6px calc(100% - 6px), #f7dc98 0 2px, #6b4a1c 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #f7dc98 0 2px, #6b4a1c 2.5px, transparent 3.5px); }
body.tight .ptwrap.ar-workshop .ptpass .ptkey { color: #fbefd6; box-shadow: inset 0 0 0 1px rgba(243, 212, 138, .55); }
/* Labyrinth: carved stone with a teal rune glow along the cut */
body.tight .ptwrap.ar-labyrinth .ptpass { color: #eaf7f4; text-shadow: 0 0 10px rgba(80, 225, 205, .55), 0 1px 2px rgba(0, 0, 0, .9);
  background: radial-gradient(110% 130% at 50% 0%, #4a5257 0%, #30373b 55%, #1d2225 100%), repeating-linear-gradient(100deg, rgba(255, 255, 255, .03) 0 3px, rgba(0, 0, 0, .05) 3px 7px);
  background-blend-mode: normal, overlay;
  box-shadow: inset 0 0 0 1px rgba(95, 227, 208, .65), inset 0 0 14px rgba(70, 210, 190, .28), inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 20px rgba(60, 200, 180, .3), 0 10px 26px rgba(0, 0, 0, .6); }
body.tight .ptwrap.ar-labyrinth .ptpass::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M8 2 L14 12 L8 22 L2 12 Z M8 7 V17 M4 12 H12' fill='none' stroke='%235fe3d0' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") left 10px center / 12px 18px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Cpath d='M8 2 L14 12 L8 22 L2 12 Z M8 7 V17 M4 12 H12' fill='none' stroke='%235fe3d0' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 12px 18px no-repeat; opacity: .85; filter: drop-shadow(0 0 4px rgba(95, 227, 208, .8)); }
body.tight .ptwrap.ar-labyrinth .ptpass .ptkey { color: #eaf7f4; box-shadow: inset 0 0 0 1px rgba(95, 227, 208, .55); }
body.tight .ptwrap:is(.ar-archive, .ar-workshop, .ar-labyrinth) .ptpass:not(:disabled):hover, body.tight .ptwrap:is(.ar-archive, .ar-workshop, .ar-labyrinth) .ptpass:focus-visible { filter: brightness(1.14); }
body.tight .ptpass:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* T35 (owner 2026-10-21): something on the stack waits on you to let it resolve: a very soft, slow glow around the phase button in the arena's
   colour (keyframes ptneedglow in style.css); motion off and reduced motion keep it still */
body.tight .ptwrap { --pglow: var(--accent); }
body.tight .ptwrap.ar-archive { --pglow: var(--tline); }
body.tight .ptwrap.ar-workshop { --pglow: #f3d48a; }
body.tight .ptwrap.ar-labyrinth { --pglow: #5fe3d0; }
body.tight .ptpass.need::after { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none; opacity: .3;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pglow) 70%, transparent), 0 0 18px 3px color-mix(in srgb, var(--pglow) 55%, transparent); animation: ptneedglow 2800ms ease-in-out infinite alternate; }
body.tight .ptwrap.fxoff .ptpass.need::after { animation: none; opacity: .6; }
@media (prefers-reduced-motion: reduce) { body.tight .ptpass.need::after { animation: none; opacity: .6; } }
/* T37 (owner 2026-10-21): whoever holds priority (not you: your button glows) gets a thin arc that travels around the inside of the avatar's
   rim, in the accent (the active turn keeps its gold halo outside the rim); motion off and reduced motion: a still thin ring */
body.tight .ptprio { position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 190deg, color-mix(in srgb, var(--accent) 45%, transparent) 280deg, color-mix(in srgb, var(--accent) 75%, #fff) 352deg, transparent 360deg), linear-gradient(rgba(11, 16, 22, .82), rgba(11, 16, 22, .82));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: ptpriospin 2600ms linear infinite; }
body.tight .ptwrap.fxoff .ptprio { animation: none; background: rgba(11, 16, 22, .82); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 85%, transparent); }
@media (prefers-reduced-motion: reduce) { body.tight .ptprio { animation: none; background: rgba(11, 16, 22, .82); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 85%, transparent); } }
/* the say fan: phrases on the outer arc, emotes on the inner one, unfolding from the say button on your avatar */
body.tight .ptsaybtn.on { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 4px 10px rgba(0, 0, 0, .55); }
body.tight .ptsayfan { position: absolute; z-index: 96; width: 0; height: 0; }
body.tight .ptmedwrap.me > .ptsayfan { left: 50%; top: calc(100% - var(--peek) - 40px - var(--av) / 2); }   /* the medallion's centre */
body.tight .pttbl.ptpod .ptpav .ptmedwrap.me > .ptsayfan { left: calc(20px + var(--av) / 2); top: calc(20px + var(--av) / 2); }
body.tight .pttbl.ptcol .ptmedwrap.me > .ptsayfan { left: 8px; top: auto; bottom: 14px; }
body.tight .ptsayfan > button { position: absolute; left: 0; top: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); border: 0; cursor: pointer; white-space: nowrap; font: inherit;
  background: rgba(9, 13, 18, .94); color: #f1ece0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 55%, transparent), 0 8px 18px rgba(0, 0, 0, .6); }
body.tight .ptsayfan > .ptsayfp { height: var(--h-xs); padding: 0 var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 700; }
body.tight .ptsayfan > .ptsayfe { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-lg); overflow: hidden; }
body.tight .ptsayfan > .ptsayfe .ptemoimg { width: 36px; height: var(--h-sm); object-fit: contain; }
body.tight .ptsayfan > button:not(:disabled):hover, body.tight .ptsayfan > button:focus-visible { background: color-mix(in srgb, var(--accent) 55%, #0b1016); box-shadow: inset 0 0 0 1.5px var(--accent), 0 8px 18px rgba(0, 0, 0, .6); outline: none; }
body.tight .ptsayfan > button:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
body.tight .ptsayfan > button:disabled { opacity: .5; cursor: default; }
body.tight .ptsayfan.anim > button { animation: ptsayfan calc(220ms * var(--fxk, 1)) cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 18ms); }
body.tight .ptwrap.fxoff .ptsayfan.anim > button { animation: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptsayfan.anim > button { animation: none; } }
/* the tucked hand is a little smaller until you reach for it (hover, focus, a tap); D2's tuck and peek are unchanged */
body.tight .pthand.tt { transform-origin: 50% 0; transform: translate(-50%, calc(var(--hcw) * 1.393 - var(--peek) + 10px)) scale(.86); }   /* the peek keeps its height; every raised state sets its own transform (no scale) */
/* the game-over footer (owner 2026-10-21, item 12): See stats in Analyze | Play again | Leave in one row on the right, Play again the
   primary in the middle; Look at the board on the left. Phones: the same order, Play again the widest, wrapping as a whole */
body.tight .ptgoacts { align-items: center; }
body.tight .ptgomain { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .ptgomain > .ptgoagain { min-width: 160px; }
@media (max-width: 700px) {
  body.tight .ptgoacts > .ptgolook { flex: 1 1 100%; order: 2; }
  body.tight .ptgomain { flex: 1 1 100%; order: 1; }
  body.tight .ptgomain > .btn { flex: 1 1 0; min-width: 0; padding: 0 var(--sp-4); }
  body.tight .ptgomain > .ptgoagain { flex: 2 1 0; min-width: 0; }
}
body.tight .ass { align-self: start; }
/* My collection > Price report > Over time: the fold and its tip side by side, the tip level with the summary */
body.tight .crhist { align-self: flex-start; max-width: 100%; }
body.tight .crhist > .lessfold { width: auto; }
body.tight .crhist > .tipi { margin-top: var(--sp-4); }
/* Board settings (owner 2026-10-21, item 11): sections with one heading style, the game's settings open, the looks as folds with what is
   chosen now, Setup and Concede last. A solid sheet on every arena, 640 px at most (full width on phones). */
body.tight .ptsheet.ptmenush { width: min(520px, 100%); gap: var(--sp-4); background: var(--bar); }
body.tight .ptmenu { gap: var(--sp-4); }
body.tight .ptmsec { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
body.tight .ptmsec:first-child { border-top: 0; padding-top: var(--sp-2); }
body.tight .ptmrow { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .ptmrow .btn { flex: 1 1 auto; }
body.tight .ptmgrid.end { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
body.tight .ptmgrid.end > .btn { justify-content: center; min-width: 0; }
body.tight .ptmfolds { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; }
body.tight .ptmfold + .ptmfold { border-top: 1px solid var(--line); }
body.tight .ptmfold > summary { min-height: var(--h-md); padding: 0 var(--sp-5); gap: var(--sp-4); color: var(--text); font-size: var(--fs-md); }
body.tight .ptmfold > summary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight .ptmfold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .ptmfold > summary > b { flex: none; font-weight: 600; }
body.tight .ptmfoldv { flex: 1 1 auto; min-width: 0; text-align: right; color: var(--text2); font-size: var(--fs-sm); }
body.tight .ptmfold[open] > summary { background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .ptmfold[open] > summary .ptmfoldv { visibility: hidden; }
body.tight .ptmfoldb { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
/* T919 (owner sign-off 2026-11-24, mockup t919): the game's tools as one row of icons, three tabs, one line per setting */
body.tight .ptmenu > .ptmsec.pass { padding: 0; border: 0; gap: var(--sp-3); }
body.tight .ptmpass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tight .ptmacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
body.tight .ptmact { flex-direction: column; justify-content: center; gap: var(--sp-2); min-width: 0; height: auto; min-height: calc(var(--h-md) + var(--sp-6)); padding: var(--sp-4) var(--sp-2) var(--sp-3); font-size: var(--fs-xs); line-height: 1.2; text-align: center; }
body.tight .ptmact > span { max-width: 100%; }
body.tight .ptmact > i { font-style: normal; color: var(--text2); }
@media (max-width: 480px) { body.tight .ptmacts { gap: var(--sp-2); } body.tight .ptmact { padding-inline: 0; font-size: 11px; letter-spacing: -.01em; } }
body.tight .ptmenu > .seg.ptmtabs { display: flex; }
body.tight .ptmtabs > button { flex: 1 1 0; min-width: 0; padding: 0 var(--sp-2); white-space: nowrap; }
body.tight .ptmtab { display: flex; flex-direction: column; }
body.tight .ptmline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); min-height: var(--h-md); padding: var(--sp-2) 0; color: var(--text); font-size: var(--fs-md); }
body.tight .ptmlab { flex: 1 1 auto; display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .ptmtab > *:not(:last-child) { border-bottom: 1px solid var(--line); }
body.tight .ptmtab .ptrng, body.tight .ptmtab .ptmmus { padding-bottom: var(--sp-4); }
body.tight .ptmtab .ptrng .ptmline, body.tight .ptmtab .ptmmus .ptmline { padding-block: 0; }
body.tight .ptmtab > .ptmfold > summary { padding: 0; }
body.tight .ptmtab > .ptmfold > summary > b { font-weight: 400; }
body.tight .ptmtab > .ptmfold .ptmfoldb { padding: 0 0 var(--sp-4); }
body.tight .ptmtab > .ptmfolds { border: 0; border-radius: 0; }
body.tight .ptmtab .foilset { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); min-height: var(--h-md); padding: var(--sp-2) 0; }
body.tight .ptmtab .foilset > .bsavel { flex: 1 1 auto; font-size: var(--fs-md); font-weight: 400; color: var(--text); }
body.tight .ptmtab .foilset > .small { flex-basis: 100%; }
/* a switch: the board menu's on/off settings (RZ.switchLine: a checkbox drawn like the .cdtrack switch) */
body.tight .ptmsw { -webkit-appearance: none; appearance: none; flex: none; margin: 0; width: calc(var(--sp-8) + var(--sp-2)); height: calc(var(--sp-6) + var(--sp-2)); border-radius: var(--r-pill); border: 1px solid var(--line); cursor: pointer;
  background: radial-gradient(circle at calc(var(--sp-1) + (var(--sp-6) - var(--sp-1)) / 2) 50%, var(--text2) 0 calc((var(--sp-6) - var(--sp-1)) / 2), transparent calc((var(--sp-6) - var(--sp-1)) / 2 + .5px)), var(--bar); }
body.tight .ptmsw:checked { border-color: var(--accent);
  background: radial-gradient(circle at calc(100% - var(--sp-1) - (var(--sp-6) - var(--sp-1)) / 2) 50%, var(--onAccent) 0 calc((var(--sp-6) - var(--sp-1)) / 2), transparent calc((var(--sp-6) - var(--sp-1)) / 2 + .5px)), var(--accent); }
body.tight .ptmsw:disabled { opacity: .45; cursor: default; }
body.tight .ptmsw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  body.tight .ptmgrid.end { grid-template-columns: minmax(0, 1fr); }
  body.tight .ptmfold > summary { padding: 0 var(--sp-4); }
}

/* ---------- less text, Analyze and Build (owner 2026-10-21, DESIGN 5) ---------- */
/* Analyze: "0 of 4 parts ready, 4 to make" stays on one line under its button; on a phone the button and the line share one centred column */
body.tight .analyzeall > .small { white-space: nowrap; }
@media (max-width: 700px) {
  body.tight .analyzeall { align-items: stretch; text-align: center; max-width: none; width: 100%; }
  body.tight .analyzeall .btn { width: 100%; }
}
body.tight .di-tile.go[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a theme row with its description in an i beside it: the i sits outside the row button */
body.tight .thline { display: flex; align-items: center; gap: var(--sp-3); padding-right: var(--sp-5); border-bottom: 1px solid var(--line); }
body.tight .thline > .themerow { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
body.tight .thline:has(> .themerow.on) { background: var(--secBg); }
/* a keyword's one-line description opens with its i, above the rules, in full */
body.tight .kwrules .kwdesc { display: block; -webkit-line-clamp: unset; color: var(--text); }
/* a ribbon grows to its name (a bot's full commander name), centred on its avatar, up to 100 px wider than the design's */
body.tight .pttbl.ptpod .ptprib.ptpat.psz { width: max-content; min-width: var(--pw); max-width: calc(var(--pw) + 100px); left: calc(var(--px) + var(--pw) / 2); translate: -50% 0; }
/* the phone's Analyze tabs: each tab is as wide as its label plus an equal share of the rest, so Synergy, Combos and Playbook no longer
   run into each other or get cut off at 390 (nine labels take about 325 px) */
body.tight .antabs button { flex: 1 1 auto; white-space: nowrap; overflow: visible; }
body.tight .ptsayfan.col > button { transform: translate(var(--dx), calc(-50% + var(--dy))); }   /* the column: the fan's left edge is the button's (the phone's left edge) */
body.tight .pttbl.ptpod .ptphint { z-index: 57; }   /* under the timers pill and under any sheet (it moved below the pill) */

/* ---------- mobile quick fixes (owner 2026-10-21; docs/qa/2026-10-21/playtest/mobile-audit/AUDIT.md top 10 #1, #2, #6, #9, #37) ---------- */
/* #1: a phone held sideways (short touch landscape) gets a cover instead of a board without a battlefield. When is ONE rule, in the
   board's code (PC.tableCover: a finger, wider than tall, 560 to 1023 px wide, at most 500 px high, and not the landscape board): it
   puts ptcover on the wrap and draws the cover; these rules only say how it looks. The game runs on underneath. */
body.tight .ptwrap.ptt.ptcover > .ptrotate { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-5);
  padding: var(--sp-6); background: #090d12; color: #ece9e2; font-size: var(--fs-lg); text-align: center; }
body.tight .ptwrap.ptt.ptcover .ptrotatei { display: inline-flex; color: var(--tgold, #e9cf8f); }
/* #2: the camera/mic bar of a friend game (60 px at the bottom of the column) stays below every sheet instead of over its last buttons */
body.tight .ptwrap.ptt:has(> .pttbl.ptcol.vvon) > .ptsheet-bg { padding-bottom: 64px; }
body.tight .ptwrap.ptt:has(> .pttbl.ptcol.vvon) > .ptsheet-bg > .ptsheet { max-height: calc(100% - 48px); }
/* the raised hand's fan drops its outer cards about 40 px below the hand's box: lifted that much more, no corner goes under the bar */
body.tight .pttbl.ptcol.vvon > .pthand.tt:is(.up, .asked, .hovup, :focus-within) { bottom: 104px; }
body.tight .ptwrap.ptt.hasked .pttbl.ptcol.vvon { padding-bottom: calc(var(--hcw) * 1.393 + 112px); }
/* #6: touch hit areas of at least 44 px; the marks keep their size (SCOPE 17.16). The column's corner tools are 44 wide on touch (icons
   only, the top line is 44 tall already); elsewhere an invisible area around them. */
@media (pointer: coarse) {
  body.tight .pttbl.ptcol .pttool { width: var(--h-md); height: var(--h-md); }
  body.tight .pttbl:not(.ptcol) .pttool { position: relative; }
  body.tight .pttbl:not(.ptcol) .pttool::after { content: ''; position: absolute; inset: -2px; }
  body.tight .ptinfo::before { inset: -11px -4px -11px -18px; }   /* 44 x 44 incl. its border; reaching into its own card, not the next one */
  body.tight .ptstackfold::after { inset: -8px; }
  body.tight .ptsaybtn::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
  body.tight .ptfc { position: relative; }
  body.tight .ptfc::after { content: ''; position: absolute; inset: -8px 0; }
}
/* #9: on the column the main button of a question stays in view: the prompt sheet scrolls, its last button row sticks to its bottom */
body.tight .pttbl.ptcol .ptdock .ptprompt.sheet > .ptbtns:last-child { position: sticky; bottom: calc(-1 * var(--sp-5)); z-index: 2; margin: 0 calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5));
  padding: var(--sp-4) var(--sp-5) var(--sp-5); box-sizing: border-box; width: calc(100% + 2 * var(--sp-5)); max-width: none; background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
body.tight .pttbl.ptcol .ptdock .ptprompt.sheet.dialog > .ptbtns:last-child { box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, .5); }
/* sheets taller than the screen (phones): the last row of buttons and the settings' Setup / Concede stay at the bottom, safe-area aware */
@media (max-width: 700px), (max-height: 500px) {
  body.tight .ptsheet { padding-bottom: max(var(--sp-5), env(safe-area-inset-bottom)); }
  body.tight .ptsheet > .ptbtns:last-child, body.tight .ptsheet .ptmenu > .ptmsec.leave:last-child { position: sticky; bottom: calc(-1 * max(var(--sp-5), env(safe-area-inset-bottom))); z-index: 4;
    margin: 0 calc(-1 * var(--sp-6)) calc(-1 * max(var(--sp-5), env(safe-area-inset-bottom))); padding: var(--sp-4) var(--sp-6) max(var(--sp-5), env(safe-area-inset-bottom));
    box-sizing: border-box; width: calc(100% + 2 * var(--sp-6)); max-width: none; background: var(--bar);
    box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, .5); }
}
/* the game-over footer stays in view on a short landscape screen too (it is sticky on phones in portrait already) */
@media (max-height: 500px) and (max-width: 1023px) {
  body.tight .ptgo-bg { padding: 0; }
  body.tight .ptgo { border-radius: 0; border: 0; padding: var(--sp-6) var(--sp-6) 0; min-height: 100%; margin: 0; }
  body.tight .ptgoacts { position: sticky; bottom: 0; background: var(--bar); padding-bottom: var(--sp-4); z-index: 2; }
}
/* #37: the 1v1 table lobby on a phone: Ready (the footer) sticks to the bottom of the screen instead of sitting under the deck art */
@media (max-width: 700px) {
  body.tight .pfpage .pffoot { position: sticky; bottom: calc(-1 * var(--sp-7)); z-index: 5; margin: 0 calc(-1 * var(--gutter)) calc(-1 * var(--sp-7));   /* the page scrolls with a 24 px bottom padding */
    padding: var(--sp-5) var(--gutter) max(var(--sp-5), env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); }
}
/* the account panel's picture is a button: a tap changes it (owner 2026-10-21) */
body.tight .acctavbtn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
body.tight .acctavbtn:hover, body.tight .acctavbtn:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
/* Chronicle, ending a game early (owner 2026-10-21): how it ended, then the places in order; drag a row by its handle or use the arrows */
body.tight .gsheet-bg.fixed { position: fixed; z-index: 60; }
body.tight .gendlist { gap: var(--sp-3); }
body.tight .gendrow { align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); }
body.tight .gendrow.drag { position: relative; z-index: 2; box-shadow: 0 var(--sp-4) var(--sp-7) #0008; }
body.tight .gendgrip { display: flex; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; color: var(--muted); font-size: var(--fs-xl); }
body.tight .gendrow.drag .gendgrip { cursor: grabbing; }

/* ===== the top bar redesign (owner 2026-10-21, mockup 6kLTthG5tZcBWmbPABoV9V): Play, Friends and your picture on the right; the menu always
   shows its words; the guide (i) and the bug report sit at the right end of the page banner; the colour theme lives in your picture's panel ===== */
/* Play: a gold pill that always says Play; at a table "Play 2/4", a pulsing ring while seats are open, a stronger ring once everyone is ready */
/* --pdl / --pdr: the pill's side padding; its parts reach out to the pill's edge by them (T1001) */
body.tight header.top .pdbtn.playpill { --pdl: var(--sp-6); --pdr: var(--sp-6); min-height: var(--h-sm); padding: 0 var(--pdr) 0 var(--pdl); gap: var(--sp-3); border: 0; border-radius: var(--r-pill); background: var(--gold); color: var(--onAccent);
  font-size: var(--fs-md); font-weight: var(--fw-display); white-space: nowrap; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
body.tight header.top .pdbtn.playpill:hover { background: var(--gold); color: var(--onAccent); }   /* the pill keeps its gold: the part under the pointer shows the hover (T1001) */
body.tight header.top .pdbtn.playpill.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 50%, transparent); }
body.tight header.top .pdbtn.playpill.search { animation: attnpulse 1.6s ease-in-out infinite; }
body.tight header.top .pdbtn.playpill.gold { animation: attnpulse 1s ease-in-out infinite; box-shadow: 0 0 0 3px var(--text); }
body.tight header.top .pdbtn.playpill .pddot { background: var(--onAccent); box-shadow: 0 0 0 2px var(--gold); }
body.tight header.top .pdbtn.playpill .pdbtnn { padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--onAccent); color: var(--gold); font-size: var(--fs-xs); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { body.tight header.top .pdbtn.playpill.search, body.tight header.top .pdbtn.playpill.gold { animation: none; } }
/* the page's tools at the right end of the banner, the phone's slim page line and Home's greeting row */
body.tight .pagetools { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; flex: none; }
body.tight .pagetools .iconbtn, body.tight .pagetools .iconbtn2 { width: var(--h-sm); height: var(--h-sm); }

/* the colour theme in your picture's panel: one dot per palette */
body.tight .themedots { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .themedotbtn { width: var(--h-xs); height: var(--h-xs); padding: 0; border: 2px solid transparent; border-radius: var(--r-pill); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
body.tight .themedotbtn.on { border-color: var(--panel); box-shadow: 0 0 0 2px var(--text); }
@media (pointer: coarse) { body.tight .themedotbtn { width: var(--h-sm); height: var(--h-sm); } }
/* the menu keeps its words at every width: first tighter, then without its icons, then on a row of its own (core.js RZ.fitHeader) */
@media (max-width: 1480px) { body.tight .navbtn:not(.on) .navlbl { display: inline; } }
body.tight.hdrfit1 header.top { display: flex; }   /* the menu leaves the exact centre first: the room on both sides of it is shared */
body.tight.hdrfit1 header.top nav.menu { margin: 0 auto; }
body.tight.hdrfit1 header.top .navbtn { padding: 0 var(--sp-4); }
body.tight.hdrfit1 header.top nav.menu { gap: 0; }
body.tight.hdrfit1 header.top .hdr-actions { gap: var(--sp-3); }
/* #273 option A (owner 2026-11-11): no names-only step and no Support heart; after More holds every item it can, narrow tablets get hdrtight */
body.tight.hdrtight header.top .logo svg { height: var(--h-xs); width: auto; }
body.tight.hdrtight header.top .pdbtn.playpill { --pdl: var(--sp-5); --pdr: var(--sp-5); }
body.tight.hdrtight header.top .pdbtn.playpill .pdsegw { display: none; }
/* #273 (owner 2026-11-11, option A): no smaller words and no sideways-scrolling menu any more (hdrfit4, hdrfit5): when the bar does not
   fit, menu items leave from its right end into More (core.js NAV_STAY, RZ.fitHeader). The bar is one row from tablets up; the fit measures the rest */
@media (min-width: 701px) { body.tight header.top { flex-wrap: nowrap; } body.tight header.top nav.menu { flex-wrap: nowrap; } }
body.tight header.top .navout { display: none !important; }
body.tight header.top .logo, body.tight header.top .hdr-actions { flex: none; }   /* #273: the logo never shrinks to make room (at 1101 px it was squeezed 63 -> 54 px and hid that the bar was full); the fit makes room */
body.tight header.top .navmore { display: none; }
body.tight.hdrmore header.top .navmore { display: inline-flex; }
body.tight header.top .navmore .navcaret { margin-left: var(--sp-1); }
/* the More list: under its button at every width (core.js mPlace sets --mx; the Explore sheet's tablet rule is not for it), compact rows */
body.tight .navxpanel.navmorepanel { top: calc(100% + 6px); left: var(--mx, 8px) !important; right: auto; width: min(260px, calc(100vw - 16px)); grid-template-columns: 1fr; gap: 2px; padding: var(--sp-3); border-width: 1px; border-radius: 12px; }
body.tight .navmorepanel .navxtile { min-height: 40px; padding: var(--sp-2) var(--sp-4); gap: var(--sp-4); }
body.tight .navmorepanel .navxtile .navxtext b { white-space: nowrap; }
body.tight header.top .navbtn { white-space: nowrap; flex: none; }   /* a menu word never breaks over two lines (T47) */
/* phones: the slim page line carries the i and the bug; the menu row is a tab bar, an icon with a short word under it */
@media (max-width: 700px) {
  body.tight .pagehead-slim { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-2) var(--gutter); white-space: normal; overflow: visible; }
  body.tight .pagehead-slim:has(~ * :is(.phonetitle, .viewtitle)) { display: flex; }
  body.tight .pagehead-slim:has(~ * :is(.phonetitle, .viewtitle)) .slimtitle { display: none; }
  body.tight .pagehead-slim .slimtitle { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.tight header.top .pdbtn.playpill { --pdl: var(--sp-5); --pdr: var(--sp-5); font-size: var(--fs-sm); }
  body.tight header.top nav.menu { gap: 0; justify-content: space-between; }
  body.tight header.top .navbtn { position: relative; flex: 1 0 auto; flex-direction: column; justify-content: center; gap: var(--sp-1); min-height: var(--h-md); padding: var(--sp-1); font-size: 11px; line-height: 1.2; }
  body.tight header.top .navbtn .navlbl { display: inline; }
  body.tight header.top .navbtn .navlbl[data-short] { font-size: 0; }
  body.tight header.top .navbtn .navlbl[data-short]::after { content: attr(data-short); font-size: 11px; }
  body.tight header.top .navbtn .navcaret { display: none; }
  body.tight header.top .navbtn .navdot { position: absolute; top: var(--sp-1); right: var(--sp-2); margin: 0; }
}
/* T650 round 3 (owner 2026-11-11): Home and Workshop show their names like every other menu button, so opening one never moves the menu. */
/* the menu's groups (owner 2026-10-21): a quieter line than the owner-only divider; phones' tab bar has none */
body.tight .navdiv.grp { background: var(--line); opacity: 1; height: var(--sp-6); margin: 0 var(--sp-2); }
@media (max-width: 700px) { body.tight .navdiv.grp { display: none; } }
/* the friends drawer's title is the way to the Friends page (owner 2026-10-21) */
body.tight .szttlbtn { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
body.tight .szttlbtn:hover, body.tight .szttlbtn:focus-visible { color: var(--accent); }
body.tight .szttlbtn .navico { width: 20px; flex: 0 0 20px; margin-right: var(--sp-1); color: var(--accent); }   /* T105: the friends icon before "Friends ›" */
body.tight .szttlbtn .navico svg { width: 100%; height: auto; }
/* T104 (owner only): find a player by name at the top of the friends drawer */
body.tight .szfindbox { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--line); }
body.tight .szfindbox .szempty { padding: var(--sp-2) 0; }
/* T620 (owner sign-off 2026-11-10, mockup QkzryZEm4Ag7FrAyixFUU6): Invite someone new, at the foot of the drawer while Add a friend is open */
body.tight .szinv { flex: none; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-6); background: var(--card); border-top: 1px solid var(--line); }
body.tight .szinvh { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.tight .szinvh .uico { color: var(--accent); }
body.tight .szinvp { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--text2); }
body.tight .szinvrow { display: flex; align-items: center; gap: var(--sp-3); }
body.tight .szinvl { flex: 1 1 0; min-width: 0; height: var(--h-sm); min-height: var(--h-sm); box-sizing: border-box; padding: 0 var(--sp-4); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--inset); color: var(--text); font: inherit; font-size: var(--fs-sm); }
body.tight .szinvbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
body.tight .szinvbtns > .btn:only-child { grid-column: 1 / -1; }
body.tight .szinv.ph { gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); }
body.tight .szinv.ph .szinvp { font-size: var(--fs-md); }
body.tight .szinv.ph .szinvl, body.tight .szinv.ph .szinvbtns .btn { flex: none; height: var(--h-md); min-height: var(--h-md); font-size: var(--fs-md); }
body.tight .szinvn { font-size: var(--fs-xs); color: var(--muted); }
body.tight .szinv.ph .szinvn { font-size: var(--fs-sm); }
body.tight #szadd.on { color: var(--accent); }
/* My Tale left the menu (owner 2026-10-21): the avatar carries Tamiyo's message dot, and the panel opens with a clear "My Tale ›" */
body.tight .acctbtn { position: relative; }
body.tight .acctbtn .navdot { position: absolute; top: var(--sp-1); right: var(--sp-1); margin: 0; }
body.tight .acctale { flex: 1 1 auto; justify-content: flex-start; }
body.tight .acctale .uico:last-child { margin-left: auto; }
/* the avatar panel's theme (owner 2026-10-21): named style chips with their two colours, then the five mana symbols */
body.tight .themechip { display: inline-flex; align-items: center; gap: var(--sp-3); height: var(--h-xs); padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card2, var(--card)); color: var(--text); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
body.tight .themechip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
body.tight .themesw { width: var(--sp-5); height: var(--sp-5); border-radius: 50%; flex: 0 0 auto; }
body.tight .themepick .pipbtn.on { box-shadow: 0 0 0 2px var(--accent); }

/* ===== the phone board (owner 2026-10-21, wireframes EFXMM91acoPBbnZsRv5KRh signed off with changes A-C; docs/qa/2026-10-21/playtest/mobile-build/):
   the column (phones, portrait tablets) has one top row (step strip, turn, game timer, camera, menu) and, at the bottom, the hand's bay right
   above the dock: the raised hand rises over the fields and never covers Pass, End turn or a question (audit #3) ===== */
body.tight .pttbl.ptcol.ptph { padding-bottom: env(safe-area-inset-bottom); }
body.tight .ptwrap.ptt.hasked .pttbl.ptcol.ptph { padding-bottom: env(safe-area-inset-bottom); }
body.tight .pttbl.ptph > .pttopline.ptphtop { gap: var(--sp-3); padding: 0 var(--sp-4); min-height: var(--h-md); justify-content: flex-start; }
body.tight .pttbl.ptph > .ptphtop > .ptturnno { flex: 0 0 auto; font-family: var(--tserif); font-size: var(--fs-lg); font-weight: 700; color: #ece9e2; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .85); }
body.tight .ptphtop .pttimer { flex: 0 0 auto; min-width: var(--h-md); height: var(--h-md); padding: 0 var(--sp-2); border: 0; background: transparent; color: #c9c6bf; font: inherit; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; cursor: pointer; text-shadow: 0 1px 4px rgba(0, 0, 0, .85); }
body.tight .ptphtop .pttool { flex: 0 0 auto; width: var(--h-md); height: var(--h-md); }
body.tight .ptphtop .ptmenub { position: relative; }
body.tight .ptphtop .ptmenudot { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 8px; height: var(--sp-4); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #090d12; }
body.tight .ptphtop .vvtop { width: auto; min-width: var(--h-md); padding: 0; justify-content: center; }   /* #67: icons 16 + 16 + gap inside the 44 box */
body.tight .ptphtop .vvtop.open { background: rgba(233, 207, 143, .14); }
body.tight .ptphtop .pttoolsx { flex: 0 1 auto; min-width: 0; }
@media (max-width: 380px) { body.tight .ptphtop > .ptturnno { font-size: var(--fs-md); } }
/* the camera button unfolds the bar (your view, Mic, Camera, Settings) under the top row, right-aligned (owner 2026-10-21); Settings opens under it */
body.tight .pttbl.ptph > .vvcorner { position: absolute; z-index: 70; top: calc(var(--h-md) + var(--sp-2)); right: var(--sp-4); }
body.tight .pttbl.ptph > .vvcorner > .vvbar { position: static; padding: var(--sp-3); border-radius: var(--r-box); background: rgba(9, 13, 18, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
body.tight .pttbl.ptph > .vvcorner .vvbtn { flex: 0 0 auto; width: var(--h-md); min-height: var(--h-md); }
body.tight .pttbl.ptph > .vvpanel.set { top: calc(var(--h-md) + var(--sp-2)); bottom: auto; max-height: calc(100% - 120px); white-space: normal; }
body.tight .pttbl.ptph > .vvcorner ~ .vvpanel.set { top: calc(var(--h-md) + 72px); max-height: calc(100% - 180px); }
/* the bottom: the hand's bay (the peek, clipped at its own bottom edge so no card is ever drawn over the dock) and the dock */
body.tight .pttbl.ptph > .ptbot { position: relative; z-index: 60; flex: 0 0 auto; display: flex; flex-direction: column; }
body.tight .pttbl.ptph .ptbay { position: relative; flex: 0 0 auto; height: var(--peek); clip-path: inset(-200vh -100vw 0 -100vw); }
body.tight .pttbl.ptph .ptbay > .pthand.tt { top: 0; bottom: auto; transform: translate(-50%, 0) scale(.86); }
body.tight .pttbl.ptph .ptbay > .pthand.tt:is(.up, .asked, :focus-within), body.tight .pttbl.ptph .ptbay > .pthand.tt.hovup { transform: translate(-50%, calc(var(--peek) - var(--hcw) * 1.393 - var(--sp-8))); }
@media (hover: hover) { body.tight .pttbl.ptph .ptbay > .pthand.tt:hover { transform: translate(-50%, calc(var(--peek) - var(--hcw) * 1.393 - var(--sp-8))); } }
body.tight .pttbl.ptph .pthand.tt .ptrow.fan > .ptslot.hand.lift { transform: translateY(-28px) scale(var(--fs, 1)); z-index: 90; }   /* #144: the focused card is already whole: the lift rises and glows */
body.tight .pttbl.ptph .pthand.tt .ptrow.fan > .ptslot.hand.lift .ptc { box-shadow: 0 0 0 3px var(--tplay), 0 0 24px color-mix(in srgb, var(--tplay) 80%, transparent), 0 12px 28px rgba(0, 0, 0, .65); }
body.tight .pttbl.ptph .pthand.tt .ptrow.fan > .ptslot.hand.lift .ptpips { display: none; }
/* T955 (owner video vb47, signed off 2026-11-28, mockup ~/ce-work/mockups/t955): pick up, then put down. #ptcarry is the picked-up card
   under the mouse (blue edge over the hand, gold over your table), .ptputdown your lit table, #ptdroplab its label, #ptpickhint the one line */
body.tight #ptcarry { --tpick: #5aa8ff; position: fixed; left: 0; top: 0; z-index: 400; width: 150px; pointer-events: none; border-radius: var(--r-md, 8px); rotate: -2deg; box-shadow: 0 0 0 3px var(--tpick), 0 14px 30px rgba(0, 0, 0, .7); }
body.tight #ptcarry > img { display: block; width: 100%; border-radius: inherit; }
body.tight #ptcarry.over { rotate: 0deg; scale: .92; box-shadow: 0 0 0 3px var(--gold), 0 0 24px color-mix(in srgb, var(--gold) 75%, transparent), 0 14px 30px rgba(0, 0, 0, .7); }
@media (prefers-reduced-motion: no-preference) { body.tight #ptcarry { transition: box-shadow .12s, scale .12s, rotate .12s; } }
body.tight .ptwrap.ptcarry .pthand .ptslot.hand.lift > * { opacity: .14; }
body.tight .ptwrap.ptcarry .ptctl.ptlifted { display: none; }   /* a mouse puts the card down on the table: no Cast buttons under the hint line */
body.tight .ptwrap.ptcarry .pthand .ptslot.hand.lift { outline: 2px dashed color-mix(in srgb, var(--text) 40%, transparent); outline-offset: -4px; border-radius: var(--r-md, 8px); }
body.tight .ptputdown { --putdown: inset 0 0 0 2px color-mix(in srgb, var(--gold) 55%, transparent), inset 0 0 36px color-mix(in srgb, var(--gold) 12%, transparent); box-shadow: var(--putdown); }
body.tight .ptputdown.over, body.tight .ptwrap.ptpicking:not(.ptcarry) .ptputdown { --putdown: inset 0 0 0 3px var(--gold), inset 0 0 48px color-mix(in srgb, var(--gold) 26%, transparent); }
/* T990, T988: the whole board is where the card can be let go; its seats paint over an inset shadow, so the board draws the same glow on top */
body.tight .pttbl.ptputdown { box-shadow: none; }
body.tight .pttbl.ptputdown::after { content: ''; position: absolute; inset: 0; z-index: 50; pointer-events: none; box-shadow: var(--putdown); }
body.tight #ptdroplab { position: fixed; z-index: 399; translate: 0 -50%; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: #1b1408; font-size: var(--fs-xs); font-weight: var(--fw-title); white-space: nowrap; pointer-events: none; opacity: .75; }
body.tight #ptdroplab.over { opacity: 1; }
body.tight #ptpickhint { position: fixed; left: 50%; bottom: 8px; translate: -50% 0; z-index: 399; max-width: calc(100vw - 16px); padding: 4px 12px; border-radius: 999px; background: rgba(8, 10, 16, .92); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
body.tight #ptpickhint.touch { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 8px); }
body.tight .pttbl.ptph > .ptbot > .ptdock { position: relative; z-index: 2; padding: 0 var(--sp-4) var(--sp-4); }
/* Pass and End turn in one 56 px row (decision 2); a lifted card's Cast · auto-pay and Pay myself in the same places */
body.tight .pttbl.ptph .ptctlmain { flex-direction: row; gap: var(--sp-3); }
body.tight .pttbl.ptph .ptctlsec { flex: 0 0 auto; gap: var(--sp-3); }
body.tight .pttbl.ptph .ptctlsec .ptend { flex: 0 0 auto; min-width: 104px; height: var(--h-lg); border-radius: var(--r-box); font-size: var(--fs-md); }
body.tight .pttbl.ptph .ptctlsec .ptend.ptundo { min-width: 0; }
body.tight .pttbl.ptph .ptctlsec .ptend.ptico { min-width: 0; width: 52px; padding: 0; }   /* T516: icon only, the phase button gets the room */
body.tight .pttbl.ptph .ptctl.ptlifted .ptpass { background: var(--tplay, var(--accent)); color: #0b1016; text-shadow: none; }
/* tiles (decision 5): names at 12 px on a 16 px plate, no i badges on touch (a long press opens the card) */
body.tight .pttbl.ptph :is(.tw80, .tw74, .tw72, .tw64, .tw56, .tw48) .ptnpn, body.tight .pttbl.ptph :is(.tw80, .tw74, .tw72, .tw64, .tw56, .tw48) .ptnppt { font-size: var(--fs-xs); }
body.tight .pttbl.ptph :is(.tw64, .tw56, .tw48) .ptnp { height: max(var(--sp-6), calc(var(--tw) * .18)); }
@media (hover: none) and (pointer: coarse) { body.tight .ptwrap.ptt .ptinfo { display: none; } }
/* every clock */
/* the trigger order list on the column: two lines per trigger, 44 px arrows (audit #23) */
body.tight .pttbl.ptph .ptorder .ptoptl { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
body.tight .pttbl.ptph .ptorder { flex-wrap: nowrap; align-items: center; gap: var(--sp-3); }
body.tight .pttbl.ptph .ptorder .iconbtn2 { flex: none; width: var(--h-md); height: var(--h-md); }
body.tight .pttbl.ptph .ptordmv { flex-direction: row; gap: var(--sp-3); }   /* T877: side by side on the phone, at full touch size */
body.tight .pttbl.ptph .ptordmv .iconbtn2 { width: var(--h-md); height: var(--h-md); }
body.tight .pttimes { display: flex; flex-direction: column; gap: var(--sp-3); font-variant-numeric: tabular-nums; }
/* decision 6: a ×N stack fans open on touch: each card at 96 px, All N, Details */
body.tight .ptspread-bg, body.tight .pttbl.ptcol > .ptspread-bg { position: absolute; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: rgba(0, 0, 0, .45); }
body.tight .ptspread { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 100%; max-height: 100%; overflow-y: auto; padding: var(--sp-5); border-radius: var(--r-box); background: rgba(14, 20, 26, .97);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 35%, transparent), 0 12px 32px rgba(0, 0, 0, .6); }
body.tight .ptspreadrow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); padding-top: var(--sp-4); }
body.tight .ptspreadrow > .ptslot.pttl { position: relative; }
body.tight .ptspread > .ptbtns { display: flex; gap: var(--sp-4); justify-content: center; }
body.tight .ptspread > .ptbtns .btn { min-height: var(--h-md); }
/* ticket #143: the stack panel and the choose panel are always the dark table ink, also in the light theme: they keep the dark theme's text
   tokens, so a secondary button, a muted hint or oracle text is not dark text on a dark panel */
body.tight .ptspread, body.tight .ptsrch { --text: #ece9e2; --text2: #c9c6bf; --muted: #9aa0ad; --line: #2c303b; }
/* owner only, while seeing the site as a player: the way back to Admin > Player view (2026-10-21) */
body.tight .pvchip { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--gold); }
/* audit #8: the library search while the keyboard is up (body.ptkb, touch only): a list, the dialog as tall as the visual viewport, Cancel /
   Confirm right above the keys; closing the keyboard brings the carousel back with the picks kept */
body.tight .ptsrchty { display: none; }
body.tight.ptkb .ptsrchbg { top: var(--vvtop, 0px); bottom: auto; height: var(--vvh, 100%); padding: 0; align-items: stretch; }
body.tight.ptkb .ptsrch { width: 100%; height: 100%; max-height: none; border-radius: 0; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6) 0; overflow: hidden; }
body.tight.ptkb .ptsrchhd { flex-direction: row; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
body.tight.ptkb .ptsrchhd .ptpk { display: none; }
body.tight.ptkb .ptsrcht { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body.tight.ptkb .ptsrchsub { flex: none; font-size: var(--fs-xs); }
body.tight.ptkb .ptsrchtools .chip, body.tight.ptkb .ptsrchcount, body.tight.ptkb .ptsrcharr, body.tight.ptkb .ptsrchhint { display: none; }
body.tight.ptkb .ptsrchcar { flex: 1 1 0; min-height: 0; align-items: stretch; }
body.tight.ptkb .ptsrchtrack { --sw: 100%; flex-direction: column; gap: var(--sp-3); overflow-x: hidden; overflow-y: auto; padding: 0; scroll-snap-type: none; }
body.tight.ptkb .ptsrchcw { flex: 0 0 auto; width: 100%; flex-direction: row; align-items: center; gap: var(--sp-4); padding: var(--sp-2) var(--sp-3); box-sizing: border-box; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .04); }
body.tight.ptkb .ptsrchcw.on { box-shadow: inset 0 0 0 2px var(--accent); }
body.tight.ptkb .ptsrchc { width: 40px; flex: none; }
body.tight.ptkb .ptsrchc:hover, body.tight.ptkb .ptsrchc:focus-visible { transform: none; }
body.tight.ptkb .ptsrchimg { border-radius: var(--r-tag); }
body.tight.ptkb .ptsrchcw { position: relative; }
body.tight.ptkb .ptsrchc { position: static; }
body.tight.ptkb .ptsrchc::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-ctl); }   /* the whole row is the target */
body.tight.ptkb .ptsrchz { position: relative; z-index: 1; }
body.tight.ptkb .ptsrchok { width: 24px; right: 56px; top: calc(50% - 12px); }
body.tight.ptkb .ptsrchcap { flex: 1 1 auto; min-width: 0; min-height: var(--h-md); }
body.tight.ptkb .ptsrchn { display: flex; flex-direction: column; font-size: var(--fs-md); }
body.tight.ptkb .ptsrchty { display: block; font-size: var(--fs-xs); font-weight: 400; color: #a9a59b; overflow: hidden; text-overflow: ellipsis; }
body.tight.ptkb .ptsrchbtns { flex: none; margin: 0 calc(-1 * var(--sp-6)); padding: var(--sp-4) var(--sp-6); background: rgba(9, 13, 18, .96); box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, .5); }
body.tight.ptkb .ptsrchbtns .btn { flex: 1 1 0; }
/* the table drawer's footer (owner 2026-10-21): Ready and a close ✕ side by side; the balance line sits just above them */
body.tight .pdfootrow { align-items: stretch; }
body.tight .pdfootrow > .btn { flex: 1 1 auto; min-width: 0; }
body.tight .pdleave { flex: 0 0 auto; gap: var(--sp-3); }
body.tight .btn.pdleave.armed { background: var(--bad); color: var(--onAccent); border-color: var(--bad); }   /* T204: the armed check mark */
body.tight .pdfootrow #pdleave { min-height: var(--h-md); padding: 0 var(--sp-6); }   /* T190: icon-only Leave, left of Invite in the lobby footer */
body.tight #pdleave:not(.armed) svg { transform: scaleX(-1); }   /* T190: the door arrow points in, away from the screen edge */   /* T113: the lobby's Leave (the door), in place of the strip's red ✕ */
body.tight .pdfoot2 .pdbal, body.tight .szfoot .pdbal { margin-bottom: var(--sp-3); }

/* ===== touch tablets in landscape (owner 2026-10-21, decisions 14 and 15, change B): the desktop boards (1v1, 3A, 2 x 2) with touch sizes
   only. .touch = (hover: none) and (pointer: coarse) (playtest.js touchUI); a desktop never gets it ===== */
body.tight .ptwrap.ptt.touch { --sidew: 412px; }   /* PC.TOUCH_SIDE: 8 steps and Full control at 44 */
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .pttool { width: var(--h-md); height: var(--h-md); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) button.ptstep, body.tight .ptwrap.ptt.touch.tM.ptpodw .ptsteps button.ptstep { width: var(--h-md); height: var(--h-md); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptfc { min-width: var(--h-md); height: var(--h-md); padding: 0 var(--sp-3); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptfc .ptfcl { display: none; }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptfc::before { content: 'Full'; }
/* End turn to the right of the phase button, both 56 tall (change B) */
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlmain { flex-direction: row; gap: var(--sp-3); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlsec { flex: 0 0 auto; gap: var(--sp-3); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlsec .ptend { flex: 0 0 auto; min-width: 104px; height: var(--h-lg); border-radius: var(--r-box); font-size: var(--fs-md); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlsec .ptend.ptundo { min-width: 0; }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlsec .ptend.ptico { min-width: 0; width: 52px; padding: 0; }   /* T516: icon only, the phase button gets the room */
body.tight .ptwrap.ptt.touch:is(.ptwide, .ptpodw) .ptpass { height: var(--h-lg); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctl.ptlifted .ptpass { background: var(--tplay, var(--accent)); color: #0b1016; text-shadow: none; }
/* no key hints, no number chips on touch (decision 15): a tap on an avatar leans in */
body.tight .ptwrap.ptt.touch .ptkey, body.tight .ptwrap.ptt.touch .ptphint { display: none; }
/* the graveyard right next to the library, the same size and top edge (change B); theirs under the 44 px tools (PC.TOUCH_LIB_TOP) */
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptlib.opp { top: 60px; right: 325px; }   /* 40 px further in: the stack's label keeps clear of their graveyard */
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptgrave { width: var(--libw); transform: none; }
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptgrave.opp { right: calc(317px - var(--libw)); top: 60px; }
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptgrave.me { left: calc(297px - var(--libw)); bottom: calc(16px - var(--pdrop, 0px)); }
body.tight .ptwrap.ptt.touch .pttbl.ptpod .ptgrave.pl, body.tight .ptwrap.ptt.touch .pttbl.ptpod .ptgrave.pr { transform: none; }
/* the hand on a touch 1v1 table: it ends 48 px before the wider band (the turn block), at most --handzone wide */
body.tight .ptwrap.ptt.touch .pttbl.ptwide .pthand.tt { left: calc(100% - var(--sidew) - 48px - min(var(--handzone), calc(100% - var(--sidew) - 168px)) / 2); width: min(var(--handzone), calc(100% - var(--sidew) - 168px)); max-width: none; }
/* Explore holds three items now (owner 2026-10-21): one column, narrower */
body.tight .navxpanel { grid-template-columns: 1fr; width: min(380px, calc(100vw - 16px)); }
/* Explore > Public decks, Find a deck (owner mockup signed off 2026-10-21): one search with suggestions, Filters open in place under it in
   two columns (one on a phone), Sort a drop-down that opens downward, the active filters as chips */
body.tight .exfband { gap: var(--sp-4) !important; }
body.tight .exfindw { position: relative; flex: 1 1 420px; min-width: 0; }
body.tight .exfind { display: flex; align-items: center; gap: var(--sp-4); height: var(--h-md); padding: 0 var(--sp-5); border: 1px solid var(--field); border-radius: var(--r-box);
  background: var(--card); color: var(--muted); box-sizing: border-box; }
body.tight .exfind:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
body.tight .exfind input { flex: 1; min-width: 0; height: 100%; min-height: 0 !important; border: 0 !important; padding: 0 !important; background: transparent !important; outline: none; font-size: var(--fs-md); color: var(--text); }
body.tight .exfbtns { flex: 0 0 auto; align-items: center; }
body.tight .exac { position: relative; flex: 1 1 160px; min-width: 0; }
body.tight .exin { display: flex; align-items: center; gap: var(--sp-3); height: var(--h-sm); padding: 0 var(--sp-4); border: 1px solid var(--field); border-radius: var(--r-ctl); background: var(--inset); color: var(--muted); box-sizing: border-box; }
body.tight .exin:focus-within { border-color: var(--accent); }
body.tight .exin input { flex: 1; min-width: 0; height: 100%; min-height: 0 !important; border: 0 !important; padding: 0 !important; background: transparent !important; outline: none; font-size: var(--fs-sm); color: var(--text); }
body.tight .exsugg { position: absolute; left: 0; right: 0; top: calc(100% + var(--sp-2)); z-index: 40; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
body.tight .exac .exsugg { min-width: 240px; }
body.tight .exsrow { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); text-align: left; font-size: var(--fs-sm); cursor: pointer; }
body.tight .exsrow:hover, body.tight .exsrow.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
body.tight .exsk { flex: 0 0 76px; }
body.tight .exsn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
body.tight .exsm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .exsnone { padding: var(--sp-3) var(--sp-4); }
body.tight .exsortw { position: relative; }
body.tight .exsortbtn { gap: var(--sp-2); }
body.tight .exsortbtn b { font-weight: 700; }
body.tight .exchev { display: inline-flex; margin-left: var(--sp-2); opacity: .7; transition: transform .15s; }
body.tight .exchev.up { transform: rotate(180deg); }
body.tight .exsortpop { position: absolute; right: 0; top: calc(100% + var(--sp-2)); z-index: 40; width: 200px; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
body.tight .exsortopt { min-height: var(--h-sm); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text2); text-align: left; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
body.tight .exsortopt:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
body.tight .exsortopt.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
body.tight .exfpanel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-7); padding: var(--sp-6); margin: 0; }
body.tight .exf { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-5); align-items: center; min-width: 0; }
body.tight .exfv { min-width: 0; }
body.tight .exfcols { gap: var(--sp-4); align-items: center; }
body.tight .exfcards { align-items: center; }
body.tight .exfprice { align-items: center; }
body.tight .exfprice input { flex: 1; min-width: 0; }
body.tight .exfpv { min-width: 48px; text-align: right; font-size: var(--fs-sm); }
body.tight .exfshow { gap: var(--sp-4) var(--sp-6); font-size: var(--fs-sm); }
body.tight .exfshow label { align-items: center; }
body.tight .exfpanel select { width: 100%; height: var(--h-sm); }
body.tight .exchips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
body.tight .exchips .chip { min-height: var(--h-xs); gap: var(--sp-2); }
body.tight .exres { margin-right: var(--sp-2); }
@media (max-width: 900px) { body.tight .exfpanel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  body.tight .exfindw { flex-basis: 100%; }
  body.tight .exfpanel { padding: var(--sp-5); }
  body.tight .exf { grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-4); }
  body.tight .exsortpop { right: auto; left: 0; }
  body.tight .exchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.tight .exchips > * { flex: 0 0 auto; }
  body.tight .exsk { flex-basis: 64px; }
  body.tight .exfpanel .exbrkbtn { min-width: 0; padding: 0 var(--sp-3); }
}
/* card details, Collection: one line per owned version with "Use this" (owner 2026-10-21) */
body.tight .cdownlist { gap: var(--sp-4); }
body.tight .cdownv { gap: var(--sp-1); }
body.tight .cdownv > .row { gap: var(--sp-3); align-items: center; min-height: var(--h-sm); }
/* per print (2026-10-26): copies left in the tick colours, blue = free, amber = every copy in a deck */
body.tight .cdownuse { color: var(--muted); }
body.tight .cdownuse .cdfree { color: #5aa9f0; font-weight: 600; }
body.tight .cdownuse .cdtaken { color: var(--warn); font-weight: 600; }
body.tight .cdownv .foilmk { margin-left: var(--sp-2); }
/* Public decks tile footer (owner 2026-10-21): the brewer button has no box, and the title and time sit on a line of their own under the name */
body.tight .exwhobtn { background: none; border: 0; padding: 0; margin: 0; display: inline-flex; align-items: center; gap: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; max-width: 100%; text-align: left; }
body.tight .exwhobtn:hover .rzns, body.tight .exwhobtn:focus-visible .rzns { text-decoration: underline; }
body.tight .exwho { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-2); white-space: normal; }
body.tight .exwho > .exwhobtn { grid-column: 1 / -1; }
body.tight .exwhosub { grid-column: 1 / -1; display: flex; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; padding-left: calc(28px + var(--sp-2)); }
/* T926: the worn title truncates first; the dot and the time (last edit) never shrink */
body.tight .exwhosub .rztitle { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.tight .exwhosub .exwhodot, body.tight .exwhosub .exwhowhen { flex: none; }
/* the menu row of Public decks and Cards sticks to the top while the list scrolls, like EDHREC's sort bar (owner 2026-10-21); phones keep the screen for the cards */
@media (min-width: 700px) { body.tight .xstick { position: sticky; top: calc(-1 * var(--sp-6)); z-index: 20; isolation: isolate; } body.tight .xstick::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: var(--bg); } body.tight .page:has(.xstick) { overflow-x: clip; } }   /* the band's background runs edge to edge without clipping its menus */
/* Back to top (T301): a round secondary button bottom right, fades in after ~1.5 screens (core.js). It sits above Tamiyo's bubble; on phones the bubble is docked in the bottom bar, so it clears that bar. Hidden on the board and while a modal, drawer or sheet is open. */
body.tight .totop { position: fixed; right: calc(var(--sp-6) + env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: var(--h-md); height: var(--h-md); display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(var(--sp-4)); transition: opacity .2s, transform .2s, visibility 0s .2s, border-color .15s, color .15s; }
body.tight .totop.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
body.tight .totop:hover, body.tight .totop:focus-visible { border-color: var(--accent); color: var(--accent); }
body.tight.bare .totop, body.tight:has(.modal, .drawer-bg, .gsheet, .tscrim, .navhamscrim, .pfscrim, .rzmatscrim, .szscrim, .pdbanscrim) .totop { display: none; }
@media (max-width: 699px) { body.tight .totop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: calc(var(--sp-5) + env(safe-area-inset-right, 0px)); } }
@media (prefers-reduced-motion: reduce) { body.tight .totop { transition: none; } }
/* Mini music player (T300, owner 2026-10-26): a pill bottom left while page music plays (music.js paint): note, track, pause, skip. Paused it
   stays a moment, then tucks away. It rises above a bar fixed or sticky at the bottom (--mplift, measured in music.js) or the safe area, moves
   right of the folded update icon (T255), keeps clear of Back to top (T301) on the right, and hides on the board and under a modal or sheet. */
body.tight .mpill { position: fixed; left: calc(var(--sp-6) + env(safe-area-inset-left, 0px)); bottom: calc(var(--sp-6) + max(var(--mplift, 0px), env(safe-area-inset-bottom, 0px))); z-index: 55;
  display: flex; align-items: center; gap: var(--sp-2); height: var(--h-md); max-width: min(320px, calc(100vw - var(--h-md) - var(--sp-8) - var(--sp-7))); padding: 0 var(--sp-2) 0 var(--sp-5);
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--panel); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.35); font-size: var(--fs-sm);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(var(--sp-4)); transition: opacity .2s, transform .2s, visibility 0s .2s; }
body.tight .mpill.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
body.tight .mpill.still { transition: none; transform: none; }
body.tight .mpill .mpico { flex: none; display: inline-flex; color: var(--accent); }
body.tight .mpill .mpname { flex: 1 1 auto; font-weight: 600; padding-right: var(--sp-2); }
body.tight .mpill .mpbtn { flex: none; width: var(--h-sm); height: var(--h-sm); display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); cursor: pointer; }
body.tight .mpill .mpbtn:hover, body.tight .mpill .mpbtn:focus-visible { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .mpill .mpbtn:disabled { opacity: .4; cursor: default; background: transparent; color: var(--text); }
body.tight .mpill.paused .mpi-pause, body.tight .mpill:not(.paused) .mpi-play { display: none; }
body.tight .mpill.paused .mpname { color: var(--muted); }
body.tight:has(#updatebar.mini) .mpill { left: calc(var(--sp-6) + var(--sp-8) + var(--sp-4) + env(safe-area-inset-left, 0px)); }
body.tight.bare .mpill, body.tight:has(.modal, .drawer-bg, .gsheet, .tscrim, .navhamscrim, .pfscrim, .rzmatscrim, .szscrim, .pdbanscrim, .acct-bg) .mpill { display: none; }
@media (max-width: 699px) { body.tight .mpill { left: calc(var(--sp-5) + env(safe-area-inset-left, 0px)); bottom: calc(var(--sp-5) + max(var(--mplift, 0px), env(safe-area-inset-bottom, 0px))); } }
@media (prefers-reduced-motion: reduce) { body.tight .mpill { transition: none; transform: none; } }
/* apprenticeship: Level 0 at the left of the bar, Level 1 at the right (owner 2026-10-21); the task's button sits inside its sentence */
body.tight .apprlvlrow .prfbar { flex: 1 1 auto; min-width: 0; margin: 0; }
body.tight .apprlvlrow .apprlvl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--sp-1); }
body.tight .apprtt .apprgo { margin: 0 var(--sp-1); vertical-align: middle; }
/* the page banner folds away (owner 2026-10-21): the bug and the unfold arrow then sit in the top bar; the chevron points the way it will move */
body.tight .hdrbanner { display: flex; gap: var(--sp-2); align-items: center; }
body.tight .hdrbanner .iconbtn2 { width: var(--h-sm); height: var(--h-sm); }
body.tight .bannerfold .ico { transform: rotate(180deg); transition: transform .15s; }
body.tight .bannerfold.folded .ico { transform: none; }
/* ---------- the Playtest board on a laptop (owner list 2026-10-21; docs/PLAYTEST-PHASE-D-PLAN.md "Laptop fixes") ----------
   #2 a chosen playmat on a felt painted in perspective (PC.feltHalves via playtest.js matVars, table class .ptpersp): each half as wide
   as the felt at the seam, tipped back about the seam edge so it follows the trapezoid and the felt's rounded outer corners */
body.tight .pttbl.ptwide.ptpersp > .ptmat1.opp { left: var(--mol); right: auto; width: var(--mow); top: var(--mot); bottom: auto; height: var(--moh); transform: var(--motf); transform-origin: 50% 100%; border-radius: var(--morad); }
body.tight .pttbl.ptwide.ptpersp > .ptmat1.me { left: var(--mml); right: auto; width: var(--mmw); top: var(--mmt); bottom: auto; height: var(--mmh); transform: var(--mmtf); transform-origin: 50% 0; border-radius: var(--mmrad); }
/* #5 your life at the bottom of your medallion, as theirs is at the bottom of theirs (the polish round had put it on top) */
body.tight .pttbl.ptwide .ptlifeb.me { top: calc(100% - var(--peek) - 54px); }
/* #8 their medallion as close to the table's rim as yours (--medo = PC.tableGeom medO; 18 px without a painted felt): plinth, life,
   the speaking ring and the camera badge follow it */
body.tight .pttbl.ptwide .ptmed.opp { top: var(--medo, 18px); }
body.tight .pttbl.ptwide .ptplinth.opp { top: calc(var(--medo, 18px) - 20px); }
body.tight .pttbl.ptwide .ptlifeb.opp { top: calc(var(--medo, 18px) - 14px + var(--av)); }
body.tight .pttbl.ptwide .ptmedwrap.opp > .vvring { top: calc(var(--medo, 18px) - 8px); }
body.tight .pttbl.ptwide .vvbadge { top: calc(var(--medo, 18px) - 48px + var(--av)); }
/* #3 mana available as a badge on the medallion (the pods' mana pill): yours on its right, theirs on its left (their camera badge is right) */
body.tight .pttbl.ptwide .ptmedmana { position: absolute; z-index: 37; pointer-events: none; transform: translateY(-50%); }
body.tight .pttbl.ptwide .ptmedmana.me { left: calc(50% + var(--av) / 2 - 10px); top: calc(100% - var(--peek) - 40px - var(--av) * .3); }
body.tight .pttbl.ptwide .ptmedmana.opp { right: calc(50% + var(--av) / 2 - 10px); top: calc(var(--medo, 18px) + var(--av) * .7); }
body.tight .pttbl.ptwide .ptmedmana .ptmav { pointer-events: auto; flex-wrap: nowrap; gap: var(--sp-2); height: var(--h-xs); padding: 0 var(--sp-3); border-radius: var(--r-pill); background: rgba(9, 13, 18, .88);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 45%, transparent), 0 4px 10px rgba(0, 0, 0, .55); white-space: nowrap; }
body.tight .pttbl.ptwide .ptmedmana .ptmavn { font-size: var(--fs-sm); }
/* T711 (owner 2026-11-12): the opponent's ladder by their medallion, under their mana, where you look for them (no longer under the corner plate) */
body.tight .pttbl.ptwide .ptmedlad.opp { position: absolute; z-index: 37; right: calc(50% + var(--av) / 2 - 10px); top: calc(var(--medo, 18px) + var(--av) * .7 + var(--h-xs) / 2 + 4px); }
body.tight .pttbl.ptwide .ptmedlad .ptladin.k-row { margin-top: 0; }
body.tight .pttbl.ptwide .ptmedmana .ptmavl { display: none; }
body.tight .pttbl.ptwide .ptmedmana .ptmav.zero { display: none; }
/* #4 the box over the medallion that holds its phrase or emote bubble (T423: the bubble's fixed spot beside it, at the end of this file) */
body.tight .pttbl.ptwide .ptmedbub { position: absolute; z-index: 39; left: calc(50% - var(--av) / 2); width: var(--av); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
body.tight .pttbl.ptwide .ptmedbub.me { top: calc(100% - var(--peek) - 40px - var(--av)); }
body.tight .pttbl.ptwide .ptmedbub.opp { top: var(--medo, 18px); }
/* #7 planeswalkers and battles end the creature row after a wider gap (PC.SEP_GAP) */
body.tight .ptrowt > .ptslot.ptsep { margin-left: 20px; }
/* #9 their hand of card backs bigger on the 2-player table */
body.tight .pttbl.ptwide .ptohand.opp { --ohw: calc(var(--av) * .6); }
/* #11 their library and graveyard beside their medallion (mirrored: library inside, graveyard outside), clear of the tools and the camera
   column at the top right; room for the commander that sticks out toward the middle */
body.tight .pttbl.ptwide .ptlib.opp { right: auto; left: calc(50% + var(--av) / 2 + 24px + var(--libw) * .5); }
body.tight .pttbl.ptwide .ptgrave.opp { right: auto; left: calc(50% + var(--av) / 2 + 41px + var(--libw) * 1.5); }
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptlib.opp { right: auto; left: calc(50% + var(--av) / 2 + 24px + var(--libw) * .5); }
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptgrave.opp { right: auto; left: calc(50% + var(--av) / 2 + 32px + var(--libw) * 1.5); }
/* #10 the key hint on the phase button sits on the label's centre line (it hung on the baseline of a much bigger text) */
body.tight .ptpass .ptpassl { align-items: center; }
body.tight .ptpass .ptkey { align-self: center; line-height: 1.3; vertical-align: middle; position: relative; top: .06em; }
/* vb45 (owner 2026-10-21): commander damage taken as the ring badge on the 2-player medallion (playtest.js medCmd), upper right of it;
   the tip with the breakdown opens toward the table's middle */
body.tight .pttbl.ptwide .ptmedcmd { position: absolute; z-index: 38; left: calc(50% + var(--av) * .3); }
body.tight .pttbl.ptwide .ptmedcmd.me { top: calc(100% - var(--peek) - 40px - var(--av) * .98); }
body.tight .pttbl.ptwide .ptmedcmd.opp { top: calc(var(--medo, 18px) + var(--av) * .02); }
body.tight .pttbl.ptwide .ptmedcmd .ptpbadge { position: relative; min-height: var(--h-xs); padding: 0 var(--sp-3); }
body.tight .pttbl.ptwide .ptmedcmd.opp .ptptip { top: 0; }
body.tight .pttbl.ptwide .ptmedcmd.me .ptptip { top: auto; bottom: 0; }
/* ---------- counter symbols (owner 2026-10-21, docs/design/counters/INVENTORY.md; app/static/counters.js): a chip per counter type, its
   symbol and count; on a tile the chips sit in a row above the name plate (dark on the table in both themes); up to three types, more
   collapse to two and "+N". A walker's loyalty is its name plate number in the loyalty shape. A player's counters sit on the avatar. ---------- */
body.tight .ptctr.g, body.tight .ptctr.more { display: inline-flex; align-items: center; gap: 2px; box-sizing: border-box; padding: 1px var(--sp-2) 1px var(--sp-1); font-size: 11px; line-height: 12px; font-variant-numeric: tabular-nums lining-nums; }
body.tight .ptctr.more { padding: 0 var(--sp-2); }
body.tight .ptslot.pttl .ptctrs { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; max-width: calc(100% - 8px); overflow: hidden; }
body.tight .ptslot.pttl .ptctr, body.tight .ptmedctr .ptctr { background: rgba(9, 13, 18, .9); border: 1px solid rgba(233, 207, 143, .45); color: #f1ece0; }
body.tight .ptctri { display: inline-flex; flex: none; color: var(--kw-icon, #e9cf8f); }
body.tight .ptctri svg { display: block; }
body.tight .ptctr.up .ptctri { color: #7fd36b; }
body.tight .ptctr.dn .ptctri { color: #ff8a80; }
body.tight .ptctr.hot { border-color: var(--bad, #e5534b); }
body.tight .ptctrab { box-sizing: border-box; min-width: 12px; padding: 0 2px; border-radius: 999px; border: 1px solid currentColor; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: -.04em; line-height: 10px; }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64) .ptctr { line-height: 10px; padding: 1px 2px 1px 1px; }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64) .ptctri svg { width: 10px; height: auto; aspect-ratio: 1; }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64) .ptctrs { left: 2px; gap: 2px; }
body.tight .ptnppt.loy { position: relative; display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; margin: -.3em 0; padding: 0; background: none; box-shadow: none; }
body.tight .ptnppt.loy > .ptctri { position: absolute; inset: 0; color: var(--tgold, #e9cf8f); }
body.tight .ptnppt.loy > .ptctri svg { width: 100%; height: 100%; fill: rgba(9, 13, 18, .92); }
body.tight .ptnppt.loy > b { position: relative; font-size: .8em; margin-top: -.08em; }
body.tight .ptmedctr { position: absolute; z-index: 3; left: 50%; top: 9%; transform: translateX(-50%); display: flex; gap: 2px; pointer-events: auto; cursor: default; -webkit-touch-callout: none; user-select: none; }
body.tight .ptwrap.ptt.tC .ptmedctr .ptctr { line-height: 10px; padding: 0 2px 0 1px; }
body.tight .ptwrap.ptt.tC .ptmedctr .ptctri svg { width: 9px; height: auto; aspect-ratio: 1; }
body.tight .ptctrlist { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); }
body.tight .ptctrrow { display: inline-flex; align-items: center; gap: var(--sp-2); }
body.tight .ptctrlist.insp { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid rgba(233, 207, 143, .14); color: #f1ece0; }
body.tight.light .ptctrlist.insp { color: var(--text); border-bottom-color: var(--line); }
body.tight .ptctrlist.sheet .ptctri { color: var(--sec, currentColor); }
body.tight .ptslot.pttl .ptctr .ptctri, body.tight .ptmedctr .ptctri { color: #e9cf8f; }
body.tight .ptslot.pttl .ptctr.up .ptctri, body.tight .ptmedctr .ptctr.up .ptctri { color: #7fd36b; }
body.tight .ptslot.pttl .ptctr.dn .ptctri, body.tight .ptmedctr .ptctr.dn .ptctri { color: #ff8a80; }
/* small tiles (phone, pods): a P/T chip drops its mark (the sign says it), and the counters take the keyword icons' place (both are in the inspector) */
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64, .tw72, .tw74) .ptctr:is(.up, .dn) .ptctri { display: none; }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64) .ptctrs { max-width: calc(100% - 4px); }
/* T21 (2026-10-21): a counter that changed sparks on its chip (playtest.js ctrFx; --fxdq keeps its place over a redraw): up a quick bright pop
   with a gold burst inside the chip, down a short fade down; Motion Off and reduce motion: a brief highlight, nothing moves */
body.tight .ptctr.fxcup, body.tight .ptctr.fxcdn, body.tight .ptctr.fxcflat { position: relative; }
body.tight .ptctr.fxcup { animation: ptctrup calc(380ms * var(--fxk, 1)) ease-out var(--fxdq, 0s) both; }
body.tight .ptctr.fxcup::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 50% 55%, rgba(255, 236, 170, .95) 0, rgba(233, 207, 143, .55) 35%, transparent 72%); animation: ptctrburst calc(380ms * var(--fxk, 1)) ease-out var(--fxdq, 0s) both; }
body.tight .ptctr.fxcdn { animation: ptctrdn calc(380ms * var(--fxk, 1)) ease-out var(--fxdq, 0s) both; }
body.tight .ptctr.fxcflat { animation: ptctrflat 380ms linear var(--fxdq, 0s) both; }
body.tight .ptwrap.fxoff .ptctr:is(.fxcup, .fxcdn), body.tight .ptwrap.fxoff .ptctr.fxcup::after { animation: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptctr:is(.fxcup, .fxcdn), body.tight .ptctr.fxcup::after { animation: none; } }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64, .tw72, .tw74):has(.ptctrs) .ptkws > .ptkwi { display: none; }   /* #304: the zz (.ptsick) stays */
/* a touch tablet's wider turn block reaches the medallion's right side: your mana badge sits on its upper left there (the say button keeps the lower left) */
body.tight .ptwrap.ptt.touch .pttbl.ptwide .ptmedmana.me { left: auto; right: calc(50% + var(--av) / 2 - 10px); top: calc(100% - var(--peek) - 40px - var(--av) * .8); }
body.tight .pttbl.ptpod .ptpav.bot .ptmedctr { top: auto; bottom: 9%; }   /* a bottom pod seat: its life badge sits on top of the avatar */
/* ---------- combat flow (owner 2026-10-21): attacking and blocking, and the travelling star on every line ---------- */
/* a picked attacker lifts; a creature that must attack and a creature that cannot block the chosen attacker say so on their badge */
body.tight .ptslot.pttl.ptlift > .ptc { translate: 0 -10px; box-shadow: 0 0 0 3px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 80%, transparent), 0 18px 30px rgba(0, 0, 0, .6); }
/* T959 (owner video vb50, signed off 2026-11-28): a picked attacker steps forward out of its row with a gold edge and a swords mark */
body.tight .ptslot.pttl.ptlift.ptatkpk > .ptc { translate: 0 -18px; box-shadow: 0 0 0 3px var(--gold), 0 0 22px color-mix(in srgb, var(--gold) 70%, transparent), 0 14px 24px rgba(0, 0, 0, .6); }
body.tight .ptslot.pttl > .ptatkmk { position: absolute; left: 50%; top: -18px; translate: -50% -100%; z-index: 3; display: grid; place-items: center; width: 22px; aspect-ratio: 1; border-radius: 50%; background: rgba(12, 14, 22, .9); color: #ff8a78; box-shadow: 0 0 0 1px var(--gold); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { body.tight .ptslot.pttl.ptatkpk > .ptc { transition: translate .14s ease-out, box-shadow .14s ease-out; } }
body.tight .ptslot.pttl .ptbadge.ptmust { background: #c2581b; color: #fff6ea; }
/* ticket #201 (2026-11-04): a goaded creature's badge, "Goaded by Firkraag" (the Must attack badge of the attack prompt keeps its orange
   and adds whom it may not attack); the inspector's Goaded section uses the Effects section's styles with its own heading colour */
body.tight .ptbadge.ptgoad { background: #7b2d8e; color: #fbf0ff; }
body.tight .ptslot.pttl .ptbadge.ptmust.ptgoad { background: #c2581b; color: #fff6ea; }
body.tight .ptgoadn .ptefh { color: #d9a3ec; }
body.tight .ptgoadn.sheet .ptefh { color: var(--text); }
body.tight.light .ptgoadn .ptefh { color: #7b2d8e; }   /* the light inspector: the badge's purple (#d9a3ec on white was 1.9:1) */
body.tight .ptslot.pttl .ptbadge.ptnoblk { background: rgba(9, 13, 18, .9); color: #b9b3a6; border: 1px solid rgba(233, 207, 143, .25); }
body.tight .ptslot.pttl:is(.tw40, .tw48, .tw56, .tw64, .tw72, .tw74, .tw80) .ptbadge.ptnoblk { display: none; }
/* the blocker drag (mouse): the line from the creature to the pointer, the attacker under it rings gold */
body.tight .ptdragline { position: fixed; left: 0; top: 0; z-index: 94; pointer-events: none; overflow: visible; }
body.tight .ptdragline path { fill: none; stroke: var(--tgold, #e9cf8f); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; opacity: .9; }
body.tight.ptblkdrag, body.tight.ptblkdrag * { cursor: grabbing !important; user-select: none; }
body.tight .ptslot.pttl.ptdragover > .ptc { box-shadow: 0 0 0 4px var(--tgold, #e9cf8f), 0 0 30px color-mix(in srgb, var(--tgold, #e9cf8f) 80%, transparent); }
/* the lines: a thin faint guide, and a comet (glow, tail, head) that travels source -> target along it; attack red, block gold */
body.tight .ptarrows .ptln { color: #e0605a; }
body.tight .ptarrows .ptln.blk { color: var(--tgold, #e9cf8f); }
body.tight .ptarrows .ptln path { fill: none; stroke: currentColor; stroke-linecap: round; filter: none; stroke-dasharray: none; }
body.tight .ptarrows .ptln .base { stroke-width: 1.5; opacity: .4; }
body.tight .ptarrows .ptln.in .base { animation: ptlinein 500ms ease-out both; }
body.tight .ptarrows .ptln.faint .base { stroke: rgba(233, 207, 143, .6); stroke-width: 2; stroke-dasharray: 2 7; opacity: 1; }
body.tight .ptarrows .ptln .glow { stroke-width: 10; opacity: .25; stroke-dasharray: 12 138; animation: ptcometc 2100ms linear infinite; }
body.tight .ptarrows .ptln .tail { stroke-width: 4; opacity: .6; stroke-dasharray: 14 136; animation: ptcometb 2100ms linear infinite; }
body.tight .ptarrows .ptln .head { stroke-width: 2.5; opacity: 1; stroke-dasharray: 5 145; filter: drop-shadow(0 0 4px currentColor); animation: ptcometa 2100ms linear infinite; }
body.tight .pttbl.ptcol .ptarrows .ptln .head { filter: none; }
body.tight .pttbl.ptcamgo .ptarrows .ptln:is(.beam, .faint) { opacity: 0; }
/* reduced motion, or motion off in the board settings: the guide stays, a soft light rests at the target end */
@media (prefers-reduced-motion: reduce) {
  body.tight .ptarrows .ptln :is(.glow, .tail, .head, .base) { animation: none; }
  body.tight .ptarrows .ptln .base { opacity: .55; }
  body.tight .ptarrows .ptln .tail { display: none; }
  body.tight .ptarrows .ptln .head { stroke-dashoffset: -95; }
  body.tight .ptarrows .ptln .glow { stroke-dashoffset: -88; }
}
body.tight .ptwrap.fxoff .ptarrows .ptln :is(.glow, .tail, .head, .base) { animation: none; }
body.tight .ptwrap.fxoff .ptarrows .ptln .base { opacity: .55; }
body.tight .ptwrap.fxoff .ptarrows .ptln .tail { display: none; }
body.tight .ptwrap.fxoff .ptarrows .ptln .head { stroke-dashoffset: -95; }
body.tight .ptwrap.fxoff .ptarrows .ptln .glow { stroke-dashoffset: -88; }
/* the friends drawer beside the Play drawer, and chat tabs (owner 2026-10-21, social.js PAIR_W 1100 px / tabRow, playfriend.js). From
   1100 px the Play drawer keeps the right edge and the friends drawer (.pair) sits left of it, sliding over (social.js animates it, not
   under reduced motion); neither has a backdrop. Open chats are a dock at the bottom of the screen (T354, below). The toasts keep
   clear of both drawers. */
body.tight .szdrawer.pair { right: 380px; }   /* the Play drawer's width (.szdrawer's 380 wins over .pddrawer's 400) */
/* owner 2026-10-22 (vb75): a clearer divider between the two: a 2 px line in a stronger tone on the friends drawer's right edge, the Play
   drawer's own thin left line dropped while they are side by side */
body.tight .szdrawer.pair { border-right: 2px solid color-mix(in srgb, var(--muted) 55%, var(--line)); }
body.tight:has(.szdrawer.pair) .pddrawer.desk { border-left-color: transparent; }
@media (min-width: 1024px) { body.tight.pdopen .szts { right: calc(380px + var(--sp-6)); } }
@media (min-width: 1100px) {
  body.tight.pdopen .szts.bydrawer { right: max(var(--gutter), min(calc(760px + var(--sp-6)), calc(100vw - 360px - var(--gutter)))); }
  body.tight.pdopen.szdesk .pftoast { right: max(var(--gutter), min(calc(760px + var(--sp-6)), calc(100vw - 360px - var(--gutter)))); }
}
/* T354 (owner 2026-10-28): the chat dock. Desktop and tablet: the open chats sit at the bottom of the screen apart from the friends
   list (social.js #szdock), 380 px wide, moved sideways along the bottom edge (social.js sets left). Open, it is as tall as the room
   under the compact list (--drawer-h), at least 340 px and at most 520; folded, only its badge row shows. Where it lies under the list
   (.under), the list ends above it, the same height folded or open. Above the tablet's scrim (66) and the drawers (67). */
body.tight .szlayer { --szdock-h: min(var(--szdock-u, clamp(340px, calc(100dvh - var(--sztop, 60px) - var(--drawer-h) - var(--sp-6)), 520px)), calc(100dvh - var(--sztop, 60px) - var(--sp-6))); }   /* T690: --szdock-u, a height the player picked */
body.tight .szdock { position: absolute; bottom: 0; z-index: 68; height: var(--szdock-h); min-height: 0; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-box) var(--r-box) 0 0; box-shadow: 0 -10px 24px rgba(0, 0, 0, .35); }
body.tight .szdock.fold { height: auto; }
/* T690 (owner 2026-11-12): the dock resizes from its top edge, its side edges and its two top corners (social.js dockSizers): thin
   invisible strips with resize cursors; the top edge (#szdsize, a button: the arrow keys resize too) shows a short handle on hover and
   focus. Not while folded */
body.tight .szdrs { position: absolute; z-index: 3; touch-action: none; }
/* the top edge of the chat dock (.t) and the bottom edge of the friends list (.b, T1000) share one grip */
body.tight .szdrs.t, body.tight .szdrs.b { left: 14px; right: 14px; height: 2px; padding: 2px 0; box-sizing: content-box; border: 0; background: none; cursor: ns-resize; }
body.tight .szdrs.t { top: 0; }
body.tight .szdrs.b { bottom: 0; }
body.tight .szdrs.t::before, body.tight .szdrs.b::before { content: ''; position: absolute; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: var(--r-pill); background: var(--muted); opacity: 0; transition: opacity .15s ease; }
body.tight .szdrs.t::before { top: 2px; }
body.tight .szdrs.b::before { bottom: 2px; }
body.tight .szdock:hover > .szdrs.t::before, body.tight .szdrawer:hover > .szdrs.b::before { opacity: .35; }
body.tight :is(.szdrs.t, .szdrs.b):is(:hover, :focus-visible)::before { opacity: 1; }
body.tight :is(.szdrs.t, .szdrs.b):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .szdrs.l, body.tight .szdrs.r { top: 14px; bottom: 0; width: 6px; cursor: ew-resize; }
body.tight .szdrs.l { left: 0; }
body.tight .szdrs.r { right: 0; }
body.tight .szdrs.tl, body.tight .szdrs.tr { top: 0; width: 14px; aspect-ratio: 1; }
body.tight .szdrs.tl { left: 0; cursor: nwse-resize; }
body.tight .szdrs.tr { right: 0; cursor: nesw-resize; }
@media (pointer: coarse) { body.tight .szdrs.t, body.tight .szdrs.b { height: 4px; padding: 4px 0; } body.tight .szdrs.l, body.tight .szdrs.r { width: 10px; } body.tight .szdrs.t::before, body.tight .szdrs.b::before { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { body.tight .szdrs.t::before, body.tight .szdrs.b::before { transition: none; } }
body.tight .szdrawer.under { max-height: calc(100dvh - var(--sztop, 60px) - var(--szdock-h) - var(--sp-6)); }
body.tight .szchatp .szhead, body.tight .szdrawer.phone .szchath { min-height: var(--h-lg); padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
body.tight .szchatp .szthread { padding: var(--sp-4) var(--sp-6); }
body.tight .szchatp .szcompose { padding: var(--sp-4) var(--sp-5); gap: var(--sp-3); }
body.tight .szdock .szfoot { padding: var(--sp-4) var(--sp-5); }
/* the badge row (mockup option B): the grip, a portrait per open chat, the fold button. The open chat's badge has the accent ring and
   its ✕; the others show theirs on hover or focus (touch: switch first). A dot marks unread messages. The row scrolls sideways with no
   scrollbar and a soft fade where more badges hide (social.js tabFade); a mouse drags it (tabDrag); the row's empty space drags the dock. */
body.tight .sztabs { flex: none; display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-lg); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); box-sizing: border-box; }
body.tight .szdock .sztabs { cursor: grab; touch-action: none; }
body.tight .szwin .sztabs { min-height: 0; padding: var(--sp-2) var(--sp-3); }
body.tight .sztabs > .szi { margin-left: auto; }
body.tight .szbadges { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-4); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; cursor: default; user-select: none; -webkit-user-select: none; }
body.tight .szbadges::-webkit-scrollbar { display: none; }
body.tight .szbadges img { -webkit-user-drag: none; }
body.tight .szbadges.fl { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px); mask-image: linear-gradient(to right, transparent, #000 24px); }
body.tight .szbadges.fr { -webkit-mask-image: linear-gradient(to left, transparent, #000 24px); mask-image: linear-gradient(to left, transparent, #000 24px); }
body.tight .szbadges.fl.fr { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
body.tight .szbadges.ovf { cursor: grab; }
body.tight .szbadges.grabbing, body.tight .szbadges.grabbing * { cursor: grabbing; }
body.tight .szbadge { position: relative; flex: none; display: inline-flex; }
body.tight .szbadgeb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--h-sm); height: var(--h-sm); padding: 0; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; }
body.tight .szbadgeb .szav { width: var(--h-xs); height: var(--h-xs); }
body.tight .szbadge:not(.on) .szbadgeb { opacity: .7; }
body.tight .szbadge:not(.on) .szbadgeb:hover, body.tight .szbadge.unr .szbadgeb { opacity: 1; }
body.tight .szbadge.on .szbadgeb { box-shadow: 0 0 0 2px var(--accent); }
body.tight .szbadgeb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .szdot { position: absolute; right: 0; bottom: 0; width: var(--sp-5); height: var(--sp-5); border-radius: var(--r-pill); background: var(--gold); box-shadow: 0 0 0 2px var(--card); }
body.tight .szbadgex { position: absolute; top: calc(-1 * var(--sp-4)); right: calc(-1 * var(--sp-4)); display: none; align-items: center; justify-content: center; width: var(--sp-7); height: var(--sp-7); padding: 0; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--text); cursor: pointer; }
body.tight .szbadge.on .szbadgex, body.tight .szbadge:hover .szbadgex, body.tight .szbadge:focus-within .szbadgex { display: inline-flex; }
@media (hover: none) { body.tight .szbadge:not(.on):hover .szbadgex { display: none; } }
body.tight .szbadgex:hover, body.tight .szbadgex:focus-visible { border-color: var(--accent); }
body.tight .szchatp.fold .sztabs { border-bottom: 0; }
/* T191: a folded chat with unread messages: the accent tint and a line on the left, a short pulse per new message (not with reduced motion) */
body.tight .szchatp.fold.news, body.tight .szwin.min.news { background: color-mix(in srgb, var(--accent) 16%, var(--card)); box-shadow: inset 4px 0 0 var(--accent), 0 -10px 24px rgba(0, 0, 0, .35); }
body.tight .szchatp.fold.news .sztabs, body.tight .szwin.min.news .szwinh { background: transparent; }
body.tight .szchatp.fold.pulse, body.tight .szwin.min.pulse { animation: szNews .6s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { body.tight .szchatp.fold.pulse, body.tight .szwin.min.pulse { animation: none; } }

/* Admin > To-do (owner sign-off 2026-10-21): one line per item, one line when open; the owner's own list, T-numbers */
body.tight .admsec.tdcap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }   /* .admsec stacks its children; the add bar is one row */
body.tight .tdin { flex: 1 1 260px; min-width: 0; min-height: var(--h-sm); max-height: 240px; padding: var(--sp-3) var(--sp-5); resize: none; overflow-y: auto; line-height: 1.4; font: inherit; field-sizing: content; }
body.tight .tdfull { flex: 1 1 100%; }
body.tight .tdsel { flex: 0 0 auto; height: var(--h-sm); max-width: 170px; }
body.tight .tdgrp { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6) var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body.tight .tdrow { display: flex; align-items: center; gap: var(--sp-4); min-height: 44px; padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-6); border-top: 1px solid var(--line); }
body.tight .tdrow.open, body.tight .tddet { background: color-mix(in srgb, var(--accent) 6%, transparent); }
body.tight .tdrow.fresh { animation: tdfresh 1.8s ease-out; }
@media (prefers-reduced-motion: reduce) { body.tight .tdrow.fresh { animation: none; } }
body.tight .tdid { flex: 0 0 auto; min-width: var(--h-sm); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
body.tight .tdkind { flex: 0 0 auto; display: inline-flex; color: var(--muted); }
body.tight .tdkind.idea, body.tight .tdkind.kidea { color: var(--gold); }
body.tight :is(.tdkind, .admnavk).kbug { color: var(--bad); }
body.tight :is(.tdkind, .admnavk).kwish { color: var(--ok); }
body.tight :is(.tdkind, .admnavk).kquestions { color: var(--accent); }
body.tight .admnavk.kidea { color: var(--gold); }
body.tight .tdttl { flex: 1 1 auto; min-width: 0; padding: var(--sp-3) 0; border: 0; background: none; color: var(--text); font-size: var(--fs-md); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
body.tight .tdrow.closed .tdttl { color: var(--muted); }
body.tight .tdbtn { flex: 0 0 auto; width: var(--h-sm); height: var(--h-sm); }
body.tight .tdbtn .uico { transition: transform .15s; }
body.tight .tdbtn.up .uico { transform: rotate(180deg); }
body.tight .tddet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4) var(--sp-4) calc(var(--sp-6) + var(--h-sm) + var(--sp-4)); }
body.tight .tdnote { flex: 1 1 220px; min-width: 0; height: var(--h-sm); }
@media (pointer: coarse) { body.tight .tdbtn { width: 40px; height: 40px; } }
@media (max-width: 699px) { body.tight .tddet { padding-left: var(--sp-6); } body.tight .tdrow { padding-left: var(--sp-5); gap: var(--sp-3); } }
/* To-do > Questions (owner 2026-10-21): Q-number in the second colour, the page it is about, the full question and the answer when open */
body.tight .tdid.q { color: var(--sec); }
body.tight .tdpage { flex: 0 1 auto; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .tddet.tdq, body.tight .tddet.tdtk { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }   /* T1028: one column; with .tddet's wrap its parts stood side by side on a phone, wider than the screen */
body.tight .tddet.tdq > *, body.tight .tddet.tdtk > * { min-width: 0; }
body.tight .tddet.tdtk > .tdfull { flex: 0 0 auto; }   /* T1028: .tdfull's 100% basis is a height in a column */
body.tight .tdqtext { font-size: var(--fs-sm); color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; }
/* T245: frozen rounds of a reopened item, read only, compact (3 lines; a click shows all of it) */
body.tight .tdrounds { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .tdround { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-1) 0 var(--sp-1) var(--sp-5); border-left: 2px solid var(--line); cursor: pointer; }
body.tight .tdrhead { font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .tdround:not(.all) .tdrtext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.tight .tdrres { font-size: var(--fs-xs); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
body.tight .tdround:not(.all) .tdrres { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tight .tdqans { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .tdqfoot { display: flex; justify-content: flex-end; padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); }
@media (max-width: 699px) { body.tight .tdpage:not(.tdarea) { display: none; } }   /* phones keep a T's area, drop a question's long page path */
/* T607 (owner 2026-11-08): on a phone a row's status (Thinking, the session, tags, pull requests, Close) goes to a second line under the
   title, so the ID, the title and the buttons keep the first line and nothing runs out of the card. ::after is the line break */
@media (max-width: 699px) {   /* T916: id, title and one tag on a single line; PR links, session, reporter and the other tags are in the unfolded row */
  body.tight .tdrow:has(> .tdid) { flex-wrap: wrap; row-gap: 0; align-content: center; }
  body.tight .tdrow:has(> .tdid)::after { content: ''; order: 7; flex-basis: 100%; height: 0; }
  body.tight .tdrow:has(> .tdid) > :is(.tdthink, .tdsess, .tdpr, .tdclose), body.tight .tdrow:has(> .tdid) > .tag:not(.tdarea) { order: 8; margin-bottom: var(--sp-2); }
  body.tight .tdrow:has(> .tdid) > .tdsess { max-width: 50%; }
  body.tight .tdrow.tdcols { flex-wrap: nowrap; }
  body.tight .tdrow.tdcols :is(.tdrep, .tdpr, .tdsess, .tdbatch, .tdmain, .tdstage, .tdneeds) { display: none; }   /* Close and the first status tag stay */
}
/* Play: a person's seat picks one of their decks or a precon (owner 2026-10-21); the precon search fills the seat card */
body.tight .pfpreq { width: 100%; height: var(--h-sm); box-sizing: border-box; }
/* the opening d20 roll (owner 2026-10-21; it replaces the coin toss; playtest.js rollDie / rollMid / rollWide, forge-bridge PROTOCOL.md 18):
   a big d20 in the middle of every mat (yours a button), the rolled numbers, the line in the middle of the table */
body.tight .ptroll { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 22; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; color: var(--tline); }
body.tight .ptrollbox { position: absolute; left: var(--rx); top: var(--ry); width: var(--rw); height: var(--rh); z-index: 6; pointer-events: none; }
body.tight .ptfhalf:has(> .ptroll) { position: relative; }
body.tight .ptrolld { position: relative; width: 88px; aspect-ratio: 1; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--tline) 55%, transparent); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .65)); }
body.tight .ptd20i { position: absolute; inset: 0; display: block; }
body.tight .ptd20i svg { display: block; width: 100%; height: 100%; }
body.tight .ptrollv { position: relative; padding-top: var(--sp-4); font-size: 28px; font-weight: 700; line-height: 1; color: var(--ttext); text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .8); }
body.tight button.ptrolld { border: 0; padding: 0; margin: 0; border-radius: 999px; background: radial-gradient(circle, rgba(9, 13, 18, .6) 0 52%, transparent 70%); color: var(--tgold); font-family: inherit; cursor: pointer; pointer-events: auto; }
body.tight button.ptrolld:hover { color: var(--tgold2); }
body.tight button.ptrolld:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.tight button.ptrolld:disabled { cursor: default; opacity: .7; }
body.tight .ptroll.mine.now .ptrolld { width: 112px; animation: ptd20pulse 1.6s ease-in-out infinite; }
body.tight .ptroll.mine.now .ptrollv { color: var(--tgold2); opacity: .55; }
body.tight .ptrollt { padding: var(--sp-1) var(--sp-4); border-radius: 999px; background: rgba(9, 13, 18, .75); font-size: 13px; font-weight: 600; color: var(--ttext); white-space: nowrap; }
body.tight .ptrollt:empty { display: none; }
body.tight .ptroll.mine.now .ptrollt { background: var(--accent); color: #fff; font-size: 14px; }
body.tight .ptroll.rolled .ptrolld { color: var(--tline); }
body.tight .ptroll.win .ptrolld { color: var(--tgold); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tgold) 65%, transparent)); }
body.tight .ptroll.win .ptrollt { background: color-mix(in srgb, var(--tgold) 85%, #000); color: var(--tink); }
body.tight .ptroll.out { opacity: .5; }
body.tight .ptroll.gone { display: none; }
body.tight .ptroll.spin .ptrolld { animation: ptd20spin 900ms cubic-bezier(.2, .7, .3, 1); }
/* T112: the 3D d20 (dice3d.js): a transparent canvas over the whole mat, the words in a pill at the player's edge, the result's pop */
@font-face { font-family: 'RZ Dice'; font-style: normal; font-weight: 700; font-display: block; src: url(/static/fonts/cormorant-garamond-normal-latin.woff2) format('woff2'); }
body.tight .ptrollw { position: absolute; inset: 0; z-index: 22; pointer-events: none; }
body.tight .ptrollw.gone { display: none; }
body.tight .ptfhalf:has(> .ptrollw) { position: relative; }
body.tight .ptd3 { position: absolute; inset: 0; pointer-events: none; }
body.tight .ptd3.hot { pointer-events: auto; cursor: grab; touch-action: none; }
body.tight .ptd3.grab { cursor: grabbing; }
body.tight .ptd3.pv { overflow: hidden; border-radius: var(--r-box); }
body.tight .ptd3gl { position: absolute; inset: calc(var(--d3m, 0px) * -1); pointer-events: none; transition: opacity .3s; }
body.tight .ptd3gl canvas { position: absolute; left: 0; top: 0; display: block; }
body.tight .ptd3.wait .ptd3gl { opacity: .55; }
body.tight .ptd3fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* T725: a skin's effect (dicefx.js) has a layer under the die and one over it; both reach as far past the mat as the die's own canvas */
body.tight .ptd3fx.ptdfxb, body.tight .ptd3fx.ptdfxt { inset: calc(var(--d3m, 0px) * -1); width: calc(100% + 2 * var(--d3m, 0px)); height: calc(100% + 2 * var(--d3m, 0px)); }
body.tight .ptroll.d3 .ptrollgo { border: 0; margin: 0; background: var(--accent); color: #fff; font-family: inherit; font-size: var(--fs-md); cursor: pointer; pointer-events: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
body.tight .ptroll.d3 .ptrollgo:hover { filter: brightness(1.1); }
body.tight .ptroll.d3 .ptrollgo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.tight .ptroll.d3 .ptrollgo:disabled { cursor: default; opacity: .75; }
body.tight .ptd3pop { position: absolute; z-index: 2; translate: -50% -50%; pointer-events: none; white-space: nowrap; font-family: var(--tserif, Georgia, serif); font-weight: 700; line-height: 1; }
body.tight .ptd3pop.num { font-size: 36px; color: var(--ttext, #f1ece0); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
body.tight .ptd3pop.nat { font-size: 28px; color: #f6d27a; text-shadow: 0 0 14px rgba(246, 190, 80, .75); }
body.tight .ptd3pop.oops { font-size: 28px; color: #e2445c; text-shadow: 0 0 12px rgba(226, 68, 92, .7); }   /* T765: above the seam grip (25), so its pill and line no longer show through the roll banner */
body.tight .ptd3pop.still.num { display: none; }
body.tight .ptrollmid { position: absolute; z-index: 23; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); box-sizing: border-box; max-width: min(560px, 92%); padding: var(--sp-4) var(--sp-6); border-radius: 12px; background: rgba(9, 13, 18, .85); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 30%, transparent), 0 8px 24px rgba(0, 0, 0, .5); pointer-events: none; }
body.tight .ptrollmid.wide { left: var(--rx); top: var(--ry); }
body.tight .ptrollmid.col { position: relative; translate: none; align-self: center; margin: var(--sp-2) auto; }
body.tight .ptrollh { font-size: 16px; font-weight: 600; color: var(--ttext); text-align: center; }
body.tight .ptrollcs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
body.tight .ptrollc { display: inline-flex; align-items: center; gap: var(--sp-3); max-width: 200px; padding: var(--sp-1) var(--sp-4); border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; color: var(--tline); }
body.tight .ptrollc b { font-size: 14px; color: var(--ttext); }
body.tight .ptrollc.win { background: color-mix(in srgb, var(--tgold) 22%, transparent); box-shadow: inset 0 0 0 1px var(--tgold); }
body.tight .ptrollc.win b { color: var(--tgold2); }
body.tight .ptrollc.out { opacity: .6; }
@media (prefers-reduced-motion: reduce) { body.tight .ptroll .ptrolld, body.tight .ptd3pop { animation: none !important; } body.tight .ptd3pop.num { display: none; } }
/* the Play pill's parts (owner 2026-10-21): "Play | Your pod 2/4 | 3 open lobbies", a thin divider before each part; phones keep only the numbers */
body.tight header.top .pdbtn.playpill .pdseg { display: inline-flex; align-items: center; align-self: stretch; gap: var(--sp-2); font-weight: var(--fw-title); white-space: pre; }
body.tight header.top .pdbtn.playpill .pdseg + .pdseg { padding-left: var(--sp-3); border-left: 1px solid color-mix(in srgb, var(--onAccent) 35%, transparent); }
@media (max-width: 699px) { body.tight header.top .pdbtn.playpill .pdsegw { display: none; } }
/* To-do groups fold (owner 2026-10-21): the header is a .rolehead (SCOPE 17.8) in the group label's small caps */
body.tight .tdgrp .rolehead { min-height: var(--h-xs); gap: var(--sp-3); color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
body.tight .tdgrp .rolehead .cnt { color: var(--muted); font-weight: var(--fw-text); letter-spacing: 0; }
@media (pointer: coarse) { body.tight .tdgrp .rolehead { min-height: 40px; } }
/* T50 (owner 2026-10-21): the deck and precon lists at a seat show about 3 rows and scroll */
body.tight .pfdecks.pfscroll { max-height: calc(3 * (var(--h-lg) + var(--sp-4)) + var(--sp-6)); overflow-y: auto; overscroll-behavior: contain; padding-right: var(--sp-2); }
/* owner 2026-10-22: Quick game vs AI (playfriend.js aiView, .pdbody.pdai) has the whole drawer for its decks: the list grows down to the
   footer (Start the game stays in view) and scrolls on its own; the compact list at a seat in the lobby keeps its 3 rows */
/* T106 (owner 2026-10-22: "create a max space of decks ... so that it leaves enough room for the settings to unfold"): the deck list is
   capped (about 5 rows, at most 30% of the screen's height) and scrolls on its own; the drawer's body scrolls when the open Settings
   still need more room, so nothing hides behind Start the game */
body.tight .szbody.pdbody.pdai { overflow-y: auto; }
body.tight .pdbody.pdai .pfdecks.pfscroll { max-height: min(calc(5 * (var(--h-lg) + var(--sp-4)) + var(--sp-4)), 30vh); }
/* its Settings fold: the collapsible look (SCOPE 17.8) on a full row with a line above, easy to see and to hit */
body.tight .pdaifold { border-top: 1px solid var(--line); }
body.tight .pdsetfold.pdaifold > summary { min-height: 44px; font-size: var(--fs-md); color: var(--text); }
body.tight .pdsetfold.pdaifold > summary b { font-size: var(--fs-md); }
body.tight .pdsetfold.pdaifold > summary .chev { color: var(--accent); font-size: var(--fs-2xl); }
/* T107 (owner 2026-10-22): the summary line under Settings sums up the folded rows, so it shows only while the fold is closed (Quick game vs AI and the lobby) */
body.tight .pdsetfold[open] > summary > .small { display: none; }
/* T107: the AI's deck pick under Opponent keeps the seat pick's 3 rows (T50), not the deck list's 5 above */
body.tight .pdbody.pdai .pdaifold .pfdecks.pfscroll { max-height: calc(3 * (var(--h-lg) + var(--sp-4)) + var(--sp-6)); }
body.tight .tdrec { display: inline-flex; align-items: center; gap: var(--sp-1); margin-left: var(--sp-2); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-title); }   /* Claude's pick on a multiple-choice question (2026-10-22) */
/* ticket #54: the board report's screenshot preview */
body.tight .ptrepshot { max-height: var(--h-lg); max-width: 40%; border-radius: var(--r-tag); border: 1px solid var(--line); }
/* T59 (owner 2026-10-22): a public deck's header in four lines: name + tag, who and when, the numbers, then tags and actions */
body.tight .exttl { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3) var(--sp-5); }
body.tight .exttl h1 { min-width: 0; overflow-wrap: anywhere; }
body.tight .exttl .tag { align-self: center; }
body.tight .exby, body.tight .exnums { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-lg); color: var(--text2); }
body.tight .exnums b { color: var(--text); }
body.tight .exbyw { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .exsep { color: var(--muted); }
body.tight .exacts { gap: var(--sp-4); align-items: center; }
@media (max-width: 699px) { body.tight .exacts > .btn:not(.exlikebig) { flex: 1 1 auto; } }
/* T69: "Report this answer" under Tamiyo's chat answers: a quiet flag, then one line */
body.tight .tcrepbtn { opacity: .7; margin-left: var(--sp-8); }
body.tight .tcrepbtn:hover, body.tight .tcrepbtn:focus-visible { opacity: 1; }
body.tight .tcrep { width: 100%; max-width: 520px; padding-left: var(--sp-8); box-sizing: border-box; }
body.tight .tcrep > .row { flex-wrap: wrap; }
body.tight .tcrep input { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); }
body.tight .tcrepdone { margin-left: var(--sp-8); }
body.tight .tdgrp .tdcloseall { text-transform: none; letter-spacing: 0; }   /* Close all on the Finished group (2026-10-22) */
body.tight .tdclose { flex: 0 0 auto; }
body.tight .tdpr { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); text-decoration: none; white-space: nowrap; }   /* T395 round 2: the GitHub icon and #N, a small link */
body.tight .tdpr:hover, body.tight .tdpr:focus-visible { color: var(--text); text-decoration: underline; }
body.tight .tdprdet { display: none; }
@media (max-width: 699px) { body.tight .tdprdet { display: flex; } }   /* phones: also at the top of an unfolded item's details */

/* the builder carousel, card first again (owner 2026-10-22, T58): a compact reason card, the grade on the left, one row of tags beside it
   (more fold into +N, Best with is an (i) at the row's end) and the reason under the tags, two lines at most with "more" (pull the grip up for all of it) */
body.tight .suggestbody.carfill .carside > .carwhy { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-3); align-items: start; }
body.tight .suggestbody.carfill .carside > .carwhy > .carwhyhead { display: contents; }
body.tight .suggestbody.carfill .carside > .carwhy > .carwhyhead > .grade { grid-row: 1 / span 2; }
body.tight .suggestbody.carfill .carside > .carwhy > .carwhyhead > .tagsrow, body.tight .suggestbody.carfill .carside > .carwhy > .carwhy { grid-column: 2; min-width: 0; }
body.tight .suggestbody.carfill .carside > .carwhy > .carwhy { gap: var(--sp-3); }
body.tight .suggestbody.carfill .carside:not(.open):not(.roomy) .carreason { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* T61 (2026-10-22, mockup H9Uv1nf3Wg1QGhoH5YhJLg): the lobby drawer's slim strip (back, who can join, countdown, close) and the table chat */
body.tight .szhead.pdstrip { gap: var(--sp-4); }   /* owner 2026-10-22 (vb75): as tall as the friends drawer's header (.szhead), so both lines meet */
body.tight .pdstrip .pdplayh { flex: none; }   /* "Play ›", the friends drawer's "Friends ›" (.szttlbtn) */
body.tight .pdstrip .iconbtn2 { min-height: var(--h-md); }
body.tight .pdstrip .pdleave { min-height: var(--h-md); padding: 0 var(--sp-5); }   /* T979: Leave is the strip's first button */
body.tight .pdstrip .pdplaybtn { min-height: var(--h-md); gap: var(--sp-3); font-size: var(--fs-lg); font-weight: 700; }   /* T979: back to the Play menu, the top bar's Play symbol with the word */
body.tight .szrow .szinvd { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); cursor: default; }   /* T981: invited to your lobby */
body.tight .pdsetfold > summary { font-size: var(--fs-sm); }
body.tight .tcbox { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bg); }
/* T140 (owner 2026-10-23: "part of the panel, not another box around it"): the lobby's chat sits flush in the panel, a line above it like
   the drawer's other sections; the field keeps its own input look. The board's chat window (.tcpanel) keeps its frame. */
body.tight .tcbox { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
body.tight .tcbox .tchd { padding: 0; border-radius: 0; }
body.tight section.tcbox.open .tchd { border-bottom: 0; border-radius: 0; }
body.tight .tcbox .tcmsgs { padding: var(--sp-2) 0 var(--sp-3); }
body.tight .tcbox .tcin { padding: 0 0 var(--sp-2); border-top: 0; }
body.tight .tcbox .tcheld, body.tight .tcbox .tcerr { padding: var(--sp-2) 0 0; }
/* T770: the board chat's Match | Event tabs (an event's games) and the event room on the draft and pool pages (eventroom.js) */
body.tight .tctabs button { min-height: 28px; padding: 0 var(--sp-4); gap: var(--sp-2); }
body.tight .tctabs .tccnt { margin-left: var(--sp-2); }
body.tight .evroom { gap: var(--sp-3); }
body.tight .evroom .tcbox:first-child { border-top: 0; }
body.tight .tchd { display: flex; align-items: center; gap: var(--sp-4); min-height: 36px; padding: 0 var(--sp-5); border: 0; background: transparent; color: var(--text2); font-size: var(--fs-xs); text-align: left; cursor: pointer; border-radius: var(--r-box); width: 100%; }
body.tight .tchd > b { font-weight: 800; }
body.tight .tclast { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .tcbox.open .tchd { border-bottom: 1px solid var(--line); border-radius: var(--r-box) var(--r-box) 0 0; }
body.tight .tcmsgs { list-style: none; margin: 0; padding: var(--sp-3) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); max-height: 180px; overflow-y: auto; font-size: var(--fs-xs); }
/* T876 (owner pick 2026-11-20, option A): a line is a grid: its time, the text, the buttons. Equal digits make every hh:mm the same width,
   so the times stand in one column; a message's reactions, actions and report form go under its text (column 2 on) */
body.tight .tcm { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-1) var(--sp-4); }
body.tight .tctime { color: var(--muted); font-size: var(--fs-xs); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tight .tcm.tcnote .tcmt, body.tight .tcacts, body.tight .tcrep, body.tight .tcm .szrx, body.tight .tcm > .szq { grid-column: 2 / -1; }   /* a reply's quote: over the text, the time stays level with the text on the row under it */
body.tight .tcmt { min-width: 0; overflow-wrap: anywhere; }
body.tight .tcm b { color: var(--accent); font-weight: 800; }
body.tight .tcm.me b { color: var(--gold); }
body.tight .tcmeta { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-xs); }
body.tight .tcmore { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -6px 0; padding: 0; border: 0; border-radius: var(--r-tag); background: transparent; color: var(--muted); cursor: pointer; opacity: .6; }
body.tight .tcpen { opacity: 0; }
body.tight .tcm:hover .tcpen, body.tight .tcpen:focus-visible { opacity: 1; }
@media (pointer: coarse) { body.tight .tcpen { opacity: .8; } }
body.tight .tcm:hover .tcmore, body.tight .tcmore:focus-visible, body.tight .tcm.act .tcmore { opacity: 1; }
/* T368: the table's own lines ("Sam joined the table"): quiet, italic, no menu */
body.tight .tcm.tcnote { color: var(--muted); font-style: italic; }
/* T200: the table chat's reactions: the friends chat's chips on their own line under the message, the row in the actions */
body.tight .tcm .szrx { margin: 0; }
body.tight .tcacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
@media (pointer: coarse) { body.tight .tcm { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
body.tight .tcrep { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); }
body.tight .tcin { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); }
body.tight .tcin .input { flex: 1; min-width: 0; min-height: 36px; font-size: var(--fs-sm); }
body.tight .tcheld, body.tight .tcerr { padding: var(--sp-2) var(--sp-5) 0; }
body.tight .tcheld b { color: var(--bad); }
body.tight .tcediting { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4) 0; color: var(--accent); }   /* T461: the edit line over the composer */
body.tight .tcbox .tcediting { padding: var(--sp-2) 0 0; }
body.tight .tcedited { font-size: var(--fs-xs); color: var(--muted); }
body.tight .tcshow { font-size: var(--fs-xs); }
body.tight .tcw { position: relative; display: inline-flex; }
body.tight .tctool { position: relative; }
body.tight .tctool.open { color: var(--accent); }
body.tight .tctool .tcbadge { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px var(--bar, #0b0d12); }
body.tight .tcpanel { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); color: var(--text); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); z-index: 60; }
/* T135: the board's table chat as a floating window in the friends chat's look (.szwin); placed and sized inline by tablechat.js */
body.tight .tcpanel.tcwin { position: fixed; z-index: 107; border-radius: var(--r-box); background: var(--bar); box-shadow: 0 16px 40px #000a; }
body.tight .tcwin .tcwinh { min-height: var(--h-lg); gap: var(--sp-2); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2); }
body.tight .tcwin.min .tcwinh { border-bottom: 0; }
body.tight .tcwinh .szi { width: 36px; height: 36px; }
body.tight .tcpanel.tcwin .tcmsgs { flex: 1 1 auto; min-height: 0; max-height: none; }
body.tight .tcpanel.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 60vh; border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.tight .tcpanel .tcmsgs { max-height: 260px; }
body.tight .tcpanel.sheet .tcmsgs { max-height: 40vh; }
body.tight .tcphd { display: flex; align-items: center; gap: var(--sp-4); min-height: 44px; padding: 0 var(--sp-4) 0 var(--sp-5); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
@media (min-width: 1001px) and (max-width: 1199px) { body.tight .buildbar .fbtn .fblbl { display: none; } body.tight .buildbar .fbtn:has(> .fblbl) { min-width: var(--h-sm); padding: 0 var(--sp-5); justify-content: center; } }   /* small laptops: Back and Deckview icon-only, so the Build bar stays one row and the card gets the height (T58) */
/* T66 (owner Q24, 2026-10-22): the combat damage split panel (playtest.js dmgView): one row per blocker, the defender only with trample */
body.tight .ptdmgrow .ptstep { margin-left: auto; }   /* a narrow panel (tablet side panel) puts the − / + under the name, right-aligned */
body.tight .ptdmgrow.met { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
body.tight .ptdmgrow.def { border-style: dashed; }
body.tight .ptdmgl { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1 1 120px; min-width: 0; }
body.tight .ptdmgl > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .ptdmgok { color: var(--ok); }
body.tight .ptdmgpl { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--muted); }
body.tight .ptdmgn { font-size: var(--fs-xl); }
body.tight .ptprompt.ptdmg:not(.sheet) { max-height: 64vh; }
/* T7 (owner 2026-10-22): on a phone the play request / table invite toast is a compact card at the top: avatar 32, one title line, one
   detail line, no tag chips or seat chips (they are in the sheet a tap opens), smaller padding; the countdown bar stays */
@media (max-width: 700px) {
  body.tight .pftoast .pftags, body.tight .pftoast .pdtoastseats, body.tight .pftoast .pfmore { display: none; }
  body.tight .pftoastrow { gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); align-items: center; }
  body.tight .pftoastrow .pftoastav, body.tight .pftoastrow .pfavbtn > * { width: var(--h-sm); height: var(--h-sm); }
  body.tight .pftoastrow .fs16 { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.tight .pftoastrow .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.tight .pftoastacts { padding: 0 var(--sp-5) var(--sp-4); }
}
/* T11: the deck's name in the deck view renames it on a click */
body.tight .subbar .dvrename { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: var(--fw-title); text-align: left; cursor: text; border-bottom: 1px dashed transparent; }
body.tight .subbar .dvrename:hover, body.tight .subbar .dvrename:focus-visible { border-bottom-color: var(--muted); }
body.tight .subbar .dvrenin { min-height: var(--h-sm); padding: 0 var(--sp-4); font-weight: var(--fw-title); width: min(100%, 360px); }
/* T8: the toast's own x */
body.tight .toast { display: flex; align-items: center; gap: var(--sp-3); width: max-content; max-width: calc(100vw - var(--sp-8)); }   /* ticket #125: a short toast stays on one line on a phone (left: 50% halved its room) */
body.tight .toast .toastx { flex: none; margin-right: calc(-1 * var(--sp-3)); }
body.tight .tcrep input[type="radio"], body.tight .tcrep input[type="checkbox"] { flex: none; width: auto; height: auto; min-height: 0; margin: 0; }
body.tight .tcmsgs:has(.tcrep) { max-height: 340px; }
/* T2 less text, Analyze (owner 2026-10-21): a part not made yet is its button and an i; a tall box (the phone's last box stretches) keeps them at its top */
body.tight .box.anempty { flex-wrap: wrap; align-content: flex-start; }
/* T2 less text, Chronicle (owner 2026-10-21): an i at the right end of a sheet row; its tap area (tipi::before) must not open a sideways scroll */
body.tight .gsheet-body { overflow-x: hidden; }
/* ---------- T1 (owner 2026-10-22): pods on phones and portrait tablets (canvas "Tablet + phone", Ph4 / Ph3; playtest.js podPhoneView,
   playcore.js PC.podGeom tier P). The phone board's top row and bottom (.ptph), between them the switcher (Q8) and the view: the table
   layer (780 x 724, --ptw / --pth) under the camera, which rests on the whole table and leans in on one mat. The structure copies the
   column's (.pttbl.ptcol) for the dock and the hand; the table pieces keep the pod rules. ---------- */
body.tight .ptwrap.ptt.tP { --av: 56px; --libw: 56px; --peek: 40px; --hcwb: 96px; --handzone: 358px; --stw: 168px; --stkh: 40px; }
@media (min-width: 701px) { body.tight .ptwrap.ptt.tP { --peek: 48px; --hcwb: 120px; --handzone: 440px; --stw: 224px; --stkh: 46px; } }
body.tight .pttbl.ptpph { display: flex; flex-direction: column; box-sizing: border-box; padding: 0 0 env(safe-area-inset-bottom); border: 0; border-radius: 0; background: transparent; --phx: 50%; }   /* .ptph is also the phase pill's class: its padding and border off */
body.tight .pttbl.ptpph > * { position: relative; z-index: 2; }
body.tight .pttbl.ptpph > .ptarena { position: absolute; z-index: 0; }
body.tight .pttbl.ptpph .ptphtop > .ptturnno { position: static; pointer-events: auto; }
body.tight .pttbl.ptpph .pttoolsx { position: static; padding: 0 var(--sp-2); }
/* the switcher: Table, then the mats' numbers in turn order (the pressed one is in view), the hint, the pod's voice at the right end */
body.tight .ptpswitch { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-4); min-height: var(--h-md); }
body.tight .ptpswb { flex: 0 0 auto; min-width: var(--h-md); height: var(--h-md); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-box); background: rgba(9, 13, 18, .6);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 30%, transparent); color: #c9c6bf; font: inherit; font-size: var(--fs-md); font-weight: 700; font-variant-numeric: lining-nums; cursor: pointer; }
body.tight .ptpswb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .ptpswb[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
body.tight .ptpswb.out { opacity: .5; }
/* #159: the table lock, an icon button (narrow, so a pod of 4 with the voice tool still fits 360); on is quiet: the accent line, not a fill */
body.tight .ptpswb.ptpswlock { min-width: var(--h-sm); padding: 0; display: inline-flex; align-items: center; justify-content: center; }
body.tight .ptpswb.ptpswlock[aria-pressed="true"] { background: rgba(9, 13, 18, .6); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* T616, the phone: My mat in the switcher row opens three steps under it (Equal, Bigger, Biggest) */
body.tight .ptpswb.ptpswlock.ptpswmat.on { background: rgba(9, 13, 18, .6); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
body.tight .ptmatsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); }
body.tight .ptmatsteps .ptmats { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: var(--r-box);
  background: rgba(9, 13, 18, .6); color: var(--ttext); font: inherit; font-size: var(--fs-sm); font-weight: 700; line-height: 1.15; cursor: pointer; }
body.tight .ptmatsteps .ptmats .ptmatsp { font-size: 11px; font-weight: 400; opacity: .8; }
body.tight .ptmatsteps .ptmats[aria-pressed="true"] { background: var(--accent); color: #fff; }
body.tight .ptmatsteps .ptmats:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .ptpswh { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); line-height: 1.25; color: rgba(241, 236, 224, .75); text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tight .ptpswitch > .ptavw { flex: 0 0 auto; position: relative; display: flex; align-items: center; gap: var(--sp-2); }
/* T254 (2026-10-25): on the phone pod there is no room to unfold sideways (the seat buttons, 4 in a pod of 4): the voice controls drop as a
   column under the fold button, the switch buttons' size (44) and right edge; the camera question hangs left of the column */
body.tight .ptpswitch { --avb: var(--h-md); }
body.tight .pttbl.ptpph > .ptpswitch { z-index: 3; }   /* over the view: the column hangs into it */
body.tight .ptpswitch > .ptavw > .vvbar { right: 0; top: calc(100% + var(--sp-2)); bottom: auto; flex-direction: column; }
body.tight .ptpswitch > .ptavw > .vvbar .vvbtn { background: rgba(9, 13, 18, .85); }   /* over cards and mats: solid enough to read */
body.tight .ptpswitch > .ptavw > .vvbar .vvbtn.off { background: color-mix(in srgb, var(--vvoff) 14%, rgba(9, 13, 18, .85)); }
body.tight .ptpswitch > .ptavw > .vvpanel { right: calc(var(--avb) + var(--sp-3)); top: calc(100% + var(--sp-2)); width: min(320px, calc(100vw - var(--avb) - var(--sp-3) - 2 * var(--sp-6))); white-space: normal; }
/* the view: the table layer at its own size, moved by the camera; overflow clip, so nothing can scroll it */
body.tight .pttbl.ptpph > .ptpview { flex: 1 1 0; min-height: 0; overflow: clip; }
body.tight .ptpview > .ptpodlayer { inset: auto; left: 0; top: 0; width: var(--ptw); height: var(--pth); }
body.tight .ptpview > .ptpvnotes { position: absolute; z-index: 52; left: var(--sp-4); right: var(--sp-4); top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); pointer-events: none; }
body.tight .ptpview > .ptpvnotes > * { pointer-events: auto; }
body.tight .ptpview > .ptpvnotes:empty { display: none; }
body.tight .pttbl.ptpph:has(> .ptpswitch > .ptavw.open > .vvbar) > .ptpview > .ptpvnotes { right: calc(var(--sp-4) + var(--h-md) + var(--sp-3)); }   /* ticket #216: the unfolded voice column hangs down the right edge over the view; the notes (a reveal and its close X) end left of it */
body.tight .ptpview > .ptrollmid { left: 50%; top: 50%; }
body.tight .pttbl.ptpph:not(.ptzoomed) .ptpmat { cursor: zoom-in; }
/* the beside-the-avatar strip (mana, curses) on the phone table: toward the middle of the table */
body.tight .pttbl.ptpph .ptpinfo { justify-content: flex-start; }
body.tight .pttbl.ptpph .ptpinfo.r { justify-content: flex-end; }
body.tight .pttbl.ptpph .ptpinfo .ptmav { gap: var(--sp-2); font-size: 11px; } body.tight .pttbl.ptpph .ptpinfo .ptmavp { padding-left: var(--sp-2); }
body.tight .pttbl.ptpph .ptpinfo .ptmavn { font-size: var(--fs-xs); } body.tight .pttbl.ptpph .ptpinfo .ptmavl { display: none; }   /* T266: two seats' strips share the gap between avatars */
/* the bottom: the column's dock and hand */
body.tight .pttbl.ptpph .ptdock { background: transparent; gap: var(--sp-3); }
body.tight .pttbl.ptpph .ptdock:empty { display: none; }
body.tight .pttbl.ptpph .ptidle { align-self: center; padding: var(--sp-2); }
body.tight .pttbl.ptpph .ptpoolrow { align-self: stretch; }
body.tight .pttbl.ptpph .pthand.tt { width: calc(100% - 16px); max-width: none; }
body.tight .pttbl.ptpph .ptpips { top: -22px; transform: translateX(-50%) scale(.8); }
body.tight .pttbl.ptpph .ptsteps { justify-content: space-between; }
body.tight .pttbl.ptpph .ptctltx { text-align: left; }
@media (max-width: 700px) { body.tight .pttbl.ptpph .ptdock .ptprompt.sheet { margin: 0 calc(-1 * var(--sp-4)); } }
body.tight .pttbl.ptpph .ptdock .ptprompt.sheet > .ptbtns:last-child { position: sticky; bottom: calc(-1 * var(--sp-5)); z-index: 2; margin: 0 calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5));
  padding: var(--sp-4) var(--sp-5) var(--sp-5); box-sizing: border-box; width: calc(100% + 2 * var(--sp-5)); max-width: none; background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
/* the stack pinned at the right edge, as on the phone 1v1 */
body.tight .pttbl.ptpph > .ptstackf { position: absolute; z-index: 6; right: var(--sp-4); top: 27%; }
body.tight .pttbl.ptpph > .ptstackf.fold { max-width: 60%; }
/* the combo pill at the top of the view (the column has it in its fields); its panel is the phone's bottom sheet there */
body.tight .ptpview > .ptpvnotes > .ptcbpill { align-self: flex-start; white-space: nowrap; }
body.tight .ptwrap.ptpodw .ptcbpanel.sheet { left: 0; top: auto; }
body.tight .pttopline:has(.tcpanel.sheet), body.tight .pttools:has(.tcpanel.sheet) { z-index: 90; }   /* the open chat lies over the board (its row is a low stacking context) */

/* ---------- the notifications bell and drawer (owner 2026-10-22, T9, notices.js; mockup notif-drawer) ----------
   The bell between the Play pill and Friends (an iconbtn2 at the top bar's height, red count only when something waits); on phones a row
   in your picture's panel and the red count on your picture. The drawer is the friends drawer's frame (.szdrawer): right side under the
   top bar, a bottom sheet on phones. Sections: Waiting for you, Your games, Earlier (with Clear). Scale values only. */
body.tight .ntbtn { position: relative; flex: none; width: var(--h-sm); height: var(--h-sm); }
body.tight .ntbtn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .ntcount { display: inline-block; min-width: 20px; padding: 0 var(--sp-3); line-height: 20px; border-radius: var(--r-pill); background: var(--bad); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-display); text-align: center; font-variant-numeric: tabular-nums; box-sizing: border-box; pointer-events: none; }
body.tight .ntbtn .ntcount { position: absolute; top: -7px; right: -7px; box-shadow: 0 0 0 2px var(--bar); }
body.tight .acctbtn .ntcount.onav { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--bar); }
body.tight .ntrow { justify-content: flex-start; gap: var(--sp-4); }
body.tight .ntrow .ntcount.inl { margin-left: auto; }
body.tight .ntrow .uico:last-child { color: var(--muted); }
body.tight .ntrow:not(:has(.ntcount, .ntnew)) .uico:last-child { margin-left: auto; }
/* T409: an Earlier notice not seen yet: the gold "new" dot of the menu (.navdot) on the bell, the phone row and (phones) your picture */
body.tight .ntbtn .navdot.ntnew { position: absolute; top: var(--sp-1); right: var(--sp-1); margin: 0; }
body.tight .ntrow .navdot.ntnew { margin-left: auto; }
body.tight .ntitem.old.new .nttitle { color: var(--text); font-weight: var(--fw-title); }
body.tight .szbody.ntbody { padding: 0 0 var(--sp-5); }
body.tight .ntsec { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6) var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.tight .ntsec .linkbtn { text-transform: none; letter-spacing: 0; }
body.tight .ntitem { display: flex; align-items: flex-start; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); }
body.tight .ntitem + .ntitem { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
body.tight .ntico { width: var(--h-xs); height: var(--h-xs); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--card); color: var(--muted); }
body.tight .ntico.gold { background: color-mix(in srgb, var(--gold) 22%, var(--card)); color: var(--gold); }
body.tight .ntico.acc { background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: var(--accent); }
body.tight .nttitle { font-size: var(--fs-md); overflow-wrap: anywhere; }
body.tight .ntitem.old .nttitle { color: var(--text2); }
body.tight .ntacts { margin-top: var(--sp-3); }
/* T582: an Earlier notice with somewhere to go is one button, the whole row (notices.js oldItem); one with nowhere to go stays plain text */
body.tight button.ntitem.ntgo { width: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
body.tight .ntitem + .ntitem.ntgo { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }   /* the divider the reset above took away */
body.tight button.ntitem.ntgo:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight button.ntitem.ntgo:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .ntcd { flex: none; font-size: var(--fs-xs); font-weight: var(--fw-display); color: var(--gold); font-variant-numeric: tabular-nums; }
body.tight .ntempty { margin: 0; padding: var(--sp-7) var(--sp-6); }
/* T1, tablets: the round and timers pill (28 tall) gets a 44 px hit area on touch, as the say button and Full control have (#6) */
@media (pointer: coarse) { body.tight .ptpturnb { position: relative; } body.tight .ptpturnb::after { content: ''; position: absolute; inset: -8px 0; } }
body.tight.ntopen .pftoast.gold { display: none; }   /* the drawer lists the requests */
@media (min-width: 701px) { body.tight.ntopen .pftoast { right: calc(380px + var(--sp-6)); } }   /* other play toasts keep clear of it */
/* T16: the Punch hit effect (chronicle.js hitFx kind 'punch'; keyframes gfxpunch, gfxpow, gfxspeed in style.css) */
body.tight .gfxfist { position: absolute; inset: 8%; animation: gfxpunch .75s cubic-bezier(.3, .9, .3, 1) forwards; }
body.tight .gfxfist svg { width: 100%; height: 100%; display: block; overflow: visible; }
body.tight .gfxpow { position: absolute; inset: -10%; animation: gfxpow .7s ease-out forwards; }
body.tight .gfxpow svg { width: 100%; height: 100%; display: block; fill: #ffd84a; stroke: #1b1020; stroke-width: 3; stroke-linejoin: round; }
body.tight .gfxfly { position: fixed; inset: 0; pointer-events: none; z-index: 60; }   /* T16 follow-up: the punch flying between two panels */
body.tight .gfxflyer { position: absolute; transform-origin: 50% 50%; will-change: transform, opacity; }
/* T16 rework 2026-10-25: the shaded glove (chronicle.js GLOVE; gradients #rzgloveG/T/C in one hidden .gfxdefs svg), ghosts, smear, landing */
body.tight .gfxdefs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
body.tight .gfxglv { position: relative; width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .45)); }
body.tight .gfxghost .gfxglv { filter: none; }
body.tight .gfxglv .gmitt { fill: url(#rzgloveG); stroke: #2a0a10; stroke-width: 3; stroke-linejoin: round; }
body.tight .gfxglv .gthumb { fill: url(#rzgloveT); stroke: #2a0a10; stroke-width: 2.5; stroke-linejoin: round; }
body.tight .gfxglv .gcuff { fill: url(#rzgloveC); stroke: #2a0a10; stroke-width: 3; stroke-linejoin: round; }
body.tight .gfxglv .gband { fill: #ffd84a; stroke: #2a0a10; stroke-width: 2.5; }
body.tight .gfxglv .glace { fill: none; stroke: #9a907e; stroke-width: 2; stroke-linecap: round; }
body.tight .gfxglv .gcrease { fill: none; stroke: #6e0a14; stroke-width: 2.5; stroke-linecap: round; opacity: .75; }
body.tight .gfxglv .gseam { fill: none; stroke: #ffc0c4; stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
body.tight .gfxglv .gshine { fill: #fff; opacity: .55; }
body.tight .gfxsmear { position: absolute; right: 55%; top: 26%; width: 95%; height: 48%; border-radius: var(--r-pill); transform-origin: 100% 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 130, .25) 45%, rgba(255, 236, 236, .85)); }
body.tight .gfxhit { position: absolute; }
body.tight .gfxpflash { position: absolute; inset: 10%; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #fff 0 16%, rgba(255, 236, 160, .95) 30%, rgba(255, 170, 60, .45) 52%, transparent 70%); }
body.tight .gfxstar { position: absolute; inset: 14%; opacity: 0; }
body.tight .gfxstar svg { width: 100%; height: 100%; display: block; fill: #ffd84a; stroke: #1b1020; stroke-width: 3; stroke-linejoin: round; }
body.tight .gfxspark { position: absolute; left: 50%; top: 50%; width: 30%; height: 4px; margin-top: -2px; border-radius: var(--r-pill); transform-origin: 0 50%; opacity: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 40%, #ffd84a); }
body.tight .gfxspeed { position: absolute; left: -60%; top: 30%; width: 110%; height: 40%; transform: rotate(var(--ang)); transform-origin: 100% 50%; opacity: 0;
  background: repeating-linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, .85) 18% 24%, transparent 24% 40%); animation: gfxspeed .5s linear forwards; }
/* T123: Arcane Missiles, channelled from the source panel to the hit one (chronicle.js arcaneFly; keyframes gfxchan, gfxbeam, gfxzap in style.css) */
body.tight .gfxchan { position: absolute; border-radius: 50%; background: radial-gradient(circle, transparent 34%, rgba(183, 148, 244, .5) 46%, rgba(140, 90, 240, .22) 58%, transparent 70%); animation: gfxchan .55s ease-in-out infinite alternate; }
body.tight .gfxbeam { position: absolute; height: var(--sp-1); transform-origin: 0 50%; border-radius: var(--r-tag); background: linear-gradient(90deg, rgba(214, 190, 255, .7), rgba(183, 148, 244, .35) 70%, transparent); box-shadow: 0 0 8px 1px rgba(183, 148, 244, .45); animation: gfxbeam .35s ease-in-out infinite alternate; }
body.tight .gfxarc.gfxend .gfxchan, body.tight .gfxarc.gfxend .gfxbeam { animation: gfxfade .4s ease-out forwards; }
body.tight .gfxorb { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity; background: radial-gradient(circle, #fff 0 22%, #e6d6ff 38%, #a77bff 62%, rgba(140, 90, 240, 0) 72%); box-shadow: 0 0 10px 3px rgba(183, 148, 244, .9), 0 0 22px 6px rgba(140, 90, 240, .45); }
body.tight .gfxorb i { position: absolute; right: 45%; top: 25%; width: 420%; height: 50%; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(167, 123, 255, .35) 45%, rgba(233, 220, 255, .9)); }
body.tight .gfxzap { position: absolute; }
body.tight .gfxzap b { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, #fff 0 14%, rgba(214, 190, 255, .9) 30%, rgba(140, 90, 240, .4) 55%, transparent 70%); animation: gfxzap .45s ease-out forwards; }
/* T916 (owner 2026-11-23): a Backlog row is one line. The title gives way (ellipsis); the reporter keeps about 16 characters, never one letter */
body.tight .tdrep { flex: 0 1 auto; max-width: 16ch; min-width: 6ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .tdbatch { font-variant-numeric: tabular-nums; }
body.tight .tdrow.tdcols { white-space: nowrap; }
body.tight .tdc.tdcst { flex-wrap: nowrap; overflow: hidden; }
body.tight .tdby { flex: 0 0 auto; width: var(--fs-md); height: var(--fs-md); }   /* Claude's spark: a session added this item; the owner's own have none (2026-10-22) */

/* ---------- My Tale, easy to find (T75, owner 2026-10-22): the side panel's Tale card, the top bar's book, Home's card ---------- */
body.tight .acctalehd { margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-3)) 0 0; }   /* the close button sits in the card's corner */
body.tight .acctalecard { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6) var(--sp-6); border: 1px solid color-mix(in srgb, var(--tale) 55%, var(--line)); border-radius: var(--r-box); background: color-mix(in srgb, var(--tale) 7%, var(--card)); }
body.tight .acctalelbl { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--tale); }
body.tight .acctnext { color: var(--text2); }
body.tight .acctnext svg { color: var(--tale); flex: none; }
body.tight .acctalego { width: 100%; justify-content: center; gap: var(--sp-3); }

body.tight .hometale .prfbar, body.tight .acctalecard .prfbar { background: color-mix(in srgb, var(--tale) 18%, var(--track)); }   /* the plain track vanishes on the tinted card */

/* T88: each public deck's cover says Rule Ø brew (accent) or Import (quiet) */
body.tight .exkind { padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-display); background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--text); border: 1px solid var(--line); }
body.tight .exkind.brew { background: var(--accent); color: var(--onAccent); border-color: transparent; }

/* the top bar book points at what its dot is about (owner 2026-10-22): the menu item and the element pulse a few times */
body.tight .rzattn:not(g) { animation: rzattn 1.1s ease-in-out 4; border-radius: var(--r-ctl); }
body.tight g.rzattn { animation: rzattng 1.1s ease-in-out 4; }
@media (prefers-reduced-motion: reduce) { body.tight .rzattn:not(g) { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tale) 75%, transparent); } body.tight g.rzattn { animation: none; filter: drop-shadow(0 0 3px var(--tale)); } }
body.tight .faqfold { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .faqgrpb { padding-top: var(--sp-4); }
/* T178 (owner 2026-10-24): Moonlight & Tales, a heading per part in its own colour (Moonlight blue, Tales gold) */
body.tight .tlsec { min-width: 0; }
body.tight .tlhead { display: flex; align-items: center; gap: var(--sp-3); margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); }
body.tight .tlhead.mn { color: var(--moon); }
body.tight .tlhead.tl { color: var(--tale); }
body.tight .tlsub { margin: 0; }
body.tight .lvlcard.big .archive > .tlsec { margin-bottom: var(--sp-5); }
/* T180 (owner 2026-10-24): in My Tale the group heading outranks its questions */
body.tight .faqfold > .faqgrp > summary { font-size: var(--fs-xl); }
body.tight .faqfold > .faqgrp > summary > b { font-weight: var(--fw-title); }
body.tight .faqfold .faqgrpb > .fold.big > summary { min-height: var(--h-sm); font-size: var(--fs-md); }

/* ---------- Analyze: Overview tab and the slim strip (owner 2026-10-22, mockup RVsXQWXpzkHz3rVfr8wci2) ---------- */
/* the bar stays one row: the tabs scroll sideways when they do not fit */
body.tight .subbar.anbar { flex-wrap: nowrap; }
body.tight .subbar.anbar .deckpick { flex: 0 0 auto; width: 220px; }
body.tight .subbar.anbar .antabgrp { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: var(--sp-1); }
body.tight .subbar.anbar .antabgrp > .tabbtn { flex: 0 0 auto; }
@media (max-width: 1100px) { body.tight .subbar.anbar .deckpick { width: 170px; } }
/* Overview: the art as tall as the two panels beside it */
body.tight .anov { display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .anovtop { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--sp-6); align-items: stretch; }
body.tight .anhero { position: relative; aspect-ratio: 1.37; max-width: 100%; border-radius: var(--r-box); overflow: hidden; border: 1px solid var(--line); background: var(--inset); }
body.tight .anhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; -webkit-user-drag: none; user-select: none; }
body.tight .anshade { position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none; background: linear-gradient(to top, rgba(9,11,15,.94) 0%, rgba(9,11,15,.7) 45%, transparent 100%); }
body.tight .anpill { position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 1; cursor: pointer; }   /* T848: the bracket on the art (My decks' pill), opens Power */
body.tight .anpill .expow { cursor: pointer; }
body.tight .anpill > .brkchip { background: rgba(9,12,17,.82); color: #ece9e2; box-shadow: inset 0 0 0 1px rgba(236,233,226,.22); font-size: 14px; padding: 4px 8px 4px 6px; cursor: pointer; }   /* a deck without a plays read: the plain chip */
body.tight .fwrun { justify-self: start; }
body.tight .ancap { position: absolute; left: var(--sp-5); right: var(--sp-5); bottom: 36px; display: flex; flex-direction: column; gap: var(--sp-1); color: #ece9e2; }
body.tight .ancap h2 { margin: 0; font-size: var(--fs-2xl); line-height: 1.1; font-weight: var(--fw-display); text-wrap: balance; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
body.tight .ancmds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-sm); }
body.tight .ancmds .linkbtn { color: #ece9e2; font-weight: var(--fw-title); }
body.tight .anband { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; display: flex; gap: var(--sp-1); pointer-events: none; }
body.tight .anband > span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 32%, rgba(9,12,17,.86)); }
body.tight .anovside { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
body.tight .anbench { padding: var(--sp-5) var(--sp-6); }
/* the strip on every other tab */
body.tight .anstrip { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); }
body.tight .anstripart { position: relative; flex: none; width: 84px; height: 56px; padding: 0; border: 0; border-radius: var(--r-ctl); overflow: hidden; background: var(--inset); cursor: pointer; }
body.tight .anstripart img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tight .anstripart .anband { height: 4px; gap: var(--sp-1); }
body.tight .anstripart .anband > span { background: var(--c); }
body.tight .anstripwho { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
body.tight .anstripname { font-size: var(--fs-lg); font-weight: var(--fw-title); color: var(--text); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body.tight .anstripcmd { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
body.tight .anstripcmd .linkbtn { color: var(--text2); font-weight: var(--fw-label); }
body.tight .analyzeall.strip { flex: none; max-width: none; flex-direction: row; align-items: center; gap: var(--sp-4); }
body.tight .analyzeall.strip .btn { min-height: var(--h-sm); padding: 0 var(--sp-6); }
body.tight .aptplay { display: flex; gap: var(--sp-4); }
@media (max-width: 700px) {
  body.tight .anovtop { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  body.tight .anhero { aspect-ratio: 16 / 9; }
  body.tight .anstrip { flex-wrap: wrap; }
  body.tight .anstripart { width: 64px; height: 44px; }
  body.tight .analyzeall.strip { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  body.tight .analyzeall.strip > .small { margin-right: auto; }
  body.tight .analyzeall.strip .analyzeallrow { flex-wrap: nowrap; }
  body.tight .analyzeall.strip .analyzeallrow > .btn { flex: 0 0 auto; width: auto; }
  /* ten section tabs: the bottom bar scrolls sideways instead of squeezing the labels */
  body.tight .antabs { overflow-x: auto; scrollbar-width: none; }
  body.tight .antabs button { flex: 1 0 auto; min-width: 56px; padding: 0 var(--sp-2); }
}
/* the book badge on your picture, top left (owner 2026-10-22): only while something in My Tale needs you */
body.tight .acctwrap { position: relative; display: inline-flex; }
body.tight .acctbook { position: absolute; left: calc(-1 * var(--sp-2)); top: calc(-1 * var(--sp-1)); z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 24px; aspect-ratio: 1; padding: 0; border: 2px solid var(--bar); border-radius: var(--r-pill); background: var(--tale); color: var(--onAccent); animation: rzbookb 2.4s ease-in-out infinite; }
body.tight .acctbook:hover { filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { body.tight .acctbook { animation: none; } }
body.tight .tdbar { align-items: center; justify-content: space-between; }
body.tight .tdsearch { flex: 0 1 240px; min-width: 140px; height: var(--h-sm); padding: 0 var(--sp-5); }   /* backlog search (2026-10-22) */
@media (max-width: 699px) { body.tight .tdsearch { flex: 1 1 100%; } }
/* the tab icons go when the one-row bar would not fit them (owner 2026-10-22) */
@media (max-width: 1365px) { body.tight .subbar.anbar .antabgrp .tabbtn .uico { display: none; } }
/* where the tabs always scroll (tablet bar, phone bottom bar), a fade at the right edge says there are more */
@media (min-width: 701px) and (max-width: 1100px) { body.tight .subbar.anbar .antabgrp { mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); } body.tight .subbar.anbar .antabgrp > :last-child { margin-right: var(--sp-8); } }
@media (max-width: 700px) { body.tight .antabs { mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); } body.tight .antabs button:last-child { margin-right: var(--sp-7); } }
/* the folded lobby (owner 2026-10-22): a gold flag hanging on the right edge of the screen whenever you sit at a lobby and the drawer is
   closed (the Play pill no longer says "Your pod", 2026-10-22); pulled or clicked, the lobby slides back open. Bigger since 2026-10-22:
   a tab with a dark outline and a deep shadow on its open sides, a gold rail along the screen edge it hangs from, a larger icon and count */
body.tight .pdflag { position: fixed; right: 0; top: 38%; z-index: 105; display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); width: var(--h-lg); min-height: var(--h-md); padding: var(--sp-6) var(--sp-2) var(--sp-6) var(--sp-4);
  border: 1px solid color-mix(in srgb, var(--onAccent) 45%, transparent); border-right: 0; border-radius: var(--r-box) 0 0 var(--r-box); background: var(--gold); color: var(--onAccent); font: inherit; font-size: var(--fs-lg); font-weight: var(--fw-display); cursor: grab; touch-action: none;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, .5), -1px 0 0 rgba(0, 0, 0, .25); transition: transform .12s ease-out, width .15s ease-out; }
body.tight .pdflag::after { content: ''; position: absolute; right: 0; top: calc(-1 * var(--sp-7)); bottom: calc(-1 * var(--sp-7)); width: var(--sp-2); border-radius: var(--r-pill) 0 0 var(--r-pill); background: var(--gold); box-shadow: -1px 0 6px rgba(0, 0, 0, .4); }
body.tight .pdflag:hover, body.tight .pdflag:focus-visible { width: calc(var(--h-lg) + var(--sp-3)); }
body.tight .pdflag:active { cursor: grabbing; }
body.tight .pdflag .small { font-size: var(--fs-md); }
body.tight .pdflag .pdflaggrip { width: var(--sp-6); height: var(--sp-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--onAccent) 35%, transparent); }
body.tight .pdflag .pdflagsep { width: var(--sp-6); height: 1px; background: color-mix(in srgb, var(--onAccent) 35%, transparent); }
body.tight .pdflag.search { animation: attnpulse 1.6s ease-in-out infinite; }
body.tight .pdflag.gold { box-shadow: 0 0 0 3px var(--text); animation: attnpulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .pdflag.search, body.tight .pdflag.gold { animation: none; } }
/* T251: the Matchmaking search folds into this same flag: the pulse dot and the timer in the flag's ink */
body.tight .pdflag .qmdot { background: var(--onAccent); }
body.tight .pdflag .qmtime { font-variant-numeric: tabular-nums; }
/* T536 + T541 (owner 2026-11-05, mockup RkTRCTFLDefz4UhbX6U3Rz, A): the lobby flag's ‹ (it opens the Play drawer, as a pull does), the chat
   bubble with its count, a chair for the seats, the icons engraved in the gold; the Hearth button hangs under it and goes to your lobby */
body.tight .pdflagwrap { position: fixed; right: 0; top: 38%; z-index: 105; display: flex; flex-direction: column; align-items: flex-end; }
body.tight .pdflagwrap > .pdflag { position: relative; right: auto; top: auto; border-radius: 0; padding-top: var(--sp-5); }
body.tight .pdflagwrap > .pdflag:last-child { border-radius: 0 0 0 var(--r-box); }   /* the searching flag has no Hearth button under it */
body.tight .pdflagwrap > .pdflag::after { top: 0; bottom: 0; }
/* T671 (owner 2026-11-11): the move anchor on top of the flag: drag it up or down the screen edge (playfriend.js flagGrab); the flag slides
   down past an open drawer, takes its short form (.mini) when the room below is tight, and waits out of sight (.away) under a full sheet */
body.tight .pdflagmove { display: grid; place-items: center; width: var(--h-lg); height: var(--h-xs); padding: 0; border: 1px solid color-mix(in srgb, var(--onAccent) 45%, transparent); border-right: 0; border-bottom: 0;
  border-radius: var(--r-box) 0 0 0; background: color-mix(in srgb, var(--gold) 82%, #000); color: var(--onAccent); cursor: ns-resize; touch-action: none; box-shadow: -4px 4px 16px rgba(0, 0, 0, .5); transition: width .15s ease-out; }
body.tight .pdflagmove i { display: block; width: var(--sp-6); height: var(--sp-2); border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .55; }
body.tight .pdflagmove:hover, body.tight .pdflagmove:focus-visible { background: var(--gold); }
body.tight .pdflagmove:hover i, body.tight .pdflagmove:focus-visible i { opacity: .85; }
body.tight .pdflagwrap.drag .pdflagmove { cursor: grabbing; background: var(--gold); }
body.tight .pdflagwrap.drag { transition: none; }
body.tight .pdflag .pdflagrdy { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
body.tight .pdflagwrap.mini > .pdflag { gap: var(--sp-2); padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
body.tight .pdflagwrap.mini .pdflagopen, body.tight .pdflagwrap.mini .pdflaghair, body.tight .pdflagwrap.mini .pdflagsep, body.tight .pdflagwrap.mini .pdflagrdy { display: none; }
body.tight .pdflagwrap.away { visibility: hidden; pointer-events: none; }
body.tight .pdflagwrap:hover > *, body.tight .pdflagwrap:focus-within > * { width: calc(var(--h-lg) + var(--sp-3)); }   /* the flag and its Hearth button widen together */
body.tight .pdflag .pdflagopen .uico svg { stroke-width: 3; }
body.tight .pdflag .pdflaghair { width: var(--sp-7); height: 1px; background: color-mix(in srgb, var(--onAccent) 16%, transparent); }
body.tight .pdflag .pdflagchat { position: relative; display: grid; place-items: center; }
body.tight .pdflag .pdflagbdg { position: absolute; top: calc(-1 * var(--sp-3)); right: calc(-1 * var(--sp-4)); min-width: var(--sp-6); height: var(--sp-6); padding: 0 var(--sp-1); box-sizing: border-box; border-radius: var(--r-pill); background: var(--onAccent); color: var(--gold); font-size: var(--fs-xs); line-height: var(--sp-6); text-align: center; }
body.tight .pdflaglobby .uico svg, body.tight .pdhearth .uico svg { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .45)) drop-shadow(0 -1px 0 rgba(0, 0, 0, .28)); }
body.tight.light .pdflaglobby .uico svg, body.tight.light .pdhearth .uico svg { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .2)) drop-shadow(0 -1px 0 rgba(0, 0, 0, .45)); }
body.tight .pdhearth { display: grid; place-items: center; width: var(--h-lg); height: var(--h-md); padding: 0; border: 1px solid color-mix(in srgb, var(--onAccent) 45%, transparent); border-top-color: rgba(255, 255, 255, .3); border-right: 0; border-radius: 0 0 0 var(--r-box);
  background: color-mix(in srgb, var(--gold) 88%, #000); color: var(--onAccent); cursor: pointer; box-shadow: -4px 4px 16px rgba(0, 0, 0, .5), 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25); transition: background .12s, transform .08s; }
body.tight .pdhearth:hover, body.tight .pdhearth:focus-visible { background: var(--gold); }
body.tight .pdhearth:active { transform: translateY(2px); box-shadow: -4px 4px 16px rgba(0, 0, 0, .5), 0 1px 0 rgba(0, 0, 0, .35); }
body.tight .pdhearth.gold { box-shadow: 0 0 0 3px var(--text), -4px 4px 16px rgba(0, 0, 0, .5); }
/* #751 (owner 2026-11-11): the anchor, the flag and the Hearth button are ONE continuous flag: no gaps, a thin dark line between the parts
   (they stay separate buttons), one shadow for the whole column (a part's own shadow would darken its neighbour), the gold ring around
   the whole flag, and a press that darkens instead of moving the part */
body.tight .pdflagwrap { border-radius: var(--r-box) 0 0 var(--r-box); filter: drop-shadow(-4px 4px 10px rgba(0, 0, 0, .5)); }
body.tight .pdflagwrap > .pdflagmove, body.tight .pdflagwrap > .pdflag, body.tight .pdflagwrap > .pdhearth { margin: 0; box-shadow: none; }
body.tight .pdflagwrap > .pdflag { border-top: 1px solid color-mix(in srgb, var(--onAccent) 60%, transparent); border-bottom: 0; }
body.tight .pdflagwrap > .pdflag:last-child { border-bottom: 1px solid color-mix(in srgb, var(--onAccent) 45%, transparent); }
body.tight .pdflagwrap > .pdhearth { border-top: 1px solid color-mix(in srgb, var(--onAccent) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
body.tight .pdflagwrap > .pdhearth:active { transform: none; filter: brightness(.9); }
body.tight .pdflagwrap > .pdflag.gold, body.tight .pdflagwrap > .pdhearth.gold { box-shadow: none; }
body.tight .pdflagwrap:has(> .gold) { outline: 3px solid var(--text); outline-offset: 0; }
body.tight .pdflagwrap > .pdflag.search, body.tight .pdflagwrap > .pdflag.gold { animation: none; }
body.tight .pdflagwrap:has(> .pdflag.search) { animation: attnpulse 1.6s ease-in-out infinite; }
body.tight .pdflagwrap:has(> .pdflag.gold) { animation: attnpulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .pdflagwrap:has(> .pdflag) { animation: none; } }
body.tight .pdfoldbtn { flex: none; }
/* owner 2026-10-22: the flag is always on top. T671 (2026-11-11): it stays on the screen edge and slides down past an open drawer
   (playfriend.js pdFlagPlace), instead of hanging on the drawer's left edge */
/* Overview round 2 (owner 2026-10-22, vb69/vb70): the analysis and the three tiles in one row at the art's height; the five benchmark
   groups side by side, each a compact column, so the panel reads without scrolling */
@media (min-width: 1101px) {
  body.tight .anovside { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }
  body.tight .anovside > .di-tiles { display: contents; }
  body.tight .anovside .di-tile { justify-content: space-between; padding: var(--sp-6); }
  body.tight .anovside .di-val { font-size: var(--fs-3xl); margin-top: auto; }
}
body.tight .benchgrid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .benchgrid.five .benchgrp { padding: var(--sp-2) var(--sp-2) var(--sp-4); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--inset) 45%, transparent); }
body.tight .benchgrid.five .rolerow { min-height: var(--h-sm); gap: var(--sp-3); padding: var(--sp-1) var(--sp-3); }
body.tight .benchgrid.five .rolecell.part .rolerow { padding-left: var(--sp-7); }
body.tight .benchgrid.five .rolename { flex: 1 1 auto; min-width: 0; }
body.tight .benchgrid.five .rolecount { flex: 0 0 auto; }
body.tight .benchgrid.five .roleledger { display: none; }
body.tight .rolecards .helpword { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }   /* T994: the word on what a Mana help card does, at the row's end */
body.tight .benchgrid.five .benchrow .benchcode { flex: 0 0 auto; }
body.tight .benchgrid.five .benchrow .benchname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .benchgrid.five .benchrow .small.muted { white-space: nowrap; }
@media (max-width: 1199px) { body.tight .benchgrid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { body.tight .benchgrid.five { grid-template-columns: minmax(0, 1fr); } }
body.tight .tdthink { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--sp-2); color: #D97757; font-size: var(--fs-sm); font-style: italic; white-space: nowrap; }   /* Working on it, the terminal's way (2026-10-22) */
body.tight .tdspark { display: inline-block; animation: tdspark 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .tdspark { animation: none; } }
@media (max-width: 1499px) { body.tight .benchgrid.five .benchrow .small.muted { display: none; } }   /* the card count makes room for the name; a tap on the row still lists the cards */

/* Titles & achievements: every group folds (owner 2026-10-22) */
body.tight .achgrp > summary { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; cursor: pointer; list-style: none; font-size: var(--fs-md); }
body.tight .achgrp > summary::-webkit-details-marker { display: none; }
/* Overview round 3 (owner 2026-10-22, mockup v3): Tamiyo's panel is the glowing rite box itself, in four states; the tiles are filled */
@media (min-width: 701px) and (max-width: 1100px) { body.tight .anovtop { grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-5); } body.tight .ancap h2 { font-size: var(--fs-xl); } }
body.tight .anrite { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--card); box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 18%, transparent); }
body.tight .anrite.deep, body.tight .anrite.done { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%), var(--card); box-shadow: 0 6px 24px color-mix(in srgb, var(--gold) 14%, transparent); }
body.tight .anrite.old { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
body.tight .anrtop { display: flex; align-items: center; gap: var(--sp-5); }
body.tight .anrhead { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
body.tight .anrhead b { font-size: var(--fs-lg); color: var(--accent); }
body.tight .anrite.idle .anrhead b { color: var(--text); } body.tight .anrite.done .anrhead b, body.tight .anrite.deep .anrhead b { color: var(--gold); } body.tight .anrite.old .anrhead b { color: var(--warn); }
body.tight .orbit.anorb { width: 44px; height: 44px; flex: 0 0 44px; }
body.tight .orbit.anorb .o2 { inset: 6px; } body.tight .orbit.anorb .o3 { inset: 12px; } body.tight .orbit.anorb .core { inset: 18px; }
body.tight .orbit.anorb:not(.busy) span { animation: none; }
body.tight .orbit.anorb.idle { opacity: .55; }
body.tight .orbit.anorb.done .core { box-shadow: 0 0 12px var(--gold); }
body.tight .orbit.anorb.old .core { background: var(--warn); }
body.tight .anrsteps { display: flex; flex-direction: column; }
body.tight .anrseg { display: flex; align-items: center; gap: var(--sp-4); width: 100%; padding: var(--sp-1) 0; min-height: var(--h-xs); border: 0; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: none; color: var(--text2); font: inherit; font-size: var(--fs-sm); text-align: left; }
body.tight .anrseg > span { flex: 1 1 auto; min-width: 0; }
body.tight .anrseg em { font-style: normal; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
body.tight .anrseg i { flex: none; width: 12px; height: 4px; border-radius: var(--r-pill); background: var(--track); }
body.tight .anrseg.done i { background: var(--accent); } body.tight .anrite.done .anrseg.done i { background: var(--gold); } body.tight .anrseg.done em { color: var(--ok); }
body.tight .anrseg.old i { background: var(--warn); } body.tight .anrseg.old em { color: var(--warn); }
body.tight .anrseg.now { color: var(--text); font-weight: var(--fw-label); } body.tight .anrseg.now i { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: breathe 1.1s ease-in-out infinite; }
body.tight button.anrseg { cursor: pointer; } body.tight button.anrseg:hover span, body.tight button.anrseg:focus-visible span { color: var(--accent); }
body.tight .anquip { min-height: 0; }
body.tight .anracts { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .anracts > .btn { width: 100%; justify-content: center; }
body.tight .tag.anok { color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 12%, transparent); font-weight: var(--fw-label); }
@media (prefers-reduced-motion: reduce) { body.tight .anrseg.now i { animation: none; } }
/* the filled tiles: label on top, the numbers under it, the detail at the bottom */
body.tight .di-tile.rich { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--sp-2); padding: var(--sp-5) var(--sp-6); min-width: 0; }
body.tight .di-tile.rich .di-val { font-size: var(--fs-3xl); margin-top: var(--sp-1); }
body.tight .di-tile.rich .di-val small { font-size: var(--fs-sm); font-weight: var(--fw-label); color: var(--muted); }
body.tight .di-tile.rich .t2 { color: var(--text2); }
body.tight .rtlbl { display: flex; align-items: center; gap: var(--sp-3); }
body.tight .rtgo, body.tight .rtext { margin-left: auto; color: var(--muted); text-decoration: none; font-size: var(--fs-lg); line-height: 1; }
body.tight .rtext:hover { color: var(--accent); }
body.tight .anmband { display: flex; gap: var(--sp-1); width: 100%; margin: var(--sp-2) 0; }
body.tight .anmband span { position: relative; height: 4px; border-radius: var(--r-pill); background: var(--line); flex-basis: 0; }
body.tight .anmband span.on { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
body.tight .anmband em { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: var(--r-pill); background: var(--accent); }
body.tight .anchk { margin-top: auto; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-title); }
body.tight .anchk.ok { color: var(--ok); } body.tight .anchk.warn { color: var(--warn); }
body.tight .anclosest { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--inset) 55%, transparent); min-width: 0; }
body.tight .anclosest b { font-size: var(--fs-md); }
body.tight .anclosest .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tight .ankv { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-1) 0; font-size: var(--fs-sm); color: var(--text2); border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
body.tight .di-tile.rich .ankv:first-of-type { margin-top: auto; }
body.tight .ankv b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the Archivist theme (a chapter 40 Tales reward, owner 2026-10-22): the purple-to-gold gradient on the main button, the current page,
   the chosen segment and chips; --grad is set by core.js applyTheme */
body.tight.palgrad .btn.primary:not(.gold), body.tight.palgrad .navbtn.on, body.tight.palgrad .seg button.on, body.tight.palgrad .prfnavbtn.on,
body.tight.palgrad .themechip.on, body.tight.palgrad .navxtile.on { background: var(--grad); color: var(--onAccent); border-color: transparent; }
body.tight .themechip.locked { opacity: .6; }
body.tight .themechip.locked svg { margin-left: var(--sp-1); }
body.tight .rwptheme { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); width: 220px; padding: var(--sp-6); border-radius: var(--r-ctl); background: #1b1e27; }
body.tight .rwpthbtn { padding: var(--sp-3) var(--sp-6); border-radius: var(--r-ctl); background: linear-gradient(110deg, var(--g1), var(--g2)); color: #17130a; font-weight: 700; font-size: var(--fs-sm); }
body.tight .rwpthbar { width: 100%; height: var(--sp-2); border-radius: var(--r-pill); background: linear-gradient(90deg, var(--g1), var(--g2)); }

/* the phone board: the dock keeps its height when passing swaps the big button for the waiting line (playtest.js dockSync) */
body.tight .pttbl.ptph > .ptbot > .ptdock { min-height: var(--dockh, 0px); justify-content: flex-end; }
/* the stack card on a phone or upright tablet, bigger when Board settings > Stack card size says so (owner 2026-10-22) */
body.tight .ptwrap.ptt.tC.stk2 { --stw: 196px; --stkh: 44px; }
body.tight .ptwrap.ptt.tC.stk3 { --stw: 236px; --stkh: 50px; }
/* the phone board is .pttbl.ptph and so took the phase chip's white-space: nowrap (.ptph); texts on it wrap again (owner 2026-10-22: a
   question's description ran off the screen) */
body.tight .pttbl.ptph :is(.ptdock, .ptprompt, .ptsheet) { white-space: normal; }
/* prompt details (owner 2026-10-22): a prompt row's picture opens the card sheet without answering; 44 px hit area, an i on touch only;
   a clamped ability text (phone order rows) opens in place on tap; the search zoom shows the rules text too */
body.tight .ptdet { position: relative; flex: 0 0 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: zoom-in; border-radius: var(--r-ctl); -webkit-tap-highlight-color: transparent; }
body.tight .ptdet .ptoptimg { flex: none; }
body.tight .ptdet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .ptdet:hover .ptoptimg { box-shadow: 0 0 0 1px var(--accent); }
body.tight .ptdeti { display: none; position: absolute; right: -4px; bottom: 0; width: var(--sp-6); height: var(--sp-6); border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text2); font: italic 700 var(--fs-xs) Georgia, serif; align-items: center; justify-content: center; pointer-events: none; }
@media (hover: none) and (pointer: coarse) { body.tight .ptdeti { display: inline-flex; } }
body.tight .ptorder .ptoptl { cursor: pointer; }
body.tight .pttbl.ptph .ptorder .ptoptl.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
body.tight .ptdetab { padding: var(--sp-3) var(--sp-5); border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--panel); }
body.tight .ptdetab .oracle { font-size: var(--fs-md); line-height: 1.5; color: var(--text); background: none; border: 0; padding: 0; }
body.tight .ptsrchzo { font-size: var(--fs-md); line-height: 1.5; color: var(--text2); white-space: pre-line; max-height: 34vh; overflow-y: auto; }
/* cards in a prompt's strip (targets off the board, revealed cards, a reveal notice): a tap chooses the card, so on touch the round i is
   back (the board hides it, decision 5) as the details target, inside the strip's clip, 44 px hit area */
@media (hover: none) and (pointer: coarse) {
  body.tight .ptwrap.ptt :is(.ptprompt, .ptnotice) .ptpick .ptinfo { display: inline-flex; top: auto; right: var(--sp-2); bottom: var(--sp-2); background: var(--card); }
  body.tight .ptwrap.ptt :is(.ptprompt, .ptnotice) .ptpick .ptinfo::before { inset: -10px; }
}
/* owner 2026-10-22: the join-link "Invite" button sits left of Ready in the lobby footer: secondary, its own size, Ready takes the rest */
/* T694 (owner 2026-11-12): icon only (share icon, tooltip and aria-label), as wide as the icon-only Leave beside it, so Ready / the start
   phrase keeps one line */
body.tight .pdfootrow > .pdsharebtn { flex: 0 0 auto; min-height: var(--h-md); padding: 0 var(--sp-6); }
/* Admin: who is online (T92) — the strip on top of every section and the dot before a name in Accounts */
body.tight .admonl { display: flex; align-items: center; gap: var(--sp-4); width: 100%; max-width: 1440px; margin: 0 auto var(--sp-4); }
body.tight .admonl .chip { gap: var(--sp-2); }
body.tight .admdot { display: inline-block; width: var(--sp-3); height: var(--sp-3); border-radius: var(--r-pill); background: var(--ok); margin-right: var(--sp-2); vertical-align: middle; flex: none; }
body.tight .admdot.away { background: var(--warn); }
/* T84 (owner 2026-10-22): the Play drawer's hub is a few rows, so the drawer ends under them instead of running to the bottom */
/* T271 (owner 2026-10-26): the friends drawer is as tall as the Play drawer. One height each for both: --drawer-h on desktop (the compact hub, and the
   friends list, alone or beside the hub; a chat or the Play table view takes the full height), --sheet-h for the phone sheets (the friends sheet and the hub sheet were already 86 %, now from one variable) */
/* T271 round 2 (owner 2026-10-26): a folded chat (its banner under the list) counts as closed, so the list keeps the compact height; only an open chat or the chat alone (.solo) runs full height */
body.tight { --drawer-h: min(560px, calc(100dvh - 80px)); --sheet-h: 86%; }
body.tight:not(.bare):not(:has(.pddrawer.desk > [data-scroll]:not([data-scroll="pdbody-hub"]))) .szdrawer:not(.phone, .solo, .pddrawer):is(:not(.talk), .fold) { bottom: auto; height: min(var(--szlist-u, var(--drawer-h)), calc(100dvh - var(--sztop, 60px) - var(--sp-6))); border-bottom: 1px solid var(--line); border-bottom-left-radius: var(--r-box); }
/* T1000 (owner 2026-11-29): the list's height is the player's (--szlist-u, social.js listSizer) where it has the compact height: the
   bottom edge is the grip the chat dock has on its top edge (T690), shown only where the height applies */
body.tight .szdrs.b { display: none; }
body.tight:not(.bare):not(:has(.pddrawer.desk > [data-scroll]:not([data-scroll="pdbody-hub"]))) .szdrawer:not(.phone, .solo, .pddrawer):is(:not(.talk), .fold) > .szdrs.b { display: block; }
/* T684 (owner 2026-11-12): the Play hub is as tall as what it draws (it was a fixed --drawer-h, so a planned game pushed Vs AI under the fold),
   and never leaves the screen: on desktop it ends 16 px above the bottom edge, the phone sheet at --sheet-h; past that its body scrolls */
body.tight .pddrawer.desk:has(> [data-scroll="pdbody-hub"]) { bottom: auto; height: auto; max-height: calc(100dvh - var(--pdtop, 60px) - var(--sp-6)); border-bottom: 1px solid var(--line); border-bottom-left-radius: var(--r-box); }
body.tight .pddrawer.phone:has(> [data-scroll="pdbody-hub"]) { height: auto; max-height: var(--sheet-h); }
body.tight .pddrawer:has(> [data-scroll="pdbody-hub"]) > [data-scroll="pdbody-hub"] { flex: 0 1 auto; }
/* T86 (2026-10-22): phone tier buttons (Your table, Settings > House rules): a label that does not fit wraps onto two lines ("Frowned / upon") instead of being cut off; the row's four buttons share the height */
@media (max-width: 700px) {
  body.tight .rule { padding-left: var(--sp-2); padding-right: var(--sp-2); }   /* 16 px more for the four buttons: a chosen (bold) "Unacceptable" fits at 390 */
  body.tight .tierbtns { gap: var(--sp-1); }
  body.tight .tierbtn { white-space: normal; line-height: 1.15; padding: var(--sp-2) 0; hyphens: auto; }
}
@container (max-width: 320px) { body.tight .tierbtns { grid-template-columns: repeat(2, 1fr); } }   /* narrower phones (375 and under): two rows of two, each label whole */
/* T86: on a phone the undecided-draw warning takes the reason card's room under the decision buttons (the card refits above it in pages2.js carFit); the reason card is back once you choose */
@media (max-width: 700px) { body.tight .suggest:has(> .suggestfoot > .drawwarn) .suggestbody.carfill .carside { display: none; } }
/* ticket #56: the land icon after "x / y lands" under the deck's card preview opens the Mana panel */
body.tight .caplegend .caplandbtn { width: var(--h-xs); height: var(--h-xs); margin-left: var(--sp-1); vertical-align: middle; }
/* Admin > Accounts: the owner's chat log with a player, closed chats included (owner 2026-10-22) */
body.tight .admchath { align-self: flex-start; min-height: var(--h-xs); gap: var(--sp-3); }
body.tight .admchath .cnt { color: var(--muted); font-weight: var(--fw-text); }
body.tight .admchat { display: flex; flex-direction: column; gap: var(--sp-3); max-height: 360px; overflow-y: auto; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bar); }
body.tight .admchatmsg { display: flex; flex-direction: column; gap: var(--sp-1); max-width: 80%; align-self: flex-start; white-space: pre-wrap; }
body.tight .admchatmsg.mine { align-self: flex-end; text-align: right; }
body.tight .admchatsep { align-self: center; padding: var(--sp-2) 0; }
/* T79: Chronicle Commanders step: a long commander chip never runs under the Change button or the deck picker; on a phone the chips get their own line */
body.tight .gcmdrow .gcmdlist .chip { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  body.tight .gcmdrow > .row > .gcmdlist { order: 1; flex: 1 1 100%; }
  body.tight .gcmdrow > .row > .dlsel { order: 2; flex: 1 1 100%; }
  body.tight .gcmdrow > .row > .dlsel select { flex: 1 1 auto; min-width: 0; }
  body.tight .gcmdrow > .row > .btn { margin-left: auto; }
}
/* T81 (2026-10-22): Build at 1024x768. The Build bar stays one row (Export, Analyze and Trim icon-only, their names in aria-label and the tooltip) and the
   draw row with Previous draw stays one row in the 420 px middle column next to the docked Tamiyo (Previous draw icon-only, Your draws its icon and count) */
@media (min-width: 1001px) and (max-width: 1099px) { body.tight .buildbar .fbtn .fbshort { display: none; } body.tight .buildbar .fbtn:has(> .fbshort) { min-width: var(--h-sm); padding: 0 var(--sp-5); justify-content: center; } }
@container drawbar (min-width: 360px) and (max-width: 439px) {
  body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) { grid-auto-flow: column; grid-template-columns: var(--h-lg) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--sp-3); }
  body.tight .drawbar.cardraw .drawmid > .btn.prevdraw { padding: 0; }
  body.tight .drawbar.cardraw .drawmid > .btn.prevdraw > .prevlbl, body.tight .drawbar.cardraw .drawmid:has(> .btn:nth-child(4)) .histshort { display: none; }
}
body.tight .carousel.carmin { --cw: max(128px, min(var(--cwx), var(--cwcap, 999px))); }   /* T81: a short screen lets the card go below 160 px, so the reason card never rises over the decision buttons (pages2.js carFit) */

/* ---------- T17 (owner sign-off 2026-10-22, docs/PLAYTEST-BOARD-SCALE-PLAN.md): the board scales with the screen ----------
   playtest.js scaleVars writes the tier variables (--av --libw --peek --hcwb --handzone) sized by k on .ptwrap above the tier's design size;
   the life badge grows with the avatar (--lifek, capped with it at PC.AV_MAX); from k 1.3 (.hud2) the buttons are one step up: tools 44,
   step icons 22, the pass button and the decision corner 400 wide, the player names --fs-xl */
body.tight .pttbl:not(.ptcol) .ptlifeb { scale: var(--lifek, 1); }
body.tight .ptwrap.ptt.hud2:not(.touch) { --sidew: 400px; }
body.tight .ptwrap.ptt.hud2 .pttbl:not(.ptcol) .pttool { width: var(--h-md); height: var(--h-md); }
body.tight .ptwrap.ptt.hud2 .pttbl:not(.ptcol) .ptstepi svg { width: 22px; height: auto; aspect-ratio: 1; }
body.tight .ptwrap.ptt.hud2 .pttbl:not(.ptcol) .ptnm { font-size: var(--fs-xl); }
body.tight .tw164 .ptnpn, body.tight .tw184 .ptnpn, body.tight .tw208 .ptnpn { font-size: var(--fs-lg); }
/* Admin > Accounts: where an online player is, live (owner 2026-10-22); one line, the whole text in the title */
body.tight .admwhere { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .admucard .admwhere { max-width: 45%; }
/* T594 (owner 2026-11-07): an account row on a phone is two lines, with the chevron in its own column */
body.tight .admucard > .admurow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-5); align-items: center; text-align: left; }
body.tight .admul1, body.tight .admul2 { grid-column: 1; display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .admurow > .tchev { grid-column: 2; grid-row: 1 / span 2; }
body.tight .admul1 > .admun { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .admul1 > .admucn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: var(--fw-label); }
body.tight .admul1 > .tag, body.tight .admul1 > .admdot, body.tight .admul2 > .tag, body.tight .admul2 > .admuch { flex: none; white-space: nowrap; }
body.tight .admul2 { color: var(--text2); }
body.tight .admucard .admul2 > .admwhere { flex: 1 1 0; max-width: none; }
/* T595: the top of Accounts on a phone */
body.tight .admacchead { display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .admacchead #admq { width: 100%; }
body.tight .admphctl { position: relative; flex-wrap: nowrap; gap: var(--sp-3); }
body.tight .admphctl > .chip { flex: none; padding: 0 var(--sp-4); }
body.tight .admsortmenu { position: absolute; top: calc(100% + var(--sp-2)); left: 0; z-index: 30; width: 240px; max-width: 100%; display: flex; flex-direction: column; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
body.tight .admsortmenu > .small { padding: var(--sp-1) var(--sp-4) var(--sp-3); }
body.tight .admsortmenu > button { display: flex; justify-content: space-between; align-items: center; min-height: 36px; height: auto; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-tag); background: transparent; color: var(--text2); text-align: left; }
body.tight .admsortmenu > button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: var(--fw-label); }
body.tight .admweek { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .admwkrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .admwkn { display: flex; flex-direction: column; min-width: 0; }
body.tight .admwkn > b { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
body.tight .admwklv { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-4); font-variant-numeric: tabular-nums; }
body.tight .admwklv b { color: var(--text); }
/* Admin menu: the Backlog item's open counts per kind on a second line (owner 2026-10-22); the phone's sideways menu keeps only the total */
body.tight .admnavi:has(.admnavsub) { flex-wrap: wrap; row-gap: 0; padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
body.tight .admnavsub { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-text); line-height: 1.4; }
body.tight .admnavk { display: inline-flex; align-items: center; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
body.tight .admnavk.ktodo { color: var(--text2); }
body.tight .admnavi.on .admnavsub { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
@media (max-width: 899px) { body.tight .admnavsub { display: none; } body.tight .admnavi:has(.admnavsub) { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; } }
/* Backlog pictures (owner 2026-10-22): pasted images on an item or waiting in the add box */
body.tight .tdclip { flex: 0 0 auto; width: var(--h-sm); padding: 0; justify-content: center; }   /* T431: the paper clip, square */
@media (pointer: coarse) { body.tight .tdclip { width: 40px; height: 40px; } }
body.tight .tdmore { display: flex; justify-content: center; padding: var(--sp-4); }   /* T432: Show more under a closed list */
body.tight .tdshots { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .tdshot { position: relative; display: inline-flex; }
body.tight .tdshot img { display: block; max-height: 96px; max-width: 160px; border-radius: var(--r-ctl); border: 1px solid var(--line); object-fit: cover; }
body.tight .tdshotx { position: absolute; top: calc(-1 * var(--sp-2)); right: calc(-1 * var(--sp-2)); width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--line); }
body.tight .tdpic { flex: 0 0 auto; display: inline-flex; color: var(--muted); }

/* Bulk edit as text (owner 2026-10-22, like Moxfield's): the deck list becomes one text box with Deck / Maybeboard tabs */
body.tight .bulkedit { gap: var(--sp-4); padding: var(--sp-5); border-color: var(--accent); }
body.tight .bulkedit .bulkhead { gap: var(--sp-2); align-items: center; }
body.tight .bulkedit .bulktext { width: 100%; min-height: 60vh; resize: vertical; padding: var(--sp-4); font: inherit; font-size: var(--fs-md); line-height: 1.6; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .bulkedit .bulktabs { gap: var(--sp-2); }
body.tight .bulkedit .bulkacts { gap: var(--sp-3); margin-left: auto; }

/* T108 wishlist To a deck (2026-10-22): the deck picker in a card's ⋯ menu scrolls when there are many decks */
body.tight .wlmenu.wldeckpop { max-height: 50vh; overflow-y: auto; max-width: calc(100vw - var(--sp-8)); z-index: 30; }
body.tight .wldeckpop .wlpkn { flex: 1 1 auto; }

/* T117 Home search (owner 2026-10-22, mockup 7zBhLw784cH36M97FEHSwq): a big field under the greeting, the hits drop down over the page */
body.tight .hsrch { position: relative; z-index: 30; display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .hsrch-head { margin: 0; font-size: var(--fs-xl); }   /* T157 */
body.tight .hsrch-field { display: flex; align-items: center; gap: var(--sp-4); height: var(--h-lg); padding: 0 var(--sp-6); border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--card); color: var(--accent); cursor: text; box-shadow: 0 0 0 var(--sp-2) color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight .hsrch-field:focus-within { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 var(--sp-2) color-mix(in srgb, var(--accent) 22%, transparent); }
body.tight .hsrch-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-lg); outline: none; }
body.tight .hsrch-pop { position: absolute; top: calc(100% + var(--sp-3)); left: 0; right: 0; max-height: min(70vh, 640px); overflow-y: auto; display: flex; flex-direction: column; padding: var(--sp-3) 0; border-radius: var(--r-box); border: 1px solid var(--line); background: var(--card); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
body.tight .hsrch-sec { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6) var(--sp-2); }
body.tight .hsrch-it { display: flex; align-items: center; gap: var(--sp-4); padding: 0 var(--sp-6) 0 0; }
body.tight .hsrch-it.on, body.tight .hsrch-it:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .hsrch-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-md); padding: var(--sp-2) 0 var(--sp-2) var(--sp-6); border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
body.tight .hsrch-tx { display: flex; flex-direction: column; min-width: 0; }
body.tight .hsrch-tx b, body.tight .hsrch-tx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .hsrch-tx b { font-size: var(--fs-md); }
body.tight .hsrch-tx span { font-size: var(--fs-xs); color: var(--muted); }
body.tight .hsrch-th { flex: none; width: var(--h-md); height: var(--h-xs); border-radius: var(--sp-2); object-fit: cover; display: grid; place-items: center; background: var(--card2, var(--card)); color: var(--muted); font-weight: 800; }
body.tight .hsrch-none { padding: var(--sp-4) var(--sp-6); }
/* T137: where the others look (playatt.js, playtest.js attPaint). A ring in the looking seat's colour with its initial on the card,
   stack item or graveyard pile; a dashed ring while they target; their hand's backs come up (untucked) and the hovered back lifts.
   Reduce motion and Motion Off: no movement, the hovered back keeps only its coloured mark; up or tucked shows without a transition. */
body.tight .atts0 { --attc: #5ec8f2; } body.tight .atts1 { --attc: #f5916e; } body.tight .atts2 { --attc: #b794f6; } body.tight .atts3 { --attc: #7fd48f; }
body.tight .attring { position: absolute; inset: 0; z-index: 6; pointer-events: none; border: var(--sp-1) solid var(--attc); border-radius: var(--r-tag);
  box-shadow: 0 0 var(--sp-5) color-mix(in srgb, var(--attc) 55%, transparent), inset 0 0 var(--sp-4) color-mix(in srgb, var(--attc) 35%, transparent); }
body.tight :is(.atttg > .attring, .atttg > .ptonc > .attring) { border-style: dashed; }   /* its own ring only: an attachment strip inside a targeted tile keeps its solid look ring */
/* T262 (owner 2026-10-25): on a board tile the ring takes the card's corners, and a tapped tile's card is turned 20deg in its slot: the ring
   lies in the tile's on-card layer (.ptonc, T858) and turns with it (the column's 90deg-turned card fills its slot, so its ring already fits) */
body.tight .ptonc > .attring { border-radius: calc(var(--tw) * .07); }
/* T795 + T796 (owner 2026-11-15): the lookers' badges sit on the card's bottom left corner, centred on its bottom edge (bottom right would
   cover the P/T), one per looker in its own colour, side by side;
   a label is one letter, or two or three while two players share an initial */
body.tight .attbs { position: absolute; z-index: 7; bottom: calc(var(--sp-6) / -2); left: calc(-1 * var(--sp-3)); display: flex; gap: var(--sp-1); pointer-events: none; }
body.tight .attb { min-width: var(--sp-6); height: var(--sp-6); padding: 0 var(--sp-2); box-sizing: border-box; border-radius: var(--r-pill);
  display: grid; place-items: center; pointer-events: none; background: var(--attc); color: #0b1016; font-size: var(--fs-xs); font-weight: 700; line-height: 1; box-shadow: 0 0 0 var(--sp-1) #0b1016; }
/* T751 (owner 2026-11-12): the stack's big card clips what hangs over its edge, so there the ring takes the card's corners and the badges sit just inside its corner */
body.tight .ptstkfull > .attring, body.tight .ptstackrow > .attring { border-radius: inherit; }
body.tight .ptstkfull > .attbs, body.tight .ptstackrow > .attbs { bottom: var(--sp-2); left: auto; right: var(--sp-2); }   /* T843: the strip's bottom right corner, clear of the #N block */
body.tight .ptstkfull > .attbs > .attb, body.tight .ptstackrow > .attbs > .attb { min-width: var(--sp-6); height: var(--sp-6); font-size: var(--fs-xs); }
body.tight .ptmed.attm { outline: var(--sp-1) solid var(--attc); outline-offset: var(--sp-3); }
body.tight .ptmed.attm.atttg { outline-style: dashed; }
body.tight .ptohbs { transition: translate .18s ease-out, scale .18s ease-out; }
body.tight .ptohb { transition: translate .15s ease-out; }
body.tight .ptohand.opp.attup .ptohbs { translate: 0 var(--sp-6); scale: 1.12; }
body.tight .ptohand.me.attup .ptohbs { translate: 0 calc(-1 * var(--sp-6)); scale: 1.12; }
body.tight .ptohand.opp .ptohb.attlift { translate: 0 var(--sp-5); }
body.tight .ptohand.me .ptohb.attlift { translate: 0 calc(-1 * var(--sp-5)); }
body.tight .ptohb.attlift { outline: var(--sp-1) solid var(--attc); outline-offset: var(--sp-1); }
body.tight .pttbl.ptcol .ptohand.atthov .ptohn { box-shadow: 0 0 0 var(--sp-1) var(--attc); }
body.tight .pttbl.ptcol .ptohand.attup .ptohn::before { translate: 0 calc(-1 * var(--sp-1)); box-shadow: inset 0 0 0 1px var(--attc); }
body.tight .fxoff .ptohbs, body.tight .fxoff .ptohb { transition: none; }
body.tight .fxoff .ptohb.attlift { translate: none; }   /* the hand up or tucked stays a state (no transition); only the lift goes */
@media (prefers-reduced-motion: reduce) { body.tight .ptohbs, body.tight .ptohb { transition: none; } body.tight .ptohb.attlift { translate: none; } }
body.tight .ptpbadge.khand.atthov { box-shadow: 0 0 0 var(--sp-1) var(--attc), 0 0 var(--sp-4) var(--attc); }
body.tight .ptpbadge.khand.attup { translate: 0 calc(-1 * var(--sp-2)); outline: 1px solid var(--attc); }
/* Backlog: what an item waits on, and a pick that was left behind (owner 2026-10-23) */
body.tight .tdneeds { flex: 0 0 auto; }
body.tight .tdneeds .chip { text-decoration: none; }
body.tight .tdstall { flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-size: var(--fs-sm); }
@media (max-width: 699px) { body.tight .tdneeds { flex-basis: 100%; order: 9; padding-left: var(--sp-6); } }

/* Explore > Leaderboards (T76, 2026-10-23, leaderboard.js): one list, ranks 1 to 3 with a quiet gold, silver and bronze mark, your row lit */
body.tight .lbinner { max-width: 820px; }
body.tight .lbband .lbsp { flex: 1 1 auto; }
/* T473: Season and the i at the end of the tab row (wider than a phone); the row carries the divider, the tabs' own line lies on it */
body.tight .lbtabrow { display: flex; align-items: center; gap: var(--sp-5); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-5); }
body.tight .lbtabrow > .dkswitch { flex: 1 1 auto; min-width: 0; margin-bottom: -1px; }
body.tight .lbtabtools { flex: 0 0 auto; gap: var(--sp-4); align-items: center; }
body.tight .lbtabtools select { min-height: var(--h-sm); }
body.tight .lblist { list-style: none; margin: 0; padding: var(--sp-2) 0; display: flex; flex-direction: column; }
body.tight .lbrow { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-5); min-height: var(--h-lg);
  padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--line); }
body.tight .lbrow:first-child { border-top: 0; }
body.tight .lbrow.me { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
body.tight .lbrank { font-size: var(--fs-lg); font-weight: var(--fw-title); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
body.tight .lbrow.top .lbrank { border-radius: var(--r-pill); height: var(--h-xs); line-height: var(--h-xs); color: var(--onAccent); }
body.tight .lbrow.gold .lbrank { background: var(--gold); }
body.tight .lbrow.silver .lbrank { background: color-mix(in srgb, var(--text2) 80%, #8fa6bf); }
body.tight .lbrow.bronze .lbrank { background: color-mix(in srgb, var(--warn) 55%, var(--bad)); }
body.tight .lbwho { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; font-size: var(--fs-md); }
body.tight .lbwho .rzns { min-width: 0; }
body.tight .lbia { flex: 0 0 auto; padding: 0 var(--sp-3); font-weight: var(--fw-title); letter-spacing: .04em; }
body.tight .lbyou { flex: 0 0 auto; font-size: var(--fs-xs); color: var(--accent); font-weight: var(--fw-label); }
body.tight .lbfig { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); text-align: right; white-space: nowrap; }
body.tight .lbnum { font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
body.tight .lbsub { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .lbgap { text-align: center; color: var(--muted); padding: var(--sp-1) 0; border-top: 1px solid var(--line); }
body.tight .lbempty { padding: var(--sp-7) var(--sp-6); text-align: center; }
body.tight .lbnote { padding: 0 var(--sp-2); }
@media (max-width: 700px) {
  body.tight .lbrow { grid-template-columns: 28px auto minmax(0, 1fr) auto; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); min-height: var(--h-md); }
  body.tight .lbrank { font-size: var(--fs-md); }
  body.tight .lbband .lbsp { display: none; }
}
/* the area you gave an item never gives way to a long title, and the session that picked it up or asked is readable (owner 2026-10-23) */
body.tight .tdpage.tdarea { flex-shrink: 0; max-width: none; }
body.tight .tdsess { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: var(--fs-sm); }
body.tight .tdsess img { width: var(--fs-sm); height: var(--fs-sm); flex: 0 0 auto; }

/* T146 (owner 2026-10-23): phones show a menu button left of the logo instead of the menu's second row; it opens the pages as one list */
body.tight .navham { display: none; }
@media (max-width: 700px) {
  body.tight header.top .menuwrap { display: none; }
  body.tight header.top .navham { display: inline-flex; position: relative; width: var(--h-sm); height: var(--h-sm); }
  body.tight header.top .navham.on { color: var(--accent); border-color: var(--accent); }
  body.tight header.top .navham .navdot { position: absolute; top: var(--sp-1); right: var(--sp-1); margin: 0; }
  body.tight .navhamscrim { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: 1; background: color-mix(in srgb, var(--bg) 60%, transparent); }
  body.tight .navhampanel { position: absolute; top: 100%; left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; gap: var(--sp-1);
    max-height: calc(100dvh - var(--topbar)); overflow-y: auto; padding: var(--sp-3) var(--gutter) var(--sp-5); background: var(--bar); border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-box) var(--r-box); }
  body.tight .navhamit { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-box); background: none; color: var(--text); font-size: var(--fs-md); font-weight: var(--fw-display); text-align: left; }
  body.tight .navhamit.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
  body.tight .navhamit .navdot { margin: 0; }
  body.tight .navhamdiv { height: 1px; margin: var(--sp-2) var(--sp-4); background: var(--line); }
}
/* #273 (owner 2026-11-12): the top bar's last fit step, only where even the tightest bar does not fit (body.hdrham, core.js RZ.fitHeader), is this same menu button and list */
body.tight.hdrham header.top .menuwrap { display: none; }
body.tight.hdrham header.top .navham { display: inline-flex; position: relative; width: var(--h-sm); height: var(--h-sm); }
body.tight.hdrham header.top .navham.on { color: var(--accent); border-color: var(--accent); }
body.tight.hdrham header.top .navham .navdot { position: absolute; top: var(--sp-1); right: var(--sp-1); margin: 0; }
body.tight.hdrham .navhamscrim { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: 1; background: color-mix(in srgb, var(--bg) 60%, transparent); }
body.tight.hdrham .navhampanel { position: absolute; top: 100%; left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; gap: var(--sp-1);
  max-height: calc(100dvh - var(--topbar)); overflow-y: auto; padding: var(--sp-3) var(--gutter) var(--sp-5); background: var(--bar); border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-box) var(--r-box); }
body.tight.hdrham .navhamit { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-box); background: none; color: var(--text); font-size: var(--fs-md); font-weight: var(--fw-display); text-align: left; }
body.tight.hdrham .navhamit.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
body.tight.hdrham .navhamit .navdot { margin: 0; }
body.tight.hdrham .navhamdiv { height: 1px; margin: var(--sp-2) var(--sp-4); background: var(--line); }
/* T19 (owner 2026-10-23, mockup v2): live matches, a red chip left of the Play pill and its list; phones: a red count on Friends */
body.tight .livewrap { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: 0 var(--sp-1) 0 0; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: var(--r-pill); background: color-mix(in srgb, var(--bad) 9%, transparent); }
body.tight .livechip { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: none; color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-display); white-space: nowrap; }
body.tight .livewrap:not(:has(.livespec)) .livechip { padding-right: var(--sp-5); }
body.tight .livedot { width: var(--sp-3); height: var(--sp-3); border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); flex: 0 0 auto; }
body.tight .livechip .livetitle { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
body.tight .livechip .alt { display: none; }
body.tight .livecaret { font-size: var(--fs-xs); color: var(--muted); }
body.tight .livespec { min-height: var(--h-xs); padding: 0 var(--sp-4); gap: var(--sp-2); border-radius: var(--r-pill); white-space: nowrap; }
body.tight .rzpop.livepop { width: 360px; }   /* T1024: the live count's list, on hover or keyboard focus (popover.js) */
body.tight .liverow { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .liverow.dim .livename { color: var(--muted); }
body.tight .livename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .livelock { white-space: nowrap; }
body.tight .livesep { border-top: 1px solid var(--line); }
body.tight .szlive-list { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-2) var(--sp-5) var(--sp-4); }
body.tight .szcount.szlive { background: var(--bad); color: var(--onAccent); }
/* a tight top bar: the chip shrinks to its count first ("● 3 live ▾"), Spectate moves into the list */
body.tight.hdrlive .livechip .livetitle, body.tight.hdrlive .livewrap > .livespec { display: none; }
body.tight.hdrlive .livechip .alt { display: inline; }
body.tight.hdrlive .livewrap { padding-right: 0; }
/* T152 (owner 2026-10-23): the bell, Friends, the bug and the banner's fold arrow have no box of their own, like the menu: a soft box on
   hover, the highlight only while their drawer or the report is open (the fold arrow never) */
body.tight header.top .ntbtn, body.tight header.top .szbtn, body.tight .reportbtn, body.tight .bannerfold { border-color: transparent; background: transparent; }
body.tight header.top .ntbtn:hover, body.tight header.top .szbtn:hover, body.tight .reportbtn:hover, body.tight .bannerfold:hover { border-color: transparent; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
body.tight header.top .ntbtn.on, body.tight header.top .szbtn.on, body.tight .reportbtn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .reportbtn { color: var(--accent); }
/* T151 (owner 2026-10-23, vb4.mp4): the bell jingles on hover */
body.tight .ntbtn .navico { transform-origin: 50% 12%; }
body.tight .ntbtn:hover .navico { animation: belljingle .7s ease-in-out; }
@media (prefers-reduced-motion: reduce) { body.tight .ntbtn:hover .navico { animation: none; } }
/* T186 (owner): the bell matches Friends beside it: the same line drawing, size and text colour */
body.tight header.top .ntbtn { color: var(--text); }
body.tight .ntbtn .navico, body.tight .ntbtn .navico svg { width: 18px; height: auto; display: inline-flex; }

/* T154 (owner 2026-10-23): the bug opens the report and a second click closes it: while it is open the banner (or the phone's title line)
   holding it sits above the report's dimmed backdrop, so the bug stays clickable */
body.tight .pagehead:has(.reportbtn.on), body.tight .pagehead-slim:has(.reportbtn.on) { position: relative; z-index: 61; }
/* T153 (owner 2026-10-23, vb5.mp4): your picture in the account drawer shows a pencil over a dimmed picture on hover or keyboard focus;
   touch screens (no hover) keep a small pencil badge at its corner */
body.tight .acctavbtn { position: relative; }
body.tight .acctavedit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--text); opacity: 0; transition: opacity .15s; pointer-events: none; }
body.tight .acctavbtn:hover .acctavedit, body.tight .acctavbtn:focus-visible .acctavedit { opacity: 1; }
@media (hover: none) {
  body.tight .acctavedit { inset: auto var(--sp-1) var(--sp-1) auto; width: var(--h-xs); height: var(--h-xs); opacity: 1; background: var(--card); border: 1px solid var(--line); }
  body.tight .acctavedit .uico { transform: scale(.55); }
}
/* T155 (owner 2026-10-23): the account drawer's theme folds to one button with the current theme; it unfolds on a click */
body.tight .themecur { display: flex; align-items: center; gap: var(--sp-4); width: 100%; min-height: var(--h-md); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--text); font-weight: var(--fw-title); text-align: left; }
body.tight .themecur:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
body.tight .themecur.on { border-color: var(--accent); }
body.tight .themecur .chev { color: var(--muted); font-size: var(--fs-lg); transition: transform .15s ease; }
body.tight .themecur.on .chev { transform: rotate(90deg); }
/* T141: the phone board's table carries .ptph, which is also the phase pill's class (white-space: nowrap): the drop card's lines never wrapped at 390 and ran over each other and the Wait button; they wrap now, and on a phone the button takes its own row */
body.tight .pttbl.ptph .ptdrop { white-space: normal; }
@media (max-width: 700px) { body.tight .pttbl.ptph .ptdrop .btn { flex: 1 1 100%; } }

/* T168 (owner 2026-10-24, mockup DhLY9SHe3WqN7ywgpYK6U6 option A): the deck view's Set up, Tinker and Share menus under their buttons; a sheet on phones */
body.tight .dvmwrap { position: relative; display: inline-flex; }
body.tight .dvmbtn { gap: var(--sp-3); }
body.tight .dvmbtn .dvmchev { display: inline-flex; opacity: .7; }
body.tight .subbar.dvbar .dvacts .dvmbtn .uico { display: inline-flex; }
body.tight .dvmpop.barpop { position: absolute; right: 0; top: calc(100% + var(--sp-2)); display: flex; min-width: 300px; border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .dvmpop .popitem.on { background: var(--secBg); }
@media (min-width: 701px) {   /* T171 (owner 2026-10-24): the menus sit between My decks and the lock, left-aligned; phones keep their own row and sheets */
  body.tight .subbar.dvbar .dvacts { margin-left: 0; }   /* right after My decks (owner vb88), the bar's 8 step on both sides */
  body.tight .subbar.dvbar .dvmpop.barpop { left: 0; right: auto; top: calc(100% + var(--sp-5) + var(--sp-2)); }   /* opens under the band's divider (the band pads 12 below its buttons), never over it */
}
body.tight .dvmpop .popitem.on > .uico:last-child { color: var(--accent); }
@media (max-width: 700px) {
  body.tight .dvmbtn .dvmchev { display: none; }   /* the three fit on one line at 390 */
  body.tight .dvmpop.barpop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; min-width: 0; border-radius: var(--r-box) var(--r-box) 0 0; padding: var(--sp-4) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); }
}

/* T166 (owner 2026-10-24): Card details in the deck list bar: what each row shows, as switches (the menu box is T168's .dvmpop, a sheet on phones) */
body.tight .dlbar .dlcdbtn { height: var(--h-sm); }
body.tight .dlcdwrap .dvmpop { min-width: 260px; gap: var(--sp-1); }
body.tight .dlcdhead { padding: var(--sp-2) var(--sp-4) var(--sp-3); }
body.tight .cdsw { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-md); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font-size: var(--fs-md); text-align: left; }
body.tight .cdsw:hover, body.tight .cdsw:focus-visible { background: var(--secBg); }
body.tight .cdtrack { position: relative; flex: 0 0 auto; width: calc(var(--sp-8) + var(--sp-2)); height: calc(var(--sp-6) + var(--sp-2)); border-radius: var(--r-pill); background: var(--bar); border: 1px solid var(--line); }
body.tight .cdtrack i { position: absolute; top: var(--sp-1); left: var(--sp-1); width: calc(var(--sp-6) - var(--sp-1)); height: calc(var(--sp-6) - var(--sp-1)); border-radius: 50%; background: var(--text2); transition: left .15s ease; }
body.tight .cdsw[aria-checked="true"] .cdtrack { background: var(--accent); border-color: var(--accent); }
body.tight .cdsw[aria-checked="true"] .cdtrack i { left: calc(var(--sp-6) - var(--sp-1)); background: var(--onAccent); }
body.tight .dlmana { flex: 0 0 auto; }

/* T164 (owner 2026-10-24): Change commander, a dialog from the commander row (a bottom sheet on phones) */
body.tight .ccmodal { position: fixed; }
body.tight .ccmodal > .ccbox { gap: var(--sp-5); width: min(600px, 100%); }
body.tight .ccbox .cdsw { padding: var(--sp-2) 0; }
body.tight .cclist { max-height: 40vh; overflow-y: auto; }
body.tight .ccsearch { display: flex; align-items: center; gap: var(--sp-4); height: var(--h-md); padding: 0 var(--sp-5); border: 1px solid var(--accent); border-radius: var(--r-ctl); background: var(--bg); color: var(--text2); }
body.tight .ccsearch:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }   /* T755 (WCAG 2.4.7): its input has no outline */
body.tight .ccsearch input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: var(--fs-md); outline: none; padding: 0; }
body.tight .ccrow { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-lg); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--text); text-align: left; }
body.tight .ccrow:hover, body.tight .ccrow:focus-visible { border-color: var(--accent); }
body.tight .ccrow.on { border-color: var(--accent); background: var(--secBg); }
body.tight .ccrow .tag { flex: 0 0 auto; }
body.tight .ccfoot { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .dlchgcmd { flex: 0 0 auto; }
body.tight .dlrow > .dlph { visibility: hidden; flex: none; pointer-events: none; }   /* T935: the commander line's empty button places */
body.tight .dlcmdslot { padding: var(--sp-3) var(--sp-2) var(--sp-4); }   /* T928 / #350: the empty Commander group: the picks from the deck and Set commander */
body.tight .dlcmdslot .dlcmdpick { max-width: 100%; min-width: 0; }
@media (max-width: 700px) {
  body.tight .ccmodal { align-items: flex-end; padding: 0; }
  body.tight .ccrow .ccpips { display: none; }   /* the name keeps the room; the tag says whether it fits */
  body.tight .ccmodal > .ccbox { max-height: 92%; border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: calc(var(--sp-7) + env(safe-area-inset-bottom, 0px)); }
}

/* T184 (2026-10-24): a card locked in its Card details panel; a mark on its row, the pressed padlock in the panel (like the deck's padlock) */
body.tight .dllock { flex: 0 0 auto; display: inline-flex; align-items: center; margin-left: var(--sp-2); color: var(--muted); }
body.tight .btn.cdbtn.cdlock.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* T192: the app notifications ask (notify.js): a small card at the bottom, above the page, never on page load */
body.tight .rznask { position: fixed; z-index: 130; left: 50%; bottom: var(--sp-6); transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bar); color: var(--text); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
body.tight .rznaskic { display: inline-flex; color: var(--accent); }
body.tight .rznasktxt { flex: 1 1 220px; min-width: 0; font-size: var(--fs-sm); line-height: 1.4; }
body.tight .rznaskbtns { display: flex; gap: var(--sp-3); margin-left: auto; }
body.tight .rznrow { min-height: 44px; }
body.tight .rznlist { padding-left: var(--sp-5); border-left: 2px solid var(--line); }

body.tight .gameref { display: inline-flex; align-items: center; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-tag); background: var(--chip); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: 0; text-transform: none; cursor: pointer; }
body.tight .gameref:hover { color: var(--text); }
/* T210 (owner 2026-10-24): fold a choice to see the board. The eye button sits in the question's header line (.ptpk) or, on the centred
   panels (modes, faces), in the screen's top right corner; folded, the question is a bar in the decision corner that pulses while the
   game waits on it, with Show (F) to unfold it in the same state */
body.tight .ptpk.hasfold { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .ptpk.hasfold > .ptfoldbtn { margin-left: auto; }
body.tight .ptfoldbtn { flex: none; width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-ctl); color: var(--text2); background: var(--card); text-transform: none; letter-spacing: 0; }
body.tight .ptfoldbtn:hover, body.tight .ptfoldbtn:focus-visible { color: var(--text); border-color: var(--accent); }
body.tight .ptmodes-bg > .ptfoldbtn { position: absolute; z-index: 2; top: var(--sp-5); right: var(--sp-5); width: var(--h-sm); height: var(--h-sm); }
body.tight .ptfoldbar { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-4); min-width: 0; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5); border: 1px solid var(--accent); border-radius: var(--r-box); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: ptfoldring calc(1800ms * var(--fxk, 1)) ease-out infinite; }
body.tight .ptfolddot { flex: none; width: var(--sp-4); height: var(--sp-4); border-radius: 50%; background: var(--accent); animation: ptfolddot calc(1800ms * var(--fxk, 1)) ease-in-out infinite; }
body.tight .ptfoldt { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); font-weight: 600; }
body.tight .ptfoldshow { flex: none; }
body.tight .ptfoldshow .ptkey { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
body.tight .ptwrap.fxoff :is(.ptfoldbar, .ptfolddot) { animation: none; }
@media (prefers-reduced-motion: reduce) { body.tight :is(.ptfoldbar, .ptfolddot) { animation: none; } }
body.tight .pttbl.ptcol .ptdock > .ptfoldbar, body.tight .pttbl.ptpph .ptdock > .ptfoldbar { margin-bottom: var(--sp-2); }
/* ticket #196 (2026-11-04): the decision corner's question moves (grip, Move) and folds with its Confirm; phones: the sheet's handle */
body.tight .ptgrip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--h-xs); height: var(--h-xs); margin-right: var(--sp-2); border-radius: var(--r-ctl); cursor: grab; touch-action: none; color: var(--text2); }
body.tight .ptgrip:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
body.tight .ptgrip:active { cursor: grabbing; }
body.tight .ptgripd { display: inline-grid; grid-template-columns: repeat(2, 3px); gap: 4px; }
body.tight .ptgripd > i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
body.tight .ptpk.hasfold > .ptmovebtn { margin-left: auto; }
body.tight .ptpk.hasfold > .ptmovebtn + .ptfoldbtn { margin-left: var(--sp-2); }
body.tight .ptprompt.ptmoved { position: fixed; z-index: 60; margin: 0; max-height: 62vh; overflow-y: auto; }
body.tight .ptpromptph { flex: 0 0 auto; pointer-events: none; }   /* the room a pinned frame had in the dock (promptPlace): what stands around it stays where it was */
body.tight .ptfoldbar.haskeep .ptfoldok { flex: none; }
body.tight .ptsheeth { order: -1; align-self: stretch; flex: 0 0 100%; height: var(--sp-5); margin: calc(-1 * var(--sp-3)) 0 0; padding: 0; border: 0; background: transparent; touch-action: none; position: relative; }
body.tight .ptsheeth::before { content: ''; position: absolute; left: 50%; width: 36px; margin-left: -18px; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; background: var(--text2); opacity: .55; }
body.tight .ptsheeth::after { content: ''; position: absolute; inset: -10px 25%; }
body.tight .ptsheeth:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl); }
body.tight .pttbl:is(.ptcol, .ptpph) .ptdock > .ptfoldbar { touch-action: none; }
/* ticket #187 (2026-11-04): a land's mana choice as a pop-up at the card; drag it by its top line */
body.tight .ptmanapop { position: fixed; z-index: 62; left: 0; top: 0; display: flex; flex-direction: column; gap: var(--sp-3); width: max-content; max-width: min(92vw, 360px); padding: var(--sp-3) var(--sp-4) var(--sp-4); border: 1px solid var(--tgold, var(--accent)); border-radius: var(--r-box); background: var(--card); color: var(--text); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
body.tight .ptmanapop.anch::after { content: ''; position: absolute; left: var(--cx, 50%); bottom: -7px; width: 12px; aspect-ratio: 1; margin-left: -6px; background: var(--card); border-right: 1px solid var(--tgold, var(--accent)); border-bottom: 1px solid var(--tgold, var(--accent)); transform: rotate(45deg); }
body.tight .ptmanapop.anch.below::after { bottom: auto; top: -7px; transform: rotate(225deg); }
body.tight .ptmanahd { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; cursor: grab; touch-action: none; user-select: none; color: var(--text2); }
body.tight .ptmanahd:active { cursor: grabbing; }
body.tight .ptmanan { min-width: 0; color: var(--text); font-size: var(--fs-sm); }
body.tight .ptmanax { margin-left: auto; width: var(--h-xs); height: var(--h-xs); }
body.tight .ptmanaopts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .ptmanaopt { display: inline-flex; align-items: center; gap: 2px; min-height: var(--h-sm); padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--text) 5%, var(--card)); color: var(--text); font-size: var(--fs-sm); cursor: pointer; }
body.tight .ptmanaopt:hover:not(:disabled), body.tight .ptmanaopt:focus-visible { border-color: var(--tgold, var(--accent)); background: color-mix(in srgb, var(--tgold, var(--accent)) 16%, var(--card)); }
body.tight .ptmanaopt:disabled { opacity: .45; cursor: default; }
body.tight .ptmanamore { align-self: flex-start; }
@media (pointer: coarse) { body.tight .ptmanaopt { min-height: var(--h-md); } }
@media (pointer: coarse) { body.tight .ptfoldbtn { position: relative; } body.tight .ptfoldbtn::after { content: ''; position: absolute; inset: -6px; } body.tight .ptfoldshow { min-height: var(--h-sm); } }
/* T212: seat requests. The deck pick under a full Open tables row spans the row */
body.tight .pdotrow.pdrqon { flex-wrap: wrap; }
body.tight .pdotrow .pdrqpick { flex: 1 1 100%; min-width: 0; }
@media (max-width: 700px) {   /* T212: on a phone the row's end (Request a seat, Requested · Cancel) goes under the table, as in the drawer */
  body.tight .pdotlist .pdotrow { flex-wrap: wrap; }
  body.tight .pdotlist .pdotrow .pdotend { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* T145 Learning to play: Tamiyo's coach on the board (coach.js; mockup XpZ7zjee7EcJvggjkgLjBD Coach, CoachPhone, Offer, Ready) */
body.tight .coach { pointer-events: auto; display: flex; align-items: flex-start; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); border: 1px solid color-mix(in srgb, var(--tale) 45%, var(--line)); border-radius: var(--r-box); background: color-mix(in srgb, var(--tale) 7%, var(--card)); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); max-width: 420px; }
body.tight .coachface { flex: none; width: var(--h-md); height: var(--h-md); object-fit: contain; }
body.tight .coachstage { color: var(--tale); }
body.tight .coachtitle { font-size: var(--fs-lg); color: var(--text); }
body.tight .coachline { font-size: var(--fs-md); color: var(--text2); line-height: 1.45; }
body.tight .coachbtns { margin-top: var(--sp-3); align-items: center; }
body.tight .coachhide { margin-left: auto; color: var(--muted); }
body.tight .coach.replay { border-style: dashed; }
body.tight .coachask { pointer-events: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-3); padding: var(--sp-1) var(--sp-5) var(--sp-1) var(--sp-1); border: 1px solid color-mix(in srgb, var(--tale) 40%, var(--line)); border-radius: var(--r-pill); background: var(--card); color: var(--text2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
body.tight .coachask:hover { color: var(--tale); }
body.tight .coachask .coachface { width: var(--h-xs); height: var(--h-xs); }
body.tight .ptgoleft > .coach { max-width: none; box-shadow: none; }
/* T275: every layout's parts (the wide table has no .ptpiles: its library slot, whose dark ::before would cover a glow on the slot itself, and the command zone sticking out of it), a pulse that starts lit */
body.tight.coachpt-hand .pthand, body.tight.coachpt-dock .ptdockw > :last-child, body.tight.coachpt-dock .ptdock > :last-child, body.tight.coachpt-piles .ptpiles.me, body.tight.coachpt-piles .ptwide .ptlib.me::before, body.tight.coachpt-piles .ptwide .ptlib.me > .ptcmdout, body.tight.coachpt-steps .ptsteps .ptstep.now { animation: coachpt 1.1s ease-in-out infinite; border-radius: var(--r-box); outline: 2px dashed var(--tale); outline-offset: 4px; }
/* T328: the practice game's tour lights one part of the board per step (coach.js RZ.coachPoint(part, hold)) */
body.tight.coachpt-library .ptlibback, body.tight.coachpt-library .ptwide .ptlib::before, body.tight.coachpt-hands .pthand, body.tight.coachpt-hands .ptohand, body.tight.coachpt-field .ptmat1, body.tight.coachpt-field .ptfhalf, body.tight.coachpt-graves .ptgrave, body.tight.coachpt-phases .ptsteps, body.tight.coachpt-coach .coach.practice, body.tight.coachpt-menu .pttools, body.tight.coachpt-menu .ptphtop .ptquit, body.tight.coachpt-menu .ptphtop .ptmenub { animation: coachpt 1.1s ease-in-out infinite; border-radius: var(--r-box); }
@media (prefers-reduced-motion: reduce) { body.tight.coachpt-library .ptlibback, body.tight.coachpt-library .ptwide .ptlib::before, body.tight.coachpt-hands .pthand, body.tight.coachpt-hands .ptohand, body.tight.coachpt-field .ptmat1, body.tight.coachpt-field .ptfhalf, body.tight.coachpt-graves .ptgrave, body.tight.coachpt-phases .ptsteps, body.tight.coachpt-coach .coach.practice, body.tight.coachpt-menu .pttools, body.tight.coachpt-menu .ptphtop .ptquit, body.tight.coachpt-menu .ptphtop .ptmenub { animation: none; box-shadow: 0 0 0 3px var(--tale), 0 0 18px 2px color-mix(in srgb, var(--tale) 45%, transparent); } }
@media (max-width: 700px) { body.tight .coach { max-width: none; padding: var(--sp-4) var(--sp-5); } body.tight .coachface { width: var(--h-sm); height: var(--h-sm); } }
@media (prefers-reduced-motion: reduce) { body.tight.coachpt-hand .pthand, body.tight.coachpt-dock .ptdockw > :last-child, body.tight.coachpt-dock .ptdock > :last-child, body.tight.coachpt-piles .ptpiles.me, body.tight.coachpt-piles .ptwide .ptlib.me::before, body.tight.coachpt-piles .ptwide .ptlib.me > .ptcmdout, body.tight.coachpt-steps .ptsteps .ptstep.now { animation: none; box-shadow: 0 0 0 3px var(--tale), 0 0 18px 2px color-mix(in srgb, var(--tale) 45%, transparent); } }

/* T145 "Pick a deck" after the welcome (firstdeck.js; mockup XpZ7zjee7EcJvggjkgLjBD FirstDeck, FirstDeckPhone): three deck cards a row and
   the precon search below; on a phone a full-screen sheet with the search on top and the decks as compact rows */
body.tight .fdbox { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; gap: var(--sp-6); padding: var(--sp-7); border-color: var(--line); background: var(--card); }
body.tight .fdhead h2 { margin: 0; font-size: var(--fs-2xl); }
body.tight .fdface { flex: none; width: var(--h-lg); height: var(--h-lg); border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--panel); }
body.tight .fdgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .fdcard { display: flex; flex-direction: column; border-radius: var(--r-box); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
body.tight .fdart { position: relative; aspect-ratio: 3 / 1; }
body.tight .fdimg, body.tight .fdthumb { display: block; background: var(--bg) 50% 24% / 128% auto no-repeat; }
body.tight .fdimg { position: absolute; inset: 0; }
body.tight .fdpips { position: absolute; left: var(--sp-4); top: var(--sp-4); display: inline-flex; gap: var(--sp-2); }
body.tight .fdtext { padding: var(--sp-4) var(--sp-6) 0; }
body.tight .fdtext b { font-size: var(--fs-lg); }
body.tight .fdcard .fdbtns { padding: var(--sp-4) var(--sp-6) var(--sp-6); margin-top: auto; }
body.tight .fdbtns .btn { flex: none; display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .fdfind { border-top: 1px solid var(--line); padding-top: var(--sp-5); }
body.tight .fdlabel { font-size: var(--fs-md); }
body.tight .fdq { position: relative; max-width: 520px; }
body.tight .fdq .uico { position: absolute; left: var(--sp-5); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
body.tight .fdq input { width: 100%; box-sizing: border-box; min-height: var(--h-md); padding-left: calc(var(--sp-8) + var(--sp-3)); }
body.tight .fdfoundgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .fdfound { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4); border-radius: var(--r-box); background: var(--panel); border: 1px solid var(--line); }
body.tight .fdthumb { flex: none; width: 72px; aspect-ratio: 72 / 52; border-radius: var(--r-ctl); }
body.tight .fdcmd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .fdbefore { display: inline-flex; align-items: center; gap: var(--sp-2); align-self: flex-start; }   /* owner 2026-10-25: Played before */
@media (max-width: 900px) { body.tight .fdgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.tight .fdfoundgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  body.tight .fdbox { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; border: 0; padding: var(--sp-6); gap: var(--sp-5); }
  body.tight .fdhead h2 { font-size: var(--fs-xl); }
  body.tight .fdface { width: 40px; height: 40px; }
  body.tight .fdhead { order: 0; } body.tight .fdfind { order: 1; border-top: 0; padding-top: 0; } body.tight .fdgrid { order: 2; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  body.tight .fdlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.tight .fdq { max-width: none; }
  body.tight .fdcard { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--sp-4) var(--sp-5); padding: var(--sp-4); }
  body.tight .fdart { aspect-ratio: 80 / 56; border-radius: var(--r-ctl); overflow: hidden; }
  body.tight .fdpips { display: none; }
  body.tight .fdtext { padding: 0; align-self: center; }
  body.tight .fdcard .fdbtns { grid-column: 1 / -1; padding: 0; }
  body.tight .fdfound { flex-wrap: wrap; }
}

/* T222 (owner 2026-10-25): My decks, the actions and the filters stay in view while the list scrolls (above phone width, as every .subbar);
   T224 (owner 2026-10-25): all aligned to the left */
body.tight .dkpage .dkstick { display: flex; flex-direction: column; gap: var(--sp-6); }
body.tight .dkpage .dkstick .xband { justify-content: flex-start; }
body.tight .dkpage .dkstick .dktop { justify-content: flex-start; }
body.tight .dkpage .dkstick .dkfilters { margin-left: 0; justify-content: flex-start; }
@media (min-width: 701px) {
  body.tight .dkpage .dkstick { position: sticky; top: calc(-1 * var(--sp-6)); z-index: 8; margin-top: calc(-1 * var(--sp-6)); padding-bottom: var(--sp-4); background: var(--bg); }
  body.tight .dkpage .dkstick::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: var(--sp-4); background: linear-gradient(var(--bg), transparent); pointer-events: none; }
  body.tight .dkpage .dkstick .xband { margin-top: 0; }
}
@media (max-width: 700px) {
  body.tight .dkpage .dkstick { gap: var(--sp-4); }
}

/* T225 (owner 2026-10-25): the deck view's name is the deck selector (as Build and Analyze), the pencil next to it renames; the card count beside it */
body.tight .subbar .dvinfo.dvhaspick { flex-direction: row; align-items: center; gap: var(--sp-4); max-height: none; }
body.tight .subbar .dvpickrow { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .subbar .dvpick { width: min(40vw, 24rem); }
body.tight .subbar .dvpick select { font-weight: var(--fw-title); }
@media (max-width: 700px) {
  body.tight .subbar .dvinfo.dvhaspick { flex-wrap: wrap; }
  body.tight .subbar .dvpickrow { flex: 1 1 100%; }
  body.tight .subbar .dvpick { flex: 1 1 auto; width: auto; }
}
/* T226 (owner 2026-10-25): Set up, Tinker and Share follow the deck selector inside .dvinfo, the card count last */
body.tight .subbar .dvinfo.dvhaspick { flex-wrap: wrap; }
body.tight .subbar .dvinfo .dvacts { margin-left: 0; order: 0; }

/* T220 (owner 2026-10-25, mockup LY72XDm7V8dqr8xEq6pZEg): one Settings panel on Suggest, the deck view and Analyze; "Tamiyo reads this" beside
   the fields, under them on a phone. On the deck view and Analyze it is a box under the bar */
body.tight .fpbody { display: flex; gap: var(--sp-6); align-items: flex-start; }
body.tight .fpmain { flex: 1 1 auto; min-width: 0; gap: var(--sp-6); }
body.tight .fpreads { flex: 0 0 15rem; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .setpanel { padding: 0; overflow: hidden; }
body.tight .setpanel > .fpanel { border-bottom: 0; }
body.tight .setbtn { min-height: var(--h-sm); padding: 0 var(--sp-6); border-radius: var(--r-ctl); border: 1px solid transparent; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: var(--sp-4); white-space: nowrap; flex: 0 0 auto; }
body.tight .setbtn .count { min-width: 1.5em; padding: 0 var(--sp-2); border-radius: 999px; background: var(--accent); color: var(--onAccent); font-size: var(--fs-xs); font-weight: 700; display: inline-flex; justify-content: center; }
body.tight .setbtn[aria-expanded="true"] { background: var(--accent); color: var(--onAccent); }
body.tight .setbtn[aria-expanded="true"] .count { background: var(--onAccent); color: var(--accent); }
@media (max-width: 700px) {
  body.tight .fpbody { flex-direction: column; }
  body.tight .fpreads { flex: none; align-self: stretch; }
}

/* T145 My Tale › Apprenticeship › Magic, as you play (apprentice.js magicPart; mockup XpZ7zjee7EcJvggjkgLjBD round 2 Tale) and the
   shelf question after a first game (firstdeck.js RZ.shelfCard) */
body.tight .lrn { padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line); }
body.tight .lrnh { margin: 0; font-size: var(--fs-lg); }
body.tight .lrnsw { width: auto; }
body.tight .lrnladder { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .lrnstage { display: inline-flex; align-items: center; min-height: var(--h-xs); padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--text2); }
body.tight .lrnstage.now { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
body.tight .lrnstage.later { border-style: dashed; color: var(--muted); }
body.tight .lrngrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }   /* T145: an opened lesson does not stretch its neighbour */
body.tight .lrnrow { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--panel); }
body.tight .lrnrow.col { flex-direction: column; align-items: stretch; }
body.tight .lrnline { width: 100%; }
body.tight .lrnmain { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
body.tight .lrntick { flex: none; display: inline-grid; place-items: center; width: var(--sp-7); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); color: var(--onAccent); }
body.tight .lrntick.on { border-color: var(--ok); background: var(--ok); }
body.tight .lrntext { padding-left: calc(var(--sp-7) + var(--sp-5)); color: var(--text2); }
body.tight .shelfbox { width: min(460px, calc(100% - 32px)); margin: auto; padding: var(--sp-4); background: var(--card); }
body.tight .shelfbox > .coach { max-width: none; box-shadow: none; border: 0; }
@media (max-width: 700px) { body.tight .lrngrid { grid-template-columns: minmax(0, 1fr); } }
/* T145 round 3: the apprenticeship in five parts (apprentice.js PARTS; mockup XpZ7zjee7EcJvggjkgLjBD ApprNew, PartOpens, ApprAll) */
body.tight .partgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .partcard { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--panel); }
body.tight .partcard.now { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 6%, var(--panel)); }
body.tight .partcard.grey { background: transparent; color: var(--muted); }
body.tight .partcard.grey .apprtask { opacity: .5; }
body.tight .partmoon { display: inline-flex; color: var(--gold); }
body.tight .partcard.grey .partmoon { color: var(--muted); }
body.tight .partstate.done { color: var(--ok); }
body.tight .partstate.now { color: var(--gold); }
body.tight .partlore { color: var(--text2); font-style: italic; }
body.tight .partlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); color: var(--text2); }
body.tight .navlater { position: relative; opacity: .5; }
body.tight .navlatermoon { position: absolute; top: var(--sp-2); right: var(--sp-2); display: inline-flex; opacity: .8; pointer-events: none; }
body.tight .navhamit.navlater { opacity: .6; }
@media (max-width: 700px) { body.tight .partgrid { grid-template-columns: minmax(0, 1fr); } }
body.tight .partcard .apprgrid { grid-template-columns: minmax(0, 1fr); }
body.tight .fdface.big { width: calc(var(--h-lg) * 2); height: calc(var(--h-lg) * 2); align-self: center; }   /* young Tamiyo before the practice game (T145) */
/* T145 (owner 2026-10-25): a basic word in Tamiyo's texts, underlined, with what it means in its tooltip (lessons.js RZ.glossText) */
body.tight .gloss { text-decoration: underline dotted color-mix(in srgb, var(--tale) 70%, currentColor); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
body.tight .gloss:focus-visible { outline: 2px solid var(--tale); outline-offset: 1px; border-radius: var(--r-tag); }
/* T145 (owner 2026-10-25): Tamiyo speaking in the practice game: a sentence, so it wraps, in her colour */
body.tight .ptbubble.say { white-space: normal; max-width: calc(var(--h-lg) * 5); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-box); border-color: var(--tale); background: color-mix(in srgb, var(--tale) 14%, var(--panel)); font-style: italic; line-height: 1.35; }
body.tight .coachsay { font-style: italic; color: var(--text2); }
/* T145 (owner 2026-10-25): Tamiyo's card can be dragged like the game log; its grip sits at the top right (coach.js float) */
body.tight .coach.coachdrag { position: relative; padding-right: var(--sp-8); }
body.tight .coach.coachfloat { position: fixed; z-index: 60; margin: 0; }
/* T282: in the side dock Tamiyo's card gives way before the question does (the question's second Attack button and No attack were
   scrolled out of a short screen's prompt): the card shrinks first and scrolls, the prompt keeps its height */
body.tight .ptdockw > .coach:not(.coachfloat) { flex: 0 12 auto; min-height: var(--h-lg); overflow-y: auto; scrollbar-width: thin; }
body.tight .coachgrip { position: absolute; top: var(--sp-3); right: var(--sp-3); display: inline-grid; place-items: center; width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-tag); color: var(--muted); cursor: grab; user-select: none; touch-action: none; }
body.tight .coachgrip:hover { color: var(--text); background: color-mix(in srgb, var(--tale) 12%, transparent); }
body.tight .coachgrip:active { cursor: grabbing; }
/* T145 (owner 2026-10-25): Pick a deck can be closed: a cross in its top-right corner */
body.tight .fdbox { position: relative; }
body.tight .fdclose { position: absolute; top: var(--sp-5); right: var(--sp-5); }
/* T286: the X of Tamiyo's step pop-ups (core.js RZ.layerX) */
body.tight .box:has(> .layerx) { position: relative; }
body.tight .layerx { position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2; }
/* T238 (owner 2026-10-25, refined): a closet not reached yet stays folded, Tamiyo's barrier over its rail; the plate (its chapters) and the
   knob stay above it and readable. When the one above is written the seal breaks once, in view, and the closet opens (core.js
   archSealWatch; the keyframes are in style.css) */
body.tight .archseal { position: absolute; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: var(--sp-3); pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--tale) 34%, transparent), transparent 75%), repeating-linear-gradient(115deg, color-mix(in srgb, var(--tale) 14%, transparent) 0 2px, transparent 2px 12px), color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(1.5px) saturate(.6); -webkit-backdrop-filter: blur(1.5px) saturate(.6); box-shadow: inset 0 0 var(--sp-6) color-mix(in srgb, var(--tale) 45%, transparent); animation: archveil 6s ease-in-out infinite; }
body.tight .archcl:has(.archseal) .archrail { z-index: 3; }
body.tight .archcl:has(.archseal) .archtag { background: color-mix(in srgb, var(--card) 88%, transparent); border-radius: var(--r-tag); }
body.tight .archsigil { display: inline-grid; place-items: center; width: var(--h-xs); height: var(--h-xs); border-radius: 50%; color: var(--tale); background: color-mix(in srgb, var(--tale) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--tale) 65%, transparent); box-shadow: 0 0 var(--sp-5) color-mix(in srgb, var(--tale) 45%, transparent); animation: archsigil 4s ease-in-out infinite; }
body.tight .archsealt { color: var(--tale); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
body.tight .archrail.locked { cursor: not-allowed; }
body.tight .archseal.opening { animation: archbreak 2.1s ease-in forwards; }
body.tight .archseal.opening .archsigil { animation: archsigilopen 1.4s ease-in forwards; }
body.tight .archspark { position: absolute; left: var(--x); top: 50%; width: var(--sp-2); height: var(--sp-2); border-radius: 50%; background: color-mix(in srgb, var(--tale) 80%, white); opacity: 0; animation: archspark 1.4s ease-out var(--d) forwards; }
body.tight .archspark.glint { background: white; box-shadow: 0 0 var(--sp-3) var(--tale); }
@media (prefers-reduced-motion: reduce) { body.tight .archseal, body.tight .archsigil { animation: none; } }

/* T184 (owner 2026-10-25): Card details > Locks, a padlock button on each row; muted when open, accent when locked */
body.tight .dllockbtn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-left: var(--sp-2); padding: var(--sp-1); border: 0; border-radius: var(--r-tag); background: none; color: var(--muted); cursor: pointer; }
body.tight .dllockbtn:hover, body.tight .dllockbtn:focus-visible { color: var(--text); background: var(--panel); }
body.tight .dllockbtn.on { color: var(--accent); }
/* T230 (owner 2026-10-25): printing arrows either side of the printing button in card details */
body.tight .cdprintrow { gap: var(--sp-2); align-items: center; flex-wrap: nowrap; }
/* T145 (owner 2026-10-25): Tamiyo's spoken line is a speech bubble: rounder, with a tail pointing at her plate (above or below) */
body.tight .ptbubble.say { position: relative; overflow: visible; border-radius: calc(var(--r-box) * 2.2); border-width: 2px; box-shadow: 0 var(--sp-2) var(--sp-5) rgba(0, 0, 0, .35); }
body.tight .ptbubble.say::before, body.tight .ptbubble.say::after { content: ''; position: absolute; left: var(--sp-7); width: 0; height: 0; border-left: var(--sp-3) solid transparent; border-right: var(--sp-3) solid transparent; }
body.tight .dn .ptbubble.say::before { top: calc(var(--sp-4) * -1); border-bottom: var(--sp-4) solid var(--tale); }
body.tight .dn .ptbubble.say::after { top: calc(var(--sp-4) * -1 + 3px); border-bottom: var(--sp-4) solid color-mix(in srgb, var(--tale) 14%, var(--panel)); }
body.tight .up .ptbubble.say::before { bottom: calc(var(--sp-4) * -1); border-top: var(--sp-4) solid var(--tale); }
body.tight .up .ptbubble.say::after { bottom: calc(var(--sp-4) * -1 + 3px); border-top: var(--sp-4) solid color-mix(in srgb, var(--tale) 14%, var(--panel)); }
/* T145 (owner 2026-10-25): the apprenticeship step you are on, highlighted */
body.tight .apprtask.now { border-color: color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--gold) 10%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
body.tight .apprtask.now .apprtt::after { content: 'Now'; margin-left: var(--sp-4); padding: 0 var(--sp-3); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); vertical-align: middle; }
/* T145 (owner 2026-10-25): the first Adept game's end screen: Tamiyo's guide card and the part she talks about, lit up */
body.tight .ggcard { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-5) 0 0; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-box); border: 1px solid color-mix(in srgb, var(--tale) 55%, var(--line)); background: color-mix(in srgb, var(--tale) 9%, var(--card)); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
body.tight .gghl { outline: 2px solid color-mix(in srgb, var(--gold) 80%, transparent); outline-offset: var(--sp-2); border-radius: var(--r-box); box-shadow: 0 0 var(--sp-7) color-mix(in srgb, var(--gold) 30%, transparent); }
/* T279 Tamiyo's spoken line (practice game) stays at one spot by her, the tail on her: on the 2-player table just off her medallion's lower
   right shoulder (the upper one for a bottom seat), the tail leaning back to the medallion; in the column (tablet, phone) beside her
   avatar under her ribbon, the tail pointing left at the avatar. max-content: the medallion's narrow box no longer squeezes the text */
body.tight :is(.ptmedbub, .ptpbub).say > .ptbubble.say { flex-shrink: 0; width: max-content; max-width: min(calc(var(--h-lg) * 5), 46vw); translate: calc(var(--av) * .3 + 50%) calc(var(--av) * .42 + 50%); }
body.tight :is(.ptmedbub, .ptpbub).say.up > .ptbubble.say { translate: calc(var(--av) * .3 + 50%) calc(var(--av) * -.42 - 50%); }
body.tight .say > .ptbubble.say::before, body.tight .say > .ptbubble.say::after { left: var(--sp-5); border-left-width: 0; border-right-width: var(--sp-5); }
body.tight .pttbl.ptcol .ptname > .ptbubble.say { left: var(--sp-4); width: max-content; max-width: min(calc(var(--h-lg) * 5), calc(100vw - var(--av) - var(--sp-7) * 3)); }
body.tight .pttbl.ptcol .ptname > .ptbubble.say::before, body.tight .pttbl.ptcol .ptname > .ptbubble.say::after { left: auto; right: 100%; top: var(--sp-4); border-top: var(--sp-3) solid transparent; border-bottom: var(--sp-3) solid transparent; border-left: 0; border-right: var(--sp-4) solid var(--tale); }
body.tight .pttbl.ptcol .ptname > .ptbubble.say::after { right: calc(100% - 3px); border-right-color: color-mix(in srgb, var(--tale) 14%, var(--panel)); }
/* T230 (owner 2026-10-25): Card details > Printing, the set code in each row with arrows to step the printing */
body.tight .dlprint { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0; margin-left: var(--sp-2); }
body.tight .dlpset { min-width: 3.2em; text-align: center; font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); }
body.tight .dlpstep { display: inline-flex; align-items: center; justify-content: center; padding: var(--sp-1); border: 0; border-radius: var(--r-tag); background: none; color: var(--muted); cursor: pointer; }
body.tight .dlpstep:hover, body.tight .dlpstep:focus-visible { color: var(--text); background: var(--panel); }
body.tight .dlpstep:disabled { opacity: .5; cursor: progress; }

/* ---------- T214 Matchmaking and T148 Ranked (ranked.js), owner 2026-10-25 ---------- */
body.tight .qmcard { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); }
body.tight .qmcard.on { border-color: var(--accent); }
body.tight .qmcard.found { border-color: var(--ok); }
body.tight .qmhead b { font-size: var(--fs-md); }
body.tight .qmcard .pfcheck { min-height: var(--h-xs); font-size: var(--fs-sm); }
body.tight .qmstrip { min-height: var(--h-sm); }
body.tight .qmtime { font-variant-numeric: tabular-nums; }
body.tight .qmdot { width: var(--sp-4); height: var(--sp-4); border-radius: var(--r-pill); background: var(--accent); flex: 0 0 auto; animation: thinkpulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .qmdot { animation: none; } }
body.tight .qmrk { display: inline-flex; align-items: center; gap: var(--sp-2); align-self: flex-start; }
body.tight .rkflags { overflow-x: auto; } /* T242: Admin > Growth, possible win trading: the table scrolls on a phone */
body.tight .qmwarn { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
body.tight .qmwarn > span:first-of-type { flex: 1 1 auto; min-width: 0; }
body.tight .tag.fairno { color: var(--muted); }
body.tight .rkgrid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--sp-6); align-items: start; margin-top: var(--sp-6); }
body.tight .rkline { min-height: var(--h-sm); }
body.tight .rklist { list-style: none; margin: 0; padding: var(--sp-2) 0; display: flex; flex-direction: column; }
body.tight .rkrow { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) 64px 56px 108px; align-items: center; gap: var(--sp-5); min-height: var(--h-md); padding: var(--sp-2) var(--sp-5); border-top: 1px solid var(--line); }
body.tight .rkrow:first-child { border-top: 0; }
body.tight .rkrow.rkhead { min-height: var(--h-xs); font-size: var(--fs-xs); color: var(--muted); }
body.tight .rkrow.rkhead > span { text-align: right; }
body.tight .rkrow.rkhead > span:last-child { text-align: left; }
body.tight .rkrow.me { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
body.tight .rkscore { font-weight: var(--fw-title); font-size: var(--fs-md); font-variant-numeric: tabular-nums; text-align: right; }
body.tight .rkrec { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
body.tight .rkbars { display: inline-flex; gap: var(--sp-1); align-items: center; }
body.tight .rkbars i { display: block; width: var(--sp-3); height: var(--sp-6); border-radius: var(--r-tag); background: var(--line); }
body.tight .rkbars i.w { background: var(--ok); }
body.tight .rkbars i.l { background: var(--bad); }
body.tight .rkpodium { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: end; }   /* T934: a column per place-holder (a shared place adds one) */
body.tight .rkpod { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); min-width: 0; text-align: center; }
body.tight .rkpod.gold { border-color: var(--gold); padding-top: var(--sp-7); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card)); }
body.tight .rkpod.me { box-shadow: inset 0 0 0 1px var(--accent); }
body.tight .rkpodrank { font-size: var(--fs-xs); font-weight: var(--fw-title); border-radius: var(--r-pill); min-width: var(--h-xs); height: var(--h-xs); line-height: var(--h-xs); color: var(--onAccent); background: var(--muted); }
body.tight .rkpod.gold .rkpodrank { background: var(--gold); }
body.tight .rkpod.silver .rkpodrank { background: color-mix(in srgb, var(--text2) 80%, #8fa6bf); }
body.tight .rkpod.bronze .rkpodrank { background: color-mix(in srgb, var(--warn) 55%, var(--bad)); }
body.tight .rkpodname { max-width: 100%; font-size: var(--fs-md); }
body.tight .rkpodscore { font-size: var(--fs-xl); font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
body.tight .rkprov > summary { padding: var(--sp-4) var(--sp-5); }
@media (max-width: 1000px) { body.tight .rkgrid { grid-template-columns: minmax(0, 1fr); } body.tight .rkside { order: 0; } }
/* T430 (owner 2026-11-04): Your standing is one line (trophy, the line, Play ranked); Find a player a plain field; a tablet puts both on one row */
body.tight .rkslim { display: flex; align-items: center; gap: var(--sp-5); min-height: 56px; padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-5); }
body.tight .rkslim > .btn { flex: none; }
body.tight .rkslimic { flex: none; display: inline-flex; color: var(--gold); }
body.tight .rkslimline { font-size: var(--fs-md); line-height: 1.3; }
body.tight .rkgrid > .rkside { min-width: 0; }
@media (min-width: 701px) and (max-width: 1000px) {
  body.tight .rkgrid > .rkside { flex-direction: row; align-items: flex-start; }
  body.tight .rkside > .rkme { flex: 3 1 0; min-width: 0; }
  body.tight .rkside > .rkfind { flex: 2 1 0; min-width: 0; align-self: center; }
}
/* the phone's board tabs: five short names over the whole width, no sideways scroll */
body.tight .dkswitch.lbfit { gap: var(--sp-2); justify-content: space-between; overflow-x: auto; scrollbar-width: none; }   /* 15 px to spare at 320 px; a bigger font still scrolls rather than pushing the page */
body.tight .dkswitch.lbfit > button { flex: none; white-space: nowrap; padding: 0 var(--sp-2); }
@media (max-width: 700px) {
  body.tight .rkrow { grid-template-columns: 24px auto minmax(0, 1fr) 52px 48px; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); }
  body.tight .rkrow.rkhead > :last-child { display: none; }
  body.tight .rkrow .rkbars { display: none; }
  body.tight .rkpodium { gap: var(--sp-3); }
  body.tight .rkpod { padding: var(--sp-4) var(--sp-2); }
  body.tight .rkpodscore { font-size: var(--fs-lg); }
}
/* T253 (2026-10-25): the deck's History panel (deck view, Tinker > History): one row per change, newest first; added cards green, removed
   red, moves neutral; Revert (an undo icon) at the row's start, list max 720 px (T463) */
/* T496 (owner 2026-11-04): the list uses the panel's whole width as a grid (Revert | when | what), no scroll box of its own (Show more instead) */
body.tight .dvright > .histpanel { max-height: none; overflow: visible; margin: 0 0 var(--sp-5); }
body.tight .histlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto max-content minmax(0, 1fr); column-gap: var(--sp-5); }
body.tight .histrow { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: var(--h-sm); padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
body.tight .histrow:first-child { border-top: 0; }
body.tight .histwhen { white-space: nowrap; }
body.tight .histcs { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .histcs > * + *::before { content: ', '; color: var(--muted); }
body.tight .histmore { align-self: flex-start; }
body.tight .hmotn { margin-left: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-label); opacity: .75; }
@media (max-width: 700px) {   /* phones: Revert and when on the first line, the change under them */
  body.tight .histlist { grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
  body.tight .histrow { row-gap: var(--sp-2); }
  body.tight .histcs { grid-column: 1 / -1; white-space: normal; }
}
body.tight .histc { font-size: var(--fs-sm); }
body.tight .histc.add { color: var(--ok); }
body.tight .histc.rem { color: var(--bad); }
body.tight .histc.mv { color: var(--text2); }
/* #293 (mockup Ugvwv11ZD9CYLW9K14qFJq): Tinker > Printings, the History panel's look: Your copies | Cheapest tabs, one row per card
   (tick | name | from -> to, foil, price), Cancel and Change N printings at the end; a phone puts the change under the name */
body.tight .dvright > .prpanel { max-height: none; overflow: visible; margin: 0 0 var(--sp-5); }
body.tight .prpanel > .prtabs { margin-bottom: 0; }
body.tight .prhead { gap: var(--sp-3); align-items: center; }
body.tight .prlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto minmax(120px, 260px) minmax(0, 1fr); column-gap: var(--sp-5); }
body.tight .prrow { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: var(--h-sm); padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
body.tight .prrow:first-child { border-top: 0; }
body.tight .prrow.off .prname, body.tight .prrow.off .prchange { opacity: .5; }
body.tight .prcb { width: var(--sp-6); height: var(--sp-6); margin: 0; accent-color: var(--accent); }
body.tight .prname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .prchange { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); min-width: 0; }
body.tight .prpanel select.prpick { width: auto; height: auto; min-height: var(--h-xs); padding-top: var(--sp-1); padding-bottom: var(--sp-1); padding-left: var(--sp-3); font-size: var(--fs-sm); }
body.tight .prfoil { color: var(--gold); font-weight: var(--fw-label); white-space: nowrap; }
body.tight .preur { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tight .prbtns { justify-content: flex-end; gap: var(--sp-3); }
@media (max-width: 700px) {
  body.tight .prlist { grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
  body.tight .prrow { row-gap: var(--sp-1); }
  body.tight .prname { font-weight: var(--fw-label); }
  body.tight .prchange { grid-column: 2; }
  body.tight .preur { margin-left: 0; }
}
/* ticket #295 (owner 2026-11-15, mockup CdJYUFyRM32YfsthuhMY93 v2): History in two tabs (RZ.viewTabs, the Looks style), and the Snapshots tab:
   one row per snapshot (date | kind | count and the difference with now | Compare, Copy, Restore); a phone puts the buttons on a line of their own */
body.tight .histpanel > .histtabs { margin-bottom: 0; }
body.tight .snapbar, body.tight .snapname { justify-content: flex-end; gap: var(--sp-3); }
body.tight .snapname > input { max-width: 320px; }
body.tight .snaplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) auto; column-gap: var(--sp-5); }
body.tight .snaprow { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: var(--h-sm); padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
body.tight .snaprow:first-child { border-top: 0; }
body.tight .snapday { white-space: nowrap; }
body.tight .snaplab { justify-self: start; min-width: 72px; text-align: center; padding: 2px var(--sp-3); border-radius: var(--r-ctl); font-size: var(--fs-sm); font-weight: var(--fw-label); white-space: nowrap;
  background: color-mix(in srgb, var(--text2) 14%, transparent); color: var(--text2); }
body.tight .snaplab.k-locked { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
body.tight .snaplab.k-saved { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
body.tight .snaplab.k-complete { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
body.tight .snapmeta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .snapmeta .histc + .histc { margin-left: var(--sp-2); }
body.tight .snapacts { display: flex; gap: var(--sp-2); justify-content: flex-end; align-items: center; }
@media (max-width: 700px) {
  body.tight .snaplist { grid-template-columns: max-content max-content minmax(0, 1fr); row-gap: 0; }
  body.tight .snaprow { row-gap: var(--sp-2); }
  body.tight .snapacts { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  body.tight .snapname > input { max-width: none; }
}
/* T261/T264: the skip toggle on every stack trigger (icon button, pressed = filled), and the Skipped triggers list in Board settings */
body.tight .ptskipc { align-self: flex-start; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--h-sm); height: var(--h-sm); padding: 0; border-radius: var(--r-ctl); border: 1px solid var(--line); background: transparent; color: var(--text2); position: relative; }
body.tight .ptstkcap > .ptskipc { flex: none; margin-left: auto; width: var(--sp-7); height: var(--sp-7); background: color-mix(in srgb, var(--inset) 92%, transparent); }   /* T843: in the strip's caption, at its end */
body.tight .ptskipc.on { border-color: var(--accent); background: var(--accent); color: var(--onAccent); }   /* ticket #340: a state comes after the placements, so a placement's ground never hides it */
@media (pointer: coarse) { body.tight .ptskipc::after { content: ''; position: absolute; inset: -4px; } }   /* a 44 px hit area */
body.tight .ptskips { gap: var(--sp-3); }
body.tight .ptskipr { align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
body.tight .ptskipr:last-child { border-bottom: 0; }
/* T265 (2026-10-25): the X of a spell on the stack, a badge on its card's upper right (and on the smaller rows below it) */
body.tight .ptstackx { flex: none; padding: 1px var(--sp-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--inset) 92%, transparent); color: var(--gold); font-weight: 700; white-space: nowrap; }   /* T265, ticket #321: the X of a spell, in the strip's caption (it sat on the card's mana cost) */

/* T292: the Random tile that leads each look picker (core.js RZ.randomTile): the shuffle mark where the picture would be */
body.tight .rndpick { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
body.tight .rndpick.on { color: var(--accent); }
body.tight .arpick.rndpick:not(.dicetile) > .uico { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: var(--card2, var(--card)); }
body.tight .arpick.pmpick.rndpick > .uico { aspect-ratio: 2.7 / 1; }
body.tight .dicetile.rndpick > .uico { display: flex; align-items: center; justify-content: center; width: 48px; aspect-ratio: 1; }
body.tight .cbpick.rndpick { background: var(--card); border-color: var(--line); }
body.tight .cbpick.rndpick.on { border-color: var(--accent); }
body.tight .cbpick.rndpick .arname { display: none; }   /* a card back tile is 50 px wide: the mark only, the name is its label and tip */

/* T296: how many you own, on a card of the Cards tab of My collection (cards.js ownBadge): a pill on the picture's upper right, inline in the list */
body.tight .ecimg { position: relative; }
body.tight .ecown { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-xs); padding: 0 var(--sp-3); box-sizing: border-box; border-radius: var(--r-pill);
  background: rgba(9, 13, 18, .88); color: #fff; font-size: var(--fs-sm); font-weight: 700; line-height: 1; white-space: nowrap; vertical-align: middle; }
body.tight .ecimg .ecown { position: absolute; z-index: 2; top: var(--sp-3); right: var(--sp-3); pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
body.tight .ecfoil { color: var(--gold); font-weight: 600; }
body.tight .colltabs { align-self: stretch; }
body.tight .colltop { gap: var(--sp-4); }   /* T430: the title, then the tabs across the page */
body.tight .ecnline { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
body.tight .ecnline .ecown { flex: none; }
/* T785 (owner 2026-11-15, mockup 4YT2jZmqnT99eA5YxnJFXw): the Overview's six tiles (six, three or two a row: no tile alone), tiles and colour or
   rarity rows that open the Cards tab, and Most valuable (six cards; a sideways row on a phone) */
body.tight .colltiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 1100px) { body.tight .colltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { body.tight .colltiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.tight .colltile { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; text-align: left; font: inherit; color: inherit; }
body.tight button.colltile.link { cursor: pointer; }
body.tight button.colltile.link:hover { border-color: var(--accent); }
body.tight .colltile .icolbl { width: 100%; }
body.tight .colltchev { margin-left: auto; color: var(--accent); font-size: var(--fs-lg, 18px); line-height: 1; }
body.tight .collfs { color: var(--gold); }
body.tight .colltile.foil { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
body.tight .collbarrow { width: 100%; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-sm, 6px); }
body.tight button.collbarrow:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .colltopv { gap: var(--sp-5); min-width: 0; }
body.tight .colltvrow { display: grid; grid-template-columns: repeat(6, minmax(0, 140px)); gap: var(--sp-6); }
body.tight .colltv { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
body.tight .colltv img, body.tight .colltvph { width: 100%; aspect-ratio: 488 / 680; border-radius: 4.75% / 3.5%; display: block; background: var(--card); }
body.tight .colltv .ecfoilh { width: 100%; }
body.tight .colltvn { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .colltvv b { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { body.tight .colltvrow { grid-template-columns: repeat(5, minmax(0, 140px)); } body.tight .colltv:nth-child(n+6) { display: none; } }
@media (max-width: 700px) { body.tight .colltvrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--sp-6)); padding-right: var(--sp-6); }
  body.tight .colltv { flex: 0 0 100px; scroll-snap-align: start; } body.tight .colltv:nth-child(n+6) { display: flex; } }

/* T309 (owner 2026-10-26): Change commander picks the partner too; the box scrolls as a whole (its lists keep their height), the picked cards as small pictures */
body.tight .ccbox > * { flex-shrink: 0; }
body.tight .ccpartner .cclist { max-height: 30vh; }
body.tight .ccpics .selcard { width: min(140px, 40%); }

/* T311 (owner 2026-10-26): the deck view's rename pencil is a bar button like the lock (.deckpad), and they keep their size on phones */
body.tight .subbar .dvpickrow .tabbtn.deckpad { flex: 0 0 auto; }

/* T312 (owner 2026-10-26): Delete beside the lock in the danger style; My decks' confirmation opens under the bar */
body.tight .subbar .tabbtn.dvdelbtn { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 53%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
body.tight .subbar .tabbtn.dvdelbtn:hover, body.tight .subbar .tabbtn.dvdelbtn.on { color: #fff; background: var(--bad); border-color: var(--bad); }
body.tight .dvdelwrap { margin: var(--sp-4) 0; max-width: 560px; }

/* T306 Deck compare (compare.js, mockup 5YQFmg5mbEGcQmkWRJjAMU): replaces the deck view's body until closed. Side A in the accent, side B in
   the second colour, In both muted. The three lists are the deck list itself; on wide screens they stand side by side (text views),
   on a phone the three counts are tabs and one list shows at a time */
body.tight .cmppanel { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-5) var(--gutter) var(--sp-8); min-width: 0; }
body.tight .cmpbox { gap: var(--sp-5); }
body.tight .cmptitle { align-items: center; gap: var(--sp-4); }
body.tight .cmppick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.7fr) auto; gap: var(--sp-4); align-items: start; }
body.tight .cmpside { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); min-width: 0; }
body.tight .cmpswap { width: var(--h-md); height: var(--h-md); }
body.tight .tag.cmpa { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 700; }
body.tight .tag.cmpb { background: color-mix(in srgb, var(--sec) 18%, transparent); color: var(--sec); font-weight: 700; align-self: center; margin-left: var(--sp-4); }
body.tight .cmpbfield { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
body.tight .cmpbinput { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--inset); min-width: 0; }
body.tight .cmpbinput:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
body.tight .cmpbinput.err { border-color: var(--bad); }
body.tight .cmpbinput textarea { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-md); line-height: 1.4; resize: none;
  padding: var(--sp-5); height: var(--h-md); box-sizing: border-box; outline: none; overflow: hidden; white-space: nowrap; }
body.tight .cmpbinput textarea.multi { height: auto; overflow: auto; white-space: pre; }
body.tight .cmpbinput select { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-sm); padding: 0 var(--sp-4); max-width: 46%; min-width: 0; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
body.tight .cmpbinput select option, body.tight .cmpbinput select optgroup { background: var(--card); color: var(--text); }
body.tight .cmphint { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-xs); }
body.tight .cmpgo { min-width: 120px; justify-content: center; }
body.tight .cmpempty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); margin: var(--sp-8) auto; max-width: 420px; text-align: center; }
body.tight .cmprecent { justify-content: center; gap: var(--sp-4); }
body.tight .cmpsumwrap { position: sticky; top: var(--barh); z-index: 4; background: var(--bg); display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
body.tight .cmpsums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
body.tight .cmpsum { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-md); padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; min-width: 0; font: inherit; }
body.tight .cmpsum .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
body.tight .cmpsum .short { display: none; }
body.tight .cmpsum .n { margin-left: auto; font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
body.tight .cmppanel i.k { display: inline-block; width: 10px; aspect-ratio: 1; border-radius: var(--r-pill); flex: none; }
body.tight .cmppanel i.k.a, body.tight .cmpobar .a { background: var(--accent); }
body.tight .cmppanel i.k.both, body.tight .cmpobar .both { background: var(--muted); }
body.tight .cmppanel i.k.b, body.tight .cmpobar .b { background: var(--sec); }
body.tight .cmpoverlap { align-items: center; gap: var(--sp-5); }
body.tight .cmpobar { flex: 1 1 260px; display: flex; gap: var(--sp-1); height: var(--sp-3); border-radius: var(--r-pill); overflow: hidden; background: var(--track); min-width: 0; }
body.tight .cmpobar i { display: block; height: 100%; }
body.tight .cmptools { align-items: center; gap: var(--sp-4) var(--sp-5); }
body.tight .cmptools > .col { flex: 1 1 auto; min-width: 0; }
body.tight .cmpfold { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; background: transparent; color: var(--text2); font: inherit; font-size: var(--fs-sm); font-weight: 600; }
body.tight .cmpfold .chev { display: inline-block; transition: transform .15s; }
body.tight .cmpfold[aria-expanded="true"] .chev { transform: rotate(90deg); }
body.tight .cmpdiffs { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(70px, auto)); gap: var(--sp-2) var(--sp-6); align-items: center; padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); font-size: var(--fs-sm); max-width: 520px; }
body.tight .cmpdiffs .h { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
body.tight .cmpdiffs .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
body.tight .cmpres { display: flex; flex-direction: column; gap: var(--sp-8); min-width: 0; }
body.tight .cmpsect { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; scroll-margin-top: 220px; }
body.tight .cmpsecthead { align-items: center; gap: var(--sp-4); min-height: var(--h-sm); }
body.tight .cmpsecthead h3 { margin: 0; display: flex; align-items: center; gap: var(--sp-4); min-width: 0; font-size: var(--fs-lg); }
body.tight .cmpqd { flex: none; font-size: var(--fs-xs); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 1101px) {
  body.tight .cmpres.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
  body.tight .cmpres.cols .dlcols { column-width: auto; column-count: 1; }
}
@media (max-width: 1100px) {
  body.tight .cmppick { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); }
  body.tight .cmppick .cmpgo { grid-column: 3; justify-self: end; }
}
@media (max-width: 700px) {
  body.tight .cmppanel { padding: var(--sp-5) var(--gutter) var(--sp-8); }
  body.tight .cmppick { grid-template-columns: minmax(0, 1fr) auto; }
  body.tight .cmppick .cmpside { grid-column: 1; }
  body.tight .cmppick .cmpswap { grid-column: 2; grid-row: 1; }
  body.tight .cmppick .cmpbfield, body.tight .cmppick .cmpgo { grid-column: 1 / -1; justify-self: stretch; }
  body.tight .cmpbinput { flex-wrap: wrap; }
  body.tight .cmpbinput select { max-width: none; flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); min-height: var(--h-md); border-radius: 0 0 var(--r-ctl) var(--r-ctl); padding: 0 var(--sp-5); }
  body.tight .cmpsumwrap { top: 0; }
  body.tight .cmpsums { gap: var(--sp-2); padding: var(--sp-1); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
  body.tight .cmpsum { flex-direction: column; justify-content: center; gap: 0; min-height: var(--h-md); padding: var(--sp-1) var(--sp-2); border: 0; background: transparent; border-radius: var(--r-tag); }
  body.tight .cmpsum i.k { display: none; }
  body.tight .cmpsum .long { display: none; }
  body.tight .cmpsum .short { display: inline; font-size: var(--fs-xs); color: var(--text2); }
  body.tight .cmpsum .n { margin: 0; }
  body.tight .cmpsum.on { background: var(--accent); }
  body.tight .cmpsum.on .n, body.tight .cmpsum.on .short { color: var(--onAccent); }
  body.tight .cmpres[data-tab="a"] .cmpsect:not([data-k="a"]), body.tight .cmpres[data-tab="both"] .cmpsect:not([data-k="both"]), body.tight .cmpres[data-tab="b"] .cmpsect:not([data-k="b"]) { display: none; }
  body.tight .cmpdiffs { max-width: none; }
}
body.tight .tag.cmpmb { flex: none; font-size: var(--fs-xs); }
body.tight .cmpside .tag, body.tight .cmpoverlap > .small { flex: none; white-space: nowrap; }

/* T345: players online, a quiet chip left of the Play pill (desktop and tablet); on phones it sits in the Play drawer's header */
body.tight .onlchip { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-4); color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.tight .onlchip .onldot { width: var(--sp-3); height: var(--sp-3); border-radius: var(--r-pill); background: var(--ok); flex: none; }
body.tight .onlchip.inhead { min-height: 0; margin-left: auto; padding: 0 var(--sp-3); }
body.tight.hdrtight header.top .onlchip { display: none; }
/* T353: the line for a table (Play drawer hub and the lobby) */
body.tight .plline { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
body.tight .plline .plnums { align-items: flex-end; }
body.tight .plline .plplace { font-size: var(--fs-2xl); line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
body.tight .plline .plplace.sm { font-size: var(--fs-xl); color: var(--text); }
body.tight .plline .pfbar { border-radius: var(--r-pill); }
body.tight .plline.held { border-color: var(--gold); }
/* T365/T698: Bot style, four styles with pips; the picked style's one line under them */
body.tight .pdlvls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
body.tight .pdlv { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-height: var(--h-md); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--text); font-size: var(--fs-sm); text-align: left; cursor: pointer; }
body.tight .pdlv:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
body.tight .pdlv.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
body.tight .pdpips { display: inline-flex; gap: var(--sp-1); }
body.tight .pdpips i { width: var(--sp-3); height: var(--sp-3); border-radius: var(--r-pill); background: var(--track); }
body.tight .pdpips i.f { background: var(--accent); }
/* T643: a table's Bot style as pips (playfriend.js levelSeg / levelPips): the level's name is the tooltip */
body.tight .pdlvseg button { display: inline-flex; align-items: center; justify-content: center; }
body.tight .pdlvseg button.on .pdpips i { background: color-mix(in srgb, var(--onAccent) 35%, transparent); }
body.tight .pdlvseg button.on .pdpips i.f { background: var(--onAccent); }
body.tight .pdlvro { display: inline-flex; align-items: center; min-height: var(--h-sm); cursor: help; }
body.tight .pdlvd { min-height: 2.6em; }
@media (max-width: 380px) { body.tight .pdlvls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.tight .pdring > .plringin { display: inline-flex; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); border-radius: var(--r-pill); background: var(--panel); font-size: var(--fs-sm); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
/* T355: area filter and sort inside each Backlog group; the header wraps on a phone */
body.tight .tdgrp { flex-wrap: wrap; }
body.tight .tdgrp .tdsecctl { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: var(--fw-text); }
body.tight .tdgrp .tdsecctl .tdsel { height: var(--h-xs); max-width: 150px; font-size: var(--fs-xs); }
@media (pointer: coarse) { body.tight .tdgrp .tdsecctl .tdsel { height: 40px; } }

/* T321 (owner 2026-10-26): the deck list's tools (View, Group, Sort, Bulk edit, Select, Card details) look like the deck view's sub-menu
   buttons (Tinker, Share): 36 px, 8 px corners, 13 px semibold, card fill and line border; Card details carries the menu chevron */
body.tight .dlbar .tabbtn { min-height: var(--h-sm); padding: 0 var(--sp-5); gap: var(--sp-3); border-radius: var(--r-ctl); font-size: var(--fs-sm); font-weight: 600; }
body.tight .dlbar .dlsel { gap: var(--sp-3); }
body.tight .dlbar .dlsel select { min-height: var(--h-sm); height: var(--h-sm); min-width: 140px; padding: 0 var(--sp-7) 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl);
  background-color: var(--card); color: var(--text2); font-size: var(--fs-sm); font-weight: 600; }
body.tight .dlbar .dlsel select:hover, body.tight .dlbar .tabbtn:not(.on):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
body.tight .dlbar .dlcdbtn .dvmchev { display: inline-flex; opacity: .7; }
@media (pointer: coarse) { body.tight .dlbar .dlsel select { min-height: var(--h-sm); height: 40px; } }
@media (max-width: 700px) { body.tight .dlbar .dlsel select { min-width: 0; } }

/* T316 (owner 2026-10-26): a divider between Compare's three sections (columns: a line between them; stacked: a line above each) */
body.tight .cmpsect + .cmpsect { border-top: 1px solid var(--line); padding-top: var(--sp-7); }
@media (min-width: 1101px) {
  body.tight .cmpres.cols .cmpsect + .cmpsect { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: var(--sp-7); }
}
@media (max-width: 700px) {
  body.tight .cmpsect + .cmpsect { border-top: 0; padding-top: 0; }
}

/* T358 (owner 2026-10-27): Analyze tabs whose part is made and up to date: an accent-to-green gradient edge with the check */
body.tight .subbar.anbar .tabbtn.andone { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--accent), var(--ok)) border-box; }
body.tight .subbar.anbar .tabbtn.andone.on { background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(120deg, var(--accent), var(--ok)) border-box; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
body.tight .antabs button.andone { box-shadow: inset 0 -2px 0 0 var(--ok); }

/* ticket #103: a public deck shows its commander card(s) on the hero art at once */
body.tight .excmdcards { position: absolute; left: var(--sp-6); bottom: calc(var(--h-xs) + var(--sp-5)); display: flex; gap: var(--sp-4); width: min(44%, 200px); z-index: 1; }
body.tight .excmdcards.two { width: min(70%, 320px); }
body.tight .excmdcard { flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: transparent; border-radius: var(--r-box); cursor: zoom-in; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
body.tight .excmdcard img { display: block; width: 100%; height: auto; border-radius: var(--r-box); position: static; object-fit: contain; }
@media (max-width: 700px) {
  body.tight .excmdcards { left: var(--sp-5); bottom: calc(var(--h-xs) + var(--sp-4)); width: min(34%, 120px); }
  body.tight .excmdcards.two { width: min(62%, 240px); }
}
/* ---------- play board polish (2026-10-28) ---------- */
/* T324: an open sheet (card details, the menu) lies over the board's corner tools, the combo panel and the big video, in full screen too
   (the tools sat at z-index 90 over the sheet's 65); an open table chat keeps its own place (the rule above at 5157) */
body.tight .ptwrap.ptt:has(> .ptsheet-bg) :is(.pttools, .ptcbpanel, .vvbig):not(:has(.tcpanel.sheet)) { z-index: 60; }
/* T324 round 2: the card details drawer (core.js drawerView, z-index 65) opened from the board lay under the tool bar (90), the hovered hand (90)
   and the inspector (95), in full screen too. On the board it lies over all of them; the pick sheets (120/121) stay under it, pop-ups (130+) over. */
body.tight:has(.ptwrap.ptt) .drawer-bg { z-index: 125; }
/* T333: a keyword in a card's rules text: underlined, its meaning in the floating card (RZ.popBind) on hover, focus or a tap */
body.tight .kwtip { text-decoration: underline dotted color-mix(in srgb, var(--accent) 70%, currentColor); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
body.tight .kwtip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-tag); }
/* T336 / T633: "Your turn" / "Ann's turn" is only a polite live region now (.sr, playtest.js turnNote); the board shows the turn on the
   buttons under Pass and the gold plate (T633 below) */
/* T337: a token's number beside its name on the tile ("Zombie Token" 2): never cut off by the name's ellipsis */
body.tight .ptnpno { flex: none; padding: 0 var(--sp-2); border-radius: var(--r-tag); background: var(--tgold2); color: var(--tink); font-size: var(--fs-xs); font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
/* T334: the monarch's crown (and the initiative's flag) on a 2-player table's medallion, at its upper right */
body.tight .ptmedcrowns { position: absolute; z-index: 37; display: flex; gap: var(--sp-2); pointer-events: auto; }
body.tight .ptmedcrowns.me { left: calc(50% + var(--av) / 2 - 16px); top: calc(100% - var(--peek) - 40px - var(--av)); }
body.tight .ptmedcrowns.opp { left: calc(50% + var(--av) / 2 - 16px); top: 18px; }
body.tight .pttbl.ptcol .ptmedcrowns { left: auto; right: -4px; top: -4px; }
body.tight .ptmedcrown { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--tline) 85%, #3a2a10); color: #1a130c; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5), 0 4px 10px rgba(0, 0, 0, .55); }
/* ticket #100: the watcher's panel is dark in every theme, so its buttons and lines use the board's light text (in the light theme the
   app's dark text made Cycle seat and Leave unreadable) */
body.tight .ptpwatch { --text: var(--ttext); --text2: color-mix(in srgb, var(--ttext) 80%, transparent); --muted: color-mix(in srgb, var(--ttext) 62%, transparent); --line: color-mix(in srgb, var(--tline) 45%, transparent); }
body.tight .ptpwatch .btn { color: var(--ttext); border-color: color-mix(in srgb, var(--tline) 45%, transparent); background: color-mix(in srgb, var(--ttext) 6%, transparent); }
body.tight .ptpwatch .btn:hover, body.tight .ptpwatch .btn:focus-visible { border-color: var(--tline); }
/* T342: an open table's seats as dots (filled = taken) */
body.tight .pdseatdots { display: inline-flex; gap: var(--sp-2); align-items: center; }
body.tight .pdseatdot { width: 10px; aspect-ratio: 1; box-sizing: border-box; border-radius: var(--r-pill); border: 1.5px solid var(--text2); }
body.tight .pdseatdot.on { background: var(--text); border-color: var(--text); }
/* T372: the game and round a board report comes from */
body.tight .ptrepfrom b { font-variant-numeric: tabular-nums; }
/* T341's badge row after the name (.ptbdgs, '+2' on phones) went with T451: the top badge leads the plate's pill, the player card shows all three */

/* ---------- T364 (owner 2026-10-28, mockup #t364 option A): the rating card and Admin > Feedback > Ratings ---------- */
body.tight .admdiv.fbrow { grid-template-columns: minmax(48px, 64px) minmax(0, 1fr); }
body.tight .admdiv.fbrow > .hi i { background: var(--gold); border-radius: var(--sp-2); }
body.tight .fbstars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
body.tight .fbwrap { position: fixed; right: var(--sp-7); bottom: var(--sp-7); z-index: 900; }
body.tight .fbcard { display: flex; flex-direction: column; gap: var(--sp-4); width: min(380px, calc(100vw - 32px)); padding: var(--sp-6); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
body.tight .fbstarsrow { display: flex; gap: var(--sp-2); }
body.tight .fbstar { padding: 0 var(--sp-1); border: 0; background: transparent; color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: var(--fs-3xl); line-height: 1; cursor: pointer; }
body.tight .fbstarsrow:hover .fbstar, body.tight .fbstarsrow:focus-within .fbstar { color: var(--gold); }
body.tight .fbstar:hover ~ .fbstar, body.tight .fbstar:focus-visible ~ .fbstar { color: color-mix(in srgb, var(--muted) 55%, transparent); }
body.tight .fbopts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .fbtext { width: 100%; resize: vertical; }
body.tight .fbx { margin-left: auto; }
@media (max-width: 700px) {
  body.tight .fbwrap { left: 0; right: 0; bottom: 0; }
  body.tight .fbcard { width: 100%; border-radius: var(--r-box) var(--r-box) 0 0; padding: var(--sp-6) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom)); }
}

/* ---------- T382 (owner 2026-10-29, mockup t382 option A): the Favour chip (core.js RZ.favourChip / RZ.favourPanel) ---------- */
/* level colours (SCOPE 17.7): accent while there is plenty, --warn at 10 or fewer, --bad at 0 */
body.tight .favchip { --fc: var(--accent); display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: 0 var(--sp-5) 0 var(--sp-3);
  border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); background: color-mix(in srgb, var(--fc) 12%, transparent);
  color: var(--fc); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; flex: 0 0 auto; }
body.tight .favchip.lv-low { --fc: var(--warn); }
body.tight .favchip.lv-out { --fc: var(--bad); }
body.tight .favchip .fct { color: var(--text2); font-weight: 600; }
body.tight .favchip[aria-expanded="true"] { background: var(--fc); color: var(--onAccent); border-color: transparent; }
body.tight .favchip[aria-expanded="true"] .fct { color: var(--onAccent); }
body.tight .favchip .orbit span { border-color: currentColor; border-right-color: transparent; border-bottom-color: transparent; }
body.tight .favchip .orbit .core { background: currentColor; border: 0; }
body.tight .favchip .orbit.still span { animation: none; opacity: .6; }
body.tight .favpanel { position: relative; width: 100%; box-sizing: border-box; text-align: left; display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--inset); }
body.tight .favrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; font-size: var(--fs-sm); }
body.tight .favrow b { font-variant-numeric: tabular-nums; }
body.tight .favx { position: absolute; top: var(--sp-3); right: var(--sp-3); width: var(--h-xs); height: var(--h-xs); padding: 0; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: var(--fs-sm); cursor: pointer; }
body.tight .favpanel .favourhow { margin: 0; }
body.tight .chat .head .favpanel { margin-top: var(--sp-2); }
body.tight .favline { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-4); }
body.tight .analyzeall .favpanel, body.tight .anrite .favpanel { margin-top: var(--sp-4); }
body.tight .anracts > .favchip { align-self: center; }
@media (max-width: 700px) {
  body.tight .favline { justify-content: center; }
  body.tight .analyzeallrow > .favchip { flex: 0 0 auto; }
  /* the phone header is a row (style.css): the details take the full width under it */
  body.tight .chat .head:has(> .favpanel) { flex-wrap: wrap; }
  /* the phone header is one row: the chip takes the place of the "Awaiting your query" line (the avatar still moves while she talks) */
  body.tight .chat .head:has(> .favchip) > .tstatus { display: none; }
  body.tight .chat .head > .favchip { margin-right: var(--h-md); }
}

/* Admin > Business (T390, mockup GE14DNXS1hLhPGNZW8ZSTc): the Backlog's rows (.tdrow/.tddet) plus a priority, a B-number, labels, markdown */
body.tight .bzprio { flex: 0 0 auto; min-width: var(--sp-6); font-weight: var(--fw-title); font-size: var(--fs-md); text-align: right; font-variant-numeric: tabular-nums; }
body.tight .bzid { min-width: 0; color: var(--muted); font-weight: var(--fw-text); }
body.tight .bzchk[aria-pressed="true"] { color: var(--ok); border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
body.tight .bzwhen, body.tight .bzextra { flex: 0 0 auto; white-space: nowrap; }
body.tight .bzwho.w-pjotr { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
body.tight .bzwho.w-timothy { background: color-mix(in srgb, var(--sec) 15%, transparent); color: var(--sec); }
body.tight .bzst { flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-size: var(--fs-xs); min-height: var(--h-xs); }
body.tight .bzdet { align-items: center; }
body.tight .bzlbl { flex: 1 1 100%; margin: 0; font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--muted); }
body.tight .bzdet .tdin.tdfull { flex: 1 1 100%; }
body.tight .bzbody { max-height: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); line-height: 1.5; }
body.tight .bzsum { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); white-space: normal; }
body.tight .bzsum > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
body.tight .bzdate { min-width: 56px; color: var(--muted); font-weight: var(--fw-text); }
body.tight .bzfoot { padding-top: var(--sp-4); padding-bottom: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .bzkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); }
body.tight .bzkpi { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); }
body.tight .bzkpi b { font-size: var(--fs-2xl); font-weight: var(--fw-display); }
body.tight .bzmd { max-width: 80ch; font-size: var(--fs-md); line-height: 1.6; color: var(--text2); }
body.tight .bzmd :is(p, ul, ol, h3, h4) { margin: 0 0 var(--sp-4); }
body.tight .bzmd :is(ul, ol) { padding-left: var(--sp-7); }
body.tight .bzmd h3 { font-size: var(--fs-lg); color: var(--text); }
body.tight .bzmd h4 { font-size: var(--fs-md); color: var(--text); }
body.tight .bzmd b { color: var(--text); }
body.tight .bzmd a { color: var(--accent); }
body.tight .bzmd code { padding: 0 var(--sp-2); border-radius: var(--r-tag); background: var(--chip); font-size: var(--fs-sm); }
body.tight .bzmd ul.bzchecks { list-style: none; padding-left: 0; }
body.tight .bzchecks li { display: flex; gap: var(--sp-3); align-items: baseline; }
body.tight .bzchecks li.on { color: var(--muted); }
body.tight .bzbox { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.15em; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-tag); color: var(--ok); font-size: var(--fs-xs); }
body.tight .bztable { max-width: 100%; overflow-x: auto; margin: 0 0 var(--sp-4); }
body.tight .bztable table { border-collapse: collapse; font-size: var(--fs-sm); min-width: 480px; }
body.tight .bztable :is(th, td) { padding: var(--sp-2) var(--sp-4); border: 1px solid var(--line); text-align: left; vertical-align: top; }
body.tight .bztable th { color: var(--text); background: var(--chip); }
@media (max-width: 699px) { body.tight .bzhide { display: none; } body.tight .bzrow .bzprio { min-width: 0; } }

/* ---------- T389 top bar, direction A "tidy groups" (owner 2026-10-29, mockup 6RWM9ZyrJRcb5w2a1kQX7H): Play, people, you ---------- */
/* the Play pill with its live segment last ("● N live", only while something is live; live.js RZ.liveSeg): one gold pill, two buttons */
body.tight header.top .playgrp { position: relative; display: inline-flex; align-items: stretch; flex: none; }
/* ticket #123: core.js fitHeader reserves the buttons' widest width (min-width): they sit at the right end of it; counts keep their width */
body.tight header.top .hdr-actions { justify-content: flex-end; }
body.tight header.top .pdbtn.playpill .pdseg, body.tight header.top .livecount { font-variant-numeric: tabular-nums; }
/* ticket #133: core.js fitHeader holds the menu's left edge with a relative offset (style.left); a menu dot sits on the word's corner
   instead of taking room after it */
@media (min-width: 701px) { body.tight header.top nav.menu { position: relative; } body.tight header.top .navbtn { position: relative; }
  body.tight header.top .navbtn .navdot { position: absolute; top: var(--sp-2); right: var(--sp-1); margin: 0; } }
body.tight header.top .szonl { font-variant-numeric: tabular-nums; }
body.tight header.top .playgrp.haslive .pdbtn.playpill { border-top-right-radius: 0; border-bottom-right-radius: 0; --pdr: var(--sp-4); }
body.tight header.top .playgrp .livewrap { min-height: var(--h-sm); padding: 0; gap: 0; border: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: var(--gold); }
body.tight header.top .playgrp .livechip.liveseg { min-height: var(--h-sm); padding: 0 var(--sp-6) 0 var(--sp-4); gap: var(--sp-3); border-left: 1px solid color-mix(in srgb, var(--onAccent) 35%, transparent); border-radius: 0 var(--r-pill) var(--r-pill) 0; color: var(--onAccent); font-weight: var(--fw-title); }
body.tight header.top .playgrp .livechip.liveseg:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
body.tight header.top .playgrp .livechip.liveseg .livedot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--onAccent) 25%, transparent); }
body.tight.hdrtight header.top .playgrp .livechip.liveseg { padding: 0 var(--sp-5) 0 var(--sp-3); }
/* Friends, the bell and (banner folded) the bug: one outlined capsule, badges unchanged */
body.tight header.top .hdrcap { position: relative; display: inline-flex; align-items: stretch; flex: none; min-height: var(--h-sm); border: 1px solid var(--line); border-radius: var(--r-ctl); }
body.tight header.top .hdrcap > button { min-height: 0; height: auto; margin: 0; border: 0; border-radius: 0; background: transparent; }
body.tight header.top .hdrcap > button.iconbtn2 { width: var(--h-sm); }
body.tight header.top .hdrcap > button + button { border-left: 1px solid var(--line); }
body.tight header.top .hdrcap > button:first-child { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
body.tight header.top .hdrcap > button:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
body.tight header.top .hdrcap.one > button { border-radius: var(--r-ctl); }
body.tight header.top .hdrcap > button.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.tight header.top .hdrcap > button:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
/* the folded banner's unfold arrow: a small tab hanging under the top bar's right edge, clear on hover or focus */
body.tight header.top .hdrunfold { position: absolute; top: 100%; right: var(--gutter); z-index: 3; }
body.tight header.top .hdrunfold .bannerfold { width: var(--h-sm); height: 28px; min-height: 28px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-ctl) var(--r-ctl); background: var(--bar); opacity: .55; transition: opacity .15s ease; }
body.tight header.top:hover .hdrunfold .bannerfold, body.tight header.top .hdrunfold .bannerfold:focus-visible, body.tight header.top .hdrunfold .bannerfold:hover { opacity: 1; }
@media (hover: none) { body.tight header.top .hdrunfold .bannerfold { opacity: .85; } }

/* ---------- T392 Support: its own kind of control in rose (--love, SCOPE 17.21) ---------- */
/* desktop: the last menu item after a line, a tinted rose pill with a heart and a slow shine */
body.tight header.top .navsup { display: inline-flex; align-items: center; flex: none; margin-inline: var(--sp-4) var(--sp-2); }   /* T701: air between the Support pill and its neighbours */
body.tight .supbtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-5); border: 1.5px solid var(--love); border-radius: var(--r-pill); background: color-mix(in srgb, var(--love) 16%, transparent); color: var(--love); font-family: inherit; font-size: var(--fs-md); font-weight: var(--fw-title); white-space: nowrap; cursor: pointer; }
body.tight .supbtn:hover, body.tight .supbtn:focus-visible { background: color-mix(in srgb, var(--love) 26%, transparent); }
body.tight .supbtn.on { background: var(--love); color: var(--onLove); }
body.tight .supbtn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, #fff 32%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: supshine 7s ease-in-out 1.5s infinite; }
/* #273 (owner 2026-11-11): Support always shows its name in the bar, like Play; it never becomes only a heart and never goes into More */
/* phones: the first card of the menu */
body.tight .supcard { display: flex; align-items: center; gap: var(--sp-5); width: 100%; margin: 0 0 var(--sp-3); padding: var(--sp-5); border: 1.5px solid var(--love); border-radius: var(--r-box); background: linear-gradient(120deg, color-mix(in srgb, var(--love) 22%, var(--panel)), color-mix(in srgb, var(--love2) 18%, var(--panel))); color: var(--text); font-family: inherit; text-align: left; cursor: pointer; }
body.tight .supcard b { font-size: var(--fs-lg); }
body.tight .supcard .small { color: var(--text2); }
body.tight .supcardico { width: 40px; aspect-ratio: 1; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--love); color: var(--onLove); }
body.tight .supcardchev { margin-left: auto; color: var(--love); font-size: var(--fs-2xl); font-weight: var(--fw-title); }
/* the rose button (Support on Patreon) */
body.tight .btn.love { min-height: var(--h-md); padding: 0 var(--sp-7); gap: var(--sp-4); border: 0; border-radius: var(--r-ctl); background: linear-gradient(120deg, var(--love), var(--love2)); color: var(--onLove); font-size: var(--fs-md); font-weight: var(--fw-title); }
body.tight .btn.love:hover, body.tight .btn.love:focus-visible { filter: brightness(1.08); color: var(--onLove); }

/* ---------- T392 the Support page (/support; supportpage.py renders it, inside the app and for visitors); v3 = T420 Night tide
   (mockup t420-supporter-looks.html section 3, signed off 2026-10-30): a synthwave sea banner per tier, the tier's look on a dark
   showcase (plate, friend row, chat) and its perks ---------- */
/* T1008 (owner 2026-11-30): in the app .page is the box that scrolls, so it keeps the full width (its scroll bar at the window's edge,
   as on every page); the 1088 px column is its content, centred */
body.tight .suppage { padding: var(--sp-7) var(--gutter) var(--sp-8); }
body.tight .suppage > * { width: 100%; max-width: calc(1088px - 2 * var(--gutter)); margin-inline: auto; }
body.tight .supwrap { display: flex; flex-direction: column; gap: var(--sp-7); }
body.tight .suphero { display: flex; align-items: center; gap: var(--sp-6); }
body.tight .supseal { width: 56px; aspect-ratio: 1; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); color: #fff; background: linear-gradient(135deg, #ff5fa8, #8b5cff 60%, #4fd2e8); box-shadow: 0 0 0 6px color-mix(in srgb, var(--love) 16%, transparent), 0 0 24px color-mix(in srgb, #8b5cff 40%, transparent); }
body.tight .suphead { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
body.tight .suphead h1 { margin: 0; font-size: var(--fs-3xl); font-weight: var(--fw-display); line-height: 1.15; }
body.tight .supsub { color: var(--text2); font-size: var(--fs-lg); }
body.tight .suptiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
body.tight .suptier { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
/* the showcase: the tier's look on the dark table in every theme (supportpage.showcase; support.js redraws it with your own name) */
body.tight .supshow { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border-radius: var(--r-box); background: radial-gradient(120% 90% at 20% 0%, #222a44, #141a26 60%); color: #f1ece0; }
body.tight .supplate { display: flex; align-items: center; gap: var(--sp-5); min-width: 0; padding: var(--sp-4) var(--sp-6) var(--sp-4) var(--sp-5); border-radius: var(--r-box); background: #0e131c; border: 1px solid color-mix(in srgb, var(--sx2, #e9cf8f) 26%, transparent); }
body.tight .sup-loremaster .supplate { background: linear-gradient(100deg, #0e131c 50%, color-mix(in srgb, var(--sx3) 12%, #0e131c)); }
body.tight .supcol { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
body.tight .supcol { font-size: var(--fs-lg); }
body.tight .sup-apprentice .supplate .rznsn { padding-bottom: 6px; }   /* T429: the wave's room, so the three plates line up */
body.tight .supptitle { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: var(--fs-lg); color: #b9b3a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the perks: the tier's word and bullet in its colour (light-dark follows the page's colour scheme, in the app and for visitors) */
body.tight .sup-apprentice { --supem: light-dark(#2f6fb8, #a9cbff); }
body.tight .sup-archivist { --supem: light-dark(#6a4fd8, #c9b6ff); }
body.tight .sup-loremaster { --supem: light-dark(#c2417a, #ff9ec8); }
body.tight .supperks { margin: 0; padding: 0 var(--sp-2); list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); color: var(--text2); font-size: var(--fs-md); line-height: 1.45; }
body.tight .supperks li { display: flex; gap: var(--sp-4); align-items: baseline; }
body.tight .supperks li::before { content: ""; width: 6px; aspect-ratio: 1; flex: none; border-radius: var(--r-pill); background: var(--supem, var(--love)); transform: translateY(-2px); }
body.tight .supglow { font-style: normal; font-weight: var(--fw-title); color: var(--supem, var(--text)); }
body.tight .supacts { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; }
body.tight .supacts .btn { min-height: var(--h-md); gap: var(--sp-4); text-decoration: none; }
body.tight .suplink { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin: 0; color: var(--text2); font-size: var(--fs-md); }   /* owner 2026-11-29: Already a supporter? Link Patreon, unfolded */
body.tight .suplink .btn { text-decoration: none; }
body.tight .supfolds { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .supfoldin { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: 0 0 var(--sp-4) var(--sp-7); color: var(--text2); font-size: var(--fs-md); }
body.tight .supfoldin p { margin: 0; }
body.tight .supthanks { margin: 0; color: var(--muted); font-size: var(--fs-md); }
body.tight .supupkeep { margin: var(--sp-3) 0 0; color: var(--muted); }
body.tight .supamt { margin: var(--sp-3) 0 0; text-align: center; font-weight: 600; color: var(--text); }
body.tight .supupkeep b { color: var(--text); }
/* ---------- T688 this month's tide (supportpage.tide_html; owner sign-off 2026-11-12, mockup SKHzbXg88acChMBhajSuCC v5 "Moon phases"):
   calm moonlit water rises in a slim tube when the page opens and keeps drifting; four moons wax from crescent to full and light up
   as the water reaches them. Dark in every theme, like the showcases. Endless motion is transform/opacity only (T697); keyframes
   suptRise/suptRiseL/suptDrift/suptGlint/suptBob/suptLit/suptBreathe in style.css. Reduce motion: drawn still. ---------- */
body.tight .suptide { --tmoon: #f3ead6; --tdark: #34334a; --tring: #4c4b66; --tbg: radial-gradient(120% 120% at 20% 0%, #232a44, #161a26 65%); --ttext: #ecebf3; --ttitle: #f6f2ea; --tmut: #a8a6b8; --tline: #3a394c; --tedge: #2e3346; --ttube: #2d2c3c; --tchip: #1d1c28; --tglow: rgb(243 234 214 / .5); --tfull: #fffaf0; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6) var(--sp-7) var(--sp-5); border-radius: var(--r-box); background: var(--tbg); color: var(--ttext); border: 1px solid var(--tedge); }
/* T688 follow-up (owner 2026-11-13): the box follows the theme. Light themes (the app's body.light, the public page's html[data-dark="0"] from landing-theme.js)
   get a light box from the theme's own panel and text colours; the moons turn warm gold so they read on it */
body.tight.light .suptide, body.tight.suppublic:where([data-dark="0"] *) .suptide { --tmoon: #d9a93f; --tdark: #e4dfd3; --tring: #cfc8b8; --tbg: var(--panel); --ttext: var(--text); --ttitle: var(--text); --tmut: var(--muted); --tline: var(--line); --tedge: var(--line); --ttube: #e6e3ec; --tchip: rgb(0 0 0 / .04); --tglow: rgb(217 169 63 / .45); --tfull: #f3d98a; }
body.tight .suptr1 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sp-2) var(--sp-6); }
body.tight .suptt { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); color: var(--ttitle); }
body.tight .suptn { color: var(--tmut); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
body.tight .suptn b { color: var(--ttext); }
body.tight .suptintro { margin: calc(var(--sp-3) * -1) 0 0; max-width: 68ch; color: var(--tmut); font-size: var(--fs-md); }
body.tight .supttrack { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 var(--sp-8); box-sizing: border-box; }
body.tight .suptmoons, body.tight .suptmls { position: relative; }
body.tight .suptmoons { height: 28px; }
body.tight .suptm { position: absolute; bottom: 6px; width: 18px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--tdark); box-shadow: inset 0 0 0 1px var(--tring); }
body.tight .suptm.on { background: var(--ph); box-shadow: none; animation: suptLit .7s ease-out var(--dl) both; }
body.tight .suptm.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 12px var(--tglow); animation: suptBreathe 6s ease-in-out calc(var(--dl) + .7s) infinite; }
body.tight .suptm.p1 { --ph: radial-gradient(circle at calc(50% + 6px) 50%, var(--tdark) 0 8.6px, var(--tmoon) 9.2px); }
body.tight .suptm.p2 { --ph: linear-gradient(90deg, var(--tmoon) 50%, var(--tdark) 50%); }
body.tight .suptm.p3 { --ph: radial-gradient(circle at calc(50% + 15px) 50%, var(--tdark) 0 8.6px, var(--tmoon) 9.2px); }
body.tight .suptm.p4 { --ph: radial-gradient(circle at 40% 38%, var(--tfull), var(--tmoon)); }
body.tight .suptbar { position: relative; padding: var(--sp-1) 0; }
body.tight .supttube { position: relative; height: var(--sp-5); border-radius: var(--r-pill); background: var(--ttube); overflow: hidden; box-shadow: inset 0 1px 3px rgb(0 0 0 / .35); }
body.tight .suptwater { position: absolute; inset: 0 auto 0 0; width: var(--to); border-radius: var(--r-pill); overflow: hidden; background: linear-gradient(180deg, #8fa3df, #6a7ec4 55%, #56689f); animation: suptRise 2.4s cubic-bezier(.2,.7,.2,1) both; }
body.tight .suptwater::before, body.tight .suptwater::after { content: ""; position: absolute; left: 0; right: -300px; top: 0; bottom: 0; background-repeat: repeat-x; background-size: 60px 100%; }
body.tight .suptwater::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q15 0 30 4 T60 4 V0 H0Z' fill='%23c9d3f5' fill-opacity='.55'/%3E%3C/svg%3E"); animation: suptDrift 9s linear infinite; }
body.tight .suptwater::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath d='M0 9 Q15 6 30 9 T60 9' stroke='%23e6ebff' stroke-opacity='.28' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); animation: suptDrift 14s linear infinite reverse; }
body.tight .suptglint { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 42%, rgb(255 250 235 / .35) 50%, transparent 58%); transform: translateX(-100%); animation: suptGlint 7s ease-in-out 2.6s infinite; }
body.tight .suptswell { position: absolute; top: 50%; left: var(--to); width: 18px; aspect-ratio: 1; transform: translate(-60%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 38%, #b9c5f0, #7488cc); box-shadow: 0 0 10px rgb(160 176 235 / .5); animation: suptRiseL 2.4s cubic-bezier(.2,.7,.2,1) both, suptBob 4.5s ease-in-out 2.4s infinite; }
body.tight .suptmls { min-height: 36px; margin-top: var(--sp-4); }
body.tight .suptml { position: absolute; top: 0; width: 86px; transform: translateX(-50%); text-align: center; font-size: var(--fs-sm); line-height: 1.25; color: var(--tmut); }
body.tight .suptml.on { color: var(--ttext); font-weight: var(--fw-label); }
body.tight .suptfull { margin: 0; text-align: center; color: var(--tmoon); font-weight: var(--fw-label); }
body.tight .suptnames { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--tline); }
body.tight .suptnh { color: var(--tmut); font-size: var(--fs-sm); margin-right: var(--sp-1); }
body.tight .suptnm { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-label); padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-2); border-radius: var(--r-pill); background: var(--tchip); border: 1px solid var(--tline); overflow-wrap: anywhere; }
body.tight .suptnm::before { content: ""; flex: none; width: 16px; aspect-ratio: 1; border-radius: 50%; box-sizing: border-box; border: 2px solid #8fb8ff; }
body.tight .suptnm.sup-archivist::before { border-color: #b58cff; }
body.tight .suptnm.sup-loremaster::before { border-color: #ff8fb3; }
@media (max-width: 700px) {
  body.tight .suptide { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
  body.tight .supttrack { padding: 0 var(--sp-7); }
  body.tight .suptml { width: 62px; font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
  body.tight .suptwater, body.tight .suptwater::before, body.tight .suptwater::after, body.tight .suptswell, body.tight .suptm.on, body.tight .suptm.on::after { animation: none; }
  body.tight .suptglint { display: none; }
}
body.tight .prfpatask { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }   /* T688: show my name? (once, after linking Patreon) */
/* the tier banner: a calm synthwave sea at night, a striped sun on the horizon and its shimmering reflection, oval water ripples, a slow
   light sheen and wave strokes that fade at their tips; no grid. Pure CSS, dark in every theme. --hz: the horizon */
body.tight .supban { --hz: 63%; container-type: inline-size; position: relative; aspect-ratio: 23 / 10; overflow: hidden; border-radius: var(--r-box); color: var(--tc); background: linear-gradient(180deg, var(--k1) 0%, var(--k2) 50%, var(--k3) 63%); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
body.tight .supban::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 16%, transparent); pointer-events: none; }
body.tight .sup-apprentice .supban { --tc: #d4e6ff; --k1: #060c1d; --k2: #11234a; --k3: #3e6cb4; --s1: #f4f9ff; --s2: #a9cbff; --s3: #6f8cff; --w1: #0c1934; --w2: #050913; }
body.tight .sup-archivist .supban { --tc: #ead6ff; --k1: #0b0720; --k2: #28154e; --k3: #8a4fc8; --s1: #fbeaff; --s2: #c79bff; --s3: #f27ac8; --w1: #180e34; --w2: #07050e; }
body.tight .sup-loremaster .supban { --tc: #ffe0b0; --k1: #0f0722; --k2: #3c1350; --k3: #e0558f; --s1: #fff2b8; --s2: #ffa36b; --s3: #ff4f9a; --w1: #280e38; --w2: #09050f; }
body.tight .supstars { position: absolute; inset: 0 0 calc(100% - var(--hz)) 0; pointer-events: none; opacity: .55; animation: supTwinkle 7s ease-in-out infinite alternate;
  background: radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 31% 12%, #fff, transparent), radial-gradient(1.4px 1.4px at 58% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 88% 14%, #fff, transparent), radial-gradient(1px 1px at 46% 46%, #fff, transparent), radial-gradient(1px 1px at 94% 52%, #fff, transparent); }
body.tight .supsun { position: absolute; left: 9%; top: var(--hz); width: 31%; aspect-ratio: 1; transform: translateY(-60%); border-radius: 50%; background: linear-gradient(180deg, var(--s1), var(--s2) 55%, var(--s3));
  -webkit-mask: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 60%, transparent 60% 65%, #000 65% 72%, transparent 72% 78%, #000 78% 86%, transparent 86%); mask: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 60%, transparent 60% 65%, #000 65% 72%, transparent 72% 78%, #000 78% 86%, transparent 86%); }
body.tight .supsunglow { position: absolute; left: 2%; top: var(--hz); width: 45%; aspect-ratio: 1; transform: translateY(-60%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--s2) 45%, transparent), transparent 62%); animation: supSun 7s ease-in-out infinite alternate; }
body.tight .sup-apprentice .supsun { width: 26%; left: 11%; }
body.tight .sup-apprentice .supsunglow { opacity: .7; }
body.tight .supsea { --rx: 24.5%; --rwid: 46%; --ry: 26%; position: absolute; left: 0; right: 0; bottom: 0; top: var(--hz); overflow: hidden; perspective: 140px; background: linear-gradient(180deg, var(--w1), var(--w2)); border-top: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
body.tight .supripw { position: absolute; left: var(--rx); top: var(--ry); width: var(--rwid); aspect-ratio: 5 / 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent); opacity: 0; transform: translate(-50%, -50%) scale(.15); animation: supWRipple 9s cubic-bezier(.2, .6, .3, 1) infinite; }
body.tight .supripw.r2 { animation-delay: -3s; }
body.tight .supripw.r3 { animation-delay: -6s; }
body.tight .supsheen { position: absolute; inset: 0; background: radial-gradient(60% 40% at 30% 60%, color-mix(in srgb, var(--tc) 10%, transparent), transparent 70%), radial-gradient(50% 35% at 75% 40%, color-mix(in srgb, var(--s2) 10%, transparent), transparent 70%); background-size: 200% 100%; animation: supSheen 24s ease-in-out infinite alternate; }
body.tight .supwaves { position: absolute; left: 0; top: 22%; width: 200%; height: 25%; overflow: visible; animation: supDrift 22s linear infinite;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 35%, transparent 50%, #000 65%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 35%, transparent 50%, #000 65%, #000 85%, transparent); }
body.tight .supwaves path { fill: none; stroke: color-mix(in srgb, var(--tc) 30%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
body.tight .supwaves.w2 { top: 52%; animation-duration: 34s; animation-direction: reverse; }
body.tight .supwaves.w2 path { stroke: color-mix(in srgb, var(--tc) 18%, transparent); }
body.tight .suprefl { position: absolute; top: 0; left: 9%; width: 31%; height: 100%; background: radial-gradient(ellipse 50% 90% at 50% 0, color-mix(in srgb, var(--s2) 75%, transparent), transparent 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 5px); mask: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 5px); animation: supShimmer 2.8s linear infinite, supSway 8s ease-in-out infinite alternate; }
body.tight .sup-apprentice .suprefl { left: 11%; width: 26%; }
body.tight .supbtxt { position: absolute; left: 47%; right: 6%; top: 0; bottom: calc(100% - var(--hz)); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); min-width: 0; }
body.tight .supkick { display: flex; align-items: center; gap: var(--sp-3); font-size: 11px; font-weight: var(--fw-title); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; opacity: .85; }
body.tight .supkick .supmoon { width: 14px; height: auto; flex: none; }
body.tight .supmoonc { fill: #b993f0; } body.tight .supmoono { fill: #e7b65c; } body.tight .supmoond { fill: #ece9e2; }
body.tight .supname { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 600; font-size: clamp(28px, 8.5cqi, 36px); line-height: 1; white-space: nowrap; text-shadow: 0 0 18px color-mix(in srgb, var(--s2) 60%, transparent); }
@media (prefers-reduced-motion: reduce) {
  body.tight .supbtn::after, body.tight .supban *, body.tight .supshow *,
  body.tight .sup-team > .rzsupr, body.tight .supstars, body.tight .supsunglow, body.tight .supripw, body.tight .supsheen, body.tight .supwaves, body.tight .suprefl { animation: none !important; }
  body.tight .supbtn::after { display: none; }
}
/* tablets: one tier per row, banner and showcase beside the perks; phones: stacked */
@media (max-width: 1000px) {
  body.tight .suptiers { grid-template-columns: minmax(0, 1fr); }
  body.tight .suptier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--sp-5); }
  body.tight .suptier .supperks { grid-column: 2; grid-row: 1 / span 2; padding-top: var(--sp-4); }
}
@media (max-width: 700px) {
  body.tight .suppage { padding: var(--sp-6) var(--gutter) var(--sp-8); }
  body.tight .suphero { gap: var(--sp-5); }
  body.tight .supseal { width: 48px; }
  body.tight .suphead h1 { font-size: var(--fs-2xl); }
  body.tight .supsub { font-size: var(--fs-md); }
  body.tight .suptier { display: flex; align-items: stretch; gap: var(--sp-4); }
  body.tight .supacts { flex-direction: column; align-items: stretch; }
  body.tight .supacts .btn { justify-content: center; }
}
/* the public page (visitors): the logo and links in the accent */
/* T1008: the public page scrolls with the window (no inner scroll box), so it keeps its 1088 px column; the logo lines up with the content */
body.tight.suppublic main.suppage { max-width: 1088px; margin: 0 auto; }
body.tight.suppublic .suplogo { display: block; width: max-content; margin: 0 0 var(--sp-6); color: var(--accent); }
body.tight.suppublic main.suppage > p a { color: var(--accent); }
/* T389: phones, Live now at the top of the Play drawer (no live segment on the pill there) */
body.tight .pdlive { display: flex; flex-direction: column; gap: var(--sp-3); }
body.tight .pdlive .plsect { display: flex; align-items: center; gap: var(--sp-3); }
body.tight .pdlive .szlive-list { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); }
/* Admin > Business To review, Decisions and plan checks (T394, mockup GE14DNXS1hLhPGNZW8ZSTc) */
body.tight .bzrev { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
body.tight .bzrevh { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding: var(--sp-5) var(--sp-6); background: color-mix(in srgb, var(--warn) 8%, transparent); }
body.tight .bzrevh b { font-size: var(--fs-lg); }
body.tight .bzprop { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); }
body.tight .bzpk { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .bzptarget { min-width: 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
body.tight .bzptext { font-size: var(--fs-md); line-height: 1.45; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; }
body.tight .bzdiff { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2) var(--sp-5); font-size: var(--fs-md); line-height: 1.45; }
body.tight .bzdl { padding-top: var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--muted); }
body.tight .bzold { color: var(--muted); text-decoration: line-through; white-space: pre-wrap; overflow-wrap: anywhere; }
body.tight .bznew { justify-self: start; padding: 0 var(--sp-2); border-radius: var(--r-tag); background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
body.tight .bzquote { font-size: var(--fs-sm); font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
body.tight .bzrevin { min-height: calc(var(--h-sm) * 2); }
body.tight .bzacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .bztn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--fs-lg); height: var(--fs-lg); margin-left: var(--sp-3); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--warn); color: var(--onAccent); font-size: var(--fs-xs); font-weight: var(--fw-title); }
body.tight .bzplanhd { display: flex; align-items: center; gap: var(--sp-3); }
body.tight .bzdrow { align-items: flex-start; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
body.tight .bzdrow .bzdate { padding-top: var(--sp-1); }
body.tight .bzdx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
body.tight .bzdx b { font-size: var(--fs-md); font-weight: var(--fw-title); overflow-wrap: anywhere; }
@media (max-width: 699px) { body.tight :is(.bzrevh, .bzprop) { padding-left: var(--sp-5); padding-right: var(--sp-5); } }
/* T343 custom cursors: My Tale > Looks > Cursor (computers and laptops only; core.js cursorSection), the set at real size in each tile */
body.tight .curpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-4); max-width: 720px; }
body.tight .curtile { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-2); padding: var(--sp-3); }
body.tight .curtile .curpv { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 56px; border-radius: var(--r-ctl); background: var(--inset, #0c0e12); }
body.tight .arpick.curtile img { width: 32px; height: auto; aspect-ratio: 1; object-fit: contain; }
body.tight .arpick.curtile.locked img { filter: none; opacity: .5; }
body.tight .curtile .arlock { aspect-ratio: auto; height: 56px; top: var(--sp-3); left: var(--sp-3); right: var(--sp-3); }
body.tight .curtile.pv { border-color: var(--line2, var(--line)); border-style: dashed; }
body.tight .curtry { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
body.tight .curchip { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 36px; padding: 0 var(--sp-5) 0 var(--sp-2); border-radius: var(--r-pill); background: var(--chip, var(--card)); font-size: var(--fs-xs); color: var(--text2); }
body.tight .curchip img { width: 24px; height: auto; }
body.tight .rwpcursor { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }   /* a cursor reward: the set at real size */
body.tight .rwpcursor img { width: 32px; height: auto; }

/* T375 (owner 2026-10-29, mockup t375-t376 section T375): comments under a dev post (comments.js). The composer is a panel, comments
   are rows split by a line, replies indent one level; the ⋯ menu is a popover on desktop and a bottom sheet on phones, and so is the
   report dialog. A mature comment blurs until Show; a hidden one is dimmed for the owner. */
body.tight .postmeta { gap: var(--sp-4); align-items: center; }
body.tight .cmsec { margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--line); display: flex; flex-direction: column; }
body.tight .cmhead { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
body.tight .cmhead h2 { font-size: var(--fs-xl); margin: 0; }
body.tight .cmcnt { color: var(--muted); font-weight: 600; }
body.tight .cmcompose { display: flex; gap: var(--sp-5); align-items: flex-start; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); margin-bottom: var(--sp-6); }
body.tight .cmcompose.reply { margin: 0 0 var(--sp-5) var(--sp-8); padding: var(--sp-4); }
body.tight .cmbox { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .cmta { width: 100%; box-sizing: border-box; min-height: var(--h-lg); resize: vertical; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--inset); color: var(--text); padding: var(--sp-4) var(--sp-5); font: inherit; font-size: var(--fs-md); }
body.tight .cmta:focus { border-color: var(--accent); outline: none; }
body.tight .cmrow { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
body.tight .cmrow.end { justify-content: flex-end; }
body.tight .cmerr { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); font-size: var(--fs-sm); background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
body.tight .cmnote { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); font-size: var(--fs-sm); background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--text2); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
body.tight .cmc { display: flex; gap: var(--sp-5); padding: var(--sp-5) 0; border-top: 1px solid var(--line); position: relative; }
body.tight .cmc.reply { margin-left: var(--sp-8); }
body.tight .cmc.hidden > :not(.cmdots):not(.cmmenu):not(.cmshade) { opacity: .6; }
body.tight .cmc.cmflash { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: var(--r-ctl); transition: background 2s; }
body.tight .cmbody { flex: 1 1 auto; min-width: 0; padding-right: var(--sp-7); }
body.tight .cmwho { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
body.tight .cmwho b { font-size: var(--fs-md); }
body.tight .cmteam { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
body.tight .cmt { color: var(--muted); font-size: var(--fs-xs); }
body.tight .cmtxt { margin: var(--sp-2) 0 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
body.tight .cmblur { filter: blur(4px); user-select: none; display: block; }
body.tight .cmmature { display: block; font-size: var(--fs-xs); color: var(--muted); }
body.tight .cmmature .linkbtn { min-height: 0; padding: 0; font-size: var(--fs-xs); color: var(--accent); }
body.tight .cmacts { display: flex; gap: var(--sp-5); align-items: center; }
body.tight .cmact { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); min-height: var(--h-sm); }
body.tight .cmdots { position: absolute; right: 0; top: var(--sp-4); width: var(--h-sm); height: var(--h-sm); border-color: transparent; }
body.tight .cmdots.on { background: var(--chip); color: var(--text); }
body.tight .cmgone { color: var(--muted); }
body.tight .cmgoneav { width: 32px; flex: 0 0 auto; }
body.tight .cmmore { display: flex; justify-content: center; padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
body.tight .cmempty { padding: var(--sp-4) 0; }
body.tight .cmshade { position: fixed; inset: 0; z-index: 40; background: transparent; }
body.tight .cmmenu { position: absolute; right: 0; top: var(--sp-8); z-index: 41; width: 260px; padding: var(--sp-3); border-radius: var(--r-box); background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
body.tight .cmmenu hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-3) var(--sp-2); width: auto; }
body.tight .cmit { display: flex; gap: var(--sp-4); align-items: center; min-height: var(--h-sm); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer; width: 100%; }
body.tight .cmit:hover, body.tight .cmit:focus-visible { background: var(--chip); }
body.tight .cmit.bad, body.tight .cmit.armed { color: var(--bad); }
body.tight .cmit.armed { background: color-mix(in srgb, var(--bad) 14%, transparent); font-weight: 700; }
body.tight .cmk { font-size: var(--fs-xs); color: var(--muted); }
body.tight .cmcap { padding: var(--sp-2) var(--sp-4) 0; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
body.tight .cmgrab, body.tight .cmcancel { display: none; }
body.tight .modal.cmrepm { position: fixed; z-index: 70; }
body.tight .modal.cmrepm > div { width: min(480px, 100%); border-color: var(--line); padding: var(--sp-7); gap: var(--sp-4); }
body.tight .cmh3 { font-size: var(--fs-xl); }
body.tight .cmquote { overflow-wrap: anywhere; }
body.tight .cmopts { gap: var(--sp-4); }
body.tight .cmopt { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .cmopt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight .cmopt b { font-size: var(--fs-md); }
body.tight .cmrd { width: 16px; aspect-ratio: 1; flex: 0 0 auto; margin-top: var(--sp-1); border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
body.tight .cmopt.on .cmrd { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--card); }
body.tight .cmchk { display: flex; gap: var(--sp-4); align-items: center; font-size: var(--fs-md); }
@media (max-width: 699px) {
  body.tight .cmsort { display: none; }
  body.tight .cmcompose { padding: var(--sp-4); gap: var(--sp-4); }
  body.tight .cmc.reply, body.tight .cmcompose.reply { margin-left: var(--sp-7); }
  body.tight .cmshade { background: rgba(0, 0, 0, .45); z-index: 80; }
  body.tight .cmmenu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; z-index: 81; padding: var(--sp-4) var(--sp-5) var(--sp-7); border-radius: var(--r-box) var(--r-box) 0 0; border-width: 1px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .4); }
  body.tight .cmmenu .cmit { min-height: var(--h-md); font-size: var(--fs-lg); }
  body.tight .cmgrab { display: block; width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--line); margin: 0 auto var(--sp-4); }
  body.tight .cmcancel { display: flex; justify-content: center; color: var(--muted); border-top: 1px solid var(--line); border-radius: 0; margin-top: var(--sp-3); }
  body.tight .modal.cmrepm { align-items: flex-end; padding: 0; }
  body.tight .modal.cmrepm > div { width: 100%; max-height: 92%; border-radius: var(--r-box) var(--r-box) 0 0; border-width: 1px 0 0; padding: var(--sp-4) var(--sp-6) var(--sp-7); }
  body.tight .modal.cmrepm .cmoptd { display: none; }
  body.tight .modal.cmrepm .cmrow.end .btn { flex: 1 1 0; }
}
/* ---------- T376: the desktop app download (desktopapp.js; My Tale > Desktop app and the Home card) ---------- */
body.tight .dkos { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); max-width: 480px; }
body.tight .dkos.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
body.tight .dkos .btn { align-self: stretch; justify-content: center; }
body.tight :is(.dkos, .dlcard) a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .dkosnm b { font-size: var(--fs-lg); }
body.tight .dkosic { display: inline-flex; color: var(--accent); flex: 0 0 auto; }
body.tight .dkosic svg { width: var(--h-xs); height: var(--h-xs); }
body.tight .dkpill { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
body.tight .dkkv { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: var(--sp-3) var(--sp-6); font-size: var(--fs-md); }
body.tight .dkdot { display: inline-block; width: var(--sp-4); height: var(--sp-4); border-radius: var(--r-pill); background: var(--muted); }
body.tight .dkdot.ok { background: var(--ok); } body.tight .dkdot.bad { background: var(--bad); }
body.tight .dlcard { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-5) var(--sp-6); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--r-box);
  background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
body.tight .dlcardic { width: var(--h-md); height: var(--h-md); border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
body.tight .dlcard .iconbtn2 { width: var(--h-sm); height: var(--h-sm); flex: 0 0 auto; }
/* audit H1: Home's Install as an app, one slim row under the search in the same look (core.js RZ.homeInstallRow); the rest is behind its (i) */
body.tight .dlcard.dlinst { gap: var(--sp-4); padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3); }
body.tight .dlinst .dlcardic { width: var(--h-sm); height: var(--h-sm); }
body.tight .dlinstt { display: inline-flex; align-items: center; gap: var(--sp-3); white-space: nowrap; }
/* T619: the early-access invite (desktopapp.js desktopInviteLayer): the app's one-time .modal, an icon tile, the title, one line with an (i) that opens the Windows note */
body.tight .dkinvite > div { gap: var(--sp-6); }
body.tight .dkinvhead { align-items: flex-start; }
body.tight .dkinvhead .dkosic { width: var(--h-md); height: var(--h-md); border-radius: var(--r-box); align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); }
body.tight .dkinvhead .dkosic svg { width: var(--h-xs); height: var(--h-xs); }
body.tight .dkinvhead h2 { margin: 0; font-size: var(--fs-xl); line-height: 1.25; }
body.tight .dkinvline { align-items: flex-start; } body.tight .dkinvline p { margin: 0; line-height: 1.5; }
body.tight .dkinvi { flex: 0 0 auto; width: var(--h-xs); height: var(--h-xs); padding: 0; border-radius: var(--r-ctl); border: 1px solid var(--line); background: transparent; color: var(--muted); font: italic 700 var(--fs-md) Georgia, serif; cursor: pointer; }
body.tight .dkinvi.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.tight .dkinvnote { padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); line-height: 1.5; }
body.tight .dkinvbtns { justify-content: flex-end; }
body.tight .dkinvbtns .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); }
@media (max-width: 700px) { body.tight .dkinvbtns .btn { flex: 1 1 0; } body.tight .dkinvhead h2 { font-size: var(--fs-lg); } }
@media (max-width: 700px) { body.tight .dkkv { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); } }
/* T410 (owner 2026-10-29): Table bans. The tiles used to scroll sideways under the search box and fade out behind it; now the search sits
   on the left and the tiles wrap in rows beside it (below it on phones), every one readable. A tile shows the card on hover and opens its
   details on a click or tap (.tileopen covers the tile; the round ✕ stays on top) */
body.tight .banner.bansbar { min-height: 0; }
body.tight .banner.bansbar .search { order: -1; justify-content: flex-start; flex: 0 0 296px; box-sizing: border-box; padding: var(--sp-5); background: var(--card); border-right: 1px solid var(--line); }
body.tight .banner.bansbar .tiles { position: static; inset: auto; flex: 1 1 auto; min-width: 0; min-height: 0; flex-wrap: wrap; align-content: flex-start; gap: var(--sp-3); padding: var(--sp-4); overflow: visible; }
body.tight .banner.bansbar .tiles:empty { display: none; }
body.tight .banner.bansbar .tile2 { width: 96px; aspect-ratio: 1; }
body.tight .banner.bansbar .tile2 .tileopen { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: zoom-in; }
body.tight .banner.bansbar .tile2 .tileopen:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .banner.bansbar .tile2 .tilex { z-index: 1; }
body.tight .banner.bansbar .tile2 span { pointer-events: none; }
/* narrow (phones, and tablets where the panel's aside takes room): the search on top, the tiles below it */
body.tight .bansview { container-type: inline-size; width: 100%; }
body.tight .fpmain:has(> .bansview) { align-self: stretch; }   /* phones: the fields column would shrink to the (container) bans, which have no width of their own */
@container (max-width: 640px) {
  body.tight .banner.bansbar { flex-direction: column; }
  body.tight .banner.bansbar .search { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
/* T408 (owner 2026-10-29): on wide screens (the pages may grow to --pagew, 1920 px) lists and step-by-step forms ran from the far left to
   the far right and were hard to read. These keep a readable width, centred; tablets and phones are narrower than it and do not change.
   The brew start (Spar with Tamiyo, Solo brew, your table's steps), My decks, the Wishlist, and the Settings panel's fields with their
   "Tamiyo reads this" note (the panel's frame keeps the page's width, its contents stop at the readable width) */
body.tight { --readw: 1280px; }
body.tight .page.exp > .exinner.wlpage { max-width: var(--readw); }
/* T430 width, option A (owner 2026-11-04): every list page uses the full width from the 24 px gutter, like Cards, Public decks, the deck view
   and the top bar's logo; My decks, its Matches and Sets no longer sit in the centred --readw column (x=80 at 1440 px). Below 1336 px
   nothing changes (the column was wider than the page there) */
body.tight .fpbody { max-width: var(--readw); }
body.tight .setinner .accordion > button { min-height: 60px; }   /* T430: a Sets deck row is one line */
/* T408 width rules (owner sign-off 2026-10-30, review mockup P1T77yWGjbukBGXmc82grx). Ask: does the eye travel to read one item? Cap it.
   Does width add more items? Keep it wide. Work surfaces (board, builder, deck view, card and deck grids) stay full width; reading pages
   (rows, posts, dashboards) stop at --readw; forms (one task, top to bottom) at --formw; any paragraph at about 75 characters.
   Root cause: .page.narrow read --pagew (1920), so every narrow page ran full width; they read --readw now. More specific narrow pages
   keep their own width (.read 960, .homepage 1240, .pfpage 640, .ptsetup --formw). */
body.tight { --formw: 980px; }
body.tight .page.narrow > .inner { max-width: var(--readw); }   /* Workshop (posts, changelog, roadmap, bugtracker), Collection overview, Pod check */
body.tight .roaditem .grow > .small, body.tight .postrow .grow > .muted, body.tight .anread .pbp { max-width: 75ch; }   /* prose */
/* Analyze, a mixed page: the bar, the tabs and the deck strip stay wide; a reading tab's body (Power, Synergy, Mana, Lore, Playbook) stops at
   --readw, left-aligned under the tabs (.page.cw centres every block at --pagew), so nothing jumps sideways when switching tabs */
body.tight .page.cw > .anread { max-width: var(--readw); margin-left: max(0px, calc((100% - var(--pagew)) / 2)); margin-right: auto; }

/* ---------- T383 the season track (mockup FFPgdUQ9uDsJkBp3BK1d2c frames A-F, signed off 2026-10-29; seasontrack.js) ----------
   Tales are gold (--tale); Legend is gilded: one metal gradient (--gild1..3) used only for Legend (the bar, the steps, the ring, the
   seal, the gilded looks: the existing art through a gold filter with a slow shine). Reduced motion (and Motion off) stops every shine. */
body.tight { --gild1: #9a6b1e; --gild2: var(--gold); --gild3: #fff0c2; }
body.tight.light { --gild1: #6e4a10; --gild3: #a8781e; }   /* the light theme: the metal's light end darker, so gilded words stay readable */
body.tight .sttales { display: flex; flex-direction: column; gap: var(--sp-6); }
body.tight .stseg { display: grid; gap: var(--sp-1); height: var(--sp-5); }
body.tight .stseg > i { display: block; border-radius: var(--sp-1); background: var(--track); overflow: hidden; }
body.tight .stseg > i > b { display: block; height: 100%; background: var(--tale); }
body.tight .stseg > i.fin { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tale) 70%, transparent); }
body.tight .stwarn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
/* reward art in a book, a toast or a shelf card */
body.tight .stra { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r-tag); background: var(--inset); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--tale); }
body.tight .stra > img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tight .stra.emote > img { object-fit: contain; width: 86%; height: 86%; }
body.tight .stra .cardback { width: 64%; height: 92%; border-radius: var(--sp-2); overflow: hidden; box-shadow: 0 2px 6px #0008; }
body.tight .stra .rzav { width: 86% !important; height: 86% !important; }
body.tight .stra .rwpdice svg { width: 72%; height: 72%; }
body.tight .stra .rwpdice { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.tight .stra.name_colour { font: 800 20px Georgia, serif; color: var(--nc, var(--tale)); }
body.tight .stra.name_colour.ncg { color: var(--gild2); }
body.tight .stra.theme::before { content: ''; width: 70%; height: 70%; border-radius: var(--r-ctl); background: linear-gradient(135deg, #7d4fd8, #b794f4 40%, var(--gild2)); }
body.tight .stttl { padding: 4px 6px; border-radius: var(--sp-2); background: linear-gradient(135deg, var(--gild3), var(--gild2) 45%, var(--gild1)); color: #2a1a04; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.15; }
body.tight .stra.big { width: calc(var(--sp-8) * 4); height: calc(var(--sp-8) * 4); }
/* gilded looks: the existing art through a gold filter and a slow shine (Legend steps 1-4) */
body.tight .gild img, body.tight .gild .cardback, body.tight .cardback.gild, body.tight .rwpdice.gild svg, body.tight .rzav.gild .rzavart, body.tight .rzav.gild .rzavframe { filter: sepia(1) saturate(2.4) hue-rotate(-10deg) brightness(1.06) contrast(1.05); }
body.tight .stra.gild { box-shadow: 0 0 0 1px var(--gild2) inset; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gild2) 22%, var(--inset)), var(--inset)); }
body.tight .stra.gild::after, body.tight .cardback.gild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 194, .5) 48%, transparent 60%); background-size: 260% 100%; animation: stshine 3.6s linear infinite; pointer-events: none; }
body.tight .cardback.gild { position: relative; }
body.tight .rzns.ncg .rznsn { background: linear-gradient(90deg, var(--gild2), var(--gild3), var(--gild2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tight .nc.ncg, body.tight .nsw.ncg { --nc: var(--gild2); }
/* T596: a gilded colour's swatch is its base colour under the gold metal (the name it gives is the gold gradient, .rzns.ncg); a locked swatch
   still shows its colour, dimmed, under the lock */
body.tight .nsw.ncg > span:first-child { background: linear-gradient(135deg, var(--gild3), var(--ncb, var(--gild2)) 50%, var(--gild1)); }
body.tight .nsw.locked > span:first-child { opacity: .45; }
body.tight .rznsf.gild { color: var(--gild2); }
/* the books: 14 and the finale on a plank, Legend after */
body.tight .stfintag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: var(--r-tag); background: #000a; color: var(--tale); white-space: nowrap; }
body.tight .ststrip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)) minmax(0, 2fr); gap: var(--sp-1); height: var(--h-xs); align-items: end; }
body.tight .ststrip > i { display: block; height: 76%; border-radius: var(--sp-1) var(--sp-1) 0 0; background: var(--track); position: relative; overflow: hidden; }
body.tight .ststrip > i:nth-child(3n+1) { height: 84%; } body.tight .ststrip > i:nth-child(4n+2) { height: 70%; }
body.tight .ststrip > i.own { background: linear-gradient(180deg, color-mix(in srgb, var(--tale) 85%, #fff), var(--tale) 40%, color-mix(in srgb, var(--tale) 60%, #000)); }
body.tight .ststrip > i.now > b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--tale); }
body.tight .ststrip > i.fin { height: 100%; border-radius: var(--sp-1); }
/* the season-end card on top of My Tale */
body.tight .stend { border: 1px solid color-mix(in srgb, var(--tale) 55%, var(--line)); border-radius: var(--r-box); background: color-mix(in srgb, var(--tale) 7%, var(--card)); padding: var(--sp-6); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-5) var(--sp-6); align-items: center; margin-bottom: var(--sp-6); }
body.tight .stend .ststrip { width: 220px; }
body.tight .stendt { font-size: var(--fs-xl); }
/* the compact form (side panel) and the avatar: Legend gilds the ring, the seal sits on the frame */
body.tight .stcompact .stseg { height: var(--sp-3); gap: 2px; }
body.tight .xpring.legend::before { background: conic-gradient(from 200deg, var(--gild1), var(--gild2), var(--gild3), var(--gild2), var(--gild1)); }
/* moments: the chapter toast (Wear it) and the gilded Legend card */
body.tight .stlayer { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
body.tight .sttoast { pointer-events: auto; position: absolute; right: 24px; bottom: 24px; width: 380px; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-5); border-radius: var(--r-box); background: var(--panel); border: 1px solid color-mix(in srgb, var(--tale) 60%, var(--line)); box-shadow: 0 12px 32px #000a; }
body.tight .sttoast.second { bottom: 120px; }
body.tight .sttoast .stra { width: var(--h-lg); height: var(--h-lg); flex: none; }
body.tight .stlbl { color: var(--tale); }
body.tight .sttoast.shelfy .stlbl { color: var(--text2); }
body.tight .stlgdim { pointer-events: auto; position: absolute; inset: 0; background: #000b; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); }
body.tight .stlgcard { width: 400px; max-width: 100%; border-radius: var(--r-box); padding: var(--sp-7) var(--sp-7) var(--sp-6); background: linear-gradient(160deg, color-mix(in srgb, var(--gild2) 16%, var(--panel)), var(--panel) 50%); border: 1px solid var(--gild2); display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); text-align: center; position: relative; overflow: hidden; }
body.tight .sthalo { position: absolute; top: -120px; left: 50%; width: calc(var(--sp-8) * 11); height: calc(var(--sp-8) * 11); transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--gild2) 30%, transparent), transparent 60%); animation: sthalo 4s ease-in-out infinite; pointer-events: none; }
body.tight .stlgbig { width: calc(var(--sp-8) * 4); height: calc(var(--sp-8) * 4); position: relative; display: flex; align-items: center; justify-content: center; }
body.tight .stlgt { font-size: var(--fs-2xl); font-weight: 800; }
body.tight .stgold { color: var(--gild2); }
body.tight .stlgsteps { display: flex; gap: var(--sp-3); }
body.tight .stlgsteps i { width: 28px; height: var(--sp-3); border-radius: var(--sp-1); background: var(--track); }
body.tight .stlgsteps i.on { background: linear-gradient(90deg, var(--gild1), var(--gild2), var(--gild3)); }
@media (max-width: 700px) {
  body.tight .stseg { height: var(--sp-4); gap: 2px; }
  body.tight .stend { grid-template-columns: 1fr; padding: var(--sp-5); }
  body.tight .stend .ststrip { width: 100%; }
  body.tight .sttoast { left: 12px; right: 12px; width: auto; top: 64px; bottom: auto; }
  body.tight .sttoast.second { top: 152px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { body.tight .stra.gild::after, body.tight .cardback.gild::after, body.tight .stcompact.legend .stseg > i > b, body.tight .sthalo { animation: none !important; } }
body.tight .stcompact.legend .sttlname, body.tight .sthd.legend .sthdt { background: linear-gradient(90deg, var(--gild1), var(--gild2) 45%, var(--gild3) 60%, var(--gild2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.tight .stcompact.legend .stseg > i > b { background: linear-gradient(90deg, var(--gild1), var(--gild2) 40%, var(--gild3) 55%, var(--gild2) 70%); }

/* ---------- T383 round 2 + T421 (owner 2026-10-31, mockup LF6HuAhzJe8CAS6o89YHMA signed off; seasontrack.js, ornament.js) ----------
   Season colours: one main and one second colour per season (its book, its thread head, its moon and seal); Compleated adds the oil. */
body.tight { --s-ia: #e9b44c; --s-ia2: #fff0c2; --s-ea: #c3d0e6; --s-ea2: #5fbfb2; --s-s1: #41c4d6; --s-s12: #d95ba8; --s-s2: #e9e3d7; --s-s22: #8fc25a; --oil: #1d171b; --s-s3: #f2a487; --s-s32: #f7ead9; }
body.tight.light { --s-ia: #9a6a10; --s-ia2: #f3d68e; --s-ea: #4d6a8f; --s-ea2: #2e7f77; --s-s1: #127f8f; --s-s12: #a8327a; --s-s2: #6f675a; --s-s22: #4f7d1f; --s-s3: #b5573a; --s-s32: #f1d9c4; }
body.tight .rzmoon { display: inline-flex; flex: none; }
body.tight .rzmoon > svg, body.tight .rzorn > svg { width: 100%; height: 100%; display: block; }
/* the portrait ornament: one crest on the top edge (RZ.ornamentEl sets its size, its place and the ring that cuts it from the frame) */
body.tight .rzorn { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--bar); box-shadow: 0 0 0 var(--ob, 1px) var(--bar); z-index: 3; display: flex; pointer-events: none; }
body.tight .xpring { overflow: visible; }
body.tight .ptmed .rzorn { display: none; }   /* T799: the board shows no crest (playtest.js passes ornament null; this catches any other medallion picture) */
/* the head: where you are and what comes next */
body.tight .sttales { container-type: inline-size; }
body.tight .sthd { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
body.tight .sthdmoon { width: 40px; height: 40px; }
body.tight .sthdt { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15; }
body.tight .sthdnext { display: inline-flex; align-items: center; gap: var(--sp-4); margin-left: auto; font-size: var(--fs-sm); color: var(--text2); min-width: 0; }
body.tight .sthdnext > b { color: var(--tale); white-space: nowrap; }
body.tight .sthd.legend .sthdnext > b { color: var(--gild2); }
body.tight .stra.mini { width: var(--h-xs); height: var(--h-xs); flex: none; border: 1px solid var(--line); }
@container (max-width: 560px) { body.tight .sthdnext { margin-left: 0; width: 100%; } body.tight .sthdt { font-size: var(--fs-xl); } body.tight .sthd > .col { flex: 1 1 0; } }
/* one thread: every chapter a tile, the thread under the tiles the progress bar; Legend gilded; then the dashed ornament */
body.tight .stthr { --t: 52px; --gap: 6px; display: flex; flex-wrap: wrap; row-gap: var(--sp-7); padding-top: var(--sp-6); }
@container (min-width: 1000px) { body.tight .stthr:not(.multi) { --t: min(56px, calc((100cqw - 16px) / 22 - var(--gap))); flex-wrap: nowrap; } }
/* T481: a long season (more than 22 slots) splits into even rows so the last Legend step never drops onto a row of its own: two rows on desktop, three on tablet */
@container (min-width: 1000px) { body.tight .stthr.multi { --t: min(56px, calc((100cqw - 16px - var(--sp-5)) / var(--half, 19) - var(--gap))); } }
@container (min-width: 560px) and (max-width: 999px) { body.tight .stthr.multi { --t: min(56px, calc((100cqw - 16px) / var(--third, 13) - var(--gap))); } }
@container (max-width: 400px) { body.tight .stthr { --t: 46px; } }
body.tight .stnw { display: flex; flex-direction: column; width: calc(var(--t) + var(--gap)); position: relative; flex: none; }
body.tight .stnw.fin { width: calc(2 * var(--t) + 2 * var(--gap)); }
body.tight .stnd { width: var(--t); height: var(--t); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--inset); position: relative; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
body.tight .stnw.fin .stnd { width: calc(2 * var(--t) + var(--gap)); }
body.tight .stnd > .stra { width: 66%; height: 66%; aspect-ratio: auto; background: transparent; }
body.tight .stnw.fin .stnd > .stra { inset: 4px; position: absolute; width: auto; height: auto; }
body.tight .stnd > .stra.seal { overflow: visible; }
body.tight .stseal2 { width: 100%; height: 100%; }
body.tight .stn { position: absolute; top: 2px; left: 4px; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1; z-index: 1; }
body.tight .stck { position: absolute; top: -6px; right: -6px; width: var(--sp-6); height: var(--sp-6); border-radius: 50%; background: var(--tale); color: #17130a; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--panel); z-index: 1; }
body.tight .stnw.lock .stnd { opacity: .5; }
body.tight .stnw.lock .stnd > .stra { filter: grayscale(.8); }
body.tight .stnw.own .stnd { border-color: color-mix(in srgb, var(--tale) 55%, var(--line)); }
body.tight .stnw.now .stnd { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
body.tight .stnw.own .stn, body.tight .stnw.now .stn { color: var(--tale); }
body.tight .stnd .stfintag { bottom: 2px; font-size: 11px; padding: 0 4px; }
body.tight .stsg { display: block; height: 4px; margin-top: var(--sp-4); background: var(--track); position: relative; }
body.tight .stnw:first-child .stsg { border-radius: var(--r-pill) 0 0 var(--r-pill); }
body.tight .stnw:last-child .stsg { border-radius: 0 var(--r-pill) var(--r-pill) 0; margin-right: var(--gap); }
body.tight .stsg > b { position: absolute; inset: 0 auto 0 0; width: calc(var(--f) * 100%); background: var(--tale); }
body.tight .stnw.leg .stsg { background: color-mix(in srgb, var(--gild2) 14%, var(--track)); }
body.tight .stnw.leg .stsg > b { background: linear-gradient(90deg, var(--gild1), var(--gild2), var(--gild3)); }
body.tight .stnw.leg .stnd { border-color: color-mix(in srgb, var(--gild2) 40%, var(--line)); }
body.tight .stnw.leg.own .stnd { border-color: var(--gild2); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--gild3) 22%, var(--inset)), var(--inset)); }
body.tight .stnw.leg.now .stnd { border-color: var(--gild2); box-shadow: 0 0 0 1px var(--gild2); }
body.tight .stnw.leg .stn { color: var(--gild2); }
body.tight .stnw.leg .stck { background: var(--gild2); }
body.tight .stnw.orn .stnd { border-style: dashed; background: transparent; flex-direction: column; gap: var(--sp-1); font-size: 11px; color: var(--muted); cursor: default; }
body.tight .stnw.orn .stsg { background: repeating-linear-gradient(90deg, var(--track) 0 4px, transparent 4px 8px); }
body.tight .stnw.orn .stsg > b { background: var(--gild2); }
body.tight .stlgflag { position: absolute; top: -20px; left: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gild2); white-space: nowrap; }
body.tight .stlgflag::before { content: ""; display: inline-block; width: 6px; aspect-ratio: 1; transform: rotate(45deg); background: var(--gild2); margin-right: 4px; vertical-align: 1px; }
body.tight .stnw.legstart { margin-left: var(--sp-5); }
body.tight .stnw.legstart::before { content: ""; position: absolute; left: calc(-1 * var(--sp-5)); bottom: 0; width: var(--sp-5); height: 4px; background: linear-gradient(90deg, var(--tale), var(--gild1)); opacity: .35; }
body.tight .stnw.own + .stnw.legstart::before, body.tight .stnw.legstart.own::before, body.tight .stnw.legstart.now::before { opacity: 1; }
@container (max-width: 999px) { body.tight .stnw.legstart { margin-left: 0; } body.tight .stnw.legstart::before { display: none; } }
body.tight .stfoot2 .prftoday { max-width: 420px; }
/* ---------- the shelf (T471, owner sign-off 2026-11-04, mockup 213CWnHdpoiZdGw4XofsVN v15; seasontrack.js shelf()) ----------
   This season's book face out (.sbk), a flat liquid-glass cover: the season's cover art (--fill), its spine art blended in along the left 40%
   (--sp; the far part a blurred copy so no straight lines reach the cover), a light sweep now and then, the moon above and the title on a thin
   glass band in the season's foil, all inside the cover area (--cl, from the end of the spine to the right edge). Past seasons are flat glass
   spines (.sbsp) with their spine art; the next season a dashed tile. A season without art shows the CSS prism (--p1..4) on both.
   Adding a season's art is ONE line below (.sbk.s-<key> / .sbsp.s-<key>, files in img/seasons). */
@font-face { font-family: 'Tenor Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/tenor-sans-latin.woff2) format('woff2'); }
body.tight { --sbglass: linear-gradient(160deg, #22184a, #140e2c 60%, #0d0920); --sbliq: .9; }
body.tight.light { --sbglass: linear-gradient(160deg, #f3ecff, #ffe6f2 60%, #fff1dc); --sbliq: .62; }
body.tight :is(.sbk, .sbsp).s-ia { --fill: url(/static/img/seasons/invite-cover.webp); --fill-legend: url(/static/img/seasons/invite-cover-legend.webp); --fill-spine: url(/static/img/seasons/invite-spine.webp); --fill-spine-legend: url(/static/img/seasons/invite-spine-legend.webp); }
body.tight :is(.sbk, .sbsp).s-ea { --fill: url(/static/img/seasons/early-cover.webp); --fill-legend: url(/static/img/seasons/early-cover-legend.webp); --fill-spine: url(/static/img/seasons/early-spine.webp); --fill-spine-legend: url(/static/img/seasons/early-spine-legend.webp); }
body.tight .sbshelf { --bw: 150px; --bh: 208px; --sw: 34px; --sh: 164px; display: flex; flex-direction: column; }
body.tight .sbrow { display: flex; align-items: flex-end; gap: var(--sp-4); padding: var(--sp-7) var(--sp-6) 0; overflow-x: auto; scrollbar-width: none; }
body.tight .sbrow > .sbk { margin-right: var(--sp-3); }
body.tight .sbrail { height: 3px; border-radius: 999px; position: relative; margin-top: 4px; background: linear-gradient(90deg, transparent, var(--accent) 8%, var(--sec) 50%, var(--accent) 92%, transparent); box-shadow: 0 0 12px var(--accent), 0 0 3px var(--accent); }
body.tight .sbrail::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 28px; background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent); pointer-events: none; }
body.tight .sbhudrow { display: flex; justify-content: center; width: var(--bw); margin-left: var(--sp-6); padding-top: var(--sp-4); }
body.tight .sbhud { display: inline-flex; align-items: center; gap: var(--sp-3); padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 12px color-mix(in srgb, var(--accent) 22%, transparent); }
body.tight .sbbar { width: 46px; height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; }
body.tight .sbbar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--sec)); box-shadow: 0 0 6px var(--accent); }
body.tight .sbhud.leg .sbbar > i { background: linear-gradient(90deg, var(--gild1), var(--gild2), var(--gild3)); box-shadow: 0 0 6px var(--gild2); }
/* the glass card, shared by the book and the spines */
/* the books are dark glass in both themes, so they keep the dark theme's season and gilt colours (moons, foil, prism) */
body.tight :is(.sbk, .sbsp, .sbsoon) { --gild1: #9a6b1e; --gild3: #fff0c2; --s-ia: #e9b44c; --s-ia2: #fff0c2; --s-ea: #c3d0e6; --s-ea2: #5fbfb2; --s-s1: #41c4d6; --s-s12: #d95ba8; --s-s2: #e9e3d7; --s-s22: #8fc25a; --s-s3: #f2a487; --s-s32: #f7ead9; --bar: #1a1923; }
body.tight :is(.sbk, .sbsp) { position: relative; flex: none; padding: 0; border: 0; overflow: hidden; isolation: isolate; cursor: pointer; color: #fff; background: var(--sbglass); font: inherit; }
body.tight :is(.sbk, .sbsp) > * { position: absolute; }
body.tight .sbliq { inset: 0; z-index: -2; opacity: var(--sbliq);
  background: radial-gradient(circle at 18% 22%, var(--p1), transparent 42%), radial-gradient(circle at 86% 26%, var(--p2), transparent 46%), radial-gradient(circle at 26% 86%, var(--p3), transparent 46%), radial-gradient(circle at 84% 84%, var(--p4), transparent 46%);
  background-size: 180% 180%; }
body.tight .sbfill { inset: 0; z-index: -1; background: var(--fill, none) 50% 30% / 118% auto no-repeat; }
body.tight .sbk.gilt .sbfill { background-image: var(--fill-legend, var(--fill, none)); }
body.tight .sbsp .sbfill { background: var(--fill-spine, none) center / 100% 100% no-repeat; }
body.tight .sbsp.gilt .sbfill { background-image: var(--fill-spine-legend, var(--fill-spine, none)); }
/* the book */
body.tight .sbk { --cl: 18%; width: var(--bw); height: var(--bh); border-radius: var(--r-tag) var(--r-box) var(--r-box) var(--r-tag);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), inset 0 0 22px -6px color-mix(in srgb, var(--p1) 70%, transparent), 0 14px 26px -14px color-mix(in srgb, var(--p1) 75%, transparent), 0 0 24px -8px color-mix(in srgb, var(--p1) 60%, transparent); }
body.tight .sbk.gilt { box-shadow: inset 0 0 0 1.5px rgba(255, 240, 200, .95), inset 0 0 26px -4px rgba(255, 210, 122, .8), 0 14px 26px -12px rgba(255, 200, 110, .9), 0 0 30px -4px rgba(255, 210, 122, .85); }
body.tight .sbk.sel { outline: 0; }
body.tight :is(.sbk, .sbsp):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.tight .sbband { left: 0; top: 0; bottom: 0; width: 40%; z-index: 0; pointer-events: none; }
body.tight .sbband::before, body.tight .sbband::after { content: ""; position: absolute; inset: 0; background: var(--fill-spine, none) left center / 100% 100% no-repeat; }
body.tight .sbk.gilt .sbband::before, body.tight .sbk.gilt .sbband::after { background-image: var(--fill-spine-legend, var(--fill-spine, none)); }
body.tight .sbband::before { -webkit-mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.8) 44%, rgba(0,0,0,.45) 56%, rgba(0,0,0,.14) 64%, transparent 68%); mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.8) 44%, rgba(0,0,0,.45) 56%, rgba(0,0,0,.14) 64%, transparent 68%); }
body.tight .sbband::after { filter: blur(5px); -webkit-mask-image: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.3) 52%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.34) 74%, rgba(0,0,0,.16) 87%, transparent 100%); mask-image: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.3) 52%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.34) 74%, rgba(0,0,0,.16) 87%, transparent 100%); }
body.tight .sbspec { inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .28) 47%, transparent 58%) 130% 0 / 260% 100% no-repeat; pointer-events: none; }
body.tight .sbem { z-index: 2; left: calc(var(--cl) + (100% - var(--cl)) / 2); translate: -50% 0; top: 11%; width: 27%; aspect-ratio: 1; display: grid; place-items: center; filter: drop-shadow(0 0 8px var(--p1)) drop-shadow(0 0 2px rgba(255, 255, 255, .8)); }
body.tight .sbem > * { width: 100% !important; height: 100% !important; }
/* the title band: thin dark glass across the cover area, its ends and hairlines fading inside it; the title in the season's foil */
body.tight .sbpn { z-index: 2; left: var(--cl); right: 0; top: 47%; display: flex; flex-direction: column; align-items: center; text-align: center; isolation: isolate;
  padding: calc(var(--bw) * .055) calc(var(--bw) * .04); gap: calc(var(--bw) * .022);
  --hl: rgba(220, 200, 255, .5); --f1: #f6f0ff; --f2: #d9c6ff; --f3: #ffd9a0; --st: #e6dcff; }
body.tight .sbpn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(9, 5, 26, .66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
body.tight .sbk.gilt .sbpn::before { background: rgba(22, 11, 2, .68); }
body.tight .sbpn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-top: 1px solid var(--hl); border-bottom: 1px solid var(--hl);
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 30%, #000 70%, transparent 94%); mask-image: linear-gradient(90deg, transparent 6%, #000 30%, #000 70%, transparent 94%); }
body.tight .sbk.s-ia .sbpn { --hl: rgba(255, 214, 140, .55); --f1: #f3e9ff; --f2: #cdb2ff; --f3: #ffd27e; --st: #e2d2ff; }
body.tight .sbk.s-ea .sbpn { --hl: rgba(140, 240, 230, .5); --f1: #eafffd; --f2: #8cefe6; --f3: #ffb6d6; --st: #c6f3ee; }
body.tight .sbk.s-s1 .sbpn { --hl: rgba(140, 230, 240, .5); --f1: #effeff; --f2: #8fe6f0; --f3: #ffb0dc; --st: #c9f1f5; }
body.tight .sbk.gilt .sbpn { --hl: rgba(255, 220, 150, .6); --f1: #fffaf0; --f2: #ffe3a0; --f3: #f2bd55; --st: #f6dfae; }
body.tight .sbpn b { font-family: 'Tenor Sans', 'Atkinson Hyperlegible Next', sans-serif; font-weight: 400; font-size: calc(var(--bw) * .118); line-height: 1.15; letter-spacing: .12em; text-transform: uppercase; text-wrap: balance;
  background: linear-gradient(180deg, var(--f1) 5%, var(--f2) 45%, var(--f3) 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(4, 2, 12, .9)) drop-shadow(0 0 3px rgba(4, 2, 12, .55)); }
body.tight .sbpn b > span { display: block; }
body.tight .sbpn i { font-style: normal; font-weight: 700; font-size: max(.5rem, calc(var(--bw) * .052)); letter-spacing: .14em; line-height: 1.15; text-transform: uppercase; color: var(--st); text-shadow: 0 1px 0 rgba(4, 2, 12, .8); opacity: .9; text-wrap: balance; }
/* the spines */
body.tight .sbsp { width: var(--sw); height: var(--sh); border-radius: var(--r-tag); display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding-top: var(--sp-4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 16px -6px var(--p1); }
body.tight .sbsp > :is(.sbsm, .sbsn, .sbrib) { position: relative; }
body.tight .sbsp:not(.s-ia):not(.s-ea)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 10, 34, .42); border-radius: inherit; }
body.tight .sbsm { width: 62% !important; height: auto !important; aspect-ratio: 1; flex: none; }
body.tight .sbsn { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 0 3px rgba(10, 6, 30, .95), 0 0 8px rgba(10, 6, 30, .8); }
body.tight .sbsp.gilt .sbsn { color: #fff6d8; text-shadow: 0 0 3px rgba(40, 20, 0, .95), 0 0 8px rgba(40, 20, 0, .8); }
body.tight .sbsp:has(.sbrib) { padding-top: var(--sp-7); }
body.tight .sbsp.sel { box-shadow: 0 0 0 2px var(--accent), 0 0 16px -4px var(--accent); }
body.tight .sbrib { position: absolute !important; top: 0; right: 3px; width: 7px; height: 28px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
body.tight .sbsoon { flex: none; width: var(--sw); height: var(--sh); border: 1px dashed var(--line); border-radius: var(--r-tag); display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding-top: var(--sp-4); opacity: .8; }
body.tight .sbsoon .sbsm { opacity: .55; }
body.tight .sbsoon .sbsn { color: var(--muted); text-shadow: none; font-weight: 700; letter-spacing: .06em; text-transform: none; }
@container (max-width: 560px) {
  body.tight .sbshelf { --bw: 104px; --bh: 144px; --sw: 28px; --sh: 140px; }
  body.tight .sbsn { font-size: .6rem; letter-spacing: .06em; }
  body.tight .sbpn i { letter-spacing: .05em; }
}
@media (prefers-reduced-motion: no-preference) {
  body.tight .sbliq { animation: sbLiq 16s ease-in-out infinite alternate; }
  body.tight .sbk .sbfill { animation: sbDrift 24s ease-in-out infinite alternate; }
  body.tight .sbspec { animation: sbSpec 9s ease-in-out infinite; }
}
/* My Tale > Looks > Portrait ornament: the frame picker's tiles, a little smaller */
body.tight .ornpicks .avfpick { padding-top: var(--sp-6); }

/* ---------- Home (T406, owner 2026-10-29, direction A of mockup t406-home "Clear sections"; home.js) ----------
   One column of titled sections with a divider and 32 px around each; cards on --card with the box radius. Art panel heights are the
   design-scale exceptions (.hmart, tests/test_design_scale.py ALLOW). Breakpoints: 1100 Leaders under the Play banner, 900 tablet, 700 phone. */
body.tight .page.narrow.homepage > .inner { max-width: 1240px; gap: 0; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
body.tight .hmsec { display: flex; flex-direction: column; gap: var(--sp-6); min-width: 0; }
body.tight .hmsec + .hmsec { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--line); }
body.tight .hmsh { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); }
body.tight .hmsh h2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); }
body.tight .hmsh .hmmore { margin-left: auto; }
body.tight .hmdot { width: var(--sp-4); height: var(--sp-4); border-radius: var(--r-pill); background: var(--accent); flex: none; }
body.tight .hmmore { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: 0 var(--sp-2); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-label); white-space: nowrap; }
body.tight .hmmore:hover, body.tight .hmmore:focus-visible { color: var(--text); }
body.tight .hmacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .hmcard { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; padding: var(--sp-7); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); }
body.tight .hmch { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .hmch h3 { margin: 0; font-size: var(--fs-lg); flex: none; }
body.tight .hmch .hmmore { margin-left: auto; }
body.tight .hmch > .uico { color: var(--gold); }
body.tight .hmclip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .hmclamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
body.tight .hmempty { padding: var(--sp-4) 0; }
body.tight .hmeye { width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-pill); flex: none; }

/* greeting + search */
body.tight .hmgreet { display: flex; align-items: center; gap: var(--sp-5); }
body.tight .hmgreet h1 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--fs-3xl); line-height: 1.2; }
body.tight .hmhero .hsrch-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Play: the banner and the Leaders side by side, stacked under 1100 */
body.tight .hmplaygrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-6); align-items: stretch; }
/* the right column alone (Leaders, and the T822 Home spot under it) when the board code is missing (no RZ.startPlaytest, so no Play card):
   it keeps its place on the right, or takes the one column below 1100 px (the last grid line, whatever the column count) */
body.tight .hmplaygrid > :only-child { grid-column: -2 / -1; }
body.tight .hmplay { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: var(--sp-7); align-items: center; padding: var(--sp-7); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: var(--r-box); background: var(--card); }
body.tight .hmplaybg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; pointer-events: none; }
body.tight.light .hmplaybg { opacity: .10; }
body.tight .hmplay > :not(.hmplaybg) { position: relative; }
body.tight .hmplaymain { gap: var(--sp-6); min-width: 0; }
body.tight .hmplay h3 { margin: 0; font-size: var(--fs-2xl); line-height: 1.25; }
body.tight .hmplayfoot { display: flex; align-items: center; gap: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
body.tight.light .hmplay .btn.gold { color: var(--onAccent); }   /* light gold is dark: white text keeps it readable */
/* T812 First table (mockup YTn85KSKx8QJHsMF1HCLae, variant B): the deck chip on the Play card and the picked deck in Choose a deck */
body.tight .hmftchip { display: flex; align-items: center; gap: var(--sp-5); max-width: 420px; padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-3); text-align: left; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-box); background: color-mix(in srgb, var(--bg) 70%, transparent); cursor: pointer; }
body.tight .hmftchip:hover, body.tight .hmftchip:focus-visible { border-color: var(--purple, var(--accent)); }
body.tight .hmftart { flex: none; width: 56px; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); background: var(--panel) 50% 24% / cover no-repeat; }
body.tight .hmftname { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .hmftchg { flex: none; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-label); }
body.tight .hmftcard, body.tight .hmftrow { font: inherit; color: var(--text); text-align: left; cursor: pointer; padding: 0; }
body.tight .hmftrow { padding: var(--sp-4); }
body.tight .hmftcard .fdtext { padding-bottom: var(--sp-6); }
body.tight .hmftcard[aria-pressed="true"], body.tight .hmftrow[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
body.tight .hmftcard:focus-visible, body.tight .hmftrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.tight .hmftbox .fdhead h2 { flex: 1 1 auto; }
body.tight .hmftbox #ftlink { min-width: 0; min-height: var(--h-md); }
body.tight .hmquiet { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--text2); font-size: var(--fs-sm); font-weight: var(--fw-label); }
body.tight .hmshot { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--inset); overflow: hidden; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
body.tight .hmshot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
body.tight .hmlb { align-self: start; }   /* audit H10: as tall as its rows, not as Play + Planned games */
body.tight .hmlb .seg { align-self: flex-start; max-width: 100%; }
body.tight .hmlblist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
body.tight .hmlbrow { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-md); border-bottom: 1px solid var(--line); }
body.tight .hmlbrow:last-child { border-bottom: 0; }
body.tight .hmlbrow.me { margin-top: var(--sp-2); padding: 0 var(--sp-3); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .hmlbrank { flex: 0 0 var(--sp-6); text-align: center; color: var(--muted); }
body.tight .hmlbrow.r1 .hmlbrank { color: var(--gold); }
body.tight .hmlbname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-title); }
body.tight .hmlbfig { flex: none; color: var(--muted); font-size: var(--fs-sm); }
body.tight .hmlbmore { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); }
body.tight .hmlbmore:hover { color: var(--accent); }
/* T485 Planned games (mockup DTa85468xov9zG8cjJF4ah round 3, variant 3): a card under the banner in one Play column, Leaders stretched beside
   it to the same height; below 1100 the column is full width, so the card sits between the banner and Leaders. A row: line 1 when · host
   (· Friends), line 2 the mode chip · seats; the answers at the end over both lines (on a phone on line 1, the chip has line 2 alone). */
body.tight .hmplaycol { display: flex; flex-direction: column; gap: var(--sp-6); min-width: 0; }
body.tight .hmpg { gap: var(--sp-2); padding: var(--sp-6) var(--sp-7); }
body.tight .hmpg .hmch { margin-bottom: var(--sp-2); }
body.tight .hmpgrows { display: flex; flex-direction: column; min-width: 0; }
body.tight .hmpgempty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); padding: var(--sp-2) 0; }
body.tight .hmpgdc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-ctl); background: color-mix(in srgb, #5865f2 10%, transparent); }
body.tight .hmpgdcico { display: inline-flex; flex: none; color: #8891f2; }
body.tight.light .hmpgdcico { color: #4752c4; }
body.tight .hmpgdct { flex: 1 1 170px; min-width: 0; font-size: var(--fs-sm); font-weight: var(--fw-label); }
body.tight .hmpgdcacts { display: flex; align-items: center; gap: var(--sp-5); }
body.tight .hmpgdcacts a { text-decoration: none; }
body.tight .btn.hmpgjoin { border-color: transparent; background: #5865f2; color: #fff; }
body.tight .btn.hmpgjoin:hover, body.tight .btn.hmpgjoin:focus-visible { background: #4752c4; }
body.tight .hmpgx { width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-pill); flex: none; }

/* Continue: the newest deck (the page's one primary button) and the others as rows */
body.tight .hmcont { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-6); align-items: start; }
body.tight .hmcont.solo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
body.tight .hmlead { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); overflow: hidden; }
body.tight .hmart.hmleadart { display: block; min-height: 196px; background-color: var(--inset); background-size: cover; background-position: center 30%; cursor: pointer; }
body.tight .hmleadbody { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); padding: var(--sp-7); min-width: 0; }
body.tight .hmleadbody h3 { margin: 0; font-size: var(--fs-2xl); line-height: 1.2; overflow-wrap: anywhere; }
body.tight .hmleadbody .hmeye { margin-left: auto; }
body.tight .hmleadbody .hmacts { margin-top: var(--sp-4); }
body.tight .hmlead .prfbar > i { background: var(--accent); }
body.tight .hmdrows { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .hmdrow { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--h-lg); padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); cursor: pointer; }
body.tight .hmdrow:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
body.tight .hmthumb { width: 72px; height: var(--h-md); flex: none; border-radius: var(--r-ctl); background-color: var(--inset); background-size: cover; background-position: center 30%; }
body.tight .hmdname { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: var(--fw-title); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
body.tight .hmgo { color: var(--muted); display: inline-flex; flex: none; }

/* Start something new: the three doors, art on top, one line (behind an (i) on tablets), an outline button */
body.tight .hmdoors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
body.tight .hmdoor { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); overflow: hidden; }
body.tight .hmart.hmdoorart { display: block; width: 100%; height: 140px; object-fit: cover; object-position: 50% 25%; cursor: pointer; }
body.tight .hmdoorbody { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; padding: var(--sp-6) var(--sp-7) var(--sp-7); }
body.tight .hmdoor h3 { display: flex; align-items: center; gap: var(--sp-4); margin: 0; font-size: var(--fs-xl); }
body.tight .hmdoor h3 > :first-child { color: var(--accent); display: inline-flex; flex: none; }
body.tight .hmdoor h3 .navico svg { width: 20px; height: auto; }
body.tight .hmdoori { display: none; flex: none; }
body.tight .hmdoor p { margin: 0; color: var(--text2); }
body.tight .hmdoor .hmacts { margin-top: auto; padding-top: var(--sp-5); }
body.tight .hmalt { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-label); }

/* News and your progress: What's new wide on the left, My Tale on the right */
body.tight .hmduo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
body.tight .hmduo.wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
body.tight .hmduo.one { grid-template-columns: minmax(0, 1fr); }
body.tight .hmnews { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-width: 0; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); overflow: hidden; }
body.tight .hmart.hmnewsart { position: relative; display: block; min-height: 180px; padding: 0; border: 0; background: var(--inset); cursor: pointer; }
body.tight .hmart.hmnewsart { overflow: hidden; }
body.tight .hmnewsart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }   /* T569: whole post image always fits */
body.tight .hmnewsart img.hmnewsblur { object-fit: cover; filter: blur(18px) brightness(.55); transform: scale(1.15); }
body.tight .hmnewsbody { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-7); min-width: 0; }
body.tight .hmnewsbody h3 { margin: 0; font-size: var(--fs-xl); line-height: 1.3; }
body.tight .hmnewsbody .hmacts { margin-top: auto; padding-top: var(--sp-4); }
body.tight .hmnews .hmpager { margin-left: auto; align-items: center; }
body.tight .hmnews .iconbtn2 { width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-pill); }
body.tight .hmchip { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: 0 var(--sp-5); border-radius: var(--r-pill); background: var(--chip); color: var(--text2); font-size: var(--fs-sm); }
body.tight .hmtale .hmch .navdot { flex: none; }
body.tight .hmreward { display: flex; align-items: center; gap: var(--sp-6); width: 100%; padding: var(--sp-5); border-radius: var(--r-box);
  border: 1px solid color-mix(in srgb, var(--tale) 35%, var(--line)); background: color-mix(in srgb, var(--tale) 8%, transparent); }
body.tight .hmart.hmrart { width: 96px; height: 134px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--r-ctl);
  border: 2px solid var(--tale); background: var(--inset); box-shadow: 0 0 18px color-mix(in srgb, var(--tale) 35%, transparent); }
body.tight .hmrart > * { max-width: 100%; max-height: 100%; }
body.tight .hmrart img.rwparena, body.tight .hmrart .rwpback, body.tight .hmrart .rwpback > * { width: 100%; height: 100%; object-fit: cover; }
body.tight .hmrart .rwph { width: 100%; height: 100%; }
body.tight .hmtl { color: var(--tale); }
body.tight .hmrname { font-size: var(--fs-lg); overflow-wrap: anywhere; }

/* Latest spoilers and From the Workshop, half and half */
body.tight .hmrows { display: flex; flex-direction: column; min-width: 0; }
body.tight .hmrow { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-lg); padding: var(--sp-3) 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; }
body.tight button.hmrow { cursor: pointer; }
body.tight .hmrows > .hmrow:last-child { border-bottom: 0; }
body.tight button.hmrow:hover b, body.tight button.hmrow:focus-visible b, body.tight .hmrowgo:hover b, body.tight .hmrowgo:focus-visible b { color: var(--accent); }
body.tight .hmrow .tag { flex: none; }
body.tight .hmrowgo { display: flex; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .hmseticon { width: var(--h-xs); height: var(--h-xs); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--chip); }
body.tight .hmseticon img { width: var(--sp-6); height: var(--sp-6); object-fit: contain; filter: invert(.85); }
body.tight.light .hmseticon img { filter: none; }
body.tight .hmgain { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: var(--fs-sm); }
body.tight .hmgain > .uico { color: var(--accent); }
body.tight .hmgrp { padding-top: var(--sp-5); }
body.tight .hmws .seg { align-self: flex-start; max-width: 100%; }
body.tight .hmwslist { max-height: 480px; overflow-y: auto; }
body.tight .hmwslist > * { flex-shrink: 0; }

@media (max-width: 1100px) {
  body.tight .hmplaygrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {   /* tablet */
  body.tight .hmcont, body.tight .hmcont.solo { grid-template-columns: minmax(0, 1fr); }
  body.tight .hmplay { grid-template-columns: minmax(0, 1fr); }
  body.tight .hmshot { display: none; }
  body.tight .hmdoors { gap: var(--sp-5); }
  body.tight .hmart.hmdoorart { height: 96px; }
  body.tight .hmdoorbody { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
  body.tight .hmdoor p { display: none; }
  body.tight .hmdoori { display: inline-flex; }
  body.tight .hmduo.wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {   /* phone */
  body.tight .page.narrow.homepage > .inner { padding-top: var(--sp-7); }
  body.tight .hmsec + .hmsec { margin-top: var(--sp-7); padding-top: var(--sp-7); }
  body.tight .hmgreet h1 { font-size: var(--fs-2xl); }
  body.tight .hmcard { padding: var(--sp-6); }
  body.tight .hmplay { padding: var(--sp-6); }
  body.tight .hmplay h3 { font-size: var(--fs-xl); }
  body.tight .hmplay .hmacts .btn { flex: 1 1 auto; justify-content: center; }
  body.tight .hmpg { padding: var(--sp-6); }
  body.tight .hmlead { grid-template-columns: minmax(0, 1fr); }
  body.tight .hmart.hmleadart { height: 120px; }
  body.tight .hmleadbody { padding: var(--sp-6); }
  body.tight .hmleadbody h3 { font-size: var(--fs-xl); }
  body.tight .hmleadbody .hmacts .btn { flex: 1 1 auto; justify-content: center; }
  body.tight .hmdoors { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  body.tight .hmdoor { flex-direction: row; align-items: center; }
  body.tight .hmart.hmdoorart { width: 72px; height: 72px; flex: none; margin: var(--sp-4); border-radius: var(--r-ctl); }
  body.tight .hmdoorbody { padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; }
  body.tight .hmdoori { display: none; }
  body.tight .hmdoor .hmacts { padding-top: var(--sp-3); }
  body.tight .hmdoor .hmacts .btn { min-height: var(--h-sm); padding: 0 var(--sp-5); font-size: var(--fs-sm); }
  body.tight .hmduo, body.tight .hmduo.wide { grid-template-columns: minmax(0, 1fr); }
  body.tight .hmnews { grid-template-columns: minmax(0, 1fr); }
  body.tight .hmart.hmnewsart { min-height: 150px; }
  body.tight .hmnewsbody { padding: var(--sp-6); }
  body.tight .hmart.hmrart { width: 72px; height: 100px; }
  body.tight .hmreward { gap: var(--sp-5); }
}

/* ---------- T386 (owner 2026-10-29, mockup t386 direction B): achievement badges as moon medallions (medals.js) ---------- */
/* a medallion scales with its box (the svg keeps its drawing: the small one from 26 px down); the glow and cradle may spill out */
body.tight .medal { display: inline-block; flex: none; line-height: 0; vertical-align: middle; }
body.tight .medal svg { display: block; width: 100%; height: auto; overflow: visible; }
body.tight { --mslot: var(--chip); --mslotline: color-mix(in srgb, var(--muted) 40%, var(--line)); --msloticon: color-mix(in srgb, var(--muted) 45%, var(--chip)); --marc: var(--gold); }
/* the friends drawer: the badges after the name */
body.tight :is(.szwho, .szrow .szwho) .szbdgs { display: inline-flex; align-items: center; gap: var(--sp-1); flex: none; overflow: visible; -webkit-line-clamp: unset; }   /* not the list's two-line activity rule */
body.tight :is(.szwho, .szrow .szwho) .szbdg { width: 18px; display: inline-flex; flex: none; overflow: visible; }
body.tight .szbdg .medal { width: 100%; }
/* My Tale: the display case (the three pinned badges, large) and the picker */
body.tight .achcase { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6) var(--sp-6) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--card)), var(--card)); }
body.tight .achshelf { display: flex; justify-content: space-around; align-items: flex-start; gap: var(--sp-4); }
body.tight .achcasef { margin: 0; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; }
body.tight .achcasef .medal.big { width: 104px; }
body.tight .achcasef figcaption { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
body.tight .achcasef figcaption b { font-size: var(--fs-lg); line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
body.tight .achcaseslot { width: 84px; aspect-ratio: 1; margin: var(--sp-5); border-radius: 999px; border: 2px dashed var(--mslotline); background: var(--mslot); }
body.tight .achledge { height: 4px; margin: 0 calc(-1 * var(--sp-2)); border-radius: var(--r-ctl); background: linear-gradient(180deg, color-mix(in srgb, #000 28%, transparent), transparent); }
body.tight .achpick { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .achpickg { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--sp-3); }
body.tight .achpk { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-2) var(--sp-3); border: 1px solid transparent; border-radius: var(--r-box);
  background: none; color: var(--text); cursor: pointer; }
body.tight .achpk .medal { width: 40px; }
body.tight .achpk > span:last-child { font-size: var(--fs-xs); line-height: 1.2; color: var(--text2); text-align: center; }
body.tight .achpk:hover:not(:disabled) { background: var(--chip); }
body.tight .achpk:disabled { cursor: default; }
body.tight .achpk.on { background: color-mix(in srgb, var(--gold) 12%, var(--card)); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
body.tight .achpk.on::after { content: attr(data-n); position: absolute; top: var(--sp-2); right: var(--sp-3); width: 18px; aspect-ratio: 1; border-radius: 999px; background: var(--gold); color: var(--onAccent); font-size: 11px; font-weight: var(--fw-title); display: grid; place-items: center; }
/* T472 (owner 2026-11-03): each place in the case is the button (empty: choose one, a badge: change it); the place being chosen is lit */
body.tight .achcasebtn { display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
body.tight .achcasebtn:disabled { cursor: default; }
body.tight .achcasebtn .achcaseslot { display: grid; place-items: center; }
body.tight .achcasebtn:hover:not(:disabled) .achcaseslot { border-color: var(--accent); color: var(--accent); }
body.tight .achcasebtn:hover:not(:disabled) .medal.big { filter: brightness(1.08); }
body.tight .achcasebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .achcasef.sel .achcasebtn { box-shadow: 0 0 0 2px var(--gold); }
body.tight .achpk.cur { box-shadow: 0 0 0 2px var(--gold); }
body.tight .achchips .achcount { margin-left: auto; align-self: center; }
@media (max-width: 700px) {
  body.tight .achcasef .medal.big { width: 72px; }
  body.tight .achcaseslot { width: 56px; margin: var(--sp-4); }
  body.tight .achcasef figcaption b { font-size: var(--fs-sm); }
}

/* ---------- T414: Admin > Seasons, the season rewards editor (admin-seasons.js; mockup Pk31RsQGmVfpDQF8vFCg4G) ---------- */
body.tight .admdraft { margin-left: auto; }
body.tight .sed { --sedshadow: color-mix(in srgb, var(--inset) 70%, transparent); display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
body.tight .sed .sedmain { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
body.tight .sed .row { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .sed .grow { flex: 1 1 0; min-width: 0; }
body.tight .sed .sp { flex: 1 1 auto; }
body.tight .sed .small { font-size: var(--fs-sm); }
body.tight .sed h1, body.tight .sed h2, body.tight .sed h3 { margin: 0; }
body.tight .sed .iconbtn { width: var(--h-sm); height: var(--h-sm); flex: none; display: inline-flex; align-items: center; justify-content: center; }
body.tight .sed .btn.armed { background: var(--bad); color: var(--onAccent); border-color: transparent; font-weight: 700; }
body.tight .sed .btn.primary.armed { background: var(--ok); }
body.tight .sed input[type=text], body.tight .sed input[type=search], body.tight .sed input[type=date], body.tight .sed select { background: var(--inset); border: 1px solid var(--field); border-radius: var(--r-ctl); min-height: var(--h-sm); padding: 0 var(--sp-5); font-size: var(--fs-md); min-width: 0; color: var(--text); }
body.tight .sed input:disabled { opacity: .6; }
body.tight .sed label.fld { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); font-weight: 600; letter-spacing: .02em; }
body.tight .sed .checks, body.tight .sed .lib { padding: 0; }
body.tight .sed .seg { flex: none; }
body.tight .sed .seg button { white-space: nowrap; min-height: var(--h-xs); font-size: var(--fs-sm); }
body.tight .sed .linkbtn { border: 0; background: none; color: var(--accent); padding: var(--sp-2) var(--sp-3); min-height: var(--h-xs); font-size: var(--fs-sm); font-weight: 600; border-radius: var(--r-tag); }
/* season tabs */
body.tight .sed .stabs { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-1); scrollbar-width: thin; }
body.tight .sed .stab { position: relative; min-height: 56px; padding: var(--sp-3) var(--sp-6); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); color: var(--text2); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-1); white-space: nowrap; text-align: left; }
body.tight .sed .stab b { font-size: var(--fs-md); }
body.tight .sed .stab span { font-size: var(--fs-xs); color: var(--muted); }
body.tight .sed .stab.on { border-color: var(--accent); background: var(--panel); color: var(--accent); }
body.tight .sed .stab .dot { position: absolute; top: var(--sp-3); right: var(--sp-3); width: var(--sp-4); height: var(--sp-4); border-radius: 50%; background: var(--accent); }
body.tight .sed .stab .dot.bad { background: var(--bad); }
body.tight .sed .stab.add { border-style: dashed; color: var(--muted); align-items: center; }
body.tight .sed .cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
body.tight .sed .editor { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
/* season details */
body.tight .sed .meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); }
body.tight .sed .meta .name { flex: 1 1 200px; } body.tight .sed .meta .short { width: 84px; } body.tight .sed .meta .short input, body.tight .sed .meta .name input { width: 100%; }
body.tight .sed .meta .stat { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
body.tight .sed .meta .stat .muted { font-size: var(--fs-xs); }
/* checks */
body.tight .sed .checks { display: flex; flex-direction: column; overflow: hidden; }
body.tight .sed .checks summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); cursor: pointer; min-height: var(--h-md); }
body.tight .sed .checks summary::-webkit-details-marker { display: none; }
body.tight .sed .checks summary .chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
body.tight .sed .checks[open] summary .chev { transform: rotate(90deg); }
body.tight .sed .sedchk { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--line); font-size: var(--fs-sm); flex-wrap: wrap; }
body.tight .sed .sedchk .sev { width: var(--sp-4); height: var(--sp-4); border-radius: 50%; flex: none; background: var(--muted); }
body.tight .sed .sedchk .sev.bad { background: var(--bad); } body.tight .sed .sedchk .sev.warn { background: var(--warn); }
body.tight .sed .sedchk .t { flex: 1 1 220px; min-width: 0; }
body.tight .sed .placebar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); border-radius: var(--r-box); border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); font-size: var(--fs-sm); }
/* chapters */
body.tight .sed .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-4); }
body.tight .sed .ch { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); min-height: calc(var(--h-md) * 3); transition: border-color .12s, background .12s; }
body.tight .sed .ch.changed { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
body.tight .sed .ch.empty { background: color-mix(in srgb, var(--inset) 60%, var(--card)); }
body.tight .sed .ch.flag::after { content: ""; position: absolute; top: var(--sp-4); right: var(--sp-4); width: var(--sp-3); height: var(--sp-3); border-radius: 50%; background: var(--warn); }
body.tight .sed .ch.flag.bad::after { background: var(--bad); }
body.tight .sed .chh { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; padding-right: var(--sp-5); }
body.tight .sed .chh b { font-size: var(--fs-sm); }
body.tight .sed .chh .tl { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .sed .chh .reach { font-size: var(--fs-xs); color: var(--ok); margin-left: auto; font-variant-numeric: tabular-nums; }
body.tight .sed .items { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; }
body.tight .sed .add { margin-top: auto; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: var(--r-ctl); min-height: var(--h-sm); font-size: var(--fs-xs); font-weight: 600; }
body.tight .sed .ch.empty .add { min-height: 56px; }
body.tight .sed.placing .ch[data-sdrop], body.tight .sed.placing .leg[data-sdrop] { cursor: copy; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
body.tight .sed.placing .ch[data-sdrop]:hover, body.tight .sed.placing .leg[data-sdrop]:hover { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
body.tight .sed .over { border-color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 14%, var(--card)) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
body.tight .sed .flash { animation: sedflash 1.2s ease 1; }
/* a reward, in a chapter or the library */
body.tight .sed .rw { position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2); padding-right: 0; border-radius: var(--r-ctl); background: var(--panel); border: 1px solid transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; min-height: var(--h-md); color: var(--text); text-align: left; width: 100%; }
body.tight .sed .rw.ro, body.tight .sed .leg .rw { cursor: default; }
body.tight .sed .rw:hover { border-color: var(--line); }
body.tight .sed .rw.ride { min-height: var(--h-sm); background: transparent; border: 1px dashed var(--line); }
body.tight .sed .rw.ride .th { width: 28px; height: 28px; }
body.tight .sed .rw.ins::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--sp-2) * -1); height: 3px; border-radius: var(--sp-1); background: var(--accent); }
body.tight .sed .rw .nm { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); line-height: 1.25; display: flex; flex-direction: column; }
body.tight .sed .rw .nm .n1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; hyphens: auto; }
body.tight .sed .rw .nm small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .sed .rw .more { flex: none; align-self: stretch; width: 32px; min-height: var(--h-sm); border: 0; background: transparent; color: var(--muted); border-radius: var(--r-tag); font-size: var(--fs-lg); line-height: 1; }
body.tight .sed .rw .more:hover { color: var(--text); background: var(--chip); }
body.tight .sed .own { position: absolute; left: 2px; bottom: 2px; z-index: 1; font-size: 11px; line-height: 1; padding: 2px 4px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 85%, black); color: #fff; font-variant-numeric: tabular-nums; }
body.tight .sed .rw.moved { box-shadow: inset 3px 0 0 var(--accent); }
body.tight .sed .th { position: relative; flex: none; width: 36px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, var(--imgbg), var(--imgbg2)); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--text2); font-size: 11px; font-weight: 700; }
body.tight .sed .th > .stra { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 6px; }
body.tight .sed .th > .stra.name_colour { font-size: var(--fs-lg); }
body.tight .sed .th.gild { box-shadow: 0 0 0 2px var(--gold); }
body.tight .sed .th .sw { font-size: var(--fs-lg); font-weight: 800; color: var(--gold); }
body.tight .sed .th .x { position: absolute; inset: auto 0 0 0; z-index: 1; font-size: 11px; text-align: center; background: color-mix(in srgb, var(--bad) 80%, black); color: #fff; }
/* finale + Legend */
body.tight .sed .ch.finale { border-color: color-mix(in srgb, var(--sec) 55%, var(--line)); background: color-mix(in srgb, var(--sec) 6%, var(--card)); }
body.tight .sed .ch.finale .chh b { color: var(--sec); }
body.tight .sed .legbox { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); background: color-mix(in srgb, var(--gold) 5%, var(--card)); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
body.tight .sed .legbox h3 { font-size: var(--fs-sm); color: var(--gold); }
body.tight .sed .legs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
body.tight .sed .leg { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px dashed color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: var(--r-ctl); min-height: calc(var(--h-sm) * 3); background: var(--card); }
body.tight .sed .leg .lh { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .sed .leg .lh b { color: var(--gold); font-size: var(--fs-xs); }
body.tight .sed .leg.fixed { border-style: solid; }
/* the library */
body.tight .sed .lib { position: sticky; top: var(--sp-4); max-height: calc(100vh - var(--sp-8)); display: flex; flex-direction: column; overflow: hidden; }
body.tight .sed .libhead { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); border-bottom: 1px solid var(--line); }
body.tight .sed .libhead h2 { font-size: var(--fs-lg); }
body.tight .sed .libhead input[type=search] { width: 100%; }
body.tight .sed .kinds { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2); scrollbar-width: thin; }
body.tight .sed .kinds .chip { min-height: var(--h-xs); padding: 0 var(--sp-4); font-size: var(--fs-xs); }
body.tight .sed .kinds .chip b { font-weight: 400; color: var(--muted); }
body.tight .sed .liblist { overflow-y: auto; padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); min-height: calc(var(--h-sm) * 3); }
body.tight .sed .libgrp { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: var(--sp-4) 0 var(--sp-2); }
body.tight .sed .li { padding-right: var(--sp-3); }
body.tight .sed .li.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
body.tight .sed .li .mk { flex: none; }
body.tight .sed .lib.drop-rm { outline: 2px dashed var(--bad); outline-offset: -2px; }
body.tight .sed .lib .rmhint { display: none; padding: var(--sp-5); text-align: center; color: var(--bad); font-weight: 700; border-bottom: 1px solid var(--line); }
body.tight .sed .lib.drop-rm .rmhint { display: block; }
body.tight .sed .libtarget { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: var(--fs-sm); font-weight: 600; }
body.tight .sed .libclose { display: none; }
/* ghost, popover, dialog, toast, tips */
body.tight .sed .ghost { position: fixed; z-index: 70; pointer-events: none; width: 220px; opacity: .92; transform: rotate(-2deg); box-shadow: 0 12px 30px var(--sedshadow); border: 1px solid var(--accent) !important; background: var(--panel) !important; }
body.tight .sed .pop { position: fixed; z-index: 62; width: 280px; max-width: calc(100vw - var(--sp-8)); padding: var(--sp-5); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--panel); box-shadow: 0 16px 40px var(--sedshadow); display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .sed .pop h3 { font-size: var(--fs-md); }
body.tight .sed .pop .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
body.tight .sed .pop .grid2 select { width: 100%; }
body.tight .sed .pop .opts { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 260px; overflow-y: auto; }
body.tight .sed .scrim { position: fixed; inset: 0; z-index: 61; background: color-mix(in srgb, var(--inset) 55%, transparent); }
body.tight .sed .dlg { position: fixed; z-index: 63; left: 50%; top: 6vh; transform: translateX(-50%); width: min(720px, calc(100vw - var(--sp-8))); max-height: 88vh; display: flex; flex-direction: column; border-radius: var(--r-box); border: 1px solid var(--line); background: var(--panel); box-shadow: 0 20px 60px var(--sedshadow); }
body.tight .sed .dlg .dh { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--sp-4); }
body.tight .sed .dlg .dh h2 { font-size: var(--fs-xl); }
body.tight .sed .dlg .db { padding: var(--sp-5) var(--sp-6); overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .sed .dlg .df { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
body.tight .sed .dgrp { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .sed .dgrp h3 { font-size: var(--fs-sm); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
body.tight .sed .dline { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); background: var(--card); font-size: var(--fs-sm); }
body.tight .sed .dline .op { flex: none; width: 20px; font-weight: 800; text-align: center; }
body.tight .sed .op.add { color: var(--ok); } body.tight .sed .op.rm { color: var(--bad); } body.tight .sed .op.mv { color: var(--accent); } body.tight .sed .op.ed { color: var(--sec); }
body.tight .sed .dline .t { flex: 1 1 auto; min-width: 0; }
body.tight .sed .dline .note { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
body.tight .sed .players { border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 6%, var(--card)); border-radius: var(--r-box); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-sm); }
body.tight .sed .players b { color: var(--ok); }
body.tight .sed .stoast { position: fixed; z-index: 72; left: 50%; bottom: calc(var(--sp-7) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6); border-radius: var(--r-ctl); background: var(--text); color: var(--bg); font-size: var(--fs-sm); box-shadow: 0 10px 30px var(--sedshadow); max-width: calc(100vw - var(--sp-8)); }
body.tight .sed .stoast button { border: 0; background: transparent; color: inherit; font-weight: 800; text-decoration: underline; min-height: var(--h-xs); white-space: nowrap; }
body.tight .sed .tip { position: fixed; z-index: 71; max-width: 300px; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px var(--sedshadow); font-size: var(--fs-sm); color: var(--text2); }
body.tight .sed .pubbar { display: none; }
@media (max-width: 1100px) { body.tight .sed .cols { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 900px) { body.tight .sed .legs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }
/* phone: no drag; the library is a sheet opened from a chapter's + Add (or Rewards), rewards act through their ⋯ menu */
@media (max-width: 640px) {
  body.tight .sed .cols { grid-template-columns: 1fr; }
  body.tight .sed .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tight .sed .lib { position: fixed; z-index: 60; inset: auto 0 0 0; top: auto; max-height: 82vh; border-radius: var(--r-box) var(--r-box) 0 0; transform: translateY(105%); transition: transform .2s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.tight .sed.libopen .lib { transform: none; box-shadow: 0 -12px 40px var(--sedshadow); }
  body.tight .sed .libclose { display: inline-flex; }
  body.tight .sed .rw { cursor: default; }
  body.tight .sed .admhead .hidep { display: none; }
  body.tight .sed .pubbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: var(--sp-4) max(16px, env(safe-area-inset-right, 0px)) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bar); border-top: 1px solid var(--line); display: flex; gap: var(--sp-4); }
  body.tight .sed .pubbar .btn { flex: 1 1 0; justify-content: center; }
  body.tight .sed .sedmain { padding-bottom: calc(var(--h-md) * 2); }
  body.tight .sed .pop { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none; border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
  body.tight .sed .dlg { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; border-radius: var(--r-box) var(--r-box) 0 0; }
  body.tight .sed .stoast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) { body.tight .sed .grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 641px) { body.tight .sed .libbtn { display: none; } }
@media (hover: hover) and (pointer: fine) { body.tight .sed .ch .rw .more { position: absolute; right: 2px; top: 2px; bottom: 2px; min-height: 0; background: var(--panel); opacity: 0; } body.tight .sed .ch .rw:hover .more, body.tight .sed .ch .rw:focus-within .more, body.tight .sed .ch .rw:focus .more { opacity: 1; } body.tight .sed .ch .rw { padding-right: var(--sp-3); } }
@media (prefers-reduced-motion: reduce) { body.tight .sed * { transition: none !important; animation: none !important; } }

/* #137: an empty Watchlist is one line, its title in line with the folding titles above it (chevron 16 + gap 8) */
body.tight .dkpage .dksecempty > .row { padding-left: var(--sp-7); min-height: 40px; }

/* ---------- T418 the card panel in a game (owner sign-off 2026-10-30, review mockup P1T77yWGjbukBGXmc82grx; playtest.js cardSheet) ----------
   The card, what is true about it now, the one action, Rulings in a fold. Beside the board on a wide board; a bottom sheet with the card at
   the left when the board is a column (phones, portrait tablets, the tablet and phone pods). */
body.tight .ptsheet.ptpp { width: min(340px, 100%); gap: var(--sp-5); }
body.tight .ptpptop { display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .ptppimg { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
body.tight .ptppimg .cardimg { width: 100%; }
body.tight .ptppstate { gap: var(--sp-4); min-width: 0; }
body.tight .ptppstate > .pteff.sheet:first-child { border-top: 0; padding-top: 0; }
body.tight .ptppkw { border-top: 1px solid var(--line); }
body.tight .ptppkw .ptinspnote { padding: var(--sp-4) 0; }
body.tight .ptppgo { width: 100%; justify-content: center; }
body.tight .ptppcost { display: inline-flex; margin-left: var(--sp-4); vertical-align: middle; }
body.tight .ptpprul { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
body.tight .ptpprul > summary { display: flex; align-items: center; gap: var(--sp-3); }
body.tight .ptppn { margin-left: auto; font-size: var(--fs-sm); }
body.tight .ptpprulb { gap: var(--sp-5); padding-top: var(--sp-4); }
body.tight .ptppruling { gap: var(--sp-1); line-height: 1.45; }
body.tight .ptppcard { align-self: flex-start; color: var(--muted); }
/* a wide board: docked at the right, the board stays in view (a click on it closes the panel) */
body.tight .ptwrap:not(:has(> .pttbl.ptcol)) > .ptsheet-bg.ptppbg { background: transparent; justify-content: flex-end; align-items: stretch; padding: var(--sp-6); }
body.tight .ptwrap:not(:has(> .pttbl.ptcol)) > .ptsheet-bg.ptppbg > .ptpp { max-height: 100%; border-radius: var(--r-box); border-bottom: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
/* a board in a column (phones, small screens): a tall bottom sheet with the card as large as the screen allows, so it reads without
   zooming (ticket #169, 2026-11-02); its state and actions under it; a tap on the picture, the ✕ or the dimmed board closes it */
body.tight .ptwrap:has(> .pttbl.ptcol) > .ptsheet-bg.ptppbg { align-items: flex-end; padding: 0; }
body.tight .ptwrap:has(> .pttbl.ptcol) > .ptsheet-bg.ptppbg > .ptpp { width: min(560px, 100%); max-height: 94vh; max-height: 94dvh; border-radius: var(--r-box) var(--r-box) 0 0; border-bottom: 0; }
body.tight .ptwrap:has(> .pttbl.ptcol) .ptpp .ptpptop { flex-direction: column; align-items: center; }
body.tight .ptwrap:has(> .pttbl.ptcol) .ptpp .ptppimg { flex: none; width: min(100%, calc((94vh - 200px) * 63 / 88)); align-items: center; }
body.tight .ptwrap:has(> .pttbl.ptcol) .ptpp .ptppimg .cardimg { cursor: zoom-out; }
body.tight .ptwrap:has(> .pttbl.ptcol) .ptpp .ptppstate { align-self: stretch; }

/* ---------- #140 + #141 the deck's tabs: Deck | Build | Analyze | Playbook (owner 2026-10-31, review mockup TfqDSjxrPLz7vH5966gn8q, option A extended) ----------
   A segmented control between the deck and its tools (pages3.js RZ.deckTabs); on phones a full-width row of its own under the deck. */
body.tight .decktabs, body.tight .subbar .decktabs { flex: 0 0 auto; display: inline-flex; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); overflow: hidden; }
body.tight .decktabs > button, body.tight .subbar .decktabs > button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-5); white-space: nowrap; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text2); font-size: var(--fs-sm); font-weight: 600; }
body.tight .decktabs > button:last-child, body.tight .subbar .decktabs > button:last-child { border-right: 0; }
body.tight .decktabs > button.on, body.tight .subbar .decktabs > button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
body.tight .decktabs > button:not(.on):hover, body.tight .subbar .decktabs > button:not(.on):hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); }
body.tight .decktabs > button .uico { display: inline-flex; }
@media (min-width: 701px) { body.tight .subbar.dvbar > .dvinfo.dvhaspick { flex: 1 1 0; } }   /* the deck, its tabs and its tools share the line after My decks and wrap inside it (two rows on a tablet) */
body.tight .anbar.ansecs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
body.tight .anlistname { font-size: var(--fs-md); max-width: 320px; min-width: 0; }
@media (max-width: 700px) {
  body.tight .subbar.dvbar > .decktabs { display: flex; width: 100%; flex: 1 1 100%; order: 9; }
  body.tight .decktabs > button, body.tight .subbar .decktabs > button { flex: 1 1 0; min-width: 0; min-height: var(--h-md); padding: 0 var(--sp-2); }
}

/* ---------- #147 My decks › Matches (owner 2026-10-31): the Decks | Matches switch, filters, stats in one row, one row per game ---------- */
body.tight .dkswitch { display: flex; gap: var(--sp-6); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); }
body.tight .dkswitch > button { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-md); padding: 0 var(--sp-2); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--text2); font-size: var(--fs-lg); font-weight: 600; }
body.tight .dkswitch > button.on { color: var(--text); border-bottom-color: var(--accent); }
body.tight .dkswitch > button .uico { display: inline-flex; }
body.tight .dkswitch .dkswn { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--chip); }
body.tight .mstats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-7); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
body.tight .mstat { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 64px; }
body.tight .mstat > b { font-size: var(--fs-2xl); line-height: 1.1; }
body.tight .mstat > span { font-size: var(--fs-xs); color: var(--muted); }
body.tight .mstatmore { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-2); }
@media (max-width: 700px) {   /* T430: the four in one row, More at its end, down to 320 px */
  body.tight .mstats { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
  body.tight .mstat { min-width: 0; }
  body.tight .mstat > b { font-size: var(--fs-xl); }
  body.tight .mstat > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.tight .mstatmore { min-height: var(--h-sm); font-size: var(--fs-xs); margin-left: 0; }
}
body.tight .mtwrap { padding: 0; overflow-x: auto; }
body.tight .mtable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
body.tight .mtable th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); white-space: nowrap; }
body.tight .mtable td { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); vertical-align: middle; }
body.tight .mtable tr:last-child td { border-bottom: 0; }
body.tight .mtable .nowrap { white-space: nowrap; }
body.tight .mtable .mtnum { text-align: right; }
body.tight .mtable .mtnarrow, body.tight .mtable .mtdate { display: none; }
body.tight .mtable .tag { white-space: nowrap; }
body.tight .mtable .mgame { min-width: 110px; }
body.tight .mtable .macts { text-align: right; white-space: nowrap; }
body.tight .mtable .placebadge { margin: 0; }
body.tight .mart { flex: 0 0 auto; width: 44px; height: var(--sp-8); border-radius: var(--r-tag); background: var(--chip) center 25% / cover no-repeat; }
body.tight .mopps { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; max-width: 340px; }
body.tight .mopps > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .mrev { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; }
body.tight .mrevl { font-size: var(--fs-xs); }
/* T430 (owner 2026-11-04): a phone shows one line per game (place, deck, "vs 3 · pod · length", date, ⋯); a tap opens the game's sheet
   with the opponents and Summary, Analyze, Edit, Delete. The table (tablet and up) keeps names in full, opponents inline, Edit in ⋯ */
body.tight .mlines { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .mline { display: flex; align-items: center; gap: var(--sp-2); min-height: 60px; padding: 0 var(--sp-2) 0 0; border-radius: var(--r-box); background: var(--panel); border: 1px solid var(--line); }
body.tight .mlinemain { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--sp-5); min-height: 56px; padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-box); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .mlinemain .placebadge { min-width: 40px; height: 40px; border-radius: var(--r-ctl, 8px); font-size: var(--fs-sm); }
body.tight .mlinemain b { font-size: var(--fs-md); }
body.tight .mldate { flex: none; white-space: nowrap; }
body.tight .mline .mtmore { flex: none; border-color: transparent; }
body.tight .mtsheet { padding: 0 var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); }
body.tight .mtsheetopps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); }
body.tight .mtable .mopps { display: block; max-width: 340px; }
body.tight .mtable .mopps > span { display: inline; white-space: normal; }
body.tight .mtable .mopps > span + span::before { content: ', '; }
body.tight .mtable .mdeck { display: block; min-width: 120px; }
body.tight .mtable .macts .mtmore { width: var(--h-sm); height: var(--h-sm); }
/* tablets: Turns and Length fold into the game column, the buttons keep their icons only */
@media (max-width: 1099px) {
  body.tight .mtable .mtwide { display: none; }
  body.tight .mtable .mtnarrow { display: inline; }
  body.tight .mtable .mtdate { display: block; }
  body.tight .mtable .mart { display: none; }
  body.tight .mtable th, body.tight .mtable td { padding: var(--sp-4); }
  body.tight .mtable .macts .row { gap: var(--sp-2) !important; }
  body.tight .mopps { max-width: 210px; }
  body.tight .subbar.dvbar { align-items: flex-start; }
  body.tight .mtable .macts .btn .mlbl { display: none; }
  body.tight .mtable .macts .btn { padding: 0 var(--sp-4); }
}
body.tight .mtable .ell, body.tight .mline .ell, body.tight .anlistname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .mtable .xs, body.tight .mline .xs { font-size: var(--fs-xs); }
/* T423 (owner 2026-10-31, mockup t422-t423 tab 2, style A "Ink"): a phrase or emote on the board is an ink bubble like the life badge,
   edged in the speaker's ring colour (gold for you, steel for the others; both follow the arena tint, SCOPE rule 20), with a tail on the
   speaker's portrait. One fixed spot per seat (PC.bubbleTail: t-l, t-r, t-up, t-dn; the column's plates: under the top one, over the
   bottom one). It pops in over 0.2 s from its tail, holds 4 s and fades over 0.3 s (BUBBLE_MS 4500); reduced motion or the board's
   motion off: it only fades. The emote is 84 px (66 on phones; T761, owner 2026-11-13: bigger in game, was 56 / 44). Tamiyo's spoken line (.say) keeps its own Tales-gold bubble. */
body.tight .ptwrap.ptt .ptbubble:not(.say) { --ring: var(--tsteel); --em: calc(var(--h-lg) * 1.5); display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-height: 0; box-sizing: border-box;
  padding: var(--sp-3) var(--sp-5); border: 1.5px solid var(--ring); border-radius: var(--sp-6); background: var(--tink); color: var(--ttext); box-shadow: 0 6px 14px rgba(0, 0, 0, .6);
  font-size: var(--fs-sm); font-weight: var(--fw-label); line-height: 1.3; white-space: nowrap; overflow: visible; pointer-events: none;
  animation: ptbubink 4.5s ease-out both; transform-origin: var(--tox, 0) var(--toy, 50%); }
body.tight .ptwrap.ptt .ptbubble.emo:not(.say) { padding: var(--sp-3); font-size: var(--fs-3xl); line-height: 1; }
body.tight .ptwrap.ptt .ptbubble.emo.img .ptemoimg { position: static; width: var(--em); height: var(--em); transform: none; filter: none; }
body.tight .ptwrap.ptt .me > .ptbubble:not(.say) { --ring: var(--tline); }
@media (max-width: 699px) { body.tight .ptwrap.ptt .ptbubble:not(.say) { --em: calc(var(--h-md) * 1.5); } }
/* the tail: a rotated square in the bubble's ink and edge, on the side that faces the speaker */
body.tight .ptwrap.ptt .ptbubble:not(.say)::after { content: ''; position: absolute; width: var(--sp-5); height: var(--sp-5); box-sizing: border-box; background: inherit; border: inherit; border-radius: var(--sp-1); rotate: 45deg; }
body.tight .ptwrap.ptt .t-l > .ptbubble:not(.say)::after { left: -7px; top: calc(var(--ty, 50%) - 6px); border-top: 0; border-right: 0; }
body.tight .ptwrap.ptt .t-r > .ptbubble:not(.say)::after { right: -7px; top: calc(var(--ty, 50%) - 6px); border-bottom: 0; border-left: 0; }
body.tight .ptwrap.ptt :is(.t-up, .ptname.opp) > .ptbubble:not(.say)::after { top: -7px; left: var(--tx, 16px); border-right: 0; border-bottom: 0; }
body.tight .ptwrap.ptt :is(.t-dn, .ptname.me) > .ptbubble:not(.say)::after { bottom: -7px; left: var(--tx, 16px); border-left: 0; border-top: 0; }
body.tight .ptwrap.ptt .t-r > .ptbubble:not(.say) { --tox: 100%; }
body.tight .ptwrap.ptt :is(.t-up, .ptname.opp) > .ptbubble:not(.say) { --tox: 22px; --toy: 0; }
body.tight .ptwrap.ptt :is(.t-dn, .ptname.me) > .ptbubble:not(.say) { --tox: 22px; --toy: 100%; }
@media (prefers-reduced-motion: reduce) { body.tight .ptwrap.ptt .ptbubble:not(.say) { animation-name: ptbubinkrm; } }
body.tight .ptwrap.ptt.fxoff .ptbubble:not(.say) { animation-name: ptbubinkrm; }   /* the keyframes ptbubink / ptbubinkrm: style.css */
/* the 2-player table: beside the portrait on its right, the tail on it. Yours rises from the portrait's upper half, clear of your mana badge */
body.tight .pttbl.ptwide .ptmedbub:not(.say) > .ptbubble { position: absolute; left: calc(100% + var(--sp-6)); top: 50%; translate: 0 -50%; }
body.tight .pttbl.ptwide .ptmedbub.me:not(.say) > .ptbubble { top: auto; bottom: 55%; translate: none; --ty: calc(100% - 22px); --toy: calc(100% - 22px); }
/* a pod (desktop, tablet): beside the avatar toward the table, on its right (left-hand seats) or its left (right-hand seats) */
body.tight .pttbl.ptpod .ptpbub:not(.say) > .ptbubble { position: absolute; top: 50%; translate: 0 -50%; }
body.tight .pttbl.ptpod .ptpbub.t-l > .ptbubble { left: calc(100% + var(--sp-6)); }
body.tight .pttbl.ptpod .ptpbub.t-r > .ptbubble { right: calc(100% + var(--sp-6)); }
/* a phone pod (phones, portrait tablets): under a top seat's life badge, over a bottom seat's, the tail on the medallion; the bubble keeps
   its size on screen while the camera shows the whole table or leans in (playtest.js camK: --camk) */
body.tight .pttbl.ptpod.ptpph .ptpbub:not(.say) > .ptbubble { left: calc(50% - 22px); top: auto; translate: none; scale: calc(1 / var(--camk, 1)); }
body.tight .pttbl.ptpod.ptpph .ptpbub.t-up > .ptbubble { top: calc(100% + 28px); }
body.tight .pttbl.ptpod.ptpph .ptpbub.t-dn > .ptbubble { bottom: calc(100% + 28px); }
/* the column's plates (phones, portrait tablets): the tail over the medallion's centre */
body.tight .pttbl.ptcol .ptname > .ptbubble:not(.say) { --tx: calc((var(--av) + 16px) / 2 - 7px); }
@media (max-width: 700px) { body.tight .pttbl.ptcol .ptname > .ptbubble:not(.say) { --tx: calc((var(--av) + 16px) / 2 - 11px); } }
/* T422: the conversation on a ticket (mockup t422-t423-review tab 1): pages4.js convoPart; Bugtracker and Admin > Backlog drawer */
body.tight .tpart.convo { border-left-width: 1px; background: color-mix(in srgb, var(--accent) 5%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--r-box); }
/* T457: chat bubbles, grouped (pages4.js convoPart): one name line and one time per group, a day line where the day changes */
body.tight .tkthread { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .tkgrp { display: flex; flex-direction: column; gap: var(--sp-1); max-width: min(560px, 86%); align-self: flex-start; align-items: flex-start; }
body.tight .tkgrp.me { align-self: flex-end; align-items: flex-end; }
body.tight .tkmwho { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; font-size: var(--fs-xs); color: var(--muted); padding: 0 var(--sp-2); }
body.tight .tkmwho .rzns { font-size: var(--fs-sm); }
body.tight .tkmrow { display: flex; align-items: center; gap: var(--sp-2); max-width: 100%; }
body.tight .tkgrp.me .tkmrow { flex-direction: row-reverse; }
body.tight .tkmb { background: var(--bar); border: 1px solid var(--line); border-radius: var(--sp-2) var(--r-box) var(--r-box) var(--sp-2); padding: var(--sp-3) var(--sp-5); font-size: var(--fs-md); white-space: pre-wrap; line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
body.tight .tkgrp .tkmrow.first .tkmb { border-top-left-radius: var(--r-box); }
body.tight .tkgrp.me .tkmb { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--r-box) var(--sp-2) var(--sp-2) var(--r-box); }
body.tight .tkgrp.me .tkmrow.first .tkmb { border-top-right-radius: var(--r-box); }
body.tight .tkmt { font-size: var(--fs-xs); color: var(--muted); padding: 0 var(--sp-2); }
body.tight .tkday { align-self: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
body.tight .tag.tkteam { background: var(--accent); color: var(--onAccent); }
body.tight .tkmdel { display: inline-flex; align-items: center; justify-content: center; min-height: var(--h-xs); min-width: var(--h-xs); padding: 0; border: 0; background: none; color: var(--muted); border-radius: var(--r-ctl); cursor: pointer; }
body.tight .tkmdel:hover, body.tight .tkmdel:focus-visible { color: var(--bad); }
body.tight .tkmdel.armed { color: var(--bad); font-weight: 700; }
@media (hover: hover) { body.tight .tkmrow .tkmdel:not(.armed) { opacity: 0; } body.tight .tkmrow:hover .tkmdel, body.tight .tkmrow .tkmdel:focus-visible { opacity: 1; } }
body.tight .tknew { display: flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-xs); font-weight: 700; color: var(--gold); }
body.tight .tknew::before, body.tight .tknew::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--gold) 50%, transparent); }
body.tight .tkcompose { display: flex; gap: var(--sp-4); align-items: flex-end; }
body.tight .tkcompose textarea { flex: 1 1 auto; min-height: var(--h-md); height: var(--h-md); resize: vertical; }
body.tight .tklock { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-pill); min-height: var(--h-xs); padding: 0 var(--sp-5); }
body.tight .tpart.convo.locked .tkthread { opacity: .88; }
body.tight details.tkfold > summary { display: flex; gap: var(--sp-4); align-items: center; }
body.tight details.tkfold[open] > summary { margin-bottom: var(--sp-4); }
@media (max-width: 600px) { body.tight .tkcompose { flex-direction: column; align-items: stretch; } body.tight .tkgrp { max-width: 92%; } }

/* ---------- #75 + #121 mobile cleanup (owner 2026-10-31, mockup mobile-cleanup, signed off) ---------- */
/* the bottom sheet (core.js RZ.sheet): + New on My decks, ⋯ on a deck line and on a deck */
body.tight .rzsheetwrap { position: fixed; inset: 0; z-index: 90; }
body.tight .rzsheetshade { position: absolute; inset: 0; background: color-mix(in srgb, #000 45%, transparent); }
body.tight .rzsheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line); border-radius: var(--r-box) var(--r-box) 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); }
@media (min-width: 701px) { body.tight .rzsheet { left: 50%; right: auto; width: 420px; transform: translateX(-50%); } }
body.tight .rzsheetgrab { align-self: center; width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--line); margin-bottom: var(--sp-4); }
body.tight .rzsheethead { gap: var(--sp-4); padding-bottom: var(--sp-2); }
body.tight .rzsheethead b { font-size: var(--fs-md); color: var(--muted); }
body.tight .rzsheetit { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-md); padding: var(--sp-3) var(--sp-2); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .rzsheetit:last-child { border-bottom: 0; }
body.tight .rzsheetit > .uico { color: var(--accent); }
body.tight .rzsheetit b { font-weight: var(--fw-label); }
body.tight .rzsheetit:hover, body.tight .rzsheetit:focus-visible { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.tight .rzsheetit.danger, body.tight .rzsheetit.danger > .uico { color: var(--bad); }
body.tight .rzsheetit.armed { background: color-mix(in srgb, var(--bad) 10%, transparent); }
body.tight .rzsheetit[disabled] { opacity: .5; cursor: default; }
body.tight .rzsheetit .count { background: var(--accent); color: var(--onAccent); border-radius: var(--r-pill); padding: 0 var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-display); }
body.tight .dkratesheet { gap: var(--sp-6); padding: var(--sp-2) 0 var(--sp-4); }
body.tight .dkratesheet .ratenum { min-width: var(--h-md); min-height: var(--h-md); }
/* the card filters (#121, every width): small controls beside a section's title, the "+ ..." links */
body.tight .ecfold .ecxtra { flex: none; }   /* T755: the Match switch and the i, first row of Card type's body (out of the summary) */
body.tight .ecmini { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
body.tight .ecmini button { display: inline-flex; align-items: center; min-height: var(--sp-7); min-width: var(--sp-7); padding: 0 var(--sp-4); border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-label); cursor: pointer; }
body.tight .ecmini button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
body.tight .ecchipsw { gap: var(--sp-3); align-items: center; }
body.tight .ecplus { align-self: flex-start; font-weight: var(--fw-label); color: var(--accent); }
@media (max-width: 700px) {
  /* 1. the slim page title row: 44 high, the i and the bug plain icons */
  body.tight .pagehead-slim { min-height: var(--h-md); padding: 0 var(--sp-4) 0 var(--gutter); gap: var(--sp-1); box-sizing: border-box; }
  body.tight .pagehead-slim .pagetools { gap: 0; }
  body.tight .pagehead-slim .iconbtn.guidebtn:not(.on), body.tight .pagehead-slim .slimtool { border-color: transparent; background: transparent; }
  body.tight .pagehead-slim .slimtool { width: var(--h-sm); height: var(--h-sm); color: var(--muted); flex: none; }
  body.tight .pagehead-slim .slimtool.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
  body.tight .pagehead-slim .slimback { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
  /* 2. My decks: + New, the search, Filter in one line; one line per deck */
  body.tight .dkphline { gap: var(--sp-4); align-items: center; flex-wrap: nowrap; }
  body.tight .dkphline .dknew { flex: none; min-height: var(--h-sm); }
  body.tight .dkphline .dkphq { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); }
  body.tight .dkphline .dkphq input { min-width: 0; width: 100%; }
  body.tight :is(.dkfiltbtn, .exfindrow .keytoggle) { position: relative; flex: none; }
  body.tight :is(.dkfiltbtn, .exfindrow .keytoggle) .excount { position: absolute; top: -6px; right: -6px; font-size: var(--fs-xs); }
  body.tight .dkphfilters { gap: var(--sp-4); padding-top: var(--sp-4); }
  body.tight .dkpage .exsec { scroll-margin-top: var(--sp-4); }
  body.tight .dkline { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
  body.tight .dkline-main { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
  body.tight .dkline-open { display: flex; align-items: center; gap: var(--sp-5); flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  body.tight .dkline-art { flex: none; width: 64px; height: var(--h-md); overflow: hidden; border-radius: var(--r-ctl); background: var(--inset); }
  body.tight .dkline-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  body.tight .dkline-text { gap: var(--sp-1); }
  body.tight .dkline-name { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-md); }
  body.tight .dkline-fav { color: var(--accent); display: inline-flex; flex: none; }
  body.tight .dkline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
  body.tight .dkline-pips { display: inline-flex; gap: var(--sp-1); }
  body.tight .dkline-rate { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--gold); font-weight: var(--fw-title); }
  body.tight .dkline-rate .ico svg { width: 12px; height: auto; }
  body.tight .dkline-build { flex: none; min-height: var(--h-xs); }
  body.tight .dkline-more { flex: none; width: var(--h-sm); height: var(--h-sm); border-color: transparent; background: transparent; color: var(--muted); }
  /* 3. a deck: the selector with ⋯; the summary bar one line */
  body.tight .subbar.dvbar .dvpickrow .dvmore { flex: none; }
  body.tight .dvsum.dvsumline { flex-wrap: nowrap; gap: var(--sp-5); }
  body.tight .dvsum.dvsumline .dvs-main, body.tight .dvsum.dvsumline .dvs-price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  body.tight .dvsum .dvsumtog { margin-left: auto; flex: none; width: var(--h-sm); height: var(--h-sm); border-color: transparent; background: transparent; color: var(--accent); }
  body.tight .dvsum.dvsumopen .dvsumtog { order: 9; position: absolute; top: var(--sp-2); right: var(--sp-2); }
  body.tight .dvsum.dvsumopen { padding-right: var(--h-md); }
  /* 4. Sets: one switch */
  body.tight .setmodes .seg { width: 100%; }
  body.tight .setmodes .seg button { flex: 1 1 auto; white-space: nowrap; padding-left: var(--sp-4); padding-right: var(--sp-4); }
  /* 5. Public decks: Filters and Sort as icons beside the search */
  body.tight .exfindrow { gap: var(--sp-4); align-items: center; flex-wrap: nowrap; width: 100%; }
  body.tight .exfindrow .exfindw { flex: 1 1 auto; min-width: 0; }
}

/* ---------- T424 + T426 the sub-menu bar stays put (owner 2026-11-01) ---------- */
/* T426: every sub-menu bar sits against the banner with equal room above and below its buttons. A sticky bar with top 0 is held below the page's padding,
   which left double the room above it; pull it into that padding, as .xstick does */
@media (min-width: 701px) {
  body.tight .subbar:not(.filterbar) { top: calc(-1 * var(--sp-6)); margin-top: calc(-1 * var(--sp-6)); box-shadow: none; }
  body.tight .subbar.dvbar { align-items: flex-start; }   /* two rows on a tablet: My decks stays on the first */
  body.tight .subbar.dvbar .dvinfo .dvacts { flex-wrap: nowrap; }
}
/* every control in a bar is exactly as high as the others: the deck selector counted its border on top */
body.tight .subbar .pickwrap { box-sizing: border-box; min-height: var(--h-sm); }
body.tight .subbar .pickwrap select { min-height: 0; height: 100%; }
body.tight .subbar :is(.tabbtn, .fbtn)[disabled] { opacity: .5; cursor: default; }
/* T424: Build wears the same bar as Deck, Analyze and Playbook: it has no .page around it, so this gives the bar the page's sides */
body.tight .buildhead { flex: none; display: flex; flex-direction: column; padding: 0 var(--gutter); }
body.tight .buildhead > .subbar.dvbar { position: relative; top: auto; margin-top: 0; }
body.tight .buildhead > .dvbar.xband { margin-bottom: 0; }
/* T507 (owner 2026-11-05, mockup Kc7SSEmkFVcrihfz5fkAzH v33): one deck header on Deck, Build, Analyze and Playbook (RZ.deckBar, pages3.js):
   "‹ My decks" with the page's i and bug, the commander art as a banner, the deck name (the selector) with its icons, one meta line, then the
   underlined tabs with Settings and Tinker at the row's end. More room than the old bar: 24 between the parts, 32 between the tabs.
   It replaces T493's fitting (.dvfit, RZ.dvBarFit): nothing hides into a More menu, the parts wrap by width instead */
/* T532 + T523 + T522 (owner 2026-11-05, mockup DDYFtiFF5tPgM5Mwy8hxBV version A): the same compact header on every deck tab: no "‹ My decks"
   line, the art 200 x 64, the page's i, bug and fold at the end of the deck's row, 16 between the row and the tabs */
body.tight .dkhead { display: flex; flex-direction: column; gap: var(--sp-6); margin-bottom: var(--sp-7); min-width: 0; }
body.tight .dkid { display: flex; align-items: center; gap: var(--sp-7); min-width: 0; }
body.tight .dkid > .pagetools { margin-left: auto; align-self: flex-start; flex: none; }
body.tight .dkart { flex: none; width: calc(var(--sp-8) * 6 + var(--sp-4)); height: calc(var(--sp-8) * 2); border-radius: var(--r-box); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
body.tight .dkart img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .dkart img.dkcard { object-position: 50% 22%; }
body.tight .dkidtxt { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; min-width: 0; }
body.tight .dkname { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .dkname .dvpickrow { flex: 0 1 auto; min-width: 0; }
/* T531: a very thin outline (13 % of the text colour) so the name reads as a dropdown; a little clearer on hover */
body.tight .dkname .dvpick { width: auto; max-width: 100%; min-height: 0; padding: 0 0 0 var(--sp-5); border: 1px solid color-mix(in srgb, var(--text) 13%, transparent); border-radius: var(--r-ctl); background: transparent; }
body.tight .dkname .dvpick:hover, body.tight .dkname .dvpick:focus-within { border-color: color-mix(in srgb, var(--text) 26%, transparent); }
body.tight .dkname .dvpick .pickthumb { display: none; }
body.tight .dkname .dvpick select { min-height: var(--h-sm); padding: 0 var(--sp-7) 0 0; border: 0; background-color: transparent; font-size: var(--fs-2xl); font-weight: var(--fw-title); }
body.tight .dkname .dvrenin { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); font-size: var(--fs-2xl); font-weight: var(--fw-title); }
/* the deck's icons behind its name: Rename, Lock, Delete, Sync and Share (with its ▾), quiet until hovered */
body.tight .dkicon, body.tight .dkname .dssyncbtn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); min-width: var(--h-xs); min-height: var(--h-xs); height: var(--h-xs); padding: 0 var(--sp-2); border: 0; border-radius: var(--r-tag); background: transparent; color: var(--muted); cursor: pointer; }
body.tight .dkicon:not(:disabled):hover, body.tight .dkicon.on, body.tight .dkname .dssyncbtn:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .dkicon.on[aria-pressed] { color: var(--accent); }
body.tight .dkicon.dvdelbtn { color: var(--bad); }
body.tight .dkicon:disabled { opacity: .45; cursor: not-allowed; }
body.tight .dkicon .dvmchev .uico svg { width: var(--sp-5); height: var(--sp-5); }
body.tight .dkname .dvmpop.barpop { left: 0; right: auto; }
@media (pointer: coarse) { body.tight .dkicon::after, body.tight .dkname .dssyncbtn::after { content: ''; position: absolute; inset: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-1)); } }
body.tight .dkmeta { font-size: var(--fs-md); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: var(--sp-5); }
/* T521: folded, the name a size down. T599: the art shrinks to a small picture and the meta line joins the name's row */
body.tight .dkhead.dkfold .dkname .dvpick select { font-size: var(--fs-xl); }
body.tight .dkhead.dkfold .dkid { gap: var(--sp-5); }
body.tight .dkhead.dkfold .dkart { width: calc(var(--sp-8) * 2); height: var(--h-sm); border-radius: var(--r-ctl); }
body.tight .dkhead.dkfold .dkname > .dkmeta { flex: 1 1 0; min-width: 0; }
/* the tabs (what you look at, SCOPE 17.22) and, at the row's end, Settings and Tinker */
body.tight .dhtabrow { display: flex; align-items: flex-end; gap: var(--sp-7); border-bottom: 1px solid var(--line); min-width: 0; }
body.tight .dhtabs { display: flex; gap: var(--sp-8); min-width: 0; }
body.tight .dktab { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-md); padding: 0 var(--sp-2); margin-bottom: -1px; border: 0; border-bottom: var(--sp-1) solid transparent; background: transparent; color: var(--muted); font-size: var(--fs-lg); font-weight: var(--fw-label); white-space: nowrap; cursor: pointer; }
body.tight .dktab.on { color: var(--text); border-bottom-color: var(--accent); }
/* T736: the underline glides to the chosen tab (RZ.dhTabMotion); the page slides in from the side you travelled */
body.tight .dhtabs { position: relative; }
body.tight .dhtabs .dkink { position: absolute; left: 0; bottom: -1px; height: var(--sp-1); background: var(--accent); pointer-events: none; transition: transform .22s cubic-bezier(.3, .8, .3, 1), width .22s cubic-bezier(.3, .8, .3, 1); }
body.tight .dhtabs.dkinking > .dktab.on { border-bottom-color: transparent; }
body.tight .dkslide-r { animation: dkslide-r .22s cubic-bezier(.3, .8, .3, 1); }
body.tight .dkslide-l { animation: dkslide-l .22s cubic-bezier(.3, .8, .3, 1); }
@media (prefers-reduced-motion: reduce) { body.tight .dkslide-r, body.tight .dkslide-l { animation: none; } body.tight .dhtabs .dkink { transition: none; } }
body.tight .dktab:not(.on):hover { color: var(--text); }
body.tight .dktab .dkswn { font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-label); padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--chip); }
body.tight .dhacts { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; padding-bottom: var(--sp-2); flex: none; }
/* the quiet button (SCOPE 17.23): a secondary action in a header, no frame until hovered */
body.tight .tabbtn.dkquiet { border-color: transparent; background: transparent; }
body.tight .tabbtn.dkquiet:hover, body.tight .tabbtn.dkquiet.on { border-color: transparent; background: color-mix(in srgb, var(--accent) 10%, transparent); }
body.tight .page > .dkhead:first-child { margin-top: 0; }
body.tight .buildhead { padding-top: var(--sp-6); }   /* T532: the header starts where it starts on the other tabs (the page's top padding) */
body.tight .buildhead > .dkhead { margin-bottom: var(--sp-6); }
body.tight .dvright > .dirprompt { margin-bottom: var(--sp-6); }   /* the Deck tab's gameplan prompt sat on View / Group / Sort */
/* Analyze's sections under the header: framed buttons with room between them (owner: they were glued together) */
body.tight .anbar.ansecs .antabgrp { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
/* a tablet: the banner and the tab steps a size down */
@media (min-width: 701px) and (max-width: 1279px) {
  body.tight .dkart { width: calc(var(--sp-8) * 5); height: calc(var(--h-lg) - var(--sp-2)); }   /* 160 x 52 */
  body.tight .dkid { gap: var(--sp-6); }
  body.tight .dhtabs { gap: var(--sp-7); }
}
/* tight widths: the tabs keep their own full row and Settings and Tinker move under them */
@media (min-width: 701px) and (max-width: 900px) {
  body.tight .dhtabrow { flex-wrap: wrap; row-gap: var(--sp-4); }
  body.tight .dktab .uico { display: none; }
}
/* a phone: "‹ My decks" is the slim title line; the banner runs full width, the name and its icons under it, then the tabs (equal widths)
   and Settings and Tinker in a row of their own */
@media (max-width: 700px) {
  body.tight .dkhead.dkph { gap: var(--sp-5); margin-bottom: var(--sp-6); }
  body.tight .dkph .dkid { gap: var(--sp-5); }   /* T523: the art is a small picture beside the name, so the header is one short block */
  body.tight .dkph .dkidtxt { flex: 1 1 0; }
  body.tight .dkph .dkart { width: calc(var(--sp-8) * 2); height: var(--h-lg); border-radius: var(--r-ctl); }
  body.tight .dkph .dkname { gap: 0; }
  body.tight .dkph .dkname .dvpick { padding-left: var(--sp-4); }
  body.tight .dkph .dkname .dvpick select { padding-right: var(--sp-8); }   /* room for the arrow after a cut-off name */
  body.tight .dkph .dkname .dvpick select { font-size: var(--fs-xl); }
  body.tight .dkph .dkname .dvpickrow { flex: 1 1 auto; }
  body.tight .dkph .dkmeta { font-size: var(--fs-xs); padding-left: var(--sp-4); }
  body.tight .dkph .dhtabs { gap: 0; border-bottom: 1px solid var(--line); }
  body.tight .dkph .dktab { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0; gap: var(--sp-1); font-size: var(--fs-md); }
  body.tight .dkph .dktab .dkswn { display: none; }   /* the count stays in the tab's label for screen readers; five tabs fit from 320 px */
  body.tight .dkph .dhacts { margin-left: 0; padding-bottom: 0; }
  body.tight .dkph .dhacts .dvmpop.barpop { left: 0; right: 0; }
}
/* T526 (owner 2026-11-05, mockup 9Tt9LCJTmjqBjikyLCbn6a, B + S1). Settings and Tinker follow the tabs after a thin divider, in the tabs'
   look; they open a panel or a menu, so they are tinted while open and never get the tab underline */
body.tight .dhacts { margin-left: 0; align-self: stretch; align-items: center; gap: var(--sp-2); padding-bottom: 0; }
body.tight .dhdiv { flex: none; width: 1px; height: var(--sp-7); margin-right: var(--sp-4); background: var(--line); }
body.tight .dktab.dkkey { min-height: var(--h-sm); margin-bottom: 0; padding: 0 var(--sp-4); border-bottom: 0; border-radius: var(--r-ctl); position: relative; }
body.tight .dktab.dkkey .uico { display: inline-flex; }
body.tight .dktab.dkkey.open, body.tight .dktab.dkkey.on { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
body.tight .dktab.dkkey:not(.open):not(.on):hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* T561 (owner 2026-11-06): over 100 cards, Tinker (it holds Trim) is tinted gold with "N over"; its menu lights Trim the same way */
body.tight .dvmbtn.dvmover { color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
body.tight .dvmbtn.dvmover:hover { background: color-mix(in srgb, var(--gold) 18%, transparent); }
body.tight .dvmoverchip { display: inline-flex; align-items: center; min-height: calc(var(--sp-6) + var(--sp-1)); padding: 0 var(--sp-3); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-title); color: var(--bg); background: var(--gold); }
body.tight .popitem.over { box-shadow: inset 2px 0 0 var(--gold); }
body.tight .popitem.over .uico { color: var(--gold); }
/* T562: the commander in the header shows its card on hover; a click or tap opens its details */
body.tight .dkart.dkartbtn { cursor: pointer; }
body.tight .dkmeta .dkcmd { color: inherit; font: inherit; text-decoration: none; }
body.tight .dkmeta .dkcmd:hover, body.tight .dkmeta .dkcmd:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
body.tight .dktab.dkkey .dvmchev { display: inline-flex; color: var(--muted); }
/* Settings without a frame: the sections on the left behind a hairline (two groups), the fields beside them; the fold under it closes it */
body.tight .setpanel.setflat { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: var(--sp-5) 0 var(--sp-4); overflow: visible; }
body.tight .fpanel.fpside { display: flex; flex-direction: row; gap: var(--sp-7); align-items: stretch; padding: 0; border: 0; background: transparent; }
body.tight .fside { flex: 0 0 calc(var(--sp-8) * 6); display: flex; flex-direction: column; gap: 0; padding-right: var(--sp-6); border-right: 1px solid var(--line); }
body.tight .fside button { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-xs); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text2); font: inherit; text-align: left; cursor: pointer; }
body.tight .fside button:hover { color: var(--text); }
body.tight .fside button.on { color: var(--text); font-weight: var(--fw-label); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: none; }
/* T551 (owner 2026-11-05): the group headings were easy to read over: bolder, tinted, a hairline under, and room above the next group */
body.tight .fsidegrp { font-size: var(--fs-xs); font-weight: var(--fw-title); text-transform: uppercase; letter-spacing: .1em; color: color-mix(in srgb, var(--accent) 55%, var(--muted)); margin: var(--sp-6) 0 var(--sp-2); padding: 0 var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--line); }
body.tight .fsidegrp:first-child { margin-top: 0; }
body.tight .fpanel.fpside > .fpbody { flex: 1 1 0; min-width: 0; }
body.tight .fpanel.fpside .fpmain { align-self: stretch; }
body.tight .setfold { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-6); }
body.tight .setfold::before, body.tight .setfold::after { content: ''; flex: 1 1 0; height: 1px; background: var(--line); }
body.tight .setfoldbtn { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-xs); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; color: var(--text2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
body.tight .setfoldbtn:hover { color: var(--text); border-color: var(--accent); }
body.tight .planrow.planstack { flex-direction: column; flex-wrap: nowrap; }
body.tight .planrow.planstack > :first-child { flex: none; width: 100%; }
/* S1: Analyze's sections are a lighter second level: plain text, the chosen one a tinted pill, the marks (up to date, Games' count) after it */
body.tight .ansub { display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-4) 0 var(--sp-2); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
body.tight .ansub::-webkit-scrollbar { display: none; }
/* owner 2026-11-06 (staging): the sections are the tab row's second level, so they sit one page gap under it, not under the deck header's
   24 px margin plus the page gap (48 px to the pills): 16 px from the tab line to the pills, as the blocks below are apart */
body.tight .dkhead:has(+ .ansub) { margin-bottom: 0; }
body.tight .dkhead + .ansub { margin-top: calc(-1 * var(--sp-4)); }
body.tight .ansub button { flex: none; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-xs); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
body.tight .ansub button:not(.on):hover { color: var(--text); }
body.tight .ansub button.on { color: var(--text); font-weight: var(--fw-label); background: color-mix(in srgb, var(--accent) 16%, transparent); }
body.tight .ansub .ok { color: var(--ok); font-size: var(--fs-xs); }
@media (max-width: 700px) {
  /* audit D1 (SCOPE 17.23, as on a tablet): the tabs a full row that scrolls sideways, the chosen tab kept in view (pages3.js RZ.dhTabsFit)
     and a fade only at an end with more tabs behind it; Settings and Tinker with their words in a row of their own under the tabs' line.
     The tabs' basis leaves room only for the pinned art (.dkpinart), so the full-width actions always wrap to the next line */
  body.tight .dkph .dhtabrow { flex-wrap: wrap; align-items: stretch; gap: 0; row-gap: var(--sp-3); border-bottom: 0; }
  body.tight .dkph .dhtabs { flex: 1 1 calc(100% - var(--sp-8) - var(--sp-4)); min-width: 0; gap: var(--sp-5); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  body.tight .dkph .dhtabs::-webkit-scrollbar { display: none; }
  body.tight .dkph .dhtabs.dhfr { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  body.tight .dkph .dhtabs.dhfl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
  body.tight .dkph .dhtabs.dhfl.dhfr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  body.tight .dkph .dhtabs > .dktab { flex: 1 0 auto; margin-bottom: 0; padding: 0 var(--sp-2); }
  body.tight .dkph .dhacts { flex: 1 0 100%; gap: var(--sp-3); }
  body.tight .dkph .dhdiv { display: none; }
  body.tight .dkph .dktab.dkkey .dkswn { display: inline-block; }
  body.tight .fpanel.fpside { flex-direction: column; gap: var(--sp-5); }
  body.tight .fpanel.fpside > .fpbody { flex: none; width: 100%; }
  body.tight .fsidepick select { width: 100%; min-height: var(--h-md); }
}
/* T484 (owner 2026-11-04): Build's own row under the bar (Mana, Draw/Grid) went: Mana is Tinker's, Draw/Grid ends the draw bar */
body.tight .drawbar.hasview { position: relative; padding: 0 calc(var(--h-md) + var(--sp-4)); }   /* room for it on both sides, so the draw buttons stay centred */
body.tight .drawbar > .bviewbtn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: var(--h-md); height: var(--h-md); min-height: 0; padding: 0; justify-content: center; }
body.tight .deckpane > .introline.inbar { margin: 0; }

/* ---------- T430 the phone pattern on Wishlist, Cards, Collection and friends' decks (mockup mobile-cleanup, signed off 2026-10-31) ---------- */
@media (max-width: 700px) {
  body.tight .wlbarph { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-4); }
  body.tight .wlbarph .wlpk { flex: 1 1 auto; min-width: 0; width: auto; }
  body.tight .wlbarph > .tabbtn { flex: none; }
  body.tight .wllist { gap: var(--sp-4); padding: 0; border: 0; background: transparent; }
  body.tight .wlline.bought { opacity: .6; }
  body.tight .wlline .wlline-art { flex: none; width: var(--h-md); height: var(--h-md); overflow: hidden; border-radius: var(--r-ctl); }
  body.tight .wlline .wlline-bought { flex: none; display: inline-flex; color: var(--ok); }
  body.tight .wlline .tabbtn.iconsq { flex: none; }
  body.tight .ectools .ecsearch { flex: 1 1 0; min-width: 0; }
  body.tight .ectools .ecbreak { flex: 1 1 100%; height: 0; }
  body.tight .ectools > .tabbtn.iconsq { flex: none; position: relative; }
  body.tight .ectools > .tabbtn.iconsq .excount { position: absolute; top: -6px; right: -6px; font-size: var(--fs-xs); }
  body.tight .collphline { flex-wrap: nowrap; align-items: center; gap: var(--sp-4); }
  body.tight .collphline > .row { flex: none; flex-wrap: nowrap; }
  body.tight .frdecks { gap: var(--sp-4); }
}

/* ticket #156: Take back on your own open report, a quiet secondary button at the end of the Submission; armed = accent outline */
body.tight .tkback { justify-content: flex-end; gap: var(--sp-4); }
body.tight .btn.tkbackbtn.armed { border-color: var(--accent); color: var(--accent); font-weight: 600; }
/* ---------- Ticket #135 (owner 2026-11-03): deck sync, a quiet icon beside the deck's lock and delete, and its small popover ---------- */
body.tight .dssyncpop.barpop { min-width: 260px; max-width: 320px; gap: var(--sp-3); padding: var(--sp-4); }
body.tight .dssyncpop .dshead { padding: 0 var(--sp-2); }
body.tight .dssyncpop .dshead .linkbtn { display: inline-flex; align-items: center; gap: var(--sp-2); flex: none; }
body.tight .dssyncpop .dserr { padding: 0 var(--sp-2); color: var(--warn); }
body.tight .dssyncpop .dsmode { padding: 0 var(--sp-2); }
body.tight .dssyncpop .dsform { padding: 0 var(--sp-2); }
body.tight .dssyncpop .dsfoot { padding: var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--line); }
body.tight .dssyncbtn.busy .uico svg { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { body.tight .dssyncbtn.busy .uico svg { animation: none; } }
@media (max-width: 700px) { body.tight .dssyncpop.barpop { max-width: none; } }
/* ticket #166: the deck list's Preview mark (a card whose set is not out yet), a small amber letter after the name like the Game Changer mark */
/* ticket #185: "In deck" on a maybeboard card the deck already holds; amber (warn) when a second copy would break singleton */
body.tight .dldup { flex: 0 0 auto; display: inline-flex; align-items: center; margin-left: var(--sp-2); padding: 0 var(--sp-2); border-radius: var(--r-tag); font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; white-space: nowrap; color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); cursor: help; }
body.tight .dldup.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
body.tight .stackcard > .dldup { position: absolute; right: 28px; top: 4px; margin: 0; background: #000b; }   /* on the card's title strip, left of the collection tick */
body.tight .stackcard > .dldup:not(.warn) { color: #fff; }
body.tight .dlpv { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-left: var(--sp-2); padding: 0 var(--sp-2); border-radius: var(--r-tag); font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); cursor: help; }
/* ticket #162 (owner 2026-11-03, mockup RjRPsAyEz5SKraGyGfUhQc B1): flying lifts 7px over the felt with its shadow left below (.ptgnd, the
   tile's own outline blurred) and a slow 2px bob (5 s, out of step between cards; --ptbob is registered in style.css). Motion Off or Fast
   and reduced motion: the lift without the bob. A tapped flyer has landed: a tight contact shadow turned with the card (an attacking flyer leans like any attacker). Reach: grounded,
   a tight contact shadow and a faint pale line along the top edge */
body.tight .ptslot.pttl > .ptgnd { position: absolute; inset: 0; border-radius: calc(var(--tw) * .07); background: #000; pointer-events: none; opacity: .7; filter: blur(2px); translate: 0 3px; }
body.tight .ptslot.pttl.ptfly.pthov { translate: 0 calc(-7px - var(--ptbob, 0px)); }
body.tight .ptslot.pttl.ptfly.pthov > .ptgnd { opacity: .5; filter: blur(6px); translate: 2px calc(14px + var(--ptbob, 0px)); scale: .95; }
body.tight .ptslot.pttl.ptfly.pthov > .ptc:not(.can, .sel) { box-shadow: 0 0 0 1px var(--edge); }
body.tight .ptwrap.ptt:not(.fxoff, .fxfast) .ptslot.pttl.ptfly.pthov:not(.fxready, .fxarrive) { animation: ptbob 5s ease-in-out var(--bobd, 0s) 2; }   /* T697: two bobs after the card starts to hover, then it rests (--ptbob is a custom property: main-thread frames). T948: the tile carries where its bob is as --bobd (playtest.js tileBob), so a redraw goes on where the bob was and cards stay out of step. pthov: the tile hovers (an untapped flyer that does not attack), decided once in playtest.js tileEl for these rules and the clock */
body.tight .ptslot.pttl.ptfly.tapped > .ptgnd, body.tight .ptslot.pttl.ptreach.tapped > .ptgnd { rotate: 20deg; scale: .94; translate: 1px 3px; }
body.tight .ptslot.pttl.ptreach > .ptc::before { content: ''; position: absolute; z-index: 3; left: 10%; right: 10%; top: 0; height: 2px; border-radius: var(--r-pill); background: linear-gradient(90deg, transparent, rgba(243, 228, 189, .75), transparent); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.tight .ptwrap.ptt .ptslot.pttl.ptfly { animation: none; } }
/* ticket #162 A+ (T1): the running total of a burst of hits, beside the life badge; bumps on each hit, fades 3 s after the last.
   Motion Off (.still): no bump, the total still shows */
body.tight .ptlifeb > .ptdmgtot { position: absolute; left: 100%; top: 50%; translate: var(--sp-3) -50%; height: var(--h-xs); padding: 0 var(--sp-4); display: inline-flex; align-items: center; border-radius: var(--r-pill); background: rgba(9, 13, 18, .85); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); color: color-mix(in srgb, var(--bad) 80%, var(--ttext, #f1ece0)); font-size: var(--fs-xl); line-height: 1; white-space: nowrap; pointer-events: none; animation: ptdmgtot 3.8s ease-out both; }
body.tight .ptlifeb > .ptdmgtot.still { animation-name: ptdmgtotq; }
body.tight .pttbl.ptcol .ptlifeb { position: relative; }
@media (prefers-reduced-motion: reduce) { body.tight .ptlifeb > .ptdmgtot { animation-name: ptdmgtotq; } }
/* ticket #162 (owner 2026-11-03, mockup RjRPsAyEz5SKraGyGfUhQc A1/L1): the block preview while you declare blockers. A creature that dies:
   its art fades and a skull sits in the P/T chip; one that may die (the attacker orders its damage): less faded, a hollow skull and a
   dashed chip; survivors unmarked. Your life: "→ 33 (−7)" beside the badge, the split per attacker in its tip */
body.tight .ptslot.pttl.ptdies > .ptc { --veil: .4; }
body.tight .ptslot.pttl.ptmaydie > .ptc { --veil: .18; }
body.tight .ptslot.pttl:is(.ptdies, .ptmaydie) > .ptc > .ptnp { z-index: 2; }
body.tight .ptslot.pttl:is(.ptdies, .ptmaydie) .ptnppt { color: var(--bad); }
body.tight .ptslot.pttl.ptmaydie .ptnppt { outline: 1px dashed color-mix(in srgb, var(--bad) 55%, transparent); outline-offset: 2px; }
body.tight .ptnppt > .ptfate { display: inline-flex; align-items: center; margin-right: var(--sp-1); }
body.tight .ptnppt > .ptfate svg { display: block; }
body.tight .ptlifeb > .ptlifeprev { position: absolute; left: 100%; top: 50%; translate: var(--sp-4) -50%; display: inline-flex; align-items: baseline; gap: var(--sp-2); white-space: nowrap; pointer-events: auto; cursor: help; font-size: var(--fs-2xl); line-height: 1; color: color-mix(in srgb, var(--bad) 70%, var(--ttext, #f1ece0)); }
body.tight .ptlifeb > .ptlifeprev .arr { font-size: var(--fs-lg); color: var(--muted); }
body.tight .ptlifeb > .ptlifeprev .d { font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
body.tight .pttbl.ptcol .ptlifeb > .ptlifeprev { font-size: var(--fs-lg); }
/* ---------- T430 view controls (owner 2026-11-03, mockup NvohvWCRsvDDHStx2TD542, SCOPE 17.22, T430): tabs at the top (.dkswitch, core.js
   RZ.viewTabs) say what you look at; the tool row: main action, search, then Filter, Sort, Grid/List; the part bar (RZ.partBar) at the
   bottom of a phone, a switch at the start of the tool row wider (RZ.partSwitch) ---------- */
body.tight .vtools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
body.tight .vtools > .grow { flex: 1 1 0; }
body.tight .vtools .vtsearch { flex: 1 1 220px; min-width: 0; }
body.tight .partsw button { display: inline-flex; align-items: center; }
body.tight .toolic { position: relative; flex: none; }
body.tight .toolic .excount { position: absolute; top: -6px; right: -6px; font-size: var(--fs-xs); }
@media (pointer: coarse) { body.tight .toolic::after { content: ''; position: absolute; inset: -4px; } }   /* a 44px target around the 36px icon */
body.tight .dkswitch.vtscroll { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
body.tight .dkswitch.vtscroll::-webkit-scrollbar { display: none; }
body.tight .dkswitch.vtscroll > button { flex: none; white-space: nowrap; }
@media (max-width: 700px) {
  body.tight .dkswitch { gap: var(--sp-6); }
  body.tight .dkswitch.vtscroll { padding-right: var(--sp-7); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  body.tight .vtools { flex-wrap: nowrap; }
  body.tight .ectools { flex-wrap: nowrap; }
}
body.tight .ecshow { gap: var(--sp-3); padding: 0 0 var(--sp-4); }
/* T430 Leaderboards on a phone: Season is a small pill in the slim title row (a sheet with the seasons), beside the board's i */
body.tight .lbslim { flex: none; gap: var(--sp-2); align-items: center; min-width: 0; }
body.tight .lbctx { display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 160px; min-height: var(--h-xs); padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; color: var(--text2); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
@media (pointer: coarse) { body.tight .lbctx { position: relative; } body.tight .lbctx::after { content: ''; position: absolute; inset: -8px -2px; } }

/* ---------- T451 (owner 2026-11-03, mockup Vw1FNc7n9tEYYGNqNEahuv, direction C with title T1): the seat plate and the player card ----------
   playtest.js platePill / plateTitle / cardOpen. The plate is a quiet ink pill: the top pinned badge (18 px medallion), then the calm name in
   the player's name colour with their supporter look (RZ.styledName: sigil, wave; a soft glow in the tier colour here). The title sits free
   under the pill in gold italic with a dark shadow, so it reads on any arena; the commander quiet under that. Pods keep the ribbon's box
   (its height is the table's geometry): the pill and one line (Out, the title, else the commander). The phone row is flat on its strip and
   the whole row is the button. The player card (#ptpcard) is fixed outside the board: a popover by the plate, a bottom sheet on phones. */
body.tight .ptpl { position: relative; display: inline-flex; align-items: center; gap: var(--sp-3); max-width: 100%; min-width: 0; box-sizing: border-box; padding: var(--sp-1) var(--sp-5) var(--sp-1) var(--sp-2); border: 0; border-radius: var(--r-pill);
  background: rgba(9, 13, 18, .92); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 50%, transparent), 0 6px 14px rgba(0, 0, 0, .5); color: var(--ttext); font: inherit; font-size: var(--fs-md); font-weight: 800; line-height: 1.2; white-space: nowrap; text-shadow: none; text-align: left; }
body.tight { --ptpl-lead: var(--sp-5); }   /* a pill's room before its name (and, after a turn-order number, before a badge) */
body.tight .ptpl:not(:has(> .ptplb)) { padding-left: var(--ptpl-lead); }
body.tight .ptpl > .rzns, body.tight .ptpl > .rznsn { flex: 0 1 auto; min-width: 0; }
body.tight .ptpl .rzns .rznsn { min-width: 0; }
body.tight .ptpl .rzns.sup .rznsn, body.tight .ptpcn .rzns.sup .rznsn { text-shadow: 0 0 8px color-mix(in srgb, var(--sxglow) 45%, transparent); }
body.tight .ptplb { flex: none; width: 18px; display: inline-flex; }
body.tight .ptplb .medal { width: 100%; }
body.tight .ptpl .ptclock { margin-left: var(--sp-1); min-height: 0; padding: 0 var(--sp-2); font-size: 11px; line-height: 1.3; border-radius: var(--r-tag); }
body.tight .ptplbtn { cursor: pointer; }
body.tight .ptplbtn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }   /* a 44 px target on a slim pill */
/* T755 #19 (owner Q109 = A): on a phone the plate's mana/counter row and its badges (commander tax) are 17-19 px tall; an invisible
   24 px square around each takes the tap, with no change to the look. Other controls on top keep their own taps */
body.tight .ptwrap.mob .pttbl .ptmav[tabindex] { position: relative; }
body.tight .ptwrap.mob .pttbl :is(.ptmav[tabindex], button.ptpbadge)::after { content: ""; position: absolute; top: min(0px, calc(50% - 12px)); bottom: min(0px, calc(50% - 12px)); left: min(0px, calc(50% - 12px)); right: min(0px, calc(50% - 12px)); }
body.tight .ptplbtn:hover { box-shadow: inset 0 0 0 1px var(--tline), 0 6px 14px rgba(0, 0, 0, .5); }
body.tight :is(.ptplbtn, .ptseatrow):focus-visible { outline: 2px solid var(--tline); outline-offset: 2px; }
body.tight .ptplw { display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-1); min-width: 0; max-width: 100%; }
body.tight .ptplt { max-width: 100%; font-family: var(--tserif); font-style: italic; font-weight: 600; font-size: var(--fs-md); line-height: 1.15; color: #ecd9a4; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .9); }
body.tight .ptplt.cmd { font-style: normal; font-weight: 700; font-size: 11px; color: rgba(233, 207, 143, .85); }
body.tight .ptplt.out { font-family: inherit; font-style: normal; font-weight: 700; font-size: 11px; color: var(--tsteel); }
body.tight .ptname .ptnm:has(.ptplw) { align-items: flex-start; }
body.tight .ptname .ptnm .ptplw + * { align-self: center; }
body.tight .ptwrap.ptt.hud2 .pttbl:not(.ptcol) .ptnm .ptpl { font-size: var(--fs-lg); }
body.tight .ptwrap.ptt.hud2 .pttbl:not(.ptcol) .ptnm .ptplb { width: 22px; }
/* pods: the ribbon box holds the pill and its line, no ink of its own */
body.tight .ptprib.ptseatpl { background: none; box-shadow: none; overflow: visible; padding: 0; gap: var(--sp-1); }
body.tight .ptprib.ptseatpl > * { flex: none; max-width: 100%; }
body.tight .pttbl.ptpod .ptprib.ptseatpl { justify-content: center; }   /* the ribbon's box is the table's geometry: pill and line stay within a few px of it */
/* ticket #333: mirrored seats, a top seat's line (title, Out) sits above its pill, away from the portrait, as a bottom seat's sits under it */
body.tight .pttbl.ptpod .ptprib.ptseatpl.top { flex-direction: column-reverse; }
body.tight .pttbl.ptpod .ptprib.ptseatpl .ptpl { gap: var(--sp-2); padding: var(--sp-1) var(--sp-5) var(--sp-1) var(--sp-1); font-size: var(--fs-xs); line-height: 1.1; }
body.tight .pttbl.ptpod .ptprib.ptseatpl .ptpl:not(:has(> .ptplb)) { padding-left: var(--ptpl-lead); }
body.tight .pttbl.ptpod .ptprib.ptseatpl .ptplb { width: 16px; }
body.tight .pttbl.ptpod .ptprib.ptseatpl .rzns:is(.sup-archivist, .sup-loremaster, .sup-team) .rznsn { padding-bottom: 4px; }
body.tight .pttbl.ptpod .ptprib.ptseatpl .ptplt { font-size: var(--fs-xs); line-height: 1.1; }
body.tight .pttbl.ptpod .ptprib.ptseatpl .ptplt:is(.cmd, .out) { font-size: 11px; }
/* the phone row: flat on the plate's strip, the whole row the button (44 px) */
body.tight .pttbl.ptcol .ptseatn > .ptprib.ptseatpl { min-height: 44px; padding: 0; border: 0; border-radius: var(--r-tag); justify-content: center; align-items: flex-start; gap: 0; font: inherit; color: var(--ttext); text-align: left; }
body.tight .pttbl.ptcol .ptseatn > button.ptseatrow { cursor: pointer; }
body.tight .ptpl.flat { padding: 0; background: none; box-shadow: none; font-size: var(--fs-md); }
body.tight .pttbl.ptcol .ptseatrow .ptplt { font-size: var(--fs-sm); }
body.tight .pttbl.ptcol .ptseatrow .ptpribs { font-family: inherit; font-weight: 400; font-size: 11px; color: #b9b2a0; }
/* Board settings > Motion Off and reduced motion: the wave and the sigil stand still (the media query above covers reduced motion) */
body.tight .ptwrap.fxoff .rzns .rznsn::after, body.tight .ptwrap.fxoff .rzsig * { animation: none !important; }
/* the player card */
body.tight .ptpcard { --ttext: #f1ece0; --tgold: #e9cf8f; --tline: #e9cf8f; --tsteel: #c8d2e1; --tserif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; position: fixed; inset: 0; z-index: 96; pointer-events: none; }
body.tight .ptpcard.sheet { pointer-events: auto; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(5, 8, 12, .6); }
body.tight .ptpcbox { pointer-events: auto; position: absolute; width: 300px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: var(--sp-6); display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  border-radius: var(--r-box); background: linear-gradient(180deg, #17212b, #0c1218); box-shadow: inset 0 0 0 1px rgba(233, 207, 143, .55), 0 20px 40px rgba(0, 0, 0, .6); color: var(--ttext); text-align: center; }
body.tight .ptpcard.sheet .ptpcbox { position: relative; width: 100%; max-width: none; padding: var(--sp-4) var(--sp-6) max(var(--sp-7), env(safe-area-inset-bottom)); gap: var(--sp-3); border-radius: var(--r-box) var(--r-box) 0 0; box-shadow: inset 0 1px 0 rgba(233, 207, 143, .55); }
body.tight .ptpcgrip { width: 40px; height: 4px; border-radius: var(--r-pill); background: rgba(200, 210, 225, .4); }
body.tight .ptpcx { position: absolute; right: var(--sp-2); top: var(--sp-2); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--tsteel); cursor: pointer; }
body.tight .ptpcx:hover { background: rgba(255, 255, 255, .08); }
body.tight .ptpcx:focus-visible { outline: 2px solid var(--tline); outline-offset: 2px; }
body.tight .ptpcav { display: inline-flex; margin: var(--sp-4) 0 var(--sp-2); }
body.tight .ptpcard.sheet .ptpcav { margin-top: var(--sp-1); }
body.tight .ptpcn { max-width: 100%; min-width: 0; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; }
body.tight .ptpcard.sheet .ptpcn { font-size: var(--fs-xl); }
body.tight .ptpcn .rzns { max-width: 100%; }
body.tight .ptpct { margin-top: calc(-1 * var(--sp-2)); font-family: var(--tserif); font-weight: 600; font-size: var(--fs-xl); color: var(--tgold); }
body.tight .ptpcl { font-size: var(--fs-xs); color: #b9b2a0; }
body.tight .ptpcsup { padding: var(--sp-1) var(--sp-5); border-radius: var(--r-pill); font-size: 11px; font-weight: 700; color: #0b1016; background: linear-gradient(90deg, var(--sx1), var(--sx2), var(--sx3), var(--sx4)); }
body.tight .ptpcbdg { list-style: none; align-self: stretch; margin: var(--sp-2) 0 0; padding: var(--sp-5) 0 0; display: grid; grid-template-columns: repeat(auto-fit, 84px); justify-content: center; gap: var(--sp-4); border-top: 1px solid rgba(233, 207, 143, .25); }
body.tight .ptpcbdg li { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .ptpcbdg .medal { width: 40px; }
body.tight .ptpcbdg b { font-size: 11px; font-weight: 700; line-height: 1.2; }
body.tight .ptpcbdg span { font-size: 11px; color: #b9b2a0; }
body.tight .ptpcard.fxoff *, body.tight .ptpcard.fxoff *::before, body.tight .ptpcard.fxoff *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { body.tight .ptpcard *, body.tight .ptpcard *::before, body.tight .ptpcard *::after { animation: none !important; } }

/* T466: Rule Ø lobbies in #looking-for-game. The lobby's Discord line under Who can join; Plan a game and the Planned list in the Play menu */
body.tight .pflfg { padding: 0 0 var(--sp-2); }
body.tight .pflfg .linkbtn { min-height: 0; padding: 0; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-title); }
body.tight .pflfgdot { width: var(--sp-3); height: var(--sp-3); border-radius: var(--r-pill); background: var(--muted); flex: none; }
body.tight .pflfgdot.on { background: var(--ok); }
body.tight .plwhen { min-height: var(--h-sm); padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--text); font: inherit; font-size: var(--fs-md); max-width: 100%; }
body.tight .plwhen::-webkit-calendar-picker-indicator { display: none; }   /* the calendar button beside it opens the picker */
body.tight .plcal { width: var(--h-sm); height: var(--h-sm); border: 1px solid var(--line); border-radius: var(--r-ctl); }
/* a planned game's card: the base that the Play drawer's open card and full row (T826, further down) and the chat card build on */
body.tight .plpcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
body.tight .plpcard.focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }   /* T491: the game a shared link opened */
body.tight .plpwhen { position: absolute; z-index: 1; }
body.tight .plpwhen { left: var(--sp-4); top: var(--sp-4); padding: var(--sp-1) var(--sp-4); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill); background: rgba(14, 14, 22, .62);
  color: #fff; font-size: var(--fs-sm); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; white-space: nowrap; backdrop-filter: blur(6px); }
body.tight .plpsym { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--h-xs); height: var(--h-xs); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-tag); background: rgba(14, 14, 22, .62); }
body.tight .plpsym img { width: var(--sp-6); height: var(--sp-6); filter: invert(1); }
body.tight .plpmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); min-width: 0; color: var(--muted); font-size: var(--fs-sm); }
body.tight .plphost { display: inline-flex; align-items: center; gap: var(--sp-3); min-width: 0; color: var(--text2); font-weight: var(--fw-label); }
body.tight .plptag { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
body.tight .plpdc { color: #8891f2; }
body.tight.light .plpdc { color: #4752c4; }
body.tight .plpfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
body.tight .plpseats { display: inline-flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .plppips { display: inline-flex; align-items: center; }
body.tight .plppips > * { flex: none; box-shadow: 0 0 0 2px var(--panel); border-radius: 50%; }
body.tight .plppips > * + * { margin-left: -4px; }
body.tight .plppip { width: var(--sp-7); height: var(--sp-7); border: 1.5px dashed color-mix(in srgb, var(--muted) 70%, transparent); box-shadow: none !important; }
body.tight .plppips > .plppip + .plppip, body.tight .plppips > * + .plppip { margin-left: 3px; }
body.tight .plpseats.sm { gap: var(--sp-3); }
body.tight .plpseats.sm .plppip { width: calc(var(--sp-6) + var(--sp-2)); height: calc(var(--sp-6) + var(--sp-2)); }
body.tight .plpcnt { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tight .plpcnt b { color: var(--text); }
body.tight .plpans { display: inline-flex; gap: var(--sp-3); margin-left: auto; }
body.tight .plpfoot > .btn { margin-left: auto; }
body.tight .btn.plpmaybe { background: var(--panel); }   /* readable over Home's faded banner */
body.tight .btn.plpmaybe.on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .btn.plpin { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 16%, var(--panel)); color: var(--ok); }
/* T758, T759 (owner sign-off 2026-11-13, mockup S7qBLQyVfY83pGhtuiMSyw): the reserve, your state with Join / Maybe / Leave, the host's
   Share icon + Invite friends, and the chat card (playfriend.js planState, planInviteSheet, RZ.plannedChatCard) */
body.tight .plpres { padding: 0 var(--sp-3); border: 1px dashed color-mix(in srgb, var(--muted) 70%, transparent); border-radius: var(--r-pill); color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
body.tight .plpshr { width: var(--h-sm); height: var(--h-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text2); }
body.tight .plpshr:hover, body.tight .plpshr:focus-visible { border-color: var(--accent); color: var(--text); }
body.tight .plpdrop { position: relative; flex: none; display: inline-flex; }
body.tight .plpstate { margin-left: auto; }
body.tight .btn.plpresv { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); }
body.tight .plpcaret { margin-left: var(--sp-1); font-size: var(--fs-xs); opacity: .8; }
body.tight .plpmenu { position: absolute; right: 0; top: calc(100% + var(--sp-1)); z-index: 5; display: flex; flex-direction: column; gap: var(--sp-1); width: 240px; max-width: 80vw;
  padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
body.tight .plpcard:has(.plpdrop.open), body.tight .hmpgrow:has(.plpdrop.open) { position: relative; overflow: visible; z-index: 2; }   /* T869: a card that clips lets its open menu out (.plpmenu floats) */
body.tight .plpmi { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-tag); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .plpmi b { font-size: var(--fs-sm); } body.tight .plpmi small { color: var(--muted); font-size: var(--fs-xs); }
body.tight .plpmi:hover:not([disabled]), body.tight .plpmi:focus-visible { background: var(--chip); }
body.tight .plpmi.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.tight .plpmi[disabled] { cursor: default; } body.tight .plpmi[disabled] b { color: var(--muted); }
body.tight .plpmi.bad b { color: var(--bad); }
body.tight .plinvsub { font-weight: normal; }
body.tight .szmsg.plc { padding: 0; background: none; border: 0; max-width: min(300px, 86%); }
body.tight .szmsg.plc > .szmsgin { display: block; }
body.tight .plccard { display: flex; flex-direction: column; width: 100%; min-width: 220px; max-width: 300px; overflow: visible; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); color: var(--text); }
body.tight .plccard.plchid { gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); }
body.tight .plccard.gone { opacity: .65; }
body.tight .plccart { position: relative; height: 64px; border-radius: var(--r-box) var(--r-box) 0 0; background-size: cover; background-repeat: no-repeat; }
body.tight .plccart.noart { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, var(--panel)), var(--panel) 80%); }
body.tight .plccart .plpwhen { position: absolute; }
body.tight .plccopen { position: absolute; right: var(--sp-3); top: var(--sp-3); width: var(--h-xs); height: var(--h-xs); border: 1px solid rgba(255, 255, 255, .2); background: rgba(14, 14, 22, .62); color: #fff; }
body.tight .plccbody { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
body.tight .plcctitle { font-size: var(--fs-lg); }
body.tight .plccbody .plpfoot { margin-top: var(--sp-3); }
/* All planned games: the drawer's (and Home's) one way to the whole list (planAll in playfriend.js) */
body.tight .plallrow { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-lg); padding: var(--sp-3) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box);
  background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .plallrow:hover, body.tight .plallrow:focus-visible { border-color: var(--accent); }
body.tight .plallrow > .uico { color: var(--muted); }
body.tight .plallt { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
body.tight .plallcnt { min-width: 22px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--chip); color: var(--text2); font-size: var(--fs-xs); font-weight: var(--fw-display); text-align: center; }
body.tight .plpless { align-self: flex-start; }
/* Home's rows (planHomeRow): a faded banner from the right, the time and title left, the seats and the answer right */
body.tight .hmpgrows { gap: var(--sp-4); }
body.tight .hmpgrow { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3) var(--sp-6);
  min-height: var(--h-lg); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); cursor: pointer; }
body.tight .hmpgart { position: absolute; inset: 0 0 0 30%; border-radius: inherit; background-size: cover; background-repeat: no-repeat; opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
body.tight.light .hmpgart { opacity: .38; }
body.tight .hmpgart.noart { display: none; }
body.tight .hmpgrow > :not(.hmpgart) { position: relative; }
body.tight .hmpgtxt { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
body.tight .hmpgl1 { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .hmpgl1 b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-lg); font-weight: var(--fw-display); }
body.tight .hmpgl1 .plpsym { width: calc(var(--sp-6) + var(--sp-2)); height: calc(var(--sp-6) + var(--sp-2)); border-color: var(--line); background: var(--chip); }
body.tight .hmpgl1 .plpsym img { width: var(--sp-5); height: var(--sp-5); filter: none; }
body.tight:not(.light) .hmpgl1 .plpsym img { filter: invert(1); }
body.tight .hmpgwhen { flex: none; color: var(--gold); font-weight: var(--fw-title); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.tight .hmpgend { display: flex; align-items: center; gap: var(--sp-5); }
body.tight .hmpgend .plpseats { padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--panel) 60%, transparent); backdrop-filter: blur(4px); }
body.tight .hmpgyours { color: var(--gold); font-size: var(--fs-sm); font-weight: var(--fw-title); white-space: nowrap; padding: 0 var(--sp-3); }
body.tight .hmpgplan { margin-left: auto; }
@media (max-width: 700px) {   /* phone: the seats and the answer on a line of their own */
  body.tight .hmpgrow { grid-template-columns: minmax(0, 1fr); }
  body.tight .hmpgart { inset: 0 0 0 15%; }
  body.tight .hmpgend { justify-content: space-between; }
  body.tight .hmpgrow .plpdc { display: none; }
}

/* T479 / T524 (owner 2026-11-05): links to a deck's Matches tab: a deck card's match line (desktop) and "· 2 matches ›" on a phone's deck line;
   the tab's count (.dvmtbtn) */
body.tight .dvmtbtn .dkswn { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--chip); }
body.tight .dvmtbtn.dvmtph { flex: none; gap: var(--sp-2); padding: 0 var(--sp-4); }
body.tight .dkrow-meta .dkmatchlink { font: inherit; color: inherit; min-height: 0; padding: 0; }
body.tight .dkrow-meta .dkmatchlink:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
body.tight .dkline-mt { color: var(--accent); }
/* T70 (owner 2026-11-03, signed off, mockup NcV3L4ZyPk5c3UvXwhSXEf round 6b): New game with Plan beside it; the one-line open seat;
   the compact seat (5 seats and more): avatar, the name with its one symbol, then the title and the pinned badges on one line, about 56 */
body.tight .plnew { display: flex; gap: var(--sp-4); align-items: stretch; }
body.tight .plnew > .plact.gold { flex: 1 1 auto; min-width: 0; }
body.tight .plnew > .plplan { width: auto; flex: none; gap: var(--sp-4); padding-right: var(--sp-6); }
body.tight .pdseat.pdopenseat.line, body.tight .pddrawer .pdopenseat.line { display: flex; flex-direction: row; align-items: center; gap: var(--sp-4); min-height: var(--h-lg); padding: var(--sp-3) var(--sp-5); }
body.tight .pdseat.pdopenseat.line .pdhead { flex: 0 0 auto; }
body.tight .pdseat.pdopenseat.line .pdopenacts { flex-wrap: nowrap; }
body.tight .pdseats.compact { gap: var(--sp-3); }
body.tight .pdseat.cseat, body.tight .pddrawer .pdseat.box.cseat { display: flex; flex-direction: row; align-items: center; gap: var(--sp-4); min-height: var(--h-lg); padding: var(--sp-2) var(--sp-5); }
body.tight .cseat .cseatb { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1 1 auto; min-width: 0; }
body.tight .cseat .cseatn { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .cseat .cseatn .rzns { min-width: 0; }
body.tight .cseat .cseatt { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; font-size: var(--fs-xs); }
body.tight .cseat .cseatt .rztitle { font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body.tight .cseat .cseatbd { display: inline-flex; gap: var(--sp-1); flex: none; }
body.tight .cseat .cseatend { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
/* T875: the slim seat's ⋯ menu (the voice rows) opens as a full line under the row */
body.tight .cseat .pdmore { flex: none; }
body.tight .cseat:has(> .pdmenu) { flex-wrap: wrap; }
body.tight .cseat:has(> .pdmenu) .cseatb { flex: 1 1 0; }
body.tight .cseat > .pdmenu { flex: 1 1 100%; }
body.tight .pdseat.pdopenseat.line .pdhead { flex-wrap: nowrap; }
body.tight .plfmt .seg { display: flex; }
body.tight .plfmt .seg button { flex: 1 1 0; }
body.tight .pdseat.pdopenseat.line .pdhead b, body.tight .pdseat.pdopenseat.line .pdopenacts .btn { white-space: nowrap; }
body.tight .pdseat.pdopenseat.line .pdopenacts { margin-left: auto; gap: var(--sp-3); }
body.tight .pdseat.pdopenseat.line .pdplus { display: none; }   /* one line: the dashed box says it is open; the + made it too wide on phones */
body.tight .pdseat.pdopenseat.line .pdseatx { margin-left: 0; }
/* 2026-11-03: the supporter sigil as a flourish pick (namestyle.js flourishes): the glyph at the flourishes' size, the light theme's twins */
body.tight .nsflg .rzsig svg { width: 20px; height: auto; aspect-ratio: 1; }
body.tight .nsfl.locked { padding-right: var(--sp-7); }   /* the lock badge clears a two-line label (the sigil: "Supporters") */
body.tight .nsflg .rzsig.sup-team svg { width: 18px; height: auto; aspect-ratio: 1; }
body.tight.light .nsflg .rzsig.sup-apprentice svg { fill: url(#rzSupG1L); filter: none; }
body.tight.light .nsflg .rzsig.sup-archivist svg { fill: url(#rzSupG2L); filter: none; }
body.tight.light .nsflg .rzsig.sup-loremaster svg { fill: url(#rzSupG3L); filter: none; }
body.tight.light .nsflg .rzsig.sup-team .rzteam path { fill: url(#rzTeamGL); }
/* T70 Limited: the set rows of Sealed vs AI (the set's symbol in the deck-art slot) */
body.tight .pfdeckart.plsetic { display: inline-flex; align-items: center; justify-content: center; background: var(--chip); }
body.tight .pfdeckart.plsetic img { width: var(--h-xs); height: var(--h-xs); object-fit: contain; filter: invert(.85); }
body.tight.light .pfdeckart.plsetic img { filter: none; }
/* T490: the set drawer keeps the set's symbol on a phone (deck art hides there) */
@media (max-width: 700px) { body.tight .pfdeck .pfdeckart.plsetic { display: inline-flex; width: var(--h-md); } }
/* T70 Sealed: the pool page (sealed.js): the pool grid left, the deck right; phones: Pool | Deck tabs */
body.tight .sealh { margin: 0; font-size: var(--fs-2xl); }
body.tight .sealcols { align-items: flex-start; }
body.tight .sealgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--sealw, 130px), var(--sealmax, 156px))); justify-content: start; gap: var(--sp-4); }
/* #200: the pool's Size slider (sealed.js ZOOMS): each step fewer, bigger cards per row; phones 4 / 3 / 2 / 1 per row */
/* each step has a largest card (owner 2026-11-04): a wider window shows more cards per row, not bigger ones */
body.tight .sealgrid.z0 { --sealw: 100px; --sealmax: 120px; }
body.tight .sealgrid.z1 { --sealw: 130px; --sealmax: 156px; }
body.tight .sealgrid.z2 { --sealw: 170px; --sealmax: 204px; }
body.tight .sealgrid.z3 { --sealw: 220px; --sealmax: 264px; }
/* the slider shrinks so it stays in the tool row: next to the sort on tablets (owner 2026-11-04), next to the sort's second row on phones */
body.tight .sizeslider { flex: 1 1 110px; max-width: 170px; }
body.tight .sizeslider input[type=range] { width: 100%; min-width: 64px; min-height: var(--h-sm); margin: 0; accent-color: var(--accent); }
body.tight .sealcard { position: relative; padding: 0; border: 0; background: none; border-radius: var(--r-ctl); cursor: pointer; }
body.tight .sealcard img { width: 100%; aspect-ratio: 63 / 88; border-radius: var(--r-ctl); display: block; background: var(--chip); }
body.tight .sealcard.on img { opacity: .4; }
body.tight .sealcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .sealin { position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-6); text-align: center; background: var(--panel); border-radius: var(--r-tag); font-size: var(--fs-xs); font-weight: var(--fw-title); padding: var(--sp-1) 0; }
body.tight .sealdeck { width: 280px; flex: none; position: sticky; top: var(--sp-6); }   /* #193: 280 (was 340), the pool and the stacks get the width */
body.tight .sealn { font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; }
body.tight .sealdeckhd { min-height: var(--h-sm); }   /* #206: the panel's name */
body.tight .sealdeck.sealhot { outline: 2px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent) 12%, transparent); }   /* owner 2026-11-06: a pool card held over the panel */
body.tight .sealbasichd { min-height: var(--h-sm); }   /* Basic lands with Fill lands at the end */
body.tight .sealdeckh { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-title); }
/* #206 (mockup 7MMvQkeep7MVfWKX45zVao A + C): Pool | Deck in the tool row, a drop target while a card is held; the curve and colours */
body.tight .sealtabn { font-variant-numeric: tabular-nums; color: var(--muted); }
body.tight .seg.sealtabs button.on .sealtabn { color: inherit; }
body.tight .sealtabs button.sealhot { outline: 2px solid var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
body.tight .sealtabs button[data-pooldrop].sealhot { outline-color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, transparent); }
body.tight .sealcurve { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2); align-items: end; }
body.tight .sealcbar { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
body.tight .sealcbar i { display: block; width: 100%; max-width: 28px; border-radius: var(--r-tag) var(--r-tag) 0 0; background: var(--accent); }
body.tight .sealcn { min-height: 1.2em; font-weight: var(--fw-title); }
body.tight .sealck { color: var(--muted); }
body.tight .sealcolours .pip { flex: none; }
body.tight .sealdl { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: var(--sp-8); }
body.tight .sealdl li { break-inside: avoid; }
body.tight .sealdlrow { width: 100%; min-height: var(--h-xs); padding: 0 var(--sp-2); border: 0; border-radius: var(--r-tag); background: none; color: inherit; text-align: left; cursor: pointer; }
body.tight .sealdlrow:hover, body.tight .sealdlrow:focus-visible { background: var(--chip); }
body.tight .seallist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); max-height: 320px; overflow: auto; }
body.tight .sealmv { width: var(--sp-6); text-align: right; font-variant-numeric: tabular-nums; }
body.tight .sealstep { display: inline-flex; align-items: center; }
body.tight .sealstepn { min-width: var(--h-sm); text-align: center; font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  body.tight .sealgrid { grid-template-columns: repeat(var(--sealn, 3), minmax(0, 1fr)); gap: var(--sp-3); }
  body.tight .sealgrid.z0 { --sealn: 4; }
  body.tight .sealgrid.z1 { --sealn: 3; }
  body.tight .sealgrid.z2 { --sealn: 2; }
  body.tight .sealgrid.z3 { --sealn: 1; }
  body.tight .sealdeck { width: auto; position: static; }
}
/* T70 Limited with people: the event's standings on the pool page (you in bold), the lobby's Limited line, the opponent waiting (a gold edge) */
body.tight .sealstand li.you { font-weight: var(--fw-title); }
body.tight .sealdeck { max-height: calc(100vh - 140px); overflow: auto; }   /* the event's standings made the sticky deck panel taller than the screen */
@media (max-width: 700px) { body.tight .sealdeck { max-height: none; overflow: visible; } }
body.tight .sealwait { box-shadow: 0 0 0 2px var(--gold); }
/* #186 / #193 (owner sign-off 2026-11-04, mockup 5tsq46S8pLUhR38457517k v7): the card large, the deck stacks, the play strip */
body.tight .sealcell { position: relative; min-width: 0; }
body.tight .sealcell > .sealcard { width: 100%; }
body.tight .sealzbtn { display: none; position: absolute; top: var(--sp-3); right: var(--sp-3); width: var(--h-xs); height: var(--h-xs); border-radius: var(--r-pill); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--text); place-items: center; padding: 0; cursor: pointer; }
@media (hover: none) { body.tight .sealzbtn { display: grid; } }   /* no hover: the zoom button opens the card sheet */
body.tight .sealprev { position: fixed; z-index: 80; pointer-events: none; border-radius: var(--r-box); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
body.tight .sealprev img { width: 100%; display: block; aspect-ratio: 63 / 88; border-radius: var(--r-box); }
body.tight .sealsheet img { width: min(300px, 80vw); aspect-ratio: 63 / 88; border-radius: var(--r-box); display: block; }
body.tight .sealsheet .sealmoves { align-self: stretch; }
body.tight .sealset { display: inline-flex; align-items: center; gap: var(--sp-3); }
body.tight .sealset img { width: 1.35em; height: 1.35em; object-fit: contain; filter: invert(.85); }
body.tight.light .sealset img { filter: none; }
body.tight .sealbasic .pip { flex: none; }
/* the play strip: your run, Play, Leave (top right of the title row; a phone: the top of the Deck tab) */
body.tight .sealtitle { row-gap: var(--sp-4); }
body.tight .sealplay { justify-content: flex-end; }
body.tight .sealrun { gap: var(--sp-4); }
body.tight .sealscore { display: inline-flex; align-items: baseline; gap: var(--sp-2); font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; }
body.tight .sealscore .w { color: var(--ok); } body.tight .sealscore .l { color: var(--bad); }
body.tight .sealdots { display: inline-flex; gap: var(--sp-2); }
body.tight .sealdots i { width: 1.5em; height: 1.5em; border-radius: var(--r-pill); display: grid; place-items: center; font-size: var(--fs-xs); line-height: 1; font-weight: var(--fw-title); font-style: normal; color: var(--bg); }
body.tight .sealdots i.w { background: var(--ok); } body.tight .sealdots i.l { background: var(--bad); } body.tight .sealdots i.d { background: var(--muted); }
body.tight .sealdots i.o { border: 1.5px dashed var(--line); }
body.tight .sealleave { width: var(--h-sm); height: var(--h-sm); padding: 0; display: inline-grid; place-items: center; }
body.tight .sealleave.armed { width: auto; padding: 0 var(--sp-4); display: inline-flex; gap: var(--sp-2); }
/* the stacks under the pool: the pool scrolls in its own box, the deck in columns by mana value, creatures above other spells */
body.tight .sealstacks { min-width: 0; }
body.tight .sealsrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-3); }
body.tight .sealscol { min-width: 0; min-height: calc(var(--h-lg) * 2); border-radius: var(--r-ctl); padding: var(--sp-2); }
body.tight .sealscol.sealhot { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: 2px solid var(--accent); }
body.tight .sealscolhd { display: flex; justify-content: center; padding-bottom: var(--sp-3); }
body.tight .sealmvh { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-title); }
body.tight .sealmvpip { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--muted); }
body.tight .sealmvpip .pip { width: 1.6em !important; height: 1.6em !important; border-radius: var(--r-pill); background: var(--mana-C) !important; -webkit-mask: none; mask: none; position: relative; }   /* a grey round pip (generic mana) with its number cut in */
body.tight .sealmvpip .pip::after { content: ''; position: absolute; inset: 18%; background: var(--bg); -webkit-mask: var(--sealmv) center / contain no-repeat; mask: var(--sealmv) center / contain no-repeat; }
body.tight .sealmvn { font-variant-numeric: tabular-nums; }
body.tight .sealpile { display: flex; flex-direction: column; max-width: 140px; margin: 0 auto; }
body.tight .sealsc { cursor: grab; border-radius: var(--r-tag); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
body.tight .sealsc + .sealsc { margin-top: calc(-139.7% + 22px); }   /* a card shows its title bar over the one before it (139.7% = 88 / 63 of the width) */
body.tight .sealsc img { width: 100%; aspect-ratio: 63 / 88; display: block; border-radius: var(--r-tag); box-shadow: 0 -1px 0 rgba(0, 0, 0, .6); pointer-events: none; }
body.tight .sealsc:hover { position: relative; z-index: 1; }
body.tight .sealsc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; position: relative; z-index: 2; }
body.tight .sealghost { position: fixed; z-index: 90; pointer-events: none; border-radius: var(--r-tag); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); transform: rotate(-3deg); aspect-ratio: 63 / 88; }
body.tight.sealdragging, body.tight.sealdragging * { cursor: grabbing !important; }
@media (prefers-reduced-motion: reduce) { body.tight .sealghost { transform: none; } }
/* phones: the Deck tab's stacks, a row per mana value to scroll sideways */
body.tight .sealpstrip { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2); }
body.tight .sealpc { flex: 0 0 64px; padding: 0; border: 0; background: none; border-radius: var(--r-tag); cursor: pointer; }
body.tight .sealpc img { width: 64px; aspect-ratio: 63 / 88; display: block; border-radius: var(--r-tag); }
body.tight .sealpsep { flex: 0 0 1px; background: var(--line); margin: var(--sp-3) var(--sp-1); }
body.tight .sealpstacks .sealscolhd { justify-content: flex-start; }
@media (max-width: 1000px) { body.tight .sealsrow { gap: var(--sp-2); } body.tight .sealstackhd .seg button { padding: 0 var(--sp-3); } }
@media (min-width: 701px) and (max-width: 900px) { body.tight .sealview .sealvl { display: none; } }   /* small tablets: List | Stacks as icons, so the tool row stays one row */
@media (max-width: 700px) { body.tight .sealplay { justify-content: flex-start; } body.tight .sealplay > .row:last-child { flex: 1 1 100%; } body.tight .sealplay .btn.primary { flex: 1; } }
body.tight .pdlimhead { padding: var(--sp-4) var(--sp-5); }
/* T411 Draft: the pick page (draft.js): the pack as Sealed's grid, the chosen card outlined, the picks bar at the bottom */
body.tight .sealcard.pick { outline: 3px solid var(--accent); outline-offset: 2px; }
body.tight .draftbar { position: sticky; bottom: var(--sp-4); z-index: 5; }
body.tight .draftpicks img { width: var(--h-md); border-radius: var(--r-tag); display: block; }
/* #206 (mockup 7MMvQkeep7MVfWKX45zVao D): the picks in columns by mana value under the pack; the columns scroll inside the bar */
body.tight .draftbar { box-shadow: 0 -10px 28px rgba(0, 0, 0, .35); }
body.tight .draftcols { max-height: min(30vh, 214px); overflow-y: auto; overscroll-behavior: contain; }
body.tight .draftcols .sealscol { min-height: 0; padding: var(--sp-1); }
body.tight .draftcols .sealpile { max-width: 104px; }
body.tight button.draftpc { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
body.tight .draftcolours .pip { flex: none; }
body.tight .draftfold { flex: none; }
/* owner 2026-11-04: a tap on a card opens its details; Pick is its own button under every card (a tap on a phone never picks) */
body.tight .draftcard { min-width: 0; position: relative; }
body.tight .draftconf { position: absolute; inset: 0 0 auto 0; aspect-ratio: 63 / 88; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-4); text-align: center; border-radius: var(--r-ctl); background: rgba(9, 12, 17, .86); color: #ece9e2; }
body.tight .draftconf .btn { width: 100%; max-width: 120px; justify-content: center; }
body.tight .draftconfq { font-size: var(--fs-sm); }
/* owner 2026-11-25: the pick clock is the biggest thing in the header row; amber and pulsing from 15 s */
body.tight .draftclock { font-size: var(--fs-xl); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; gap: var(--sp-3); padding: var(--sp-3) var(--sp-6); display: inline-flex; align-items: center; }
body.tight .draftclock.late { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
@media (prefers-reduced-motion: no-preference) { body.tight .draftclock.late { animation: draftlate 1s ease-in-out infinite; } }
body.tight .draftwarn { color: var(--warn); }
body.tight .drafthead > .tag, body.tight .drafthead > .tabbtn { flex: none; }
body.tight .drafthead > .tag.gtrunc { flex: 0 1 auto; }
@media (max-width: 700px) {
  body.tight .draftpicks { display: none; }
  body.tight .draftbar .btn { flex: 1 1 100%; }
}

/* ---------- T482 (owner 2026-11-04): the deck's picture stays in the same spot when you switch Deck and Build ----------
   Wider than a tablet the Deck tab's left column is Build's deck pane: the same frame running off the left edge, as wide as the pane you
   dragged on Build (--dvleft, from S.b.deckPx), its top as far under the bar and its padding the same, so the commander sits at the same
   place and size on both tabs. "How does this deck play?" tops the right column there (pages3.js), as it tops the draw on Build */
@media (min-width: 1001px) {
  body.tight .deckview { grid-template-columns: calc(var(--dvleft, 330px) - var(--gutter) - 1px) minmax(0, 1fr); margin-top: calc(-1 * var(--sp-5)); }
  body.tight .deckview > .dvbox { margin-left: calc(-1 * var(--gutter) - 1px); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--accent); border-left: 0; border-radius: 0 var(--r-box) var(--r-box) 0; background: var(--bar); }
}
@media (min-width: 1001px) and (max-width: 1300px) {   /* Build caps its deck pane at 270 px here (style.css), so the Deck tab does too */
  body.tight .deckview { grid-template-columns: calc(min(var(--dvleft, 330px), 270px) - var(--gutter) - 1px) minmax(0, 1fr); }
}


/* B19 (Scryfall's image rules, docs/decisions/2026-11-05-scryfall-rules.md): the artist and copyright beside every art crop. core.js
   RZ.artCredit writes .artcredit at the end of a page that shows art crops (none in a dialog since T943); the card panel's Art view has .cdcredit under the art;
   Chronicle's commander art has .gart-credit in its corner */
body.tight .artcredit { margin: auto 0 0; padding-top: var(--sp-4); font-size: 12px; line-height: 1.5; color: var(--muted); }
body.tight details.artcredit > summary { cursor: pointer; list-style: none; }
body.tight details.artcredit > summary::-webkit-details-marker { display: none; }
body.tight details.artcredit > summary::after { content: ' \25BE'; }
body.tight details.artcredit[open] > summary::after { content: ' \25B4'; }
body.tight .artcreditl { margin: var(--sp-2) 0 0; padding: 0; list-style: none; columns: 2 220px; column-gap: var(--sp-6); }
body.tight .cdcredit { margin-top: calc(-1 * var(--sp-2)); font-size: 12px; }
body.tight .gart-credits { position: absolute; right: var(--sp-4); top: var(--sp-3); z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); pointer-events: none; }
body.tight .gart-credit { font-size: 11px; line-height: 1.3; color: rgba(236, 233, 226, .62); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
body.tight .gart-credit:empty { display: none; }

/* ---------- T509 the Play page (/play; owner sign-off 2026-11-05, mockup 5z7gvEoeXPgyPWvER1DKf7 tab 2): at the reading width, start tiles,
   Join a table, and the side column (Coming up, Friends online, Your matches) ---------- */
body.tight .page.hppage > .hpinner { width: 100%; max-width: var(--readw); margin: 0 auto; }
body.tight .hpinner.g20 { gap: var(--sp-7); }
body.tight .hptitle { margin: 0; font-size: var(--fs-3xl); font-weight: var(--fw-display); }
body.tight .hpstart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
body.tight .hptile { position: relative; min-width: 0; }
body.tight .hptilebtn { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); width: 100%; min-height: calc(var(--h-lg) * 2); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); color: var(--text); font: inherit; font-size: var(--fs-lg); text-align: left; cursor: pointer; box-sizing: border-box; }
body.tight .hptilebtn:hover { border-color: var(--accent); }
body.tight .hpico { display: grid; place-items: center; width: 40px; aspect-ratio: 1; border-radius: var(--r-ctl); background: var(--chip); color: var(--accent); }
body.tight .hptile.gold .hptilebtn { border-color: var(--sec); background: linear-gradient(135deg, var(--secBg), var(--card) 70%); }
body.tight .hptile.gold .hpico { color: var(--sec); background: var(--secBg); }
/* T566/T567 (owner 2026-11-06, mockup JByiUY2XgWHvmK5BHfdvch): a tile's panel under the tiles (Matchmaking, Quick game vs AI, Solo practice):
   the open tile carries the accent, the panel the drawer's own content; wide, Quick game's Settings stand beside the deck */
body.tight .hptile.on .hptilebtn { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), var(--card) 70%); }
body.tight .hppanel { gap: var(--sp-6); padding: var(--sp-6); border: 1px solid var(--accent); border-radius: var(--r-box); scroll-margin-top: var(--sp-7); }
body.tight .hppanelh h2 { margin: 0; font-size: var(--fs-lg); }
body.tight .hppanelh .hppanelx { flex: none; }
body.tight .hppanelb { gap: var(--sp-6); min-width: 0; }
body.tight .hppanelb .pfdecks.pfscroll { max-height: min(calc(5 * (var(--h-lg) + var(--sp-4)) + var(--sp-4)), 40vh); }
body.tight .hppanelf { display: flex; }
body.tight .hppanelf > .btn { flex: 0 1 360px; }
body.tight .hppanel.hppanel-mm { padding: var(--sp-4) var(--sp-5); align-items: flex-start; }
body.tight .hppanel-mm .hppanelx { margin-top: var(--sp-2); }
@media (min-width: 1000px) {
  body.tight .hppanel-quick .hppanelb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: var(--sp-7); row-gap: 0; align-items: start; }
  body.tight .hppanel-quick .hppanelb > * { grid-column: 1; margin-bottom: var(--sp-6); }   /* margins, not a row gap: the rows the Settings span leave no space */
  body.tight .hppanel-quick .hppanelb > .lessfold { grid-column: 2; grid-row: 1 / span 8; }
  body.tight .hppanel-solo .hppanelb { max-width: 720px; }
  /* T778: New game as Quick game: your deck on the left, the drawer's setup rows on the right */
  body.tight .hppanel-new .hppanelb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: var(--sp-7); row-gap: 0; align-items: start; }
  body.tight .hppanel-new .hppanelb > * { grid-column: 1; margin-bottom: var(--sp-6); }
  body.tight .hppanel-new .hppanelb > .hpsetc { grid-column: 2; grid-row: 1 / span 8; margin-bottom: 0; padding-top: 0; }
}
body.tight .hppanel-new .hpsetc { --pdc-l: 112px; }
@media (max-width: 700px) { body.tight .hppanel { padding: var(--sp-5); gap: var(--sp-5); } body.tight .hppanelf > .btn { flex: 1 1 auto; } }
body.tight .hpplan { position: absolute; top: var(--sp-5); right: var(--sp-5); }
body.tight .hpcols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-7); align-items: start; }
body.tight .hpbox { padding: 0 0 var(--sp-4); gap: 0; overflow: hidden; }
body.tight .hpboxh { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line); }
body.tight .hpboxh h2 { margin: 0; font-size: var(--fs-lg); }
/* T850: the open tables' bracket filter in the box head (after the title; the online count keeps the end), and the cEDH label a table gives itself */
body.tight .hpboxh { flex-wrap: wrap; }
body.tight .hpboxh .hpbrk { margin-right: auto; }
body.tight .tag.cedh { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
body.tight .hpsect { padding: var(--sp-5) var(--sp-6) 0; }
body.tight .hprow { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-4) var(--sp-6); min-width: 0; }
body.tight .hprow + .hprow { border-top: 1px solid var(--line); }
body.tight .hpempty { padding: var(--sp-5) var(--sp-6); }
body.tight .hpplans { padding: var(--sp-5) var(--sp-6) 0; }
body.tight .hpseats { display: flex; gap: var(--sp-1); }
body.tight .hpseats i { width: 14px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--muted); box-sizing: border-box; }
body.tight .hpseats i.on { border: 0; background: var(--accent); }
body.tight .hpmine { border-color: var(--sec); }
@media (max-width: 1100px) { body.tight .hpcols { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 860px) { body.tight .hpcols { grid-template-columns: minmax(0, 1fr); } body.tight .hpstart { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { body.tight .hptitle { font-size: var(--fs-2xl); } body.tight .hpstart { gap: var(--sp-4); } body.tight .hptilebtn { min-height: calc(var(--h-md) * 2); padding: var(--sp-5); font-size: var(--fs-md); } body.tight .hpseats { display: none; } }
body.tight .pdexpand { flex: 0 0 auto; }
body.tight .pdexpand.all { color: #241a05; background: var(--gold); border-color: var(--gold); animation: hlGlow 1.8s ease-in-out infinite; }   /* T721: everyone is ready */
@media (prefers-reduced-motion: reduce) { body.tight .pdexpand.all { animation: none; } }

/* ---------- T509 the hearth lobby (hearth.js; mockup layout C): the room page wide at 1440 / 772, its height capped so the bar stays on
   screen; chairs, portraits and frames in % of the stage; dark leather seat cards; Settings and Chat in 38 % dark glass ---------- */
body.tight.hlon .pagehead, body.tight.hlon .pagehead-slim { display: none; }
body.tight.hlon { --hlbar-off: var(--barh); }   /* T781: the ready card sits under the lobby bar, never over Ready */
body.tight .page.hlpage { padding: 0; gap: 0; overflow: hidden; container-type: size; background: #0b0a0d; }
body.tight .hlroom { position: relative; flex: 0 0 auto; width: 100%; height: min(calc(100cqh - var(--barh)), calc(100cqw * 772 / 1440)); overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, #2a1d1a, #0b0a0d 70%); }
body.tight .hlstage { position: relative; height: 100%; max-width: 100%; aspect-ratio: 1440 / 772; margin: 0 auto; container-type: inline-size; overflow: hidden; }
body.tight .hlscene { position: absolute; inset: 0; }
body.tight .hlroombg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
body.tight .hlroombg img, body.tight .hlroombg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* T682 the Lampwarden's intro over the room (hearth.js introEl): black until the video plays, a click skips, it fades into the loop */
body.tight .hlintro { position: absolute; inset: 0; z-index: 40; background: #000; cursor: pointer; overflow: hidden; }
body.tight .hlintro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
body.tight .hlintro.on video { opacity: 1; }
body.tight .hlintro.out { pointer-events: none; animation: hlIntroOut .3s linear both; }
body.tight .hlshad { position: absolute; z-index: 0; pointer-events: none; mix-blend-mode: multiply; }
body.tight .hlshad i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
body.tight .hlshad .pool { background: radial-gradient(closest-side, rgba(20, 8, 3, .85), rgba(20, 8, 3, .6) 50%, rgba(20, 8, 3, 0)); filter: blur(5px); }
body.tight .hlshad .cast { background: radial-gradient(closest-side, rgba(26, 11, 4, .62), rgba(26, 11, 4, .3) 55%, rgba(26, 11, 4, 0)); filter: blur(10px); }
body.tight .hlshad .ft { background: radial-gradient(closest-side, rgba(14, 6, 2, .9), rgba(14, 6, 2, .45) 55%, rgba(14, 6, 2, 0)); filter: blur(1.5px); }
body.tight .hlshad.ghost { opacity: .35; }
body.tight .hlshad.spawn { animation: hlShIn .95s ease-out both; }
body.tight .hlshad.leaving { animation: hlShIn .9s ease-in reverse both; }
body.tight .hlchair { position: absolute; pointer-events: none; filter: brightness(var(--lit, 1)); }
body.tight .hlchair img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
body.tight .hlchair .ao { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 9, 3, .62) 0, rgba(22, 9, 3, .28) 9%, rgba(22, 9, 3, 0) 22%); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 50% 100%; mask-position: 50% 100%; }
body.tight .hlchair.mir > img, body.tight .hlchair.mir > .ao, body.tight .hlchair.mir .hlmoonglow { transform: scaleX(-1); }
body.tight .hlchair.ghost { opacity: .34; filter: brightness(calc(var(--lit, 1) * .7)) saturate(.5); }
body.tight .hlchair.ghost.add, body.tight .hlshad.ghost.add { opacity: .16; }   /* T544: the host's next chair, fainter than an open seat */
/* T827: the next chair is only the place (no button); a small arc of three round buttons under its avatar: Open, Invite, Bot. The arc's
   centre is the avatar's centre; --ar is its radius. .in-l / .in-r: a chair at the scene's edge opens the arc inwards */
body.tight .hlseat.hladd { cursor: default; }
body.tight .hlseat.hladd > .hlav, body.tight .hlseat.hladd > .hlnm { opacity: .75; }
body.tight .hlarc { --ab: 30px; --ar: max(calc(var(--av) / 2 + var(--ab) / 2 + 6px), calc(var(--ab) * 1.4)); position: absolute; left: 50%; bottom: calc(var(--av) / 2); width: 0; height: 0; }
body.tight .hlarcb { position: absolute; display: inline-grid; place-items: center; width: var(--ab); height: var(--ab); padding: 0; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(16, 14, 12, .92); color: #ece9e2; cursor: pointer; }
body.tight .hlarcb:hover, body.tight .hlarcb:focus-visible { border-color: var(--sec); color: var(--sec); background: rgba(40, 34, 28, .96); }
body.tight .hlarcb[data-add="open"] { left: calc(var(--ar) * -.87); top: calc(var(--ar) * .5); }
body.tight .hlarcb[data-add="invite"] { left: 0; top: var(--ar); }
body.tight .hlarcb[data-add="bot"] { left: calc(var(--ar) * .87); top: calc(var(--ar) * .5); }
body.tight .hlarc.in-l .hlarcb[data-add="open"] { left: calc(var(--ar) * -1); top: 0; }
body.tight .hlarc.in-l .hlarcb[data-add="invite"] { left: calc(var(--ar) * -.71); top: calc(var(--ar) * .71); }
body.tight .hlarc.in-l .hlarcb[data-add="bot"] { left: 0; top: var(--ar); }
body.tight .hlarc.in-r .hlarcb[data-add="open"] { left: 0; top: var(--ar); }
body.tight .hlarc.in-r .hlarcb[data-add="invite"] { left: calc(var(--ar) * .71); top: calc(var(--ar) * .71); }
body.tight .hlarc.in-r .hlarcb[data-add="bot"] { left: var(--ar); top: 0; }
@media (pointer: coarse) { body.tight .hlarc { --ab: 36px; } }
body.tight .hlchipadd { display: inline-grid; place-items: center; flex: none; width: var(--h-xs); height: var(--h-xs); margin-left: calc(-1 * var(--sp-3)); border: 1px solid rgba(240, 195, 106, .35); border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); color: var(--sec); cursor: pointer; }
body.tight .hlchipadd:hover, body.tight .hlchipadd:focus-visible { background: rgba(240, 195, 106, .14); }
body.tight .hlchair.arrive > img { animation: hlLight 2.4s ease-out both; animation-delay: var(--lt, 0ms); }
/* the arrival effects (owner 2026-11-05): the ARRIVING player's own (Sparkles for everyone; Moonlight, Embers, Dust unlockable); leaving plays it backwards */
body.tight .hlchair.spawn.fx-sparkle { animation: hlSpk .65s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 50% 100%; }
body.tight .hlchair.spawn.fx-embers { animation: hlEmb .95s ease-out both; }
body.tight .hlchair.spawn.fx-dust { animation: hlDust .75s ease-out both; }
body.tight .hlchair.spawn.fx-moon > img { animation: hlMoonWarm 1.1s ease-out both; animation-delay: inherit; }
body.tight .hlchair.leaving.fx-sparkle { animation: hlSpk .65s ease-in reverse both; }
body.tight .hlchair.leaving.fx-embers { animation: hlEmb .95s ease-in reverse both; }
body.tight .hlchair.leaving.fx-dust { animation: hlDust .75s ease-in reverse both; }
body.tight .hlchair.leaving.fx-moon > img { animation: hlMoonWarm 1.1s ease-in reverse both; animation-delay: inherit; }
body.tight .hlchair.leaving.fx-moon .hlmoonsil { animation-name: hlMoonLeave; }
body.tight .hlmoonglow { position: absolute; inset: 0; z-index: 2; pointer-events: none; filter: drop-shadow(0 0 6px #a9c4ff) drop-shadow(0 0 14px #7f9cff); }
body.tight .hlmoonsil { position: absolute; inset: 0; background: linear-gradient(to top, #eef3ff, #a9c0ff); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 50% 100%; mask-position: 50% 100%; animation: hlMoonSil 1.1s ease-out both; }
body.tight .hlfx { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
body.tight .hlember { position: absolute; width: 6px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #ffcf6a; box-shadow: 0 0 8px 2px #ff9a3c; animation: hlEmber .8s cubic-bezier(.3, .6, .4, 1) both; }
body.tight .hlmote { position: absolute; width: 5px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: rgba(240, 215, 170, .75); filter: blur(.6px); animation: hlMote .9s ease-out both; }
body.tight .hlglint { position: absolute; width: 14px; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(circle, #fff6d6 0, var(--gold) 30%, transparent 65%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: hlGlint .55s ease-out both; }
body.tight .hlmbeam { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(3px); mix-blend-mode: screen; animation: hlBeam 1.1s ease-in-out both; }
body.tight .hlmmote { position: absolute; width: 4px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #e8efff; box-shadow: 0 0 6px 2px #9fb8ff; animation: hlMMote 1.1s ease-in-out both; }
body.tight .hlmglint { position: absolute; width: 18px; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(circle, #fff 0, #cfe0ff 30%, transparent 65%); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: hlGlint .5s ease-out both; }
body.tight .hlfx.rev i, body.tight .hlfx.rev .hlmbeam { animation-direction: reverse; }
body.tight .hlfx.rev .hlmmote { animation-name: hlMMoteUp; }
body.tight .hlseat.spawn { animation: hlSeatIn .5s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  body.tight .hlchair.spawn, body.tight .hlchair.spawn > img, body.tight .hlseat.spawn, body.tight .hlshad.spawn { animation: hlDust .2s linear both !important; clip-path: none; filter: none; }
  body.tight .hlchair.leaving, body.tight .hlchair.leaving > img, body.tight .hlshad.leaving { animation: hlDust .2s linear reverse both !important; clip-path: none; }
  body.tight .hlfx, body.tight .hlmoonglow { display: none; }
  body.tight .hlchair.arrive > img, body.tight .hlcardbar i { animation: none; }
}

/* the seats: the name above the portrait (owner rule 2026-11-05: a chair in front never covers another seat's name), the portrait on the backrest */
body.tight .hlseats { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
body.tight .hlseat { --av: clamp(34px, 4.7cqw, 68px); position: absolute; z-index: 20; display: flex; flex-direction: column-reverse; align-items: center; gap: var(--sp-2); transform: translate(-50%, calc(-100% + var(--av) * .44)); pointer-events: auto; cursor: pointer; outline: none; }
body.tight .hlseat.sm { --av: clamp(28px, 3.6cqw, 52px); }
body.tight .hlscene.eight .hlseat { --av: clamp(30px, 4cqw, 58px); }
body.tight .hlscene.eight .hlseat.sm { --av: clamp(26px, 3.2cqw, 46px); }
body.tight .hlseat:hover, body.tight .hlseat:focus-within, body.tight .hlseat.pk { z-index: 50; }
body.tight .hlseat:focus-visible .hlav { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .hlav { position: relative; display: grid; place-items: center; width: var(--av); aspect-ratio: 1; box-sizing: border-box; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); background: #3a2f4d; color: #ece9e2; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); font-weight: var(--fw-display); font-size: calc(var(--av) * .38); }
body.tight .hlav > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
body.tight .hlav.bot { color: var(--sec); }
body.tight .hlav.plus { border: 2px dashed rgba(255, 255, 255, .45); background: rgba(12, 14, 18, .67); color: var(--muted); }
body.tight .hlav.plus .hlav.inv { width: 100%; border: 0; opacity: .6; box-shadow: none; }
body.tight .hlseat.ready .hlav { border-color: rgba(63, 174, 106, .8); }
body.tight .hlrb { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #0c0e12; background: #3b3a46; color: var(--sec); box-sizing: border-box; }
body.tight .hlseat.ready .hlrb { background: #2f8f56; color: #e8fff0; }
body.tight .hlcrown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: var(--gold); }
body.tight .hlcrown svg path { fill: var(--gold); stroke: #5a3f10; }
body.tight .hlnm { display: flex; align-items: center; gap: var(--sp-2); max-width: 170px; padding: var(--sp-1) var(--sp-4); border-radius: var(--r-box); border: 1px solid rgba(255, 255, 255, .12); background: rgba(12, 14, 18, .85); color: #ece9e2; font-size: var(--fs-sm); font-weight: var(--fw-title); line-height: 1.2; white-space: nowrap; }
body.tight .hlseat.sm .hlnm, body.tight .hlscene.eight .hlnm { font-size: var(--fs-xs); }
body.tight .hlseat.ready .hlnm { border-color: rgba(63, 174, 106, .7); }
body.tight .hlseat.open .hlnm, body.tight .hlseat.inv .hlnm { color: var(--text2); font-weight: var(--fw-label); }
body.tight .hlyou { color: #c9c6bf; font-weight: var(--fw-text); }
body.tight .hlhost { font-size: 11px; font-weight: var(--fw-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
/* the seat card (owner 2026-11-05): dark leather, a thin gold edge, beside the portrait toward the hearth, no name in it */
body.tight .hlpeek { display: none; position: absolute; top: var(--sp-7); width: 184px; z-index: 60; flex-direction: column; overflow: hidden; border-radius: var(--r-ctl); cursor: default; text-align: left; color: #f3e7cf; font-size: var(--fs-xs);
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 190, 110, .14), transparent 60%), linear-gradient(160deg, #3d2618 0%, #2a1910 55%, #1e120b 100%); border: 1px solid #c9a35a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .55); }
body.tight .hlseat.pkr .hlpeek { left: calc(50% + var(--av) / 2 + 8px); }
body.tight .hlseat.pkl .hlpeek { right: calc(50% + var(--av) / 2 + 8px); }
body.tight .hlseat:hover .hlpeek, body.tight .hlseat:focus-within .hlpeek, body.tight .hlseat.pk .hlpeek { display: flex; }
/* T535 (owner 2026-11-05): moving from a seat to its card's buttons crossed the gap beside the portrait and the card closed. The card now
   stays a moment after the pointer leaves (it opens at once), so Invite or Add a bot can be reached without a click */
body.tight .hlseat .hlpeek { display: flex; visibility: hidden; opacity: 0; transition: opacity .12s ease .2s, visibility 0s linear .32s; }
body.tight .hlseat:hover .hlpeek, body.tight .hlseat:focus-within .hlpeek, body.tight .hlseat.pk .hlpeek { visibility: visible; opacity: 1; transition-delay: 0s, 0s; }
/* T683 (owner 2026-11-12): a table chat line over its speaker's seat, MMO style: the board's ink bubble (T423 .ptbubble: ink, a steel edge,
   gold for you, the tail on the speaker), above the name, never over the portrait. Two lines at most (hearth.js caps it at 90 characters
   too). Centred on the seat; a seat near the room's edge (.al / .ar) anchors it on its own side, the tail still over the portrait. It pops
   in over 0.2 s and fades over 0.3 s at the end (hearth.js sets both delays, negative once it is older, so a redraw never pops it again);
   Motion Off or reduced motion (.rm): only the fades */
/* T592 living hearth (hearth.js living, hearthrig.js): a canvas per seated body, stacked with its chair; one canvas above the portraits for
   collars, a hood's shade and the cheer's stars. A living seat stands on the character's head: --av is the head's size, --hx / --hy / --hr
   follow the body's sway each frame. A hovered seat lifts above the collar canvas, so its card stays readable. */
body.tight .hlbody { position: absolute; pointer-events: none; }
body.tight .hlbody > canvas { display: block; width: 100%; height: 100%; }
body.tight .hlbody.spawn { animation: hlSeatIn .5s ease-out both; }
/* the rig's over canvas (collar, hood rim, hair, steam, cheer stars) lies above the bodies (z 1..8) and UNDER the portraits (.hlseat z 20):
   no part of a character ever covers a portrait (owner 2026-11-12) */
body.tight .hlover { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 19; pointer-events: none; }
body.tight .hlseat > .lvav { align-self: center; }   /* T791: the lobby-voice ring wrapper (.lvav, flex-start elsewhere) kept the portrait at the seat's left when the name is wider; centred over the head again */
body.tight .hlseat.lv { transform: translate(-50%, calc(-100% + var(--av) * .5)); }
body.tight .hlseat.lv > :first-child { transform: translate(var(--hx, 0px), var(--hy, 0px)) rotate(var(--hr, 0rad)); }
body.tight .hlperf { position: absolute; left: var(--sp-4); bottom: var(--sp-4); z-index: 60; padding: var(--sp-1) var(--sp-4); border-radius: var(--r-box); background: rgba(12, 14, 18, .85); color: #ece9e2; font-size: var(--fs-xs); pointer-events: none; }
body.tight .hlseat.lv .hlnm { margin-bottom: var(--lift, 0px); }   /* the name stands above a hood or antennae, never on them */
body.tight .hlseat.lv .hlav { border-width: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
body.tight .hlseat.hlghost { pointer-events: none; z-index: 31; animation: hlGhostOut 1.2s ease-in both; }   /* T729: the leaving portrait fades with its character */
body.tight .hlseat.saying { z-index: 40; }
body.tight .hlseat.saying:hover, body.tight .hlseat.saying:focus-within, body.tight .hlseat.saying.pk { z-index: 50; }
body.tight .hlsay { --ring: #c8d2e1; position: absolute; left: 50%; bottom: calc(100% + var(--sp-5)); translate: -50% 0; z-index: 2; display: block; width: max-content; max-width: min(260px, 44cqw); box-sizing: border-box;
  padding: var(--sp-3) var(--sp-5); border: 1.5px solid var(--ring); border-radius: var(--sp-6); background: #0e141a; color: #f1ece0; box-shadow: 0 6px 14px rgba(0, 0, 0, .6);
  font-size: var(--fs-sm); font-weight: var(--fw-label); line-height: 1.3; text-align: left; white-space: normal; pointer-events: none; transform-origin: 50% 100%;
  animation: hlSayIn .2s ease-out both, hlSayOut .3s ease-in forwards; }
body.tight .hlsay.me { --ring: #e9cf8f; }
body.tight .hlsayt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
body.tight .hlsay::after { content: ''; position: absolute; bottom: -7px; left: calc(50% - 6px); width: var(--sp-5); height: var(--sp-5); box-sizing: border-box; background: inherit; border: inherit; border-left: 0; border-top: 0; border-radius: var(--sp-1); rotate: 45deg; }
body.tight .hlsay.al { left: calc(50% - var(--sp-7)); translate: none; transform-origin: var(--sp-7) 100%; }
body.tight .hlsay.ar { left: auto; right: calc(50% - var(--sp-7)); translate: none; transform-origin: calc(100% - var(--sp-7)) 100%; }
body.tight .hlsay.al::after { left: calc(var(--sp-7) - 6px); }
body.tight .hlsay.ar::after { left: auto; right: calc(var(--sp-7) - 6px); }
body.tight .hlsay.rm { animation-name: hlSayInRm, hlSayOutRm; }
@media (prefers-reduced-motion: reduce) { body.tight .hlsay { animation-name: hlSayInRm, hlSayOutRm; } }
body.tight .hlph .hlsay { max-width: min(180px, 46cqw); font-size: var(--fs-xs); padding: var(--sp-2) var(--sp-4); bottom: calc(100% + var(--sp-4)); }
body.tight .hlph.hlwide .hlsay { max-width: min(260px, 40cqw); font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-5); }
body.tight .hlpkban { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); height: var(--h-md); background-size: cover; background-position: center 30%; border-bottom: 1px solid #c9a35a; box-shadow: inset 0 -6px 8px rgba(30, 18, 11, .35); }   /* the art shows; the gold edge under it stays clear */
body.tight .hlpkban.set { background: linear-gradient(120deg, #4a2e5c, #2a1f40); color: var(--gold); letter-spacing: .2em; box-shadow: none; }
body.tight .hlpkban.set img { width: 18px; aspect-ratio: 1; filter: invert(.85); }
body.tight .hlpkb { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) var(--sp-4); }
body.tight .hlpeek.open .hlpkb { gap: var(--sp-4); padding: var(--sp-5); }
body.tight .hlpkst { font-size: 11px; font-weight: var(--fw-label); color: #d8b46a; }
body.tight .hlpkst.ok { color: #9fd6b0; }
body.tight .hlpkot { font-size: 11px; font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; color: #d8b46a; }
body.tight .hlpkd { display: flex; flex-direction: column; gap: var(--sp-1); }
body.tight .hlpkdn { font-weight: var(--fw-title); font-size: var(--fs-sm); }
body.tight .hlpkc, body.tight .hlpkbr { color: #d8c7a6; }
body.tight .hlpips { display: inline-flex; gap: var(--sp-1); margin-left: var(--sp-2); vertical-align: middle; }
body.tight .hlpips i { width: 9px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .4); }
body.tight .hlpkacts { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
body.tight .hlpkacts .btn { background: rgba(0, 0, 0, .25); border-color: rgba(201, 163, 90, .55); color: #f3e7cf; }
body.tight .hlpkbtn { display: flex; align-items: center; gap: var(--sp-4); width: 100%; min-height: var(--h-sm); padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 1px solid rgba(201, 163, 90, .55); background: rgba(0, 0, 0, .28); color: #f3e7cf; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-label); cursor: pointer; text-align: left; box-sizing: border-box; }
body.tight .hlpkbtn.pri { background: linear-gradient(180deg, #e6bd68, #c9a35a); border-color: #e6bd68; color: #24160e; }
body.tight .hlpkbtn:hover { border-color: var(--gold); }
body.tight .hlpkbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.tight .hlpkbtn[disabled] { opacity: .5; cursor: not-allowed; }

/* the frames: 38 % dark glass, blur 7 px, a thin gold line; dragged by the header, Move cycles three places, a double-click puts it back */
body.tight .hlframe { position: absolute; z-index: 40; display: flex; flex-direction: column; width: 25%; max-height: 36%; overflow: hidden; color: #ece9e2; border-radius: var(--r-box);
  background: rgba(14, 11, 18, .38); -webkit-backdrop-filter: blur(7px) saturate(1.05); backdrop-filter: blur(7px) saturate(1.05); border: 1px solid rgba(240, 195, 106, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
/* T520: Settings sizes to its content (between a quarter and a third of the room); its height (all rows) is set by hearth.js fit() */
body.tight .hlframe[data-fk="set"]:not(.slide) { width: max-content; min-width: 25%; max-width: 34%; }
body.tight .hlfb .seg { max-width: 100%; }
body.tight .hlfb .seg button { min-width: 0; }
body.tight .hltab.m { left: 50%; transform: translateX(-50%); }
body.tight .hlframe.drag { box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
body.tight .hlfh { position: relative; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5); min-height: var(--h-sm); border-bottom: 1px solid rgba(240, 195, 106, .2); cursor: grab; touch-action: none; user-select: none; }
body.tight .hlframe.drag .hlfh { cursor: grabbing; }
body.tight .hlfh h3 { margin: 0; font-size: var(--fs-md); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
body.tight .hlgrip { position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: rgba(240, 195, 106, .6); font-size: 11px; letter-spacing: -1px; pointer-events: none; }
body.tight .hlfh .iconbtn2 { color: #c9c6bf; }
body.tight .hlfb { flex: 1 1 auto; min-height: 0; overflow: hidden auto; padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
body.tight .hlfb .pdsetrow { gap: var(--sp-3); }
body.tight .hlfb .seg button:not(.on), body.tight .hlfb .input, body.tight .hlfb select { background: rgba(10, 8, 12, .55); }
body.tight .hlfb .seg button, body.tight .hlfb .input { text-shadow: none; }
body.tight .hlfb .tcpanel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; border: 0; background: transparent; padding: 0; }
body.tight .hlfb .tcpanel .tcmsgs { flex: 1 1 auto; max-height: none; min-height: 0; }
body.tight .hlfb .tcin .input { background: rgba(0, 0, 0, .35); }
body.tight .hlframe.hlpick { left: 50%; top: 4%; transform: translateX(-50%); width: min(560px, 62%); max-height: 88%; z-index: 48; background: rgba(14, 11, 18, .82); }
body.tight .hlframe.slide { top: 3.2%; width: 46%; max-height: 62%; }
body.tight .hlframe.slide.l { left: 0; border-left: 0; border-radius: 0 var(--r-box) var(--r-box) 0; animation: hlSlideL .25s ease-out both; }
body.tight .hlframe.slide.r { right: 0; border-right: 0; border-radius: var(--r-box) 0 0 var(--r-box); animation: hlSlideR .25s ease-out both; }
body.tight .hltab { position: absolute; top: 3.2%; z-index: 40; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); max-width: 40%; padding: var(--sp-1) var(--sp-5); border-radius: var(--r-pill); border: 1px solid rgba(240, 195, 106, .35); background: rgba(14, 11, 18, .42); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); color: #ece9e2; font: inherit; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
body.tight .hltab.l { left: 1.6%; }
body.tight .hltab.r { right: 1.6%; }
body.tight .hltabs { overflow: hidden; text-overflow: ellipsis; color: #c9c6bf; }
body.tight .hlback { position: absolute; left: 50%; top: 3.2%; transform: translateX(-50%); z-index: 45; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: var(--sp-1) var(--sp-5); border-radius: var(--r-pill); border: 1px solid rgba(240, 195, 106, .4); background: rgba(14, 11, 18, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #ece9e2; font: inherit; font-weight: var(--fw-title); font-size: var(--fs-sm); cursor: pointer; }
body.tight .hlfoldpg { position: absolute; right: 1.6%; bottom: var(--sp-5); z-index: 41; background: rgba(14, 11, 18, .42); color: #ece9e2; }
/* P2P web-guests run 2026-11-09 (hearth.js urgentEl): a P2P question this person must answer (the Q9 vote, Host / Not now, the server offer)
   over the room, under the top row of chips and folded tabs, above the frames; phones: under the room, staying in view while the page scrolls */
body.tight .hlurgent { position: absolute; left: 50%; top: calc(3.2% + var(--h-xs) + var(--sp-5)); transform: translateX(-50%); z-index: 55; width: min(560px, calc(100% - 2 * var(--sp-6))); }
body.tight .hlurgent .lvask { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
body.tight .hlph .hlurgent { position: static; left: auto; transform: none; width: auto; margin: var(--sp-5) var(--sp-6) 0; }   /* T781: right under the room (the sticky bar holds the top) */

/* one bar page wide: Leave and Invite, the chips, Ready (the host: Start once everyone is ready, a gold glow). T781 (owner 2026-11-14): a
   submenu bar under the top bar, above the room; its chips and the ready count open downwards (popBind o.down) */
body.tight .hlbar { position: relative; z-index: 30; display: flex; align-items: center; gap: var(--sp-5); min-height: var(--barh); padding: var(--sp-4) var(--sp-7); box-sizing: border-box; color: var(--text);
  background: var(--bar); border-bottom: 1px solid var(--line); }
body.tight .hlmid { flex: 1 1 auto; min-width: 0; display: flex; justify-content: safe center; align-items: center; gap: var(--sp-4); white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body.tight .hlchip { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); min-width: 0; padding: var(--sp-1) var(--sp-5); box-sizing: border-box; border-radius: var(--r-pill); background: var(--chip); border: 1px solid var(--line); font-size: var(--fs-sm); }
body.tight .hlchip .uico { color: var(--muted); }
body.tight .hlchipl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body.tight .hlchip b { overflow: hidden; text-overflow: ellipsis; }
body.tight .hlchip.ok { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); }
/* T538: the Seated and Ready chips show who sits where with what deck, and who is ready, in a floating card (RZ.popBind) */
body.tight .hlchip.hasd { cursor: help; }
body.tight .hlchip.hasd:hover, body.tight .hlchip.hasd:focus-visible { border-color: var(--muted); }
body.tight .rzpop.hlchippop { min-width: calc(var(--sp-8) * 7); max-width: calc(var(--sp-8) * 10); }
body.tight .hlchipd .hlchipdr { min-height: var(--h-xs); }
body.tight .hlchipd .hlchipdr.open { color: var(--muted); }
body.tight .hlchipd .uico { flex: none; color: var(--gold); }
body.tight .hlchip.ok .uico, body.tight .hlchip.ok b { color: color-mix(in srgb, var(--ok) 65%, var(--text)); }
body.tight .hlchip.tight .hlchipl { display: none; }
/* a narrow bar: the chips keep their icon and value (the label is in the tooltip); narrower still, Invite is its icon and the timer goes */
body.tight .hlbar { container-type: inline-size; }
@container (max-width: 1120px) { body.tight .hlchipl { display: none; } body.tight .hlmid { gap: var(--sp-3); } body.tight .hlchip { padding: var(--sp-1) var(--sp-4); } }
@container (max-width: 900px) { body.tight .hlinv > span:not(.uico), body.tight .hlclose { display: none; } body.tight .hlchip b { max-width: 88px; } }
body.tight .hlclose { padding: 0 var(--sp-2); color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
body.tight .hlright { flex: 0 0 auto; }
body.tight .hlmid .tbchip[hidden] { display: none; }   /* T722: folded into More */
body.tight .tbmore > .tbpopb + .tbpopb { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .hlgo { min-height: var(--h-md); padding: 0 var(--sp-7); font-size: var(--fs-lg); }
body.tight .hlask[disabled] { opacity: .75; cursor: default; }
body.tight .hlerr { padding: var(--sp-2) var(--sp-7); }
body.tight .hltablet .hlbar .hlmid { gap: var(--sp-3); }
body.tight .page.hlpage.hltablet .hlbar { padding: var(--sp-4) var(--sp-6); }
body.tight .page.hlpage.hltablet .hlchip { padding: var(--sp-1) var(--sp-4); }

/* T640 (owner sign-off 2026-11-10, mockup 9ryWvXvb8UdGRZVFf7rYnS round 4): one way to configure a table. The bar's chips carry the
   table's settings (hearth.js RZ.tableChips: a click opens a chip's options). T898 (owner sign-off 2026-11-22): the bar, its chips and
   their popovers wear the site's own surfaces and follow the theme (they were a dark brown and gold material of their own); the open
   chip and the selected option take --accent. The same chips sit in the Play drawer and the Play page's New game. */
body.tight .tbchip { flex: none; gap: var(--sp-3); font: inherit; font-size: var(--fs-sm); color: var(--text); background: var(--chip); border: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
body.tight .tbchip .uico { color: var(--muted); }
body.tight .tbchip .hlchipl { color: var(--muted); }
body.tight .tbchip .tbcaret { display: inline-flex; margin-left: calc(-1 * var(--sp-1)); }
body.tight .tbchip .tbcaret .uico { color: var(--muted); }
body.tight .tbchip:hover, body.tight .tbchip:focus-visible { border-color: color-mix(in srgb, var(--muted) 60%, var(--chip)); }
body.tight .tbchip[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 18%, var(--chip)); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
body.tight .tbchip[aria-expanded="true"] .hlchipl, body.tight .tbchip[aria-expanded="true"] .tbcaret .uico { color: var(--text); }
body.tight .tbchip.warn { background: color-mix(in srgb, var(--warn) 18%, var(--chip)); border-color: var(--warn); }
body.tight .tbchip.warn b { color: color-mix(in srgb, var(--warn) 85%, var(--text)); }
/* the chip rows outside the lobby page: one line that swipes sideways (Play drawer, Play page's New game) */
body.tight .tbchips { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: var(--bar); border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .tbchips::-webkit-scrollbar { display: none; }
body.tight .rzpop.tbpop { width: 340px; max-width: calc(100vw - 16px); }
body.tight .rzpop.tbpop.sheet { width: auto; max-width: none; }
body.tight .rzpop.tbpop .tbpoph { font-size: var(--fs-md); }
body.tight .rzpop.tbpop .hlchipd .uico { color: var(--muted); }
body.tight .rzpop.tbpop .hlchipdr.ok .uico { color: var(--ok); }
body.tight .rzpop.tbpop .pdsetrow { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--sp-3); }   /* the label above its control (mockup) */
body.tight .rzpop.tbpop .pdsetrow .pfhl { white-space: nowrap; }
body.tight .rzpop.tbpop .pdsetrow > :last-child { margin-left: 0; align-self: stretch; }
body.tight .rzpop.tbpop .pdsetrow > .seg { display: flex; }
body.tight .rzpop.tbpop .pdsetrow > .seg button { flex: 1 1 0; }
body.tight .rzpop.tbpop .tbdrop { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
body.tight .rzpop.tbpop .tbring .uico { color: var(--muted); }
/* T640: one Ready at the right end: your Ready (or the host's Start), then the count with the bell ("2/4 🔔"). T898: Ready and Start
   are the site's primary button (.btn.primary, set in hearth.js); once you are ready it is a quiet button with a green check */
body.tight .hlready { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
body.tight .hlready > * { border-radius: 0; }
body.tight .hlready > :first-child { border-top-left-radius: calc(var(--r-ctl) - 1px); border-bottom-left-radius: calc(var(--r-ctl) - 1px); }
body.tight .hlready > :last-child { border-top-right-radius: calc(var(--r-ctl) - 1px); border-bottom-right-radius: calc(var(--r-ctl) - 1px); }
body.tight .hlready > * + * { border-left: 1px solid var(--line); }
body.tight .hlbar .hlready > .btn { border-top: 0; border-bottom: 0; border-right: 0; min-height: var(--h-md); }
body.tight .hlbar .hlready > .btn:first-child { border-left: 0; }
body.tight .hlbar .hlready .btn.hlreadyon { background: transparent; color: var(--text); }
body.tight .hlbar .hlready .btn.hlreadyon .uico { color: var(--ok); }
body.tight .hlready .hlunready { min-width: var(--h-md); min-height: var(--h-md); background: transparent; color: var(--text); border-top: 0; border-bottom: 0; border-right: 0; }
body.tight .hlrcount { display: inline-flex; align-items: center; gap: var(--sp-3); min-width: var(--h-md); padding: 0 var(--sp-5); border-top: 0; border-bottom: 0; border-right: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-md); cursor: pointer; font-variant-numeric: tabular-nums; }
body.tight .hlrcount.wait .uico { color: var(--muted); }
body.tight .hlrcount:hover, body.tight .hlrcount:focus-visible, body.tight .hlrcount[aria-describedby], body.tight .hlrcount[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
body.tight .hlready.all { border-color: var(--accent); }

/* phones: the bar on top (T781), the room (the 4:3 centre), the Table / Chat tabs under it */
body.tight .page.hlpage.hlph { container-type: normal; overflow-y: auto; }
body.tight .hlph .hlroom { height: auto; }
body.tight .hlph .hlstage { width: 100%; height: auto; aspect-ratio: 4 / 3; }
body.tight .hlph .hlseat { --av: 46px; }
/* a portrait tablet (820 x 1180): the phone layout, wider; the portraits and names scale with the room */
body.tight .hlph.hlwide .hlseat { --av: clamp(46px, 8cqw, 76px); }
body.tight .hlph.hlwide .hlseat.sm { --av: clamp(34px, 6cqw, 58px); }
body.tight .hlph.hlwide .hlscene.eight .hlseat { --av: clamp(32px, 6cqw, 56px); }
body.tight .hlph.hlwide .hlscene.eight .hlnm { display: flex; }
body.tight .hlph.hlwide .hlnm { font-size: var(--fs-sm); padding: var(--sp-1) var(--sp-4); max-width: 160px; }
body.tight .hlph.hlwide .hlyou { display: inline; }
body.tight .hlph.hlwide .hlrb { width: 18px; }
body.tight .hlph.hlwide .hlcrown { top: -14px; }
body.tight .hlph.hlwide .hlptabs { margin: var(--sp-6) var(--sp-7) 0; }
body.tight .hlph.hlwide .hlpbody { padding: var(--sp-6) var(--sp-7) var(--sp-7); }
body.tight .hlph.hlwide .hlbar { padding: var(--sp-4) var(--sp-6); gap: var(--sp-4); }
body.tight .hlph.hlwide .hlright { flex: 0 0 auto; }
body.tight .hlph.hlwide .hlgo { flex: 0 0 auto; padding: 0 var(--sp-7); }
body.tight .hlph .hlseat.sm { --av: 34px; }
body.tight .hlph .hlscene.eight .hlseat { --av: 32px; }
body.tight .hlph .hlscene.eight .hlnm { display: none; }
body.tight .hlph .hlnm { font-size: 11px; padding: var(--sp-1) var(--sp-3); max-width: 96px; }
body.tight .hlph .hlrb { width: 14px; right: -3px; bottom: -3px; }
body.tight .hlph .hlcrown { top: -12px; }
body.tight .hlph .hlshad .pool { filter: blur(2px); }
body.tight .hlph .hlshad .cast { filter: blur(5px); }
body.tight .hlptabs { display: flex; margin: var(--sp-5) var(--sp-6) 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
body.tight .hlptabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: var(--h-sm); border: 0; background: var(--panel); color: var(--text2); font: inherit; font-weight: var(--fw-label); font-size: var(--fs-sm); cursor: pointer; }
body.tight .hlptabs button.on { background: var(--chip); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
body.tight .hlpbody { flex: 1 0 auto; padding: var(--sp-5) var(--sp-6) var(--sp-6); background: var(--bg); }
body.tight .hlph .hlbar { position: sticky; top: 0; padding: var(--sp-4) var(--sp-5); gap: var(--sp-4); }   /* T781: stays under the top bar while the page scrolls */
body.tight .hlph .hlright { flex: 1 1 auto; justify-content: flex-end; }
body.tight .hlph .hlgo { flex: 1 1 auto; padding: 0 var(--sp-5); font-size: var(--fs-md); }
body.tight .hlph .hlask { padding: 0 var(--sp-4); }
body.tight .hlph .lvfoot { display: none; }
/* T640: a phone's chips sit on their own row above the buttons, one line that swipes sideways; Ready takes the rest of the row */
body.tight .hlph .hlbar { flex-wrap: wrap; row-gap: var(--sp-4); }
body.tight .hlph .hlmid { order: -1; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: var(--sp-3); }
body.tight .hlph .hlmid::-webkit-scrollbar { display: none; }
body.tight .hlph .hlready { flex: 1 1 auto; }
body.tight .hlph .hlready > .hlgo { flex: 1 1 auto; }

/* T517: the ready card (the host's ask, the table-full notice) and the gold "Everyone's ready" card: in the toast corner (T636), never over the player drawer; phones a bottom toast */
body.tight .hlcard { position: fixed; right: var(--gutter); top: calc(var(--topbar) + var(--sp-6) + var(--hlbar-off, 0px)); z-index: 106; display: flex; flex-direction: column; gap: var(--sp-3); width: min(320px, calc(100vw - 2 * var(--gutter))); padding: var(--sp-5) var(--sp-6); box-sizing: border-box;
  border-radius: var(--r-box); border: 1px solid var(--line); background: var(--card); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); color: var(--text); }
body.tight .hlcard.gold { border-color: var(--gold); }
body.tight .hlcard.phone { left: var(--sp-5); right: var(--sp-5); top: auto; bottom: var(--sp-5); width: auto; }
body.tight .hlcardt { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-md); }
body.tight .hlcardt .uico { color: var(--sec); }
body.tight .hlcardbar { display: block; height: 4px; border-radius: var(--r-pill); background: var(--chip); overflow: hidden; }
body.tight .hlcardbar i { display: block; height: 100%; width: 100%; background: var(--sec); animation: hlBar 5s linear both; }
body.tight .hlcardbar.run i { animation-duration: 3s; }
body.tight .hlcardacts .btn { flex: 1 1 0; }
body.tight .hlph .hlyou { display: none; }

/* T506 (owner 2026-11-05, mockup Kc7SSEmkFVcrihfz5fkAzH, rule B): every view fits every card detail. A text line is the name (truncates, the
   full name in its title) plus every detail that is on (.dldet); a column is as wide as the widest a line can get (--dlmin, set by
   RZ.deckList), so turning details off fits more columns. Owner 2026-11-14 (decision B): the details come RIGHT AFTER THE NAME, each as wide
   as what is in it. Round 2 the same evening ("easier to read"): above phone width the details stand in tracks at the column's right edge,
   the actions last; a track is as wide as its widest value in the list (--tk-<class>, set by RZ.dlFit), so each detail has one x from
   line to line. RZ.dlFit narrows --dlmin from the worst case (--dlmax) to the widest line that is drawn, so the room between a name
   and its details stays small. A line never wraps: the name gives way first, then a role button shortens and the details scroll */
body.tight .dlcols:not(.wide):not(.stacks) { column-width: var(--dlmin, 300px); }
/* owner 2026-11-14 (staging feedback): a card line is ALWAYS one line, at every width and with every detail on. Nothing in it wraps. The name
   gives way first (it shrinks 1000 times as fast, down to 96 px, with …); only then do the details shrink, and they scroll sideways inside the
   line (no scrollbar) instead of dropping to a second row */
body.tight .dlrow { flex-wrap: nowrap; }
body.tight .dlrow > * { flex-shrink: 0; }
body.tight .dlrow .dlname { flex: 0 1000 auto; min-width: min(96px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
body.tight .dlrow > .grow { flex: 1 1 0; min-width: 0; }
body.tight .dlrow > .rolebtn { flex: 0 1 auto; min-width: var(--sp-8); overflow: hidden; text-overflow: ellipsis; }   /* on a phone a line with Make partner and marks still fits its column */
body.tight .dldet { display: inline-flex; align-items: center; gap: var(--sp-3); flex: 0 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
body.tight .dldet::-webkit-scrollbar { display: none; }
body.tight .dldet > * { flex-shrink: 0; }
/* a phone: a detail with nothing in it (no price, not owned) takes no room and no gap */
@media (max-width: 700px) { body.tight .dldet > :empty { display: none; } }
/* above it: the tracks. Mana and price end at one x (as figures do), a printing and the tags sit in the middle of theirs */
@media (min-width: 701px) {
  body.tight .dldet > .dltags { min-width: var(--tk-dltags, 0); justify-content: flex-end; }
  body.tight .dldet > .dlprint { min-width: var(--tk-dlprint, 0); justify-content: center; }
  body.tight .dldet > .dlmana { min-width: var(--tk-dlmana, 0); justify-content: flex-end; }
  body.tight .dldet > .dlprice { min-width: var(--tk-dlprice, 0); text-align: right; }
  body.tight .dldet > .dlfoil { min-width: var(--tk-dlfoil, 0); justify-content: flex-end; }
  /* a calmer rhythm (owner 2026-11-14, round 2): a hairline between two lines, and the condensed view one step up in text and height */
  body.tight .dlrows > .dlrow { border-radius: 0; }
  body.tight .dlrows > .dlrow + .dlrow { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
  body.tight .dlrows.tight > .dlrow { min-height: var(--sp-8); font-size: var(--fs-md); }
}
/* a phone: tighter gaps, so the name keeps more room */
@media (max-width: 560px) {
  body.tight .dlrow { gap: var(--sp-2); }
  body.tight .dldet { gap: var(--sp-2); }
  body.tight .dlrow .dldet .dlpstep { width: var(--sp-7); min-width: 0; padding: 0; }
}
body.tight .dldet > .dltags { display: inline-flex; align-items: center; gap: var(--sp-1); }
body.tight .dldet > .dlprint { display: inline-flex; align-items: center; }
body.tight .dldet > .dlmana { display: inline-flex; }
/* T564 (owner 2026-11-06, "visual spoilers are way too big"): a spoiler tile is a card, not a panel. Columns of at least --dlspw
   (the card's own size; its details wrap under it), a tight frame round the card so the image is most of the tile */
@media (min-width: 701px) { body.tight .dlcols .grid.cards { grid-template-columns: repeat(auto-fill, minmax(var(--dlspw), 1fr)); gap: var(--sp-3); } }
body.tight .dlcols, body.tight .dlcols.dlz1 { --dlspw: 150px; }
body.tight .dlcols.dlz0 { --dlspw: 120px; }
body.tight .dlcols.dlz2 { --dlspw: 190px; }
body.tight .dlcols.dlz3 { --dlspw: 240px; }
/* a phone counts cards per row, as the pool does, but never more than 3: a tile carries its name, price and buttons */
@media (max-width: 700px) {
  body.tight .dlcols .grid.cards { grid-template-columns: repeat(var(--dln, 2), minmax(0, 1fr)); gap: var(--sp-3); }
  body.tight .dlcols.dlz0 { --dln: 3; }
  body.tight .dlcols.dlz2, body.tight .dlcols.dlz3 { --dln: 1; }
}
body.tight .dlvwpop .dlzoom { flex: 0 0 auto; max-width: none; min-height: var(--h-sm); }   /* in the column the pool's 110 px basis would be its height */
body.tight .dlcols .dltile { padding: var(--sp-2); gap: var(--sp-2); }
body.tight .dlcols .dltile > b, body.tight .dlcols .dltile .row > b { font-size: 12px; }
/* T601 (owner 2026-11-10, mockup 8RLLSi7XShEAassF8SJZ3p v7): four fixed lines under the card; a row of tiles is as tall as its tallest
   (the grid stretches them) and the action line sits at the bottom, so the buttons of a row line up */
body.tight .dltile { min-width: 0; }
body.tight .dltile .dlt1 { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
body.tight .dltile .dltname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
body.tight .dltile .dlt1 .dlmana { flex: none; }
body.tight .dltile .dlt2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); min-width: 0; }
body.tight .dltile .dlt2 .dlprint, body.tight .dltile .dlt2 .dllockbtn { margin-left: 0; }
body.tight .dltile .dlt2 > .tag { padding: var(--sp-1) var(--sp-3); }
body.tight .dltile .dlpset { min-width: 0; padding: 0 var(--sp-1); }
body.tight .dltile .dltright { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-1); }
body.tight .dltile :is(.dlpstep, .dllockbtn) { padding: 0; }   /* price, printing, collection and lock fit one line of a Medium tile */
body.tight .dltile .ownchk { flex: 0 0 var(--sp-6); width: var(--sp-6); height: var(--sp-6); font-size: var(--fs-xs); }
body.tight .dltile .ownchk.none { box-sizing: border-box; border: 2px solid var(--muted); opacity: .7; }   /* a hollow ring: not in your collection */
body.tight .dltile .dlt3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); }
body.tight .dltiletag { display: inline-flex; align-items: center; gap: var(--sp-1); height: calc(var(--sp-6) + var(--sp-1)); padding: 0 var(--sp-3); border: 1px dashed var(--line); border-radius: var(--r-pill); background: none; color: var(--muted); font-size: var(--fs-xs); cursor: pointer; }
body.tight .dltiletag:hover, body.tight .dltiletag:focus-visible { color: var(--text); border-color: var(--muted); }
body.tight .dltile .dlt4 { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding-top: var(--sp-1); border-top: 1px solid var(--line); }
@media (pointer: coarse) { body.tight .dltile :is(.dlpstep, .dllockbtn) { min-width: var(--sp-7); min-height: var(--h-xs); } body.tight .dltiletag { height: var(--h-xs); } }
/* T507: the list's tool row: View, Group, Sort, Details and Bulk on the left, 24 apart; below desktop width the names move inside the boxes
   (ticket 378) so the controls stay on one line, and on a phone Details and Bulk show their icon */
body.tight .dlbar { gap: var(--sp-5) var(--sp-7); align-items: center; }
body.tight .dlbar .dlsel { display: inline-flex; align-items: center; gap: var(--sp-4); }
body.tight .dlbar .dvmpop.barpop { left: 0; right: auto; }
@media (max-width: 700px) { body.tight .dlbar .dvmpop.barpop { right: 0; } }   /* T564: on a phone the View and Details menus stay full-width sheets */
@media (max-width: 1279px) {
  body.tight .dlbar { gap: var(--sp-4) var(--sp-5); }
  /* ticket 378 (Dave; owner 2026-11-30, option B): the name is inside the box, in the accent colour, so the three boxes say what they
     are and nothing gets taller. The box is still the select itself: the name lies over its left padding and lets every press through */
  body.tight .dlbar .dlsel { position: relative; }
  body.tight .dlbar .dlsel > .small { position: absolute; left: calc(var(--sp-5) + 1px); top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; color: var(--accent); font-size: var(--fs-sm); font-weight: 700; }
  body.tight .dlbar .dlsel select { padding-left: calc(var(--sp-5) + var(--dln, 5) * 1ch + var(--sp-3)); padding-right: calc(var(--sp-7) + var(--sp-2)); }   /* the longest value keeps clear of the chevron */
}
@media (max-width: 700px) {
  body.tight .dlbar { gap: var(--sp-3); }
  body.tight .dlbar .dlsel { flex: 1 1 0; min-width: 0; }
  body.tight .dlbar .dlsel select { width: 100%; min-width: 0; }
  body.tight .dlbar .dklbl { display: none; }
}

/* T553 + T554 + T555 (owner 2026-11-05, mockup J6XLDf14iC9A2HrYNE6BJU): My decks' panels (New deck, Find me a commander, Import, Analyze a
   list, Add to watchlist) open in one slot under the action row, above the view / colour / sort row; while one is open the block scrolls
   with the page instead of sticking */
@media (min-width: 701px) {
  body.tight .dkpage .dkstick.dkhaspanel { position: relative; top: auto; }
  body.tight .dkpage .dkstick.dkhaspanel::after { display: none; }
}
body.tight .dkpage .dkstick > .box { width: 100%; }
/* T554: My decks › Analyzed, one line per analyzed list */
body.tight .dkanlist { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .dkanrow-w { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
body.tight .dkanrow { display: flex; align-items: center; gap: var(--sp-5); min-width: 0; }
body.tight .dkanart { flex: none; width: 96px; height: var(--h-lg, 56px); padding: 0; overflow: hidden; border: 0; border-radius: var(--r-ctl); background: var(--inset); cursor: pointer; }
body.tight .dkanart img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
body.tight .dkantxt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
body.tight .dkantxt b { max-width: 100%; font-size: var(--fs-md); }
body.tight .dkanacts { flex: none; }
body.tight .dkankeep { padding-left: calc(96px + var(--sp-5)); }
@media (max-width: 700px) {
  body.tight .dkanart { width: 64px; height: var(--h-md); }
  body.tight .dkankeep { padding-left: 0; }
}

/* T563 (owner sign-off 2026-11-06, mockup 7VTdi3n2sYmtbFEuKiG7ho direction A; SCOPE 17.24): THE decision trio, RZ.trio in core.js.
   Struck coins: a metal rim (the theme's text and muted mixed, so it follows light and dark), an enamel centre in the action's colour
   (Not for me --bad, Add --accent, Maybe --warn), the icon engraved in --onAccent. No words on screen at any size; the words are the
   aria-label and the tooltip. Sizes: lg 56 / Add 64 (Suggest), md 40 / Add 44 (Analyze, Tamiyo, Sets, the card panel, the grid),
   sm 28 (list rows). The gap is larger than the hover glow and the chosen ring, so coins never touch; touch screens get the 40 px
   hit area (17.16) from an invisible ::after. */
body.tight .bracts.trio { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: var(--sp-5); flex: none; }
body.tight .bracts.trio.inline, body.tight .bracts.trio.triosm { justify-content: flex-start; }
body.tight .bracts.triolg { gap: var(--sp-7); }
body.tight .bracts.triosm { gap: var(--sp-4); }
body.tight .bracts.trio .carbtn {
  --c: var(--accent); position: relative; flex: none; height: 40px; width: 40px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 999px;
  background: none; color: var(--onAccent); cursor: pointer; display: inline-grid; place-items: center; transition: transform .14s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
body.tight .bracts.trio .carbtn.rej { --c: var(--bad); }
body.tight .bracts.trio .carbtn.maybe { --c: var(--warn); }
body.tight .bracts.trio .carbtn.add { height: 44px; width: 44px; }
body.tight .bracts.triolg .carbtn { height: 56px; width: 56px; }
body.tight .bracts.triolg .carbtn.add { height: 64px; width: 64px; }
body.tight .bracts.triosm .carbtn, body.tight .bracts.triosm .carbtn.add { height: 28px; width: 28px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
body.tight .bracts.trio .carbtn .coin {
  position: absolute; inset: 0; border-radius: 999px; display: grid; place-items: center; border: 3px solid transparent;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 78%, var(--text)) 0, var(--c) 48%, color-mix(in srgb, var(--c) 58%, var(--bg)) 100%) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--text) 88%, var(--muted)) 0, var(--muted) 42%, color-mix(in srgb, var(--muted) 55%, var(--bg)) 78%, var(--muted) 100%) border-box;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -4px 8px rgba(0, 0, 0, .3);
}
body.tight .bracts.triosm .carbtn .coin { border-width: 2px; }
body.tight .bracts.trio .carbtn .coin::before { content: ''; position: absolute; inset: 3px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--onAccent) 30%, transparent); pointer-events: none; }
body.tight .bracts.triosm .carbtn .coin::before { display: none; }
body.tight .bracts.trio .carbtn .coin .uico { position: relative; display: inline-flex; filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--text) 35%, transparent)); }
body.tight .bracts.trio .carbtn:hover, body.tight .bracts.trio .carbtn:focus-visible { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent), 0 4px 10px rgba(0, 0, 0, .35); background: none; }
body.tight .bracts.trio .carbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.tight .bracts.trio .carbtn:active, body.tight .bracts.trio .carbtn.keyed { transform: translateY(1px) scale(.94); filter: brightness(1.15); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent); }
body.tight .bracts.trio .carbtn:active .coin, body.tight .bracts.trio .carbtn.keyed .coin { box-shadow: inset 0 4px 10px rgba(0, 0, 0, .5); }
/* the choice made: a ring in the action's colour around the coin (inside the gap) */
body.tight .bracts.trio .carbtn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); background: none; }
body.tight .bracts.trio .carbtn.armed { --c: var(--bad); background: none; color: var(--onAccent); border-color: transparent; }
body.tight .bracts.trio .carbtn.armed .coin { background: var(--bad) padding-box, linear-gradient(150deg, var(--text), var(--muted)) border-box; }
body.tight .bracts.trio .carbtn[disabled] { cursor: not-allowed; transform: none; filter: grayscale(1) brightness(.8); opacity: .6; box-shadow: none; }
body.tight .bracts.trio .carbtn .coinlock { position: absolute; right: -4px; top: -4px; width: 18px; aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
@media (pointer: coarse) {
  body.tight .bracts.trio .carbtn::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; }
  body.tight .bracts.triosm { gap: var(--sp-5); }
}
@media (prefers-reduced-motion: reduce) {
  body.tight .bracts.trio .carbtn, body.tight .bracts.trio .carbtn:hover, body.tight .bracts.trio .carbtn:active, body.tight .bracts.trio .carbtn.keyed { transition: none; transform: none; }
}
/* Suggest: the large trio under the card; the sticky phone row keeps its fading ground and no longer rides over the reason sheet (carGuard) */
body.tight .caracts .bracts.triolg { margin: 0; }
@media (max-width: 700px) {
  body.tight .suggestbody.carfill .cartrack { touch-action: none; }   /* T563: the card takes vertical swipes too (up Add, down Not for me) */
}
/* rows that held word buttons: the coins sit in line with the row */
body.tight .addrow > .bracts.trio, body.tight .ecdeck > .bracts.trio, body.tight .trimacts > .bracts.trio { margin-left: var(--sp-2); }

/* ---------- T550 / T546 (owner sign-off 2026-11-06, mockup RWrieHKAMXzcREExPTvm9J): a deck's tabs on one page gutter, Build's card review ----------
   From 1280 px wide every tab of a deck (Deck, Build, Analyze, Compare, Playbook, Matches) keeps 64 px on both sides (core.js sets body.dkpg),
   so the gold lobby flag (56 px, 64 on hover) lies inside the right one and both indents match; narrower the gutter stays the frame's.
   Panels are cards with all four corners inside the gutter, never frames running off the screen (replaces T482's off-edge deck pane). */
body.tight { --dkg: var(--gutter); --dkline: color-mix(in srgb, var(--accent) 38%, var(--line)); }
@media (min-width: 1280px) { body.tight.dkpg { --dkg: calc(2 * var(--sp-8)); } }
body.tight.dkpg .page, body.tight.dkpg .buildhead { padding-left: var(--dkg); padding-right: var(--dkg); }
@media (min-width: 701px) { body.tight.dkpg .page > .dvsum { margin-left: calc(-1 * var(--dkg)); margin-right: calc(-1 * var(--dkg)); padding-left: var(--dkg); padding-right: var(--dkg); } }
body.tight .deckview.nopanel { grid-template-columns: minmax(0, 1fr); }   /* Playbook: no left panel, the page starts at the gutter */
@media (min-width: 1001px) {
  body.tight.dkpg .deckview:not(.nopanel) { grid-template-columns: clamp(260px, calc(var(--dvleft, 330px) - 30px), 340px) minmax(0, 1fr); gap: var(--sp-6); }
  body.tight.dkpg .deckview > .dvbox { margin-left: 0; padding: var(--sp-6); border: 1px solid var(--dkline); border-radius: var(--r-box); }
  body.tight.dkpg .buildrow:not(.mob) > .deckpane { margin: var(--sp-5) var(--sp-6) var(--sp-5) var(--dkg); border: 1px solid var(--dkline); border-radius: var(--r-box); }
  body.tight.dkpg .buildrow:not(.mob) > .chat { margin: var(--sp-5) var(--dkg) var(--sp-5) var(--sp-6); border: 1px solid var(--dkline); border-radius: var(--r-box); }
  body.tight.dkpg .buildrow.nochat:not(.mob):not(.tamfold) > .suggest { margin-right: var(--dkg); }   /* Tamiyo folded (tamfold): her empty column keeps the margin, so nothing moves */
}
/* the review of the card in the middle (Build, wider than a tablet: the left pane; phones and tablets: the sheet) */
body.tight .revpane { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); background: var(--panel); overflow-y: auto; }
body.tight .revhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-5); row-gap: var(--sp-2); align-items: start; }
body.tight .revhead > :not(.revgrade) { grid-column: 1; }
body.tight .revhead > .revgrade { grid-column: 2; grid-row: 1 / span 3; }
body.tight .revkick { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.tight .revname { font-size: var(--fs-xl); line-height: 1.25; overflow-wrap: anywhere; }
body.tight .revtype { font-size: var(--fs-sm); color: var(--text2); }
body.tight .revhead.sheet { display: flex; align-items: center; gap: var(--sp-5); }
body.tight .revhead.sheet > .revname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--fs-lg); }
body.tight .revhead.sheet .revtype { font-size: var(--fs-xs); color: var(--muted); }
body.tight .revpane .tagsrow, body.tight .revsheet .tagsrow { flex-wrap: wrap; }
body.tight .revfit { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--dkline); border-radius: var(--r-box); background: color-mix(in srgb, var(--accent) 6%, var(--card)); flex: none; }
body.tight .revfith { font-size: var(--fs-md); }
body.tight .revfitrow { display: flex; gap: var(--sp-4); font-size: var(--fs-sm); line-height: 1.4; color: var(--text2); }
body.tight .revfitrow b { color: var(--text); }
body.tight .revfitmark { flex: none; font-weight: var(--fw-title); color: var(--ok); }
body.tight .revfitrow.no .revfitmark { color: var(--warn); }
body.tight .revwhy { margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--text2); }
body.tight .revtiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
body.tight .revtile { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bg); }
body.tight .revtile dt { font-size: var(--fs-xs); font-weight: var(--fw-text); color: var(--muted); }
body.tight .revtile dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-2xl); font-weight: var(--fw-title); line-height: 1.1; color: var(--text); }
body.tight .revunit { font-size: var(--fs-sm); font-weight: var(--fw-text); color: var(--muted); }
body.tight .revok { color: var(--ok); } body.tight .revno { color: var(--text2); } body.tight .revacc { color: var(--accent); }
/* ticket #260: "What could it replace?" in the review: up to three deck cards, each with Swap and Cut (icon buttons, one style: .iconbtn2) */
body.tight .repfold { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--dkline); border-radius: var(--r-box); background: var(--card); flex: none; }
body.tight .rephead { display: flex; align-items: center; gap: var(--sp-4); }
body.tight .repttl { all: unset; flex: 1 1 auto; cursor: pointer; font-size: var(--fs-md); font-weight: var(--fw-title); color: var(--text); }
body.tight .repttl:focus-visible, body.tight .repchev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
body.tight .repcount { margin-left: var(--sp-3); padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--card2, rgba(255, 255, 255, .08)); color: var(--text2); font-size: var(--fs-xs); font-weight: var(--fw-title); }
body.tight .repchev { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--muted); }
body.tight .replist { display: flex; flex-direction: column; gap: var(--sp-2); }
body.tight .reprow { display: flex; align-items: center; gap: var(--sp-3); min-height: 36px; }
body.tight .reppic { all: unset; flex: none; cursor: pointer; display: inline-flex; border-radius: 6px; overflow: hidden; -webkit-touch-callout: none; user-select: none; }
body.tight .reppic .artthumb { border-radius: 6px; }
body.tight .repname { flex: 1 1 auto; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); font-weight: var(--fw-title); color: var(--text); -webkit-touch-callout: none; }
body.tight .repbtn { flex: none; width: 36px; height: 36px; color: var(--accent); }
body.tight .repbtn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
body.tight .repall { align-self: flex-start; color: var(--text2); }
@media (max-width: 1000px) {
  body.tight .reprow { min-height: 44px; }
  body.tight .repbtn { width: 44px; height: 44px; }
  body.tight .repchev { width: 44px; height: 44px; }
  body.tight .repfold .tipi::before { inset: -12px; }   /* a 44 px tap area around the 20 px mark */
}
/* Build's bottom bar (wider than a tablet): the Deck tab's bar, the card types with their counts (owner 2026-11-06) */
body.tight .dvsum.bsum { position: static; flex: none; margin: 0; padding: var(--sp-4) var(--dkg); gap: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); }
/* phones and tablets (T546, P1 and P-Sheet): one line under the buttons, the review as a sheet, the kinds of draw in the bottom bar */
body.tight .carpeekwrap { display: flex; justify-content: center; padding: 0 var(--sp-6); }
body.tight .carpeek { display: flex; align-items: center; gap: var(--sp-5); width: 100%; max-width: 520px; min-height: var(--h-lg); padding: 0 var(--sp-5); border: 1px solid var(--dkline); border-radius: var(--r-box); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .carpeektxt { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--text2); }
body.tight .carpeektxt b { color: var(--text); }
body.tight .carpeekchev { flex: none; display: inline-flex; color: var(--muted); }
body.tight .revback { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .35); }
body.tight .revsheet { position: fixed; left: 0; right: 0; bottom: var(--revbot, 0px); top: var(--revtop, 30vh); z-index: 71; display: flex; flex-direction: column; gap: var(--sp-5); padding: 0 var(--sp-6) var(--sp-6); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--dkline); border-bottom: 0; border-radius: var(--r-box) var(--r-box) 0 0; background: var(--panel); box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
body.tight .revgrip { position: sticky; top: 0; z-index: 1; align-self: stretch; display: flex; justify-content: center; min-height: var(--h-xs); padding: var(--sp-4) 0; border: 0; background: var(--panel); cursor: pointer; }
body.tight .revgrip .gripbar { width: 40px; height: var(--sp-2); border-radius: var(--r-pill); background: var(--dkline); }
body.tight .revsheet .carpills { align-self: stretch; }
body.tight .mobtabs:has(> .mtrow) { flex-direction: column; }
body.tight .mobtabs > .mtrow { display: flex; flex: 1 1 auto; align-items: stretch; }
body.tight .mobtabs .mtkinds { display: flex; gap: var(--sp-1); margin: var(--sp-4) var(--sp-5) var(--sp-3); padding: var(--sp-1); border-radius: var(--r-ctl); background: var(--bg); }
body.tight .mobtabs .mtkinds > .btn.mtkind { flex: 1 1 0; min-width: 0; min-height: var(--h-xs); height: auto; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--r-tag); background: transparent; color: var(--text2); font-size: var(--fs-sm); font-weight: var(--fw-text); gap: var(--sp-2); white-space: nowrap; }
body.tight .mobtabs .mtkinds > .btn.mtkind.on { background: var(--accent); color: var(--onAccent); font-weight: var(--fw-label); }
body.tight .mobtabs .mtkinds > .btn.mtkind:disabled { opacity: .5; }
/* T546 (board P-Deck): the phone's deck list tools are one row (View ▾ naming view, group and sort; Details; Bulk), the card search its own row */
@media (max-width: 700px) {
  body.tight .dlbar.dlbarphone { flex-wrap: wrap; gap: var(--sp-4); }
  body.tight .dlbarphone > .dlvwwrap { flex: 1 1 0; min-width: 0; position: relative; }
  body.tight .dlbarphone .dlvwbtn { width: 100%; height: var(--h-md); justify-content: flex-start; gap: var(--sp-4); }
  body.tight .dlbarphone .dlvwsum { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: var(--fs-sm); font-weight: var(--fw-text); color: var(--muted); }
  body.tight .dlbarphone .dlcdbtn, body.tight .dlbarphone .dlbulk { height: var(--h-md); }
  body.tight .dlbarphone .dlbulk .dklbl, body.tight .dlbarphone .dlbulk .dvmchev { display: none; }
  body.tight .dlbarphone > .dlbarend { flex: 1 1 100%; max-width: none; order: 10; }
  body.tight .dlvwpop { gap: var(--sp-5); padding: var(--sp-6); }
  body.tight .dlvwpop .dlsel { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-2); }
  body.tight .dlvwpop .dlsel select { width: 100%; }
}
body.tight .mobtabs .mtkinds > .btn.mtkind .aimark { padding: 0 var(--sp-3) 0 var(--sp-1); font-size: var(--fs-xs); }
body.tight .mobtabs .mtkinds > .btn.mtkind:not(.on) .aimark { background: var(--chip); color: var(--text2); }
/* a short deck tab (Playbook without its panel): the art credit sits above the deck's bar, so the bar stays the page's last line */
body.tight.dkpg .page:has(> .dvsum) > .artcredit { order: 1; }
body.tight.dkpg .page:has(> .artcredit) > .dvsum { order: 2; margin-top: 0; }
body.tight .dlbarphone .dlvwbtn .dklbl { display: inline; flex: none; }   /* T546: the View button names itself (the phone hides other tool labels) */

/* T572 (owner 2026-11-06, mockup T3sxPDWmvjp3mN15zsZvTz A): the 3 decks opened last under My decks (core.js dPanel / dHook / hamPanel) */
body.tight header.top:has(.navdpanel) { z-index: 68; }
body.tight .navdpanel { position: absolute; top: calc(100% + var(--sp-3)); left: 0; z-index: 2; width: min(340px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--bar); box-shadow: 0 14px 36px rgba(0,0,0,.42); }
body.tight.light .navdpanel { box-shadow: 0 14px 30px rgba(20,24,40,.16); }
body.tight .navdlbl { padding: var(--sp-3) var(--sp-5) var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.tight .navdrow, body.tight .navdall, body.tight .navhamdeck { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: var(--h-md); padding: var(--sp-3) var(--sp-5); border: 0; border-radius: var(--r-ctl);
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .navdrow:hover, body.tight .navdrow:focus-visible, body.tight .navdall:hover, body.tight .navdall:focus-visible, body.tight .navhamdeck:active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
body.tight .navdrow:focus-visible, body.tight .navdall:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body.tight .navdart { width: 60px; height: var(--h-xs); flex: none; border-radius: var(--r-tag); background: var(--inset) center 25% / cover no-repeat; }
body.tight .navdtext { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; flex: 1 1 auto; }
body.tight .navdtext b { font-size: var(--fs-md); font-weight: var(--fw-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .navdtext span { font-size: var(--fs-xs); color: var(--muted); }
body.tight .navddiv { height: 1px; margin: var(--sp-2) 0; background: var(--line); }
body.tight .navdall { justify-content: space-between; min-height: var(--h-sm); color: var(--accent); font-weight: var(--fw-label); }
body.tight .navbtn.open:not(.on) { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
/* touch tablets: My decks and its ▾ read as one pill */
body.tight .navbtn.navdsplit { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.tight .navbtn.navdcaret { min-width: 0; padding: 0 var(--sp-3); margin-left: calc(-1 * var(--sp-1)); border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: inset 1px 0 0 color-mix(in srgb, var(--text) 18%, transparent); }
/* phones: the rows sit indented under My decks in the ☰ menu */
body.tight .navhamsub { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0 0 var(--sp-2) var(--sp-7); padding-left: var(--sp-4); border-left: 1px solid var(--line); }
body.tight .navhamdeck { gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); }
body.tight .navhamdeck .navdart { width: 52px; height: var(--sp-7); }
body.tight .navhamdeck .navdtext b { font-size: var(--fs-sm); }

/* T580: See what to trim, right of Bulk in the deck list's tool row; phones leave it out (Tinker > Trim) */
body.tight .dlbar .dltrimbtn { height: var(--h-sm); }
@media (max-width: 700px) { body.tight .dlbar .dltrimbtn { display: none; } }

/* T584 (owner 2026-11-06, mockup 6QUGcpgdo8SxbZufv3YLCY: A on desktop and tablets, B on phones): the deck header pins once it is scrolled past
   (pages3.js RZ.dkPinFit). It is sticky at a negative top (--dkpintop), so only its tab row stays, with a slim row over it from 701 px: the art,
   the name, the meta line and back to the top (.dkpin, at --dkpinat in the header). A phone shows the art in front of the tabs. The header's
   height never changes, so pinning moves nothing; the left panel's sticky top and Compare's summary sit under what stays (--dkpinh) */
body.tight .dkhead.dkpinon { position: sticky; top: var(--dkpintop, 0px); z-index: 9; }
body.tight .dkhead.dkstuck::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--dkg, var(--gutter))); z-index: -1; background: var(--bg); box-shadow: 0 var(--sp-3) var(--sp-5) calc(-1 * var(--sp-3)) color-mix(in srgb, #000 45%, transparent); }
body.tight .dkpin, body.tight .dhtabrow > .dkpinart { display: none; }
body.tight .dkhead.dkstuck > .dkpin { position: absolute; left: 0; right: 0; top: var(--dkpinat, 0px); height: calc(var(--h-lg) - var(--sp-2)); display: flex; align-items: center; gap: var(--sp-5); min-width: 0; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
body.tight .dkpin .dkpinart { flex: none; width: var(--h-lg); height: var(--sp-8); border-radius: var(--r-tag); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
body.tight .dkpinart img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tight .dkpinart img.dkcard { object-position: 50% 22%; }
body.tight .dkpinname { flex: 0 1 auto; min-width: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .dkpinmeta { flex: 0 1 auto; min-width: 0; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .dkpin .dkpintop { margin-left: auto; width: var(--h-sm); height: var(--h-sm); border: 1px solid var(--line); border-radius: var(--r-ctl); }
body.tight .dkhead.dkstuck .dhtabrow > .dkpinart { display: inline-flex; flex: none; align-self: center; width: var(--sp-8); height: calc(var(--sp-7) - var(--sp-2)); margin-right: var(--sp-4); padding: 0; border: 0; border-radius: var(--r-tag); overflow: hidden; background: var(--card); cursor: pointer; }
body.tight .page:has(> .dkhead.dkpinon) .deckview > .dvbox.dvstick { top: var(--dkpinh, 56px); }   /* plus the page's 16 px top padding: 16 under the header */
body.tight .page:has(> .dkhead.dkpinon) .cmpsumwrap { top: calc(var(--dkpinh, 16px) - var(--sp-6)); }

/* T585 (owner 2026-11-06): the Deck tab's left panel has Build's grip on its right edge (pages3.js dvGrip, in the 16 px gap beside it); the
   panel goes from today's 260 to 300 px up to 460 px while the list keeps 640 px, and the commander's card fills it */
body.tight .deckview > .dvbox > .dvgrip { display: none; }
@media (min-width: 1001px) {
  body.tight.dkpg .deckview:not(.nopanel) { grid-template-columns: clamp(260px, min(calc(var(--dvleft, 330px) - 30px), calc(100% - 640px - var(--sp-6))), 460px) minmax(0, 1fr); }
  body.tight .deckview > .dvbox:not(.dvstick):not(.dvscroll) { position: relative; }
  body.tight .deckview > .dvbox > .dvgrip { display: flex; position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--sp-6) - 1px); width: var(--sp-6); }
  body.tight .deckview > .dvbox > .dvgrip:focus-visible span, body.tight .deckview > .dvbox > .dvgrip:active span { background: var(--accent); }
  body.tight.dkpg .dvbox .dvshow:not(.two) .dvs-card { flex-basis: 100%; width: 100%; }
  body.tight.dkpg .dvbox .dvshow:not(.two) .dvs-foil { flex-basis: 100%; width: 100%; }
  body.tight.dkpg .dvbox .dvs-cap { max-width: none; }
}
/* T670 item 7 (audit D2, owner sign-off 2026-11-12, mockup J5sVXC2JP5QXzxdwZE1SSw): below 1001 px the Deck tab starts with cards. The big
   commander card leaves (the header art opens it, with its EDHREC rank, T599) and the Deck box is one line: Deck, the bar and the count,
   then spells, lands and combos under it */
/* T936: the commander turns on its picture (pages3 dvShowcase .dvsflip) wherever that picture shows; below 1001 px its list line keeps the flip */
@media (min-width: 1001px) { body.tight .deckview .dlflip.dlflipcmd { display: none; } }
@media (max-width: 1000px) {
  body.tight .deckview > .dvbox .dvshow { display: none; }
  body.tight .deckview > .dvbox .dvdeck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t b c" "l l m"; align-items: center; gap: var(--sp-2) var(--sp-5); }
  body.tight .deckview > .dvbox .dvdeckhd, body.tight .deckview > .dvbox .dvdeckn { display: contents; }
  body.tight .deckview > .dvbox .dvdeckhd > .boxtitle { grid-area: t; }
  body.tight .deckview > .dvbox .dvdeck > .capbar2 { grid-area: b; margin: 0; }
  body.tight .deckview > .dvbox .dvcnt { grid-area: c; }
  body.tight .deckview > .dvbox .dvsep { display: none; }
  body.tight .deckview > .dvbox .dvcmb { grid-area: m; text-align: right; }
  body.tight .deckview > .dvbox .dvdeck > .caplegend { grid-area: l; }
  body.tight .deckview > .dvbox .dvdeck > .capnote { grid-column: 1 / -1; }
}

/* T590 (owner 2026-11-07): on phones the deck list is one column; an open group off the screen is not styled or laid out on a redraw and
   holds its last height (--dlgh, pages3.js GH). A group with a menu open keeps its full paint (the containment would clip the menu) */
@media (max-width: 700px) {
  body.tight .dlcols:not(.stacks) .dlgroup.open[data-gk]:not(:has(.barpop)) { content-visibility: auto; contain-intrinsic-size: auto var(--dlgh, 400px); }
}

/* T593 Admin > Usage */
body.tight .admusetbl td.r, body.tight .admusetbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
body.tight .admusetbl .admusegrp td { padding-top: var(--sp-5); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
body.tight .admscroll { overflow-x: auto; }
body.tight .admline.tight.admuserow { flex-wrap: nowrap; align-items: flex-start; }
body.tight .admusepost { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
body.tight .admusereads { display: flex; flex-direction: column; gap: var(--sp-1); flex: 0 0 auto; align-items: flex-end; text-align: right; }
body.tight .admup { color: var(--ok); }
body.tight .admdown { color: var(--bad); }
body.tight .admusenote { align-items: flex-start; }
body.tight .admuse { cursor: default; }
/* ===== T633 (owner 2026-11-10, mockup V3e6UYhaQam2k4nah87F5D variant F): whose turn ===== */
/* the two buttons under Pass carry the turn ("Atraxa's turn" / "Then you", "End turn" / "To my next turn"): the words beside the icon on
   desktops and tablets; phones keep the icons only (the tooltip, a long press and the aria-label hold the full text) */
body.tight .ptend.ptico .ptendl { flex: 0 1 auto; min-width: 0; max-width: 12em; font-weight: 700; }
body.tight .ptend.ptico:is(.ptendturn, .ptmyturn) > svg { flex: none; }
body.tight .ptctlsec .ptend.ptico:is(.ptendturn, .ptmyturn) { min-width: 0; padding: 0 var(--sp-4); }
/* touch tablets in landscape: the block is narrow (PC.TOUCH_SIDE), so the word stands under the icon in the 56 px button and Pass keeps its room */
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlsec .ptend.ptico:is(.ptendturn, .ptmyturn) { flex-direction: column; justify-content: center; gap: 2px; width: 86px; padding: 0 var(--sp-1); }
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptctlmain:has(.ptendturn .ptendl) .ptpass.long .ptpassl { font-size: var(--fs-md); }   /* two lines of a long Pass label still fit */
body.tight .ptwrap.ptt.touch .pttbl:not(.ptcol) .ptend.ptico .ptendl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: var(--fs-xs); line-height: 1.2; }   /* owner QA 2026-11-11: one line, the full name is the tooltip and the aria-label
@media (min-width: 600px) { body.tight .pttbl.ptph .ptctlsec .ptend.ptico:is(.ptendturn, .ptmyturn) { width: 128px; min-width: 0; padding: 0 var(--sp-4); } }   /* owner QA 2026-11-11: a fixed width, the name truncates
@media (max-width: 599.98px) { body.tight .pttbl.ptph .ptend.ptico .ptendl, body.tight .ptwrap.ptt.touch .pttbl.ptph .ptend.ptico .ptendl { display: none; } }   /* audit Pl3: the touch selector beats the two-line rule above, so the pod phone (.ptpph, also .ptph) hides the words too */
/* the phone's bottom row, left to right: Undo, Pass, End turn, To my turn (the buttons' box steps aside so Undo can stand first) */
body.tight .pttbl.ptph .ptctlmain > .ptctlsec { display: contents; }
body.tight .pttbl.ptph .ptctlmain > .ptctlsec > .ptundo { order: -1; }
/* the active player's name plate and the mat edge at their seat: gold the whole turn, with a soft "golden fire" (playtest.js fireEl):
   small wisps rise off the edge, slow and faint; transform and opacity only. A thin dark rim keeps the gold readable on light mats. */
body.tight .ptwrap.ptt { --turng: var(--gold); --turnw: 255, 206, 110; --turnc: 255, 236, 180; --turnink: #1a1300; }   /* the one gold token (its darker twin in the light theme) */
body.tight.light .ptwrap.ptt { --turnw: 240, 168, 40; }
/* T782 (owner 2026-11-14): the turn takes the active player's ember colour (playtest.js data-turnskin, PC.turnSkin): --turng the line and
   the outline, --turnw its glow, --turnc the wisps' hot core, --turnink the turn-order number on --turng. Gold (the Ember) stays as above */
body.tight .ptwrap.ptt[data-turnskin="frost"] { --turng: #9fd4ff; --turnw: 150, 205, 255; --turnc: 235, 248, 255; --turnink: #06233a; }
body.tight .ptwrap.ptt[data-turnskin="wisp"] { --turng: #b794f4; --turnw: 183, 148, 244; --turnc: 240, 228, 255; --turnink: #1b0f33; }
body.tight .ptwrap.ptt[data-turnskin="leaf"] { --turng: #8fd66f; --turnw: 150, 225, 130; --turnc: 240, 255, 200; --turnink: #0f2a0a; }
body.tight .ptwrap.ptt[data-turnskin="shadow"] { --turng: #b16cf5; --turnw: 165, 85, 240; --turnc: 225, 190, 255; --turnink: #12061f; }
body.tight .ptpl.turn { box-shadow: inset 0 0 0 1.5px var(--turng), 0 0 0 1px rgba(0, 0, 0, .55), 0 0 12px rgba(var(--turnw), .35), 0 6px 14px rgba(0, 0, 0, .5); }
body.tight .ptplbtn.turn:hover { box-shadow: inset 0 0 0 2px var(--turng), 0 0 0 1px rgba(0, 0, 0, .55), 0 0 14px rgba(var(--turnw), .45), 0 6px 14px rgba(0, 0, 0, .5); }
body.tight .ptpl.flat.turn { padding-bottom: 2px; box-shadow: inset 0 -2px 0 var(--turng); border-radius: 0; }
body.tight .ptfhalf.turn { position: relative; isolation: isolate; }
body.tight .ptfire { position: absolute; z-index: 2; pointer-events: none; }
body.tight .ptfhalf > .ptfire { z-index: -1; }
body.tight .pttbl.ptpod .ptpmat > .ptfire { z-index: 21; }   /* over the card rows (20): the land row stands 12 px from the edge; faint and never in the way of a click */
/* T746 (owner 2026-11-12): the line's ends fade out and taper (its own ::before, so the mask and the clip leave the rising wisps alone) */
body.tight .ptfire.edge { left: 5%; right: 5%; height: 2px; }
body.tight .ptfire.edge::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(var(--turnw), .28) 25%, var(--turng) 42% 58%, rgba(var(--turnw), .28) 75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  clip-path: polygon(0 50%, 24% 8%, 76% 8%, 100% 50%, 76% 92%, 24% 92%); }
body.tight .ptfire.edge.top { top: 0; --rise: -18px; }
body.tight .ptfire.edge.bot { bottom: 0; --rise: 18px; }
body.tight .ptfhalf > .ptfire.edge.top { top: var(--sp-1); }
body.tight .ptfhalf > .ptfire.edge.bot { bottom: var(--sp-1); }
body.tight .ptfire.pill { left: 14%; right: 14%; top: 0; height: 0; --rise: 11px; }
body.tight .ptfire > i { position: absolute; left: var(--x, 50%); width: 8px; aspect-ratio: 1 / 2; margin-left: -4px; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 65%, rgba(var(--turnc), .95), rgba(var(--turnw), .55) 45%, rgba(var(--turnw), 0) 75%);
  animation: ptwisp 4.8s cubic-bezier(.3, .6, .4, 1) infinite; animation-delay: calc(var(--fireT, 0ms) + var(--d, 0ms)); will-change: transform, opacity; }
body.tight .ptfire.edge.bot > i { bottom: 0; transform-origin: 50% 100%; }
body.tight .ptfire.edge.top > i { top: 0; transform-origin: 50% 0; }
body.tight .ptfire.pill > i { bottom: 0; width: 4px; aspect-ratio: 4 / 9; margin-left: -2px; transform-origin: 50% 100%; }

body.tight .ptfire > i:nth-child(1) { --x: 6%; --d: 0ms; --dx: 3px; }
body.tight .ptfire > i:nth-child(2) { --x: 18%; --d: -2900ms; --dx: -2px; --wo: .45; }
body.tight .ptfire > i:nth-child(3) { --x: 31%; --d: -1300ms; --dx: 4px; }
body.tight .ptfire > i:nth-child(4) { --x: 44%; --d: -3800ms; --dx: -3px; --wo: .5; }
body.tight .ptfire > i:nth-child(5) { --x: 57%; --d: -600ms; --dx: 2px; }
body.tight .ptfire > i:nth-child(6) { --x: 69%; --d: -2200ms; --dx: -4px; --wo: .45; }
body.tight .ptfire > i:nth-child(7) { --x: 80%; --d: -4300ms; --dx: 3px; }
body.tight .ptfire > i:nth-child(8) { --x: 89%; --d: -1700ms; --dx: -2px; --wo: .45; }
body.tight .ptfire > i:nth-child(9) { --x: 96%; --d: -3300ms; --dx: 2px; }
body.tight .ptfire.pill > i:nth-child(1) { --x: 8%; }
body.tight .ptfire.pill > i:nth-child(2) { --x: 38%; }
body.tight .ptfire.pill > i:nth-child(3) { --x: 66%; }
body.tight .ptfire.pill > i:nth-child(4) { --x: 92%; }
/* reduced motion and Board settings > Motion Off: no wisps, the gold keeps a still soft glow */
body.tight .ptwrap.fxoff .ptfire > i { display: none; }
body.tight .ptwrap.fxoff .ptfire.edge::before { background: linear-gradient(to bottom, transparent, rgba(var(--turnw), .4) 22%, var(--turng) 42% 58%, rgba(var(--turnw), .4) 78%, transparent); }
@media (prefers-reduced-motion: reduce) {
  body.tight .ptfire > i { display: none; }
  body.tight .ptfire.edge::before { background: linear-gradient(to bottom, transparent, rgba(var(--turnw), .4) 22%, var(--turng) 42% 58%, rgba(var(--turnw), .4) 78%, transparent); }
}   /* owner QA 2026-11-11: this block was never closed, so every rule below it applied only with reduced motion on */

/* ticket #257: on a phone the Favour chip ("0 left · until the 1st") stays inside the Analyze strip: the row wraps and the chip shrinks, its tail is clipped before it leaves the panel */
@media (max-width: 700px) {
  body.tight .analyzeall.strip { min-width: 0; box-sizing: border-box; }
  body.tight .analyzeall.strip .analyzeallrow { flex-wrap: wrap; min-width: 0; max-width: 100%; justify-content: flex-end; }
  body.tight .analyzeallrow > .favchip { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  body.tight .favchip .fct { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.tight .anracts > .favchip { max-width: 100%; min-width: 0; }
}

/* ticket #261: a deck panel taller than the window (.dvscroll, pages3.js dvFit) floats like a short one: it stays under the sticky bar while the
   cards scroll, and its own content scrolls inside it, so the commander's card and the hovered card preview at its top stay in view */
@media (min-width: 901px) {
  body.tight .deckview > .dvbox.dvscroll { position: sticky; top: 56px; align-self: start; }
  body.tight .page:has(> .dkhead.dkpinon) .deckview > .dvbox.dvscroll { top: var(--dkpinh, 56px); }
  body.tight .deckview > .dvbox.dvscroll > .deckpane { max-height: var(--dvroom, 70vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
/* ---------- T654 (owner sign-off 2026-11-11, canvas EiYYve1mJgpqqJYd49eJVV): the turn ladder and the ember ----------
   The ladder by Pass (.ptladbar: the current turn's, yours gold, an opponent's cool with their name), each opponent's own ladder on their
   plate (.ptlad.plate, split around the portrait; .ptladin.k-row on the 2-player table), the phone's sheet (.ptladin.k-sheet). Movement is
   playtest.js ladderSync (Web Animations after each paint); here only the ember's idle flicker, halo and sparks. */
body.tight .ptladbar { --ladcool: #8fc0f2; flex-wrap: nowrap; }
body.tight .ptladin { display: flex; align-items: center; gap: var(--sp-1); flex-wrap: nowrap; }
body.tight .ptsteps .ptladin.k-bar { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-box); background: rgba(9, 13, 18, .8); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stc, var(--tline)) 40%, transparent), 0 6px 16px rgba(0, 0, 0, .45); }
body.tight .ptladbar.mine .ptladin.k-bar { --stc: var(--tgold); }
body.tight .ptladbar.theirs .ptladin.k-bar { --stc: #8fc0f2; }
body.tight .ptstep.ptladn.theirs { --stc: #8fc0f2; }
body.tight .ptstep.ptladn.now { color: #fff1c4; }
body.tight button.ptstep.ptladn:disabled { cursor: default; }
/* the phone: one row right above Pass, 44 px steps; while combat is unfolded the name gives way */
body.tight .ptsteps.ptladbar.ph { justify-content: space-between; gap: var(--sp-2); width: 100%; }
body.tight .ptsteps.ptladbar.ph .ptladin.k-bar { gap: 0; padding: 0 var(--sp-1); }
body.tight .ptsteps.ptladbar.ph button.ptstep { width: 44px; height: 44px; }   /* calm layout: one width folded and unfolded, so no step slides */
/* an opponent's plate: two steps left of the portrait, three right of it (past the ring badges); placed at the portrait's centre */
body.tight .pttbl.ptpod .ptlad.plate { width: 0; height: 0; z-index: 36; pointer-events: none; }
body.tight .ptlad.plate .ptladh { position: absolute; top: -26px; display: flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: rgba(9, 13, 18, .86); box-shadow: inset 0 0 0 1px rgba(143, 192, 242, .3); pointer-events: auto; }
body.tight .ptlad.plate.act .ptladh { box-shadow: inset 0 0 0 1px rgba(143, 192, 242, .6); }
/* T740 / T766 (owner 2026-11-12/13): off the table: under a bottom seat's rim, above a top seat's, so the steps never sit on the gold turn line or the wood */
body.tight .ptlad.plate.bot .ptladh { top: 17px; }
body.tight .ptlad.plate.top .ptladh { top: -49px; }
body.tight .ptwrap.ptt.touch .ptlad.plate.top .ptladh { top: -57px; }
/* w14 #4: the ladder's gaps from the portrait's left and right edge; playtest.js ladFit reads them to measure where each layout lands.
   A top seat's row passes the badges on the portrait's right (26 px); a bottom seat's row runs under them, so its right half sits as
   close as its left one and clears a right-hand seat's library */
body.tight .ptlad.plate { --ladgl: 8px; --ladgr: 26px; }
body.tight .ptlad.plate.bot { --ladgr: 8px; }
body.tight .ptlad.plate .ptladh.l { right: calc(var(--pav) / 2 + var(--ladgl)); }
body.tight .ptlad.plate .ptladh.r { left: calc(var(--pav) / 2 + var(--ladgr)); }
/* w14 #4 (owner 2026-11-14): whole (playtest.js ladFit), one pill beside the portrait toward the table's middle, never over a pile;
   split around the portrait (the halves above) only where the inner side is taken */
body.tight .ptlad.plate .ptladw { display: contents; }
body.tight .ptlad.plate.whole .ptladw { position: absolute; display: flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: rgba(9, 13, 18, .86); box-shadow: inset 0 0 0 1px rgba(143, 192, 242, .3); pointer-events: auto; }
body.tight .ptlad.plate.act.whole .ptladw { box-shadow: inset 0 0 0 1px rgba(143, 192, 242, .6); }
body.tight .ptlad.plate.whole .ptladh { position: static; padding: 0; background: none; box-shadow: none; }
body.tight .ptlad.plate.whole.inr .ptladw { left: calc(var(--pav) / 2 + var(--ladgr)); }
body.tight .ptlad.plate.whole.inl .ptladw { right: calc(var(--pav) / 2 + var(--ladgl)); }
body.tight .ptlad.plate.whole.bot .ptladw { top: 17px; }
body.tight .ptlad.plate.whole.top .ptladw { top: -49px; }
body.tight .ptwrap.ptt.touch .ptlad.plate.whole.top .ptladw { top: -57px; }
body.tight .ptlad.plate.whole.inl .ptladhint { left: auto; right: calc(var(--pav, 0px) / 2 + var(--ladgl)); }
body.tight .ptwrap .pttbl .ptlad.plate button.ptstep.ptladn, body.tight .ptladin.k-row button.ptstep.ptladn { width: 28px; height: 28px; border-radius: var(--r-pill); }
body.tight .ptwrap.ptt.touch .pttbl .ptlad.plate button.ptstep.ptladn { width: 36px; height: 36px; }
body.tight .ptlad.plate .ptstepi svg, body.tight .ptladin.k-row .ptstepi svg { width: 16px; }
body.tight .ptlad.plate .ptstepdot, body.tight .ptladin.k-row .ptstepdot { bottom: 1px; }
body.tight .ptladin.k-row { display: inline-flex; margin-top: var(--sp-2); padding: 2px; border-radius: var(--r-pill); background: rgba(9, 13, 18, .86); box-shadow: inset 0 0 0 1px rgba(143, 192, 242, .3); }
body.tight .ptladhint { position: absolute; left: calc(var(--pav, 0px) / 2 + 22px); top: 10px; padding: 2px var(--sp-3); border-radius: var(--r-pill); background: #0b0e14; box-shadow: inset 0 0 0 1px #8fc0f2; color: #cfe2fa; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
body.tight .ptladin .ptladhint { position: static; margin-left: var(--sp-2); }
/* the phone's sheet: 44 px and taller steps with their names */
body.tight .ptladin.k-sheet { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-1); padding: var(--sp-1); border-radius: var(--r-box); background: #0b0e14; box-shadow: inset 0 0 0 1px rgba(143, 192, 242, .35); }
body.tight .ptladin.k-sheet button.ptstep.ptladn { width: auto; min-height: 56px; height: auto; flex-direction: column; gap: var(--sp-1); color: #a7adba; }
body.tight .ptladin.k-sheet button.ptstep.ptladn.on { color: var(--stc); background: color-mix(in srgb, var(--stc) 12%, transparent); }
body.tight .ptladnl { font-size: 11px; line-height: 1; }
/* the Pass button's sub-line: where passing goes */
body.tight .ptpasssub { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; line-height: 1.25; opacity: .85; }
/* the ember: one component, its look from CSS variables per skin (data-skin; a later unlock adds skins: idea T664). The idle loops run on
   the wall clock (--emF, --emH, --emS1, --emS2: negative delays set by emberEl), so a repaint never restarts them. */
body.tight .rzember { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
body.tight .rzember[data-skin="gold"] { --em-core: #fff3cf; --em-mid: var(--gold, var(--tgold)); --em-edge: rgba(232, 146, 66, .7); --em-halo: rgba(240, 195, 106, .5); --em-halo2: rgba(240, 195, 106, .18); --em-spark: #ffe2a0; }
body.tight .rzemh { position: absolute; left: -19px; top: -19px; width: 38px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--em-halo), var(--em-halo2) 60%, transparent); animation: rzemBreathe 2.6s ease-in-out var(--emH, 0ms) infinite; }
body.tight .rzeml { position: absolute; left: -5px; top: -29px; width: 10px; aspect-ratio: 10 / 19; transform-origin: 50% 100%; }
body.tight .rzemf { position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 75% 75% 25% 25%; background: linear-gradient(to top, var(--em-core) 0, var(--em-mid) 38%, var(--em-edge) 68%, transparent 100%); filter: blur(.6px); transform-origin: 50% 100%; animation: rzemFlick 1.7s ease-in-out var(--emF, 0ms) infinite; }
body.tight .rzeml > i { position: absolute; top: 2px; left: 2px; width: 2px; aspect-ratio: 1; border-radius: 999px; background: var(--em-spark); opacity: 0; animation: rzemSparkA 2.1s ease-out var(--emS1, 0ms) infinite; }
body.tight .rzeml > i + i { top: 6px; left: 7px; animation: rzemSparkB 2.9s ease-out var(--emS2, 0ms) infinite; }
body.tight .ptlad.plate .rzemh, body.tight .ptladin.k-row .rzemh { left: -14px; top: -14px; width: 28px; }
body.tight .ptlad.plate .rzeml, body.tight .ptladin.k-row .rzeml { left: -4px; top: -22px; width: 8px; }
body.tight .rzember.still .rzemh, body.tight .rzember.still .rzemf { animation: none; }
body.tight .rzember.still .rzeml > i { display: none; }
/* T664 (owner sign-off 2026-11-11, mockup HXD1zNVeTXqmhQHCbDxcGR): the ember skins. Colours and shape only; the glide, the hop and the
   flare keep T654's timings for every skin. The keyframes are in style.css. */
body.tight .rzember[data-skin="frost"] { --em-core: #fff; --em-mid: #cfeaff; --em-edge: rgba(120, 190, 255, .8); --em-halo: rgba(150, 205, 255, .5); --em-halo2: rgba(150, 205, 255, .16); --em-spark: #e8f6ff; }
body.tight .rzember[data-skin="frost"] .rzeml { left: -8px; top: -31px; width: 16px; aspect-ratio: 1; transform-origin: 50% 50%; }
body.tight .ptlad.plate .rzember[data-skin="frost"] .rzeml, body.tight .ptladin.k-row .rzember[data-skin="frost"] .rzeml { left: -6px; top: -24px; width: 12px; }
body.tight .rzember[data-skin="frost"] .rzemf { border-radius: 0; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); background: radial-gradient(circle, var(--em-core) 0 20%, var(--em-mid) 46%, var(--em-edge) 100%); filter: none; transform-origin: 50% 50%; animation-name: rzemTwinkle; animation-duration: 1.9s; }
body.tight .rzember[data-skin="frost"] .rzeml::before { content: ""; position: absolute; inset: 20%; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); background: var(--em-mid); transform: rotate(45deg); opacity: .85; }
body.tight .rzember[data-skin="frost"] .rzeml > i { top: 70%; animation-name: rzemSnowA; }
body.tight .rzember[data-skin="frost"] .rzeml > i + i { top: 60%; left: 70%; animation-name: rzemSnowB; }
body.tight .rzember[data-skin="wisp"] { --em-core: #fff; --em-mid: #d9c2ff; --em-edge: rgba(160, 110, 255, .85); --em-halo: rgba(183, 148, 244, .55); --em-halo2: rgba(183, 148, 244, .18); --em-spark: #e9dcff; }
body.tight .rzember[data-skin="wisp"] .rzeml { left: -6px; top: -28px; width: 12px; aspect-ratio: 1; transform-origin: 50% 50%; animation: rzemBob 2.4s ease-in-out var(--emF, 0ms) infinite; }
body.tight .ptlad.plate .rzember[data-skin="wisp"] .rzeml, body.tight .ptladin.k-row .rzember[data-skin="wisp"] .rzeml { left: -5px; top: -22px; width: 10px; }
body.tight .rzember[data-skin="wisp"] .rzemf { border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--em-core) 0 18%, var(--em-mid) 44%, var(--em-edge) 72%, transparent 100%); filter: blur(.4px) drop-shadow(0 0 4px rgba(160, 110, 255, .9)); transform-origin: 50% 50%; animation-name: rzemPulse; animation-duration: 1.6s; }
body.tight .rzember[data-skin="wisp"] .rzeml::after { content: ""; position: absolute; left: 25%; top: 72%; width: 50%; height: 95%; border-radius: 50% 50% 50% 50% / 20% 20% 80% 80%; background: radial-gradient(ellipse at 50% 0, var(--em-edge), transparent 72%); transform-origin: 50% 0; animation: rzemTail 1.2s ease-in-out var(--emF, 0ms) infinite; }
body.tight .rzember[data-skin="wisp"] .rzeml > i { top: calc(50% - 1px); left: calc(50% - 1px); opacity: .9; animation: rzemOrbit 1.8s linear var(--emS1, 0ms) infinite; }
body.tight .rzember[data-skin="wisp"] .rzeml > i + i { top: calc(50% - 1px); left: calc(50% - 1px); animation: rzemOrbit2 2.7s linear var(--emS2, 0ms) infinite; }
body.tight .rzember[data-skin="leaf"] { --em-core: #f1ffd0; --em-mid: #8fd66f; --em-edge: #2f8f4a; --em-halo: rgba(150, 225, 130, .42); --em-halo2: rgba(150, 225, 130, .14); --em-spark: #f4ffb8; }
body.tight .rzember[data-skin="leaf"] .rzeml { left: -7px; top: -31px; width: 14px; aspect-ratio: 14 / 20; transform-origin: 50% 100%; animation: rzemSway 2.6s ease-in-out var(--emF, 0ms) infinite; }
body.tight .ptlad.plate .rzember[data-skin="leaf"] .rzeml, body.tight .ptladin.k-row .rzember[data-skin="leaf"] .rzeml { left: -5.5px; top: -24px; width: 11px; }
body.tight .rzember[data-skin="leaf"] .rzemf { inset: auto; left: 14%; top: 12%; width: 72%; aspect-ratio: 1; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, .6) 48.5% 51.5%, transparent 53%), linear-gradient(135deg, var(--em-core), var(--em-mid) 45%, var(--em-edge)); filter: drop-shadow(0 0 3px rgba(150, 225, 130, .8)); transform: rotate(45deg); transform-origin: 50% 50%; animation: none; }
body.tight .rzember[data-skin="leaf"] .rzeml > i { animation-name: rzemPollenA; animation-duration: 2.8s; }
body.tight .rzember[data-skin="leaf"] .rzeml > i + i { animation-name: rzemPollenB; animation-duration: 3.6s; }
body.tight .rzember[data-skin="shadow"] { --em-core: #0b0612; --em-mid: #34195a; --em-edge: rgba(205, 120, 255, .95); --em-halo: rgba(8, 4, 14, .75); --em-halo2: rgba(165, 85, 240, .36); --em-spark: rgba(150, 95, 225, .85); }
body.tight .rzember[data-skin="shadow"] .rzemh { background: radial-gradient(closest-side, var(--em-halo) 0 28%, var(--em-halo2) 62%, transparent); }
body.tight .rzember[data-skin="shadow"] .rzeml { left: -5.5px; top: -32px; width: 11px; aspect-ratio: 11 / 22; }
body.tight .ptlad.plate .rzember[data-skin="shadow"] .rzeml, body.tight .ptladin.k-row .rzember[data-skin="shadow"] .rzeml { left: -4.5px; top: -25px; width: 9px; }
body.tight .rzember[data-skin="shadow"] .rzemf { filter: blur(.4px) drop-shadow(0 0 3px rgba(205, 120, 255, .95)) drop-shadow(0 -1px 5px rgba(140, 60, 230, .7)); animation-duration: 2.3s; }
body.tight .rzember[data-skin="shadow"] .rzeml > i { width: 4px; background: radial-gradient(circle, var(--em-spark), transparent 70%); animation-name: rzemSmokeA; animation-duration: 3.2s; }
body.tight .rzember[data-skin="shadow"] .rzeml > i + i { animation-name: rzemSmokeB; animation-duration: 4.1s; }
body.tight .rzember.still .rzeml, body.tight .rzember.still .rzeml::after { animation: none; }
/* the pickers: a still ember on a dark tile (My Tale > Looks: profile.js lookTiles .emart; the Settings panel: core.js RZ.emberPicks .empick) */
body.tight .emart { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: radial-gradient(120% 100% at 50% 100%, #1f2638, #0d1018 72%); }
body.tight .emart > .rzember, body.tight .empick > .rzember { left: 50%; top: 78%; scale: 1.5; }
body.tight .arpick.locked .emart { opacity: .45; }
body.tight .empicks { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
body.tight .empick { position: relative; flex: none; width: 50px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--tline, var(--line)); border-radius: var(--r-box); background: radial-gradient(120% 100% at 50% 100%, #1f2638, #0d1018 72%); cursor: pointer; }
body.tight .empick > .rzember { scale: 1.25; top: 76%; }
body.tight .empick.on { box-shadow: 0 0 0 2px var(--sec), 0 0 0 4px color-mix(in srgb, var(--sec) 25%, transparent); }
body.tight .empick.locked { cursor: not-allowed; opacity: .45; }
@media (prefers-reduced-motion: reduce) { body.tight .rzemh, body.tight .rzemf { animation: none; } body.tight .rzeml > i { display: none; } }
@media (prefers-reduced-motion: reduce) { body.tight .rzember .rzeml, body.tight .rzember .rzeml::after { animation: none; } }   /* T664: the wisp's bob and tail, the leaf's sway */
/* T697 Battery saver: the ember rests, as with reduced motion */
body.tight.rzsave .rzemh, body.tight.rzsave .rzemf, body.tight.rzsave .rzember .rzeml, body.tight.rzsave .rzember .rzeml::after { animation: none; } body.tight.rzsave .rzeml > i { display: none; }
/* ---------- T676 + T677 (owner sign-off 2026-11-11, mockup HXD1zNVeTXqmhQHCbDxcGR round 2): the game start ----------
   playtest.js introSync draws these in one fixed layer over the board (outside #app) and moves them with Web Animations: the arrival of
   each player in their ember skin's style, and the rolled playmat (its picture on the roll, cylinder shading, rolled ends). Own art,
   code only; nothing here touches a portrait or a card. */
body.tight .ptintrofx { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
body.tight .ptintrofx i { position: absolute; display: block; opacity: 0; pointer-events: none; }
body.tight .ptintrofx .ptintroveil { opacity: 1; }
body.tight .ptintrofx .ptintrodim { background: rgba(5, 7, 12, .72); }
/* T954: the versus moment (playtest.js introVersus). Sizes follow the screen; opacity and transform only */
body.tight .ptvs { position: absolute; inset: 0; z-index: 1; overflow: hidden; --vsd: clamp(72px, 15vmin, 150px); }
body.tight .ptvsstage { position: absolute; inset: 0; }
body.tight .ptvs .ptvspn { inset: 0; opacity: 1; }
body.tight .ptvs .ptvsart { opacity: 1; background: #0b0e17 center 22% / cover no-repeat; }
body.tight .ptvs .ptvsart.none { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 22%, #0b0e17), #0b0e17 72%); }
body.tight .ptvs .ptvstint { inset: 0; opacity: 1; background: linear-gradient(var(--ang), color-mix(in srgb, var(--c) 46%, transparent), color-mix(in srgb, var(--c2) 12%, transparent) 34%, transparent 46%), linear-gradient(180deg, rgba(5, 7, 12, .25), transparent 30%, transparent 52%, rgba(5, 7, 12, .82)), radial-gradient(circle at 50% 50%, transparent 45%, rgba(4, 6, 10, .6)); }
body.tight .ptvs .ptvsslash { width: 4px; margin-left: -2px; background: linear-gradient(transparent, #fff3d0 18%, #ffd27a 50%, #fff3d0 82%, transparent); box-shadow: 0 0 24px #ffb648, 0 0 6px #fff; }
body.tight .ptvs .ptvsflash { inset: 0; mix-blend-mode: screen; background: radial-gradient(circle at 50% 50%, rgba(255, 240, 205, .95), rgba(255, 200, 110, .35) 30%, transparent 62%); }
body.tight .ptvs .ptvsrays { left: calc(50% - 60vmax); top: calc(50% - 60vmax); width: 120vmax; height: 120vmax; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, .16) 0 4deg, transparent 4deg 15deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%); }
body.tight .ptvs .ptvsspark { left: calc(50% - 2px); top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #fff1c9; box-shadow: 0 0 12px #ffb648; }
body.tight .ptvsbig { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; font-family: var(--tserif, 'Cormorant Garamond', Georgia, serif); font-style: italic; font-weight: 700; font-size: calc(var(--vsd) * 1.3); line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
body.tight .ptvsbig::before, body.tight .ptvsbig span { padding: 0 .18em 0 .08em; }   /* room for the slant of the S: a gradient clipped to the letters is cut off at the box's edge */
body.tight .ptvsbig::before { content: attr(data-t); position: absolute; left: 0; top: 0; color: #2a1a05; text-shadow: 0 4px 2px rgba(0, 0, 0, .85), 0 0 26px rgba(255, 182, 72, .75); }
body.tight .ptvsbig span { position: relative; display: block; color: transparent; background: linear-gradient(180deg, #fff6d8 10%, #f3c766 48%, #a86a1c 82%); -webkit-background-clip: text; background-clip: text; }
body.tight .ptvswho { position: absolute; width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); opacity: 0; }
body.tight .ptvswho .ptmed.ptvsmed { position: relative; left: auto; top: auto; flex: none; z-index: auto; box-shadow: 0 0 0 3px #0b1016, 0 0 0 5px var(--gold), 0 12px 40px rgba(0, 0, 0, .7); }
body.tight .ptvstxt { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); width: max-content; max-width: 44vw; text-align: center; }
body.tight .ptvstxt b { font-family: var(--tserif, 'Cormorant Garamond', Georgia, serif); font-size: clamp(22px, 3.1vw, 36px); line-height: 1; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #f1ece0; text-shadow: 0 2px 12px #000, 0 0 2px #000; }
body.tight .ptvstxt b.you { color: #f6dfa6; }
body.tight .ptvstxt em { font-style: normal; font-size: var(--fs-md); color: #dfe3ee; text-shadow: 0 1px 8px #000, 0 0 2px #000; }
body.tight .ptvs.pod .ptvstxt b { font-size: clamp(18px, 2.4vw, 32px); }
body.tight .ptvs.tall:not(.pod) .ptvstxt { max-width: 86vw; }   /* an upright screen: each of the two has the full width */
body.tight .ptintrofx .ptifl { border-radius: 50%; mix-blend-mode: screen; }
body.tight .ptintrofx .ptiring { border-radius: 50%; border: 2px solid; }
body.tight .ptintrofx .ptibeam { mix-blend-mode: screen; transform-origin: 50% 100%; border-radius: 40% 40% 50% 50% / 6% 6% 3% 3%; }
body.tight .ptintrofx .ptidot { border-radius: 50%; }
body.tight .ptintrofx .ptidot.gold { background: #ffcf6a; box-shadow: 0 0 8px 2px #ff9a3c; }
body.tight .ptintrofx .ptidot.snow { background: #f2faff; box-shadow: 0 0 5px 1px #9fd0ff; }
body.tight .ptintrofx .ptidot.wisp { background: #e9dcff; box-shadow: 0 0 6px 2px #a57dff; }
body.tight .ptintrofx .ptidot.dust { background: rgba(240, 215, 170, .8); }
body.tight .ptintrofx .ptistar { background: radial-gradient(circle, #fff 0, #cfeaff 32%, transparent 66%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
body.tight .ptintrofx .ptiorb { border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, #d9c2ff 46%, rgba(160, 110, 255, .85) 72%, transparent 100%); box-shadow: 0 0 10px 3px rgba(160, 110, 255, .7); }
body.tight .ptintrofx .ptileaf { border-radius: 0 100% 0 100%; background: linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, .6) 48.5% 51.5%, transparent 53%), linear-gradient(135deg, #f1ffd0, #8fd66f 45%, #2f8f4a); box-shadow: 0 0 5px rgba(150, 225, 130, .7); }
body.tight .ptintrofx .ptismoke { border-radius: 50%; background: radial-gradient(circle, rgba(60, 30, 100, .9), rgba(120, 70, 190, .45) 50%, transparent 72%); }
body.tight .ptintrofx .ptivoid { border-radius: 50%; background: radial-gradient(circle, #05030a 0, #12081f 46%, rgba(150, 80, 235, .7) 60%, transparent 70%); }
body.tight .ptintrofx .ptitube, body.tight .ptintrofx .ptitube i { opacity: 1; }
body.tight .ptintrofx .ptitube .ptitall { inset: 0; opacity: 0; }
body.tight .ptintrofx .ptitroll { inset: 0; overflow: hidden; border-radius: 46% / var(--sp-3); background: #15161d; }
body.tight .ptintrofx .ptitroll > i { inset: 0; }
body.tight .ptintrofx .ptitart { background-repeat: repeat; }
body.tight .ptintrofx .ptitshade { background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .3) 17%, rgba(255, 255, 255, .3) 39%, rgba(255, 255, 255, .06) 54%, rgba(0, 0, 0, .45) 79%, rgba(0, 0, 0, .88) 100%); }
body.tight .ptintrofx .ptitroll > .ptittie { inset: auto 0; top: calc(50% - var(--sp-3) / 2); height: var(--sp-3); background: linear-gradient(90deg, #5d4517, var(--gold) 40%, #ffe9b0 48%, #8a6a2c 80%, #3d2c0d); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
body.tight .ptintrofx .ptitcap { border-radius: 50%; background: repeating-radial-gradient(ellipse at 50% 50%, #3a3d4d 0 1.2px, #0b0c11 1.2px 3.2px); box-shadow: inset 0 0 0 1px rgba(240, 195, 106, .45); }
body.tight .ptintrofx .ptitedge { mix-blend-mode: screen; }
/* the phone row: Ctrl as one short "Full" button, the name as short as the row allows */
body.tight .ptsteps.ptladbar.ph .ptfc { flex: 0 0 auto; min-width: 44px; height: 44px; padding: 0 var(--sp-2); }
body.tight .ptsteps.ptladbar.ph .ptfc .ptfcl { display: none; }
body.tight .ptsteps.ptladbar.ph .ptfc::before { content: 'Full'; }
/* T614 (owner 0.2 feedback vb3, not reproduced): the avatar must never be pushed out of the window. The account button keeps its size, the
   top bar's cells may shrink (min-width 0) and never grow wider than the window (the stable scrollbar gutter is in style.css) */
body.tight header.top { max-width: 100%; min-width: 0; }
body.tight header.top > * { min-width: 0; }
body.tight header.top .hdr-actions { min-width: 0; max-width: 100%; }
body.tight header.top .acctwrap, body.tight header.top .acctbtn { flex: none; }

/* T651 (owner sign-off 2026-11-10, canvas 1eF7QeBxwAuWYRgbATQ63w): house rules at the table (houserules.js). The House rules chip's
   popover holds the host's controls (the bar's material, as every chip), a seat over the rules carries one amber tag, the player it hits
   reads why in the lobby's middle, and the host's change is one line above the bar that fades after a few seconds. Deck Settings >
   Card source: Max deck price under Max price per card, and the deck against my house rules beside it. */
body.tight .hrtag { display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 100%; min-width: 0; font-weight: 600; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); }
body.tight .hrtag .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .hrdot { flex: none; width: 6px; aspect-ratio: 1; border-radius: 999px; background: var(--warn); }
body.tight .hlseat .hrtag { max-width: 180px; margin-top: var(--sp-2); font-size: var(--fs-xs); pointer-events: auto; background: color-mix(in srgb, var(--warn) 18%, #15120d); color: #f3d79a; }   /* solid over the chair art */
body.tight .hlseat.sm .hrtag { max-width: 140px; }
body.tight .pdseat .hrtag, body.tight .hlchipdr .hrtag { align-self: flex-start; font-size: var(--fs-xs); }
body.tight .hrwarn { color: color-mix(in srgb, var(--warn) 80%, var(--text)); }
body.tight .hrok { color: var(--ok); }
body.tight .hrnews { position: absolute; left: var(--sp-7); bottom: calc(100% + var(--sp-4)); z-index: 2; display: inline-flex; align-items: center; gap: var(--sp-4); max-width: calc(100% - 48px);
  min-height: var(--h-sm); padding: 0 var(--sp-6); box-sizing: border-box; border-radius: 999px; font-size: var(--fs-sm); color: var(--text); background: var(--chip); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); animation: hrfade 6s linear var(--hr-age, 0s) both; pointer-events: none; }
body.tight .hrnews .uico { flex: none; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { body.tight .hrnews { animation: hrfade 6s steps(1, end) var(--hr-age, 0s) both; } }
body.tight .hrnote { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
body.tight .hrnote .btn { min-height: var(--h-md); }
body.tight .rzpop.tbpop .hrprices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
body.tight .rzpop.tbpop .hrprice input[type=range] { width: 100%; accent-color: var(--accent); }
body.tight .rzpop.tbpop .hrbans, body.tight .rzpop.tbpop .hrrulesbox, body.tight .rzpop.tbpop .hrseats { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
body.tight .rzpop.tbpop .hrbanq { height: var(--h-sm); padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bar); color: var(--text); font: inherit; }
body.tight .rzpop.tbpop .hrbanhit { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-xs); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
body.tight .rzpop.tbpop .hrbanhit:hover, body.tight .rzpop.tbpop .hrbanhit:focus-visible { background: var(--chip); }
body.tight .rzpop.tbpop .hrchip { display: inline-flex; align-items: center; gap: var(--sp-3); max-width: 100%; min-height: var(--h-xs); padding: 0 var(--sp-4); border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--text); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
body.tight .rzpop.tbpop .hrchip .uico { color: var(--muted); }
body.tight .rzpop.tbpop .hrchip:hover .uico { color: var(--text); }
body.tight .rzpop.tbpop .hrrule { min-height: var(--h-xs); }
body.tight .rzpop.tbpop .hrtier { min-width: 132px; height: var(--h-xs); padding: 0 var(--sp-3); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--chip); font: inherit; font-size: var(--fs-xs); }
body.tight .rzpop.tbpop .hrtier option { color: var(--text); background: var(--panel); }
body.tight .rzpop.tbpop .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .hlfh .hrhead { margin-left: var(--sp-4); }
body.tight .pfdecktext .hrwarn { display: block; }
body.tight .hrsource { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-7) var(--sp-8); }
body.tight .hrsrccol { flex: 0 1 340px; min-width: 220px; }
body.tight .hrdeckprice { margin-top: var(--sp-7); }
body.tight .hrmeter { height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
body.tight .hrmeter span { display: block; height: 4px; border-radius: 999px; background: var(--accent); }
body.tight .hrmeter span.over { background: var(--warn); }
body.tight .hrfit { flex: 0 1 380px; min-width: 240px; padding: var(--sp-5) var(--sp-6); font-size: var(--fs-sm); }
body.tight .hrfit .hrfitl { flex-wrap: wrap; }
@media (max-width: 700px) { body.tight .hrsource { gap: var(--sp-6); } body.tight .hrsrccol, body.tight .hrfit { flex-basis: 100%; } body.tight .hlseat .hrtag { max-width: 120px; } }

/* vb163: the quiet house rules mark (a deck row or a seat over the host's rules) */
body.tight .hrmark { display: inline-flex; align-items: center; justify-content: center; width: 20px; aspect-ratio: 1; border-radius: 999px; cursor: help; flex: none; }
body.tight .hrmark .hrdot { width: 8px; aspect-ratio: 1; border-radius: 999px; background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
body.tight .hrmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* owner QA 2026-11-11 (board on a big tablet): the turn buttons keep their place. Without the big Pass the row keeps its slot empty at the
   same size; Pass and the turn buttons keep one size whatever the names (long ones end in an ellipsis, the full text is the tooltip) */
body.tight .ptpass.ptpassslot { visibility: hidden; pointer-events: none; }
/* calm layout (owner QA 2026-11-11, T654): nothing moves when Pass comes and goes or combat unfolds. The quiet line ("Atraxa is playing…")
   sits in Pass's slot at Pass's size (playtest.js idleCtl); the ladder by Pass has a slot as wide as its 7 unfolded steps (an invisible
   copy in the same grid cell), anchored left, so its first steps and Ctrl keep their place */
body.tight .ptpass.ptpassslot.ptpassline > .ptidle { visibility: visible; align-self: stretch; padding: 0 var(--sp-2); text-align: center; overflow: hidden; white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }   /* a narrow slot (the phone): two lines */
body.tight .ptladbar .ptladslot { display: grid; justify-items: start; align-items: center; flex: 0 0 auto; min-width: 0; }
body.tight .ptladbar .ptladslot > * { grid-area: 1 / 1; }
body.tight .ptladbar .ptladslot > .ptladghost { visibility: hidden; pointer-events: none; }
body.tight .ptpass .ptpassl, body.tight .ptpass .ptpasst { max-width: 100%; }
body.tight .ptpass .ptpasst { white-space: nowrap; }
body.tight .ptctlsec .ptend.ptico:is(.ptendturn, .ptmyturn) .ptendl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ticket #245, Pauper Commander (mockup JPgpjucXMDuzowyoEjaWYw): the list's rarity / banned mark, the PDH tag, the deck view check and its fold */
body.tight .pdhmark { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; margin-left: var(--sp-2); padding: 0 var(--sp-1); border-radius: var(--r-tag); font-size: var(--fs-xs); font-weight: 700; line-height: 16px; color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); cursor: help; }
body.tight .pdhmark.ban { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
/* T696: the deck list's alert mark (RZ.cardAlert): a small round ! with the reasons in the tooltip; red breaks the format, amber a table's house rules */
body.tight .cardalert { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; aspect-ratio: 1; margin-left: var(--sp-2); border-radius: 50%; font-size: var(--fs-xs); font-weight: 800; line-height: 1; color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent); cursor: help; }
body.tight .cardalert.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 55%, transparent); }
body.tight .cardalert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { body.tight .cardalert { position: relative; } body.tight .cardalert::after { content: ''; position: absolute; inset: -8px; } }
body.tight .pdhchip .pdhmark { margin-left: 0; margin-right: var(--sp-2); }
body.tight .pdhtag { flex: none; white-space: nowrap; font-weight: 700; letter-spacing: .02em; cursor: help; }
/* T993: the Paper deck switch beside the deck's meta line; on = a paper deck (its cards count as used in the collection) */
body.tight .paperswitch { flex: none; display: inline-flex; align-items: center; gap: var(--sp-2); margin-left: var(--sp-4); cursor: pointer; white-space: nowrap; font-weight: 600; background: transparent; }
body.tight .paperswitch.on { color: var(--gold); border-color: var(--gold); }
/* T993: the Take apart box under a deck row (My decks) */
body.tight .takeapart { gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); }
body.tight .takeapart .tapick { align-items: center; gap: var(--sp-4); cursor: pointer; }
body.tight .takeapart .taacts { gap: var(--sp-3); justify-content: flex-end; }
body.tight .prpaper { align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); cursor: pointer; }
body.tight .ecfree { opacity: .8; font-weight: 600; margin-left: var(--sp-2); }
body.tight .dkline-name .ell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.tight .dkart:has(.pdhtag) { position: relative; }
body.tight .dkart .pdhtag { position: absolute; left: var(--sp-2); bottom: var(--sp-2); background: var(--bg); }
body.tight .decktitlebtn + .pdhtag, body.tight .decktitle + .pdhtag { margin-left: var(--sp-3); }
body.tight .pdhcheck { flex-direction: column; align-items: stretch; gap: var(--sp-5); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
body.tight .pdhfold { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
body.tight .planformat { margin-bottom: var(--sp-4); }
body.tight .dknewhead { gap: var(--sp-4); flex-wrap: wrap; }
body.tight .dknewbox > .dknewfmt { align-self: stretch; } body.tight .dknewbox > .dknewfmt button { flex: 1 1 0; }
/* Pl5 (T670): the game-over card's summary (Chronicle's .matchrow rows) and its match-log line */
body.tight .ptgosum { gap: var(--sp-3); margin-top: var(--sp-3); }
body.tight .ptgorows { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }
body.tight .ptgorows .matchrow.you { box-shadow: inset 0 0 0 1px var(--accent); }
body.tight .ptgorowb { gap: var(--sp-1); }
body.tight .placebadge.ptgop1 { background: var(--gold); } body.tight .placebadge.ptgop2 { background: #b7bcc8; } body.tight .placebadge.ptgop3 { background: #c98b5a; }
body.tight .placebadge.ptgop4 { background: #7d8494; } body.tight .placebadge.ptgop5 { background: var(--chip); }   /* pages5.js PLACE_COL */
body.tight .ptgoinlog { color: var(--ok); font-weight: var(--fw-title); }
body.tight .ptgofull { max-height: 50vh; overflow: auto; }

/* ---------- T732 part 3: the Foil control (core.js RZ.foil.control), on a deck line (Details > Foil) and in the card details ---------- */
body.tight .foilctl { display: inline-flex; align-items: center; gap: var(--sp-3); flex: none; }
body.tight .foilctl.none { padding: 0 var(--sp-4); opacity: .4; }
body.tight .foilsw { position: relative; flex: none; width: calc(var(--sp-8) - var(--sp-1)); height: calc(var(--sp-6) + var(--sp-1)); padding: 0; border: 0; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 28%, transparent); cursor: pointer; }
body.tight .foilsw::after { content: ''; position: absolute; left: var(--sp-1); top: var(--sp-1); width: calc(var(--sp-6) - var(--sp-1)); height: calc(var(--sp-6) - var(--sp-1)); border-radius: 50%; background: #fff; transition: transform .15s ease; }
body.tight .foilsw[aria-checked="true"] { background: var(--accent); }
body.tight .foilsw[aria-checked="true"]::after { transform: translateX(var(--sp-5)); }
body.tight .foilsw:disabled { opacity: .55; cursor: default; }
body.tight .foilver { display: inline-flex; align-items: center; padding: 0 var(--sp-1); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-xs); white-space: nowrap; }
body.tight .foilver.dim { opacity: .4; }
body.tight .foilname { border: 0; background: none; color: inherit; font: inherit; font-weight: var(--fw-label); padding: 0 var(--sp-1); cursor: pointer; }
body.tight .foilstep { border: 0; background: none; color: var(--text2); font-size: var(--fs-md); line-height: 1; padding: 0 var(--sp-2); cursor: pointer; }
body.tight .foilstep:disabled, body.tight .foilname:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { body.tight .foilsw::after { transition: none; } }
/* a deck line with Foil on: the control sits with the other details, after the name */
body.tight .dldet > .dlfoil { display: inline-flex; }
body.tight .dlcdnote { padding: 0 var(--sp-4) var(--sp-3); }
@media (max-width: 560px) { body.tight .dlrows.hasfoil .foilver .foilstep { display: none; } }
/* the card details: the Foil control on the "In this deck" row, and the printing tiles with their version pager */
body.tight .cdstate .cdfoil { display: inline-flex; align-items: center; gap: var(--sp-3); margin-left: auto; color: var(--text); }
body.tight .cdfoillock { display: flex; align-items: center; gap: var(--sp-2); }
body.tight .printfoil { display: block; position: relative; border-radius: var(--r-ctl); overflow: hidden; }
body.tight .printcell.sel .printfoil { outline: 3px solid var(--accent); outline-offset: 2px; }
body.tight .printver { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); font-size: var(--fs-xs); }
body.tight .printver b { flex: 1; min-width: 0; text-align: center; font-weight: var(--fw-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .printver .foilstep { border: 1px solid var(--line); border-radius: 50%; width: var(--sp-7); height: var(--sp-7); padding: 0; flex: none; }
body.tight .printdots { display: flex; justify-content: center; gap: var(--sp-2); }
body.tight .printdots i { width: var(--sp-3); height: var(--sp-3); border-radius: 50%; background: color-mix(in srgb, var(--text) 30%, transparent); }
body.tight .printdots i.on { background: var(--accent); }
body.tight .printkind { color: var(--accent); }
body.tight .printall { margin-top: var(--sp-4); }
body.tight .printfind { gap: var(--sp-2); max-width: 360px; }   /* #345: Find a set above the printings */
body.tight .printfind input { width: 100%; }
/* T760 (owner 2026-11-13, mockup GXue2E6cZMWeAo9cRwqXzh style A): the board's one-line table chat (tablechat.js lineLayer), opened by Enter.
   Over the board, centred above the bottom seats, their bubbles, the phase bar and turn buttons (linePlace sets bottom from them), in the board's ink with your gold edge */
body.tight .tcline { position: fixed; z-index: 70; left: 50%; bottom: 200px; translate: -50% 0; width: min(560px, calc(100vw - 32px)); box-sizing: border-box; display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--h-md); padding: var(--sp-2) var(--sp-5); border: 1.5px solid #e9cf8f; border-radius: var(--r-ctl); background: color-mix(in srgb, #0e141a 94%, transparent); color: #f1ece0; box-shadow: 0 8px 22px rgba(0, 0, 0, .6); }
body.tight .tcline:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, #e9cf8f 45%, transparent), 0 8px 22px rgba(0, 0, 0, .6); }
body.tight .tclwho { color: #e9cf8f; font-weight: var(--fw-title); font-size: var(--fs-sm); white-space: nowrap; }
body.tight .tcline .tclin { flex: 1 1 auto; min-width: 0; min-height: var(--h-sm); padding: 0; border: 0; background: none; color: #f1ece0; font: inherit; font-size: var(--fs-md); outline: none; box-shadow: none; }
body.tight .tcline .tclin::placeholder { color: #a9b3c2; }
body.tight .tclkeys { color: #a9b3c2; font-size: var(--fs-xs); white-space: nowrap; }
body.tight .tclkeys kbd { font: inherit; padding: 0 var(--sp-2); border: 1px solid #5d6878; border-radius: var(--r-tag); color: #dfe5ee; }
body.tight .tclerr { color: #ffb4a8; font-size: var(--fs-xs); max-width: 45%; }
@media (max-width: 520px) { body.tight .tclkeys { display: none; } }
/* T760: a chat line at a seat: the emote bubble (T423 ink, .ptwrap.ptt .ptbubble) with room for two lines of text */
body.tight .ptwrap.ptt .ptbubble.chat { width: max-content; max-width: 240px; white-space: normal; text-align: left; }
body.tight .ptbubchat { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 699px) { body.tight .ptwrap.ptt .ptbubble.chat { max-width: 180px; font-size: var(--fs-xs); } }
/* ticket #308 (owner sign-off 2026-11-17, mockup N1foZSKW33KRyYUuzaC3pm): a chat bubble you may answer is a button; its row (the chat's
   quick reactions and ↩ Reply) opens under it (over it at a bottom seat) and holds the bubble up; reactions show as a small badge at its
   start (a bubble near the screen's right edge may run past it; its start stays on the screen) */
body.tight .ptbubble.tap .ptbubtap, body.tight .ptbubble.tap .ptbubrow { pointer-events: auto; }
body.tight .ptbubtap { display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
body.tight .ptbubtap:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--sp-3); }
body.tight .ptwrap.ptt .ptbubble.chat.held { animation: none !important; opacity: 1; }
body.tight .ptbubrow { position: absolute; left: 0; top: calc(100% + var(--sp-4)); z-index: 8; width: max-content; max-width: min(360px, 92vw); white-space: normal; font-weight: normal; }
body.tight .ptwrap.ptt :is(.t-dn, .ptname.me, .up) > .ptbubble .ptbubrow { top: auto; bottom: calc(100% + var(--sp-4)); }
body.tight .ptbubrow .szrxall { max-width: min(320px, 90vw); }
body.tight .ptbubrx { order: -1; flex-shrink: 0; margin-right: var(--sp-3); display: inline-flex; gap: 2px; padding: 1px var(--sp-2); border: 1px solid var(--ring, var(--tsteel)); border-radius: var(--r-pill); background: var(--tink); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: var(--fs-sm); line-height: 1.4; white-space: nowrap; }
body.tight .ptbubrx b { margin-left: 1px; font-family: var(--font, inherit); font-size: var(--fs-xs); color: var(--ttext); }
/* T755 (WCAG 2.4.1, 2.4.7): the skip link sits off screen until the keyboard reaches it; the main landmark takes focus without a ring;
   the Explore search box shows focus as the other search boxes do */
body.tight .skiplink { position: fixed; left: var(--sp-4); top: var(--sp-2); z-index: 100; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-ctl); background: var(--accent); color: var(--onAccent); font-weight: var(--fw-label); text-decoration: none; transform: translateY(-200%); }
body.tight .skiplink:focus { transform: none; }
body.tight #app [role="main"]:focus { outline: none; }
body.tight .exsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
/* ticket #263: the Leave question of a bot game in the desktop app: one row per choice (what it does, then its button) */
body.tight .ptsavech { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
body.tight .ptsavech .btn { flex: 0 0 auto; }
@media (max-width: 560px) { body.tight .ptsavech { flex-wrap: wrap; } }

/* T755 Text size (core.js RZ.applyTextSize): the page's content grows, the shell (top bar, drawers, panels, popovers) stays at 100 % */
body.tight.tsz:not(.bare) #app .page > * { zoom: var(--tsz, 1); }
/* T730 (owner 2026-11-13, mockup UxPeccN5gJt28Ws6eXWuQp): Ask Tamiyo on the Trim panel. Two options side by side, then a thin banner with the result under it */
body.tight .trimopts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
body.tight .trimopt { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
body.tight .trimopt p { margin: 0; }
body.tight .trimtamopt, body.tight .trimtam { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .trimpanel .lab { font-size: var(--fs-xs); font-weight: var(--fw-label); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
body.tight .trimband { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-1); border: 1px solid var(--line); border-radius: var(--r-pill); }
body.tight .trimseg { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-6); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-md); cursor: pointer; }
body.tight .trimseg.on { background: var(--chip); color: var(--text); }
body.tight .trimsegtam.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
body.tight .trimtam { padding: var(--sp-6); gap: var(--sp-4); }
body.tight .trimtamhead { gap: var(--sp-5); }
body.tight .trimtake { margin: 0; padding: var(--sp-3) var(--sp-5); border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
body.tight .trimkeeps { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--chip); }
body.tight .trimmark { margin-left: var(--sp-3); }
@media (max-width: 700px) { body.tight .trimopts { grid-template-columns: 1fr; } }
/* T763: Mode as a drawer like Sealed's set: the mode's gold line symbol in the art slot, shown on phones too */
body.tight .pfdeckart.pdmodeic { display: inline-flex; align-items: center; justify-content: center; width: var(--h-xs); height: var(--h-xs); background: none; color: var(--gold); }
@media (max-width: 700px) { body.tight .pfdeck .pfdeckart.pdmodeic { display: inline-flex; width: var(--h-xs); } }
body.tight .pdmodero .pfdeckart.pdmodeic { width: auto; height: auto; }
/* T826 (owner sign-off 2026-11-18, mockup Djdk1GZKiKgKS3WU31mwP1 v6; replaces T495's banner card and T699's row): an open planned game is
   the big card (tall art at the left, four one-line rows, a gold edge and one filled gold button); a full one is a slim quiet row.
   Nothing wraps down to a 360 px phone: every text line is nowrap with an ellipsis as its last resort */
body.tight .plpcard.plpopen { flex-direction: row; gap: var(--sp-5); padding: var(--sp-4); border-color: color-mix(in srgb, var(--gold) 42%, var(--line)); }
body.tight .plpopen > .plpart { flex: none; align-self: stretch; width: calc(var(--h-lg) + var(--h-xs)); border-radius: var(--r-ctl); background-position: center; background-size: cover; background-repeat: no-repeat; }
body.tight .plpopen > .plpart.noart, body.tight .plpthumb.noart { display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, var(--panel)), var(--chip) 80%); }
body.tight .plpart.noart img, body.tight .plpthumb.noart img { width: 50%; opacity: .5; }
body.tight:not(.light) .plpart.noart img, body.tight:not(.light) .plpthumb.noart img { filter: invert(1); }
body.tight .plpcol { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; min-width: 0; }
body.tight .plpr1 { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; height: var(--h-xs); }
body.tight .plpt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-lg); font-weight: var(--fw-title); }
body.tight .plpr2, body.tight .plpr3, body.tight .plpfsub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--text2); }
body.tight .plpr3 { display: flex; align-items: center; gap: var(--sp-3); color: var(--muted); }
body.tight .plpw { color: var(--gold); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; }
/* T868: the row wraps as its last resort (the Play page's side column is narrower than the drawer: the button goes under the seats
   instead of over them); an open menu floats over the card (T869, .plpmenu) */
body.tight .plpr4 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--h-sm); margin-top: var(--sp-1); white-space: nowrap; }
body.tight .plpr4 .plppip { border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
body.tight .plpr4 > .btn, body.tight .plpr4 .plpstbtn { flex: none; }
body.tight .plpr4 > .btn.gold { padding-inline: var(--sp-6); font-weight: var(--fw-title); }
body.tight.light .plpr4 > .btn.gold { color: var(--onAccent); }   /* light gold is dark: white text keeps it readable (as Home's Play button) */
body.tight .plpmore { flex: none; display: inline-grid; place-items: center; width: var(--h-xs); height: var(--h-xs); padding: 0; border: 0; border-radius: var(--r-tag); background: none; color: var(--text2); cursor: pointer; }
body.tight .plpmore:hover, body.tight .plpmore:focus-visible, body.tight .plpmore[aria-expanded="true"] { background: var(--chip); color: var(--text); }
body.tight .plpcard.plpfull { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); background: color-mix(in srgb, var(--panel) 70%, var(--bg, var(--panel))); }
body.tight .plpthumb { flex: none; width: calc(var(--h-sm) + var(--sp-2)); height: calc(var(--h-sm) + var(--sp-2)); border-radius: var(--r-ctl); background: var(--imgbg) center / cover no-repeat; }   /* card art is never filtered (Scryfall's rule): the row is quiet by its size and tone */
body.tight .plpftxt { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; flex: 1 1 0; }
body.tight .plpft { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); color: var(--text2); }
body.tight .plpfsub { font-size: var(--fs-xs); color: var(--muted); }
body.tight .plpfull .plpw { color: inherit; font-weight: inherit; }
body.tight .plpfullchip { flex: none; display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--ok); font-size: var(--fs-sm); font-weight: var(--fw-title); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.tight .pltitle { width: 100%; height: var(--h-sm); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--chip); color: var(--text); font: inherit; font-size: var(--fs-md); }
body.tight .pltitlecnt { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .pltitlecnt.near { color: var(--gold); }
@media (max-width: 700px) {
  body.tight .plpopen > .plpart { width: calc(var(--h-md) + var(--sp-8)); }
  body.tight .plpmore { width: var(--h-sm); height: var(--h-sm); }
  body.tight .plpr1 { height: var(--h-xs); }
  body.tight .plpr4 { min-height: var(--h-md); }
  body.tight .plpr4 > .btn, body.tight .plpr4 .plpstbtn { min-height: 40px; }
  body.tight .pltitle { height: var(--h-md); font-size: var(--fs-lg); }
}
/* T777 (owner 2026-11-14): a card you own in foil shines in your collection. The wrapper takes the picture's place and bounds the foil */
body.tight .ecfoilh { display: block; position: relative; border-radius: var(--r-ctl); overflow: hidden; }
body.tight .ecrow > .ecfoilh { width: 44px; border-radius: var(--r-tag); }
@media (max-width: 700px) { body.tight .ecrow > .ecfoilh { width: 30px; } }
body.tight .ecrow > .ecfoilh > img { width: 100%; }

/* T789 v2 (owner 2026-11-15, mockup DsNsLZww2TtHSQ3Buq15ta v2): Titles & achievements' score (ring, rank, tier count), one bar per group
   fed by its achievements, search and leaf chips, and the chosen group as Tracks or By leaf (achievements.js view) */
body.tight .achscore { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-7); align-items: start; margin-top: var(--sp-6); }
body.tight .achscorel { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
body.tight .achring { position: relative; width: var(--ring); aspect-ratio: 1; display: grid; place-items: center; }
body.tight .achringsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.tight .achringin { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); max-width: 62%; text-align: center; text-wrap: balance; }
body.tight .achpts { font-size: var(--fs-2xl); font-weight: var(--fw-title); font-variant-numeric: tabular-nums; line-height: 1; }
body.tight .achrank { font-size: var(--fs-sm); font-weight: var(--fw-label); color: var(--gold); }
body.tight .achnext, body.tight .achtiers { font-size: var(--fs-xs); color: var(--muted); }
body.tight .achnext { max-width: 96px; white-space: normal; line-height: 1.25; }
body.tight .achgbars { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
body.tight .achgbar { display: flex; align-items: center; gap: var(--sp-5); width: 100%; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
body.tight .achgbar:hover, body.tight .achgbar.on { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
body.tight .achgbar:focus-visible, body.tight .achlchip:focus-visible, body.tight .achcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .achgbody { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; min-width: 0; }
body.tight .achgtop { display: flex; align-items: baseline; gap: var(--sp-4); min-width: 0; }
body.tight .achgpts { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
body.tight .achbar { display: block; height: 4px; border-radius: var(--r-pill); background: var(--chip); overflow: hidden; }
body.tight .achbar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 60%, #6e3418), var(--gold)); }
body.tight .achfeed { display: flex; flex-wrap: wrap; gap: var(--sp-1); line-height: 0; }
body.tight .achtools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
body.tight .achsearch { display: flex; align-items: center; gap: var(--sp-3); flex: 1 1 220px; max-width: 320px; min-height: var(--h-sm); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); color: var(--muted); }
body.tight .achsearch input { flex: 1 1 auto; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); outline: none; }
body.tight .achlchips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .achlchip { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-xs); padding: 0 var(--sp-5) 0 var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--text2); font-size: var(--fs-xs); font-weight: var(--fw-label); cursor: pointer; font-variant-numeric: tabular-nums; }
body.tight .achlchip[aria-pressed="true"] { border-color: var(--gold); color: var(--text); }
body.tight .achlist { display: flex; flex-direction: column; gap: var(--sp-5); margin-top: var(--sp-6); }
body.tight .achlisth { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
body.tight .achlistt { margin: 0; font-size: var(--fs-lg); }
body.tight .achlisth > :last-child { margin-left: auto; }
body.tight .achlsec { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .achlsech { display: flex; align-items: center; gap: var(--sp-3); margin: 0; }
body.tight .achcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-5); }
body.tight .achcard { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--card); color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
body.tight .achcard:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
body.tight .achcardt { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
body.tight .achcardt > b { font-size: var(--fs-sm); color: var(--text); }
body.tight .achcardp { color: var(--gold); font-weight: var(--fw-title); }
/* T820 (owner 2026-11-16): a group folds open under its own bar (achievements.js groupBody); the search and leaf results sit under the tools */
body.tight .achgfold { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .achgfold.open > .achgbar { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
body.tight .achgopen { container-type: inline-size; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-2) 0 var(--sp-5) var(--sp-5); border-left: 2px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
body.tight .achgopen .achtracks { margin-top: 0; }
@container (max-width: 1000px) { body.tight .achgopen .achtracks { grid-template-columns: minmax(0, 1fr); } }
body.tight .achlist[hidden] { display: none; }
@media (max-width: 700px) {
  body.tight .achscore { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  body.tight .achsearch { max-width: none; }
  body.tight .achcards { grid-template-columns: minmax(0, 1fr); }
}
body.tight .frrank { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-label); color: var(--gold); }   /* T789 v2: a friend's rank */

/* ---------- T813 Limited guides (owner sign-off 2026-11-16, mockup 9wSgSb52VQaWdLBp3yXzGm v10; limguide.js) ---------- */
/* the guide: a dialog on desktop and tablet, the bottom sheet (RZ.sheet) on a phone */
@media (min-width: 701px) { body.tight .rzsheet.lgsheet { top: 50%; bottom: auto; width: 520px; max-width: calc(100vw - 32px); transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: var(--r-box); padding: var(--sp-7) var(--sp-7); }
  body.tight .rzsheet.lgsheet .rzsheetgrab { display: none; } }
body.tight .lgbody { gap: var(--sp-6); }
body.tight .lghead .lgtitle { margin: 0; font-size: var(--fs-2xl); font-weight: var(--fw-title); }
body.tight .lgintro { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }
body.tight .lgsteps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-5); }
body.tight .lgstep { display: grid; grid-template-columns: var(--h-sm) 88px 1fr; gap: var(--sp-5); align-items: center; }
body.tight .lgwords .lgstep { grid-template-columns: 112px 1fr; align-items: baseline; }
body.tight .lgico { width: var(--h-sm); height: var(--h-sm); border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.tight .lgico svg { width: 56%; height: 56%; }   /* 20 px in the 36 px tile, 16 px in the phone's 28 px */
body.tight .lgnum { font-size: var(--fs-xl); font-weight: var(--fw-title); color: var(--accent); }
body.tight .lgwords .lgnum { font-size: var(--fs-lg); }
body.tight .lgtext { font-size: var(--fs-md); line-height: 1.45; }
body.tight .lgmore { font-size: var(--fs-md); color: var(--muted); }
body.tight .lgmore summary { cursor: pointer; color: var(--text); }
body.tight .lgmore p { margin: var(--sp-4) 0 0; line-height: 1.5; }
body.tight .lgfoot { margin: 0; }
body.tight .lgline { border-top: 1px solid var(--line); padding-top: var(--sp-5); }
@media (max-width: 700px) {
  body.tight .lgbody { gap: var(--sp-5); }
  body.tight .lghead .lgtitle { font-size: var(--fs-xl); }
  body.tight .lgstep { grid-template-columns: var(--h-xs) 72px 1fr; gap: var(--sp-4); }
  body.tight .lgwords .lgstep { grid-template-columns: 96px 1fr; }
  body.tight .lgico { width: var(--h-xs); height: var(--h-xs); }
  body.tight .lgnum { font-size: var(--fs-lg); }
  body.tight .lgtext, body.tight .lgintro { font-size: var(--fs-sm); }
  body.tight .lgact .btn { min-height: var(--h-md); }
  body.tight .lgline { flex-wrap: wrap; }
}
/* the build checklist in the Your deck panel: a row turns green on target */
body.tight .lgcheck { padding: var(--sp-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.tight .lggrid { display: grid; grid-template-columns: 1fr auto; row-gap: var(--sp-3); column-gap: var(--sp-5); font-size: var(--fs-sm); align-items: center; }
body.tight .lgaim b { color: var(--text); }
body.tight .lgok, body.tight .lgaim.lgok b { color: color-mix(in srgb, var(--ok) 70%, var(--text)); }
body.tight .lgi { cursor: pointer; background: transparent; padding: 0; }
/* the first-draft tip: the header row's free width; on a phone above the pack */
body.tight .lgtip { flex: 1 1 auto; min-width: 0; min-height: var(--h-xs); padding: 0 var(--sp-2) 0 var(--sp-5); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: var(--fs-sm); }
body.tight .lgtip b { color: var(--accent); }
body.tight .lgtip .lglink { font-weight: var(--fw-label); white-space: nowrap; }
body.tight .lgtip.phone { padding: var(--sp-4) var(--sp-2) var(--sp-4) var(--sp-5); line-height: 1.4; align-items: flex-start; }

/* ticket #305 (owner sign-off 2026-11-18, mockup LusEtx4ZL2R4WsuBnnAXVf): kind tiles on a big board. The bar under a tile splits its creatures by
   state; one summary line says who blocks what; the quiet waiting line counts seconds. */
body.tight .ptkbar { position: absolute; left: 2px; right: 2px; bottom: 2px; height: 4px; display: flex; gap: 0; border-radius: 6px; overflow: hidden; z-index: 3; pointer-events: none; box-shadow: 0 0 0 1px rgba(9, 13, 18, .7); }
body.tight .ptkbar i { display: block; min-width: 2px; flex-grow: var(--n, 1); }
body.tight .ptkbar .kbl { background: #b18cff; }
body.tight .ptkbar .krd { background: #6fd59b; }
body.tight .ptkbar .ktp { background: #7a7790; }
body.tight .ptkbar .kat { background: #ff8a4c; }
body.tight .ptbsum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); color: #e8e6f0; padding: var(--sp-2) var(--sp-3); }
body.tight .ptbsum b { font-weight: 600; }
body.tight .ptbsumc { background: rgba(43, 22, 32, .85); border: 1px solid #7d4358; border-radius: 999px; padding: 0 var(--sp-3); white-space: nowrap; }
body.tight .ptidlesec { font-variant-numeric: tabular-nums; }
body.tight .ptpickq { display: inline-flex; gap: var(--sp-2); margin-left: var(--sp-3); }
body.tight .ptpickqb { border: 1px solid var(--line, #5a5780); border-radius: 999px; padding: 0 var(--sp-4); background: transparent; color: inherit; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
body.tight .ptpickqb.on { background: #b18cff; border-color: #b18cff; color: #1b1530; font-weight: 600; }
/* ---------- T825 streamer mode (owner sign-off 2026-11-17, mockup 1Qyy6o7s2RPGrXbNW9rnDU boards 1-3) ---------- */
body.tight .streampill { display: inline-flex; align-items: center; gap: var(--sp-4); min-height: var(--h-xs); padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--bad) 55%, transparent);
  background: color-mix(in srgb, var(--bad) 16%, var(--panel)); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-title); cursor: pointer; white-space: nowrap; }
body.tight .streampill:hover, body.tight .streampill:focus-visible { background: color-mix(in srgb, var(--bad) 26%, var(--panel)); }
body.tight .streamdot { width: var(--sp-4); height: var(--sp-4); border-radius: var(--r-pill); background: var(--bad); flex: none; }
@media (max-width: 700px) { body.tight .streampill { padding: 0 var(--sp-4); } body.tight .streamlbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
body.tight .streamsec { display: flex; flex-direction: column; gap: var(--sp-4); }
body.tight .streamsw { display: inline-flex; align-items: center; gap: var(--sp-4); }
body.tight .streamdots { display: flex; align-items: center; min-height: var(--h-sm); padding: 0 var(--sp-5); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--muted); letter-spacing: .1em; }
body.tight .streamshare { padding-bottom: var(--sp-4); }
body.tight .szveil { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-7) var(--sp-6); text-align: center; }
body.tight .szveil > .uico { color: var(--muted); }
body.tight .szstreamreq { gap: var(--sp-5); align-items: center; padding: var(--sp-4) var(--sp-5); }
body.tight .szstreamreq > .uico { color: var(--muted); }

/* T840 the pod decklists page (poddecks.js; mockup 5ChiiABmtYfA284zP71xLS v9): a panel under the top bar, left of the Play drawer when it
   is open on a wide screen; one column per deck, each scrolling on its own without a scrollbar, its bottom fading into the panel while
   there is more (T843's stack fade). Tablets fit two columns and swipe sideways; a phone shows one, with the seat chips. */
body.tight .pdkpage { position: fixed; left: 0; right: 0; top: var(--pdktop, var(--topbar)); bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5) max(var(--sp-6), env(safe-area-inset-right, 0px)) var(--sp-5) max(var(--sp-6), env(safe-area-inset-left, 0px)); background: var(--bg); box-sizing: border-box; }
body.tight .pdkpage.besidepd { right: 400px; }
body.tight .pdkhead { display: flex; align-items: flex-start; gap: var(--sp-4); }
body.tight .pdkhead h2 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-title); }
body.tight .pdkclose { margin-left: auto; flex: none; }
body.tight .pdkchips { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; flex: none; }
body.tight .pdkcols { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: var(--sp-4); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.tight .pdkcols::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { body.tight .pdkcols { grid-auto-columns: minmax(190px, 1fr); } }
body.tight .pdkpage.ph .pdkcols { grid-auto-columns: 100%; }
body.tight .pdkpage.ph { padding-bottom: calc(var(--h-lg) + var(--sp-8)); }   /* the drawer's foot below it */
body.tight .pdkcol { --pdkpanel: var(--card); position: relative; min-width: 0; max-height: 100%; align-self: start; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start;
  background: var(--pdkpanel); border: 1px solid var(--line); border-radius: var(--r-box); }
body.tight .pdkcol.focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
body.tight .pdkcs { overflow-x: hidden; overflow-y: auto; max-height: 100%; overscroll-behavior: contain; scrollbar-width: none; }
body.tight .pdkcs::-webkit-scrollbar { display: none; }
body.tight .pdkcs > .pdban { border-radius: 0; border: 0; }
body.tight .pdkcs > .pdban .pdbanart { border-radius: 0; }
body.tight .pdkcs > .pdban .pdbanbody { padding: var(--sp-3) var(--sp-4) 0; }
body.tight .pdkcs > .pdban + .pdkhd { padding-top: var(--sp-2); }
body.tight .pdkfade { position: absolute; left: 0; right: 0; bottom: 0; height: 3em; pointer-events: none; opacity: 0; transition: opacity .15s ease;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--pdkpanel) 96%, transparent)); }
body.tight .pdkcol.more .pdkfade { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body.tight .pdkfade { transition: none; } }
body.tight .pdkhd { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
body.tight .pdktags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
body.tight .pdkpill { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-strong); border-radius: var(--r-pill); padding: 2px var(--sp-3); white-space: nowrap; }
body.tight .pdkpill.ok, body.tight .pdkpill.lock { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent); }
body.tight .pdkpill.lock { background: color-mix(in srgb, var(--ok) 8%, transparent); }
body.tight .pdkpill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 60%, transparent); }
body.tight .pdkpill.live { color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent); }
body.tight .pdkpill.upd { color: var(--bg); background: var(--gold); }
body.tight .pdkcurve { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
body.tight .pdkcurve summary { display: flex; align-items: baseline; gap: var(--sp-2); cursor: pointer; list-style: none; font-size: var(--fs-sm); }
body.tight .pdkcurve summary::-webkit-details-marker { display: none; }
body.tight .pdkcurve summary .chev { display: inline-block; transition: transform .15s; color: var(--muted); }
body.tight .pdkcurve[open] summary .chev { transform: rotate(90deg); }
body.tight .pdkcurve summary .muted { font-size: var(--fs-xs); }
body.tight .pdkcurveb { margin-top: var(--sp-3); }
body.tight .pdkgrp { padding: var(--sp-2) var(--sp-4); }
body.tight .pdkgrp h4 { margin: var(--sp-2) 0 var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-strong); color: var(--text2); }
body.tight .pdkgrp ul { list-style: none; margin: 0; padding: 0; }
body.tight .pdkrow { display: flex; align-items: center; gap: var(--sp-2); padding: 2px var(--sp-1); border-top: 1px solid var(--line); font-size: var(--fs-sm); cursor: default; }
body.tight .pdkrow:hover, body.tight .pdkrow:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: none; }
body.tight .pdkn { color: var(--muted); min-width: 1.6em; font-variant-numeric: tabular-nums; }
body.tight .pdknm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tight .pdkcost { flex: none; }
body.tight .pdkwait { padding: var(--sp-6) 0; }
body.tight .pddrawer.phone.pdmini { height: auto; }   /* the drawer folded to its foot beside the decklists page */
body.tight .pdminigrab { width: 100%; background: none; border: 0; }
/* ---------- T825 part 2: Join my table (streamq.js; mockup 1Qyy6o7s2RPGrXbNW9rnDU boards 3, 5, 6) ---------- */
body.tight .sqhead .pftitle { margin: 0; }
body.tight .sqplace { font-size: var(--fs-lg); }
body.tight .sqseat { min-width: 0; }
body.tight .sqqueue .sqrow { padding: var(--sp-2) 0; border-top: 1px solid var(--line); min-width: 0; }
body.tight .sqqueue .sqn { min-width: var(--sp-6); text-align: center; color: var(--text2); font-size: var(--fs-sm); }
body.tight .sqqueue.box { padding: var(--sp-3) var(--sp-4); }
/* T846 (owner 2026-11-19, mockup Wu91kJ8hy1kPuqkcbYvQ6F v6): Chat off. The chat-off mark has the no-mic mark's look (.lvmut) and sits on
   the portrait's lower left (the no-mic mark keeps its corner). Mic is a split button: the toggle and its ▾ (the microphone choice)
   joined into one control; in a column the ▾ sits under the Mic. The lobby's one communication button unfolds an opaque panel below it. */
body.tight .chatoffmark { position: absolute; left: -4px; bottom: -4px; width: 18px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--inset); border: 1px solid var(--line); color: var(--bad); z-index: 2; }
body.tight .chatoffmark.ptchatoff { left: calc(20px + var(--av) * .02); top: calc(20px + var(--av) * .76); bottom: auto; z-index: 37; width: 24px; }
body.tight .lvsplit { display: inline-flex; flex: none; }
body.tight .lvsplit > .vvbtn#lvmic { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.tight .ptavw > .vvbar .lvsplit > .lvcaret, body.tight .lvcommpanel .lvsplit > .lvcaret { width: 22px; border-left-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.tight .ptpswitch > .ptavw > .vvbar .lvsplit, body.tight .lvcommpanel .lvsplit { flex-direction: column; }
body.tight .ptpswitch > .ptavw > .vvbar .lvsplit > .vvbtn#lvmic, body.tight .lvcommpanel .lvsplit > .vvbtn#lvmic { border-radius: var(--r-box) var(--r-box) 0 0; }
body.tight .ptpswitch > .ptavw > .vvbar .lvsplit > .lvcaret, body.tight .lvcommpanel .lvsplit > .lvcaret { width: var(--avb, 44px); height: 28px; border-left-width: 1px; border-top-width: 0; border-radius: 0 0 var(--r-box) var(--r-box); }
body.tight .vvbtn.lvcaret.open { color: var(--tgold2); }
body.tight .pttbl.ptpod .pttools:has(.ptavw.open > .vvbar > .lvsplit + .vvbtn + .vvbtn) .ptcbpill { right: calc(100% + 8px + 3 * var(--avb) + 22px + 3 * var(--sp-2) + 8px); }   /* Mic ▾, Voices, Chat */
body.tight .pttbl.ptpod .pttools:has(.ptavw.open > .vvbar > .lvsplit + .vvbtn + .vvbtn + .vvbtn) .ptcbpill { right: calc(100% + 8px + 4 * var(--avb) + 22px + 4 * var(--sp-2) + 8px); }   /* and Camera */
body.tight .lvcommw { position: relative; display: inline-flex; flex: none; --vvon: #5fd08a; --vvoff: #e0605a; }   /* the board's on / off colours (.ptwrap.ptt) in the lobby too */
body.tight .lvcommbtn { width: 40px; height: var(--h-md); box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-box); cursor: pointer;
  border: 1px solid var(--line); background: var(--card); }
body.tight .lvcommbtn.on { color: var(--vvon); } body.tight .lvcommbtn.off { color: var(--vvoff); }
body.tight .lvcommbtn.open { border-color: var(--tgold2, var(--accent)); }
body.tight .lvcommbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.tight .lvcommpanel { position: absolute; top: calc(100% + var(--sp-3)); left: 50%; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3);
  border-radius: var(--r-box); border: 1px solid var(--line); background: var(--bar, #16141f); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); --avb: var(--h-md); }
body.tight .lvcommpanel .vvbtn { box-sizing: border-box; flex: none; flex-direction: row; gap: 0; width: var(--avb); height: var(--avb); min-height: 0; padding: 0; border-radius: var(--r-box); background: var(--inset); }
body.tight .lvcommpanel .vvbtn.off { background: color-mix(in srgb, var(--vvoff) 14%, var(--inset)); }
body.tight .lvcommpanel .vvbl, body.tight .lvcommpanel .vvlvl { display: none; }
body.tight .lvcommw > .vvpanel { position: absolute; top: calc(100% + var(--sp-3)); left: calc(50% + var(--h-md) / 2 + var(--sp-5)); z-index: 95; width: min(320px, calc(100vw - 120px)); }
/* T846: a phone 1v1 with no call: the Chat button in the column's top row (a .pttool, its state in the icon's colour) */
body.tight .pttool.ptchat .vvbl { display: none; }
body.tight .pttool.ptchat.on { color: var(--vvon); }
body.tight .pttool.ptchat.off { color: var(--vvoff); }
body.tight .cbrenin { min-height: var(--h-sm); padding: 0 var(--sp-4); font-size: var(--fs-2xl); font-weight: var(--fw-title); width: min(100%, 360px); }
/* T946: the confirm bar of a pick of two cards: both chosen cards, then the button */
body.tight .draftconf2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--panel); }
body.tight .draftconf2cards { min-height: var(--h-lg); }
body.tight .draftconf2cards img { height: var(--h-lg); aspect-ratio: 63 / 88; object-fit: cover; border-radius: var(--r-tag); }
body.tight .draftconf2 .draftconfq { flex: 1 1 140px; min-width: 0; }

/* #366 (mockup t366 signed off 2026-11-28): the Set stickers button on a sticker card's line (gold, a soft pulse until the deck has its
   10 sheets; then quiet) and the pick of 10 sheets (RZ.stickerPick: a centred dialog above 700 px, the bottom sheet on a phone) */
body.tight .dlrow > .stkbtn, body.tight .stkbtn { position: relative; background: var(--gold); border-color: var(--gold); color: var(--onAccent); font-weight: var(--fw-label); }
/* the pulse is a gold ring that grows and fades: transform and opacity only (T697), never on a set button, a battery saver or reduced motion */
body.tight .stkbtn::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 var(--sp-2) color-mix(in srgb, var(--gold) 55%, transparent); opacity: 0; pointer-events: none; animation: stkpulse 2.2s ease-out infinite; }
body.tight .stkbtn.done { background: transparent; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--gold); }
body.tight .stkbtn.done::after, body.tight .stkbtn.still::after, body.tight.rzsave .stkbtn::after { animation: none; display: none; }   /* still: RZ.still() (Motion Off, Battery saver, reduced motion) */
@media (prefers-reduced-motion: reduce) { body.tight .stkbtn::after { animation: none; display: none; } }
body.tight .rzsheet.stksheet { max-height: 92vh; }
@media (min-width: 701px) { body.tight .rzsheet.stksheet { top: 50%; bottom: auto; width: 960px; max-width: calc(100vw - 32px); transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: var(--r-box); }
  body.tight .rzsheet.stksheet .rzsheetgrab { display: none; } }
body.tight .stkpick { display: flex; flex-direction: column; gap: var(--sp-4); min-height: 0; }
body.tight .stktools { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
body.tight .stktools input { flex: 1 1 180px; min-width: 0; }
body.tight .stkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }
body.tight .stksh { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); text-align: left; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-8); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-box); color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
body.tight .stksh:hover:not([disabled]) { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
body.tight .stksh.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--panel)); }
body.tight .stksh[disabled] { opacity: .55; cursor: default; }
body.tight .stkck { position: absolute; left: var(--sp-4); top: var(--sp-4); width: var(--sp-6); height: var(--sp-6); border-radius: var(--r-tag); border: 1.5px solid var(--muted); display: grid; place-items: center; color: var(--onAccent); }
body.tight .stksh.on .stkck { background: var(--gold); border-color: var(--gold); }
body.tight .stkwords { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
body.tight .stkwords > span { background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: var(--r-tag); padding: 0 var(--sp-2); font-size: var(--fs-xs); }
body.tight .stkwords i { font-style: normal; font-weight: var(--fw-display); color: var(--gold); margin-left: var(--sp-1); }
body.tight .stkab { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: var(--fs-xs); }
body.tight .stktk { display: inline-block; border-radius: var(--r-tag); background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-weight: var(--fw-label); padding: 0 var(--sp-1); }
body.tight .stkfoot { position: sticky; bottom: calc(-1 * (var(--sp-6) + env(safe-area-inset-bottom, 0px))); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: calc(-1 * (var(--sp-6) + env(safe-area-inset-bottom, 0px))); padding: var(--sp-3) 0 calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line); }
body.tight .stkcnt { font-weight: var(--fw-display); }
body.tight .stkcnt.full { color: var(--gold); }
/* ---------- the player page (T963, mockup v3 signed off 2026-11-28; playerpage.js): My Tale > Overview and another player's page.
   Banner with the picture over its lower left corner, name and facts beside it, the apprenticeship strip, About and Links side by side,
   pinned decks, the Favour line. ---------- */
body.tight .ppage { display: flex; flex-direction: column; gap: var(--sp-6); min-width: 0; }
body.tight .pphead { display: flex; flex-direction: column; min-width: 0; }
body.tight .ppban { position: relative; aspect-ratio: 33 / 10; max-width: 100%; max-height: 280px; border-radius: var(--r-box); overflow: hidden; background: var(--imgbg); }
body.tight .ppbanimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
body.tight .ppbanlogo { position: absolute; left: 3.5%; top: 9%; height: 36%; width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
body.tight .ppwho { display: flex; align-items: flex-start; gap: var(--sp-4) var(--sp-6); padding: var(--sp-4) var(--sp-6) 0; position: relative; flex-wrap: wrap; }
body.tight .ppav { flex: none; border-radius: 50%; background: var(--card); padding: var(--sp-2); line-height: 0; margin-top: calc(-1 * var(--sp-8) * 2 - var(--sp-4)); }   /* only the picture overlaps the banner; name and facts sit under it */
body.tight .ppname { padding-top: var(--sp-2); }
body.tight .ppname .frtitle { margin: 0; }
body.tight .ppacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-left: auto; padding-top: var(--sp-2); }
body.tight .ppacts .fracts { margin: 0; }
body.tight .ppfacts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
body.tight .ppfacts b { color: var(--text); font-weight: var(--fw-title); }
body.tight .ppeye.on { color: var(--accent); border-color: var(--accent); }
body.tight .ppeyebar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-ctl); background: var(--secBg); color: var(--text); }
body.tight .ppappr { display: flex; align-items: center; gap: var(--sp-6); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-box); border: 1px solid var(--sec); background: var(--secBg); }
body.tight .ppapprface { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 1px solid var(--sec); }
body.tight .ppapprface img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
body.tight .ppapprk { font-size: var(--fs-xs); font-weight: var(--fw-title); letter-spacing: .08em; text-transform: uppercase; color: var(--sec); }
body.tight .ppapprnext { font-size: var(--fs-md); }
body.tight .ppapprbar { height: 4px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; max-width: 360px; }
body.tight .ppapprbar > i { display: block; height: 100%; background: var(--sec); }
body.tight .ppgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-7); }
body.tight .ppgrid.one { grid-template-columns: minmax(0, 1fr); }
body.tight .ppbh { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-title); color: var(--muted); }
body.tight .ppabouttext { margin: 0; white-space: pre-line; overflow-wrap: anywhere; max-width: 65ch; color: var(--text2); }
body.tight .pplinkrow { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
body.tight .pplink { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); padding: 0 var(--sp-5) 0 var(--sp-2); border-radius: var(--r-pill); background: var(--chip); border: 1px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; }
body.tight .pplink:hover { border-color: var(--accent); }
body.tight .lkmark { display: inline-flex; flex: none; }
body.tight .lkmark svg { border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
body.tight .pplinkedit input { min-height: var(--h-sm); }
body.tight .pppinrow { align-items: stretch; }
body.tight .pppick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); min-height: calc(var(--sp-8) * 5); border: 1px dashed var(--line); border-radius: var(--r-box); background: transparent; color: var(--muted); }
body.tight .pppick:hover { color: var(--accent); border-color: var(--accent); }
body.tight .ppfav { display: flex; align-items: center; gap: var(--sp-4); width: 100%; min-height: var(--h-md); padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--text2); text-align: left; }
body.tight .ppfavclose { align-self: flex-start; }
body.tight .ppmodal { position: fixed; z-index: 80; }
body.tight .ppedit { display: flex; flex-direction: column; gap: var(--sp-6); }
body.tight .ppedrow { display: flex; flex-direction: column; gap: var(--sp-3); border: 0; margin: 0; padding: 0; min-width: 0; }
body.tight .ppedrow textarea { min-height: calc(var(--sp-8) * 3); padding: var(--sp-4) var(--sp-5); resize: vertical; }
body.tight .ppcount { align-self: flex-end; }
body.tight .ppchk { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--h-sm); }
body.tight .ppage.visitor .frtitle { font-size: var(--fs-2xl); }
@media (max-width: 700px) {
  body.tight .ppban { aspect-ratio: 5 / 2; }
  body.tight .ppwho { flex-direction: column; align-items: flex-start; padding: 0 var(--sp-4); gap: var(--sp-4); }
  body.tight .ppav { margin-top: calc(-1 * var(--sp-8) * 2); }
  body.tight .ppacts { margin-left: 0; }
  body.tight .ppgrid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  body.tight .ppappr { flex-wrap: wrap; gap: var(--sp-5); padding: var(--sp-5); }
  body.tight .ppappr > .btn { width: 100%; }
}

/* ---------- T985 (owner 2026-11-29, mockup RV7UQXhzG8grkwTm6bTmt8): My Tale's menu folds to icons (profile.js foldBtn, .prffolded).
   Computers: the 220 px side menu becomes a strip of icon buttons. Tablets: the chips become one row of icons, the open section keeps
   its name. The fold button sits next to "My Tale" and at the end of the chips. Phones have no menu, so nothing changes there ---------- */
body.tight .prfnavfold { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--h-sm); height: var(--h-sm); padding: 0; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text2); }
body.tight .prfnavfold:hover, body.tight .prfnavfold:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
body.tight .prfchip.prffold { margin-left: auto; color: var(--text2); }
body.tight .prfchip.prffold .uico { color: var(--text2); }
body.tight .prffolded .prfnav { flex-basis: var(--h-md); }
body.tight .prffolded .prfnavhead { justify-content: center; }
body.tight .prffolded .prfnavbtn { position: relative; justify-content: center; width: var(--h-md); padding: 0; }
body.tight .prffolded .prfnavbtn .prfnavlbl, body.tight .prffolded .prfchip:not(.on) .prfnavlbl { display: none; }
body.tight .prffolded .prfnavbtn .navdot, body.tight .prffolded .prfchip:not(.on) .navdot { position: absolute; top: 4px; right: 4px; margin: 0; }
body.tight .prffolded .prfchip:not(.on) { position: relative; justify-content: center; width: 40px; padding: 0; }
body.tight .prffolded .prfchip.prffold { width: 40px; padding: 0; justify-content: center; }

/* ---------- T987: the phone landscape board, 1 vs 1 (design 3, signed off 2026-11-29; docs/plans/2026-11-29-phone-landscape.md) ----------
   Seven bands, top to bottom: the top bar, their back row and creatures, the middle line, your creatures and back row, the hand bar.
   Every size comes from PC.landGeom as --lb-* (the design's numbers scaled with the screen's height). No drawer, no side band; nothing
   wraps and no two cards share a place: a full row slides sideways. */
body.tight .pttbl.ptland { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: var(--lb-top) minmax(0, 1fr) var(--lb-hand); padding: 0; }
body.tight .ptwrap.ptt.hasked .pttbl.ptland { padding-bottom: 0; }
body.tight .pttbl.ptland > .ptplate.opp { grid-area: 1 / 1; margin: 0; padding: 0 var(--sp-4); min-height: 0; height: var(--lb-top); border-radius: 0; background: none; box-shadow: none; }
body.tight .pttbl.ptland > .pttopline.ptphtop { grid-area: 1 / 3; min-height: 0; height: var(--lb-top); justify-content: flex-end; }
body.tight .pttbl.ptland > .ptfields { grid-area: 2 / 1 / 3 / 4; display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; }
body.tight .pttbl.ptland .ptfhalf { flex: 0 0 auto; flex-direction: column; gap: 0; padding: 0 var(--lb-pad); height: calc(var(--lb-back) + var(--lb-cre) + 2px); box-sizing: border-box; }
body.tight .pttbl.ptland .ptlmid { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
body.tight .pttbl.ptland .ptlback { flex: 0 0 auto; height: var(--lb-back); border-block: 1px solid transparent; box-sizing: content-box; display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
body.tight .pttbl.ptland .ptlcre { flex: 0 0 auto; height: var(--lb-cre); display: flex; align-items: center; justify-content: center; min-width: 0; }
body.tight .pttbl.ptcol.ptland .ptrowt, body.tight .pttbl.ptcol.ptland .ptrowt.cre.opp { flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: var(--lb-gap); min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body.tight .pttbl.ptland .ptrowt::-webkit-scrollbar { display: none; }
body.tight .pttbl.ptland > .ptbot { grid-area: 3 / 1 / 4 / 4; flex-direction: row; align-items: stretch; height: var(--lb-hand); min-width: 0; }
body.tight .pttbl.ptland > .ptbot > .ptplate.me { flex: 0 0 auto; margin: 0; padding: 0 var(--sp-4); min-height: 0; border-radius: 0; background: none; box-shadow: none; }
body.tight .pttbl.ptland > .ptbot > .ptbay { flex: 1 1 0; min-width: 0; height: auto; }
body.tight .pttbl.ptland > .ptbot > .ptdock { flex: 0 0 auto; padding: 0 var(--sp-4); }
body.tight .pttbl.ptland { --av: var(--lb-top); --libw: var(--lb-bw); }
body.tight .pttbl.ptland > .ptfields { gap: 0; }
/* a creature: the design's card shape (61 x 86), all the same size; tapped tilts inside its slot */
body.tight .pttbl.ptland .ptlcre .ptslot.pttl { --tw: var(--lb-crw); }   /* the row's own width (PC.landRow); the tile's tw class is the tier at or above it, for the small-tile rules */
body.tight .pttbl.ptland .ptlcre .ptslot.pttl, body.tight .pttbl.ptland .ptlcre .ptslot.pttl.tapped { height: calc(var(--tw) * 1.41); }
body.tight .pttbl.ptland .ptlcre .ptslot.pttl.tapped { --ttap: rotate(8deg) scale(.9); }
/* a back-row card stands in its own slot; tapped turns a quarter inside it */
body.tight .pttbl.ptland .ptlback .ptslot.pttl { --tw: var(--lb-bw); }
body.tight .pttbl.ptland .ptlback .ptrowt { gap: 0; }
body.tight .pttbl.ptland .ptlback .ptslot.pttl, body.tight .pttbl.ptland .ptlback .ptslot.pttl.tapped { width: var(--lb-bslot); height: var(--lb-back); }
body.tight .pttbl.ptland .ptlback .ptslot.pttl .ptc { width: var(--lb-bw); }
body.tight .pttbl.ptland .ptlback .ptslot.pttl.tapped { --ttap: rotate(90deg); }
body.tight .pttbl.ptland .ptrowt.land .ptslot.pttl.over { margin-left: 0; }
/* the two bars, first form (PR 1): the column's own seat rows, steps and buttons at sizes that fit their bar; PR 4 gives the bars their final parts */
body.tight .ptwrap.ptt.ptlandw { --hcwb: calc(var(--lb-cw) * 1.25); }
body.tight .pttbl.ptland .ptplate { align-items: center; gap: var(--sp-3); }
body.tight .pttbl.ptland .ptplate .ptmedwrap { --av: calc(var(--lb-top) - 6px); width: var(--lb-top); }
body.tight .pttbl.ptland .ptplate .ptmed { left: 3px; top: 3px; }
body.tight .pttbl.ptland .ptseatav { align-items: center; gap: var(--sp-3); }
body.tight .pttbl.ptland .ptseatav > .ptlifeb { position: static; translate: none; }
body.tight .pttbl.ptland .ptseatn .ptplt, body.tight .pttbl.ptland .ptseatn .ptpribs { display: none; }
body.tight .pttbl.ptland > .ptbot > .ptplate.me { align-self: flex-start; height: calc(var(--lb-hand) - env(safe-area-inset-bottom, 0px)); }
body.tight .pttbl.ptland > .ptbot > .ptplate.me .ptmedwrap { --av: calc(var(--lb-top) + 4px); width: calc(var(--lb-top) + 10px); }
body.tight .pttbl.ptland > .ptbot > .ptdock { min-height: 0; align-self: flex-end; justify-content: flex-end; max-width: 60%; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.tight .pttbl.ptland > .ptltop { grid-area: 1 / 2; display: flex; align-items: center; justify-content: center; min-width: 0; height: var(--lb-top); }
body.tight .pttbl.ptland > .ptltop > .ptladbar { scale: .7; }
body.tight .pttbl.ptland .ptctlsec .ptend:has(svg) { width: var(--h-lg); min-width: 0; padding: 0; gap: 0; font-size: 0; }
/* each back row opens with that side's four zones (landZones): commander, library, graveyard, exile, all one size and the same on
   both sides; a small mark says which is which (the design's 7 px words are under the app's smallest type) */
body.tight .pttbl.ptland .ptpiles, body.tight .pttbl.ptland .ptpiles.opp, body.tight .pttbl.ptland .ptpiles.me { flex-direction: row; gap: var(--sp-2); padding: 0; height: var(--lb-back); }
body.tight .pttbl.ptland .ptz4, body.tight .pttbl.ptland .ptz4:is(.me, .opp) { position: relative; inset: auto; flex: 0 0 auto; width: var(--lb-bw); height: var(--lb-back); aspect-ratio: auto; margin: 0; transform: none; border-radius: var(--r-tag); }
body.tight .pttbl.ptland .ptz4.empty { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tline) 25%, transparent); }
body.tight .pttbl.ptland .ptz4cmd .ptcmdout, body.tight .pttbl.ptland .ptz4cmd .ptcmdout:is(.n1, .n2, .fan) { position: absolute; inset: 0; transform: none; }
body.tight .pttbl.ptland .ptz4cmd .ptslot { --cw: var(--lb-bw); }
body.tight .pttbl.ptland .ptz4 .pttax, body.tight .pttbl.ptland .ptz4:is(.me, .opp) .pttax { left: auto; right: calc(-1 * var(--sp-2)); top: calc(-1 * var(--sp-2)); width: var(--sp-7); height: var(--sp-7); transform: none; }
body.tight .pttbl.ptland .ptz4 :is(.ptgraven, .ptlibn) { bottom: var(--sp-1); font-size: var(--fs-xs); }
body.tight .pttbl.ptland .ptzlab { position: absolute; z-index: 5; left: var(--sp-1); top: var(--sp-1); display: grid; place-items: center; width: var(--sp-6); height: var(--sp-6); border-radius: 50%; background: rgba(11, 16, 22, .88); color: var(--tgold, #e9cf8f); pointer-events: none; }
body.tight .pttbl.ptland .ptexile { padding: 0; border: 0; background: rgba(9, 13, 18, .35); cursor: pointer; overflow: hidden; }
body.tight .pttbl.ptland .ptexile img { width: 100%; height: 100%; display: block; object-fit: cover; }
body.tight .pttbl.ptland .ptexile .ptgraven { position: absolute; left: 0; right: 0; text-align: center; }
body.tight .pttbl.ptland .ptpass { width: calc(var(--lb-cw) * 1.7); min-width: 0; }
body.tight .pttbl.ptland .ptplate .ptseatn { flex: 0 0 auto; }
/* attackers step into the middle line, from either side; a picked attacker does the same, never further */
body.tight .pttbl.ptland .ptlcre.me .ptslot.pttl:is(.ptatt, .ptlift.ptatkpk) > .ptc { translate: 0 calc(-1 * var(--lb-step)); }
body.tight .pttbl.ptland .ptlcre.opp .ptslot.pttl.ptatt > .ptc { translate: 0 var(--lb-step); }
/* the mulligan in the middle (T986, T999) on this board: the cards as tall as the short screen allows */
body.tight .ptwrap.ptt.ptlandw .ptmull { --mmin: 80px; --mchrome: 168px; gap: var(--sp-4); }   /* the one-row hand (T999) with this board's numbers: all seven in view, as tall as the short screen leaves */
body.tight .ptwrap.ptt.ptlandw .ptmullhand { padding-block: var(--sp-2) var(--sp-5); }
body.tight .ptwrap.ptt.ptlandw .ptmullbtns .btn { flex: 0 1 168px; }
body.tight .pttbl.ptland :is(.ptlcre, .ptlback) { position: relative; }
/* a call's banner (invite, error, Tap to hear) lies over the board under the top bar: it takes no band of its own */
body.tight .pttbl.ptland > .vvslot { position: absolute; z-index: 40; left: 50%; top: var(--lb-top); translate: -50% 0; margin: 0; }
body.tight .pttbl.ptland .ptlmore { position: absolute; z-index: 30; right: 0; top: 50%; translate: 0 -50%; min-width: var(--h-xs); padding: var(--sp-1) var(--sp-3); border-radius: 999px; background: rgba(11, 16, 22, .94); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tgold, #e9cf8f) 55%, transparent); color: var(--tgold, #e9cf8f); font-size: var(--fs-sm); font-weight: 700; text-align: center; pointer-events: none; }
/* ---------- T1001 (owner 2026-11-29): the Play pill's parts are buttons of their own; the pill looks as it did ----------
   "One big button, but with separate clickable parts ... the design remains the same but the function changes." playfriend.js draws the
   pill as a group: Play (#pdbtn: the drawer), the lobbies count (#pdlobbies: the Play page on Open lobbies), the invites count
   (#pdinvites: the drawer); live.js's "N live" opens the Play page on Live games. Each part's ::before is where it takes a click (out to
   the pill's edge, 44 px tall on touch), its ::after shows hover, press and keyboard focus. --pdl / --pdr are the pill's own padding (set where the pill is). */
body.tight header.top .pdbtn.playpill { cursor: default; }
body.tight header.top .pdbtn.playpill .pdpart { position: relative; margin: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; border-top: 0; border-right: 0; border-bottom: 0; background: none; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; cursor: pointer; outline: none; }
body.tight header.top .pdbtn.playpill .pdpart.pdmain { padding-left: 0; border-left: 0; gap: var(--sp-3); }
body.tight header.top .pdbtn.playpill .pdpart::before, body.tight header.top .pdbtn.playpill .pdpart::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: calc(-1 * var(--sp-3)); }
body.tight header.top .pdbtn.playpill .pdpart::after { pointer-events: none; }
body.tight header.top .pdbtn.playpill .pdpart.pdmain::before, body.tight header.top .pdbtn.playpill .pdpart.pdmain::after { left: calc(-1 * var(--pdl)); }
body.tight header.top .pdbtn.playpill .pdpart.pdmain::after { border-top-left-radius: var(--r-pill); border-bottom-left-radius: var(--r-pill); }
body.tight header.top .pdbtn.playpill .pdpart:last-child::before, body.tight header.top .pdbtn.playpill .pdpart:last-child::after { right: calc(-1 * var(--pdr)); }
body.tight header.top .playgrp:not(.haslive) .pdbtn.playpill .pdpart:last-child::after { border-top-right-radius: var(--r-pill); border-bottom-right-radius: var(--r-pill); }
body.tight header.top .pdbtn.playpill .pdpart:hover::after { background: color-mix(in srgb, var(--text) 14%, transparent); }
body.tight header.top .pdbtn.playpill .pdpart:active::after { background: color-mix(in srgb, var(--text) 26%, transparent); }
body.tight header.top .pdbtn.playpill .pdpart:focus-visible::after { box-shadow: inset 0 0 0 2px var(--onAccent); }
body.tight header.top .playgrp .livechip.liveseg { position: relative; }
body.tight header.top .playgrp .livechip.liveseg:active { background: color-mix(in srgb, var(--text) 26%, transparent); }
body.tight header.top .playgrp .livechip.liveseg:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--onAccent); }
@media (pointer: coarse) {
  body.tight header.top .pdbtn.playpill .pdpart::before { top: calc((var(--h-sm) - var(--h-md)) / 2); bottom: calc((var(--h-sm) - var(--h-md)) / 2); }
  body.tight header.top .playgrp .livechip.liveseg::before { content: ''; position: absolute; left: 0; right: 0; top: calc((var(--h-sm) - var(--h-md)) / 2); bottom: calc((var(--h-sm) - var(--h-md)) / 2); }
}
/* the Play page: Open lobbies and Live games, two tabs where "Join a table" was (mockup ~/ce-work/mockups/t1001) */
body.tight .hptabs .seg button { display: inline-flex; align-items: center; gap: var(--sp-3); white-space: nowrap; }
body.tight .hptabn { font-weight: var(--fw-title); font-variant-numeric: tabular-nums; opacity: .8; }
body.tight .hplive { display: flex; flex-direction: column; }
body.tight .hplive .liverow { padding: var(--sp-4) var(--sp-6); min-width: 0; }
body.tight .hplive .liverow + .liverow, body.tight .hplive .livesep + .liverow { border-top: 1px solid var(--line); }
body.tight .hplive .livesep { display: none; }

/* T987 PR 3: the stack's lane. On this board the stack's folded bar IS the lane (playstack.js draws the newest item's card into it and
   leaves its placing to these rules): it stands at the right end of the two creature rows while the stack holds something (.haslane on
   the table), and the rows give it its width (PC.landGeom's creAvail), so nothing is covered. A tap opens the whole stack in the middle
   under the top bar; its bar folds it back to the lane. */
body.tight .pttbl.ptland, body.tight .pttbl.ptland > .ptfields { overflow: clip; }   /* neither the table nor its fields ever scroll: a count or a coin reaching a few px past a row's edge let the fields slide up 3 px when something in them was brought into view */
body.tight .pttbl.ptland.haslane :is(.ptlcre, .ptlmid) { padding-right: calc(var(--lb-lane) + var(--lb-gap)); box-sizing: border-box; }
body.tight .pttbl.ptland > .ptstackf.fold { z-index: 30; left: auto; right: var(--lb-pad); top: calc(var(--lb-top) + var(--lb-back) + var(--sp-2)); bottom: calc(var(--lb-hand) + var(--lb-back) + var(--sp-2)); width: var(--lb-lane); max-width: none; box-sizing: border-box; padding: 0; border-radius: var(--r-box); }
body.tight .pttbl.ptland > .ptstackf.fold .ptstackhd { height: 100%; }
body.tight .pttbl.ptland > .ptstackf.fold .ptstkttl { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-2); }
body.tight .pttbl.ptland > .ptstackf.fold :is(.ptzhint, .ptstkchev) { display: none; }
body.tight .pttbl.ptland > .ptstackf.fold .ptstackt { font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
body.tight .pttbl.ptland > .ptstackf.fold .ptstklane { order: 2; width: calc(var(--lb-lane) - var(--sp-4)); aspect-ratio: 63 / 88; border-radius: var(--r-tag); overflow: hidden; background: var(--tink); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
body.tight .pttbl.ptland > .ptstackf.fold .ptstklane img { width: 100%; height: 100%; display: block; object-fit: cover; }
body.tight .pttbl.ptland > .ptstackf:not(.fold) { z-index: 70; left: 50%; right: auto; top: calc(var(--lb-top) + var(--sp-4)); translate: -50% 0; max-height: calc(100% - var(--lb-top) - var(--sp-6)); max-width: calc(100% - var(--sp-6)); }
/* T987 PR 3: a plain question (.ptprompt.ptlask) is one element: its line lies in the table's middle line and its answers stand beside
   the turn buttons, where Pass does; while it stands, the middle line is the question's. Any other question's frame lies in the middle of
   the screen, whole, with its own eye to look at the table. */
body.tight .pttbl.ptland > .ptbot > .ptdock .ptprompt.ptlask { position: static; flex: 0 0 auto; width: auto; max-width: none; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.tight .pttbl.ptland .ptlask .ptlq { position: fixed; z-index: 31; left: var(--lb-pad); right: var(--lb-pad); top: calc(var(--lb-top) + var(--lb-back) + var(--lb-cre) + 3px); bottom: calc(var(--lb-hand) + var(--lb-back) + var(--lb-cre) + 3px);   /* the bands above and below, with their 1 px lines */
  display: block; text-align: center; font-size: var(--fs-sm); line-height: 1.4; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000, 0 0 6px #000; pointer-events: none; }
body.tight .pttbl.ptland .ptlask .ptlq > * { display: inline; }
body.tight .pttbl.ptland .ptlask .ptlq b { color: var(--tgold, #e9cf8f); }
body.tight .pttbl.ptland.haslane .ptlask .ptlq { right: calc(var(--lb-pad) + var(--lb-lane) + var(--lb-gap)); }   /* the lane is open: the line ends before it */
body.tight .pttbl.ptland:has(.ptlask) .ptlmid > * { display: none; }
body.tight .pttbl.ptland > .ptbot > .ptdock .ptprompt.ptlask .ptbtns { flex-wrap: nowrap; justify-content: flex-end; gap: var(--sp-3); margin: 0; padding: 0; }
body.tight .pttbl.ptland > .ptbot > .ptdock .ptprompt.ptlask .ptbtns .btn { min-height: var(--h-md); height: var(--h-md); white-space: nowrap; }   /* a finger's height, inside the bar on the smallest phone too */
body.tight .pttbl.ptland > .ptbot > .ptdock:has(.ptlask) .ptpassslot { display: none; }
body.tight .pttbl.ptland > .ptbot > .ptdock:has(.ptlask) { flex-direction: row; align-items: center; justify-content: flex-end; gap: var(--sp-3); height: var(--lb-hand); box-sizing: border-box; }   /* the answers and the turn buttons side by side in the bar */
body.tight .pttbl.ptland > .ptbot > .ptdock .ptprompt.pf { position: fixed; z-index: 80; left: 50%; top: 50%; translate: -50% -50%; width: min(520px, calc(100vw - var(--sp-8))); max-height: calc(100dvh - var(--sp-6)); overflow-y: auto; scrollbar-width: none; }
/* T987 PR 3: a card opened by a tap on the phone landscape board. The card stands at the left, as tall as the short screen allows; its
   name, state, notes and actions sit beside it, so nothing scrolls unless the text is long. */
body.tight .ptwrap.ptt.ptlandw > .ptsheet-bg.ptppbg { align-items: center; justify-content: center; padding: var(--sp-4); }
body.tight .ptwrap.ptt.ptlandw > .ptsheet-bg.ptppbg > .ptpp { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-6); row-gap: var(--sp-4); align-content: start; width: min(640px, 100%); max-height: 100%; border-radius: var(--r-box); border-bottom: 1px solid var(--line); }
body.tight .ptwrap.ptt.ptlandw > .ptsheet-bg.ptppbg > .ptpp > * { grid-column: 2; min-width: 0; }
body.tight .ptwrap.ptt.ptlandw > .ptsheet-bg.ptppbg > .ptpp > .ptpptop { display: contents; }
body.tight .ptwrap.ptt.ptlandw > .ptsheet-bg.ptppbg > .ptpp .ptppimg { grid-column: 1; grid-row: 1 / span 12; flex: none; align-self: start; width: calc((100dvh - 2 * var(--sp-8)) * 63 / 88); }
