/* Bridge help window (bridge-help.js); the frame comes from .lobby-sheet in lobby-menu.css. */
html:root[data-design] #bridge-help-dialog {width:min(460px,calc(100vw - 24px))}
html:root[data-design] .bridge-help-picture {padding:12px 12px 8px;border:1px solid var(--cc-cell-line);border-radius:var(--design-radius);background:var(--cc-bg)}
html:root[data-design] .bridge-help-picture svg {display:block;width:100%;max-height:min(42dvh,260px)}
html:root[data-design] .bridge-help-count {display:block;margin-top:6px;text-align:center;font-size:.85rem;font-weight:700;color:var(--cc-muted)}
html:root[data-design] .bridge-help-count.is-used {color:var(--cc-accent)}
html:root[data-design] .bridge-help-caption {margin:0;min-height:2.8em;font-size:.95rem;line-height:1.4;font-weight:700;text-align:center;word-break:keep-all}
html:root[data-design] .bridge-help-rules {margin:0;padding-left:1.1em;display:grid;gap:4px;font-size:.82rem;line-height:1.45;color:var(--cc-muted);word-break:keep-all}
.bh-cell {fill:var(--cc-cell);stroke:var(--cc-cell-line);stroke-width:1}
.bh-line {fill:none;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.bh-blocked {fill:#d0566a33;stroke:#d0566a;stroke-width:2.5}
.bh-x {stroke:#fff;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 2px #7d1023) drop-shadow(0 0 1px #7d1023)}
.bh-letter {font:800 14px/1 system-ui,sans-serif;text-anchor:middle;dominant-baseline:central}
.bh-marker.is-done {stroke:#fff;stroke-width:2.5}
.bh-bridge.is-new {animation:bh-drop .5s cubic-bezier(.3,1.4,.5,1) both}
@keyframes bh-drop {from {transform:translateY(-46px);opacity:0}}
/* Bridge help stays opposite the counter in the puzzle board header. */
#quiz .quiz-bridge-help {pointer-events:auto;display:grid;place-items:center;width:32px;height:32px;min-height:0;min-width:0;padding:0;border-radius:50%;font-weight:800;font-size:1rem;line-height:1;position:absolute;z-index:5;top:8px;right:8px}
#quiz .quiz-bridge-help[hidden] {display:none}
#quiz .quiz-bridge-help::after {content:'';position:absolute;inset:-6px}
#quiz .quiz-bridge-help.is-first {animation:bh-ring 1.6s ease-out infinite}
@keyframes bh-ring {from {box-shadow:0 0 0 0 color-mix(in srgb,var(--cc-accent) 70%,transparent)} to {box-shadow:0 0 0 12px transparent}}
@media(max-height:620px) {html:root[data-design] .bridge-help-picture svg {max-height:34dvh}html:root[data-design] .bridge-help-rules {font-size:.76rem}}
@media(prefers-reduced-motion:reduce) {.bh-bridge.is-new,#quiz .quiz-bridge-help.is-first {animation:none}}
