@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-latin-wght-italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #121012;
  --bg2: #19141a;
  --surface: rgba(255,255,255,0.045);
  --surface2: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.09);
  --wine: #6b1d33;
  --wine2: #8f2c49;
  --rose: #e6a4b6;
  --blush: #f4cdd7;
  --gold: #dcc08a;
  --text: #f5ecef;
  --muted: #a8969d;
  --dim: #73646a;
  --radius: 22px;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, system-ui, sans-serif;
  --card-size: clamp(26px, 7.4vw, 34px);
  --card-lh: 1.42;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html { background: var(--bg); }
body { background: transparent; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); }

.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(143,44,73,0.40), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(107,29,51,0.35), transparent 60%),
    linear-gradient(180deg, #151114, #0f0d0f 70%); }
.backdrop::after { content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

#app { min-height: 100%; max-width: 520px; margin: 0 auto; padding: calc(var(--safe-t) + 18px) 20px calc(var(--safe-b) + 104px); }
.screen { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 34px; line-height: 1.08; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
em { font-style: italic; color: var(--blush); }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.gap-l { margin-top: 26px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.wordmark { font-family: var(--serif); font-size: 21px; font-style: italic; letter-spacing: .01em; }
.wordmark b { font-style: normal; font-weight: 600; color: var(--rose); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.icon-btn svg { width: 18px; height: 18px; }

/* Presence */
.presence { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.dot.on { background: #7fd1a0; box-shadow: 0 0 0 0 rgba(127,209,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(127,209,160,0); } 100% { box-shadow: 0 0 0 0 rgba(127,209,160,0); } }

/* Tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.tile { position: relative; text-align: left; padding: 18px 16px 16px; min-height: 150px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .2s ease, background .2s; }
.tile:active { transform: scale(.97); }
.tile.big { grid-column: span 2; min-height: 172px; background: linear-gradient(140deg, rgba(143,44,73,.55), rgba(60,18,32,.5)); border-color: rgba(230,164,182,.18); }
.tile h3 { font-size: 21px; }
.tile p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.tile .glyph { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; color: var(--rose); opacity: .95; }
.tile.big .glyph { width: 40px; height: 40px; }
.tile .badge { position: absolute; top: 14px; right: 14px; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--rose); color: #2a0f18; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }

/* Tonight */
.tonight { margin-top: 26px; padding: 18px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(220,192,138,.09), rgba(220,192,138,.02)); border: 1px solid rgba(220,192,138,.2); }
.tonight h3 { color: var(--gold); display: flex; align-items: center; gap: 8px; }
.t-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.t-item:first-of-type { border-top: 0; }
.t-item .check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(220,192,138,.6); display: grid; place-items: center; margin-top: 1px; }
.t-item.done .check { background: var(--gold); color: #2a1d08; }
.t-item.done .t-text { color: var(--dim); text-decoration: line-through; }
.t-text { flex: 1; font-size: 15px; line-height: 1.45; }
.t-x { color: var(--dim); padding: 2px 4px; }

/* Bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 22px 10px calc(var(--safe-b) + 8px); background: linear-gradient(180deg, rgba(18,16,18,0) 0%, rgba(18,16,18,.85) 28%, #121012 55%); }
.nav-inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5,1fr); }
.nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font-size: 10.5px; color: var(--dim); font-weight: 600; letter-spacing: .02em; position: relative; }
.nav button svg { width: 22px; height: 22px; }
.nav button.on { color: var(--blush); }
.nav .nb { position: absolute; top: 7px; right: calc(50% - 15px); width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 26px; font-weight: 700; font-size: 15px; letter-spacing: .01em; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, #b23c5e, #7b2240); color: #fff; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn.gold { background: linear-gradient(135deg, #e8cf9c, #b8955a); color: #2a1d08; }
.btn.block { width: 100%; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 20px; }
.btn[disabled] { opacity: .45; }
.link { color: var(--rose); font-weight: 700; font-size: 14px; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.chip.on { background: rgba(230,164,182,.16); border-color: rgba(230,164,182,.45); color: var(--blush); }
.chip.on.dark { background: rgba(143,44,73,.4); border-color: rgba(230,120,150,.5); color: #ffd7e1; }

/* Playing card */
.stage { perspective: 1400px; margin: 22px 0 18px; }
.pcard { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.75,.2,1); }
.pcard.flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face.back { background: radial-gradient(circle at 30% 20%, #9a2f50, #4d1426 70%); border: 1px solid rgba(255,210,222,.18); display: grid; place-items: center; box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.face.back::before { content: ''; position: absolute; inset: 14px; border-radius: 20px; border: 1px solid rgba(255,220,230,.22); }
.face.back .mono { font-family: var(--serif); font-style: italic; font-size: 44px; color: rgba(255,226,233,.9); }
.face.back .pattern { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1.5px); background-size: 18px 18px; }
.face.front { transform: rotateY(180deg); background: linear-gradient(170deg, #2a2025, #1b1519); border: 1px solid rgba(255,255,255,.1); padding: 26px 24px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -25px rgba(0,0,0,.85); }
.face.front.dark { background: linear-gradient(170deg, #3a1422, #1d0d14); border-color: rgba(230,120,150,.25); }
.face.front.gold { background: linear-gradient(160deg, #3b3020, #1c160f); border-color: rgba(220,192,138,.55); }
.face.front.gold::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,230,180,.18) 50%, transparent 60%); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes shine { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.kind { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--rose); }
.gold .kind { color: var(--gold); }
.card-text { flex: 1; display: flex; align-items: center; font-family: var(--serif); font-size: var(--card-size); line-height: var(--card-lh); font-weight: 500; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.turn { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--blush); }
.choices { display: grid; gap: 10px; margin-top: 16px; }
.choice { text-align: left; padding: 15px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 15.5px; font-weight: 600; transition: all .25s; }
.choice.on { background: rgba(230,164,182,.2); border-color: var(--rose); }
.choice.off { opacity: .35; }
.deal { animation: deal .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes deal { from { transform: translateY(40px) rotate(-4deg) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* Lists and panels */
.panel { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 18px 0; }
.tabs button { height: 38px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); position: relative; }
.tabs button.on { background: rgba(230,164,182,.14); color: var(--blush); }
.tabs .badge { position: absolute; top: -6px; right: 4px; transform: scale(.85); }

.mission { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mission + .mission { margin-top: 12px; }
.mission .when { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--muted); display: flex; justify-content: space-between; }
.mission .mtext { font-family: var(--serif); font-size: 20px; line-height: var(--card-lh); font-weight: 500; margin: 10px 0 14px; }
.mission .acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.mission .acts .btn.sm { padding: 0 8px; gap: 6px; font-size: 13px; white-space: nowrap; min-width: 0; }
.mission .acts .btn.sm svg { flex: none; }
.mission .acts .small { grid-column: 1 / -1; }
.mission.done { opacity: .6; }
.mission.done .mtext { text-decoration: line-through; text-decoration-color: rgba(230,164,182,.5); }
.mission.locked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px); }
.mission.locked .mtext { filter: blur(7px); user-select: none; }
.mission.fresh { border-color: rgba(230,164,182,.35); }
.mission .tag { font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.envelope { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(143,44,73,.45), rgba(60,18,32,.4)); border: 1px solid rgba(230,164,182,.25); width: 100%; text-align: left; }
.envelope svg { width: 38px; height: 38px; color: var(--blush); flex: none; }
.envelope + .mission, .mission + .envelope, .envelope + .envelope { margin-top: 12px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px dashed var(--line); }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--rose); }

.field { width: 100%; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 15px 16px; font-size: 16px; outline: none; transition: border .2s; }
.field:focus { border-color: rgba(230,164,182,.5); }
textarea.field { min-height: 96px; resize: none; line-height: 1.45; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font-size: 15px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,.8,.3,1); }
.switch.on { background: var(--wine2); }
.switch.on::after { transform: translateX(20px); }

.sugg { display: grid; gap: 8px; }
.sugg button { text-align: left; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.sugg button.on { border-color: var(--rose); background: rgba(230,164,182,.12); }
.sent { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; display: flex; gap: 10px; justify-content: space-between; }
.sent:first-child { border-top: 0; }
.sent .ts { color: var(--dim); font-size: 12px; flex: none; }

/* Secret match */
.set { display: block; width: 100%; text-align: left; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.set + .set { margin-top: 12px; }
.set.spicy { background: linear-gradient(140deg, rgba(107,29,51,.45), rgba(40,14,24,.4)); border-color: rgba(230,120,150,.22); }
.bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--wine2), var(--rose)); border-radius: 2px; transition: width .5s; }
.swipe { position: relative; height: 330px; margin: 18px 0; }
.scard { position: absolute; inset: 0; border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(170deg, #2a2025, #1b1519); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -25px rgba(0,0,0,.85); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; touch-action: pan-y; }
.scard.spicy { background: linear-gradient(170deg, #3a1422, #1d0d14); }
.scard.under { transform: scale(.94) translateY(16px); opacity: .5; }
.scard.out-yes { transform: translateX(120%) rotate(14deg); opacity: 0; }
.scard.out-no { transform: translateX(-120%) rotate(-14deg); opacity: 0; }
.scard .stext { font-family: var(--serif); font-size: var(--card-size); line-height: var(--card-lh); font-weight: 500; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answers .ans { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.answers .ans:first-child { border-top: 0; }
.pill { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); flex: none; }
.pill.yes { background: rgba(230,164,182,.18); color: var(--blush); }
.match { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(143,44,73,.45), rgba(60,18,32,.35)); border: 1px solid rgba(230,164,182,.3); font-family: var(--serif); font-size: 19px; line-height: var(--card-lh); opacity: 0; transform: translateY(14px) scale(.98); animation: pop .6s cubic-bezier(.2,.8,.2,1) forwards; }
.match + .match { margin-top: 10px; }
.match svg { width: 22px; height: 22px; color: var(--rose); flex: none; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Surprise */
.fan { position: relative; height: 380px; margin: 26px 0 10px; }
.fan .fc { position: absolute; left: 50%; top: 10px; width: 62%; aspect-ratio: 3/4; margin-left: -31%; border-radius: 22px; background: radial-gradient(circle at 30% 20%, #9a2f50, #4d1426 70%); border: 1px solid rgba(255,210,222,.2); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); transition: transform .5s cubic-bezier(.2,.8,.2,1); display: grid; place-items: center; }
.fan .fc::before { content: ''; position: absolute; inset: 10px; border-radius: 15px; border: 1px solid rgba(255,220,230,.2); }
.fan .fc span { font-family: var(--serif); font-style: italic; font-size: 52px; color: rgba(255,226,233,.85); }
.fan .fc:nth-child(1) { transform: rotate(-14deg) translateX(-34px) translateY(18px); }
.fan .fc:nth-child(2) { transform: rotate(-5deg) translateX(-12px) translateY(4px); }
.fan .fc:nth-child(3) { transform: rotate(5deg) translateX(12px) translateY(4px); }
.fan .fc:nth-child(4) { transform: rotate(14deg) translateX(34px) translateY(18px); }
.fan .fc:active { filter: brightness(1.15); }
.fan.pick .fc { transform: rotate(0) translateY(-6px) scale(1.02); }

/* Sheet / modal */
.scrim { position: fixed; inset: 0; background: rgba(5,3,5,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 40; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 520px; margin: 0 auto; max-height: 88vh; overflow-y: auto; padding: 12px 20px calc(var(--safe-b) + 24px); background: #1c171b; border-radius: 28px 28px 0 0; border: 1px solid var(--line); border-bottom: 0; animation: up .38s cubic-bezier(.2,.8,.2,1) both; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 0 auto 18px; }
@keyframes up { from { transform: translateY(100%); } }

.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 74px); transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 999px; background: #2b2228; border: 1px solid rgba(230,164,182,.25); font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: toast 2.6s both; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* Login */
.login { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; }
.login .logo { width: 92px; height: 92px; margin: 0 0 22px -10px; display: block; animation: breathe 5s ease-in-out infinite; }
.login h1 { font-size: 46px; }
.err { color: #ff9fb3; font-size: 14px; min-height: 20px; }
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.hearts i { position: absolute; bottom: -30px; font-style: normal; color: var(--rose); animation: floatup 2.4s ease-out forwards; }
@keyframes floatup { to { transform: translateY(-110vh) rotate(20deg); opacity: 0; } }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.empty svg { width: 40px; height: 40px; color: var(--dim); margin-bottom: 10px; }
.demo-banner { font-size: 12px; text-align: center; color: #2a1d08; background: var(--gold); padding: 6px; border-radius: 10px; margin-bottom: 14px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Subtle motion ---------- */
/* Screens: content rises in, one piece after another */
.screen { animation: fade .35s ease both; }
.screen > *, .tiles > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.screen > *:nth-child(2) { animation-delay: .05s; } .screen > *:nth-child(3) { animation-delay: .1s; }
.screen > *:nth-child(4) { animation-delay: .15s; } .screen > *:nth-child(5) { animation-delay: .2s; }
.screen > *:nth-child(6) { animation-delay: .25s; } .screen > *:nth-child(n+7) { animation-delay: .3s; }
.tiles > *:nth-child(1) { animation-delay: .12s; } .tiles > *:nth-child(2) { animation-delay: .2s; }
.tiles > *:nth-child(3) { animation-delay: .28s; } .tiles > *:nth-child(4) { animation-delay: .36s; }
/* Re-draws on the same screen stay still, so nothing jumps around while you tap */
.still .screen, .still .screen > *, .still .tiles > * { animation: none; }

/* Background glow drifts very slowly */
.backdrop::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(40% 30% at 70% 20%, rgba(178,60,94,.18), transparent 70%), radial-gradient(35% 25% at 15% 45%, rgba(220,192,138,.06), transparent 70%); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6%, 5%) scale(1.08); } }

/* A soft light sweeps across the big tiles now and then */
.tile.big::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,235,240,.07) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 7s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes sweep { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tile .glyph { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: 1; } }

/* The open card floats gently, like it is resting on air */
.pcard.flipped { animation: floaty 6s ease-in-out 1s infinite; }
@keyframes floaty { 50% { translate: 0 -5px; } }
.face.back .mono { animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { text-shadow: 0 0 22px rgba(255,200,215,.45); } }

/* Surprise fan cards breathe out of sync */
.fan .fc { animation: bob 4.5s ease-in-out infinite; }
.fan .fc:nth-child(2) { animation-delay: .6s; } .fan .fc:nth-child(3) { animation-delay: 1.2s; } .fan .fc:nth-child(4) { animation-delay: 1.8s; }
@keyframes bob { 50% { translate: 0 -6px; } }

/* Sealed envelope gives a tiny wiggle */
.envelope svg { animation: wiggle 4s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes wiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-7deg); } 90% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }

/* A freshly swapped mission slides in */
.still .screen > .mission.swapin, .mission.swapin { animation: swapin .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes swapin { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* Small touches */
.badge, .nav .nb { animation: popin .4s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes popin { from { transform: scale(0); } }
.nav button.on svg { animation: popin .35s cubic-bezier(.3,1.6,.5,1); }
.btn, .chip, .tile, .choice, .set, .envelope { transition: transform .18s ease, background .25s, border-color .25s, opacity .2s; }
.chip:active, .set:active, .envelope:active, .choice:active { transform: scale(.97); }
.t-item .check { transition: background .25s, transform .2s; }
.t-item .check:active { transform: scale(.85); }
@media (prefers-reduced-motion: reduce) { .backdrop::before, .tile.big::after { display: none; } }

/* A soft, tight glow only on the one main button of a screen */
.btn.primary.hero { box-shadow: 0 6px 16px -10px rgba(178,60,94,.55); }
.hint { margin-top: 20px !important; }

/* ---------- v2: Unfiltered, settings, our own cards ---------- */
.chip.uf.on { background: linear-gradient(135deg, rgba(120,20,50,.75), rgba(60,10,30,.85)); border-color: rgba(255,120,160,.55); color: #ffe1ea; }
.chip.uf:not(.on) { color: #f0a9bd; border-color: rgba(230,120,150,.3); }
.face.front.uf { background: radial-gradient(120% 90% at 50% 0%, #4a1229, #170910 70%); border-color: rgba(255,120,160,.32); }
.ptag { margin-left: 8px; font-size: 10px; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; background: rgba(220,192,138,.16); color: var(--gold); vertical-align: 1px; }
.hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hsel { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.hsel select.field { padding: 11px 10px; font-size: 14px; border-radius: 12px; appearance: none; -webkit-appearance: none; color: var(--text); background: rgba(255,255,255,.05); }
.panel .row.between h3 { margin: 0; }
.review { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.rv { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.03); }
.rv-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rv-text { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.sheet.still, .scrim.still { animation: none; }
