:root {
  color-scheme: light;
  --paper: #f7f3ef;
  --paper-2: #fffdfa;
  --ink: #251d2d;
  --muted: #817987;
  --line: #ebe4e9;
  --plum: #603f69;
  --plum-dark: #432b50;
  --rose: #e78d8f;
  --rose-soft: #f8e6e3;
  --mint: #cce8dc;
  --mint-ink: #315c4b;
  --gold: #e7bf72;
  --shadow: 0 24px 64px rgba(60, 39, 64, .12);
  font-family: Tahoma, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(231, 141, 143, .75); outline-offset: 3px; }
#app { min-height: 100vh; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; color: var(--muted); gap: 12px; }
.brand-mark { display: block; flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; background: transparent; border-radius: 0; box-shadow: none; }

.demo-ribbon { position: sticky; z-index: 12; top: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 6px 12px; color: #62490f; background: #fff1c9; border-bottom: 1px solid #f2dfaa; font-size: 11px; font-weight: 700; text-align: center; }
.demo-ribbon .dot { width: 6px; height: 6px; background: #d09b2e; border-radius: 50%; }

.app-shell { width: min(100%, 1120px); min-height: 100vh; margin: auto; padding: 0 28px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 16px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.brand-lockup .brand-mark { flex-basis: 40px; width: 40px; height: 40px; }
.brand-title { font-size: 19px; font-weight: 900; letter-spacing: -.04em; }
.brand-subtitle { display: block; color: var(--muted); font-size: 10px; font-weight: 500; margin-top: 3px; text-align: right; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); cursor: pointer; transition: transform .18s ease, border .18s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: #d6c8d7; }
.icon-button svg { width: 18px; height: 18px; }
.mode-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #eadde9; border-radius: 999px; padding: 8px 11px; background: #fffafa; color: var(--plum); font-size: 11px; font-weight: 800; }
.mode-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

.welcome { min-height: calc(100vh - 32px); display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 46px; padding: 20px 0 60px; }
.welcome-copy { max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--plum); background: #eee4ef; border-radius: 999px; padding: 8px 13px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.eyebrow .spark { color: #b87744; font-size: 15px; }
.welcome h1 { max-width: 560px; margin: 22px 0 16px; font-size: clamp(38px, 5vw, 62px); line-height: 1.27; letter-spacing: -.045em; }
.welcome h1 em { color: var(--plum); font-style: normal; position: relative; white-space: nowrap; }
.welcome h1 em::after { content: ""; position: absolute; right: 0; bottom: 1px; left: 0; height: 9px; z-index: -1; background: #f3c9bd; opacity: .7; border-radius: 100%; transform: rotate(-2deg); }
.lead { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 2; margin: 0 0 28px; }
.welcome-points { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #5d5360; margin: 23px 0 34px; font-size: 12px; }
.welcome-points span { display: inline-flex; align-items: center; gap: 7px; }
.welcome-points b { color: var(--mint-ink); font-size: 15px; }
.welcome-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 530px; }
.space-choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; min-height: 160px; padding: 19px; border: 1px solid var(--line); border-radius: 23px; text-align: right; background: var(--paper-2); cursor: pointer; transition: .2s ease; overflow: hidden; }
.space-choice::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; left: -35px; bottom: -45px; background: var(--rose-soft); }
.space-choice.teen::after { background: #dceee6; }
.space-choice:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8c8dc; }
.space-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; font-size: 18px; background: var(--rose-soft); color: var(--plum); }
.space-choice.teen .space-icon { background: #e2f1e9; color: var(--mint-ink); }
.space-choice strong { font-size: 15px; }
.space-choice small { display: block; color: var(--muted); line-height: 1.7; font-size: 11px; margin-top: 5px; }
.space-choice .arrow { position: absolute; left: 17px; bottom: 20px; z-index: 1; color: var(--plum); font-size: 20px; }
.welcome-art { position: relative; min-height: 500px; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid #e6dce5; border-radius: 50%; }
.art-orbit.one { width: 410px; height: 410px; }
.art-orbit.two { width: 320px; height: 320px; border-style: dashed; opacity: .65; }
.art-glow { position: absolute; width: 310px; height: 310px; background: radial-gradient(circle at 38% 35%, #ffe7d2 0, #f1dce8 49%, #e2ddea 100%); border-radius: 48% 52% 44% 56%; filter: drop-shadow(0 25px 32px #62445c18); transform: rotate(-12deg); }
.art-card { position: absolute; display: flex; align-items: center; gap: 12px; width: 245px; padding: 13px; border: 1px solid #ffffffc9; border-radius: 18px; background: #fffdfbe8; box-shadow: 0 16px 42px #38284318; backdrop-filter: blur(10px); }
.art-card.primary { z-index: 2; transform: rotate(-5deg); }
.art-card.secondary { z-index: 1; top: 105px; right: 27px; width: 220px; opacity: .76; transform: rotate(8deg); }
.art-card.tertiary { z-index: 3; bottom: 90px; left: 4px; width: 205px; transform: rotate(6deg); }
.mini-avatar { flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 17px; color: #fff; font-weight: 800; font-size: 20px; background: linear-gradient(135deg, #ca8992, #765b86); }
.mini-avatar.mint { background: linear-gradient(135deg, #78a38d, #c4ad75); }
.mini-avatar.blue { background: linear-gradient(135deg, #7a8ca4, #b98a9d); }
.art-card strong { display: block; font-size: 12px; }
.art-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.art-spark { position: absolute; z-index: 2; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #a36579; background: #fff9f1; box-shadow: 0 12px 28px #5a3c5e20; font-size: 19px; }
.art-spark.s1 { top: 70px; left: 70px; transform: rotate(-12deg); }
.art-spark.s2 { right: 12px; bottom: 113px; width: 31px; height: 31px; font-size: 15px; transform: rotate(11deg); }
.art-caption { position: absolute; bottom: 27px; color: #887d8e; font-size: 11px; text-align: center; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .8fr); align-items: start; gap: 22px; padding-top: 9px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 18px 0 21px; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 3.3vw, 34px); letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.section-kicker { color: var(--plum); font-size: 10px; font-weight: 900; letter-spacing: .1em; margin-bottom: 8px; }
.card-surface { background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 32px rgba(65, 45, 67, .045); }

.daily-card { overflow: hidden; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .82fr); min-height: 420px; border-radius: 28px; color: #fff; background: linear-gradient(130deg, #674d70, #43334f); box-shadow: 0 25px 60px #50375228; }
.daily-card::before { content: ""; position: absolute; width: 310px; height: 310px; right: -130px; top: -130px; border-radius: 50%; background: #ffffff0b; border: 1px solid #ffffff16; }
.daily-card::after { content: ""; position: absolute; width: 205px; height: 205px; right: -65px; top: -75px; border-radius: 50%; border: 1px solid #ffffff16; }
.daily-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 27px 28px 25px; }
.daily-kicker { display: inline-flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid #ffffff2b; border-radius: 999px; background: #ffffff11; font-size: 10px; color: #f7e9dc; }
.daily-copy h2 { font-size: 27px; line-height: 1.4; margin: 21px 0 10px; letter-spacing: -.03em; }
.daily-copy p { color: #e4d9e6; font-size: 12px; line-height: 1.95; margin: 0 0 18px; max-width: 350px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.meta-pill { border-radius: 999px; border: 1px solid #ffffff2a; padding: 7px 10px; color: #f6e8e5; font-size: 10px; }
.compatibility { width: 100%; max-width: 370px; margin: auto 0 17px; padding: 12px 13px; border-radius: 15px; background: #ffffff0c; border: 1px solid #ffffff18; }
.compatibility-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #ede3ef; font-size: 10px; }
.compatibility-label b { color: #ffcfb4; font-size: 12px; }
.reason-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-tags span { padding: 6px 8px; border-radius: 8px; color: #f7e8e8; background: #ffffff12; font-size: 9px; }
.action-row { display: flex; align-items: center; gap: 9px; width: 100%; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; border: 1px solid transparent; border-radius: 13px; padding: 0 16px; font-weight: 800; font-size: 12px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { color: var(--plum-dark); background: #f4d1c1; box-shadow: 0 7px 20px #160b2422; }
.btn-primary:hover { background: #ffe0d0; }
.btn-ghost { color: #fff; background: #ffffff0a; border-color: #ffffff47; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline { background: transparent; border-color: #d7c9d9; color: var(--plum); }
.btn-mint { color: #234c3c; background: #d9efe4; }
.btn-block { width: 100%; }
.btn-round { width: 44px; flex: 0 0 44px; padding: 0; border-radius: 50%; }
.btn-small { min-height: 34px; border-radius: 10px; padding: 0 11px; font-size: 10px; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.portrait-panel { position: relative; min-height: 100%; overflow: hidden; background: linear-gradient(145deg, #dba59a, #edd8cb 44%, #a9a8ba); }
.portrait-panel::before { content: ""; position: absolute; width: 250px; height: 250px; left: -48px; bottom: -52px; border-radius: 50%; background: #f8e9d080; }
.portrait-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, #31223c88 100%); }
.portrait-art { position: absolute; inset: 14% 11% 8%; display: grid; place-items: center; }
.portrait-halo { position: absolute; width: 192px; height: 192px; border-radius: 50%; background: #fff8ea86; }
.portrait-face { position: absolute; top: 23%; width: 104px; height: 121px; border-radius: 48% 48% 42% 42%; background: linear-gradient(130deg, #edc0a8, #cf8f80); box-shadow: 0 10px 20px #503d4040; }
.portrait-hair { position: absolute; top: 16%; width: 129px; height: 110px; border-radius: 55% 56% 18% 20%; background: linear-gradient(135deg, #463b4b, #72525b); z-index: 1; clip-path: polygon(7% 9%, 86% 0, 100% 48%, 94% 100%, 78% 68%, 64% 80%, 39% 70%, 16% 100%, 0 56%); }
.portrait-body { position: absolute; bottom: 4%; width: 205px; height: 177px; border-radius: 47% 47% 8% 8%; background: linear-gradient(135deg, #6f526f, #8e6b84); }
.portrait-flower { position: absolute; z-index: 2; left: 13%; top: 22%; font-size: 25px; filter: drop-shadow(0 4px 7px #54385250); }
.portrait-label { position: absolute; z-index: 3; bottom: 16px; right: 17px; left: 17px; display: flex; justify-content: space-between; align-items: end; }
.portrait-label strong { font-size: 17px; }
.portrait-label small { display: block; font-size: 10px; color: #f5e8ee; margin-top: 5px; }
.portrait-label .verified { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: #ffffff26; border: 1px solid #ffffff50; font-size: 15px; }
.card-note { margin-top: 11px; color: #bfb2c3; font-size: 9px; }

.side-stack { display: grid; gap: 13px; }
.side-card { padding: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 14px; }
.side-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.diamond-count { display: flex; align-items: center; gap: 11px; }
.diamond-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 14px; color: #8a5c1a; background: #fff1d4; font-size: 17px; }
.diamond-count strong { font-size: 19px; }
.diamond-count small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.progress-track { height: 6px; background: #eee8ed; border-radius: 99px; margin-top: 14px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, #d28d96, #8a6a99); }
.feature-list { display: grid; gap: 13px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; }
.feature-icon { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--plum); background: #f0e8f2; font-size: 13px; }
.feature-item strong { display: block; font-size: 11px; margin: 1px 0 4px; }
.feature-item small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.privacy-card { display: flex; gap: 11px; align-items: flex-start; background: #edf4ef; border-color: #d9e7de; }
.privacy-card .feature-icon { color: #315c4b; background: #d9ebdf; }
.privacy-card h3 { margin-bottom: 6px; }
.privacy-card p { color: #5a7767; }

.panel { padding: 21px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head small { color: var(--muted); font-size: 10px; }
.club-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.club-tile { min-height: 137px; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: right; transition: .2s ease; }
.club-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 25px #48364f12; }
.club-tile .club-emoji { font-size: 24px; }
.club-tile strong { font-size: 12px; }
.club-tile small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.club-tile:nth-child(1) { background: #f7efe8; }
.club-tile:nth-child(2) { background: #edf2f4; }
.club-tile:nth-child(3) { background: #f0ecef; }
.club-tile:nth-child(4) { background: #ecf3ec; }

.friend-card { display: grid; grid-template-columns: 100px 1fr; gap: 15px; padding: 16px; }
.friend-avatar { display: grid; place-items: center; min-height: 130px; border-radius: 17px; background: linear-gradient(140deg, #a9c6b0, #e5d7b6); color: #41634f; font-size: 30px; }
.friend-info h3 { margin: 2px 0 5px; font-size: 15px; }
.friend-info p { margin: 0; font-size: 10px; line-height: 1.8; color: var(--muted); }
.friend-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.friend-tags span { border: 1px solid #dfebe3; color: #476652; background: #eff7f1; border-radius: 99px; padding: 5px 8px; font-size: 9px; }
.friend-actions { display: flex; gap: 7px; }

.room { overflow: hidden; }
.room-banner { padding: 20px; color: #294b3b; background: linear-gradient(135deg, #dcefe3, #edf0dd); }
.room-banner .room-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #ffffffa8; font-size: 22px; margin-bottom: 13px; }
.room-banner h2 { margin: 0 0 7px; font-size: 20px; }
.room-banner p { margin: 0; color: #627d6e; font-size: 11px; line-height: 1.8; }
.room-body { padding: 17px 19px 20px; }
.member-row { display: flex; align-items: center; gap: 7px; margin-bottom: 15px; }
.member-bubble { display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid #fff; border-radius: 50%; margin-right: -7px; color: #fff; background: #809e89; font-size: 10px; }
.member-bubble:nth-child(2) { background: #b07f87; }
.member-bubble:nth-child(3) { background: #8c80a2; }
.member-row small { color: var(--muted); margin-right: 8px; font-size: 10px; }
.question-card { padding: 14px; border: 1px solid #e8e0e8; border-radius: 16px; background: #fbf8fc; }
.question-card small { color: var(--plum); font-size: 9px; font-weight: 800; }
.question-card p { margin: 8px 0 0; font-size: 12px; line-height: 1.9; }
.room-actions { display: flex; gap: 8px; margin-top: 14px; }

.chat-list { display: grid; gap: 8px; }
.chat-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid transparent; border-radius: 17px; background: #fff; text-align: right; cursor: pointer; }
.chat-row:hover { background: #f8f3f8; border-color: #eee4ef; }
.chat-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 15px; color: white; background: linear-gradient(135deg, #bd8b8f, #67506f); font-weight: 800; }
.chat-row .chat-copy { flex: 1; min-width: 0; }
.chat-row strong { display: block; font-size: 12px; }
.chat-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row time { color: #a397a6; font-size: 9px; }
.chat-thread { display: flex; flex-direction: column; gap: 11px; min-height: 290px; max-height: 390px; overflow: auto; padding: 14px; background: #f8f4f6; border-radius: 18px; }
.bubble { width: fit-content; max-width: 80%; padding: 10px 13px; border-radius: 15px 15px 4px 15px; background: #fff; font-size: 11px; line-height: 1.8; box-shadow: 0 2px 9px #40284b08; }
.bubble.mine { align-self: flex-start; border-radius: 15px 15px 15px 4px; color: #fff; background: var(--plum); }
.message-form { display: flex; gap: 8px; margin-top: 11px; }
.message-form input { min-width: 0; flex: 1; min-height: 43px; border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; background: #fff; color: var(--ink); }

.bottom-nav { position: sticky; bottom: 0; z-index: 9; display: flex; justify-content: space-around; margin: 24px -28px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e9e1e7; background: #f8f4f1eF; backdrop-filter: blur(14px); }
.nav-item { display: grid; justify-items: center; gap: 4px; min-width: 64px; border: 0; padding: 3px 6px; color: #9b909f; background: transparent; cursor: pointer; font-size: 9px; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item.active { color: var(--plum); font-weight: 900; }
.nav-item.active svg { filter: drop-shadow(0 2px 4px #603f6930); }

.profile-card { padding: 20px; }
.profile-banner { display: flex; align-items: center; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; color: #fff; background: linear-gradient(135deg, #b97f88, #745a84); font-size: 24px; }
.profile-banner h2 { margin: 0; font-size: 16px; }
.profile-banner p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.profile-settings { display: grid; gap: 0; margin-top: 8px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid #f0ebef; font-size: 11px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.switch { appearance: none; width: 37px; height: 22px; border-radius: 999px; background: #ddd5df; position: relative; cursor: pointer; transition: .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 5px #0002; transition: .2s ease; }
.switch:checked { background: #83698b; }
.switch:checked::after { transform: translateX(-15px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: #241a2c88; backdrop-filter: blur(5px); }
.modal { width: min(100%, 430px); padding: 23px; border-radius: 24px; background: var(--paper-2); box-shadow: 0 30px 90px #17111a55; animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.modal-close { float: left; border: 0; background: transparent; color: var(--muted); font-size: 21px; cursor: pointer; }
.modal h2 { margin: 8px 0 8px; font-size: 20px; }
.modal p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.modal-actions { display: grid; gap: 8px; margin-top: 18px; }
.age-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 15px 0; }
.age-option { border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: white; text-align: center; cursor: pointer; }
.age-option strong { display: block; color: var(--plum); font-size: 17px; }
.age-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.age-option.selected { border-color: var(--plum); background: #f4edf5; box-shadow: 0 0 0 2px #603f6910; }
.toast { position: fixed; z-index: 40; right: 50%; bottom: 90px; max-width: calc(100% - 28px); transform: translateX(50%); padding: 12px 17px; border-radius: 14px; color: #fff; background: #35283d; box-shadow: 0 10px 30px #28182d2b; font-size: 11px; line-height: 1.7; animation: rise .2s ease-out; }
.demo-notice { display: flex; align-items: flex-start; gap: 9px; border-radius: 15px; padding: 12px 13px; color: #71571d; background: #fff4d7; font-size: 10px; line-height: 1.7; }
.demo-notice .notice-icon { font-size: 14px; }
.empty-state { padding: 35px 18px; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 13px; border-radius: 20px; background: #f2ebf2; color: var(--plum); font-size: 24px; }
.empty-state h3 { margin: 0 0 7px; font-size: 14px; }
.empty-state p { max-width: 320px; margin: auto; color: var(--muted); font-size: 10px; line-height: 1.8; }

@media (max-width: 780px) {
  .app-shell { padding: 0 18px 25px; }
  .welcome { min-height: auto; grid-template-columns: 1fr; gap: 7px; padding: 25px 0 35px; }
  .welcome-copy { max-width: none; }
  .welcome-art { order: -1; min-height: 260px; margin: -20px -20px 0; transform: scale(.79); transform-origin: center bottom; }
  .welcome h1 { font-size: clamp(35px, 9vw, 48px); margin-top: 17px; }
  .lead { font-size: 14px; }
  .art-orbit.one { width: 310px; height: 310px; }
  .art-orbit.two { width: 245px; height: 245px; }
  .art-glow { width: 220px; height: 220px; }
  .art-card.secondary { top: 37px; right: 20px; }
  .art-card.tertiary { bottom: 7px; left: 8px; }
  .art-spark.s1 { top: 28px; left: 54px; }
  .art-spark.s2 { bottom: 30px; right: 26px; }
  .art-caption { bottom: -8px; }
  .content-grid { grid-template-columns: 1fr; gap: 13px; }
  .page-heading { margin: 16px 0; }
  .daily-card { min-height: 360px; grid-template-columns: 1.08fr .75fr; }
  .daily-copy { padding: 21px 19px; }
  .daily-copy h2 { font-size: 22px; margin-top: 16px; }
  .portrait-panel { min-height: 100%; }
  .portrait-art { transform: scale(.78); transform-origin: center; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-stack .privacy-card { grid-column: 1 / -1; }
  .bottom-nav { margin-right: -18px; margin-left: -18px; }
}
@media (max-width: 540px) {
  .topbar { min-height: 70px; }
  .topbar-actions { gap: 6px; }
  .mode-chip { padding: 7px 9px; font-size: 9px; }
  .icon-button { width: 36px; height: 36px; }
  .welcome { gap: 0; }
  .welcome-art { min-height: 220px; transform: scale(.65); margin: -28px -55px -4px; }
  .welcome h1 { line-height: 1.34; }
  .welcome .lead { margin-bottom: 21px; }
  .welcome-points { gap: 9px 12px; font-size: 10px; margin: 18px 0 24px; }
  .welcome-actions { gap: 8px; }
  .space-choice { min-height: 142px; padding: 14px; border-radius: 19px; }
  .space-choice strong { font-size: 12px; }
  .space-choice small { font-size: 9px; }
  .space-icon { width: 34px; height: 34px; }
  .daily-card { min-height: 470px; grid-template-columns: 1fr; }
  .daily-copy { min-height: 350px; padding: 20px 19px 18px; }
  .daily-copy h2 { font-size: 23px; }
  .daily-copy p { max-width: 100%; }
  .compatibility { margin-top: 0; }
  .portrait-panel { min-height: 245px; }
  .portrait-art { inset: -4% 11% -8%; transform: scale(.78); }
  .portrait-halo { width: 190px; height: 190px; }
  .portrait-label { bottom: 12px; }
  .side-stack { grid-template-columns: 1fr 1fr; gap: 9px; }
  .side-card { padding: 13px; }
  .side-card h3 { font-size: 12px; }
  .side-stack .feature-list { grid-column: 1 / -1; }
  .panel { padding: 15px; }
  .club-grid { gap: 8px; }
  .club-tile { min-height: 123px; padding: 12px; }
  .friend-card { grid-template-columns: 73px 1fr; gap: 11px; padding: 12px; }
  .friend-avatar { min-height: 115px; font-size: 24px; }
  .friend-actions { flex-wrap: wrap; }
  .friend-actions .btn { flex: 1; }
  .bottom-nav { margin-top: 17px; }
  .nav-item { min-width: 53px; }
  .profile-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.feature-icon svg { width: 15px; height: 15px; }
.empty-icon svg { width: 24px; height: 24px; }

.landing-shell { padding-bottom: 25px; }
.single-action { display: block; max-width: 360px; }
.login-hint { max-width: 430px; margin: 13px 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.verification-card { max-width: 470px; margin-top: 17px; padding: 17px; border: 1px solid #dbe9df; border-radius: 18px; background: #f2faf5; }
.verification-card strong { display: block; color: var(--mint-ink); font-size: 13px; }
.verification-card p { margin: 7px 0 12px; color: #64766d; font-size: 11px; line-height: 1.8; }
.text-button { display: inline-block; border: 0; padding: 8px 4px; color: var(--plum); background: transparent; font-size: 11px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.inline-alert { max-width: 480px; padding: 12px 14px; border: 1px solid #efd1cb; border-radius: 14px; color: #8c4b48; background: #fff4f1; font-size: 11px; line-height: 1.8; }
.landing-safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -3px 0 28px; }
.landing-safety article { min-height: 140px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: #fffdfa; }
.landing-safety article > span { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 11px; color: var(--plum); background: #f3e9f1; font-size: 12px; font-weight: 900; }
.landing-safety svg { width: 17px; height: 17px; }
.landing-safety strong { display: block; font-size: 12px; }
.landing-safety p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.loading-line { padding: 9px 0; color: var(--muted); font-size: 10px; text-align: center; }
.feature-strip, .club-guidance { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 13px 15px; border: 1px solid #eadfe8; border-radius: 16px; color: #655c68; background: #fcf8fb; }
.feature-strip > span, .club-guidance > span { flex: 0 0 18px; color: var(--plum); }
.feature-strip svg, .club-guidance svg { width: 17px; height: 17px; }
.feature-strip p, .club-guidance p { margin: 0; font-size: 10px; line-height: 1.8; }
.match-list { display: grid; gap: 12px; }
.match-card { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1.5fr); align-items: center; gap: 16px; padding: 17px; }
.match-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.match-person strong, .match-person small { display: block; }
.match-person strong { font-size: 12px; }
.match-person small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
.safety-step { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid #e8e1e8; border-radius: 16px; background: #fff; }
.safety-step-copy { flex: 1; min-width: 130px; }
.safety-step strong, .safety-step small { display: block; }
.safety-step strong { font-size: 11px; }
.safety-step small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.step-badge { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: var(--plum); background: #f2e8f0; font-size: 11px; font-weight: 900; }
.form-control { display: block; width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink); background: #fff; font-size: 11px; }
textarea.form-control { resize: vertical; line-height: 1.8; }
.compact-select { max-width: 260px; min-height: 35px; margin-top: 8px; padding: 6px 9px; font-size: 10px; }
.club-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.club-emoji { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #f6eef0; font-size: 18px; }
.club-card-copy { flex: 1; min-width: 0; }
.club-card-copy strong, .club-card-copy small { display: block; }
.club-card-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.club-card-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.club-room { margin-top: 16px; }
.club-message-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; min-height: 155px; overflow-y: auto; padding: 12px; border-radius: 16px; background: #f8f4f6; }
.club-message { width: fit-content; max-width: 86%; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: white; }
.club-message.mine { align-self: flex-start; color: #fff; background: var(--plum); }
.club-message small { display: block; margin-bottom: 4px; color: #9b8e9c; font-size: 8px; }
.club-message.mine small { color: #e7dce9; }
.club-message p { margin: 0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.quiet-empty { align-self: center; margin: auto; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; }
.chat-thread .bubble small { display: block; margin-top: 5px; opacity: .7; font-size: 8px; }
.form-label { display: block; margin: 12px 0; color: #655c68; font-size: 10px; font-weight: 800; }
.form-label .form-control { margin-top: 7px; font-weight: 400; }
.form-fieldset { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.form-fieldset legend { padding: 0 5px; color: #655c68; font-size: 10px; font-weight: 800; }
.check-option { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.check-option input { accent-color: var(--plum); }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 9px 0; }
.profile-form-grid .full-width { grid-column: 1 / -1; }
.visibility-row { margin-top: 8px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.btn-danger { border: 1px solid #f0cfcc; color: #934944; background: #fff1ef; }
.btn-danger:hover { background: #fbe4e0; }
.modal-content { color: var(--muted); font-size: 11px; line-height: 1.9; }
.modal-actions .btn { justify-content: center; }
.modal-content .modal-actions { margin-top: 14px; }
.bottom-nav { grid-template-columns: repeat(5, 1fr); }
.policy-wrap { max-width: 790px; margin: 0 auto; }
.policy-card { padding: 22px; }
.policy-card h3 { margin: 19px 0 6px; font-size: 13px; }
.policy-card > p { color: var(--muted); font-size: 11px; line-height: 1.9; }
.policy-callout { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border-radius: 15px; color: var(--plum); background: #f5edf5; }
.policy-callout svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
.policy-callout p { margin: 0; font-size: 11px; font-weight: 800; line-height: 1.8; }
.policy-checks { display: grid; gap: 13px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.policy-checks .check-option { align-items: flex-start; font-size: 11px; line-height: 1.7; }
.policy-checks .check-option input { margin-top: 3px; }
.policy-checks button { justify-self: start; margin-top: 3px; }
.policy-footnote { margin-top: 15px; color: #988e99 !important; font-size: 9px !important; }
.policy-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px auto 30px; }
.field-hint { display: block; margin-top: 5px; color: #8c7f8d; font-size: 9px; font-weight: 400; }
.club-message-actions { display: flex; gap: 6px; margin-top: 3px; }
.club-message-actions .text-button { padding: 3px 0; font-size: 8px; }

@media (max-width: 720px) {
  .landing-safety { grid-template-columns: 1fr; }
  .landing-safety article { min-height: auto; }
  .match-card { grid-template-columns: 1fr; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-form-grid .full-width { grid-column: auto; }
}
