/* Black Cat's Mystic Cottage — black / gold / violet / midnight blue. */
:root {
  color-scheme: dark;
  --night: #090b14; --panel: #11131e; --panel-raised: #171925;
  --ink: #f1eee8; --muted: #a3a3b6; --gold: #dfbf7d; --gold-bright: #f0d8a3;
  --violet: #a197e2; --blue: #7e9acb; --line: rgba(212, 193, 157, .14);
  --ease: cubic-bezier(.22, .68, .2, 1);
}
html { scroll-padding-top: 24px; }
body {
  background: radial-gradient(ellipse at 72% 0, rgba(64, 43, 105, .21), transparent 45%),
    radial-gradient(ellipse at 0 46%, rgba(33, 57, 92, .14), transparent 42%), var(--night);
  color: var(--ink); font-size: 15px; line-height: 1.6; min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}
body::before { animation: none; opacity: .22; background-size: 100% 1150px; position: absolute; }
body.modal-open { overflow: hidden; }
::selection { background: #645081; color: #fff; }
#app { width: 100%; max-width: 1168px; padding: 0 28px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 200; background: var(--gold); color: var(--night); padding: 10px 18px; border-radius: 8px; transform: translateY(-200%); opacity: 0; pointer-events: none; }
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }
.view { min-height: 100svh; justify-content: flex-start; }
.view-inner { outline: none; }
.view-inner h1:focus, .view-inner h2:focus { outline: none; }
.view-arriving { animation: view-arrive .24s var(--ease) both; }
@keyframes view-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .19em; line-height: 1.7; }
h1, h2, h3 { font-weight: 600; letter-spacing: .02em; }
h1, .page-intro h1, .hero-copy h1, .auth-story h2 { font-family: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif; }
h2 { font-size: 23px; margin-bottom: 8px; }
.hint, .subtitle { color: var(--muted); font-size: 13px; line-height: 1.8; }
button { font: inherit; color: var(--ink); border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease); }
button:hover { opacity: 1; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
button.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(110deg, #e1c183, #cba86c); color: #19151b; border: 1px solid #e9cd94; font-weight: 650; min-height: 46px; padding: 12px 22px; box-shadow: 0 4px 18px rgba(202, 161, 89, .09); }
button.primary:hover:not(:disabled) { background: var(--gold-bright); border-color: var(--gold-bright); }
button.primary.big { font-size: 15px; min-height: 48px; }
button.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-color: var(--line); color: #d0cfda; background: rgba(255, 255, 255, .015); }
button.ghost:hover:not(:disabled) { border-color: rgba(223, 191, 125, .5); background: rgba(223, 191, 125, .06); color: var(--gold-bright); }
button.small { padding: 8px 12px; min-height: 40px; font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 20px; backdrop-filter: none; box-shadow: none; }
.card .card { background: #0e111c; }
.topbar { min-height: 100px; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.brand-home { padding: 0; border: 0; background: none; text-align: left; flex-shrink: 0; }
.brand-home:hover { color: var(--gold-bright); }
.userbox button span { white-space: nowrap; }
.brand-avatar { width: 49px; height: 49px; object-fit: contain; }
.brand.small { gap: 11px; }
.brand.small strong { font-size: 17px; font-weight: 600; letter-spacing: .05em; }
.brand.small small { display: block; font-size: 8px; letter-spacing: .14em; color: #8b8b9e; margin-top: 2px; }
.userbox { gap: 10px; font-size: 11px; }
#user-info { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
#logout { border-color: transparent; }
.content { padding-top: 26px; }
.notice { background: #171722; border-color: rgba(161,151,226,.25); font-size: 13px; padding: 14px 20px; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 466px; align-items: center; gap: 20px; }
.hero-copy { padding: 16px 0 35px; position: relative; z-index: 2; min-width: 0; }
.hero-copy .eyebrow { letter-spacing: .13em; display: flex; align-items: center; gap: 9px; }
.live-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 8px rgba(223,191,125,.35); }
.hero-copy h1 { font-size: clamp(30px, 3.4vw, 45px); line-height: 1.55; margin: 20px 0; font-weight: 500; letter-spacing: .035em; white-space: nowrap; }
.hero-copy h1 em { color: var(--gold); font-style: normal; }
.hero-intro { color: var(--muted); font-size: 14px; line-height: 2; }
.hero-actions { display: flex; gap: 12px; margin-top: 27px; }
.hero-footnote { display: flex; flex-wrap: wrap; align-items: center; gap: 0; color: #838395; font-size: 10px; margin-top: 24px; }
.hero-footnote span + span::before { content: '·'; color: var(--gold); margin: 0 12px; }
.hero-stage { position: relative; min-width: 0; height: 466px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-stage::before { content: ''; position: absolute; inset: 9% -2% 5%; z-index: -2; background: radial-gradient(ellipse, rgba(90, 64, 143, .2), rgba(46, 69, 117, .08) 47%, transparent 68%); }
.hero-mascot { width: min(100%, 435px); height: auto; position: relative; z-index: 2; object-fit: contain; animation: host-breathe 7s ease-in-out infinite; }
@keyframes host-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.orbit-ring { position: absolute; width: 84%; aspect-ratio: 1; border: 1px solid rgba(216,183,116,.12); border-radius: 50%; z-index: -1; }
.ring-two { width: 68%; border-color: rgba(141,144,212,.15); }
.ring-one::before, .ring-one::after { content: ''; position: absolute; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.ring-one::before { left: 15%; top: 15%; }.ring-one::after { right: 0; top: 51%; background: var(--blue); }
.stage-star { position: absolute; color: var(--gold); font-size: 22px; }.star-one { left: 6%; top: 19%; }.star-two { right: 3%; top: 12%; font-size: 30px; color: var(--violet); }.star-three { right: 7%; bottom: 22%; font-size: 14px; }
.host-note { position: absolute; bottom: 14px; right: 0; z-index: 3; display: grid; grid-template-columns: 1fr 20px; text-align: left; gap: 3px 18px; max-width: 315px; padding: 14px 20px; background: #151520; border: 1px solid rgba(222,190,126,.23); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.host-note:hover { border-color: var(--gold); }
.host-label { color: var(--gold-bright); font-size: 13px; }.host-label small { font-size: 10px; color: var(--muted); margin-left: 9px; }
#mascot-quote { color: #b4b1c3; font-size: 11px; grid-column: 1; line-height: 1.6; }.host-note > .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--gold); width: 17px; }
.explore-section { margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 0; font-size: 24px; }.section-aside { color: #858595; font-size: 11px; }
.pick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.pick-item { display: flex; flex-direction: column; text-align: left; width: 100%; min-width: 0; padding: 22px 20px; background: #11131e; border: 1px solid var(--line); border-radius: 13px; position: relative; overflow: hidden; }
.pick-item::before { content: ''; height: 2px; position: absolute; inset: 0 0 auto; background: var(--path-color); opacity: .6; }
.path-tarot { --path-color: #b29adc; }.path-liuyao { --path-color: #d5b579; }.path-zodiac { --path-color: #789ccd; }.path-tests { --path-color: #9e9acb; }
.pick-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 21px; }
.pick-icon { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--path-color); background: rgba(255,255,255,.02); }.pick-icon .icon { width: 23px; height: 23px; }
.path-index { color: #808092; font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.pick-name { font-size: 18px; font-weight: 600; margin: 0 0 10px; }.pick-desc { color: var(--muted); font-size: 12px; line-height: 1.9; min-height: 48px; }
.pick-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--path-color); font-size: 10px; width: 100%; border-top: 1px solid var(--line); margin-top: 19px; padding-top: 14px; }.pick-bottom .icon { width: 15px; height: 15px; }
@media (hover: hover) { .pick-item:hover { transform: translateY(-4px); border-color: var(--path-color); background: #171824; }.library-link:hover { border-color: rgba(223,191,125,.5); }.library-link:hover .library-action .icon { transform: translateX(4px); } }
.library-link { display: flex; align-items: center; gap: 28px; width: 100%; min-width: 0; margin-top: 22px; padding: 20px 26px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(110deg, #131620, #151321); text-align: left; }
.library-art { display: flex; align-items: center; width: 120px; height: 88px; flex-shrink: 0; padding-left: 12px; }.library-art img { width: 50px; height: 75px; object-fit: cover; border-radius: 4px; border: 1px solid #c0a374; margin-left: -10px; }.library-art img:first-child { transform: rotate(-13deg); }.library-art img:nth-child(2) { transform: translateY(-5px); z-index: 1; }.library-art img:last-child { transform: rotate(13deg); }
.library-copy { flex: 1; display: flex; flex-direction: column; gap: 5px; }.library-copy small { color: var(--gold); font-size: 8px; letter-spacing: .18em; }.library-copy strong { font-size: 19px; font-weight: 500; }.library-copy > span { color: var(--muted); font-size: 12px; }
.library-action { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 12px; white-space: nowrap; }.library-action .icon { transition: transform .18s var(--ease); width: 17px; }
.site-footer { display: flex; align-items: center; gap: 16px; padding: 29px 0; margin-top: 32px; border-top: 1px solid var(--line); color: #7e7e90; font-size: 10px; }.site-footer > span:first-child { color: #aaa4ae; }.footer-star { margin-left: auto; color: var(--gold); }
/* Rooms */
.view-inner:not(#view-pick):not(#view-tarot):not(#view-guide) { max-width: 760px; margin: 0 auto; }
.back-btn { margin: 0 0 22px; }
.page-intro { margin-bottom: 30px; }.page-intro h1 { font-size: 30px; margin: 8px 0 10px; }.page-intro > p:last-child { color: var(--muted); font-size: 13px; }
.tarot-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }.tarot-workspace > .card { margin-bottom: 0; }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }.panel-heading h2 { font-size: 18px; margin: 0; }.panel-heading .hint { font-size: 11px; margin-top: 3px; }.step-number { font-family: Georgia, serif; font-size: 24px; color: var(--gold); border-right: 1px solid var(--line); padding-right: 14px; }
.spread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.spread-item { min-width: 0; padding: 15px 13px; border-color: rgba(191,185,205,.12); background: #161824; border-radius: 9px; }.spread-item .name { font-size: 13px; font-weight: 550; }.spread-item .desc { font-size: 11px; color: #9999ad; line-height: 1.7; margin-top: 7px; }.spread-item .pos { font-size: 9px; color: #aaa0c7; line-height: 1.8; margin-top: 9px; }.spread-item.selected { background: #211e25; border-color: var(--gold); }.spread-item.selected .name { color: var(--gold-bright); }.spread-item:hover:not(:disabled) { border-color: #887d9d; }.spread-item.selected:hover { border-color: var(--gold); }.spread-item:disabled { opacity: .75; }
label, .field-label { display: block; font-size: 12px; color: #d8d5df; margin: 16px 0 8px; }.field-label span { color: #7f8095; margin-left: 6px; font-size: 10px; }
input, textarea { font: inherit; font-size: 14px; line-height: 1.75; border: 1px solid rgba(166,164,186,.2); border-radius: 9px; padding: 12px 14px; color: var(--ink); background: #0b0e18; transition: border-color .18s ease, background-color .18s ease; margin: 0; min-width: 0; }
input { min-height: 46px; }textarea { resize: vertical; display: block; margin-bottom: 18px; min-height: 90px; }input::placeholder, textarea::placeholder { color: #73758b; font-size: 12px; }input:focus, textarea:focus { border-color: var(--gold); outline: 2px solid rgba(223,191,125,.08); outline-offset: 0; background: #10131e; }textarea[readonly] { opacity: .78; border-color: rgba(223,191,125,.25); }
#do-reading { width: 100%; margin-top: 5px; }.form-footnote { color: #898598; font-size: 10px; text-align: center; margin-top: 10px; }
details { padding: 12px 15px; border: 1px solid rgba(147,135,185,.2); background: #181723; border-radius: 8px; font-size: 12px; color: #beb5d2; margin: 0 0 15px; }summary { cursor: pointer; }#guide-text { line-height: 1.9; margin-top: 10px; }#spread-help { color: var(--gold); font-size: 12px; }#use-question-example { padding: 8px 10px; min-height: 34px; font-size: 10px; margin: 6px 0 0; }
.msg { font-size: 12px; min-height: 0; line-height: 1.8; margin-top: 12px; }.msg:empty { display: none; }.msg.ok { color: #bfc4a0; }.msg.error { color: #ecaaa5; }.msg.loading { display: flex; align-items: center; gap: 9px; color: #c0b6d3; }.msg.loading::before { content: ''; width: 13px; height: 13px; flex-shrink: 0; border: 1.5px solid rgba(223,191,125,.2); border-top-color: var(--gold); border-radius: 50%; animation: loading-turn .8s linear infinite; }@keyframes loading-turn { to { transform: rotate(360deg); } }
#result { max-width: 800px; margin: 35px auto 0; }.section-title { text-align: center; color: var(--gold-bright); margin-bottom: 9px; }.flip-hint { color: var(--muted); font-size: 12px; }.flip-inner { transition: transform .46s var(--ease); }.spread-caption { color: #c4b085; }.is-crossing .spread-caption { background: #16131e; }.reading-text { font-size: 14px; line-height: 1.95; padding: 26px; }.reading-text h3 { color: var(--gold-bright); margin: 24px 0 8px; }.reading-text h4 { color: #c8c0e1; margin: 20px 0 7px; }.reading-text strong { color: #f1e7d0; }.again-wrap { margin-top: 20px; }.orient.upright { color: #d2d8ba; }.orient.reversed { color: #e5b6af; }
.guide-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 25px; align-items: start; }.guide-item { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #171823; }.guide-card { background: none; border: 0; padding: 7px; }.guide-card .gc-name { font-size: 12px; color: var(--gold-bright); margin-top: 8px; }.guide-card .gc-en { color: #88889f; font-size: 8px; margin-bottom: 4px; }.guide-mean-wrap { margin: 0 10px 10px; border-color: var(--line); }.guide-mean { color: #bbb6cf; }.guide-mean.rev { color: #9d97af; }.guide-art { min-height: 0; }
.coin-table { background: radial-gradient(ellipse at 55% 50%, #242031, #10121b); border-color: var(--line); padding: 18px; }.coin-toss-row { border-color: var(--line); }.coin-ritual { margin: 28px 0; }.coin-ritual img { width: 78px; height: 78px; }.card-item { border-color: var(--line); background: #161925; padding: 16px; border-radius: 9px; margin-top: 12px; }.card-item .pos { color: var(--gold); font-size: 14px; }.card-item .kw { color: #b2aec3; font-size: 12px; margin-top: 7px; }
.tabs { padding: 4px; border: 1px solid var(--line); background: #0b0e17; border-radius: 10px; gap: 4px; }.tab { font-size: 13px; background: none; color: #9c97b0; padding: 9px 12px; border-radius: 7px; }.tab.active { color: var(--gold-bright); background: #25212d; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.zodiac-item { background: #171a26; color: #c3bfd2; border: 1px solid var(--line); min-height: 46px; font-size: 13px; }.zodiac-item:hover { border-color: var(--blue); }.quiz-opt { padding: 12px 16px; border-color: var(--line); }.quiz-opt.selected { color: var(--gold-bright); border-color: var(--gold); background: #27202c; }.quiz-qtext { color: #d4d0df; }.quiz-item .name, .record-item .name { color: var(--gold-bright); }.quiz-item .desc, .record-item .kw { color: var(--muted); font-size: 12px; }.quiz-item .pos, .record-item .pos { font-size: 10px; color: var(--violet); margin: 8px 0; }.quiz-result .quiz-type strong { color: var(--gold-bright); }.record-item .record-body { border-color: var(--line); }
.modal { background: rgba(5,6,12,.88); padding: 20px; overscroll-behavior: contain; }.modal-box { background: #131620; border: 1px solid rgba(223,191,125,.25); border-radius: 14px; padding: 22px; animation: view-arrive .2s var(--ease) both; max-height: 92svh; }.modal-box h3 { color: var(--gold-bright); }.art-preview #art-image { max-height: 59svh; }.art-preview { max-width: 460px; }
/* Welcome room */
#view-auth { display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: center; padding: 56px 30px; }
.auth-story { position: relative; text-align: left; padding-top: 20px; }.auth-story h2 { font-size: 44px; line-height: 1.55; font-weight: 500; color: var(--gold-bright); margin: 17px 0; }.auth-story > p:not(.eyebrow) { font-size: 13px; color: var(--muted); line-height: 1.9; }.auth-mascot { display: block; width: 350px; height: 350px; object-fit: contain; margin: 20px auto 0; }.story-signature { display: block; color: #807a91; font-size: 10px; text-align: center; margin-top: 10px; letter-spacing: .08em; }
.auth-card { padding: 30px; margin-bottom: 0; background: #11141f; }.auth-avatar { width: 83px; height: 83px; object-fit: contain; margin-bottom: 10px; }.brand h1 { font-family: inherit; font-size: 22px; color: var(--ink); margin: 9px 0; }.brand { margin-bottom: 25px; }.auth-card .subtitle { font-size: 12px; }.auth-card .form { gap: 9px; }.auth-card label { margin: 8px 0 0; }.auth-card .form > .primary { margin-top: 10px; }.auth-card .row { align-items: center; }.auth-card .row button { flex-shrink: 0; background: #24212e; border: 1px solid var(--line); min-height: 46px; }.auth-note { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); color: #8e879e; text-align: center; font-size: 10px; }.auth-note .icon { width: 13px; height: 13px; color: var(--gold); margin-right: 4px; }
@media (max-width: 1000px) { #view-auth { gap: 35px; padding: 45px 0; }.hero-copy h1 { font-size: 35px; }.pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.pick-desc { min-height: 0; }.hero-stage { height: 410px; }.home-hero { min-height: 420px; }.hero-mascot { width: 365px; }.host-note { max-width: 290px; }.guide-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }.tarot-workspace { grid-template-columns: 1fr; max-width: 760px; margin: auto; }.spread-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.page-intro { max-width: 760px; margin-left: auto; margin-right: auto; } }
@media (max-width: 760px) { #app { padding: 0 20px; }.topbar { min-height: 84px; padding: 15px 0; }.brand.small strong { font-size: 14px; }.brand.small small { font-size: 6px; }.brand-avatar { width: 41px; height: 41px; }.userbox { gap: 5px; }#user-info { display: none; }.userbox button { font-size: 10px; padding: 8px; }.userbox button .icon { width: 17px; height: 17px; }#logout span { display: none; }.content { padding-top: 20px; }.home-hero { grid-template-columns: 1fr; gap: 0; }.hero-copy { padding: 12px 0 0; text-align: center; }.hero-copy .eyebrow { justify-content: center; font-size: 9px; }.hero-copy h1 { font-size: clamp(28px, 5.1vw, 39px); margin: 20px 0 16px; line-height: 1.6; }.hero-intro { font-size: 12px; }.hero-actions { justify-content: center; gap: 10px; margin-top: 23px; }.hero-actions button { padding: 11px 16px; font-size: 12px; }.hero-footnote { justify-content: center; font-size: 9px; margin-top: 20px; }.hero-stage { height: 340px; width: 360px; max-width: 100%; margin: 15px auto 0; }.hero-mascot { width: 320px; }.orbit-ring { width: 83%; }.host-note { bottom: 0; right: 0; max-width: 260px; padding: 11px 16px; }.explore-section { margin-top: 39px; }.section-heading { margin-bottom: 18px; }.section-heading h2 { font-size: 20px; }.section-aside { display: none; }.pick-grid { gap: 12px; }.pick-item { padding: 18px 15px; }.pick-top { gap: 8px; margin-bottom: 17px; }.path-index { font-size: 7px; }.pick-name { font-size: 16px; }.pick-desc { font-size: 11px; min-height: 42px; }.pick-bottom { font-size: 9px; margin-top: 16px; gap: 4px; }.pick-icon { width: 32px; height: 32px; }.pick-icon .icon { width: 20px; height: 20px; }.library-link { padding: 19px 17px; gap: 17px; flex-wrap: wrap; }.library-art { width: 85px; height: 72px; }.library-art img { width: 39px; height: 59px; }.library-copy strong { font-size: 15px; }.library-copy > span { font-size: 10px; }.library-action { font-size: 10px; margin-left: auto; }.site-footer { gap: 8px; margin-top: 26px; padding: 25px 0; font-size: 9px; }.site-footer p { font-size: 8px; }.card { padding: 22px; border-radius: 12px; }.page-intro h1 { font-size: 26px; }.page-intro > p:last-child { font-size: 12px; }.spread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.spread-item .name { font-size: 12px; }.question-panel { margin-top: 0; }.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.guide-card .gc-name { font-size: 11px; }.guide-card .gc-en { font-size: 7px; }.reading-text { padding: 20px; }.coin-table { padding: 12px; }.coin-ritual img { width: 65px; height: 65px; }#view-auth { display: flex; flex-direction: column; gap: 24px; justify-content: center; padding: 36px 0; }.auth-story { display: none; }.auth-card { width: 100%; max-width: 400px; padding: 26px; }.auth-avatar { width: 100px; height: 100px; }.auth-card .brand h1 { font-size: 22px; }input, textarea { font-size: 16px; } }
@media (max-width: 380px) { #app { padding: 0 14px; }.brand.small { gap: 5px; }.brand.small strong { font-size: 12px; }.brand-avatar { width: 34px; height: 34px; }.userbox button { padding: 7px; }.userbox button span { font-size: 9px; }.hero-copy h1 { font-size: 26px; }.hero-footnote { font-size: 8px; }.hero-footnote span + span::before { margin: 0 8px; }.hero-stage { height: 310px; }.hero-mascot { width: 285px; }.pick-item { padding: 15px 12px; }.path-index { font-size: 6px; letter-spacing: .03em; }.pick-bottom { font-size: 8px; }.card { padding: 17px; }.spread-item { padding: 12px 10px; }.spread-item .desc { font-size: 10px; }.page-intro h1 { font-size: 24px; }.library-copy { min-width: 130px; }.library-copy strong { font-size: 13px; }.site-footer p { display: none; } }
.quiz-item { display: block; width: 100%; text-align: left; cursor: pointer; }
.reading-text p { margin: 0 0 16px; }
.reading-text p:last-child { margin-bottom: 0; }
.reading-text h3:first-child { margin-top: 0; }
.reading-text ul, .reading-text ol { margin: 10px 0 18px; padding-left: 22px; }
.reading-text li { margin: 7px 0; }
.reading-text code { padding: 2px 4px; border-radius: 4px; background: #222131; color: #d4c3e5; }
.guide-info { display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: none; text-align: center; }
.guide-info .gc-name, .guide-info .gc-en { display: block; }
#ly-draw { width: 100%; }
#share-image { display: block; width: 100%; height: auto; margin: 14px 0; border-radius: 9px; }
#share-download { margin: 12px 8px 0 0; }
#view-guide.view-arriving { animation: none; }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { width: min(360px, 100%); }
  .library-link { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px 18px; }
  .library-art { grid-column: 1; grid-row: 1 / 3; width: 90px; padding-left: 10px; }
  .library-art img { width: 32px; height: 48px; }
  .library-copy { min-width: 0; grid-column: 2; }
  .library-action { grid-column: 2; margin-left: 0; }
  .coin-toss-row { grid-template-columns: 28px minmax(0, 1fr) 54px; gap: 6px; }
  .coin-trio { min-width: 0; gap: 4px; }
  .coin-image { width: clamp(28px, 8.5vw, 36px); height: auto; aspect-ratio: 1; }
  .yao-line { width: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.hero-mascot { transform: none; }.msg.loading::before { border-color: var(--gold); } }

/* 黑猫陪伴：图片状态切换 + 小幅 transform，避免持续布局重排。 */
.host-touch { display: inline-block; padding: 0; border: 0; background: transparent; box-shadow: none; line-height: 0; cursor: pointer; }
.host-touch:hover, .host-touch:active { background: transparent; box-shadow: none; transform: none; }
.host-touch:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 16px; }
.auth-cat-touch { display: block; width: min(100%, 350px); margin: 20px auto 0; }
.auth-cat-touch .auth-mascot { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
.auth-avatar-touch { max-width: 100%; }
.auth-avatar-touch .auth-avatar { display: block; object-fit: contain; }
.hero-cat-touch { width: min(100%, 435px); max-width: 100%; position: relative; z-index: 2; flex-shrink: 0; }
.hero-cat-touch .hero-mascot { display: block; max-width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-stage { height: auto; min-height: 466px; flex-direction: column; gap: 12px; }
.hero-stage .orbit-ring { top: 14px; }
.hero-stage .host-note { position: relative; bottom: auto; right: auto; align-self: flex-end; margin-bottom: 8px; }
.host-settings { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 15px; color: #8f8a9f; font-size: 10px; line-height: 1.6; }
.hero-copy .host-settings { justify-content: flex-start; }
.host-settings button, .companion-bubble > button { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; background: transparent; }
[data-host-quiet][aria-pressed="true"] { color: var(--gold); border-color: rgba(223,191,125,.45); }
.host-quiet .hero-mascot { animation: none !important; }
.host-curious { animation: host-curious 1.3s ease-in-out !important; transform-origin: 50% 90%; }
@keyframes host-curious { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-3deg) translateY(-3px); } 70% { transform: rotate(2deg); } }
.companion-dock { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 82px; z-index: 40; pointer-events: none; }
.companion-pet { width: 82px; height: 82px; pointer-events: auto; }
.companion-pet img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.companion-bubble { position: absolute; right: 0; bottom: 94px; width: min(260px, calc(100vw - 28px)); padding: 15px; border: 1px solid rgba(223,191,125,.3); border-radius: 12px; color: var(--muted); background: #151520; box-shadow: 0 5px 24px rgba(0,0,0,.3); pointer-events: auto; }
.companion-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--gold); font-size: 12px; }
.companion-heading button { padding: 0; width: 28px; height: 28px; line-height: 1; border: 0; background: transparent; font-size: 21px; color: var(--muted); }
.companion-bubble p { margin: 7px 0 13px; font-size: 13px; line-height: 1.8; }
.companion-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.host-docked #app { padding-bottom: 104px; }
@media (max-width: 1000px) { .hero-cat-touch { width: min(100%, 365px); } }
@media (max-width: 760px) { .hero-copy .host-settings { justify-content: center; }.hero-stage { height: auto; min-height: 0; }.hero-cat-touch { width: min(100%, 320px); }.companion-dock, .companion-pet { width: 66px; }.companion-pet { height: 66px; }.companion-bubble { bottom: 79px; }body.host-docked #app { padding-bottom: 88px; } }
@media (max-width: 380px) { .hero-cat-touch { width: min(100%, 285px); } }
.userbox .admin-entry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(223,191,125,.38); border-radius: 8px; color: var(--gold); text-decoration: none; white-space: nowrap; font-size: 11px; }
.userbox .admin-entry:hover { background: rgba(223,191,125,.07); border-color: var(--gold); }
.userbox .admin-entry .icon { width: 16px; height: 16px; }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; }.userbox { width: 100%; justify-content: flex-end; }.userbox .admin-entry { font-size: 10px; padding: 8px; } }


/* 首页主视觉：对话框紧邻角色，入口集中在下方的占卜卡片。 */
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.35fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  min-height: 420px;
  height: auto;
  padding: 0 4px;
  overflow: visible;
}
.hero-stage .hero-cat-touch {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 380px);
  justify-self: end;
  align-self: center;
}
.hero-stage .hero-mascot {
  width: 100%;
  animation: host-breathe 5.8s ease-in-out infinite;
  transform-origin: 50% 86%;
  will-change: transform;
}
@keyframes host-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -5px, 0) scale(1.006); }
}
.hero-stage .host-note {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  width: min(100%, 225px);
  max-width: 225px;
  margin: 10px 0 0;
  padding: 14px 15px;
  border-color: rgba(222,190,126,.3);
}
.hero-stage .host-note::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(222,190,126,.3);
  border-right: 1px solid rgba(222,190,126,.3);
  background: #151520;
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 760px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    min-height: 0;
    padding: 4px 0 0;
  }
  .hero-stage .hero-cat-touch {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 320px);
    justify-self: center;
  }
  .hero-stage .host-note {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 340px);
    max-width: 340px;
    justify-self: center;
    margin: -7px 0 20px;
  }
  .hero-stage .host-note::after { top: -6px; right: 50%; transform: translateX(50%) rotate(-45deg); }
}
@media (max-width: 380px) {
  .hero-stage .hero-cat-touch { width: min(100%, 285px); }
}
