
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#11241f;color:#f4efdc}body{font:15px/1.5 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #f7d58f;outline-offset:4px}button:disabled{cursor:default}h1,h2,h3,p{margin:0}.serif,h1,h2,h3,.unitname,.cardname,.heroname{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif}.shell{position:relative;isolation:isolate;height:100vh;height:100svh;min-height:570px;overflow:hidden;background:#21372f}.shell:before{content:"";pointer-events:none;position:absolute;z-index:-2;inset:0;background:var(--mat) center/100% 100% no-repeat}.shell:after{content:"";pointer-events:none;position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#10201f80 0%,transparent 23%,transparent 65%,#0a1919ba 100%)}.header{height:68px;padding:0 clamp(26px,5vw,80px);display:flex;align-items:center;justify-content:space-between;gap:16px;z-index:3;position:relative}.brand{display:block;width:114px;height:32px}.hdr-left,.hdr-right{display:flex;align-items:center;gap:20px}.loc{padding-left:20px;border-left:1px solid #c7b38b56;color:#dbd5be;font-size:13px;letter-spacing:.16em}.hdr-right{gap:12px}.stageTitle{color:#eee8d5;font-size:13px}.menuBtn,.closeBtn{width:44px;height:44px;display:grid;place-items:center;font-size:20px;color:#e9dec4;border:1px solid #b6ad8c60;border-radius:50%;background:#10221f9c}.menuBtn:before{content:"";width:17px;height:8px;border-top:1.5px solid currentColor;border-bottom:1.5px solid currentColor}.gold{background:linear-gradient(#f1ce8b,#ca9e5c);border:1px solid #f4d69c;color:#302519;box-shadow:0 3px 0 #765133,0 9px 20px #0003;border-radius:5px;font-weight:650;min-height:48px;padding:0 25px;letter-spacing:.06em}.quiet{background:#142a27c9;border:1px solid #b9aa8066;color:#f1e8d2;min-height:44px;padding:0 17px;border-radius:5px}.quiet:disabled,.gold:disabled{filter:saturate(.2);opacity:.5}.muted{color:#c1c7b8}.pack-page{display:grid;grid-template-columns:minmax(290px,410px) minmax(280px,375px);justify-content:center;align-items:center;gap:clamp(38px,8vw,130px);height:calc(100% - 100px);padding:20px 8% 55px}.pack-product{height:min(54vh,465px);width:min(31vw,325px);justify-self:center;position:relative;filter:drop-shadow(5px 20px 16px #09100e99);transform:rotate(-5deg);background:linear-gradient(110deg,#345649,#102e29 35%,#27453a 65%,#172820);border:1px solid #b09662;border-radius:3px;isolation:isolate}.pack-product:before,.pack-product:after{content:"";position:absolute;left:-1px;right:-1px;height:6%;background:repeating-linear-gradient(90deg,#78653e 0,#ced09a 3px,#534c30 5px,#a48c56 8px);border-block:1px solid #d3bd86;z-index:2}.pack-product:before{top:0}.pack-product:after{bottom:0}.pack-art{position:absolute;inset:7% 6%;background:linear-gradient(0deg,#122d28 5%,transparent 60%),var(--wu) 52% 22%/cover;border:1px solid #c0a878}.pack-art b{position:absolute;bottom:7%;left:8%;font:700 clamp(27px,3.2vw,51px)/1 "Songti SC",serif;letter-spacing:.09em;color:#fff3ca;text-shadow:0 2px 4px #17211b}.pack-art small{position:absolute;left:8%;bottom:23%;letter-spacing:.27em;color:#f9e1a7}.tiny{font-size:12px;font-weight:550;color:#d5b77d;letter-spacing:.18em}.pack-copy h1,.deck-head h1{font-weight:600;font-size:clamp(36px,4.4vw,70px);letter-spacing:.025em;line-height:1.24;margin:9px 0 17px}.pack-copy p{font-size:17px;line-height:1.8;color:#dfdfcd;max-width:330px}.pack-copy .gold{margin-top:28px;min-width:175px}.deck-page{height:calc(100% - 68px);overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 30px 35px;gap:20px}.deck-head{text-align:center}.deck-head h1{font-size:clamp(33px,3.2vw,52px);margin:4px 0 5px}.deck-head p{color:#d7dacc}.deck-row{display:flex;justify-content:center;gap:clamp(14px,2vw,33px);align-items:center}.deck-wrap{text-align:center}.cardface{display:block;position:relative;border:2px solid #ab8a55;border-radius:8% 8% 6% 6% / 6% 6% 4% 4%;padding:0;flex:none;isolation:isolate;background:#e1cda8;color:#29261c;box-shadow:inset 0 0 0 2px #433c2c,0 11px 18px #07120f60}.cardface[data-chosen="true"]{outline:2px solid #e5bc71;outline-offset:4px}.deck-row .cardface{width:clamp(144px,14.5vw,208px);aspect-ratio:0.68}.c-art{position:absolute;inset:3px 3px 23%;border-radius:inherit;background-image:var(--art);background-size:cover;background-position:center 21%;border-bottom:1px solid #887349}.tactic .c-art{background-size:200% 100%;background-position:var(--tpos)}.cardname{position:absolute;left:8%;right:8%;bottom:7%;text-align:center;font-size:clamp(15px,1.65vw,24px);font-weight:700;line-height:1.1}.cost,.attack,.hp{position:absolute;display:grid;place-items:center;z-index:2;font:700 20px/1 Georgia,"Times New Roman",serif;font-variant-numeric:tabular-nums;color:white;text-shadow:0 1px 2px #0009}.cost{left:-5%;top:-3%;width:31px;height:34px;background:linear-gradient(135deg,#6a9c8c,#27564b 68%);border:2px solid #cab986;border-radius:32% 32% 48% 48%}.attack,.hp{width:27px;height:27px;bottom:-1px;border:1.5px solid #d4b579}.attack{left:-3px;border-radius:45% 45% 20% 20%;background:#7e592d}.hp{right:-3px;border-radius:30% 30% 50% 50%;background:#833f36}.copyline{font-size:13px;color:#d7d8c5;margin-top:14px;max-width:205px}.deck-wrap .tooltip{margin-top:7px;color:#eed7a5;font-size:13px;min-height:22px}.deck-detail{min-height:44px;width:min(100%,620px);text-align:center;color:#e3decb}.deck-detail strong{color:#f0cb89}.deck-actions{display:flex;align-items:center;justify-content:center;gap:18px}.deck-count{color:#d3bc8a;font:23px Georgia,serif}.deck-count small{font:12px system-ui;color:#d7d7c5}
.arena{position:relative;height:calc(100% - 68px);--handH:clamp(120px,16.5vh,170px)}.field{position:absolute;inset:0 33px var(--handH);isolation:isolate}.field:before{content:"";position:absolute;top:50%;left:14%;right:14%;height:1px;background:linear-gradient(90deg,transparent,#c6b88b69 40%,#c6b88b69 60%,transparent)}.field:after{content:"";position:absolute;top:50%;left:50%;width:6px;height:6px;transform:translate(-50%,-42%) rotate(45deg);background:#8f8c6a;box-shadow:0 0 0 5px #34483e;z-index:-1}.entity-row,.hero-line{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:center;transform:translateY(-50%)}.enemy-row{top:32%}.own-row{top:66%}.enemy-hero{top:9%}.own-hero{top:90%}.hero-box{position:relative}.hero{position:relative;display:block;width:clamp(70px,8.6vh,100px);aspect-ratio:1.08;border-radius:48% 48% 16% 16%;border:2px solid #a38a60;background:linear-gradient(135deg,#dfc388,#423e32 40%,#b99d69);box-shadow:0 6px 10px #0b181b88;padding:4px}.hero>i{display:block;height:100%;background:var(--art) center 17%/cover;border-radius:inherit;border:1px solid #38382d}.hero .hp{bottom:-5px;right:-6px}.hero-info,.hero-extra{position:absolute;top:50%;transform:translateY(-50%);min-width:96px;line-height:1.2}.hero-info{right:calc(100% + 20px);text-align:right}.hero-extra{left:calc(100% + 21px);color:#c5ccbd;font-size:12px}.heroname{font-weight:650;font-size:21px;color:#eee5cf;white-space:nowrap}.herolabel{font-size:11px;color:#c5cebb;letter-spacing:.13em;margin-top:5px}.hero-ability{display:flex;flex-direction:column;align-items:center;background:transparent;border:0;padding:2px 5px;color:#ddd9c4;font-size:11px;min-width:48px;min-height:44px}.ability-token{height:36px;width:36px;display:grid;place-items:center;position:relative;background:radial-gradient(circle at 33% 22%,#708971,#3d5e4f 66%);border:2px double #b2a16c;box-shadow:0 3px 6px #10201f88;border-radius:50%;font:19px 'Songti SC',serif;color:#f0e1ba}.ability-token small{font:11px Georgia;position:absolute;right:-6px;bottom:-2px;padding:1px 3px;background:#264c43;border:1px solid #b09a69;border-radius:3px}.hero-ability:disabled{opacity:.48}.entity-row{gap:clamp(12px,3.4vw,50px);pointer-events:none}.piece-box{position:relative;text-align:center;pointer-events:auto}.piece{position:relative;width:clamp(90px,11.6vh,123px);aspect-ratio:.90;display:block;padding:4px;border:1.5px solid #af9769;background:linear-gradient(140deg,#d0b783,#4b4939 45%,#8b7650);border-radius:50% 50% 42% 42%;box-shadow:0 8px 12px #0c171bb3;touch-action:manipulation}.piece .p-art{height:100%;border-radius:inherit;border:1px solid #38392e;display:block;background:var(--art) center 22%/cover}.piece .attack,.piece .hp{bottom:-2px;font-size:20px;width:29px;height:29px}.unitname{margin-top:5px;color:#eee6d1;font-size:16px;line-height:1.25;letter-spacing:.06em;text-shadow:0 1px 3px #0e1f1c}.piece.guard:after{content:"护";position:absolute;top:0;right:-3px;border:1px solid #ac9770;background:#3a5348;color:#f6e6bd;font:12px/1.55 'Songti SC',serif;border-radius:3px 3px 6px 6px;width:19px}.selected .piece{outline:2px solid #e6be75;outline-offset:4px;box-shadow:0 3px 18px #d8ab5a44,0 7px 13px #132522}.targetable{outline:2px dashed #e7c890;outline-offset:4px}.piece.spent{filter:saturate(.68)}.piece.spent:before{content:"休";position:absolute;left:-3px;top:1px;padding:1px 4px;color:#e4dfc8;background:#394b47;border:1px solid #adab91;border-radius:3px;font-size:11px;z-index:1}.board-prompt{position:absolute;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);background:#243e34;color:#efdfbb;border:1px solid #a99a6f80;border-radius:40px;padding:6px 15px;white-space:nowrap;font-size:12px;z-index:3}.counter{display:flex;align-items:center;gap:7px;color:#e0e1d2;font-size:12px}.counter i{width:13px;height:18px;border:1px solid #c4b182;border-radius:2px;box-shadow:3px -2px #3e5346,4px -2px #a68f62;transform:rotate(-7deg)}.handbar{position:absolute;bottom:0;left:4%;right:4%;height:var(--handH);display:flex;align-items:flex-end;justify-content:center;gap:8px}.hand-card{width:clamp(94px,10.8vh,130px);height:calc(var(--handH) - 14px);margin-bottom:5px;transform:rotate(var(--rot,0deg));transform-origin:50% 100%;transition:transform .15s}.hand-card .cardname{font-size:18px;bottom:7.8%}.hand-card .cost{font-size:17px;width:24px;height:27px}.hand-card .attack,.hand-card .hp{font-size:15px;width:21px;height:21px}.hand-card:hover{transform:translateY(-7px) rotate(0);z-index:1}.hand-card[aria-pressed="true"]{outline:2px solid #e6be75;outline-offset:3px;transform:translateY(-8px)}.hand-card.unafford{filter:saturate(.48) brightness(.84)}.turn-tools{position:absolute;right:clamp(14px,5vw,80px);bottom:calc(var(--handH) + 17px);display:flex;align-items:center;gap:12px}.resources{display:flex;gap:8px;align-items:center;font:600 20px Georgia,serif;color:#e5e6cb}.resource-gem{width:14px;height:14px;background:linear-gradient(135deg,#c0dcc5,#568b75);transform:rotate(45deg);border:1px solid #c4c6a2}.turn-end{color:#ecdec2;font-size:14px;background:linear-gradient(#474b3b,#2f3d32);border:1px solid #af9a6b;border-radius:5px;min-height:44px;padding:0 20px}.turn-end:disabled{opacity:.45}.handtag{position:absolute;bottom:25px;left:clamp(14px,5vw,80px);font-size:12px;letter-spacing:.12em;color:#d2d6c7}.note{position:absolute;left:50%;transform:translateX(-50%);top:0;background:#182c28ed;border:1px solid #a6966d80;color:#f2e3be;border-radius:22px;padding:6px 15px;font-size:13px;white-space:nowrap;max-width:94%;z-index:5}.veil{position:absolute;inset:0;background:#071514a3;display:grid;place-items:center;z-index:12;padding:18px}.modal{width:min(400px,100%);background:#1c332e;border:1px solid #aa9163;box-shadow:0 18px 80px #0008;border-radius:10px;padding:25px;color:#eeead9}.modal h2{font-size:26px;margin:0 0 12px}.modal p{color:#d9d9c7;margin:0 0 18px}.modal .quiet,.modal .gold{display:block;width:100%;margin:10px 0 0}.modal-lg{width:min(470px,100%)}.target-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0}.target-grid button{min-height:56px;background:#496050;color:#fcf0d5;border:1px solid #c9af7e;border-radius:4px;font-size:13px}.target-grid button:disabled{opacity:.58;background:#243832;border-color:#718074}.target-grid small{display:block}.dense .entity-row{gap:clamp(5px,1vw,18px)}.dense .piece{width:clamp(53px,7vw,90px)}.dense .unitname{font-size:12px}.preview-controls{display:flex;gap:10px;justify-content:center}.status-line{min-height:21px;color:#d5cbb3;font-size:13px}
@media(max-width:720px){.shell{min-height:550px}.header{height:56px;padding:0 20px}.brand{width:82px;height:24px}.hdr-left,.hdr-right{gap:10px}.loc{padding-left:10px;font-size:11px;letter-spacing:.04em}.stageTitle{font-size:12px}.menuBtn{width:40px;height:40px}.shell:before{background-size:auto 100%;background-position:48% center}.shell{border:3px solid #594d38;box-shadow:inset 0 0 0 1px #af946a}.pack-page{height:calc(100% - 56px);grid-template-columns:1fr;grid-template-rows:auto auto;align-content:center;gap:24px;padding:12px 22px 40px;text-align:center}.pack-product{width:min(42vw,185px);height:min(34vh,262px)}.pack-copy h1{font-size:37px;margin:5px 0 8px}.pack-copy p{font-size:14px;max-width:300px;margin:auto}.pack-copy .gold{margin-top:18px;min-height:47px}.pack-art b{font-size:26px}.pack-art small{font-size:10px}.deck-page{height:calc(100% - 56px);padding:16px 13px 30px;gap:22px}.deck-row{gap:12px;width:100%}.deck-wrap{width:calc((100% - 24px)/3);max-width:145px}.deck-row .cardface{width:100%}.cardname{font-size:18px;bottom:6%}.deck-row .cost{font-size:17px;width:23px;height:26px}.deck-row .attack,.deck-row .hp{font-size:15px;width:21px;height:21px}.deck-detail{max-width:360px}.deck-head h1{font-size:33px}.deck-head p{font-size:14px}.copyline{font-size:11px}.deck-wrap .tooltip{font-size:11px}.deck-actions{gap:12px}.arena{height:calc(100% - 56px);--handH:clamp(109px,15vh,143px)}.field{inset:9px 8px calc(var(--handH) + 38px)}.field:before{left:3%;right:3%}.hero{width:clamp(59px,8vh,76px)}.hero-info{right:calc(100% + 13px);min-width:66px}.hero-extra{left:calc(100% + 13px);min-width:60px}.heroname{font-size:18px}.herolabel{font-size:10px}.enemy-row{top:31.5%}.own-row{top:65.5%}.piece{width:clamp(74px,11vh,102px)}.unitname{font-size:15px}.handbar{left:14px;right:14px;gap:3px;align-items:flex-end}.hand-card{width:min(calc((100% - 9px)/4),90px);height:min(calc(var(--handH) - 7px),122px)}.hand-card .cardname{font-size:15px}.hand-card .cost{width:20px;height:23px;font-size:15px}.hand-card .attack,.hand-card .hp{width:18px;height:18px;font-size:12px}.turn-tools{right:12px;bottom:calc(var(--handH) + 7px);gap:11px}.turn-end{height:42px;min-height:42px;padding:0 13px;font-size:13px}.resources{font-size:17px}.resource-gem{width:11px;height:11px}.handtag{left:14px;bottom:calc(var(--handH) + 18px);font-size:11px}.dense .entity-row{justify-content:space-around;gap:2px}.dense .piece{width:min(10.9vw,63px);padding:2px}.dense .unitname{display:none}.dense .piece .attack,.dense .piece .hp{width:16px;height:18px;font-size:13px}.dense .piece.guard:after{font-size:9px;width:13px}.hero .hp{width:22px;height:23px;font-size:17px}.board-prompt{font-size:11px;padding:5px 10px}.tiny{font-size:11px}.deck-count{font-size:19px}}
@media(max-height:670px){.shell{min-height:510px}.header{height:44px}.arena{height:calc(100% - 44px);--handH:92px}.hero{width:49px}.piece{width:64px}.entity-row .unitname{font-size:12px}.pack-page{gap:14px}.deck-page{gap:12px}.deck-head h1{font-size:28px}.hero-info .heroname{font-size:15px}.field{bottom:calc(var(--handH) + 30px)}.hand-card{height:85px;max-width:65px}.hand-card .cardname{font-size:12px}.deck-row .cardface{max-height:175px}.note{top:2px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.slot{display:grid;place-items:center;pointer-events:auto;min-width:42px;height:52px;border:1px dashed #d2bc86;background:#1a302a99;border-radius:8px;color:#f1d09b;font-size:21px}.note{top:51px}.handbar .hand-card{--rot:-3deg}.handbar .hand-card:nth-child(2){--rot:-1deg}.handbar .hand-card:nth-child(3){--rot:1deg}.handbar .hand-card:nth-child(4){--rot:3deg}


.turn-label{display:inline-block;margin-left:12px;border-left:1px solid #b4a17553;padding-left:12px;color:#e7d6a2}.turn-label:before{content:"";display:inline-block;background:#afc6a6;width:6px;height:6px;border-radius:50%;margin:0 6px 2px 0}.inspect-desktop{pointer-events:none;position:absolute;z-index:2;left:clamp(54px,10vw,185px);top:48%;transform:translateY(-50%);width:clamp(148px,13vw,200px);text-align:center}.peek-title{color:#cec9af;letter-spacing:.2em;font-size:12px;margin-bottom:12px}.inspect-card{border:1px solid #a59368;box-shadow:0 8px 16px #0e211e88;border-radius:9px;overflow:hidden;text-align:left;color:#332f25;background:linear-gradient(110deg,#e5d3ac,#cebe9a)}.inspect-art{background:var(--art) center 22%/cover;aspect-ratio:1.38;border-bottom:2px solid #977e56}.inspect-art.istactic{background-size:200% 100%;background-position:var(--tpos)}.inspect-body{padding:10px 15px 13px}.inspect-body h2{font-size:24px;line-height:1.15}.inspect-body p{font-size:12px;line-height:1.6}.inspect-body .slug{font-weight:650;letter-spacing:.08em;color:#5c4931;margin:2px 0 5px}.inspect-body small{display:block;margin-top:7px;font-size:10px;color:#5c4e38}.piece .p-art,.hero>i{box-shadow:inset 0 0 7px #2a281a66}.hero,.piece{border-bottom:3px solid #776044}.hero{width:clamp(75px,10vh,105px)}.piece{width:clamp(92px,13.6vh,138px)}.selected .piece{box-shadow:0 0 0 5px #d6af6c1c,0 7px 12px #0a181acc}.hand-card .cardname{color:#2e2c23}.hand-card .c-art{border-radius:5px 5px 0 0}
@media(max-width:900px){.inspect-desktop{display:none}}@media(max-width:720px){.turn-label{margin-left:5px;padding-left:5px;font-size:11px}.turn-label:before{width:4px;height:4px;margin-right:4px}.hero{width:clamp(57px,8vh,77px)}.piece{width:clamp(72px,11vh,103px)}.shell:before{background-size:100% 100%}.board-prompt{min-height:37px}.note{top:55px}}@media(max-height:670px){.hero{width:51px}.piece{width:66px}.inspect-desktop{width:132px;left:8%}}


@media(max-width:720px){.shell{border:3px solid #5b4e36;box-shadow:inset 0 0 0 1px #a78a58}.shell:before{background-size:auto 100%;background-position:50% 50%}.shell:after{inset:0 auto auto 0;width:112px;height:135px;background:linear-gradient(#11251d47,#11251d47),var(--mat) left top/605px auto no-repeat;mask-image:radial-gradient(ellipse at 0 0,#000 38%,transparent 77%)}.header:after{content:"";position:fixed;pointer-events:none;z-index:-1;right:3px;bottom:3px;width:79px;height:55px;background:var(--mat) right bottom/470px auto no-repeat;mask-image:radial-gradient(ellipse at 100% 100%,#000 32%,transparent 74%)}.deck-head h1{font-size:clamp(24px,7.2vw,36px)}.shell:has(.handbar) .header:after{display:none}.menuBtn{min-width:44px;min-height:44px}.board-prompt,.turn-end{min-height:44px}.tiny{letter-spacing:.1em}}

.dense-scene{--handH:clamp(78px,11vh,106px)}
.dense-scene .field{bottom:var(--handH)}
.dense-scene .entity-row{gap:clamp(8px,1.5vw,22px)}
.dense-scene .piece{width:clamp(57px,7.5vw,101px)}
.dense-scene .piece .p-art{background-image:var(--art)}
.dense-sigil{display:grid!important;place-items:center;background:radial-gradient(ellipse,#6e7254,#354a3b 82%)!important;color:#efe1b3;font:600 clamp(18px,3.2vw,33px) "Songti SC",serif}
.dense-toolbar{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:6%;right:6%;display:flex;align-items:center;justify-content:center;gap:20px;color:#ebdfbc}
.dense-toolbar p{color:#c1c7b8;font-size:13px}
.dense-toolbar .quiet{min-height:44px}
.dense-desktop-prompt{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:14px;font-size:13px;background:#20382f;border:1px solid #8c8b67;border-radius:8px;padding:4px 12px;z-index:1;color:#f3dfb8}
.dense-desktop-prompt .quiet{min-height:32px;border:0;padding:0 4px}
.dense-sheet{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:#19332cee;border:1px solid #aa976b;border-bottom:0;box-shadow:0 -10px 36px #0e211b66;border-radius:12px 12px 0 0;color:#f1e6d0;width:min(500px,92%);padding:17px 20px max(14px,env(safe-area-inset-bottom));z-index:7;max-height:82%;overflow-y:auto}
.dense-sheet h2{font-size:21px;margin-bottom:3px;font-weight:620}
.dense-sheet h2 small{font:13px Georgia;color:#d6c99f}
.dense-sheet .quiet,.dense-sheet .gold{min-height:44px}
.dense-sheet-body>.quiet,.dense-sheet-body>.gold{width:100%;margin-top:9px}
.dense-help{font-size:13px;color:#d8d8c5;line-height:1.6}
.dense-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}
.dense-pick{position:relative;min-height:56px;display:grid;align-content:center;gap:1px;padding:4px 2px;border-radius:5px;border:1px solid #a79164;background:#42594a;color:#f5edd8}
.dense-pick.locked{color:#9aa89a;background:#233c32;border-color:#53644f}
.dense-pick:disabled{opacity:1}
.dense-pick b{font-family:"Songti SC",serif;font-size:15px;font-weight:600;line-height:1.3;position:relative}
.dense-pick em{font:13px Georgia;position:relative}
.dense-thumb{display:none!important}
.dense-buttons,.dense-trade{display:flex;gap:10px;margin:10px 0 4px}
.dense-buttons>*{flex:1}
.dense-trade{align-items:center;justify-content:space-evenly;text-align:center;margin-block:13px}
.dense-trade div{display:grid;gap:3px}
.dense-trade small{font-size:11px;color:#c6cabc}
.dense-trade strong{font:600 19px "Songti SC",serif}
.dense-trade b{font-size:13px;color:#f0cf8e}
.dense-handlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:8px}
.dense-handitem{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center;min-height:44px;text-align:left;border:1px solid #7b8161;border-radius:4px;background:#2c493c;color:#eee6d1;padding:5px 7px}
.dense-handitem b{color:#d2dbb8;font:16px Georgia}
.dense-handitem small{color:#c9cdbb;font-size:11px}
@media(max-width:720px){
 .dense-scene{--handH:92px}
 .dense-scene .field{left:3px;right:3px;bottom:var(--handH);top:0}
 .dense-scene .entity-row{gap:2px;justify-content:space-evenly}
 .dense-scene .piece{width:min(calc((100vw - 31px)/7),61px);padding:2px}
 .dense-scene .piece .attack,.dense-scene .piece .hp{width:17px;height:17px;font-size:13px;bottom:-3px}
 .dense-scene .piece .attack{left:-1px}.dense-scene .piece .hp{right:-1px}
 .dense-scene .piece.guard:after{font-size:9px;line-height:13px;width:13px;right:-1px}
 .dense-scene .piece.selected,.dense-scene .selected .piece,.dense-scene .targetable{outline-offset:1px}
 .dense-scene .unitname{display:block;font-size:10px;line-height:1.2;letter-spacing:0;white-space:nowrap;margin-top:6px}
 .dense-toolbar{left:10px;right:10px;bottom:14px;gap:7px;justify-content:space-between;flex-wrap:wrap}
 .dense-toolbar p{position:absolute;bottom:calc(100% + 3px);left:0;font-size:11px;color:#d7d6c1}
 .dense-toolbar .quiet{font-size:13px;padding:0 12px}
 .dense-open .field{bottom:clamp(226px,34vh,270px)}
 .dense-open .hero{width:clamp(38px,7vh,55px)}
 .dense-open .hero-info .heroname{font-size:15px}
 .dense-open .hero-ability .ability-token{height:27px;width:27px;font-size:16px}
 .dense-open .dense-toolbar{visibility:hidden}
 .dense-sheet{width:calc(100% - 8px);padding:9px 10px max(8px,env(safe-area-inset-bottom));max-height:64%}
 .dense-sheet h2{font-size:18px}
 .dense-grid{gap:5px;margin-top:6px}
 .dense-pick{min-height:47px}
 .dense-pick b{font-size:14px}
 .dense-sheet .dense-help{font-size:12px}
 .dense-sheet-body>.quiet,.dense-sheet-body>.gold{margin-top:6px}
}

/* Collection and deck editor share the arena's painted wood, brass and dark felt. */
.fl-home .pack-copy{max-width:465px}.fl-home .pack-copy h1{margin:8px 0 12px}.fl-home .pack-copy p{max-width:34em}.fl-home-actions,.fl-home-links,.fl-receipt-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.fl-home-actions{margin:22px 0 9px}.fl-link{border:0;background:none;color:#e2c795;padding:5px 2px;text-decoration:underline;text-decoration-color:#aa9563;text-underline-offset:4px;font-size:13px}.fl-link:disabled{color:#959a86}.fl-home-links{gap:18px}.fl-disclose{display:block;line-height:1.55;color:#b7b7a7;font-size:11px;margin-top:12px}.fl-home .pack-copy .quiet{margin:0}.fl-home .pack-copy .gold{margin:0}
.fl-receipt,.fl-builder{margin:0 auto;color:#f0e9d6;width:min(1080px,calc(100% - 100px));height:calc(100% - 68px);min-height:0}.fl-receipt{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:auto;padding:18px 0 35px}.fl-receipt h1,.fl-build-title h1{font-size:clamp(31px,4vw,53px);line-height:1.18;letter-spacing:.055em;color:#f8efd4}.fl-receipt h1{margin:6px 0}.fl-receipt-head p{font-size:14px;color:#cecbb6}.fl-pulls{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:26px 0}.fl-pull{display:block;padding:7px 7px 10px;text-align:left;border:1px solid #a58a53;color:#2f2a20;border-radius:9px;background:linear-gradient(115deg,#f1dfb7,#cdb78c);box-shadow:0 8px 20px #07130f88}.fl-pull-img{position:relative;height:clamp(110px,18vw,210px);overflow:hidden;border-radius:4px 4px 0 0}.fl-pull-img>i,.fl-detailpic>i{width:100%;height:100%}.fl-pull-img>span{position:absolute;top:4px;left:4px;border:1px solid #cbb36e;border-radius:50%;background:#223e43;color:#ffe9bc;width:26px;height:26px;line-height:24px;text-align:center;font-weight:700}.fl-pull strong,.fl-pull small,.fl-pull em{display:block;margin-left:3px}.fl-pull strong{font:700 clamp(18px,2.1vw,27px)/1.35 "Songti SC","STSong",serif;margin-top:4px}.fl-pull small{font-size:12px;color:#554a37}.fl-pull em{font-size:11px;font-style:normal;color:#525633;margin-top:5px}.fl-picture,.fl-seal{display:inline-block;flex-shrink:0;vertical-align:middle;background-size:cover;background-position:50% 26%;background-color:#394a35}.fl-tactic{background-size:200% 100%}.fl-seal{display:grid;place-items:center;font:700 18px/1 "Songti SC","STSong",serif;color:#bbaa80;background:radial-gradient(ellipse at 50% 42%,#4c5140,#263b31 75%)}.fl-seal.fl-S{background:radial-gradient(ellipse at 50% 42%,#645247,#442f2a 75%)}.fl-seal.fl-W{background:radial-gradient(ellipse at 50% 42%,#556352,#2e4338 75%)}.fl-pull-img .fl-seal{font-size:clamp(33px,5vw,66px)}.fl-receipt-actions .gold,.fl-receipt-actions .quiet{margin:0}
.fl-builder{width:min(1160px,calc(100% - 96px));display:flex;flex-direction:column;padding:8px 0 14px}.fl-build-title,.fl-buildfoot,.fl-panehead,.fl-libfoot,.fl-tools,.fl-mobiletabs,.fl-utilities,.fl-primary{display:flex;align-items:center;justify-content:space-between;gap:12px}.fl-build-title h1{font-size:clamp(29px,3.5vw,44px);margin:2px 0}.fl-workgroup,.fl-filters{display:flex;gap:3px;flex-wrap:wrap}.fl-workgroup,.fl-mobiletabs{padding:3px;border:1px solid #8c7b53;border-radius:7px;background:#101e1ada}.fl-work,.fl-filter{border:0;border-radius:4px;background:transparent;color:#cecbb5;padding:6px 13px;font-size:13px}.fl-work[aria-pressed=true],.fl-filter[aria-pressed=true]{background:#d6bf8a;color:#282b21;font-weight:650}.fl-buildnote{font-size:12px;color:#c4c7b6;margin:4px 0 11px}.fl-mobiletabs{display:none}.fl-workspace{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(265px,1fr);gap:14px;flex:1;min-height:0}.fl-library,.fl-deckpane{display:flex;flex-direction:column;min-width:0;min-height:0;background:linear-gradient(125deg,#1c342eee,#152b25f2);border:1px solid #8c815d;border-radius:9px;padding:13px;box-shadow:0 9px 24px #091b1980}.fl-panehead{margin-bottom:8px;min-height:29px}.fl-panehead h2{font-size:20px;line-height:1.3;color:#efe1bd}.fl-panehead>span,.fl-counter small{color:#bfc2ab;font:12px/1.4 sans-serif}.fl-counter{font-size:22px;color:#e2c680}.fl-tools{flex-wrap:wrap;gap:5px;margin:0 0 9px}.fl-tools input{font:inherit;font-size:13px;color:#f1ebd7;background:#15261f;border:1px solid #69705b;border-radius:3px;padding:5px 8px;min-width:80px;width:140px}.fl-tools input::placeholder{color:#a9b1a0}.fl-filter{padding:5px 7px;font-size:12px}.fl-liblist,.fl-decklist{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-color:#776f51 #20322a;scrollbar-width:thin}.fl-liblist{display:grid;grid-template-columns:repeat(auto-fit,minmax(183px,1fr));align-content:start;gap:7px;padding-right:3px}.fl-librow{min-width:0;padding:5px;border:1px solid #746d4e;background:#2a3d32;border-radius:5px}.fl-inspect{width:100%;display:flex;align-items:center;gap:7px;text-align:left;background:none;border:0;padding:0;color:#efe8cd}.fl-inspect .fl-picture,.fl-inspect .fl-seal{width:42px;height:43px;border-radius:3px;border:1px solid #786f50}.fl-libname{min-width:0;flex:1}.fl-libname strong,.fl-libname small{display:block}.fl-libname strong{font:700 17px/1.3 "Songti SC","STSong",serif}.fl-libname small,.fl-libfoot span{font-size:11px;color:#c0c4ad}.fl-fee,.fl-deckrow i{display:grid;place-items:center;background:#2c4548;color:#e8d8a2;border:1px solid #918458;border-radius:50%;width:22px;height:22px;font:700 12px/1 sans-serif}.fl-libfoot{margin-top:4px;border-top:1px solid #7271545c;padding-top:3px}.fl-add,.fl-minus{border:1px solid #8c8057;background:#3b4b37;color:#f2e2b7;font-size:12px;border-radius:4px;min-height:27px;padding:1px 8px;line-height:1.3}.fl-add:disabled{background:transparent;border-color:transparent;color:#acb09a;font-size:11px}.fl-missing{background:#23332b}.fl-missing .fl-picture,.fl-missing .fl-seal{filter:grayscale(.9);opacity:.65}.fl-decklist{padding-right:3px}.fl-deckrow{display:flex;gap:7px;align-items:center;padding:4px 0;border-bottom:1px solid #77745350}.fl-deckrow i{width:21px;height:21px;flex-shrink:0}.fl-cardname{background:transparent;border:0;color:#eae4cb;text-align:left;font-size:14px;flex:1;padding:4px 0}.fl-deckrow b{color:#d5c698;font-size:12px}.fl-minus{min-width:31px;padding:2px 5px}.fl-swap{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:5px 8px;border:1px solid #a48c52;color:#e9d299;font-size:12px;margin:0 0 5px}.fl-swap .fl-link{margin-left:auto}.fl-empty{grid-column:1/-1;padding:18px;color:#c8c9b7;font-size:14px}.fl-buildfoot{margin-top:9px}.fl-utilities{gap:16px}.fl-primary{gap:8px}.fl-primary .quiet,.fl-primary .gold{min-height:38px;padding:5px 18px;margin:0}.fl-primary :disabled{opacity:.42}.fl-status{min-height:17px;font-size:11px;color:#c6c5af;margin-top:2px}.fl-detailpic{overflow:hidden;margin:0 auto 8px;width:92px;height:92px;border:1px solid #aa9260;border-radius:5px}.fl-detailpic .fl-seal{font-size:34px}.fl-detailtype{font-size:12px;letter-spacing:.07em}.fl-detail>small{display:block;font-size:11px;margin:5px 0 12px}.fl-detail{max-height:90dvh;overflow:auto}.fl-detail .tiny{color:inherit}
@media(max-width:900px){.fl-builder{width:calc(100% - 42px)}.fl-receipt{width:calc(100% - 48px)}.fl-pulls{gap:8px}.fl-workspace{grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr)}.fl-liblist{grid-template-columns:repeat(auto-fit,minmax(161px,1fr))}}
@media(max-width:720px){.fl-home{overflow-y:auto;justify-content:center}.fl-home .pack-copy{text-align:center}.fl-home .pack-copy p{font-size:13px;margin:5px auto}.fl-home-actions,.fl-home-links{justify-content:center}.fl-home-actions{margin:12px 0 5px}.fl-home .fl-disclose{margin:5px auto 6px;max-width:26em}.fl-receipt,.fl-builder{width:calc(100% - 22px);height:calc(100% - 52px);padding:4px 0 8px}.fl-receipt{justify-content:safe center;overflow:auto}.fl-receipt h1{font-size:28px}.fl-receipt-head p{font-size:12px}.fl-pulls{grid-template-columns:repeat(6,minmax(0,1fr));margin:11px 0;gap:6px;max-width:470px}.fl-pull{grid-column:span 2;padding:3px 3px 5px}.fl-pull:nth-child(4){grid-column:2/span 2}.fl-pull-img{height:clamp(59px,12vh,95px)}.fl-pull strong{font-size:15px}.fl-pull small,.fl-pull em{font-size:10px}.fl-pull em{margin-top:1px}.fl-pull-img>span{width:20px;height:20px;line-height:18px;font-size:11px}.fl-receipt .fl-disclose{margin:7px auto 0}.fl-receipt-actions{gap:6px}.fl-receipt-actions .gold,.fl-receipt-actions .quiet{min-height:38px;padding:4px 12px;font-size:13px}.fl-build-title{gap:6px}.fl-build-title h1{font-size:28px}.fl-build-title .tiny{font-size:9px}.fl-work{padding:6px 8px;font-size:12px}.fl-workgroup{flex-wrap:nowrap}.fl-buildnote{font-size:10px;margin:3px 0 6px}.fl-buildnote span{display:inline}.fl-mobiletabs{display:flex;justify-content:space-between;margin-bottom:6px;gap:3px}.fl-mobiletabs .fl-work{flex:1}.fl-workspace{display:flex;gap:0}.fl-library,.fl-deckpane{width:100%;padding:8px}.fl-builder[data-tab=library] .fl-deckpane,.fl-builder[data-tab=deck] .fl-library{display:none}.fl-panehead{margin-bottom:4px;min-height:24px}.fl-panehead h2{font-size:16px}.fl-panehead>span{font-size:10px}.fl-liblist{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.fl-tools{margin-bottom:6px}.fl-tools input{width:116px}.fl-inspect{gap:4px}.fl-libname strong{font-size:15px}.fl-libname small{font-size:9px}.fl-inspect .fl-picture,.fl-inspect .fl-seal{width:31px;height:35px}.fl-fee{width:17px;height:17px;font-size:10px}.fl-libfoot{gap:0}.fl-libfoot span,.fl-add:disabled{font-size:10px}.fl-add,.fl-minus{min-height:30px}.fl-cardname{padding:7px 0}.fl-buildfoot{margin-top:5px}.fl-utilities{gap:9px}.fl-utilities .fl-link{font-size:12px;padding:8px 1px}.fl-primary{gap:4px}.fl-primary .gold,.fl-primary .quiet{padding:4px 9px;min-height:36px;font-size:12px}.fl-status{font-size:10px;min-height:13px}.fl-build-title .fl-workgroup .fl-work{min-height:31px}.fl-filter{padding:6px 5px}.fl-library .fl-librow{padding:4px}.fl-build-title .tiny{display:none}}
@media(max-width:370px){.fl-tools input{width:93px}.fl-tools{gap:2px}.fl-inspect .fl-picture,.fl-inspect .fl-seal{width:25px;height:30px}.fl-filter{font-size:11px;padding:5px 4px}.fl-buildnote span{font-size:9px}}
.v3-shop{width:min(1120px,calc(100% - 72px));height:calc(100% - 68px);margin:0 auto;padding:5px 8px 26px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#96865d #25362c}.v3-intro,.v3-sectionhead,.v3-shop-foot,.v3-theme-bottom,.v3-offer,.v3-offer-act,.v3-select,.v3-leader{display:flex;align-items:center;justify-content:space-between;gap:10px}.v3-intro h1{font:700 clamp(32px,3.9vw,51px)/1.17 "Songti SC","STSong",serif;color:#f9edcc;margin:3px 0}.v3-intro p,.v3-sectionhead small,.v3-offer p,.v3-shop-foot>span{color:#c7c5b2;font-size:12px}.v3-intro p{font-size:14px}.v3-local{font-size:11px;color:#d9c59a;border:1px solid #827957;border-radius:4px;padding:6px 9px;background:#172c24b0}.v3-sectionhead{margin:15px 0 7px}.v3-sectionhead h2{font-size:21px;color:#f1dfb1}.v3-sectionhead .gold,.v3-reveal .quiet,.v3-reveal .gold{min-height:37px;margin:0;padding:5px 14px}.v3-sectionhead small{font-size:11px}.v3-themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.v3-theme,.v3-offer{overflow:hidden;background:#1d3028ed;border:1px solid #877755;border-radius:7px}.v3-cover{position:relative;background-position:center 30%;background-size:cover;height:clamp(94px,14vh,156px);border-bottom:1px solid #8d7a52;isolation:isolate}.v3-cover:after{position:absolute;content:"";inset:35% 0 0;background:linear-gradient(transparent,#142018dc);z-index:-1}.v3-cover span{position:absolute;left:10px;bottom:5px;font:700 22px/1.2 "Songti SC","STSong",serif;color:#f4e2c1;text-shadow:0 1px 4px #342f24}.v3-theme-bottom{padding:6px 8px;font-size:11px;color:#c5c7b0}.v3-pill{min-height:30px;padding:3px 10px;border-radius:4px;border:1px solid #99875d;background:#3a4d3b;color:#f4dfad;font:inherit;font-size:12px;white-space:nowrap}.v3-pill:disabled{opacity:.64;background:#273a2f}.v3-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}.v3-offer{display:flex;flex-direction:column;align-items:stretch;padding:10px 12px}.v3-offer h3{font-size:17px;line-height:1.2;margin:0 0 4px}.v3-offer p,.v3-select{font-size:11px}.v3-offer-act{border-top:1px solid #8d886447;padding-top:5px}.v3-offer-act b{font-size:18px;color:#e9cc8b}.v3-offer-act .v3-pill{font-size:11px}.v3-select{justify-content:flex-start;gap:7px}.v3-select select,.fl-tools select{color:#f0e4c6;background:#21362c;border:1px solid #7a795c;padding:4px 6px;font:inherit;font-size:12px;border-radius:3px}.v3-shop-foot{margin-top:8px;flex-wrap:wrap;justify-content:flex-start}.v3-shop-foot>span{font-size:10px;flex:1;min-width:180px}.v3-shop-foot button{font-size:11px}.v3-reveal-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:13px 0 8px}.v3-reveal-tabs button{border:1px solid #867953}.v3-reveal-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}.v3-reveal-card{padding:3px 3px 5px;text-align:left;overflow:hidden;border:1px solid #aa9368;border-radius:5px;background:linear-gradient(120deg,#f1dfb9,#c6af80);color:#302d22}.v3-face{position:relative;display:block;height:clamp(54px,12vh,130px);overflow:hidden}.v3-face .fl-picture,.v3-face .fl-seal{width:100%;height:100%}.v3-face .fl-seal{font-size:26px}.v3-face>i{position:absolute;left:3px;top:2px;background:#29413f;color:#f6e3b2;border:1px solid #a88c55;border-radius:50%;width:20px;text-align:center;font:700 13px/18px sans-serif}.v3-reveal-card>strong,.v3-reveal-card>small{display:block;margin-left:3px}.v3-reveal-card>strong{font-family:"Songti SC","STSong",serif;font-size:17px}.v3-reveal-card>small,.v3-workshop-note{font-size:10px}.v3-workshop-note{margin:0 0 4px;color:#cecaad}.v3-leader small{color:#e1d1a8}.fl-tools{justify-content:flex-start}
@media(max-width:720px){.v3-shop{width:calc(100% - 22px);height:calc(100% - 56px);padding:3px 1px 15px}.v3-intro{align-items:flex-start;gap:4px}.v3-intro h1{font-size:28px}.v3-intro p{font-size:12px;max-width:32em}.v3-local{border:0;background:none;padding:0;max-width:85px;font-size:10px;line-height:1.4;text-align:right}.v3-sectionhead{margin:11px 0 5px}.v3-sectionhead h2{font-size:18px}.v3-sectionhead small{display:block;font-size:10px}.v3-sectionhead .gold{padding:3px 9px;min-height:34px;font-size:11px;white-space:nowrap}.v3-themes{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.v3-cover{height:clamp(64px,11vh,91px)}.v3-cover span{font-size:17px;left:6px;bottom:3px}.v3-theme-bottom{padding:3px 5px;font-size:10px}.v3-pill{min-height:28px;font-size:11px;padding:2px 7px}.v3-offers{display:flex;flex-direction:column;gap:4px}.v3-offer{flex-direction:row;align-items:center;gap:8px;padding:6px 8px}.v3-offer h3{font-size:15px}.v3-offer-act{border:0;padding:0;gap:6px}.v3-offer-act b{font-size:15px}.v3-offer p{font-size:10px}.v3-reveal-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.v3-reveal-card>strong{font-size:14px}.v3-face{height:clamp(50px,10vh,76px)}.v3-reveal .v3-intro .quiet{min-height:32px;font-size:12px;padding:3px 7px}.v3-reveal-tabs .fl-work{font-size:10px;padding:5px 6px}.fl-tools select{max-width:92px;font-size:11px}.fl-libfoot .fl-add{padding:2px 4px}.v3-select select{font-size:10px;padding:1px 3px}.v3-leader{gap:4px}.v3-leader small{font-size:10px}.fl-tools input{max-width:111px}}
.v4-odds{margin:7px 0 10px;padding:8px 11px;border:1px solid #928358;border-radius:5px;background:#20382def;color:#e8dec3}.v4-odds>div,.v4-odds ul,.v4-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.v4-odds>div b{font-size:14px;color:#f3e1b1}.v4-odds>div span,.v4-odds small{font-size:11px;color:#cccbb4}.v4-odds ul{margin:5px 0;padding:0;list-style:none;gap:6px 21px}.v4-odds li{font-size:12px}.v4-odds strong{color:#f8e7b9}.v4-odds small{display:block}.v4-terms,.v4-counts{font-size:12px;line-height:1.5;color:#e5d6af}.modal:has(.v4-odds){max-height:90dvh;overflow:auto}.modal .v4-odds{margin:8px 0;text-align:left}.v4-trade{border:1px solid #857856;border-radius:6px;padding:9px 10px;text-align:left;background:#162a23e8;color:#f0e4c2;margin:7px 0}.v4-trade label,.v4-trade small{display:block;font-size:11px;color:#c8c5ac}.v4-trade select{display:block;width:100%;margin:4px 0 7px;background:#25382d;color:#efe4c6;border:1px solid #8a7f58;border-radius:4px;padding:5px;font:inherit;font-size:12px}.v4-trade b{font-size:13px}.v4-trade p{font-size:12px;line-height:1.45;margin:3px 0}.v4-trade .quiet,.fl-detail>[data-act="flow-trade"]{min-height:33px;width:auto;font-size:12px;padding:3px 11px;margin:4px 0}.v4-actions{gap:5px}.v4-result{color:#f4cf84}.v3-reveal-card>small:last-child{line-height:1.35}.fl-detail:has(.v4-trade) .fl-detailpic{width:55px;height:55px}
@media(max-width:720px){.v4-odds{padding:6px 7px;margin:4px 0}.v4-odds ul{gap:3px 13px}.v4-odds li,.v4-odds small,.v4-odds>div span{font-size:10px}.v4-odds>div b{font-size:12px}.v4-odds>div{gap:5px}.v4-terms,.v4-counts{font-size:11px}.modal:has(.v4-trade){padding:13px}.v4-trade{padding:6px 7px}.v3-reveal-card>small:last-child{font-size:9px}}

.draw-screen{height:calc(100% - 68px);display:flex;flex-direction:column;align-items:center;overflow:auto;padding:14px clamp(22px,5vw,80px) 22px}
.draw-body{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:min-content}.draw-copy{text-align:center}.draw-copy h1{font-size:clamp(28px,3.3vw,47px);font-weight:600;margin:7px 0 5px;line-height:1.25}.draw-note{font-size:15px;color:#e2ddc7}.draw-count{font-size:13px;margin-top:10px;color:#c9cdbd}.draw-count b{color:#f1ddb1;font-size:16px}.draw-grid{width:min(100%,1030px);display:flex;justify-content:center;flex-wrap:wrap;gap:17px;padding:25px 0 10px}.draw-card{position:relative;flex:0 1 142px;max-width:160px;height:192px;border-radius:11px 11px 7px 7px;padding:4px 4px 8px;box-shadow:inset 0 0 0 1px #48432f,0 5px 14px #0c1b1880;border:2px solid #b69960;background:linear-gradient(#69573a,#d1bc8e 69%,#d3c39d);color:#302c21}.draw-card strong,.draw-card small{display:block}.draw-card strong{font:700 19px/1.45 'Songti SC',serif}.draw-card small{font-size:11px}.draw-portrait,.draw-symbol{height:68%;border:1px solid #79694b;border-radius:5px;background-position:center 22%;background-size:cover}.draw-symbol{background:repeating-linear-gradient(38deg,transparent 0,transparent 18px,#c5b17d11 19px,transparent 20px),linear-gradient(135deg,#49685b,#273f34);display:grid;place-items:center}.draw-symbol span{color:#d2bf8d;font:30px 'Songti SC',serif;border:1px solid #a7986a80;border-radius:50%;padding:3px 9px}.draw-card .draw-cost{position:absolute;z-index:1;left:-4px;top:-6px;font:bold 17px Georgia;display:grid;place-items:center;width:25px;height:29px;color:#fff3cd;border:1px solid #dfc68e;border-radius:5px 5px 12px 12px;background:#31594c}.draw-card em{position:absolute;font:600 12px system-ui;right:1px;top:5px;background:#735137;color:#fff0cd;padding:3px 6px;border-radius:3px}.draw-card.returned{outline:2px dashed #e8bf7d;outline-offset:3px}.draw-card.newdraw{outline:2px solid #a9baa2;outline-offset:2px}.draw-reading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:7px 0 12px;max-width:730px;color:#e9e2ce;font-size:14px}.draw-reading strong{color:#f0ce90;white-space:nowrap}.draw-footer{text-align:center;width:100%}.draw-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px}.draw-footer p{font-size:12px;color:#c5c5ad;margin-top:13px}.draw-grid:has(.draw-card:nth-child(7)) .draw-card{height:133px;flex-basis:98px}.draw-grid:has(.draw-card:nth-child(7)) .draw-card strong{font-size:15px}.draw-grid:has(.draw-card:nth-child(7)) .draw-symbol span{font-size:20px}
@media(max-width:720px){.draw-screen{height:calc(100% - 56px);padding:10px 14px max(15px,env(safe-area-inset-bottom))}.draw-note{font-size:13px}.draw-grid,.draw-grid:has(.draw-card:nth-child(7)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px;width:min(100%,445px);padding:19px 0 6px}.draw-grid:has(.draw-card:nth-child(4)):not(:has(.draw-card:nth-child(5))){grid-template-columns:repeat(2,minmax(0,115px));justify-content:center}.draw-card,.draw-grid:has(.draw-card:nth-child(7)) .draw-card{height:128px;width:100%;max-width:none}.draw-card strong{font-size:16px}.draw-card small{font-size:10px}.draw-card .draw-cost{width:23px;height:25px;font-size:15px}.draw-reading{align-items:baseline;font-size:13px;margin:7px 0;min-height:23px}.draw-controls .gold,.draw-controls .quiet{padding:0 12px;font-size:13px}.draw-footer p{margin-top:8px;line-height:1.4;font-size:11px}}
@media(max-width:360px){.draw-screen{padding-inline:10px}.draw-card,.draw-grid:has(.draw-card:nth-child(7)) .draw-card{height:110px}.draw-card strong{font-size:14px}.draw-grid{gap:10px 6px}.draw-controls{gap:5px}.draw-controls .quiet,.draw-controls .gold{font-size:12px;padding:0 8px}}

:root{--v6-paper:#edddbc;--v6-jade:#24564e;--v6-vermilion:#a74736;--v6-brass:#a78750;--v6-ebony:#2e2822;--v6-serif:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif}
.v6-reveal .v3-face > i.fl-picture{position:absolute;display:block;inset:0;width:100%;height:100%;border:1px solid #ad9669;border-radius:2px;background-size:cover;background-position:50% 24%;background-color:#5c604e}
#app :is(button,select,input):focus-visible{outline:3px solid #ffe19a;outline-offset:3px}
@media (prefers-reduced-motion:reduce){#app *,#app *::before,#app *::after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}

/* Four-novel collection: printed portraits, cloth bindings, wood and aged paper. */
.shell:has(.v6-store,.v6-editor,.v6-reveal){
  --jade:#15352e;--ink:#122822;--brass:#bc9d61;--paper:#edddbb;--ivory:#f4ead3;--muted:#bfc4ab;--seal:#a34032;
  --display:"Songti SC","STSong","Noto Serif CJK SC","Baskervville",serif;
  background:#152b25;color:var(--ivory);border:0;
}
.shell:has(.v6-store,.v6-editor,.v6-reveal)::before{inset:0;opacity:.24;background:var(--boardV6,var(--mat)) center/cover no-repeat;mask-image:none}
.shell:has(.v6-store,.v6-editor,.v6-reveal)::after{inset:0;width:auto;height:auto;background:radial-gradient(ellipse at 50% 27%,#42614933 0,transparent 57%),linear-gradient(110deg,#142921c9,#11292155 50%,#071c19d9);mask-image:none}
.v6-header{max-width:1440px;margin:auto;padding:0 clamp(20px,4.5vw,70px);height:58px;border-bottom:1px solid #b5a16d38}
.v6-header::after{display:none!important}.v6-header .brand{width:101px;height:auto}.v6-header .loc{letter-spacing:.16em;color:#c6c7ad;font-size:11px;border-color:#a692614d}.v6-header .fl-link,.v6-teach,.v6-editor .fl-link,.v6-store .fl-link{color:#e0c98f;font-size:12px;text-underline-offset:5px;text-decoration-color:#b69a5d6f}
.v6-header .menuBtn{border-color:#a58d5a77}.v6-header .hdr-right{gap:15px}
.v6-store,.v6-reveal,.v6-editor{width:min(1230px,calc(100% - clamp(48px,9vw,150px)));height:calc(100% - 58px);margin:0 auto;padding:17px 3px 26px;scrollbar-color:#88734f #20342a;scrollbar-width:thin}
.v6-store .v3-intro,.v6-reveal .v3-intro{display:flex;align-items:center;gap:18px;justify-content:space-between}
.v6-store .v3-intro h1,.v6-editor .fl-build-title h1,.v6-reveal .v3-intro h1{font:600 clamp(35px,3.4vw,49px)/1.15 var(--display);letter-spacing:.07em;color:#f2e4c2;margin:0;text-shadow:0 2px 5px #10211b}
.v6-store .v3-intro p,.v6-reveal .v3-intro p{font-size:13px;line-height:1.55;color:#bdc5ae;margin:5px 0 0;max-width:49em}
.v6-store .v6-teach{white-space:nowrap;padding:8px 0 8px 10px;text-decoration:none}.v6-store .v6-teach::after{content:" ↗";font-size:13px}
.v6-store .v3-sectionhead{margin:20px 0 9px;gap:14px;align-items:flex-end}.v6-store .v3-sectionhead h2,.v6-editor .fl-panehead h2{font:600 23px/1.25 var(--display);letter-spacing:.07em;color:#eadabb}
.v6-store .v3-sectionhead small{font-size:11px;color:#c6c7af;line-height:1.4;display:block;margin-top:4px}
.v6-store .gold,.v6-reveal .gold,.v6-editor .gold,.v6-dialog .gold,.v6-empty-cta{background:linear-gradient(115deg,#ecce8b,#c9a560);border:1px solid #e2c78d;border-radius:3px;color:#332a17;font-weight:650;box-shadow:0 2px 0 #75613f,0 3px 10px #0a1b165c}
.v6-store .v3-sectionhead .gold{font-size:13px;min-height:37px;padding:6px 14px}
.v6-store .gold:disabled,.v6-editor .gold:disabled{color:#a5aa96;background:#37493c;border-color:#687357;box-shadow:none;opacity:.8}
.v6-store .v3-themes{
  --bay:clamp(178px,25vh,256px);
  position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,2vw,26px);padding:12px clamp(12px,2vw,31px) 9px;
  background:radial-gradient(ellipse at 50% 0,#526a493b 0,transparent 72%),linear-gradient(180deg,#172c25,#203a2e 64%,#15291f);
  border-top:1px solid #9a865c63;border-bottom:4px solid #685137;box-shadow:inset 0 2px 4px #0718118c,inset 0 -7px 12px #10201880,0 4px 4px #071b1780;
}
.v6-store .v3-themes::after{content:"";position:absolute;z-index:-1;inset:auto 0 0;height:11px;border-top:1px solid #ab8d5288;background:repeating-linear-gradient(0deg,#493e2b 0 1px,#3b3123 1px 3px,#51412c 3px 4px)}
.v6-store .v3-theme{--cloth:#59432d;--line:#c4a365;position:relative;isolation:isolate;background:none;border:0;border-radius:0;overflow:visible;display:flex;flex-direction:column;align-items:center}
.v6-store .v3-theme[data-work=S]{--cloth:#394238;--line:#b8a875}.v6-store .v3-theme[data-work=J]{--cloth:#5e4030;--line:#cca65f}.v6-store .v3-theme[data-work=D]{--cloth:#674c4a;--line:#c9a58a}
.v6-store .v3-cover{height:var(--bay);width:100%;display:flex;align-items:center;justify-content:center;background:none;border:0;overflow:visible}
.v6-store .v3-cover::after{display:none}
.v6-volume{height:calc(100% - 4px);aspect-ratio:.726;position:relative;isolation:isolate;overflow:visible;border:1px solid var(--line);border-radius:4px 2px 2px 4px;background:var(--cloth);box-shadow:2px 1px 0 #c4ae83,4px 2px 0 #675a43,5px 4px 0 #312b22,8px 9px 13px #06110bbf;transform:perspective(900px) rotateY(-5deg) rotateZ(-1deg);transition:transform .18s ease}
.v3-theme:nth-child(2n) .v6-volume{transform:perspective(900px) rotateY(-4deg) rotateZ(1deg)}.v3-theme:has(.v3-pill:not(:disabled)):hover .v6-volume{transform:translateY(-3px) perspective(900px) rotateY(-2deg)}
.v6-volume-art{position:absolute;inset:3px 3px 3px 11px;border:1px solid #e3cfa077;background:linear-gradient(0deg,#211c1955,transparent 32%),var(--cover-portrait) center 30%/cover no-repeat;filter:saturate(.85) contrast(.97);box-shadow:inset 0 0 8px #352c2377}
.v6-volume-spine{position:absolute;z-index:2;top:0;bottom:0;left:0;width:10px;border-right:1px solid #cfb37e99;background:repeating-linear-gradient(0deg,#0002 0 1px,transparent 1px 3px),linear-gradient(90deg,#0b151257,var(--cloth) 45%,#b4a0775c 87%,#44392a)}
.v6-volume-spine::after{content:"";position:absolute;top:16%;bottom:15%;left:1px;right:0;background:repeating-linear-gradient(0deg,transparent 0 26%,#c5b698 26% 28%,transparent 28% 31%);opacity:.85}
.v6-store .v3-cover .v6-title-slip{position:absolute;z-index:2;inset:9% auto auto 14px;display:block;writing-mode:vertical-rl;text-orientation:upright;border:1px solid #a38d65;outline:1px solid #ded1b1;outline-offset:-3px;border-radius:1px;padding:7px 2px;color:#302a22;background:linear-gradient(90deg,#c5af88,#eedeb8 27%,#e5d3a9);font:700 clamp(17px,1.6vw,25px)/1.18 var(--display);letter-spacing:.05em;text-shadow:none;box-shadow:1px 2px 2px #392b2466}
.v6-store .v3-cover .v6-name-seal{position:absolute;inset:auto 6px 6px auto;padding:2px 3px;color:#fae7c9;background:#973c30;border:1px solid #e6c59c;outline:1px solid #7c352c;font:600 10px/1.1 var(--display);letter-spacing:.08em;text-shadow:none}
.v6-store .v3-theme-bottom{width:min(100%,210px);display:flex;justify-content:space-between;align-items:center;gap:5px;margin:8px 0 5px;padding:0;color:#d6d3b8;font-size:11px}
.v6-store .v3-theme-bottom .v3-pill{padding:4px 9px;min-height:31px;border-radius:2px;background:#e5d5b1;color:#303724;border:1px solid #af9c6b;font-size:12px;font-weight:650}
.v6-store .v3-theme-bottom .v3-pill::after{content:"";position:absolute;inset:0;z-index:4}
.v6-store .v3-theme-bottom .v3-pill:disabled{background:#344b3b;color:#d2ceb3;border-color:#7a8064;opacity:.85}
.v6-store .v6-paid{display:flex;align-items:baseline;justify-content:flex-start;margin-top:19px}.v6-store .v6-paid small{margin:0}.v6-store .v3-local{margin-left:auto;padding:0;border:0;background:none;color:#cad0b8;font-size:11px}
.v6-store .v3-offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0;background:linear-gradient(105deg,#edddba,#d8c49f);color:#40382b;border:1px solid #ae986b;border-radius:3px;box-shadow:0 3px 8px #0a1a1580}
.v6-store .v3-offer{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 14px;min-width:0;background:none;border:0;border-right:1px solid #ad9871;border-radius:0;overflow:visible}.v6-store .v3-offer:last-child{border:0}
.v6-store .v3-offer h3{font:650 17px/1.3 var(--display);color:#352d25;margin:0 0 3px}.v6-store .v3-offer p,.v6-store .v3-select{color:#675d46;font-size:10px}.v6-store .v3-offer-act{display:grid;gap:2px;justify-items:end;padding:0;border:0;flex-shrink:0}.v6-store .v3-offer-act b{font:700 17px/1.1 Georgia,serif;color:#4f422b}
.v6-store .v3-offer-act .v3-pill{min-height:29px;background:#344a3b;color:#f3e5c7;border:1px solid #687355;border-radius:2px;font-size:11px;padding:3px 8px}.v6-store .v3-offer-act .v3-pill:disabled{background:#c5b89b;color:#655e49;border-color:#a69677;opacity:1}
.v6-store .v3-select select{color:#514d39;border-color:#a59775;background:#e5d7b6;font-size:11px;padding:2px 6px}
.v6-store .v4-odds{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 21px;margin:11px 0 3px;padding:8px 0;background:none;border:0;border-bottom:1px solid #8f805740;border-radius:0}.v6-store .v4-odds>div{gap:8px}.v6-store .v4-odds>div b{font-weight:600;color:#e4d4ad;font-size:13px}.v6-store .v4-odds ul{justify-content:flex-end;margin:0;gap:8px 20px}.v6-store .v4-odds small{grid-column:1/-1}.v6-store .v4-odds small,.v6-store .v4-odds>div span,.v6-store .v3-shop-foot>span{color:#b7c0a7;font-size:10px;line-height:1.55}.v6-store .v4-odds li{font-size:12px}.v6-store .v4-odds li strong{font-variant-numeric:tabular-nums;color:#e8d8b0}.v6-store .v3-shop-foot{margin:4px 0}
.v6-reveal .v3-reveal-tabs{margin:17px 0 9px}.v6-reveal .v3-reveal-tabs button{border:0;border-bottom:1px solid #8e8059;border-radius:0}.v6-reveal .v3-reveal-tabs [aria-pressed=true]{background:#d6c199;color:#302e23}.v6-reveal .v3-reveal-cards{gap:11px;margin:9px 0 15px}.v6-reveal .v3-reveal-card{padding:4px 4px 6px;border:1px solid #a99367;background:linear-gradient(110deg,#edddbb,#d3be94);box-shadow:1px 3px 5px #0a1b17a1;border-radius:5px 4px 3px 3px}.v6-reveal .v3-face{height:clamp(76px,15vh,155px)}.v6-reveal .v3-face>i{width:23px;height:23px;border-radius:4px 4px 40% 40%;color:#eee3be;background:#214238;font:700 15px/21px Georgia,serif}.v6-reveal .v3-reveal-card>strong{letter-spacing:.05em;margin-top:3px}.v6-reveal .v3-reveal-card>small{font-size:10px;color:#514b38}.v6-reveal .v3-reveal-card>small:last-child{color:#615a44}
.v6-editor{display:flex;padding:12px 1px 8px}.v6-editor .fl-build-title{gap:12px}.v6-editor .fl-build-title h1{font-size:clamp(31px,3vw,43px)}.v6-editor .fl-buildnote{margin:4px 0 12px;color:#c0c6aa;font-size:11px}.v6-editor .v3-leader small{font-size:11px;color:#d6caac}
.v6-editor .fl-workgroup,.v6-editor .fl-mobiletabs{background:#132b23;border:1px solid #8b805c;border-radius:3px}.v6-editor .fl-work{border-radius:2px}.v6-editor .fl-work[aria-pressed=true]{background:#ddc69b;color:#382e22}
.v6-editor .fl-workspace{grid-template-columns:minmax(0,1fr) minmax(225px,27%);gap:clamp(12px,2vw,25px)}
.v6-editor .fl-library{border:0;border-radius:0;box-shadow:none;background:none;padding:0 0 2px;overflow:hidden}
.v6-editor .fl-panehead{min-height:29px;margin-bottom:6px}.v6-editor .fl-panehead h2{font-size:21px}.v6-editor .fl-panehead>span{font-size:11px;color:#c0c8b0}
.v6-editor .fl-tools{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;padding:0 0 8px;margin:0}.v6-editor .fl-tools input,.v6-editor .fl-tools select,.v4-trade select{border:1px solid #837d5c;border-radius:3px;background:#21382d;color:#e9dfc5;min-height:33px}.v6-editor .fl-tools input{max-width:none;width:clamp(150px,32%,350px);padding-left:10px}
.v6-editor .fl-liblist{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:9px;padding:1px 5px 8px 1px}
.v6-editor .fl-librow{display:flex;flex-direction:column;position:relative;overflow:hidden;background:linear-gradient(110deg,#efdfbe,#d5bd91);border:1px solid #b39865;border-radius:5px 5px 3px 3px;padding:3px;color:#372f23;box-shadow:1px 3px 4px #0a1b1688}
.v6-editor .fl-inspect{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;background:transparent;border-radius:2px;color:#30291f}
.v6-editor .fl-inspect .fl-picture,.v6-editor .fl-inspect .fl-seal{display:block;width:100%;height:clamp(77px,12.3vh,135px);background-position:center 23%;border:0;border-radius:2px 2px 0 0;box-shadow:inset 0 0 1px #53472e}
.v6-editor .fl-inspect .fl-fee{position:absolute;top:3px;left:3px;width:24px;height:27px;background:linear-gradient(115deg,#395948,#19372f);border:1px solid #e1bf78;border-radius:3px 3px 42% 42%;font:700 15px/1 Georgia,serif;box-shadow:0 1px 3px #201a1580;color:#f4e8c4}
.v6-editor .fl-libname{display:block;padding:4px 5px 1px;line-height:1.22}.v6-editor .fl-libname strong{font:700 17px/1.15 var(--display);letter-spacing:.04em}.v6-editor .fl-libname small{margin-top:2px;color:#5a523d;font-size:10px}
.v6-editor .fl-libfoot{display:flex;gap:3px;margin:3px 3px 0;padding:3px 1px 0;border-top:1px solid #a48a5c69}.v6-editor .fl-libfoot span{color:#58543e;font-size:10px}
.v6-editor .fl-add{font-size:11px;font-weight:600;min-height:27px;color:#ede4c6;background:#365240;border:1px solid #667756;border-radius:3px;padding:1px 7px}.v6-editor .fl-add:disabled{background:none;border-color:transparent;font-size:10px;color:#6f684d}
.v6-editor .fl-missing{background:#b4ac92;border-color:#827e64}.v6-editor .fl-missing .fl-picture{filter:grayscale(.85);opacity:.78}.v6-editor .fl-deckpane{position:relative;min-height:0;padding:12px;background:linear-gradient(100deg,#302c21,#272b22 60%,#303024);box-shadow:inset 0 0 0 2px #3f3b2c,0 4px 8px #0b1a1788;border:1px solid #8e7950;border-radius:4px}
.v6-editor .fl-deckpane::before,.v6-editor .fl-deckpane::after{position:absolute;top:3px;content:"";width:12px;height:12px;border-top:2px solid #c1a76a;pointer-events:none}.v6-editor .fl-deckpane::before{left:3px;border-left:2px solid #c1a76a}.v6-editor .fl-deckpane::after{right:3px;border-right:2px solid #c1a76a}
.v6-editor .fl-deckpane .fl-panehead{border-bottom:1px solid #95815b80;padding-bottom:8px}.v6-editor .fl-deckpane .fl-panehead h2{font-size:18px}.v6-editor .fl-counter{font:650 24px/1.3 Georgia,serif;color:#efcf89}.v6-editor .fl-counter small{font-size:11px;color:#d0c09d}
.v6-editor .fl-deckrow{border-bottom:1px solid #b29a6a36;gap:8px;padding:3px 0}.v6-editor .fl-deckrow i{width:21px;height:22px;border-radius:2px 2px 36% 36%;background:#344b39}.v6-editor .fl-cardname{color:#e6ddc2}.v6-editor .fl-deckrow b{font:600 13px Georgia,serif;color:#e0cc9f}.v6-editor .fl-minus{border-color:#847757;background:#413e2e;min-height:28px}.v6-editor .fl-swap{border-color:#b79d64;color:#f0d8a3}
.v6-editor .fl-buildfoot{border-top:1px solid #85774f66;padding-top:8px;margin-top:5px}.v6-editor .fl-buildfoot .quiet,.v6-reveal .quiet{border-color:#93835c;background:#273b2f;border-radius:3px}
.v6-empty-cta{justify-self:start;align-self:start;padding:5px 10px;min-height:36px;font-size:12px}.v6-editor .fl-empty{color:#c8c9af;padding:14px 0 0}
.v6-dialog{border:1px solid #c0a46d;border-radius:5px;background:linear-gradient(110deg,#293e30,#1a3028);box-shadow:0 18px 60px #06160ed1}.v6-dialog.fl-detail .fl-detailpic{width:110px;height:126px;border-radius:3px}.v6-dialog.fl-detail:has(.v4-trade) .fl-detailpic{width:50px;height:58px}.v6-dialog.fl-detail h2,.v6-dialog h2{font-family:var(--display);color:#f0dfb7}.v6-dialog.fl-detail .v4-counts{border-top:1px solid #a18b5e66;padding-top:6px}
@media(min-width:1450px){.v6-header{height:64px}.v6-store,.v6-reveal,.v6-editor{height:calc(100% - 64px)}.v6-store .v3-themes{--bay:clamp(218px,27vh,285px)}.v6-editor .fl-liblist{grid-template-columns:repeat(auto-fill,minmax(143px,1fr))}}
@media(min-width:721px) and (max-width:990px){.v6-store .v3-offer{padding:8px;gap:4px}.v6-store .v3-offer-act .v3-pill{font-size:10px}.v6-store .v3-offer h3{font-size:15px}.v6-store .v4-odds{display:block}.v6-store .v4-odds ul{justify-content:flex-start;margin:3px 0}.v6-editor .fl-liblist{grid-template-columns:repeat(auto-fill,minmax(117px,1fr))}}
@media(max-width:720px){
 .v6-header{height:49px;padding:0 13px}.v6-header .brand{width:84px}.v6-header .hdr-left,.v6-header .hdr-right{gap:8px}.v6-header .loc{padding-left:8px;font-size:10px}.v6-header .fl-link{font-size:11px}.v6-header .menuBtn{min-width:40px;min-height:40px;width:40px;height:40px}
 .v6-store,.v6-reveal,.v6-editor{width:calc(100% - 26px);height:calc(100% - 49px);padding:12px 1px 15px}
 .v6-store .v3-intro,.v6-reveal .v3-intro{gap:7px}.v6-store .v3-intro h1,.v6-editor .fl-build-title h1,.v6-reveal .v3-intro h1{font-size:30px}.v6-store .v3-intro p,.v6-reveal .v3-intro p{font-size:11px;margin-top:4px;line-height:1.4}.v6-store .v6-teach{font-size:11px;padding-left:2px}
 .v6-store .v3-sectionhead{margin:12px 0 6px;gap:8px;align-items:center}.v6-store .v3-sectionhead h2,.v6-editor .fl-panehead h2{font-size:18px}.v6-store .v3-sectionhead small{font-size:10px;margin-top:2px;max-width:32em}.v6-store .v6-grants small{max-width:25em}.v6-store .v6-grants .gold{font-size:10px;padding:4px 7px;min-height:36px}
 .v6-store .v3-themes{--bay:clamp(108px,17.5vh,158px);grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:7px 9px 8px}
 .v6-store .v3-themes::after{height:7px}.v6-store .v3-theme-bottom{margin:4px 0 4px;max-width:143px;font-size:10px}.v6-store .v3-theme-bottom .v3-pill{min-height:28px;padding:2px 7px;font-size:10px}
 .v6-store .v3-cover .v6-title-slip{font-size:15px;left:11px;top:8%;padding:5px 1px}.v6-volume-art{inset:2px 2px 2px 7px}.v6-volume-spine{width:7px}.v6-store .v3-cover .v6-name-seal{font-size:8px;bottom:4px;right:4px}
 .v6-store .v6-paid{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 9px}.v6-store .v6-paid small{font-size:9px}.v6-store .v3-local{margin:1px 0 0;grid-column:1/-1;font-size:10px;text-align:left;max-width:none}
 .v6-store .v3-offers{display:flex;flex-direction:column;gap:0}.v6-store .v3-offer,.v6-store .v3-offer:last-child{display:flex;align-items:center;flex-direction:row;border-right:0;border-bottom:1px solid #ae9a75;padding:7px 9px;gap:6px}.v6-store .v3-offer:last-child{border-bottom:0}.v6-store .v3-offer h3{font-size:15px}.v6-store .v3-offer-act{display:flex;align-items:center;gap:8px}.v6-store .v3-offer-act b{font-size:15px}.v6-store .v3-offer-act .v3-pill{min-height:32px}
 .v6-store .v4-odds{display:block;margin:7px 0 3px;padding:5px 0}.v6-store .v4-odds ul{justify-content:flex-start;gap:3px 11px;margin:3px 0}.v6-store .v4-odds li{font-size:10px}
 .v6-reveal .v3-reveal-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v6-reveal .v3-face{height:clamp(78px,13vh,115px)}.v6-reveal .v3-reveal-card>small,.v6-reveal .v3-reveal-card>small:last-child{font-size:10px}
 .v6-editor{padding:7px 0 4px}.v6-editor .fl-build-title h1{font-size:26px}.v6-editor .fl-buildnote{font-size:10px;margin:3px 0 6px}.v6-editor .fl-buildnote span{font-size:10px}.v6-editor .fl-mobiletabs{display:flex;padding:2px;margin-bottom:6px}.v6-editor .fl-mobiletabs button{min-height:32px}
 .v6-editor .fl-workspace{display:flex;gap:0}.v6-editor .fl-library{padding:0}.v6-editor .fl-panehead{min-height:21px;margin-bottom:3px}.v6-editor .fl-panehead h2{font-size:16px}.v6-editor .fl-panehead>span{font-size:10px}.v6-editor .fl-tools{gap:4px;padding:0 0 5px}.v6-editor .fl-tools input{width:auto;max-width:none;flex:1;min-width:65px}.v6-editor .fl-tools select{max-width:90px}.v6-editor .fl-tools select,.v6-editor .fl-tools input{min-height:32px;font-size:11px}
 .v6-editor .fl-liblist{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 2px 5px 0}.v6-editor .fl-inspect .fl-picture,.v6-editor .fl-inspect .fl-seal{height:clamp(75px,12vh,111px)}.v6-editor .fl-libname{padding:3px 4px 0}.v6-editor .fl-libname strong{font-size:16px}.v6-editor .fl-libname small{font-size:10px}.v6-editor .fl-libfoot{margin:2px 2px 0;padding:1px 0}.v6-editor .fl-add{min-height:31px;font-size:11px}.v6-editor .fl-libfoot span{font-size:10px}
 .v6-editor .fl-deckpane{padding:10px}.v6-editor .fl-minus{min-height:35px;min-width:37px}.v6-editor .fl-cardname{min-height:35px}
 .v6-editor .fl-buildfoot{margin-top:4px;padding-top:5px;gap:6px}.v6-editor .fl-utilities{gap:9px}.v6-editor .fl-utilities .fl-link{font-size:11px}.v6-editor .fl-primary .quiet,.v6-editor .fl-primary .gold{min-height:37px;padding:3px 9px;font-size:12px}.v6-editor .fl-status{padding-bottom:max(0px,env(safe-area-inset-bottom));font-size:10px;line-height:1.3}
}
@media(max-width:355px){.v6-store,.v6-reveal,.v6-editor{width:calc(100% - 18px)}.v6-store .v3-themes{--bay:110px}.v6-store .v3-cover .v6-title-slip{font-size:13px}.v6-editor .fl-buildnote span{font-size:9px}.v6-header .loc{letter-spacing:0}.v6-store .v3-intro p{font-size:10px}}

.v6-store .v6-teach{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:7px 14px;border:1px solid #c0a36c;border-radius:3px;background:linear-gradient(110deg,#405540,#263e31);box-shadow:0 2px 6px #0a1c1699;color:#f4dfab;font:650 15px/1.15 var(--display);letter-spacing:.05em}
.v6-store .v6-teach::after{content:"→";font:16px/1 Georgia,serif}
@media(max-width:720px){.v6-store .v6-teach{min-height:40px;padding:6px 9px;gap:4px;font-size:12px}}

/* Give each scrollable grid track its printed caption and action as well as its portrait. */
.v6-editor .fl-liblist{
  --portrait-height:clamp(77px,12.3vh,135px);
  grid-auto-rows:minmax(calc(var(--portrait-height) + 80px),max-content);
  flex:1 1 0;
}
.v6-editor .fl-librow{height:auto;min-height:calc(var(--portrait-height) + 80px)}
.v6-editor .fl-inspect{flex:0 0 auto}
.v6-editor .fl-inspect .fl-picture,.v6-editor .fl-inspect .fl-seal{height:var(--portrait-height);flex-shrink:0}
.v6-editor .fl-libname{flex:0 0 auto}
.v6-editor .fl-libfoot{margin-top:auto;flex:0 0 auto}
@media(max-width:720px){
  .v6-editor .fl-liblist{--portrait-height:clamp(73px,11.7vh,103px);grid-auto-rows:minmax(calc(var(--portrait-height) + 90px),max-content)}
  .v6-editor .fl-librow{min-height:calc(var(--portrait-height) + 90px)}
  .v6-editor .fl-libfoot .fl-add,.v6-editor .fl-minus,.v6-editor .fl-utilities .fl-link,.v6-editor .fl-primary .quiet,.v6-editor .fl-primary .gold{min-height:44px}
  .v6-editor .fl-libfoot .fl-add,.v6-editor .fl-minus{min-width:44px}
  .v6-editor .fl-mobiletabs button,.v6-editor .fl-workgroup .fl-work{min-height:40px}
}

/* Battle surfaces use the same original character prints as the collection. */
.shell:has(.v6-arena){--ivory:#eae0c4;--bronze:#a99162;--ink:#28372c;--seal:#9c422e;background:#1b251e}
.shell:has(.v6-arena):before{background:linear-gradient(180deg,#111c19aa,transparent 10%,transparent 85%,#181c14a6),var(--boardV6,var(--mat)) center/cover no-repeat}
.shell:has(.v6-arena):after,.v6-battle-head:after{display:none}
.v6-battle-head{height:60px;padding:0 clamp(20px,3.5vw,64px);background:linear-gradient(180deg,#181f1aef,#1f2e25e3);border-bottom:1px solid #ad946263;box-shadow:0 3px 12px #121a1880}
.v6-battle-head .loc{color:#deceab}
.v6-battle-title{font:500 15px 'Songti SC','STSong',serif;letter-spacing:.24em;color:#d6c9aa}
.v6-battle-head .stageTitle{color:#d7ccae;font:13px 'Songti SC',serif;display:inline-flex;align-items:center;gap:4px}
.v6-battle-head .stageTitle b{font:600 22px/1 Georgia,serif;color:#f4d9a0}
.v6-arena{--rail:clamp(235px,23vw,325px);--edge:clamp(18px,3.5vw,66px);--hand:clamp(125px,19vh,186px);--deck-right:calc(var(--rail) + var(--edge) + 28px);position:relative;isolation:isolate;height:calc(100% - 60px);color:var(--ivory)}
.v6-arena .field{inset:clamp(15px,2.9vh,34px) var(--deck-right) var(--hand) var(--edge);border:1px solid #a68e5959;border-radius:10px;box-shadow:0 0 0 3px #31392d65,0 0 0 4px #b0985e49,0 6px 18px #121c1e85,inset 0 0 40px #14281e59;background:linear-gradient(90deg,#23382e64 0%,#42604b28 45%,#263e3563);isolation:isolate}
.v6-arena .field:before{left:5.5%;right:5.5%;height:1px;top:50%;background:linear-gradient(90deg,transparent,#c5b68088 22%,#cdbd83a1 50%,#c5b68088 78%,transparent)}
.v6-arena .field:after{width:18px;height:18px;top:50%;left:50%;background:repeating-linear-gradient(45deg,#b6a46d 0 1px,#435341 1px 3px);border:3px solid #495946;outline:1px solid #b09a65;box-shadow:0 0 0 3px #394b3b;transform:translate(-50%,-50%) rotate(45deg);opacity:.8}
.v6-arena .enemy-hero{top:10%}.v6-arena .own-hero{top:90%}
.v6-arena .enemy-row{top:31.8%}.v6-arena .own-row{top:67%}
.v6-arena .entity-row{gap:clamp(16px,2.5vw,48px)}
.v6-arena .hero{width:clamp(48px,7vh,76px);aspect-ratio:1.09;border-radius:9px 9px 4px 4px;border:2px solid #b19a69;padding:3px;background:linear-gradient(140deg,#ad9361,#3d3e2f 55%,#aa8c53);box-shadow:0 3px 0 #322e22,0 6px 9px #111d16c2}
.v6-arena .hero>i{background-position:50% 23%;border-radius:5px 5px 2px 2px}
.v6-arena .hero-info{right:calc(100% + 14px)}.v6-arena .hero-extra{left:calc(100% + 16px)}
.v6-arena .heroname{font-size:clamp(16px,2.4vh,23px);color:#f2e1ba;text-shadow:0 1px 3px #112519}
.v6-arena .herolabel{font-size:10px;letter-spacing:.13em;color:#d2c5a5}
.v6-arena .ability-token{background:radial-gradient(circle at 35% 30%,#68806a,#365344 70%,#283c30);border:1px solid #d3bb7b;box-shadow:inset 0 0 0 3px #60715a,0 3px 0 #202a20,0 4px 7px #17231ba1}
.v6-arena .counter i,.v6-hand-stack i{background:var(--backV6,linear-gradient(135deg,#6d4c31,#2e3f30)) center/cover;border:1px solid #b39a69;border-radius:2px}
.v6-arena .counter{color:#ded6b7;font-size:11px}
.v6-arena .piece{width:clamp(68px,11vh,118px);aspect-ratio:.78;border:1.5px solid #cfb37c;border-radius:9px 9px 5px 5px;padding:4px 4px 20%;background:linear-gradient(135deg,#d5b779,#99784a 18%,#685238 60%,#9c8358 88%,#e1c287);box-shadow:inset 0 0 0 1px #423728,0 3px 0 #56432f,0 5px 0 #30291f,0 9px 13px #0c1815ad}
.v6-arena .piece:before{content:"";position:absolute;left:4px;right:4px;bottom:3px;height:22%;background:linear-gradient(90deg,#c7b891,#e5dab8 25%,#e1d4af 70%,#bdb08b);border:1px solid #89774e;border-radius:1px 1px 2px 2px}
.v6-arena .piece .p-art{display:block;height:100%;border-radius:5px 5px 0 0;background:var(--art) 50% 22%/cover no-repeat;border:1px solid #594f34;box-shadow:inset 0 0 7px #41341f36}
.v6-arena .unitname{position:absolute;pointer-events:none;z-index:2;left:12%;right:12%;bottom:5%;font:700 clamp(13px,1.75vh,17px)/1.2 'Songti SC','STSong',serif;margin:0;white-space:nowrap;color:#332c22;text-shadow:0 1px #efdfbb}
.v6-arena .piece .attack,.v6-arena .piece .hp,.v6-arena .hero .hp,.v6-arena .hand-card .attack,.v6-arena .hand-card .hp{display:grid;place-items:center;border:1px solid #d9bd85;color:#ffefd2;font:700 clamp(15px,2.3vh,22px)/1 Georgia,serif;width:clamp(22px,2.9vh,29px);height:clamp(22px,2.9vh,29px);bottom:16.5%;box-shadow:inset 0 0 0 2px #ffffff13,0 2px 3px #1e1e19bd;text-shadow:0 1px 2px #231e19}
.v6-arena .attack{left:-7px;background:linear-gradient(145deg,#aa8750,#68502f);border-radius:50% 50% 4px 4px}
.v6-arena .hp{right:-7px;background:linear-gradient(145deg,#934f3e,#6c392f);border-radius:5px 5px 48% 48%}
.v6-arena .hero .hp{bottom:-5px;right:-6px}
.v6-arena .is-wounded .hp{color:#fff0df;background:linear-gradient(145deg,#c46544,#983f34);border-color:#ffd5a2}
.v6-arena .is-buffed .attack{color:#fbf2b4;border-color:#fae09e}
.v6-arena .is-ready{box-shadow:inset 0 0 0 1px #403a2e,0 3px #786448,0 4px #3f3927,0 6px 0 #738a66,0 9px 12px #17241bbb}
.v6-arena .selected .piece{outline:3px solid #f1c674;outline-offset:3px;transform:translateY(-3px)}
.v6-arena .targetable{outline:2px dashed #f8df8c;outline-offset:4px}
.v6-arena .piece.spent{filter:saturate(.61)}
.v6-arena .piece.spent:after{content:"休整";position:absolute;top:4px;left:4px;bottom:auto;right:auto;background:#343d35;color:#e1d6b9;font:10px/1.6 'Songti SC',serif;border:1px solid #a39975;border-radius:2px;padding:0 3px}
.v6-arena .piece.guard:after{content:"护";position:absolute;top:3px;left:auto;right:2px;bottom:auto;width:18px;height:21px;padding:0;background:linear-gradient(#597465,#294239);color:#f5e8bb;font:bold 13px/18px 'Songti SC',serif;border:1px solid #dfc492;border-radius:2px 2px 7px 7px}
.ls-foot{display:contents}
.v6-rail{position:absolute;right:var(--edge);top:clamp(15px,2.9vh,34px);bottom:clamp(14px,2.5vh,32px);width:var(--rail);color:var(--ink);border:1px solid #b49661;outline:1px solid #272b21;outline-offset:2px;display:flex;flex-direction:column;overflow:auto;background:repeating-linear-gradient(106deg,#af99720d 0 1px,transparent 1px 5px),linear-gradient(103deg,#cdba91,#e5d8b5 5%,#e4d7b5 97%,#c8b58a);box-shadow:3px 7px 14px #0c170fc2,inset 0 0 14px #957b565c;border-radius:3px}
.v6-preview{flex:1;min-height:0;display:flex;flex-direction:column}
.v6-preview-head,.v6-preview-title,.v6-baseline{display:flex;justify-content:space-between;align-items:center}
.v6-preview-head{padding:clamp(10px,1.5vh,17px) 7%;font:600 14px 'Songti SC',serif;letter-spacing:.12em;color:#4f513e;border-bottom:1px solid #95815a54}
.v6-preview-head small{font:11px 'Songti SC',serif;letter-spacing:.09em;color:#635c45}
.v6-preview-image{min-height:80px;max-height:29vh;flex:1;position:relative;margin:5.5% 7% 0;background:var(--art) 50% 22%/cover;border:1px solid #796849;box-shadow:0 0 0 3px #d2bf96,0 0 0 4px #a69770}
.v6-preview-body{padding:clamp(9px,1.7vh,20px) 7% 9px}
.v6-preview-title h2{font:700 clamp(23px,3.6vh,38px)/1.2 'Songti SC','STSong',serif;letter-spacing:.06em;margin:0;color:#2e392e}
.v6-preview-title span{font:600 13px 'Songti SC',serif;color:#435a47}
.v6-printed{margin:8px 0;color:#343a2f;font:15px/1.65 'Songti SC','STSong',serif}
.v6-printed b{display:block;color:#9b472f;font-size:16px;letter-spacing:.08em}
.v6-baseline{font-size:11px;color:#63634c;justify-content:flex-start}
.v6-baseline b{font:600 14px Georgia,serif;color:#394533}
.v6-arena .ls-controls{position:relative;flex:none;border-top:1px solid #ad9a72;margin:0 7%;padding:clamp(10px,1.7vh,20px) 0;color:#303b2f;display:grid;gap:8px}
.ls-controls strong{font:700 17px/1.3 'Songti SC',serif;color:#334535}
.ls-controls p,.ls-sheet p{margin:4px 0 0;font:13px/1.6 -apple-system,'PingFang SC',sans-serif;color:#515743}
.ls-controls p b{font-family:'Songti SC',serif;color:#93432e}
.v6-arena .ls-controls .quiet,.v6-arena .ls-controls .gold,.v6-arena .ls-sheet-actions button{border:1px solid #77613e;border-radius:3px;min-height:42px;background:#394e3e;color:#f4e6c7;box-shadow:inset 0 0 0 2px #ffffff13,0 2px 0 #243629;font:600 14px 'Songti SC',serif;white-space:normal;padding:5px 10px}
.v6-arena [data-act="les-end"],.v6-arena .ls-sheet-actions .gold{background:linear-gradient(120deg,#aa5841,#884332)!important;border-color:#7c3c2f!important}
.ls-place,.ls-sheet-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.v6-arena .ls-place .quiet{padding:4px 7px;min-height:38px}
.ls-handrow{position:absolute;left:var(--edge);right:var(--deck-right);bottom:13px;height:calc(var(--hand) - 27px);display:flex;justify-content:center;align-items:center;gap:14px;background:linear-gradient(0deg,#342d2393,#23332958);border:1px solid #a58c5b59;border-radius:3px;box-shadow:inset 0 1px #debf791c}
.ls-cards{display:flex;justify-content:center;align-items:center;gap:10px}
.v6-arena .hand-card{flex:none;width:clamp(63px,8.7vh,94px);height:clamp(89px,14vh,147px);min-width:0;margin:0;transform:rotate(-3deg);transform-origin:center 100%;border-radius:6px;border:2px solid #b19462;background:linear-gradient(90deg,#c4ae83,#e9dcb9 30%,#d8c79f 80%,#b9a57b);box-shadow:0 3px #594330,0 6px 7px #1018119f}
.v6-arena .hand-card:nth-child(2){transform:none}.v6-arena .hand-card:nth-child(3){transform:rotate(3deg)}
.v6-arena .hand-card .c-art{inset:3px 3px 24%;background:var(--art) 50% 22%/cover;border-radius:3px 3px 0 0}
.v6-arena .hand-card .cardname{font:700 clamp(12px,1.8vh,17px)/1.2 'Songti SC',serif;bottom:4%;color:#302f23}
.v6-arena .hand-card .attack,.v6-arena .hand-card .hp{font-size:14px;width:19px;height:19px;bottom:19%;left:-3px}
.v6-arena .hand-card .hp{left:auto;right:-3px}
.v6-arena .hand-card .cost{left:-5px;top:-4px;background:linear-gradient(135deg,#69816c,#304f40);border:1px solid #d9c187;width:23px;height:25px;border-radius:4px 4px 40% 40%;font-size:16px}
.v6-arena .unafford{filter:saturate(.52)}
.ls-command{position:absolute;left:5%;display:grid;justify-items:center;gap:3px;color:#e6d8b0}
.ls-command small{font:12px 'Songti SC',serif;letter-spacing:.06em}
.v6-arena .resources{font:600 clamp(19px,3.25vh,32px)/1 Georgia,serif;color:#f1dbad;display:flex;align-items:baseline;gap:6px}
.v6-arena .resources i{font:normal 17px Georgia,serif;color:#bbad86}
.v6-gems{display:flex;gap:3px}
.v6-gems i{width:5px;height:5px;transform:rotate(45deg);border:1px solid #9d9973;background:#34493b}
.v6-gems i.on{background:#b6c9a2;border-color:#d9c799}
.v6-hand-stack{border:0;background:transparent;color:#ebddbc;display:flex;align-items:center;gap:12px;min-height:48px}
.v6-hand-stack i{width:35px;height:46px;transform:rotate(-6deg);box-shadow:3px -1px #63523c,4px -2px #b19668,7px -3px #4c4030,8px -4px #a88b60}
.v6-hand-stack span{font:16px 'Songti SC',serif}.v6-hand-stack b{font:20px Georgia,serif}
.v6-arena .ls-sheet{position:absolute;z-index:9;left:calc((100% - var(--deck-right) + var(--edge))/2);bottom:14px;transform:translateX(-50%);width:min(470px,82%);max-height:70%;overflow-y:auto;padding:15px 20px 16px;background:linear-gradient(105deg,#e0d1ad,#ecdfbe 53%,#decea6);color:#333c30;border:1px solid #b29563;outline:2px solid #453d2c;border-radius:4px;box-shadow:0 7px 24px #142119b8}
.ls-sheet h2{font:700 21px/1.3 'Songti SC',serif;margin:0;color:#354332}
.ls-sheet-actions{justify-content:center;margin-top:10px}
.ls-targets,.ls-heals,.ls-handlist{display:grid;gap:5px;margin-top:8px}
.ls-targets{grid-template-columns:repeat(4,minmax(0,1fr))}
.ls-heals,.ls-handlist{grid-template-columns:repeat(2,minmax(0,1fr))}
.ls-targets button,.ls-heals button,.ls-handlist button{position:relative;overflow:hidden;min-height:48px;border:1px solid #8a805b;box-shadow:0 1px #9d916d;background:#e4d6b2;color:#343e2e;border-radius:3px;text-align:center;padding:3px;font:600 15px 'Songti SC',serif}
.ls-targets button{display:grid;align-content:end;background:#364b3d;color:#f1e4c2;min-height:61px}
.ls-targets .ls-mini{position:absolute;inset:0;background:linear-gradient(180deg,#20302622,#23392cf2 78%),var(--art) 50% 24%/cover}
.ls-targets b,.ls-targets small,.ls-targets em{position:relative}
.ls-targets small,.ls-targets em,.ls-heals small,.ls-handlist small{display:block;font:11px/1.35 -apple-system,'PingFang SC',sans-serif}
.ls-targets em{font-size:9px;color:#e3dac4}
.ls-targets button.locked{filter:saturate(.1);opacity:.69}
.ls-heals button.on{outline:2px solid #597359;outline-offset:-3px;background:#bfd0a9}
.ls-heals button:disabled{opacity:.6}
.ls-handlist button{display:flex;align-items:center;gap:8px;padding:3px;text-align:left}
.ls-handlist .v6-list-art{width:36px;align-self:stretch;border:1px solid #a28a60;background:var(--art) center 22%/cover}
.ls-handlist small{margin-top:3px}
.ls-trade{display:flex;justify-content:space-around;align-items:center;padding:10px 0}
.ls-trade div{display:grid;justify-items:center;gap:3px}.ls-trade em{font-style:normal;color:#965038}
.v6-arena.ls-dense{--hand:clamp(88px,13vh,123px)}
.v6-arena.ls-dense .entity-row{gap:clamp(8px,1vw,17px)}
.v6-arena.ls-dense .piece{width:clamp(45px,min(6.3vw,9.6vh),95px)}
.v6-arena.ls-dense .unitname{font-size:clamp(10px,1.4vh,14px)}
.v6-arena button:focus-visible{outline:3px solid #efc679;outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 .v6-arena .hand-card:hover,.v6-arena .hand-card:focus-visible{transform:translateY(-6px);filter:none;outline:2px solid #d6ba79;outline-offset:2px}
 .v6-arena .piece.is-ready:hover{transform:translateY(-2px)}
}
@media(min-width:721px) and (max-width:1010px){
 .v6-arena{--rail:210px;--edge:15px;--deck-right:calc(var(--rail) + 29px)}
 .v6-preview-image{max-height:25vh}
 .v6-arena.ls-dense .entity-row{gap:6px}
 .v6-arena.ls-dense .piece{width:clamp(40px,5.5vw,64px)}
 .v6-arena.ls-dense .piece .attack,.v6-arena.ls-dense .piece .hp{width:19px;height:20px;font-size:14px;left:-2px}.v6-arena.ls-dense .piece .hp{left:auto;right:-2px}
}
@media(max-width:720px){
 .shell:has(.v6-arena){border:0;min-height:540px}
 .shell:has(.v6-arena):before{background-position:center,center;background-size:cover,auto 100%}
 .v6-battle-head{height:48px;padding:0 12px;gap:4px}
 .v6-battle-head .brand{width:70px;height:23px}
 .v6-battle-head .hdr-left,.v6-battle-head .hdr-right{gap:6px}
 .v6-battle-head .loc{font-size:10px;padding-left:6px;white-space:nowrap}
 .v6-battle-head .stageTitle{font-size:11px;white-space:nowrap}.v6-battle-head .stageTitle b{font-size:18px}
 .v6-battle-head .menuBtn{width:40px;min-width:44px;height:44px}
 .v6-battle-title{font-size:12px;letter-spacing:.055em;white-space:nowrap}
 .v6-arena{height:calc(100% - 48px);--edge:11px;--rail:0px;--deck-right:11px;--foot:clamp(156px,22vh,202px)}
 .v6-arena .field{inset:11px var(--edge) var(--foot);border-radius:6px}
 .v6-arena .field:before{left:5%;right:5%}
 .v6-arena .field:after{width:11px;height:11px;border-width:2px}
 .v6-arena .enemy-hero{top:10.5%}.v6-arena .own-hero{top:89.5%}
 .v6-arena .hero{width:clamp(39px,6.4vh,63px);padding:2px;border-radius:6px 6px 3px 3px}
 .v6-arena .hero-info{right:calc(100% + 10px);min-width:54px}
 .v6-arena .hero-extra{left:calc(100% + 13px);min-width:52px}
 .v6-arena .heroname{font-size:16px}.v6-arena .herolabel{font-size:9px;margin-top:2px}
 .v6-arena .ability-token{height:27px;width:27px;font-size:16px}
 .v6-arena .hero-ability{font-size:9px;justify-content:center}
 .v6-arena .piece{width:clamp(60px,9.7vh,91px);padding:3px 3px 20%;border-radius:7px 7px 4px 4px}
 .v6-arena .unitname{font-size:clamp(12px,1.7vh,16px);bottom:5%}
 .v6-arena .piece .attack,.v6-arena .piece .hp{font-size:16px;width:21px;height:22px;bottom:16%}
 .v6-arena .attack{left:-3px}.v6-arena .hp{right:-3px}
 .v6-arena .hero .hp{width:20px;height:21px;font-size:15px}
 .v6-arena .entity-row{gap:clamp(13px,5vw,23px)}
 .v6-rail{position:static;display:contents}
 .v6-preview{display:none}
 .v6-arena .ls-foot{position:absolute;bottom:0;left:0;width:100%;height:calc(var(--foot) - 8px);display:flex;flex-direction:column;gap:4px;padding:3px var(--edge) max(7px,env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,#1f2e25b8 21%,#20291eed)}
 .v6-arena .ls-controls{flex:none;min-height:46px;width:100%;margin:0;display:flex;align-items:center;justify-content:space-between;gap:7px;background:#26372de6;border:1px solid #9e8b605e;border-left:3px solid #a08751;border-radius:2px;padding:6px 8px}
 .v6-arena .ls-controls strong{font-size:15px;color:#eddbad}
 .v6-arena .ls-controls p{font:11px/1.45 -apple-system,'PingFang SC',sans-serif;color:#d3d3ba;margin:2px 0 0}
 .v6-arena .ls-controls p b{color:#e9bb8e}
 .v6-arena .ls-controls>button{flex:none;min-height:44px;padding:3px 8px;font-size:12px}
 .v6-arena .ls-handrow{flex:1;position:relative;inset:auto;width:100%;height:auto;min-height:0;border:0;background:transparent;box-shadow:none;gap:5px}
 .v6-arena .ls-command{left:3%;gap:3px}
 .ls-command small{font-size:10px}.v6-arena .resources{font-size:20px;gap:4px}
 .v6-arena .resources i{font-size:12px}.v6-gems{gap:2px}.v6-gems i{width:4px;height:4px}
 .ls-cards{gap:5px;margin-left:33px}
 .v6-arena .hand-card{width:clamp(46px,13vw,68px);height:clamp(68px,10.8vh,99px);border-radius:4px}
 .v6-arena .hand-card .attack,.v6-arena .hand-card .hp{width:14px;height:15px;font-size:11px;bottom:20%}
 .v6-arena .hand-card .cost{width:17px;height:19px;font-size:13px;left:-3px;top:-2px}
 .v6-arena .hand-card .cardname{font-size:11px;bottom:5%}
 .v6-arena:has(.ls-place){--foot:clamp(120px,17vh,154px)}
 .v6-arena:has(.ls-place) .ls-handrow{display:none}
 .v6-arena .ls-controls:has(.ls-place){position:relative;z-index:2;align-items:flex-start;justify-content:center;flex-direction:column;min-height:100%;gap:5px;padding:8px}
 .ls-place{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}
 .v6-arena .ls-place .quiet{min-height:44px;padding:4px 2px;font-size:12px}
 .v6-arena .ls-sheet{left:50%;width:calc(100% - 16px);max-height:59%;padding:10px 10px max(8px,env(safe-area-inset-bottom));bottom:5px}
 .ls-sheet h2{font-size:18px}
 .ls-sheet p{font-size:12px}
 .ls-sheet-actions{margin-top:6px}
 .v6-arena .ls-sheet-actions button{min-height:44px}
 .ls-targets,.ls-heals,.ls-handlist{gap:4px}
 .ls-targets button{min-height:60px;font-size:14px}
 .ls-heals button,.ls-handlist button{min-height:44px;font-size:14px}
 .ls-handlist .v6-list-art{width:29px}
 .v6-arena.ls-dense{--foot:clamp(105px,15vh,126px);--edge:5px;--deck-right:5px}
 .v6-arena.ls-dense .field{left:4px;right:4px}
 .v6-arena.ls-dense .entity-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;justify-items:center;padding:0 2px}
 .v6-arena.ls-dense .piece{width:clamp(35px,calc((100vw - 42px)/7),64px);padding:2px 2px 21%;border-radius:4px 4px 2px 2px}
 .v6-arena.ls-dense .piece:before{left:2px;right:2px;bottom:1px}
 .v6-arena.ls-dense .unitname{display:block;font-size:clamp(8px,2.2vw,11px);bottom:4%;left:0;right:0}
 .v6-arena.ls-dense .piece .attack,.v6-arena.ls-dense .piece .hp{font-size:12px;width:15px;height:16px;bottom:17%}
 .v6-arena.ls-dense .piece.guard:after{width:13px;height:15px;font-size:10px;line-height:13px;top:1px;right:0}
 .v6-arena.ls-dense .piece .p-art{border-radius:2px 2px 0 0}
 .v6-arena.ls-dense .targetable,.v6-arena.ls-dense .selected .piece{outline-offset:1px}
 .v6-arena.ls-dense.ls-open .ls-foot{visibility:hidden}
 .v6-arena.ls-dense.ls-open .field{bottom:clamp(230px,33vh,284px)}
 .v6-hand-stack i{width:22px;height:30px}.v6-hand-stack span{font-size:14px}
}
@media(max-width:360px){
 .v6-battle-head .loc{display:none}
 .v6-arena .heroname{font-size:15px}
 .v6-arena .ls-controls p{font-size:10.5px}
 .v6-arena.ls-dense .unitname{font-size:8px}
}
@media(max-height:660px) and (min-width:721px){
 .v6-preview-image{max-height:18vh;min-height:55px}
 .v6-preview-head,.v6-preview-body{padding-top:7px;padding-bottom:4px}
 .v6-printed{font-size:13px;margin:4px 0}.v6-printed b{font-size:14px}
 .v6-arena .ls-controls{gap:5px;padding-block:7px}
 .v6-arena .ls-controls p{font-size:11px}
}
@media(max-height:670px) and (max-width:720px){
 .v6-battle-head{height:44px}.v6-arena{height:calc(100% - 44px);--foot:139px}
 .v6-arena .field{top:7px}.v6-arena .piece{width:clamp(47px,8.9vh,61px)}
 .v6-arena .ls-foot{gap:2px;padding-top:1px}
 .v6-arena .hero{width:37px}.v6-arena .hero .hp{height:17px;width:17px;font-size:13px}
 .v6-arena .ls-controls{padding:3px 6px}
 .v6-arena.ls-dense{--foot:138px}
 .v6-arena.ls-dense.ls-open .field{bottom:237px}
 .v6-arena.ls-dense.ls-open .hero{width:32px}
 .v6-arena.ls-dense.ls-open .hero-ability .ability-token{width:21px;height:21px;font-size:12px}
}
@media(max-width:720px){
 .v6-arena:before,.v6-arena:after{content:"";position:absolute;pointer-events:none;z-index:-1}
 .v6-arena:before{top:0;left:0;width:90px;height:112px;background:var(--boardV6) left top/455px auto no-repeat;mask-image:radial-gradient(ellipse at top left,#000 33%,transparent 74%);opacity:.88}
 .v6-arena:after{right:0;bottom:0;width:94px;height:86px;background:var(--boardV6) right bottom/420px auto no-repeat;mask-image:radial-gradient(ellipse at bottom right,#000 28%,transparent 75%);opacity:.84}
}
.v6-deploy-choice>i,.v6-deploy-choice small{display:none}
.v6-arena .counter{white-space:nowrap}
.v6-context{margin-top:clamp(9px,1.8vh,17px);border-top:1px solid #bba984;padding-top:8px}
.v6-context>b{font:600 12px 'Songti SC',serif;color:#6c5e40}
.v6-context p{font:13px/1.6 -apple-system,'PingFang SC',sans-serif;color:#505644;margin:4px 0 0}
.ls-targets button:not(.locked){border:2px solid #967744}
.ls-targets button.locked{opacity:1;filter:saturate(.2);background:#535c50;border:1px solid #9e9c86;color:#f2efe0}
.ls-targets button.locked .ls-mini{background:linear-gradient(180deg,#51584d55,#444d41ef 58%,#454c41),var(--art) 50% 24%/cover}
@media(min-width:721px){
 .v6-arena:not(.ls-dense) .piece{width:clamp(75px,13.2vh,140px)}
 .v6-arena:not(.ls-dense) .unitname{font-size:clamp(14px,1.9vh,19px)}
 .v6-arena:not(.ls-dense) .piece .attack,.v6-arena:not(.ls-dense) .piece .hp{width:clamp(23px,3.3vh,34px);height:clamp(24px,3.4vh,35px);font-size:clamp(17px,2.6vh,25px)}
 .v6-arena .hand-card{width:clamp(69px,9.9vh,103px);height:clamp(95px,15.1vh,153px)}
 .v6-preview-image{max-height:31vh}
}
@media(max-width:720px){
 .v6-arena:has(.ls-place){--foot:clamp(167px,24vh,210px)}
 .v6-deploy-choice{display:grid;grid-template-columns:51px 1fr;gap:9px;align-items:center}
 .v6-deploy-choice>i{display:block;width:51px;height:64px;border:2px solid #af9769;border-radius:3px;background:var(--art) center 25%/cover;box-shadow:0 2px 2px #15231988}
 .v6-deploy-choice small{display:block;color:#d4c6a0;font:11px/1.35 -apple-system,'PingFang SC',sans-serif;margin:2px 0}
 .v6-arena .ls-controls:has(.ls-place){padding:8px;gap:7px}
 .v6-arena .ls-controls .v6-deploy-choice p{font-size:12px;line-height:1.4;color:#ede5ce}
}
@media(max-width:360px){
 .v6-deploy-choice{grid-template-columns:44px 1fr;gap:6px}
 .v6-deploy-choice>i{width:44px;height:57px}
 .v6-arena .ls-controls .v6-deploy-choice p{font-size:11px}
}
@media(max-height:660px) and (min-width:721px){
 .v6-context{margin-top:3px;padding-top:3px}
 .v6-context p{font-size:11px;line-height:1.35;margin-top:1px}
 .v6-preview-image{max-height:19vh}
}
@media(max-height:670px) and (max-width:720px){
 .v6-arena.ls-dense.ls-open .field{bottom:clamp(274px,44vh,294px)}
}

.shell:has(.v6-draw)::before{background:linear-gradient(180deg,#19251b80,transparent 29%,#17231e33 68%,#101710a6),var(--boardV6) center/100% 100%}
.shell:has(.v6-draw)::after{background:none}.v6-draw-head{height:60px;background:#19281ff2;border-bottom:1px solid #937c4d66}
.v6-draw{height:calc(100% - 60px);padding:clamp(25px,5vh,62px) 8vw clamp(28px,5vh,60px)}
.v6-draw .draw-copy h1{font:600 clamp(34px,4vw,66px)/1.2 var(--v6-serif);letter-spacing:.055em;color:#ffedc8;text-shadow:0 2px 4px #14231e}
.v6-draw .draw-count{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:14px;padding:6px 16px;border-block:1px solid #baa16b61;color:#e2d7b9}
.v6-draw .draw-count b{margin-left:3px;font:600 18px Georgia;color:#f5dfac}
.v6-draw .draw-count span{white-space:nowrap}.v6-draw .draw-count .draw-deck-icon{display:inline-flex;align-items:center;gap:4px}
.draw-deck-icon::before{content:"";width:16px;height:23px;border:1px solid #bfa16b;border-radius:2px;background:var(--backV6) center/cover;box-shadow:2px -2px #424d3e,3px -3px #b5a37e}
.v6-draw .draw-note{margin:8px auto 0;color:#f0e5cd;line-height:1.55}
.v6-draw .draw-grid{width:min(100%,1090px);gap:clamp(14px,2vw,33px);padding:clamp(24px,4vh,46px) 0 12px}
.v6-draw .draw-card,.v6-draw .draw-grid:has(.draw-card:nth-child(7)) .draw-card{flex:0 1 clamp(136px,12.1vw,178px);max-width:none;height:auto;aspect-ratio:.69;isolation:isolate;border:2px solid #bca16b;border-radius:7px;padding:0;overflow:visible;color:#33291c;background:linear-gradient(125deg,#ceb17b,#685037 26%,#9a8052 72%,#d6bd85);box-shadow:0 0 0 1px #55452d,inset 0 0 0 2px #d0b583,0 4px 0 #503c26,1px 8px 16px #1019109e;transition:transform 120ms}
.v6-draw .draw-grid:has(.draw-card:nth-child(7)) .draw-card{flex-basis:clamp(85px,7vw,120px)}
.v6-draw .draw-card:hover,.v6-draw .draw-card:focus-visible{transform:translateY(-3px)}
.v6-draw .draw-portrait,.v6-draw .draw-symbol{position:absolute;inset:4px 4px 29%;height:auto;border-radius:3px 3px 0 0;background-position:center 22%;background-size:cover}
.v6-draw .draw-symbol{background:linear-gradient(#142f2699,#214c39b3),var(--backV6) center/cover}
.v6-draw .draw-card .identity{position:absolute;inset:69% 4px 4px;display:grid;align-content:center;background:linear-gradient(106deg,#cab494,#edddbc 45%,#dcc79d);box-shadow:inset 0 0 0 1px #b69b6a}
.v6-draw .draw-card strong{font:700 clamp(16px,1.65vw,24px)/1.16 var(--v6-serif)}
.v6-draw .draw-card small{margin-top:2px;font-size:clamp(10px,.85vw,13px);color:#61523f;line-height:1.2}
.v6-draw .draw-cost{top:-6px;left:-5px;border:1px solid #dbbe85;border-radius:4px 4px 11px 11px;background:linear-gradient(120deg,#557c64,#22463e);box-shadow:0 2px 3px #32291999}
.v6-draw .badge-atk,.v6-draw .badge-hp{position:absolute;display:grid;place-items:center;bottom:25%;width:clamp(20px,2vw,28px);height:clamp(20px,2vw,28px);font:700 clamp(14px,1.45vw,21px)/1 Georgia;color:#fff0d2;border:1px solid #d8ba80;box-shadow:0 1px 2px #43321f}
.v6-draw .badge-atk{left:-3px;border-radius:7px 7px 3px 3px;background:linear-gradient(135deg,#a88045,#73512c)}
.v6-draw .badge-hp{right:-3px;border-radius:4px 4px 50% 50%;background:linear-gradient(135deg,#ad5944,#79392e)}
.v6-draw .draw-card em{z-index:2;top:8px;right:7px;padding:3px 5px;border:1px solid #edd5a1;background:#37513ff0;color:#fff1d4;font:600 12px var(--v6-serif)}
.v6-draw .draw-card.returned{outline:2px dashed #f0c388;outline-offset:4px}
.v6-draw .draw-card.returned .draw-portrait{filter:saturate(.55) brightness(.8)}.v6-draw .draw-card.returned em{background:var(--v6-vermilion)}
.v6-draw .draw-card.newdraw em{background:#81582b}.v6-draw .draw-reading{min-height:42px;text-shadow:0 1px #263224;text-align:center}
.v6-draw .draw-footer p{color:#ded4b8}.v6-draw .draw-controls .gold{background:linear-gradient(#f0d39c,#caab70);color:#392d1b}
@media(max-width:720px){.v6-draw-head{height:54px}.v6-draw{height:calc(100% - 54px);padding:19px 14px max(20px,env(safe-area-inset-bottom));background:linear-gradient(90deg,#233a2b20,#1e342a60 20% 80%,#233a2b20)}
.shell:has(.v6-draw)::before{background:linear-gradient(#19251b55,#1c312899),var(--boardV6) center/auto 106%}
.v6-draw .draw-copy h1{font-size:clamp(28px,7.7vw,39px)}.v6-draw .draw-copy .tiny{margin-bottom:6px}
.v6-draw .draw-grid,.v6-draw .draw-grid:has(.draw-card:nth-child(7)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,430px);padding:23px 2px 8px;gap:15px 9px}
.v6-draw .draw-grid:has(.draw-card:nth-child(4)):not(:has(.draw-card:nth-child(5))){grid-template-columns:repeat(2,minmax(0,126px));justify-content:center;max-width:300px}
.v6-draw .draw-card,.v6-draw .draw-grid:has(.draw-card:nth-child(7)) .draw-card{height:auto;aspect-ratio:.72}
.v6-draw .draw-grid:has(.draw-card:nth-child(7)) .draw-card{aspect-ratio:.83}.v6-draw .draw-card .identity{inset:67% 3px 3px}.v6-draw .draw-card small{font-size:10px}.v6-draw .draw-card strong{font-size:16px}.v6-draw .draw-card em{font-size:10px;top:5px;right:5px}
.v6-draw .draw-count{gap:9px;padding:4px 6px;margin-top:8px}.v6-draw .draw-count b{font-size:16px}
.v6-draw .draw-reading{min-height:25px}.v6-draw .draw-controls button{min-height:44px}.v6-draw .draw-footer p{max-width:246px;margin:9px auto 0}}
@media(max-width:360px){.v6-draw{padding-inline:9px}.v6-draw .draw-grid{gap:13px 7px}.v6-draw .draw-grid:has(.draw-card:nth-child(4)):not(:has(.draw-card:nth-child(5))){grid-template-columns:repeat(2,minmax(0,104px))}.v6-draw .draw-card strong{font-size:14px}}

.v6-editor .fl-buildfoot .rec-launch{display:inline-flex;align-items:center;justify-content:center;border:1px solid #a48c5a;border-radius:3px;color:#f5dfb6;background:linear-gradient(130deg,#3b5542,#293a2d);padding:4px 14px;font-weight:650;min-height:38px}
.v6-editor .fl-buildfoot .rec-undo{color:#efcf94}.rec-veil{z-index:18;background:rgba(8,19,16,.76)}
.modal.rec-modal{width:min(830px,100%);max-height:min(830px,93vh);max-height:min(830px,93dvh);display:flex;flex-direction:column;overflow:hidden;border:1px solid #b79a65;border-radius:7px;background:#1f332b;color:#e5ddc2;padding:0;box-shadow:inset 0 0 0 3px #48503b,0 17px 70px #09140fc2}
.rec-top,.rec-foot{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;gap:12px;background:#203229}
.rec-top{padding:15px 21px;border-bottom:1px solid #aa915957}.rec-modal .rec-top p{margin:0 0 3px;font-size:11px;color:#c7b88f}.rec-modal .rec-top h2{margin:0;color:#f8e8c3;font:600 clamp(24px,3vw,36px)/1.08 var(--v6-serif);letter-spacing:.04em}
.rec-modal .rec-dismiss{width:44px;min-width:44px;height:44px;margin:0;border:1px solid #aa946666;border-radius:50%;background:#2b4034;color:#dfcfaa;font:24px/1 Georgia,serif}
.rec-scroll{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);overflow:auto;overscroll-behavior:contain;min-height:0}
.rec-choices{padding:20px 17px;border-right:1px solid #a18d6354}
.rec-choices fieldset{border:0;padding:0;margin:0 0 17px;min-inline-size:0}
.rec-modal fieldset legend,.rec-modal .rec-result h4{font:650 15px/1.4 var(--v6-serif);color:#ead8ae;margin:0 0 7px;padding:0}
.rec-choices fieldset>div,.rec-locks{display:flex;gap:5px;flex-wrap:wrap}
.rec-modal .rec-pill{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:4px 9px;min-height:37px;border-radius:3px;border:1px solid #718065;background:#263c31;color:#ded5b9;line-height:1.2;font-size:13px}
.rec-modal .rec-pill[aria-pressed=true]{background:#e1c99c;color:#332b20;border-color:#eacd91;box-shadow:inset 0 0 0 1px #b8a070}
.rec-modal fieldset p,.rec-modal p.rec-dim,.rec-modal .rec-lock-list>p,.rec-modal .rec-pair p,.rec-modal .rec-foot p,.rec-modal .rec-diff p{font-size:12px;line-height:1.55;margin:5px 0 0;color:#c6c7b0}
.rec-modal .rec-lock-list{margin:8px 0 0}.rec-modal summary{cursor:pointer;line-height:1.55}.rec-modal .rec-lock-list summary{color:#e8d1a0;font-size:13px}
.rec-modal .rec-locks{padding-top:7px;gap:4px}.rec-modal .rec-locks .rec-pill{min-height:32px;font-size:11px;padding:3px 7px}
.rec-result{min-width:0;background:linear-gradient(105deg,#ecddbe,#dcccaa);padding:17px 21px;color:#363a2c}
.rec-result-title{display:flex;align-items:baseline;justify-content:space-between}.rec-modal .rec-result-title h3{margin:0;color:#303e31;font:650 23px/1.2 var(--v6-serif)}
.rec-result-title b{font:700 28px Georgia,serif;color:#704b2c}.rec-result-title small{font:14px Georgia,serif;color:#65553c}
.rec-modal p.rec-dim,.rec-modal .rec-pair p,.rec-modal .rec-diff p{color:#53513f}
.rec-curves{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:15px 0 18px}
.rec-curves div{min-width:0;position:relative;display:grid;gap:3px;padding:7px 6px 8px;background:#c7b78c55;border-top:1px solid #a9936977}
.rec-curves small{font-size:10px;color:#625940}.rec-curves b{font-size:14px;color:#2c4839}.rec-curves i{display:block;height:4px;width:calc(100% * var(--qty));background:#4a6550;min-width:0}
.rec-modal .rec-result h4{color:#43523d;margin:11px 0 6px}.rec-pair{display:grid;grid-template-columns:73px minmax(0,1fr);align-items:start;gap:10px;padding:8px 0;border-top:1px solid #a991603f}
.rec-pair strong{font:650 16px/1.3 var(--v6-serif);color:#443b29}.rec-modal .rec-pair p{margin:2px 0 0}
.rec-pair-art{display:flex;padding:0 2px}.rec-pair-art i{display:block;width:37px;height:45px;border:1px solid #ad8d56;border-radius:3px;background-position:center 20%;background-size:cover;box-shadow:1px 2px 2px #46392355}
.rec-pair-art i+i{margin:5px 0 0 -3px;transform:rotate(3deg)}
.rec-modal .rec-alert{margin:7px 0;padding:7px 8px;border-left:3px solid #9f5636;color:#743b27;background:#b48a5730;font-size:13px}
.rec-diff{border-block:1px solid #9c885e75;padding:8px 0;margin-top:7px}.rec-modal .rec-diff summary{font-weight:650;color:#4c513b;font-size:13px}.rec-diff summary span{font-size:11px;color:#68634b}
.rec-diff-block{padding:5px 1px}.rec-diff-block b{font-size:12px}.rec-modal .rec-diff p{margin:0}
.rec-foot{padding:11px 20px;border-top:1px solid #a28d574f}
.rec-modal .rec-foot p{margin:0;color:#d7d0b3}.rec-foot>div{display:flex;gap:7px;align-items:center;flex-shrink:0}.rec-modal .rec-foot button{margin:0;min-height:44px;padding:4px 13px}.rec-modal .rec-foot button:disabled{opacity:.55}
@media(max-width:720px){
  .v6-editor .fl-buildfoot .rec-launch{padding:3px 8px;min-height:44px}
  .v6-editor .fl-buildfoot:has(.rec-undo){flex-wrap:wrap}.v6-editor .fl-buildfoot:has(.rec-undo) .fl-primary{margin-left:auto}
  .rec-veil{padding:max(4px,env(safe-area-inset-top)) 4px 0;align-items:end}
  .modal.rec-modal{width:100%;height:min(820px,94vh);height:min(820px,94dvh);max-height:100%;border-bottom:0;border-radius:7px 7px 0 0}
  .rec-top{padding:9px 12px}.rec-modal .rec-top h2{font-size:25px}.rec-scroll{display:block;flex:1}.rec-choices{padding:9px 12px;border-right:0}.rec-choices fieldset{margin:0 0 7px}.rec-choices fieldset:last-child{margin:0}
  .rec-modal fieldset legend{font-size:14px;margin-bottom:3px}
  .rec-modal .rec-pill,.rec-modal .rec-locks .rec-pill{min-height:44px}
  .rec-choices fieldset>div{gap:4px}.rec-modal fieldset p{font-size:11px;margin:2px 0 0}
  .rec-result{padding:10px 12px 16px}.rec-result-title b{font-size:23px}.rec-curves{margin:7px 0}.rec-modal .rec-result h4{margin:8px 0 3px}.rec-pair{grid-template-columns:63px minmax(0,1fr);gap:7px;padding:6px 0}
  .rec-pair-art i{width:32px;height:40px}.rec-modal .rec-pair p{font-size:12px}
  .rec-foot{padding:7px 10px max(9px,env(safe-area-inset-bottom));gap:7px;align-items:center}
  .rec-modal .rec-foot p{font-size:11px;line-height:1.4}.rec-foot>div{gap:5px}.rec-modal .rec-foot button{font-size:12px;padding:3px 9px}
}
.rec-modal .rec-foot button{width:auto;white-space:nowrap;flex:none}
@media(max-width:720px){.rec-scroll{display:flex;flex-direction:column}.rec-choices,.rec-result{flex-shrink:0}.rec-result{flex-grow:1}}
.rec-leader-field{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;max-width:55%;color:#e2d7bb}
.rec-leader-field label{font-size:13px}.rec-leader-field select,.rec-lead-control select{min-height:40px;max-width:145px;padding:4px 8px;background:#283e32;color:#f4e5c3;border:1px solid #a38c5e;border-radius:3px;font-size:14px}
.rec-leader-skill{font-size:11px;color:#d0c5a3}.rec-leader-help{display:inline-block;margin-inline-start:8px;color:#ddc997;position:relative}.rec-leader-help summary{cursor:pointer}.rec-leader-help p{max-width:560px;color:#e2d7bf;margin:2px 0;padding:3px 5px}
.rec-chief-badge{font:600 9px/1.2 sans-serif;color:#efcf83}.rec-modal .rec-lead-control p b{color:#e9d1a0}.rec-modal .rec-library-caption{font-size:11px;color:#5e604b;margin:10px 0 0}.rec-modal .rec-curves{margin-top:3px}
@media(max-width:720px){.rec-leader-field{max-width:50%;gap:3px}.rec-leader-field select,.rec-lead-control select{min-height:44px;max-width:126px}.rec-leader-skill{display:none}.rec-leader-help{font-size:10px}.rec-leader-help[open]{display:block}.rec-lead-control legend{padding-top:3px}}

.ws-dialog{--paper:#efe3c8;--ink:#302c23;--jade:#284d41;width:min(765px,calc(100vw - 24px));max-height:min(91dvh,810px);padding:0;border:1px solid #ab9161;border-radius:7px;color:#e7ddc1;background:linear-gradient(130deg,#233d33,#172a22 82%);box-shadow:0 24px 90px #081b10bf;overflow:auto;font:14px/1.5 -apple-system,'PingFang SC',sans-serif}
.ws-dialog::backdrop{background:#11211ce0}.ws-dialog :is(button,select):focus-visible{outline:3px solid #fade93;outline-offset:2px}
.ws-top,.ws-mode,.ws-layout{margin:0 22px}.ws-top{display:flex;align-items:center;justify-content:space-between;padding:16px 0 9px;border-bottom:1px solid #aa92624d}.ws-top small{color:#d0b47a;font:12px var(--v6-serif)}.ws-top h2{font:700 31px/1.2 var(--v6-serif);color:#f6e5bf}.ws-close,.ws-button,.ws-tier,.ws-mode button,.ws-tiers button{border:1px solid #938862;background:#2b4134;color:#eee2c2;border-radius:3px;cursor:pointer}.ws-close{width:42px;height:42px;font-size:25px}
.ws-mode{display:flex;gap:6px;padding:12px 0}.ws-mode button,.ws-tiers button{padding:6px 10px;min-height:34px}.ws-mode button[aria-pressed=true],.ws-tiers button[aria-pressed=true]{background:#e7ce98;color:#332d21}
.ws-layout{display:grid;grid-template-columns:minmax(210px,.85fr) 1.15fr;gap:23px;margin-bottom:20px}.ws-display{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;background:linear-gradient(135deg,#354e3a,#1a3128);border:1px solid #a48c614d;padding:12px 7px 14px;border-radius:4px}.ws-display label,.ws-recipe label:not(.ws-check){display:grid;gap:4px;font-size:12px}.ws-display label{width:calc(100% - 10px)}.ws-dialog select{max-width:100%;min-width:0;width:100%;font:14px -apple-system,'PingFang SC',sans-serif;background:#263c30;border:1px solid #90825e;border-radius:3px;color:#efe5cd;padding:7px}.ws-card{position:relative;width:min(190px,94%);aspect-ratio:.695;isolation:isolate;border:3px double #d4ba84;border-radius:7px;background:#d4bc8e;box-shadow:0 6px 0 #54462e,0 12px 19px #10190da8;margin:7px 0}.ws-art{position:absolute;inset:4px 4px 25%;border:1px solid #7c6947;background:var(--portrait) center 20%/cover}.ws-plaque{position:absolute;inset:74% 4px 3px;display:grid;place-content:center;text-align:center;line-height:1.1;color:#3a2f20;background:linear-gradient(130deg,#d1ba8d,#ead9b6 58%,#d9be91);box-shadow:inset 0 0 0 1px #aa8d59}.ws-plaque small{font-size:9px;letter-spacing:.11em}.ws-plaque strong{font:700 26px/1.15 var(--v6-serif)}.ws-plaque span{font-size:11px}
.ws-cost,.ws-atk,.ws-hp{position:absolute;z-index:4;display:grid;place-items:center;width:28px;height:29px;font:700 19px Georgia;color:#ffefcd;border:1px solid #e5c48e;box-shadow:0 2px 3px #43332280}.ws-cost{left:-5px;top:-5px;background:#355a49;border-radius:4px 4px 12px 12px}.ws-atk{left:-5px;bottom:19%;background:#806538;border-radius:6px 6px 2px 2px}.ws-hp{right:-5px;bottom:19%;background:#943e31;border-radius:4px 4px 50% 50%}.ws-card[data-skin-tier="1"]{border-color:#e1bd69}.ws-card[data-skin-tier="2"]{outline:2px double #d9b76e;outline-offset:1px}.ws-card[data-skin-tier="2"] .ws-frame{position:absolute;inset:4px;border:2px solid #cbae687d;box-shadow:inset 0 0 0 1px #775a2a;pointer-events:none}
.ws-tiers{display:flex;justify-content:center;gap:3px}.ws-tiers button{padding-inline:6px;font-size:11px}
.ws-recipe{background:linear-gradient(110deg,#efe1c3,#dfcba6);color:#392f23;border:1px solid #aa9367;border-radius:4px;padding:15px}.ws-recipe h3{font:700 22px var(--v6-serif)}.ws-recipe p{margin:5px 0 9px}.ws-formula{border-block:1px solid #aa8f61a6;padding:8px 0;color:#415240;font-weight:650}.ws-recipe fieldset{padding:6px 9px;margin:9px 0;color:#423c2b;border:1px solid #ae9769;max-height:130px;overflow:auto}.ws-recipe legend{font-size:12px}.ws-recipe .ws-check{display:flex;align-items:center;gap:6px;min-height:32px;font-size:12px}.ws-recipe .ws-check input{accent-color:#36523d}.ws-recipe .ws-help{font-size:12px;color:#624e36}.ws-primary,.ws-button{min-height:42px;padding:5px 10px;margin:4px 4px 2px 0}.ws-primary{border:1px solid #674a33;color:#fff2d3;background:linear-gradient(130deg,#a54a35,#7a352a);border-radius:3px}.ws-dialog button:disabled{cursor:default;opacity:.55}.ws-confirm ul{padding-left:20px}.ws-recipe .ws-feedback{color:#2c563f;font-weight:650;min-height:1.4em;margin-bottom:0}
@media(max-width:680px){.ws-dialog{width:calc(100vw - 12px);max-height:94dvh}.ws-top,.ws-mode,.ws-layout{margin-inline:10px}.ws-top{padding:9px 0 5px}.ws-top h2{font-size:24px}.ws-mode{padding:7px 0}.ws-layout{grid-template-columns:1fr;gap:7px;margin-bottom:10px}.ws-display{display:grid;grid-template-columns:minmax(100px,36%) minmax(0,1fr);grid-template-rows:1fr 1fr;justify-items:stretch;gap:2px 10px;padding:10px}.ws-card{grid-row:1 / 3;grid-column:1;justify-self:center;width:min(104px,93%);margin:1px 0 5px}.ws-display label{grid-column:2;grid-row:1;align-self:center;width:100%}.ws-tiers{grid-column:2;grid-row:2;align-self:center;flex-wrap:wrap;justify-content:start}.ws-plaque strong{font-size:16px}.ws-plaque small{display:none}.ws-plaque span{font-size:10px}.ws-cost,.ws-atk,.ws-hp{width:20px;height:22px;font-size:15px}.ws-recipe{padding:9px 11px}.ws-recipe h3{font-size:19px}.ws-recipe fieldset{max-height:95px}.ws-recipe .ws-check{min-height:38px}.ws-close,.ws-dialog button,.ws-dialog select{min-height:44px}.ws-entry{min-height:44px}.ws-tiers button{padding-inline:5px}.ws-mode{padding-block:5px}.ws-recipe p{font-size:13px;margin:4px 0}.ws-formula{padding:4px 0}}

.draw-chief{display:inline-flex;margin:12px auto 2px;gap:11px;align-items:center;padding:5px 9px;border:1px solid #af975f78;background:#23392ded;border-radius:4px;color:#e9debf;text-align:left}.draw-chief i{width:31px;height:40px;border:1px solid #bd9c64;border-radius:3px;background-size:cover;background-position:center 20%}.draw-chief b,.draw-chief span{display:block}.draw-chief b{font:650 16px var(--v6-serif)}.draw-chief span{font-size:11px;color:#d3cbaf}.draw-chief .quiet{font-size:12px;min-height:39px;padding:4px 9px}
.shell:has(.cr-page)::before{background:linear-gradient(#172c24c9,#213b2dc4),var(--boardV6) center/cover}.cr-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,29%);gap:18px;width:min(1150px,94%);height:calc(100% - 60px);margin:auto;overflow:auto;padding:18px 4px 14px;font:14px/1.5 -apple-system,'PingFang SC',sans-serif;color:#ece2c5}.cr-heading,.cr-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.cr-heading{justify-content:space-between}.cr-heading h1{font:650 clamp(25px,3vw,43px) var(--v6-serif);color:#f0ddac;margin:3px 0 10px}.cr-heading small,.cr-row-label{font-size:12px;color:#dac691}.cr-heading b{font:700 20px Georgia;color:#f6deab}.cr-board{border:1px solid #a68a57;border-radius:6px;padding:12px clamp(7px,2vw,24px);background:linear-gradient(125deg,#284d3cca,#283c2ebf);box-shadow:inset 0 0 0 3px #6e72453d}.cr-row{display:flex;gap:clamp(5px,.9vw,12px);justify-content:center;align-items:center;flex-wrap:wrap;margin:4px 0 10px}.cr-divider{height:1px;background:#b3975780;margin:12px 12%}.cr-unit{width:clamp(62px,7.2vw,99px);min-height:100px;display:grid;padding:3px;border:1px solid #ad945e;border-radius:4px;text-align:center;background:linear-gradient(120deg,#eddab6,#c5b080);color:#302d21;box-shadow:0 3px 4px #172c22}.cr-face{display:grid;place-items:center;height:clamp(50px,7.7vh,78px);border-radius:2px;background:#355341 center 25%/cover;font:700 25px var(--v6-serif);color:#e8c785}.cr-unit>b{font:650 15px var(--v6-serif)}.cr-stats{display:flex;gap:6px;justify-content:center}.cr-stats em,.cr-unit small{font:10px/1.35 -apple-system,'PingFang SC',sans-serif}.cr-unit small{color:#715030}.cr-legal{outline:2px dashed #ebd090;outline-offset:2px}.cr-active{outline:3px solid #f3d087;outline-offset:2px}.cr-muted{opacity:.64}.cr-status{margin:10px 0 5px;min-height:23px;color:#e9d5a7}.cr-buttons button,.cr-side button{min-height:44px}.cr-paper{background:linear-gradient(115deg,#f2e2c0,#dcc89e);color:#3c392d;border:1px solid #9c8457;padding:16px;border-radius:4px}.cr-paper small{font-size:12px;color:#6f523a}.cr-paper p{margin:5px 0 9px}.cr-paper h2,.cr-paper h3{font-family:var(--v6-serif);color:#944631}.cr-sep{height:1px;background:#b3a07b;margin:12px 0}.cr-log{padding:12px 2px}.cr-log span,.cr-log p{display:block;color:#d4c9ad;font-size:12px;margin:4px 0}.cr-log strong{font-family:var(--v6-serif);color:#f1dfae}
@media(max-width:720px){.draw-chief{margin:6px 0;gap:6px}.draw-chief .quiet{min-height:44px}.cr-page{display:block;width:100%;padding:8px 10px 16px;height:calc(100% - 48px)}.cr-heading h1{font-size:23px;margin-bottom:5px}.cr-heading span{font-size:11px}.cr-board{padding:6px}.cr-row{gap:3px;margin:3px 0 5px}.cr-unit{width:calc((100% - 15px)/5);min-width:44px;min-height:78px;padding:2px}.cr-face{height:42px}.cr-unit b{font-size:12px}.cr-unit small,.cr-stats em{font-size:9px}.cr-divider{margin:5px 10%}.cr-row-label{font-size:10px}.cr-buttons button{font-size:13px;padding-inline:8px}.cr-side{margin-top:10px}.cr-paper{padding:10px}.cr-paper h2{font-size:19px}.cr-log{padding:6px 0}}
.detail-chiefs{background:#35513e;border:1px solid #a48d5e66;border-radius:3px;padding:7px 9px;margin:7px 0;text-align:left;color:#f4e5bf}.detail-chiefs b{font-size:13px}.fl-detail .detail-chiefs p,.fl-detail .detail-rules p{font-size:12px;margin:4px 0}.detail-rules{text-align:left;padding:4px;margin:0 0 6px}.detail-rules summary{cursor:pointer;color:#dbc498}

.pt-fx-layer{position:fixed;inset:0;z-index:80;overflow:hidden;pointer-events:none;contain:strict}
.pt-fx-layer canvas{display:block;width:100%;height:100%}
.pt-fx-cue{position:absolute;transform:translate(-50%,-50%);border:1px solid #cdb581;padding:.12em .4em;color:#ffefd0;background:#283b30;border-radius:2px;font:600 14px/1.35 "Songti SC","Noto Serif CJK SC",serif;white-space:nowrap}
.pt-reveal-skip{align-self:center;background:#24362d;border:1px solid #9d885e;color:#ead9b1;border-radius:3px;padding:6px 12px;font-size:12px;min-height:40px}
.pt-reveal-skip[hidden]{display:none}
.v3-reveal .pt-reveal-skip{margin-left:auto}
.pt-reveal-playing .v3-face,.pt-reveal-pending .v3-face{isolation:isolate;perspective:450px}
.pt-reveal-playing .v3-face::after,.pt-reveal-pending .v3-face::after{content:"";pointer-events:none;position:absolute;inset:0;z-index:1;background:var(--backV6) center 46%/cover;border:1px solid #ad9969;border-radius:2px;backface-visibility:hidden;transform-origin:10% 50%}
.pt-reveal-playing .v3-face::after{animation:pt-page-turn 360ms cubic-bezier(.29,.01,.33,1) var(--pt-reveal-delay,0ms) both}
.pt-reveal-pending .v3-face::before,.pt-reveal-playing .v3-face::before{content:"";pointer-events:none;position:absolute;z-index:2;left:0;right:0;top:37%;height:18%;background:linear-gradient(95deg,#d5c09a,#f4e4bd 32%,#9c4934 47%,#9f4834 55%,#e5d3a9 56%,#c8b58d);clip-path:polygon(0 10%,30% 6%,48% 0,51% 11%,55% 3%,74% 7%,100% 3%,100% 93%,64% 95%,52% 91%,49% 100%,34% 93%,0 98%);opacity:.98}
.pt-reveal-playing .v3-face::before{animation:pt-paper-break 230ms ease-out var(--pt-reveal-delay,0ms) both}
@keyframes pt-page-turn{0%,25%{opacity:1;transform:rotateY(0)}84%{opacity:.75}100%{transform:translateX(-9%) rotateY(-88deg);opacity:0}}
@keyframes pt-paper-break{0%,17%{opacity:1;transform:none}100%{opacity:0;transform:translate(22%,-15%) rotate(-5deg)}}
.pt-skin-anchor{position:relative}
.pt-skin-finish{display:block;position:absolute;inset:1px;border-radius:inherit;pointer-events:none;overflow:hidden;z-index:2;color:#d1b16d;box-shadow:inset 0 0 0 1px #dfc888,inset 0 0 0 3px #ac905252}
.pt-skin-finish::before{content:"";position:absolute;inset:0;background:linear-gradient(112deg,transparent 31%,#f3d48b20 44%,#fff1cd85 49%,#eacf9133 51%,transparent 62%);background-size:340% 100%;background-position:95% 0;opacity:0}
.pt-skin-finish::after{content:"";position:absolute;inset:0;background:linear-gradient(125deg,#ffeed370,transparent 17%,transparent 84%,#dcb26366);opacity:.6}
.pt-skin-corners{display:none}
[data-skin-tier="2"]>.pt-skin-finish{box-shadow:inset 0 0 0 1px #f3dba4,inset 0 0 0 3px #6d6249,inset 0 0 0 4px #c3a263}
[data-skin-tier="2"]>.pt-skin-finish>.pt-skin-corners{display:block;position:absolute;inset:2px;background:
  linear-gradient(145deg,#fff2c3 37%,#735836 40% 51%,#d5b16f 54% 62%,transparent 65%) left top,
  linear-gradient(215deg,#fff2c3 37%,#735836 40% 51%,#d5b16f 54% 62%,transparent 65%) right top,
  linear-gradient(35deg,#fff2c3 37%,#735836 40% 51%,#d5b16f 54% 62%,transparent 65%) left bottom,
  linear-gradient(325deg,#fff2c3 37%,#735836 40% 51%,#d5b16f 54% 62%,transparent 65%) right bottom;
  background-size:clamp(6px,13%,16px) clamp(6px,13%,16px);background-repeat:no-repeat}
[data-skin-tier="2"]>.pt-skin-finish::after{background:
  radial-gradient(ellipse 2px 3px at 5% 33%,#ffedab 55%,transparent 85%),
  radial-gradient(ellipse 2px 3px at 94% 68%,#ffedab 55%,transparent 85%),
  radial-gradient(circle 1px at 95% 32%,#fff6d3 90%,transparent),
  linear-gradient(125deg,#ffeed38a,transparent 17%,transparent 84%,#dcb26388)}
/* Only the inspected cosmetic loops; the remaining cards light up once when inspected. */
html[data-pt-motion="full"] :is([data-skin-equipped="true"]:focus-visible,[data-skin-equipped="true"]:focus-within)>.pt-skin-finish::before{animation:pt-foil-glide 680ms ease-out 1}
@media(hover:hover){html[data-pt-motion="full"] [data-skin-equipped="true"]:hover>.pt-skin-finish::before{animation:pt-foil-glide 680ms ease-out 1}}
html[data-pt-motion="full"] :is([data-pt-skin-stage],.v6-preview-image,.fl-detailpic)[data-skin-equipped="true"]>.pt-skin-finish::before{animation:pt-folio-idle 6s ease-in-out infinite}
html[data-pt-motion="full"] :is([data-pt-skin-stage],.v6-preview-image,.fl-detailpic)[data-skin-tier="2"]>.pt-skin-finish::after{animation:pt-foil-dust 6s ease-in-out infinite}
@keyframes pt-foil-glide{0%{background-position:96% 0;opacity:0}27%{opacity:.9}75%{opacity:.7}100%{background-position:2% 0;opacity:0}}
@keyframes pt-folio-idle{0%,76%{background-position:96% 0;opacity:0}83%{opacity:.62}94%{opacity:.42}100%{background-position:2% 0;opacity:0}}
@keyframes pt-foil-dust{0%,75%,100%{opacity:.5;transform:none}89%{opacity:.87;transform:translateY(-2px)}}
@media(max-width:720px){.pt-reveal-skip{min-height:44px;padding:5px 7px;font-size:11px}.v6-reveal .v3-intro:has(.pt-reveal-skip){flex-wrap:wrap;gap:4px 8px}.v6-reveal .v3-intro:has(.pt-reveal-skip)>div{min-width:52%}.v6-reveal .pt-reveal-skip{margin-left:0}}
html:not([data-pt-motion="full"]) .pt-reveal-pending .v3-face::before,html:not([data-pt-motion="full"]) .pt-reveal-pending .v3-face::after,html:not([data-pt-motion="full"]) .pt-reveal-playing .v3-face::before,html:not([data-pt-motion="full"]) .pt-reveal-playing .v3-face::after{display:none}
@media(prefers-reduced-motion:reduce){.pt-skin-finish::before,.pt-skin-finish::after,.pt-reveal-playing .v3-face::before,.pt-reveal-playing .v3-face::after{animation:none!important}}
/* The shelf and album share warm paper, burnished brass and dark, carved wood. */
.shell:has(.v8-shop,.v8-reveal,.v8-editor){--walnut:#39261b;--paper8:#e7d5ad;--edges8:#b28952;--night8:#211e18;--text8:#f3ddb4;background:#251e18}
.shell:has(.v8-shop,.v8-reveal,.v8-editor)::before{background:linear-gradient(0deg,#20170edb,#13171155 48%,#20180f6b),var(--boardV6) center/cover;opacity:.82}
.shell:has(.v8-shop,.v8-reveal,.v8-editor)::after{background:radial-gradient(ellipse at 49% 39%,#8a653d16,transparent 57%),linear-gradient(90deg,#21180e9c,transparent 23% 75%,#21180e8a)}
.shell:has(.v8-shop,.v8-reveal,.v8-editor) .v6-header{height:49px;max-width:none;padding-inline:5.5%;border-bottom:1px solid #ae885435;background:linear-gradient(#201b16e8,#261e17ca)}
.shell:has(.v8-shop,.v8-reveal,.v8-editor) .v6-header .loc{color:#d2b991}
.v8-shop,.v8-reveal,.v8-editor{width:min(1240px,calc(100% - 10vw));height:calc(100% - 49px);padding:clamp(14px,2.5vh,26px) 7px 18px;color:#efdfbd;scrollbar-width:thin;scrollbar-color:#977344 #352a20}
.v8-shop .v3-intro,.v8-reveal .v3-intro{display:flex;align-items:center;justify-content:space-between;margin:0}
.v8-shop .v3-intro h1,.v8-reveal .v3-intro h1,.v8-editor .fl-build-title h1{margin:0;color:#f3dfb3;font:650 clamp(31px,4.3vw,59px)/1.06 var(--display);letter-spacing:.07em;text-shadow:0 2px 7px #140f09}
.v8-shop .v6-teach{min-height:39px;color:#e7d5af;background:#2f382a;border-color:#aa9064}
.v8-shop .v6-grants{display:flex;align-items:end;gap:14px;margin:clamp(12px,2.2vh,23px) 0 7px}
.v8-shop .v3-sectionhead h2{font:650 clamp(18px,1.7vw,26px)/1.25 var(--display);color:#eddeb8}
.v8-shop .v6-grants small{display:block;font-size:12px;line-height:1.4;color:#dbcaac;margin:3px 0 0}
.v8-shop .v6-grants .gold{margin-left:auto;min-height:44px;border:1px solid #dfb67c;box-shadow:inset 0 0 0 2px #a4653c,0 3px 0 #542e21,0 5px 12px #130e09a1;background:linear-gradient(155deg,#c47d4b,#98462f 65%,#783523);color:#fff1d4;border-radius:3px;padding:4px 22px}
.v8-shop .v3-themes{--packH:clamp(162px,31.3vh,305px);isolation:isolate;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3%;padding:14px clamp(10px,2.3vw,34px) 21px;border:1px solid #a17a4e;border-radius:6px 6px 4px 4px;overflow:hidden;background:radial-gradient(ellipse at 50% 4%,#82674455,transparent 68%),radial-gradient(ellipse at 48% 72%,#37352a 0%,#24251d 66%,#251d16);box-shadow:inset 0 0 0 3px #483524,inset 0 0 0 4px #8b7047,inset 0 0 36px #100e0ac2,0 8px 15px #130e0acc}
.v8-shop .v3-themes::before{content:"";position:absolute;pointer-events:none;z-index:-1;inset:4px 8px 12px;border-radius:2px;background:linear-gradient(0deg,#35251b77,transparent 25% 83%,#5d4a3344),repeating-linear-gradient(93deg,#b5a77c06 0 1px,transparent 2px 9px);border:1px solid #8c744649}
.v8-shop .v3-themes::after{content:"";position:absolute;inset:auto 0 0;z-index:1;pointer-events:none;height:12px;border-top:2px solid #d2a66a;border-bottom:3px solid #332117;background:linear-gradient(#8a6342,#67482e 32%,#775134 60%,#42291b);box-shadow:0 -2px 1px #261d14,0 3px 4px #100c09}
.v8-shop .v3-theme{--foilshade:#e7aa54;position:relative;display:grid;grid-template-rows:var(--packH) auto;align-items:center;width:100%;gap:1px;padding:0;background:transparent;border:0;isolation:isolate;box-shadow:none;min-width:0;overflow:visible}
.v8-shop .v3-theme[data-work="S"]{--foilshade:#ccab83}.v8-shop .v3-theme[data-work="J"]{--foilshade:#bea463}.v8-shop .v3-theme[data-work="D"]{--foilshade:#d5a4a3}
.v8-shop .v3-cover{position:relative;display:block;width:100%;height:var(--packH);overflow:visible;min-width:0;isolation:isolate;border:0;background:none;box-shadow:none}
.v8-shop .v3-cover::before{content:"";position:absolute;inset:14% 0 -2%;z-index:-1;background:radial-gradient(ellipse at 50% 68%,var(--foilshade),transparent 68%);opacity:.20;mask-image:linear-gradient(transparent,black)}
.v8-shop .v3-cover::after{display:none}
.v8-foil-light{position:absolute;left:5%;right:5%;height:12%;bottom:-3%;border-radius:50%;background:radial-gradient(ellipse,#0f0d08 0,#100e0a80 38%,transparent 72%);transform:rotate(-2deg)}
.v8-foil{display:block;position:absolute;inset:0;filter:drop-shadow(3px 5px 4px #0c0c08a8);transition:transform .18s ease}
.v8-foil>i{position:absolute;display:block;top:0;left:50%;height:100%;aspect-ratio:1.5;background:var(--foil) 50% 50%/100% 100% no-repeat;transform:translateX(-50%);clip-path:polygon(30% 1%,70% 1%,70% 98%,30% 98%)}
.v8-shop [data-work=W] .v8-foil>i{clip-path:polygon(29% .8%,75.7% .6%,75.4% 7%,74% 10%,70.3% 96.7%,69.8% 98.9%,20.6% 96.8%,21.4% 89.5%,22.5% 86.2%,29.5% 8%,29% 5%)}
.v8-shop [data-work=S] .v8-foil>i{clip-path:polygon(30% 2.2%,69.9% 2.2%,69.4% 8.4%,69.7% 90.9%,70% 96.9%,29.7% 96.9%,29.9% 92%,30% 8%)}
.v8-shop [data-work=J] .v8-foil>i{transform:translateX(-53%);clip-path:polygon(40.4% .3%,76.5% 5.5%,75.8% 13.3%,74.8% 15%,68.3% 89.5%,68% 98.4%,28.5% 91.1%,29.4% 86.2%,30.8% 81%,39.8% 8%)}
.v8-shop [data-work=D] .v8-foil>i{clip-path:polygon(30.3% 1%,69.7% 1%,69.4% 8.1%,69.3% 91%,69.8% 98.4%,30.2% 98.4%,30.6% 90%,30.7% 8.4%)}
@media(hover:hover){.v8-shop .v3-theme:has(.v3-pill:not(:disabled)):hover .v8-foil{transform:translateY(-5px) rotate(-1.8deg);filter:drop-shadow(4px 9px 6px #0d0b08b5) brightness(1.07)}}
.v8-shop .v3-theme-bottom{position:static;width:100%;justify-content:center;gap:12px;margin:3px 0 0;color:#efddbd;font:650 clamp(15px,1.45vw,21px)/1.3 var(--display)}
.v8-shop .v3-theme-bottom .v3-pill{min-height:34px;padding:4px 11px;color:#f3dfb6;border:1px solid #a28555;background:linear-gradient(#475640,#2f402f);box-shadow:inset 0 0 0 1px #57684c,0 2px 0 #192318;font:600 13px var(--display);white-space:nowrap}
.v8-shop .v3-theme-bottom .v3-pill::after{inset:0}.v8-shop .v3-theme-bottom .v3-pill:disabled{opacity:.8;background:#322f25;color:#cbbd9f;border-color:#716148;box-shadow:none}
.v8-shop .v6-paid{margin:clamp(14px,2.6vh,29px) 0 8px}.v8-shop .v6-paid .v3-local{font-size:11px;color:#c7ba9e}
.v8-shop .v3-offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px;background:none;border:0;box-shadow:none}
.v8-shop .v3-offer,.v8-shop .v3-offer:last-child{--tint:#3f513c;min-height:82px;border:1px solid #a78b5c;border-radius:4px;padding:12px 14px 12px 18px;box-shadow:inset 0 0 0 3px #27271e,inset 0 0 0 4px #8d7b535f,0 4px 7px #1a130cad;background:linear-gradient(110deg,var(--tint),#26271f 86%);color:#efdab2}
.v8-shop .v3-offer[data-kind=new]{--tint:#6b4131}.v8-shop .v3-offer[data-kind=daily]{--tint:#564a35}
.v8-shop .v3-offer h3{font:650 clamp(16px,1.65vw,24px)/1.25 var(--display);color:#f1dfb9}
.v8-shop .v3-offer p,.v8-shop .v3-select{font-size:11px;color:#d7c9af}
.v8-shop .v3-select select{color:#eddfc0;background:#27362b;border:1px solid #837955;min-height:31px}
.v8-shop .v3-offer-act b{color:#f4cf89;font:700 clamp(18px,1.8vw,25px)/1.15 Georgia,serif}.v8-shop .v3-offer-act{gap:3px}
.v8-shop .v3-offer-act .v3-pill{color:#332717;background:#d7ba84;min-height:31px;border:1px solid #d2b37b}
.v8-shop .v3-offer-act .v3-pill:disabled{color:#d2c3a0;background:#383a2c;border:1px solid #726344}
.v8-pack-terms{margin:13px 0 0;border-top:1px solid #a68a5f50;color:#ddcfb2}
.v8-pack-terms summary{font-size:13px;cursor:pointer;padding:10px 0}.v8-pack-terms>span{display:block;font-size:12px;color:#dacdb4;line-height:1.6}.v8-shop .v8-pack-terms .v4-odds{margin:0 0 5px}
.v8-shop .fl-status:empty,.v8-editor .fl-status:empty{display:none}
.v8-reveal .v3-intro{margin-bottom:10px}.v8-reveal .v3-intro .tiny{margin-bottom:5px}.v8-reveal .v3-intro h1{font-size:clamp(28px,3.5vw,48px)}
.v8-reveal .v3-reveal-tabs{display:flex;align-items:end;gap:5px;border-bottom:2px solid #89704c;margin:10px 0 13px}
.v8-reveal .v3-reveal-tabs button{min-height:40px;border:1px solid #92784d;border-radius:5px 5px 0 0;padding:4px 13px;background:#3e3729;color:#e0d2b2}
.v8-reveal .v3-reveal-tabs [aria-pressed=true]{background:linear-gradient(#e1cb9e,#bd9e68);color:#342c21}
.v8-reveal .v3-reveal-cards{gap:clamp(8px,1.1vw,16px);padding:3px 5px 10px;margin:0}
.v8-reveal .v3-reveal-card{min-width:0;position:relative;padding:4px 4px 7px;background:linear-gradient(110deg,#c7ad7f,#efddba 42%,#dfcba4 77%,#bb9f72);box-shadow:inset 0 0 0 1px #e7cd98,0 3px 0 #775f42,0 7px 10px #1b150e80;border:1px solid #ae8c59;border-radius:8px 8px 4px 4px;text-align:center}
.v8-reveal .v3-face{height:clamp(95px,18.4vh,192px);overflow:visible;margin:0 0 3px}
.v8-reveal .v3-face>i.fl-picture{border-radius:4px 4px 0 0;inset:0;height:100%;width:100%;border:1px solid #967e59}
.v8-reveal .v3-face>i:not(.fl-picture):not(.fl-seal){top:1px;left:0;width:25px;height:27px;line-height:25px;z-index:2}.v8-reveal .v3-reveal-card>strong{font:700 20px/1.25 var(--display);margin:0}
.v8-reveal .v3-reveal-card>small{font-size:11px;color:#5e4c35}
.v8-reveal .v3-reveal-card[data-tier=传说]{border-color:#e8ad4e;box-shadow:0 0 0 1px #f5c46c,inset 0 0 0 2px #e5bc76,0 4px 0 #77603a,0 5px 15px #bb782b50}
.v8-reveal .v8-reveal-stats,.v8-card-pips{position:absolute;display:flex;justify-content:space-between;align-items:end;inset:auto 1px 1px;pointer-events:none}
.v8-reveal-stats i,.v8-card-pips b{font:700 15px/21px Georgia,serif;text-align:center;min-width:21px;height:22px;border:1px solid #cab384;color:#fff1cd;background:#725332;border-radius:6px 6px 2px 2px;box-shadow:0 1px 2px #382b1d}
.v8-reveal-stats i+i,.v8-card-pips b+b{border-radius:3px 3px 50% 50%;background:#8c4834}
.v8-editor{display:flex;flex-direction:column;overflow:hidden;padding-top:clamp(10px,1.8vh,22px)}
.v8-editor .fl-build-title{margin:0 0 12px;flex:none}
.v8-editor .fl-build-title h1{font-size:clamp(28px,3.2vw,47px)}
.v8-editor .rec-leader-field{color:#ddcaa6;max-width:60%;position:relative}
.v8-editor .rec-leader-field select{min-height:39px;background:#302d23;color:#efdfbd;border-color:#aa8d58}
.v8-editor .rec-leader-field .rec-leader-help{margin-left:5px}.v8-editor .rec-leader-help>p{z-index:6;position:absolute;top:100%;right:0;width:min(350px,80vw);background:#354135;padding:12px;color:#efe0c4;border:1px solid #a98d57;box-shadow:0 3px 12px #16130f88}
.v8-editor .fl-workspace{position:relative;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,25%);gap:clamp(12px,1.6vw,27px);flex:1}
.v8-editor .fl-library{isolation:isolate;position:relative;display:flex;flex-direction:column;border:1px solid #97754c;border-radius:7px 9px 7px 6px;padding:clamp(9px,1.1vw,18px) clamp(10px,1.35vw,23px) 4px;min-width:0;min-height:0;background:linear-gradient(90deg,#bc9f70,#eadabc 4%,#e7d6b2 38%,#d9c098 48.4%,#a38863 49.55%,#826749 49.9%,#d4bb91 50.6%,#eadbbb 53%,#e4d1ac 94%,#b49b72);box-shadow:inset 0 0 0 3px #7c5e3f,inset 0 0 0 5px #d6be91,inset 0 0 0 6px #ad9271,inset 0 0 30px #92795844,0 3px 0 #56422c,0 5px 0 #b89c73,0 7px 0 #695237,0 9px 0 #3b2c20,1px 12px 15px #100c0780;color:#3d3929}
.v8-editor .fl-library::before{content:"";position:absolute;z-index:-1;pointer-events:none;inset:5px;border:1px solid #967f5c65;border-radius:3px;background:repeating-linear-gradient(5deg,transparent 0 8px,#47331b05 9px,transparent 10px);opacity:.9}
.v8-editor .fl-library>.fl-panehead{min-height:25px;border-bottom:1px solid #9c81557a;padding:0 0 4px;margin-bottom:6px}
.v8-editor .fl-library>.fl-panehead h2{font:700 clamp(18px,1.8vw,26px)/1.2 var(--display);letter-spacing:.09em;color:#443a28}
.v8-editor .fl-library>.fl-panehead>span{color:#665e45;font-size:12px}
.v8-editor .fl-tools{display:flex;gap:5px;align-items:center;flex-shrink:0;padding:0 0 7px}
.v8-editor .fl-tools input,.v8-editor .fl-tools select{min-height:35px;border:1px solid #a28b65;border-radius:3px;background:#e9dbbf;color:#544831;font-size:12px;box-shadow:inset 0 1px 2px #80674128}
.v8-editor .fl-tools input::placeholder{color:#73684e}.v8-editor .fl-tools input{width:clamp(120px,39%,265px)}
.v8-editor .fl-liblist{--page-cols:4;--page-rows:2;--page-gap:clamp(6px,.85vw,12px);position:relative;display:grid;grid-auto-flow:column;grid-template-columns:none;grid-template-rows:repeat(var(--page-rows),minmax(0,1fr));grid-auto-columns:calc((100% - (var(--page-cols) - 1) * var(--page-gap)) / var(--page-cols));grid-auto-rows:unset;align-content:stretch;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;gap:var(--page-gap);width:100%;flex:1;min-height:0;padding:2px 0 4px;margin:0}
.v8-editor .fl-liblist::-webkit-scrollbar{display:none}
.v8-editor .fl-librow{margin:0;min-width:0;min-height:0;height:100%;align-self:stretch;display:flex;flex-direction:column;padding:3px;color:#342e23;box-shadow:inset 0 0 0 1px #e4c995,0 2px 0 #8a6d47,1px 3px 5px #47361e6b;border:1.5px solid #886b45;border-radius:7px 7px 4px 4px;background:linear-gradient(115deg,#d7c197,#eddfc1 40%,#d8c19b 90%,#ad9368)}
.v8-editor .fl-inspect{flex:1 1 auto;min-height:0;width:100%;display:flex;flex-direction:column;overflow:hidden;align-items:stretch;gap:0;padding:0}
.v8-editor .fl-inspect .fl-picture,.v8-editor .fl-inspect .fl-seal{position:relative;display:block;flex:1 1 auto;height:0;min-height:0;width:100%;border:1px solid #997d55;border-radius:4px 4px 0 0;background-size:cover;background-position:50% 21%}
.v8-editor .fl-inspect .fl-fee{width:25px;height:29px;left:0;top:0;border-radius:4px 4px 43% 43%;background:linear-gradient(130deg,#52715b,#233e35);font:700 17px/1 Georgia,serif;box-shadow:0 1px 3px #392d1d80}
.v8-editor .fl-libname{display:block;flex:none;text-align:center;padding:4px 3px 2px}
.v8-editor .fl-libname strong{display:block;color:#383023;font:700 clamp(15px,1.48vw,21px)/1.14 var(--display)}
.v8-editor .fl-libname small{display:block;font-size:clamp(10px,.76vw,12px);margin:1px 0 0;color:#5d533b}
.v8-editor .fl-libfoot{flex:none;display:flex;align-items:center;justify-content:space-between;margin:0 1px;padding:1px 0 0;border-top:1px solid #b89d6f83;gap:2px}
.v8-editor .fl-libfoot span{font-size:clamp(9px,.73vw,11px);color:#60563f;margin:0}
.v8-editor .fl-libfoot .fl-add{border-radius:2px;min-width:29px;min-height:28px;padding:0 5px;background:#344d3d;color:#ffedc9;border:1px solid #7c855f;line-height:1;font-size:15px}
.v8-editor .fl-libfoot .fl-add:disabled{font-size:10px;min-width:18px;opacity:1;background:transparent;color:#6d5b43;border-color:transparent;padding:0}
.v8-editor .fl-missing .fl-picture{filter:grayscale(.75) contrast(.85);opacity:.84}
.v8-editor .fl-liblist>.fl-empty{grid-column:1/-1;grid-row:1;color:#69573c;padding:12px 0;font-size:14px}
.v8-editor .v6-empty-cta{align-self:center;justify-self:start;padding:5px 12px;min-height:43px}
.v8-pages{min-height:43px;flex:none;display:flex;align-items:center;justify-content:center;gap:13px;color:#705b3a;font:650 13px Georgia,serif}
.v8-leaf-btn{display:grid;place-items:center;min-width:45px;min-height:35px;background:transparent;border:1px solid transparent;color:#755334;font:25px/1 Georgia,serif;border-radius:4px}
.v8-leaf-btn:not(:disabled):hover{background:#ac8b5424;border-color:#a98d5c63}.v8-leaf-btn:disabled{opacity:.36}
.v8-editor .fl-deckpane{min-width:0;background:linear-gradient(90deg,#443323 0,#312a20 5%,#2b2820 92%,#443529);border:1px solid #a98959;border-radius:5px;padding:clamp(8px,.85vw,13px);box-shadow:inset 0 0 0 3px #463a28,inset 0 0 0 4px #977c4c66,0 4px 8px #140f09ad}
.v8-editor .fl-deckpane .fl-panehead{min-height:46px;border-bottom:2px solid #9b805a;padding:4px 2px 7px;justify-content:space-between;gap:6px}
.v8-editor .fl-deckpane .fl-panehead h2{font:650 clamp(15px,1.45vw,20px)/1.25 var(--display);color:#f2ddb3;flex:1}
.v8-with-chief::before{content:"";height:39px;aspect-ratio:.82;background:var(--chief-art) center 23%/cover;border:1px solid #b7965f;border-radius:10px 10px 4px 4px;box-shadow:0 2px 4px #130f0a}
.v8-editor .fl-decklist{scrollbar-width:thin;scrollbar-color:#816a44 #31281c}
.v8-editor .fl-deckrow{isolation:isolate;position:relative;min-height:31px;padding:1px 2px;border:0;border-bottom:1px solid #9e81553d;gap:6px}
.v8-editor .fl-deckrow::before{content:"";position:absolute;inset:1px 0;z-index:-1;background:linear-gradient(90deg,#3f3c2c 12%,#3a392dc2 38%,#3735278c 68%,#333124e8 89%),var(--strip-art) 67% 22%/100% auto;opacity:.98;border-radius:2px}
.v8-editor .fl-deckrow i{border:1px solid #8f9166;min-width:22px;height:25px;display:grid;place-items:center;margin:0;background:#2d493d;color:#f3dfb0}
.v8-editor .fl-cardname,.v8-editor .fl-minus{position:relative;z-index:1}.v8-editor .fl-cardname{color:#ffedc9;font:650 14px/1.2 var(--display);text-shadow:0 1px 2px #24231b}
.v8-editor .fl-deckrow b{color:#edcf8c}.v8-editor .fl-minus{min-height:27px;min-width:28px;padding:0 4px;color:#efdcb6;background:#2b3025d9}
.v8-editor .fl-buildfoot{flex:none;margin-top:12px;padding:8px 0 0;border:0}
.v8-editor .fl-buildfoot .rec-launch{background:linear-gradient(#66563b,#473d2b);border-color:#b39561;box-shadow:inset 0 0 0 1px #806d4b;color:#f1ddb0}
.v8-editor .fl-buildfoot .fl-primary .gold,.v8-reveal .fl-receipt-actions .gold{background:linear-gradient(150deg,#bd7148,#994b32 60%,#783825);border:1px solid #ce9b67;box-shadow:0 2px 0 #583322,inset 0 0 0 1px #af764c;color:#fbe9c7}
.v8-editor .fl-status{min-height:0;margin-top:3px}
.v8-editor .fl-utilities,.v8-editor .fl-primary{gap:9px}
.v8-recommend.rec-modal{border:1px solid #ba9a63;background:#2d2b21;box-shadow:inset 0 0 0 3px #615038,0 18px 62px #100d09cc}
.v8-recommend .rec-top,.v8-recommend .rec-foot{background:linear-gradient(90deg,#372c20,#24291f);border-color:#9d815456}
.v8-recommend .rec-scroll{grid-template-columns:minmax(240px,.88fr) minmax(0,1.3fr)}
.v8-recommend .rec-choices{background:linear-gradient(115deg,#302f25,#273328);padding:15px 14px}
.v8-recommend .rec-choices fieldset:first-child>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.v8-recommend .rec-pill[data-act=rec-style]{position:relative;isolation:isolate;display:flex;align-items:end;justify-content:center;border:1px solid #8a7855;background:linear-gradient(0deg,#292a20 0%,#22271ec4 29%,transparent 70%),var(--face-art) 50% 17%/cover;min-height:86px;min-width:0;padding:4px 2px;color:#f1dfbc;text-shadow:0 1px 3px #19160c;font:650 13px/1.3 var(--display);white-space:nowrap;border-radius:6px 6px 3px 3px}
.v8-recommend .rec-pill[data-act=rec-style][aria-pressed=true]{border:2px solid #eed08d;color:#ffedbe;box-shadow:0 0 0 1px #7e613a,0 2px 7px #21190e}
.v8-recommend .v8-lead-art{border-top:1px solid #ae926150;padding-top:4px}
.v8-recommend .rec-lead-control>div{align-items:center}.v8-recommend .v8-lead-art>div::before{content:"";width:37px;height:46px;border:1px solid #bea06a;border-radius:4px;background:var(--chief-art) 50% 20%/cover}
.v8-recommend .rec-result{background:linear-gradient(100deg,#cdb58c,#efdebb 12%,#e2cca4 94%,#c2aa81)}
.v8-recommend .rec-curves div{background:#b39a6761}.v8-recommend .rec-foot .gold{background:linear-gradient(#a76345,#84432f);border-color:#c39765;color:#f7e3bd;box-shadow:0 2px 0 #532e21}
@media(min-width:721px) and (max-height:750px){
 .v8-editor .fl-liblist{--page-rows:1}.v8-shop .v3-themes{--packH:clamp(143px,29vh,200px)}
}
@media(min-width:721px) and (max-width:995px){.v8-editor,.v8-shop,.v8-reveal{width:calc(100% - 32px)}.v8-editor .fl-workspace{grid-template-columns:minmax(0,1fr) 195px}.v8-shop .v3-offers{gap:6px}.v8-shop .v3-offer,.v8-shop .v3-offer:last-child{padding:8px 9px}.v8-shop .v3-theme-bottom{gap:5px}}
@media(max-width:720px){
 .shell:has(.v8-shop,.v8-reveal,.v8-editor)::before{background-size:auto,auto 104%;opacity:.75}
 .shell:has(.v8-shop,.v8-reveal,.v8-editor) .v6-header{height:45px;padding:0 12px}
 .v8-editor,.v8-shop,.v8-reveal{height:calc(100% - 45px);width:calc(100% - 16px);padding:10px 2px max(9px,env(safe-area-inset-bottom))}
 .v8-shop .v3-intro h1,.v8-reveal .v3-intro h1,.v8-editor .fl-build-title h1{font-size:clamp(27px,7.6vw,37px)}
 .v8-shop .v6-teach{font-size:12px;min-height:40px}
 .v8-shop .v6-grants{margin:12px 0 6px;gap:6px;align-items:center}
 .v8-shop .v3-sectionhead h2{font-size:18px}.v8-shop .v6-grants small{font-size:10px;line-height:1.3}
 .v8-shop .v6-grants .gold{min-height:44px;padding:4px 10px;font-size:13px}
 .v8-shop .v3-themes{--packH:clamp(90px,15.8vh,163px);grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 4px;padding:8px 5px 15px}
 .v8-shop .v3-cover{height:var(--packH)}.v8-shop .v3-theme-bottom{margin:0;gap:7px;font-size:15px}
 .v8-shop .v3-theme-bottom .v3-pill{min-height:33px;padding:2px 7px;font-size:11px}
 .v8-shop .v3-themes::after{height:8px}
 .v8-shop .v3-offers{display:grid;grid-template-columns:1fr;gap:5px}.v8-shop .v3-offer,.v8-shop .v3-offer:last-child{display:flex;flex-direction:row;align-items:center;min-height:61px;padding:6px 9px 6px 12px;border:1px solid #9c7d52}
 .v8-shop .v6-paid{margin:12px 0 5px}.v8-shop .v6-paid .v3-local{font-size:10px}
 .v8-shop .v3-offer h3{font-size:17px}.v8-shop .v3-offer p,.v8-shop .v3-select{font-size:10px}.v8-shop .v3-offer-act{display:flex;align-items:center;gap:9px}.v8-shop .v3-offer-act .v3-pill{min-height:39px;font-size:12px}.v8-shop .v3-offer-act b{font-size:19px}
 .v8-pack-terms{margin-top:10px}.v8-pack-terms summary{min-height:44px;padding:11px 0}.v8-shop .v4-odds{display:block}
 .v8-reveal .v3-intro{margin:0}.v8-reveal .v3-reveal-tabs{gap:2px;margin:8px 0}.v8-reveal .v3-reveal-tabs button{font-size:11px;padding:4px 5px;min-height:44px}
 .v8-reveal .v3-reveal-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px}.v8-reveal .v3-face{height:clamp(84px,14.3vh,137px)}.v8-reveal .v3-reveal-card>strong{font-size:17px}
 .v8-editor .fl-build-title{margin:0 0 5px}.v8-editor .rec-leader-field label{font-size:11px}.v8-editor .rec-leader-field select{font-size:12px;min-height:40px;padding:3px;max-width:78px}.v8-editor .rec-leader-help{margin-left:1px}
 .v8-editor .fl-mobiletabs{min-height:42px;padding:1px;margin:0 0 5px;background:#2d2b21}.v8-editor .fl-mobiletabs .fl-work{min-height:38px}
 .v8-editor .fl-workspace{display:flex;gap:0}
 .v8-editor[data-tab=deck] .fl-library,.v8-editor[data-tab=library] .fl-deckpane{display:none}
 .v8-editor .fl-library,.v8-editor .fl-deckpane{flex:1}
 .v8-editor .fl-library{padding:7px 8px 0}
 .v8-editor .fl-library>.fl-panehead{margin-bottom:4px;padding:0 1px 3px;min-height:21px}
 .v8-editor .fl-library>.fl-panehead h2{font-size:18px}.v8-editor .fl-library>.fl-panehead>span{font-size:10px}
 .v8-editor .fl-tools{gap:3px;padding-bottom:4px}.v8-editor .fl-tools input,.v8-editor .fl-tools select{min-height:34px;font-size:11px}.v8-editor .fl-tools input{flex:1;min-width:50px;max-width:none}
 .v8-editor .fl-liblist{--page-cols:2;--page-rows:2;--page-gap:7px;padding-bottom:3px}.v8-editor .fl-libname{padding:3px 0 2px}.v8-editor .fl-libname strong{font-size:16px}.v8-editor .fl-libname small{font-size:10px}
 .v8-editor .fl-libfoot{padding:0;min-height:40px}.v8-editor .fl-libfoot .fl-add{min-height:40px;min-width:44px;font-size:14px}.v8-editor .fl-libfoot .fl-add:disabled{font-size:10px}
 .v8-editor .fl-inspect .fl-fee{font-size:15px;width:21px;height:24px}.v8-card-pips b{font-size:14px;line-height:18px;min-width:18px;height:19px}
 .v8-pages{min-height:37px}.v8-leaf-btn{min-height:37px}
 .v8-editor .fl-deckpane{padding:8px}.v8-editor .fl-deckpane .fl-panehead{padding:2px 2px 5px}.v8-editor .fl-deckrow .fl-minus,.v8-editor .fl-cardname{min-height:44px}
 .v8-editor .fl-buildfoot{margin:9px 0 0;padding:2px 1px 0;gap:4px}.v8-editor .fl-utilities,.v8-editor .fl-primary{gap:5px}
 .v8-editor .fl-buildfoot .fl-primary .quiet,.v8-editor .fl-buildfoot .fl-primary .gold,.v8-editor .fl-buildfoot .rec-launch{padding-inline:8px;min-height:44px}
 .v8-editor .fl-status{font-size:10px;margin-top:1px}
 .v8-recommend .rec-choices{padding:9px 10px}.v8-recommend .rec-choices fieldset:first-child>div{gap:5px}
 .v8-recommend .rec-pill[data-act=rec-style]{min-height:68px;font-size:13px}
 .v8-recommend .v8-lead-art>div::before{width:27px;height:35px}
}
@media(max-width:720px) and (max-height:720px){.v8-editor .fl-liblist{--page-rows:1}.v8-shop .v3-themes{--packH:clamp(88px,15vh,109px)}}
@media(max-width:355px){.v8-editor,.v8-shop,.v8-reveal{width:calc(100% - 11px)}.v8-shop .v6-grants small{max-width:16em}.v8-shop .v3-theme-bottom{gap:4px}.v8-shop .v3-offer p{max-width:17em}}
@media(prefers-reduced-motion:reduce){.v8-foil{transition:none}}
.v8-editor .fl-liblist{scroll-snap-type:x mandatory}.v8-editor .fl-librow[data-leaf-start]{scroll-snap-align:start}
.v8-editor .fl-deckrow::before{background-color:#363226;background-image:linear-gradient(90deg,#38362a 0%,#38362a 36%,#38362aab 54%,#292a2096 81%,#302d22e8 97%),var(--strip-art);background-size:100% 100%,55% auto;background-position:center,right 17px top 22%;background-repeat:no-repeat}
@media(min-width:995px) and (min-height:790px){.v8-shop .v3-themes{--packH:clamp(258px,35vh,350px)}}
@media(max-width:420px){.shell:has(.v8-shop,.v8-reveal,.v8-editor) .v6-header .loc{display:none}.shell:has(.v8-shop,.v8-reveal,.v8-editor) .v6-header button{white-space:nowrap}.v8-editor .fl-libfoot .fl-add{min-height:44px}}

/* The workbench uses the same lacquer, brass and rice paper as the board. */
.s8-forge,.s8-person,.s8-menu,.s8-order,.s8-draw{--s8-paper:#eddbb4;--s8-ink:#242d25;--s8-gold:#cda66a;--s8-wood:#433327;--s8-ser:"Songti SC","Noto Serif CJK SC","STSong",serif}
.ws-dialog.s8-forge{width:min(878px,calc(100vw - 36px));border:1px solid #ac8955;border-radius:10px;background:linear-gradient(120deg,#26382e,#19261e 70%,#1c2720);box-shadow:0 18px 70px #08110fe0,inset 0 0 0 3px #51493b,inset 0 0 0 4px #a586515e}
.ws-dialog.s8-forge::backdrop{background:#0d1513d9;backdrop-filter:blur(4px)}
.s8-forge .ws-top,.s8-forge .ws-mode,.s8-forge .ws-layout{margin-inline:clamp(16px,3vw,30px)}
.s8-forge .ws-top{padding:19px 0 10px;border:0}.s8-forge .ws-top h2{font:700 31px/1.1 var(--s8-ser);color:#f1ddb4}.s8-forge .ws-close,.s8-x{display:grid;place-items:center;border:1px solid #a38c5c70;border-radius:50%;width:40px;height:40px;padding:0;color:#e4c997;background:#27382c;line-height:1;font:25px/1 Georgia}
.s8-forge .ws-mode{padding:0 0 14px;gap:0;border-bottom:1px solid #a68e5d4d}
.s8-forge .ws-mode button{min-width:97px;min-height:35px;padding:3px 12px;border:1px solid #a58e585e;border-radius:0;background:#1d2b23;color:#d5c5a5}.s8-forge .ws-mode button:first-child{border-radius:4px 0 0 4px}.s8-forge .ws-mode button:last-child{border-radius:0 4px 4px 0}.s8-forge .ws-mode button[aria-pressed=true]{background:linear-gradient(120deg,#dfc38a,#cab07a);color:#2e3024}
.s8-forge .ws-layout{grid-template-columns:minmax(235px,.92fr) minmax(300px,1.08fr);margin-block:16px 25px;gap:18px}
.s8-forge .ws-display{isolation:isolate;overflow:hidden;position:relative;align-self:stretch;justify-content:space-between;padding:16px 12px;background:radial-gradient(ellipse at 50% 47%,#6975537a 0%,#3c5243b3 35%,#243a2d 65%,#1d2e23 100%);border:1px solid #8f835c99;box-shadow:inset 0 0 0 3px #344635,inset 0 0 0 4px #776e4b80;border-radius:90px 90px 7px 7px}
.s8-forge .ws-display:before,.s8-forge .ws-display:after{content:"";position:absolute;z-index:-1;pointer-events:none;left:50%;top:48%;width:78%;aspect-ratio:1;transform:translate(-50%,-50%);border:1px solid #c9ac6d50;border-radius:50%;box-shadow:0 0 0 6px #6770542b,0 0 0 7px #b5a16c39,inset 0 0 0 8px #58674d33}
.s8-forge .ws-display:after{width:51%;border-radius:4%;border-color:#b8a26b46;transform:translate(-50%,-50%) rotate(45deg);box-shadow:0 0 0 3px #76805b2e}
.s8-forge .ws-person{width:75%!important;max-width:240px;gap:4px!important;font:600 12px/1.35 var(--s8-ser)!important;color:#e2ce9b}
.s8-forge select{background:#28382d;border-color:#8f805c99;color:#f0ddb4;min-height:36px}
.s8-forge .ws-card{width:clamp(155px,15vw,217px);margin:18px 0 16px;box-shadow:0 2px 0 #4b3d27,0 5px 0 #8d7653,0 10px 0 #283129,0 18px 30px #101c18b3}
.s8-forge .ws-tiers{margin-top:2px;border-radius:3px;gap:4px}.s8-forge .ws-tiers button{background:#223227;border:1px solid #99805485;min-width:57px;min-height:33px;color:#e9d9b5}.s8-forge .ws-tiers [aria-pressed=true]{background:#d8c398;color:#382e1e;border-color:#e0c58f}
.s8-forge .ws-recipe{position:relative;background:radial-gradient(ellipse at 15% 10%,#f2e5c8,#dfcda7 77%,#d0b98e);border:1px solid #c5ab78;box-shadow:inset 0 0 0 3px #e5d2ad,inset 0 0 0 4px #ba9b66aa,0 5px 9px #101b1799;padding:19px 18px 15px;border-radius:5px;color:#423829}
.s8-forge .ws-recipe>h3{font:700 24px/1.2 var(--s8-ser);color:#3c392a}.s8-forge .ws-recipe>p:not(.ws-help):not(.ws-feedback){font-size:12px;margin:3px 0 9px;color:#605742}
.s8-forge .s8-slots{display:flex;align-items:center;justify-content:space-evenly;background:linear-gradient(165deg,#4b4132,#312d24 48%,#484235);padding:11px 6px 8px;margin:8px 0 7px;border:1px solid #795f40;border-radius:6px;box-shadow:inset 0 0 0 2px #64523d,inset 0 5px 11px #231f1c80;color:#e6d3a9;min-width:0}
.s8-slot{display:grid;grid-template-rows:auto auto auto;align-items:center;justify-items:center;gap:2px;font-size:11px;line-height:1.15;text-align:center}.s8-slot-art{position:relative;display:grid;place-items:center;width:clamp(32px,3.2vw,46px);aspect-ratio:.73;border-radius:3px;background:repeating-linear-gradient(45deg,#484939 0 2px,#3b4234 2px 5px);border:1px dashed #ad9a756a;color:#d1c397;font:18px var(--s8-ser);box-shadow:inset 0 1px 4px #1a201a9e}
.s8-slot.s8-loaded .s8-slot-art{border:2px solid #b49966;background:var(--s8-slot-img) center 24%/cover;box-shadow:0 3px 5px #1d2118a3}.s8-slot.s8-loaded[data-level="1"] .s8-slot-art{border:2px solid #eac678;box-shadow:0 0 0 1px #9a723e,0 2px 4px #1b1e16b3}.s8-slot.s8-loaded[data-level="2"] .s8-slot-art{border:3px double #f5d289;outline:1px solid #916e47}
.s8-slot b{font:600 13px var(--s8-ser);line-height:1.1;margin-top:3px}.s8-slot small{font:10px/1.2 system-ui;color:#d2c3a5}.s8-symbol{font:18px/1 Georgia;color:#d2b37f;flex:none}.s8-slot:last-child .s8-slot-art{filter:saturate(.75);opacity:.82}.s8-complete .s8-slot:last-child .s8-slot-art{opacity:1;filter:none;box-shadow:0 0 8px #e3bc5f66}.s8-last{justify-content:center!important}
.s8-formulas{border-bottom:1px solid #b3976e77;margin:1px 0 8px}.s8-formulas summary,.s8-origins summary,.s8-person .detail-rules summary{cursor:pointer;font-size:12px;color:#55513d;line-height:1.3;padding:7px 0}.s8-forge .ws-formula{margin:0 0 5px;padding:2px 0;border:0;font-size:12px}
.s8-forge .ws-recipe label:not(.ws-check),.s8-forge legend{font-size:12px;font-weight:600;color:#554a35}.s8-forge .ws-recipe fieldset{margin:6px 0 8px;padding:0 7px 4px;border-color:#b59a70;border-radius:3px;max-height:114px}.s8-forge .ws-check{border-bottom:1px solid #b7976f48;gap:7px;min-height:30px}.s8-forge .ws-check:last-child{border-bottom:0}.s8-forge .ws-check b{font-weight:600}.s8-forge .ws-check span{margin-left:auto;font-size:11px;color:#615541}.s8-forge .ws-review,.s8-forge .ws-primary,.s8-forge .ws-button{min-height:43px;margin:5px 5px 0 0}
.s8-forge .ws-primary{background:linear-gradient(160deg,#b6583c,#863924);border:1px solid #70381e;box-shadow:inset 0 0 0 1px #f3c47b4d,0 2px 0 #563625;font-weight:650;letter-spacing:.06em}.s8-forge .ws-primary:disabled{background:#a99c80;box-shadow:none;border-color:#96876a}
.s8-forge .ws-confirm{padding:8px;border-left:3px solid #a04f33;background:#b4865630}.s8-forge .ws-confirm h3{font:700 17px var(--s8-ser);color:#773e2b}.s8-forge .ws-confirm ul{margin:4px 0 0;padding-left:19px;font-size:12px}.s8-forge .ws-confirm p,.s8-forge .ws-help{font-size:12px;line-height:1.5}.s8-forge .ws-recipe .ws-feedback{margin:7px 0 0;padding:5px 7px;background:#5b805c24;border-left:2px solid #637a51;min-height:0;font-size:12px}
.s8-menu,.s8-order,.s8-person{min-width:0;color:#4b422f}.modal.s8-menu,.modal.s8-order{width:min(465px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:19px;background:linear-gradient(135deg,#2c402f,#1c2b23);border:1px solid #b0945c;box-shadow:inset 0 0 0 3px #394735,0 18px 65px #0e1512bb;border-radius:7px;text-align:left}
.s8-pophead,.s8-person-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;border-bottom:1px solid #a68c5e72;padding:0 0 8px}.s8-menu .s8-pophead h2,.s8-order h2{font:700 27px/1.2 var(--s8-ser);color:#eddbb4;margin:0}.s8-menu .s8-x,.s8-person .s8-x{margin:0;min-width:40px;flex:none}.s8-menulist{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.s8-menulist .s8-menu-item{height:54px;display:flex;align-items:center;gap:9px;text-align:left;margin:0;padding:6px 9px;border:1px solid #8f805952;border-radius:4px;background:linear-gradient(112deg,#364638,#25362b);color:#e8d8b7;font:600 15px/1.2 var(--s8-ser)}
.s8-menu-item:before{content:"";width:28px;height:33px;flex:none;background:var(--backV6) center/cover;border-radius:2px;box-shadow:0 0 0 1px #a99765a8;opacity:.94}
.s8-menu-item[data-s8-view="v8-hall"]:before{background-image:var(--boardV6);background-position:8% 12%;background-size:350%}
.s8-menu-item[data-s8-view="flow-home"]:before{background-image:var(--packW)}.s8-menu-item[data-s8-view="demobattle"]:before{background-image:var(--atlas_water_6)}.s8-menu-item[data-s8-view="dense-open"]:before{background-image:var(--atlas_kingdoms_37)}.s8-menu-item[data-s8-view="v7-workshop"]:before{background-image:var(--atlas_water_14);border:2px double #d4b373}
.s8-menu .s8-motion{display:block;margin:12px 0 0;min-height:40px;padding:4px 11px;background:#23372c;border-color:#8e805862;color:#dccca8;font-size:13px}
.modal.s8-person{position:relative;width:min(655px,calc(100% - 22px));max-height:calc(100% - 24px);overflow:auto;border:1px solid #b29662;border-radius:6px;background:linear-gradient(115deg,#f0e4c7,#ddc9a1 82%,#d4bd90);color:#3b3223;padding:18px;box-shadow:inset 0 0 0 3px #e4d0a8,inset 0 0 0 4px #af905e80,0 16px 65px #121712b3;text-align:left}
.s8-person .s8-person-title{margin-bottom:10px;border-color:#a48b6866}.s8-person .s8-person-title h2{margin:0;font:700 31px/1.2 var(--s8-ser);color:#342e20}.s8-person .s8-x{background:#c9b58e;border-color:#94815a;color:#413927}
.s8-person-grid{display:grid;grid-template-columns:minmax(110px,35%) 1fr;gap:17px;align-items:start}.s8-person-art{min-width:0;background:#344536;border:1px solid #8f754d;border-radius:4px;padding:4px;box-shadow:0 4px 8px #44382040}
.s8-person .fl-detailpic,.s8-person.fl-detail:has(.v4-trade) .fl-detailpic{float:none;margin:0;width:100%;height:auto;aspect-ratio:.83;max-height:268px;border:0;border-radius:2px;padding:0;overflow:hidden}
.s8-person .fl-detailpic .fl-picture{width:100%;height:100%;display:block;background-size:cover;background-position:50% 23%}
.s8-picstats{display:flex;align-items:center;justify-content:space-around;padding:3px 0 0;color:#f1d8a6}.s8-picstats>span{display:flex;align-items:baseline;gap:2px}.s8-picstats b{font:700 17px/1 Georgia}.s8-picstats small{font:10px system-ui!important;color:#e9d8b5!important}
.s8-person-info{min-width:0}.s8-tags{font:600 12px/1.35 system-ui;color:#6d6048;letter-spacing:.05em;margin-bottom:7px}
.s8-person .s8-unit-text,.s8-person .detail-chiefs{border:0;border-bottom:1px solid #b9a27a99;border-radius:0;background:none;color:#3e3527;padding:6px 0 9px;line-height:1.55;margin:0}
.s8-skill-head{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.s8-skill-head .s8-role{font-size:11px;color:#674a29}.s8-person .s8-skill-head b{font:700 19px/1.22 var(--s8-ser);color:#334d39}.s8-skill-head small{font-size:11px!important;color:#745e38!important}
.s8-person .s8-unit-text p,.s8-person .detail-chiefs p{font-size:14px;line-height:1.55;color:#433b2c;margin:5px 0 1px;text-align:left}
.s8-person .detail-rules{background:none;border:0;padding:0;margin:3px 0}.s8-person .detail-rules p{font-size:12px!important;text-align:left;color:#514832}.s8-origins{color:#524735;border-top:1px solid #aa926d7d;margin:10px 0 0}.s8-origins small,.s8-origins .v4-counts{display:block;color:#62553d!important;margin:3px 0!important;background:none;border:0!important;text-align:left}.s8-person-actions{display:flex;gap:7px;justify-content:flex-end;clear:both}.s8-person-actions button{margin:0;min-height:42px;border-color:#8f8058;color:#e9d7af;background:#334334;font-size:13px}
.s8-person .v4-trade{color:#f2dfb6;background:#354536;border:1px solid #93805a;border-radius:4px;padding:9px;margin-top:8px}.s8-person .v4-trade select{min-height:40px}.s8-person .v4-trade :is(p,small,b,label){color:#ecdfbd}
.s8-order p,.s8-order .v4-terms{color:#e3d5b4}.s8-order .v4-odds{color:#dfd1b1}.s8-order button{min-height:44px}
.s8-draw .draw-copy{position:relative}.s8-draw .draw-copy h1{font-size:clamp(32px,4.1vw,61px);line-height:1.06;margin:5px 0 8px}.s8-draw .draw-copy .tiny{font-family:var(--s8-ser);font-size:13px;color:#dcc494;letter-spacing:.09em}.s8-draw .draw-note{font-size:14px}.s8-draw .draw-count{margin-top:8px}
.s8-draw .draw-chief{border-radius:5px;max-width:min(440px,100%);display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px auto 0;background:linear-gradient(135deg,#283b2ac9,#19291fab);border:1px solid #b09a6659;padding:6px 10px;text-align:left;color:#ead9b2}.s8-draw .draw-chief>i{height:33px;width:33px;border:1px solid #af9767;border-radius:50%;background-size:cover;background-position:center 22%;flex:none}.s8-draw .draw-chief b,.s8-draw .draw-chief span{display:block;line-height:1.2}.s8-draw .draw-chief b{font:600 14px/1.3 var(--s8-ser)}.s8-draw .draw-chief span{font-size:11px;margin-top:1px}.s8-draw .draw-chief .quiet{min-height:34px;font-size:12px;padding:4px 8px}
.s8-draw .draw-body{justify-content:center}.s8-draw .draw-grid{position:relative;isolation:isolate;align-items:center;min-height:0}.s8-draw .draw-card{transform-origin:50% 96%}.s8-draw .draw-card:not(.returned) .s8-retain{color:#eedfb9;background:#344b36d9;border:1px solid #a6956d9c;font-weight:400}
.s8-draw .draw-reading:not(:has(strong)){min-height:0;margin:0}.s8-draw .draw-controls button{min-height:44px}
html[data-pt-motion="full"] .s8-draw .s8-first-deal .draw-card{animation:s8-deal .36s cubic-bezier(.2,.74,.22,1) both;animation-delay:calc(var(--s8-index) * 50ms)}
@keyframes s8-deal{from{opacity:0;transform:translate(20px,-12px) rotate(3deg)}to{opacity:1;transform:translate(0) rotate(0)}}
@media(max-width:680px){
 .ws-dialog.s8-forge{width:calc(100vw - 10px);max-height:calc(100dvh - 12px);border-radius:7px}
 .s8-forge .ws-top,.s8-forge .ws-mode,.s8-forge .ws-layout{margin-inline:11px}
 .s8-forge .ws-top{padding:8px 0 4px}.s8-forge .ws-top h2{font-size:23px}.s8-forge .ws-close,.s8-x{width:44px;height:44px}
 .s8-forge .ws-mode{padding:0 0 6px}.s8-forge .ws-mode button{min-height:40px;min-width:90px}
 .s8-forge .ws-layout{display:flex;flex-direction:column;gap:7px;margin-block:7px 11px}
 .s8-forge .ws-display{border-radius:6px;display:grid;grid-template-columns:minmax(100px,30%) 1fr;grid-template-rows:auto auto;gap:3px 10px;padding:7px 10px}
 .s8-forge .ws-display:before,.s8-forge .ws-display:after{width:38%;left:18%}
 .s8-forge .ws-card{place-self:center;width:min(98px,100%);margin:4px 0 6px}
 .s8-forge .ws-person{width:100%!important;max-width:none;font-size:11px!important;align-self:end}
 .s8-forge .ws-tiers{flex-wrap:nowrap;align-self:start}.s8-forge .ws-tiers button{min-width:0;min-height:40px;padding-inline:6px;font-size:12px;flex:1}
 .s8-forge select,.s8-forge .ws-recipe select{min-height:42px;font-size:13px}
 .s8-forge .ws-recipe{padding:10px 11px}.s8-forge .ws-recipe>h3{font-size:20px}
 .s8-forge .s8-slots{padding:6px 5px 5px;margin:5px 0 3px}.s8-slot-art{width:32px}.s8-slot b{font-size:12px}.s8-slot small{font-size:10px}
 .s8-forge .ws-recipe .ws-check{min-height:40px}.s8-forge .ws-recipe fieldset{max-height:102px}
 .s8-forge .ws-primary,.s8-forge .ws-button{min-height:44px}.s8-forge .ws-check span{font-size:10px}
 .s8-formulas summary,.s8-origins summary,.s8-person .detail-rules summary{min-height:37px;display:list-item;padding:10px 0;font-size:12px}
 .s8-forge .ws-recipe .ws-feedback{font-size:12px;margin-top:3px}
 .modal.s8-menu,.modal.s8-order,.modal.s8-person{max-height:calc(100dvh - 18px);padding:14px}
 .s8-menu .s8-menulist button{min-height:48px;font-size:14px;height:auto}.s8-menulist{gap:5px}.s8-person-grid{grid-template-columns:minmax(86px,30%) 1fr;gap:10px}
 .s8-person .s8-person-title h2{font-size:25px}.s8-person .s8-person-title{margin-bottom:8px;padding-bottom:4px}.s8-person .s8-skill-head{gap:4px}.s8-person .s8-skill-head b{font-size:16px}.s8-person .s8-unit-text p,.s8-person .detail-chiefs p{font-size:13px}.s8-person .s8-person-actions button{min-height:44px}
 .s8-person .fl-detailpic,.s8-person.fl-detail:has(.v4-trade) .fl-detailpic{aspect-ratio:.73;height:auto}
 .s8-draw .draw-chief{margin-top:8px;gap:6px;padding:4px 7px}.s8-draw .draw-chief>i{width:31px;height:34px}.s8-draw .draw-chief .quiet{min-height:42px}
 .s8-draw .draw-copy h1{font-size:clamp(28px,7.5vw,37px)}.s8-draw .draw-count{margin-top:6px}.s8-draw .draw-card:hover{transform:none}.s8-draw .draw-grid{padding-top:16px}
}
@media(max-height:680px) and (max-width:680px){
 .s8-forge .ws-card{width:74px}.s8-forge .ws-layout{margin-block:3px 7px}.s8-forge .ws-top h2{font-size:21px}
 .s8-forge .ws-recipe{padding:7px 8px}.s8-forge .ws-person{font-size:10px!important}.s8-forge .ws-person select{min-height:38px}
 .s8-forge .ws-display{grid-template-columns:82px minmax(0,1fr);padding:3px 5px}.s8-forge .s8-slot-art{width:25px}.s8-forge .ws-recipe fieldset{max-height:83px}
 .s8-draw{padding-block:8px 13px}.s8-draw .draw-copy .tiny{font-size:11px}.s8-draw .draw-note{margin:3px 0;font-size:12px}.s8-draw .draw-chief{margin-top:4px}.s8-draw .draw-grid{padding-block:12px 6px}
}
@media(prefers-reduced-motion:reduce){.s8-draw .draw-card{animation:none!important}}
.modal.s8-person.fl-detail .s8-person-art>.fl-detailpic{position:relative;min-width:0;width:100%;height:auto;max-width:100%;aspect-ratio:.86;display:block;margin:0;padding:0;overflow:hidden;border:0}
.modal.s8-person.fl-detail .s8-person-art>.fl-detailpic>.fl-picture{position:absolute;inset:0;display:block;width:100%;height:100%;background-size:cover;background-position:50% 23%}
@media(max-width:680px){
 .veil:has(.s8-person),.veil:has(.s8-menu),.veil:has(.s8-order){padding:8px}
 .veil .modal.s8-person{width:min(610px,100%);max-width:100%}
 .modal.s8-person.fl-detail .s8-person-art>.fl-detailpic{aspect-ratio:.76}
 .s8-origins summary,.s8-person .detail-rules summary{min-height:44px}
}

/* Raised lacquer board, paired leader seals and an inlaid hand ledge. */
.shell:has(.v6-arena[data-a8]),.shell:has(.cr-page[data-a8]){--a8-ivory:#f4e3bd;--a8-gold:#d7b571;--a8-wood:#30211a;--a8-edge:#856742;--a8-red:#912f24;--a8-jade:#2d6051;--a8-serif:"Songti SC","STSong","Noto Serif CJK SC",serif;background:#17271e}
.shell:has(.v6-arena[data-a8]):before,.shell:has(.cr-page[data-a8]):before{background:linear-gradient(180deg,#141c17b5 0%,transparent 15%,transparent 76%,#16120dec 100%),var(--arenaV8,var(--boardV6)) 50% 50%/100% 100% no-repeat}
.shell:has(.cr-page[data-a8]):after{display:none}
.a8-header{height:48px;background:linear-gradient(180deg,#221e16e8,#1b251ce3);box-shadow:0 2px 0 #a58a552e,0 7px 19px #15161148;padding-inline:clamp(15px,3.4vw,58px)}
.a8-header .brand{width:90px;height:29px}.a8-header .menuBtn{height:38px;width:38px;min-width:44px;min-height:38px;border-radius:4px;border-color:#a0956f66}
.a8-header .v6-battle-title{font:600 16px/1.1 var(--a8-serif);color:#e8d7ac;letter-spacing:.11em}
.a8-header .stageTitle,.a8-turn-hdr{color:#dbd0ac;font:14px var(--a8-serif);letter-spacing:.045em}
.a8-header .stageTitle b{font-size:22px}
.v6-arena[data-a8]{--edge:clamp(20px,5.8vw,115px);--rail:0px;--hand:clamp(124px,20vh,194px);--deck-right:var(--edge);height:calc(100% - 48px);color:var(--a8-ivory)}
.v6-arena[data-a8] .field,.cr-page[data-a8] .cr-board{background:radial-gradient(ellipse at 48% 51%,transparent 17%,#1d2a1e38 74%,#171d1794 100%),linear-gradient(180deg,#4a2d1e35 0%,#5a413116 39%,transparent 52%,#28513b38 95%);border:1px solid #d0b37a75;border-radius:36% 36% 17% 17% / 4% 4% 4% 4%;box-shadow:0 0 0 2px #302d20bb,0 0 0 4px #a48b5259,0 11px 20px #0c161f61,inset 0 0 0 3px #c0ab7224,inset 0 0 55px #10201670}
.v6-arena[data-a8] .field{inset:5px var(--edge) var(--hand);overflow:visible}
.v6-arena[data-a8] .field:before,.cr-page[data-a8] .cr-divider{background:linear-gradient(90deg,transparent,#c7b2797d 22%,#f2dd9f91 50%,#ab955f83 78%,transparent);box-shadow:0 1px 0 #26312896}
.v6-arena[data-a8] .field:after{width:15px;height:15px;border:3px double #ab9964;background:#334539;outline:1px solid #c8ae6f;box-shadow:0 0 0 4px #2a3930}
.v6-arena[data-a8] .enemy-hero{top:10%}.v6-arena[data-a8] .own-hero{top:89.5%}
.v6-arena[data-a8] .enemy-row{top:32.5%}.v6-arena[data-a8] .own-row{top:65.5%}
.v6-arena[data-a8] .entity-row:not(.dense .entity-row){gap:clamp(12px,2vw,37px)}
.v6-arena[data-a8] .hero-box{width:auto;isolation:isolate}
.v6-arena[data-a8] .hero,.cr-page[data-a8] .a8-is-lord{width:clamp(69px,10.4vh,107px);height:clamp(67px,10.1vh,103px);aspect-ratio:auto;padding:5px;overflow:visible;border:2px solid #ecd49d;border-radius:49% 49% 20% 20% / 57% 57% 27% 27%;background:linear-gradient(120deg,#704724,#ead498 17%,#7f673f 35%,#d0a65f 58%,#674128 77%,#c7a26c);box-shadow:0 0 0 2px #534430,0 0 0 4px #b89b5f,0 6px 0 3px #443529,0 11px 15px #172018ab,inset 0 0 0 2px #836d47;position:relative;isolation:isolate}
.v6-arena[data-a8] .hero>i:first-child,.cr-page[data-a8] .a8-is-lord>.cr-face{display:block;position:absolute;inset:4px;border:1px solid #6e573b;border-radius:inherit;background-position:50% 23%;background-size:cover;filter:contrast(1.05);z-index:0}
.a8-plinth{position:absolute;pointer-events:none;z-index:-1;bottom:-5%;left:-15%;width:130%;height:22%;border:1px solid #ba995f;border-radius:50%/45%;background:linear-gradient(#d5b47b,#785b37 23%,#593c24 60%,#b28b4d 78%,#4a382a);box-shadow:0 5px 0 #3b302381,0 9px 11px #131b17b8}
.a8-frame{position:absolute;z-index:1;inset:2px;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 0 #ffffc790,inset 1px 0 #ffe0a469,inset -1px -1px #6c5238a6}
.v6-arena[data-a8] .hero .hp,.cr-page[data-a8] .a8-is-lord .a8-hp{font:700 clamp(18px,3.25vh,30px)/1 Georgia;color:#ffefcd;bottom:-6px;right:-8px;left:auto;width:clamp(26px,3.9vh,38px);height:clamp(26px,3.9vh,38px);border:2px solid #e0c180;background:radial-gradient(ellipse at 40% 30%,#bf6649,#8c392d 67%,#573626);box-shadow:0 2px 0 #4c3023,0 5px 5px #251910a8;z-index:3}
.v6-arena[data-a8] .hero-info{right:calc(100% + 23px);min-width:100px;color:#f7e7c1}
.v6-arena[data-a8] .heroname{font:700 clamp(20px,3vh,31px)/1.12 var(--a8-serif);text-shadow:0 2px 5px #141b17}
.v6-arena[data-a8] .herolabel,.a8-role{display:inline-block;margin-top:5px;padding:2px 7px;border:1px solid #d5ab6b66;letter-spacing:.12em;color:#f1dab0;background:#334c39bf;font:11px/1.2 var(--a8-serif);white-space:nowrap}
.v6-arena[data-a8] .enemy-hero .herolabel,.a8-chief-lord-foe .a8-role{background:#704235cc}
.v6-arena[data-a8] .hero-extra{left:calc(100% + 24px);min-width:74px}
.a8-enemy-cards{display:block;position:relative;width:59px;height:36px;margin:0 auto 2px}
.v6-arena[data-a8] .counter{display:block;text-align:center}
.v6-arena[data-a8] .a8-enemy-cards .a8-back{position:absolute;top:0;left:calc(1px + var(--j)*10px);width:24px;height:33px;transform:rotate(calc((var(--j) - 1.5)*9deg));transform-origin:50% 100%;border:1px solid #c5ae75;border-radius:3px;box-shadow:1px 2px 3px #151916;background:var(--backV6) center/cover}
.a8-enemy-count{font:11px/1 var(--a8-serif);letter-spacing:.07em;color:#d9d0b0}
.v6-arena[data-a8] .hero-ability{gap:4px;color:#ecdebf;font:12px/1 var(--a8-serif)}
.v6-arena[data-a8] .ability-token{width:40px;height:40px;border:3px double #d9b672;background:radial-gradient(circle at 35% 25%,#86a286,#456854 45%,#234735 79%);box-shadow:0 3px 0 #3c352a,0 6px 7px #15201bab,inset 0 0 0 2px #335747;color:#f9e5af}
.v6-arena[data-a8]:not(.ls-dense) .piece{width:clamp(86px,13.5vh,148px);aspect-ratio:.87}
.v6-arena[data-a8] .piece,.cr-page[data-a8] .cr-row .cr-unit{position:relative;isolation:isolate;border:2px solid #ceae6e;border-radius:22% 22% 7% 7% / 13% 13% 7% 7%;background:linear-gradient(115deg,#d8be83 0%,#b59561 15%,#654a2f 32%,#8f6d41 66%,#e2c17f 83%,#735531 100%);box-shadow:inset 0 0 0 1px #f3daad,0 3px 0 #97764c,0 5px 0 #5b422e,0 8px 0 #33291e,2px 14px 14px #07140d8f}
.v6-arena[data-a8] .piece .p-art{border-radius:20% 20% 5% 5% / 11% 11% 5% 5%;background-position:50% 21%;border-color:#67563c}
.v6-arena[data-a8] .piece.is-ready{box-shadow:inset 0 0 0 1px #f2deb2,0 3px #9a8156,0 5px #544631,0 7px 0 1px #70a88a,0 11px 12px #103f29a3,0 0 16px #74cda53e}
.v6-arena[data-a8] .piece:before{height:21%;background:linear-gradient(90deg,#bda37b,#efddb8 27%,#ead6b1 74%,#ac9064);border-color:#8c724b}
.v6-arena[data-a8] .piece .attack,.cr-page[data-a8] .cr-unit .a8-atk{border-radius:50% 50% 20% 20%;background:linear-gradient(140deg,#c49c56,#80562c);border-color:#f4d796}
.v6-arena[data-a8] .piece.guard:after{background:linear-gradient(135deg,#577f66,#294c3c);box-shadow:1px 2px 3px #18231b}
.v6-arena[data-a8] .v6-rail{position:static;display:contents}
.v6-arena[data-a8] .v6-preview{display:none}
.v6-arena[data-a8].a8-reading .v6-preview{display:flex;position:absolute;z-index:7;right:clamp(15px,3.4vw,62px);top:8px;width:clamp(195px,17.5vw,265px);height:auto;max-height:calc(100% - 25px);overflow:auto;border:1px solid #c4a66f;border-radius:5px;background:linear-gradient(108deg,#d0b990,#eedfbd 16%,#decca8 90%,#bca47b);box-shadow:0 2px 0 #655037,0 10px 28px #0e190fe0;color:#343c2c}
.v6-arena[data-a8] .v6-preview-head{padding:8px 6%;font-size:11px}.v6-arena[data-a8] .v6-preview-image{min-height:107px;height:clamp(100px,17vh,165px);flex:none;margin:6% 6% 0;background-position:center 21%}
.v6-arena[data-a8] .v6-preview-body{padding:10px 6%}.v6-arena[data-a8] .v6-preview-title h2{font-size:24px}.v6-arena[data-a8] .v6-printed{font-size:13px;line-height:1.4}.v6-arena[data-a8] .v6-context{margin-top:8px;padding-top:6px}.v6-arena[data-a8] .v6-context p{font-size:11px;line-height:1.45}
.v6-arena[data-a8] .ls-controls.a8-main-ctrl{position:absolute;z-index:5;right:clamp(15px,3vw,63px);top:calc((100% - var(--hand))/2 - 33px);width:clamp(112px,12.7vw,189px);margin:0;padding:9px 8px 10px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;color:#f1d7a2;border:1px solid #ac8e5b;outline:2px solid #473827;border-radius:8px;background:linear-gradient(105deg,#5a4b32,#2e3024 35%,#332f23 70%,#665038);box-shadow:inset 0 0 0 3px #78634066,0 5px 0 #423323,0 9px 13px #12170ea6}
.v6-arena[data-a8] .a8-main-ctrl strong{color:#d9c494;font:600 11px/1.3 var(--a8-serif);letter-spacing:.12em}
.v6-arena[data-a8] .a8-main-ctrl button,.cr-page[data-a8] .cr-buttons button[data-act="chief-next"]{font:700 clamp(14px,1.4vw,20px)/1.2 var(--a8-serif);min-height:45px;width:100%;border:2px solid #caa36d!important;border-radius:5px;background:linear-gradient(115deg,#a75b40 0%,#993e2d 47%,#762f25 83%,#9c5736)!important;color:#fff0c8;box-shadow:inset 0 0 0 2px #c4895c91,inset 0 5px 5px #dba6772e,0 3px #4c2e20;text-shadow:0 1px #693b22;letter-spacing:.06em}
.v6-arena[data-a8] .a8-main-ctrl .ls-report{position:absolute;top:calc(100% + 7px);right:0;width:clamp(160px,21vw,260px);padding:6px 9px;color:#f1e6c5;background:#26372bee;border:1px solid #998259;border-radius:3px;text-align:left;line-height:1.4;font-size:12px}
.v6-arena[data-a8] .a8-action-ctrl{position:absolute;z-index:6;right:clamp(10px,2.4vw,48px);top:11%;width:clamp(205px,21vw,300px);margin:0;padding:11px 13px;background:linear-gradient(120deg,#38503d,#233a2d 70%);border:1px solid #c0a573;border-radius:5px;box-shadow:0 4px 0 #333025,0 9px 15px #0d1c13c9;display:grid;gap:7px}
.v6-arena[data-a8] .a8-action-ctrl strong,.v6-arena[data-a8] .a8-action-ctrl p{color:#eee0b8}.v6-arena[data-a8] .a8-action-ctrl p b{color:#f5c57e}.v6-arena[data-a8] .ls-place{display:grid;grid-template-columns:1fr 1fr;gap:5px}.v6-arena[data-a8] .ls-place .quiet{min-height:44px}
.v6-arena[data-a8] .ls-sheet{left:50%;bottom:min(12px,2vh);transform:translateX(-50%);z-index:9}
.v6-arena[data-a8] .ls-handrow,.a8-chief-dock{left:0;right:0;bottom:0;height:calc(var(--hand) - 4px);border-inline:0;border-top:2px solid #9d7549;border-bottom:0;border-radius:36% 36% 0 0/12% 12% 0 0;background:linear-gradient(180deg,#3e39297d 0%,#27291fb5 6%,#25251de3 65%,#26241a 100%);box-shadow:0 -2px 0 #3b302323,inset 0 4px 0 #7d664035}
.v6-arena[data-a8] .ls-command{left:max(8%,32px);min-width:85px}
.v6-arena[data-a8] .ls-command small,.a8-pool small{display:block;color:#e1c796;letter-spacing:.1em;font:12px var(--a8-serif)}
.v6-arena[data-a8] .ls-command .resources,.a8-pool strong{color:#f8deb0;font:700 clamp(24px,3.6vh,36px)/1.2 Georgia,serif;text-shadow:0 2px #332a20}
.v6-arena[data-a8] .v6-gems,.a8-pool-dots{display:flex;gap:4px;align-items:center;margin-top:3px}
.v6-arena[data-a8] .v6-gems i,.a8-pool-dots i{display:block;width:7px;height:7px;transform:rotate(45deg);border:1px solid #a58b59;background:#283b2f}
.v6-arena[data-a8] .v6-gems .on,.a8-pool-dots .a8-on{background:linear-gradient(135deg,#e3e0ab,#95be9b 48%,#557954)}
.v6-arena[data-a8] .ls-cards,.a8-practice-hand{display:flex;align-items:flex-end;justify-content:center;gap:0;margin-left:0}
.v6-arena[data-a8] .hand-card,.a8-handprint{position:relative;flex:none;width:clamp(77px,11.7vh,127px);height:clamp(113px,17.1vh,183px);border:2px solid #b3945c;border-radius:6px 6px 4px 4px;background:linear-gradient(110deg,#ac926a,#efddb6 32%,#e0caa4 75%,#ad9469);box-shadow:0 3px #80613d,0 5px #4a3828,1px 9px 13px #121710b3;transform:rotate(-8deg) translateY(5%);transform-origin:center 100%;margin-left:-10px;padding:3px}
.v6-arena[data-a8] .hand-card:nth-child(2){transform:translateY(-1%)}.v6-arena[data-a8] .hand-card:nth-child(3){transform:rotate(8deg) translateY(5%)}
.v6-arena[data-a8] .hand-card:focus-visible,.a8-handprint:focus-visible{z-index:4;transform:translateY(-6px);outline:2px solid #f4ce81;outline-offset:2px}
@media(hover:hover){.v6-arena[data-a8] .hand-card:hover,.a8-handprint:hover{z-index:4;transform:translateY(-6px);outline:2px solid #f4ce81;outline-offset:2px}}
.v6-arena[data-a8] .hand-card .c-art{inset:3px 3px 22%;background-position:50% 20%}
.v6-arena[data-a8] .hand-card .cardname{bottom:4%;font-size:clamp(13px,2.2vh,20px)}
.v6-arena[data-a8] .hand-card .cost{width:25px;height:28px;font-size:19px}
.v6-arena[data-a8] .hand-card .attack,.v6-arena[data-a8] .hand-card .hp{bottom:16%;font-size:15px;width:21px;height:21px}
/* Practice uses the same board with independent hero seats, reserve hand and resolving status. */
.cr-page[data-a8]{--edge:clamp(20px,5.8vw,115px);--hand:clamp(130px,20vh,190px);position:relative;display:block;margin:0;width:100%;height:calc(100% - 48px);overflow:hidden;padding:0;color:#f0dfba}
.cr-page[data-a8] .cr-main{height:100%}.cr-page[data-a8] .cr-heading{display:none}
.cr-page[data-a8] .cr-board{position:absolute;inset:5px var(--edge) var(--hand);padding:0}
.cr-page[data-a8] .cr-row,.a8-chief-lord{position:absolute;left:0;right:0;margin:0;display:flex;align-items:center;justify-content:center;transform:translateY(-50%);flex-wrap:nowrap}
.cr-page[data-a8] .a8-foe-row{top:33%}.cr-page[data-a8] .a8-own-row{top:66%}
.a8-chief-lord-foe{top:10%}.a8-chief-lord-own{top:89%}
.cr-page[data-a8] .cr-divider{position:absolute;left:8%;right:8%;top:50%;height:1px;margin:0}
.cr-page[data-a8] .cr-divider:after{content:"";display:block;position:absolute;top:50%;left:50%;width:13px;height:13px;transform:translate(-50%,-50%) rotate(45deg);border:3px double #bfaa75;background:#34503d}
.cr-page[data-a8] .a8-is-lord{display:block;flex:none;min-height:0}
.cr-page[data-a8] .a8-is-lord>b{position:absolute;right:calc(100% + 19px);top:25%;font:700 clamp(15px,2.65vh,27px)/1.25 var(--a8-serif);color:#f0deae;min-width:94px;text-align:right;white-space:nowrap;text-shadow:0 1px 3px #18271d}
.a8-chief-lord .a8-role{position:absolute;right:calc(50% + clamp(52px,7.5vh,81px));top:55%;margin:0}
.cr-page[data-a8] .a8-is-lord>small:not([hidden]){position:absolute;left:calc(100% + 17px);top:38%;min-width:50px;color:#eacb97;font:12px var(--a8-serif);text-align:left}
.cr-page[data-a8] .cr-row{gap:clamp(7px,1.35vw,22px)}
.cr-page[data-a8] .cr-row .cr-unit{flex:none;width:clamp(75px,11.9vh,116px);min-height:0;aspect-ratio:.88;display:block;overflow:visible;padding:3px}
.cr-page[data-a8] .cr-row .cr-face{position:absolute;inset:3px 3px 20%;height:auto;border-radius:20% 20% 4% 4%/12% 12% 3% 3%;border:1px solid #685635;background-position:50% 23%}
.cr-page[data-a8] .cr-row .cr-unit>b{position:absolute;left:3px;right:3px;bottom:3px;margin:0;padding:3px 2px 2px;background:linear-gradient(90deg,#bdab7d,#efdeb8 32%,#e5d5ae 72%,#b8a073);color:#342d22;border-radius:1px 1px 3px 3px;font:700 clamp(12px,1.8vh,17px)/1.15 var(--a8-serif);white-space:nowrap}
.cr-page[data-a8] .a8-training-piece .cr-face{filter:sepia(.48) saturate(.56) contrast(1.06)}
.cr-page[data-a8] .cr-unit .a8-atk,.cr-page[data-a8] .cr-unit .a8-hp{position:absolute;z-index:3;bottom:15%;height:clamp(18px,2.9vh,28px);min-width:clamp(18px,2.9vh,28px);display:grid;place-content:center;padding:1px;color:#fff2cf;border:1px solid #d9b97a;box-shadow:0 2px 1px #362a1c;font:700 clamp(14px,2.1vh,20px)/1 Georgia}
.cr-page[data-a8] .cr-row .a8-atk{left:-6px}.cr-page[data-a8] .cr-row .a8-hp{right:-6px;border-radius:5px 5px 50% 50%;background:linear-gradient(145deg,#ac6346,#7e3e2d)}
.cr-page[data-a8] .a8-is-lord .a8-hp{right:-6px;bottom:-7px;border-radius:5px 5px 45% 45%;width:clamp(27px,3.9vh,38px);height:clamp(27px,3.9vh,38px);font-size:clamp(18px,3vh,29px);background:linear-gradient(145deg,#b76749,#77392d)}
.cr-page[data-a8] .cr-row .cr-unit>small:not([hidden]){position:absolute;top:2px;right:1px;z-index:2;font:650 10px/1.4 var(--a8-serif);padding:1px 3px;color:#fff0c8;border:1px solid #cfb77a;background:#375544;border-radius:2px 2px 4px 4px}
.cr-page[data-a8] .cr-unit.cr-legal{outline:2px dashed #f4d288;outline-offset:3px;box-shadow:0 4px #5f4d30,0 7px #5e826b,0 0 15px #dcce7d60}
.cr-page[data-a8] .cr-unit.cr-active{outline:3px solid #f8d38b;outline-offset:4px}
.cr-page[data-a8] .cr-muted{opacity:.63}.cr-page[data-a8] .cr-unit.a8-hurt .a8-hp{background:linear-gradient(140deg,#c3684d,#8d3326)}
.a8-chief-dock{position:absolute;display:flex;align-items:center;justify-content:center}
.a8-pool{position:absolute;left:max(7%,20px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.a8-practice-hand{height:100%;align-items:center}
.a8-handprint{transform:rotate(calc(5deg * var(--index)));text-align:center;color:#362e20}
.a8-hand-face{position:absolute;inset:3px 3px 22%;border:1px solid #7a673e;border-radius:2px;background:var(--a8-pic) 50% 21%/cover}.a8-hand-back{background:var(--backV6) center/cover}
.a8-hand-fee{position:absolute;top:-5px;left:-4px;border:1px solid #cbb076;padding:2px 5px;background:#325441;color:#fff0c8;border-radius:4px 4px 9px 9px;font:bold 15px Georgia}
.a8-hand-name{position:absolute;left:0;right:0;bottom:3%;font:700 clamp(12px,1.8vh,18px)/1 var(--a8-serif)}
.a8-hand-more,.a8-records>summary{cursor:pointer;display:inline-block;background:linear-gradient(120deg,#334737,#25362b);border:1px solid #a58c5d;border-radius:4px;box-shadow:inset 0 0 0 2px #d4b77518,0 2px 0 #302d22;color:#f5dfb4;padding:7px 11px;font:600 14px var(--a8-serif)}
.cr-page[data-a8] .cr-buttons{position:absolute;right:clamp(14px,3vw,46px);top:50%;transform:translateY(-50%);width:clamp(146px,20vw,260px);display:grid;grid-template-columns:1fr 1fr;gap:5px}
.cr-page[data-a8] .cr-buttons button{padding:5px 6px;min-height:41px;font:650 13px var(--a8-serif)}
.cr-page[data-a8] .cr-buttons button[data-act="chief-next"]{grid-column:1/-1}
.cr-page[data-a8] .cr-status{position:absolute;z-index:4;left:50%;top:calc((100% - var(--hand))/2);transform:translate(-50%,-50%);margin:0;padding:5px 12px;background:linear-gradient(90deg,#1c342bdc,#334c3cf4,#1c342bdc);color:#f1dfb5;border:1px solid #baa16a89;border-radius:2px;text-align:center;max-width:70%;font-size:13px;line-height:1.28}
.cr-page[data-a8] .cr-status:empty{display:none}
.cr-page[data-a8] .cr-side{position:absolute;right:12px;top:9px;z-index:7;margin:0;text-align:right}
.a8-records{position:relative;list-style:none}
.a8-records>summary{font-size:12px;min-height:35px;display:inline-flex;align-items:center}.a8-records>summary::-webkit-details-marker{display:none}
.a8-records[open]{max-height:calc(100dvh - 115px);overflow:auto;width:clamp(205px,24vw,325px);padding:8px;background:linear-gradient(120deg,#263c2e,#1f3027);border:1px solid #b29b69;border-radius:5px;box-shadow:0 7px 20px #111b13ca}
.a8-records[open] summary{margin-bottom:6px}.a8-records .cr-paper,.a8-records .cr-log{text-align:left}.cr-page[data-a8] .cr-paper{padding:10px;font-size:12px}
.a8-reader,.a8-hand-dialog{color:#322d24;max-width:min(90vw,340px);max-height:82dvh;border:2px solid #b39660;border-radius:6px;background:linear-gradient(100deg,#d4bc92,#efdfba 28%,#dfcaa5);padding:15px;text-align:left}
.a8-reader::backdrop,.a8-hand-dialog::backdrop{background:#122018b9}
.a8-reader-art{display:block;width:100%;height:min(28vh,215px);background-size:cover;background-position:50% 24%;border:1px solid #a28a60}
.a8-reader small,.a8-reader h2,.a8-reader p{display:block;margin:7px 0}.a8-reader b{color:#864433}
.a8-hand-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:10px 0}
.a8-hidden-hand{padding:35px 3px 3px;min-width:65px;background:linear-gradient(0deg,#19281dee,transparent 65%),var(--a8-pic) center 20%/cover;color:#ffedc3;border:1px solid #967c4b}
@media(min-width:721px) and (max-width:980px){
 .v6-arena[data-a8],.cr-page[data-a8]{--edge:20px}
 .v6-arena[data-a8] .a8-main-ctrl{right:8px;width:112px}.v6-arena[data-a8] .a8-action-ctrl{right:8px;width:196px}
 .v6-arena[data-a8] .v6-preview{width:191px}
 .cr-page[data-a8] .cr-row .cr-unit{width:min(9.6vw,11.4vh)}.cr-page[data-a8] .cr-buttons{width:145px;right:8px}
 .a8-handprint{width:65px;height:94px}
}
@media(max-width:720px){
 .a8-header{height:44px;padding:0 8px}.a8-header .brand{width:66px;height:24px}.a8-header .v6-battle-title{font-size:13px;letter-spacing:.05em}.a8-header .loc{font-size:9px}
 .a8-header .menuBtn{width:37px;height:37px;min-width:42px}.a8-header .stageTitle,.a8-turn-hdr{font-size:11px}.a8-header .stageTitle b{font-size:17px}
 .shell:has(.v6-arena[data-a8]):before,.shell:has(.cr-page[data-a8]):before{background:linear-gradient(180deg,#25231b81,transparent 20%,transparent 78%,#171a13c2),var(--arenaV8,var(--boardV6)) center/auto 102%}
 .v6-arena[data-a8],.cr-page[data-a8]{--edge:7px;--hand:clamp(112px,16vh,156px);height:calc(100% - 44px)}
 .v6-arena[data-a8] .field,.cr-page[data-a8] .cr-board{inset:7px var(--edge) var(--hand);border-radius:15% 15% 4% 4%/2.5% 2.5% 2% 2%;box-shadow:0 0 0 3px #30281f94,inset 0 0 0 2px #ab8d5438,inset 0 0 24px #172b1e6b}
 .v6-arena[data-a8] .hero,.cr-page[data-a8] .a8-is-lord{width:clamp(54px,8.2vh,76px);height:clamp(52px,8vh,74px);padding:3px;border-width:2px;box-shadow:0 0 0 1px #534430,0 0 0 3px #a28955,0 5px 0 2px #493727,0 7px 9px #142319}
 .v6-arena[data-a8] .hero .hp,.cr-page[data-a8] .a8-is-lord .a8-hp{bottom:-5px;right:-6px;width:23px;height:24px;border-width:1px;font-size:18px}
 .v6-arena[data-a8] .hero-info{right:calc(100% + 16px);min-width:62px}.v6-arena[data-a8] .heroname{font-size:clamp(16px,2.6vh,24px)}
 .v6-arena[data-a8] .herolabel,.a8-role{font-size:9px;padding:2px 5px;margin-top:3px}
 .v6-arena[data-a8] .hero-extra{left:calc(100% + 12px);min-width:64px}
 .a8-enemy-cards{width:39px;height:25px}.v6-arena[data-a8] .a8-enemy-cards .a8-back{width:15px;height:23px;left:calc(var(--j)*7px)}.a8-enemy-count{font-size:9px}
 .v6-arena[data-a8] .ability-token{width:29px;height:29px;font-size:15px}.v6-arena[data-a8] .hero-ability{font-size:10px;gap:2px}
 .v6-arena[data-a8]:not(.ls-dense) .piece{width:clamp(65px,10.8vh,94px)}
 .v6-arena[data-a8] .ls-foot{display:contents}.v6-arena[data-a8] .ls-handrow{position:absolute;left:0;right:0;bottom:0;top:auto;width:100%;height:var(--hand);padding:10px 0 max(6px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#4b412f85,#292d21d9 10%,#262419 100%);border-top:2px solid #a28152;border-radius:30% 30% 0 0/8% 8% 0 0;box-shadow:inset 0 3px 0 #a4885927}
 .v6-arena[data-a8] .ls-cards{margin-left:4px}
 .v6-arena[data-a8] .ls-command{left:7px;min-width:0;width:50px;align-items:center;gap:1px}
 .v6-arena[data-a8] .ls-command small,.a8-pool small{font-size:9px}.v6-arena[data-a8] .ls-command .resources{font-size:19px}
 .v6-arena[data-a8] .v6-gems,.a8-pool-dots{gap:2px;margin-top:1px;max-width:48px;flex-wrap:wrap;justify-content:center}
 .v6-arena[data-a8] .v6-gems i,.a8-pool-dots i{width:4px;height:4px}
 .v6-arena[data-a8] .hand-card,.a8-handprint{width:clamp(48px,14.7vw,65px);height:clamp(71px,11.8vh,99px);margin-left:-6px;border-radius:4px}
 .v6-arena[data-a8] .hand-card .cost,.a8-hand-fee{width:17px;height:19px;font-size:12px;padding:1px;top:-3px;left:-3px}
 .v6-arena[data-a8] .hand-card .attack,.v6-arena[data-a8] .hand-card .hp{width:15px;height:15px;font-size:11px}
 .v6-arena[data-a8] .hand-card .cardname{font-size:12px}
 .v6-arena[data-a8] .ls-controls.a8-main-ctrl{position:absolute;top:auto;right:6px;left:auto;bottom:calc(var(--hand)/2 - 28px);width:clamp(58px,18vw,90px);min-height:54px;padding:4px 3px;gap:2px;border-radius:5px}
 .v6-arena[data-a8] .a8-main-ctrl strong{font-size:8px;letter-spacing:.06em}.v6-arena[data-a8] .a8-main-ctrl button{min-height:40px;padding:2px 1px;font-size:13px;letter-spacing:0}
 .v6-arena[data-a8] .a8-main-ctrl .ls-report{position:fixed;top:auto;bottom:calc(var(--hand) - 1px);left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:92vw;font-size:10px}
 .v6-arena[data-a8].a8-reading .v6-preview{display:none}
 .v6-arena[data-a8] .a8-action-ctrl{z-index:7;position:absolute;inset:auto 5px 8px;width:auto;min-height:52px;padding:7px;display:flex;gap:6px}
 .v6-arena[data-a8] .a8-action-ctrl>div:first-child{flex:1}.v6-arena[data-a8] .a8-action-ctrl strong{font-size:14px}.v6-arena[data-a8] .a8-action-ctrl p{font-size:11px}
 .v6-arena[data-a8].a8-placing{--hand:clamp(143px,21vh,180px)}.v6-arena[data-a8].a8-placing .ls-handrow{display:none}
 .v6-arena[data-a8].a8-placing .a8-action-ctrl{display:grid;justify-content:stretch;gap:8px;min-height:0}
 .v6-arena[data-a8] .ls-place{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}.v6-arena[data-a8] .ls-place .quiet{padding:4px 1px;font-size:11px}
 .v6-arena[data-a8] .ls-sheet{left:50%;bottom:4px;max-height:58%;width:calc(100% - 10px)}
 .v6-arena[data-a8].a8-has-sheet .ls-foot{visibility:hidden}
 .v6-arena[data-a8].ls-dense{--edge:4px;--hand:105px}.v6-arena[data-a8].ls-dense .field{inset-inline:4px}
 .v6-arena[data-a8].ls-dense .entity-row{gap:2px}.v6-arena[data-a8].ls-dense .piece{width:clamp(36px,calc((100vw - 41px)/7),66px);aspect-ratio:.8;border-width:1px}
 .v6-arena[data-a8].ls-dense .ls-controls.a8-main-ctrl{width:73px}.v6-arena[data-a8].ls-dense .unitname{font-size:clamp(8px,2.4vw,12px)}
 .v6-arena[data-a8].ls-dense.a8-has-sheet .field{bottom:clamp(239px,31vh,290px)}
 .cr-page[data-a8] .a8-is-lord>b{right:calc(100% + 14px);min-width:62px;font-size:17px}
 .a8-chief-lord .a8-role{right:calc(50% + clamp(40px,5.8vh,55px));top:53%}
 .cr-page[data-a8] .cr-row{gap:clamp(5px,2vw,12px)}
 .cr-page[data-a8] .cr-row .cr-unit{width:min(17.3vw,9.3vh);min-width:0;aspect-ratio:.81}
 .cr-page[data-a8] .cr-row:has(>.cr-unit:nth-child(6)){gap:3px}.cr-page[data-a8] .cr-row:has(>.cr-unit:nth-child(6)) .cr-unit{width:calc((100% - 24px)/7)}
 .cr-page[data-a8] .cr-row .cr-unit>b{font-size:clamp(9px,2.7vw,12px);padding:2px 0}
 .cr-page[data-a8] .cr-row .a8-atk,.cr-page[data-a8] .cr-row .a8-hp{font-size:13px;height:18px;min-width:18px}.cr-page[data-a8] .cr-row .a8-atk{left:-3px}.cr-page[data-a8] .cr-row .a8-hp{right:-3px}
 .cr-page[data-a8] .cr-row .cr-unit>small:not([hidden]){font-size:8px;padding:0 2px}
 .cr-page[data-a8] .cr-side{top:5px;right:5px}.a8-records>summary{font-size:10px;min-height:33px;padding:5px 8px}
 .a8-records[open]{width:min(77vw,270px);max-height:calc(100dvh - 68px)}
 .a8-chief-head .hdr-right .quiet{min-height:34px;padding:2px 7px;font-size:11px}
 .a8-chief-dock{height:var(--hand);justify-content:flex-start;padding-left:49px;padding-right:120px}
 .a8-pool{left:6px;bottom:calc(var(--hand)/2 - 20px);width:42px;align-items:center;gap:2px}.a8-pool strong{font-size:17px;white-space:nowrap}
 .a8-practice-hand{width:100%}.a8-handprint{width:clamp(38px,12.4vw,56px);height:clamp(62px,9.7vh,85px);margin-left:-9px}.a8-hand-name{font-size:10px}
 .a8-practice-hand:has(>:nth-child(4)) .a8-handprint{margin-left:-20px}
 .cr-page[data-a8] .cr-buttons{right:5px;width:clamp(103px,30vw,131px);gap:3px}.cr-page[data-a8] .cr-buttons button,.cr-page[data-a8] .cr-buttons button[data-act="chief-next"]{min-height:36px;padding:2px 3px;font-size:11px}
 .cr-page[data-a8] .cr-status{font-size:11px;max-width:90%;width:max-content;padding:4px 8px}
}
@media(max-width:720px) and (max-height:670px){
 .v6-arena[data-a8],.cr-page[data-a8]{--hand:107px}
 .v6-arena[data-a8].ls-dense.a8-has-sheet .field{bottom:clamp(255px,43vh,285px)}
 .v6-arena[data-a8].ls-dense.a8-has-sheet .hero{width:37px;height:34px}
 .v6-arena[data-a8].ls-dense.a8-has-sheet .hero .hp{width:17px;height:17px;font-size:13px}
 .v6-arena[data-a8].ls-dense.a8-has-sheet .hero-extra .counter .a8-enemy-cards{display:none}
 .v6-arena[data-a8].ls-dense.a8-has-sheet .own-hero .hero-ability .ability-token{width:23px;height:23px}
}
/* The original hero portrait rule matches all direct <i> elements. Restrict its paint to the portrait. */
.v6-arena[data-a8] .hero>i:first-child{height:auto;width:auto}
.v6-arena[data-a8] .hero>i.a8-frame{inset:1px;width:auto;height:auto;border:0;border-radius:inherit;background:transparent}
.v6-arena[data-a8] .hero>i.a8-plinth{top:auto;right:auto;bottom:-6%;left:-13%;width:126%;height:21%;border:1px solid #af8952;border-radius:50%/46%;background:linear-gradient(#ddc07c,#95703e 25%,#563c25 58%,#aa834a 82%,#4c3423)}
@media(max-width:720px){
 .v6-arena[data-a8] .a8-main-ctrl button{white-space:nowrap;min-height:44px;padding-inline:0;font-size:clamp(11px,3vw,13px);letter-spacing:-.025em}
 .cr-page[data-a8] .cr-buttons{grid-template-columns:minmax(59px,1fr) 42px}
 .cr-page[data-a8] .cr-buttons button,.cr-page[data-a8] .cr-buttons button[data-act="chief-next"]{min-height:44px;white-space:normal}
 .cr-page[data-a8] .cr-buttons [data-act="chief-attack"]{white-space:nowrap}
 .a8-records>summary{min-height:41px}
}

.shell:has(.hh-hall){height:100dvh;min-height:430px;isolation:isolate;background:#192e32}.shell:has(.hh-hall)::before,.shell:has(.hh-hall)::after{display:none}
.hh-hall{position:relative;isolation:isolate;height:100%;overflow:hidden;color:#f7e9cd;background:#22353b var(--hallV8) center 52%/cover no-repeat}
.hh-hall::before,.hh-hall::after{content:"";pointer-events:none;position:absolute;inset:0;z-index:-1}.hh-hall::before{background:linear-gradient(180deg,#07121591,transparent 15%,transparent 66%,#1b171082 100%)}.hh-hall::after{background:radial-gradient(ellipse at 50% 48%,transparent 43%,#07181c26 100%)}
.hh-head{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:clamp(15px,2.3vw,36px) clamp(18px,3.7vw,62px)}.hh-brand{display:flex;align-items:center;gap:16px}.hh-brand img{width:118px;height:auto;filter:drop-shadow(0 1px 2px #172023)}.hh-brand h1{font:650 22px/1.1 var(--v6-serif);letter-spacing:.1em;color:#f4e4c0;margin:0;border-left:1px solid #ccb68099;padding-left:16px;text-shadow:0 2px 5px #172023}
.hh-head .menuBtn{background:#162b2abb;border:1px solid #c8a973;border-radius:50%;box-shadow:0 1px 6px #112121b0}
.hh-hero{position:absolute;inset:17% 9% 28%;display:grid;place-items:center;align-content:center;gap:clamp(5px,1.6vh,18px);pointer-events:none}
.hh-cards{--card:clamp(90px,min(13.3vw,20vh),200px);height:calc(var(--card)*1.46);width:calc(var(--card)*2.65);position:relative;isolation:isolate;filter:drop-shadow(2px 14px 7px #1721198a)}
.hh-portrait{width:var(--card);height:calc(var(--card)*1.34);position:absolute;left:calc(50% - var(--card)/2);top:3%;padding:5px;border:2px solid #cfb077;border-radius:8px 8px 5px 5px;background:linear-gradient(130deg,#d4b278 1%,#755735 25%,#53472d 55%,#9e794e 90%,#e4c58a);box-shadow:inset 0 0 0 1px #584529,0 3px 0 #483623,0 5px 1px #271d19,0 8px 15px #15180f88;transform-origin:50% 97%}
.hh-portrait i{position:absolute;inset:4px 4px 14%;border:1px solid #604a32;background:var(--art) center 22%/cover;border-radius:3px}.hh-portrait b{position:absolute;inset:auto 4px 4px;text-align:center;font:700 clamp(13px,2.7vh,27px)/1.26 var(--v6-serif);color:#382817;border:1px solid #9d8358;background:linear-gradient(100deg,#ccb58a,#f0dcb0 30%,#d6c095)}
.hh-left{transform:translate(-47%,3%) rotate(-17deg)}.hh-right{transform:translate(48%,4%) rotate(15deg)}.hh-center{z-index:2;transform:rotate(-3deg) translateY(-3%)}
.hh-enter{display:grid;justify-items:center;pointer-events:auto;z-index:3;position:relative;margin-top:-12px}.hh-main{position:relative;min-width:clamp(165px,19vw,284px);border:2px solid #594330;border-radius:24% / 48%;min-height:clamp(53px,8vh,83px);padding:4px 30px;color:#fff0c2;background:linear-gradient(#bd9556 0%,#edd69a 5%,#7d5533 10%,#875538 12%,#864737 20%,#8c3e2d 55%,#5b3026 84%,#b39255 89%,#55402a 99%);box-shadow:0 0 0 2px #bda375,0 0 0 4px #503e2d,0 6px 0 3px #3b3026,0 13px 19px #19180ea3,inset 0 0 10px #422e25;transition:filter .12s,transform .12s}
.hh-main span{font:750 clamp(23px,3.8vh,39px)/1 var(--v6-serif);letter-spacing:.16em;text-shadow:0 2px 2px #442b1d}.hh-main:hover{filter:brightness(1.12);transform:translateY(-2px)}.hh-main:active{transform:translateY(2px)}
.hh-saved{background:#22392ee6;border:1px solid #ad945e;color:#f2deb8;border-radius:4px;min-height:32px;margin-top:10px;padding:3px 12px;font:14px var(--v6-serif)}
.hh-objects{position:absolute;display:flex;align-items:flex-end;justify-content:center;gap:clamp(35px,7vw,138px);bottom:max(3.7%,env(safe-area-inset-bottom));width:100%;padding:0 18px}
.hh-object{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;width:clamp(100px,14vw,204px);padding:0 1px 3px;border:0;background:none;color:#ffebbd;isolation:isolate;font-family:var(--v6-serif)}
.hh-prop{width:100%;height:clamp(72px,14.2vh,162px);display:block;margin-bottom:0;background-position:center bottom;background-size:contain;background-repeat:no-repeat;filter:drop-shadow(0 6px 3px #21190dac);transition:transform .15s,filter .15s}.hh-pack .hh-prop{background-image:var(--propPackV8,var(--packW))}.hh-deck .hh-prop{background-image:var(--propDeckV8,var(--backV6))}.hh-forge .hh-prop{background-image:var(--propForgeV8,var(--backV6))}
.hh-object>b{position:relative;display:block;min-width:83%;font:650 clamp(16px,2.7vh,26px)/1.24 var(--v6-serif);letter-spacing:.08em;padding:5px 12px 6px;background:linear-gradient(#6a4e38,#392f26 42%,#383429 80%,#6e5639);border:1px solid #c3a370;border-radius:3px;box-shadow:0 2px #372a20,0 4px 4px #251a13;text-shadow:0 2px #382c20}.hh-object:hover .hh-prop,.hh-object:focus-visible .hh-prop{transform:translateY(-4px);filter:drop-shadow(0 9px 5px #21190d99) brightness(1.13)}.hh-object small{position:absolute;right:0;top:4px;border:1px solid #dabb80;background:#873d31;color:#ffedcb;border-radius:16px;padding:1px 7px;font:600 11px/1.5 -apple-system,'PingFang SC',sans-serif}
@media(max-width:720px){.hh-hall{background-position:50% 47%}.hh-head{padding:16px 13px}.hh-brand{gap:8px}.hh-brand img{width:85px}.hh-brand h1{padding-left:9px;font-size:16px}.hh-hero{inset:17% 4% 30%;gap:3px}.hh-cards{--card:clamp(91px,27.5vw,137px)}.hh-objects{gap:5px;bottom:max(6%,env(safe-area-inset-bottom));padding:0 9px}.hh-object{width:32%;min-height:105px}.hh-prop{height:clamp(72px,14vh,122px)}.hh-object>b{min-width:90%;font-size:17px;min-height:37px;padding:6px 5px}.hh-object small{top:3px;right:1px}.hh-main{min-height:54px;min-width:175px}.hh-main span{font-size:25px}.hh-portrait b{font-size:16px}.hh-saved{min-height:40px}.hh-hall::before{background:linear-gradient(180deg,#122326a3,transparent 19%,transparent 68%,#1c201ba8)}}
@media(max-height:620px) and (min-width:721px){.hh-head{padding-block:12px}.hh-hero{inset:12% 10% 29%}.hh-objects{bottom:3%}}

.hh-prop{filter:url(#hh-sprite-alpha) drop-shadow(0 5px 3px #21190da3)}.hh-object:hover .hh-prop,.hh-object:focus-visible .hh-prop{filter:url(#hh-sprite-alpha) drop-shadow(0 8px 4px #21190d99) brightness(1.1)}

.em8-menu{position:fixed;z-index:52;width:min(254px,calc(100vw - 12px));padding:6px 7px 8px;color:#372b1d;background:linear-gradient(120deg,#eddfbf,#d5bd8c);border:2px solid #9b8051;box-shadow:0 0 0 1px #3b3224,0 7px 15px #1019108c;border-radius:5px}.em8-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ad9568;margin-bottom:4px;padding-left:3px;color:#674b34;font:650 16px var(--v6-serif)}.em8-title button{width:36px;min-height:32px;color:#684e35;background:none;border:0;font-size:21px}.em8-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.em8-opts button{min-height:44px;color:#f6e4c1;background:linear-gradient(#45604d,#253c32);border:1px solid #b9a06d;border-radius:3px;font:650 15px var(--v6-serif)}.em8-opts button:disabled{opacity:.58}.em8-foe{width:245px}.em8-foe .em8-opts{grid-template-columns:.8fr 1.65fr 1fr}.em8-foe .em8-opts button{font-size:13px;padding:3px}.em8-menu p,.em8-wait{display:block;margin:6px 2px 0;color:#493f30;font-size:12px;line-height:1.5}.em8-menu button:focus-visible{outline:3px solid #a45435;outline-offset:-2px}
.em8-bubble{position:fixed;z-index:45;pointer-events:none;max-width:min(195px,48vw);padding:6px 12px 7px;border:2px solid #8c704a;border-radius:11px 11px 11px 3px;background:linear-gradient(108deg,#fff0cd,#e7d0a4);color:#3b2d20;box-shadow:0 3px 6px #16251cb0}.em8-bubble small{display:block;font:600 10px -apple-system,'PingFang SC',sans-serif;color:#795336}.em8-bubble b{font:700 16px/1.3 var(--v6-serif)}
.em8-hint{position:absolute;right:-9px;top:-7px;z-index:4;width:21px;height:15px;padding:0;border:1px solid #b29360;border-radius:7px 7px 7px 1px;background:#f0dcb7;color:#553a25;font:900 13px/9px Georgia;pointer-events:none}.cr-unit[data-hero-side]{position:relative}[data-emote-available=false] .em8-hint{visibility:hidden}html[data-pt-motion=full] .em8-bubble{animation:em8-pop .12s ease-out}@keyframes em8-pop{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}

.em8-own{width:252px;height:155px;padding:0;border:0;background:none;box-shadow:none;isolation:isolate}
.em8-own::before{content:"";position:absolute;inset:14px 31px 18px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#283d33f7 28%,#203328d4 56%,#b09260bb 58%,#1f332bd9 60%,transparent 63%);filter:drop-shadow(0 4px 4px #19241f99)}
.em8-own .em8-title{position:absolute;left:calc(50% - 21px);top:calc(50% - 20px);width:42px;height:40px;border:1px solid #ad8a55;border-radius:50%;background:#34493c;box-shadow:inset 0 0 0 2px #253a31,0 1px 3px #142619;margin:0;padding:0;display:grid;place-items:center}
.em8-own .em8-title b{position:absolute;clip-path:inset(100%);width:1px;height:1px;overflow:hidden}.em8-own .em8-title button{color:#edd7a7;font:700 20px Georgia;width:40px;height:38px}
.em8-own .em8-opts{display:contents}.em8-own .em8-opts button{position:absolute;width:76px;height:44px;min-height:44px;padding:0;border:1px solid #735836;border-radius:40% 30% 37% 24% / 36% 32% 32% 33%;color:#473626;background:linear-gradient(155deg,#fff2cb 0%,#ecd3a1 57%,#c5a376 95%);box-shadow:inset 0 0 0 2px #e2c795,0 0 0 1px #ae9161,0 3px 2px #28291cd6;text-shadow:0 1px #fae5bd;font:700 16px var(--v6-serif)}
.em8-own .em8-opts button:hover:enabled,.em8-own .em8-opts button:focus-visible{background:#fff1bf;box-shadow:inset 0 0 0 2px #a77a3e,0 2px 4px #27251c}
.em8-own [data-em8="0"]{left:39px;top:4px;transform:rotate(-6deg)}.em8-own [data-em8="1"]{right:39px;top:4px;transform:rotate(6deg)}.em8-own [data-em8="2"]{left:4px;top:55px;transform:rotate(-3deg)}.em8-own [data-em8="3"]{right:4px;top:55px;transform:rotate(3deg)}.em8-own [data-em8="4"]{left:39px;bottom:4px;transform:rotate(5deg)}.em8-own [data-em8="5"]{right:39px;bottom:4px;transform:rotate(-5deg)}.em8-own .em8-wait{position:absolute;left:50%;top:calc(50% + 19px);transform:translateX(-50%);margin:0;padding:0 4px;font-size:10px;white-space:nowrap;color:#fff0cc;background:#324838;border-radius:3px}
.em8-foe{border-radius:9px 6px 9px 4px}.em8-foe .em8-opts button{border-radius:8px 6px 8px 5px}
[data-emote-muted=true] .em8-hint{background:linear-gradient(135deg,#e1d3b2 44%,#813d2a 45%,#813d2a 53%,#e1d3b2 54%);color:#493824}


/* Shared shop, receipt, and album rails. Keep the next action in view. */
.shell .cf-header { min-height: 48px; padding-inline: clamp(10px,2.3vw,32px); }
.cf-header :is(.hdr-left,.hdr-right) { gap: clamp(5px,1.3vw,14px); }
.cf-header .cf-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 5px 8px;
  border: 0; border-radius: 4px; background: transparent; color: #f4dfb3; font-weight: 650;
}
.cf-header .cf-back::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.cf-header .hdr-right .fl-link { min-height: 42px; padding: 4px 12px; white-space: nowrap; }
.cf-header .menuBtn { flex: none; width: 40px; height: 40px; }
.cf-header .brand { width: clamp(82px,10vw,140px); }
.cf-header .loc { white-space: nowrap; }
.cf-header .cf-back:hover,.cf-header .hdr-right .fl-link:hover { background: #5f523a60; }
.cf-shop .v3-intro { align-items: end; }
.cf-shop .v3-intro .v3-local {
  flex: 0 1 auto; margin: 0 0 3px; padding: 5px 8px; font-size: 12px; line-height: 1.35;
  color: #e9d7ad; background: #302c20; border: 1px solid #705c40; border-radius: 4px; white-space: nowrap;
}
.cf-shop .v6-grants { align-items: center; gap: 8px; }
.cf-shop .v6-grants [data-act=flow-free-all] { flex: none; min-height: 44px; white-space: nowrap; }
.cf-shop :is(.v3-offer,.v3-offer:last-child) { display: flex; box-sizing: border-box; gap: 7px; align-items: center; justify-content: space-between; }
.cf-shop .v3-offer-act { flex: none; }
.cf-shop .v3-offer-act .v3-pill { min-height: 42px; padding: 6px 10px; white-space: nowrap; }
.cf-shop .v3-offer-act .v3-pill:disabled { white-space: normal; }
.cf-shop [hidden],.cf-editor [hidden] { display: none !important; }

.cf-shop.v8-reveal { display: flex; flex-direction: column; overflow: hidden; padding-bottom: max(5px,env(safe-area-inset-bottom)); }
.cf-shop.v8-reveal > :is(.v3-intro,.v3-reveal-tabs,.fl-receipt-actions) { flex: none; }
.cf-shop.v8-reveal .v3-reveal-cards {
  min-height: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: max-content; align-content: start; overflow-y: auto; overflow-x: clip;
  overscroll-behavior-y: contain; flex: 1; --card-space: clamp(6px,1.25vw,14px); gap: var(--card-space); padding: 5px 5px 14px;
  scrollbar-width: thin; scrollbar-color: #9b8156 transparent;
}
.cf-shop.v8-reveal .v3-reveal-card { min-width: 0; white-space: nowrap; }
.cf-shop.v8-reveal .v3-reveal-card > strong,.cf-shop.v8-reveal .v3-reveal-card > small { text-overflow: ellipsis; overflow: hidden; width:100%; }
.cf-shop.v8-reveal .v3-face { height: clamp(96px,20vh,191px); width: 100%; }
.cf-shop.v8-reveal .v3-reveal-tabs { align-items: stretch; }
.cf-shop.v8-reveal .v3-reveal-tabs button { min-width: min(90px,22%); }
.cf-shop.v8-reveal .fl-receipt-actions {
  min-height: 58px; justify-content: end; align-items: center; gap: 8px; margin: 0;
  border-top: 1px solid #aa8b57; background: #2c2c22; padding: 6px 8px; white-space: nowrap;
}
.cf-shop.v8-reveal .fl-receipt-actions button { min-height: 44px; padding-inline: 14px; }
.cf-shop.v8-reveal .pt-reveal-playing .v3-face::before { animation-duration: 130ms; }
.cf-shop.v8-reveal .pt-reveal-playing .v3-face::after { animation-duration: 195ms; }

.cf-editor .fl-workspace { min-height: 0; }
.cf-editor .fl-library { min-height: 0; overflow: hidden; }
.cf-editor .fl-deckpane { display: flex; flex-direction: column; }
.cf-editor .fl-deckpane .rec-leader-field {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
  gap: 3px 8px; margin: 0 0 7px; padding: 4px 2px 6px; border-bottom: 1px solid #9b805a77;
}
.cf-editor .fl-deckpane .rec-leader-field label { margin: 0; font-size: 13px; white-space: nowrap; }
.cf-editor .fl-deckpane .rec-leader-field select { min-width: 0; width: 100%; max-width: none; min-height: 42px; }
.cf-editor .fl-deckpane .rec-leader-skill { grid-column: 2 / -1; grid-row: 2; min-width: 0; }
.cf-editor .fl-deckpane .rec-leader-help { grid-column: 3; grid-row: 1; }
.cf-editor .fl-decklist { min-height: 0; flex: 1; overflow-y: auto; }
.cf-editor .fl-liblist {
  --cf-columns: 5; --cf-rows: 2; display: grid; grid-auto-flow: row; grid-template-columns: repeat(var(--cf-columns),minmax(0,1fr));
  grid-template-rows: repeat(var(--cf-rows), minmax(138px,1fr)); grid-auto-rows: minmax(118px,1fr); column-gap: clamp(6px,1.2vw,13px);
  row-gap: 7px; margin: 0; padding: 3px 4px 6px; min-height: 0; overscroll-behavior: contain;
  align-content: stretch; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none;
}
.cf-editor .fl-librow { min-width: 0; grid-row: auto; }
.cf-editor .fl-inspect { min-width: 0; }
.cf-editor .fl-libname strong,.cf-editor .fl-libname small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-editor .fl-tools :is(input,select) { min-height: 42px; }
.cf-editor .fl-tools input { flex: 1; max-width: none; }
.cf-editor .v8-pages { min-height: 45px; gap: 9px; }
.cf-editor .v8-leaf-btn { width: 48px; min-height: 44px; }
.cf-editor .v8-leaf-count { min-width: 4.5em; text-align: center; }
.cf-editor .fl-buildfoot {
  display: flex; flex: none; justify-content: flex-end; align-items: center; margin: 8px 0 0; padding: 0;
  gap: 6px; white-space: nowrap;
}
.cf-editor .fl-buildfoot > button,.cf-editor .cf-deck-menu > summary { height: 44px; min-height: 44px; padding-inline: 13px; }
.cf-editor .fl-status {
  width: auto; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin: 0; font-size: 12px;
}
.cf-editor .fl-buildfoot > .gold {
  color: #fbe9c7; background: linear-gradient(#b36a46,#8b482f); border-color: #d09a68;
  box-shadow: 0 2px 0 #532e21; font-weight: 700;
}
.cf-editor .cf-deck-menu { position: relative; }
.cf-editor .cf-deck-menu > summary { list-style: none; display: inline-grid; place-items: center; cursor: pointer; }
.cf-editor .cf-deck-menu > summary::-webkit-details-marker{display:none}
.cf-editor .cf-deck-menu-items {
  display: grid; min-width: 125px; padding: 5px; gap: 3px; position: absolute; z-index: 10; right: 0; bottom: calc(100% + 6px);
  border: 1px solid #967b53; border-radius: 5px; background: #2a3429; box-shadow: 0 5px 16px #0c0c08bb;
}
.cf-editor .cf-deck-menu-items button { min-height: 42px; }

.modal.cf-rec { width: min(550px,100%); height: auto; max-height: min(810px,92dvh); }
.modal.cf-rec .rec-top { padding: 12px 15px; }
.modal.cf-rec .rec-top p { font-size: 12px; }
.modal.cf-rec .rec-top h2 { font-size: 27px; }
.modal.cf-rec .rec-scroll { display: block; overflow-y: auto; min-height: 0; }
.modal.cf-rec .rec-choices { display: grid; grid-auto-flow: row; gap: 14px; padding: 15px; }
.modal.cf-rec .rec-choices fieldset { min-width: 0; margin: 0; }
.modal.cf-rec .rec-choices fieldset:first-child :is(legend,p) { margin-bottom: 0; }
.modal.cf-rec .rec-choices .rec-pill { min-height: 42px; }
.modal.cf-rec .rec-choices .rec-pill[data-act=rec-style] { min-height: clamp(65px,14vh,105px); }
.modal.cf-rec .rec-lead-control select { min-height: 42px; max-width: 100%; }
.modal.cf-rec .rec-lead-control p { line-height: 1.5; }
.modal.cf-rec .cf-rec-advanced > summary,.modal.cf-order .cf-order-terms > summary { cursor: pointer; min-height: 44px; align-content: center; color: #e9cda0; padding: 0 3px; }
.modal.cf-rec .rec-result { padding: 12px; border-radius: 4px; margin: 8px 0 1px; }
.modal.cf-rec .rec-foot { display: block; padding: 9px 12px max(9px,env(safe-area-inset-bottom)); }
.modal.cf-rec .rec-foot > p:empty { display: none; }
.modal.cf-rec .rec-foot > div,.modal.cf-order .cf-order-actions { display: flex; justify-content: end; gap: 7px; }
.modal.cf-rec .rec-foot button,.modal.cf-order .cf-order-actions button { min-height: 44px; white-space: nowrap; }
.modal.cf-rec .rec-alert { margin: 0; }
.modal.cf-order .cf-order-actions { flex-wrap: wrap; margin-top: 12px; }

@media (min-width:721px) and (max-height:730px) {
  .cf-editor .fl-liblist { --cf-columns: 6; --cf-rows: 1; }
}
@media (max-width:720px) {
  .shell:has(.cf-editor,.cf-shop) .cf-header { height: 48px; }
  .cf-header .loc { display: none; }
  .cf-editor,.cf-shop { width: calc(100% - 14px); height: calc(100% - 48px); }
  .cf-shop:not(.v8-reveal) { padding-inline: 1px; }
  .cf-shop .v3-intro .v3-local { font-size: 11px; padding-inline: 6px; }
  .cf-shop .v3-theme-bottom { flex-wrap: nowrap; justify-content: space-between; align-items: center; }
  .cf-shop .v3-theme-bottom .v3-pill { min-height: 42px; padding-inline: 5px; flex: none; }
  .cf-shop .v3-offer .v3-offer-act .v3-pill { font-size: 13px; min-width: 79px; }
  .cf-shop.v8-reveal .v3-reveal-cards { grid-template-columns: repeat(3,minmax(0,1fr)); --card-space: 6px; padding-inline: 2px; }
  .cf-shop.v8-reveal .v3-intro { align-items: center; }
  .cf-shop.v8-reveal .v3-intro h1 { font-size: clamp(27px,7.6vw,34px); }
  .cf-shop.v8-reveal .v3-reveal-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 8px 0 7px; }
  .cf-shop.v8-reveal .v3-reveal-tabs button { min-height: 42px; min-width: 0; padding: 3px; }
  .cf-shop.v8-reveal .v3-face { height: clamp(69px,13vh,108px); }
  .cf-shop.v8-reveal .v3-reveal-card { padding: 3px; }
  .cf-shop.v8-reveal .v3-reveal-card > strong { font-size: 14px; line-height: 1.4; }
  .cf-shop.v8-reveal .v3-reveal-card > small { display:none; }
  .cf-shop.v8-reveal .fl-receipt-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); justify-content: stretch; align-items: center; gap: 5px; padding: 6px 4px; }
  .cf-shop.v8-reveal .fl-receipt-actions button { padding: 4px 2px; }
  .cf-editor .fl-build-title { display: none; }
  .cf-editor .fl-mobiletabs .fl-work { min-height: 43px; flex: 1; }
  .cf-editor .fl-workspace { gap: 0; }
  .cf-editor .fl-liblist { --cf-columns:3; --cf-rows:2; grid-template-rows:repeat(2,minmax(137px,1fr)); padding-inline: 1px; column-gap: 5px; }
  .cf-editor .fl-tools { gap: 3px; }
  .cf-editor .fl-tools select { padding-inline: 3px; max-width: 96px; }
  .cf-editor .fl-tools input { min-height: 40px; padding-inline: 6px; }
  .cf-editor .fl-tools :is(input,select) { font-size: 13px; }
  .cf-editor .fl-libname strong { font-size: clamp(12px,4vw,17px); }
  .cf-editor .fl-libname small { font-size: 10px; }
  .cf-editor .fl-libfoot .fl-add { min-width: 43px; min-height: 43px; padding: 0 2px; }
  .cf-editor .fl-libfoot span { font-size: 9px; white-space: normal; }
  .cf-editor .fl-buildfoot { display: flex; flex-wrap: wrap; gap: 5px; justify-content: end; }
  .cf-editor .fl-buildfoot > button,.cf-editor .cf-deck-menu > summary { min-width: 44px; padding-inline: 9px; }
  .cf-editor .fl-status { font-size: 11px; white-space: normal; }
  .modal.cf-rec .rec-choices { padding: 13px 11px; gap: 12px; }
}

@media (max-width:355px) {
  .cf-shop.v8-reveal .v3-face { height: clamp(58px,10.4vh,83px); }
}

/* A fitted brass counter and a tactile target for moving cards into a deck. */
.cf-editor .cf-deck-fill {
  appearance: none; display: block; flex: none; width: 100%; height: 6px;
  margin: 3px 0 6px; border: 1px solid #a38a58; border-radius: 2px;
  background: #181e16; color: #d9b575; overflow: hidden;
}
.cf-editor .cf-deck-fill::-webkit-progress-bar { background: #181e16; }
.cf-editor .cf-deck-fill::-webkit-progress-value { background: linear-gradient(90deg,#716342,#d9b575); }
.cf-editor .cf-deck-fill::-moz-progress-bar { background: linear-gradient(90deg,#716342,#d9b575); }
.cf-editor .fl-inspect { position: relative; touch-action: manipulation; }
.cf-editor .fl-inspect[draggable=true] { cursor: grab; }
.cf-editor .fl-inspect[draggable=true]:active { cursor: grabbing; }
.cf-editor .cf-copy-badge {
  position: absolute; z-index: 2; top: 3px; right: 3px; min-width: 26px;
  padding: 2px 5px; border: 1px solid #e7c485; border-radius: 2px;
  background: #3c2419; color: #ffedbc; text-align: center;
  box-shadow: 0 1px 4px #21150bb0; font: 700 14px/1.05 var(--display);
}
.cf-editor .cf-drop-ready { outline: 1px dashed #d1b482; outline-offset: -3px; }
.cf-editor .cf-drop-hover { outline: 2px solid #f4cf81; box-shadow: inset 0 0 22px #deaf4c57; }
.cf-editor .fl-deckrow button:focus-visible { outline-offset: 0; }
.cf-card-peek {
  position: fixed; z-index: 30; pointer-events: none; width: min(254px,calc(100vw - 16px));
  padding: 9px 11px 10px; border: 1px solid #b29b6b; border-radius: 4px;
  background: #29291f; color: #f5ead1; line-height: 1.55; font-size: 13px;
  box-shadow: 0 6px 20px #0b1413c7,inset 0 0 0 2px #62573964;
}
.cf-card-peek header {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 9px;
  align-items: baseline; border-bottom: 1px solid #a88a5c73; padding-bottom: 3px; margin-bottom: 4px;
}
.cf-card-peek strong { font-size: 16px; color: #ffead2; }
.cf-card-peek small,.cf-card-peek b { color: #e5c188; }
.cf-card-peek p { margin: 2px 0 0; }

@media (max-width:720px) {
  .cf-editor .fl-mobiletabs [data-tab=deck] { position: relative; overflow: hidden; }
  .cf-editor .fl-mobiletabs [data-tab=deck]::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: var(--deck-fill,0%);
    height: 3px; background: #cb9d4f;
  }
  .cf-editor .fl-libfoot .fl-add:not(:disabled),.cf-editor .fl-deckrow .fl-minus {
    min-width: 44px; min-height: 44px; touch-action: manipulation;
  }
}

/* The wrapped packs use the same shelves for gifts and purchases. */
.cf-shop.v8-shop .v3-intro {
  padding: 1px 0 7px;
}
.cf-shop.v8-shop .v3-intro h1 {
  font-size: clamp(31px,5.5vw,51px);
}
.cf-shop.v8-shop :is(.v6-grants,.v6-paid) {
  min-height: 36px; margin-block: 10px 6px; align-items: center;
}
.cf-shop.v8-shop .v6-paid > small {
  color: #decba4; font-size: 13px;
}
.cf-shop.v8-shop .v3-themes {
  --packH: clamp(146px,24vh,237px);
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-auto-flow: row; justify-items: stretch; row-gap: 7px;
  padding-block: 10px 20px; margin: 0;
}
.cf-shop.v8-shop .v3-theme-bottom {
  justify-content: center; gap: 8px; margin: 3px 0; padding: 0;
}
.cf-shop.v8-shop .v3-theme-bottom .v3-pill {
  position: static; min-width: 66px; min-height: 44px;
}
.cf-shop.v8-shop :is(.cf-paid-shelf,.cf-counter-bundles) .v3-pill:not(:disabled) {
  color: #ffedc5;
  background: linear-gradient(#ad7248,#82442d);
  border: 1px solid #d4a36c;
  box-shadow: inset 0 0 0 1px #d5a16d59,0 2px 0 #4a291c;
}
.cf-shop.v8-shop .cf-paid-shelf .v3-pill,
.cf-shop.v8-shop .cf-counter-bundles .v3-pill {
  font-family: Georgia,serif; font-weight: 700;
}
.cf-shop.v8-shop .cf-counter-bundles {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px; margin-top: 13px;
}
.cf-shop.v8-shop .cf-counter-bundles .v3-offer {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 8px; min-height: 0; padding: 8px 12px; overflow: clip;
  color: #efddbd; border-color: #a17a4e;
  background: radial-gradient(ellipse at 48% 28%,#534435 0%,#333127 59%,#2a241c);
}
.cf-shop.v8-shop .cf-counter-bundles .v3-offer-act {
  align-self: end;
}
.cf-shop.v8-shop .cf-counter-bundles .v3-pill {
  position: static; min-width: 61px; min-height: 44px; padding: 3px 7px;
}
.cf-shop.v8-shop .cf-counter-bundles .v3-pill:not(:disabled)::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
}
.cf-shop.v8-shop .cf-counter-bundles h3 {
  margin: 0; font-size: clamp(14px,2.2vw,20px);
}
.cf-shop.v8-shop .cf-counter-bundles p {
  margin: 4px 0 0; font-size: 11px;
}
.cf-shop.v8-shop .cf-bundle-foils {
  --packH: clamp(58px,10vh,92px);
  grid-column: 1 / -1; justify-self: center;
  display: flex; align-items: center; justify-content: center;
  width: min(100%,calc(var(--packH) * 2.95)); pointer-events: none;
}
.cf-shop.v8-shop .cf-bundle-foils .v3-theme {
  grid-template-rows: var(--packH); gap: 0;
}
.cf-shop.v8-shop .cf-bundle-foils .v8-foil {
  filter: drop-shadow(2px 3px 2px #100e09b5);
}
.cf-shop.v8-shop .v3-theme:focus-within {
  outline: 2px solid #f6d599; outline-offset: 2px; border-radius: 2px;
}

@media (max-width:720px) {
  .cf-shop.v8-shop .v3-themes {
    --packH: clamp(77px,14.8vh,126px);
    gap: 4px; padding: 8px 5px 14px;
  }
  .cf-shop.v8-shop .v3-theme-bottom {
    flex-direction: column; gap: 2px; margin: 1px 0;
    font-size: clamp(12px,3.55vw,17px);
  }
  .cf-shop.v8-shop .v3-theme-bottom .v3-pill {
    min-width: min(100%,61px); padding-inline: 4px;
    font-size: 13px;
  }
  .cf-shop.v8-shop .cf-counter-bundles {
    margin-top: 9px; gap: 5px;
  }
  .cf-shop.v8-shop .cf-counter-bundles .v3-offer {
    padding: 7px 7px 8px; grid-template-columns: minmax(0,1fr);
    gap: 3px;
  }
  .cf-shop.v8-shop .cf-counter-bundles .v3-offer-act {
    justify-content: stretch; margin: 0;
  }
  .cf-shop.v8-shop .cf-counter-bundles .v3-pill {
    flex: 1;
  }
  .cf-shop.v8-shop .cf-bundle-foils {
    --packH: clamp(43px,7.8vh,61px);
  }
}

.cf-shop.v8-shop .cf-counter-bundles .v3-offer:only-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(108px,.45fr) minmax(0,1fr) auto;
}
.cf-shop.v8-shop .v3-offer:only-child .cf-bundle-foils {
  grid-column: auto;
}
.cf-shop.v8-shop .cf-counter-bundles .v3-offer:only-child .v3-offer-act {
  align-self: center;
}

.v8-foil > .pt-pack-sleeve {
  --seal-metal: #d3a874;
  --seal-shadow: #342516;
  --seal-ink: #f8e9cc;
  position: absolute;
  inset: 2% auto auto 50%; height: 96%; aspect-ratio: .61;
  display: block; isolation: isolate; overflow: hidden; pointer-events: none;
  transform: translateX(-50%);
  border-radius: 2px;
  background:
    linear-gradient(100deg,#120a07b8 0%,transparent 7%,#fff8d22c 14%,transparent 29%,transparent 72%,#0e08044d 90%,#fff0bc65 97%,#100904c9),
    linear-gradient(165deg,var(--seal-metal),var(--seal-shadow) 40%,var(--seal-shadow) 76%,var(--seal-metal));
  box-shadow: inset 0 0 0 1px #f5d4a777, inset 0 0 9px #170d06d9;
}
.pt-pack-sleeve[data-work=W] { --seal-metal: #d47348; --seal-shadow: #5b281d; }
.pt-pack-sleeve[data-work=S] { --seal-metal: #c9b290; --seal-shadow: #514139; }
.pt-pack-sleeve[data-work=J] { --seal-metal: #b19a54; --seal-shadow: #2b4036; }
.pt-pack-sleeve[data-work=D] { --seal-metal: #cb99a0; --seal-shadow: #5a374c; }
.pt-pack-sleeve::before,.pt-pack-sleeve::after {
  content: "";
  position: absolute; z-index: 2; inset: 0 0 auto; height: 5.5%;
  background: repeating-linear-gradient(90deg,#160c0869 0 1px,transparent 1px 3px,#ffe2a545 3px 4px),
    linear-gradient(#180d0994,var(--seal-metal) 40%,var(--seal-shadow));
  border-bottom: 1px solid #f5d4a783;
}
.pt-pack-sleeve::after { inset: auto 0 0; transform: rotate(180deg); }
.pt-pack-sleeve > .pt-pack-mark {
  position: absolute; inset: 7% 20% auto; height: 10%;
  background: var(--seal-logo) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px #160e09);
}
.pt-pack-art {
  position: absolute; inset: 19% 6% 21%; display: block;
  background: var(--seal-art) center 36% / cover no-repeat;
  border: 1px solid #f1cf919e;
  box-shadow: inset 0 0 0 1px #1b120b7a;
}
.pt-pack-title {
  position: absolute; inset: auto 0 7% 0; height: 13%;
  display: grid; place-items: center; white-space: nowrap;
  color: var(--seal-ink); text-shadow: 0 1px 1px #170e0b;
  font: 400 clamp(10px,calc(var(--packH) * .117),27px)/1 var(--pt-brush);
}
.cf-shop.v8-shop .cf-bundle-foils .pt-pack-title { font-size: clamp(6px,calc(var(--packH) * .099),10px); }
.cf-shop.v8-shop .v8-foil-light { transform: none; }
@media (hover:hover) {
  .cf-shop.v8-shop .v3-theme:has(.v3-pill:not(:disabled)):hover .v8-foil { transform: translateY(-3px); }
}

.pt-card-trim {
  --rim-dark: #433323;
  --rim-mid: #9d754c;
  --rim-light: #dfbd86;
  --rim-glint: #fff1d0;
  --rim-halo: #f4c78a9c;
  position: absolute; inset: -1px; z-index: 1;
  display: block; overflow: hidden; pointer-events: none;
  border-radius: inherit; border: 1px solid var(--rim-dark);
  box-shadow: inset 0 0 0 1px var(--rim-light), inset 0 0 0 2px var(--rim-mid), 0 1px 2px #251d16a6;
}
.pt-card-trim[data-metal=jade] {
  --rim-dark: #233d35; --rim-mid: #47776b; --rim-light: #a9d0a6;
  --rim-glint: #dbffe2; --rim-halo: #7cdbadba;
}
.pt-card-trim[data-metal=indigo] {
  --rim-dark: #3d294c; --rim-mid: #785897; --rim-light: #d5b6e2;
  --rim-glint: #f0d8ff; --rim-halo: #cf91f0ba;
}
.pt-card-trim[data-metal=gold] {
  --rim-dark: #6a3c21; --rim-mid: #b58032; --rim-light: #f1d38c;
  --rim-glint: #fff2ad; --rim-halo: #ffc961c9;
}
[data-skin-equipped=true][data-skin-tier="1"] .pt-card-trim {
  --rim-dark: #1a4946; --rim-mid: #458e83; --rim-light: #a7d8cb;
  --rim-glint: #d7fff2; --rim-halo: #70e6d0b5;
}
[data-skin-equipped=true][data-skin-tier="2"] .pt-card-trim {
  --rim-dark: #684229; --rim-mid: #b17b3b; --rim-light: #f4daa0;
  --rim-glint: #fff3c6; --rim-halo: #ffbc67da;
}
.pt-card-inlay {
  --bend: clamp(6px,17%,13px);
  --thread: linear-gradient(90deg,var(--rim-light),var(--rim-mid) 70%,transparent);
  --vertical: linear-gradient(var(--rim-glint),var(--rim-mid) 72%,transparent);
  position: absolute; inset: 3px; display: block; border-radius: inherit;
  background:
    var(--thread) left top / var(--bend) 1px no-repeat,
    var(--thread) left bottom / var(--bend) 1px no-repeat,
    var(--vertical) left top / 1px var(--bend) no-repeat,
    var(--vertical) right top / 1px var(--bend) no-repeat,
    radial-gradient(circle,var(--rim-glint) 27%,var(--rim-mid) 46%,transparent 53%) top right / 5px 5px no-repeat,
    radial-gradient(circle,var(--rim-glint) 27%,var(--rim-mid) 46%,transparent 53%) bottom left / 5px 5px no-repeat,
    radial-gradient(circle,var(--rim-glint) 27%,var(--rim-mid) 46%,transparent 53%) bottom right / 5px 5px no-repeat;
}
.v8-card-pips,.v8-reveal-stats { z-index: 2; }
.live-chief-face > .pt-card-trim { inset: 0; border-radius: 50%; }
.live-chief-face .pt-card-inlay,.live-chief-face .pt-card-sparks { display: none; }
/* Lit corners and moving sparks live above the rail, with no paint over the illustration. */
.pt-card-sparks { position: absolute; inset: 2px; border-radius: inherit; }
.pt-card-sparks > i {
  position: absolute; top: 0; left: 0;
  width: 3px; height: 3px; border-radius: 50%; opacity: 0;
  background: var(--rim-glint); box-shadow: 0 0 5px 1px var(--rim-halo);
}
.pt-card-sparks > i:nth-child(2) { --time: 225ms; width: 2px; height: 2px; }
.pt-card-sparks > i:nth-child(3) { --time: 490ms; transform: rotate(45deg); border-radius: 0; }
.pt-card-trim[data-metal=gold] .pt-card-sparks > i:nth-child(3) { background: #ffb36f; }
.pt-card-trim[data-metal=bronze] .pt-card-sparks > i:last-child,
.pt-card-trim[data-metal=jade] .pt-card-sparks > i:last-child { display: none; }
[data-skin-equipped=true] .pt-card-trim .pt-card-sparks > i:last-child { display: block; }
.pt-reveal-pending .pt-card-trim { visibility: hidden; }
.pt-reveal-playing .pt-card-trim { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  html[data-pt-motion=full] :is(.fl-inspect:focus-visible,.v3-reveal-card:focus-visible,.live-card-active,.live-source) .pt-card-sparks > i {
    animation: pt-card-ember 1.35s linear var(--time,0ms) both;
  }
  html[data-pt-motion=full] .pt-reveal-playing .pt-card-sparks > i {
    animation: pt-card-ember .235s ease-out var(--pt-reveal-delay,0ms) both;
  }
  html[data-pt-motion=full] [data-pt-skin-stage][data-skin-tier="2"] .pt-card-sparks > i {
    animation: pt-card-ember 3.8s linear var(--time,0ms) infinite;
  }
}
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
  html[data-pt-motion=full] :is(.fl-inspect,.v3-reveal-card,.pt-live-card,.live-unit,[data-pt-skin-stage]):hover .pt-card-sparks > i {
    animation: pt-card-ember 1.35s linear var(--time,0ms) both;
  }
}
@keyframes pt-card-ember {
  0% { left: 1%; top: 0; opacity: 0; }
  12% { opacity: 1; }
  25% { left: calc(100% - 3px); top: 0; }
  50% { left: calc(100% - 3px); top: calc(100% - 3px); opacity: .9; }
  75% { left: 1%; top: calc(100% - 3px); }
  89% { opacity: .55; }
  100% { left: 1%; top: 0; opacity: 0; }
}
