/* /scorekeeper — the score keeper for a real table, dressed as Pixel Pung.

   Every token here is the game's own (mahjong.css :root and its "panel" pass,
   DESIGN.md), written out rather than imported: mahjong.css carries the whole
   table's layout at body level, and a page that loaded it would inherit the
   board. What is copied, and from where:

     colours, fonts      mahjong.css :root (--panel, --ink, --gold, --font-*)
     the panel           `.card, #home .homecard`: square corners, a double
                         frame, four gold studs, a hard 7px offset shadow
     buttons             mahjong.css `button`: Song display face spaced .045em,
                         2px frame with a 3px bottom edge that presses in
     Bak's bubble        `#home .homebaksay`: ivory, ink frame, hard shadow
     the room behind     `#homeroom`, drawn by scenery.js `showHomeRoom`

   Phone first. The person holding it is at a table with tiles in front of
   them, so every control is a 44px target. */

:root {
  --bg: #14100c; --panel: #241c14; --panel-hi: #3a2d20; --panel-lo: #1a140e;
  --ink: #f3e7cd; --ink-dim: #b8a684; --dim: #94856b;
  --gold: #d8a544; --gold-hi: #f0c765; --red: #c0392b;
  --green-fill: #26743f; --green-fill-hi: #216537;
  --pos: #6fd08f; --neg: #ef7a66; --amber: #e0a030;
  --frame: #6b5334; --frame-in: #17110b;
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC",
                  "Source Han Serif SC", "MingLiU", Georgia, "Times New Roman", serif;
  --font-ui: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "SimHei", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 15px/1.55 var(--font-ui);
  background: radial-gradient(circle at 50% 0%, #2a2018 0%, #14100c 70%) fixed;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
.zh { font-family: var(--font-display); }
.dim { color: var(--dim); font-weight: 400; }
.gold { color: var(--gold); }
.fine { color: var(--ink-dim); font-size: .84rem; margin: .4rem 0; line-height: 1.5; }
.fine.warn { color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The room behind everything (scenery.js) ──────────────────────────── */
#homeroom {
  position: fixed; left: 0; top: 0; z-index: 0;
  image-rendering: pixelated; pointer-events: none; display: none;
}
body.menuscene.homeroom #homeroom { display: block; }
/* The room is the wash: a little darkening so a panel's edge always reads. */
body.homeroom::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 50% 45%, rgba(10,8,6,.15), rgba(10,8,6,.55));
}

/* ── The bar ──────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .6rem;
  padding: calc(.45rem + var(--safe-t)) .8rem .45rem;
  background: rgba(20,16,12,.9);
  border-bottom: 2px solid var(--frame-in);
  box-shadow: 0 2px 0 var(--frame);
}
.backlink {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px;
  padding: 0 .7rem; text-decoration: none; color: var(--ink);
  background: var(--panel-hi); border: 2px solid #55432e; border-bottom-width: 3px; border-radius: 3px;
  font: 700 .78rem/1 var(--font-display); letter-spacing: .045em;
}
.backlink:hover { background: #4b3a28; }
.bartitle {
  flex: 1; text-align: center; font: 700 .95rem/1.1 var(--font-display); letter-spacing: .07em;
  color: var(--gold); text-shadow: 0 1px 0 #2a1d0f;
}
.bartitle .en { color: var(--ink); }

/* ── Panels ───────────────────────────────────────────────────────────── */
.view {
  position: relative; z-index: 2;
  max-width: 34rem; margin: 0 auto; padding: .9rem .7rem calc(3rem + var(--safe-b));
}
.card {
  position: relative; background-color: var(--panel);
  border: 3px solid var(--frame); border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--frame-in), 7px 7px 0 rgba(0,0,0,.55);
  background-image:
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
  background-size: 3px 3px;
  background-position: 3px 3px, calc(100% - 3px) 3px, 3px calc(100% - 3px), calc(100% - 3px) calc(100% - 3px);
  background-repeat: no-repeat;
  padding: 1rem 1.1rem 1.05rem; margin: 0 0 1.1rem;
}
.card.hero { box-shadow: inset 0 0 0 2px var(--frame-in), 7px 7px 0 rgba(0,0,0,.55), 0 0 90px -30px rgba(255,190,104,.35); }
.card h2 {
  font: 700 1.05rem/1.25 var(--font-display); letter-spacing: .07em; color: var(--gold);
  text-shadow: 0 1px 0 #2a1d0f; margin: 0 0 .55rem;
}
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.cardhead h2 { margin: 0; }

/* ── Buttons, the game's ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: 6px 12px; cursor: pointer; text-decoration: none;
  background: var(--panel-hi); color: var(--ink);
  border: 2px solid #55432e; border-bottom-width: 3px; border-radius: 3px;
  font: 700 .86rem/1.15 var(--font-display); letter-spacing: .045em;
}
.btn:hover:not(:disabled) { background: #4b3a28; }
.btn:active:not(:disabled) { transform: translateY(1px); border-bottom-width: 2px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.primary { background: var(--green-fill); border-color: #1e6a37; }
.btn.primary:hover:not(:disabled) { background: var(--green-fill-hi); }
.btn.ghost { background: transparent; border-color: #4a3b2a; color: var(--ink-dim); }
.btn.big { min-height: 56px; font-size: 1.02rem; padding: 8px 16px; white-space: nowrap; }
.btn.big small { display: block; font: 400 .72rem/1.2 var(--font-ui); letter-spacing: 0; color: #d9ecd9; margin-top: 2px; }
.btn.stack { flex-direction: column; gap: 0; }
.btn.small { min-height: 40px; padding: 3px 10px; font-size: .78rem; }
.btn .zh { color: var(--gold-hi); }
.btn.primary .zh { color: #ffe7a8; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.actions { display: flex; gap: .7rem; justify-content: space-between; margin-top: 1rem; }
/* Setup's Start rides the bottom of the screen (persona play-test, 26 Nov
   2026): on a 1366x768 laptop it sat 2.5 screens down, under the table rules
   and the house patterns most tables leave as they are. */
#vSetup > .actions {
  position: sticky; bottom: 0; z-index: 5;
  margin: 1rem -.5rem 0; padding: .6rem .5rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--panel, #241c14); border-top: 2px solid #3a2d20;
}
.stakefold { margin-top: .8rem; }
.stakefold > summary { cursor: pointer; color: var(--ink-dim); font-size: .85rem; padding: .3rem 0; }
.stakefold[open] > summary { margin-bottom: .4rem; }
.actions .primary { flex: 1; }

/* ── Home ─────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding-top: 1.1rem; }
.herotop { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; min-height: 112px; }
.bakbtn { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.bakbtn canvas { width: 84px; height: 96px; image-rendering: pixelated; display: block; }
.herotiles { width: 180px; height: 96px; image-rendering: pixelated; }
.logo { margin: .5rem 0 .15rem; line-height: 0; }
.logo canvas { image-rendering: pixelated; max-width: 100%; }
.sub {
  font: 700 1.05rem/1.3 var(--font-display); letter-spacing: .12em; color: var(--ink);
  margin: .2rem 0 .1rem;
}
.sub .zh { color: var(--gold); margin-right: .35rem; }
.tag { color: var(--ink-dim); font-size: .86rem; margin: .5rem auto 1rem; max-width: 26rem; line-height: 1.55; }

/* Bak's bubble — the home card's, exactly. */
.baksay {
  position: relative; display: inline-block; max-width: 18rem; text-align: left;
  background: #fbf5e2; color: #2a2018; border: 2px solid #2a2018;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
  padding: 6px 9px; font-size: .84rem; line-height: 1.35; min-height: 2.2em;
}
.baksay .rest { visibility: hidden; }
.baksay::before, .baksay::after { content: ''; position: absolute; background: #2a2018; }
.baksay.left::before { left: -6px; top: 12px; width: 4px; height: 6px; }
.baksay.left::after { left: -10px; top: 14px; width: 4px; height: 2px; }
.herotop .baksay { position: absolute; left: calc(50% - 6px); top: -6px; transform: translateX(-4%); z-index: 3; }

.steps { margin: 0; padding-left: 1.3rem; font-size: .88rem; color: var(--ink-dim); }
.steps li { margin: .35rem 0; }
.steps b { color: var(--ink); }
.saved { list-style: none; margin: 0; padding: 0; }
.saved li { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-top: 1px dashed #4a3b2a; }
.saved li:first-child { border-top: 0; }
.saved .sv { flex: 1; min-width: 0; }
.saved .svn { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved .svm { color: var(--ink-dim); font-size: .8rem; }

/* ── Setup ────────────────────────────────────────────────────────────── */
.vh { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: .07em; color: var(--gold); margin: .3rem 0 .9rem; text-shadow: 0 2px 0 #000; }
.seatgrid {
  display: grid; gap: .45rem; align-items: center;
  grid-template-columns: 1fr minmax(84px, 1fr) 1fr;
  grid-template-areas: ". s2 ." "s3 felt s1" ". s0 .";
}
.setupfelt { grid-area: felt; aspect-ratio: 1; position: relative; }
.setupfelt canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.seatin { display: flex; flex-direction: column; gap: .2rem; font-size: .74rem; color: var(--ink-dim); }
.seatin.s0 { grid-area: s0; } .seatin.s1 { grid-area: s1; } .seatin.s2 { grid-area: s2; } .seatin.s3 { grid-area: s3; }
.seatin span { display: flex; justify-content: space-between; gap: .3rem; }
.seatin b.wind { color: var(--gold); font-family: var(--font-display); }
input[type=text], input[type=number], select {
  width: 100%; min-height: 44px; padding: .4rem .55rem;
  font-size: 16px; /* under 16px, iOS Safari zooms on focus and never zooms back */
  background: var(--panel-lo); border: 2px solid #3a2d20; border-radius: 3px; color: var(--ink);
}
input:focus, select:focus { border-color: var(--gold); outline: none; }
.rulegrid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.rulegrid label { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--ink-dim); }
.pair2 { display: grid; grid-template-columns: 4.5rem 1fr; gap: .4rem; }
.toggles { margin-top: .9rem; display: grid; gap: .5rem; }
.tgl { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-size: .86rem; }
.tgl input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--green-fill); flex: none; }

.pick4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; margin: 0 0 .6rem; }
.pick4 button, .seg button {
  min-height: 50px; padding: .35rem .5rem; cursor: pointer;
  background: var(--panel-hi); border: 2px solid #55432e; border-bottom-width: 3px; border-radius: 3px;
  font: 700 .92rem/1.2 var(--font-display); letter-spacing: .03em;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pick4 button:hover:not(:disabled), .seg button:hover { background: #4b3a28; }
.pick4 button small { color: var(--ink-dim); font: 400 .72rem/1.2 var(--font-ui); letter-spacing: 0; }
.pick4 button[aria-checked=true], .seg button[aria-checked=true] {
  background: var(--gold); border-color: #9a7526; color: #241c14;
}
.pick4 button[aria-checked=true] small, .seg button[aria-checked=true] .zh { color: #4a3510; }
.pick4 button:disabled { opacity: .3; cursor: default; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.seg .zh { color: var(--gold-hi); }

/* ── The table ────────────────────────────────────────────────────────── */
.roundcard { padding-bottom: .8rem; }
.roundline { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; min-height: 64px; }
.roundbak { flex: none; line-height: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.roundbak canvas { width: 56px; height: 64px; image-rendering: pixelated; }
.roundline .baksay { flex: 1; max-width: none; }

.tablefelt { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 0 0 .9rem; }
.tablefelt > canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.plate {
  position: absolute; z-index: 2; min-width: 5.6rem; max-width: 40%;
  background: rgba(20,16,12,.92); border: 2px solid #55432e; border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
  padding: .25rem .5rem .3rem; text-align: center; line-height: 1.15;
}
.plate.p0 { left: 50%; bottom: 13%; transform: translateX(-50%); }
.plate.p1 { right: 12%; top: 50%; transform: translateY(-50%); }
.plate.p2 { left: 50%; top: 13%; transform: translateX(-50%); }
.plate.p3 { left: 12%; top: 50%; transform: translateY(-50%); }
.plate.p1, .plate.p3 { min-width: 0; max-width: 27%; }
.plate.p1 .pn, .plate.p3 .pn { white-space: normal; word-break: break-word; }
.plate.dealer { border-color: var(--gold); background: rgba(46,34,14,.95); }
.plate .pn { font: 700 .84rem/1.2 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.plate .pw {
  display: inline-block; font: 700 .74rem/1.25 var(--font-display); color: #241c14;
  background: var(--ink-dim); padding: 0 .25rem; margin-right: .25rem; border-radius: 1px;
}
.plate.dealer .pw { background: var(--gold); }
.plate .pt { display: block; font: 700 1.05rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; margin-top: .1rem; letter-spacing: .02em; }
.plate .pd { display: block; font-size: .7rem; font-variant-numeric: tabular-nums; min-height: 1em; }
.plate .pz { font-family: var(--font-display); color: var(--gold); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .zero { color: var(--ink-dim); }
.plate.flash { animation: flash 1.2s steps(6, end); }
@keyframes flash { 0%, 50% { border-color: var(--gold-hi); box-shadow: 0 0 0 3px var(--gold), 3px 3px 0 rgba(0,0,0,.5); } 100% { box-shadow: 3px 3px 0 rgba(0,0,0,.5); } }
.streak { display: inline-block; background: #5a1f17; color: #ffd2c4; padding: 0 .35rem; font: 700 .74rem/1.5 var(--font-display); border-radius: 2px; }

.bigactions { display: grid; grid-template-columns: 1.5fr 1fr; gap: .55rem; }

.standings { list-style: none; margin: 0; padding: 0; }
.standings li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px dashed #4a3b2a; }
.standings li:first-child { border-top: 0; }
.standings .rk { width: 1.6rem; text-align: center; font: 700 1rem var(--font-display); color: var(--gold); }
.standings .nm { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings .sc { font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.standings .mn { display: block; font: 400 .74rem var(--font-ui); color: var(--ink-dim); }

.history { list-style: none; margin: 0; padding: 0; }
.history > li { border-top: 1px dashed #4a3b2a; }
.history > li:first-child { border-top: 0; }
.hrow {
  width: 100%; display: grid; grid-template-columns: 3rem 1fr auto; gap: .5rem; align-items: center;
  background: none; border: 0; text-align: left; padding: .5rem 0; cursor: pointer; min-height: 44px; color: var(--ink);
}
.hrow:hover { background: rgba(255,255,255,.03); }
.hrow .hn { font: .76rem/1.15 var(--font-display); color: var(--ink-dim); }
.hrow .hn b { display: block; color: var(--gold); font-size: .95rem; }
.hrow .hs { min-width: 0; font-weight: 700; }
.hrow .hs small { display: block; color: var(--ink-dim); font-weight: 400; font-size: .76rem; }
.hrow .hs .zh { color: var(--gold); }
.hrow .hf { font: 700 1rem var(--font-display); color: var(--gold); white-space: nowrap; }
.hdetail { padding: 0 0 .8rem 3.5rem; }
.hdetail .mini { display: flex; flex-wrap: wrap; gap: 1px; margin: .2rem 0 .5rem; padding: 5px; background: #164a32; border: 2px solid #0f2f20; }
.hdetail .mini .gap { width: 6px; }
.hdetail table { border-collapse: collapse; width: 100%; font-size: .84rem; margin: .2rem 0 .5rem; }
.hdetail td { padding: .2rem .3rem; border-bottom: 1px dashed #3a2d20; }
.hdetail td.v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbtns { display: flex; gap: .5rem; flex-wrap: wrap; }

.over { text-align: center; }
.over h2 { font-size: 1.2rem; }

/* ── The record sheet ─────────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(12,9,6,.97); }
.sheethead {
  display: flex; align-items: center; gap: .6rem; padding: calc(.45rem + var(--safe-t)) .7rem .45rem;
  background: var(--panel); border-bottom: 2px solid var(--frame-in); box-shadow: 0 2px 0 var(--frame);
}
.iconbtn {
  min-width: 44px; min-height: 44px; cursor: pointer; font-size: 1.05rem;
  background: var(--panel-hi); border: 2px solid #55432e; border-bottom-width: 3px; border-radius: 3px;
}
.iconbtn:hover { background: #4b3a28; }
.sheethead h2 { font: 700 1.05rem var(--font-display); letter-spacing: .07em; color: var(--gold); margin: 0; flex: 1; }
.sheetctx { color: var(--ink-dim); font-size: .76rem; text-align: right; line-height: 1.35; }
.sheetbody { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .4rem .9rem 1.5rem; max-width: 40rem; width: 100%; margin: 0 auto; }
.step { padding: .85rem 0; border-bottom: 1px dashed #4a3b2a; }
.step h3 { font: 700 .98rem var(--font-display); letter-spacing: .06em; margin: 0 0 .55rem; color: var(--ink); }
.step h3 .num {
  display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; margin-right: .45rem;
  background: var(--gold); color: #241c14; font-size: .8rem; border-radius: 1px; box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.ask { margin: .8rem 0 .4rem; font-weight: 700; }
.sheetfoot {
  display: flex; gap: .7rem; align-items: center; padding: .55rem .9rem calc(.55rem + var(--safe-b));
  background: var(--panel); border-top: 3px solid var(--frame); box-shadow: 0 -2px 0 var(--frame-in), 0 -10px 24px rgba(0,0,0,.5);
}
.sheetfoot .btn { min-width: 8rem; }
.verdict { flex: 1; min-width: 0; line-height: 1.25; display: flex; align-items: center; gap: .55rem; }
.verdict canvas { flex: none; width: 42px; height: 48px; image-rendering: pixelated; }
.verdict .vf { font: 700 1.3rem var(--font-display); color: var(--gold); letter-spacing: .03em; }
.verdict .vf.bad { color: var(--neg); }
.verdict .vf.ask2 { font-size: .98rem; color: var(--ink); }
.verdict .vp { font-size: .8rem; color: var(--ink-dim); }
.verdict .vp b { color: var(--ink); }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 0 .8rem; }
.tabs button {
  min-height: 46px; cursor: pointer; background: var(--panel-lo); color: var(--ink-dim);
  border: 2px solid #3a2d20; border-radius: 3px; font: 700 .84rem var(--font-display); letter-spacing: .03em;
}
.tabs button[aria-selected=true] { background: var(--gold); color: #241c14; border-color: #9a7526; }

/* The tray is a rack on the felt, like the hand at the table. */
.tray {
  min-height: 78px; display: flex; flex-wrap: wrap; gap: 2px; align-items: flex-end; align-content: flex-end;
  padding: 10px 8px 12px; background: #1d5c3f;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 2px, transparent 2px 4px);
  border: 3px solid #5a3b1f; box-shadow: inset 0 0 0 2px #2b1a0b, inset 0 -8px 0 rgba(0,0,0,.25);
}
.tray:empty::before { content: "Tap tiles below to add them"; color: rgba(243,231,205,.6); font-size: .84rem; margin: auto; }
.ttile { position: relative; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.ttile canvas { display: block; image-rendering: pixelated; }
.ttile.sel { transform: translateY(-7px); }
.ttile.sel::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: -6px; height: 3px; background: var(--gold); }
.ttile.doubt::after {
  content: "?"; position: absolute; top: -7px; right: -5px; width: 17px; height: 17px;
  background: var(--amber); color: #1b1206; font: 700 11px/17px var(--font-ui); text-align: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.trayhint { font-size: .84rem; color: var(--ink-dim); margin: .45rem 0 .6rem; min-height: 1.3em; }
.trayhint.ok { color: var(--pos); }
.trayhint.bad { color: var(--amber); }

.flowers { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 .75rem; }
.flowers .lbl { font-size: .76rem; color: var(--ink-dim); width: 100%; }
.flowers .lbl b { color: var(--gold); }
.ftile { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; opacity: .35; position: relative; }
.ftile[aria-pressed=true] { opacity: 1; transform: translateY(-3px); }
.ftile[aria-pressed=true]::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: -5px; height: 3px; background: var(--gold); }
.ftile.own::after { content: ""; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; background: var(--gold); box-shadow: 1px 1px 0 #000; }

.palette { display: grid; gap: 6px; padding: 8px; background: var(--panel-lo); border: 2px solid #3a2d20; }
.palrow { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.palrow .pl { width: 100%; font: .72rem var(--font-display); color: var(--ink-dim); letter-spacing: .06em; }
.ptile { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; position: relative; }
.ptile:hover:not([disabled]) { transform: translateY(-2px); }
.ptile:active:not([disabled]) { transform: translateY(1px); }
.ptile[disabled] { opacity: .25; cursor: default; }
.ptile .cnt {
  position: absolute; top: -6px; right: -4px; min-width: 15px; height: 15px;
  background: var(--gold); color: #1b1206; font: 700 10px/15px var(--font-ui); text-align: center; padding: 0 3px;
  box-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.trayacts { display: flex; gap: .4rem; flex-wrap: wrap; margin: .7rem 0 0; }
#codesWrap { margin-top: .6rem; }
#codesIn { font-family: ui-monospace, Consolas, monospace; }

.photostage { position: relative; margin: .7rem 0; touch-action: none; user-select: none; -webkit-user-select: none; border: 3px solid #5a3b1f; }
.photostage canvas { display: block; width: 100%; height: auto; }
.band { position: absolute; left: 3%; right: 3%; border: 2px solid var(--gold); box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: grab; touch-action: none; }
.bandlabel {
  position: absolute; left: 50%; top: -1.7rem; transform: translateX(-50%); white-space: nowrap;
  background: var(--gold); color: #1b1206; font: 700 .72rem var(--font-display); padding: .1rem .45rem; box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.bandgrip { position: absolute; left: 50%; width: 44px; height: 22px; margin-left: -22px; cursor: ns-resize; }
.bandgrip::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 4px; background: var(--gold); }
.bandgrip.top { top: -12px; } .bandgrip.bot { bottom: -12px; }
.photoacts { display: flex; align-items: center; gap: .8rem; }
.prog { flex: 1; height: 10px; background: var(--panel-lo); border: 2px solid #3a2d20; }
.prog span { display: block; height: 100%; width: 0; background: var(--gold); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.sets { display: flex; flex-wrap: wrap; gap: .5rem; }
.setbtn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer;
  padding: .45rem .45rem .35rem; background: var(--panel-lo); border: 2px solid #3a2d20; border-bottom-width: 3px; border-radius: 3px;
}
.setbtn .st { display: flex; gap: 1px; line-height: 0; }
.setbtn .sl { font: .72rem var(--font-display); color: var(--ink-dim); letter-spacing: .03em; }
.setbtn[aria-pressed=true] { border-color: var(--gold); background: #3d3012; }
.setbtn[aria-pressed=true] .st { transform: translateY(-2px); }
.setbtn[aria-pressed=true] .sl { color: var(--gold-hi); font-weight: 700; }
.setbtn.pair { cursor: default; }
.wintiles { display: flex; flex-wrap: wrap; gap: 4px; }
.wintiles button { padding: 2px; border: 2px solid transparent; background: none; cursor: pointer; line-height: 0; }
.wintiles button[aria-pressed=true] { border-color: var(--pos); background: rgba(111,208,143,.15); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button {
  min-height: 40px; padding: .3rem .65rem; cursor: pointer; font-size: .82rem;
  background: var(--panel-lo); border: 2px solid #3a2d20; border-radius: 3px; color: var(--ink);
}
.chips button .zh { color: var(--gold); margin-right: .25rem; }
.chips button[aria-pressed=true] { background: var(--gold); border-color: #9a7526; color: #241c14; }
.chips button[aria-pressed=true] .zh { color: #4a3510; }

#breakdown table { border-collapse: collapse; width: 100%; font-size: .9rem; }
#breakdown td { padding: .35rem .3rem; border-bottom: 1px dashed #3a2d20; }
#breakdown td.v { text-align: right; font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; width: 3.5rem; }
#breakdown .zh { color: var(--ink); }
#breakdown .en { color: var(--ink-dim); font-size: .8rem; margin-left: .35rem; }
#breakdown .tot td { border-bottom: 0; color: var(--gold); font: 700 1.05rem var(--font-display); }
#breakdown .note { font-size: .82rem; color: var(--ink-dim); margin: .5rem 0; }
#breakdown .pays { margin: .6rem 0 0; padding: .5rem .6rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; font-size: .9rem; background: var(--panel-lo); border: 2px solid #3a2d20; }
#breakdown .pays span:nth-child(even) { text-align: right; font: 700 .98rem var(--font-display); font-variant-numeric: tabular-nums; }
.override { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; font-size: .82rem; color: var(--ink-dim); }
.stepper { display: inline-flex; align-items: center; border: 2px solid #55432e; border-bottom-width: 3px; border-radius: 3px; overflow: hidden; }
.stepper button { width: 44px; height: 40px; background: var(--panel-hi); border: 0; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.stepper button:hover { background: #4b3a28; }
.stepper output { min-width: 3rem; text-align: center; font: 700 1rem var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stepper.big button { width: 60px; height: 58px; font-size: 1.6rem; }
.stepper.big output { min-width: 5rem; font-size: 1.9rem; color: var(--gold); }

/* ── 食糊 — the plaque when a win is recorded ─────────────────────────── */
.plaque {
  position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 1rem;
  background: rgba(8,6,4,.62); cursor: pointer;
}
.plaquecard { text-align: center; padding: 1.1rem 1.6rem 1.2rem; min-width: 16rem; animation: plaquein .36s steps(4, end); }
.plaquecard .pqrow { display: flex; align-items: flex-end; justify-content: center; gap: .4rem; }
.plaquecard canvas.pqbak { width: 84px; height: 96px; image-rendering: pixelated; }
.plaquecard canvas.pqword { image-rendering: pixelated; }
.plaquecard .pqwho { font: 700 1.15rem var(--font-display); letter-spacing: .05em; margin: .5rem 0 .1rem; }
.plaquecard .pqfaan { font: 700 1.6rem var(--font-display); color: var(--gold-hi); text-shadow: 0 2px 0 #000; }
.plaquecard .pqpts { font: 700 1.1rem var(--font-display); color: var(--pos); margin-top: .1rem; }
.plaquecard .pqtap { font-size: .72rem; color: var(--dim); margin-top: .6rem; }
@keyframes plaquein { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Dialog, menu, toast ──────────────────────────────────────────────── */
.dlgwrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); display: grid; place-items: center; padding: 1rem; }
.dlg { max-width: 26rem; width: 100%; margin: 0; }
.dlg ul { padding-left: 1.1rem; font-size: .88rem; color: var(--ink-dim); }
.dlg ul b { color: var(--ink); }
.dlg pre { white-space: pre-wrap; font: .84rem/1.45 ui-monospace, Consolas, monospace; background: var(--panel-lo); padding: .6rem; border: 2px solid #3a2d20; max-height: 50vh; overflow: auto; }
.dlgbtns { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1rem; }
.menu { position: fixed; right: .8rem; top: calc(3.5rem + var(--safe-t)); z-index: 50; min-width: 14rem; padding: .45rem; margin: 0; }
.menu button {
  display: block; width: 100%; text-align: left; min-height: 44px; padding: .4rem .7rem; cursor: pointer;
  background: none; border: 0; font: 700 .86rem var(--font-display); letter-spacing: .045em; color: var(--ink);
}
.menu button:hover { background: var(--panel-hi); }
.toast {
  position: fixed; left: 50%; top: calc(4rem + var(--safe-t)); z-index: 70; transform: translate(-50%, -30%);
  background: #fbf5e2; color: #2a2018; border: 2px solid #2a2018; box-shadow: 3px 3px 0 rgba(0,0,0,.5);
  padding: .45rem .9rem; max-width: 90vw; text-align: center; pointer-events: none; font-size: .86rem;
  opacity: 0; visibility: hidden; transition: transform .2s steps(3, end), opacity .2s, visibility .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Second pass (24 Nov 2026), from screenshots ─────────────────────────
   Numbers stay in the UI face. The Song face's Latin digits sit on wide,
   spaced advances, and "+1,024" came out as "+1, 024"; the game's own chip
   counts are set in the UI face for the same reason. */
.plate .pt, .standings .sc, .plaquecard .pqpts, #breakdown td.v, #breakdown .pays span:nth-child(even),
.hrow .hf, .stepper output {
  font-family: var(--font-ui); letter-spacing: 0;
}
.verdict .vf { white-space: nowrap; }
/* The sheet is a screen of its own: nothing of the table may show through. */
.sheet { background: var(--bg); }
.herotop .baksay { left: calc(50% + 100px); top: 2px; transform: none; max-width: 15rem; }
@media (max-width: 640px) {
  /* No room beside the dragons on a phone: the bubble goes under them. */
  .herotop { flex-wrap: wrap; }
  .herotop .baksay { position: relative; left: auto; top: auto; flex-basis: 100%; max-width: 22rem; margin: .5rem auto 0; }
  .herotop .baksay.left::before { left: 50%; top: -6px; width: 6px; height: 4px; }
  .herotop .baksay.left::after { left: calc(50% + 2px); top: -10px; width: 2px; height: 4px; }
  .seatgrid { grid-template-columns: 1fr 72px 1fr; }
  .seatin input { padding: .4rem .4rem; }
  /* The felt is ~340px wide here: every plate sits on its own rack, at the
     edge, so none of them can reach the wind plate in the middle. */
  .plate { min-width: 0; padding: .15rem .35rem .2rem; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
  .plate.p0 { bottom: 1.5%; max-width: 46%; }
  .plate.p2 { top: 1.5%; max-width: 46%; }
  .plate.p1 { right: 1%; max-width: 29%; }
  .plate.p3 { left: 1%; max-width: 29%; }
  .plate .pn { font-size: .74rem; }
  .plate .pw { font-size: .66rem; }
  .plate .pt { font-size: .92rem; }
  .plate .pd { display: none; }
}
.demolink { margin-top: .6rem; }

/* ── Third pass: the phone at a real table (24 Nov 2026) ─────────────────── */
.photobtns { display: flex; gap: .5rem; flex-wrap: wrap; }
.photobtns .filebtn { flex: 1 1 9rem; }
.bartitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .bartitle { font-size: .84rem; letter-spacing: .03em; }
  .backlink { padding: 0 .55rem; }
  .sheetbody { padding-left: .6rem; padding-right: .6rem; }
  .palette { padding: 6px; }

  /* The rack stays in sight while the palette below it is tapped. Without
     this the tiles added went off the top of the screen at the third row. */
  .tray {
    position: sticky; top: 0; z-index: 6;
    box-shadow: inset 0 0 0 2px #2b1a0b, inset 0 -8px 0 rgba(0,0,0,.25), 0 6px 10px rgba(0,0,0,.55);
  }

  /* Record a win and Draw live under the thumb, not under the felt: on a
     phone they scrolled away the moment the standings or a hand were read. */
  #vTable { padding-bottom: calc(5.4rem + var(--safe-b)); }
  #vTable .bigactions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .5rem .7rem calc(.5rem + var(--safe-b));
    background: var(--panel); border-top: 3px solid var(--frame);
    box-shadow: 0 -2px 0 var(--frame-in), 0 -10px 24px rgba(0,0,0,.5);
  }
  #vTable .roundcard { padding-bottom: .4rem; }
}

/* A phone on its side: 390px tall. Headers and footers shrink, and the felt
   is held to what fits under the bar, so the whole table is one screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .bar { padding-top: calc(.25rem + var(--safe-t)); padding-bottom: .25rem; }
  .backlink, .iconbtn { min-height: 38px; }
  .view { max-width: 46rem; }
  .tablefelt { max-width: calc((100vh - 9rem) * 4 / 3); margin-left: auto; margin-right: auto; }
  .roundline { min-height: 0; margin-bottom: .4rem; }
  .roundbak canvas { width: 42px; height: 48px; }
  .sheethead { padding-top: calc(.2rem + var(--safe-t)); padding-bottom: .2rem; }
  .sheetfoot { padding-top: .3rem; padding-bottom: calc(.3rem + var(--safe-b)); }
  .sheetfoot .btn.big { min-height: 46px; }
  .tray { position: static; }
  #vTable { padding-bottom: calc(4.6rem + var(--safe-b)); }
  #vTable .bigactions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .35rem 1rem calc(.35rem + var(--safe-b));
    background: var(--panel); border-top: 3px solid var(--frame);
  }
  #vTable .bigactions .btn.big { min-height: 46px; }
  .herotop { min-height: 0; }
  .plaquecard { padding: .6rem 1rem; }
  .plaquecard canvas.pqbak { width: 56px; height: 64px; }
}

/* A tap leaves :hover stuck on a touchscreen, and `.pick4 button:hover`
   outranked the chosen state: the seat just picked showed as NOT picked
   (seen at 360px, "Whose discard?"). Chosen always wins now, and hover is
   only a hover where there is a mouse. */
.pick4 button[aria-checked=true], .seg button[aria-checked=true],
.pick4 button[aria-checked=true]:hover, .seg button[aria-checked=true]:hover {
  background: var(--gold); border-color: #9a7526; color: #241c14;
}
@media (hover: none) {
  .btn:hover:not(:disabled), .pick4 button:hover:not(:disabled), .seg button:hover,
  .iconbtn:hover, .stepper button:hover, .backlink:hover { background: var(--panel-hi); }
  .btn.primary:hover:not(:disabled) { background: var(--green-fill); }
  .btn.ghost:hover:not(:disabled) { background: transparent; }
  .pick4 button[aria-checked=true]:hover, .seg button[aria-checked=true]:hover { background: var(--gold); }
  .ptile:hover:not([disabled]) { transform: none; }
}

/* The verdict bar: a long prompt wraps inside its own space instead of
   running under the Record button. */
.verdict > div { min-width: 0; }
.verdict .vf { overflow: hidden; text-overflow: ellipsis; }
.verdict .vf.ask2 { white-space: normal; font-size: .9rem; line-height: 1.25; letter-spacing: .02em; }
@media (max-width: 640px) {
  .sheetfoot .btn { min-width: 6.5rem; }
  .tabs button { letter-spacing: 0; font-size: .8rem; }
}

/* On its side, the table card is two columns: the felt fits the height left
   between the bar and the pinned buttons, and Bak talks beside it. */
@media (max-height: 500px) and (orientation: landscape) {
  .roundcard { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: start; }
  .roundcard .tablefelt { grid-column: 1; grid-row: 1; width: calc((100vh - 9.4rem) * 4 / 3); max-width: none; margin: 0; }
  .roundcard .roundline { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; }
  .roundcard .roundline .baksay { max-width: 100%; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .plate { min-width: 0; padding: .15rem .35rem .2rem; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
  .plate.p0 { bottom: 1.5%; max-width: 46%; }
  .plate.p2 { top: 1.5%; max-width: 46%; }
  .plate.p1 { right: 1%; max-width: 29%; }
  .plate.p3 { left: 1%; max-width: 29%; }
  .plate .pn { font-size: .74rem; }
  .plate .pw { font-size: .66rem; }
  .plate .pt { font-size: .92rem; }
  .plate .pd { display: none; }
}

/* ── The photo box, rebuilt (25 Nov 2026) ─────────────────────────────────
   Moves anywhere, stretches from eight handles, turns from the round handle
   on its stalk. Turned by CSS `rotate` about its centre, which is exactly the
   centre photobox.js keeps, so what is drawn is what will be read. */
.photostage { cursor: crosshair; }
#bandMask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.photostage.dragging { cursor: grabbing; }
.band {
  right: auto; transform-origin: 50% 50%; cursor: move;
  border: 2px solid var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}
.bandlabel { pointer-events: none; }
.bandlabel b { margin-left: .3rem; }
/* Each handle is a 44px target, centred on its corner or edge, with a small
   visible square in the middle: the old grips were 4px bars on 22px boxes. */
.bh { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; touch-action: none; z-index: 2; }
.bh::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: var(--gold-hi); border: 2px solid #1b1206; box-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.bh.n::after, .bh.s::after { width: 22px; height: 10px; margin: -5px 0 0 -11px; }
.bh.e::after, .bh.w::after { width: 10px; height: 22px; margin: -11px 0 0 -5px; }
.bh.nw { left: 0; top: 0; cursor: nwse-resize; }   .bh.n { left: 50%; top: 0; cursor: ns-resize; }
.bh.ne { left: 100%; top: 0; cursor: nesw-resize; } .bh.w { left: 0; top: 50%; cursor: ew-resize; }
.bh.e { left: 100%; top: 50%; cursor: ew-resize; }  .bh.sw { left: 0; top: 100%; cursor: nesw-resize; }
.bh.s { left: 50%; top: 100%; cursor: ns-resize; }  .bh.se { left: 100%; top: 100%; cursor: nwse-resize; }
.bstalk { position: absolute; left: 50%; top: -30px; width: 2px; height: 30px; margin-left: -1px; background: var(--gold-hi); pointer-events: none; }
.brot {
  position: absolute; left: 50%; top: -56px; width: 44px; height: 44px; margin-left: -22px; z-index: 3;
  display: grid; place-items: center; cursor: grab; touch-action: none;
  color: #1b1206; font: 700 16px/1 var(--font-ui);
}
.brot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: -1;
  background: var(--gold-hi); border: 2px solid #1b1206; border-radius: 50%; box-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
/* The label rides above the stalk's top so the handle never sits on words. */
/* Room above the photo for the turn handle on its stalk (56px) when the box
   is at the very top; the label that used to live up there turned with the
   box and ran off the photo, so the hint is in the tool row below now. */
.photostage { margin-top: 3.8rem; }
.bandangle { color: var(--gold); font: 700 .9rem var(--font-ui); min-width: 2.5rem; }
.bandtools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .2rem 0 .6rem; }
.bandtools .fine { flex-basis: 100%; margin: 0; }

/* The whole photo on one screen. A portrait photo at the sheet's full width
   was ~830px tall on a laptop: the box scrolled off while it was being
   dragged, and Read sat below the fold. Capped by height, shape kept; the
   stage shrinks to the canvas so the box's percentages stay the photo's. */
.photostage { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.photostage canvas#photoCv { width: auto; height: auto; max-width: 100%; max-height: 62vh; }

/* Remove one tile: the ✕ that sits on the lifted tile (25 Nov 2026). A 36px
   target around a 24px red mark, over the tile's top-right corner, so it is
   reached without leaving the rack. */
.tilex {
  position: absolute; top: -18px; right: -14px; width: 36px; height: 36px; z-index: 3;
  padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; font: 700 13px/1 var(--font-ui);
}
.tilex::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; z-index: -1;
  background: var(--red); border: 2px solid #1b1206; border-radius: 50%; box-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.ttile.sel .tilex { line-height: 1; }
.ttile.doubt.sel::after { display: none; }   /* the ✕ takes the ? mark's corner while lifted */
.undotoast {
  position: fixed; left: 50%; bottom: calc(5.6rem + var(--safe-b)); z-index: 70; transform: translate(-50%, 30%);
  display: flex; align-items: center; gap: .8rem; padding: .4rem .5rem .4rem .9rem;
  background: #fbf5e2; color: #2a2018; border: 2px solid #2a2018; box-shadow: 3px 3px 0 rgba(0,0,0,.5);
  font-size: .86rem; opacity: 0; visibility: hidden; transition: transform .2s steps(3, end), opacity .2s, visibility .2s;
}
.undotoast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.undotoast .btn { min-height: 36px; }

/* ── House patterns, 包, 一炮多響, three players (25 Nov 2026) ───────────── */
.seg.seats { margin: 0 0 .6rem; }
.housepats { display: grid; gap: .35rem; }
.hp {
  display: grid; grid-template-columns: 22px 1fr 4.2rem; gap: .55rem; align-items: center;
  padding: .3rem .1rem; border-top: 1px dashed #3a2d20; cursor: pointer; font-size: .86rem;
}
.hp:first-child { border-top: 0; }
.hp input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green-fill); }
.hp input[type=number] { min-height: 38px; text-align: center; padding: .2rem; }
.hp .zh { color: var(--gold); }
.househand { margin-top: .5rem; }
.househand b { color: inherit; margin-left: .2rem; }
.baobox { margin-top: .5rem; }
.alsowon { margin: 0 0 .6rem; text-align: center; }
.alsowon .btn .zh { margin-right: .3rem; }
.ruleset { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--ink-dim); margin: 0 0 .8rem; }
.ruleset .fine { margin: .1rem 0 0; }
.toggles > label:not(.tgl) { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--ink-dim); margin-top: .3rem; }

/* Published house patterns: a source under each, the fixed value on the right. */
.hp .hpsrc { display: block; font-size: .72rem; color: var(--dim); margin-top: .1rem; }
.hp .hpf { font: 700 .95rem var(--font-ui); color: var(--gold); text-align: center; }
/* − faan + in the bottom bar: every win's faan can be changed by the table. */
.vfedit { display: flex; align-items: center; gap: .3rem; }
.vfbtn {
  width: 32px; height: 32px; padding: 0; cursor: pointer; flex: none;
  background: var(--panel-hi); color: var(--ink); border: 2px solid #55432e; border-bottom-width: 3px; border-radius: 3px;
  font: 700 1rem/1 var(--font-ui);
}
.vfbtn:active { transform: translateY(1px); border-bottom-width: 2px; }

/* ── px icons: generated by tools/make-pxicons.py, do not edit ── */
.px { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto;
  vertical-align: -3px; background-color: currentColor;
  -webkit-mask: var(--px) 0 0 / 100% 100% no-repeat; mask: var(--px) 0 0 / 100% 100% no-repeat; }
.px.x2 { width: 32px; height: 32px; }
.px-arrow-right { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='8' y='3' width='2' height='1'/%3E%3Crect x='9' y='4' width='2' height='1'/%3E%3Crect x='10' y='5' width='2' height='1'/%3E%3Crect x='1' y='6' width='14' height='1'/%3E%3Crect x='1' y='7' width='14' height='1'/%3E%3Crect x='10' y='8' width='2' height='1'/%3E%3Crect x='9' y='9' width='2' height='1'/%3E%3Crect x='8' y='10' width='2' height='1'/%3E%3C/svg%3E"); }
.px-back { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='6' y='3' width='2' height='1'/%3E%3Crect x='5' y='4' width='2' height='1'/%3E%3Crect x='4' y='5' width='2' height='1'/%3E%3Crect x='1' y='6' width='14' height='1'/%3E%3Crect x='1' y='7' width='14' height='1'/%3E%3Crect x='4' y='8' width='2' height='1'/%3E%3Crect x='5' y='9' width='2' height='1'/%3E%3Crect x='6' y='10' width='2' height='1'/%3E%3C/svg%3E"); }
.px-book { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='3' width='4' height='1'/%3E%3Crect x='10' y='3' width='4' height='1'/%3E%3Crect x='1' y='4' width='6' height='1'/%3E%3Crect x='9' y='4' width='6' height='1'/%3E%3Crect x='1' y='5' width='6' height='1'/%3E%3Crect x='9' y='5' width='6' height='1'/%3E%3Crect x='1' y='6' width='6' height='1'/%3E%3Crect x='9' y='6' width='6' height='1'/%3E%3Crect x='1' y='7' width='6' height='1'/%3E%3Crect x='9' y='7' width='6' height='1'/%3E%3Crect x='1' y='8' width='6' height='1'/%3E%3Crect x='9' y='8' width='6' height='1'/%3E%3Crect x='1' y='9' width='6' height='1'/%3E%3Crect x='9' y='9' width='6' height='1'/%3E%3Crect x='1' y='10' width='6' height='1'/%3E%3Crect x='9' y='10' width='6' height='1'/%3E%3Crect x='1' y='11' width='14' height='1'/%3E%3C/svg%3E"); }
.px-camera { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='5' y='2' width='4' height='1'/%3E%3Crect x='4' y='3' width='6' height='1'/%3E%3Crect x='1' y='4' width='14' height='1'/%3E%3Crect x='1' y='5' width='14' height='1'/%3E%3Crect x='1' y='6' width='4' height='1'/%3E%3Crect x='11' y='6' width='4' height='1'/%3E%3Crect x='1' y='7' width='3' height='1'/%3E%3Crect x='7' y='7' width='2' height='1'/%3E%3Crect x='12' y='7' width='3' height='1'/%3E%3Crect x='1' y='8' width='3' height='1'/%3E%3Crect x='6' y='8' width='4' height='1'/%3E%3Crect x='12' y='8' width='3' height='1'/%3E%3Crect x='1' y='9' width='3' height='1'/%3E%3Crect x='6' y='9' width='4' height='1'/%3E%3Crect x='12' y='9' width='3' height='1'/%3E%3Crect x='1' y='10' width='3' height='1'/%3E%3Crect x='7' y='10' width='2' height='1'/%3E%3Crect x='12' y='10' width='3' height='1'/%3E%3Crect x='1' y='11' width='4' height='1'/%3E%3Crect x='11' y='11' width='4' height='1'/%3E%3Crect x='1' y='12' width='14' height='1'/%3E%3Crect x='1' y='13' width='14' height='1'/%3E%3C/svg%3E"); }
.px-check { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='14' y='2' width='2' height='1'/%3E%3Crect x='13' y='3' width='3' height='1'/%3E%3Crect x='12' y='4' width='3' height='1'/%3E%3Crect x='3' y='5' width='2' height='1'/%3E%3Crect x='11' y='5' width='3' height='1'/%3E%3Crect x='3' y='6' width='3' height='1'/%3E%3Crect x='10' y='6' width='3' height='1'/%3E%3Crect x='4' y='7' width='3' height='1'/%3E%3Crect x='9' y='7' width='3' height='1'/%3E%3Crect x='5' y='8' width='6' height='1'/%3E%3Crect x='6' y='9' width='4' height='1'/%3E%3Crect x='7' y='10' width='2' height='1'/%3E%3C/svg%3E"); }
.px-cross { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='2' height='1'/%3E%3Crect x='12' y='2' width='2' height='1'/%3E%3Crect x='2' y='3' width='3' height='1'/%3E%3Crect x='11' y='3' width='3' height='1'/%3E%3Crect x='3' y='4' width='3' height='1'/%3E%3Crect x='10' y='4' width='3' height='1'/%3E%3Crect x='4' y='5' width='3' height='1'/%3E%3Crect x='9' y='5' width='3' height='1'/%3E%3Crect x='5' y='6' width='6' height='1'/%3E%3Crect x='6' y='7' width='4' height='1'/%3E%3Crect x='5' y='8' width='6' height='1'/%3E%3Crect x='4' y='9' width='3' height='1'/%3E%3Crect x='9' y='9' width='3' height='1'/%3E%3Crect x='3' y='10' width='3' height='1'/%3E%3Crect x='10' y='10' width='3' height='1'/%3E%3Crect x='2' y='11' width='3' height='1'/%3E%3Crect x='11' y='11' width='3' height='1'/%3E%3Crect x='2' y='12' width='2' height='1'/%3E%3Crect x='12' y='12' width='2' height='1'/%3E%3C/svg%3E"); }
.px-dice { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='12' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='13' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='2' height='1'/%3E%3Crect x='10' y='4' width='2' height='1'/%3E%3Crect x='13' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='2' height='1'/%3E%3Crect x='10' y='5' width='2' height='1'/%3E%3Crect x='13' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='2' height='1'/%3E%3Crect x='13' y='6' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='7' y='7' width='2' height='1'/%3E%3Crect x='13' y='7' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='13' y='8' width='1' height='1'/%3E%3Crect x='2' y='9' width='1' height='1'/%3E%3Crect x='4' y='9' width='2' height='1'/%3E%3Crect x='10' y='9' width='2' height='1'/%3E%3Crect x='13' y='9' width='1' height='1'/%3E%3Crect x='2' y='10' width='1' height='1'/%3E%3Crect x='4' y='10' width='2' height='1'/%3E%3Crect x='10' y='10' width='2' height='1'/%3E%3Crect x='13' y='10' width='1' height='1'/%3E%3Crect x='2' y='11' width='1' height='1'/%3E%3Crect x='13' y='11' width='1' height='1'/%3E%3Crect x='2' y='12' width='12' height='1'/%3E%3C/svg%3E"); }
.px-first { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='3' width='2' height='1'/%3E%3Crect x='10' y='3' width='2' height='1'/%3E%3Crect x='2' y='4' width='2' height='1'/%3E%3Crect x='8' y='4' width='4' height='1'/%3E%3Crect x='2' y='5' width='2' height='1'/%3E%3Crect x='6' y='5' width='6' height='1'/%3E%3Crect x='2' y='6' width='2' height='1'/%3E%3Crect x='5' y='6' width='7' height='1'/%3E%3Crect x='2' y='7' width='10' height='1'/%3E%3Crect x='2' y='8' width='10' height='1'/%3E%3Crect x='2' y='9' width='2' height='1'/%3E%3Crect x='5' y='9' width='7' height='1'/%3E%3Crect x='2' y='10' width='2' height='1'/%3E%3Crect x='6' y='10' width='6' height='1'/%3E%3Crect x='2' y='11' width='2' height='1'/%3E%3Crect x='8' y='11' width='4' height='1'/%3E%3Crect x='2' y='12' width='2' height='1'/%3E%3Crect x='10' y='12' width='2' height='1'/%3E%3C/svg%3E"); }
.px-fullscreen { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='0' y='1' width='5' height='1'/%3E%3Crect x='11' y='1' width='5' height='1'/%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3Crect x='11' y='2' width='5' height='1'/%3E%3Crect x='0' y='3' width='2' height='1'/%3E%3Crect x='14' y='3' width='2' height='1'/%3E%3Crect x='0' y='4' width='2' height='1'/%3E%3Crect x='14' y='4' width='2' height='1'/%3E%3Crect x='0' y='5' width='2' height='1'/%3E%3Crect x='14' y='5' width='2' height='1'/%3E%3Crect x='0' y='10' width='2' height='1'/%3E%3Crect x='14' y='10' width='2' height='1'/%3E%3Crect x='0' y='11' width='2' height='1'/%3E%3Crect x='14' y='11' width='2' height='1'/%3E%3Crect x='0' y='12' width='2' height='1'/%3E%3Crect x='14' y='12' width='2' height='1'/%3E%3Crect x='0' y='13' width='5' height='1'/%3E%3Crect x='11' y='13' width='5' height='1'/%3E%3Crect x='0' y='14' width='5' height='1'/%3E%3Crect x='11' y='14' width='5' height='1'/%3E%3C/svg%3E"); }
.px-gear { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='6' y='1' width='4' height='1'/%3E%3Crect x='2' y='2' width='2' height='1'/%3E%3Crect x='6' y='2' width='4' height='1'/%3E%3Crect x='12' y='2' width='2' height='1'/%3E%3Crect x='2' y='3' width='12' height='1'/%3E%3Crect x='3' y='4' width='10' height='1'/%3E%3Crect x='1' y='5' width='5' height='1'/%3E%3Crect x='10' y='5' width='5' height='1'/%3E%3Crect x='1' y='6' width='4' height='1'/%3E%3Crect x='11' y='6' width='4' height='1'/%3E%3Crect x='0' y='7' width='4' height='1'/%3E%3Crect x='12' y='7' width='4' height='1'/%3E%3Crect x='0' y='8' width='4' height='1'/%3E%3Crect x='12' y='8' width='4' height='1'/%3E%3Crect x='1' y='9' width='4' height='1'/%3E%3Crect x='11' y='9' width='4' height='1'/%3E%3Crect x='1' y='10' width='5' height='1'/%3E%3Crect x='10' y='10' width='5' height='1'/%3E%3Crect x='3' y='11' width='10' height='1'/%3E%3Crect x='2' y='12' width='12' height='1'/%3E%3Crect x='2' y='13' width='2' height='1'/%3E%3Crect x='6' y='13' width='4' height='1'/%3E%3Crect x='12' y='13' width='2' height='1'/%3E%3Crect x='6' y='14' width='4' height='1'/%3E%3C/svg%3E"); }
.px-globe { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1'/%3E%3Crect x='3' y='2' width='2' height='1'/%3E%3Crect x='7' y='2' width='2' height='1'/%3E%3Crect x='11' y='2' width='2' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='13' y='3' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='14' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='14' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='15' y='6' width='1' height='1'/%3E%3Crect x='0' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='9' y='7' width='1' height='1'/%3E%3Crect x='15' y='7' width='1' height='1'/%3E%3Crect x='0' y='8' width='16' height='1'/%3E%3Crect x='0' y='9' width='1' height='1'/%3E%3Crect x='6' y='9' width='1' height='1'/%3E%3Crect x='9' y='9' width='1' height='1'/%3E%3Crect x='15' y='9' width='1' height='1'/%3E%3Crect x='0' y='10' width='1' height='1'/%3E%3Crect x='6' y='10' width='1' height='1'/%3E%3Crect x='9' y='10' width='1' height='1'/%3E%3Crect x='15' y='10' width='1' height='1'/%3E%3Crect x='1' y='11' width='14' height='1'/%3E%3Crect x='1' y='12' width='1' height='1'/%3E%3Crect x='6' y='12' width='1' height='1'/%3E%3Crect x='9' y='12' width='1' height='1'/%3E%3Crect x='14' y='12' width='1' height='1'/%3E%3Crect x='2' y='13' width='1' height='1'/%3E%3Crect x='6' y='13' width='1' height='1'/%3E%3Crect x='9' y='13' width='1' height='1'/%3E%3Crect x='13' y='13' width='1' height='1'/%3E%3Crect x='3' y='14' width='2' height='1'/%3E%3Crect x='7' y='14' width='2' height='1'/%3E%3Crect x='11' y='14' width='2' height='1'/%3E%3Crect x='5' y='15' width='6' height='1'/%3E%3C/svg%3E"); }
.px-hand { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='1' width='12' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='13' y='2' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='8' height='1'/%3E%3Crect x='13' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='13' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='8' height='1'/%3E%3Crect x='13' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='13' y='6' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='8' height='1'/%3E%3Crect x='13' y='7' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='13' y='8' width='1' height='1'/%3E%3Crect x='2' y='9' width='1' height='1'/%3E%3Crect x='4' y='9' width='5' height='1'/%3E%3Crect x='13' y='9' width='1' height='1'/%3E%3Crect x='2' y='10' width='1' height='1'/%3E%3Crect x='13' y='10' width='1' height='1'/%3E%3Crect x='2' y='11' width='12' height='1'/%3E%3C/svg%3E"); }
.px-home { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1'/%3E%3Crect x='6' y='2' width='4' height='1'/%3E%3Crect x='5' y='3' width='6' height='1'/%3E%3Crect x='4' y='4' width='8' height='1'/%3E%3Crect x='3' y='5' width='10' height='1'/%3E%3Crect x='2' y='6' width='12' height='1'/%3E%3Crect x='1' y='7' width='14' height='1'/%3E%3Crect x='3' y='8' width='10' height='1'/%3E%3Crect x='3' y='9' width='10' height='1'/%3E%3Crect x='3' y='10' width='3' height='1'/%3E%3Crect x='10' y='10' width='3' height='1'/%3E%3Crect x='3' y='11' width='3' height='1'/%3E%3Crect x='10' y='11' width='3' height='1'/%3E%3Crect x='3' y='12' width='3' height='1'/%3E%3Crect x='10' y='12' width='3' height='1'/%3E%3Crect x='3' y='13' width='3' height='1'/%3E%3Crect x='10' y='13' width='3' height='1'/%3E%3C/svg%3E"); }
.px-last { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='4' y='3' width='2' height='1'/%3E%3Crect x='12' y='3' width='2' height='1'/%3E%3Crect x='4' y='4' width='4' height='1'/%3E%3Crect x='12' y='4' width='2' height='1'/%3E%3Crect x='4' y='5' width='6' height='1'/%3E%3Crect x='12' y='5' width='2' height='1'/%3E%3Crect x='4' y='6' width='7' height='1'/%3E%3Crect x='12' y='6' width='2' height='1'/%3E%3Crect x='4' y='7' width='10' height='1'/%3E%3Crect x='4' y='8' width='10' height='1'/%3E%3Crect x='4' y='9' width='7' height='1'/%3E%3Crect x='12' y='9' width='2' height='1'/%3E%3Crect x='4' y='10' width='6' height='1'/%3E%3Crect x='12' y='10' width='2' height='1'/%3E%3Crect x='4' y='11' width='4' height='1'/%3E%3Crect x='12' y='11' width='2' height='1'/%3E%3Crect x='4' y='12' width='2' height='1'/%3E%3Crect x='12' y='12' width='2' height='1'/%3E%3C/svg%3E"); }
.px-leave { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='8' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='8' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='12' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='12' y='5' width='2' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='10' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='5' y='7' width='11' height='1'/%3E%3Crect x='1' y='8' width='1' height='1'/%3E%3Crect x='5' y='8' width='10' height='1'/%3E%3Crect x='1' y='9' width='1' height='1'/%3E%3Crect x='8' y='9' width='1' height='1'/%3E%3Crect x='12' y='9' width='2' height='1'/%3E%3Crect x='1' y='10' width='1' height='1'/%3E%3Crect x='8' y='10' width='1' height='1'/%3E%3Crect x='12' y='10' width='1' height='1'/%3E%3Crect x='1' y='11' width='1' height='1'/%3E%3Crect x='8' y='11' width='1' height='1'/%3E%3Crect x='1' y='12' width='1' height='1'/%3E%3Crect x='8' y='12' width='1' height='1'/%3E%3Crect x='1' y='13' width='8' height='1'/%3E%3C/svg%3E"); }
.px-menu { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='3' width='12' height='1'/%3E%3Crect x='2' y='4' width='12' height='1'/%3E%3Crect x='2' y='7' width='12' height='1'/%3E%3Crect x='2' y='8' width='12' height='1'/%3E%3Crect x='2' y='11' width='12' height='1'/%3E%3Crect x='2' y='12' width='12' height='1'/%3E%3C/svg%3E"); }
.px-new { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1'/%3E%3Crect x='7' y='2' width='2' height='1'/%3E%3Crect x='6' y='3' width='4' height='1'/%3E%3Crect x='6' y='4' width='4' height='1'/%3E%3Crect x='5' y='5' width='6' height='1'/%3E%3Crect x='3' y='6' width='10' height='1'/%3E%3Crect x='1' y='7' width='14' height='1'/%3E%3Crect x='1' y='8' width='14' height='1'/%3E%3Crect x='3' y='9' width='10' height='1'/%3E%3Crect x='5' y='10' width='6' height='1'/%3E%3Crect x='6' y='11' width='4' height='1'/%3E%3Crect x='6' y='12' width='4' height='1'/%3E%3Crect x='7' y='13' width='2' height='1'/%3E%3Crect x='7' y='14' width='2' height='1'/%3E%3C/svg%3E"); }
.px-picture { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='14' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='14' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='2' height='1'/%3E%3Crect x='14' y='3' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='2' height='1'/%3E%3Crect x='14' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='14' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='14' y='6' width='1' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='8' y='7' width='3' height='1'/%3E%3Crect x='14' y='7' width='1' height='1'/%3E%3Crect x='1' y='8' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='5' height='1'/%3E%3Crect x='14' y='8' width='1' height='1'/%3E%3Crect x='1' y='9' width='1' height='1'/%3E%3Crect x='3' y='9' width='11' height='1'/%3E%3Crect x='15' y='9' width='1' height='1'/%3E%3Crect x='1' y='10' width='13' height='1'/%3E%3Crect x='1' y='11' width='14' height='1'/%3E%3C/svg%3E"); }
.px-play { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='3' y='2' width='2' height='1'/%3E%3Crect x='3' y='3' width='4' height='1'/%3E%3Crect x='3' y='4' width='6' height='1'/%3E%3Crect x='3' y='5' width='8' height='1'/%3E%3Crect x='3' y='6' width='10' height='1'/%3E%3Crect x='3' y='7' width='11' height='1'/%3E%3Crect x='3' y='8' width='11' height='1'/%3E%3Crect x='3' y='9' width='10' height='1'/%3E%3Crect x='3' y='10' width='8' height='1'/%3E%3Crect x='3' y='11' width='6' height='1'/%3E%3Crect x='3' y='12' width='4' height='1'/%3E%3Crect x='3' y='13' width='2' height='1'/%3E%3C/svg%3E"); }
.px-prev { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='11' y='2' width='2' height='1'/%3E%3Crect x='9' y='3' width='4' height='1'/%3E%3Crect x='7' y='4' width='6' height='1'/%3E%3Crect x='5' y='5' width='8' height='1'/%3E%3Crect x='3' y='6' width='10' height='1'/%3E%3Crect x='2' y='7' width='11' height='1'/%3E%3Crect x='2' y='8' width='11' height='1'/%3E%3Crect x='3' y='9' width='10' height='1'/%3E%3Crect x='5' y='10' width='8' height='1'/%3E%3Crect x='7' y='11' width='6' height='1'/%3E%3Crect x='9' y='12' width='4' height='1'/%3E%3Crect x='11' y='13' width='2' height='1'/%3E%3C/svg%3E"); }
.px-star { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1'/%3E%3Crect x='7' y='2' width='2' height='1'/%3E%3Crect x='6' y='3' width='4' height='1'/%3E%3Crect x='6' y='4' width='4' height='1'/%3E%3Crect x='0' y='5' width='16' height='1'/%3E%3Crect x='1' y='6' width='14' height='1'/%3E%3Crect x='2' y='7' width='12' height='1'/%3E%3Crect x='3' y='8' width='10' height='1'/%3E%3Crect x='3' y='9' width='10' height='1'/%3E%3Crect x='2' y='10' width='4' height='1'/%3E%3Crect x='10' y='10' width='4' height='1'/%3E%3Crect x='1' y='11' width='4' height='1'/%3E%3Crect x='11' y='11' width='4' height='1'/%3E%3Crect x='1' y='12' width='2' height='1'/%3E%3Crect x='13' y='12' width='2' height='1'/%3E%3C/svg%3E"); }
.px-table { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1'/%3E%3Crect x='2' y='3' width='12' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='13' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='13' y='5' width='1' height='1'/%3E%3Crect x='15' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='13' y='6' width='1' height='1'/%3E%3Crect x='15' y='6' width='1' height='1'/%3E%3Crect x='0' y='7' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='13' y='7' width='1' height='1'/%3E%3Crect x='15' y='7' width='1' height='1'/%3E%3Crect x='0' y='8' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='13' y='8' width='1' height='1'/%3E%3Crect x='15' y='8' width='1' height='1'/%3E%3Crect x='0' y='9' width='1' height='1'/%3E%3Crect x='2' y='9' width='1' height='1'/%3E%3Crect x='13' y='9' width='1' height='1'/%3E%3Crect x='15' y='9' width='1' height='1'/%3E%3Crect x='2' y='10' width='1' height='1'/%3E%3Crect x='13' y='10' width='1' height='1'/%3E%3Crect x='2' y='11' width='12' height='1'/%3E%3Crect x='5' y='13' width='6' height='1'/%3E%3C/svg%3E"); }
.px-tiles { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='4' height='1'/%3E%3Crect x='6' y='1' width='4' height='1'/%3E%3Crect x='11' y='1' width='4' height='1'/%3E%3Crect x='1' y='2' width='4' height='1'/%3E%3Crect x='6' y='2' width='4' height='1'/%3E%3Crect x='11' y='2' width='4' height='1'/%3E%3Crect x='1' y='3' width='4' height='1'/%3E%3Crect x='6' y='3' width='4' height='1'/%3E%3Crect x='11' y='3' width='4' height='1'/%3E%3Crect x='1' y='4' width='4' height='1'/%3E%3Crect x='6' y='4' width='4' height='1'/%3E%3Crect x='11' y='4' width='4' height='1'/%3E%3Crect x='1' y='6' width='4' height='1'/%3E%3Crect x='6' y='6' width='4' height='1'/%3E%3Crect x='11' y='6' width='4' height='1'/%3E%3Crect x='1' y='7' width='4' height='1'/%3E%3Crect x='6' y='7' width='4' height='1'/%3E%3Crect x='11' y='7' width='4' height='1'/%3E%3Crect x='1' y='8' width='4' height='1'/%3E%3Crect x='6' y='8' width='4' height='1'/%3E%3Crect x='11' y='8' width='4' height='1'/%3E%3Crect x='1' y='9' width='4' height='1'/%3E%3Crect x='6' y='9' width='4' height='1'/%3E%3Crect x='11' y='9' width='4' height='1'/%3E%3Crect x='1' y='11' width='4' height='1'/%3E%3Crect x='6' y='11' width='4' height='1'/%3E%3Crect x='11' y='11' width='4' height='1'/%3E%3Crect x='1' y='12' width='4' height='1'/%3E%3Crect x='6' y='12' width='4' height='1'/%3E%3Crect x='11' y='12' width='4' height='1'/%3E%3Crect x='1' y='13' width='4' height='1'/%3E%3Crect x='6' y='13' width='4' height='1'/%3E%3Crect x='11' y='13' width='4' height='1'/%3E%3Crect x='1' y='14' width='4' height='1'/%3E%3Crect x='6' y='14' width='4' height='1'/%3E%3Crect x='11' y='14' width='4' height='1'/%3E%3C/svg%3E"); }
.px-trophy { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='2' y='1' width='11' height='1'/%3E%3Crect x='2' y='2' width='11' height='1'/%3E%3Crect x='1' y='3' width='2' height='1'/%3E%3Crect x='4' y='3' width='7' height='1'/%3E%3Crect x='12' y='3' width='2' height='1'/%3E%3Crect x='1' y='4' width='2' height='1'/%3E%3Crect x='4' y='4' width='7' height='1'/%3E%3Crect x='12' y='4' width='2' height='1'/%3E%3Crect x='1' y='5' width='2' height='1'/%3E%3Crect x='4' y='5' width='7' height='1'/%3E%3Crect x='12' y='5' width='2' height='1'/%3E%3Crect x='1' y='6' width='2' height='1'/%3E%3Crect x='4' y='6' width='7' height='1'/%3E%3Crect x='12' y='6' width='2' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='5' y='7' width='5' height='1'/%3E%3Crect x='12' y='7' width='1' height='1'/%3E%3Crect x='5' y='8' width='5' height='1'/%3E%3Crect x='6' y='9' width='3' height='1'/%3E%3Crect x='6' y='10' width='3' height='1'/%3E%3Crect x='4' y='11' width='7' height='1'/%3E%3Crect x='3' y='12' width='9' height='1'/%3E%3Crect x='3' y='13' width='9' height='1'/%3E%3C/svg%3E"); }
/* ── end px icons ── */
