:root{color-scheme:dark;--ink:#f3eadb;--muted:#b9b6c8;--gold:#dec495;--line:#8f8064;--panel:#1c2138;--serif:"STSong","SimSun","Songti SC",serif;font-family:"Microsoft YaHei",sans-serif;font-size:16px;color:var(--ink);background:#090e1c}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:grid;place-items:center}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid #fff3d2;outline-offset:4px}button{color:var(--ink)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:400}h1{font-size:clamp(1.8rem,3.5vw,3.5rem);letter-spacing:.18em}h2{font-size:clamp(1.5rem,2.8vw,2.8rem);letter-spacing:.15em}p{line-height:1.8}small{font-size:.875rem;color:var(--muted)}[hidden]{display:none!important}.boot{padding:3rem}.stage{width:min(100vw,177.7778dvh);aspect-ratio:16/9;position:relative;isolation:isolate;overflow:hidden;background:#11172a}.scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.shade{position:absolute;inset:0;background:#090e1c80;z-index:-1}.topbar{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:1.4% 2%;z-index:3;gap:1rem;background:linear-gradient(#0d112aa6,transparent)}.brand{letter-spacing:.18em;font-family:var(--serif);color:var(--gold)}.ghost{border:1px solid #b79d715c;background:#10182bba;padding:.55rem .9rem;border-radius:3px;font-size:.875rem}.ghost:hover{background:#3b3651}.primary{border:1px solid #e8cd9d;background:linear-gradient(110deg,#e2c599,#fff0d0,#ddbf8d);color:#332a29;padding:.75rem 2rem;min-height:44px;border-radius:30px;box-shadow:0 0 18px #d5b98725;letter-spacing:.1em}.primary:hover{filter:brightness(1.08)}.secondary{border:1px solid #bda47d;background:#292a42;padding:.7rem 1.4rem;min-height:44px;border-radius:30px}.actions{display:flex;justify-content:center;align-items:center;gap:.8rem;flex-wrap:wrap}.muted{color:var(--muted)}.eyebrow{font-size:.875rem;letter-spacing:.25em;color:var(--gold);margin-bottom:.6rem}.ornament{color:var(--gold);font-size:1.8rem;margin:0 0 .5rem}.notice{font-size:.875rem;color:#ded0b7;line-height:1.6;margin:.7rem 0}.error{color:#ffd2cb;background:#5e283944;border:1px solid #b7787d;padding:.7rem 1rem;border-radius:5px;line-height:1.6}.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}.home-title,.home-row{display:none}.home-link{position:absolute;left:2.512%;width:24.462%;height:11.052%;padding:0;background:none;border:0;border-radius:0}.home-link::before{content:"";position:absolute;inset:0;background:url("/assets/home/band.webp") 0 0/100% 100% no-repeat;opacity:0;transition:opacity .25s}.home-link:hover::before,.home-link:focus-visible::before,.home:not(:has(.home-link:hover,.home-link:focus-visible)) .home-start::before{opacity:1}.home-link:focus-visible{outline-offset:0}.home-start{top:36.132%}.home-daily{top:48.034%}.home-history{top:59.936%}.home-collection{top:71.945%}.home-tools{position:absolute;right:2%;bottom:3%;display:flex;gap:.7rem}.home-note{position:absolute;bottom:2%;left:4%;font-size:.8rem;color:#e8ddc5}.panel{position:absolute;inset:9% 21% 7%;padding:2.5% 3%;border:1px solid #bc9f73;border-radius:24px;background:radial-gradient(ellipse at 10% 0,#323249,#1b2035 65%);box-shadow:0 0 0 5px #151a2b,0 0 0 6px #7d6b50,0 25px 70px #03081780;overflow:auto;scrollbar-color:#8a7894 #1b2035;text-align:center}.panel.wide{inset:9% 6% 5%;padding:2% 3%}.panel h2{margin-bottom:.6rem}.panel-close{position:absolute;right:1rem;top:.8rem;border:1px solid #af9675;background:none;border-radius:50%;width:36px;height:36px;font-size:1.3rem}.panel-heading{margin-bottom:1.5rem}.intro-copy{position:absolute;left:8%;right:8%;bottom:8%;padding:1.5rem;text-align:center;background:#11172ada;border:1px solid #bfa47750;border-radius:10px}.intro-copy h1{margin-bottom:1rem}.intro-copy p{margin-bottom:1rem}.scene.dark{filter:brightness(.14)}.scene.awake{filter:brightness(.48)}.intro-skip{position:absolute;top:5%;right:4%}.question-title{position:absolute;left:5%;top:12%;width:27%;padding:1.2rem;background:#171b30d9;border-left:1px solid var(--gold)}.question-title h1{font-size:clamp(1.5rem,2.3vw,2.5rem);line-height:1.5}.question-form{position:absolute;left:34%;width:33%;top:72%;height:26%;display:flex;flex-direction:column;gap:.6rem}.question-form textarea{min-height:64px;flex:1;resize:none;color:#332a34;background:#f4e6d8eb;border:1px solid #b9a178;border-radius:2px;padding:.75rem;font-family:var(--serif);line-height:1.6}.question-form .primary{align-self:center;padding:.55rem 1.7rem}.question-form .error{position:absolute;bottom:100%;left:0;right:0;background:#352337}.question-count{position:absolute;right:.5rem;bottom:3.3rem;font-size:.75rem;color:#5a4857}.skin-image{height:36%;min-height:120px;max-height:240px;aspect-ratio:2/3;object-fit:contain;border-radius:8px;box-shadow:0 15px 40px #0006}.skin-panel p{margin:.7rem 0}.guide-positions{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin:1.5rem 0}.guide-positions span{border:1px solid #7d718b;padding:.65rem .8rem;background:#25273f}.guide-question{color:#e5d7c3;font-family:var(--serif);font-size:1.15rem;overflow-wrap:anywhere}.board{position:absolute;inset:37% 15% 5%;border:1px solid #96806b;border-radius:14px;background:linear-gradient(145deg,#29283d,#11182b);box-shadow:0 12px 50px #0008;padding:1.5%;text-align:center;overflow:auto}.board-title{position:absolute;top:12%;left:5%;right:5%;text-align:center;text-shadow:0 2px 8px #000;background:#11182bc9;padding:.8rem;border:1px solid #bc9f7340}.board-title h2{font-size:1.6rem;margin-bottom:.4rem}.board-title p{margin:0;line-height:1.5}.slots{display:flex;justify-content:center;gap:1.2rem;margin:0 0 1rem}.slot{display:flex;flex-direction:column;align-items:center;gap:.35rem;min-width:0;font-size:.875rem;color:#d7c6aa}.slot-box{height:clamp(60px,9vw,140px);aspect-ratio:2/3;border:1px dashed #9d87a5;border-radius:5px;display:grid;place-items:center;color:#c3aed3}.slot-box img{width:100%;height:100%;object-fit:cover;border-radius:4px}.deck-row{display:flex;gap:8px;overflow:auto;padding:.65rem .5rem 1rem;scrollbar-color:#b39568 #161c31}.deck-card{flex:0 0 clamp(45px,4.3vw,75px);padding:0;border:1px solid #a798b0;border-radius:5px;overflow:hidden;aspect-ratio:2/3;background:#151626}.deck-card img{width:100%;height:100%;object-fit:cover;display:block}.deck-card:hover{outline:2px solid var(--gold)}.deck-card.chosen{opacity:.18}.draw-help{font-size:.875rem;color:#c8bbd6;margin:0}.card-image{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border:1px solid #bba882;border-radius:6px;box-shadow:0 10px 24px #0005}.card-image.reversed{transform:rotate(180deg)}.reading-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem;text-align:left}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;align-items:start}.cards-grid[data-count="1"]{grid-template-columns:minmax(0,190px);justify-content:center}.cards-grid[data-count="4"]{grid-template-columns:repeat(3,minmax(0,1fr))}.cards-grid[data-count="4"] .result-card:last-child{grid-column:2;grid-row:1}.cards-grid[data-count="4"] .result-card:not(:last-child){grid-row:2}.cards-grid[data-count="5"]{grid-template-columns:repeat(3,minmax(0,1fr))}.cards-grid[data-count="5"] .result-card:first-child{grid-column:2;grid-row:2}.cards-grid[data-count="5"] .result-card:nth-child(2){grid-column:1;grid-row:1}.cards-grid[data-count="5"] .result-card:nth-child(3){grid-column:1;grid-row:2}.cards-grid[data-count="5"] .result-card:nth-child(4){grid-column:3;grid-row:1}.cards-grid[data-count="5"] .result-card:nth-child(5){grid-column:3;grid-row:2}.result-card{margin:0;text-align:center;min-width:0}.result-card button{padding:0;background:none;border:0;width:100%;border-radius:6px}.result-card figcaption{font-size:.875rem;line-height:1.5;margin-top:.6rem;color:#dbc9ab}.result-card .position{display:block;color:#aaa3bd;font-size:.8rem}.reading-copy{max-height:100%;font-size:1rem;overflow-wrap:anywhere}.reading-copy h3{color:var(--gold);font-size:1.3rem;margin:1.2rem 0 .6rem}.reading-copy p{white-space:pre-wrap}.result-question{font-family:var(--serif);font-size:1.2rem;line-height:1.7}.result-actions{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #a38b6940}.followup-form{text-align:left;margin-top:1.5rem}.followup-form label{display:block;color:var(--gold);margin-bottom:.6rem}.followup-form textarea{width:100%;min-height:85px;background:#10182b;border:1px solid #82738e;border-radius:5px;color:var(--ink);padding:.8rem;resize:vertical;line-height:1.6;margin-bottom:.6rem}.followup-item{text-align:left;border-top:1px solid #a38b6940;padding-top:1rem;margin-top:1rem}.followup-item p{white-space:pre-wrap;overflow-wrap:anywhere}.daily-back{width:min(27%,155px);margin:1rem auto 1.5rem;display:block;border-radius:8px;box-shadow:0 12px 24px #0006}.daily-panel .daily-date{color:var(--gold);letter-spacing:.1em}.record-list{text-align:left;display:grid;gap:0}.record-row{width:100%;display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:1rem;padding:1rem .2rem;align-items:center;border:0;border-bottom:1px solid #86775b77;background:none;color:var(--ink);text-align:left}.record-row:hover{background:#dbbe9620}.record-row img{width:55px;aspect-ratio:2/3;object-fit:cover;border:1px solid #bda47d;border-radius:3px}.record-row strong{display:block;font-family:var(--serif);font-size:1.15rem;font-weight:400;margin:.25rem 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-row small{display:block}.record-row .open{color:var(--gold);font-size:.875rem}.empty{padding:3rem 0;color:#ccc1d9}.empty .ornament{font-size:3rem}.settings-row{display:flex;justify-content:space-between;text-align:left;gap:2rem;align-items:center;margin:1.5rem 0;padding:1rem 0;border-bottom:1px solid #bda47d55}.settings-row span{display:block;margin-bottom:.5rem}.settings-row input{width:22px;height:22px;accent-color:#cfb083}.status-box{text-align:left;background:#11182b;padding:1rem;border:1px solid #726586;line-height:1.8}.debug-badge{background:#3d2b32;border:1px solid #bca17f;color:#f1d8ae;font-size:.8rem;padding:.25rem .5rem;border-radius:4px}.pagination{margin-top:1rem;display:flex;justify-content:center;gap:1rem;align-items:center}#toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:#e8d6b7;color:#302839;padding:.8rem 1.5rem;box-shadow:0 8px 30px #0008;max-width:90vw;border-radius:5px;z-index:20;text-align:center}
@media(max-width:900px){.panel{inset:8% 15% 5%;padding:2% 3%}.reading-layout{gap:1rem}.board{inset:36% 9% 4%}.panel h2{font-size:1.5rem}.ornament{font-size:1.2rem}.panel-heading{margin-bottom:.8rem}.notice{font-size:.8rem}.slots{gap:.7rem;margin-bottom:.4rem}.slot-box{height:70px}.primary,.secondary{padding:.6rem 1rem}.question-title{width:32%;left:3%;padding:.8rem}.question-title p{font-size:.875rem}.question-form{width:40%;left:32%;top:67%;height:31%}.home-note{display:none}}
.share-dialog{width:min(680px,94vw);max-height:90dvh;border:1px solid var(--gold);border-radius:16px;background:#181e33;color:var(--ink);padding:1.5rem;text-align:center;overflow:auto}.share-dialog::backdrop{background:#070b19de}.share-dialog h2{font-size:1.5rem}.share-dialog>img{width:100%;height:auto;display:block;margin:1rem auto}.share-dialog .actions{position:sticky;bottom:0;background:#181e33;padding:1rem 0}.share-dialog a{text-decoration:none;display:inline-block}
.intro-skip{z-index:4}

/* Desktop hotspots share the 1672 x 941 artwork coordinates, including equal padding around each icon. */
@media(min-width:768px){.home{aspect-ratio:1672/941;width:min(100vw,177.6833dvh)}.home>.scene{object-fit:fill}}
/* 界面默认不可选中，避免连点牌面时误入选字或弹出长按菜单；解读正文、追问与输入框仍可复制编辑。 */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}img{-webkit-user-drag:none}
input,textarea,.paper-scroll,.ref-result-scroll,.followup-item,.error{-webkit-user-select:text;user-select:text}
