/* jarsgame.css — The Sealed Jars (js/jarsgame.js): the jars, the beads and the answer.
   The shell (header, buttons, tables, the stage) is css/lockgame.css, which this page loads first.
   Colours come from the site tokens (css/tokens.css); every class here is prefixed jg-.
   A gold bead is a full disc, a grey bead a ring: the two differ in shape, not only in colour. */
.jg .lg-steps li.part{background:var(--ml-bg);border-color:transparent;color:var(--ink)}
.jg-stat3{grid-template-columns:repeat(3,minmax(0,1fr))}
.jg-stat3>div{padding:8px 10px}
.jg-stat3 b{font-size:22px}

/* one jar on the table, and the beads drawn from it */
.jg-table{display:flex;gap:14px;align-items:center;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;padding:14px}
.jg-jar{flex:0 0 84px;width:84px;height:104px;display:block}
.jg-glass{fill:var(--panel);stroke:var(--ink);stroke-width:2.5}
.jg-wax{fill:var(--accent)}
.jg-jar text{font:500 30px var(--serif);fill:var(--muted)}
.jg-jar.open .jg-wax{opacity:.3}
.jg-jar.open text{fill:var(--ink)}
.jg-jar.open.gold .jg-glass{fill:var(--ml-bg)}
.jg-jar.open.gold text{fill:var(--ml)}
.jg-tray{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:8px}
.jg-beads{display:flex;flex-wrap:wrap;gap:6px;min-height:20px}
.jg-bead{flex:0 0 auto;width:20px;height:20px;border-radius:50%}
.jg-bead.g{background:var(--ml)}
.jg-bead.s{border:3px solid var(--muted)}
.jg-info{margin:0;font-size:15px;font-weight:600;min-height:1.5em}

/* the Game Master's open book (practice only) */
.jg-bar{height:14px;border-radius:999px;background:var(--panel-2);border:1px solid var(--line);overflow:hidden;direction:ltr}
.jg-bar i{display:block;height:100%;background:var(--ml);transition:width .25s}

/* five jars at once */
.jg-five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.jg-card{min-width:0;min-height:118px;padding:8px 2px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font:500 12px var(--mono)}
.jg-card.sel{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.jg-card b{font:500 18px var(--serif)}
.jg-card .jg-beads{justify-content:center;gap:3px;min-height:21px;padding:0 3px}
.jg-card .jg-bead{width:9px;height:9px}
.jg-card .jg-bead.s{border-width:2px}
.jg-card em{font:500 11px/1.2 var(--sans);font-style:normal;color:var(--muted);text-align:center;overflow-wrap:anywhere}

/* the witnesses */
.jg-wits{gap:8px}
.jg-said{margin:0;padding:10px 12px;border-radius:10px;background:var(--panel);border:1px solid var(--line);font-weight:600}

/* the answer: which jar, and how sure */
.jg-kinds button{font-size:14px;line-height:1.2;padding:4px 6px}
.jg-lvls{display:grid;gap:6px}
.jg-lvl{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:2px 10px;min-height:52px;padding:6px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:600 15px var(--sans);cursor:pointer;text-align:start}
.jg-lvl[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.jg-lvl small{font:500 13px var(--sans);font-variant-numeric:tabular-nums}

/* the two five-column tables stay inside a phone */
.jg-open,.jg-four{font-size:14px}
.jg-open th,.jg-open td,.jg-four th,.jg-four td{padding:8px 6px}

/* signs and digits read left to right in every language */
.jg-jar,.jg-n{direction:ltr}
/* the stage is dark in both themes: a gold bead and a grey one */
.jg .lg-poster .jg-g{fill:#dda45e}
.jg .lg-poster .jg-o{fill:none;stroke:var(--lg-stage-ink);stroke-width:2.5}
@media (prefers-reduced-motion:reduce){.jg-bar i{transition:none}}
