/* ============ TOKENS ============ */
/* 팔레트 출처: @jnu_f4_festival 포스터 (마젠타 핑크 그라디언트 + 화이트 글로우) */
:root {
  --backdrop: #F7CBE2;
  --ground:   #FFF1F8;
  --ticket:   #FFFFFF;
  --ticket-2: #FFF1F8;
  --ink:      #3A0E2A;
  --ink-soft: #9C6883;
  --cerise:   #FF2D82;
  --cerise-d: #E0116B;
  --gold:     #D8912B;
  --gold-ink: #935B12;
  --line:     rgba(58,14,42,0.20);
  --line-2:   rgba(58,14,42,0.09);
  --shadow:   0 12px 30px -14px rgba(58,14,42,0.35);
  --appshadow: 0 40px 90px -30px rgba(58,14,42,0.45);
  --stub-tint: rgba(255,45,130,0.07);
  --bar-bg:   rgba(255,255,255,0.86);
}
@media (prefers-color-scheme: dark) {
  :root {
    --backdrop: #1B0714;
    --ground:   #26091E;
    --ticket:   #36112B;
    --ticket-2: #401433;
    --ink:      #FCE6F1;
    --ink-soft: #D99DBB;
    --cerise:   #FF62A8;
    --cerise-d: #FF80B9;
    --gold:     #F0B45E;
    --gold-ink: #F0B45E;
    --line:     rgba(252,230,241,0.24);
    --line-2:   rgba(252,230,241,0.11);
    --shadow:   0 12px 30px -14px rgba(0,0,0,0.6);
    --appshadow: 0 40px 90px -30px rgba(0,0,0,0.8);
    --stub-tint: rgba(255,98,168,0.10);
    --bar-bg:   rgba(54,17,43,0.86);
  }
}
:root[data-theme="light"] {
  --backdrop:#F7CBE2; --ground:#FFF1F8; --ticket:#FFFFFF; --ticket-2:#FFF1F8; --ink:#3A0E2A;
  --ink-soft:#9C6883; --cerise:#FF2D82; --cerise-d:#E0116B; --gold:#D8912B; --gold-ink:#935B12;
  --line:rgba(58,14,42,0.20); --line-2:rgba(58,14,42,0.09);
  --shadow:0 12px 30px -14px rgba(58,14,42,0.35); --appshadow:0 40px 90px -30px rgba(58,14,42,0.45);
  --stub-tint:rgba(255,45,130,0.07); --bar-bg:rgba(255,255,255,0.86);
}
:root[data-theme="dark"] {
  --backdrop:#1B0714; --ground:#26091E; --ticket:#36112B; --ticket-2:#401433; --ink:#FCE6F1;
  --ink-soft:#D99DBB; --cerise:#FF62A8; --cerise-d:#FF80B9; --gold:#F0B45E; --gold-ink:#F0B45E;
  --line:rgba(252,230,241,0.24); --line-2:rgba(252,230,241,0.11);
  --shadow:0 12px 30px -14px rgba(0,0,0,0.6); --appshadow:0 40px 90px -30px rgba(0,0,0,0.8);
  --stub-tint:rgba(255,98,168,0.10); --bar-bg:rgba(54,17,43,0.86);
}

/* Figma APP palette is intentionally light in every OS/theme mode. */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --love-bg:#f8f8f8; --love-surface:#fff; --love-ink:#1b1918;
  --love-muted:#68687b; --love-accent:#fd7575; --love-accent-ink:#ea5353;
  --love-line:#eee; --love-chip:#f5f5f5;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--backdrop);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ============ PAGE TRANSITIONS ============ */
/* Native cross-document View Transitions (Chrome/Edge 126+) -- smooths out
   full-page navigations (every link/form here is a real server round trip,
   no SPA) with zero JS and zero framework. Unsupported browsers just keep
   navigating instantly like before; this is pure progressive enhancement,
   so don't gate any functionality on it firing. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .28s;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
::view-transition-old(root) { animation-name: page-out; }
::view-transition-new(root) { animation-name: page-in; }
@keyframes page-out { to { opacity: 0; transform: scale(.98); } }
@keyframes page-in { from { opacity: 0; transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ============ PHONE APP SHELL ============ */
.app {
  width: min(440px, 100%);
  margin-inline: auto;
  min-height: 100dvh;
  background: var(--ground);
  background-image:
    radial-gradient(circle at 15% 4%, var(--stub-tint), transparent 40%),
    radial-gradient(circle at 90% 96%, var(--stub-tint), transparent 44%);
  position: relative;
  display: flex; flex-direction: column;
  padding-bottom: 86px;               /* room for the bottom action bar */
  overflow: clip;
}
@media (min-width: 461px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border-radius: 34px; box-shadow: var(--appshadow); }
}
.app.no-actionbar { padding-bottom: 0; }

/* ============ HEADER ============ */
header.booth { text-align: center; padding: 1.4rem 1.4rem .6rem; }
.festchip {
  display: inline-flex; align-items: center; gap: .5ch;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); border: 1.5px solid var(--gold); border-radius: 999px;
  padding: .35rem .85rem; background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.wordmark {
  font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  margin: .8rem 0 .1rem; text-wrap: balance;
}
.wordmark em { font-style: normal; color: var(--cerise); position: relative; }
.wordmark em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .13em;
  background: var(--gold); border-radius: 2px; opacity: .85;
}
.subline { font-size: 1rem; color: var(--ink-soft); margin: .35rem auto 0; max-width: 24ch; text-wrap: balance; }
.eng-label { margin-top: .7rem; font-size: .66rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-soft); opacity: .8; }

/* ============ SECTIONS ============ */
main { padding: 0 1.15rem; display: flex; flex-direction: column; gap: 1.8rem; margin-top: 1rem; }
.section-eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cerise); margin-bottom: 1rem;
}
.section-eyebrow::after { content: ""; flex: 1; height: 1.5px; background: var(--line-2); }

/* ============ TICKETS ============ */
.tickets { display: flex; flex-direction: column; gap: 1.3rem; }
.ticket {
  position: relative; background: var(--ticket); border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.ticket::before {
  content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--line);
  border-radius: 12px; pointer-events: none; z-index: 0;
}
.ticket:active { transform: scale(.985); }
.ticket-body { position: relative; z-index: 1; padding: 1.4rem 1.4rem 1.2rem; }
.ticket-icon { font-size: 2.1rem; line-height: 1; float: right; }
.ticket-no { font-size: .68rem; letter-spacing: .09em; color: var(--ink-soft); }
.ticket-kind { display: block; margin-top: .25rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.ticket-desc { margin: .7rem 0 0; color: var(--ink-soft); font-size: .95rem; max-width: 30ch; }
.ticket ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.ticket li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.ticket li::before { content: "❤"; color: var(--cerise); font-size: .78rem; margin-top: .18rem; flex: none; }
.ticket.swipe li::before { content: "💘"; font-size: .8rem; }

.tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin: .2rem 1rem 0; z-index: 1; }
.tear::before, .tear::after {
  content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.tear::before { left: -23px; } .tear::after { right: -23px; }
.stub {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; padding: 1.1rem 1.4rem 1.3rem; background: var(--stub-tint); border-radius: 0 0 20px 20px;
}
.price-label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: block; }
/* ↓↓↓ 가격은 이 줄들에서 수정하세요 ↓↓↓ */
.price .amount { font-size: 1.95rem; font-weight: 800; color: var(--cerise); letter-spacing: -.02em; }
.price .won { font-size: .95rem; font-weight: 700; color: var(--ink); margin-left: .1ch; }
.buy-note {
  font-size: .76rem; font-weight: 700; color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: .45rem .8rem; white-space: nowrap;
  background: none; font-family: inherit; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: background .2s, color .2s, transform .15s;
}
.buy-note:hover, a.buy-note:hover { background: var(--ink); color: var(--ground); }
.buy-note:active { transform: scale(.95); }
.stamp {
  position: absolute; top: 12px; right: -4px; z-index: 2; font-size: .62rem; font-weight: 800;
  letter-spacing: .08em; color: var(--gold-ink); border: 2px solid var(--gold);
  padding: .28rem .6rem; border-radius: 6px; transform: rotate(7deg);
  background: color-mix(in srgb, var(--gold) 14%, var(--ticket)); text-transform: uppercase;
}

/* ============ STEPS ============ */
.steps { display: flex; flex-direction: column; gap: .8rem; }
.step {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--ticket);
  border-radius: 15px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); border: 1.5px solid var(--line-2);
}
.step .num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--cerise); color: #fff;
  font-weight: 800; font-size: .98rem;
}
.step h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.cash-tag { margin-top: .3rem; text-align: center; font-size: .86rem; color: var(--ink-soft); }
.cash-tag b { color: var(--ink); }

/* ============ FORM ============ */
.reg-card { position: relative; background: var(--ticket); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.reg-head {
  padding: 1.2rem 1.1rem 1.2rem 1.3rem; background: var(--cerise); color: #fff;
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
}
.reg-head h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.reg-head .tiny { font-size: .74rem; opacity: .92; }
form { padding: 1.3rem; display: grid; gap: 1.35rem; }
.field { display: grid; gap: .4rem; }
label { font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
label .req { color: var(--cerise); }
.checkbox-field {
  display: flex; align-items: center; gap: .5ch; font-size: .8rem; color: var(--ink-soft);
  font-weight: 400; margin-top: .1rem; cursor: pointer;
}
.checkbox-field input { width: 1rem; height: 1rem; accent-color: var(--cerise); flex: none; }
.hint { font-size: .72rem; color: var(--ink-soft); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--ticket-2);
  border: 1.5px solid var(--line-2); border-radius: 11px; padding: .85rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 4.2rem; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cerise);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--cerise) 22%, transparent);
}
/* ---- profile form: sections + chips (shared by the registration modal
   and /profile/edit via templates/_profile_fields.html) ---- */
.form-section { display: grid; gap: 1.05rem; }
.form-section + .form-section { border-top: 1.5px dashed var(--line-2); padding-top: 1.15rem; }
.form-section-head {
  display: flex; align-items: center; gap: .5ch; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cerise);
}
.form-section-head .fs-icon { font-size: 1rem; }
.fs-optional {
  margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); background: var(--ticket-2); border-radius: 999px; padding: .2rem .55rem;
}
.field-label { font-size: .8rem; font-weight: 700; letter-spacing: .03em; display: flex; align-items: center; gap: .5ch; }
.field-label .fl-icon { font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.counter-line { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.counter-line b { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.counter-line.is-near b { color: var(--cerise); }

/* Chips: a styled radio group. The input stays in the DOM (so the form
   submits normally and `required` still works) but is visually hidden --
   never display:none, which would drop it out of keyboard focus order. */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips-grid { max-height: 13.5rem; overflow-y: auto; }
.chips input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .86rem; font-weight: 700; line-height: 1; cursor: pointer;
  padding: .62rem .9rem; border-radius: 999px;
  background: var(--ticket-2); color: var(--ink-soft);
  border: 1.5px solid var(--line-2);
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.chip:hover { border-color: var(--line); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chips input:checked + .chip {
  background: var(--cerise); color: #fff; border-color: var(--cerise);
  box-shadow: 0 6px 16px -8px var(--cerise);
}
.chips input:focus-visible + .chip {
  outline: none; box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--cerise) 30%, transparent);
}
.chips input:checked + .chip-muted { background: var(--ink-soft); border-color: var(--ink-soft); box-shadow: none; }

/* Photo picker with live preview */
.photo-picker { display: flex; align-items: center; gap: .9rem; }
.photo-preview {
  flex: none; width: 5.2rem; height: 5.2rem; border-radius: 14px; object-fit: cover;
  background: var(--ticket-2); border: 1.5px dashed var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; opacity: .9;
}
img.photo-preview { border-style: solid; opacity: 1; }
.photo-picker-body { flex: 1; display: grid; gap: .4rem; min-width: 0; }
.photo-btn {
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; text-align: center;
  color: var(--ink); background: var(--ticket-2); border: 1.5px solid var(--line);
  border-radius: 11px; padding: .6rem .8rem;
  transition: border-color .18s, color .18s;
}
.photo-btn:hover { border-color: var(--cerise); color: var(--cerise); }
.photo-name {
  font-size: .72rem; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-picker input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }

.insta-wrap { position: relative; }
.insta-wrap span { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-weight: 700; }
.insta-wrap input { padding-left: 2rem; }
.submit {
  font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; color: #fff;
  background: var(--cerise); border: none; border-radius: 12px; padding: 1.05rem 1.2rem;
  transition: transform .15s, background .2s; box-shadow: 0 10px 24px -10px var(--cerise);
}
.submit:active { transform: scale(.98); background: var(--cerise-d); }
.form-foot { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: -.2rem; }

/* ============ PAGE HEAD (shared by swipe/likes) ============ */
.page-head { padding: 1rem 1.4rem .4rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .4ch; font-size: .82rem; font-weight: 700;
  color: var(--ink-soft); text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.page-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-top: .7rem; }
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pill-group { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.count-pill {
  flex: none; font-size: .74rem; font-weight: 700; color: var(--cerise);
  background: var(--stub-tint); border-radius: 999px; padding: .3rem .7rem; white-space: nowrap;
}
.viewer-pill { color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.viewer-pill .live-dot {
  display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold-ink);
  margin-right: .35ch; animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .viewer-pill .live-dot { animation: none; } }
.page-sub { margin: .3rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.page-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.page-links a {
  font-size: .78rem; font-weight: 700; color: var(--cerise); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35ch;
}
.page-links a:hover { color: var(--cerise-d); }

/* ============ FOOTER ============ */
footer { text-align: center; padding: 2rem 1.4rem 1.4rem; color: var(--ink-soft); font-size: .82rem; }
footer b { color: var(--ink); }
footer a { color: inherit; }

/* ============ BOTTOM ACTION BAR ============ */
.actionbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(440px, 100%); z-index: 30;
  display: flex; gap: .6rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: var(--bar-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--line-2);
}
@media (min-width: 461px) {
  .actionbar { bottom: 24px; border-radius: 0 0 34px 34px; overflow: hidden; }
}
.actionbar button, .actionbar a {
  font: inherit; font-weight: 800; cursor: pointer; border-radius: 13px; padding: .95rem .5rem;
  border: none; transition: transform .15s; text-decoration: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.actionbar button:active, .actionbar a:active { transform: scale(.97); }
.act-primary { flex: 1.6; background: var(--cerise); color: #fff; box-shadow: 0 8px 20px -10px var(--cerise); }
.act-ghost { flex: 1; background: transparent; color: var(--ink); border: 1.5px solid var(--line) !important; }

/* toast + confetti */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 140px);
  background: var(--ink); color: var(--ground); padding: .9rem 1.3rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); z-index: 50;
  transition: transform .45s cubic-bezier(.2,.9,.2,1); display: flex; align-items: center; gap: .5ch;
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* The registration <dialog> was replaced by the full-screen /profile/new
   page (2026-08-22), so its modal styles are gone. `.reg-card`/`.reg-head`
   above are still used -- by swipe.html's like-confirm dialog. */

@media (prefers-reduced-motion: reduce) {
  *, html { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1 !important; transform: none !important; }
}
.rise { opacity: 0; transform: translateY(16px); animation: rise .6s cubic-bezier(.2,.8,.2,1) forwards; }
.rise.d1 { animation-delay: .07s; } .rise.d2 { animation-delay: .14s; } .rise.d3 { animation-delay: .21s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Figma APP surfaces: shared shell for auth, onboarding, wallet and chat. */
.auth-figma, .onboard-figma, .wallet-figma, .chat-figma {
  background: #f8f8f8;
  color: #171717;
}
.auth-figma .booth { padding: 1.45rem 1.5rem 0; background: transparent; }
.auth-figma .festchip { display: none; }
.auth-figma .wordmark { font-size: 1.45rem; color: #171717; }
.auth-figma .wordmark em { color: #fd7575; }
.auth-figma .auth-wrap { padding: 15.5rem 1.5rem 1rem; }
.auth-figma .auth-card { background: #fff; border: 1px solid #e6e6ee; border-radius: 24px; box-shadow: 0 10px 30px rgba(41,39,71,.06); padding: 1.25rem 1rem 1.1rem; }
.auth-figma .auth-title { text-align: center; font-size: 1.25rem; }
.auth-figma .auth-sub { text-align: center; color: #68687b; }
.auth-figma .field { margin-bottom: .9rem; }
.auth-figma .field label { font-size: .88rem; font-weight: 700; }
.auth-figma input { height: 42px; border: 0; border-radius: 22px; background: #f5f5f5; padding-inline: 1rem; }
.auth-figma .submit, .onboard-figma .submit, .wallet-figma .submit { height: 48px; border-radius: 28px; background: #fd7575; box-shadow: none; }
.auth-figma .auth-foot { color: #68687b; }
.auth-figma footer, .onboard-figma footer, .wallet-figma footer { color: #68687b; }
.onboard-figma .onboard-hero { padding: 3.1rem 1.5rem .5rem; text-align: center; }
.onboard-figma .onboard-step { border: 0; background: transparent; color: #fd7575; padding: 0; }
.onboard-figma .onboard-title { font-size: 1.3rem; text-align: center; margin-top: .6rem; }
.onboard-figma .onboard-sub { color: #68687b; text-align: center; }
.onboard-figma .onboard-card { margin: 1.2rem 1.5rem 2rem; border: 1px solid #e6e6ee; border-radius: 24px; box-shadow: 0 10px 30px rgba(41,39,71,.06); }
.onboard-figma .form-section { border-bottom-color: #eeeef5; }
.onboard-figma .form-section-head { color: #171717; }
.onboard-figma .field input, .onboard-figma .field textarea, .onboard-figma .field select { background: #f5f5f5; border-color: #e6e6ee; border-radius: 18px; }
.wallet-figma .page-head, .chat-figma .page-head { padding: 2.8rem 1.5rem .6rem !important; }
.wallet-figma .page-title, .chat-figma .page-title { font-size: 1.35rem !important; text-align: center; }
.wallet-figma .wallet-wrap { padding: 1rem 1.5rem 2rem; }
.wallet-figma .balance-card, .wallet-figma .charge-card, .wallet-figma .history-card { border: 1px solid #e6e6ee; border-radius: 24px; box-shadow: 0 10px 30px rgba(41,39,71,.06); background: #fff; }
.wallet-figma .balance-amount { color: #fd7575; }
.wallet-figma .charge-card h3, .wallet-figma .history-card h3 { font-size: 1rem; }
.chat-figma .chat-shell { padding-inline: .4rem; }
.chat-figma .chat-log { padding: 1rem 1.1rem; }
.chat-figma .chat-msg.from-admin .chat-bubble { background: #fff; border: 1px solid #e6e6ee; box-shadow: none; }
.chat-figma .chat-msg.from-me .chat-bubble { background: #fd7575; }
.chat-figma .chat-input-row { background: #fff; border-top: 1px solid #e6e6ee; }
.chat-figma .chat-input-row input { background: #f5f5f5; border: 0; }
.chat-figma .chat-input-row button, .chat-figma .chat-quick-btn { background: #fd7575; border-color: #fd7575; }

/* Figma APP: responsive 402px reference screens, shared SSR components. */
.love-app { width:min(402px,100%); color:var(--love-ink); background:var(--love-bg); background-image:none; color-scheme:light; font-size:14px; line-height:1.4; padding-bottom:calc(100px + env(safe-area-inset-bottom)); --ink:var(--love-ink); --ink-soft:var(--love-muted); --ticket:var(--love-surface); --ticket-2:var(--love-chip); --cerise:var(--love-accent); }
.love-app [hidden], .love-dialog [hidden] { display:none !important; }
.love-app main { padding:0; margin-top:0; gap:0; }
.love-app form { padding:0; gap:0; }
.love-app .love-auth-form { gap:16px; }
.love-app label { letter-spacing:0; }
.love-input-row>span { white-space:nowrap; }
.love-app button,.love-dialog button { font:inherit; cursor:pointer; }
.love-app button:disabled,.love-dialog button:disabled { cursor:wait; opacity:.55; }
.love-app a { color:inherit; text-decoration:none; }
.love-app button:focus-visible,.love-app a:focus-visible,.love-app input:focus-visible,.love-app select:focus-visible,.love-app textarea:focus-visible,.love-dialog button:focus-visible { outline:2px solid var(--love-accent); outline-offset:4px; }
.love-brand { height:60px; position:relative; flex:none; padding-top:5px; }
.love-logo { display:block; position:relative; width:142px; height:32px; overflow:hidden; margin:0 auto; }
.love-logo img { position:absolute; width:148.91%; max-width:none; height:220.43%; left:-24.46%; top:-60.22%; }
.love-logo-large { width:185px; height:42px; }
.love-balance { display:flex; align-items:center; gap:4px; position:absolute; right:24px; top:5px; height:32px; padding:5px 10px; border:1px solid #dfdfdf; border-radius:24px; background:#fff; color:var(--love-accent) !important; font-size:15px; font-weight:600; z-index:4; }
.love-balance img { width:18px; height:18px; }.love-balance span:last-child{font-size:22px;font-weight:400;line-height:1}
.love-brand .love-logo { margin-left:calc(50% - 87px); }
.love-nav { position:fixed; bottom:0; left:50%; transform:translateX(-50%); z-index:30; width:min(402px,100%); height:calc(88px + env(safe-area-inset-bottom)); padding:20px 24px calc(20px + env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:space-between; background:var(--love-bg); box-shadow:0 -2px 8px #0000000a; }
.love-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:64px; gap:3px; font-size:11px; color:#595959; }
.love-nav img { display:block; width:31px; height:30px; object-fit:contain; }
.love-nav [aria-current] { color:var(--love-accent); }.love-nav [aria-current] img { filter:invert(58%) sepia(60%) saturate(850%) hue-rotate(315deg) brightness(107%); }
.love-primary,.love-secondary { min-height:48px; border-radius:32px; display:flex; align-items:center; justify-content:center; padding:11px 20px; font-size:18px !important; font-weight:600 !important; border:0; text-align:center; }
.love-primary { background:var(--love-accent); color:#fff !important; }
.love-secondary { background:white; color:var(--love-muted); border:1.5px solid #d9d9e6; }
.love-muted { font-size:13px; text-align:center; color:var(--love-muted) !important; }
.love-hearts { width:100px; height:80px; object-fit:contain; }
.love-welcome,.love-auth,.love-onboarding,.love-complete { padding-bottom:0; }
.love-welcome-center { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:560px; }
.love-welcome-actions { padding:0 24px 24px; display:grid; gap:12px; }
.love-auth-main { padding:200px 24px 48px !important; }
.love-auth-brand { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:30px; }
.love-auth-form { display:grid; gap:16px; }
.love-form-card { background:#fff; border-radius:24px; padding:16px; display:grid; gap:16px; }
.love-input-row { display:grid; grid-template-columns:56px minmax(0,1fr); align-items:center; gap:8px; font-size:16px; font-weight:600; }
.love-input-row input,.love-input-row select,.love-photo-form textarea { width:100%; min-width:0; height:32px; border:0; border-radius:22px; background:var(--love-chip); padding:5px 12px; color:var(--love-ink); font:inherit; font-size:15px; font-weight:400; }
.love-auth-help { margin-top:-12px; text-align:right; color:#6a6a6a; font-size:13px; }.love-auth-help summary{cursor:pointer;text-decoration:underline}.love-auth-help p{text-align:left}
.love-discover .love-brand:after { content:''; position:absolute; bottom:17px; left:calc(50% - 39px); width:78px; height:2px; background:var(--love-accent); }
.love-discover-main { padding-top:24px !important; }
.love-deck { position:relative; height:534px; }
.love-deck-card { position:absolute; left:50%; top:0; width:calc(100% - 48px); height:534px; border-radius:12px; background:#1b1918; overflow:hidden; transform:translateX(calc(-50% + var(--offset,0) * (100% + 12px))) scale(.93); opacity:.42; transition:transform .28s ease,opacity .28s; touch-action:pan-y; user-select:none; }
.love-deck-card.is-current { transform:translateX(-50%); opacity:1; z-index:2; }.love-deck-card.is-dragging{transition:none}
.love-card-photo,.love-no-photo { width:100%; height:100%; object-fit:cover; }
.love-no-photo { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#f6d8d9,#d2c1ca); }.love-no-photo img{width:90px;height:80px;object-fit:contain}
.love-card-copy { position:absolute; inset:auto 0 0; padding:95px 20px 50px; color:white; background:linear-gradient(transparent,#1b1918 80%); }
.love-card-name { font-size:30px; font-weight:600; line-height:1.2; display:block; overflow-wrap:anywhere; }
.love-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; margin-top:6px; }.love-badge { color:#4eff71; background:#406c43cc; border-radius:19px; font-size:11px; padding:3px 10px; }
.love-card-bio { font-size:14px; margin:20px 0 16px; overflow-wrap:anywhere; }
.love-tags { display:flex; flex-wrap:wrap; gap:6px; }.love-tags span { background:#ffffff0d; border:1px solid #ffffff1a; border-radius:19px; padding:4px 10px; font-size:12px; overflow-wrap:anywhere; max-width:100%; }
.love-tags.pink span { background:#fd75770d; border-color:#fd757726; color:var(--love-accent-ink); }
.love-deck-actions { position:relative; height:106px; margin-top:-18px; z-index:5; }
.love-heart-button { display:flex; align-items:center; justify-content:center; width:112px; height:112px; border:0; border-radius:50%; background:linear-gradient(150deg,#ff999d,#ff898f); margin:auto; transition:transform .18s; }
.love-heart-button img { width:72px; height:72px; object-fit:contain; }.love-heart-button:active{transform:scale(.94)}
.love-pass { position:absolute; left:36px; top:34px; border:0; background:transparent; color:#909090; display:flex; flex-direction:column; align-items:center; }.love-pass img{width:24px;height:24px}.love-pass small{font-size:10px}
.love-swipe-stamp{position:absolute;top:28px;left:20px;border:2px solid var(--love-accent);color:var(--love-accent);font-size:24px;font-weight:700;padding:4px 12px;transform:rotate(-12deg);opacity:0}.love-swipe-stamp.pass{left:auto;right:20px;transform:rotate(12deg);color:white;border-color:white}
.love-empty { min-height:400px; padding:80px 24px !important; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:16px; }.love-empty h1{font-size:20px;margin:0}.love-empty p{color:var(--love-muted);margin:0}.love-empty a{max-width:100%}
.love-profile.is-own { background:white; }.love-profile-hero{height:454px;position:relative;background:#282323;overflow:hidden}.love-profile-hero>img{width:100%;height:100%;object-fit:cover}.love-profile-hero:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0008);pointer-events:none}
.love-profile.is-detail .love-profile-hero{height:478px}
.love-profile-hero .love-balance{top:12px;background:#0007;border-color:transparent}
.love-back { position:absolute;left:18px;top:12px;z-index:4;padding:8px;border-radius:50%;background:#0004; }.love-back img{width:20px;height:24px;object-fit:contain;filter:brightness(0) invert(1)}
.love-profile.is-own .love-profile-hero{height:193px;border-radius:0 0 12px 12px}.love-own-name{position:absolute;left:24px;bottom:18px;color:white;z-index:2}.love-own-name h1{font-size:24px;margin:0;font-weight:600;max-width:230px;overflow-wrap:anywhere}
.love-photo-edit{position:absolute;right:20px;bottom:16px;color:white !important;font-size:12px;z-index:3}.love-photo-edit img,.love-edit-link img,.love-own-bio img{width:14px;height:14px;object-fit:contain}
.love-facts { margin:20px 24px; border-radius:12px;background:#f9f9fa;display:grid;grid-template-columns:repeat(4,1fr);padding:10px 4px;min-height:54px;color:var(--love-muted);align-items:center;text-align:center;font-size:13px; }.love-facts span{padding:6px;overflow-wrap:anywhere}.love-facts span+span{border-left:1px solid #d9d9e6}
.love-own-bio{margin:0 24px 20px;padding:12px;background:#fffafa;border-radius:12px}.love-own-bio a{float:right}.love-own-bio h2{font-size:14px;font-weight:500;margin:0}.love-own-bio h2 span{color:var(--love-accent)}.love-own-bio p{font-size:14px;margin:18px 12px 4px;overflow-wrap:anywhere}.love-own-tags{margin:0 24px 24px}
.love-detail-intro{position:relative;z-index:3;margin-top:-24px;padding:24px;background:#f9f9fa;border-radius:24px;}.love-detail-intro h1{font-size:30px;line-height:1.2;margin:0;overflow-wrap:anywhere}.love-detail-intro p{font-size:14px;overflow-wrap:anywhere}.love-detail-intro .love-badge{background:#d0ffd3cc;color:#008409}
.love-profile-sections{margin-top:12px;padding:24px;background:white;border-radius:24px;display:grid;gap:28px}.love-profile-sections h2{font-size:14px;font-weight:600;margin:0 0 8px}.love-profile-sections section:first-child h2{font-size:16px}.love-profile-sections p{margin:0;overflow-wrap:anywhere}.love-habits{margin:0;border-radius:12px;background:#f9f9fa;overflow:hidden}.love-habits>div{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;font-size:12px}.love-habits>div+div{border-top:1px solid #e6e6ee}.love-habits dt{color:var(--love-muted)}.love-habits dd{margin:0;text-align:right;flex-shrink:0;max-width:45%}
.love-profile-tools{padding:0 24px 16px;text-align:center}.love-edit-link{display:inline-flex;gap:4px;align-items:center;border-radius:8px;padding:3px 10px;background:#909090;color:white !important;font-size:13px}.love-account-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;font-size:12px;color:var(--love-muted);margin-top:24px}.love-account-links form{margin:0}.love-account-links button{border:0;background:none;padding:0;color:inherit;font-size:12px}.love-detail-like{position:relative;margin-top:-16px;z-index:5}
.love-likes-header{box-shadow:0 3px 5px #00000006}.love-tabs{height:56px;display:grid;grid-template-columns:1fr 1fr;text-align:center;align-items:start;padding-top:10px}.love-tabs a{font-size:18px;color:#909090;width:fit-content;justify-self:center;padding-bottom:7px}.love-tabs [aria-current]{color:#000;border-bottom:2px solid var(--love-accent)}
.love-likes-main{padding:24px !important;}.love-likes-main h1,.love-likes-main h2{font-size:18px;margin:0 0 8px;font-weight:600}.love-unread-strip{display:flex;overflow-x:auto;gap:12px;margin-right:-24px;padding-right:24px;scrollbar-width:none}.love-unread-strip::-webkit-scrollbar{display:none}.love-masked-card{position:relative;flex:none;width:147px;height:175px;border:0;border-radius:12px;text-align:left;color:white;background:radial-gradient(ellipse at 40% 20%,#d9c5c2 0,#8e9285 40%,#666270 65%,#242426 100%);padding:0;overflow:hidden}.love-masked-card:after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#1a1a1a);pointer-events:none}.love-masked-card .love-lock{position:absolute;width:64px;height:64px;object-fit:contain;top:37px;left:42px}.love-masked-card strong{position:absolute;left:12px;bottom:44px;z-index:1;font-size:16px}.love-masked-card small{position:absolute;left:12px;bottom:20px;z-index:1;font-size:11px}
.love-like-photo time,.love-masked-card time{position:absolute;top:6px;right:6px;z-index:3;background:#0008;padding:3px 6px;border-radius:4px;color:white;font-size:11px}
.love-read-section{margin-top:30px}.love-like-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.love-like-card{min-width:0;background:white;border-radius:12px;overflow:hidden;box-shadow:0 0 4px #0000001f}.love-like-photo{position:relative;height:auto;aspect-ratio:1;display:block;overflow:hidden;border-radius:12px}.love-like-photo>img{width:100%;height:100%;object-fit:cover}.love-like-copy{position:absolute;inset:auto 0 0;padding:36px 12px 12px;color:white;background:linear-gradient(transparent,#1a1a1a);}.love-like-copy strong{font-size:16px;font-weight:600;overflow-wrap:anywhere;display:block;}.love-like-copy .love-card-meta{font-size:12px;gap:4px}.love-like-copy .love-badge{font-size:9px;padding:3px 7px}.love-like-footer{min-height:57px;display:flex;align-items:stretch}.love-like-footer>button{border:0;background:none;flex:1;padding:10px}.love-later img,.love-respond img{width:28px;height:28px;object-fit:contain}.love-like-footer .love-later{border-right:1px solid #ddd;margin-block:12px;padding:0 10px}.love-waiting{font-size:12px;text-align:center;color:var(--love-muted);width:100%;margin:10px 0}.love-like-footer .love-contact{background:#65616a;color:white;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px;font-size:14px}.love-contact span{min-width:0;overflow-wrap:anywhere}.love-contact img{width:18px;height:20px;flex:none}.love-list-empty{color:var(--love-muted);font-size:14px;grid-column:1/-1;padding:30px 0;margin:0;line-height:1.8}.love-list-empty a{color:var(--love-accent)}
.love-dialog{width:256px;border:0;border-radius:8px;padding:0;overflow:hidden;color:var(--love-ink);background:white;box-shadow:0 0 8px #0002;max-height:90dvh}.love-dialog::backdrop{background:#f8f8f8cc}.love-dialog-copy{background:var(--love-bg);min-height:137px;padding:25px 20px 16px;text-align:center}.love-dialog-copy>p:first-child{font-size:18px;margin:0 0 12px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.4}.love-dialog-copy small{font-size:12px;color:var(--love-muted)}.love-dialog-actions{display:flex;height:50px;align-items:center}.love-dialog-actions button{width:50%;height:30px;border:0;background:none;display:grid;place-items:center}.love-dialog-actions button+button{border-left:1px solid #ddd}.love-dialog-actions img{width:26px;height:26px;object-fit:contain}.love-dialog-copy a{color:var(--love-accent-ink)}.love-error{font-size:13px;color:#b02c2c;margin:6px 0}
.love-toast{position:fixed;z-index:100;left:50%;bottom:120px;transform:translate(-50%,10px);padding:12px 20px;max-width:calc(100% - 48px);width:max-content;border-radius:10px;background:#333c;color:white;font-size:14px;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.love-toast.show{opacity:1;transform:translate(-50%,0)}
.love-progress{height:5px;background:#eee;border-radius:13px;margin:5px 24px 0;overflow:hidden;flex:none}.love-progress>span{display:block;height:100%;width:11.11%;background:var(--love-accent);border-radius:13px;transition:width .2s}.love-form-main{padding:0 24px !important}.love-form-step{padding-bottom:20px}.love-step-heading{text-align:center;padding-top:130px;margin-bottom:34px}.love-step-heading h1{font-size:20px;font-weight:600;margin:20px 0 12px;line-height:1.4;outline:none}.love-step-heading p{font-size:15px;color:var(--love-muted);margin:0}.love-privacy{display:grid;gap:16px;margin:18px 0 0 36px;color:#6a6a6a;font-size:13px}.love-privacy label{display:flex;gap:12px;align-items:center}.love-privacy input{width:22px;height:22px;accent-color:var(--love-accent);flex:none}
.love-tag-heading{margin-top:62px;margin-bottom:22px}.love-tag-heading h1{font-size:19px;line-height:1.45;letter-spacing:-.5px;margin:0 0 5px;font-weight:600;outline:none}.love-tag-heading h1 small{font:inherit;white-space:nowrap}.love-tag-heading p{font-size:14px;margin:0;color:#6a6a6a}.love-step-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.love-step-tabs span{font-size:12px;padding:4px 10px;border-radius:19px;background:#eee;color:var(--love-muted);line-height:1.2}.love-step-tabs .is-active{background:var(--love-accent);color:white}
.love-choice-card{border:0;border-radius:24px;background:white;min-width:0;padding:16px;margin:0 0 16px;position:relative;display:flow-root}.love-choice-card legend{float:left;display:block;width:100%;padding:0;margin-bottom:8px;font-size:14px;font-weight:600}.love-choice-list{display:flex;flex-wrap:wrap;gap:8px;clear:both}.love-choice{position:relative;display:inline-flex}.love-choice input{position:absolute;opacity:0;width:1px;height:1px}.love-choice span{border:1px solid transparent;display:block;border-radius:19px;font-size:14px;padding:4px 10px;background:var(--love-chip);color:#6a6a6a;cursor:pointer;line-height:1.2}.love-choice input:checked+span{border-color:#fd757726;background:#fd75770d;color:var(--love-accent-ink)}.love-choice input:focus-visible+span{outline:2px solid var(--love-accent);outline-offset:2px}
.love-form-controls{display:flex;gap:8px;padding:16px 0}.love-form-controls>button:first-child{flex:0 0 34%}.love-form-controls>.love-primary{flex:1;min-width:0}.love-form-support{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;color:var(--love-muted);font-size:11px;padding:0 0 14px}.love-form-support a{text-decoration:underline;color:var(--love-accent-ink)}.has-wizard .love-form-main{padding-bottom:120px !important}.has-wizard .love-form-controls{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:min(402px,100%);padding:10px 24px 4px;z-index:20;background:var(--love-bg)}.has-wizard .love-form-support{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(402px,100%);z-index:20;padding:4px 8px;background:var(--love-bg)}.love-skip{position:absolute;top:89px;right:24px;background:#0004;color:white;border:0;border-radius:4px;padding:3px 6px;font-size:12px !important}.love-form-error{background:#fff0f0;color:#b02c2c;padding:14px;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}.love-legacy-fields{background:white;border-radius:16px;padding:16px;margin:16px 0}.love-legacy-fields .love-input-row{margin-top:12px}
.love-photo-form{gap:10px;text-align:center}.love-photo-picker{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;color:#909090}.love-photo-picker>img,.love-photo-picker>#photoPreview{width:90px;height:90px;object-fit:cover;border-radius:12px;background:#f5f5f5;display:grid;place-items:center;font-size:32px}.love-file-input{width:100%;font:inherit;font-size:12px}.love-photo-form small{font-size:11px;color:var(--love-muted)}.love-bio-label{font-size:14px;font-weight:600;text-align:left;margin-top:8px}.love-photo-form textarea{min-height:64px;border-radius:12px;resize:vertical}.love-remove-photo{font-size:12px}.love-complete-main{text-align:center;padding:117px 24px 60px !important}.love-complete-card{width:171px;height:171px;position:relative;overflow:hidden;border-radius:12px;margin:0 auto 14px}.love-complete-card>img{width:100%;height:100%;object-fit:cover}.love-complete .love-step-tabs{justify-content:center}.love-complete h1{font-size:20px;font-weight:600;margin:16px 0 12px}.love-complete p{font-size:12px;color:#6a6a6a}.love-complete h2{font-size:20px;color:var(--love-accent-ink);margin-top:80px}.love-complete-action{margin-top:auto;padding:24px}
@media(min-width:461px){.love-nav{bottom:24px;border-radius:0 0 34px 34px}.has-wizard .love-form-controls{bottom:48px}.has-wizard .love-form-support{bottom:24px;border-radius:0 0 34px 34px}.love-app{min-height:max(874px,calc(100dvh - 48px))}}
@media(max-width:360px){.love-brand .love-logo{margin-left:24px;width:135px}.love-balance{right:18px}.love-card-name{font-size:26px}.love-tag-heading h1{font-size:17px}.love-facts{margin-inline:16px;font-size:11px}.love-card-copy{padding-inline:16px}.love-like-copy{padding-inline:8px}.love-like-copy strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.love-deck-card,.love-heart-button,.love-progress>span,.love-toast{transition:none !important}}
