/* Make Boards (boards.js, docs/COMPADRES.md "Make Boards"). Amigos Work only: --w- tokens, light by default, the
   five chart colours for the five things a wire carries (never pink), and pink only for the one hot button. */
.bd-page .mono, .bd-card .mono, .bd-new-form .mono { font-family: var(--w-font-mono); font-size: 12px; }
.k-words { --k: var(--w-c1); } .k-product { --k: var(--w-c2); } .k-pictures { --k: var(--w-c3); } .k-sound { --k: var(--w-c4); } .k-game { --k: var(--w-c5); }
.bd-inline { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; min-width: 0; }
.bd-between { justify-content: space-between; }
.bd-grow { flex: 1; }
.bd-tabs .btn { text-decoration: none; }
.bd-tabs .btn.on, .bd-node .btn.on { background: var(--w-ink); border-color: var(--w-ink); color: var(--w-paper); }

/* ---- The list of boards. */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--w-s4); }
.bd-card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; gap: 0; text-decoration: none; color: var(--w-ink); transition: border-color var(--w-d) var(--w-e); }
a.bd-card:hover { border-color: var(--w-ink-3); }
.bd-sketch { height: 140px; border-bottom: 1px solid var(--w-line); background-color: var(--w-paper); background-image: radial-gradient(var(--w-line-strong) 1px, transparent 1.1px); background-size: 12px 12px; }
.bd-sketch svg { width: 100%; height: 100%; display: block; }
.bd-sk-node { fill: var(--w-surface); stroke: var(--w-line-strong); }
.bd-sk-game { fill: color-mix(in srgb, var(--w-c5) 16%, var(--w-surface)); stroke: var(--w-c5); }
.bd-sk-empty { fill: var(--w-ink-3); font: 600 12px var(--w-font-ui); }
.bd-card-words { padding: var(--w-s3) var(--w-s4) var(--w-s4); display: grid; gap: var(--w-s2); align-content: start; }
.bd-card-words strong { font: 600 var(--w-fs-h3)/1.3 var(--w-font-display); overflow-wrap: anywhere; }
.bd-facts { display: flex; gap: var(--w-s4); flex-wrap: wrap; font-size: var(--w-fs-small); color: var(--w-ink-3); font-variant-numeric: tabular-nums; }
.bd-facts b { color: var(--w-ink); font-weight: 600; }
.bd-new { border-style: dashed; background: none; padding: var(--w-s4); grid-template-rows: none; overflow: visible; }
/* The open form takes the whole row (up to 640 wide) and is never clipped: a card that hides its overflow can be
   scrolled sideways by the browser when a long name is typed, which cut the labels' first letters in Safari. */
.bd-new.open { grid-column: 1 / -1; max-width: 640px; width: 100%; }
.bd-new-form, .bd-new-form > *, .bd-two > * { min-width: 0; }
.bd-new-start { display: grid; gap: var(--w-s3); place-content: center; justify-items: center; text-align: center; min-height: 220px; }
.bd-new-form { display: grid; gap: var(--w-s3); }
.bd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s2); }
.bd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--w-s2); }
.bd-pick-one { font: inherit; display: grid; gap: 4px; padding: 4px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface); color: var(--w-ink-2); font-size: 11px; font-weight: 600; text-align: center; cursor: pointer; min-height: 44px; }
.bd-pick-one img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--w-surface-2); border-radius: var(--w-r1); }
.bd-pick-one span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-pick-one[aria-pressed="true"] { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); color: var(--w-ink); }

/* ---- Made. */
.bd-made { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--w-s4); }
.bd-made-one { display: grid; gap: var(--w-s3); align-content: start; }
.bd-made-one .ga { max-width: 180px; }
.bd-made-words { display: grid; gap: var(--w-s1); }
.bd-made-words strong { font-weight: 600; overflow-wrap: anywhere; }

/* ---- Made: one launch plan for each board. Ads are coloured by how they run with the chart colours; pink stays a signal. */
.bd-plan { display: grid; gap: var(--w-s4); margin-bottom: var(--w-s4); }
.bd-plan-head { display: flex; justify-content: space-between; gap: var(--w-s4); flex-wrap: wrap; align-items: flex-start; }
.bd-plan-name { font: 600 var(--w-fs-h2)/1.25 var(--w-font-display); color: var(--w-ink); text-decoration: none; overflow-wrap: anywhere; }
.bd-plan-name:hover { text-decoration: underline; }
.bd-plan-money { display: grid; gap: 4px; min-width: 220px; max-width: 320px; flex: 1 1 220px; font-variant-numeric: tabular-nums; }
.bd-plan-money b { font: 600 var(--w-fs-h3) var(--w-font-display); }
.bd-plan-money .ad-meter { flex: none; height: 8px; }
.ad-meter.over span { background: var(--w-bad); }
.bd-plan-games { gap: 0; }
.bd-plan-game { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, auto); gap: var(--w-s3); align-items: center; }
.bd-plan-game .ga { width: 56px; }
.bd-plan-next { display: flex; align-items: center; justify-content: flex-end; gap: var(--w-s2); flex-wrap: wrap; text-align: right; max-width: 420px; }
.bd-ad-link { display: inline-flex; align-items: center; gap: 6px; color: var(--w-ink-2); text-decoration: none; }
.bd-ad-link:hover small { text-decoration: underline; }
.bd-tl { --label: 150px; position: relative; display: grid; gap: 6px; padding: var(--w-s3); border: 1px solid var(--w-line); border-radius: var(--w-r3); background: var(--w-paper); }
.bd-tl-row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 12px; align-items: center; min-height: 28px; }
.bd-tl-head { min-height: 18px; }
.bd-tl-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--w-ink-2); font-weight: 600; text-decoration: none; }
a.bd-tl-label:hover { color: var(--w-ink); text-decoration: underline; }
.bd-tl-lane { position: relative; height: 24px; display: flex; justify-content: space-between; align-items: center; }
.bd-tl-head .bd-tl-lane { height: 18px; }
.bd-tl-board, .bd-tl-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; }
.bd-tl-board { background: color-mix(in srgb, var(--w-ink) 8%, transparent); border: 1px dashed var(--w-line-strong); }
.bd-tl-bar { --k: var(--w-c5); background: color-mix(in srgb, var(--k) 22%, var(--w-surface)); border: 1px solid var(--k); display: flex; align-items: center; padding: 0 8px; overflow: hidden; color: var(--w-ink); text-decoration: none; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.bd-tl-bar.out { border-style: dashed; }
.bd-tl-bar:hover { background: color-mix(in srgb, var(--k) 34%, var(--w-surface)); }
.bd-tl-bar.p-boost { --k: var(--w-c5); } .bd-tl-bar.p-auction { --k: var(--w-c3); } .bd-tl-bar.p-package { --k: var(--w-c2); } .bd-tl-bar.p-takeover { --k: var(--w-c1); }
.bd-tl-today { position: absolute; top: var(--w-s3); bottom: var(--w-s3); width: 0; border-left: 2px solid var(--w-ink); left: calc(var(--w-s3) + var(--label) + 12px + (100% - 2 * var(--w-s3) - var(--label) - 12px) * var(--at, 0)); pointer-events: none; }
.bd-tl > p { margin: 0; }

/* ---- Ask the board, Recipes and the budget on the canvas. */
.bd-money { display: inline-flex; align-items: center; gap: 2px; }
.bd-budget { width: 7.5em; font-variant-numeric: tabular-nums; }
.bd-ask { position: absolute; left: 50%; top: var(--w-s3); transform: translateX(-50%); z-index: 6; width: min(560px, calc(100% - 520px)); min-width: 320px; display: grid; gap: var(--w-s2); }
.bd-ask-row { display: flex; align-items: center; gap: var(--w-s2); padding: 6px 6px 6px 12px; background: var(--w-surface); border: 1px solid var(--w-line-strong); border-radius: var(--w-pill); box-shadow: var(--w-shadow-pop); }
.bd-ask-row:focus-within { border-color: var(--w-ai); }
.bd-ask-row .ic { width: 18px; height: 18px; color: var(--w-ai); flex: none; }
.bd-ask-row input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--w-ink); height: 32px; outline: none; }
.bd-ask-note { order: 2; display: flex; align-items: flex-start; gap: var(--w-s2); padding: var(--w-s2) var(--w-s3); background: var(--w-ai-bg); color: var(--w-ink); border-radius: var(--w-r3); font-size: var(--w-fs-small); box-shadow: var(--w-shadow-pop); }
.bd-ask-note span { flex: 1; }
.bd-shelf { width: 220px; }
.bd-shelf-tabs { display: flex; gap: 4px; }
.bd-shelf-tabs .btn.on { background: var(--w-ink); border-color: var(--w-ink); color: var(--w-paper); }
.bd-recipes { display: grid; gap: var(--w-s2); padding-top: var(--w-s2); }
.bd-recipe { display: grid; gap: 4px; padding: var(--w-s2); border: 1px solid var(--w-line); border-radius: var(--w-r2); }
.bd-recipe strong { font-size: 13px; overflow-wrap: anywhere; }
.bd-recipe .bd-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bd-recipe-save { display: grid; gap: var(--w-s2); padding-top: var(--w-s2); }
.bd-recipe-save input { height: var(--w-control-sm); border: 1px solid var(--w-control-line); border-radius: var(--w-r2); padding: 0 var(--w-s2); font: inherit; }
.bd-recipe-list { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-recipe-list .chip { display: inline-flex; align-items: center; gap: 4px; }
.bd-recipe-list .ic { width: 12px; height: 12px; }
.bd-tag-btn { font: inherit; font-size: 12px; font-weight: 600; height: 24px; padding: 0 10px; margin-left: 4px; border: 1px solid var(--w-line-strong); border-radius: var(--w-pill); background: var(--w-surface-2); color: var(--w-ink-2); cursor: pointer; }
.bd-tag-btn:hover { color: var(--w-ink); border-color: var(--w-ink-3); }

/* ---- One board: the bar, then the canvas filling the rest of the window. */
.main.bd-full { padding: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.bd-page { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.bd-bar { display: flex; align-items: center; gap: var(--w-s2); flex-wrap: wrap; padding: var(--w-s2) var(--w-s4); min-height: 56px; background: var(--w-surface); border-bottom: 1px solid var(--w-line); }
.bd-bar input { height: var(--w-control-sm); border: 1px solid transparent; border-radius: var(--w-r2); background: none; padding: 0 var(--w-s2); color: var(--w-ink); min-width: 0; }
.bd-bar input:hover:not(:disabled), .bd-bar input:focus { border-color: var(--w-control-line); background: var(--w-surface); }
.bd-name { font: 600 var(--w-fs-h3) var(--w-font-display); width: 12em; }
.bd-campaign { width: 19ch; background: var(--w-surface-2) !important; }
.bd-dates { display: inline-flex; align-items: center; gap: 4px; }
.bd-dates input { width: 9.5em; font-size: var(--w-fs-small); }
.bd-saved { min-width: 5em; text-align: right; }

.bd-canvas { position: relative; overflow: hidden; background-color: var(--w-paper); background-image: radial-gradient(var(--w-line-strong) 1.2px, transparent 1.3px); cursor: grab; touch-action: none; user-select: none; }
.bd-canvas.panning { cursor: grabbing; }
.bd-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.bd-world.glide { transition: transform 420ms var(--w-e); }
.bd-wires { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.bd-w { fill: none; stroke: var(--k); stroke-width: 2.25; }
.bd-w.temp { stroke-dasharray: 5 5; }
.bd-w.sel { stroke-width: 4.5; }
.bd-w.run { stroke-dasharray: 6 6; animation: bd-flow .6s linear infinite; }
@keyframes bd-flow { to { stroke-dashoffset: -12; } }
.bd-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.bd-sketch .bd-w { stroke-width: 1.5; }

.bd-cluster { pointer-events: none; position: absolute; border: 1.5px dashed var(--w-line-strong); border-radius: 18px; background: color-mix(in srgb, var(--w-c1) 4%, transparent); }
.bd-cluster-tag { pointer-events: auto; position: absolute; left: 14px; bottom: calc(100% - 16px); transform: scale(var(--inv, 1)); transform-origin: left bottom; display: flex; align-items: center; gap: var(--w-s2); height: 32px; padding: 0 12px 0 4px; background: var(--w-surface); border: 1px solid var(--w-line-strong); border-radius: var(--w-pill); font-weight: 600; font-size: 13px; white-space: nowrap; cursor: move; }
.bd-cluster-pic { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--w-surface-2); }

/* ---- A widget. */
.bd-node { position: absolute; width: 280px; background: var(--w-surface); border: 1px solid var(--w-line-strong); border-radius: var(--w-r4); box-shadow: 0 1px 2px color-mix(in srgb, var(--w-ink) 6%, transparent); user-select: text; cursor: default; }
.bd-node.wide { width: 380px; }
.bd-node.sel { border-color: var(--w-ink); box-shadow: 0 0 0 1px var(--w-ink), var(--w-shadow-pop); }
.bd-nh { display: flex; align-items: center; gap: var(--w-s2); height: 42px; padding: 0 var(--w-s2) 0 var(--w-s3); border-bottom: 1px solid var(--w-line); cursor: move; user-select: none; }
.bd-nh .ic { width: 16px; height: 16px; flex: none; color: var(--w-ink-2); }
.bd-nh strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.bd-nh small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-x { color: var(--w-ink-3); }
.bd-nb { padding: var(--w-s2) var(--w-s3) var(--w-s3); display: grid; gap: var(--w-s2); }
.bd-ins { display: grid; gap: 2px; padding-top: var(--w-s2); }
.bd-port { position: relative; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--w-s3); font-size: 11.5px; font-weight: 600; color: var(--w-ink-2); }
.bd-port i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--w-surface); border: 2.5px solid var(--k); }
.bd-port.in i { left: -8px; }
.bd-port.in.full i { background: var(--k); }
.bd-port.in.hit i { box-shadow: 0 0 0 5px color-mix(in srgb, var(--k) 30%, transparent); }
.bd-port small { font-weight: 500; }
.bd-port.out { position: absolute; right: 0; top: 50px; padding-right: var(--w-s3); color: var(--w-ink-3); }
.bd-port.out i { right: -8px; background: var(--k); cursor: crosshair; }
.bd-port.out i::after { content: ""; position: absolute; inset: -12px; }
.bd-node:has(.bd-ins) .bd-port.out { top: 50px; }
.bd-node:not(:has(.bd-ins)) .bd-nb { padding-top: 34px; }
.bd-node .bd-ins + .bd-nb { padding-top: var(--w-s2); }
.bd-field { display: grid; gap: 4px; }
.bd-prompt { width: 100%; resize: vertical; min-height: 54px; border: 1px solid var(--w-line); background: var(--w-surface-2); border-radius: var(--w-r2); padding: var(--w-s2); font: 12.5px/1.45 var(--w-font-ui); color: var(--w-ink); }
.bd-prompt:focus { border-color: var(--w-focus); background: var(--w-surface); outline: none; }
.bd-node input[type="text"] { width: 100%; height: 30px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface); padding: 0 var(--w-s2); font-size: 12.5px; color: var(--w-ink); min-width: 0; }
.bd-select { width: 100%; height: 30px; border: 1px solid var(--w-line); border-radius: var(--w-r2); background: var(--w-surface); font-size: 12.5px; color: var(--w-ink); padding: 0 var(--w-s2); }
.bd-prod, .bd-ref { width: 100%; height: 124px; object-fit: contain; background: var(--w-surface-2); border-radius: var(--w-r3); display: block; }
.bd-ref { object-fit: cover; }
.bd-none { display: grid; place-items: center; color: var(--w-ink-3); font-size: 12px; text-align: center; padding: var(--w-s3); }
.bd-thumb { width: 44px; height: 44px; object-fit: contain; background: var(--w-surface-2); border-radius: var(--w-r2); flex: none; }
.bd-row { display: flex; align-items: center; gap: var(--w-s2); }
.bd-row-words { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bd-row-words small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 12px; }
.bd-lvl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--w-s2); align-items: start; }
.bd-lvl b { width: 22px; height: 22px; border-radius: 6px; background: var(--w-surface-2); display: grid; place-items: center; font-size: 11px; margin-top: 4px; }
.bd-lvl > div { display: grid; gap: 4px; }
.bd-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--w-s2); flex-wrap: wrap; padding-top: 2px; }
.bd-foot small { flex: 1 1 140px; }
.bd-made-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--w-s2); }
.bd-made-pic { display: grid; gap: 4px; padding: 4px; border: 1px solid var(--w-line); border-radius: var(--w-r2); }
.bd-made-pic.kept { border-color: var(--w-ok); }
.bd-made-pic .bd-thumb { width: 100%; height: 84px; }
.bd-scene { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--w-r1); }
.bd-progress { display: grid; gap: 4px; }
.bd-track { height: 6px; border-radius: 3px; background: var(--w-surface-3); overflow: hidden; }
.bd-track i { display: block; height: 100%; background: var(--w-c3); transition: width 300ms linear; }

/* The Game widget. */
.bd-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bd-kinds button { font: inherit; text-align: left; border: 1px solid var(--w-line); background: var(--w-surface); border-radius: var(--w-r3); padding: var(--w-s2); display: grid; gap: 2px; cursor: pointer; color: var(--w-ink); min-height: 44px; }
.bd-kinds button:hover:not(:disabled) { background: var(--w-surface-2); }
.bd-kinds button[aria-pressed="true"] { border-color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-ink); }
.bd-kinds button strong { font-size: 12.5px; }
.bd-kinds button small { color: var(--w-ink-3); font-size: 11px; line-height: 1.35; }
.bd-kinds.compact { grid-template-columns: repeat(3, 1fr); }
.bd-kinds.compact button { padding: 6px var(--w-s2); }
.bd-kinds.compact small { display: none; }
.bd-cats { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bd-cat { font: inherit; height: 30px; padding: 0 10px 0 3px; border: 1px solid var(--w-line); border-radius: var(--w-pill); background: var(--w-surface); cursor: pointer; }
.bd-cat .cat-pic { width: 24px; height: 24px; }
.bd-cat-add { width: auto; border-style: dashed; border-radius: var(--w-pill); color: var(--w-ink-3); }
.bd-knobs { display: flex; gap: var(--w-s2); flex-wrap: wrap; }
.bd-knobs .pv-tabs { display: inline-flex; gap: 4px; }
.bd-plan { display: grid; gap: 4px; padding: var(--w-s2) var(--w-s3); border-radius: var(--w-r3); background: var(--w-surface-2); }
.bd-plan p { margin: 0; }
.bd-checks { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 4px; }
/* The setup widgets (Game type, Look, World, Challenge) and the plan's setup as chips. */
.bd-about { min-height: 0; line-height: 1.35; }
.bd-about:empty { display: none; }
.bd-setup-sum { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.bd-setup-sum small { flex-basis: 100%; }
.bd-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--w-s2); }
.bd-ver { display: grid; gap: 4px; align-content: start; justify-items: start; }
.bd-ver > small { font-size: 11.5px; font-weight: 600; }
.bd-ver .ga { width: 100%; }
.bd-making { background: var(--w-surface-2); }
.bd-making::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--w-c5) 22%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: bd-shine 1.4s linear infinite; }
@keyframes bd-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---- Furniture floating over the canvas. */
.bd-shelf-wrap { position: absolute; left: var(--w-s3); top: var(--w-s3); z-index: 5; }
.bd-shelf-open { box-shadow: var(--w-shadow-pop); }
.bd-shelf { width: 188px; background: var(--w-surface); border: 1px solid var(--w-line-strong); border-radius: var(--w-r4); box-shadow: var(--w-shadow-pop); padding: var(--w-s2); display: grid; gap: 2px; max-height: calc(100vh - 220px); overflow-y: auto; }
.bd-shelf .label { padding: 6px 6px 2px; }
.bd-shelf-one { font: inherit; display: flex; align-items: center; gap: var(--w-s2); min-height: 32px; padding: 0 6px; border: 0; background: none; border-radius: var(--w-r2); font-size: 12.5px; font-weight: 500; text-align: left; color: var(--w-ink); cursor: pointer; }
.bd-shelf-one:hover { background: var(--w-surface-2); }
.bd-shelf-one .ic { width: 16px; height: 16px; color: var(--w-ink-2); }
.bd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); margin-left: auto; }
.bd-legend { position: absolute; left: var(--w-s3); bottom: var(--w-s3); z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; background: var(--w-surface); border: 1px solid var(--w-line); border-radius: var(--w-pill); padding: 5px 12px; font-size: 11.5px; font-weight: 600; color: var(--w-ink-2); }
.bd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bd-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--k); }
.bd-zoom { position: absolute; right: var(--w-s3); bottom: var(--w-s3); z-index: 5; display: flex; background: var(--w-surface); border: 1px solid var(--w-line-strong); border-radius: var(--w-r2); overflow: hidden; }
.bd-zoom button { font: inherit; min-width: 34px; height: 32px; border: 0; background: none; font-weight: 600; color: var(--w-ink); cursor: pointer; padding: 0 10px; }
.bd-zoom button:hover { background: var(--w-surface-2); }
.bd-zoom span { min-width: 52px; display: grid; place-items: center; font-size: 12px; color: var(--w-ink-2); border-inline: 1px solid var(--w-line); }
.bd-empty { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: var(--w-s1); max-width: 340px; z-index: 4; }

@media (max-width: 820px) {
  .bd-ask { width: calc(100% - 2 * var(--w-s3)); min-width: 0; top: 64px; }
  .bd-plan-game { grid-template-columns: 48px minmax(0, 1fr); }
  .bd-plan-next { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  .bd-tl { --label: 90px; }
  .main.bd-full { height: auto; overflow: visible; padding-bottom: calc(var(--w-row) + var(--w-s12) + env(safe-area-inset-bottom)); }
  .bd-page { height: 72vh; min-height: 480px; }
  .bd-name { width: 100%; }
  .bd-dates, .bd-legend { display: none; }
  .bd-node .bd-select, .bd-node input[type="text"] { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .bd-world.glide { transition: none; } .bd-w.run, .bd-making::after { animation: none; } }
