:root {
  --ink: #172a31;
  --muted: #647277;
  --paper: #f8f6f0;
  --card: rgba(255, 255, 255, 0.76);
  --line: rgba(23, 42, 49, 0.13);
  --sage: #b9c9b4;
  --sage-dark: #486352;
  --peach: #e7b198;
  --peach-soft: #f4ddd0;
  --blue-soft: #dbe7e8;
  --danger: #9f4b47;
  --shadow: 0 24px 70px rgba(44, 58, 59, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(231, 177, 152, 0.16), transparent 31rem),
    radial-gradient(circle at 100% 28%, rgba(127, 167, 160, 0.17), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, textarea, input { font: inherit; }
button { color: inherit; }
.is-hidden { display: none !important; }
.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;
}

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(2px); opacity: .42; pointer-events: none; }
.ambient-one { width: 18rem; height: 18rem; left: -9rem; top: 42%; background: rgba(237, 202, 181, .36); }
.ambient-two { width: 16rem; height: 16rem; right: -8rem; top: 8%; background: rgba(178, 203, 198, .38); }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 760; letter-spacing: -.03em; }
.brand-mark { position: relative; display: inline-flex; width: 29px; height: 22px; }
.brand-mark span { position: absolute; width: 16px; height: 19px; border: 1.8px solid var(--ink); border-radius: 60% 60% 48% 48%; transform: rotate(-24deg); left: 2px; top: 1px; }
.brand-mark span:last-child { transform: rotate(24deg); left: 11px; }
.privacy-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.privacy-chip span { width: 7px; height: 7px; border-radius: 50%; background: #6f9c7b; box-shadow: 0 0 0 4px rgba(111, 156, 123, .12); }
.profile-chip { background: rgba(255,255,255,.5); cursor: pointer; }
.profile-chip #profileChipText { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }

.shell { width: min(1040px, calc(100% - 40px)); min-height: calc(100vh - 210px); margin: 0 auto; display: grid; place-items: center; }
.view { width: 100%; animation: arrive .45s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
.welcome-view { max-width: 860px; padding: 56px 0 70px; text-align: center; }
.eyebrow { color: var(--sage-dark); font-size: .72rem; font-weight: 780; letter-spacing: .17em; text-transform: uppercase; }
h1, h2 { margin: 16px 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: .97; }
h1 { font-size: clamp(3.25rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.55rem, 5vw, 4.4rem); }
h1 em, h2 em { color: var(--sage-dark); font-weight: 400; }
.lead { max-width: 560px; margin: 28px auto 42px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.topic-picker { max-width: 900px; margin: 0 auto; padding: 0; border: 0; }
.topic-picker legend { width: 100%; margin-bottom: 14px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-align: left; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.topic-card {
  position: relative; min-height: 88px; padding: 16px; overflow: hidden;
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  box-shadow: 0 8px 24px rgba(43, 53, 54, .035); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.topic-card:hover { transform: translateY(-2px); border-color: rgba(72, 99, 82, .3); box-shadow: 0 13px 32px rgba(43, 53, 54, .075); }
.topic-card input { position: absolute; opacity: 0; pointer-events: none; }
.topic-card:has(input:focus-visible) { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.topic-card:has(input:checked) { border-color: var(--sage-dark); background: rgba(232, 238, 231, .82); box-shadow: inset 0 0 0 1px var(--sage-dark), 0 10px 28px rgba(72, 99, 82, .08); }
.topic-card > span:nth-of-type(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.topic-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; font-weight: 400; letter-spacing: -.015em; }
.topic-card small { overflow: hidden; color: var(--muted); font-size: .69rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.topic-card i { width: 10px; height: 10px; margin-left: auto; flex: 0 0 auto; border: 1px solid #9ba7a3; border-radius: 50%; }
.topic-card:has(input:checked) i { border: 3px solid var(--sage-dark); background: white; }
.topic-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #edf1ed; color: var(--sage-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.topic-any .topic-icon { background: var(--peach-soft); }
.start-button { min-width: 230px; margin-top: 24px; padding: 15px 24px; font-size: .88rem; }
.start-button span { margin-left: 10px; }
.match-tools { max-width: 600px; margin: 17px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.match-tools > button { min-width: 0; padding: 12px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.52); cursor: pointer; text-align: left; }
.match-tools > button:hover { border-color: rgba(72,99,82,.35); background: rgba(255,255,255,.8); }
.match-tools > button > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.match-tools strong { font-size: .74rem; }
.match-tools small { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.tool-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #e8eeea; color: var(--sage-dark); }
.plus-badge { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: var(--ink); color: white; font-size: .53rem; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.age-check { width: fit-content; max-width: 100%; margin: 24px auto 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); cursor: pointer; font-size: .82rem; }
.age-check input { position: absolute; opacity: 0; }
.checkmark { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #9ca9a6; border-radius: 5px; background: white; }
.age-check input:focus-visible + .checkmark { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.age-check input:checked + .checkmark { background: var(--sage-dark); border-color: var(--sage-dark); }
.age-check input:checked + .checkmark::after { content: "✓"; color: white; font-size: 11px; font-weight: 800; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; color: inherit; }
.form-error { min-height: 20px; margin: 9px 0 0; color: var(--danger); font-size: .8rem; }
.trust-row { margin: 34px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; color: #7d898c; font-size: .73rem; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i { font-style: normal; color: var(--sage-dark); }

.waiting-view, .ended-view { max-width: 660px; padding: 60px 0 90px; text-align: center; }
.waiting-orbit { position: relative; width: 125px; height: 125px; margin: 0 auto 36px; }
.waiting-orbit span { position: absolute; border-radius: 50%; }
.orbit-one { inset: 0; border: 1px solid rgba(72, 99, 82, .18); animation: breathe 3s ease-in-out infinite; }
.orbit-two { inset: 18px; border: 1px solid rgba(72, 99, 82, .22); animation: breathe 3s .3s ease-in-out infinite; }
.orbit-center { inset: 42px; background: var(--sage); box-shadow: 0 0 0 11px rgba(185, 201, 180, .2); }
@keyframes breathe { 50% { transform: scale(.91); opacity: .55; } }
.waiting-view h2 { margin-bottom: 21px; }
.waiting-view > p, .ended-view > p { max-width: 440px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.topic-chip { width: fit-content; margin: 23px auto 0; padding: 8px 13px; border: 1px solid rgba(72,99,82,.16); border-radius: 999px; background: rgba(219,231,232,.55); color: var(--sage-dark); font-size: .7rem; font-weight: 750; }
.waiting-time { width: fit-content; margin: 10px auto 30px; padding: 9px 14px; display: flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); font-size: .78rem; }
.pulse-dot, .online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6e9d79; }
.pulse-dot { animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.button { padding: 13px 20px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .82rem; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: white; }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.7); }
.button-danger { background: var(--danger); color: white; }
.button-small { padding: 9px 14px; border-color: var(--line); background: transparent; }
.button-full { width: 100%; margin-top: 16px; }

.chat-view { max-width: 780px; padding: 25px 0 60px; text-align: center; }
.chat-card { height: min(680px, calc(100vh - 190px)); min-height: 500px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(23, 42, 49, .11); border-radius: 28px; background: rgba(255,255,255,.75); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.chat-header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.partner { display: flex; align-items: center; gap: 12px; text-align: left; }
.partner-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); }
.partner-avatar span { width: 15px; height: 15px; border: 1.5px solid var(--sage-dark); border-radius: 50%; box-shadow: 0 10px 0 -2px var(--blue-soft), 0 10px 0 1.5px var(--sage-dark); transform: translateY(-4px); }
.partner strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 400; }
.partner small { margin-top: 3px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; }
.online-dot { width: 6px; height: 6px; }
.chat-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button:hover { background: rgba(23, 42, 49, .05); }
.icon-button svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.save-contact-button { position: relative; }
.plus-dot { position: absolute; right: 1px; top: 0; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 9px; font-weight: 800; }
.save-contact-button.is-plus .plus-dot { display: none; }
.messages { flex: 1; padding: 28px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; text-align: left; scroll-behavior: smooth; }
.system-message { align-self: center; max-width: 80%; margin: 3px 0 16px; text-align: center; color: var(--muted); font-size: .75rem; }
.system-message span { display: inline-block; padding: 5px 9px; border-radius: 999px; background: rgba(219,231,232,.65); color: var(--sage-dark); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.system-message p { margin: 10px 0 0; line-height: 1.45; }
.message { max-width: min(74%, 510px); padding: 11px 15px 7px; border-radius: 17px; animation: bubble .2s ease both; overflow-wrap: anywhere; }
@keyframes bubble { from { opacity: 0; transform: translateY(4px); } }
.message p { margin: 0; font-size: .91rem; line-height: 1.48; white-space: pre-wrap; }
.message time { display: block; margin-top: 4px; opacity: .56; font-size: .59rem; text-align: right; }
.message-mine { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--ink); color: white; }
.message-theirs { align-self: flex-start; border-bottom-left-radius: 5px; background: #e6ece9; }
.contact-banner { margin: 0 15px 6px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(72,99,82,.18); border-radius: 13px; background: #edf2ee; color: var(--sage-dark); font-size: .69rem; }
.contact-banner > div { display: flex; gap: 5px; }
.contact-banner button { padding: 6px 8px; border: 1px solid rgba(72,99,82,.2); border-radius: 8px; background: white; cursor: pointer; color: var(--ink); font-size: .64rem; }
.privacy-note { padding: 8px 18px; display: flex; justify-content: center; align-items: center; gap: 7px; color: #899294; font-size: .62rem; }
.composer { margin: 8px 15px 15px; padding: 8px 8px 8px 16px; display: flex; align-items: flex-end; gap: 10px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.composer textarea { width: 100%; max-height: 120px; padding: 9px 0 6px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.composer textarea::placeholder { color: #9da6a6; }
.send-button { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--ink); cursor: pointer; }
.send-button:disabled { opacity: .38; cursor: default; }
.send-button svg { width: 19px; fill: none; stroke: white; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.next-button { margin-top: 18px; color: var(--muted); font-size: .76rem; }

.ended-icon { width: 72px; height: 72px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 50%; background: var(--peach-soft); color: var(--sage-dark); font-size: 1.4rem; }
.feedback-box { max-width: 450px; margin: 28px auto 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.feedback-box > strong { display: block; margin-bottom: 13px; font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; font-weight: 400; }
.feedback-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feedback-actions button { padding: 10px 8px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; color: var(--muted); font-size: .72rem; }
.feedback-actions button:hover, .feedback-actions button:focus-visible { border-color: var(--sage-dark); color: var(--ink); outline: none; }
.feedback-actions button span { margin-right: 3px; color: var(--sage-dark); }
.feedback-box.is-complete { color: var(--sage-dark); }
.feedback-box.is-complete .feedback-actions { display: none; }
.ended-actions { margin-top: 24px; display: flex; justify-content: center; gap: 9px; }

.site-footer { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 30px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #858f91; font-size: .67rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); }

.modal { width: min(510px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 26px; color: var(--ink); background: #fbfaf6; box-shadow: 0 30px 90px rgba(20,30,33,.28); }
.modal::backdrop { background: rgba(19,31,35,.45); backdrop-filter: blur(5px); }
.modal form { position: relative; padding: 36px; }
.modal-close { position: absolute; right: 20px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); font-size: 1.5rem; }
.modal h2 { margin: 10px 0 22px; font-size: 2.15rem; line-height: 1.05; }
.modal-intro { margin: -10px 0 22px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.modal ol { margin: 0; padding-left: 21px; }
.modal li { margin: 13px 0; padding-left: 5px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.modal li strong { color: var(--ink); }
.modal-note { margin: 22px 0 0; padding: 13px; border-radius: 12px; background: rgba(219,231,232,.55); color: var(--muted); font-size: .74rem; line-height: 1.5; }
.terms-modal form { max-height: min(820px, calc(100dvh - 32px)); overflow-y: auto; }
.terms-copy { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.terms-copy p { margin: 0 0 16px; }
.terms-copy h3 { margin: 22px 0 8px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 500; }
.terms-copy ol { margin-bottom: 16px; }
.terms-copy li { margin: 8px 0; font-size: .8rem; }
.report-modal form > p { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.report-modal label { margin: 9px 0; padding: 12px 13px; display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .83rem; }
.report-modal input { accent-color: var(--danger); }
.filter-section { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); text-align: left; }
.filter-section > strong, .filter-title strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 400; }
.filter-title { display: flex; align-items: center; margin-bottom: 12px; }
.filter-row { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-row label, .promo-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.filter-row select, .promo-field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; color: var(--ink); font-size: .77rem; }
.filter-row select:focus, .promo-field input:focus { border-color: var(--sage-dark); }
.premium-filter-section { position: relative; }
.premium-filter-section.is-locked .filter-row { opacity: .36; pointer-events: none; }
.premium-lock { width: calc(100% - 32px); position: absolute; left: 16px; bottom: 25px; padding: 9px; z-index: 1; border: 1px solid var(--line); border-radius: 999px; background: white; box-shadow: 0 8px 22px rgba(30,40,42,.08); cursor: pointer; font-size: .68rem; font-weight: 750; }
.plus-hero { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 19px; background: var(--ink); color: white; box-shadow: 0 15px 35px rgba(23,42,49,.2); }
.plus-hero span { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.plus-modal form { text-align: center; }
.plus-features { margin: 22px 0; padding: 0; display: grid; gap: 9px; list-style: none; text-align: left; }
.plus-features li { margin: 0; padding: 11px 12px; display: flex; align-items: center; gap: 9px; border-radius: 11px; background: rgba(232,238,231,.7); color: var(--ink); }
.plus-features li span { color: var(--sage-dark); font-weight: 800; }
.plus-modal .promo-field { margin-top: 17px; text-align: left; }
.profile-stats { margin: 22px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.profile-stats div { padding: 15px 8px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.6); text-align: center; }
.profile-stats strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.profile-stats small { color: var(--muted); font-size: .59rem; }
.saved-contact-modal form { text-align: center; }
.saved-contact-modal .ended-icon { margin-bottom: 18px; }
.saved-contact-modal h2 { margin-bottom: 12px; }
.saved-contact-modal p { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.saved-code { margin: 20px 0 6px; padding: 15px; display: block; border: 1px dashed var(--sage-dark); border-radius: 13px; background: rgba(232,238,231,.65); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.65rem; font-weight: 800; letter-spacing: .18em; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 10; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white; box-shadow: 0 10px 30px rgba(20,30,33,.2); font-size: .77rem; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .site-header { width: min(100% - 28px, 1120px); padding: 20px 0; }
  .shell { width: min(100% - 24px, 1040px); min-height: calc(100vh - 170px); }
  .welcome-view { padding: 45px 0 55px; }
  h1 { font-size: clamp(2.85rem, 14vw, 4.5rem); }
  .lead { margin: 23px auto 30px; font-size: .96rem; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic-card { min-height: 90px; padding: 12px; border-radius: 15px; }
  .topic-card small { white-space: normal; }
  .topic-icon { width: 32px; height: 32px; border-radius: 10px; }
  .age-check { align-items: flex-start; text-align: left; line-height: 1.4; }
  .match-tools { grid-template-columns: 1fr; }
  .trust-row { gap: 10px 15px; }
  .site-footer { width: calc(100% - 28px); flex-direction: column; text-align: center; gap: 7px; }
  .chat-view { padding: 8px 0 35px; }
  .chat-card { height: calc(100dvh - 137px); min-height: 440px; border-radius: 22px; }
  .messages { padding: 23px 15px; }
  .message { max-width: 84%; }
  .privacy-note { font-size: .57rem; }
  .modal form { padding: 32px 22px 24px; }
  .filter-row { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 76px; }
  .ended-actions { flex-direction: column; }
}

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

/* Premium dark-room direction — v0.4 */
:root {
  --ink: #171a18;
  --muted: #6f746f;
  --paper: #0c0f0e;
  --card: #f2eee5;
  --line: rgba(23, 26, 24, .13);
  --sage: #8c9d94;
  --sage-dark: #596e64;
  --peach: #c8a96a;
  --peach-soft: #eee2c8;
  --blue-soft: #dfe5e1;
  --danger: #9b443f;
  --gold: #c8a96a;
  --gold-bright: #ead6a7;
  --night-line: rgba(244, 239, 226, .13);
  --night-muted: #9fa49f;
  --shadow: 0 38px 100px rgba(0, 0, 0, .38);
}

body {
  color: #f3eee4;
  background:
    radial-gradient(circle at 8% 10%, rgba(200, 169, 106, .12), transparent 26rem),
    radial-gradient(circle at 92% 78%, rgba(83, 107, 98, .14), transparent 31rem),
    linear-gradient(135deg, #0b0e0d 0%, #121615 48%, #090b0a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.ambient { filter: blur(70px); opacity: .2; }
.ambient-one { width: 28rem; height: 28rem; left: -18rem; top: 22%; background: var(--gold); }
.ambient-two { width: 34rem; height: 34rem; right: -22rem; top: 32%; background: #4f7568; }

.site-header {
  width: min(1180px, calc(100% - 56px));
  padding: 28px 0 16px;
}
.brand { color: #f4efe4; font-size: .94rem; font-weight: 720; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 24px; }
.brand-mark span { border-color: var(--gold-bright); }
.privacy-chip {
  border-color: var(--night-line);
  background: rgba(255,255,255,.035);
  color: #c4c3bb;
  backdrop-filter: blur(12px);
}
.profile-chip { transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.profile-chip:hover { transform: translateY(-1px); border-color: rgba(234,214,167,.35); background: rgba(255,255,255,.07); }

.shell { width: min(1180px, calc(100% - 56px)); min-height: calc(100vh - 175px); }
.welcome-view { max-width: none; padding: 48px 0 58px; text-align: left; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr); gap: clamp(45px, 6vw, 92px); align-items: center; }
.hero-copy { padding: 20px 0 18px; }
.hero-copy .eyebrow { color: var(--gold-bright); }
.eyebrow { color: var(--gold); font-size: .68rem; letter-spacing: .22em; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.hero-copy h1 { margin: 24px 0 0; color: #f5f0e6; font-size: clamp(4.15rem, 6.2vw, 7rem); line-height: .9; letter-spacing: -.065em; }
.hero-copy h1 em { display: inline-block; color: var(--gold-bright); }
.hero-copy .lead { max-width: 520px; margin: 32px 0 0; color: #aaa9a2; font-size: 1.02rem; line-height: 1.75; }
.hero-points { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.hero-points span { padding: 20px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.hero-points strong { color: #f4efe4; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.hero-points small { color: #777e79; font-size: .62rem; letter-spacing: .035em; }

.match-panel {
  position: relative;
  padding: 30px;
  color: var(--ink);
  border: 1px solid rgba(234,214,167,.34);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(238,232,219,.98)),
    var(--card);
  box-shadow: 0 42px 120px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.9);
}
.match-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(76,66,47,.08);
  border-radius: 23px;
}
.panel-heading { position: relative; z-index: 1; margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.05em; }
.panel-kicker { color: #8b7550; font-size: .59rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.panel-status { margin-top: 3px; display: flex; align-items: center; gap: 7px; color: #737973; font-size: .6rem; white-space: nowrap; }
.panel-status i { width: 6px; height: 6px; border-radius: 50%; background: #60866e; box-shadow: 0 0 0 4px rgba(96,134,110,.12); }
.match-panel .topic-picker { position: relative; z-index: 1; max-width: none; }
.match-panel .topic-picker legend { margin-bottom: 10px; color: #777871; font-size: .63rem; letter-spacing: .07em; text-transform: uppercase; }
.match-panel .topic-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.match-panel .topic-card {
  min-height: 72px;
  padding: 12px 13px;
  border-color: rgba(23,26,24,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.62);
  box-shadow: none;
}
.match-panel .topic-card:hover { transform: translateY(-1px); border-color: rgba(142,116,66,.38); box-shadow: 0 9px 25px rgba(44,37,27,.07); }
.match-panel .topic-card:has(input:checked) { border-color: #826c43; background: #f4ead5; box-shadow: inset 0 0 0 1px rgba(130,108,67,.35); }
.match-panel .topic-icon { width: 33px; height: 33px; border-radius: 50%; background: #e9ebe5; color: #54655d; }
.match-panel .topic-any .topic-icon { background: #ddc998; color: #3e3a2d; }
.match-panel .topic-card strong { font-size: .94rem; }
.match-panel .topic-card small { font-size: .61rem; }
.match-panel .topic-card:has(input:checked) i { border-color: #826c43; background: #826c43; box-shadow: inset 0 0 0 2px #f4ead5; }
.match-panel .start-button { width: 100%; min-width: 0; margin-top: 18px; padding: 15px 18px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(234,214,167,.16); border-radius: 14px; background: linear-gradient(135deg, #1c201e, #090b0a); color: #fff; box-shadow: 0 15px 32px rgba(10,12,11,.22); font-size: .76rem; letter-spacing: .025em; }
.match-panel .start-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(10,12,11,.28); }
.match-panel .start-button span { width: 23px; height: 23px; margin: 0 0 0 10px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #151712; }
.match-panel .match-tools { position: relative; z-index: 1; max-width: none; margin-top: 9px; gap: 8px; }
.match-panel .match-tools > button { padding: 10px 11px; border-color: rgba(23,26,24,.1); border-radius: 12px; background: rgba(255,255,255,.46); }
.match-panel .match-tools > button:hover { border-color: rgba(142,116,66,.35); background: rgba(255,255,255,.82); }
.match-panel .tool-icon { width: 28px; height: 28px; border-radius: 50%; background: #e2e5df; color: #4d6158; }
.match-panel .plus-badge { background: #a78345; color: #fff8e9; }
.match-panel .age-check { position: relative; z-index: 1; margin-top: 18px; color: #777b76; font-size: .69rem; }
.match-panel .checkmark { width: 15px; height: 15px; border-color: #8f948f; border-radius: 4px; }
.match-panel .age-check input:checked + .checkmark { border-color: #8a7042; background: #8a7042; }
.age-check input:checked + .checkmark::after { content: "✓"; }
.match-panel .form-error { position: relative; z-index: 1; min-height: 14px; margin-bottom: -8px; font-size: .68rem; text-align: center; }

.trust-row { margin-top: 30px; color: #7e847f; font-size: .65rem; letter-spacing: .02em; }
.trust-row i { color: var(--gold); }

.button { border-radius: 12px; }
.button-primary { background: linear-gradient(135deg, #232825, #0c0f0e); color: #fff; }
.button-secondary { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #e8e4da; }
.button-small { border-color: rgba(23,26,24,.12); background: rgba(255,255,255,.48); color: var(--ink); }

.waiting-view,
.ended-view {
  max-width: 680px;
  padding: 56px 58px 64px;
  color: var(--ink);
  border: 1px solid rgba(234,214,167,.28);
  border-radius: 30px;
  background: linear-gradient(145deg, #f5f1e8, #e9e3d8);
  box-shadow: var(--shadow);
}
.waiting-view h2, .ended-view h2 { color: var(--ink); font-size: clamp(2.7rem, 5vw, 4.6rem); }
.waiting-view h2 em, .ended-view h2 em { color: #8a7042; }
.waiting-view > p, .ended-view > p { color: #6f746f; }
.waiting-view .button-secondary { border-color: var(--line); background: rgba(255,255,255,.66); color: var(--ink); }
.waiting-orbit { width: 110px; height: 110px; }
.orbit-one, .orbit-two { border-color: rgba(138,112,66,.28); }
.orbit-center { inset: 38px; background: var(--gold); box-shadow: 0 0 0 12px rgba(200,169,106,.18); }
.topic-chip { background: #eee3c9; color: #755e37; }
.waiting-time { background: rgba(255,255,255,.65); }

.chat-view { max-width: 850px; padding: 28px 0 55px; }
.chat-card { color: var(--ink); border-color: rgba(234,214,167,.3); border-radius: 30px; background: #f0ece3; box-shadow: 0 42px 120px rgba(0,0,0,.46); backdrop-filter: none; }
.chat-header { padding: 17px 20px; border-bottom-color: rgba(23,26,24,.11); background: rgba(255,255,255,.46); }
.partner-avatar { background: #d9d8cf; }
.partner-avatar span { border-color: #53665d; box-shadow: 0 10px 0 -2px #d9d8cf, 0 10px 0 1.5px #53665d; }
.partner strong { color: var(--ink); }
.partner small { color: #747a75; }
.icon-button:hover { background: rgba(23,26,24,.06); }
.plus-dot { background: #9a783e; color: #fff7e5; }
.messages { background: linear-gradient(180deg, #f0ece3, #ece7dd); }
.system-message span { background: #e9dfc7; color: #796039; }
.message-mine { background: linear-gradient(135deg, #1f2522, #0d100f); }
.message-theirs { background: #fffdf8; color: var(--ink); box-shadow: 0 5px 18px rgba(29,31,28,.06); }
.contact-banner { border-color: rgba(138,112,66,.2); background: #eee3c9; color: #755e37; }
.privacy-note { color: #858984; }
.composer { border-color: rgba(23,26,24,.12); border-radius: 16px; background: #fffdf8; box-shadow: 0 8px 28px rgba(28,31,28,.07); }
.send-button { border-radius: 11px; background: linear-gradient(135deg, #242a27, #0b0d0c); }
.next-button { color: #a5aaa5; }

.feedback-box { background: rgba(255,255,255,.56); }
.ended-icon { background: #e9ddbf; color: #826a3d; }
.ended-actions .button-secondary { border-color: var(--line); background: rgba(255,255,255,.66); color: var(--ink); }

.site-footer { width: min(1180px, calc(100% - 56px)); border-top-color: var(--night-line); color: #737a75; }
.site-footer strong { color: #d8d3c8; }

.modal { border: 1px solid rgba(234,214,167,.28); border-radius: 28px; background: #f2eee5; box-shadow: 0 35px 110px rgba(0,0,0,.52); }
.modal::backdrop { background: rgba(3,5,4,.72); backdrop-filter: blur(10px); }
.modal h2 { color: var(--ink); }
.filter-section { background: rgba(255,255,255,.52); }
.plus-hero { border-radius: 50%; background: linear-gradient(145deg, #b49152, #6f5429); box-shadow: 0 18px 45px rgba(105,78,34,.28); }
.plus-features li { background: #ece3ce; }
.saved-code { border-color: #8a7042; background: #eee3c9; }
.toast { background: #e9d3a2; color: #171a18; }

@media (max-width: 1030px) {
  .hero-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: 760px; padding-bottom: 0; }
  .hero-copy h1 { max-width: 850px; font-size: clamp(4.3rem, 9vw, 7rem); }
  .hero-copy .lead { max-width: 610px; }
  .hero-points { max-width: 610px; }
  .match-panel { max-width: 760px; }
}

@media (max-width: 700px) {
  .site-header { width: min(100% - 28px, 1180px); padding-top: 20px; }
  .shell { width: min(100% - 24px, 1180px); }
  .welcome-view { padding: 30px 0 44px; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(3.4rem, 15vw, 5rem); }
  .hero-copy .lead { margin-top: 24px; font-size: .94rem; }
  .hero-points { margin-top: 30px; }
  .hero-points span { padding-right: 8px; }
  .hero-points small { font-size: .56rem; }
  .match-panel { padding: 22px; border-radius: 24px; }
  .match-panel::before { inset: 6px; border-radius: 18px; }
  .panel-heading { align-items: center; }
  .panel-heading h2 { font-size: 2rem; }
  .panel-status { font-size: .55rem; }
  .match-panel .topic-grid { grid-template-columns: 1fr 1fr; }
  .match-panel .topic-card { min-height: 76px; padding: 10px; }
  .match-panel .topic-card small { white-space: normal; }
  .waiting-view, .ended-view { padding: 42px 22px 48px; border-radius: 24px; }
  .chat-card { border-radius: 23px; }
  .site-footer { width: calc(100% - 28px); }
}

@media (max-width: 470px) {
  .privacy-chip { padding: 7px 10px; }
  .hero-copy h1 { font-size: clamp(3rem, 15.5vw, 4.2rem); }
  .hero-points strong { font-size: 1.2rem; }
  .match-panel { padding: 19px 16px; }
  .panel-status { display: none; }
  .match-panel .topic-grid { grid-template-columns: 1fr; }
  .match-panel .topic-card { min-height: 66px; }
  .match-panel .match-tools { grid-template-columns: 1fr; }
  .match-panel .age-check { align-items: flex-start; text-align: left; }
}
