/* guildle's styles, part 8 of 10 (panels.css). Day and night, the light theme, help and changelog, feedback, quest history, sharing,
   overlays, extra recruits, card wear, the streak, bonds, announcements, maintenance, notifications.
   The parts load in order (index.html) and later rules build on earlier ones. */

/* ================================================================ day and night (daynight.js)
   The board line over the quests, and each quest's modifier tag: gold with a sun by day, pale blue
   with a moon by night. Squared labels, as everywhere. */
.quests-time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 14px; color: var(--text-dim); font-size: .92rem; }
.quests-time { flex-wrap: nowrap; align-items: flex-start; }
.qt-icons { display: flex; gap: 2px; flex: none; padding-top: 1px; }
.qt-icons svg { width: 24px; height: 24px; }
.quests-time.day .qt-icons svg:first-child { color: #f0c14e; }
.quests-time.night .qt-icons svg:first-child { color: #b9cdf2; }
.quests-time.rain .qt-icons svg + svg { color: #9fb4c8; }
.qt-text { display: grid; gap: 3px; }
.qt-text > i { font: italic 1.1rem/1.35 var(--serif); color: var(--text); }
.qt-text span b { color: var(--text); font-variant-numeric: tabular-nums; }
.n-mod { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 8px 3px 6px; border-radius: 5px; font: 800 .66rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; border: 1px solid; width: fit-content; }
.n-mod svg { width: 13px; height: 13px; flex: none; }
.n-mod.day { color: #8a5a06; background: rgba(240, 193, 78, .18); border-color: rgba(176, 124, 20, .45); }
.n-mod.night { color: #2c3f6b; background: rgba(120, 150, 210, .16); border-color: rgba(60, 86, 140, .45); }
.quest-view .n-mod.t-name { cursor: help; }
.adv-mod { display: block; }
.adv-mod .n-mod { margin-top: 2px; }
.adventure.result .adv-head:has(.adv-mod) .adv-blurb { display: none; } /* (on the result, the quest's weather keeps its place under the name instead) */
.n-mods { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.n-mods .n-mod { margin-top: 0; }
.n-mod.rain { color: #2d4a5e; background: rgba(110, 150, 180, .16); border-color: rgba(60, 100, 130, .45); }
/* the map's weather (as tags on parchment) */
.n-mod.clear { color: #8a5a06; background: rgba(240, 193, 78, .18); border-color: rgba(176, 124, 20, .45); }
.n-mod.storm { color: #3f3a6e; background: rgba(130, 120, 200, .16); border-color: rgba(80, 70, 150, .45); }
.n-mod.fog { color: #4a5058; background: rgba(140, 150, 160, .18); border-color: rgba(90, 100, 110, .45); }
.n-mod:is(.snow, .blizzard) { color: #2e5672; background: rgba(150, 200, 235, .2); border-color: rgba(70, 120, 160, .45); }
.n-mod.gale { color: #2f5e52; background: rgba(120, 190, 170, .16); border-color: rgba(60, 120, 100, .45); }
.adv-hand.blaze.zap::after { background: radial-gradient(ellipse at 50% 55%, rgba(210, 230, 255, .45), rgba(120, 170, 255, .16) 45%, transparent 72%); animation-duration: .9s; }

/* A summoned ally's card (adventure.js summon): it joins the party's hand for a fight, in the
   party's arcane blue with its emblem, and makes the summon's rolls. Dim while its caster is down. */
.summon-card { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; aspect-ratio: 5 / 7; width: 100%; box-sizing: border-box;
  padding: 14% 8% 17%; border-radius: 6%; color: #d9e6ff; text-align: center; border: 2px solid #0d1830;
  background: radial-gradient(ellipse at 50% 44%, rgba(140, 180, 255, .4) 0%, transparent 60%), linear-gradient(160deg, #2c4a86 0%, #1a2d57 55%, #0c1730 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(0, 0, 0, .2), inset 0 0 0 5px rgba(180, 210, 255, .3); transition: filter .4s; }
.adv-summon.weapon .summon-card { background: radial-gradient(ellipse at 50% 44%, rgba(255, 236, 170, .38) 0%, transparent 60%), linear-gradient(160deg, #6a5a2a 0%, #3e3314 55%, #1e1808 100%); color: #fbf0cc; border-color: #2a2008; }
.summon-card .foe-emblem { color: inherit; }
.summon-card .foe-name { color: #f3f7ff; }
.summon-card .foe-foot small { color: rgba(220, 232, 255, .75); }
.adv-summon .pstate.adv-st[data-s="summoned"] { background: #16264a !important; color: #cfe0ff !important; border-color: #4a6aa8 !important; }
.adv-summon.down .summon-card { filter: grayscale(.8) brightness(.55); }
/* The board's weather line sits right under the tabs. */
.tab-panel > .quests { margin-top: 0; }
#tab-quests { margin-top: -6px; } /* the same space above the weather line as below it */
.quests-time { margin-top: 0; }

/* ================================================================ Day theme (light)
   A parchment page with navy ink; the navy night becomes the ink, the gold deepens so it reads on
   paper. Dark chips (#1b120a), cards and the parchment quest view keep their own colours. */
:root[data-theme="light"] {
  color-scheme: light;
  --felt: #f4ecda;
  --felt-deep: #ece1c8;
  --felt-line: #d6c5a0;
  --panel-rgb: 255, 251, 241;
  --vignette: rgba(140, 108, 58, .2);
  --grid: rgba(34, 46, 84, .045);
  --grid-major: rgba(34, 46, 84, .09);
  --brass: #9a6b22;
  --brass-dim: #b8955c;
  --gold: #8a5b0e;
  --text: #1c2848;
  --text-dim: #4f5874;
  --good: #2a6a3e; --bad: #a8322a;
  --rt-common: #585c54; --rt-uncommon: #2c6e40; --rt-rare: #2b589c; --rt-epic: #6e36a3; --rt-legendary: #855c00;
}
:root[data-theme="light"] body::after { background-image: radial-gradient(ellipse at 50% 35%, transparent 45%, var(--vignette) 100%); }
.theme-pick { display: grid; gap: 6px; }
.theme-pick > span { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.theme-pick > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: rgba(var(--panel-rgb), .6); border: 1px solid var(--felt-line); border-radius: 7px; padding: 3px; }
.theme-pick button { min-height: 32px; font: var(--btn-font); color: var(--text-dim); background: none; border: 0; border-radius: 6px; padding: 8px 4px; cursor: pointer; }
.theme-pick button:hover { color: var(--text); }
.chat-pick > div, .fx-pick > div { grid-template-columns: repeat(2, 1fr); }
.theme-pick button[aria-checked="true"] { background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 0 0 1px var(--brass); }

/* ================================================================ help sections and changelog */
#help .sheet { gap: 12px; }
.help-sec { border-top: 1px solid var(--felt-line); }
.help-sec:last-of-type { border-bottom: 1px solid var(--felt-line); }
.help-sec summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; cursor: pointer; border-radius: 5px; }
.help-sec summary::-webkit-details-marker { display: none; }
.help-sec summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; flex: none; margin-right: 4px; }
.help-sec[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.help-sec summary:hover h3, .help-sec summary:focus-visible h3 { color: var(--text) !important; }
.help-sec summary h3 { margin: 0 !important; transition: color .15s ease; }
.help-body { padding: 0 2px 14px; display: grid; gap: 12px; }
.help-sec[open] .help-body { animation: help-open .22s ease; }
@keyframes help-open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .help-sec[open] .help-body { animation: none; } .help-sec summary::after { transition: none; } }
#help-close { margin-top: 4px; }
.changelog { display: grid; gap: 16px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.cl-entry header { display: grid; gap: 2px; margin-bottom: 6px; }
.cl-entry time { font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.cl-entry h4 { margin: 0; font: 400 1.15rem/1.2 var(--serif); color: var(--text); }
.cl-body { display: grid; gap: 6px; color: var(--text-dim); font-size: .92rem; }
.cl-body p { margin: 0; }
.cl-body ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }

/* ================================================================ report a bug */
.bug-sheet { width: min(520px, 100%); }
.bug-field textarea { width: 100%; box-sizing: border-box; font: 500 .95rem/1.45 var(--sans); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--felt-line); background: rgba(var(--panel-rgb), .8); color: var(--text); resize: vertical; min-height: 130px; }
.bug-field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.bug-count { justify-self: end; margin-top: -8px; font: 500 .72rem/1 var(--sans); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.bug-sheet .qs-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.bug-send { border-style: solid; }
.help-sec + .help-sec { margin-top: -12px; }
.help-sec summary { padding: 13px 2px; }
.help-sec summary h3 { line-height: 1.2 !important; }
:root[data-theme="light"] .key div { background: rgba(var(--panel-rgb), .6); }

/* ================================================================ quest history */
.quests-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 0; }
.quests-top .quests-time { margin: 0; flex: 1 1 auto; min-width: 0; }
.quests-top .quests-time:empty { display: none; }
.qhist-btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 700 .8rem/1 var(--sans); color: var(--text); background: rgba(var(--panel-rgb), .6); border: 1px solid var(--felt-line); border-radius: 5px; padding: 8px 11px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.qhist-btn:hover, .qhist-btn:focus-visible { border-color: var(--brass); }
.qhist-btn svg { width: 16px; height: 16px; color: var(--brass); }
@media (max-width: 560px) { .qhist-btn span { display: none; } .qhist-btn { padding: 8px; } }

.qhist-sheet { width: min(760px, 100%); }
.qhist-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.qhist-totals { display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.qhist-totals div { display: grid; text-align: right; }
.qhist-totals b { font: 800 1.2rem/1.1 var(--sans); color: var(--brass); }
.qhist-totals span { font: 700 .62rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.qhist-list { display: grid; gap: 8px; }
.qh-empty { margin: 0; padding: 26px 10px; text-align: center; font: italic 1rem/1.4 var(--serif); color: var(--text-dim); }
.qh-row { display: flex; align-items: center; gap: 14px; background: rgba(var(--panel-rgb), .55); border: 1px solid var(--felt-line); border-left: 5px solid var(--tc); border-radius: 8px; padding: 11px 14px; min-width: 0; }
.qh-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.qh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 .74rem/1.2 var(--sans); color: var(--text-dim); }
.qh-icons { display: inline-flex; gap: 3px; }
.qh-icons svg { width: 14px; height: 14px; }
.qh-icons.day svg:first-child { color: #e0a92a; }
.qh-icons.night svg:first-child { color: #8fa6d6; }
.qh-tier { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; color: color-mix(in srgb, var(--tc) 62%, #fff); }
:root[data-theme="light"] .qh-tier { color: color-mix(in srgb, var(--tc) 70%, #000); }
.qhist-sheet .qh-row h3 { margin: 0; font: 400 1.15rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text); overflow-wrap: anywhere; }
.qh-party { display: flex; flex-wrap: wrap; gap: 2px 0; font: 500 .8rem/1.3 var(--sans); color: var(--text-dim); }
.qh-party > span:not(:last-child)::after { content: "·"; margin: 0 6px; color: var(--text-dim); display: inline-block; text-decoration: none; }
.qh-fallen { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.qh-side { flex: none; display: grid; justify-items: end; gap: 5px; }
.qh-out { font: 800 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; border: 1px solid currentColor; }
.qh-out.o-triumph { color: var(--gold); background: rgba(240, 207, 142, .12); }
.qh-out.o-success { color: var(--good); background: rgba(63, 143, 85, .12); }
.qh-out.o-failure, .qh-out.o-retreat { color: var(--text-dim); }
.qh-out.o-wipe { color: var(--bad); background: rgba(176, 48, 42, .12); }
.qh-gold { white-space: nowrap; font: 700 .8rem/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.qh-play { display: inline-flex; align-items: center; gap: 6px; border-style: solid; padding: 7px 11px; font-size: .78rem; white-space: nowrap; }
.qh-play svg { width: 13px; height: 13px; color: var(--brass); }
.qh-play:disabled { opacity: .6; cursor: progress; }
#qhist-more { justify-self: center; }
@media (max-width: 560px) {
  .qh-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .qh-side { grid-template-columns: auto auto 1fr; align-items: center; justify-items: start; }
  .qh-play { justify-self: end; }
}

/* ================================================================ share a hero */
.share-btn {
  height: var(--btn-h); display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; cursor: pointer;
  font: var(--btn-font); color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-line); border-radius: var(--btn-r); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover, .share-btn:focus-visible { background: var(--btn-bg-hi); border-color: var(--brass); }
.share-btn:disabled { opacity: .6; cursor: progress; }

/* After a reveal: Share and Add to Roster under the new recruit */
.reveal-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 12px; margin-top: 14px; animation: reveal-actions .5s ease-out .9s backwards; }
@keyframes reveal-actions { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .reveal-actions { animation: none; } }
.reveal-actions .reveal-share { height: auto; padding: 12px 20px; gap: 9px; font: italic 1.2rem/1.2 var(--serif); letter-spacing: 0; color: var(--text); background: rgba(var(--panel-rgb), .55); border: 1px solid var(--felt-line); border-radius: 10px; box-shadow: none; }
.reveal-actions .reveal-share svg { width: 18px; height: 18px; color: var(--brass); }
.reveal-actions .reveal-share:hover, .reveal-actions .reveal-share:focus-visible { border-color: var(--brass); color: var(--text); }
.reveal-actions .add-roster { font-size: 1.2rem; padding: 12px 24px 12px 18px; }

/* ================================================================ overlays: dim in both themes, page behind stays put */
html { scrollbar-gutter: stable; }
.overlay { overscroll-behavior: contain; }
:root { --overlay-bg: rgba(6, 10, 22, .86); }            /* the dim behind pop-ups (roster.js animates to it too) */
:root[data-theme="light"] { --overlay-bg: rgba(38, 29, 17, .8); }
/* The card close-up has no panel of its own: its notes and links sit straight on the dimmed page. */
:root[data-theme="light"] #zoom .zp-note,
:root[data-theme="light"] #zoom .cd-below > .card-meta { color: #efe3c6; }
:root[data-theme="light"] #zoom .zp-h { color: #d9b878; }
:root[data-theme="light"] #zoom .zp-sec { border-color: rgba(239, 227, 198, .22); }
/* The dim is its own layer behind the pop-up, faded with opacity only: the phone's graphics chip
   does that without repainting the page, so it stays smooth while a card flies in. (No backdrop
   blur for the same reason.) roster.js fades it with the card via .dim-off and --dim-time. */
.overlay::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--overlay-bg); opacity: 1; transition: opacity var(--dim-time, .2s) ease-out; }
.overlay.dim-off::before { opacity: 0; }
@starting-style { .overlay:not([hidden])::before { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay::before { transition: none; } }

/* Pages waiting behind the top one only show their edges, so the browser skips laying out what's
   on them until they come to the front (much faster to open a card on a phone). The page being
   turned to is marked .live while it swings round. */
.deck > .card:not(.top):not(.live) { content-visibility: hidden; }
.recruit-wrap.mini .recruit b { font: 700 .95rem/1 var(--sans); font-style: normal; color: var(--gold); font-variant-numeric: tabular-nums; }
.recruit-wrap.mini .recruit { gap: 0; }
.recruit-wrap.mini .recruit::before { margin-right: 8px; }
.hand-vacant.locked { font-size: 1.12rem; line-height: 1.3; }
.hand-timer { display: block; margin-top: 10px; font: 800 1.2rem/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }

/* ================================================================ extra recruits (inside the recruit box) */
/* The recruit countdown and, when the player has any, the extra-recruit button share one box,
   split by a thin divider. */
.recruit-box { display: inline-flex; align-items: stretch; max-width: 100%; background: rgba(var(--panel-rgb), .55); border: 1px solid var(--felt-line); border-radius: 10px; overflow: hidden; }
.recruit-box .recruit { border: 0; border-radius: 0; background: none; box-shadow: none; min-width: 0; }
.recruit-box .extra-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 0; border: 0; background: none; color: var(--gold); cursor: pointer; font: 800 .95rem/1 var(--sans); font-variant-numeric: tabular-nums; transition: background-color .15s; }
.recruit-box .extra-btn::before { content: ""; align-self: center; width: 1px; height: 1.4em; margin-right: 12px; background: var(--felt-line); }
.recruit-box .extra-btn svg { width: 18px; height: 18px; flex: none; }
.recruit-box .extra-btn:hover, .recruit-box .extra-btn:focus-visible { background: rgba(240, 207, 142, .12); outline: none; }
.recruit-box .extra-btn:focus-visible svg { filter: drop-shadow(0 0 3px var(--gold)); }
.recruit-box:has(.extra-btn:not([hidden])) { border-color: var(--brass-dim); }
.extra-sheet { width: min(460px, 100%); }
.extra-sheet .qs-actions { justify-content: flex-end; gap: 18px; }
.extra-sheet .recruit { font-size: 1.15rem; padding: 10px 22px 10px 16px; }
@media (max-width: 560px) {
  .recruit-wrap.mini { min-width: 0; }
  .recruit-wrap.mini .recruit { font-size: .9rem; padding: 8px 12px 8px 10px; white-space: nowrap; }
  .recruit-wrap.mini .recruit b { font-size: .88rem; }
  .recruit-wrap.mini .recruit::before { margin-right: 6px; }
}
@media (max-width: 380px) {
  .recruit-wrap.mini .recruit { font-size: .82rem; padding: 8px 8px 8px 9px; }
  .recruit-wrap.mini .recruit b { font-size: .8rem; }
  .recruit-box .extra-btn { padding-right: 10px; font-size: .85rem; }
  .recruit-box .extra-btn::before { margin-right: 9px; }
}

/* ---------- Face wear by rarity ----------
   The face's .sheen layer carries the wear on common, uncommon and rare cards (epic and legendary
   use it for their shine instead). It sits under the text, over the colour.
   common: well used · uncommon: worn · rare: very slightly worn · epic: clean · legendary: pristine
   (where each crease, stain and scuff falls is set per card: see wearStyle in card.js) */
.card.face, .letter { --fw-dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.93  0 0 0 0 0.9  0 0 0 0 0.83  10 0 0 0 -7.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29' opacity='0.375'/%3E%3C/svg%3E"); --fw-specks-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.1  0 0 0 0 0.03  9 0 0 0 -6.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29' opacity='0.6'/%3E%3C/svg%3E"); --fw-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.19  0 0 0 0 0.07  1.6 0 0 0 -0.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29' opacity='1'/%3E%3C/svg%3E"); }
.card.common.face > .sheen, .card.uncommon.face > .sheen, .card.rare.face > .sheen {
  display: block; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 0;
  animation: none; mix-blend-mode: normal; background-repeat: no-repeat;
}
/* Each card's wear lands in its own places: card.js sets these per card (from its id), so no two
   commons look alike though they're equally worn. The values here are the fallbacks. */
.card.face {
  --w-dog: 222; --w-c1a: 118; --w-c1p: 58.5; --w-c2a: 7; --w-c2p: 36.4;
  --w-s1x: 84%; --w-s1y: 90%; --w-s2x: 12%; --w-s2y: 22%; --w-rx: 100%; --w-ry: 0%; --w-r2x: 0%; --w-r2y: 100%;
  --w-sp: 0 0; --w-sp2: 0 0; --w-mo: 50% 50%;
}
.card.common.face > .sheen {
  background-image:
    linear-gradient(calc(var(--w-dog) * 1deg), rgba(255, 246, 226, .5) 0 5.2%, rgba(30, 18, 6, .3) 5.5%, rgba(30, 18, 6, .08) 6.4%, transparent 7.4%), /* a dog-eared corner */
    linear-gradient(calc(var(--w-c1a) * 1deg), transparent calc(var(--w-c1p) * 1%), rgba(20, 12, 4, .22) calc((var(--w-c1p) + .35) * 1%), rgba(255, 248, 232, .38) calc((var(--w-c1p) + .65) * 1%), transparent calc((var(--w-c1p) + 1.3) * 1%)), /* a crease right across */
    linear-gradient(calc(var(--w-c2a) * 1deg), transparent calc(var(--w-c2p) * 1%), rgba(20, 12, 4, .15) calc((var(--w-c2p) + .35) * 1%), rgba(255, 248, 232, .26) calc((var(--w-c2p) + .65) * 1%), transparent calc((var(--w-c2p) + 1.2) * 1%)), /* and another, fainter */
    radial-gradient(ellipse 28% 19% at var(--w-s1x) var(--w-s1y), rgba(62, 38, 10, .3), transparent 70%),
    radial-gradient(ellipse 15% 11% at var(--w-s2x) var(--w-s2y), rgba(62, 38, 10, .22), transparent 70%),
    var(--fw-dust), var(--fw-specks-d), var(--fw-mottle);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 130px 130px, 150px 150px, 180% 180%;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, var(--w-sp), var(--w-sp2), var(--w-mo);
  box-shadow: inset 0 0 0 .7cqw rgba(255, 244, 222, .26), inset 0 0 1.6cqw rgba(255, 244, 222, .2), inset 0 0 9cqw rgba(24, 14, 4, .5);
}
.card.uncommon.face > .sheen {
  background-image:
    linear-gradient(calc(var(--w-c1a) * 1deg), transparent calc(var(--w-c1p) * 1%), rgba(20, 12, 4, .12) calc((var(--w-c1p) + .25) * 1%), rgba(255, 248, 232, .22) calc((var(--w-c1p) + .45) * 1%), transparent calc((var(--w-c1p) + .9) * 1%)),
    radial-gradient(ellipse 22% 15% at var(--w-s1x) var(--w-s1y), rgba(62, 38, 10, .2), transparent 70%),
    radial-gradient(circle at var(--w-rx) var(--w-ry), rgba(255, 246, 226, .2), transparent 7%),
    var(--fw-dust);
  background-size: 100% 100%, 100% 100%, 100% 100%, 130px 130px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-position: 0 0, 0 0, 0 0, var(--w-sp);
  opacity: .75;
  box-shadow: inset 0 0 0 .5cqw rgba(255, 244, 222, .18), inset 0 0 7cqw rgba(24, 14, 4, .32);
}
.card.rare.face > .sheen {
  background-image:
    radial-gradient(circle at var(--w-rx) var(--w-ry), rgba(255, 246, 226, .22), transparent 7%), radial-gradient(circle at var(--w-r2x) var(--w-r2y), rgba(255, 246, 226, .2), transparent 6%),
    var(--fw-dust);
  background-size: 100% 100%, 100% 100%, 110px 110px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: 0 0, 0 0, var(--w-sp);
  opacity: .35;
  box-shadow: inset 0 0 5cqw rgba(24, 14, 4, .18);
}
.card.common.face .f-name, .card.common.face .f-title, .card.common.face .f-sub { opacity: .9; }
.card.epic.face::before { opacity: .85; }
.card.face > .f-num, .card.face > .f-lvl { z-index: 1; }
.result .what.journal-line { max-width: 46ch; font: italic 1.05rem/1.4 var(--serif); color: var(--text-dim); text-align: center; }

/* 3D dice for the recruit reveal (dice3d.js): one see-through canvas over the page */
.dice3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
body.spotlit .dice3d { z-index: 6; }
html.qv-open .dice3d { z-index: 12; } /* over the quest replay */
/* Dice colour picker (account menu) */
.dice-pick > div { grid-template-columns: repeat(6, 1fr); }
.dice-pick button { display: grid; place-items: center; padding: 5px 0; }
.dice-pick button i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; background: var(--df); color: var(--di); font: 800 .8rem/1 var(--sans); font-style: normal; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .35); }
.dice-pick button[aria-checked="true"] i { outline: 2px solid var(--gold-hi); outline-offset: 1px; }

/* Moving between Home, Your Heroes, the Leaderboards (and Admin): a quick fade (views.js) */
/* The party's cards don't fade: they slide off the bottom and back up on their own (partydock.js). */
main.view-out > :not(.party), main.view-out > .party > :not(.party-hold) { opacity: 0; transition: opacity .14s ease-in; }
main.view-in > :not(.party), main.view-in > .party > :not(.party-hold) { animation: view-in .24s ease-out; }
@keyframes view-in { from { opacity: 0; } }

/* ================================================================ recruiting streak (beside Recruit) */
.streak { display: inline-flex; align-items: center; gap: 8px; align-self: stretch; padding: 0 12px; border: 1px solid var(--felt-line); border-radius: 10px !important; background: rgba(var(--panel-rgb), .55); cursor: pointer; }
.streak.t-name[data-tip]:hover { text-decoration: none; border-color: var(--brass-dim); }
.streak:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.st-label { font: 800 .64rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.st-pips { display: inline-flex; gap: 4px; }
.st-pips i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--brass-dim); background: transparent; transition: background .3s; }
.st-pips i.on { background: var(--gold); border-color: var(--brass); }
.st-pips i.new { box-shadow: 0 0 6px var(--gold); }
:root[data-theme="light"] .st-pips i.on { background: #c9994a; }
.streak.done { border-color: var(--brass); }
.streak.done .st-label { color: var(--gold); }
@media (max-width: 560px) { .streak { padding: 0 8px; gap: 6px; } .st-label { display: none; } .st-pips i { width: 8px; height: 8px; } }
@media (max-width: 440px) { .recruit-box .rl { display: none; } } /* "Recruit in 10:36:09" beside the streak on small phones */

/* ================================================================ bonds (card page, and journal entries) */
.bonds { display: grid; gap: 4.6cqw; }
.bond { display: grid; gap: 1.4cqw; }
.bond-top { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; }
.bond-top b { font: 400 max(15px, 5.2cqw)/1.1 var(--serif); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 1.2cqw solid var(--c); padding-left: 2cqw; }
.bond-top em { flex: none; font: 800 max(10px, 3cqw)/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.bond-top em.warm { color: #2f7a47; } .bond-top em.cold { color: #a8342a; }
.bond-bar { position: relative; height: max(8px, 2.6cqw); border-radius: 5px; border: 1px solid rgba(43, 33, 24, .25);
  background: linear-gradient(90deg, rgba(176, 48, 42, .32), rgba(176, 48, 42, .06) 45%, rgba(43, 33, 24, .05) 50%, rgba(63, 143, 85, .06) 55%, rgba(63, 143, 85, .34)); }
.bond-bar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(43, 33, 24, .35); } /* the middle, where every bond starts */
.bond-bar i { position: absolute; top: 50%; width: max(10px, 3.4cqw); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); background: #6b5a45; border: 1px solid #fbf3df; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.bond-bar.warm i { background: #2f7a47; } .bond-bar.cold i { background: #a8342a; }
.bond-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; font: 700 max(9px, 2.8cqw)/1.2 var(--sans); color: var(--ink-soft); }
.bond-foot span { text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.bond-foot small { font: inherit; text-align: center; }
.bond.fallen { opacity: .55; filter: grayscale(.7); }
.bond.fallen .bond-top b { text-decoration: line-through; text-decoration-thickness: 1px; }
.entry.bond { --c: #b0802a; }
.entry .facts .gain.bond { color: #7a520a; background: rgba(176, 128, 30, .1); border-color: rgba(176, 128, 30, .35); }
.install-sheet { width: min(440px, 100%); }
.install-sheet .qs-actions { justify-content: flex-end; }

/* ================================================================ announcements (under the navigation bar) */
.announce { position: relative; overflow: hidden; margin: 0 auto 6px; max-width: var(--page-w); border-block: 1px solid var(--brass-dim); background: rgba(var(--panel-rgb), .7); }
.announce::before, .announce::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 1; pointer-events: none; }
.announce::before { left: 0; background: linear-gradient(90deg, var(--felt), transparent); }
.announce::after { right: 0; background: linear-gradient(-90deg, var(--felt), transparent); }
.announce-track { display: inline-block; white-space: nowrap; padding: 9px 0; font: italic 1.05rem/1.2 var(--serif); color: var(--gold); will-change: transform; }
@media (max-width: 1100px) { .announce { margin-inline: 16px; } }

/* ================================================================ maintenance mode */
/* Everyone but admins sees only this while guildle is under maintenance (maintenance.js). */
body.maintenance > *:not(#maintenance):not(script) { display: none !important; }
/* For admins while it's on: a reminder under the navigation. */
.maint-bar { margin: 0 auto 6px; max-width: var(--page-w); padding: 7px 12px; border-radius: 5px; background: rgba(176, 48, 42, .85); color: #fff; font: 700 .8rem/1.3 var(--sans); text-align: center; }
@media (max-width: 1100px) { .maint-bar { margin-inline: 16px; } }

/* ================================================================ notifications */
.push-sheet { width: min(460px, 100%); }
.push-sheet .qs-actions { justify-content: space-between; }
.push-sheet p { margin: 0; }
.push-kinds { border: 1px solid var(--felt-line); border-radius: 5px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.push-kinds[hidden] { display: none; }
.push-kinds legend { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); padding: 0 6px; }
.push-kinds small { color: var(--text-dim); font-size: .78rem; }
#push-kind-list { display: grid; gap: 4px; }
.push-kind { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.push-kind input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; margin: 0; }

/* ================================================================ how guildle works (simplified) */
.help-sheet { width: min(520px, 100%); gap: 14px !important; }
.help-sheet h2 { margin: 0; }
.help-lead { margin: 0; font: italic 400 1.08rem/1.45 var(--serif); color: var(--text); }
.help-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font: .82rem/1.35 var(--sans); color: var(--text-dim); }
.help-tip a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--felt-line); color: var(--gold); font-weight: 700; text-decoration: none; }
.help-tip a:hover { background: rgba(240, 207, 142, .09); }
.help-tip svg { width: 18px; height: 18px; flex: none; }
.help-legal { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--felt-line); font: .74rem/1.45 var(--sans); color: var(--text-dim); }
.help-rarity { display: flex; flex-wrap: wrap; gap: 6px; }
.help-rarity span { font: 800 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.help-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.help-steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-dim); font-size: .95rem; line-height: 1.45; }
.help-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--brass-dim); color: var(--gold); font: 400 1rem/1 var(--serif); background: rgba(var(--panel-rgb), .6); }
.help-steps b { color: var(--text); }
.help-h { margin: 6px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--felt-line); font: 700 .72rem/1 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim) !important; }
.help-notes { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: var(--text-dim); font-size: .92rem; }
.help-sheet .changelog { max-height: none; overflow: visible; padding-right: 0; gap: 0; }
details.cl-entry { border-bottom: 1px solid var(--felt-line); }
details.cl-entry:last-child { border-bottom: 0; }
details.cl-entry summary { list-style: none; cursor: pointer; display: grid; gap: 3px; padding: 10px 22px 10px 0; position: relative; border-radius: 5px; }
details.cl-entry summary::-webkit-details-marker { display: none; }
details.cl-entry summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
details.cl-entry[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
details.cl-entry .cl-body { padding: 0 0 12px; }
.help-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--felt); }
.help-dot[hidden] { display: none; }

/* A weapon's own icon on the Equipment page (assets/img/weapons/). */
.pg-item .slot i.wpn { width: 66%; height: 66%; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* Ability icons beside STR, DEX and the rest (emblems.js STAT_ICONS). */
.ab-ic { width: 1.35em; height: 1.35em; flex: none; vertical-align: -0.2em; margin-right: .3em; }
.pg-ab .k { display: inline-flex; align-items: center; white-space: nowrap; }
.pg-ab .k .ab-ic { margin-right: .25em; }
.stat-pop .ab-ic { width: .95em; height: .95em; vertical-align: -0.12em; margin-right: .25em; color: var(--gold); }
.pg-ab { grid-template-columns: 15cqw 1fr 6.5cqw 7cqw; }

/* Damage types in the quest log: "14 cold [icon] damage" (adventure.js logLine; icons in assets/img/damage/). */
.dmg-ic { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin: 0 .1em 0 .22em; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.dmg-ic.t-acid { --m: url(../img/damage/acid.svg); color: #9fd65a; }
.dmg-ic.t-bludgeoning { --m: url(../img/damage/bludgeoning.svg); color: #c9b79a; }
.dmg-ic.t-cold { --m: url(../img/damage/cold.svg); color: #8fd3f0; }
.dmg-ic.t-fire { --m: url(../img/damage/fire.svg); color: #ff9147; }
.dmg-ic.t-force { --m: url(../img/damage/force.svg); color: #c7a4ff; }
.dmg-ic.t-lightning { --m: url(../img/damage/lightning.svg); color: #ffe066; }
.dmg-ic.t-necrotic { --m: url(../img/damage/necrotic.svg); color: #9fb58a; }
.dmg-ic.t-piercing { --m: url(../img/damage/piercing.svg); color: #c9b79a; }
.dmg-ic.t-poison { --m: url(../img/damage/poison.svg); color: #7fd08a; }
.dmg-ic.t-psychic { --m: url(../img/damage/psychic.svg); color: #f59ad8; }
.dmg-ic.t-radiant { --m: url(../img/damage/radiant.svg); color: #ffe9a8; }
.dmg-ic.t-slashing { --m: url(../img/damage/slashing.svg); color: #c9b79a; }
.dmg-ic.t-thunder { --m: url(../img/damage/thunder.svg); color: #9fb8ff; }
.dmg-ic.t-resistance { --m: url(../img/damage/resistance.svg); color: #8fdca6; }
.dmg-ic.t-vulnerability { --m: url(../img/damage/vulnerability.svg); color: #ff8a7a; }
:root[data-theme="light"] .dmg-ic { filter: brightness(.62) saturate(1.5); }

/* ================================================================ the picker sheet (gear.js: a hero's slot) */
.eq-pick { position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 22, .55); display: grid; place-items: center; padding: 16px; overscroll-behavior: contain; }
.eq-pick[hidden] { display: none; }
.eqp-sheet { width: min(420px, 100%); max-height: min(640px, 90vh); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; background: #f4ecda; color: var(--ink); border-radius: 10px; padding: 16px 16px 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.eqp-sheet h3 { margin: 0 0 10px; font: 400 1.4rem/1.1 var(--serif); }
.eqp-sheet h3 small { display: block; font: 700 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eqp-sheet .link { display: block; margin: 4px auto 0; color: var(--ink-soft); }
.eqp-now { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; background: rgba(43, 33, 24, .07); margin-bottom: 10px; }
.eqp-now span:not(.inv-ic) { flex: 1; display: grid; }
.eqp-now small { font: 700 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.eqp-now b { font: 400 1.05rem/1.15 var(--serif); }
.eqp-away { margin: 0 0 10px; padding: 7px 10px; border-radius: 5px; background: rgba(138, 47, 34, .08); color: #8a2f22; font: 700 .82rem/1.35 var(--sans); }
.eqp-h { margin: 6px 0; font: 800 .66rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eqp-list { display: grid; gap: 4px; margin-bottom: 8px; }
.eqp-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 5px; border: 1px solid rgba(107, 79, 42, .2); }
.eqp-row:hover:not(:disabled), .eqp-row:focus-visible { background: rgba(43, 33, 24, .06); }
.eqp-row .inv-ic { width: 30px; height: 30px; }
.eqp-row > span:not(.inv-ic):not(.rar-tag) { display: grid; min-width: 0; }
.eqp-row b { font: 400 1.02rem/1.15 var(--serif); }
.eqp-row small { font: .78rem/1.3 var(--sans); color: var(--ink-soft); }
.eqp-row i { font: 800 .8rem var(--sans); font-style: normal; color: var(--ink-soft); }
.eqp-row.no { opacity: .5; cursor: not-allowed; }
.eqp-row.no small { color: #8a2f22; font-weight: 700; }
.eqp-sheet .pg-none { color: var(--ink-soft); font: italic .95rem/1.4 var(--serif); }

/* ---- a message from the admins (messages.js): over everything, until it's closed */
.pm-pop { position: fixed; inset: 0; z-index: 2147482500; display: grid; place-items: center; padding: 16px; background: rgba(var(--shade-rgb, 6, 10, 22), .72); animation: pm-in .2s ease-out; }
.pm-pop.out { opacity: 0; transition: opacity .18s; }
.pm-card { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 24px 20px; border-radius: 14px; border: 1px solid var(--brass-dim); background: var(--felt); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); text-align: center; }
.pm-from { margin: 0 0 6px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pm-card h2 { margin: 0 0 14px; font: 400 1.5rem/1.15 var(--display); color: var(--text); }
.pm-card h2 small { font: 600 .85rem var(--sans); color: var(--text-dim); }
.pm-text { margin: 0 0 18px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 1.02rem/1.5 var(--sans); color: var(--text); }
.pm-ok { min-width: 140px; }
@keyframes pm-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pm-pop { animation: none; } }

/* ---- Refined UI (Nov 2026): the account menu in two groups (Appearance, then the app), each on/off setting a
   switch beside its name (the two buttons are still there, one under each half, so it works as before), and
   Sign out set apart at the foot. */
.acct-menu .acct-h { margin: 10px 0 4px; padding-top: 8px; border-top: 1px solid var(--felt-line); font: 400 1.1rem/1.1 var(--display); letter-spacing: 0; text-transform: none; color: var(--text); } /* (a group: the heading face, so it reads above the small labels inside it) */
.acct-menu .acct-h:first-of-type { margin-top: 6px; }
.acct-menu :is(.chat-pick, .fx-pick) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-menu :is(.chat-pick, .fx-pick) > div { position: relative; display: flex; width: 50px; height: 28px; flex: none; padding: 0; gap: 0; border-radius: 14px; border: 1px solid var(--felt-line); background: rgba(var(--shade-rgb), .5); overflow: hidden; }
.acct-menu :is(.chat-pick, .fx-pick) > div button { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 0 !important; color: transparent !important; position: relative; z-index: 1; cursor: pointer; }
.acct-menu :is(.chat-pick, .fx-pick) > div::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: left .15s, background .15s; }
.acct-menu :is(.chat-pick:has([data-chat="on"][aria-checked="true"]), .fx-pick:has([data-fx="on"][aria-checked="true"])) > div { background: rgba(240, 207, 142, .25); border-color: var(--brass); }
.acct-menu :is(.chat-pick:has([data-chat="on"][aria-checked="true"]), .fx-pick:has([data-fx="on"][aria-checked="true"])) > div::after { left: 25px; background: var(--gold); }
.acct-menu :is(.chat-pick, .fx-pick) > div button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.acct-menu .acct-out { margin-top: 10px; border-top: 1px solid var(--felt-line); color: var(--bad) !important; }
/* (a tap anywhere on the switch flips it: only the button for the other setting is there to be pressed) */
.acct-menu .chat-pick:has([data-chat="on"][aria-checked="true"]) [data-chat="on"], .acct-menu .chat-pick:has([data-chat="off"][aria-checked="true"]) [data-chat="off"],
.acct-menu .fx-pick:has([data-fx="on"][aria-checked="true"]) [data-fx="on"], .acct-menu .fx-pick:has([data-fx="off"][aria-checked="true"]) [data-fx="off"] { display: none; }
/* (the menu never runs off the foot of the screen: it scrolls inside itself) */
.acct-menu { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }

/* Choosing who an item is for: the party, then everyone else. */
.pick-sect { grid-column: 1 / -1; margin: 6px 2px 0; font: 600 .82rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }

/* A weapon in the picker: its dice against what's in hand, and whether it takes both hands. */
.eqp-dmg { display: block; font: .8rem/1.35 var(--sans); color: var(--ink-soft); }
.eqp-dmg b { font: 700 .86rem var(--sans); color: var(--ink); }
.eqp-dmg i { font-style: normal; font-weight: 600; white-space: nowrap; }
.eqp-up { color: #2e7d46; }
.eqp-down { color: #b0392b; }
.eqp-two { display: block; font-style: normal; font-weight: 600; color: #a0621a; }
