:root {
  --ink: #141414; --ink2: #1f1e1c; --cream: #faf8f5; --paper: #f3efe8; --copper: #c9956c; --copper2: #b47f57;
  --muted: #8a867f; --line: #dcd6cc; --serif: "Playfair Display", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--ink); }
body { font-family: var(--sans); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#app { position: fixed; inset: 0; display: flex; justify-content: center; }

.screen { position: absolute; inset: 0; margin: 0 auto; max-width: 520px; height: 100dvh; display: none; flex-direction: column; padding: 18px 20px calc(16px + var(--safe-b)); opacity: 0; transition: opacity .35s ease; }
.screen.active { display: flex; }
.screen.in { opacity: 1; }
.light { background: var(--cream); color: var(--ink); }
.dark { background: var(--ink); color: var(--cream); }
@media (min-width: 700px) { body { background: #0d0d0d; } .screen.light { box-shadow: 0 0 0 100vmax #ece7df; } .screen.dark { box-shadow: 0 0 0 100vmax var(--ink); } }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; letter-spacing: .01em; }
.brand img { width: 28px; height: 28px; }
.brand.small { font-size: 13px; color: var(--copper); } .brand.small img { width: 22px; height: 22px; }

/* intro */
.intro-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 11vw, 52px); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.1; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 4px; }
.lede { font-size: 16px; line-height: 1.55; color: #55524c; margin-top: 14px; max-width: 30em; }
.fan { position: relative; height: clamp(120px, 24vh, 210px); margin: 22px 0 6px; }
.fan img { position: absolute; top: 0; height: 100%; aspect-ratio: 1240/1754; border-radius: 6px; box-shadow: 0 10px 24px rgba(20,20,20,.22); object-fit: cover; }
.fan img:nth-child(1) { left: 6%; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 50%; transform: translateX(-50%) rotate(1deg); z-index: 2; }
.fan img:nth-child(3) { right: 6%; transform: rotate(8deg); }
.ask { font-size: 13px; color: var(--muted); margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: 14px; background: #fff; transition: all .15s ease; }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.intro-foot { padding-top: 14px; }
.cta { display: block; width: 100%; background: var(--ink); color: var(--cream); border-radius: 14px; padding: 17px; font-size: 17px; font-weight: 500; transition: transform .12s ease, background .2s; }
.cta:active { transform: scale(.98); }
.cta.copper { background: var(--copper); color: var(--ink); margin-top: 16px; }
.fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* swipe */
.bar { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.count { font-size: 13px; color: #b9b4ab; font-variant-numeric: tabular-nums; }
.kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--copper); }
.progress { height: 3px; background: #2b2a28; border-radius: 3px; margin: 10px 0 14px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--copper); border-radius: 3px; transition: width .35s ease; }
.stage { flex: 1; position: relative; min-height: 0; touch-action: none; }
.card { position: absolute; border-radius: 12px; overflow: hidden; background: #2a2926; box-shadow: 0 18px 40px rgba(0,0,0,.45); will-change: transform; user-select: none; -webkit-user-select: none; cursor: grab; }
.card:active { cursor: grabbing; }
.card img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card.under { filter: brightness(.7); }
.stamp { position: absolute; top: 26px; padding: 6px 14px; border: 3px solid; border-radius: 8px; font-family: var(--serif); font-weight: 600; font-size: 30px; opacity: 0; pointer-events: none; background: rgba(20,20,20,.35); }
.stamp.love { left: 20px; color: var(--copper); transform: rotate(-12deg); }
.stamp.nah { right: 20px; color: #eae6df; transform: rotate(12deg); }
.prompt { font-family: var(--serif); font-size: 19px; text-align: center; margin: 14px 0 12px; }
.prompt.big { font-size: 24px; margin: 6px 0 18px; }
.controls { display: flex; justify-content: center; align-items: center; gap: 30px; }
.round { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .12s ease, background .2s; }
.round svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round:active { transform: scale(.9); }
.nah { border: 1.5px solid #5a5853; color: #eae6df; }
.love { background: var(--copper); color: var(--ink); }
.love svg { fill: var(--ink); stroke: var(--ink); }
.undo { width: 44px; height: 44px; color: #8a867f; } .undo svg { width: 20px; height: 20px; }
.undo[disabled] { opacity: .3; }
.labels { display: grid; grid-template-columns: 66px 44px 66px; gap: 30px; justify-content: center; text-align: center; font-size: 12px; color: #8a867f; margin-top: 6px; }
.toast { position: absolute; left: 50%; top: 70px; transform: translate(-50%, -12px); background: var(--cream); color: var(--ink); padding: 11px 18px; border-radius: 999px; font-size: 14px; white-space: nowrap; opacity: 0; transition: all .35s ease; pointer-events: none; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hint-hand { position: absolute; left: 50%; bottom: 18%; width: 64px; height: 64px; margin-left: -32px; z-index: 10; pointer-events: none; animation: hand 2.4s ease-in-out infinite; }
.hint-hand svg { width: 100%; height: 100%; }
@keyframes hand { 0%,100% { transform: translateX(0) rotate(0); opacity: .95; } 30% { transform: translateX(70px) rotate(12deg); } 60% { transform: translateX(-70px) rotate(-12deg); } }

/* done */
.done-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bonus { margin-top: 30px; background: var(--ink); color: var(--cream); border-radius: 18px; padding: 22px; }
.bonus p:not(.kicker) { color: #b9b4ab; font-size: 14.5px; margin-top: 6px; line-height: 1.5; }
.done-foot { display: flex; gap: 10px; }
.ghost { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 15px; font-size: 15px; background: #fff; }
.ghost.quiet { border-color: transparent; background: none; color: var(--muted); }
.ghost.on-dark { color: #8a867f; margin-top: auto; flex: none; }

/* duel */
.pair { flex: 1; min-height: 0; display: flex; gap: 12px; align-items: center; justify-content: center; }
.pick { position: relative; flex: 1; max-width: 50%; border-radius: 10px; overflow: hidden; transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease; box-shadow: 0 10px 26px rgba(0,0,0,.45); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pick img { display: block; width: 100%; aspect-ratio: 1240/1754; object-fit: cover; pointer-events: none; }
.pick.won { transform: scale(1.04); box-shadow: 0 0 0 3px var(--copper), 0 14px 30px rgba(0,0,0,.5); }
.pick.lost { opacity: .25; transform: scale(.96); }
.hint { text-align: center; font-size: 12.5px; color: #8a867f; margin-top: 16px; }
.zoom { position: fixed; inset: 0; background: rgba(10,10,10,.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.zoom.on { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* thanks */
.plug { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.45; }
.plug img { width: 34px; height: 34px; flex: none; }
.plug u { text-decoration-color: var(--copper); text-underline-offset: 3px; }
#thanks .cta { margin-top: 26px; }
