:root {
    color-scheme: light;
    --ink: #342934;
    --ink-soft: #6f6068;
    --paper: #fff9f4;
    --paper-deep: #fff1eb;
    --white: #fffefd;
    --line: #f0dfd8;
    --rose: #e9828c;
    --rose-dark: #bb5669;
    --rose-pale: #fff0f1;
    --green: #91b97e;
    --green-dark: #526d48;
    --green-pale: #eff5eb;
    --mocha: #b48d6e;
    --mocha-dark: #76553c;
    --mocha-pale: #f5eee7;
    --shadow: 0 18px 54px rgba(88, 55, 59, .09);
    font-family: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 8% 12%, rgba(247, 208, 201, .35), transparent 24rem),
        radial-gradient(ellipse at 90% 20%, rgba(204, 222, 190, .30), transparent 22rem),
        var(--paper);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #a4c98e; outline-offset: 3px; }
.site-shell { min-height: 100vh; overflow: hidden; }
.page-width { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(218, 188, 180, .45); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border-radius: 13px; background: #f4c9c8; transform: rotate(-5deg); box-shadow: 0 4px 0 #e8a8aa; }
.brand-mark span { width: 6px; height: 13px; border-radius: 8px; background: #fff8f2; border: 1px solid rgba(93, 67, 67, .55); transform: rotate(7deg); }
.brand-mark span:first-child { height: 11px; background: #b7d49f; }
.brand-mark span:last-child { height: 11px; background: #c4a182; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.055em; line-height: 1; }
.brand-name > span { color: var(--rose-dark); }
.brand-name small { display: block; padding-top: 5px; color: #907b80; font-size: 8px; letter-spacing: .15em; font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 27px; }
.warning-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #f1d2cc; border-radius: 99px; color: #866267; background: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .11em; font-weight: 800; }
.warning-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #e7aa63; box-shadow: 0 0 0 3px #fff2df; }
.top-link { font-size: 12px; font-weight: 700; text-decoration: none; }
.top-link span { padding-left: 4px; color: var(--rose-dark); }

.intro { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 65px; padding: 48px 0 44px; }
.intro-copy { padding: 3px 0 7px 12px; }
.eyebrow { color: #a16c6f; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.sparkle { color: var(--green-dark); font-size: 14px; vertical-align: -1px; margin-right: 4px; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 { margin: 15px 0 12px; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: clamp(45px, 5.3vw, 68px); letter-spacing: -.055em; line-height: .99; }
.intro h1 em { color: var(--rose-dark); font-weight: 600; font-style: normal; }
.intro-lead { max-width: 455px; margin-bottom: 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.intro-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-notes span { padding: 7px 10px; border: 1px solid #efdfd5; border-radius: 99px; background: rgba(255,255,255,.56); color: #806d70; font-size: 10px; font-weight: 700; }
.intro-notes span:first-child { background: var(--green-pale); border-color: #dce8d2; color: var(--green-dark); }
.intro-notes span:nth-child(2) { background: var(--mocha-pale); border-color: #eadfd2; color: var(--mocha-dark); }
.art-card { position: relative; min-width: 0; margin: 0; padding: 9px; border: 1px solid rgba(212, 167, 163, .55); border-radius: 25px; background: rgba(255,255,255,.76); box-shadow: 0 13px 35px rgba(115, 74, 72, .09); transform: rotate(1.2deg); }
.art-card img { width: 100%; aspect-ratio: 2.08 / 1; display: block; object-fit: cover; object-position: 50% 38%; border-radius: 17px; background: #ffe5dc; }
.art-card figcaption { padding: 8px 5px 1px; color: #9b8884; font-size: 9px; text-align: right; }
.art-card figcaption a { color: #8c6169; font-weight: 700; text-decoration: none; }
.art-stamp { position: absolute; z-index: 1; top: -13px; right: -12px; padding: 11px 14px 9px; border: 2px solid white; border-radius: 14px; background: var(--green); color: white; font-family: 'Fraunces', Georgia, serif; font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; transform: rotate(7deg); box-shadow: 0 5px 12px rgba(44, 69, 39, .17); }
.art-stamp small { font: 700 6px 'DM Sans', sans-serif; letter-spacing: .08em; }

.chat-section { padding-bottom: 42px; }
.chat-window { overflow: hidden; border: 1px solid #ead8d3; border-radius: 21px; background: var(--white); box-shadow: var(--shadow); }
.chat-topline { min-height: 70px; display: flex; align-items: center; padding: 12px 19px; border-bottom: 1px solid #f0e5e0; background: #fffdfb; }
.chat-title-wrap { display: flex; gap: 10px; align-items: center; min-width: 230px; }
.chat-title-wrap > div strong { display: block; font-size: 13px; }
.chat-title-wrap > div small { display: block; padding-top: 3px; color: #9c898d; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.chat-avatar-stack { display: flex; padding-left: 2px; }
.head-dot { width: 30px; height: 30px; display: grid; place-items: center; margin-left: -4px; border: 2px solid white; border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 800; }
.head-dot:first-child { margin-left: 0; }
.head-dot.matcha, .head-avatar.matcha, .head-portrait.matcha { background: #e9f0e4; color: var(--green-dark); }
.head-dot.michi, .head-avatar.michi, .head-portrait.michi { background: #f1e6da; color: var(--mocha-dark); }
.head-dot.momo, .head-avatar.momo, .head-portrait.momo { background: #fce5e5; color: var(--rose-dark); }
.online-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; color: #718467; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.online-label i, .head-status { width: 7px; height: 7px; border-radius: 50%; background: #7fb56a; box-shadow: 0 0 0 3px #e7f2e1; }
.clear-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: #84777a; font-size: 11px; font-weight: 700; cursor: pointer; }
.clear-button > span:first-child { color: var(--rose-dark); font-size: 17px; }
.clear-button:hover { color: var(--rose-dark); }
.chat-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 614px; }
.conversation-column { display: flex; min-width: 0; flex-direction: column; padding: 0 21px 19px; }
.conversation-label { height: 42px; display: flex; align-items: center; justify-content: space-between; color: #a19091; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.privacy-note { color: #9bb28c; letter-spacing: .1em; }
.message-list { flex: 1; min-height: 395px; max-height: 430px; overflow-y: auto; padding: 7px 4px 18px 0; scrollbar-color: #eddbd6 transparent; scrollbar-width: thin; }
.message-row { display: flex; align-items: flex-end; gap: 9px; margin: 13px 0; }
.bot-row { justify-content: flex-start; }
.user-row { justify-content: flex-end; }
.head-avatar, .user-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 800; }
.user-avatar { color: white; background: #897b87; }
.message-bubble { max-width: min(82%, 475px); padding: 11px 13px 8px; border-radius: 14px; }
.bot-bubble { border: 1px solid #f0e7e2; border-bottom-left-radius: 4px; background: #fffdfa; }
.bot-bubble.matcha { border-color: #e1ebda; }
.bot-bubble.michi { border-color: #ecdfd3; }
.bot-bubble.momo { border-color: #f4dfe0; }
.user-bubble { border-bottom-right-radius: 4px; background: #f5e9e7; color: #5b474c; }
.message-byline { display: flex; align-items: center; gap: 7px; padding-bottom: 4px; }
.message-byline strong { font-size: 10px; }
.message-byline span { color: #aa9698; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.message-bubble p { margin: 0; color: #594e54; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble time { display: block; margin-top: 5px; color: #b3a5a4; font-size: 8px; text-align: right; }
.argument-banner { width: fit-content; margin: 20px auto 15px; padding: 7px 12px; border: 1px solid #f2d8d4; border-radius: 99px; background: #fff5f1; color: #aa6c6e; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.argument-banner span { color: #c89a55; padding: 0 4px; }
.thinking-row { display: flex; align-items: center; gap: 9px; margin: 13px 0; }
.thinking-bubble { min-height: 38px; display: flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid #f0e4df; border-radius: 14px; border-bottom-left-radius: 4px; background: #fffdfa; }
.thinking-bubble > span { width: 5px; height: 5px; border-radius: 50%; background: #cba6a4; animation: think 1s ease-in-out infinite; }
.thinking-bubble > span:nth-child(2) { animation-delay: .15s; }
.thinking-bubble > span:nth-child(3) { animation-delay: .3s; }
.thinking-bubble small { margin-left: 5px; color: #a08d8e; font-size: 9px; }
@keyframes think { 50% { transform: translateY(-4px); opacity: .5; } }
.composer { position: relative; min-height: 73px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 11px 20px 15px; border: 1px solid #eadbd6; border-radius: 14px; background: #fffdfa; }
.composer input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: var(--ink); font-size: 12px; }
.composer input::placeholder { color: #ae9fa0; }
.composer input:focus-visible { outline: none; }
.composer-note { position: absolute; left: 15px; bottom: 7px; color: #b0a1a1; font-size: 8px; }
.send-button { min-width: 79px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border: none; border-radius: 10px; background: var(--rose-dark); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; transition: .15s ease; }
.send-button span:last-child { font-size: 15px; }
.send-button:hover:not(:disabled) { background: #a8495d; transform: translateY(-1px); }
.send-button:disabled { cursor: not-allowed; opacity: .5; }

.chat-sidebar { padding: 20px 17px 16px; border-left: 1px solid #f0e5e0; background: #fffaf7; }
.sidebar-block { padding-bottom: 19px; }
.sidebar-heading, .heads-heading { display: flex; align-items: center; justify-content: space-between; }
.sidebar-heading h2 { margin: 4px 0 0; font-family: 'Fraunces', Georgia, serif; font-size: 23px; letter-spacing: -.035em; }
.question-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #efd8d2; border-radius: 50%; color: #bb7678; font-family: 'Fraunces', Georgia, serif; font-size: 15px; }
.suggestion-group { padding-top: 15px; }
.suggestion-group h3 { margin: 0 0 7px 2px; color: #9b8a89; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.suggestion-button { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 5px 0; padding: 9px 10px; border: 1px solid #eee3dd; border-radius: 9px; background: white; color: #675a60; font-size: 10px; line-height: 1.4; text-align: left; cursor: pointer; transition: .15s ease; }
.suggestion-button span { flex: 0 0 auto; color: #c47c7f; font-size: 12px; }
.suggestion-button:hover:not(:disabled) { border-color: #e6bdba; background: #fff5f2; transform: translateX(2px); }
.suggestion-button:disabled { opacity: .6; cursor: wait; }
.sidebar-loading { margin: 20px 0; color: #968789; font-size: 11px; }
.heads-block { padding: 16px 0 9px; border-top: 1px solid #f0e5e0; }
.heads-heading { margin-bottom: 10px; }
.tiny-count { padding: 5px 7px; border-radius: 99px; background: #f5eee7; color: #927661; font-size: 8px; font-weight: 700; }
.head-card { display: flex; align-items: center; gap: 9px; padding: 7px 2px; }
.head-portrait { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; font-size: 10px; font-weight: 800; }
.head-card > div { min-width: 0; flex: 1; }
.head-card strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 12px; }
.head-card small { display: block; padding-top: 2px; color: #8e7e82; font-size: 8px; }
.head-card small span { color: #b39c9c; }
.head-status { width: 6px; height: 6px; display: block; }
.sidebar-footnote { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border-radius: 10px; background: #f7efeb; color: #8c7275; }
.sidebar-footnote > span { color: #de8791; font-size: 14px; }
.sidebar-footnote p { margin: 0; font-size: 9px; line-height: 1.5; }
.under-chat { padding: 13px 4px 0; color: #9f8c8d; font-size: 9px; text-align: center; }
.under-chat span { margin-right: 4px; color: #a6c08c; }
.site-footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 4px 26px; border-top: 1px solid rgba(218, 188, 180, .42); color: #98888c; font-size: 9px; }
.footer-heart { color: #dc7c87; }
.footer-note { font-family: 'Fraunces', Georgia, serif; font-size: 11px; font-style: italic; color: #8b7276; }
.not-found { width: min(800px, calc(100% - 40px)); min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; margin: auto; }
.not-found h1 { max-width: 600px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(38px, 6vw, 60px); letter-spacing: -.05em; }
.button { display: inline-block; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 800; }
.button-primary { background: var(--rose-dark); color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (min-width: 1440px) {
    .intro { padding-top: 54px; padding-bottom: 50px; }
}
@media (max-width: 900px) {
    .page-width { width: min(100% - 40px, 760px); }
    .intro { grid-template-columns: 1fr .85fr; gap: 35px; }
    .intro h1 { font-size: clamp(42px, 6vw, 56px); }
    .chat-content { grid-template-columns: minmax(0, 1fr) 270px; }
    .chat-sidebar { padding-inline: 13px; }
    .chat-title-wrap { min-width: 190px; }
}
@media (max-width: 680px) {
    .page-width { width: calc(100% - 28px); }
    .topbar { height: 72px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 17px; }
    .topbar-right { gap: 0; }
    .warning-pill { max-width: 145px; padding: 8px 9px; font-size: 7px; line-height: 1.35; }
    .warning-dot { flex: 0 0 7px; }
    .top-link { display: none; }
    .intro { grid-template-columns: 1fr; gap: 22px; padding: 35px 0 27px; }
    .intro-copy { padding-left: 3px; }
    .intro h1 { margin-top: 12px; font-size: clamp(46px, 12vw, 62px); }
    .intro-lead { max-width: 490px; font-size: 13px; }
    .art-card { width: min(100%, 460px); margin-inline: auto; transform: rotate(.6deg); }
    .art-card img { aspect-ratio: 2.25 / 1; }
    .chat-window { border-radius: 16px; }
    .chat-topline { min-height: 62px; padding: 10px 12px; }
    .chat-title-wrap { min-width: 0; gap: 6px; }
    .head-dot { width: 25px; height: 25px; font-size: 9px; }
    .chat-title-wrap > div strong { font-size: 11px; }
    .chat-title-wrap > div small { font-size: 6px; }
    .online-label { gap: 5px; margin-left: auto; margin-right: 11px; font-size: 7px; letter-spacing: .06em; }
    .online-label i { width: 6px; height: 6px; }
    .clear-button { gap: 3px; font-size: 0; padding: 5px; }
    .clear-button > span:first-child { font-size: 20px; }
    .clear-label { display: none; }
    .chat-content { grid-template-columns: 1fr; }
    .conversation-column { min-height: 470px; padding: 0 12px 13px; }
    .conversation-label { height: 36px; font-size: 7px; }
    .message-list { min-height: 320px; max-height: 390px; }
    .message-bubble { max-width: 88%; padding: 10px 11px 7px; }
    .message-bubble p { font-size: 11px; }
    .composer { min-height: 67px; padding-left: 11px; }
    .composer input { font-size: 11px; }
    .send-button { min-width: 68px; padding: 9px 10px; font-size: 10px; }
    .composer-note { left: 11px; font-size: 7px; }
    .chat-sidebar { border-top: 1px solid #f0e5e0; border-left: 0; padding: 16px 14px 13px; }
    .sidebar-block.suggestions-block { padding-bottom: 14px; }
    .sidebar-heading h2 { font-size: 21px; }
    .suggestion-group { padding-top: 11px; }
    .suggestion-group h3 { margin-bottom: 5px; }
    .suggestion-button { display: inline-flex; width: calc(50% - 5px); min-height: 47px; vertical-align: top; margin: 3px 2px; font-size: 9px; }
    .heads-block { padding-top: 13px; }
    .head-card { display: inline-flex; width: 32.5%; gap: 5px; vertical-align: top; }
    .head-portrait { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 8px; }
    .head-card strong { font-size: 10px; }
    .head-card small { font-size: 7px; }
    .head-card small span { display: none; }
    .head-status { display: none; }
    .tiny-count { font-size: 7px; }
    .sidebar-footnote { padding: 8px 10px; }
    .site-footer { flex-direction: column; align-items: center; text-align: center; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Landing page */
.topbar-right { gap: 22px; }
.top-link-chat { color: var(--rose-dark); }
.route-title:focus { outline: none; }
.home-hero { min-height: 600px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 54px; padding-top: 48px; padding-bottom: 52px; }
.home-copy { max-width: 550px; padding-left: 12px; }
.home-title, .chat-page-title { margin: 16px 0 18px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(48px, 5.3vw, 74px); font-weight: 700; letter-spacing: -.06em; line-height: .98; }
.home-title em, .chat-page-title em { color: var(--rose-dark); font-weight: 600; font-style: normal; }
.home-lead { max-width: 465px; margin-bottom: 25px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.home-cta { display: inline-flex; align-items: center; gap: 20px; box-shadow: 0 8px 19px rgba(187, 86, 105, .19); transition: transform .16s ease, box-shadow .16s ease; }
.home-cta:hover { transform: translateY(-2px); box-shadow: 0 11px 23px rgba(187, 86, 105, .25); }
.home-cta span { font-size: 17px; }
.feed-note { max-width: 420px; display: flex; align-items: flex-start; gap: 11px; margin-top: 32px; padding: 14px 16px; border: 1px solid #eeddd5; border-radius: 14px; background: rgba(255,255,255,.62); color: #806c70; }
.feed-icon { color: var(--rose-dark); font-size: 18px; line-height: 1; }
.feed-note strong { display: block; margin-bottom: 4px; color: #72565c; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.feed-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.home-art-card { position: relative; min-width: 0; margin: 0; padding: 10px; border: 1px solid rgba(212,167,163,.55); border-radius: 26px; background: rgba(255,255,255,.76); box-shadow: 0 18px 50px rgba(115,74,72,.12); transform: rotate(1deg); }
.home-art-card::before { content: "MITSUMI · ONE DOG / THREE HEADS"; position: absolute; z-index: 1; top: -15px; right: 15px; padding: 10px 13px; border: 2px solid white; border-radius: 12px; background: var(--green); color: white; font-size: 8px; font-weight: 800; letter-spacing: .12em; transform: rotate(4deg); box-shadow: 0 5px 12px rgba(44,69,39,.14); }
.home-art-card img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; object-position: 50% 40%; border-radius: 18px; background: #ffe5dc; }
.home-art-card figcaption { padding: 9px 5px 1px; color: #9b8884; font-size: 9px; text-align: right; }
.home-art-card figcaption a, .chat-portrait-stage figcaption a { color: #8c6169; font-weight: 700; text-decoration: none; }
.home-details { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 58px; padding-top: 44px; padding-bottom: 58px; border-top: 1px solid rgba(218,188,180,.42); }
.meaning-copy h2 { margin: 9px 0 13px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(29px, 3vw, 39px); letter-spacing: -.045em; line-height: 1.05; }
.meaning-copy h2 em { color: var(--rose-dark); font-style: normal; }
.meaning-copy p { max-width: 430px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.personality-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.personality-card { min-width: 0; min-height: 186px; padding: 16px 13px 13px; border: 1px solid #efdfd9; border-radius: 17px; background: rgba(255,255,255,.72); box-shadow: 0 8px 22px rgba(88,55,59,.045); }
.personality-card img { width: 70px; height: 70px; display: block; margin: 0 auto 10px; border: 3px solid white; border-radius: 50%; background: #e9f0e4; object-fit: cover; box-shadow: 0 2px 10px rgba(88,55,59,.12); }
.personality-card strong { display: inline-block; margin-right: 6px; font-family: 'Fraunces', Georgia, serif; font-size: 13px; }
.personality-card > div > span { padding: 3px 6px; border-radius: 99px; background: var(--green-pale); color: var(--green-dark); font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.michi-card > div > span { background: var(--mocha-pale); color: var(--mocha-dark); }
.momo-card > div > span { background: var(--rose-pale); color: var(--rose-dark); }
.personality-card p { margin: 7px 0 0; color: #8e7e82; font-size: 9px; line-height: 1.45; }
.site-footer { justify-content: center; text-align: center; }

/* Full-height character introduction for the separate chat page */
.chat-hero.page-width { width: min(1460px, calc(100% - 64px)); min-height: clamp(620px, calc(100svh - 84px), 980px); display: grid; grid-template-columns: minmax(290px,.8fr) minmax(0,1.2fr); align-items: center; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
.chat-hero-copy { max-width: 470px; padding-left: 12px; }
.chat-page-title { font-size: clamp(52px, 5.2vw, 78px); }
.chat-hero-copy > p { max-width: 410px; margin-bottom: 23px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.chat-hero-note { display: block; margin-top: 15px; color: #99888a; font-size: 10px; }
.chat-portrait-stage { position: relative; width: min(100%, calc(100svh - 145px)); aspect-ratio: 1; justify-self: center; margin: 0; isolation: isolate; }
.chat-portrait-stage::before { content: ""; position: absolute; z-index: -1; inset: 7%; border-radius: 50%; background: radial-gradient(circle, rgba(224,236,214,.8), rgba(251,221,216,.58) 66%, transparent 72%); filter: blur(12px); }
.chat-portrait { width: 100%; height: 100%; display: block; border: 8px solid rgba(255,255,255,.86); border-radius: 34px; background: #ffe9e2; object-fit: cover; box-shadow: 0 24px 64px rgba(88,55,59,.16); }
.chat-portrait-stage figcaption { position: absolute; right: 18px; bottom: 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.85); border-radius: 99px; background: rgba(255,253,250,.88); color: #927e80; font-size: 8px; backdrop-filter: blur(10px); }
.name-sticker { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-width: 126px; padding: 7px 10px 7px 7px; border: 2px solid white; border-radius: 13px; background: rgba(255,253,250,.96); box-shadow: 0 7px 18px rgba(67,48,52,.17); }
.name-sticker img { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: #eff5eb; object-fit: cover; }
.name-sticker strong { display: block; color: var(--ink); font-family: 'Fraunces', Georgia, serif; font-size: 13px; line-height: 1.1; }
.name-sticker small { display: block; padding-top: 3px; color: #8d7c80; font-size: 6px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.sticker-sparkle { margin-left: auto; color: var(--green-dark); font-size: 13px; }
.matcha-sticker { top: 24%; left: 0; transform: rotate(-6deg); }
.michi-sticker { top: 2%; left: 39%; transform: rotate(4deg); }
.momo-sticker { top: 27%; right: 0; transform: rotate(5deg); }
.chat-section { padding-top: 15px; }
.head-dot-img { width: 30px; height: 30px; display: block; margin-left: -4px; border: 2px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(88,55,59,.12); }
.head-dot-img:first-child { margin-left: 0; }
.head-dot-img.matcha { background: #e9f0e4; }
.head-dot-img.michi { background: #f1e6da; }
.head-dot-img.momo { background: #fce5e5; }
.head-avatar { border: 2px solid white; object-fit: cover; overflow: hidden; }
.head-avatar.matcha { background: #e9f0e4; }
.head-avatar.michi { background: #f1e6da; }
.head-avatar.momo { background: #fce5e5; }
.chat-about-note { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 11px; background: #f7efeb; color: #8c7275; }
.chat-about-note > span { color: #de8791; font-size: 15px; }
.chat-about-note p { margin: 0; font-size: 10px; line-height: 1.5; }

@media (max-width: 900px) {
    .home-hero { gap: 30px; }
    .home-title { font-size: clamp(45px, 6vw, 60px); }
    .home-details { grid-template-columns: 1fr; gap: 25px; }
    .personality-card { min-height: 174px; }
    .chat-hero.page-width { grid-template-columns: minmax(250px,.75fr) minmax(0,1.25fr); gap: 16px; }
    .chat-portrait-stage { width: min(100%, calc(100svh - 145px)); }
}

@media (max-width: 680px) {
    .topbar-right { gap: 10px; }
    .top-link-home { display: none; }
    .top-link-chat { display: inline-flex; align-items: center; padding: 9px 12px; border: 1px solid #efd8d2; border-radius: 99px; background: rgba(255,255,255,.7); font-size: 10px; }
    .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding-top: 33px; padding-bottom: 37px; }
    .home-copy { padding-left: 3px; }
    .home-title { margin-top: 12px; font-size: clamp(43px, 11vw, 60px); }
    .home-lead { font-size: 13px; }
    .feed-note { margin-top: 23px; }
    .home-art-card { width: min(100%, 500px); margin: 0 auto; }
    .home-art-card img { aspect-ratio: 1 / 1; }
    .home-details { gap: 22px; padding-top: 31px; padding-bottom: 39px; }
    .meaning-copy h2 { font-size: 30px; }
    .personality-list { gap: 7px; }
    .personality-card { min-height: 164px; padding: 12px 8px; }
    .personality-card img { width: 60px; height: 60px; }
    .personality-card strong { display: block; margin: 0 0 4px; font-size: 12px; }
    .personality-card > div > span { font-size: 6px; }
    .personality-card p { font-size: 8px; }
    .chat-hero.page-width { width: calc(100% - 28px); min-height: auto; grid-template-columns: 1fr; gap: 15px; padding-top: 29px; padding-bottom: 18px; }
    .chat-hero-copy { padding-left: 3px; }
    .chat-page-title { margin: 12px 0 12px; font-size: clamp(44px, 11vw, 62px); }
    .chat-hero-copy > p { margin-bottom: 16px; font-size: 13px; }
    .chat-hero-note { margin-top: 11px; }
    .chat-portrait-stage { width: min(100%, calc(100vw - 28px)); }
    .chat-portrait { border-width: 5px; border-radius: 24px; }
    .name-sticker { min-width: 0; gap: 5px; padding: 5px 7px 5px 5px; border-width: 1px; border-radius: 10px; }
    .name-sticker img { width: 27px; height: 27px; flex-basis: 27px; }
    .name-sticker strong { font-size: 10px; }
    .name-sticker small { font-size: 5px; }
    .sticker-sparkle { display: none; }
    .matcha-sticker { top: 23%; left: 0; }
    .michi-sticker { top: 2%; left: 38%; }
    .momo-sticker { top: 27%; right: 0; }
    .chat-section { padding-top: 8px; }
    .head-dot-img { width: 25px; height: 25px; }
    .chat-about-note { padding: 9px 10px; }
    .chat-about-note p { font-size: 9px; }
}

@media (max-width: 380px) {
    .personality-list { grid-template-columns: 1fr; }
    .personality-card { min-height: 0; display: flex; align-items: center; gap: 11px; padding: 9px 12px; }
    .personality-card img { width: 50px; height: 50px; flex: 0 0 50px; margin: 0; }
    .personality-card p { margin-top: 4px; }
    .name-sticker { gap: 4px; padding: 4px 5px 4px 4px; }
    .name-sticker img { width: 23px; height: 23px; flex-basis: 23px; }
    .name-sticker strong { font-size: 9px; }
    .name-sticker small { font-size: 4px; }
}
