[hidden] { display: none !important; }
.discover { width: min(100% - 2rem, 29rem); margin: 0 auto 3rem; }
.discover-header { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; justify-content: space-between; margin: 1rem 0; }
.discover h1 { font-size: clamp(2rem, 9vw, 4rem); margin: 0; }
.discover h2 { font-size: 1.125rem; text-transform: none; margin: 0; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.instructions, #message, #saved-empty { color: #c7c5c1; line-height: 1.5; }
.discover button { color: inherit; font: inherit; cursor: pointer; }
.discover button:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.discover button:disabled { opacity: .45; cursor: default; }
.view-button, .undo { border: 1px solid var(--line); background: transparent; padding: .65rem .85rem; }
.view-button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.swipe-card { border: 1px solid var(--line); background: #121212; transform: translateX(var(--drag, 0px)) rotate(var(--rotation, 0deg)); transition: transform .18s ease; }
.swipe-card.dragging { transition: none; }
.swipe-photo { position: relative; aspect-ratio: 4 / 5; max-height: 52svh; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; overflow: hidden; }
.swipe-photo:active { cursor: grabbing; }
.swipe-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; }
#drag-label:not(:empty) { position: absolute; top: 1rem; left: 1rem; padding: .35rem .65rem; background: var(--paper); color: var(--ink); font-weight: 700; }
.card-caption { padding: .9rem 1rem; }
.card-caption p, .saved-item p { margin: .35rem 0 0; }
.choices { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; }
.choices button { width: 3.5rem; height: 3.5rem; border: 1px solid var(--paper); border-radius: 50%; font-size: 1.4rem; background: transparent; }
.choices #like { background: var(--paper); color: var(--ink); }
.deck-footer { text-align: center; }
#saved-title { margin-block: 1.25rem .85rem; }
.saved-items { display: grid; gap: 1rem; }
.saved-item { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .85rem; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.saved-item img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: #161616; }
.saved-item h3 { margin: 0; overflow-wrap: anywhere; }
.saved-item button { padding: .55rem 0; border: 0; background: transparent; text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .swipe-card { transition: none; } }
