/* 今晚的星宿（命运卡片）· 星图官网模块
   全部样式都在 #fate 下，不影响官网其他部分 */
@font-face{font-family:"FateSerif";src:url(fate-serif.woff) format("woff");font-weight:600;font-display:swap}
#fate{position:fixed;inset:0;z-index:60;display:none;background:#04050a;color:#e9edf7;font:15px/1.6 "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;--fs:"FateSerif","YiSerif","Noto Serif SC","Songti SC","STSong",serif}
#fate.on{display:block}
#fate *{box-sizing:border-box}
#fate button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}
#fate canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#fate .fx-lay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
#fate .fx-hold{z-index:3;place-items:end center;padding-bottom:max(10vh,60px);text-align:center}
#fate .fx-hold b{display:block;font:600 clamp(18px,2.2vw,24px)/1.5 var(--fs);letter-spacing:.14em}
#fate .fx-hold span{display:block;margin-top:6px;font-size:12px;color:#8d95ad;letter-spacing:.24em}
#fate .fx-ring{position:absolute;z-index:4;width:88px;height:88px;margin:-44px 0 0 -44px;pointer-events:none}
#fate .fx-ring circle{fill:none;stroke-width:1.5}
#fate .fx-vast{z-index:2}
#fate .fx-box{position:relative;height:min(92vh,150vw);aspect-ratio:2/3}
#fate .fx-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:screen;
  -webkit-mask:radial-gradient(closest-side,#000 70%,transparent);mask:radial-gradient(closest-side,#000 70%,transparent)}
#fate .fx-box svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
#fate .fx-nm{position:absolute;left:0;right:0;bottom:-1%;text-align:center;font:600 clamp(24px,3vw,34px)/1 var(--fs);color:#fff;text-shadow:0 0 30px rgba(224,179,106,.6)}
#fate .fx-stage{z-index:5;perspective:1200px}
#fate .fx-card{position:relative;container-type:inline-size;width:min(74vw,50vh,520px);aspect-ratio:2/3;border-radius:16px;overflow:hidden;background:#060912;
  border:1px solid rgba(216,182,125,.6);box-shadow:0 40px 90px -30px #000,0 0 80px -16px rgba(224,179,106,.55)}
#fate .fx-card::after{content:"";position:absolute;inset:7px;border:1px solid rgba(216,182,125,.45);border-radius:11px;pointer-events:none}
#fate .fx-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#fate .fx-card svg{position:absolute;inset:0;width:100%;height:100%}
#fate .fx-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,10,.5) 0%,transparent 20%,transparent 50%,rgba(4,5,10,.8) 73%,rgba(4,5,10,.96) 100%)}
#fate .fx-foil{position:absolute;inset:0;mix-blend-mode:screen;opacity:.4;background:linear-gradient(115deg,transparent 36%,rgba(255,236,200,.26) 47%,rgba(190,215,255,.2) 53%,transparent 64%);background-size:260% 260%}
#fate .fx-hd{position:absolute;left:0;right:0;top:0;padding:4.6cqw 5.2cqw;display:flex;justify-content:space-between;font-size:2.9cqw;letter-spacing:.32em;color:rgba(243,230,204,.8)}
#fate .fx-bd{position:absolute;left:0;right:0;bottom:0;padding:0 6.3cqw 5.7cqw}
#fate .fx-lab{font-size:2.9cqw;letter-spacing:.4em;color:rgba(243,230,204,.7)}
#fate .fx-card h3{margin:2.3cqw 0 2.9cqw;font:600 9.6cqw/1.1 var(--fs);letter-spacing:.3em;color:#fff;text-shadow:0 0 24px rgba(224,179,106,.7)}
#fate .fx-ln{margin:0 0 4cqw;font:600 4.3cqw/1.8 var(--fs);letter-spacing:.06em;color:rgba(233,237,247,.94)}
#fate .fx-sg{display:flex;align-items:center;gap:2.3cqw;font-size:3.4cqw;color:#8d95ad;border-top:1px solid rgba(216,182,125,.25);padding-top:3.1cqw}
#fate .fx-sg i{width:6px;height:6px;border-radius:50%;background:#e0b36a;box-shadow:0 0 8px 2px #e0b36a;flex:none}
#fate .fx-sg span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fate .fx-acts{z-index:6;place-items:end center;padding-bottom:max(4vh,22px)}
#fate .fx-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
#fate .fx-ab{white-space:nowrap;min-height:44px;padding:0 20px;border:1px solid rgba(233,237,247,.14);border-radius:999px;background:rgba(10,12,22,.6);font-size:14px;color:#8d95ad;letter-spacing:.08em}
#fate .fx-ab:hover,#fate .fx-ab:focus-visible{color:#e9edf7;border-color:rgba(233,237,247,.35);outline:none}
#fate .fx-ab.main{background:#f3e6cc;color:#14110a;border-color:#f3e6cc}
#fate .fx-skip{position:absolute;z-index:7;right:14px;top:12px;min-height:40px;padding:0 14px;font-size:12px;color:#8d95ad;letter-spacing:.16em}
#fate .fx-skip:hover,#fate .fx-skip:focus-visible{color:#e9edf7;outline:none}

#fate .fx-col{display:grid;justify-items:center;gap:6px}
#fate .fx-gift{min-height:40px;padding:0 14px;border:0;background:none;color:rgba(243,230,204,.72);font-size:13px;letter-spacing:.18em;cursor:pointer}
#fate .fx-gift:hover,#fate .fx-gift:focus-visible{color:#f3e6cc;outline:none}
/* 卡片上的星座退到画后面一点，画是主角 */
#fate .fx-card svg{opacity:.72}
