:root {
  --deep: #0F2433;
  --deeper: #0A1A26;
  --shallow: #183A4C;
  --shallow-2: #21495E;
  --line: #2C566B;
  --foam: #EAF2F1;
  --mist: #93AEB8;
  --lure: #FF4D6D;
  --lure-press: #E8395A;
  --brass: #E3AE4A;
  --kelp: #5FA89A;
  --danger: #FF6B5E;

  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 28px;
  --r-field: 14px;
  --r-pill: 999px;
  --shadow-card: 0 24px 60px -20px rgba(3, 12, 20, .75);

  --nav-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, #1C4459 0%, transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--deeper) 100%) fixed;
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--foam); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--mist); }
.small { font-size: .875rem; }

.wordmark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em;
  font-size: 1.6rem; display: inline-flex; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--foam);
}
.wordmark .icon { width: 13px; height: 25px; color: var(--brass); margin-top: 2px; }

/* ---------- layout ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; }
.row > .btn { flex: 1; }
.spacer { flex: 1; }

#app { min-height: 100%; }
.shell { display: flex; min-height: 100dvh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.page { width: 100%; max-width: 520px; margin: 0 auto; padding: 16px; flex: 1; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 520px; width: 100%; margin: 0 auto; }

/* bottom nav (mobile) */
.nav {
  position: fixed; inset: auto 0 0 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(10, 26, 38, .92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); z-index: 20;
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
  color: var(--mist); font-size: .75rem; font-weight: 600; padding: 8px 18px; border-radius: 14px; position: relative;
}
.nav a .icon { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--foam); }
.nav a[aria-current="page"] .icon { color: var(--brass); }
.nav .wordmark { display: none; }
.badge-dot { position: absolute; top: 6px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--lure); border: 2px solid var(--deeper); }

@media (min-width: 900px) {
  .main { padding-bottom: 0; }
  .nav {
    position: sticky; top: 0; inset: auto; height: 100dvh; width: 232px; flex: none;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px;
    padding: 28px 16px; border-top: 0; border-right: 1px solid var(--line); background: rgba(10, 26, 38, .6);
  }
  .nav .wordmark { display: inline-flex; margin: 0 12px 28px; }
  .nav a { flex-direction: row; gap: 12px; font-size: 1rem; padding: 12px; }
  .nav a[aria-current="page"] { background: var(--shallow); }
  .badge-dot { top: 12px; left: 28px; right: auto; }
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--lure); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--lure-press); }
.btn.secondary { background: var(--shallow); color: var(--foam); }
.btn.secondary:hover:not(:disabled) { background: var(--shallow-2); }
.btn.ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--mist); text-decoration: underline; cursor: pointer; font-size: .9rem; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 0; color: var(--foam); cursor: pointer;
}
.icon-btn:hover { background: var(--shallow); }

label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
label.field .hint { font-weight: 400; color: var(--mist); font-size: .82rem; }
.hint { font-weight: 400; color: var(--mist); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-field);
  background: var(--deeper); border: 1.5px solid var(--line); outline: none; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--brass); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.error-text { color: var(--danger); font-size: .88rem; min-height: 1.2em; }

/* choice chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent;
  cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--foam);
}
.chip[aria-pressed="true"] { background: var(--foam); color: var(--deep); border-color: var(--foam); }

/* toggle */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch input { appearance: none; width: 52px; height: 32px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--foam); transition: transform .2s; }
.switch input:checked { background: var(--kelp); }
.switch input:checked::after { transform: translateX(20px); }

/* range */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 4px; }
input[type=range]::-moz-range-track { height: 4px; background: var(--line); border-radius: 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brass); margin-top: -10px; border: 3px solid var(--deep); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--brass); border: 3px solid var(--deep); cursor: pointer; }
.dual-range { position: relative; height: 28px; }
.dual-range::before { content: ''; position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--brass); left: calc(12px + (100% - 24px) * var(--lo, 0)); right: calc(12px + (100% - 24px) * (1 - var(--hi, 1))); }
.dual-range input:first-child::-webkit-slider-runnable-track { background: transparent; }
.dual-range input:first-child::-moz-range-track { background: transparent; }
.dual-range { background: linear-gradient(var(--line), var(--line)) center / 100% 4px no-repeat; border-radius: 4px; }
.dual-range input { position: absolute; inset: 0; pointer-events: none; }
.dual-range input::-webkit-slider-thumb { pointer-events: auto; }
.dual-range input::-moz-range-thumb { pointer-events: auto; }
.dual-range input + input::-webkit-slider-runnable-track { background: transparent; }
.dual-range input + input::-moz-range-track { background: transparent; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .95rem; }
.range-head output { font-family: var(--font-display); font-size: 1.15rem; color: var(--brass); }

.panel { background: var(--shallow); border-radius: 22px; padding: 20px; }
.panel.flat { background: rgba(24, 58, 76, .5); }

/* ---------- auth / welcome ---------- */
.welcome { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
.welcome-stage { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 24px 0 32px; }
.welcome-line {
  position: absolute; top: -20px; left: 62%; width: 2px; height: 46%; background: linear-gradient(var(--mist), var(--foam));
  opacity: .55; transform-origin: top; animation: lineDrop 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.welcome-hook { position: absolute; left: calc(62% - 18px); top: calc(46% - 26px); width: 34px; height: 62px; color: var(--brass); animation: hookDrop 1.4s cubic-bezier(.2,.7,.2,1) both, sway 4s 1.4s ease-in-out infinite; transform-origin: 22px 0; }
@keyframes lineDrop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hookDrop { from { transform: translateY(-46vh); } to { transform: translateY(0); } }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
.welcome h1 { max-width: 11ch; }
.welcome .lede { color: var(--mist); font-size: 1.08rem; max-width: 34ch; }
.welcome-actions { display: flex; flex-direction: column; gap: 12px; }
.legal { color: var(--mist); font-size: .8rem; text-align: center; margin-top: 4px; }
.demo-banner { background: rgba(227, 174, 74, .14); color: var(--brass); border-radius: 12px; padding: 10px 14px; font-size: .85rem; }

.auth-page { max-width: 440px; margin: 0 auto; padding: 16px 20px 40px; min-height: 100dvh; display: flex; flex-direction: column; gap: 24px; }

/* ---------- onboarding ---------- */
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brass); transition: width .3s; }
.step-foot { margin-top: auto; padding-top: 24px; display: flex; gap: 12px; }
.step-foot .btn { flex: 1; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot {
  aspect-ratio: 3 / 4; border-radius: 16px; background: var(--deeper); border: 1.5px dashed var(--line);
  position: relative; overflow: hidden; display: grid; place-items: center; color: var(--mist); cursor: pointer;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot.filled { border-style: solid; border-color: transparent; }
.photo-slot .remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(10,26,38,.8); border: 0; color: var(--foam); display: grid; place-items: center; cursor: pointer; }
.photo-slot .remove .icon { width: 16px; height: 16px; }
.photo-slot .main-tag { position: absolute; left: 6px; bottom: 6px; background: var(--brass); color: var(--deep); font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- discover ---------- */
.discover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 4px; max-width: 520px; margin: 0 auto; width: 100%; }
.discover-head .wordmark { font-size: 1.45rem; }
@media (min-width: 900px) { .discover-head .wordmark { visibility: hidden; } }
.radius-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill);
  background: var(--shallow); border: 0; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--foam);
}
.radius-pill .icon { width: 18px; height: 18px; color: var(--brass); }

.deck-wrap { flex: 1; display: flex; flex-direction: column; max-width: 520px; width: 100%; margin: 0 auto; padding: 8px 16px 16px; min-height: 0; }
.deck { position: relative; flex: 1; min-height: 440px; max-height: 720px; }
.swipe-hint { text-align: center; font-size: .8rem; color: var(--mist); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 0; }
.swipe-hint .icon { width: 16px; height: 16px; }

.card {
  position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden; background: var(--shallow);
  box-shadow: var(--shadow-card); touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: transform; cursor: grab;
}
.card:active { cursor: grabbing; }
.card.behind { transform: scale(.95) translateY(14px); filter: brightness(.7); transition: transform .3s, filter .3s; pointer-events: none; }
.card .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,38,.35) 0%, transparent 18%, transparent 45%, rgba(10,26,38,.92) 100%); pointer-events: none; }
.card .bars { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 5px; }
.card .bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(234,242,241,.3); }
.card .bars span.on { background: var(--foam); }
.card .tap { position: absolute; top: 0; bottom: 40%; width: 40%; }
.card .tap.prev { left: 0; } .card .tap.next { right: 0; }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.card .name { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.card .name .age { font-weight: 400; opacity: .85; }
.card .meta { display: flex; align-items: center; gap: 6px; color: var(--foam); opacity: .85; font-size: .92rem; }
.card .meta .icon { width: 16px; height: 16px; }
.card .intent { align-self: flex-start; background: rgba(227,174,74,.2); color: var(--brass); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 99px; }
.card .bio { font-size: .98rem; max-width: 40ch; }

.card .stamp {
  position: absolute; left: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  padding: 6px 18px; border-radius: 14px; border: 3px solid currentColor; opacity: 0; pointer-events: none;
  transform: translateX(-50%) rotate(-6deg); letter-spacing: -0.02em;
}
.card .stamp.hook { top: 28%; color: var(--lure); background: rgba(10,26,38,.55); }
.card .stamp.release { bottom: 40%; color: var(--mist); background: rgba(10,26,38,.55); transform: translateX(-50%) rotate(5deg); }

/* fishing line + hook overlay */
.rig { position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: 6; pointer-events: none; }
.rig .line { position: absolute; left: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(rgba(234,242,241,.15), rgba(234,242,241,.85)); transform-origin: bottom; }
.rig .hook { position: absolute; left: -22px; top: -6px; width: 32px; height: 60px; color: var(--brass); filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.splash { position: absolute; left: 50%; width: 90px; height: 90px; margin-left: -45px; border-radius: 50%; border: 2px solid var(--brass); opacity: 0; pointer-events: none; z-index: 7; }
.bubble { position: absolute; border-radius: 50%; border: 1.5px solid rgba(234,242,241,.6); pointer-events: none; z-index: 7; }

.actions { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 14px 0 4px; }
.act { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.act:active { transform: scale(.92); }
.act .icon { width: 28px; height: 28px; }
.act.release { background: var(--shallow); color: var(--mist); }
.act.hook { width: 76px; height: 76px; background: var(--lure); color: #fff; box-shadow: 0 10px 30px -8px rgba(255,77,109,.6); }
.act.hook .icon { width: 22px; height: 40px; }
.act.info { width: 48px; height: 48px; background: transparent; color: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); }
.act.info .icon { width: 20px; height: 20px; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 20px; }
.empty .icon { width: 40px; height: 74px; color: var(--brass); opacity: .8; }
.empty p { max-width: 32ch; }

/* match moment */
.match-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,26,38,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; animation: fade .25s ease both; }
.match-overlay h2 { font-size: clamp(2.6rem, 10vw, 3.6rem); letter-spacing: -0.04em; }
.match-pair { display: flex; align-items: center; }
.match-pair img { width: 120px; height: 150px; object-fit: cover; border-radius: 22px; border: 3px solid var(--deep); }
.match-pair img:first-child { transform: rotate(-7deg) translateX(14px); }
.match-pair img:last-child { transform: rotate(7deg) translateX(-14px); }
.match-pair .icon { position: relative; z-index: 2; width: 34px; height: 62px; color: var(--brass); margin: 0 -10px; }
.match-overlay .actions-col { display: flex; flex-direction: column; gap: 12px; width: min(340px, 100%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- matches ---------- */
.section-title { font-size: 1.05rem; margin: 18px 0 10px; }
.new-matches { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.new-matches a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; align-items: center; flex: none; width: 82px; font-weight: 600; font-size: .85rem; }
.new-matches img { width: 82px; height: 104px; object-fit: cover; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--brass); outline: 2px solid var(--brass); outline-offset: -2px; }
.convo { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 16px; text-decoration: none; }
.convo:hover { background: rgba(24,58,76,.6); }
.convo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.convo .txt { flex: 1; min-width: 0; }
.convo .who { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.convo .who time { color: var(--mist); font-weight: 500; font-size: .82rem; }
.convo .last { color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .93rem; }
.convo .last.unread { color: var(--foam); font-weight: 600; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom)); max-width: 620px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .chat { height: 100dvh; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-head .name { font-weight: 700; flex: 1; }
.chat-head .name small { display: block; font-weight: 400; color: var(--mist); font-size: .8rem; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.safety-note { display: flex; gap: 10px; align-items: flex-start; background: rgba(95,168,154,.12); color: #BFE0D9; border-radius: 14px; padding: 12px 14px; font-size: .86rem; margin-bottom: 10px; }
.safety-note .icon { width: 18px; height: 18px; color: var(--kelp); margin-top: 1px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 20px; line-height: 1.4; word-wrap: break-word; }
.msg.them { align-self: flex-start; background: var(--shallow); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--lure); color: #fff; border-bottom-right-radius: 6px; }
.msg-time { align-self: center; color: var(--mist); font-size: .75rem; margin: 8px 0 2px; }
.composer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.composer input { border-radius: var(--r-pill); }
.composer .send { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--lure); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .send:disabled { background: var(--shallow); color: var(--mist); }

/* ---------- sheet & toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(5,14,22,.6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet { width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; background: var(--deep); border-radius: 26px 26px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .22s; border: 1px solid var(--line); border-bottom: 0; }
.sheet-backdrop.open .sheet { transform: none; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.menu-list { display: flex; flex-direction: column; }
.menu-list button { text-align: left; padding: 16px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 1rem; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button.danger { color: var(--danger); }

.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px); background: var(--foam); color: var(--deep); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #fff; }

/* profile detail sheet */
.detail-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; }
.detail-photos img { width: 100%; flex: none; aspect-ratio: 4/5; object-fit: cover; scroll-snap-align: start; border-radius: 18px; }

.loading { flex: 1; display: grid; place-items: center; min-height: 60vh; }
.loading .icon { width: 30px; height: 56px; color: var(--brass); animation: sway 1.2s ease-in-out infinite; transform-origin: 22px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.card.enter { animation: rise .28s ease-out; }
@keyframes rise { from { transform: scale(.95) translateY(14px); filter: brightness(.7); } to { transform: none; filter: none; } }
@media (min-width: 900px) {
  .nav a.wordmark { font-size: 1.6rem; gap: 2px; padding: 0; color: var(--foam); font-weight: 800; }
}
.card.spotlight { box-shadow: 0 0 0 3px var(--brass), var(--shadow-card); }
.spot-tag { position: absolute; top: 24px; right: 16px; background: var(--brass); color: var(--deep); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 99px; }

/* Temptd+ perks on cards */
.card .perk { align-self: flex-start; font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 99px; color: var(--deep); }
.card .perk.spot { background: var(--brass); }
.card .perk.lure { background: var(--lure); color: #fff; }
.card.spotlit { box-shadow: 0 0 0 3px var(--brass), var(--shadow-card); }

/* Bites */
.bites-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bite { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--shallow); }
.bite img { width: 100%; height: 100%; object-fit: cover; }
.bite span { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--foam); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.bites-locked { position: relative; height: 200px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; text-align: center; background: linear-gradient(120deg, rgba(255,77,109,.45), var(--shallow-2) 60%); }
.bites-locked h2 { position: relative; padding: 0 20px; }
