/* Presentation is a fixed canvas. No viewport or card may impose a minimum
   intrinsic row height that could push the complete deck off screen. */
.presentation{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;background:#19292e}
.presentation{background:var(--table-color,#19292e)}
.quiet-stage{width:100%;height:100%;padding-top:42px;position:relative;overflow:hidden;isolation:isolate}
.table-tools{position:absolute;inset:0 0 auto 0;height:42px;display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:3px 8px;z-index:100;background:var(--table-color,#19292e)}
.table-tool{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:0;padding:0;border:1px solid color-mix(in srgb,var(--table-ink,#c2d4d8) 40%,transparent);border-radius:5px;background:transparent;color:var(--table-ink,#c2d4d8);font-size:23px;font-weight:400;line-height:1}
.table-tool:first-child{margin-right:auto}
.table-tool:hover{color:white;background:#345159}
.backs-grid,.backs-grid.fitted{width:100%;height:100%;min-height:0;min-width:0;flex:none;padding:6px 8px;gap:6px;overflow:hidden;align-content:stretch;align-items:stretch;justify-items:stretch}
.backs-grid .card-back,.backs-grid.fitted .card-back{min-height:0;min-width:0;width:100%;height:100%;padding:0;margin:0;border:0;aspect-ratio:auto;position:relative;display:block;overflow:hidden;border-radius:4px;background:transparent}
.backs-grid .card-back img,.backs-grid.fitted .card-back img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.backs-grid .card-back>span,.backs-grid.fitted .card-back>span{top:3px;left:50%;transform:translateX(-50%);font-size:clamp(10px,.85rem,14px);line-height:1.2;padding:1px 3px;min-width:0;max-width:100%;border-radius:3px;color:#182e32;background:#fcffff;box-shadow:0 1px 3px #0003;z-index:1}
.backs-grid .card-back.picked{opacity:.35}
.backs-grid .card-back.discarded{outline:1px solid var(--table-ink,#c6ded7);outline-offset:0;background:var(--table-color,#19292e)}
.backs-grid .card-back.discarded img{object-fit:contain}
.free-table{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;touch-action:none}
.free-card{position:absolute;margin:0;min-width:0;min-height:0;transform:translate(-50%,-50%);touch-action:none;user-select:none;filter:drop-shadow(0 3px 5px #0007)}
.free-card .card-face{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;padding:0;border:none;border-radius:2px;overflow:hidden;background:transparent;cursor:grab;touch-action:none}
.free-card .card-face:hover{background:transparent}
.free-card .card-face img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.free-card.dragging{filter:drop-shadow(0 8px 12px #0009)}
.free-card.dragging .card-face{cursor:grabbing}
.free-table.focus .card-face{cursor:zoom-out}
.card-remove{position:absolute;top:5px;right:5px;z-index:2;min-height:0;height:23px;width:23px;border:0;padding:0;border-radius:50%;background:#ffffff87;color:#203638;font-size:0;font-weight:400;line-height:1;opacity:0;pointer-events:none;display:grid;place-items:center}
.card-remove::before,.card-remove::after{content:'';position:absolute;left:50%;top:50%;height:1.4px;width:10px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.card-remove::after{transform:translate(-50%,-50%) rotate(-45deg)}
.free-card:hover .card-remove,.free-card:focus-within .card-remove{opacity:1;pointer-events:auto}
.card-remove:hover{background:#ffffffbd;color:#92312d}
.layer-menu{position:fixed;z-index:200;background:white;color:#213d40;border-radius:7px;box-shadow:0 5px 25px #0005;display:flex;flex-direction:column;padding:4px;width:200px}
.layer-menu button{border:0;text-align:left;justify-content:flex-start;font-size:14px;min-height:40px;padding:.5rem .7rem}
.deck-name{font:inherit;font-weight:inherit;display:inline-flex;align-items:center;gap:.5rem;justify-content:flex-start;min-height:0;padding:0;border:0;background:none;text-align:left;line-height:inherit}
.deck-name span{font-size:.85rem;color:#789196;opacity:0}
.deck-name:hover{background:transparent}.deck-name:hover span,.deck-name:focus-visible span{opacity:1}
@media(pointer:coarse){.free-card:focus-within .card-remove{opacity:1;pointer-events:auto}}
@media(max-width:650px){.table-tools{height:38px;padding:2px 5px}.quiet-stage{padding-top:38px}.table-tool{height:32px;width:32px}.backs-grid,.backs-grid.fitted{padding:6px 8px;gap:3px}.backs-grid .card-back>span,.backs-grid.fitted .card-back>span{top:2px;font-size:11px;padding:1px 2px}}

.table-tool:first-child{margin-right:0}
.table-tool[data-action="close-table"]{margin-left:16px;font-size:27px}
.free-card .card-face img{position:absolute}
.card-rotate{position:absolute;top:5px;left:5px;z-index:2;width:23px;height:23px;min-height:0;padding:0;border:0;border-radius:50%;background:#ffffff87;color:#203638;font-size:18px;font-weight:400;line-height:1;opacity:0;pointer-events:none;display:grid;place-items:center}
.free-card:hover .card-rotate,.free-card:focus-within .card-rotate{opacity:1;pointer-events:auto}
.card-rotate:hover{background:#ffffffbd}
.session-decks-dialog{width:min(620px,calc(100vw - 24px))}
.session-deck-list{display:grid;gap:8px}
.session-deck-choice{width:100%;justify-content:flex-start;text-align:left;gap:14px;padding:10px 12px}
.session-deck-choice img{width:34px;height:50px;object-fit:contain;border-radius:3px}
.session-deck-choice small{display:block;color:var(--muted);font-size:.78rem;font-weight:400;margin-top:3px}
.session-deck-choice.selected{border-color:var(--accent);background:#e6f0ef}

.card-resize{position:absolute;width:16px;height:16px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;z-index:5;opacity:0;touch-action:none}.card-resize::after{content:'';position:absolute;inset:3px;border:0 solid var(--table-ink,#e4eff1);filter:drop-shadow(0 1px 1px #000);pointer-events:none}.resize-nw{top:-6px;left:-6px;cursor:nwse-resize}.resize-ne{top:-6px;right:-6px;cursor:nesw-resize}.resize-sw{bottom:-6px;left:-6px;cursor:nesw-resize}.resize-se{bottom:-6px;right:-6px;cursor:nwse-resize}.resize-nw::after{border-top-width:2px;border-left-width:2px}.resize-ne::after{border-top-width:2px;border-right-width:2px}.resize-sw::after{border-bottom-width:2px;border-left-width:2px}.resize-se::after{border-bottom-width:2px;border-right-width:2px}.free-card:hover .card-resize,.free-card:focus-within .card-resize,.free-card.resizing .card-resize{opacity:1}.card-resize:hover{background:transparent}.free-card.resizing{filter:drop-shadow(0 5px 9px #0008)}@media(pointer:coarse){.card-resize{width:22px;height:22px}.resize-nw,.resize-ne{top:-9px}.resize-sw,.resize-se{bottom:-9px}.resize-nw,.resize-sw{left:-9px}.resize-ne,.resize-se{right:-9px}}
