/* =====================================================================
   BAUHAUS: a poster. Primaries on cream, heavy black bars, square corners,
   hard black offset shadows, lowercase Jost for everything. Red is the one
   accent. The home screen is Kandinsky's three forms beside a huge title,
   then a tiled grid of red / cream / blue / yellow / black blocks.
   Spec: docs/themes/bauhaus.md
   ===================================================================== */
:root[data-theme="bauhaus"] {
  color-scheme: light;
  --red: #d7261e; --yellow: #f4b400; --blue: #1e4fa3; --ink: #121212; --cream: #faf6ec;
  --bg: #efe8d8; --surface: var(--cream); --surface-2: #e2d9c5;
  --text: var(--ink); --muted: #4a453e; --faint: #635d53; --border: var(--ink); --rule: var(--ink);
  --accent: var(--red);
  --primary: var(--red); --primary-strong: var(--ink); --primary-contrast: #fff; --primary-soft: var(--yellow);
  --danger: var(--red); --danger-soft: #f6cfc6; --success: #1a7f4b;
  --radius: 0px; --r-ctl: 0px; --r-ctl-in: 0px; --r-dialog: 0px; --r-menu: 0px; --r-board: 0px; --r-cell: 0px; --r-pill: 0px;
  --bw: 2.5px;
  --content-w: 1120px;
  --shadow: none;
  --dialog-shadow: 10px 10px 0 var(--ink);
  --menu-shadow: 8px 8px 0 var(--ink);
  --overlay: rgba(18, 18, 18, .45);
  --font: "Jost", Futura, "Century Gothic", "Avenir Next", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --toast-bg: var(--ink); --toast-fg: var(--cream); --toast-action: var(--yellow);
  --record-bg: var(--yellow); --record-fg: var(--ink);
  /* 2048 */
  --g-board: var(--ink); --g-slot: #2e2c29;
  --t2: var(--cream); --t4: #e2d9c5; --t8: var(--yellow); --t16: #eb8c00; --t32: var(--red); --t64: #9e1a13;
  --t128: var(--blue); --t256: #153a7c; --t512: #1a7f4b; --t1024: #5a2d82; --t2048: var(--cream);
  --t-ink: var(--ink); --t-paper: #fff; --t8-fg: var(--ink); --t16-fg: var(--ink); --t2048-fg: var(--red);
  /* memory grid */
  --flash: var(--blue); --tile: #e2d9c5;
  /* card table: flat blue, cream cards ruled in ink */
  --table-bg: var(--blue); --table-frame: none;
  --slot-line: rgba(250, 246, 236, .55);
  --card-paper: var(--cream); --card-r: 0;
  --card-shadow: 0 0 0 1.5px var(--ink);
  --court-panel: var(--yellow); --court-rule: inset 0 0 0 1.5px var(--ink);
  --suit-red: var(--red); --suit-black: var(--ink);
  --card-back-art: radial-gradient(circle at 50% 50%, var(--yellow) 0 23%, transparent 23%), linear-gradient(135deg, var(--blue) 0 50%, var(--red) 50%);
  --back-edge: var(--cream); --back-edge-w: .07; --back-shadow: 0 0 0 1.5px var(--ink);
  /* states, sides, the table's ink, motion (README §2.3) */
  --warn: #8f4f00; --warn-soft: #f6dfae;
  --success-contrast: #fff; --danger-contrast: #fff;
  --table-ink: rgba(250, 246, 236, .86); --table-ink-strong: var(--cream); --table-ink-quiet: rgba(250, 246, 236, .62); --table-turn: #ffd84a;
  --suit-blue: var(--blue); --suit-green: #1a7f4b;
  --side-1: var(--red); --side-1-ink: #fff; --side-2: var(--blue); --side-2-ink: #fff; --side-3: var(--yellow); --side-3-ink: var(--ink);
  --side-4: var(--ink); --side-4-ink: var(--cream); --side-5: #1a7f4b; --side-5-ink: #fff; --side-6: #eb8c00; --side-6-ink: var(--ink);
  --frame-out: 0px; --t-move: .18s;
  --panel-edge: 0 0 0 2.5px var(--ink);
  --confetti: #d7261e, #f4b400, #1e4fa3, #121212;
}
[data-theme="bauhaus"] ::selection { background: var(--yellow); color: var(--ink); }
/* the backdrop: primary forms drifting and turning (js/backdrops/bauhaus.js); faint over the content column */
[data-theme="bauhaus"] .backdrop { --veil: .15; }
[data-theme="bauhaus"] :is(.brand, .hero-title, .game-meta h3, .dialog h2, .btn, .theme-opt strong, .theme-name, .section-title, .box > :is(h2, h3), .settings-title, .main-nav a, .footer-brand, .tool, .choice-tile, .tags .tag, .board-status, .board-status.cover > span) { text-transform: lowercase; }

/* ---------- chrome ---------- */
[data-theme="bauhaus"] .topbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 3px solid var(--ink); }
[data-theme="bauhaus"] .brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; }
[data-theme="bauhaus"] .icon-btn:hover:not(:disabled) { background: var(--yellow); }
[data-theme="bauhaus"] .main-nav a { color: var(--ink); font-size: 1rem; font-weight: 500; border-radius: 0; }
[data-theme="bauhaus"] .main-nav a:hover { background: var(--yellow); }
[data-theme="bauhaus"] .main-nav a[aria-current="true"] { background: var(--ink); color: var(--cream); }
[data-theme="bauhaus"] :is(.btn, .theme-btn) { border: 2.5px solid var(--ink); font-weight: 600; font-size: 1rem; }
[data-theme="bauhaus"] .theme-btn:hover { background: var(--yellow); }
[data-theme="bauhaus"] .theme-btn .chev { color: var(--ink); }
[data-theme="bauhaus"] .theme-btn .theme-swatch { border-width: 2px; }
[data-theme="bauhaus"] .theme-menu { border: 3px solid var(--ink); }
[data-theme="bauhaus"] :is(.theme-opt:hover, .theme-opt:focus-visible) { background: var(--yellow); }
[data-theme="bauhaus"] :is(.theme-opt:hover, .theme-opt:focus-visible) small { color: var(--ink); }
[data-theme="bauhaus"] .theme-opt .ico { color: var(--ink); }
[data-theme="bauhaus"] .theme-opt .apps i { border: 2px solid var(--ink); border-radius: 0; color: var(--ink); }

/* ---------- controls ---------- */
[data-theme="bauhaus"] .btn:hover:not(:disabled) { background: var(--yellow); }
[data-theme="bauhaus"] .btn-primary { border-color: var(--ink); }
[data-theme="bauhaus"] .btn-primary:hover:not(:disabled) { background: var(--ink); color: #fff; }
[data-theme="bauhaus"] .btn-danger { color: var(--red); }
[data-theme="bauhaus"] .segmented { padding: 0; background: var(--cream); box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .segmented button { padding: 9px 13px; color: var(--ink); font-weight: 500; }
[data-theme="bauhaus"] .segmented button[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }
[data-theme="bauhaus"] .stat { border-width: 2.5px; }
[data-theme="bauhaus"] .stat-label { color: var(--ink); letter-spacing: .12em; }
[data-theme="bauhaus"] .tool { color: var(--ink); font-weight: 500; }
[data-theme="bauhaus"] .tool:hover:not(:disabled) { background: var(--surface-2); }
[data-theme="bauhaus"] .tool[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
[data-theme="bauhaus"] .tool .badge { border-radius: 50%; }
[data-theme="bauhaus"] .hint-text { color: var(--ink); }
[data-theme="bauhaus"] :is(.field label, .setup-label) { color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
[data-theme="bauhaus"] .field :is(input, select, textarea) { border: 2.5px solid var(--ink); background: var(--cream); }
[data-theme="bauhaus"] .switch { width: 52px; height: 28px; border-radius: 0; background: var(--cream); box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .switch::before { top: 5px; left: 5px; width: 18px; height: 18px; background: var(--ink); box-shadow: none; }
[data-theme="bauhaus"] .switch[aria-checked="true"] { background: var(--red); box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .switch[aria-checked="true"]::before { transform: translateX(24px); background: var(--cream); box-shadow: 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] :is(.check input, .range) { accent-color: var(--red); }

/* ---------- surfaces, dialog, toast ---------- */
[data-theme="bauhaus"] .box { border: 3px solid var(--ink); background: var(--cream); }
[data-theme="bauhaus"] .box > :is(h2, h3) { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; }
[data-theme="bauhaus"] .dialog { border: 3px solid var(--ink); }
[data-theme="bauhaus"] .dialog h2, [data-theme="bauhaus"] .settings-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; }
[data-theme="bauhaus"] .dialog p, [data-theme="bauhaus"] .rules { color: var(--ink); }
[data-theme="bauhaus"] .install-banner { background: var(--yellow); border: 3px solid var(--ink); margin-bottom: 24px; }
[data-theme="bauhaus"] .install-banner span { color: var(--ink); }
[data-theme="bauhaus"] .offline-badge { color: var(--ink); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }
[data-theme="bauhaus"] .drawer { border-left: 3px solid var(--ink); box-shadow: -10px 0 0 var(--ink); }
[data-theme="bauhaus"] .setting { border-top: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .setting-text small { color: var(--ink); }
[data-theme="bauhaus"] .icon-tile { border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); }
[data-theme="bauhaus"] .swatch-item i { border-radius: 0; box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- home: the poster ---------- */
[data-theme="bauhaus"] .home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta meta" "title art" "intro art";
  column-gap: clamp(16px, 4vw, 48px);
  margin: 4px 0 32px;
}
[data-theme="bauhaus"] .hero-meta {
  grid-area: meta; display: flex; gap: 20px;
  margin-bottom: clamp(16px, 3vw, 28px); padding-top: 10px;
  border-top: 12px solid var(--ink);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
[data-theme="bauhaus"] .date-long { display: none; }
[data-theme="bauhaus"] .hero-title {
  grid-area: title; display: block; align-self: end;
  padding-bottom: .12em;
  font-size: clamp(3.6rem, 14vw, 9.5rem); font-weight: 800; line-height: .8; letter-spacing: -.055em;
}
[data-theme="bauhaus"] .hero-title span { display: block; }
[data-theme="bauhaus"] .hero-title span + span { color: var(--red); }
[data-theme="bauhaus"] .intro { grid-area: intro; max-width: 42ch; margin: 22px 0 0; color: var(--ink); font-size: 1.12rem; line-height: 1.45; }
[data-theme="bauhaus"] .hero-art { grid-area: art; display: block; position: relative; width: clamp(104px, 27vw, 300px); aspect-ratio: 1; align-self: end; }
[data-theme="bauhaus"] .hero-art i { position: absolute; display: block; mix-blend-mode: multiply; }
[data-theme="bauhaus"] .hero-art i:nth-child(1) { left: 0; bottom: 0; width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); }
[data-theme="bauhaus"] .hero-art i:nth-child(2) { right: 0; top: 0; width: 52%; aspect-ratio: 1; background: var(--red); }
[data-theme="bauhaus"] .hero-art i:nth-child(3) { right: 4%; bottom: 0; width: 56%; aspect-ratio: 1 / .88; background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* section heads: lowercase title, the count in a disc that runs red, blue, yellow */
[data-theme="bauhaus"] .section-head { align-items: center; gap: 6px 12px; margin: 0 0 16px; }
[data-theme="bauhaus"] .section-title { font-size: 1.55rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
[data-theme="bauhaus"] .section-count { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: .82rem; font-weight: 600; }
[data-theme="bauhaus"] .home-section:nth-of-type(3n+2) .section-count { background: var(--blue); }
[data-theme="bauhaus"] .home-section:nth-of-type(3n) .section-count { background: var(--yellow); color: var(--ink); }
[data-theme="bauhaus"] .section-note { margin-left: auto; color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="bauhaus"] .page > .section-head .section-note { margin-left: 0; flex-basis: 100%; }
[data-theme="bauhaus"] .home-section + .home-section { margin-top: 44px; }

/* The tiles are joined by 3px black bars. Each tile draws its own bar as an outline
   over the gap, so a short last row simply ends instead of leaving black holes. */
[data-theme="bauhaus"] .game-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; }
[data-theme="bauhaus"] .game-card {
  --tc: var(--cream); --tf: var(--ink);
  position: relative;
  flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px;
  min-height: 250px; padding: 20px 20px 54px;
  border: 0; border-radius: 0; box-shadow: none;
  outline: 3px solid var(--ink);
  background: var(--tc); color: var(--tf);
  transition: none;
}
[data-theme="bauhaus"] .game-card:nth-child(8n+1), [data-theme="bauhaus"] .game-card:nth-child(8n+8) { --tc: var(--red); --tf: #fff; }
[data-theme="bauhaus"] .game-card:nth-child(8n+3) { --tc: var(--blue); --tf: #fff; }
[data-theme="bauhaus"] .game-card:nth-child(8n+4), [data-theme="bauhaus"] .game-card:nth-child(8n+7) { --tc: var(--yellow); }
[data-theme="bauhaus"] .game-card:nth-child(8n+6) { --tc: var(--ink); --tf: var(--cream); }
[data-theme="bauhaus"] .game-card:hover { --tc: var(--ink); --tf: var(--cream); transform: none; }
[data-theme="bauhaus"] .game-card:nth-child(8n+6):hover { --tc: var(--red); --tf: #fff; }
[data-theme="bauhaus"] .game-card:focus-visible { outline: 3px solid var(--ink); box-shadow: inset 0 0 0 4px var(--tc), inset 0 0 0 7px var(--tf); }
[data-theme="bauhaus"] .game-card .game-icon { width: 72px; height: 72px; border-radius: 0; background: transparent; box-shadow: none; color: var(--tc); }
[data-theme="bauhaus"] .game-icon svg { width: 72px; height: 72px; }
[data-theme="bauhaus"] .game-icon svg [fill="#fff"] { fill: var(--tf); }
[data-theme="bauhaus"] .game-icon svg [stroke="#fff"] { stroke: var(--tf); }
[data-theme="bauhaus"] .kind-line .game-card .game-icon { width: 60px; height: 60px; color: var(--tf); }
[data-theme="bauhaus"] .kind-line .game-card .game-icon svg { width: 60px; height: 60px; stroke-width: 2.2; }
/* The text block hangs from the bottom and the status line sits in the padding under it,
   so the title stands at the same height on every tile of a row, status or no status. */
[data-theme="bauhaus"] .game-meta { width: 100%; margin-top: auto; }
[data-theme="bauhaus"] .game-meta h3 { font-size: 1.75rem; font-weight: 700; line-height: 1; letter-spacing: -.035em; }
[data-theme="bauhaus"] .game-meta p { margin-top: 8px; color: inherit; font-size: .9rem; line-height: 1.35; }
[data-theme="bauhaus"] .game-status { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; padding-top: 7px; border-top: 2px solid currentColor; color: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
/* art panels: the art sits straight on the tile colour, no box */
[data-theme="bauhaus"] .kind-art .game-card { align-items: stretch; justify-content: flex-start; padding: 0 0 52px; gap: 12px; min-height: 236px; }
[data-theme="bauhaus"] .kind-art .game-card .game-status { left: 16px; right: 16px; bottom: 18px; }
[data-theme="bauhaus"] .kind-art .game-card .game-icon { width: auto; height: 132px; aspect-ratio: auto; background: transparent; --art-scale: .84; }
[data-theme="bauhaus"] .kind-art .game-card .game-meta { padding: 0 16px; }
[data-theme="bauhaus"] .home-footer { justify-content: flex-start; margin-top: 16px; }

/* ---------- documentation reader ----------
   The reader's side columns stand outside the veiled column, where the backdrop runs at
   full strength; each navigation stands on a panel of the page colour, as the footer
   does, so the forms pass behind it, not through its text. Wide screens only: on a narrow one the sidebar is already a drawer. */
@media (min-width: 901px) {
  [data-theme="bauhaus"] :is(.docs-side, .docs-toc) {
    padding: 12px 8px 14px 12px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
  }
}

/* ---------- footer ---------- */
[data-theme="bauhaus"] .site-footer { background: color-mix(in srgb, var(--bg) 90%, transparent); border-top: 3px solid var(--ink); color: var(--ink); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="bauhaus"] .footer-brand { font-size: 1.45rem; letter-spacing: -.025em; text-transform: lowercase; }
[data-theme="bauhaus"] .footer-links a:hover { background: var(--yellow); text-decoration: none; }

/* ---------- game pieces ---------- */
[data-theme="bauhaus"] .g2048-board { --gap: 3px; }
[data-theme="bauhaus"] .keypad button { border: 2.5px solid var(--ink); background: var(--cream); font-weight: 500; }
[data-theme="bauhaus"] .keypad button:hover:not(:disabled) { background: var(--yellow); }
[data-theme="bauhaus"] .keypad button.accent { background: var(--red); border-color: var(--ink); color: #fff; }

@media (max-width: 900px) {
  [data-theme="bauhaus"] .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  [data-theme="bauhaus"] .hero-meta .meta-note { display: none; }
  [data-theme="bauhaus"] .game-card { min-height: 180px; padding: 16px; }
  [data-theme="bauhaus"] .game-card .game-icon, [data-theme="bauhaus"] .game-icon svg { width: 56px; height: 56px; }
  [data-theme="bauhaus"] .game-meta h3 { font-size: 1.4rem; }
  [data-theme="bauhaus"] .game-meta p { display: none; }
}

/* ---------- hover: everything clickable has to visibly react ---------- */
[data-theme="bauhaus"] .segmented button:hover:not([aria-pressed="true"]) { background: var(--yellow); color: var(--ink); }
/* a pressed tool is already yellow, so a hovered one gets an ink frame instead */
[data-theme="bauhaus"] .tool:hover:not(:disabled) { background: transparent; box-shadow: inset 0 0 0 2.5px var(--ink); }

/* leaderboard: ink bars between the rows, the own row yellow */
[data-theme="bauhaus"] .lb-list { border-top: 2.5px solid var(--ink); }
[data-theme="bauhaus"] :is(.lb-row, .lb-gap) { border-bottom: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .lb-rank { font-family: var(--font); font-weight: 600; color: var(--ink); }
[data-theme="bauhaus"] .lb-title { text-transform: lowercase; font-weight: 700; }
[data-theme="bauhaus"] .lb-row.you { background: var(--yellow); box-shadow: none; }
[data-theme="bauhaus"] .lb-foot { color: var(--ink); }

/* ---------- tabs, chips, progress, notice, table, loading (README §3) ----------
   Ink bars and the three primaries: a chosen tab stands on an ink bar, a pressed chip is
   yellow, the progress bar is red on cream, a notice carries a red bar on its left. */
[data-theme="bauhaus"] .tabs { border-bottom: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .tabs button { text-transform: lowercase; font-weight: 600; font-size: 1rem; color: var(--ink); border-bottom-width: 5px; margin-bottom: -2.5px; }
[data-theme="bauhaus"] .tabs button:hover:not([aria-selected="true"]) { background: var(--yellow); border-bottom-color: transparent; }
[data-theme="bauhaus"] .tabs button[aria-selected="true"] { border-bottom-color: var(--ink); }
[data-theme="bauhaus"] .chips .chip { border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); text-transform: lowercase; font-weight: 600; }
[data-theme="bauhaus"] .chips .chip:hover:not([aria-pressed="true"]) { background: var(--yellow); border-color: var(--ink); }
[data-theme="bauhaus"] .chips .chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
[data-theme="bauhaus"] .progress { height: 14px; background: var(--cream); box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .progress > i { background: var(--red); box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .notice { border: 2.5px solid var(--ink); border-left-width: 10px; border-left-color: var(--red); background: var(--cream); }
[data-theme="bauhaus"] .notice .ico { color: var(--ink); }
[data-theme="bauhaus"] .notice-warn { border-left-color: var(--red); } [data-theme="bauhaus"] .notice-ok { border-left-color: var(--blue); }
[data-theme="bauhaus"] .data-table th { color: var(--ink); border-bottom: 2.5px solid var(--ink); letter-spacing: .12em; }
[data-theme="bauhaus"] .data-table td, [data-theme="bauhaus"] .kv-list > * { border-bottom: 1px solid var(--ink); }
[data-theme="bauhaus"] .empty-list { border: 2.5px solid var(--ink); background: var(--cream); }
[data-theme="bauhaus"] .spinner { border-radius: 0; border-color: var(--ink); border-top-color: var(--red); }
[data-theme="bauhaus"] .stepper .icon-btn { border: 2.5px solid var(--ink); }
[data-theme="bauhaus"] [data-tip]::after { text-transform: lowercase; }
[data-theme="bauhaus"] .prose kbd { border: 2px solid var(--ink); }

/* ---------- game screen pieces (README §3): answer tiles, the bottom tool bar, the board's
   frame and status, tags, checklist, stat states, setup rows, the celebration ----------
   Ink bars and the primaries: yellow under the pointer, the chosen tile inked, right and
   wrong filled, and the confetti cut into the three forms. */
[data-theme="bauhaus"] .choice-tile { border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 600; }
[data-theme="bauhaus"] .choice-tile small { color: var(--ink); }
[data-theme="bauhaus"] .choice-tile:hover:not(:disabled, [aria-pressed="true"], .ok, .no, .reveal) { border-color: var(--ink); background: var(--yellow); box-shadow: none; }
[data-theme="bauhaus"] .choice-tile[aria-pressed="true"]:not(.ok, .no, .reveal) { border-color: var(--ink); background: var(--ink); color: var(--cream); box-shadow: none; }
[data-theme="bauhaus"] .choice-tile[aria-pressed="true"]:not(.ok, .no, .reveal) small { color: inherit; }
[data-theme="bauhaus"] .choice-tile:is(.ok, .no) { border-color: var(--ink); }
[data-theme="bauhaus"] .choice-tile.reveal { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--success); }
[data-theme="bauhaus"] .toolbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 3px solid var(--ink); }
[data-theme="bauhaus"] .board-frame { box-shadow: 0 0 0 3px var(--ink); }
[data-theme="bauhaus"] .tags .tag { border: 2px solid var(--ink); background: var(--cream); color: var(--ink); }
[data-theme="bauhaus"] .stat[aria-current="true"] { border-color: var(--ink); background: var(--yellow); box-shadow: none; }
[data-theme="bauhaus"] .stat.won { border-color: var(--success); box-shadow: inset 0 0 0 2px var(--success); }
[data-theme="bauhaus"] .setup-row + .setup-row { border-top: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .checklist li { border-bottom-color: var(--ink); }
[data-theme="bauhaus"] .checklist li::before { box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .checklist li.done::before { box-shadow: inset 0 0 0 2.5px var(--ink); }
[data-theme="bauhaus"] .celebration i:nth-child(3n) { width: 11px; height: 11px; border-radius: 50%; }
[data-theme="bauhaus"] .celebration i:nth-child(3n+1) { width: 12px; height: 11px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-theme="bauhaus"] .segmented.wrap button { min-height: var(--ctl-h); }

/* a sentence answer keeps its own case: the lowercase is for words, not sentences */
:root[data-theme="bauhaus"] .choice-tile.text { font-family: var(--font); font-size: 1rem; font-weight: 500; font-stretch: 100%; text-transform: none; letter-spacing: normal; text-shadow: none; }

/* ---------- device list, feed, composer, drop target, code frame (README §3) ----------
   Blocks with an ink edge: the other side's in cream, this side's in red; no corners. */
[data-theme="bauhaus"] .feed-bubble { border: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .feed-item.mine .feed-bubble { border-color: var(--ink); }
[data-theme="bauhaus"] .feed-media { border-radius: 0; }
[data-theme="bauhaus"] .feed-day { color: var(--ink); text-transform: lowercase; font-weight: 700; }
[data-theme="bauhaus"] .feed-day::before, [data-theme="bauhaus"] .feed-day::after { border-top: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .device-row:hover { border-color: var(--ink); }
[data-theme="bauhaus"] .device-row[aria-current="true"] { border: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .device-icon, [data-theme="bauhaus"] .feed-file-icon { border-radius: 0; }
[data-theme="bauhaus"] .device-count { border-radius: 50%; }
[data-theme="bauhaus"] .code-frame { border: 2.5px solid var(--ink); }
[data-theme="bauhaus"] .drop-veil { border: 4px dashed var(--ink); color: var(--ink); }
