/* the lab's type trials: ?font=a|b|c puts one family on everything (html[data-font]); sizes sit on the font's own pixel */
html[data-font="a"] { --f: "Alegreya Sans", Georgia, serif; --caps: "Jersey 10", sans-serif;
  --t-title: 400 40px/1.1 "Jersey 10", sans-serif; --t-section: 400 30px/1.15 "Jersey 10", sans-serif; --t-body: 500 18px/1.5 var(--f); --t-button: 400 22px/1 var(--caps); --t-label: 400 20px/1.1 var(--caps); --t-small: 500 16px/1.45 var(--f); --t-num: 400 22px/1 var(--caps); --t-num-big: 400 42px/1 var(--caps); }
html[data-font="b"] { --f: "Tiny5", sans-serif; --caps: "Tiny5", sans-serif;
  --t-title: 400 30px/1.2 var(--f); --t-section: 400 24px/1.25 var(--f); --t-body: 400 18px/1.5 var(--f); --t-button: 400 18px/1 var(--f); --t-label: 400 15px/1.2 var(--f); --t-small: 400 15px/1.45 var(--f); --t-num: 400 18px/1 var(--f); --t-num-big: 400 30px/1 var(--f); }
html[data-font="c"] { --f: "Pixelify Sans", sans-serif; --caps: "Pixelify Sans", sans-serif;
  --t-title: 600 32px/1.15 var(--f); --t-section: 600 24px/1.2 var(--f); --t-body: 400 16px/1.45 var(--f); --t-button: 500 16px/1 var(--f); --t-label: 500 16px/1.15 var(--f); --t-small: 400 16px/1.35 var(--f); --t-num: 500 16px/1 var(--f); --t-num-big: 600 32px/1 var(--f); }
html[data-font] * { letter-spacing: 0 !important; text-transform: none; }
/* v3: How to play on wood, its letters light; the ? on a brass stud */
.howbtn { color: #f2e6cc !important; text-shadow: 1px 1px 0 #1b1216; }
.howbtn b { background: #c8902a !important; color: #2a1406 !important; box-shadow: inset 0 1px 0 #fff0a8, inset 0 -1px 0 #6a4410; }

/* v5: sentences in Alegreya Sans, a size that reads; titles, labels, buttons and numbers in the pixel face */
html[data-font="a"] .modal p, html[data-font="a"] .modal li, html[data-font="a"] .modal dd, html[data-font="a"] .small, html[data-font="a"] .muted { font-family: var(--f) !important; line-height: 1.45 !important; }
html[data-font="a"] .modal h2, html[data-font="a"] .modal h3, html[data-font="a"] .modal summary, html[data-font="a"] .btn, html[data-font="a"] .label, html[data-font="a"] .num { font-family: var(--caps) !important; }
html[data-font="a"] .modal .small { font-size: 16px !important; } html[data-font="a"] .modal p { font-size: 17px; }
/* the Bank: a clear opening, section heads, room between the parts */
.bk-intro { display: grid; gap: 6px; margin: 0 0 18px; padding: 14px 16px; background: rgba(255,200,110,.07); box-shadow: inset 3px 0 0 #c8902a; }
.bk-intro b { font: 400 26px/1.1 "Jersey 10", sans-serif; color: #ffd27a; letter-spacing: .5px; } .bk-intro span { font: 500 17px/1.5 "Alegreya Sans", serif; color: #e8dcc8; }
.bk-h { margin: 22px 0 10px !important; font: 400 26px/1 "Jersey 10", sans-serif !important; color: #ffd27a; }
.bk-pool > summary { font: 400 22px/1 "Jersey 10", sans-serif !important; color: #c77dff; padding: 12px 14px; cursor: pointer; }
/* v6: the % sign sits after its number, in the number's own face (it was pulled back over the digit) */
html[data-font] .pc, html[data-font] .podds .pc { font-family: inherit !important; font-weight: inherit !important; margin-left: 0 !important; }
/* numbers inside a sentence read in the sentence's face, bold, the same size */
html[data-font="a"] p .num, html[data-font="a"] li .num, html[data-font="a"] .small .num, html[data-font="a"] .muted .num, html[data-font="a"] span.small .num { font-family: var(--f) !important; font-weight: 800 !important; font-size: inherit !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums; }
/* v7 trials: one family on everything, sentences, numbers, buttons and titles alike (?font=p Pixelify Sans, ?font=j Jersey 10) */
html[data-font="p"] { --f: "Pixelify Sans", sans-serif; --caps: "Pixelify Sans", sans-serif;
  --t-title: 700 34px/1.15 var(--f); --t-section: 600 26px/1.2 var(--f); --t-body: 400 18px/1.45 var(--f); --t-button: 600 19px/1 var(--f); --t-label: 500 17px/1.15 var(--f); --t-small: 400 16px/1.4 var(--f); --t-num: 600 19px/1 var(--f); --t-num-big: 700 38px/1 var(--f); }
html[data-font="p"] body, html[data-font="p"] body *:not(canvas) { font-family: "Pixelify Sans", sans-serif !important; }
html[data-font="p"] .modal p, html[data-font="p"] .modal li, html[data-font="p"] .small, html[data-font="p"] .muted { line-height: 1.45 !important; }
html[data-font="p"] b, html[data-font="p"] strong, html[data-font="p"] .num { font-weight: 600 !important; }
html[data-font="j"] { --f: "Jersey 10", sans-serif; --caps: "Jersey 10", sans-serif;
  --t-title: 400 42px/1.1 var(--f); --t-section: 400 32px/1.15 var(--f); --t-body: 400 22px/1.35 var(--f); --t-button: 400 24px/1 var(--f); --t-label: 400 21px/1.1 var(--f); --t-small: 400 20px/1.35 var(--f); --t-num: 400 24px/1 var(--f); --t-num-big: 400 44px/1 var(--f); }
html[data-font="j"] body, html[data-font="j"] body *:not(canvas) { font-family: "Jersey 10", sans-serif !important; font-weight: 400 !important; font-size-adjust: 0.6 !important; }
html[data-font="j"] .modal p, html[data-font="j"] .modal li, html[data-font="j"] .small, html[data-font="j"] .muted { line-height: 1.35 !important; }
/* v8 trials, one family on everything: ?font=o Pixel Operator (CC0, a 16 px grid), t Tiny5, d DotGothic16, h Handjet */
@font-face { font-family: "Pixel Operator"; src: url("../fonts/PixelOperator.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixel Operator"; src: url("../fonts/PixelOperator-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
html[data-font="o"] { --f: "Pixel Operator", sans-serif; --caps: "Pixel Operator", sans-serif; --t-title: 700 32px/1.1 var(--f); --t-section: 700 32px/1.1 var(--f); --t-body: 400 16px/1.4 var(--f); --t-button: 700 16px/1 var(--f); --t-label: 400 16px/1.1 var(--f); --t-small: 400 16px/1.35 var(--f); --t-num: 700 16px/1 var(--f); --t-num-big: 700 32px/1 var(--f); }
html[data-font="t"] { --f: "Tiny5", sans-serif; --caps: "Tiny5", sans-serif; --t-title: 400 30px/1.15 var(--f); --t-section: 400 24px/1.2 var(--f); --t-body: 400 18px/1.45 var(--f); --t-button: 400 18px/1 var(--f); --t-label: 400 16px/1.15 var(--f); --t-small: 400 16px/1.4 var(--f); --t-num: 400 18px/1 var(--f); --t-num-big: 400 32px/1 var(--f); }
html[data-font="d"] { --f: "DotGothic16", sans-serif; --caps: "DotGothic16", sans-serif; --t-title: 400 32px/1.15 var(--f); --t-section: 400 24px/1.2 var(--f); --t-body: 400 16px/1.5 var(--f); --t-button: 400 16px/1 var(--f); --t-label: 400 16px/1.15 var(--f); --t-small: 400 16px/1.45 var(--f); --t-num: 400 16px/1 var(--f); --t-num-big: 400 32px/1 var(--f); }
html[data-font="h"] { --f: "Handjet", sans-serif; --caps: "Handjet", sans-serif; --t-title: 500 38px/1.1 var(--f); --t-section: 500 28px/1.15 var(--f); --t-body: 400 21px/1.35 var(--f); --t-button: 500 21px/1 var(--f); --t-label: 400 19px/1.1 var(--f); --t-small: 400 19px/1.35 var(--f); --t-num: 500 21px/1 var(--f); --t-num-big: 600 40px/1 var(--f); }
html[data-font="o"] body, html[data-font="o"] body *:not(canvas) { font-family: "Pixel Operator", sans-serif !important; }
html[data-font="t"] body, html[data-font="t"] body *:not(canvas) { font-family: "Tiny5", sans-serif !important; }
html[data-font="d"] body, html[data-font="d"] body *:not(canvas) { font-family: "DotGothic16", sans-serif !important; }
html[data-font="h"] body, html[data-font="h"] body *:not(canvas) { font-family: "Handjet", sans-serif !important; }
html[data-font="o"] b, html[data-font="o"] strong, html[data-font="o"] .num, html[data-font="o"] h2, html[data-font="o"] h3, html[data-font="o"] .btn { font-weight: 700 !important; }
html[data-font="d"] *, html[data-font="t"] * { font-weight: 400 !important; }
html[data-font="o"] .modal p, html[data-font="o"] .modal li, html[data-font="o"] .small, html[data-font="t"] .modal p, html[data-font="t"] .small, html[data-font="d"] .modal p, html[data-font="d"] .small, html[data-font="h"] .modal p, html[data-font="h"] .small { line-height: 1.45 !important; }
/* the same face drawn on an 8 px grid, for 24 px (three to a pixel): buttons, heads, the top bar */
@font-face { font-family: "Pixel Operator 8"; src: url("../fonts/PixelOperator8.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixel Operator 8"; src: url("../fonts/PixelOperator8-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

html[data-font="o"] .modal h2, html[data-font="o"] .modal .mtitle, html[data-font="o"] .modal header h2 { font-size: 32px !important; }
html[data-font="o"] .modal div, html[data-font="o"] .modal p, html[data-font="o"] .modal li, html[data-font="o"] .modal span, html[data-font="o"] .modal small, html[data-font="o"] .modal dd { line-height: 1.5 !important; }
html[data-font="o"] .modal .btn, html[data-font="o"] .modal button, html[data-font="o"] .modal .btn *, html[data-font="o"] .modal button * { line-height: 1.15 !important; }
/* a phone: the 16 px-grid cut (finer, three device pixels to one of its pixels on a dense screen) */
/* (a phone used the 16 px-grid cut; now every screen takes Pixel Operator 8 at its own pixel) */
/* the step note fits its line; the paused furnace says so first */
.quest { width: max-content; max-width: min(360px, calc(100vw - 32px)); } .quest .qtext { white-space: nowrap; }
.stopnote { display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 16px; background: rgba(200,48,42,.12); box-shadow: inset 4px 0 0 #c8302a; }
.stopnote b { color: #ff7a5a; letter-spacing: 1px; } .stopnote span { color: #e8dcc8; }
/* the Odds tabs: the price on its own line, never broken in two */
.otab small.num { display: block; white-space: nowrap; font-size: 16px !important; line-height: 1.3 !important; }
/* the flow diagrams: every row's label on one line each, so a row never runs into the next */
.flowlab li span, .flowlab li small { white-space: nowrap; line-height: 1.2 !important; display: block; }
.flowlab li { overflow: visible; }
@media (max-width: 639px) { .flowlab li small { display: none !important; } }
/* the top bar and the step note: their sizes set here (not by the script), so their skins are measured once */
@media (min-width: 900px) { html[data-font="o"] .hud *, html[data-font="o"] .quest .qtext { font-size: 24px !important; } html[data-font="o"] .quest .qlabel { font-size: 16px !important; } }
@media (max-width: 899px) { html[data-font="o"] .hud *, html[data-font="o"] .quest * { font-size: 16px !important; } }
/* ---------------------------------------------------------------- the machine's packs, plainer (lab v1)
   A card reads top to bottom: its tag, the art, the name, its numbers in even rows (what on the left, how much on the
   right), then the amount and one Open button with the price, pinned to the card's foot so every card in a row ends
   level. No long descriptions, no credits; the struck-out old odds go (the boost badge says it). */
html[data-font="o"] .pack .pdesc, html[data-font="o"] .pack .pcredit, html[data-font="o"] .pack .podds s { display: none !important; }
html[data-font="o"] .pack { padding: 34px 10px 10px; gap: 8px; }
html[data-font="o"] .pack .ptag { height: 26px; font-size: 16px !important; letter-spacing: 1px; }
html[data-font="o"] .pack .pname { text-align: center; font-size: 24px !important; line-height: 1.1 !important; color: var(--paper); }
html[data-font="o"] .pack .podds { gap: 2px; }
html[data-font="o"] .pack .podds li { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; min-height: 32px; }
html[data-font="o"] .pack .podds li > span { font-size: 16px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[data-font="o"] .pack .podds li > b { font-size: 16px !important; min-width: 0; text-align: right; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
html[data-font="o"] .pack .podds li > b * { font-size: 16px !important; }
html[data-font="o"] .pack .pqty { margin-top: auto; }
html[data-font="o"] .pack .pqty button { font-size: 16px !important; }
html[data-font="o"] .pack .pqty + .pbtn, html[data-font="o"] .pack .pbtn:only-of-type { margin-top: 0; }
html[data-font="o"] .pack .pbtn { margin-top: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 8px; }
html[data-font="o"] .pack .pbtn .pa { font-size: 16px !important; line-height: 1 !important; }
html[data-font="o"] .pack .pbtn .pp, html[data-font="o"] .pack .pbtn .pp * { font-size: 24px !important; line-height: 1 !important; }
html[data-font="o"] .pack .pusd { font-size: 16px !important; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
html[data-font="o"] .pack .pusd * { font-size: 16px !important; }
/* the Bank's "Right now": four tiles, each an icon, what it is, one big number, one short line; nothing wraps oddly */
html[data-font="o"] .pots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html[data-font="o"] .pot { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 4px; align-items: center; padding: 14px 14px 14px 12px; }
html[data-font="o"] .pot img { grid-row: 1 / 4; width: 48px !important; height: 48px !important; image-rendering: pixelated; align-self: center; }
html[data-font="o"] .pot .pn { font-size: 16px !important; color: var(--c) !important; letter-spacing: 1px; text-transform: uppercase; }
html[data-font="o"] .pot .pv, html[data-font="o"] .pot .pv * { font-size: 24px !important; line-height: 1.1 !important; white-space: nowrap; }
html[data-font="o"] .pot .pv small, html[data-font="o"] .pot .pv .sym, html[data-font="o"] .pot .pv .usdl { font-size: 16px !important; color: var(--muted); }
html[data-font="o"] .pot .pv { overflow: hidden; text-overflow: ellipsis; }
html[data-font="o"] .pot .pw, html[data-font="o"] .pot .pw * { font-size: 16px !important; color: var(--paper-2); line-height: 1.3 !important; }
@media (max-width: 639px) { html[data-font="o"] .pots { grid-template-columns: 1fr; } html[data-font="o"] .pot .pv, html[data-font="o"] .pot .pv * { font-size: 16px !important; } }
/* the forge's rules: recipes as tiles of an icon, a name and one line */
html[data-font="o"] .fhrec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-font="o"] .fhr { padding: 10px 12px; } html[data-font="o"] .fhr b { display: block; color: var(--amber-l); margin-bottom: 4px; } html[data-font="o"] .fhr p { margin: 0; color: var(--paper-2); }
@media (max-width: 639px) { html[data-font="o"] .fhrec { grid-template-columns: 1fr; } }
/* the Telegram button shows its plane: the NEW tag sits off its corner, small */
html[data-font="o"] .tgbtn .tgnew { top: -14px !important; right: -30px !important; left: auto !important; padding: 2px 4px 1px !important; font-size: 16px !important; line-height: 1 !important; }
/* How to play: the little films lit up so they read, captions in two sizes */
.cpanel canvas { filter: brightness(1.35) saturate(1.1); }
html[data-font="o"] .cpanel figcaption b { font-size: 24px !important; } html[data-font="o"] .cpanel figcaption span, html[data-font="o"] .cpanel figcaption span * { font-size: 16px !important; line-height: 1.4 !important; }
html[data-font="o"] .clede { font-size: 24px !important; }
@media (max-width: 639px) { html[data-font="o"] .cpanel figcaption b { font-size: 16px !important; } }
/* the forge's three steps: short, centred */
html[data-font="o"] .fhstep figcaption small { font-size: 16px !important; }
@media (min-width: 900px) { html[data-font="o"] .cpanel figcaption span, html[data-font="o"] .cpanel figcaption span * { font-size: 24px !important; line-height: 1.3 !important; } html[data-font="o"] .fhstep figcaption small { font-size: 24px !important; } }
/* Kennel mine holders: three big numbers, a short table with share bars, the rest folded */
.hstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.hstats > div { display: grid; gap: 2px; padding: 12px 14px; background: rgba(255,200,110,.06); box-shadow: inset 0 0 0 2px var(--line-2); }
html[data-font="o"] .hstats small { font-size: 16px !important; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
html[data-font="o"] .hstats b { font-size: 32px !important; line-height: 1.05 !important; color: var(--amber-l); }
html[data-font="o"] .hstats span { font-size: 16px !important; color: var(--paper-2); }
.hlede { margin: 0 0 10px; color: var(--paper-2); } .htiers { margin: 0 0 14px; }
.htable th, .htable td { padding: 10px 8px !important; white-space: nowrap; }
.htable tbody tr:nth-child(odd) { background: rgba(255,255,255,.025); } .htable tbody tr.me { background: rgba(255,200,110,.12) !important; box-shadow: inset 4px 0 0 var(--amber); }
.htable tbody tr:nth-child(1) .hn { color: #ffd23a; } .htable tbody tr:nth-child(2) .hn { color: #d8dce4; } .htable tbody tr:nth-child(3) .hn { color: #e0904a; }
.htable .hx { color: #5fd18b; }
@media (max-width: 639px) { .hstats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } html[data-font="o"] .hstats b { font-size: 16px !important; } .hbar { width: 40px; } .htable .hs { min-width: 0; } }
/* Fresh finds: wide, two lines a find */
.ffeed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ffeed li { display: grid !important; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "d n a" "d m a"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 12px !important; background: rgba(255,255,255,.025); }
.ffeed li .tdot { grid-area: d; width: 10px; height: 10px; align-self: start; margin-top: 6px; } .ffeed li .fname { grid-area: n; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--paper); }
.ffeed li .fmeta { grid-area: m; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ffeed li .fmeta .fpack { margin-left: 8px; }
.ffeed li .ago { grid-area: a; color: var(--muted); }
/* nothing in a window runs past its box: words break where they must, grid cells can shrink, tiles wrap */
.modal .panel :is(p, li, dd, dt, small, span, b, div, a, summary) { overflow-wrap: break-word; }
.modal .panel :is(.pots, .mtiers, .stats, .fhrec, .shop, .comic, .otabs, .fhperk) > * { min-width: 0; }
.mtiers { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important; gap: 8px !important; }
.mtiers > div { padding: 10px 8px !important; text-align: center; display: grid; gap: 4px; }
html[data-font="o"] .mtiers .mt, html[data-font="o"] .mtiers small { font-size: 16px !important; white-space: normal; } html[data-font="o"] .mtiers b { font-size: 24px !important; }
@media (max-width: 639px) { html[data-font="o"] .mtiers b { font-size: 16px !important; } .mtiers { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)) !important; } }
/* the kennel's cards: names, stats and buttons stay inside the card */
.pup.small-card { min-width: 0; overflow: hidden; } .pup.small-card * { max-width: 100%; }
html[data-font="o"] .pup.small-card .pn, html[data-font="o"] .pup.small-card .tr, html[data-font="o"] .pup.small-card .digday, html[data-font="o"] .pup.small-card small { font-size: 16px !important; line-height: 1.3 !important; white-space: normal; }
html[data-font="o"] .pup.small-card .btn { font-size: 16px !important; white-space: normal; line-height: 1.15 !important; padding: 6px 6px !important; height: auto !important; min-height: 32px; }
/* holders: the table readable on a desktop */
html[data-font="o"] .ffeed li .fname, html[data-font="o"] .ffeed li .fname * { font-size: 24px !important; line-height: 1.2 !important; }
html[data-font="o"] .ffeed li .fname small { font-size: 16px !important; } html[data-font="o"] .ffeed li .fname .fmult { color: var(--amber-l); }
html[data-font="o"] .ffeed li .fmeta, html[data-font="o"] .ffeed li .fmeta *, html[data-font="o"] .ffeed li .ago { font-size: 16px !important; }
@media (max-width: 639px) { html[data-font="o"] .ffeed li .fname, html[data-font="o"] .ffeed li .fname * { font-size: 16px !important; } }
/* the Season catalogue's cards: small type that fits the card, the name in two lines at most */
html[data-font="o"] .fpiece, html[data-font="o"] .fpiece * { font-size: 16px !important; line-height: 1.3 !important; }
html[data-font="o"] .fpiece b, html[data-font="o"] .fpiece strong { font-size: 16px !important; }
.fpiece { min-width: 0; overflow: hidden; }
/* Kennel mine holders, the prod layout made easier on the eye: the intro and the tier rows in boxes of their own, the
   table with room in its rows, numbers aligned right, zebra rows, the top three ranked in gold, silver and bronze */
html[data-font="o"] .panel .lede { font-size: 16px !important; line-height: 1.5 !important; margin: 0 0 12px; }
html[data-font="o"] .digrow, html[data-font="o"] .digrow * { font-size: 16px !important; line-height: 1.7 !important; }
.digrow { padding: 10px 12px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 2px var(--line-2); } .digrow > span, .panel .tw { display: inline-block; margin-right: 14px; white-space: nowrap; }
html[data-font="o"] .htable th { font-size: 16px !important; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
html[data-font="o"] .htable td, html[data-font="o"] .htable td * { font-size: 16px !important; }
.htable td, .htable th { padding: 9px 8px !important; white-space: nowrap; } .htable td.num, .htable th.hp, .htable th.hs, .htable th.hpm, .htable th.hx { text-align: right; }
.htable tbody tr:nth-child(odd) { background: rgba(255,255,255,.03); } .htable tbody tr.me { background: rgba(255,200,110,.14) !important; box-shadow: inset 4px 0 0 var(--amber); }
.htable tbody tr:nth-child(1) .hn { color: #ffd23a; } .htable tbody tr:nth-child(2) .hn { color: #d8dce4; } .htable tbody tr:nth-child(3) .hn { color: #e0904a; }
.htable .hpm { color: #5fd18b; } .htable .hspent { color: #ffb84a; } .htable .hs { color: var(--paper); }
/* the socials note: its lines never cut */
.socials { min-width: max-content; } .socials a { white-space: nowrap; }
html[data-font="o"] .socials, html[data-font="o"] .socials * { font-size: 16px !important; }
/* Fresh finds (prod layout): the name gets the room, the pack under it when it does not fit */
.feed li { flex-wrap: wrap; row-gap: 2px; } .feed li .fname { min-width: 0; }
@media (min-width: 900px) { html[data-font="o"] .digrow, html[data-font="o"] .digrow * { font-size: 24px !important; line-height: 1.5 !important; } }
/* a big screen (1440 px tall and up): the top bar, the step note, the sound, the back button and the windows grow with the world */
@media (min-height: 1300px) and (min-width: 1800px) { .hud, .quest, .vol, .roomback { zoom: 1.5; } }
/* a phone: the holders table keeps what matters (rank, wallet, shibas, share, per minute, spent) and fits the window */
@media (max-width: 639px) { .htable .hp, .htable .hx, .htable th:nth-last-child(2), .htable td:nth-last-child(2) { display: none; }
  .htable td, .htable th { padding: 8px 4px !important; } .htable .ht .tdot { width: 6px; height: 6px; margin-right: 1px; } .hwrap { overflow-x: hidden; } .htable { width: 100%; } }
/* Fresh finds (prod layout): what was found big, who and where smaller, the rows with room */
html[data-font="o"] .feed li { padding: 10px 4px !important; gap: 10px; align-items: center; }
html[data-font="o"] .feed li, html[data-font="o"] .feed li * { font-size: 16px !important; line-height: 1.3 !important; }
@media (min-width: 900px) { html[data-font="o"] .feed li .fname, html[data-font="o"] .feed li .fname * { font-size: 24px !important; } html[data-font="o"] .feed li .fname small { font-size: 16px !important; } }
html[data-font="o"] .feed li .who { color: var(--paper-2); }
.feed li { position: relative; padding-right: 52px !important; } .feed li .ago { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); white-space: nowrap; }
/* Fresh finds: one line a find; a name too long for the line is cut with dots, never wrapped */
.feed li { flex-wrap: nowrap !important; } .feed li .fname { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .feed li > :not(.fname):not(.ago) { flex: none; white-space: nowrap; }
/* holders: the table always fits its window (16 px type, the less needed columns go first as the window narrows) */
.hwrap { overflow-x: auto; } .htable { width: 100%; }
@media (max-width: 1100px) { .htable th:nth-last-child(2), .htable td:nth-last-child(2) { display: none; } }
@media (max-width: 860px) { .htable .hp { display: none; } }
.feed li { overflow: hidden; } .feed li .who { flex: 0 1 auto !important; min-width: 4ch; overflow: hidden; text-overflow: ellipsis; } .feed li .fname { flex: 0 3 auto; min-width: 6ch; }
html[data-font="o"] .feed li { padding-right: 48px !important; }
/* the Forge's top board goes: the room itself is the menu (the circle, the case, the note) */
#forgePanel { display: none !important; }
/* a phone's top bar: every button one height, the NEW tag small inside the Telegram button's corner */
@media (max-width: 760px) {
  .hud .brand, .hud .tgbtn, .hud .bzbtn, .hud .howbtn, .hud #walletBtn { height: 44px !important; min-height: 44px !important; }
  .hud .tgbtn { margin-left: 8px !important; width: 44px; padding: 0 !important; } .hud .tgbtn .tgnew { top: -8px !important; right: -8px !important; font-size: 16px !important; padding: 1px 3px 0 !important; }
  .hud .hudr { gap: 6px !important; align-items: center; } .hud .bzbtn, .hud .howbtn { margin-right: 0 !important; }
}
/* packs on a phone: one clear card. The art and the name side by side, the numbers under them full width, then how
   many, the Open button and its price; nothing is placed beside the button */
@media (max-width: 760px) {
  .pack { display: grid !important; grid-template-columns: 72px minmax(0, 1fr) !important; grid-template-areas: "art name" "art odds" "qty qty" "btn btn" "usd usd" !important; column-gap: 12px !important; row-gap: 8px !important; align-items: center; }
  .pack .art, .pack .pwart { grid-area: art !important; width: 72px !important; height: auto !important; }
  .pack .pname { grid-area: name !important; text-align: left !important; align-self: end; }
  .pack .podds { grid-area: odds !important; grid-column: 1 / -1 !important; grid-row: auto !important; }
  .pack .oddsbar { display: none !important; }
  .pack .pqty { grid-area: qty !important; } .pack .pbtn { grid-area: btn !important; grid-column: 1 / -1 !important; grid-row: auto !important; } .pack .pusd { grid-area: usd !important; grid-column: 1 / -1 !important; }
  .pack .s2rush, .pack .srflag { grid-column: 1 / -1; }
}
/* the furnace's and the bank's histories keep their own layout (the one-line rule is for Fresh finds only) */
.feed.bbev li, html[data-font="o"] .feed.bbev li { flex-wrap: wrap !important; padding-right: 4px !important; overflow: visible; } .feed.bbev li .ago { position: static !important; transform: none !important; margin-left: auto; }
.feed.bbev li > * { white-space: normal !important; min-width: 0; }
/* the Turbo switch: icon and words inside one 44 px button, on every screen */
.qbtn.turbo { display: inline-flex !important; align-items: center; gap: 8px; height: 44px !important; width: auto !important; padding: 0 14px !important; overflow: hidden; }
html[data-font="o"] .qbtn.turbo, html[data-font="o"] .qbtn.turbo * { font-size: 16px !important; line-height: 1 !important; white-space: nowrap; }
.qbtn.turbo canvas, .qbtn.turbo img, .qbtn.turbo i { flex: none; max-height: 24px; }
html[data-font="o"] .qty, html[data-font="o"] .qty * { font-size: 16px !important; }
.qty { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; } .qty .qbtn.turbo { flex: none; }
.tCommon { color: #d8cfc2 !important; } .tUncommon { color: #5fd18b !important; } .tRare { color: #4fb6ff !important; } .tEpic { color: #c77dff !important; } .t1of1 { color: #ffcf3a !important; }
/* a phone, tidier: the NEW tag sits small over the Telegram button's middle (it never reaches the next button), the
   sound button is a small plate under the brand, and the expedition tag sits under the top bar, clear of the dock */
@media (max-width: 760px) {
  html[data-font] .hud .tgbtn .tgnew, .hud .tgbtn .tgnew { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; top: -9px !important; font-size: 11px !important; padding: 1px 3px 0 !important; line-height: 1.1 !important; letter-spacing: 0 !important; }
  .vol { top: calc(env(safe-area-inset-top, 0px) + 70px) !important; bottom: auto !important; left: 16px !important; right: auto !important; height: 34px !important; min-height: 0 !important; padding: 0 5px !important; transform: none !important; }
  .vol .vol-btn { width: 24px !important; height: 24px !important; } .vol .vol-btn canvas { width: 18px !important; height: 16px !important; }
  #xtrack { top: calc(env(safe-area-inset-top, 0px) + 70px) !important; bottom: auto !important; right: 8px !important; left: auto !important; padding: 4px 10px 4px 4px !important; gap: 6px !important; max-width: calc(100vw - 80px); }
  #xtrack .xi { width: 24px !important; height: 24px !important; }
  html[data-font] #xtrack, html[data-font] #xtrack * { font-size: 13px !important; line-height: 1.2 !important; }
}
/* no NEW tag on the Telegram button any more */
.tgbtn .tgnew { display: none !important; }
/* a phone in a room with the way back (top left): the sound plate moves right of it, the expedition tag below it */
@media (max-width: 760px) {
  body:has(#roomBack:not([hidden])) .vol { left: 164px !important; }
  body:has(#roomBack:not([hidden])) #xtrack { top: calc(env(safe-area-inset-top, 0px) + 180px) !important; }
}
@media (max-width: 760px) { body:has(#minePanel:not([hidden])) .vol { top: calc(env(safe-area-inset-top, 0px) + 136px) !important; } }

/* ---------------------------------------------------------------- the Expedition Camp's windows (expui.js)
   Their own frame (rope and brass round dark canvas, --xframe from expui.js), cards in the camp's colours: a dusk violet
   cloth, brass for what you can press, each seam's colour (--rc) on what belongs to it. Pixel things at whole sizes
   only (32 or 64 css px for a 32px icon). Type: Pixel Operator 16 for words, 24 for names and numbers. */
#modal .panel:has(.xwin) { --pframe: var(--xframe); --pseam: var(--xseam); --xcard: #241c2a; --xcard2: #2e2436; --xline: #3e3046; --xtext: #f2e6cc; --xmuted: #b4a6b8; --xbrass: #e8b850; }
#modal .panel:has(.xwin) h2 { color: #ffd27a; text-shadow: 2px 2px 0 #3a1a08; }
html[data-font] #modal .xwin { color: var(--xtext); display: grid; gap: 4px; }
html[data-font] #modal .xwin, html[data-font] #modal .xwin :where(p, li, span, small, b, em, div, i, label, h4, button) { font-size: 16px !important; line-height: 1.35 !important; }
html[data-font] #modal .xwin h3 { font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .btn, html[data-font] #modal .xwin .btn * { font-size: 16px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xi { image-rendering: pixelated; flex: none; display: inline-block; vertical-align: middle; }
html[data-font] #modal .xwin .xi.s32 { width: 32px; height: 32px; } html[data-font] #modal .xwin .xi.s64 { width: 64px; height: 64px; }
html[data-font] #modal .xwin .xpc { font-style: normal; margin-left: 2px; }
html[data-font] #modal .xwin b { color: inherit; } html[data-font] #modal .xwin small { color: var(--xmuted); }
html[data-font] #modal .xwin .xusd { color: var(--xmuted); margin-left: 6px; white-space: nowrap; }
html[data-font] #modal .xwin .xbad { color: #ff9a7a; }
html[data-font] #modal .xwin .xhint { color: var(--xmuted); margin: 8px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } html[data-font] #modal .xwin .xhint b { color: var(--xtext); }
html[data-font] #modal .xwin .xlink { background: none; border: 0; padding: 0; color: #ffd27a; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
html[data-font] #modal .xwin .xdev { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 8px 12px; background: #1e2a3a; box-shadow: inset 4px 0 0 #6ab8ff; color: #d8ecff; } html[data-font] #modal .xwin .xdev b { color: #ffffff; }
html[data-font] #modal .xwin .xstep { margin-top: 14px; }
html[data-font] #modal .xwin h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; color: #ffd27a; flex-wrap: wrap; }
html[data-font] #modal .xwin h3 small { color: var(--xmuted); font-weight: 400; }
html[data-font] #modal .xwin h3 > i { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; font-style: normal; color: #3a1a08; background: #ffd23a; box-shadow: inset -2px -2px 0 #c88a14, inset 2px 2px 0 #fff0a8, 0 0 0 2px #120b08; font-size: 16px !important; }
html[data-font] #modal .xwin h4 { margin: 14px 0 8px; color: var(--xtext); font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } html[data-font] #modal .xwin h4 small { font-weight: 400; }
/* buttons that are cards: a pixel edge, lit on top, a press */
html[data-font] #modal .xwin .xseam, html[data-font] #modal .xwin .xsh, html[data-font] #modal .xwin .xslot, html[data-font] #modal .xwin .xopt, html[data-font] #modal .xwin .xitem, html[data-font] #modal .xwin .xcrew, html[data-font] #modal .xwin .xinv, html[data-font] #modal .xwin .xsp, html[data-font] #modal .xwin .xfind, html[data-font] #modal .xwin .xseamg, html[data-font] #modal .xwin .xsteps > div, html[data-font] #modal .xwin .xrisks > div, html[data-font] #modal .xwin .xreq, html[data-font] #modal .xwin .xbank, html[data-font] #modal .xwin .xkeeper, html[data-font] #modal .xwin .xbasket, html[data-font] #modal .xwin .xsum, html[data-font] #modal .xwin .xempty, html[data-font] #modal .xwin .xreveal { background: var(--xcard); box-shadow: inset 0 0 0 2px var(--xline), inset 0 2px 0 2px #4a3c52; border: 0; color: var(--xtext); }
html[data-font] #modal .xwin .xseam, html[data-font] #modal .xwin .xsh, html[data-font] #modal .xwin .xopt { cursor: pointer; text-align: left; font: inherit; transition: transform .12s, box-shadow .12s, background .12s; }
html[data-font] #modal .xwin .xseam:hover, html[data-font] #modal .xwin .xsh:not([disabled]):hover, html[data-font] #modal .xwin .xopt:not(.off):hover { transform: translateY(-2px); background: var(--xcard2); }
html[data-font] #modal .xwin .xseam:active, html[data-font] #modal .xwin .xsh:active, html[data-font] #modal .xwin .xopt:active { transform: translateY(1px); }
html[data-font] #modal .xwin .xseam:focus-visible, html[data-font] #modal .xwin .xsh:focus-visible, html[data-font] #modal .xwin .xopt:focus-visible, html[data-font] #modal .xwin .xslot:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
/* 1 · the seams */
html[data-font] #modal .xwin .xseams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html[data-font] #modal .xwin .xseam { display: grid; gap: 8px; padding: 10px; align-content: start; }
html[data-font] #modal .xwin .xseam .xart { display: block; background: #07050a; box-shadow: 0 0 0 2px #120b08; overflow: hidden; }
html[data-font] #modal .xwin .xseam .xart img { display: block; width: 100%; aspect-ratio: 96 / 72; image-rendering: pixelated; }
html[data-font] #modal .xwin .xseam > b { font-size: 24px !important; color: var(--rc); line-height: 1.1 !important; }
html[data-font] #modal .xwin .xseam .xrow2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html[data-font] #modal .xwin .xseam .xdanger { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
html[data-font] #modal .xwin .xpips { display: inline-flex; gap: 3px; } html[data-font] #modal .xwin .xpips i { width: 10px; height: 10px; background: #3a2a30; box-shadow: inset 0 0 0 1px #120b08; } html[data-font] #modal .xwin .xpips i.on { background: var(--pc); box-shadow: inset -1px -1px 0 rgba(0,0,0,.35), inset 0 0 0 1px #120b08; }
html[data-font] #modal .xwin .xseam .xfinds { display: flex; gap: 2px; flex-wrap: wrap; }
html[data-font] #modal .xwin .xseam .xneedline { display: flex; align-items: center; gap: 4px; padding-top: 6px; border-top: 2px dashed var(--xline); flex-wrap: wrap; }
html[data-font] #modal .xwin .xseam .xneedline small { display: block; }
html[data-font] #modal .xwin .xseam.on { background: var(--xcard2); box-shadow: inset 0 0 0 3px var(--rc), 0 0 0 2px #120b08, 0 0 22px -6px var(--rc); }
html[data-font] #modal .xwin .xseam.on .xart { box-shadow: 0 0 0 2px var(--rc); }
/* 2 · the crew: three slots and the kennel */
html[data-font] #modal .xwin .xslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html[data-font] #modal .xwin .xslot { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 84px; padding: 10px; background: #1a1420; box-shadow: inset 0 0 0 2px var(--xline); border: 0; color: var(--xtext); font: inherit; text-align: left; }
html[data-font] #modal .xwin .xslot:not(.full) { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px; background: repeating-linear-gradient(45deg, #1a1420 0 8px, #1e1726 8px 16px); box-shadow: inset 0 0 0 2px #4a3c52; }
html[data-font] #modal .xwin .xslot .xplus { font-size: 24px !important; color: #6a5a72; line-height: 1 !important; }
html[data-font] #modal .xwin .xslot.full { cursor: pointer; background: #2a2032; box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xslot.full .xface { grid-row: 1 / 3; width: 64px; height: 64px; }
html[data-font] #modal .xwin .xslot.full b { align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } html[data-font] #modal .xwin .xslot.full span { align-self: start; }
html[data-font] #modal .xwin .xslot .xx { position: absolute; top: 4px; right: 8px; font-style: normal; color: var(--xmuted); } html[data-font] #modal .xwin .xslot.full:hover .xx { color: #ff9a7a; }
html[data-font] #modal .xwin .xslot .xgearon { position: absolute; bottom: 4px; right: 4px; display: flex; gap: 2px; }
html[data-font] #modal .xwin .xslot.pop { animation: xpop .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes xpop { 0% { transform: scale(.7); opacity: .2; } 100% { transform: none; opacity: 1; } }
html[data-font] #modal .xwin .xface { image-rendering: pixelated; background: #07050a; box-shadow: 0 0 0 2px #120b08; object-fit: cover; }
html[data-font] #modal .xwin .xroster { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; margin-top: 10px; }
html[data-font] #modal .xwin .xsh { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; text-align: center; position: relative; }
html[data-font] #modal .xwin .xsh .xface { width: 64px; height: 64px; }
html[data-font] #modal .xwin .xsh b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-font] #modal .xwin .xsh em { font-style: normal; padding: 1px 6px; background: #1a1420; color: var(--xmuted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-font] #modal .xwin .xsh em.xperk { color: #9ae8b8; } html[data-font] #modal .xwin .xsh em.xst.out { color: #ffd27a; } html[data-font] #modal .xwin .xsh em.xst.trapped { color: #ff9a7a; }
html[data-font] #modal .xwin .xsh.on { background: #2e2836; box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xsh.on::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; background: #ffd23a; color: #3a1a08; font-weight: 700; box-shadow: 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xsh.busy { opacity: .55; cursor: not-allowed; }
/* 3 · the supplies */
html[data-font] #modal .xwin .xreqs { display: grid; gap: 8px; }
html[data-font] #modal .xwin .xreq { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 12px; }
html[data-font] #modal .xwin .xreq > span:first-of-type { display: grid; } html[data-font] #modal .xwin .xreq .xq b { color: var(--xtext); }
html[data-font] #modal .xwin .xreq.ok { box-shadow: inset 4px 0 0 #5fd18b, inset 0 0 0 2px var(--xline); } html[data-font] #modal .xwin .xreq.miss { box-shadow: inset 4px 0 0 #ff7a5a, inset 0 0 0 2px #6a2a24; background: #2a1a1e; }
html[data-font] #modal .xwin .xreq .xok { width: 28px; height: 28px; display: grid; place-items: center; background: #1e5a3a; color: #bfffd8; font-weight: 700; box-shadow: 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xopt { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; padding: 10px; align-items: center; }
html[data-font] #modal .xwin .xopt > .xi { grid-row: 1 / 3; } html[data-font] #modal .xwin .xopt > span { display: grid; min-width: 0; } html[data-font] #modal .xwin .xopt em { grid-column: 2; font-style: normal; color: var(--xmuted); }
html[data-font] #modal .xwin .xopt.on { background: #2a3020; box-shadow: inset 0 0 0 3px #9ae86a, 0 0 0 2px #120b08; } html[data-font] #modal .xwin .xopt.on em { color: #c8f0a8; }
html[data-font] #modal .xwin .xopt.off { opacity: .5; }
/* the summary: sticks to the bottom of the window */
html[data-font] #modal .xwin .xsum { margin-top: 16px; padding: 12px; display: grid; gap: 10px; background: #221a2a; box-shadow: inset 0 0 0 2px #4a3c52, inset 0 3px 0 0 var(--rc, #ffd27a); }
html[data-font] #modal .xwin .xsum.idle { display: block; color: var(--xmuted); } html[data-font] #modal .xwin .xsum.idle p { margin: 0; }
html[data-font] #modal .xwin .xgobar { position: sticky; bottom: -12px; z-index: 3; margin-top: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #2a2032; box-shadow: inset 0 0 0 2px #6a5a72, inset 0 3px 0 0 var(--rc, #ffd27a), 0 -10px 18px rgba(10,6,12,.6); }
html[data-font] #modal .xwin .xgobar.idle { color: var(--xmuted); } html[data-font] #modal .xwin .xgobar.idle p { margin: 0; display: flex; align-items: center; gap: 10px; }
html[data-font] #modal .xwin .xgoinfo { display: grid; min-width: 0; flex: 1 1 220px; } html[data-font] #modal .xwin .xgoinfo > b { color: var(--rc); font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xsumg { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr; gap: 12px; }
html[data-font] #modal .xwin .xsumc { display: grid; gap: 2px; align-content: start; min-width: 0; } html[data-font] #modal .xwin .xsumc > b { font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xlab { color: var(--xmuted); text-transform: uppercase; letter-spacing: 1px; }
html[data-font] #modal .xwin .xbar { display: block; height: 8px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e40; overflow: hidden; } html[data-font] #modal .xwin .xbar i { display: block; height: 100%; background: #ffd23a; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.25); }
html[data-font] #modal .xwin .xbar.big { height: 12px; } html[data-font] #modal .xwin .xbar.gold i { background: linear-gradient(90deg, #c88a14, #ffd23a); }
html[data-font] #modal .xwin .xchs { display: flex; gap: 10px; flex-wrap: wrap; } html[data-font] #modal .xwin .xch { display: inline-flex; align-items: center; gap: 4px; } html[data-font] #modal .xwin .xch b { font-size: 24px !important; line-height: 1 !important; }
html[data-font] #modal .xwin .xwhy { color: #ff9a7a; } html[data-font] #modal .xwin .xwhy b { color: #ffd2c0; }
html[data-font] #modal .xwin .btn.xgo { min-width: 220px; min-height: 48px; animation: xglow 1.8s ease-in-out infinite; }
@keyframes xglow { 50% { box-shadow: 0 0 0 2px #120b08, 0 0 18px 2px rgba(255,210,58,.55); } }
/* the quartermaster */
html[data-font] #modal .xwin .xkeeper { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; margin-top: 4px; background: #1e1626; }
html[data-font] #modal .xwin .xsnap { image-rendering: pixelated; display: block; max-width: 100%; height: auto; }

html[data-font] #modal .xwin .xsay { display: grid; gap: 6px; } html[data-font] #modal .xwin .xsay > b { color: #ffd27a; font-size: 24px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xsay p { margin: 0; }
html[data-font] #modal .xwin .xshop { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
html[data-font] #modal .xwin .xitem { display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 6px; padding: 12px; position: relative; }
html[data-font] #modal .xwin .xitem .xitop { display: grid; place-items: center; height: 84px; background: radial-gradient(circle at 50% 60%, #3a2e44, #1a1420 70%); box-shadow: inset 0 0 0 2px #120b08; position: relative; }
html[data-font] #modal .xwin .xitem > b { font-size: 24px !important; line-height: 1.1 !important; color: #ffe8b0; }
html[data-font] #modal .xwin .xitem .xshort { color: #9ae8b8; } html[data-font] #modal .xwin .xitem p { margin: 0; color: var(--xmuted); }
html[data-font] #modal .xwin .xitem .xtag { position: absolute; top: 6px; left: 6px; padding: 1px 6px; background: #c8382a; color: #fff0dc; box-shadow: 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xitem.need { box-shadow: inset 0 0 0 2px #8a5a2a, inset 0 2px 0 2px #b8844e; }
html[data-font] #modal .xwin .xitem.in { background: #2a2a20; box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xmeta2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } html[data-font] #modal .xwin .xchip { padding: 0 6px; background: #1a1420; color: var(--xmuted); box-shadow: inset 0 0 0 1px var(--xline); } html[data-font] #modal .xwin .xown b { color: var(--xtext); }
html[data-font] #modal .xwin .xbuy { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } html[data-font] #modal .xwin .xbuy .xp { font-size: 24px !important; color: #fff2d0; white-space: nowrap; } html[data-font] #modal .xwin .xbuy .xp .xusd { font-size: 16px !important; }
html[data-font] #modal .xwin .xstep2 { display: inline-flex; align-items: center; gap: 6px; } html[data-font] #modal .xwin .xstep2 em { font-style: normal; min-width: 22px; text-align: center; } html[data-font] #modal .xwin .xstep2 .qbtn { min-width: 40px; height: 40px; }
html[data-font] #modal .xwin .xbasket { position: sticky; bottom: -12px; z-index: 3; margin-top: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #2a2032; box-shadow: inset 0 0 0 2px #6a5a72, inset 0 3px 0 0 #ffd27a, 0 -10px 18px rgba(10,6,12,.6); }
html[data-font] #modal .xwin .xbasket > b { font-size: 24px !important; line-height: 1.1 !important; margin-left: auto; } html[data-font] #modal .xwin .xbasket.idle { color: var(--xmuted); }
/* the crews and the store room */
html[data-font] #modal .xwin .xcrew { margin-bottom: 8px; box-shadow: inset 0 0 0 2px var(--xline), inset 4px 0 0 var(--rc); }
html[data-font] #modal .xwin .xcrewh { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px 0 16px; flex-wrap: wrap; } html[data-font] #modal .xwin .xcrewh b { color: var(--rc); font-size: 24px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xstag { color: var(--xmuted); }
html[data-font] #modal .xwin .st-back .xstag { color: #9ae8b8; } html[data-font] #modal .xwin .st-trapped .xstag { color: #ff9a7a; } html[data-font] #modal .xwin .st-lost { opacity: .7; }
html[data-font] #modal .xwin .xcrewb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 12px 16px; }
html[data-font] #modal .xwin .xfaces { display: flex; } html[data-font] #modal .xwin .xfaces .xface { width: 48px; height: 48px; } html[data-font] #modal .xwin .xfaces .xface + .xface { margin-left: -12px; }
html[data-font] #modal .xwin .xcrewm { display: grid; gap: 6px; min-width: 0; } html[data-font] #modal .xwin .xcrewa { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
html[data-font] #modal .xwin .xlootline { display: flex; flex-wrap: wrap; gap: 6px; } html[data-font] #modal .xwin .xl { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px 0 2px; background: #1a1420; } html[data-font] #modal .xwin .xl.hot { background: #3a2a14; box-shadow: inset 0 0 0 1px #c88a14; }
html[data-font] #modal .xwin .btn.xpulse { animation: xglow 1.6s ease-in-out infinite; }
html[data-font] #modal .xwin .xinvs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xinv { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; text-align: center; } html[data-font] #modal .xwin .xinv > b { font-size: 24px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xinv.zero { opacity: .55; }
html[data-font] #modal .xwin .xrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html[data-font] #modal .xwin .xspecial { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
html[data-font] #modal .xwin .xsp { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; } html[data-font] #modal .xwin .xsp > span { display: grid; gap: 4px; } html[data-font] #modal .xwin .xsp > span > b { font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xsp.shake > .xi { animation: xshake .45s linear; }
@keyframes xshake { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg) translateY(-3px); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg) translateY(-2px); } }
html[data-font] #modal .xwin .xsups2 { display: flex; flex-wrap: wrap; gap: 8px; } html[data-font] #modal .xwin .xsupc { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; background: var(--xcard); box-shadow: inset 0 0 0 2px var(--xline); } html[data-font] #modal .xwin .xsupc b { color: #ffe8b0; }
html[data-font] #modal .xwin .xbank { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; flex-wrap: wrap; box-shadow: inset 0 0 0 2px #8a5a2a, inset 0 2px 0 2px #c8902a; background: #2a2014; }
html[data-font] #modal .xwin .xbank > div { display: flex; align-items: center; gap: 12px; } html[data-font] #modal .xwin .xbank > div > span { display: grid; } html[data-font] #modal .xwin .xbank b { font-size: 24px !important; line-height: 1.1 !important; color: #ffe8b0; }
html[data-font] #modal .xwin .xreveal { display: grid; gap: 10px; justify-items: center; padding: 14px; margin-top: 6px; background: radial-gradient(circle at 50% 40%, #4a3a1a, #241c2a 70%); box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08; animation: xpop .4s cubic-bezier(.2, 1.6, .4, 1); }
html[data-font] #modal .xwin .xreveal > b { color: #ffd27a; font-size: 24px !important; text-align: center; }
html[data-font] #modal .xwin .xrev { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; } html[data-font] #modal .xwin .xri { display: grid; justify-items: center; gap: 2px; animation: xdrop .5s var(--d) both cubic-bezier(.2, 1.5, .4, 1); } html[data-font] #modal .xwin .xri > b { font-size: 24px !important; line-height: 1 !important; color: #fff2d0; }
@keyframes xdrop { 0% { transform: translateY(-24px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* the guide and the pool */
html[data-font] #modal .xwin .xsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
html[data-font] #modal .xwin .xsteps > div { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; text-align: center; } html[data-font] #modal .xwin .xsteps b { display: flex; align-items: center; gap: 8px; color: #ffd27a; font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xsteps b i { display: inline-grid; place-items: center; width: 26px; height: 26px; font-style: normal; color: #3a1a08; background: #ffd23a; box-shadow: 0 0 0 2px #120b08; font-size: 16px !important; } html[data-font] #modal .xwin .xsteps span { color: var(--xmuted); }
html[data-font] #modal .xwin .xseamgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html[data-font] #modal .xwin .xseamg { display: grid; gap: 6px; padding: 10px; box-shadow: inset 0 0 0 2px var(--xline), inset 0 3px 0 0 var(--rc); } html[data-font] #modal .xwin .xseamg img { width: 100%; aspect-ratio: 96 / 72; image-rendering: pixelated; box-shadow: 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xseamg > b { color: var(--rc); font-size: 24px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xseamg > span { display: flex; align-items: center; gap: 8px; }
html[data-font] #modal .xwin .xseamg ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; } html[data-font] #modal .xwin .xseamg li { display: inline-flex; align-items: center; gap: 2px; }
html[data-font] #modal .xwin .xfinds2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xfind { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; text-align: center; } html[data-font] #modal .xwin .xfind span { color: #ffe8b0; font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xrisks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } html[data-font] #modal .xwin .xrisks > div { display: flex; align-items: center; gap: 12px; padding: 10px; } html[data-font] #modal .xwin .xrisks span { display: grid; color: var(--xmuted); } html[data-font] #modal .xwin .xrisks em { font-style: normal; } html[data-font] #modal .xwin .xrisks span b { color: var(--xtext); }
html[data-font] #modal .xwin .xflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; justify-items: stretch; }
html[data-font] #modal .xwin .xfin, html[data-font] #modal .xwin .xfpool, html[data-font] #modal .xwin .xfout { display: grid; justify-items: center; gap: 2px; padding: 10px; text-align: center; background: var(--xcard); box-shadow: inset 0 0 0 2px var(--xline); } html[data-font] #modal .xwin .xfin b { color: #9ae8b8; font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xfarrow { grid-column: 1 / -1; text-align: center; color: #ffd27a; line-height: 1 !important; }
html[data-font] #modal .xwin .xfpool { grid-column: 1 / -1; background: #2a2014; box-shadow: inset 0 0 0 3px #c8902a; } html[data-font] #modal .xwin .xfpool b { color: #ffe8b0; font-size: 24px !important; }
html[data-font] #modal .xwin .xfout { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
html[data-font] #modal .xwin .xfeed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } html[data-font] #modal .xwin .xfeed li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 4px 10px 4px 4px; background: var(--xcard); box-shadow: inset 3px 0 0 var(--rc); } html[data-font] #modal .xwin .xfeed .who { color: var(--xmuted); }
html[data-font] #modal .xwin .xempty { display: flex; align-items: center; gap: 16px; padding: 16px; } html[data-font] #modal .xwin .xempty > div { display: grid; gap: 6px; justify-items: start; } html[data-font] #modal .xwin .xempty p { margin: 0; color: var(--xmuted); }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin *, html[data-font] #modal .xwin { animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  html[data-font] #modal .xwin .xseams, html[data-font] #modal .xwin .xseamgs { grid-template-columns: 1fr; } html[data-font] #modal .xwin .xseam { grid-template-columns: 112px minmax(0, 1fr); column-gap: 10px; } html[data-font] #modal .xwin .xseam .xart { grid-row: 1 / 6; align-self: start; }
  html[data-font] #modal .xwin .xslots { grid-template-columns: 1fr; } html[data-font] #modal .xwin .xslot { min-height: 64px; } html[data-font] #modal .xwin .xslot:not(.full) { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 14px; }
  html[data-font] #modal .xwin .xroster { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  html[data-font] #modal .xwin .xopts { grid-template-columns: 1fr; } html[data-font] #modal .xwin .xreq { grid-template-columns: 32px minmax(0, 1fr) auto; } html[data-font] #modal .xwin .xreq .xq { grid-column: 2; grid-row: 2; }
  html[data-font] #modal .xwin .xsumg { grid-template-columns: 1fr 1fr; } html[data-font] #modal .xwin .xsumc.wide { grid-column: 1 / -1; } html[data-font] #modal .xwin .xsumc:first-child { display: none; }
  html[data-font] #modal .xwin .xgobar { padding: 8px; gap: 8px; } html[data-font] #modal .xwin .xgoinfo { flex-basis: 100%; } html[data-font] #modal .xwin .xgoinfo > b { font-size: 16px !important; } html[data-font] #modal .xwin .xgobar > .btn { width: 100%; } html[data-font] #modal .xwin .xgobar .xwhy { width: 100%; } html[data-font] #modal .xwin .btn.xgo { width: 100%; min-width: 0; }
  html[data-font] #modal .xwin .xkeeper { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  html[data-font] #modal .xwin .xshop { grid-template-columns: 1fr 1fr; gap: 8px; } html[data-font] #modal .xwin .xitem { padding: 8px; } html[data-font] #modal .xwin .xitem p { display: none; } html[data-font] #modal .xwin .xitem > b { font-size: 16px !important; line-height: 1.2 !important; } html[data-font] #modal .xwin .xbuy .xp { font-size: 16px !important; } html[data-font] #modal .xwin .xbuy { justify-content: center; } html[data-font] #modal .xwin .xstep2 .qbtn { min-width: 36px; }
  html[data-font] #modal .xwin .xinvs { grid-template-columns: repeat(3, minmax(0, 1fr)); } html[data-font] #modal .xwin .xspecial { grid-template-columns: 1fr; } html[data-font] #modal .xwin .xbasket.idle { display: none; } html[data-font] #modal .xwin .xbasket { padding: 8px; } html[data-font] #modal .xwin .xbasket > b { font-size: 16px !important; } html[data-font] #modal .xwin .xbasket .btn { flex: 1 1 100%; }
  html[data-font] #modal .xwin .xcrewb { grid-template-columns: auto minmax(0, 1fr); } html[data-font] #modal .xwin .xcrewa { grid-column: 1 / -1; justify-content: stretch; } html[data-font] #modal .xwin .xcrewa .btn { flex: 1; }
  html[data-font] #modal .xwin .xsteps { grid-template-columns: 1fr 1fr; } html[data-font] #modal .xwin .xsteps b { font-size: 16px !important; } html[data-font] #modal .xwin .xsteps > div { padding: 10px 6px; } html[data-font] #modal .xwin .xrisks { grid-template-columns: 1fr; } html[data-font] #modal .xwin .xflow { grid-template-columns: 1fr; }
  html[data-font] #modal .xwin .xfeed li { grid-template-columns: 32px minmax(0, 1fr) auto; } html[data-font] #modal .xwin .xfeed li .muted { display: none; }
}
/* v3: the odds of a trip, the seams compared, the camp's live line, the way of a trip */
html[data-font] #modal .xwin .xcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 6px 8px; background: #1a1420; box-shadow: inset 0 0 0 1px var(--xline); } html[data-font] #modal .xwin .xcmp b { color: #ffe8b0; } html[data-font] #modal .xwin .xcmp.bad { display: block; color: #ff9a7a; }
html[data-font] #modal .xwin .xlive { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 6px 12px; background: #1e2a22; box-shadow: inset 4px 0 0 #5fd18b; color: #d8f0e0; } html[data-font] #modal .xwin .xlive b { color: #ffffff; }
html[data-font] #modal .xwin .xdot { width: 10px; height: 10px; flex: none; background: #5fd18b; box-shadow: 0 0 0 2px #120b08; animation: xblink 1.6s steps(2) infinite; } @keyframes xblink { 50% { background: #2e8a52; } }
html[data-font] #modal .xwin .xodds { display: grid; gap: 8px; padding-top: 8px; border-top: 2px dashed var(--xline); } html[data-font] #modal .xwin .xodds > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xseg { display: flex; height: 18px; box-shadow: 0 0 0 2px #120b08; overflow: hidden; } html[data-font] #modal .xwin .xseg i { display: block; min-width: 3px; box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.25); }
html[data-font] #modal .xwin .xkey { display: flex; flex-wrap: wrap; gap: 4px 14px; } html[data-font] #modal .xwin .xkey span { display: inline-flex; align-items: center; gap: 6px; } html[data-font] #modal .xwin .xkey i { width: 10px; height: 10px; display: inline-block; box-shadow: 0 0 0 1px #120b08; }
html[data-font] #modal .xwin .xrange { display: flex; flex-wrap: wrap; gap: 4px 18px; } html[data-font] #modal .xwin .xrange b { color: #ffe8b0; } html[data-font] #modal .xwin .xrange b.pos { color: #5fd18b; } html[data-font] #modal .xwin .xrange b.neg { color: #ff9a7a; }
html[data-font] #modal .xwin .xauto { color: #ffd27a; text-align: right; }
html[data-font] #modal .xwin .xway { display: flex; align-items: stretch; gap: 4px; margin-top: 8px; flex-wrap: wrap; } html[data-font] #modal .xwin .xway > i { align-self: center; font-style: normal; color: #6a5a72; }
html[data-font] #modal .xwin .xway > span { flex: 1 1 120px; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 8px 4px; background: var(--xcard); box-shadow: inset 0 0 0 2px var(--xline); opacity: .6; }
html[data-font] #modal .xwin .xway > span.on { opacity: 1; } html[data-font] #modal .xwin .xway > span.act { box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08; background: #2e2836; } html[data-font] #modal .xwin .xway small { color: var(--xmuted); }
@media (max-width: 760px) { html[data-font] #modal .xwin .xway > i { display: none; } html[data-font] #modal .xwin .xway > span { flex-basis: 45%; } html[data-font] #modal .xwin .xseg { height: 14px; } html[data-font] #modal .xwin .xcmp { grid-template-columns: 1fr 1fr; } }
/* v4: the prizes a crew plays for; the big three numbers; the trips' tag outside the camp */
html[data-font] #modal .xwin .xbig3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } html[data-font] #modal .xwin .xbig3 > div { display: grid; gap: 2px; align-content: start; } html[data-font] #modal .xwin .xbig3 b { font-size: 24px !important; line-height: 1.1 !important; }
html[data-font] #modal .xwin .xbig3 b.pos { color: #5fd18b; } html[data-font] #modal .xwin .xbig3 b.gold { color: #ffd23a; }
html[data-font] #modal .xwin .xprizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
html[data-font] #modal .xwin .xprize { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; background: #1a1420; box-shadow: inset 0 0 0 1px var(--xline); } html[data-font] #modal .xwin .xprize > span { display: grid; min-width: 0; } html[data-font] #modal .xwin .xprize em { font-style: normal; color: #ffe8b0; }
html[data-font] #modal .xwin .xprize.jack { background: #2e2410; box-shadow: inset 0 0 0 2px #ffd23a, 0 0 14px -4px rgba(255,210,58,.6); } html[data-font] #modal .xwin .xprize.jack b { color: #ffd23a; }
html[data-font] #modal .xwin .xcmp b.pos { color: #5fd18b; }
@media (max-width: 760px) { html[data-font] #modal .xwin .xbig3 { grid-template-columns: 1fr 1fr; } html[data-font] #modal .xwin .xbig3 > div:last-child { grid-column: 1 / -1; } html[data-font] #modal .xwin .xprizes { grid-template-columns: 1fr; } }
#xtrack { position: fixed; right: 12px; top: 112px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: #241c2a; color: #f2e6cc; border: 0; cursor: pointer; text-align: left; box-shadow: inset 0 0 0 2px #6a5a72, 0 0 0 2px #120b08, 0 6px 0 rgba(0,0,0,.35); }
#xtrack[hidden] { display: none; } #xtrack .xi { width: 32px; height: 32px; image-rendering: pixelated; flex: none; } #xtrack span { display: grid; } #xtrack small { color: #b4a6b8; }
html[data-font] #xtrack, html[data-font] #xtrack * { font-size: 16px !important; line-height: 1.25 !important; }
#xtrack.back { box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08, 0 6px 0 rgba(0,0,0,.35); animation: xtglow 1.6s ease-in-out infinite; } #xtrack.trap { box-shadow: inset 0 0 0 3px #ff7a5a, 0 0 0 2px #120b08, 0 6px 0 rgba(0,0,0,.35); }
@keyframes xtglow { 50% { filter: brightness(1.25); } }
@media (max-width: 639px) { #xtrack { top: auto; right: 8px; bottom: calc(var(--dockh, 90px) + 18px); } }
/* v5: the ore line, the ledger's two buttons, a winning unload, the jackpot in a haul */
html[data-font] #modal .xwin .xore { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--xmuted); } html[data-font] #modal .xwin .xore b { color: #e8eef4; }
html[data-font] #modal .xwin .xbankb { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-font] #modal .xwin .xreveal.win { background: radial-gradient(circle at 50% 40%, #2a4a1a, #241c2a 70%); box-shadow: inset 0 0 0 3px #5fd18b, 0 0 0 2px #120b08, 0 0 24px -4px rgba(95,209,139,.6); } html[data-font] #modal .xwin .xreveal.win > b { color: #9affb8; }
html[data-font] #modal .xwin .xreveal > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xl.jack { background: #3a2a0a; box-shadow: inset 0 0 0 2px #ffd23a; }
html[data-font] #modal .xwin .xfind small { color: var(--xmuted); }
html[data-font] #modal .xwin .xseamg ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; } html[data-font] #modal .xwin .xseamg li b { color: #ffe8b0; }
html[data-font] #modal .xwin .xseam .xfinds b { color: #ffe8b0; }
/* v6: the trip's bill and the ladder of what it can bring back */
html[data-font] #modal .xwin .xbill, html[data-font] #modal .xwin .xladder { display: grid; gap: 6px; padding: 10px 12px; background: #1a1420; box-shadow: inset 0 0 0 2px var(--xline); }
html[data-font] #modal .xwin .xbill h4, html[data-font] #modal .xwin .xladder h4 { margin: 0 0 2px !important; } html[data-font] #modal .xwin .xbill h4 b { color: #ffe8b0; font-size: 24px !important; margin-left: 6px; } html[data-font] #modal .xwin .xbill > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xbl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 2px 0; border-bottom: 1px dashed var(--xline); }
html[data-font] #modal .xwin .xbl > span:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; } html[data-font] #modal .xwin .xbl em { font-style: normal; color: #ffe8b0; } html[data-font] #modal .xwin .xok2 { color: #9ae8b8; } html[data-font] #modal .xwin .xno2 { color: #ff9a7a; }
html[data-font] #modal .xwin .xld { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px; gap: 10px; align-items: center; } html[data-font] #modal .xwin .xldl { display: grid; } html[data-font] #modal .xwin .xldl small { color: var(--xmuted); }
html[data-font] #modal .xwin .xld > b { text-align: right; font-size: 16px !important; } html[data-font] #modal .xwin .xld.up > b { color: #5fd18b; } html[data-font] #modal .xwin .xld.down > b { color: #ff9a7a; } html[data-font] #modal .xwin .xld.best > b { color: #ffd23a; }
html[data-font] #modal .xwin .xldb { position: relative; height: 12px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e40; } html[data-font] #modal .xwin .xldb i { position: absolute; left: 0; top: 0; bottom: 0; } html[data-font] #modal .xwin .xld.up .xldb i { background: #5fd18b; } html[data-font] #modal .xwin .xld.down .xldb i { background: #8a4a4a; } html[data-font] #modal .xwin .xld.best .xldb i { background: #ffd23a; }
html[data-font] #modal .xwin .xldb u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #ffe8b0; text-decoration: none; }
html[data-font] #modal .xwin .xpz summary { cursor: pointer; color: #ffd27a; padding: 4px 0; } html[data-font] #modal .xwin .xpz[open] summary { margin-bottom: 6px; }
@media (max-width: 760px) { html[data-font] #modal .xwin .xld { grid-template-columns: 112px minmax(0, 1fr) 60px; gap: 6px; } html[data-font] #modal .xwin .xbl { grid-template-columns: minmax(0, 1fr) auto; } html[data-font] #modal .xwin .xbl > span:last-child { grid-column: 1 / -1; } }
/* v7: the balance, a haul line by line, the trip log */
html[data-font] #modal .xwin .xbal { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 14px; background: #2a2014; box-shadow: inset 0 0 0 3px #c8902a, 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xbal > div { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; } html[data-font] #modal .xwin .xbal > div > span { display: grid; gap: 2px; } html[data-font] #modal .xwin .xbal b { color: #ffe8b0; font-size: 24px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xbal small { color: var(--xmuted); }
html[data-font] #modal .xwin .xhaul { display: grid; gap: 2px; } html[data-font] #modal .xwin .xhl { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 2px 0; } html[data-font] #modal .xwin .xhl > span { display: grid; min-width: 0; } html[data-font] #modal .xwin .xhl em { font-style: normal; color: #9ae8b8; } html[data-font] #modal .xwin .xhl.zero { opacity: .5; } html[data-font] #modal .xwin .xhl.zero em { color: var(--xmuted); }
html[data-font] #modal .xwin .xhtot { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding: 6px 8px; margin-top: 4px; background: #1a1420; box-shadow: inset 0 0 0 1px var(--xline); } html[data-font] #modal .xwin .xhtot b { color: #ffe8b0; } html[data-font] #modal .xwin .xhtot.win { box-shadow: inset 0 0 0 2px #5fd18b; } html[data-font] #modal .xwin .xhtot.win b { color: #9affb8; }
html[data-font] #modal .xwin .xreveal .xhaul { width: 100%; max-width: 460px; } html[data-font] #modal .xwin .xreveal .xhtot { width: 100%; max-width: 460px; }
html[data-font] #modal .xwin .xlog { display: grid; gap: 4px; } html[data-font] #modal .xwin .xlg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 10px; background: var(--xcard); box-shadow: inset 3px 0 0 var(--rc), inset 0 0 0 1px var(--xline); }
html[data-font] #modal .xwin .xlg > span:first-child { display: grid; min-width: 0; } html[data-font] #modal .xwin .xlg b { color: var(--rc); } html[data-font] #modal .xwin .xlgi { display: flex; } html[data-font] #modal .xwin .xlgv { display: grid; text-align: right; } html[data-font] #modal .xwin .xlgv b { color: #ffe8b0; } html[data-font] #modal .xwin .xlgv .pos { color: #5fd18b; } html[data-font] #modal .xwin .xlgv .neg { color: #ff9a7a; }
@media (max-width: 760px) { html[data-font] #modal .xwin .xlg { grid-template-columns: minmax(0, 1fr) auto; } html[data-font] #modal .xwin .xlgi { display: none; } html[data-font] #modal .xwin .xbal .xbankb { width: 100%; } html[data-font] #modal .xwin .xbal .xbankb .btn { flex: 1; } }
html[data-font] #modal .xwin .xballine { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 6px 10px; background: #2a2014; box-shadow: inset 0 0 0 2px #8a5a2a; } html[data-font] #modal .xwin .xballine b { color: #ffe8b0; } html[data-font] #modal .xwin .xballine .btn { margin-left: auto; }
/* v8: the stash in tabs; finds as tiles you can sell; keepsakes and the spots in the camp; who sits at the fire */
html[data-font] #modal .xwin .xtabs { display: flex; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
html[data-font] #modal .xwin .xtab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; color: var(--xmuted); background: #1a1420; box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; transition: color .15s, box-shadow .15s, transform .15s; }
html[data-font] #modal .xwin .xtab:hover { color: var(--xtext); } html[data-font] #modal .xwin .xtab:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
html[data-font] #modal .xwin .xtab.on { color: #ffe8b0; background: #2a2014; box-shadow: inset 0 0 0 2px #8a5a2a, inset 0 -3px 0 0 #ffd27a; }
html[data-font] #modal .xwin .xtab em { font-style: normal; padding: 0 6px; color: #3a1a08; background: #ffd23a; box-shadow: 0 0 0 2px #120b08; }
html[data-font] #modal .xwin .xtabb { animation: xpop .22s ease-out; }
html[data-font] #modal .xwin .xress { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xres { display: grid; justify-items: center; gap: 2px; padding: 12px 8px 10px; text-align: center; background: radial-gradient(circle at 50% 30%, #3a2e44, #1a1420 72%); box-shadow: inset 0 0 0 2px var(--xline); animation: xdrop .45s var(--d) both cubic-bezier(.2, 1.5, .4, 1); transition: transform .25s, opacity .25s; }
html[data-font] #modal .xwin .xres.hot { box-shadow: inset 0 0 0 2px #c88a14, inset 0 3px 0 0 #ffd27a; } html[data-font] #modal .xwin .xres > b { color: #ffe8b0; font-size: 20px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xres > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xres .xresv { font-size: 24px !important; line-height: 1.2 !important; color: #fff2d0; } html[data-font] #modal .xwin .xres .btn { margin-top: 4px; min-width: 88px; }
html[data-font] #modal .xwin .xres.xsold { animation: xsold .3s ease-in forwards; } @keyframes xsold { to { transform: translateY(-18px) scale(.8); opacity: 0; } }
html[data-font] #modal .xwin .xkeeps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xkeep { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; text-align: center; color: var(--xtext); background: radial-gradient(circle at 50% 35%, #34283e, #1a1420 72%); box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; transition: transform .15s, box-shadow .15s; }
html[data-font] #modal .xwin .xkeep:hover:not(:disabled) { transform: translateY(-2px); } html[data-font] #modal .xwin .xkeep > b { color: #ffe8b0; } html[data-font] #modal .xwin .xkeep > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xkeep.on { box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08; background: #2a2a20; } html[data-font] #modal .xwin .xkeep.none { cursor: default; } html[data-font] #modal .xwin .xkeep.none .xi { filter: grayscale(.5) brightness(.9); opacity: .85; }
html[data-font] #modal .xwin .xslots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xslot { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 128px; padding: 10px 6px; text-align: center; color: var(--xtext); background: #15101a; box-shadow: inset 0 0 0 2px #3a2e44; cursor: pointer; transition: box-shadow .15s, background .15s; }
html[data-font] #modal .xwin .xslot > i { font-style: normal; font-size: 32px !important; line-height: 64px !important; color: #5a4a62; } html[data-font] #modal .xwin .xslot > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xslot.full { background: radial-gradient(circle at 50% 35%, #3a2e1a, #1a1420 72%); box-shadow: inset 0 0 0 2px #8a5a2a; }
html[data-font] #modal .xwin .xslot.ready { box-shadow: inset 0 0 0 2px #ffd27a; animation: xglow 1.6s ease-in-out infinite; } html[data-font] #modal .xwin .xslot:focus-visible, html[data-font] #modal .xwin .xkeep:focus-visible, html[data-font] #modal .xwin .xfs:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
html[data-font] #modal .xwin .xfire { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
html[data-font] #modal .xwin .xfs { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; text-align: center; color: var(--xtext); background: #1a1420; box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; transition: transform .15s, box-shadow .15s; }
html[data-font] #modal .xwin .xfs .xface { width: 64px; height: 64px; image-rendering: pixelated; } html[data-font] #modal .xwin .xfs > b { color: #ffe8b0; } html[data-font] #modal .xwin .xfs > small { color: var(--xmuted); } html[data-font] #modal .xwin .xfs:hover { transform: translateY(-2px); }
html[data-font] #modal .xwin .xfs.on { background: radial-gradient(circle at 50% 30%, #4a2a14, #1a1420 75%); box-shadow: inset 0 0 0 3px #f97316, 0 0 0 2px #120b08; }
@media (max-width: 640px) { html[data-font] #modal .xwin .xslots { grid-template-columns: repeat(2, minmax(0, 1fr)); } html[data-font] #modal .xwin .xress, html[data-font] #modal .xwin .xkeeps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xres, html[data-font] #modal .xwin .xtabb, html[data-font] #modal .xwin .xres.xsold, html[data-font] #modal .xwin .xslot.ready { animation: none; } }
/* v9: the finds counted (grams, chunks, nuggets), the worth under it */
html[data-font] #modal .xwin .xres .xresq { font-size: 32px !important; line-height: 1 !important; color: #fff2d0; text-shadow: 0 2px 0 #120b08; }
html[data-font] #modal .xwin .xres .xresv { font-size: 18px !important; color: #ffd27a; }
/* v9: who sits at the fire now, above the picker */
html[data-font] #modal .xwin .xseat { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; background: radial-gradient(circle at 10% 50%, #4a2a14, #1a1420 60%); box-shadow: inset 0 0 0 2px #8a5a2a, inset 0 3px 0 0 #f97316; }
html[data-font] #modal .xwin .xseat > span { display: grid; gap: 2px; } html[data-font] #modal .xwin .xseat b { color: #ffe8b0; font-size: 20px !important; } html[data-font] #modal .xwin .xseat small { color: var(--xmuted); }
html[data-font] #modal .xwin .xseatf { display: flex !important; gap: 10px; } html[data-font] #modal .xwin .xseatf > span { display: grid; justify-items: center; gap: 2px; max-width: 96px; text-align: center; } html[data-font] #modal .xwin .xseatf .xface { width: 56px; height: 56px; image-rendering: pixelated; box-shadow: 0 0 0 2px #120b08, 0 0 12px rgba(249,115,22,.45); }
@media (max-width: 640px) { html[data-font] #modal .xwin .xseat { grid-template-columns: 48px minmax(0, 1fr); } html[data-font] #modal .xwin .xseatf { grid-column: 1 / -1; } }
/* v9: a sale asks once more, on the button itself */
html[data-font] #modal .xwin .btn.xarm { background: #2e8a52; color: #f0fff4; box-shadow: inset 0 0 0 2px #120b08, inset 0 -3px 0 0 #1e5a36, 0 0 0 2px #8affc0; white-space: normal; line-height: 1.2 !important; animation: xglow 1s ease-in-out infinite; }
/* v10: the crews board comes alive. A trip out is its tunnel: rock, a rail, the lamp walking down it to the loot, a
   countdown ticking; the faces bob as they walk. A crew back glows and its chest bounces; a trapped one shakes. */
html[data-font] #modal .xwin .xcrew { animation: xin .35s cubic-bezier(.2, 1.3, .4, 1) both; } html[data-font] #modal .xwin .xcrew:nth-child(2) { animation-delay: .06s; } html[data-font] #modal .xwin .xcrew:nth-child(3) { animation-delay: .12s; } html[data-font] #modal .xwin .xcrew:nth-child(4) { animation-delay: .18s; }
@keyframes xin { 0% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
html[data-font] #modal .xwin .xtrk { position: relative; height: 34px; margin: 2px 0 4px; background: repeating-linear-gradient(90deg, #1c141c 0 7px, #241a22 7px 13px, #1a1218 13px 19px); box-shadow: inset 0 0 0 2px #120b08, inset 0 3px 0 #0c080a, inset 0 -3px 0 #2e2228; overflow: hidden; }
html[data-font] #modal .xwin .xtrk::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px; background: repeating-linear-gradient(90deg, #6a5a62 0 6px, transparent 6px 9px); opacity: .7; }
html[data-font] #modal .xwin .xtrk::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: repeating-linear-gradient(90deg, #3a2a20 0 2px, transparent 2px 9px); }
html[data-font] #modal .xwin .xtrkf { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 38%, transparent)); transition: width 1s linear; }
html[data-font] #modal .xwin .xtrkm { position: absolute; top: 1px; left: calc(var(--p) * (100% - 64px)); width: 32px; height: 32px; transition: left 1s linear; z-index: 1; }
html[data-font] #modal .xwin .xtrkm::before { content: ""; position: absolute; inset: -14px; background: radial-gradient(circle, rgba(255,226,150,.45), transparent 65%); animation: xflick 1.3s steps(3) infinite; }
html[data-font] #modal .xwin .xtrkm .xi { position: relative; animation: xwalk .5s steps(2) infinite; }
html[data-font] #modal .xwin .xtrke { position: absolute; right: 2px; top: 1px; opacity: .55; filter: saturate(.6); }
@keyframes xwalk { 50% { transform: translateY(-2px); } } @keyframes xflick { 33% { opacity: .75; } 66% { opacity: 1; transform: scale(1.06); } }
html[data-font] #modal .xwin .xtrip { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } html[data-font] #modal .xwin .xcd { font-size: 28px !important; line-height: 1 !important; color: var(--rc); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #120b08; }
html[data-font] #modal .xwin .st-out .xfaces .xface { animation: xwalk .6s steps(2) infinite; } html[data-font] #modal .xwin .st-out .xfaces .xface:nth-child(2) { animation-delay: .2s; } html[data-font] #modal .xwin .st-out .xfaces .xface:nth-child(3) { animation-delay: .4s; }
html[data-font] #modal .xwin .st-out { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 7%, transparent), transparent 40%); }
html[data-font] #modal .xwin .xdots::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: xdots 1.4s steps(4) infinite; } @keyframes xdots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
html[data-font] #modal .xwin .st-back { animation: xin .35s both, xbackglow 1.8s ease-in-out .4s infinite; } @keyframes xbackglow { 50% { box-shadow: inset 0 0 0 2px #5fd18b, inset 4px 0 0 var(--rc), 0 0 18px rgba(95,209,139,.35); } }
html[data-font] #modal .xwin .st-back .xstag { animation: xbounce 1s ease-in-out infinite; display: inline-block; } @keyframes xbounce { 50% { transform: translateY(-3px); } }
html[data-font] #modal .xwin .st-back .xhl:not(.zero) { animation: xdrop .45s both cubic-bezier(.2, 1.5, .4, 1); } html[data-font] #modal .xwin .st-back .xhl:nth-child(2) { animation-delay: .08s; } html[data-font] #modal .xwin .st-back .xhl:nth-child(3) { animation-delay: .16s; } html[data-font] #modal .xwin .st-back .xhl:nth-child(4) { animation-delay: .24s; } html[data-font] #modal .xwin .st-back .xhl:nth-child(5) { animation-delay: .32s; }
html[data-font] #modal .xwin .st-trapped { animation: xin .35s both, xtrap 2.4s ease-in-out .4s infinite; } @keyframes xtrap { 50% { box-shadow: inset 0 0 0 2px #c8382a, inset 4px 0 0 var(--rc), 0 0 16px rgba(200,56,42,.35); } }
html[data-font] #modal .xwin .st-trapped .xfaces { animation: xshake .45s linear 3 .3s; }
html[data-font] #modal .xwin .xhg { display: block; width: 64px; height: 64px; background: var(--hg) 0 0 / 512px 64px no-repeat; image-rendering: pixelated; animation: xsand 2.8s infinite, xturn 2.8s ease-in-out infinite; }
@keyframes xsand { 0% { background-position: 0 0; } 10% { background-position: -64px 0; } 20% { background-position: -128px 0; } 30% { background-position: -192px 0; } 40% { background-position: -256px 0; } 50% { background-position: -320px 0; } 60% { background-position: -384px 0; } 70%, 100% { background-position: -448px 0; } }
@keyframes xturn { 0%, 76% { transform: none; } 100% { transform: rotate(180deg); } }
html[data-font] #modal .xwin .xhg { animation-timing-function: steps(1, end), ease-in-out; }
html[data-font] #modal .xwin .xballine .xi-coin { animation: xcoin 3s ease-in-out infinite; } @keyframes xcoin { 0%, 80%, 100% { transform: none; } 90% { transform: scaleX(.2); } }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xcrew, html[data-font] #modal .xwin .st-back, html[data-font] #modal .xwin .st-trapped, html[data-font] #modal .xwin .st-back .xstag, html[data-font] #modal .xwin .st-back .xhl, html[data-font] #modal .xwin .st-out .xfaces .xface, html[data-font] #modal .xwin .xtrkm .xi, html[data-font] #modal .xwin .xtrkm::before, html[data-font] #modal .xwin .xhg, html[data-font] #modal .xwin .xballine .xi-coin, html[data-font] #modal .xwin .xdots::after, html[data-font] #modal .xwin .st-trapped .xfaces { animation: none; } html[data-font] #modal .xwin .xtrkf, html[data-font] #modal .xwin .xtrkm { transition: none; } }
/* v12: the camp's live numbers: one slim line at the top, in the middle, under the top bar (only in the camp) */
#xhud { position: fixed; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 0; max-width: calc(100vw - 340px); padding: 3px 10px; background: rgba(18,12,20,.82); color: #f2e6cc; box-shadow: 0 0 0 2px #120b08, inset 0 0 0 1px #4a3c52; pointer-events: none; user-select: none; white-space: nowrap; overflow: hidden; }
#xhud[hidden] { display: none; }
#xhud .xhudc { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; } #xhud .xhuds { width: 1px; height: 14px; background: #4a3c52; flex: none; }
#xhud .xhudc .xi { width: 16px; height: 16px; image-rendering: pixelated; } #xhud .xhudc > b { color: #fff2d0; font-variant-numeric: tabular-nums; } #xhud .xhudc > small { color: #a898ac; }
#xhud .xdot { width: 7px; height: 7px; background: #5fd18b; box-shadow: 0 0 0 2px #120b08; animation: xblink 1.6s steps(2) infinite; }
#xhud, #xhud *, html[data-font] #xhud, html[data-font] #xhud * { font-size: 16px !important; line-height: 1.3 !important; letter-spacing: 0 !important; }
#xhud .xhudc .xi { width: 1.25em; height: 1.25em; } #xhud .xhuds { height: 1.1em; } #xhud { padding: .2em .7em; } #xhud .xhudc { gap: .35em; padding: 0 .6em; }
@media (min-width: 1800px) and (min-height: 900px) { #xhud, #xhud *, html[data-font] #xhud, html[data-font] #xhud * { font-size: 24px !important; } }
@media (max-width: 639px) { #xhud, #xhud *, html[data-font] #xhud, html[data-font] #xhud * { font-size: 13px !important; } }
@media (max-width: 1100px) { #xhud .xhudc:nth-of-type(n+4), #xhud .xhuds:nth-of-type(n+3) { display: none; } }
@media (max-width: 639px) { #xhud { left: auto; right: 12px; transform: none; max-width: calc(100vw - 190px); padding: 2px 6px; } #xhud .xhudc > small { display: none; } #xhud .xhudc { padding: 0 6px; } }
/* v12: rarity. Common grey, Rare blue, Epic violet (a glow), Legendary gold (a moving shine) */
html[data-font] #modal .xwin .xtier { display: inline-block; padding: 0 6px; font-size: 16px !important; line-height: 20px !important; white-space: nowrap; letter-spacing: .03em; box-shadow: 0 0 0 1px #120b08; }
html[data-font] #modal .xwin .xtier.t-C { background: #3a3640; color: #c8c0cc; } html[data-font] #modal .xwin .xtier.t-R { background: #1e3a6a; color: #bfe0ff; } html[data-font] #modal .xwin .xtier.t-E { background: #4a2470; color: #e4ccff; } html[data-font] #modal .xwin .xtier.t-L { background: linear-gradient(90deg, #8a5a10, #ffd23a, #8a5a10); background-size: 200% 100%; color: #2a1a04; animation: xshine 2.4s linear infinite; }
@keyframes xshine { to { background-position: -200% 0; } }
html[data-font] #modal .xwin .xkeep { position: relative; } html[data-font] #modal .xwin .xkeep:has(> .xtier) { align-content: start; } html[data-font] #modal .xwin .xkeep > .xtier { justify-self: start; margin: -4px 0 4px -2px; }
html[data-font] #modal .xwin .xkeep.t-R { box-shadow: inset 0 0 0 2px #2e5a9a; } html[data-font] #modal .xwin .xkeep.t-E { box-shadow: inset 0 0 0 2px #7a44b0, 0 0 14px rgba(160,100,255,.25); } html[data-font] #modal .xwin .xkeep.t-L { box-shadow: inset 0 0 0 2px #c8902a, 0 0 18px rgba(255,210,58,.35); background: radial-gradient(circle at 50% 35%, #4a3a1a, #1a1420 72%); }
html[data-font] #modal .xwin .xkeep.t-L:not(.none) .xi { animation: xlegend 2.2s ease-in-out infinite; } @keyframes xlegend { 50% { filter: drop-shadow(0 0 6px rgba(255,220,120,.8)) brightness(1.15); } }
html[data-font] #modal .xwin .xkeep.on { box-shadow: inset 0 0 0 3px #ffd27a, 0 0 0 2px #120b08 !important; }
html[data-font] #modal .xwin .xkeep.none.t-R, html[data-font] #modal .xwin .xkeep.none.t-E, html[data-font] #modal .xwin .xkeep.none.t-L { opacity: .75; }
html[data-font] #modal .xwin .xodds { display: grid; gap: 6px; margin-top: 8px; } html[data-font] #modal .xwin .xoddr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; box-shadow: inset 3px 0 0 var(--rc), inset 0 0 0 1px var(--xline); } html[data-font] #modal .xwin .xoddr > b { color: var(--rc); min-width: 150px; }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xtier.t-L, html[data-font] #modal .xwin .xkeep.t-L .xi { animation: none; } }
/* v13: the drops (what a trip can bring for the camp), the spot picker */
html[data-font] #modal .xwin .xdrops { display: grid; gap: 6px; } html[data-font] #modal .xwin .xdrop { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--xline); }
html[data-font] #modal .xwin .xdropn { display: grid; } html[data-font] #modal .xwin .xdropn b { color: #ffe8b0; } html[data-font] #modal .xwin .xdropn small { color: var(--xmuted); } html[data-font] #modal .xwin .xdropi { display: flex; flex-wrap: wrap; gap: 4px; }
html[data-font] #modal .xwin .xdi { display: inline-grid; place-items: center; width: 40px; height: 40px; background: #1a1420; box-shadow: inset 0 0 0 2px #3a3640; } html[data-font] #modal .xwin .xdi .xi { width: 32px; height: 32px; image-rendering: pixelated; }
html[data-font] #modal .xwin .xdi.t-R { box-shadow: inset 0 0 0 2px #2e5a9a; } html[data-font] #modal .xwin .xdi.t-E { box-shadow: inset 0 0 0 2px #7a44b0; } html[data-font] #modal .xwin .xdi.t-L { box-shadow: inset 0 0 0 2px #c8902a, 0 0 10px rgba(255,210,58,.35); }
html[data-font] #modal .xwin .xspothead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 10px; } html[data-font] #modal .xwin .xspothead b { color: #ffd27a; font-size: 24px !important; } html[data-font] #modal .xwin .xspothead span { color: var(--xmuted); } html[data-font] #modal .xwin .xspothead .xlink { margin-left: auto; }
html[data-font] #modal .xwin .xspots { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; } html[data-font] #modal .xwin .xspotb { display: grid; justify-items: center; gap: 2px; width: 72px; padding: 6px 4px; color: var(--xtext); background: #15101a; box-shadow: inset 0 0 0 2px #3a2e44; cursor: pointer; } html[data-font] #modal .xwin .xspotb i { font-style: normal; line-height: 32px !important; color: #5a4a62; } html[data-font] #modal .xwin .xspotb.on { box-shadow: inset 0 0 0 3px #ffd27a; } html[data-font] #modal .xwin .xspotb .xi { width: 32px; height: 32px; image-rendering: pixelated; }
@media (max-width: 640px) { html[data-font] #modal .xwin .xdrop { grid-template-columns: 1fr; } }
/* v20: the money, moving: a diagram with coins running along its paths, and the rules in plain words under it */
html[data-font] #modal .xwin .xflowbox { padding: 8px; background: #120e16; box-shadow: inset 0 0 0 2px var(--xline); overflow-x: auto; }
html[data-font] #modal .xwin .xflowsvg { display: block; width: 100%; min-width: 560px; height: auto; }
html[data-font] #modal .xwin .xflowsvg .xft { fill: #ffe8b0; font-size: 13px !important; font-family: inherit; } html[data-font] #modal .xwin .xflowsvg .xfs { fill: #a898ac; font-size: 11px !important; font-family: inherit; } html[data-font] #modal .xwin .xflowsvg .xfp { fill: #fff2d0; font-size: 14px !important; font-weight: 700; font-family: inherit; paint-order: stroke; stroke: #120b08; stroke-width: 3px; } html[data-font] #modal .xwin .xflowsvg .xfp.small { font-size: 10px !important; font-weight: 400; fill: #c8b8cc; }
html[data-font] #modal .xwin .xrules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; } html[data-font] #modal .xwin .xrules li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--xline); } html[data-font] #modal .xwin .xrules b { color: #ffe8b0; }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xflowsvg circle { display: none; } }
/* v21: the chest a crew brings up: tap it, it shakes and bursts; the 100-token split; a keepsake in the haul */
html[data-font] #modal .xwin .xchestr { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; color: var(--xtext); background: radial-gradient(circle at 20% 50%, #4a3a1a, #1a1420 70%); border: 0; box-shadow: inset 0 0 0 2px #c8902a, 0 0 18px rgba(255,210,58,.25); cursor: pointer; overflow: hidden; animation: xglow 1.6s ease-in-out infinite; }
html[data-font] #modal .xwin .xchestr .xi { width: 64px; height: 64px; image-rendering: pixelated; animation: xwobble 1.4s ease-in-out infinite; } html[data-font] #modal .xwin .xchestr .xcrk { display: grid; text-align: left; } html[data-font] #modal .xwin .xchestr .xcrk b { color: #ffd27a; font-size: 22px !important; } html[data-font] #modal .xwin .xchestr .xcrk small { color: var(--xmuted); }
@keyframes xwobble { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-6deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
html[data-font] #modal .xwin .xchestr > i { position: absolute; left: 46px; top: 50%; width: 6px; height: 6px; background: #ffd23a; box-shadow: 0 0 0 1px #7a4a08; opacity: 0; }
html[data-font] #modal .xwin .xchestr.boom { animation: none; } html[data-font] #modal .xwin .xchestr.boom .xi { animation: xshake .45s linear 2; } html[data-font] #modal .xwin .xchestr.boom::after { content: ""; position: absolute; left: 46px; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff6c8; animation: xburst .5s .7s ease-out forwards; }
html[data-font] #modal .xwin .xchestr.boom > i { animation: xcoinfly .7s .75s ease-out forwards; } html[data-font] #modal .xwin .xchestr.boom > i:nth-of-type(odd) { background: #fff0a8; }
html[data-font] #modal .xwin .xchestr > i:nth-of-type(1) { --dx: 60px; --dy: 0px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(2) { --dx: 69px; --dy: 28px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(3) { --dx: 34px; --dy: 29px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(4) { --dx: -19px; --dy: 46px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(5) { --dx: -69px; --dy: 18px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(6) { --dx: -110px; --dy: 0px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(7) { --dx: -49px; --dy: -18px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(8) { --dx: -26px; --dy: -46px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(9) { --dx: 34px; --dy: -29px; } html[data-font] #modal .xwin .xchestr > i:nth-of-type(10) { --dx: 49px; --dy: -28px; }
@keyframes xburst { to { transform: scale(30); opacity: 0; } } @keyframes xcoinfly { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(180deg); } }
html[data-font] #modal .xwin .xhl.keep { box-shadow: inset 0 0 0 1px #c8902a; background: linear-gradient(90deg, rgba(255,210,58,.12), transparent); } html[data-font] #modal .xwin .xhl.keep b { color: #ffe8b0; }
html[data-font] #modal .xwin .xsplit { margin-bottom: 10px; } html[data-font] #modal .xwin .xsplit > b { color: #ffe8b0; } html[data-font] #modal .xwin .xsplitbar { display: flex; gap: 3px; margin: 8px 0 4px; } html[data-font] #modal .xwin .xsplitbar > span { flex: 0 0 var(--w); display: grid; align-content: center; min-height: 54px; padding: 4px 8px; color: #120b08; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px #120b08; overflow: hidden; animation: xgrow .8s cubic-bezier(.2, 1, .3, 1) both; transform-origin: left; }
html[data-font] #modal .xwin .xsplitbar b { font-size: 20px !important; color: #120b08; } html[data-font] #modal .xwin .xsplitbar small { font-size: 12px !important; color: #3a2a14; white-space: nowrap; } @keyframes xgrow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xchestr, html[data-font] #modal .xwin .xchestr .xi, html[data-font] #modal .xwin .xchestr.boom .xi, html[data-font] #modal .xwin .xsplitbar > span { animation: none; } }
/* v22: the trip's tunnel and the hourglass, drawn live on canvases, scaled up whole */
html[data-font] #modal .xwin .xtrkc { display: block; width: 100%; max-width: 720px; aspect-ratio: 240 / 30; height: auto; image-rendering: pixelated; box-shadow: 0 0 0 2px #120b08, inset 0 0 0 1px #3a2e40; background: #1a1418; }
html[data-font] #modal .xwin .xhgc { display: block; width: 80px; height: 100px; image-rendering: pixelated; margin: 0 auto; }
/* v23: the haul's lines all with a little room at the sides, so a keepsake's frame doesn't clip its picture */
html[data-font] #modal .xwin .xhl { padding: 3px 8px !important; } html[data-font] #modal .xwin .xhl.keep { padding: 4px 8px !important; } html[data-font] #modal .xwin .xhl .xi { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
/* v24: the money in four steps (no drawing: plain cards), coins dropping into where each part lands */
html[data-font] #modal .xwin .xmoney { display: grid; gap: 12px; } html[data-font] #modal .xwin .xm-step { padding: 10px 12px 12px; box-shadow: inset 0 0 0 2px var(--xline); background: #18121c; }
html[data-font] #modal .xwin .xm-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } html[data-font] #modal .xwin .xm-h em { display: inline-grid; place-items: center; width: 26px; height: 26px; font-style: normal; color: #3a1a08; background: #ffd23a; box-shadow: 0 0 0 2px #120b08; } html[data-font] #modal .xwin .xm-h b { color: #ffe8b0; font-size: 20px !important; }
html[data-font] #modal .xwin .xsplitbar { display: flex; gap: 3px; } html[data-font] #modal .xwin .xsplitbar > span { flex: 0 0 var(--w); display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px; color: #120b08; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px #120b08; white-space: nowrap; overflow: hidden; animation: xgrow .8s cubic-bezier(.2, 1, .3, 1) both; transform-origin: left; } html[data-font] #modal .xwin .xsplitbar b { font-size: 20px !important; color: #120b08; }
html[data-font] #modal .xwin .xm-cards { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
html[data-font] #modal .xwin .xm-card { position: relative; display: grid; gap: 2px; align-content: start; padding: 34px 10px 10px; box-shadow: inset 0 0 0 2px var(--xline); background: #1a1420; overflow: hidden; } html[data-font] #modal .xwin .xm-card > b { color: #ffe8b0; } html[data-font] #modal .xwin .xm-card > strong { font-size: 26px !important; line-height: 1.1 !important; color: #fff2d0; } html[data-font] #modal .xwin .xm-card > small { color: var(--xmuted); }
html[data-font] #modal .xwin .xm-card.pool { box-shadow: inset 0 0 0 2px #c8902a; } html[data-font] #modal .xwin .xm-card.jack { box-shadow: inset 0 0 0 2px #c85a2a; } html[data-font] #modal .xwin .xm-card.house { box-shadow: inset 0 0 0 2px #5a6a66; } html[data-font] #modal .xwin .xm-card > .xi { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; image-rendering: pixelated; }
html[data-font] #modal .xwin .xm-chute { position: absolute; left: 0; right: 0; top: 0; height: 30px; overflow: hidden; } html[data-font] #modal .xwin .xm-chute i { position: absolute; left: var(--x); top: -8px; width: 7px; height: 7px; background: var(--c); box-shadow: 0 0 0 1.5px #120b08; animation: xdropc 1.6s var(--d) linear infinite; } @keyframes xdropc { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
html[data-font] #modal .xwin .xm-eq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } html[data-font] #modal .xwin .xm-eq > span { display: grid; justify-items: center; gap: 2px; min-width: 120px; padding: 8px 12px; box-shadow: inset 0 0 0 2px var(--xline); background: #1a1420; } html[data-font] #modal .xwin .xm-eq > span b { font-size: 22px !important; color: #fff2d0; } html[data-font] #modal .xwin .xm-eq > span small { color: var(--xmuted); } html[data-font] #modal .xwin .xm-eq > span.res { box-shadow: inset 0 0 0 2px #5fd18b; } html[data-font] #modal .xwin .xm-eq > em { font-style: normal; font-size: 26px !important; color: #ffd27a; }
@media (max-width: 640px) { html[data-font] #modal .xwin .xm-cards { grid-template-columns: 1fr; } html[data-font] #modal .xwin .xsplitbar > span { padding: 0 6px; } }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xm-chute i, html[data-font] #modal .xwin .xsplitbar > span { animation: none; } }
/* v25: the four pots */
html[data-font] #modal .xwin .xm-cards.four { grid-template-columns: 1.4fr 1fr 1fr 1fr; } html[data-font] #modal .xwin .xm-card { padding-top: 10px; } html[data-font] #modal .xwin .xm-card.hold { box-shadow: inset 0 0 0 2px #8a4ac8; } html[data-font] #modal .xwin .xm-card.team { box-shadow: inset 0 0 0 2px #a8842a; }
html[data-font] #modal .xwin .xm-flow { margin-top: 6px; } @media (max-width: 760px) { html[data-font] #modal .xwin .xm-cards.four { grid-template-columns: 1fr 1fr; } } @media (max-width: 480px) { html[data-font] #modal .xwin .xm-cards.four { grid-template-columns: 1fr; } }
html[data-font] #modal .xwin .xm-cards.three { grid-template-columns: 1.4fr 1fr 1fr; } @media (max-width: 640px) { html[data-font] #modal .xwin .xm-cards.three { grid-template-columns: 1fr; } }
/* v27: what fills the pool */
html[data-font] #modal .xwin .xm-srcs { display: grid; gap: 6px; } html[data-font] #modal .xwin .xm-src { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; background: #1e1626; box-shadow: inset 4px 0 0 #5fd18b, inset 0 0 0 2px var(--xline); }
html[data-font] #modal .xwin .xm-src > span { display: grid; gap: 2px; } html[data-font] #modal .xwin .xm-src small { color: var(--xmuted); } html[data-font] #modal .xwin .xm-src > strong { color: #5fd18b; font-variant-numeric: tabular-nums; } html[data-font] #modal .xwin .xm-src.out { box-shadow: inset 4px 0 0 #ffb070, inset 0 0 0 2px var(--xline); } html[data-font] #modal .xwin .xm-src.out > strong { color: #ffb070; }
@media (max-width: 480px) { html[data-font] #modal .xwin .xm-src { grid-template-columns: auto minmax(0, 1fr); } html[data-font] #modal .xwin .xm-src > strong { grid-column: 2; } }
html[data-font] #modal .xwin .xmoney .xhint { display: block; line-height: 1.5; }

/* v30: the trader */
html[data-font] #modal .xwin .xtrader { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; margin: 0 0 10px; padding: 10px 12px; background: #1e1626; box-shadow: inset 4px 0 0 #ffd27a, inset 0 0 0 2px var(--xline); }
html[data-font] #modal .xwin .xtrader > span { display: grid; gap: 2px; } html[data-font] #modal .xwin .xtrader small { color: var(--xmuted); } html[data-font] #modal .xwin .xtrader em { font-style: normal; color: #5fd18b; }
html[data-font] #modal .xwin .xtrader .xtbar { grid-column: 1 / -1; height: 6px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xtrader .xtbar i { display: block; height: 100%; background: linear-gradient(90deg, #c8902a, #ffd27a); }
html[data-font] #modal .xwin .xqty { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 28px auto; align-items: center; gap: 3px; width: 100%; margin-top: 4px; }
html[data-font] #modal .xwin .xqty input { width: 100%; min-width: 0; height: 28px; padding: 0 4px; text-align: center; color: #fff2d0; background: #120b08; border: 0; box-shadow: inset 0 0 0 2px #4a3c52; font: inherit; -moz-appearance: textfield; }
html[data-font] #modal .xwin .xqty input::-webkit-outer-spin-button, html[data-font] #modal .xwin .xqty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } html[data-font] #modal .xwin .xqty input:focus-visible { outline: 2px solid #ffd27a; outline-offset: 1px; }
html[data-font] #modal .xwin .xqb { height: 28px; min-width: 28px; padding: 0 6px; color: #ffe8b0; background: #2a2032; border: 0; box-shadow: inset 0 0 0 2px #4a3c52; cursor: pointer; font: inherit; } html[data-font] #modal .xwin .xqb:hover { background: #3a2e44; } html[data-font] #modal .xwin .xqs { color: var(--xmuted); }
html[data-font] #modal .xwin .xres .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.15 !important; } html[data-font] #modal .xwin .xres .btn.xarm { font-size: 14px !important; }
html[data-font] #modal .xwin .xres.xcap { opacity: .7; } html[data-font] #modal .xwin .xres .btn:disabled { opacity: .55; cursor: default; }
html[data-font] #modal .xwin .xqty, html[data-font] #modal .xwin .xqty * { font-size: 16px !important; line-height: 1 !important; }

/* v31: two ways to use finds */
html[data-font] #modal .xwin .xuses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; } html[data-font] #modal .xwin .xuse { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 12px; background: #1e1626; box-shadow: inset 4px 0 0 #5fd18b, inset 0 0 0 2px var(--xline); }
html[data-font] #modal .xwin .xuse + .xuse { box-shadow: inset 4px 0 0 #ffd27a, inset 0 0 0 2px var(--xline); } html[data-font] #modal .xwin .xuse > span { display: grid; gap: 2px; } html[data-font] #modal .xwin .xuse small { color: var(--xmuted); }
html[data-font] #modal .xwin .xuse .xtbar { grid-column: 1 / -1; height: 6px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xuse .xtbar i { display: block; height: 100%; background: linear-gradient(90deg, #c8902a, #ffd27a); }
@media (max-width: 640px) { html[data-font] #modal .xwin .xuses { grid-template-columns: 1fr; } }

/* v32: veins, the Smithy, the hot seam */
html[data-font] #modal .xwin .xveins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } html[data-font] #modal .xwin .xvein { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; color: var(--xtext); background: var(--xcard); border: 0; box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; font: inherit; text-align: center; }
html[data-font] #modal .xwin .xvein.on { box-shadow: inset 0 0 0 3px #ffd27a; background: #2a2a20; } html[data-font] #modal .xwin .xvein small { color: var(--xmuted); } html[data-font] #modal .xwin .xvbars { display: flex; align-items: flex-end; gap: 3px; height: 30px; } html[data-font] #modal .xwin .xvbars i { width: 8px; background: linear-gradient(#ffd27a, #c8902a); box-shadow: 0 0 0 1px #120b08; }
html[data-font] #modal .xwin .xvein.v-wild .xvbars i { background: linear-gradient(#ff9a6a, #c84a2a); } html[data-font] #modal .xwin .xvein.v-steady .xvbars i { background: linear-gradient(#9af0b0, #3a9a5a); }
html[data-font] #modal .xwin .xopt.gear { display: grid; gap: 6px; padding: 0; } html[data-font] #modal .xwin .xopt.gear .xgbtn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; width: 100%; padding: 8px 10px; color: inherit; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; } html[data-font] #modal .xwin .xopt.gear .xgbtn em { grid-column: 1 / -1; }
html[data-font] #modal .xwin .xopt.gear .btn { margin: 0 10px 8px; } html[data-font] #modal .xwin .xopt.gear.off { opacity: .85; } html[data-font] #modal .xwin .xopt.gear .xgbtn:disabled { cursor: default; }
html[data-font] #modal .xwin .xhot { display: inline-block; margin: 2px 0; padding: 1px 8px; color: #2a1004; background: linear-gradient(90deg, #ff8a3a, #ffd23a); box-shadow: 0 0 0 1px #120b08, 0 0 12px rgba(255,140,60,.45); animation: xhotg 1.8s ease-in-out infinite; } @keyframes xhotg { 50% { box-shadow: 0 0 0 1px #120b08, 0 0 20px rgba(255,140,60,.75); } }
html[data-font] #modal .xwin .xitem.smith { box-shadow: inset 0 0 0 2px #6a7a8a; } html[data-font] #modal .xwin .xp.ore { display: inline-flex; align-items: center; gap: 4px; } html[data-font] #modal .xwin .xforge { display: inline-flex; gap: 6px; }
html[data-font] #modal .xwin .xres.ore { box-shadow: inset 0 0 0 2px #6a7a8a; } @media (max-width: 640px) { html[data-font] #modal .xwin .xveins { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xhot { animation: none; } }
html[data-font] #modal .xwin .xopt.gear { grid-template-columns: minmax(0, 1fr) !important; align-content: start; } html[data-font] #modal .xwin .xopt.gear .xgbtn > span { display: grid; gap: 2px; min-width: 0; } html[data-font] #modal .xwin .xopt.gear .xgbtn small { color: var(--xmuted); } html[data-font] #modal .xwin .xopt.gear .xgbtn em { font-style: normal; color: var(--xmuted); }
/* v33: the planner on one screen */
html[data-font] #modal .xwin .xplan { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
html[data-font] #modal .xwin .xpl-r { position: sticky; top: 0; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
html[data-font] #modal .xwin .xpblk { margin: 0 0 10px; padding: 10px 12px; background: var(--xcard); box-shadow: inset 0 0 0 2px var(--xline); } html[data-font] #modal .xwin .xpblk > h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
html[data-font] #modal .xwin .xpblk > h3 i { display: inline-grid; place-items: center; width: 22px; height: 22px; font-style: normal; color: #120b08; background: #ffd27a; } html[data-font] #modal .xwin .xpblk h4 { margin: 10px 0 6px; } html[data-font] #modal .xwin .xpblk h4 small, html[data-font] #modal .xwin .xpblk h3 small { color: var(--xmuted); font-weight: 400; }
html[data-font] #modal .xwin .xpseams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html[data-font] #modal .xwin .xpseam { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px; color: var(--xtext); text-align: left; background: #1e1626; border: 0; box-shadow: inset 0 0 0 2px var(--xline), inset 4px 0 0 var(--rc); cursor: pointer; font: inherit; }
html[data-font] #modal .xwin .xpseam.on { background: #2a2a20; box-shadow: inset 0 0 0 3px #ffd27a, inset 6px 0 0 var(--rc); } html[data-font] #modal .xwin .xpsart img { width: 44px; height: 44px; image-rendering: pixelated; display: block; } html[data-font] #modal .xwin .xpsbody { display: grid; gap: 1px; min-width: 0; } html[data-font] #modal .xwin .xpsbody small { color: var(--xmuted); } html[data-font] #modal .xwin .xpsbody .pos { color: #5fd18b; }
html[data-font] #modal .xwin .xpslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
html[data-font] #modal .xwin .xpslot { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 8px; color: var(--xtext); background: #160f1c; border: 0; box-shadow: inset 0 0 0 2px #3a2e44; font: inherit; text-align: left; } html[data-font] #modal .xwin .xpslot.full { background: #2a2a20; box-shadow: inset 0 0 0 2px #ffd27a; cursor: pointer; }
html[data-font] #modal .xwin .xpslot .xface { width: 40px; height: 40px; } html[data-font] #modal .xwin .xpslot > span { display: grid; min-width: 0; } html[data-font] #modal .xwin .xpslot small { color: var(--xmuted); } html[data-font] #modal .xwin .xpslot .xplus { color: #6a5a7a; font-size: 22px !important; } html[data-font] #modal .xwin .xpslot .xx { position: absolute; top: 2px; right: 6px; font-style: normal; color: #ff9a7a; }
html[data-font] #modal .xwin .xproster { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; max-height: 172px; overflow: auto; padding: 2px; }
html[data-font] #modal .xwin .xpsh { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; color: var(--xtext); background: #1e1626; border: 0; box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; font: inherit; } html[data-font] #modal .xwin .xpsh .xface { width: 44px; height: 44px; } html[data-font] #modal .xwin .xpsh small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-font] #modal .xwin .xpsh.on { box-shadow: inset 0 0 0 3px #ffd27a; background: #2a2a20; } html[data-font] #modal .xwin .xpsh.busy { opacity: .45; cursor: default; }
html[data-font] #modal .xwin .xpveins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html[data-font] #modal .xwin .xpvein { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; color: var(--xtext); text-align: left; background: #1e1626; border: 0; box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; font: inherit; }
html[data-font] #modal .xwin .xpvein.on { background: #2a2a20; box-shadow: inset 0 0 0 3px #ffd27a; } html[data-font] #modal .xwin .xpvein > span:last-child { display: grid; min-width: 0; } html[data-font] #modal .xwin .xpvein small { color: var(--xmuted); } html[data-font] #modal .xwin .xpvein .xvbars { height: 24px; } html[data-font] #modal .xwin .xpvein .xvbars i { width: 5px; }
html[data-font] #modal .xwin .xpvein.v-wild .xvbars i { background: linear-gradient(#ff9a6a, #c84a2a); } html[data-font] #modal .xwin .xpvein.v-steady .xvbars i { background: linear-gradient(#9af0b0, #3a9a5a); }
html[data-font] #modal .xwin .xpchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
html[data-font] #modal .xwin .xpchip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; color: var(--xtext); text-align: left; background: #1e1626; border: 0; box-shadow: inset 0 0 0 2px var(--xline); cursor: pointer; font: inherit; }
html[data-font] #modal .xwin .xpchip > span { display: grid; min-width: 0; } html[data-font] #modal .xwin .xpchip small { color: var(--xmuted); } html[data-font] #modal .xwin .xpchip .xpq { color: #c8b8cc; } html[data-font] #modal .xwin .xpchip.on { background: #20301f; box-shadow: inset 0 0 0 3px #5fd18b; }
html[data-font] #modal .xwin .xpchip.gear { grid-template-columns: minmax(0, 1fr); padding: 0; cursor: default; } html[data-font] #modal .xwin .xpgb { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; } html[data-font] #modal .xwin .xpgb > span { display: grid; min-width: 0; } html[data-font] #modal .xwin .xpgb:disabled { cursor: default; opacity: .7; }
html[data-font] #modal .xwin .xpforge { margin: 0 8px 6px; padding: 4px 8px; color: #120b08; background: #ffd27a; border: 0; box-shadow: inset 0 -2px 0 #c8902a; cursor: pointer; font: inherit; } html[data-font] #modal .xwin .xpforge:disabled { opacity: .5; cursor: default; }
html[data-font] #modal .xwin .xptrip { display: grid; gap: 8px; padding: 12px; background: #1a1420; box-shadow: inset 0 0 0 2px var(--xline), inset 0 4px 0 var(--rc, #ffd27a); } html[data-font] #modal .xwin .xptrip.idle { justify-items: center; text-align: center; color: var(--xmuted); padding: 24px 12px; }
html[data-font] #modal .xwin .xpth { display: grid; gap: 2px; } html[data-font] #modal .xwin .xpth small { color: var(--xmuted); } html[data-font] #modal .xwin .xpth .xi { width: 18px; height: 18px; vertical-align: middle; }
html[data-font] #modal .xwin .xpstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } html[data-font] #modal .xwin .xpst { display: grid; gap: 1px; padding: 6px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xpst small { color: var(--xmuted); } html[data-font] #modal .xwin .xpst.pos b { color: #5fd18b; } html[data-font] #modal .xwin .xpst.neg b { color: #ff9a7a; }
html[data-font] #modal .xwin .xpd { font-style: normal; } html[data-font] #modal .xwin .xpd.up { color: #5fd18b; } html[data-font] #modal .xwin .xpd.dn { color: #ff7a5a; }
html[data-font] #modal .xwin .xphist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; align-items: end; height: 96px; padding: 4px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; }
html[data-font] #modal .xwin .xphist > span { display: grid; grid-template-rows: 1fr auto auto; height: 100%; justify-items: center; } html[data-font] #modal .xwin .xphist i { align-self: end; width: 100%; background: linear-gradient(#ffd27a, #c8902a); transition: height .35s cubic-bezier(.2, .9, .3, 1.2); } html[data-font] #modal .xwin .xphist .win i { background: linear-gradient(#9af0b0, #3a9a5a); } html[data-font] #modal .xwin .xphist .lost i { background: linear-gradient(#ff9a7a, #a83a2a); }
html[data-font] #modal .xwin .xphist em { font-style: normal; color: #fff2d0; } html[data-font] #modal .xwin .xphist small { color: var(--xmuted); } html[data-font] #modal .xwin .xprange { margin: 0; color: var(--xmuted); } html[data-font] #modal .xwin .xprange b { color: #fff2d0; }
html[data-font] #modal .xwin .xpbill summary, html[data-font] #modal .xwin .xptrip .xpz summary { cursor: pointer; } html[data-font] #modal .xwin .xpbill ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; } html[data-font] #modal .xwin .xpbill li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; align-items: center; } html[data-font] #modal .xwin .xpbill .ok, html[data-font] #modal .xwin .xpbill i.ok { color: #5fd18b; font-style: normal; } html[data-font] #modal .xwin .xpbill .no, html[data-font] #modal .xwin .xpbill i.no { color: #ffb070; font-style: normal; }
html[data-font] #modal .xwin .xptrip .xgo { width: 100%; }
@media (max-width: 980px) { html[data-font] #modal .xwin .xplan { grid-template-columns: minmax(0, 1fr); } html[data-font] #modal .xwin .xpl-r { position: sticky; top: auto; bottom: 0; max-height: 62vh; z-index: 2; box-shadow: 0 -8px 24px rgba(0,0,0,.6); } html[data-font] #modal .xwin .xpseams, html[data-font] #modal .xwin .xpveins { grid-template-columns: minmax(0, 1fr); } html[data-font] #modal .xwin .xpstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { html[data-font] #modal .xwin .xpl-r .xphist { height: 70px; } html[data-font] #modal .xwin .xpl-r .xpz, html[data-font] #modal .xwin .xpl-r .xprange { display: none; } }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xphist i { transition: none; } }
html[data-font] #modal .xwin .xplan, html[data-font] #modal .xwin .xplan * { font-size: 16px !important; line-height: 1.25 !important; } html[data-font] #modal .xwin .xplan .xpblk > h3, html[data-font] #modal .xwin .xplan .xpblk > h3 > :not(small), html[data-font] #modal .xwin .xplan .xpst b, html[data-font] #modal .xwin .xplan .xpth > b { font-size: 24px !important; line-height: 1.1 !important; } html[data-font] #modal .xwin .xplan .xpblk > h3 i { font-size: 16px !important; }
#modal .panel.wide:has(.xplan) { width: min(1280px, calc(100vw - 24px)); }
html[data-font] #modal .xwin .xplan .xpblk { padding: 8px 10px; margin-bottom: 8px; } html[data-font] #modal .xwin .xplan .xpblk h4 { margin: 8px 0 4px; } html[data-font] #modal .xwin .xplan .xpchips { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
html[data-font] #modal .xwin .xplan .xproster { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); max-height: 150px; } html[data-font] #modal .xwin .xplan .xpsh .xface { width: 40px; height: 40px; }
html[data-font] #modal .xwin .xpnote { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--xmuted); } html[data-font] #modal .xwin .xpnote b { color: #ffd27a; } html[data-font] #modal .xwin .xpnote .xi { width: 18px; height: 18px; flex: none; }
@media (max-width: 980px) { html[data-font] #modal .xwin .xpl-r { max-height: none; } html[data-font] #modal .xwin .xpl-r .xptrip { gap: 6px; padding: 8px 10px; } html[data-font] #modal .xwin .xpl-r .xptrip > h4, html[data-font] #modal .xwin .xpl-r .xphist, html[data-font] #modal .xwin .xpl-r .xpnote, html[data-font] #modal .xwin .xpl-r .xprange, html[data-font] #modal .xwin .xpl-r .xpz, html[data-font] #modal .xwin .xpl-r .xpbill { display: none; }
  html[data-font] #modal .xwin .xpl-r .xpstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } html[data-font] #modal .xwin .xpl-r .xpst { padding: 4px; } html[data-font] #modal .xwin .xplan .xpl-r .xpst b { font-size: 16px !important; } html[data-font] #modal .xwin .xplan .xpl-r .xpth > b { font-size: 16px !important; } html[data-font] #modal .xwin .xpl-r .xptrip.idle { padding: 8px; } html[data-font] #modal .xwin .xpl-r .xptrip.idle p, html[data-font] #modal .xwin .xpl-r .xptrip.idle .xi { display: none; } }
/* v34: the trip card, plain */
html[data-font] #modal .xwin .xpseam { position: relative; } html[data-font] #modal .xwin .xpseam .xhot { position: absolute; top: -6px; right: 6px; margin: 0; padding: 0 6px; }
/* v41: Lucky Days, one line over the planner */
html[data-font] #modal .xwin .xpromo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; padding: 8px 12px; color: #ffe9b0; background: #2a1a0c; box-shadow: inset 0 0 0 2px #120b08, inset 0 0 0 4px #c98a2a; } html[data-font] #modal .xwin .xpromo .xhot { margin: 0; } html[data-font] #modal .xwin .xpromo b { color: #ffd23a; } html[data-font] #modal .xwin .xpromo small { margin-left: auto; color: #d9b98a; }
html[data-font] #modal .xwin .xpks { display: flex; gap: 2px; min-height: 0; } html[data-font] #modal .xwin .xpk { display: inline-grid; place-items: center; width: 20px; height: 20px; background: #2a2032; box-shadow: inset 0 0 0 1px #6a5a7a; } html[data-font] #modal .xwin .xpk .xi { width: 16px; height: 16px; }
html[data-font] #modal .xwin .xpsh { position: relative; } html[data-font] #modal .xwin .xpsh .xpks { position: absolute; top: 2px; right: 2px; flex-direction: column; } html[data-font] #modal .xwin .xpsh .xpk { width: 18px; height: 18px; } html[data-font] #modal .xwin .xpsh .xpk .xi { width: 14px; height: 14px; }
html[data-font] #modal .xwin .xpslot .xpks { margin-top: 2px; }
html[data-font] #modal .xwin .xpchip em { font-style: normal; color: #c8b8cc; white-space: nowrap; } html[data-font] #modal .xwin .xpchip { grid-template-columns: auto minmax(0, 1fr) auto; } html[data-font] #modal .xwin .xpchip em.ore { color: #9ad0ff; } html[data-font] #modal .xwin .xpchip.lack { box-shadow: inset 0 0 0 2px #3a4a5a; } html[data-font] #modal .xwin .xpchip.lack:not(:disabled) { cursor: pointer; } html[data-font] #modal .xwin .xpchip:disabled { opacity: .55; cursor: default; }
html[data-font] #modal .xwin .xpth { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; } html[data-font] #modal .xwin .xpth > span { color: var(--xmuted); } html[data-font] #modal .xwin .xpon { display: inline-flex; gap: 2px; vertical-align: middle; } html[data-font] #modal .xwin .xpon .xi { width: 18px; height: 18px; }
html[data-font] #modal .xwin .xphero { display: grid; gap: 6px; padding: 10px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xphero > span { display: flex; align-items: baseline; gap: 10px; } html[data-font] #modal .xwin .xphero > span small { color: var(--xmuted); }
html[data-font] #modal .xwin .xplan .xphero > span b { font-size: 48px !important; line-height: 1 !important; color: #5fd18b; text-shadow: 0 2px 0 #0a1a0e; } html[data-font] #modal .xwin .xplan .xphero .xpd { font-size: 24px !important; }
html[data-font] #modal .xwin .xpbar { display: flex; height: 26px; box-shadow: 0 0 0 2px #120b08; } html[data-font] #modal .xwin .xpbar > span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; color: #120b08; transition: flex .35s cubic-bezier(.2, .9, .3, 1.1); } html[data-font] #modal .xwin .xpbar > span .xpc, html[data-font] #modal .xwin .xpbar > span .pc { color: inherit; }
html[data-font] #modal .xwin .xpbar > .lost { background: #c84a3a; } html[data-font] #modal .xwin .xpbar > .less { background: #8a7a5a; } html[data-font] #modal .xwin .xpbar > .win { background: #5fd18b; } html[data-font] #modal .xwin .xpbar > .big { background: linear-gradient(90deg, #ffd23a, #fff0a8); }
html[data-font] #modal .xwin .xpleg { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--xmuted); } html[data-font] #modal .xwin .xpleg span { display: inline-flex; align-items: center; gap: 4px; } html[data-font] #modal .xwin .xpleg u { width: 10px; height: 10px; text-decoration: none; } html[data-font] #modal .xwin .xpleg .lost u { background: #c84a3a; } html[data-font] #modal .xwin .xpleg .less u { background: #8a7a5a; } html[data-font] #modal .xwin .xpleg .win u { background: #5fd18b; } html[data-font] #modal .xwin .xpleg .big u { background: #ffd23a; }
html[data-font] #modal .xwin .xpcost { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; } html[data-font] #modal .xwin .xpcost em { font-style: normal; } html[data-font] #modal .xwin .xpcost .ok { color: #5fd18b; } html[data-font] #modal .xwin .xpcost .no { color: #ffb070; } html[data-font] #modal .xwin .xpcost small { color: var(--xmuted); }
@media (max-width: 980px) { html[data-font] #modal .xwin .xpl-r .xpleg, html[data-font] #modal .xwin .xpl-r .xpcost small { display: none; } html[data-font] #modal .xwin .xplan .xpl-r .xphero > span b { font-size: 32px !important; } html[data-font] #modal .xwin .xpl-r .xphero { padding: 6px; } }
@media (prefers-reduced-motion: reduce) { html[data-font] #modal .xwin .xpbar > span { transition: none; } }
@media (max-width: 980px) { html[data-font] #modal .xwin .xpl-r .xpstats, html[data-font] #modal .xwin .xpl-r .xpcost { display: none; } html[data-font] #modal .xwin .xpl-r .xpth { font-size: 16px; } }

/* v35 */
html[data-font] #modal .xwin .xpchip.gear { grid-template-columns: auto minmax(0, 1fr) auto !important; padding: 6px 8px !important; cursor: pointer; align-items: center; } html[data-font] #modal .xwin .xpchip { align-items: center; }
html[data-font] #modal .xwin .xpe { font-style: normal; padding: 2px 6px; white-space: nowrap; color: #c8b8cc; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xpe.up { color: #5fd18b; box-shadow: inset 0 0 0 1px #2e6a44; } html[data-font] #modal .xwin .xpe.dn { color: #ff8a6a; box-shadow: inset 0 0 0 1px #6a2e24; } html[data-font] #modal .xwin .xpe.save { color: #9ad0ff; white-space: normal; max-width: 92px; text-align: center; }
html[data-font] #modal .xwin .xpchip .xpq.ore { color: #9ad0ff; }
html[data-font] #modal .xwin .xplan .xproster { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 236px; } html[data-font] #modal .xwin .xplan .xpsh { padding: 6px 4px; gap: 3px; } html[data-font] #modal .xwin .xplan .xpsh .xface { width: 60px; height: 60px; }
html[data-font] #modal .xwin .xpsh .xpks { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; } html[data-font] #modal .xwin .xpk { display: inline-block; width: auto !important; height: auto !important; padding: 1px 4px; font-style: normal; color: #9af0b0; background: #16261c; box-shadow: inset 0 0 0 1px #2e6a44; white-space: nowrap; }
html[data-font] #modal .xwin .xplan .xpk { font-size: 13px !important; line-height: 1.2 !important; } html[data-font] #modal .xwin .xpslot .xpks { display: flex; gap: 3px; flex-wrap: wrap; }
html[data-font] #modal .xwin .xphero > span { align-items: center !important; } html[data-font] #modal .xwin .xphero > span > span { display: grid; gap: 2px; } html[data-font] #modal .xwin .xphero strong { color: #e8f8ec; } html[data-font] #modal .xwin .xphero > span > span small { color: var(--xmuted); }
html[data-font] #modal .xwin .xplan .xpchips { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } html[data-font] #modal .xwin .xpchip small { overflow: hidden; text-overflow: ellipsis; }

/* v36 */
html[data-font] #modal .xwin .xpk.luck { color: #ffd27a; background: #2a2210; box-shadow: inset 0 0 0 1px #8a6a20; } html[data-font] #modal .xwin .xpk.low { color: #c8a0a0; background: #2a1818; box-shadow: inset 0 0 0 1px #6a3a3a; }
html[data-font] #modal .xwin .xpbest { margin-left: auto; padding: 2px 10px; color: #120b08; background: #ffd27a; border: 0; box-shadow: inset 0 -2px 0 #c8902a; cursor: pointer; font: inherit; } html[data-font] #modal .xwin .xpbest:hover { background: #ffe39a; }
html[data-font] #modal .xwin .xpgo2 { display: grid; gap: 6px; } html[data-font] #modal .xwin .xpgo2 .btn { width: 100%; }

/* v37: combos, orders, the reel, repeat */
html[data-font] #modal .xwin .xcombos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; } html[data-font] #modal .xwin .xcb { display: inline-flex; gap: 4px; align-items: baseline; padding: 3px 8px; background: #1e1626; box-shadow: inset 0 0 0 1px #4a3c52; }
html[data-font] #modal .xwin .xcb.on { color: #ffe8a0; background: linear-gradient(90deg, #3a2a10, #2a2210); box-shadow: inset 0 0 0 1px #c8902a, 0 0 10px rgba(255,200,80,.25); } html[data-font] #modal .xwin .xcb.near { color: var(--xmuted); } html[data-font] #modal .xwin .xcb small { color: var(--xmuted); } html[data-font] #modal .xwin .xcb.on small { color: #e8d0a0; }
html[data-font] #modal .xwin .xcball summary { cursor: pointer; color: var(--xmuted); } html[data-font] #modal .xwin .xcball p { margin: 4px 0; } html[data-font] #modal .xwin .xcball small { color: var(--xmuted); } html[data-font] #modal .xwin .xpcbs { display: flex; gap: 4px; flex-wrap: wrap; } html[data-font] #modal .xwin .xcb.mini { padding: 1px 6px; }
html[data-font] #modal .xwin .xorders .xord { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 0 4px; background: #1e1626; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xord.done { box-shadow: inset 0 0 0 2px #5fd18b; } html[data-font] #modal .xwin .xord.got { opacity: .55; }
html[data-font] #modal .xwin .xordt { display: grid; gap: 2px; min-width: 0; } html[data-font] #modal .xwin .xordt small { color: #9ad0ff; } html[data-font] #modal .xwin .xordp { position: relative; height: 18px; background: #120b08; box-shadow: inset 0 0 0 1px #3a2e44; } html[data-font] #modal .xwin .xordp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3a9a5a, #5fd18b); } html[data-font] #modal .xwin .xordp em { position: relative; display: block; text-align: center; font-style: normal; color: #fff2d0; }
html[data-font] #modal .xwin .xordc { color: #5fd18b; } html[data-font] #modal .xwin .xordbar { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 10px; color: var(--xtext); background: #16261c; border: 0; box-shadow: inset 0 0 0 2px #5fd18b; cursor: pointer; font: inherit; text-align: left; } html[data-font] #modal .xwin .xordbar small { color: var(--xmuted); }
html[data-font] #modal .xwin .xrepeat { display: flex; gap: 10px; align-items: center; width: 100%; margin: 0 0 10px; padding: 8px 12px; color: var(--xtext); text-align: left; background: #1e1a10; border: 0; box-shadow: inset 0 0 0 2px #c8902a; cursor: pointer; font: inherit; } html[data-font] #modal .xwin .xrepeat > span { display: grid; } html[data-font] #modal .xwin .xrepeat small { color: var(--xmuted); } html[data-font] #modal .xwin .xrepeat.off { opacity: .5; cursor: default; }
html[data-font] #modal .xwin .xdeep { margin-top: 6px; } html[data-font] #modal .xwin .xdug { display: inline-block; margin-top: 6px; padding: 2px 8px; color: #c8b8cc; box-shadow: inset 0 0 0 1px #4a3c52; } html[data-font] #modal .xwin .xdug.up { color: #5fd18b; } html[data-font] #modal .xwin .xdug.dn { color: #ff8a6a; }
#modal .xreel { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(8,5,10,.86); animation: xfadein .2s both; } @keyframes xfadein { from { opacity: 0; } }
#modal .xreelc { display: grid; gap: 10px; justify-items: center; width: min(760px, 92%); padding: 18px; background: #1a1420; box-shadow: inset 0 0 0 2px #c8902a, 0 0 40px rgba(255,190,80,.2); text-align: center; } #modal .xreels { margin: 0; color: var(--xmuted); } #modal .xreels b { color: #ffd27a; }
#modal .xreelw { position: relative; width: 100%; height: 92px; overflow: hidden; background: #0e0a10; box-shadow: inset 0 0 0 2px #3a2e44; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
#modal .xreelt { display: flex; gap: 6px; height: 100%; padding: 8px 0; will-change: transform; } #modal .xrs { flex: 0 0 84px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(0,0,0,.4); } #modal .xrs b { color: #120b08; }
#modal .xrs.lose { background: #6a2a24; } #modal .xrs.lose b { color: #ffb0a0; } #modal .xrs.half { background: #8a7a5a; } #modal .xrs.up { background: #4aa86a; } #modal .xrs.dbl { background: #6ad08a; } #modal .xrs.jack { background: linear-gradient(135deg, #ffd23a, #fff0a8, #ffb020); }
#modal .xrs.hit { animation: xhit .6s 2; box-shadow: inset 0 0 0 3px #fff2d0, 0 0 22px rgba(255,230,150,.8); } @keyframes xhit { 50% { transform: scale(1.08); } }
#modal .xreelm { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: #ffd27a; box-shadow: 0 0 10px #ffd27a; } #modal .xreelm::before, #modal .xreelm::after { content: ""; position: absolute; left: -6px; border: 8px solid transparent; } #modal .xreelm::before { top: 0; border-top-color: #ffd27a; } #modal .xreelm::after { bottom: 0; border-bottom-color: #ffd27a; }
#modal .xreelr { margin: 0; min-height: 24px; } #modal .xreelr b { color: #5fd18b; } #modal .xreel.lose #modal .xreelr { color: #ff9a7a; } #modal .xreel.jack #modal .xreelc { box-shadow: inset 0 0 0 3px #ffd23a, 0 0 60px rgba(255,210,60,.5); } #modal .xreelr small { display: block; color: var(--xmuted); }
#modal .panel { position: relative; } @media (prefers-reduced-motion: reduce) { #modal .xrs.hit, #modal .xreel { animation: none; } }
@media (max-width: 640px) { html[data-font] #modal .xwin .xorders .xord { grid-template-columns: minmax(0, 1fr) auto; } html[data-font] #modal .xwin .xordp { grid-column: 1 / -1; grid-row: 2; } } @media (max-width: 640px) { #modal .xrs { flex-basis: 64px; } }
/* v38: phones */
@media (max-width: 640px) { html[data-font] #modal .xwin .xshop { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } html[data-font] #modal .xwin .xitem { min-width: 0; } html[data-font] #modal .xwin .xitem p, html[data-font] #modal .xwin .xitem .xshort { overflow-wrap: anywhere; } html[data-font] #modal .xwin .xbuy { flex-wrap: wrap; }
  html[data-font] #modal .xwin .xplan .xpslots { grid-template-columns: minmax(0, 1fr); } html[data-font] #modal .xwin .xpslot > span { min-width: 0; } html[data-font] #modal .xwin .xpslot b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-font] #modal .xwin .xm-flow .flowlab li span { white-space: normal; } html[data-font] #modal .xwin .xm-flow .flowlab { flex: 1 1 0; } }
@media (max-width: 420px) { html[data-font] #modal .xwin .xshop { grid-template-columns: minmax(0, 1fr) !important; } html[data-font] #modal .xwin .xm-flow.flowgrid { flex-direction: column; align-items: stretch; } html[data-font] #modal .xwin .xm-flow .flowlab { grid-auto-rows: auto !important; gap: 6px; padding-top: 0 !important; } html[data-font] #modal .xwin .xm-flow canvas { align-self: center; } }
html:has(#modal:not([hidden])) #xtrack { display: none; }

/* Haunted Night (Halloween) */
html[data-font] #modal .xwin .xhaunt { color: #f3e2ff; background: #1c1026; box-shadow: inset 0 0 0 2px #0c0612, inset 0 0 0 4px #8a4ad8; }
html[data-font] #modal .xwin .xhaunt b { color: #ffb05a; }
html[data-font] #modal .xwin .xhaunt small { color: #c8a8e8; }
html[data-font] #modal .xwin .xhot.xghost { color: #fff3e0; background: #6a2ab8; box-shadow: inset 0 0 0 1px #c08aff; }
html[data-font] #modal .xwin .xpseam.haunted { box-shadow: inset 0 0 0 2px #8a4ad8; }
html[data-font] #modal .xwin .xpseam.haunted .xpsbody > b { color: #ffb05a; }

/* the Halloween set */
html[data-font] #modal .xwin .xhwc { position: absolute; top: 4px; left: 4px; padding: 1px 5px; font-size: 11px; color: #fff3e0; background: #6a2ab8; box-shadow: inset 0 0 0 1px #c08aff; }
html[data-font] #modal .xwin .xkeep.none .xhwc { opacity: 1; }
html[data-font] #modal .xwin .xhwset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; padding: 10px 12px; background: #1c1026; box-shadow: inset 0 0 0 2px #0c0612, inset 0 0 0 4px #8a4ad8; }
html[data-font] #modal .xwin .xhwh { display: flex; flex-direction: column; } html[data-font] #modal .xwin .xhwh b { color: #ffb05a; } html[data-font] #modal .xwin .xhwh small { color: #c8a8e8; }
html[data-font] #modal .xwin .xhwi { display: flex; gap: 6px; flex-wrap: wrap; } html[data-font] #modal .xwin .xhwi .off { opacity: .35; filter: grayscale(1); }

/* the Forge's window: wide enough for its two columns, the circle's words inside their slots, the catalyst a square */
#modal .panel.wide:has(.fgrid) { width: min(1180px, calc(100vw - 24px)); }
html[data-font] #modalBody .fslot > span { display: block; padding: 0 4px; font-size: 12px; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
html[data-font] #modalBody .fcatrow .fslot { flex: 0 0 auto; width: clamp(64px, 18%, 96px); height: auto; aspect-ratio: 1; }
html[data-font] #modalBody .fcatrow .fslot > span { font-size: 11px; }
html[data-font] #modalBody .fcatrow small { max-width: none; }
@media (max-width: 1100px) { html[data-font] #modalBody .fslot > span { font-size: 10px; } }

/* the Holders' Draw window: tabs; the turning cage, the clock and the prizes; three steps; the holder's own count; the
   players' table; the results. Its sizes are its own (kept out of fontsnap.js) */
#modal .panel.wide:has(.drwin) { width: min(1060px, calc(100vw - 24px)); }
html[data-font] #modalBody .drwin { font-size: 18px; line-height: 1.5; color: #e8dcc0; }
html[data-font] #modalBody .drwin b { color: #fff0c8; }
html[data-font] #modalBody .drwin small { font-size: 15px; }
html[data-font] #modalBody .drtabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
html[data-font] #modalBody .drtab { padding: 8px 16px; border: 0; cursor: pointer; font: inherit; font-size: 17px; color: #c8b898; background: #1a100a; box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 3px #4a3018; }
html[data-font] #modalBody .drtab:hover { color: #fff0c8; }
html[data-font] #modalBody .drtab.on { color: #1a0e06; background: #ffd23a; box-shadow: inset 0 0 0 2px #0c0806; }
html[data-font] #modalBody .drlede { margin: 0 0 12px; font-size: 19px; color: #f2e6cc; }
html[data-font] #modalBody .drhead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr); gap: 14px; margin: 0 0 14px; }
html[data-font] #modalBody .drclock { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: radial-gradient(120% 140% at 20% 50%, #2a1a0e 0%, #140c06 70%); box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 4px #6a4424; }
html[data-font] #modalBody .drclock canvas { flex: 0 0 auto; width: 132px; height: 132px; }
html[data-font] #modalBody .drclock > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-font] #modalBody .drclock small { color: #c8b898; }
html[data-font] #modalBody .drclock b { color: #ffd23a; font-size: 44px; line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255, 180, 40, .35); }
html[data-font] #modalBody .drprizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
html[data-font] #modalBody .drprizes li { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: linear-gradient(180deg, #34200e, #22150a); box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 4px #c98a2a; }
html[data-font] #modalBody .drprizes li.new { box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 4px #5ad8a0; }
html[data-font] #modalBody .drprizes i { font-style: normal; font-size: 14px; letter-spacing: 1px; color: #e8781a; }
html[data-font] #modalBody .drprizes li.new i { color: #5ad8a0; }
html[data-font] #modalBody .drprizes b { font-size: 20px; }
html[data-font] #modalBody .drprizes small { color: #b8a888; }
html[data-font] #modalBody .drsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
html[data-font] #modalBody .drsteps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 54px; background: #1a100a; box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 3px #4a3018; }
html[data-font] #modalBody .drsteps i { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; font-style: normal; font-size: 20px; color: #1a0e06; background: #ffd23a; box-shadow: inset 0 0 0 2px #0c0806; }
html[data-font] #modalBody .drsteps b { font-size: 19px; color: #ffd23a; }
html[data-font] #modalBody .drsteps span { font-size: 16px; color: #d8ccb0; }
html[data-font] #modalBody .drsteps span b { font-size: 16px; color: #fff0c8; }
html[data-font] #modalBody .drme { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
html[data-font] #modalBody .drme > p { grid-column: 1 / -1; margin: 0; }
html[data-font] #modalBody .drst { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #1a100a; box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 3px #4a3018; }
html[data-font] #modalBody .drst span { color: #b8a888; font-size: 15px; }
html[data-font] #modalBody .drst b { font-size: 26px; font-variant-numeric: tabular-nums; }
html[data-font] #modalBody .drst.hi { box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 4px #ffd23a; }
html[data-font] #modalBody .drst.hi b { color: #ffd23a; }
html[data-font] #modalBody .drbar { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-size: 16px; color: #b8a888; }
html[data-font] #modalBody .drbar i { display: block; height: 14px; background: #120a06; box-shadow: inset 0 0 0 2px #3a2412; }
html[data-font] #modalBody .drbar em { display: block; height: 100%; background: repeating-linear-gradient(90deg, #ffd23a 0 10px, #e8a81a 10px 12px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); animation: drfill 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes drfill { from { width: 0; } }
html[data-font] #modalBody .drnote { font-size: 17px; color: #f2e6cc; }
html[data-font] #modalBody .drfine { margin: 4px 0 0; padding: 10px 14px; background: #140c06; box-shadow: inset 0 0 0 2px #2a1a0e; }
html[data-font] #modalBody .drfine summary { cursor: pointer; font-size: 16px; color: #e8b84a; }
html[data-font] #modalBody .drfine ul { margin: 8px 0 0; padding-left: 18px; font-size: 16px; color: #d8ccb0; }
html[data-font] #modalBody .drfine li { margin: 0 0 6px; }
html[data-font] #modalBody .drfine code { color: #9ad0ff; }
html[data-font] #modalBody .drlede2 { margin: 0 0 10px; font-size: 16px; color: #b8a888; }
html[data-font] #modalBody .drtablewrap { max-height: 56vh; overflow: auto; box-shadow: inset 0 0 0 2px #2a1a0e; }
html[data-font] #modalBody .drtable { width: 100%; border-collapse: collapse; font-size: 16px; }
html[data-font] #modalBody .drtable th { position: sticky; top: 0; padding: 8px 10px; text-align: left; font-size: 14px; color: #b8a888; background: #22150a; }
html[data-font] #modalBody .drtable td { padding: 7px 10px; border-top: 1px solid #2a1a0e; white-space: nowrap; }
html[data-font] #modalBody .drtable tr.me td { background: #3a2a0a; }
html[data-font] #modalBody .drtable em { font-style: normal; font-size: 13px; color: #1a0e06; background: #ffd23a; padding: 0 5px; }
html[data-font] #modalBody .drtable .in { color: #5ad8a0; }
html[data-font] #modalBody .drtable .wait { color: #a89878; }
html[data-font] #modalBody .drh { display: inline-block; width: 70px; height: 8px; margin-right: 8px; vertical-align: middle; background: #120a06; box-shadow: inset 0 0 0 1px #3a2412; }
html[data-font] #modalBody .drh i { display: block; height: 100%; background: #e8a81a; }
html[data-font] #modalBody .drres { margin: 0 0 10px; padding: 12px 14px; background: #1a100a; box-shadow: inset 0 0 0 2px #0c0806, inset 0 0 0 3px #4a3018; }
html[data-font] #modalBody .drresh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
html[data-font] #modalBody .drresh b { color: #ffd23a; font-size: 19px; }
html[data-font] #modalBody .drresh a { margin-left: auto; color: #9ad0ff; font-size: 15px; }
html[data-font] #modalBody .drres ul { margin: 0; padding: 0; list-style: none; }
html[data-font] #modalBody .drres li { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; }
html[data-font] #modalBody .drres li b { color: #5ad8a0; }
html[data-font] #modalBody .drempty { padding: 26px; text-align: center; background: #140c06; box-shadow: inset 0 0 0 2px #2a1a0e; }
html[data-font] #modalBody .drempty b { display: block; font-size: 22px; color: #ffd23a; }
html[data-font] #modalBody .drmuted { color: #a89878; }
@media (max-width: 760px) { html[data-font] #modalBody .drhead { grid-template-columns: 1fr; } html[data-font] #modalBody .drsteps, html[data-font] #modalBody .drprizes { grid-template-columns: 1fr; } html[data-font] #modalBody .drme { grid-template-columns: repeat(2, minmax(0, 1fr)); } html[data-font] #modalBody .drclock canvas { width: 96px; height: 96px; } html[data-font] #modalBody .drclock b { font-size: 34px; } }
/* the Halloween drop on top of the packs' window: its own banner, the crate beside what comes in it */
html[data-font] #modalBody .s2hw { margin: 0 0 16px; padding: 12px; background: linear-gradient(135deg, #2a1236 0%, #1c0e20 55%, #2a1408 100%); box-shadow: inset 0 0 0 2px #0c0612, inset 0 0 0 4px #e8781a; }
html[data-font] #modalBody .s2hwhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
html[data-font] #modalBody .s2hwhead b { color: #ffb05a; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
html[data-font] #modalBody .s2hwhead small { color: #d8c0f0; font-size: 16px; }
html[data-font] #modalBody .s2hwbody { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: center; }
html[data-font] #modalBody .s2hwbody .shop { grid-template-columns: 1fr; margin: 0; }
html[data-font] #modalBody .s2hwwhy { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
html[data-font] #modalBody .s2hwwhy li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: rgba(12, 6, 18, .55); box-shadow: inset 0 0 0 2px #3a1a5a; }
html[data-font] #modalBody .s2hwwhy b { color: #ffd23a; font-size: 18px; }
html[data-font] #modalBody .s2hwwhy span { color: #e8dcc0; font-size: 16px; }
@media (max-width: 760px) { html[data-font] #modalBody .s2hwbody { grid-template-columns: 1fr; } }

/* the Forge Pass toggle (Halloween) */
#modalBody .fpass { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0 0 10px; padding: 9px 12px; color: #f3e2ff; background: #1c1026; border: 0; box-shadow: inset 0 0 0 2px #0c0612, inset 0 0 0 4px #8a4ad8; cursor: pointer; text-align: left; }
#modalBody .fpass.on { background: #3a1a5a; box-shadow: inset 0 0 0 2px #0c0612, inset 0 0 0 4px #ffb05a; }
#modalBody .fpass b { color: #ffb05a; }
#modalBody .fpass small { color: #d8c0f0; }
