/* Spiele über digitale Barrierefreiheit – gemeinsame Styles für alle Spiele und die Übersicht. */

:root {
  color-scheme: light dark;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #ecebe6;
  --ink: #141414;
  --muted: #55555a;
  --line: #1c1c1c;
  --dash: #8a8a8a;
  --wire: #e3e3e3;
  --wire-strong: #c2c2c2;
  --accent: #1d4ed8;
  --on-accent: #ffffff;
  --accent-tint: rgb(29 78 216 / .09);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1e1e1e;
    --surface-2: #2a2a2a;
    --ink: #f1f1f1;
    --muted: #ababab;
    --line: #e6e6e6;
    --dash: #7c7c7c;
    --wire: #333333;
    --wire-strong: #4d4d4d;
    --accent: #8ab4ff;
    --on-accent: #0b1b3a;
    --accent-tint: rgb(138 180 255 / .15);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
code, kbd, pre { font-family: var(--mono); }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; padding: 8px 14px; background: var(--ink); color: var(--surface); border-radius: 8px; }
.skip:focus { top: 12px; }
.sym { display: inline-block; flex: none; width: 1em; height: 1em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font: inherit; font-weight: 600; text-align: center; text-decoration: none;
  color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 8px; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: var(--ink); opacity: .86; }
.btn--small { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 5px; font-size: .8em; line-height: 1.5; text-align: center; border: 1.5px solid currentColor; border-bottom-width: 3px; border-radius: 4px; }

/* ---------- Header and footer ---------- */

.app-header { padding: 20px 0 8px; }
.app-header .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.back-link { display: inline-block; margin-bottom: 8px; font-size: .9rem; color: var(--ink); }
h1 { margin: 0; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; }
.lead { margin: .35rem 0 0; color: var(--muted); }
.header-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { margin: 0; padding: 6px 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; }
.chip-label { font-weight: 400; color: var(--muted); }
.app-footer { margin-top: 64px; padding: 20px 0 40px; font-size: .9rem; color: var(--muted); border-top: 1.5px dashed var(--dash); }
.app-footer p { margin: 0 0 6px; }
.app-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 40px; }
.app-footer .footer-contact { margin-top: 10px; }
.legal-links [aria-current="page"] { font-weight: 700; }
.footer-logo { flex: none; display: inline-block; }
.footer-logo img { display: block; width: 198px; height: auto; }
.legal-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-links a { display: inline-block; padding: 2px 0; }

/* ---------- Instructions ---------- */

.howto { margin: 16px 0 28px; padding: 14px 20px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; }
.howto h2 { margin: 0 0 6px; font-size: 1rem; }
.howto h2 span { font-weight: 400; }
.howto ol { margin: 0; padding-left: 1.3em; display: grid; gap: 3px; }
.howto .small { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.variant-note { margin: -12px 0 24px; font-size: .9rem; }

/* ---------- Game layout ---------- */

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-areas: "board side" "board actions";
  grid-template-rows: auto 1fr;
  gap: 20px 28px;
  align-items: start;
}
.side-panel { grid-area: side; }
.board-panel { grid-area: board; min-width: 0; }
.actions-panel { grid-area: actions; }
@media (max-width: 860px) {
  .game { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "board" "actions"; grid-template-rows: auto; }
}
.panel { padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.panel h2, .board-panel h2 { margin: 0; font-size: 1.05rem; }
.board-panel h2 { margin-bottom: 10px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.count, .panel-note { margin: 0; font-size: .875rem; color: var(--muted); }
.panel-note { margin-bottom: 12px; }
.side-panel.is-flash { animation: flash .9s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 5px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Tags (Schilder) ---------- */

.pool { display: flex; flex-wrap: wrap; gap: 10px; }
.pool .tag { flex: 1 1 100px; }
.tag code { white-space: nowrap; }
.tag {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 6px 10px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 6px; box-shadow: 0 2px 0 var(--line);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .15s ease;
}
.tag code { font-size: .95rem; font-weight: 600; }
.tag:hover { transform: translateY(-1px); }
.tag[aria-pressed="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); box-shadow: 0 6px 14px rgb(0 0 0 / .22); transform: translateY(-3px); }
.tag[aria-disabled="true"], .tag:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tag-count { font-size: .72rem; font-weight: 400; color: var(--muted); }
.tag[aria-pressed="true"] .tag-count { color: inherit; }
.tag--key { border-radius: 9px; border-bottom-width: 4px; box-shadow: none; }
.tag--key code { font-family: var(--font); }

.carry { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 36px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.carry p { margin: 0; }
.carry.is-active { color: var(--ink); }
@media (max-width: 860px) {
  .carry.is-active {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    margin: 0; padding: 10px 12px;
    background: var(--surface); border: 2px solid var(--accent); border-radius: 12px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .25);
  }
  body.has-selection { padding-bottom: 104px; }
}

/* Sequence mode: the player's order */
.seq-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.seq-list li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; border: 1.5px solid var(--wire-strong); border-radius: 8px; font-size: .9rem; }
.seq-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; font-size: .78rem; font-weight: 700; color: var(--surface); background: var(--ink); border-radius: 50%; }
.seq-name { flex: 1; min-width: 0; }
.seq-tools { display: flex; gap: 2px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; font: inherit; font-size: .95rem; color: var(--ink); background: transparent; border: 1.5px solid transparent; border-radius: 6px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--wire-strong); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; border-color: transparent; }

/* ---------- Actions ---------- */

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.check-summary { margin: 12px 0 0; font-weight: 600; }
body.is-stand #btn-new { min-height: 56px; font-size: 1.1rem; }

/* ---------- Board: wireframe primitives ---------- */

.board { container: board / inline-size; }
.wf { position: relative; background: var(--surface); color: var(--ink); border: 2px dashed var(--dash); font-size: 14px; line-height: 1.4; }
.wf-region { position: relative; min-width: 0; padding: 18px; }
.wf-region + .wf-region { border-top: 2px dashed var(--dash); }
.wf-group { position: relative; padding: 12px 14px; border: 1.5px dashed var(--dash); border-radius: 14px; }
.bar { display: block; height: 9px; border-radius: 5px; background: var(--wire); }
.bar--strong { height: 11px; background: var(--wire-strong); }
.bar--head { height: 14px; background: var(--wire-strong); }
.wf-lines { display: grid; gap: 9px; }
.wf-circle { display: inline-block; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--wire-strong); }
.wf-circle--sm { width: 26px; height: 26px; }
.wf-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wire); border: 1.5px solid var(--wire-strong); }
.wf-img svg { display: block; width: 100%; height: 100%; }
.wf-img .m { fill: var(--wire-strong); }
.wf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--surface); background: var(--ink); border-radius: 999px; }
.wf-link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.wf-input { display: flex; align-items: center; min-height: 34px; padding: 0 10px; font-size: 13px; color: var(--muted); background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px; }
.wf-caption { font-size: 12px; line-height: 1.3; color: var(--muted); }
.wf-copy { margin: 0; font-size: 12px; color: var(--muted); }
.is-target { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Slots (Felder) ---------- */

.slot {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; min-height: 40px; padding: 4px 10px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 6px;
  cursor: pointer; vertical-align: middle; user-select: none; -webkit-user-select: none;
}
.slot-face { display: inline-flex; align-items: center; justify-content: center; min-width: 0; }
.slot-plus { font-size: 20px; line-height: 1; color: var(--muted); }
.slot code { font-size: 14px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.slot.is-filled { box-shadow: 0 2px 0 var(--line); cursor: grab; touch-action: none; }
.game.has-selection .slot { border-style: dashed; border-color: var(--accent); background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--surface); }
.slot.is-drop-hover { outline: 3px dashed var(--accent); outline-offset: 3px; }
.slot.is-drag-source { opacity: .35; }
.slot.is-bad { border-style: dashed; border-width: 3px; background: repeating-linear-gradient(-45deg, var(--surface) 0 6px, var(--surface-2) 6px 9px); }
.slot-badge { position: absolute; z-index: 3; top: -10px; right: -10px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.slot-badge .sym { width: 13px; height: 13px; }
.slot.is-ok .slot-badge, .slot.is-bad .slot-badge { display: grid; animation: pop .25s both; }
.slot.is-ok .slot-badge { color: var(--surface); background: var(--ink); }
.slot.is-bad .slot-badge { color: var(--ink); background: var(--surface); border: 2px solid var(--ink); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Sequence slots wrap the element they stand for */
.slot--seq { min-width: 0; min-height: 0; padding: 6px; background: transparent; border: 2px dashed var(--wire-strong); border-radius: 8px; box-shadow: none; }
.slot--seq:hover { border-color: var(--line); }
.slot--seq.is-numbered { border-style: solid; border-color: var(--line); background: var(--surface); }
.seq-badge { position: absolute; z-index: 3; top: -11px; left: -11px; display: none; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; font-size: .78rem; font-weight: 700; color: var(--surface); background: var(--ink); border-radius: 12px; }
.slot--seq.is-numbered .seq-badge { display: grid; }
.slot--seq.is-ok, .slot--seq.is-bad { border-width: 2px; }
.slot--seq.is-bad { border-style: dashed; border-color: var(--line); background: repeating-linear-gradient(-45deg, var(--surface) 0 6px, var(--surface-2) 6px 9px); }
.slot--seq.is-ok .slot-badge, .slot--seq.is-bad .slot-badge { top: -11px; right: -11px; }

/* Numbered markers (Formular) and the slot list next to the board */
.mark { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin: 0 4px; font-size: 12px; font-weight: 700; font-style: normal; line-height: 1; color: var(--surface); background: var(--ink); border-radius: 50%; vertical-align: middle; }
.mark.is-target { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slot-row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark label" "mark slot"; gap: 4px 8px; align-items: center; }
.slot-row .mark { grid-area: mark; align-self: start; margin: 2px 0 0; }
.slot-row-label { grid-area: label; font-size: .85rem; line-height: 1.3; }
.slot-row .slot { grid-area: slot; justify-self: start; min-width: 180px; }

/* ---------- Results ---------- */

.section { margin-top: 44px; }
.section > h2 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.2; }
.section h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.section-lead { margin: 0; max-width: 72ch; }
.res-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.res { padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.res--bad { border-style: dashed; border-width: 2.5px; }
.res p { margin: 0; }
.res p + p { margin-top: 6px; }
.res-head { font-weight: 600; }
.res-head code { font-weight: 600; }
.res-badge { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 1px 8px 1px 6px; font-size: .75rem; font-weight: 700; border-radius: 999px; vertical-align: 1px; border: 1.5px solid var(--ink); }
.res-badge .sym { width: 11px; height: 11px; }
.res--ok .res-badge { color: var(--surface); background: var(--ink); }
.res--bad .res-badge { color: var(--ink); background: var(--surface); }
.res--empty .res-badge { color: var(--muted); border-color: var(--dash); }
.res-title { font-family: var(--mono); font-size: .9rem; font-weight: 600; }
.res-note, .res-extra { font-size: .85rem; color: var(--muted); }
.res-hint { padding: 6px 10px; font-size: .9rem; background: var(--surface-2); border-radius: 6px; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.leftover { margin-top: 18px; padding: 12px 14px; border: 1.5px dashed var(--dash); border-radius: 10px; }
.leftover h3 { margin: 0 0 6px; font-size: 1rem; }
.leftover ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.why-list { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 75ch; }
.section-end { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Quiz and bonus ---------- */

.quiz { margin-top: 16px; padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.quiz fieldset { margin: 0; padding: 0; border: 0; }
.quiz legend { margin-bottom: 10px; padding: 0; font-weight: 600; }
.quiz h3 { margin: 0 0 4px; }
.quiz > p { margin: 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 10px 12px; border: 1.5px solid var(--wire-strong); border-radius: 8px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.opt input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.feedback { margin: 12px 0 0; font-weight: 500; }
.feedback:empty { margin: 0; }
select { min-height: 44px; padding: 0 10px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; }
.code { margin: 12px 0 0; padding: 12px 14px; overflow-x: auto; font-size: .875rem; background: var(--surface-2); border-radius: 8px; }
.demo-frame { margin-top: 14px; padding: 18px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; }
.demo-log { margin: 10px 0 0; padding: 10px 12px; font-size: .9rem; background: var(--surface-2); border-radius: 8px; }
.speech { margin: 0; padding: 14px 16px; background: var(--ink); color: var(--bg); border-radius: 12px; }
.speech-label { margin: 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.speech-text { margin: 4px 0; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.speech-code { margin: 0; font-size: .82rem; opacity: .85; overflow-wrap: anywhere; }
.speech-note { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.step-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pick-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.pick-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px;
  font: inherit; text-align: left; color: var(--ink); background: transparent;
  border: 1.5px solid transparent; border-radius: 8px; cursor: pointer;
}
.pick-list button:hover { background: var(--surface-2); }
.pick-list button[aria-current="true"] { font-weight: 600; background: var(--accent-tint); border-color: var(--accent); }
.pick-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; font-size: .75rem; background: var(--surface-2); border-radius: 50%; }
.pick-list code { margin-left: auto; font-size: .75rem; font-weight: 400; color: var(--muted); }
.note-box { margin: 12px 0 0; padding: 10px 12px; font-size: .9rem; background: var(--surface-2); border-left: 4px solid var(--ink); border-radius: 6px; }

/* ---------- Dialogs ---------- */

dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: rgb(0 0 0 / .55); }
.dlg { padding: 20px 22px 24px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg h2 { margin: 0; font-size: 1.3rem; }
.dlg h3 { margin: 22px 0 8px; font-size: 1rem; }
.dlg p { margin: 0 0 8px; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chooser { width: min(440px, calc(100% - 24px)); }
.chooser-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chooser-list li { flex: 1 1 130px; }
.chooser-list .tag { width: 100%; cursor: pointer; }
.chooser-list .tag[aria-current="true"] { border-width: 3px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wire-strong); }
th { border-bottom: 2px solid var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Drag ghost and idle warning ---------- */

.ghost {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  padding: 10px 14px; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 12px 28px rgb(0 0 0 / .28);
}
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.idle {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center;
  width: min(540px, calc(100% - 32px)); padding: 14px 16px;
  color: var(--bg); background: var(--ink); border-radius: 12px; box-shadow: 0 12px 30px rgb(0 0 0 / .3);
}
.idle p { flex: 1; margin: 0; }
.idle-count { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.idle .btn { color: var(--ink); }

/* ---------- Overview ---------- */

.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; }
.card-step { flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: .85rem; font-weight: 700; color: var(--surface); background: var(--ink); border-radius: 50%; }
.section--first { margin-top: 28px; }
.section--first + .section { margin-top: 36px; }
.card p { margin: 0; }
.card-meta { font-size: .875rem; color: var(--muted); }
.card-done { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; font-size: .78rem; font-weight: 700; color: var(--surface); background: var(--ink); border-radius: 999px; }
.card-done .sym { width: 11px; height: 11px; }
.card-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.info-list { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }

@media (forced-colors: active) {
  .tag[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: 2px; }
  .slot.is-ok, .slot.is-bad { border-width: 4px; }
  .slot-badge, .seq-badge, .mark, .card-step { forced-color-adjust: none; color: Canvas; background: CanvasText; }
  .is-target { outline-color: Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important; transition-delay: 0s !important;
    animation-duration: .01ms !important; animation-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
