.collection-actions { margin: -.5rem 0 1.1rem; }
.collection-actions a { color: var(--green); font-weight: 700; }
.cover.garden-cover { background: radial-gradient(circle at 69% 60%, #e1ad6a 0 7%, transparent 7.5%), repeating-linear-gradient(135deg,#285c52 0 17px,#437465 17px 34px); }
.cover.jigsaw-cover { background-image: url("scenes/elsecar.svg"); background-position: center 59%; }
.cover.word-cover { background: repeating-linear-gradient(90deg,transparent 0 34px,#fff4d51f 35px 36px), repeating-linear-gradient(#635274 0 34px,#8c7296 35px 36px); }
.cover.pixel-cover { background: repeating-conic-gradient(#e7b56e 0 25%,#456963 0 50%) 50% / 42px 42px; }
.cover.sort-cover { background: linear-gradient(115deg,#523e62,#815878 40%,#d49876 41% 59%,#608b88 60%); }
.cover.lane-cover { background: repeating-linear-gradient(110deg,#354d59 0 34px,#c6a878 35px 38px,#4b6771 39px 75px); }
.cover.mahjong-cover { background: repeating-linear-gradient(65deg,#b77d5e 0 15px,#ead3a2 16px 54px,#d2b285 55px 58px); }
.cover.bridge-cover { background: radial-gradient(circle at 35% 71%,#d2ae76 0 10%,transparent 11%),radial-gradient(circle at 65% 53%,#d2ae76 0 12%,transparent 13%),repeating-linear-gradient(160deg,#406e78 0 15px,#5d8b8b 16px 18px); }
.cover.light-cover { background: radial-gradient(circle at 66% 57%,#ffe4a1 0 5%,#e7ae64 6%,transparent 27%),radial-gradient(circle at 33% 67%,#ffe4a1 0 4%,#e7ae64 5%,transparent 23%),#2c3d56; }
.cover.sudoku-cover { background: repeating-linear-gradient(90deg,transparent 0 42px,#fff5 42px 44px),repeating-linear-gradient(#7d9e87 0 42px,#c9d4ae 42px 44px); }
.cover.spot-cover { background-image: url("scenes/towpath.svg"); background-position: center 57%; }
.cover.rail-cover { background: repeating-linear-gradient(155deg,#3c534b 0 11px,#4b6c5d 12px 18px,#c6ad7a 19px 21px,#374c45 22px 40px); }

.expansion .toolbar { justify-content: flex-start; }
.expansion .toolbar .count { margin-left: auto; }
.expansion .toolbar select { min-width: 0; max-width: 100%; }
.expansion .game-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-block: .5rem; color: var(--muted); }
.expansion .game-tools:empty { display: none; }
.expansion button[aria-pressed="true"] { outline: 2px solid #216b62; outline-offset: -3px; }
.expansion [data-complete] button:disabled { opacity: 1; }
.square-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); width: min(100%, 34rem); margin-inline: auto; gap: 2px; }
.puzzle-cell { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-width: 0; min-height: 0; padding: 0; border-radius: .27rem; }
.puzzle-cell:focus-visible { z-index: 3; }
.pipe-grid { background: #a7b89b; border: 2px solid #a7b89b; border-radius: .6rem; overflow: hidden; }
.pipe-grid .pipe-cell { background: #e5e9d6; border: 0; border-radius: 0; }
.pipe-cell svg { width: 100%; height: 100%; pointer-events: none; }
.pipe-cell line { stroke: #526255; stroke-width: 15; }
.pipe-cell.wet line { stroke: #237b92; }
.pipe-cell.wet { background: #d7eddb; }
.pipe-cell .spring { fill: #407f9b; stroke: #fff4c4; stroke-width: 4; }
.pipe-cell .petal { fill: #a5a192; }
.pipe-cell.wet .petal { fill: #cb6d69; }
.pipe-cell .flower-centre { fill: #e4bb63; }

.pixel-layout { display: grid; grid-template-columns: minmax(2.4rem, 3.8rem) repeat(var(--cols),minmax(0,1fr)); grid-template-rows: auto; align-items: stretch; max-width: 35rem; margin: auto; }
.clue-corner { grid-row: 1; grid-column: 1; place-self: end center; color: var(--muted); }
.column-clue, .row-clue { display: flex; justify-content: flex-end; align-items: center; padding: .15rem .25rem; color: #303f38; font-size: clamp(.63rem, 2.7vw, .94rem); line-height: 1.15; }
.column-clue { grid-row: 1; flex-direction: column; background: #eee6d2; }
.row-clue { grid-column: 1; background: #eee6d2; text-align: right; }
.column-clue.met, .row-clue.met { background: #cedfc7; color: #284f38; }
.pixel-layout .pixel-grid { grid-column: 2 / -1; width: 100%; gap: 1px; background: #a2a696; }
.pixel-grid .puzzle-cell { border: 0; border-radius: 0; font-size: clamp(.8rem,4vw,1.3rem); }
.pixel-grid .pixel-ink, .pixel-grid .pixel-ink:hover { background: #286253; color: #fff; }

.island-board { position: relative; margin: auto; width: min(100%, 34rem); aspect-ratio: 1; background: repeating-linear-gradient(160deg,#d4e9e4 0 22px,#cbe3df 23px 25px); border: 1px solid #aac5bd; border-radius: .7rem; }
.island-board svg { width: 100%; height: 100%; position: absolute; pointer-events: none; }
.island-board line { stroke: #795a39; stroke-width: 1.45; }
.island { position: absolute; translate: -50% -50%; aspect-ratio: 1; min-height: 0; display: grid; place-items: center; padding: 0; border-radius: 50%; background: #f0d197; border-color: #88694c; }
.island.met { background: #bad7a9; border-color: #588350; }
.island.excess, .village-grid .village-path.excess { background: #f0b1a3; color: #622a24; }
.village-grid { padding: 2px; background: #4c5156; }
.village-wall { display: grid; place-items: center; min-width: 0; background: #303d50; color: #fff2d6; font-weight: 750; }
.village-wall.unmet { color: #ffce7a; }
.village-grid .village-path { background: #d0d9da; border: 0; }
.village-grid .village-path.lit { background: #fff0b4; color: #9a5709; }

.word-list { display: flex; list-style: none; flex-wrap: wrap; gap: .35rem .55rem; margin: 0; padding: 0; }
.word-list li { border: 1px solid var(--line); padding: .15rem .42rem; border-radius: .4rem; font-size: .82rem; font-weight: 650; }
.word-list .done { background: #d9e8d7; text-decoration: line-through; }
.word-grid { user-select: none; touch-action: none; }
.word-grid .puzzle-cell { font: 720 clamp(.65rem,3.5vw,1.2rem) system-ui,sans-serif; }
.word-grid .found-word { background: #d7e5ce; }
.word-grid .word-1 { background: #ecdfac; }
.word-grid .word-2 { background: #e0d5ea; }
.word-grid .word-3 { background: #cde3e3; }
.word-grid .swiping { background: #8fc5a9; }
.sudoku-grid { gap: 1px; background: #bbb8a9; border: 2px solid #4f5a51; }
.sudoku-grid .sudoku-cell { border: 0; border-radius: 0; color: #1c5f64; font-size: clamp(.9rem,3.8vw,1.45rem); }
.sudoku-grid .given { background: #ece8da; color: #25362f; font-weight: 750; }
.sudoku-grid .box-top { border-top: 2px solid #4f5a51; }
.sudoku-grid .box-left { border-left: 2px solid #4f5a51; }
.sudoku-grid .duplicate { background: #f3c3b5; color: #8f362b; }
.sudoku-cell .notes { font-size: .55em; line-height: 1.05; padding-inline: .12em; }
.number-pad { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: .5rem; }
.number-pad button { min-width: 2.5rem; }

.bottles { display: grid; grid-template-columns: repeat(auto-fit,minmax(3.45rem,1fr)); justify-items: center; gap: .7rem .5rem; max-width: 32rem; margin: auto; }
.bottle { width: 3.25rem; padding: .22rem; border: 0; background: transparent; }
.bottle .glass { display: flex; flex-direction: column-reverse; height: 8.2rem; padding: .13rem; border: 2px solid #527268; border-top: 0; border-radius: 0 0 .9rem .9rem; overflow: hidden; background: #f4f4e9; }
.liquid { flex: 1; display: grid; place-items: center; border-bottom: 1px solid #26373025; color: #27322b; font-size: .9rem; }
.liquid.empty { background: transparent; border: 0; }
.shade-0 { background: #e89680; }.shade-1 { background: #92cabc; }.shade-2 { background: #e9bd67; }.shade-3 { background: #c7a9d4; }
.shade-4 { background: #90b7dc; }.shade-5 { background: #a9ca82; }.shade-6 { background: #b898aa; }
.bottle.sorted .glass { border-color: #218158; box-shadow: 0 3px 0 #218158; }

.car-park { display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(6,1fr); gap: 3px; width: min(100%,34rem); aspect-ratio: 1; margin: auto; position: relative; background: #63746f; padding: .4rem; border-radius: .55rem; }
.tarmac { background: #dfe3d6; border-radius: .15rem; }
.tarmac.exit { display: grid; place-items: center; background: #b0d6a8; color: #295941; font-weight: 800; }
.vehicle { position: relative; border-radius: .5rem; margin: 2px; z-index: 1; min-width: 0; min-height: 0; padding: 0; border: 1px solid #535247; box-shadow: inset 0 0 0 4px #ffffff43; color: #253632; background: #dbb77a; font-size: clamp(.72rem,2.7vw,1.1rem); }
.vehicle.van { background: #95c297; }.vehicle.car-1 { background: #d28f7b; }.vehicle.car-2 { background: #91b5bf; }.vehicle.car-3 { background: #d2bd86; }.vehicle.car-4 { background: #bb9cb7; }
.car-park .parking-move { z-index: 2; background: #d8eeac; align-self: stretch; aspect-ratio: auto; color: #334f2b; }

.mahjong-board { position: relative; margin: auto; width: min(100%, 44rem); background: radial-gradient(ellipse,#608b6c,#31594f); border-radius: .65rem; }
.mahjong-board .mahjong-tile { display: grid; place-items: center; position: absolute; padding: 0; min-height: 0; background: #fff1cf; border: 1px solid #7e6749; border-radius: clamp(.17rem,1vw,.45rem); box-shadow: 1px 3px #a88e67; font-size: clamp(.95rem,4.4vw,2rem); font-family: Georgia, "Yu Mincho", serif; }
.mahjong-board .covered { opacity: 1; background: #dccdb0; color: #786b56; }
.mahjong-board .ink-0:not(.covered) { color: #365f50; }.mahjong-board .ink-1:not(.covered) { color: #934b40; }
.mahjong-board .ink-2:not(.covered) { color: #62537b; }.mahjong-board .ink-3:not(.covered) { color: #3b657e; }

.rail-yard { position: relative; width: 100%; border-radius: .6rem; background: repeating-linear-gradient(0deg,#e0dcc5 0 18px,#e4e1cd 19px 28px); overflow: hidden; }
.rail-yard svg { width: 100%; height: auto; display: block; pointer-events: none; }
.rail-yard path { fill: none; stroke: #63726a; stroke-width: 2.25; }
.rail-yard .train, .rail-yard .platform, .rail-yard .points { position: absolute; translate: -50% -50%; display: grid; place-items: center; border: 1px solid #4e5e52; font-size: clamp(.63rem,2.7vw,1.04rem); font-weight: 800; }
.rail-yard .train { width: clamp(1rem,5.5%,2.4rem); height: auto; aspect-ratio: 1.5; border-radius: .25rem; z-index: 2; }
.rail-yard .platform { width: clamp(1.1rem,5.7%,2.6rem); height: auto; aspect-ratio: 1.5; border: 2px dashed #566257; border-radius: .2rem; }
.rail-yard .points { min-height: 0; width: clamp(1.8rem,6.5%,3rem); aspect-ratio: 1; border-radius: 50%; padding: 0; z-index: 3; }

.jigsaw-surface { position: relative; width: min(100%, 39rem); margin: auto; background: #e4e5d5; border: 1px solid #a5ad95; border-radius: .3rem; }
.jigsaw-picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: .37; pointer-events: none; }
.jigsaw-picture.full { opacity: 1; z-index: 4; }
.jigsaw-grid { position: relative; width: 100%; gap: 0; }
.jigsaw-grid .puzzle-cell { border: 1px dashed #7e8b78; border-radius: 0; background: transparent; }
.jigsaw-grid .fitted { pointer-events: none; z-index: 2; border-color: transparent; }
.jigsaw-grid .fragment { position: absolute; width: 144%; height: 144%; max-width: none; inset: -22%; pointer-events: none; }
.fragment { display: block; width: 100%; pointer-events: none; overflow: visible; }
.piece-edge { fill: none; stroke: #364d48; stroke-width: 1; }
.jigsaw-tray { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .25rem; margin-top: .65rem; }
.tray-piece { display: grid; place-items: center; touch-action: none; padding: .12rem; min-width: 0; aspect-ratio: 1; }
.tray-nav { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .82rem; }
.tray-nav button { padding-inline: .35rem; }
.piece-ghost { position: fixed; width: 5.5rem; translate: -50% -50%; z-index: 10; pointer-events: none; filter: drop-shadow(0 3px 5px #23342e66); }
.spot-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.spot-comparison.large { grid-template-columns: 1fr; }
.spot-comparison figure { margin: 0; }
.spot-comparison figcaption { font-weight: 650; color: var(--muted); margin-bottom: .16rem; }
.spot-art { position: relative; cursor: crosshair; border: 1px solid #b0b0a0; }
.spot-art img { display: block; width: 100%; height: auto; user-select: none; }
.spot-rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spot-rings circle { fill: #ffec8b35; stroke: #fce996; stroke-width: 3; }
.spot-target { position: absolute; translate: -50% -50%; padding: 0; min-height: 0; width: 8%; aspect-ratio: 1; opacity: 0; pointer-events: none; }
.spot-target:focus-visible { opacity: 1; background: #fff7be44; pointer-events: auto; }
