:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #282a24;
  --muted: #6d7165;
  --orange: #ef754b;
  --line: #dedfd4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; -webkit-font-smoothing: antialiased; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, article:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.app-shell { width: 100%; max-width: 420px; height: min(100svh, 860px); display: flex; flex-direction: column; padding: 0 18px 18px; }
.header { height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.header h1 { font-size: 23px; font-weight: 750; letter-spacing: -1.2px; margin: 0; }
.liked-count { display: flex; align-items: center; gap: 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.liked-count svg { color: #c65c35; width: 17px; height: 17px; fill: currentColor; }
main, .deck-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.card-stack { position: relative; flex: 1; min-height: 0; isolation: isolate; margin: 4px 0 0; }
.back-card { position: absolute; inset: 2px 5px; border-radius: 14px; border: 1px solid #d9d8cd; transform-origin: 50% 85%; z-index: -1; background: #e8e5d8; }
.back-one { transform: rotate(2deg); }
.back-two { transform: rotate(-2deg); background: #ede8dc; }
.photo-card { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #b7b6a5; box-shadow: 0 8px 24px #38372c12; cursor: grab; touch-action: pan-y; user-select: none; will-change: transform; }
.photo-card:active { cursor: grabbing; }
.photo-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0004, transparent 25%, transparent 65%, #000b); pointer-events: none; }
.card-top { position: absolute; inset: 18px 18px auto; display: flex; align-items: center; justify-content: space-between; color: white; gap: 12px; }
.photo-badge { font-size: 9px; letter-spacing: 1px; background: #25282070; border: 1px solid #fff5; padding: 6px 8px; border-radius: 4px; }
.photo-title { position: absolute; bottom: 24px; left: 22px; right: 22px; margin: 0; font-size: 25px; font-weight: 650; letter-spacing: -.7px; line-height: 1.2; color: white; overflow-wrap: anywhere; }
.swipe-stamp { position: absolute; top: 75px; border: 4px solid; padding: 7px 12px; border-radius: 7px; font-size: 35px; font-weight: 800; opacity: 0; pointer-events: none; }
.stamp-like { left: 22px; color: #b6f6b2; transform: rotate(-15deg); }
.stamp-pass { right: 22px; color: #ffbfa8; transform: rotate(15deg); }
.controls { flex-shrink: 0; height: 100px; display: flex; justify-content: center; align-items: center; gap: 20px; }
.control { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; transition: transform .18s; }
.control:hover:not(:disabled) { transform: translateY(-2px); }
.control.pass { border: 1px solid #d9dcd0; background: #fbfbf6; color: #6b775f; }
.control.pass svg { width: 27px; height: 27px; }
.control.like { background: var(--orange); color: white; box-shadow: 0 5px 15px #ef754b26; }
.control.like svg { fill: currentColor; stroke-width: 1; width: 27px; height: 27px; }
.empty-deck { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.empty-deck h2 { font-size: 25px; font-weight: 600; letter-spacing: -.7px; margin: 0; }
.primary-button { padding: 12px 18px; display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: white; border-radius: 6px; font-size: 13px; }
.primary-button svg { width: 16px; height: 16px; }
.image-fallback { position: absolute; inset: 0; background: #b8bfac; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #3f4c36; padding: 20px; text-align: center; }
.image-fallback p { font-size: 18px; }
.image-fallback small { font-size: 12px; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 10px); background: var(--ink); color: white; padding: 10px 18px; border-radius: 8px; font-size: 12px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 10; max-width: 90%; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 440px) { .app-shell { padding-bottom: max(14px, env(safe-area-inset-bottom)); } }
@media (max-height: 600px) { .header { height: 48px; } .controls { height: 80px; } .control { width: 54px; height: 54px; } .photo-title { bottom: 16px; font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; animation: none !important; } }
