/* Read at arm's length, one hand in a card box. Big type, high contrast. */

:root {
  --bg: #15171c;
  --panel: #1e2128;
  --panel-2: #262a33;
  --line: #343a46;
  --ink: #eef1f6;
  --dim: #99a2b2;
  --accent: #e8b23a;
  --accent-ink: #15171c;
  --good: #5fc27e;
  --warn: #e8864a;
  --bad: #e5565c;
  --k1: #6ba7e8;
  --k2: #e8b23a;
  --k3: #5fc27e;
  --k4: #c88ae8;
  --k5: #e8864a;
  --k6: #4ecdc4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* The title and tabs scroll away: on a phone they were holding 87px of a
   812px screen permanently. The toolbar below still sticks. */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 0;
}

h1 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--accent);
  font-weight: 650;
}

h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
h3 { margin: 0 0 8px; font-size: 18px; }

nav { display: flex; gap: 2px; flex-wrap: wrap; }

nav button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  font: inherit;
  font-weight: 550;
  padding: 8px 12px;
  cursor: pointer;
}
nav button:hover { color: var(--ink); }
nav button.on { color: var(--accent); border-bottom-color: var(--accent); }

main { padding: 16px; max-width: 1100px; margin: 0 auto; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

/* The toolbar scrolls with the page: it is set-once controls, not something
   worth parking over the content. */
.panel.toolbar { padding: 10px 16px; }

.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row.between { align-items: center; }
.grow { flex: 1; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
label.inline { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; }

input[type=number], input[type=text], input[type=search], select {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font: inherit;
}
input[type=search] { width: 100%; }

button {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 13px;
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}
button:hover { border-color: var(--dim); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.big { padding: 13px 28px; font-size: 17px; }
button.tiny { padding: 3px 8px; font-size: 12px; font-weight: 500; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hint { color: var(--dim); font-size: 13px; margin: 10px 0 0; }

/* ── Generate ── */

fieldset.modes { border: 0; padding: 0; margin: 18px 0 0; }
fieldset.modes legend { font-size: 13px; color: var(--dim); padding: 0 0 8px; }
label.mode {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}
label.mode:has(input:checked) { border-color: var(--accent); background: #26222088; }
label.mode input { margin-top: 3px; }

.reqs { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reqs #reqBoxes { display: flex; gap: 8px; flex-wrap: wrap; }
.reqs-label { font-size: 13px; color: var(--dim); }
.reqs label.inline {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 12px; font-size: 13px;
}
.reqs label.inline:has(input:checked) { border-color: var(--accent); color: var(--accent); }

/* ── Pick list ── */

.box-group { margin-bottom: 20px; }
.box-group > h3 {
  display: flex; align-items: baseline; gap: 10px;
  letter-spacing: .06em; text-transform: uppercase; font-size: 14px;
  color: var(--accent); border-bottom: 1px solid var(--line);
  padding-bottom: 6px; margin-bottom: 0;
}
.box-group > h3 .muted { color: var(--dim); font-size: 12px; letter-spacing: 0; text-transform: none; }

.pick {
  display: flex; flex-direction: row; align-items: flex-start; gap: 12px;
  padding: 11px 8px; border-bottom: 1px solid #2a2f39;
  cursor: pointer; user-select: none;
}
.pick:hover { background: #ffffff07; }
.pick input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--good); }
.pick.done .pick-name { text-decoration: line-through; color: var(--dim); }
.pick.done { opacity: .5; }
.pick-main { flex: 1; min-width: 0; }
.pick-name { font-size: 18px; font-weight: 600; }
.pick-cost { color: var(--dim); font-weight: 500; font-size: 14px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.pick-note { color: var(--warn); font-size: 13px; margin-top: 2px; }
.pick-ks { display: flex; gap: 5px; flex: none; padding-top: 2px; }

.kchip {
  font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 5px;
  color: #15171c; background: var(--dim); white-space: nowrap;
}
.k1 { background: var(--k1); } .k2 { background: var(--k2); } .k3 { background: var(--k3); }
.k4 { background: var(--k4); } .k5 { background: var(--k5); } .k6 { background: var(--k6); }

/* ── Box view: the tray seen from above ── */

/* flex: none, or the nowrap toolbar squeezes this to nothing on a phone. */
.seg {
  display: inline-flex; flex: none;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.seg button { border: 0; border-radius: 0; background: var(--panel-2); color: var(--dim); padding: 6px 12px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

.box-view { margin-bottom: 22px; }
.box-view > h3 {
  display: flex; align-items: baseline; gap: 10px;
  letter-spacing: .06em; text-transform: uppercase; font-size: 14px;
  color: var(--accent); margin-bottom: 8px;
}
.box-view > h3 .muted { color: var(--dim); font-size: 12px; letter-spacing: 0; text-transform: none; }

/* The tray: a card-shaped cell per slot, in the physical order of the box. */
.box-grid {
  display: grid;
  gap: 2px;
  padding: 7px;
  background: #0f1116;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Dense by default so a whole box fits one screen: unwanted slots only have
   to be countable, not readable. The ones you want are bigger and brighter. */
.cell {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  min-height: 20px;
  padding: 1px 6px 1px 9px;
  border: 1px solid #262b34;
  border-radius: 3px;
  background: #171a20;
  color: #68707f;
  font-size: 10.5px;
  line-height: 1.25;
  overflow: hidden;
}

/* A slot you need: lit up, with a colour band per kingdom down its edge. */
.cell.want {
  background: var(--panel-2);
  border-color: var(--dim);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 1px #ffffff14, 0 1px 6px #0006;
}
.cell.want::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--bands, var(--accent));
}
.cell.want:hover { border-color: var(--accent); }
.cell.want.done {
  opacity: .45;
  background: #191c23;
  box-shadow: none;
}
.cell.want.done .cell-name { text-decoration: line-through; }

.box-grid.mini { gap: 2px; padding: 6px; margin-top: 8px; max-height: 190px; overflow: auto; }
.box-grid.mini .cell { min-height: 17px; padding: 0 5px; font-size: 9.5px; border-radius: 3px; }

/* The name and what to pull sit side by side when there is room and stack
   when there is not, rather than both being chopped to "W... Way of the B...". */
.cell-main {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.cell-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Which cards to pull out of a stacked slot (an expansion's Ways, say). */
.cell-pull {
  color: var(--accent); font-weight: 600; font-size: 11.5px;
  min-width: 0; overflow-wrap: anywhere;
}
.cell-ks { display: flex; gap: 3px; flex: none; align-self: center; }
.cell-ks .kchip { font-size: 10px; padding: 0 5px; }

/* The set symbol printed on the card. The source art is black line work, so
   it is inverted for the dark theme and underlined in the set's colour. */
.setbadge {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 15px;
  border-bottom: 2px solid var(--set, #555b66);
  opacity: .42;
}
.setbadge img {
  max-width: 100%; max-height: 12px;
  filter: invert(1);
  display: block;
}
.setbadge.code {
  font-size: 8px; font-weight: 800; line-height: 1;
  color: var(--set, #99a2b2);
}
.cell.want .setbadge, .pick .setbadge { opacity: 1; }
.pick .setbadge { width: 26px; height: 24px; margin-top: 3px; }
.pick .setbadge img { max-height: 20px; }
.pick-pull { color: var(--accent); font-weight: 600; font-size: 13px; margin-left: 8px; }

.banner {
  border-radius: 8px; padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid; font-size: 14px;
}
.banner.warn { border-color: var(--warn); background: #e8864a1a; }
.banner.bad { border-color: var(--bad); background: #e5565c1a; }
.banner h4 { margin: 0 0 6px; font-size: 14px; }
.banner ul { margin: 6px 0 0; padding-left: 20px; }

table.base { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.base th, table.base td { text-align: right; padding: 7px 10px; border-bottom: 1px solid #2a2f39; }
table.base th.nm, table.base td.nm { text-align: left; font-weight: 600; }
table.base th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
table.base td.tick { width: 34px; text-align: left; padding-right: 0; }
table.base td.tick input { width: 20px; height: 20px; accent-color: var(--good); }
table.base tr.done { opacity: .45; }
table.base tr.done td.nm { text-decoration: line-through; }

/* ── Kingdom cards ── */

.kingdom { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.kingdom > header { position: static; border: 0; padding: 0; margin-bottom: 12px; background: none; display: flex; align-items: center; gap: 10px; }
.kingdom h3 { margin: 0; }
.kingdom .sets { color: var(--dim); font-size: 13px; }

ul.piles { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
ul.piles li { padding: 5px 0; break-inside: avoid; display: flex; gap: 8px; align-items: baseline; }
ul.piles .cost { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 42px; }
ul.piles .nm { font-weight: 550; }
ul.piles .mk { color: var(--warn); font-size: 12px; }
ul.piles .sz { color: var(--dim); font-size: 12px; }

.kv { margin-top: 14px; }
.kv h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.kv p, .kv ul { margin: 0; font-size: 14px; }
.kv ul { padding-left: 18px; }
.kv .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kv .tag { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px; font-size: 13px; }

/* ── Collection / boxes ── */

.set-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.set-row { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.set-row.on { border-color: var(--accent); }
.set-row .nm { font-weight: 600; }
.set-row .eds { display: flex; gap: 12px; margin-top: 6px; }
.set-row .eds label { flex-direction: row; gap: 5px; align-items: center; color: var(--ink); font-size: 13px; }
.set-row .cnt { color: var(--dim); font-size: 12px; }

.box-edit { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.box-edit .row { align-items: center; }
.box-edit input[type=text] { font-weight: 600; }
.box-edit .slots { color: var(--dim); font-size: 13px; margin-top: 6px; }

.found { padding: 8px 0; border-bottom: 1px solid #2a2f39; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.found .where { color: var(--dim); }

#toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: 10px 18px; border-radius: 8px; z-index: 50;
}

/* ── Phone ── */

@media (max-width: 680px) {
  main { padding: 10px; }
  .panel { padding: 12px; margin-bottom: 12px; }
  ul.piles { columns: 1; }

  /* Keep the tab strip to one scrollable line so the header has a stable
     height and the sticky bars below it land in the right place. */
  nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav button { white-space: nowrap; padding: 8px 10px; }

  /* The toolbar's controls go on one line that scrolls sideways rather than
     wrapping to three rows on a narrow screen. */
  .panel.toolbar { padding: 7px 10px; }
  .panel.toolbar .row {
    gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  .panel.toolbar .row::-webkit-scrollbar { display: none; }
  .panel.toolbar .grow { display: none; }
  .panel.toolbar button { flex: none; padding: 6px 10px; font-size: 13px; }
  .panel.toolbar label.inline { flex: none; white-space: nowrap; font-size: 13px; }

  .row { gap: 10px; }
  .art-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .entries { grid-template-columns: 1fr; }

  /* A base-card table with a column per kingdom can outgrow the screen. */
  table.base { display: block; overflow-x: auto; white-space: nowrap; }

  .set-list { grid-template-columns: 1fr; }
  .box-edit .row { gap: 6px; }
  .pick-name { font-size: 17px; }
}

/* A narrow phone cannot show two lanes of readable card names side by side,
   so the box view drops to one lane and says so. */
@media (max-width: 460px) {
  .cell.want { font-size: 12.5px; }
  .cell { font-size: 10px; min-height: 19px; padding-left: 8px; }
  .cell-ks .kchip { font-size: 9px; padding: 0 4px; }
  .setbadge { width: 14px; }
}

@media print {
  :root { --bg: #fff; --panel: #fff; --panel-2: #fff; --ink: #000; --dim: #555; --line: #bbb; --accent: #000; }
  header, nav, #toast, .actions, button, #pickHeader .row { display: none !important; }
  body { font-size: 11pt; }
  .panel, .kingdom { border: 0; padding: 0; margin-bottom: 14pt; }
  section[hidden] { display: none; }
  .box-group { break-inside: avoid; }
  .pick { padding: 3pt 0; }
  .pick input { width: 11pt; height: 11pt; }
  .pick-name { font-size: 12pt; }
  .kchip { border: 1px solid #000; background: #fff !important; color: #000; }
  .setbadge { opacity: 1; }
  .setbadge img { filter: none; }
}

/* ── Card art tiles ── */

.art-grid {
  display: grid;
  /* The fallback before balanceGrid measures, and what phones keep. */
  grid-template-columns: repeat(auto-fill, minmax(126px, 160px));
  gap: 10px;
  margin-bottom: 4px;
}

.art-tile { position: relative; }

.art-frame {
  aspect-ratio: 4 / 3;
  background: #0f1116;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.art-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No artwork on the wiki (split piles, mostly): the caption carries it. */
.art-frame.noart { background: repeating-linear-gradient(135deg, #15181e, #15181e 6px, #1b1f27 6px, #1b1f27 12px); }

.art-cap {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  padding: 5px 2px 0;
  font-size: 13px;
  line-height: 1.2;
}
.art-cost { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Wrap rather than clip: "Triumphal Arch" should not read "Triumphal Ar…".
   Grid rows stretch to the tallest caption, so the images stay aligned. */
.art-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.art-size { color: var(--dim); font-size: 11px; margin-left: auto; }
.art-mark { color: var(--warn); font-size: 11px; padding: 1px 2px 0; }

.art-swap {
  position: absolute; top: 4px; right: 4px;
  opacity: 0; transition: opacity .12s;
  background: #0f1116cc; padding: 2px 7px;
}
.art-tile:hover .art-swap { opacity: 1; }

@media print {
  .art-grid { grid-template-columns: repeat(5, 1fr); }
  .art-frame { border-color: #999; }
  .art-swap { display: none; }
}
.art-cost.kind { color: var(--dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

/* ── Play view: the whole supply as readable text ── */

#playSearch { max-width: 420px; }

.glance { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.glance-chip {
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
}
.glance-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.glance-chip.none { color: var(--bad); border-color: #e5565c55; }
.glance-chip.none.on { background: var(--bad); color: #15171c; }

.play-head {
  margin: 16px 0 8px; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 5px;
}

.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

.entry {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px 11px;
  break-inside: avoid;
}
/* Filtered out, but kept in place so the supply still reads as a whole. */
.entry.dim { opacity: .3; }

.entry-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.entry-cost { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.entry-cost.kind { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.entry-name { font-weight: 650; font-size: 15px; }
.entry-types { color: var(--dim); font-size: 11px; margin-left: auto; }

.entry-text {
  margin: 0; font-size: 13.5px; line-height: 1.45;
  white-space: pre-line;   /* the card's own line breaks are the layout */
}
.entry-setup {
  margin: 7px 0 0; font-size: 12px; color: var(--warn);
  white-space: pre-line; border-top: 1px solid var(--line); padding-top: 6px;
}
.entry-note { margin: 6px 0 0; font-size: 12px; color: var(--accent); }

@media print {
  #playSearch, .glance { display: none; }
  .entries { grid-template-columns: repeat(2, 1fr); }
  .entry { border-color: #bbb; }
  .entry.dim { opacity: 1; }
}

/* One kingdom per sheet, so each table gets its own page to carry off.
   Used by both the Kingdoms and Play views. */
@media print {
  .kingdom { break-after: page; page-break-after: always; }
  .kingdom:last-child { break-after: auto; page-break-after: auto; }
  /* And one box per sheet on the pick list, so a lane never splits. */
  .box-view, .box-group { break-after: page; page-break-after: always; }
  .box-view:last-child, .box-group:last-child { break-after: auto; page-break-after: auto; }
}
.set-title { display: flex; align-items: center; gap: 8px; }
.set-row .setbadge { width: 30px; height: 26px; opacity: 1; border-bottom-width: 2px; }
.set-row .setbadge img { max-height: 22px; }
.share-box { flex: 1; min-width: 220px; font-size: 12px; font-family: ui-monospace, monospace; }

/* ── Play view: what's inside a mixed pile ── */

.pile-break { margin-top: 14px; }
.pile-break > summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  cursor: pointer; list-style: none;
  padding: 6px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.pile-break > summary::-webkit-details-marker { display: none; }
.pile-break > summary::before {
  content: "▸"; color: var(--dim); font-size: 11px; transition: transform .12s;
}
.pile-break[open] > summary::before { content: "▾"; }
.pile-break .pile-name {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  font-weight: 700;
}
.pile-break .pile-note { font-size: 11px; color: var(--dim); }
.pile-break > summary:hover .pile-name { color: var(--ink); }

@media print { .pile-break > summary::before { display: none; } }

/* Card-type colour, the way the cards themselves are coloured: orange for
   Durations, gold for Treasures, green for Victory. Scanning a board for
   "what's the Duration here" should not mean reading every type line. */
.entry {
  position: relative;
  padding-left: 16px;
  background: color-mix(in srgb, var(--tint, #000) 11%, var(--panel-2));
}
/* The rail carries the card's colours. One type is a solid band; two are
   split, the way the card itself is printed. */
.entry::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--rail, var(--line));
}
.entry-head .entry-types { color: color-mix(in srgb, var(--tint, #999) 60%, var(--dim)); }

@media print {
  .entry { background: #fff; }
  .entry::before { background: #666 !important; }
}
.slots { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tray-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px;
  color: var(--warn); border: 1px solid var(--warn);
}
.tray-tag.measured { color: var(--good); border-color: var(--good); }
/* Lanes are their own columns so they can be different lengths, the way a
   real tray's are. */
.box-grid > .lane { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.box-grid.mini > .lane { gap: 2px; }
/* A tray's lanes are the same depth; the shorter one has empty compartments
   rather than simply stopping. */
.cell.empty {
  min-height: 20px;
  border-style: dashed;
  border-color: #20242c;
  background: #121419;
}
/* Compartment break: the kingdom run, the landscape stacks and the base
   cards are separate blocks in the tray, not one continuous column. */
.cell.after-gap { margin-top: 10px; }
.box-grid.mini .cell.after-gap { margin-top: 6px; }
/* A tray compartment that holds something other than a pile -- the
   randomizer cards, the coin tokens. Drawn so the box looks like the box,
   but never something to pull. */
.cell.component {
  background: #14171d;
  border-style: dashed;
  color: #565d6b;
  font-style: italic;
  justify-content: center;
}
.tray-note {
  margin-top: 5px; font-size: 10px; letter-spacing: .03em;
  text-transform: uppercase; font-weight: 700; color: var(--warn);
}
.tray-note.known { color: var(--good); }
/* A compartment whose position is derived rather than seen in a photo. */
.cell.component.guessed .cell-name::after { content: " ?"; opacity: .7; }
.advanced {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  align-items: flex-start; gap: 8px; color: var(--dim); font-size: 13px;
}
.advanced input { margin-top: 2px; }
label.inline.setting { align-items: flex-start; gap: 9px; font-size: 14px; }
label.inline.setting input { margin-top: 3px; }
label.inline.setting em { display: block; color: var(--dim); font-size: 13px; font-style: normal; margin-top: 3px; }
/* A thumbnail of the card's own artwork in the Play view. */
.entry-art {
  flex: none;
  width: 34px; height: 26px;
  border-radius: 3px;
  overflow: hidden;
  background: #0f1116;
  display: block;
}
.entry-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media print { .entry-art { display: none; } }
