@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap");

:root {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #44383a;
  background: #faf6f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #44383a;
  --muted: #8c7e7d;
  --rose: #e9867e;
  --rose-dark: #d77370;
  --cream: #faf6f1;
  --paper: #fffdfa;
  --line: #eee5de;
  --green: #88a795;
  --shadow: 0 18px 60px rgba(82, 57, 49, .08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
a { color: inherit; text-decoration: none; }
em { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
[hidden] { display: none !important; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-screen p { margin: 0; font-size: 14px; }
.topline { max-width: 1240px; padding: 22px 30px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.7px; }
.brand-icon, .brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--rose); font-size: 21px; }
.brand-accent { color: var(--rose-dark); }
.install-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; }
main { width: min(1240px, calc(100% - 48px)); margin: 8px auto 70px; }
.auth-layout { min-height: calc(100vh - 120px); display: grid; grid-template-columns: 1.02fr .98fr; border-radius: 32px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.welcome-panel { position: relative; padding: 64px 60px; overflow: hidden; background: #f3e4dc; }
.welcome-panel::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(221,155,137,.28); border-radius: 50%; right: -220px; top: -160px; }
.welcome-panel::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(221,155,137,.2); border-radius: 50%; right: -165px; top: -110px; }
.welcome-art { height: 245px; position: relative; display: flex; align-items: center; justify-content: center; }
.sun-orbit { position: absolute; width: 196px; height: 196px; border-radius: 50%; background: #f4d5c3; box-shadow: 0 0 0 18px rgba(242,207,188,.36), 0 0 0 36px rgba(242,207,188,.2); }
.pet-illustration { z-index: 1; position: relative; width: 142px; height: 142px; display: grid; place-items: center; border-radius: 46% 46% 43% 43%; background: #fff9f0; box-shadow: 0 14px 30px rgba(113,76,63,.13); font-size: 87px; }
.pet-caption { position: absolute; bottom: 8px; z-index: 2; padding: 10px 17px; border-radius: 999px; background: #fffaf6; color: #836d68; font-size: 12px; box-shadow: 0 6px 15px rgba(113,76,63,.08); }
.heart-float { position: absolute; z-index: 2; color: var(--rose-dark); }
.heart-one { top: 27px; left: 23%; font-size: 30px; transform: rotate(-14deg); }
.heart-two { top: 65px; right: 20%; font-size: 25px; color: #d7a65c; }
.eyebrow { margin: 0; color: #a6847c; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
.welcome-panel h1, .setup-intro h1 { margin: 14px 0; font-size: clamp(33px, 4vw, 48px); line-height: 1.14; letter-spacing: -1.4px; font-weight: 600; }
.welcome-panel h1 em, .setup-intro h1 em { color: var(--rose-dark); }
.welcome-copy { max-width: 420px; margin: 0; color: #766966; font-size: 15px; line-height: 1.8; }
.welcome-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.welcome-points span { padding: 9px 12px; border: 1px solid rgba(180,137,123,.22); border-radius: 999px; color: #927b74; font-size: 10px; }
.auth-side { display: grid; place-items: center; padding: 48px 52px; }
.auth-card { width: min(100%, 400px); }
.auth-card h2, .pair-option h2 { margin: 8px 0 6px; font-family: "Playfair Display", Georgia, serif; font-size: 32px; font-weight: 500; }
.muted { color: var(--muted); line-height: 1.65; }
.auth-card > .muted { margin: 0 0 23px; font-size: 13px; }
.auth-form { display: grid; gap: 13px; }
.forgot-wrap { margin-top: -6px; text-align: right; }
label { display: grid; gap: 7px; color: #706364; font-size: 11px; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid #e8dfd8; border-radius: 13px; outline: none; background: #fff; color: var(--ink); transition: border .2s, box-shadow .2s; }
input { min-height: 46px; padding: 0 14px; }
textarea { min-height: 104px; resize: vertical; padding: 13px 14px; line-height: 1.55; }
input:focus, textarea:focus { border-color: #e7a29a; box-shadow: 0 0 0 3px rgba(233,134,126,.13); }
input::placeholder, textarea::placeholder { color: #b9aaa5; font-weight: 400; }
.button { min-height: 45px; padding: 0 17px; border: 0; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover:not(:disabled) { background: #59474a; box-shadow: 0 6px 16px rgba(68,56,58,.15); }
.button-rose { color: white; background: var(--rose); }
.button-rose:hover:not(:disabled) { background: var(--rose-dark); }
.button-wide { width: 100%; }
.auth-form .button { margin-top: 3px; }
.button-google { border: 1px solid var(--line); background: white; color: var(--ink); }
.google-g { color: #4285f4; font-size: 16px; font-weight: 700; }
.divider, .or-line { display: flex; align-items: center; gap: 12px; margin: 15px 0; color: #b19f99; font-size: 10px; }
.divider::before, .divider::after, .or-line::before, .or-line::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.mode-switch { margin: 17px 0 8px; text-align: center; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--rose-dark); font-size: 11px; font-weight: 700; }
.privacy-note { margin: 12px 0 0; text-align: center; color: #a39892; font-size: 10px; }
.demo-note { display: flex; gap: 9px; margin-top: 22px; padding: 12px; border-radius: 12px; background: #faf4ee; color: #97877e; font-size: 10px; line-height: 1.55; }
.demo-note span { color: var(--rose); font-size: 15px; }
.notice { display: grid; gap: 4px; margin: 15px 0; padding: 12px 14px; border-radius: 12px; font-size: 11px; line-height: 1.5; }
.notice-warn { background: #fbf0dd; color: #856b40; }
.form-message { min-height: 17px; margin: 10px 0 0; color: #607f6a; font-size: 11px; line-height: 1.55; }
.form-message.is-error { color: #be6561; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.setup-layout { min-height: calc(100vh - 130px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; padding: 40px 6%; border-radius: 32px; background: #f3e4dc; }
.setup-intro > p:not(.eyebrow) { max-width: 340px; color: #766966; font-size: 14px; line-height: 1.8; }
.setup-pet { position: relative; display: grid; place-items: center; width: 165px; height: 165px; margin-top: 30px; border-radius: 50%; background: #f4d5c3; font-size: 90px; }
.setup-pet span { position: absolute; top: 9px; right: 15px; color: #c59c57; font-size: 28px; }
.setup-card { padding: 30px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.account-row { display: flex; align-items: center; gap: 12px; }
.account-row > div { flex: 1; display: grid; gap: 3px; min-width: 0; }
.account-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-row small { color: var(--muted); font-size: 10px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f8e5df; color: var(--rose-dark); font-size: 13px; font-weight: 700; }
.setup-divider { height: 1px; margin: 22px 0; background: var(--line); }
.setup-options { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 15px; }
.pair-option { min-width: 0; }
.option-kicker { color: #a48b83; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.pair-option h2 { margin-top: 8px; font-size: 22px; }
.pair-option p { min-height: 52px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.or-line { margin: 0; }
.join-form { display: grid; gap: 9px; }
.join-form input { text-align: center; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.setup-footnote { display: flex; align-items: center; gap: 7px; margin: 19px 0 0; color: #9b8f88; font-size: 10px; }

.app-view { padding-top: 14px; }
.app-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.app-header h1 { margin: 7px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(27px, 4vw, 39px); font-weight: 500; letter-spacing: -.8px; }
.app-header h1 em { color: var(--rose-dark); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; }
.profile-chip { display: flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.profile-chip > span:nth-child(2) { max-width: 130px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; font-size: 10px; }
.profile-chip small { color: var(--rose-dark); font-size: 9px; }
.pair-pending { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #f1d7c3; border-radius: 17px; background: #fff8ed; }
.pending-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: #f7e5d8; color: var(--rose-dark); font-size: 19px; }
.pair-pending > div:nth-child(2) { flex: 1; }
.pair-pending strong { font-size: 12px; }
.pair-pending p { margin: 4px 0 0; color: #94827b; font-size: 10px; }
.invite-code-wrap { display: grid; justify-items: end; gap: 2px; }
.invite-code-wrap > span { color: #a28d83; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.invite-code-wrap > strong { color: var(--rose-dark); font-size: 14px; letter-spacing: 1px; }
.invite-code-wrap button { border: 0; background: none; color: #7b8f7e; font-size: 9px; }
.app-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.panel { position: relative; padding: 22px; border: 1px solid rgba(235,224,217,.8); border-radius: 20px; background: var(--paper); box-shadow: 0 7px 22px rgba(82,57,49,.035); }
.question-panel { grid-row: span 2; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.panel-heading > div { display: flex; align-items: center; gap: 8px; }
.panel-heading .eyebrow { color: #9b8781; font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #86b092; box-shadow: 0 0 0 4px #eaf3eb; }
.date-label { color: #ab9e98; font-size: 9px; text-transform: uppercase; }
.question-text { margin: 28px 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 25px; line-height: 1.38; }
.question-prompt { margin: 0 0 14px; color: #9b8e8b; font-size: 11px; line-height: 1.65; }
.answer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 11px; }
.answer-actions > span { color: #aa9d98; font-size: 9px; }
.points-foot { display: flex; align-items: center; gap: 8px; margin-top: 21px; padding-top: 14px; border-top: 1px solid #f1ebe6; color: #9c8e89; font-size: 10px; }
.points-foot > span:first-child { color: var(--rose); font-size: 15px; }
.points-foot strong { margin-left: auto; color: #829987; font-size: 10px; }
.answer-status { display: flex; gap: 10px; margin-top: 15px; padding: 12px; border-radius: 12px; background: #f1f6f0; }
.answer-check { width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dcebdd; color: #63836b; }
.answer-status > span:last-child { display: grid; gap: 5px; }
.answer-status strong { color: #65836b; font-size: 10px; }
.answer-status small { color: #756d68; font-size: 11px; line-height: 1.6; }
.pet-level { padding: 6px 9px; border-radius: 999px; background: #fbf0e4; color: #a88759; font-size: 8px; letter-spacing: .8px; }
.pet-level strong { margin-left: 2px; }
.pet-stage { height: 135px; position: relative; display: grid; place-items: center; overflow: hidden; }
.pet-glow { position: absolute; width: 118px; height: 118px; border-radius: 50%; background: #f7e7dc; box-shadow: 0 0 0 14px #fbf3ed; }
.pet-face { position: relative; z-index: 1; filter: drop-shadow(0 7px 8px rgba(121,79,62,.12)); font-size: 76px; }
.pet-spark { position: absolute; z-index: 2; color: #c2a05e; }
.pet-spark-a { top: 17px; right: 27%; font-size: 20px; }
.pet-spark-b { bottom: 23px; left: 24%; color: var(--rose); font-size: 16px; }
.pet-title-row { display: flex; align-items: center; justify-content: space-between; }
.pet-title-row h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 21px; font-weight: 500; }
.pet-title-row h2 span { color: var(--rose); font-family: sans-serif; font-size: 15px; }
.pet-title-row p { margin: 4px 0 0; color: #a2938e; font-size: 9px; }
.affection { display: flex; align-items: baseline; gap: 3px; color: var(--rose-dark); font-size: 20px; }
.affection small { font-size: 11px; }
.meter-label { display: flex; justify-content: space-between; margin: 17px 0 7px; color: #9e918c; font-size: 9px; }
.meter { height: 6px; overflow: hidden; border-radius: 99px; background: #f3ece6; }
.meter span { height: 100%; display: block; border-radius: inherit; background: #d7a976; transition: width .3s; }
.pet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.care-button { min-height: 48px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; padding: 7px 9px; border: 1px solid #eee3dd; border-radius: 12px; background: #fffdfa; color: #6d5b59; text-align: left; font-size: 10px; font-weight: 700; }
.care-button > span { grid-row: span 2; color: var(--rose); font-size: 17px; }
.care-button small { color: #a49690; font-size: 8px; font-weight: 500; }
.care-button:hover:not(:disabled) { border-color: #e8b6ac; background: #fff9f5; }
.pet-status { min-height: 14px; margin: 9px 0 0; color: #a2948e; font-size: 9px; }
.points-panel { min-height: 155px; display: flex; align-items: center; gap: 19px; overflow: hidden; background: #eaf0e8; }
.points-icon { width: 67px; height: 67px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #d8e4d8; color: #8ca58f; font-size: 30px; }
.points-panel .eyebrow { color: #829486; }
.points-value { display: flex; align-items: baseline; gap: 7px; margin: 3px 0; color: #637c68; }
.points-value strong { font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.points-value span { font-size: 11px; }
.points-panel .muted { margin: 0; font-size: 9px; }
.ledger-note { margin-left: auto; max-width: 125px; color: #849485; font-size: 9px; line-height: 1.5; }
.ledger-note span { color: #b29a63; }
.partner-panel { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
.partner-panel .panel-heading { min-width: 205px; }
.privacy-pill { padding: 6px 8px; border-radius: 999px; background: #edf4ed; color: #78917b; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.partner-answer { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.answer-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f8e7e1; color: var(--rose-dark); }
.partner-answer > div { min-width: 0; }
.partner-answer strong { display: block; margin-bottom: 4px; font-size: 10px; }
.partner-answer p { margin: 0; color: #938581; font-size: 10px; line-height: 1.5; }
.danger-link { color: #b66d68; }
.rewards-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 22px; align-items: center; margin-top: 19px; padding: 24px; border-radius: 20px; background: #f3e4dc; }
.rewards-panel h2 { margin: 7px 0; font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 500; }
.rewards-panel h2 em { color: var(--rose-dark); }
.rewards-panel .muted { margin: 0; font-size: 10px; }
.reward-placeholders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.reward-placeholders article { display: grid; justify-items: center; gap: 5px; padding: 13px 7px; border: 1px solid rgba(200,161,146,.25); border-radius: 14px; background: rgba(255,253,250,.7); }
.reward-placeholders article > span { font-size: 24px; }
.reward-placeholders strong { font-size: 10px; }
.reward-placeholders small { color: #a68d83; font-size: 8px; }
.partner-disclosure { grid-column: 1 / -1; margin: -7px 0 0; color: #9c8c85; font-size: 9px; line-height: 1.5; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 19px 2px; color: #aa9c96; font-size: 9px; }
.toast { position: fixed; z-index: 10; bottom: 22px; left: 50%; max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 99px; background: var(--ink); color: white; font-size: 11px; box-shadow: 0 10px 30px rgba(53,42,43,.2); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(55,43,43,.38); backdrop-filter: blur(4px); }
.reset-card { width: min(100%, 400px); display: grid; gap: 13px; padding: 28px; border-radius: 22px; background: var(--paper); box-shadow: 0 20px 70px rgba(43,31,31,.2); }
.reset-card h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 27px; font-weight: 500; }
.reset-card > .muted { margin: -5px 0 4px; font-size: 12px; }
.reset-card .form-message { margin-top: 0; }

@media (max-width: 900px) {
  main { width: min(100% - 30px, 660px); }
  .auth-layout { grid-template-columns: 1fr; }
  .welcome-panel { padding: 36px 38px; }
  .welcome-art { height: 170px; }
  .sun-orbit { width: 130px; height: 130px; box-shadow: 0 0 0 12px rgba(242,207,188,.36), 0 0 0 24px rgba(242,207,188,.2); }
  .pet-illustration { width: 100px; height: 100px; font-size: 61px; }
  .pet-caption { bottom: -1px; }
  .welcome-panel h1 { font-size: 36px; }
  .welcome-points { margin-top: 18px; }
  .auth-side { padding: 36px; }
  .setup-layout { grid-template-columns: 1fr; gap: 20px; padding: 34px; }
  .setup-intro { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
  .setup-intro .eyebrow, .setup-intro h1, .setup-intro > p:not(.eyebrow) { grid-column: 1; }
  .setup-intro h1 { margin: 8px 0; font-size: 34px; }
  .setup-pet { grid-column: 2; grid-row: 1 / span 3; width: 110px; height: 110px; margin: 0; font-size: 60px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .question-panel { grid-row: span 2; }
  .partner-panel { grid-column: 1 / -1; }
  .rewards-panel { grid-template-columns: 1fr; }
  .partner-disclosure { margin: 0; }
}

@media (max-width: 620px) {
  .topline { padding: 16px 18px; }
  main { width: calc(100% - 22px); margin-top: 3px; }
  .brand { font-size: 18px; }
  .auth-layout { border-radius: 24px; }
  .welcome-panel { padding: 26px 25px; }
  .welcome-art { height: 151px; }
  .welcome-panel h1 { margin: 10px 0; font-size: 31px; }
  .welcome-copy { font-size: 12px; }
  .welcome-points { gap: 6px; }
  .welcome-points span { padding: 7px 9px; font-size: 8px; }
  .auth-side { padding: 29px 22px; }
  .auth-card h2 { font-size: 28px; }
  .setup-layout { padding: 22px 15px; border-radius: 24px; }
  .setup-intro { padding: 0 8px; }
  .setup-intro h1 { font-size: 29px; }
  .setup-intro > p:not(.eyebrow) { font-size: 12px; }
  .setup-pet { width: 80px; height: 80px; font-size: 46px; }
  .setup-card { padding: 19px 16px; }
  .setup-options { grid-template-columns: 1fr; gap: 8px; }
  .pair-option p { min-height: unset; }
  .or-line { margin: 8px 0; }
  .account-row .text-button { margin-left: auto; }
  .app-header { align-items: flex-start; flex-direction: column; margin: 12px 3px 18px; }
  .app-header h1 { font-size: 28px; }
  .header-tools { width: 100%; justify-content: space-between; }
  .profile-chip { margin-left: auto; }
  .pair-pending { display: grid; grid-template-columns: auto 1fr; gap: 8px 11px; padding: 13px; }
  .invite-code-wrap { grid-column: 1 / -1; justify-items: start; padding-left: 49px; }
  .app-grid { grid-template-columns: 1fr; }
  .question-panel { grid-row: auto; }
  .panel { padding: 18px; }
  .question-text { margin-top: 21px; font-size: 23px; }
  .pet-stage { height: 120px; }
  .points-panel { min-height: 135px; }
  .partner-panel { align-items: flex-start; flex-direction: column; gap: 13px; }
  .partner-panel .panel-heading { width: 100%; }
  .rewards-panel { padding: 19px 16px; }
  .reward-placeholders { gap: 6px; }
  .reward-placeholders article { padding: 11px 4px; }
  .reward-placeholders small { font-size: 7px; text-align: center; }
  .app-footer { flex-direction: column; gap: 5px; font-size: 8px; }
}
