/* Free play redesign (owner, 28.11.2026): two sections «Spiel» and «Themen» that open in place, a summary line when
   closed, «Zuletzt gespielt» chips, the topic tree as one expanding list (screens/setup.js, topictree.js). Core-wide,
   all themes: only the theme's variables are used. */

/* ---------------------------------------------------------------- (i) buttons and their popover (infotip.js) */
.info-i { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 0 0 6px; padding: 0; border-radius: 50%; border: 1.5px solid currentColor;
  background: none; color: var(--text-3); font: italic 800 12px/1 Georgia, serif; text-transform: none; letter-spacing: 0; cursor: pointer; vertical-align: middle; position: relative; -webkit-tap-highlight-color: transparent; }
.info-i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; } /* a bigger target, kept clear of the neighbours */
.info-i[aria-expanded="true"] { color: var(--accent); }
.info-i:focus-visible { outline: none; box-shadow: var(--focus); }
.info-pop { position: fixed; z-index: 80; max-width: min(320px, calc(100vw - 20px)); padding: 10px 12px; border-radius: 12px; background: var(--text); color: var(--bg-solid);
  font-size: 13px; font-weight: 500; line-height: 1.4; white-space: pre-line; box-shadow: 0 8px 24px rgba(0,0,0,.28); animation: fpIn .12s ease-out; text-align: left; }
.info-pop::before { content: ''; position: absolute; left: calc(var(--ax, 50%) - 6px); width: 12px; height: 12px; background: inherit; transform: rotate(45deg); }
.info-pop.below::before { top: -5px; } .info-pop.above::before { bottom: -5px; }
.topline .h2.has-i { position: relative; }
.fp-tl-i { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); display: grid; place-items: center; font-size: 1rem; }
.fp-tl-i .info-i { margin: 0; width: 26px; height: 26px; font-size: 14px; }
.se-h .h3 { display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- summaries: segments that wrap as whole units (freesum.js) */
.fp-sum.setup-sum, .pr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; min-width: 0; }
.fs-seg { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text-2); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.fs-seg .fs-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fs-seg .ico { width: 14px; height: 14px; flex: none; color: var(--accent); }
.fs-icons .ico + .ico { margin-left: -1px; }
.fs-seg .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.fs-lv { color: var(--accent); letter-spacing: -1px; font-size: 12px; }
.fs-lv + .fs-lv { margin-left: 5px; padding-left: 6px; border-left: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.fs-mag { font-size: 11px; }
.fs-topic { flex: 0 1 auto; }
.fs-warn { background: color-mix(in srgb, var(--bad, #d6453d) 14%, transparent); color: var(--bad, #d6453d); white-space: normal; }

/* ---------------------------------------------------------------- the way to «Vergangene Einstellungen» */
.fp-presets-link { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; padding: 10px 14px; border-radius: var(--r-lg); border: 1px dashed var(--line); color: var(--text-2);
  text-decoration: none; font-size: 14px; font-weight: var(--w-bold); min-height: 46px; -webkit-tap-highlight-color: transparent; }
.fp-presets-link[hidden] { display: none; }
.fp-pl-ico .ico, .fp-pl-ico svg { width: 18px; height: 18px; color: var(--accent); }
.fp-pl-t { flex: 1; min-width: 0; }
.fp-pl-n { font-size: 12px; color: var(--text-3); }
.fp-pl-chev { font-size: 20px; color: var(--text-3); line-height: 1; }
.fp-presets-link:focus-visible { outline: none; box-shadow: var(--focus); }
/* the die's (i): beside the die, outside the flow */
.fp-die-wrap { position: relative; align-self: center; display: flex; }
.fp-die-wrap .fp-die-i { position: absolute; left: calc(100% + 8px); bottom: 14px; margin: 0; }
.free-foot .free-cap { min-height: 16px; }

/* ---------------------------------------------------------------- the presets page */
.pr-list { display: flex; flex-direction: column; gap: 10px; text-align: left; list-style: none; margin: 0; padding: 0; }
.pr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 10px; min-width: 0; }
.pr-sum { margin: 0 0 8px; }
.pr-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-at { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pr-acts { display: flex; align-items: center; gap: 6px; }
.pr-acts .btn { min-height: 38px; }
.pr-acts .btn .ico { width: 14px; height: 14px; }
.pr-del { width: 36px; height: 36px; color: var(--text-3); }
.pr-del .ico, .pr-del svg { width: 16px; height: 16px; }
.pr-empty { margin-top: 24px; }

/* ---------------------------------------------------------------- the two sections */
.fp-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 0 10px; min-width: 0; text-align: left; }
.fp-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: none; border: 0; border-radius: var(--r-lg); color: var(--text); cursor: pointer; text-align: left; font: inherit; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.fp-head:focus-visible { outline: none; box-shadow: var(--focus); }
.fp-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.fp-ico .ico, .fp-ico svg { width: 22px; height: 22px; }
.fp-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fp-title { font-size: 17px; font-weight: var(--w-bold, 800); line-height: 1.2; }
.fp-chev { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); transition: transform .2s; }
.fp-chev svg { width: 18px; height: 18px; }
.fp-sec.open .fp-chev { transform: rotate(180deg); }
.fp-sec.open .fp-head { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fp-sec.bad { border-color: color-mix(in srgb, var(--bad, #d6453d) 55%, var(--line)); }
.fp-body { padding: 4px 14px 16px; border-top: 1px solid var(--line); animation: fpIn .18s ease-out; }
@keyframes fpIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fp-body { animation: none; } .fp-chev { transition: none; } }
.fp-game.setup-ed { gap: 14px; padding-top: 10px; }
.fp-game .se-cq-seg button { padding-left: 4px; padding-right: 4px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- «Themen»: the expanding list */
.tt { padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.tt-search { position: relative; display: flex; align-items: center; }
.tt-s-ico { position: absolute; left: 12px; font-size: 15px; pointer-events: none; opacity: .75; }
.tt-search .tt-q { width: 100%; font-size: 15px; padding-left: 38px; padding-right: 40px; min-height: 46px; }
.tt-q-x { position: absolute; right: 4px; width: 38px; height: 38px; border: 0; background: none; color: var(--text-2); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.tt-q-x .ico, .tt-q-x svg { width: 16px; height: 16px; }
.tt-how .se-hint { margin-top: 6px; }
.tt-how .tt-how-note { margin-top: 0; }
.tt-how:empty { display: none; }
.tt-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; font-size: 13px; color: var(--text-2); }
.tt-tally { min-width: 0; } .tt-tally b { color: var(--text); }
.tt-none { color: var(--bad, #d6453d); font-weight: var(--w-bold); }
.tt-bulk { flex: none; white-space: nowrap; }
.tt.searching .tt-bulk { visibility: hidden; }
.tt-list { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tt-kids { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 4px 0 2px; padding: 0 0 0 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); margin-left: 21px; }
.tt-node { min-width: 0; }
.tt-row { display: flex; align-items: center; gap: 0; border-radius: var(--r-sm); background: var(--surface); border: 2px solid var(--line); min-height: 48px; transition: border-color .15s, background .15s; }
.tt-kids .tt-row { min-height: 44px; border-width: 1px; background: color-mix(in srgb, var(--surface) 70%, var(--bg-solid)); }
/* ticked: a bar in the subject's colour on the left; below a ticked node the rows stay quiet (only the tick box) */
.tt-list > .tt-node.st-on > .tt-row, .tt-list > .tt-node.st-mixed > .tt-row { box-shadow: inset 5px 0 0 var(--c, var(--accent)); }
.tt-list > .tt-node.st-on > .tt-row { background: var(--surface-2); }
.tt-node.st-on:not(.st-on .tt-node) > .tt-row { border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, var(--line)); }
.tt-node.st-mixed > .tt-row { border-color: color-mix(in srgb, var(--c, var(--accent)) 40%, var(--line)); }
.tt-cb { flex: none; width: 22px; height: 22px; margin: 0 4px 0 12px; accent-color: var(--accent); cursor: pointer; }
.tt-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; align-self: stretch; padding: 8px 8px 8px 6px; background: none; border: 0; color: var(--text); font: inherit; font-size: 14px; font-weight: var(--w-bold); text-align: left; cursor: pointer; line-height: 1.25; -webkit-tap-highlight-color: transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tt-kids .tt-name { font-size: 13.5px; font-weight: 600; }
.tt-name:focus-visible, .tt-key:focus-visible { outline: none; box-shadow: var(--focus); }
.tt-name .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.tt-nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tt-nm mark, .tt-key mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.tt-n { flex: none; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tt-some { flex: none; font-size: 11px; font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); border-radius: 999px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.tt-chev { flex: none; width: 18px; text-align: center; font-size: 20px; line-height: 1; color: var(--text-3); transition: transform .18s; }
.tt-node.open > .tt-row .tt-chev { transform: rotate(90deg); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tt-chev { transition: none; } }
.tt-node.hit > .tt-row .tt-nm { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: 3px; }
/* keywords: chips under their sub-topic */
.tt-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px 21px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.tt-key { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.2; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
.tt-key small { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tt-key.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); }
.tt-key.on::before { content: '✓'; font-weight: 900; color: var(--accent); }
.tt-key.hit { border-width: 2px; }
.tt-empty { margin: 8px 2px; font-size: 13.5px; color: var(--text-2); }
.tt-cap { margin: 2px; }
.tt-more { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tt-more[hidden] { display: none; }
.fp-sec.fine-on .fp-ico { background: color-mix(in srgb, var(--accent) 24%, transparent); }

@media (max-width: 360px) {
  .fp-head { gap: 10px; padding-left: 10px; } .fp-ico { width: 34px; height: 34px; } .fp-body { padding-left: 10px; padding-right: 10px; }
  .tt-kids, .tt-keys { margin-left: 12px; padding-left: 8px; }
}
/* wide windows: the page stays one column (the list needs the width), a bit more air */
@media (min-width: 900px) { .fp-head { padding: 14px 16px; } .fp-body { padding: 6px 18px 18px; } }
.tt.searching .tt-how { display: none; } /* while searching the hits come first */
/* labels only in the topic section: the way the topics are played, with its (i) */
.tt-how-row { display: flex; align-items: center; gap: 4px; }
.tt-how-row .seg { flex: 1; }
.tt-how-lbl { font-size: 13px; font-weight: var(--w-bold); color: var(--text-2); }
.tt-tally { display: flex; flex-wrap: wrap; gap: 2px 10px; } .tt-ts { white-space: nowrap; }
.info-pop { animation: none; } @media (prefers-reduced-motion: no-preference) { .info-pop { animation: fpIn .12s ease-out; } }
.pr-screen .topline .mid { text-align: center; }
/* review 28.11.2026: hidden clear button, deep rows, room above the sticky foot, the foot steps aside while typing */
.tt-q-x[hidden] { display: none; }
.tt-nm { hyphens: auto; -webkit-hyphens: auto; }
.tt-kids .tt-kids, .tt-kids .tt-keys { margin-left: 10px; padding-left: 8px; }
.tt-node.lv3 .tt-name, .tt-node.lv4 .tt-name { font-size: 13px; padding-right: 6px; }
.tt-node.lv3 .tt-cb, .tt-node.lv4 .tt-cb { margin-left: 8px; }
html:has(.fp-screen) { scroll-padding-bottom: 210px; scroll-padding-top: 12px; }
@media (max-width: 600px), (pointer: coarse) { body.fp-typing .free-foot { display: none; } } /* phones: the keyboard needs the room */
.tt-few { color: var(--warn, #b7791f); font-weight: var(--w-bold); }
.tt-ts { display: inline-flex; align-items: center; }
