div.deck-page{display:grid;grid-template-columns:1.2fr 1fr;grid-template-areas:"title art" "copy art";align-items:center;gap:1.35rem clamp(1.25rem,4vw,3rem)}
.deck-buttons .button{margin-top:.4rem;margin-bottom:.5rem}
.deck-secondary{background:transparent;color:#171717;box-shadow:inset 0 0 0 1px #171717}
.deck-gallery{margin-top:clamp(2.5rem,7vw,5rem);padding-top:2rem;border-top:1px solid #cfc8bb;scroll-margin-top:1rem}
.deck-gallery h2{margin:0}
.deck-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem clamp(1.25rem,4vw,3rem);list-style:none;margin:2rem 0;padding:0}
.deck-cards article{min-width:0}
.deck-cards article img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;display:block;background:#eee9e0}
.deck-cards article h3{font-size:1.2rem;margin:.75rem 0 .3rem}
.card-actions{display:flex;flex-wrap:wrap;gap:.35rem .55rem}
.card-actions a{display:inline-flex;align-items:center;min-height:44px;padding:.2rem .65rem;border:1px solid #a39a89;text-decoration:none;font-size:.92rem;font-weight:700}
.card-actions a:first-child{background:#171717;color:#fff;border-color:#171717}
.card-actions a:hover{text-decoration:underline}
@media(max-width:850px){.deck-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){div.deck-page{grid-template-columns:1fr;grid-template-areas:"title" "art" "copy"}.deck-cards{grid-template-columns:1fr}}

.deck-viewer:not([open]){display:none}
html:has(.deck-viewer[open]){overflow:hidden}
.deck-viewer[open]{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#111;color:#faf8f3;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
.deck-viewer::backdrop{background:#111}
.viewer-shell{width:min(100%,76rem);height:100%;min-height:17rem;margin:0 auto;padding:max(.4rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.45rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left));box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.4rem}
.viewer-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-left:.35rem}
.viewer-label{font-size:.94rem;color:#e1ded5}
.deck-viewer button{appearance:none;color:#faf8f3;background:transparent;border:1px solid #716f69;border-radius:100%;min-width:44px;min-height:44px;font:1.6rem/1 Arial,sans-serif;cursor:pointer}
.viewer-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pinch-zoom}
.viewer-track::-webkit-scrollbar{display:none}
.viewer-slide{flex:0 0 100%;min-width:0;min-height:0;height:100%;box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:.45rem;scroll-snap-align:center;scroll-snap-stop:always;margin:0;padding:0 .25rem}
.viewer-slide img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;user-select:none;-webkit-user-drag:none}
.viewer-slide figcaption{display:block;text-align:center;color:#faf8f3;font:700 clamp(1.3rem,3vw,2rem)/1.2 Arial,sans-serif;margin:0;padding:.15rem 0}
.viewer-footer{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.35rem 1.6rem}
.viewer-nav,.viewer-shop{display:flex;justify-content:center;align-items:center;gap:.35rem .65rem;flex-wrap:wrap}
.viewer-position{font-size:.9rem;min-width:4.15rem;text-align:center;color:#e1ded5}
.deck-viewer button[aria-disabled="true"]{opacity:.37;cursor:default}
.viewer-shop a{display:inline-flex;min-height:44px;align-items:center;padding:0 .4rem;color:#faf8f3;font-size:.94rem;text-decoration:underline;text-underline-offset:.15em}
.deck-viewer :focus-visible{outline:2px solid #ffdf96;outline-offset:2px}
@media(max-width:560px){.viewer-footer{flex-direction:column;gap:0}.viewer-label{font-size:.84rem}}
@media(orientation:landscape) and (max-height:490px){.viewer-shell{gap:.15rem}.viewer-footer{flex-direction:row}.viewer-slide figcaption{font-size:1.15rem}}
