/* Shared character identity; themes keep their own reading surfaces. */
.brand-mark{background:transparent!important;box-shadow:none!important;overflow:visible!important}
.brand-character{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.child-buddy-face,.coach-avatar{overflow:hidden;background:#0eaaa2;padding:0;flex-shrink:0}
.mode-hero-art{appearance:none;display:grid;place-items:center;padding:0;overflow:visible;border:0;background:transparent!important;box-shadow:none!important;transform:rotate(-4deg);border-radius:28%;width:104px;height:104px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mode-hero-art::after{content:"和我聊聊";position:absolute;left:50%;bottom:-8px;transform:translateX(-50%) rotate(4deg);padding:4px 9px;border:1px solid #dbe9d9;border-radius:20px;background:#fff;color:var(--green);font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 3px 9px #263c2817}
.hero-mascot{display:block;width:100%;height:100%;object-fit:contain;overflow:visible;filter:drop-shadow(0 7px 5px #4a387229);animation:hero-book-bob 4s ease-in-out infinite}.mode-hero-art.is-changing .hero-mascot{animation:mascot-pop .5s cubic-bezier(.2,.8,.2,1)}.mode-hero-art:focus-visible{outline:3px solid var(--mode-learn);outline-offset:5px;border-radius:32%}@keyframes mascot-pop{0%{transform:scale(.82) rotate(-7deg)}65%{transform:scale(1.1) rotate(4deg)}100%{transform:scale(1) rotate(0)}}
.hero-spark{color:#e6a729;z-index:1}
.companion-page-mascot{background:transparent!important;border:0!important;box-shadow:none!important}
.child-buddy-mascot{width:62px;height:62px;object-fit:contain;flex:0 0 62px;filter:drop-shadow(0 5px 5px #4a38721f);animation:mascot-pop .45s cubic-bezier(.2,.8,.2,1)}
.child-buddy>div{min-width:0}
html[data-theme="cartoon"]{--bg:#f1f8ff;--surface:#fff;--ink:#27364d;--muted:#728099;--line:#dce8f3;--green:#287bc1;--green2:#e2f2ff;--leaf:#347fbd;--lime:#ffd35c;--gold:#bf852c;--red:#d75465;--mode-library:#338cc8;--mode-learn:#5279c7;--mode-dictation:#469bb5;--mode-wash:#f2f8ff;--coach-tint:#e2f3ff;--coach-tint2:#f1f5ff;--coach-orbit:#55a9df26;--coach-shadow:#287bc11a;--shadow:0 12px 30px #3b78a314}
html[data-theme="cartoon"] body{background:radial-gradient(circle at 92% 12%,#83cfff25,transparent 250px),radial-gradient(circle at 8% 42%,#d7eaff48,transparent 300px),var(--bg)}
html[data-theme="cartoon"] .topbar{background:#f7fbffed;border-bottom-color:var(--line)}
html[data-theme="cartoon"] .btn-primary{box-shadow:0 4px 0 #175b96!important}
html[data-theme="cartoon"] .hero{background:linear-gradient(125deg,#4ea8df,#287bc1)}
html[data-theme="cartoon"] .tab.active{background:var(--green2)}
html[data-theme="cartoon"] .mode-choice-learn{--choice-color:#5279c7}
html[data-theme="cartoon"] .mode-choice-dictation{--choice-color:#469bb5}
html[data-theme="cartoon"] .mode-hero-art::after{border-color:#d8e9f6;color:#287bc1}
.theme-preview-cartoon{background:#eaf6ff}.theme-preview-cartoon i{background:#55afe3}.theme-preview-cartoon i:nth-child(2){background:#7d98e4}.theme-preview-cartoon i:nth-child(3){background:#ffd35c}
@media(min-width:700px){.mode-hero-art{width:116px;height:116px}}
@media(max-width:430px){.mode-hero-art{width:88px;height:88px}.child-buddy-mascot{width:52px;height:52px;flex-basis:52px}}
@media(prefers-reduced-motion:reduce){.hero-mascot,.mode-hero-art.is-changing .hero-mascot{animation:none}}
