*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#111411;color:#eee6d5;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.42}button:focus-visible{outline:3px solid #8bdccc;outline-offset:4px}#stage{position:absolute;left:50%;top:50%;width:1280px;height:720px;transform:translate(-50%,-50%) scale(var(--scale,1));overflow:hidden;background:#151917;isolation:isolate;user-select:none}#app,.scene{height:100%}.scene{position:relative;overflow:hidden}.home,.screen{background:linear-gradient(90deg,rgba(9,18,17,.94),rgba(14,23,19,.55) 43%,rgba(12,18,17,.26) 78%),linear-gradient(0deg,#101815 1%,transparent 40%,#11181155),url("art/hero.webp") center 48%/cover,#273126}.home:after,.screen:after{content:"";position:absolute;pointer-events:none;inset:13px;border:1px solid #d4af6b36;z-index:0}.top{position:relative;z-index:2;height:84px;margin:0 43px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #cfb27d44}.brand,.top-actions,.modeRow,.cardstats,.tools,.spreadhead,.row,.heroBar,.pool{display:flex;align-items:center}.brand{gap:15px;font-family:serif;font-weight:900;letter-spacing:3px;font-size:23px}.brand small,.latin{font:700 10px/1.5 Georgia,serif;display:block;letter-spacing:3px;color:#ccb485}.sigil{display:grid;place-items:center;width:36px;height:36px;border:2px solid #d6ae68;transform:rotate(45deg);box-shadow:inset 0 0 0 3px #1f211a,inset 0 0 0 4px #9d804e;background:linear-gradient(140deg,#9a7335,#332e20)}.sigil b{transform:rotate(-45deg);font:900 21px serif;color:#f5da9c}.top-actions{gap:13px}.sub,.mode,.quiet,.packBtn{border:1px solid #96815a80;background:linear-gradient(#2e342bd9,#191f1ae8);border-radius:4px;padding:9px 16px;font-weight:600}.sub:hover,.mode:hover,.quiet:hover,.packBtn:hover{border-color:#f3d391}.sub{display:flex;align-items:center;gap:8px}.ico{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.homecopy{position:absolute;left:68px;top:167px;z-index:2;max-width:470px}.eyebrow{display:flex;align-items:center;gap:12px;color:#e1c28a;letter-spacing:3px;font-size:15px;font-weight:700}.eyebrow:before{content:"";width:38px;height:2px;background:#c29955}h1,h2,h3,h4,p{margin:0}.homecopy h1{font:900 88px/1.32 "Songti SC","STSong",serif;letter-spacing:5px;color:#f1dfb8;text-shadow:0 4px 1px #3e3323,0 7px 24px #111}.homecopy p{width:425px;color:#d7cfb9;font-size:19px;line-height:1.8;margin:12px 0 26px}.primary{position:relative;min-width:205px;padding:13px 28px;border:2px solid #dfc186;border-radius:5px;color:#f9ebcc;font:800 22px/1.2 "Songti SC",serif;letter-spacing:3px;background:linear-gradient(165deg,#40756a,#205348 42%,#173c36);box-shadow:inset 0 0 0 2px #1b312a,inset 0 0 0 3px #b79c62,0 5px 0 #242319,0 8px 16px #0008;text-shadow:0 1px 3px #142d28;display:inline-flex;gap:11px;align-items:center;justify-content:center}.primary:before,.primary:after{content:"◆";font:10px Georgia;color:#d7bf86;position:absolute;left:9px}.primary:after{left:auto;right:9px}.primary:hover{filter:brightness(1.16)}.primary:active{transform:translateY(2px)}.feature{position:absolute;left:570px;right:30px;top:83px;height:475px;display:grid;place-items:center;perspective:1100px}.feature:before{content:"";position:absolute;width:420px;height:420px;border:1px solid #d9b26f66;border-radius:50%;box-shadow:0 0 0 11px #d9b26f12,0 0 0 13px #cfa76a33;background:radial-gradient(#d2b06622,transparent 68%)}.bigcard{--tone:#285448;width:193px;height:290px;position:relative;padding:5px;border:2px solid #d7ba80;border-radius:14px 14px 11px 11px;background:linear-gradient(125deg,#f5d89d 0,#66543b 14%,#302c23 35%,#ae8a4b 70%,#443727 92%);box-shadow:0 9px 14px #0009,inset 0 0 0 2px #423927;display:block;text-align:center}.bigcard[data-pack=水浒]{--tone:#7e3c2b}.bigcard[data-pack=亮剑]{--tone:#46533a}.cardface{position:absolute;inset:5px;border-radius:9px;overflow:hidden;background:var(--tone);border:1px solid #231e14}.cardface img{height:79%;width:100%;object-fit:cover;object-position:50% 30%;display:block}.cardface:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 14px #100e0bb3;border-radius:8px}.cardname{position:absolute;top:61%;left:2%;width:96%;z-index:1;padding:5px 0;color:#ffe7b9;font:900 24px/1.2 "Songti SC",serif;letter-spacing:3px;text-shadow:0 2px 2px #000;background:linear-gradient(90deg,#201c16,var(--tone) 20%,var(--tone) 80%,#201c16);border-block:2px solid #b59661;box-shadow:0 2px 4px #211b14}.desc{position:absolute;left:5px;right:5px;top:73%;bottom:4px;border-radius:0 0 8px 8px;padding:7px 12px;color:#443423;background:radial-gradient(ellipse at center,#efe2bd,#c2a57c);font:600 13px/1.45 serif;display:grid;align-content:center}.gem,.num{position:absolute;z-index:2;display:grid;place-items:center;text-shadow:0 1px 3px black;color:#fff0c8;font:bold 23px Georgia,serif;border:2px solid #cfb582;box-shadow:0 2px 4px #0009}.gem{top:-6px;left:-6px;background:linear-gradient(140deg,#83bfbd,#285d67 50%,#182d38);border-radius:50% 50% 50% 15%;width:36px;height:37px}.num{bottom:-5px;left:-5px;border-radius:50%;background:linear-gradient(155deg,#c99843,#5e401b);width:31px;height:31px}.num.hp{left:auto;right:-5px;background:linear-gradient(155deg,#ba6850,#6c3027)}.featured-card{position:absolute;top:93px;left:224px;transform-origin:50% 105%;transition:transform .3s;animation:arrive .5s backwards}.featured-card.left{transform:translate(-121px,20px) rotate(-15deg)}.featured-card.right{transform:translate(122px,20px) rotate(15deg)}.featured-card.mid{z-index:1;transform:translateY(-13px) scale(1.13)}.featured-card:hover{z-index:3;filter:brightness(1.1)}.legend{position:absolute;bottom:11px;color:#dfc998;letter-spacing:4px;font:700 14px serif}.modes{position:absolute;bottom:36px;left:54px;right:54px;border-top:1px solid #ac95635e;padding-top:15px;z-index:2}.sectioncap{font-size:13px;color:#d3bb8d;letter-spacing:3px;margin-bottom:10px}.modeRow{gap:12px}.mode{flex:1;display:flex;gap:16px;align-items:center;text-align:left;padding:13px 19px;background:linear-gradient(110deg,#222c26f2,#141c19ed);height:69px}.mode .ico{width:30px;height:30px;color:#cfba8f}.mode strong{font:700 18px serif;letter-spacing:2px}.mode small{display:block;font-size:13px;color:#bcb9aa;margin-top:4px}.mode.on,.packBtn.on{border-color:#d6b778;box-shadow:inset 3px 0 #dbbb7b;background:linear-gradient(110deg,#3d4c3d,#202e26)}.mode.on:after{content:"◆";color:#d2b176;margin-left:auto}
.screen{display:flex;flex-direction:column;background-color:#16241c}.panel{position:absolute;inset:0;display:grid;place-items:center;background:#0b110fe6;z-index:8}.dialog{width:min(1010px,92%);max-height:660px;position:relative;padding:27px 33px;border:2px solid #a98b55;border-radius:9px;box-shadow:inset 0 0 0 4px #27271f,inset 0 0 0 5px #635b40,0 12px 40px #000b;background:radial-gradient(ellipse at top,#364236,#19251f 80%)}.dialog.sm{width:550px;text-align:center;padding:42px}.dialog h2,.draft h1,.waiting h1{font:900 34px/1.4 "Songti SC",serif;color:#f0dbad;letter-spacing:3px}.dialog p,.draft p,.waiting p{font-size:17px;color:#d0cab7;line-height:1.7;margin:12px 0}.dialog .tools,.waiting .tools{justify-content:center;gap:10px;margin-top:20px}.spreadhead{justify-content:space-between}.pool{gap:8px;margin:13px 0}.packBtn{min-width:92px;padding:8px 15px}.catalog{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.entry{padding:0;display:flex;align-items:center;gap:12px;text-align:left;color:#e9e0ca;background:#18231ce8;border:1px solid #82755273;border-radius:4px;overflow:hidden;min-width:0}.entry:hover{border-color:#dfbe7a}.entry img{width:64px;height:82px;object-fit:cover;object-position:50% 28%}.entry strong{font:700 19px serif;display:block}.entry small{font-size:13px;color:#cab78f;display:block;margin:5px 0}.draft{padding:14px 52px}.draft .drafttop{display:flex;align-items:center;gap:15px}.draft h1{font-size:30px}.draft table{border-collapse:collapse}.draft .entry img{height:80px}.draft .pool{margin:8px 0 13px}.draftActions{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.draftSummary{color:#ddc596}.waiting{margin:auto;text-align:center}.waiting h1{font-size:48px}.waiting .sigil{margin:12px auto 40px;width:64px;height:64px;animation:pulse 2s infinite}.detailWrap{display:flex;align-items:center;justify-content:center;gap:35px}.detailWrap article{width:300px}.detailWrap .bigcard{flex:none}.detailWrap h2{font-size:35px}.detailWrap small{color:#d3b879}.battle{background:url(art/board.webp) center/100% 100%;color:#332819}.battle .top{height:49px;border:0;margin:0 44px;color:#ecdfc6}.battle .brand{font-size:16px}.battle .brand .sigil{width:24px;height:24px}.battle .brand .sigil b{font-size:15px}.battle .brand small{display:none}.battle .sub{font-size:13px;padding:4px 12px}.bfield{position:absolute;inset:48px 235px 154px 45px;display:grid;grid-template-rows:69px 1fr 1fr 65px}.heroBar{justify-content:center;gap:8px}.hero{font:800 17px serif;padding:7px 18px;border:2px solid #bca26b;color:#f7e8c5;background:linear-gradient(125deg,#223c32,#3a5645);border-radius:5px;box-shadow:0 3px 0 #403322;display:flex;align-items:center;gap:12px}.enemyHero{background:linear-gradient(120deg,#4f3027,#784832)}.hero strong{color:#ffd0b0;font:bold 22px Georgia}.hero small{font:12px sans-serif;color:#d8caa8}.lane{position:relative;display:flex;align-items:center;justify-content:center;gap:13px}.lane.empty:before{content:attr(data-note);color:#51452b9c;font:700 16px serif;letter-spacing:3px}.lane.dropzone{outline:2px dashed #427969;border-radius:60px;background:#95cab72b}.unit{position:relative;width:124px;height:139px;border:4px ridge #ad8b56;border-radius:49% 49% 26% 26%;box-shadow:0 6px 8px #49372070;background:#514636;padding:0;touch-action:none}.unit img{width:100%;height:100%;border-radius:inherit;object-fit:cover;object-position:50% 25%}.unit strong{position:absolute;bottom:15px;left:0;right:0;padding:2px 0;background:#29271ddc;color:#ffe5b2;font:800 17px serif}.unit .num{width:25px;height:26px;font-size:18px;bottom:-4px}.unit.guard{border:5px ridge #bcb396;border-radius:34% 34% 43% 43%}.unit .mark{position:absolute;top:-9px;right:-5px;color:#f7e8c3;background:#464b3d;border:1px solid #d8bd81;border-radius:10px;padding:2px 6px;font:700 11px sans-serif}.ready{box-shadow:0 0 4px 2px #85caaf,0 0 14px #3e856d,0 5px 9px #24180b77}.selected{outline:3px solid #ffda7d!important}.target{outline:4px solid #ffe385!important;filter:brightness(1.12)}.unit.new{animation:land .38s ease-out}.hit{animation:hit .45s ease}.lunge{animation:lunge .36s ease}.sidebar{position:absolute;right:47px;top:93px;bottom:162px;width:178px;display:flex;align-items:stretch;flex-direction:column;gap:12px;padding:18px 14px;border:3px ridge #ab8b53;border-radius:7px;color:#e9dbb9;background:linear-gradient(145deg,#313c31,#19251f);box-shadow:0 4px 9px #30221677}.sidebar h3{font:800 21px serif;color:#efdcad}.sidebar .primary{min-width:0;font-size:18px;letter-spacing:1px;padding:12px 7px}.mana{display:flex;gap:4px;margin:7px 0 2px}.mana i{height:14px;width:14px;transform:rotate(45deg);border:1px solid #ad9562;background:#373c34}.mana i.full{background:linear-gradient(135deg,#bcf4d9,#327968);box-shadow:0 0 4px #79ae94}.sidebar small{color:#c9bea2;font-size:13px}.sidebar .quiet{font-size:14px;padding:7px}.shortlog{font:14px/1.5 serif;color:#d6cfb7;overflow:hidden;flex:1}.shortlog div{padding:3px 0;border-bottom:1px solid #8d85603a}.handShelf{position:absolute;left:43px;right:43px;bottom:20px;height:145px;border-radius:12px;background:linear-gradient(#3e3227e6,#211f19);box-shadow:inset 0 0 0 2px #ab8a5480,0 -3px 10px #45342266;color:#f6e4c1;display:flex;align-items:center;gap:15px;padding:7px 18px}.handLabel{width:78px;text-align:center;font:700 18px serif;flex:none}.handLabel small{display:block;color:#c0b496;font:12px sans-serif;margin:6px 0}.hand{display:flex;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;max-width:100%;padding:8px 4px;min-height:100%}.mini{position:relative;flex:0 0 91px;height:118px;padding:2px;border:2px solid #aa8a58;border-radius:8px;background:#342c21;touch-action:none;transition:transform .15s}.mini:hover{transform:translateY(-4px)}.mini img{width:100%;height:83%;object-fit:cover;object-position:50% 25%;border-radius:4px;display:block}.mini b{position:absolute;bottom:12px;left:0;right:0;background:#25372dea;color:#ffeac2;font:800 15px serif}.mini .gem,.mini .num{width:21px;height:22px;font-size:15px}.hint{position:absolute;left:60px;top:59px;font:600 15px serif;color:#5c472d;max-width:250px}.floatCard{position:fixed;pointer-events:none;z-index:100;transform:translate(-50%,-67%) rotate(-5deg) scale(.75);transform-origin:center;opacity:.95}.aim{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:98}.hintToast,#toast{pointer-events:none}#toast{position:absolute;left:50%;bottom:168px;transform:translateX(-50%);border-radius:4px;padding:9px 20px;background:#18251cf2;border:1px solid #bf9a5c;color:#ffedbc;z-index:20;display:none}.scrollLog{max-height:365px;overflow:auto;font-size:16px;line-height:1.9}.privacy{z-index:10;background:radial-gradient(ellipse,#2b3b30,#101712 82%)}.controls{display:flex;gap:10px;margin-top:14px}.controls .sub{font-size:15px}#rotate{display:none}.ruleList{font-size:17px;color:#ddd5c3;line-height:1.8;padding-left:22px}.ruleList li{margin:9px 0}@media (orientation:portrait) and (max-width:1000px){#rotate{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:radial-gradient(ellipse at center,#30473d,#111b15 70%);color:#e8d6ad}#rotate h1{font:800 32px serif;letter-spacing:5px}#rotate p,#rotate small{color:#cfc7af}.phone{font:42px Georgia;color:#d5b37b;width:78px;height:45px;border:3px solid;border-radius:8px;display:grid;place-content:center;animation:tilt 2.4s infinite}#stage{visibility:hidden}}@keyframes tilt{0%,100%{transform:rotate(-70deg)}60%,85%{transform:rotate(0)}}@keyframes land{0%{transform:translateY(-26px) scale(1.2);opacity:.3}75%{transform:scale(.95)}100%{transform:none}}@keyframes hit{35%{filter:brightness(1.8) sepia(.7);transform:translateX(6px)}65%{transform:translateX(-4px)}}@keyframes lunge{50%{transform:translateY(-17px) scale(1.07)}}@keyframes arrive{from{opacity:0;margin-top:25px}}@keyframes pulse{50%{box-shadow:0 0 35px #caa45288}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001s!important;transition-duration:.001s!important}}
.battleFx{position:absolute;z-index:7;pointer-events:none;transform:translate(-50%,-50%);animation:floatFx .82s forwards;font:bold 37px/1 Georgia,serif;text-shadow:0 2px 2px #27190b,1px 0 #392917,-1px 0 #392917}.damageFx{color:#ffe2a5;background:radial-gradient(closest-side,#9c3c23dd,transparent 97%);padding:16px}.healFx{color:#b3ffd2}.turnFx{font:800 24px serif;letter-spacing:4px;color:#ffe8b2;border-block:1px solid #c9a86b;padding:7px 40px;background:linear-gradient(90deg,transparent,#322c23ee 22%,#322c23ee 78%,transparent)}@keyframes floatFx{0%{opacity:0;transform:translate(-50%,-20%) scale(.75)}20%{opacity:1;transform:translate(-50%,-55%) scale(1.07)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-110%)}}.handLabel .quiet{padding:6px 8px;font-size:13px}
@media(max-height:540px) and (orientation:landscape){.top-actions button{min-height:42px;min-width:48px}.handcount,.sidebar small,.sectioncap{font-size:16px}.hero small,.shortlog{font-size:15px}.entry small{font-size:15px}.sub,.quiet,.packBtn{min-height:42px}.sidebar .primary{min-height:56px}.handLabel small{font-size:15px}}
@media(max-height:540px) and (orientation:landscape){
 #stage{width:1024px;height:500px}.top{height:56px;margin:0 28px}.brand{font-size:18px;gap:12px}.brand small{font-size:8px}.sigil{width:28px;height:28px}.homecopy{left:43px;top:94px}.homecopy h1{font-size:61px}.homecopy p{font-size:16px;line-height:1.55;margin:7px 0 13px;width:355px}.homecopy .controls{display:inline-flex;margin:0 0 0 12px;vertical-align:middle}.homecopy .primary{min-width:175px;vertical-align:middle}.feature{left:415px;right:0;top:23px;bottom:auto;height:420px;transform:scale(.77);transform-origin:52% 30%}.feature .legend{bottom:-8px}.modes{bottom:21px;left:32px;right:32px;padding-top:8px}.modes .sectioncap{margin-bottom:5px;font-size:12px}.mode{height:55px;padding:5px 12px}.mode small{font-size:12px}.modeRow{gap:8px}.screen .top-actions .sub,.home .top-actions .sub{min-height:38px}
 .draft{padding:7px 32px}.draft h1{font-size:25px}.draft p{font-size:16px;margin:4px 0}.draft .pool{margin:4px 0 6px}.draft .sectioncap{font-size:13px;margin:4px 0}.draft .entry img,.entry img{height:62px;width:48px}.entry{font-size:13px;gap:8px}.entry strong{font-size:18px}.entry small{font-size:13px;margin:2px 0}.draftActions{margin-top:9px}.dialog{max-height:475px;width:89%;padding:20px 25px;overflow:auto}.dialog h2{font-size:28px}.dialog .ruleList{font-size:15px;line-height:1.55}.dialog .ruleList li{margin:5px 0}.detailWrap .bigcard{width:172px;height:254px}
 .battle .top{height:39px;margin:0 25px}.battle .top .sub{min-height:32px}.bfield{inset:41px 202px 113px 24px;grid-template-rows:43px 1fr 1fr 43px}.hero{padding:3px 10px;font-size:16px}.hero strong{font-size:21px}.hero small{font-size:13px}.handcount{font-size:14px}.lane{gap:8px}.unit{width:88px;height:96px}.unit strong{font-size:15px;bottom:9px}.unit .mark{font-size:10px;top:-6px}.unit .num{width:22px;height:22px;font-size:15px}.hint{font-size:12px;left:28px;top:42px;max-width:145px}.sidebar{top:49px;right:25px;bottom:116px;width:164px;padding:9px 12px;gap:6px}.sidebar small{font-size:13px}.sidebar .quiet{min-height:31px}.sidebar .primary{min-height:39px;padding:6px}.sidebar h3{font-size:19px}.shortlog{font-size:13px}.handShelf{left:24px;right:24px;bottom:12px;height:100px;padding:3px 10px;gap:7px}.handLabel{width:62px;font-size:16px}.handLabel small{font-size:13px}.mini{flex-basis:72px;height:82px}.mini b{font-size:13px;bottom:5px}.hand{gap:6px}.mini .gem,.mini .num{width:17px;height:18px;font-size:13px}.scrollLog{max-height:290px}#toast{bottom:112px}.mode .ico{width:25px;height:25px}
}
