/* Logic puzzles: shared bar, board and message (same in each logic game's style.css). */
.lp-card { padding: 1rem 1rem .9rem; }
.lp-bar { display: flex; align-items: center; gap: .8rem; margin: 0 0 .7rem; }
.lp-clock { font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 1.15rem; }
.lp-count { color: var(--muted); font-size: .9rem; flex: 1; font-variant-numeric: lining-nums tabular-nums; }
.lp-small { padding: .35rem .7rem; font-size: .88rem; }
.lp-board { display: grid; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.lp-msg { text-align: center; min-height: 1.4em; }
@keyframes lp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* Ramble */
.rb-board { position: relative; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; touch-action: none; background: var(--bg); cursor: pointer; }
.rb-board:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rb-cell { position: relative; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 .5px var(--rule); font-variant-numeric: lining-nums tabular-nums; }
.rb-cell span { position: relative; z-index: 2; font-size: clamp(.8rem, 3.2vw, 1rem); color: var(--muted); }
.rb-cell.on { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.rb-clue span { font-size: clamp(1.05rem, 4.6vw, 1.4rem); font-weight: 700; color: var(--ink); width: 64%; height: 64%; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink); }
.rb-clue.on span { border-color: var(--accent); color: var(--accent); }
.rb-cell.end::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 3px solid var(--accent); z-index: 1; }
.rb-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.rb-line polyline { fill: none; stroke: var(--accent); stroke-width: .3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.rb-nope { animation: lp-shake .3s; background: #f7e7e7; }
.rb-board.solved .rb-line polyline { stroke: var(--accent-2, #2d7a3e); opacity: .7; }
