:root{color-scheme:dark;--ink:#121017;--panel:#201922;--wine:#682c3c;--gold:#c7a365;--gold-light:#f0d6a1;--paper:#f3e7ce;--text:#ebe1cc;--muted:#a49889;--line:#65513c;--red:#ef857b;--green:#92d3a6;--blue:#9ec8e6;--font:"Microsoft YaHei","Noto Sans CJK SC",sans-serif;--display:"Georgia","STZhongsong","SimSun",serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ink);font-family:var(--font);color:var(--text);font-size:16px}button,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:2px solid var(--gold-light);outline-offset:5px}button{border:0}button:hover:not(:disabled){filter:brightness(1.12)}button:active:not(:disabled){transform:translateY(2px)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display)}p{line-height:1.8}b{font-weight:600}small{font-size:12px}em{font-style:normal;color:var(--muted)}.icon{width:22px;height:22px;vertical-align:middle;flex-shrink:0}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:46px;padding:12px 24px;background:transparent;letter-spacing:.05em;transition:filter .15s,transform .15s}.button.primary{background:var(--gold);color:#251b17;box-shadow:inset 0 0 0 1px #f2d79e,inset 0 -4px 0 #987847,0 5px 0 #271b1b;font-weight:700;clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px)}.button.secondary{border:1px solid var(--line);background:#251e25;box-shadow:inset 0 0 0 3px #17131b}.button.text-button{padding:8px 14px;min-height:36px;color:var(--muted);font-size:14px}.button.text-button:hover{color:var(--gold-light)}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;min-height:40px;padding:8px;background:transparent;color:var(--gold);font-size:20px}.eyebrow{font:11px Georgia,serif;letter-spacing:.2em;color:var(--gold);text-transform:uppercase}.scene{min-height:100vh;position:relative;isolation:isolate;background:#171218}.scene:before{content:"";position:absolute;inset:0;z-index:-2;background:url('../assets/backgrounds/arena.png') center 42%/cover no-repeat;image-rendering:pixelated}.scene:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#100c13bd,#151019d9 45%,#120e17f5)}.topbar{height:76px;padding:0 32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #76573a66;background:#151019cc;gap:20px}.wordmark{display:flex;align-items:center;gap:10px;background:transparent;text-align:left;min-width:210px}.wordmark img{width:42px;height:42px}.wordmark span{font-family:var(--display);font-size:20px;letter-spacing:.14em}.wordmark small{display:block;font-size:8px;letter-spacing:.15em;color:var(--gold);margin-top:4px}.chapter-label{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);letter-spacing:.12em}.chapter-label i{width:6px;height:6px;background:var(--gold);transform:rotate(45deg)}.top-tools{display:flex;align-items:center;gap:24px;min-width:230px;justify-content:flex-end}.hero-status,.gold{display:flex;align-items:center;gap:6px}.hero-status{color:var(--red)}.hero-status>span{font-size:12px;color:var(--muted)}.gold{color:var(--gold-light)}.gold .icon{width:19px}.page-heading{text-align:center;padding:35px 20px 20px}.page-heading h1{font-size:36px;font-weight:600;letter-spacing:.08em;margin:11px 0}.page-heading p{color:var(--muted);font-size:14px}.ornament{display:flex;align-items:center;gap:14px;color:var(--gold);width:240px;margin:24px 0}.ornament span{height:1px;flex:1;background:#aa844b77}.ornament b{font-size:12px;font-weight:400}
.sprite{display:inline-block;width:128px;height:128px;background-image:var(--sprite);background-size:400% 100%;background-repeat:no-repeat;image-rendering:pixelated;animation:idle-frames 1s steps(1,end) infinite;pointer-events:none}@keyframes idle-frames{0%{background-position:0 0}25%{background-position:33.3333% 0}50%{background-position:66.6667% 0}75%,100%{background-position:100% 0}}
.title-screen{overflow:hidden;height:100vh;min-height:680px}.title-screen:after{background:linear-gradient(90deg,#151019ed 5%,#151019bb 45%,#17101966),linear-gradient(0deg,#100d15 2%,transparent 40%,#1b132844)}.title-top{height:76px;display:flex;justify-content:space-between;align-items:center;padding:0 45px}.title-top>div{display:flex;gap:12px}.title-composition{display:flex;max-width:1320px;margin:0 auto;min-height:calc(100vh - 160px);align-items:center;padding:35px 50px}.title-copy{width:50%;position:relative;z-index:3}.title-crest img{width:64px;margin-bottom:18px}.title-overline{display:block;color:var(--gold);font:11px Georgia;letter-spacing:.32em;margin-bottom:18px}.title-copy h1{font-size:clamp(54px,6vw,94px);letter-spacing:.15em;line-height:1.05;font-weight:800;text-shadow:4px 4px 0 #0b080d;color:#eed5a1}.title-copy h1 span{display:block;font-size:.84em;margin-top:12px}.english-title{font:16px Georgia;letter-spacing:.27em;color:var(--gold);margin-top:24px}.title-copy p{font-size:16px;color:#c3b4a2}.title-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px;max-width:420px}.title-actions .primary{min-width:250px;min-height:53px;font-size:17px}.title-actions .text-button{padding-left:0}.title-tableau{position:relative;width:50%;height:560px}.title-hero{position:absolute;left:28%;top:4%;filter:drop-shadow(0 18px 6px #09060977)}.title-hero .sprite{width:340px;height:340px}.floating-card{position:absolute;filter:drop-shadow(4px 8px 3px #0b080c80);animation:float 5s ease-in-out infinite}.floating-card.one{left:5%;top:22%;transform:rotate(-17deg);z-index:0}.floating-card.two{right:0;top:29%;transform:rotate(14deg);animation-delay:-1s}.floating-card.three{left:31%;top:53%;transform:rotate(-5deg);animation-delay:-3s}.floating-card .playing-card{width:130px;height:190px}.title-suit{position:absolute;font:210px Georgia;color:#d2a3640a;text-shadow:0 0 1px #b5874333}.suit-one{top:-25px;left:0}.suit-two{bottom:80px;right:-20px}.tableau-caption{position:absolute;bottom:12px;left:20%;text-align:center;white-space:nowrap}.tableau-caption span{font:10px Georgia;letter-spacing:.24em;color:var(--gold);display:block}.tableau-caption b{font-size:13px;font-weight:400;color:#b5a38f;display:block;margin-top:12px}.title-footer{position:absolute;bottom:24px;left:45px;right:45px;display:flex;justify-content:space-between;font-size:11px;color:#968975;letter-spacing:.08em}@keyframes float{50%{translate:0 -9px}}
.selection-screen,.map-screen,.reward-screen,.service-screen,.shop-screen,.end-screen{padding-bottom:24px}.hero-layout{display:grid;grid-template-columns:1fr 290px;gap:32px;max-width:1320px;margin:4px auto 20px;padding:0 36px}.hero-roster{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hero-pedestal{position:relative;padding:22px 10px;background:#18131e80;border:1px solid #4b3c3540;text-align:center;transition:border-color .2s,background .2s;overflow:hidden}.hero-pedestal.selected{border-color:var(--gold);background:#3b2c2880;box-shadow:inset 0 0 0 4px #171218,inset 0 0 0 5px #6a53394d}.hero-roster-title{font-size:11px;color:var(--muted);letter-spacing:.15em}.portrait-stage{height:185px;display:flex;justify-content:center;align-items:center;position:relative}.portrait-stage:before{content:"";position:absolute;width:160px;height:150px;background:radial-gradient(ellipse,var(--hero-color),transparent 70%);opacity:.13}.portrait-stage .sprite{width:210px;height:210px;position:relative;z-index:1}.pedestal-base{height:15px;width:80%;margin:-20px auto 10px;background:#2c2428;border-top:2px solid var(--line);border-bottom:4px solid #0e0b12;clip-path:polygon(15% 0,85% 0,100% 100%,0 100%)}.hero-pedestal h2{font-size:25px;margin-top:15px}.hero-pedestal p{font-size:11px;color:var(--muted);margin:9px 0}.hero-numbers{display:flex;justify-content:center;gap:14px;font-size:11px;color:#c8b598}.hero-details{border-left:1px solid #6c523d70;padding:12px 0 0 26px}.hero-details h2{font-size:27px;margin:12px 0}.hero-details>p{font-size:13px;color:#c2b6a5}.skill-list{margin:20px 0 12px}.skill-list>div{display:flex;gap:10px;align-items:flex-start;margin:11px 0}.skill-list p{font-size:12px;line-height:1.7}.suit-badge{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;background:#30242b;font:23px Georgia;flex-shrink:0}.suit-badge.H,.suit-badge.D,.starter-suit.H,.starter-suit.D{color:var(--red)}.suit-badge.C{color:var(--blue)}.insight{display:flex;gap:8px;font-size:11px;color:var(--gold);line-height:1.6;border-top:1px solid #79603c55;padding-top:12px}.insight .icon{width:18px}.starter-preview{margin-top:18px;font-size:11px;color:var(--muted)}.starter-preview>span{display:block;margin-bottom:10px}.starter-preview>div{display:flex;flex-direction:column;gap:5px}.starter-suit b{font:11px Georgia;color:#d3c5ad;margin-left:8px}.starting-section{max-width:1320px;margin:26px auto 0;padding:0 36px;display:flex;gap:25px;align-items:center}.starting-label{width:150px;flex-shrink:0}.starting-label h3{font-family:var(--font);font-size:14px;margin-top:10px;line-height:1.7}.starting-relics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;flex:1}.starting-relic{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;background:#19141c;border:1px solid #4b3a314f;min-height:100px}.starting-relic.selected{border-color:var(--gold);background:#352728}.starting-relic .relic-art{width:50px;height:50px;flex-shrink:0}.starting-relic b{font-size:13px;display:block;margin-bottom:7px}.starting-relic small{font-size:11px;line-height:1.6;color:var(--muted);display:block}.selection-footer{max-width:1320px;margin:26px auto 0;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:24px}.seed-label{margin-left:auto;color:var(--muted);font-size:11px}.seed-label input{width:120px;margin-left:10px;border:1px solid #554439;background:#17111b;padding:9px 10px;font:13px monospace;color:var(--gold-light)}
.insight-banner{max-width:700px;margin:0 auto 22px;padding:10px 20px;background:#1c171ca3;border-top:1px solid #72543955;border-bottom:1px solid #72543955;color:#bfa77c;font-size:11px;display:flex;justify-content:center;align-items:center;gap:12px;line-height:1.6}.insight-banner .icon{width:18px}.route-fan{display:flex;justify-content:center;gap:24px;max-width:1160px;margin:0 auto;padding:0 32px}.route-card{position:relative;display:flex;flex-direction:column;max-width:325px;width:100%;background:#221a21;border:1px solid #87704b;box-shadow:inset 0 0 0 4px #151118,inset 0 0 0 5px #5c493633,0 14px 0 #0d09104d;padding:18px 20px 0;text-align:left;transition:translate .2s,border-color .2s;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)}.route-card:hover{translate:0 -7px;border-color:var(--gold-light)}.route-card.elite{background:#2d1a23;border-color:#b36a68}.route-upper{display:flex;justify-content:space-between;align-items:flex-start;height:52px;gap:10px}.route-corner{font:22px Georgia;color:var(--gold-light);display:flex;flex-direction:column;gap:0;align-items:center}.route-corner i{font-style:normal;font-size:20px}.route-type{color:#b1a18c;font-size:10px;letter-spacing:.1em;margin-top:4px}.risk{font-size:10px;border:1px solid #66523f;padding:4px 7px;color:#c8b79b;margin-top:0}.risk.danger{color:#dc9f90;border-color:#945449}.route-portrait{position:relative;height:123px;display:flex;justify-content:center;align-items:center;margin:-10px 0 8px}.route-portrait .sprite{height:155px;width:155px;z-index:2}.route-watermark{position:absolute;font:140px Georgia;color:#c7a3650d;top:-17px}.route-details{padding:8px 0 15px;flex:1}.route-details .eyebrow{font-size:10px;letter-spacing:.12em}.route-details h2{font-size:24px;margin:10px 0}.route-details p{font-size:12px;color:#b5a89a;min-height:44px}.enemy-preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px;border-top:1px solid #6a533933;padding-top:12px}.enemy-preview>span{font-size:10px;color:#d5c7b1;display:flex;flex-direction:column;gap:5px;min-width:90px}.enemy-preview small{font-size:10px;color:#a99985}.route-reward{display:flex;justify-content:space-between;align-items:center;font-size:10px;border-top:1px solid #6f57334d;padding:13px 0;color:#c8ac79;gap:5px}.route-reward .icon{width:15px;height:15px}.route-select{padding:12px 0;text-align:center;background:#b3915330;border-top:1px solid #9c7c414d;color:var(--gold-light);font-size:12px;letter-spacing:.05em;margin:0 -20px}.route-select .icon{width:16px;height:16px;margin-left:12px}.journey-strip{display:flex;justify-content:center;max-width:980px;margin:35px auto 30px;gap:0;padding:0 20px}.journey-node{position:relative;flex:1;text-align:center;color:#665c58}.journey-node:before{content:"";position:absolute;height:1px;background:#50403780;top:16px;left:50%;width:100%;z-index:-1}.journey-node:last-child:before{display:none}.journey-node>span{display:flex;align-items:center;justify-content:center;font:18px Georgia;border:1px solid #5a493a;width:32px;height:32px;margin:auto;background:#201920}.journey-node small{display:block;margin-top:7px;font-size:10px}.journey-node.current>span{color:#21151a;background:var(--gold);box-shadow:0 0 0 3px #c7a36520}.journey-node.passed>span{color:var(--gold);background:#302124}.journey-node.current b{position:absolute;bottom:-23px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:9px;letter-spacing:.05em;color:var(--gold);font-weight:400}.map-footer{display:flex;justify-content:space-between;align-items:center;max-width:1160px;margin:0 auto;padding:12px 32px;color:var(--muted);font-size:11px;gap:18px}.map-footer>div{display:flex;gap:8px}.contract-art{height:143px;display:flex;justify-content:center;align-items:center;color:var(--gold)}.contract-art>.icon{width:72px;height:72px;stroke-width:.85;filter:drop-shadow(0 0 16px #cca16733)}.contract-card .route-details p,.service-route .route-details p{min-height:58px;font-size:13px}.route-details em{display:block;font-size:11px;margin-top:18px}.contract-card .route-details h2,.service-route .route-details h2{font-size:28px}.discount-tag{display:block;margin-top:14px;font-size:11px;color:var(--gold-light)}.service-route{min-height:358px}.boss-route{max-width:530px;width:530px;border-color:#c39955;background:#321f2a}.boss-route .route-portrait{height:170px;margin-top:8px}.boss-route .route-portrait .sprite{width:235px;height:235px}.boss-route .route-details{text-align:center}.boss-stats{display:flex;justify-content:center;gap:28px;font-size:14px;color:#d6b584;margin-top:18px}
.playing-card{position:relative;display:block;width:140px;height:202px;border:2px solid #bba780;outline:1px solid #514334;outline-offset:2px;background:var(--paper);color:#272326;box-shadow:inset 0 0 0 5px #f9f0dc,inset 0 0 0 6px #c4b495,3px 5px 0 #09060c80;border-radius:3px;font-family:Georgia,serif;flex-shrink:0}.playing-card.red{color:#a8403f}.card-corner{position:absolute;top:10px;left:11px;display:flex;flex-direction:column;align-items:center;font-size:21px;line-height:1.04}.card-corner b{font-weight:700}.card-corner i{font-style:normal;font-size:24px;margin-top:3px}.card-corner.bottom{top:auto;left:auto;bottom:10px;right:11px;transform:rotate(180deg)}.card-art{position:absolute;inset:35px 26px 35px;display:flex;align-items:center;justify-content:center}.center-suit{font-size:68px;line-height:1}.royal-mark{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid currentColor;width:65px;height:96px}.royal-mark .icon{width:38px;height:38px;stroke-width:1.1}.royal-mark span{font-size:31px;margin-top:7px}.card-mult{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.02em;white-space:nowrap}.enchant-seal{position:absolute;top:-6px;right:-8px;width:34px;height:34px;background:#a48048;color:#fff0cd;display:flex;align-items:center;justify-content:center;transform:rotate(9deg);font-size:13px;border:2px solid #f1d49b;box-shadow:2px 2px 0 #31211e}.playing-card.joker{background:#38253d;color:#e2bf78;border-color:#a4824d;box-shadow:inset 0 0 0 5px #2c1f33,inset 0 0 0 6px #a4824d77}.playing-card.curse-card{background:#292328;color:#b18499;border-color:#7c5369;box-shadow:inset 0 0 0 5px #21191f,inset 0 0 0 6px #7c536977}.joker .card-corner b,.curse-card .card-corner b{font-size:8px;letter-spacing:.05em;writing-mode:vertical-rl}.joker .card-art>.icon,.curse-card .card-art>.icon{width:67px;height:67px;stroke-width:1.2}.playing-card.small{width:74px;height:108px;border-width:1px;outline-offset:1px;box-shadow:inset 0 0 0 3px #f9f0dc,inset 0 0 0 4px #c4b495,2px 3px 0 #09060c80}.small .card-corner{top:6px;left:7px;font-size:14px}.small .card-corner i{font-size:15px;margin-top:1px}.small .card-corner.bottom{top:auto;left:auto;bottom:6px;right:7px}.small .card-art{inset:22px 15px 23px}.small .center-suit{font-size:35px}.small .royal-mark{width:33px;height:49px}.small .royal-mark .icon{width:20px;height:20px}.small .royal-mark span{font-size:17px;margin-top:2px}.small .card-mult{font-size:7px;bottom:5px}.small .enchant-seal{width:24px;height:24px;font-size:10px;top:-5px;right:-5px;border-width:1px}.small.joker{box-shadow:inset 0 0 0 3px #2c1f33,inset 0 0 0 4px #a4824d77}.small.curse-card{box-shadow:inset 0 0 0 3px #21191f,inset 0 0 0 4px #7c536977}.small .card-art>.icon{width:30px;height:30px}.card-back{position:relative;width:74px;height:108px;background:repeating-linear-gradient(45deg,#582d38 0 3px,#472432 3px 6px);border:2px solid #967449;box-shadow:inset 0 0 0 4px #281b24,inset 0 0 0 5px #ad89506e,2px 4px 0 #100a11;display:flex;align-items:center;justify-content:center}.card-back span{font:36px Georgia;color:#cbb188}.card-back:before{content:"";position:absolute;inset:15px;border:1px solid #cbb18875;transform:rotate(0deg)}.card-back.muted{opacity:.5}
.relic-art{width:74px;height:74px;background:#1d1820;display:inline-flex;justify-content:center;align-items:center;color:var(--relic-color,var(--gold));border:1px solid #82613e;box-shadow:inset 0 0 0 4px #171219,inset 0 0 0 5px #5f493542;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}.relic-art .icon{width:36px;height:36px;stroke-width:1.3}.relic-art.rare{border-color:#bb9cc2;background:#2a1d2b}.mini-relic{background:transparent;padding:0}.mini-relic .relic-art{width:40px;height:40px;clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}.mini-relic .icon{width:22px;height:22px}.mini-relic.triggered{animation:relic-trigger .55s ease-out}@keyframes relic-trigger{20%{filter:brightness(2.4);translate:0 -6px}100%{filter:brightness(1);translate:0 0}}.relic-tile{display:flex;flex-direction:column;align-items:center;text-align:center;background:#221b25;border:1px solid #796041;padding:24px 24px 30px;min-width:220px;max-width:300px;min-height:305px;transition:translate .2s}.relic-tile:hover{translate:0 -6px}.relic-tile.rare{border-color:#9e789e;background:#2a1d2e}.relic-tile .rarity{font-size:10px;color:var(--gold);letter-spacing:.2em;margin-bottom:22px}.relic-tile.rare .rarity{color:#c7a0d1}.relic-tile .relic-art{width:86px;height:86px}.relic-tile h3{font-size:24px;margin:20px 0 14px}.relic-tile p{font-size:13px;color:#c4b7a4;flex:1}.relic-tile em{font-size:11px;margin-top:24px}.victory-income{display:flex;justify-content:center;align-items:center;gap:30px;margin:8px 0 28px;color:var(--gold-light);font-size:14px}.promotion{color:#aaca9e;font-size:12px}.reward-choices{display:flex;justify-content:center;gap:38px;padding:20px}.card-reward{background:transparent;min-width:200px;display:flex;flex-direction:column;align-items:center;transition:translate .2s}.card-reward .playing-card{width:172px;height:248px}.card-reward .card-art{inset:40px 30px}.card-reward .center-suit{font-size:86px}.card-reward h3{font-size:24px;margin:25px 0 8px}.card-reward p{font-size:13px;color:var(--muted)}.card-reward>span{font-size:12px;color:var(--gold);margin-top:18px}.card-reward>span .icon{width:16px}.card-reward:hover{translate:0 -10px}.reward-footer{text-align:center;margin-top:30px}.reward-footer p{font-size:11px;color:var(--muted);margin-top:20px}
.battle-screen{height:100vh;min-height:660px;display:flex;flex-direction:column;overflow:hidden}.battle-screen:after{background:linear-gradient(180deg,#18111d44 0%,#1e162033 55%,#110c17e6 85%)}.battle-screen:before{background-position:center 34%;background-size:cover}.battle-topline{height:59px;padding:0 35px;display:flex;align-items:center;justify-content:space-between;background:#18131b77;border-bottom:1px solid #66523833;z-index:2}.battle-location{display:flex;gap:15px;align-items:center}.battle-location b{font-size:14px;font-weight:500}.battle-location small{font-size:11px;color:#c2ae90}.battle-clock{font:17px Georgia;color:var(--gold-light);letter-spacing:.1em}.battle-controls{display:flex;gap:10px;align-items:center}.speed-button{padding:5px 10px;border:1px solid #80643d44;background:#16121a66;color:#a29380;font:13px Georgia}.speed-button.active{color:var(--gold-light);border-color:var(--gold)}.arena-stage{position:relative;flex:1;min-height:235px}.arena-stage canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.actor-hud{position:absolute;transform:translate(-50%,12px);width:135px;pointer-events:none;filter:drop-shadow(0 2px 1px #110b1380)}.hero-hud{width:200px}.actor-name{font-size:12px;display:flex;justify-content:space-between;margin-bottom:6px;color:#f3dfbe;gap:8px;text-shadow:1px 1px #000}.actor-name span{font:11px Georgia}.health-track{height:7px;background:#1b1018;border:1px solid #342225;overflow:hidden}.health-track>span{height:100%;display:block;background:#b95d5c;transition:width .12s}.health-track.hero>span{background:#c27064}.shield-track{height:3px;background:#15212b;margin-top:2px}.shield-track>span{display:block;height:100%;background:#9bc5df;transition:width .12s}.action-track{margin-top:4px;height:2px;background:#17101c80}.action-track>span{height:100%;display:block;background:#d5b27b}.hero-status-line{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-top:5px;color:#9ecbe6}.hero-status-line>span:last-child{color:#aebc6e}.enemy-hud small{font-size:10px;line-height:1.3;color:#f5dfb6;display:block;width:max-content;max-width:100%;padding:3px 5px;margin-top:5px;background:#1a131fee;border:1px solid #8d704b66;text-shadow:0 1px #000}.enemy-hud.dead{opacity:.2}.boss-hud{width:170px}.boss-hud .actor-name{color:#f1cc83}.boss-warning{position:absolute;top:18px;left:50%;transform:translateX(-50%);padding:8px 25px;border:1px solid #d270604d;background:#632e3677;color:#f6b1a1;font-size:13px;opacity:0;transition:opacity .15s}.boss-warning.visible{opacity:1}.battle-announcement{position:absolute;top:34%;left:50%;transform:translateX(-50%);font-family:var(--display);font-size:38px;letter-spacing:.2em;text-shadow:3px 3px 0 #1c1216;color:#ffdda0;white-space:nowrap;pointer-events:none;opacity:0}.battle-announcement.visible{animation:announcement 1s ease-out}.pause-veil{position:absolute;inset:0;background:#15101977;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:20px;backdrop-filter:blur(2px)}.pause-veil[hidden]{display:none}.pause-veil span{font-family:var(--display);font-size:35px;letter-spacing:.2em;color:var(--gold-light)}.pause-veil small{color:#c7b49a}@keyframes announcement{0%{opacity:0;translate:0 10px}20%,70%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -10px}}
.card-table{height:245px;flex-shrink:0;background:linear-gradient(0deg,#181218,#201820);border-top:2px solid #96744b;box-shadow:0 -5px 0 #110d15,0 -6px 0 #75604677,inset 0 0 0 3px #171218;position:relative;padding:0 30px}.card-table:before{content:"";position:absolute;left:20px;right:20px;top:8px;bottom:12px;border:1px solid #7b5b3933;pointer-events:none}.relic-rack{height:47px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #73553733;position:relative;max-width:1140px;margin:0 auto}.relic-rack>span{font-size:10px;color:#988770;margin-right:12px}.relic-rack .relic-art{height:32px;width:32px}.relic-rack .relic-art .icon{width:18px;height:18px}.relic-notice{font-size:11px;color:var(--gold-light);margin-left:12px;opacity:0}.relic-notice.flash{animation:announcement .8s}.table-layout{display:flex;align-items:center;justify-content:center;gap:45px;height:193px;max-width:1140px;margin:auto;position:relative}.draw-pile,.discard-pile{display:flex;flex-direction:column;align-items:center;position:relative}.draw-pile b,.discard-pile b{position:absolute;top:82px;right:-10px;background:#30212c;color:var(--gold-light);min-width:28px;height:28px;border:1px solid #987648;font:15px Georgia;display:flex;align-items:center;justify-content:center}.draw-pile small,.discard-pile small{font-size:10px;margin-top:12px;color:var(--muted)}.current-zone{width:128px;display:flex;flex-direction:column;align-items:center;position:relative;padding-top:15px}.table-label{font-size:9px;color:#ac9a81;letter-spacing:.08em;margin-bottom:12px;white-space:nowrap}.current-zone>.table-label{position:absolute;top:0}.current-card>.playing-card,.current-card>.card-back{width:97px;height:140px}.current-card .card-art{inset:30px 20px}.current-card .card-corner{font-size:18px;top:8px;left:8px}.current-card .card-corner.bottom{top:auto;left:auto;bottom:8px;right:8px}.current-card .card-corner i{font-size:17px}.current-card .center-suit{font-size:44px}.current-card .royal-mark{width:42px;height:65px}.current-card .royal-mark .icon{width:25px;height:25px}.current-card .royal-mark span{font-size:24px}.current-description{font-size:9px;color:var(--gold);margin-top:10px;white-space:nowrap}.current-card{animation:card-enter .15s ease-out}.current-card.combo{animation:combo-flash .2s}@keyframes card-enter{from{translate:0 8px;opacity:.4}to{translate:0 0;opacity:1}}@keyframes combo-flash{50%{filter:brightness(1.8);transform:scale(1.08)}}.next-zone{display:flex;flex-direction:column;align-items:center;padding-top:2px}.next-cards{display:flex;gap:10px;min-width:242px;min-height:108px}.battle-hint{font-size:9px;color:#a1917a;margin-top:17px}.combat-readout{display:flex;flex-direction:column;gap:14px;font-size:10px;color:#a4937a;margin-left:20px;width:135px}.combat-readout>span{display:flex;justify-content:space-between;gap:20px}.combat-readout b{color:#d0b992;font-family:Georgia;font-weight:400;font-size:15px}.combat-readout .text-button{padding:0;min-height:0;font-size:10px;justify-content:flex-start;color:var(--gold)}.battle-footer{height:30px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 32px;background:#120e16;font-size:9px;color:#877660;border-top:1px solid #68503233}
.forge-layout{max-width:1280px;padding:0 35px;margin:6px auto;display:grid;grid-template-columns:1fr 320px;gap:35px}.forge-deck{padding:20px;background:#1b151e99;border:1px solid #69513b55}.section-label{display:flex;justify-content:space-between;font-size:12px;color:#c8b58f;letter-spacing:.08em;margin-bottom:24px}.section-label>span{color:var(--muted);font-size:11px}.deck-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:22px 13px;align-content:start}.deck-card{padding:6px 4px 5px;background:transparent;display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid transparent;min-width:80px}.deck-card.selected{background:#7c563a33;border-color:var(--gold)}.deck-card>span{font-size:9px;color:#a79378}.forge-panel{text-align:center;padding:15px 20px;background:#22192399;border:1px solid #69513b55}.forge-emblem{margin:0 auto 12px;color:var(--gold)}.forge-emblem .icon{width:32px;height:32px}.selected-card-preview{display:flex;justify-content:center;margin:20px 0 12px}.selected-card-preview .playing-card{width:97px;height:140px}.selected-card-preview .card-art{inset:26px}.selected-card-preview .card-art .center-suit{font-size:45px}.selected-card-preview .royal-mark{height:63px;width:40px}.selected-card-preview .royal-mark .icon{width:24px;height:24px}.selected-card-preview .royal-mark span{font-size:21px}.forge-panel h3{font-size:17px;margin-top:14px}.forge-panel>p{font-size:10px;color:var(--muted);margin-top:7px}.empty-anvil{height:140px;display:flex;align-items:center;justify-content:center;color:#a3907a;font-size:12px}.forge-actions{margin-top:19px;display:flex;flex-direction:column;gap:7px}.forge-action{display:flex;align-items:center;justify-content:space-between;background:#31252a;border:1px solid #654a3755;padding:10px 12px;font-size:12px;text-align:left}.forge-action b{display:flex;align-items:center;gap:6px;font:13px Georgia;color:var(--gold)}.forge-action .icon{width:14px;height:14px}.forge-action small{font-size:8px;color:#e3c886;margin-left:7px}.forge-action.discount{border-color:#a7864b99}.service-limit{font-size:10px!important;margin-top:16px!important}.service-footer{max-width:1280px;padding:0 35px;margin:25px auto 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.service-footer>span{font-size:11px;color:var(--muted)}.service-footer>div{display:flex;gap:10px}.shop-shelves{max-width:1300px;margin:10px auto 35px;display:grid;grid-template-columns:repeat(6,1fr);gap:15px;padding:0 35px}.shop-item{display:flex;flex-direction:column;align-items:center;background:#251c25;border:1px solid #78604166;padding:20px 15px 0;min-height:340px;transition:translate .2s}.shop-item:hover{translate:0 -6px}.shop-kind{font-size:10px;color:#bda67c;letter-spacing:.2em}.shop-art{height:168px;display:flex;align-items:center;justify-content:center;margin:15px 0}.shop-art .playing-card{width:98px;height:142px}.shop-art .card-art{inset:27px 23px}.shop-art .center-suit{font-size:48px}.shop-art .royal-mark{width:39px;height:64px}.shop-art .royal-mark .icon{width:24px;height:24px}.shop-art .royal-mark span{font-size:21px}.shop-item h3{font-size:20px;margin:0 0 12px}.shop-item p{font-size:11px;color:#bba996;flex:1;line-height:1.7}.shop-price{font:17px Georgia;color:var(--gold-light);margin:20px -15px 0;border-top:1px solid #92744955;padding:13px 10px;background:#ac85402b;align-self:stretch}.shop-price .icon{width:16px;height:16px;margin-right:5px}.shop-item.sold{filter:grayscale(1);opacity:.3}.potion-art{color:#96c3a4;border:1px solid #6d8a73;width:78px;height:92px;background:#31423b55;display:flex;justify-content:center;align-items:center;clip-path:polygon(25% 0,75% 0,75% 20%,100% 35%,100% 100%,0 100%,0 35%,25% 20%)}.potion-art .icon{width:38px;height:38px}.shrine-screen{text-align:center}.shrine-emblem{width:170px;height:180px;color:var(--gold);display:flex;align-items:center;justify-content:center;margin:25px auto}.shrine-emblem .icon{width:110px;height:110px;stroke-width:.6;filter:drop-shadow(0 0 30px #d1a25b55)}.shrine-options{display:flex;justify-content:center;gap:25px;margin:30px}
.end-screen{text-align:center}.end-emblem{margin:35px auto 0;color:var(--gold)}.end-emblem .icon{width:68px;height:68px;stroke-width:1}.end-screen.lost .end-emblem{color:#a77786}.end-screen .page-heading{padding-top:20px}.end-statistics{display:flex;justify-content:center;gap:70px;margin:25px auto 35px}.end-statistics>div{display:flex;flex-direction:column;gap:15px}.end-statistics span{font-size:11px;color:var(--muted)}.end-statistics b{font:38px Georgia;color:var(--gold-light)}.end-build{max-width:900px;margin:auto;padding:20px;border-top:1px solid #69513766;border-bottom:1px solid #69513766}.end-build .section-label{justify-content:center}.end-relics{display:flex;justify-content:center;gap:25px}.end-relics>span{display:flex;align-items:center;flex-direction:column;gap:10px}.end-relics .relic-art{width:54px;height:54px}.end-relics .icon{width:25px;height:25px}.end-relics b{font-size:12px;font-weight:400}.end-relics small{font-size:9px;color:var(--muted)}.end-actions{display:flex;justify-content:center;gap:16px;margin-top:35px}.end-seed{font-size:10px;color:#95816a;margin:25px 0;display:block}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:#0d0913ba;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px);padding:30px}.modal{width:min(900px,100%);max-height:90vh;display:flex;flex-direction:column;background:#211a24;border:1px solid var(--gold);box-shadow:inset 0 0 0 4px #151019,0 30px 100px #0008;padding:5px;animation:modal-in .15s ease-out}.modal>header{display:flex;align-items:center;justify-content:space-between;padding:15px 24px;border-bottom:1px solid #77583d77;flex-shrink:0}.modal>header h2{font-size:24px;letter-spacing:.07em}.modal-body{padding:25px;overflow:auto}.modal>footer{padding:18px 25px;border-top:1px solid #77583d55;display:flex;justify-content:flex-end;gap:12px;align-items:center;flex-shrink:0}.modal>footer>span{font-size:11px;color:var(--muted)}.modal p{font-size:14px;color:#d2c3af;margin-bottom:18px}.modal .deck-grid{gap:22px 16px}.deck-summary{display:flex;gap:30px;margin-bottom:25px;color:var(--gold-light);font:15px Georgia}.card-inspection{display:flex;gap:40px;justify-content:center;align-items:center;padding:20px}.card-inspection h3{font-size:20px;margin-bottom:15px}.card-inspection p{font-size:13px}.card-inspection>div:last-child{max-width:330px}.relic-inspection{text-align:center;padding:25px}.relic-inspection .relic-art{width:110px;height:110px;margin-bottom:30px}.relic-inspection .icon{width:56px;height:56px}.relic-inspection em{font-size:12px}.settings-list{display:flex;flex-direction:column;gap:22px;max-width:530px;margin:auto}.settings-list label{display:flex;align-items:center;justify-content:space-between;gap:30px;font-size:14px}.settings-list input[type=range]{width:250px;accent-color:var(--gold)}.settings-list input[type=checkbox]{width:20px;height:20px;accent-color:var(--gold)}.settings-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:30px 0 20px}.settings-note{text-align:center;font-size:11px!important;color:var(--muted)!important;line-height:2.2}.help-intro{font-family:var(--display);font-size:25px;text-align:center;color:var(--gold-light);margin:8px 0 25px}.help-suits{display:flex;justify-content:center;gap:28px;margin-bottom:30px}.help-suits>div{display:flex;align-items:center;gap:10px}.help-suits b{font-size:12px;font-weight:400}.combat-log p{display:flex;gap:20px;font-size:12px;margin-bottom:12px}.combat-log time{font:12px Georgia;color:var(--gold);width:50px}.history-list>div{display:grid;grid-template-columns:120px 1fr;gap:10px 20px;padding:18px 10px;border-bottom:1px solid #62463255;font-size:14px}.history-list b{color:#b08787;font-weight:400}.history-list .success{color:#bbd1a8}.history-list small{grid-column:2;color:var(--muted);font-size:10px}.purchase-preview{display:flex;align-items:center;flex-direction:column;padding:10px;text-align:center}.purchase-preview .playing-card,.purchase-preview .relic-art,.purchase-preview .potion-art{margin:15px 0 25px}.purchase-preview>span{font-size:12px;color:var(--gold-light)}.replace-relics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.replace-relics .relic-tile{min-width:0;min-height:260px;padding:18px}.replace-relics h3{font-size:19px}.replace-relics p{font-size:11px}.replace-relics em{display:none}#toast{position:fixed;bottom:30px;left:50%;translate:-50% 12px;background:#33252e;border:1px solid var(--gold);padding:12px 25px;font-size:13px;z-index:200;opacity:0;pointer-events:none;transition:opacity .15s,translate .15s;box-shadow:0 6px 30px #0006;color:var(--gold-light);max-width:90vw;text-align:center}#toast.visible{opacity:1;translate:-50% 0}@keyframes modal-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reduced-motion .battle-announcement.visible{opacity:1}.reduced-motion .relic-notice.flash{opacity:1}
@media(min-width:1700px){.hero-layout{padding-top:25px}.portrait-stage{height:240px}.portrait-stage .sprite{width:270px;height:270px}.hero-pedestal{padding-bottom:30px}.starting-section{margin-top:40px}.selection-footer{margin-top:40px}.page-heading{padding-top:48px;padding-bottom:28px}.route-card{max-width:350px}.route-portrait{height:157px}.route-portrait .sprite{width:185px;height:185px}.route-details p{font-size:14px}.route-details h2{font-size:28px}.route-reward{font-size:12px}.route-select{font-size:14px;padding:17px 0}.journey-strip{margin-top:45px}.card-table{height:270px}.table-layout{height:215px}.arena-stage{min-height:320px}.battle-topline{height:64px}.topbar{height:82px}.reward-choices{padding-top:40px}}
@media(max-width:1200px){.topbar{padding:0 22px}.top-tools{gap:15px;min-width:180px}.chapter-label{font-size:11px}.wordmark{min-width:190px}.hero-layout{grid-template-columns:1fr 250px;gap:20px;padding:0 25px}.hero-details{padding-left:18px}.hero-details>p{font-size:12px}.portrait-stage{height:150px}.portrait-stage .sprite{width:180px;height:180px}.hero-pedestal h2{font-size:22px}.hero-numbers{gap:9px;font-size:10px}.hero-pedestal p{font-size:10px}.starting-section{padding:0 25px;gap:15px}.starting-label{width:110px}.starting-relic{gap:8px;padding:10px}.starting-relic .relic-art{width:37px;height:42px}.starting-relic b{font-size:12px}.starting-relic small{font-size:10px}.selection-footer{padding:0 25px}.route-fan{gap:18px;padding:0 25px}.route-card{padding:15px 17px 0}.route-details h2{font-size:22px}.route-select{margin:0 -17px}.route-reward{font-size:9px}.route-portrait{height:107px}.route-portrait .sprite{width:140px;height:140px}.page-heading h1{font-size:32px}.page-heading{padding-top:25px}.map-footer{padding:10px 25px}.table-layout{gap:25px}.combat-readout{margin-left:0;width:112px}.forge-layout{padding:0 25px;gap:20px;grid-template-columns:1fr 290px}.shop-shelves{gap:10px;padding:0 25px}.shop-item{padding:15px 10px 0;min-height:330px}.shop-item h3{font-size:17px}.shop-item p{font-size:10px}.shop-price{margin-left:-10px;margin-right:-10px}.title-composition{padding:25px 45px}.title-hero{left:20%}.title-hero .sprite{width:290px;height:290px}.floating-card .playing-card{width:110px;height:162px}.title-tableau{height:500px}}
@media(max-height:760px){.topbar{height:65px}.page-heading{padding:20px 20px 15px}.page-heading h1{font-size:28px;margin:8px 0}.page-heading p{font-size:12px}.hero-layout{margin-bottom:12px}.hero-pedestal{padding-top:12px;padding-bottom:12px}.portrait-stage{height:125px}.portrait-stage .sprite{width:170px;height:170px}.hero-pedestal h2{margin-top:8px;font-size:22px}.hero-details{padding-top:0}.hero-details h2{font-size:23px;margin:8px 0}.skill-list{margin:10px 0}.skill-list>div{margin:6px 0}.skill-list p{font-size:11px}.starter-preview{margin-top:10px}.starting-section{margin-top:12px}.starting-relic{min-height:80px}.selection-footer{margin-top:18px}.route-portrait{height:82px;margin-top:-7px}.route-portrait .sprite{width:115px;height:115px}.route-details{padding-top:4px;padding-bottom:10px}.route-details h2{font-size:21px;margin:7px 0}.route-details p{font-size:11px;min-height:38px}.enemy-preview{margin-top:10px;padding-top:8px}.route-reward{padding:10px 0}.journey-strip{margin-top:24px;margin-bottom:25px}.insight-banner{margin-bottom:15px}.contract-art{height:100px}.service-route{min-height:300px}.boss-route .route-portrait{height:125px}.boss-route .route-portrait .sprite{width:180px;height:180px}.card-table{height:220px}.relic-rack{height:39px}.table-layout{height:175px}.current-card>.playing-card,.current-card>.card-back{width:85px;height:123px}.current-description{margin-top:6px;font-size:8px}.battle-topline{height:49px}.battle-footer{height:25px}.arena-stage{min-height:225px}.title-screen{min-height:650px}.title-crest img{width:45px;margin-bottom:13px}.title-copy h1{font-size:66px}.english-title{margin-top:18px}.ornament{margin:18px 0}.title-actions{margin-top:24px}.title-tableau{height:470px}.card-reward .playing-card{width:145px;height:210px}.reward-choices{padding-top:5px}.card-reward h3{margin-top:20px}.reward-footer{margin-top:20px}.victory-income{margin-bottom:20px}.relic-tile{min-height:280px}.forge-emblem{margin-bottom:6px}.selected-card-preview{margin-top:12px}.selected-card-preview .playing-card{width:74px;height:108px}.selected-card-preview .card-art{inset:24px 18px}.selected-card-preview .card-corner{font-size:13px}.selected-card-preview .card-corner i{font-size:14px}.selected-card-preview .royal-mark{width:32px;height:48px}.forge-action{padding:8px 10px;font-size:11px}.forge-actions{margin-top:12px;gap:5px}.forge-panel{padding-top:10px}.service-footer{margin-top:18px}.end-emblem{margin-top:20px}.end-emblem .icon{width:50px;height:50px}.end-statistics{margin:20px auto 25px}.end-actions{margin-top:25px}}
@media(max-width:900px){.hero-layout{grid-template-columns:1fr}.hero-details{border-left:0;border-top:1px solid var(--line);display:none}.starting-section{flex-direction:column;align-items:stretch}.starting-label{width:auto;display:flex;gap:20px;align-items:center}.starting-label h3{margin-top:0}.title-copy{width:60%}.title-tableau{width:40%}.title-hero{left:0}.title-hero .sprite{width:220px;height:220px}.floating-card.two{right:-20px}.floating-card .playing-card{width:90px;height:135px}.tableau-caption{left:0}.shop-shelves{grid-template-columns:repeat(3,1fr)}.forge-layout{grid-template-columns:1fr 260px}.top-tools{min-width:0}.chapter-label{display:none}.route-fan{gap:12px}.route-card{padding:12px 12px 0}.route-select{margin:0 -12px}.route-details p{font-size:10px}.enemy-preview>span{min-width:78px}.route-reward{flex-direction:column;align-items:flex-start;gap:7px}.route-upper .route-type{font-size:9px}.table-layout{gap:18px}.combat-readout{display:none}.map-footer>span:last-child{display:none}.map-footer{justify-content:center}.end-statistics{gap:35px}.service-footer{align-items:flex-start}.service-footer>span{max-width:180px}}

/* Keep the champion screen inside the game viewport. Only the descriptive
   sidebar scrolls when the window is short; the primary action stays visible. */
.selection-screen{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.selection-screen .topbar,.selection-screen .page-heading,.selection-screen .starting-section,.selection-screen .selection-footer{flex-shrink:0}
.selection-screen .hero-layout{flex:1;min-height:0;width:100%;align-items:stretch}
.selection-screen .hero-roster{min-height:0}
.selection-screen .hero-pedestal{min-height:0;display:flex;flex-direction:column;align-items:center}
.selection-screen .portrait-stage{flex:1;min-height:75px;max-height:240px;width:100%}
.selection-screen .portrait-stage .sprite{width:256px;height:256px;flex-shrink:0;transform:translateY(-6px)}
.selection-screen .pedestal-base{flex-shrink:0;margin:0 auto 8px}
.selection-screen .hero-details{min-height:0;overflow-y:auto;padding-right:12px;scrollbar-width:thin;scrollbar-color:var(--gold) transparent}
.selection-screen .hero-roster-title,.selection-screen .hero-pedestal h2,.selection-screen .hero-pedestal p,.selection-screen .hero-numbers{flex-shrink:0}
.selection-screen .selection-footer{padding-bottom:18px}
@media(max-height:980px){
 .selection-screen .page-heading{padding:22px 20px 15px}
 .selection-screen .page-heading h1{font-size:30px;margin:8px 0}
 .selection-screen .hero-layout{margin-bottom:12px}
 .selection-screen .hero-details{padding-top:0}
 .selection-screen .hero-details h2{margin:8px 0;font-size:25px}
 .selection-screen .skill-list{margin:12px 0}
 .selection-screen .skill-list>div{margin:8px 0}
 .selection-screen .starting-section{margin-top:16px}
 .selection-screen .selection-footer{margin-top:16px}
}
@media(max-height:760px){
 .selection-screen .page-heading{padding:14px 20px 10px}
 .selection-screen .page-heading h1{font-size:27px;margin:6px 0}
 .selection-screen .portrait-stage .sprite{width:200px;height:200px}
 .selection-screen .hero-pedestal h2{margin-top:8px}
 .selection-screen .hero-pedestal p{margin:6px 0}
 .selection-screen .starting-section{margin-top:8px}
 .selection-screen .selection-footer{margin-top:12px;padding-bottom:12px}
}

/* Persistent royal-rage cue after the transition announcement. */
.boss-phase{display:block;width:max-content;max-width:100%;margin:0 0 6px;padding:3px 6px;border:1px solid #db806b66;background:#3b1824db;color:#ffbaa4;font-size:10px;letter-spacing:.02em}.boss-phase[hidden]{display:none}.boss-hud.enraged .health-track>span{background:#df705c}.boss-hud.enraged .action-track>span{background:#ffbb83}

.conversion-preview{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:20px;align-items:center;max-width:650px;margin:0 auto}.conversion-preview section{display:flex;flex-direction:column;align-items:center;gap:18px;padding:18px 8px;border:1px solid #80643d44;background:#17121c66;text-align:center}.conversion-preview section .eyebrow{letter-spacing:.12em}.conversion-preview section p{margin:0;font-size:13px}.conversion-arrow{display:flex;justify-content:center;color:var(--gold-light)}.conversion-arrow .icon{width:30px;height:30px}.conversion-summary{text-align:center;border-top:1px solid #80643d44;margin-top:20px;padding-top:18px}.conversion-summary p{color:var(--gold-light);margin-bottom:8px}.conversion-summary span{font-size:13px;color:#d2c3af}@media(max-width:600px){.conversion-preview{gap:8px;grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr)}.conversion-preview .playing-card{width:100px;height:148px}.conversion-preview section{padding:12px 4px}.conversion-preview section p{font-size:11px}.conversion-arrow .icon{width:20px;height:20px}}

body.modal-open{overflow:hidden}
@media(max-height:760px){.conversion-preview .playing-card{width:112px;height:164px}.conversion-preview section{gap:10px;padding:12px 8px}.conversion-summary{margin-top:12px;padding-top:12px}.conversion-summary p{margin-bottom:8px}}

.report-note{line-height:1.7;color:var(--muted)}.battle-reports{display:grid;gap:18px}.battle-report{border:1px solid #80643d66;background:#17121c77;padding:18px}.battle-report>header{display:flex;justify-content:space-between;gap:16px;align-items:center}.battle-report h3{font-size:22px;margin:10px 0}.battle-report h3 small{font-size:13px;color:var(--muted)}.report-result{white-space:nowrap;color:var(--gold-light);font-size:13px}.report-result.failure{color:#ef8a83}.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px;margin:15px 0}.report-metrics span{display:block;color:var(--muted);font-size:11px}.report-metrics b{display:block;margin-top:6px;font:22px Georgia;color:var(--gold-light)}.battle-report details{border-top:1px solid #80643d44;padding-top:12px}.battle-report summary{cursor:pointer;color:var(--gold-light);font-size:13px;padding:5px 0}.report-relics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.report-relics>div{border:1px solid #80643d44;padding:12px;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.report-relics b{font-size:13px;color:var(--gold-light)}.report-relics span,.report-relics small{font-size:11px;color:var(--muted)}.report-relics small{flex-basis:100%}.report-hits{margin-top:18px}.report-hits>div{display:grid;grid-template-columns:65px minmax(80px,1fr) minmax(160px,1.5fr) 100px;gap:8px;padding:10px 0;border-bottom:1px solid #80643d22;font-size:11px}.report-hits time,.report-hits small{color:var(--muted)}.report-hits b{color:#d2c3af;font-weight:400}.report-death{color:#ef8a83!important;margin-top:15px}.end-actions{flex-wrap:wrap}@media(max-width:700px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-relics{grid-template-columns:1fr}.report-hits>div{grid-template-columns:60px 1fr}.report-result{font-size:11px}.battle-report>header{align-items:flex-start}.battle-report h3{font-size:18px}}

.archive-heading{margin-bottom:24px}.archive-deck{margin-top:18px}.archive-deck .deck-card{cursor:default}.history-list .secondary{margin-top:8px}

.decision-report{padding:20px;margin-bottom:16px;border:1px solid #5b4934;background:#211b23}.decision-report h3{margin:10px 0;color:#f0ddae}.decision-report p{color:#b8aa98}.decision-deltas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;color:#d6cab6;font-size:13px;margin:15px 0}.decision-report summary{cursor:pointer;color:#bc995c}.decision-options{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.decision-options span{padding:8px;border:1px solid #51463b;color:#a89c8a}.decision-options .chosen{border-color:#ba934f;color:#efd496}


.expedition-statistics h3{color:var(--gold-light);font-size:20px;margin:24px 0 14px}.statistics-table{border:1px solid #80643d66;background:#17121c77}.statistics-row{display:grid;grid-template-columns:minmax(140px,1.3fr) repeat(3,minmax(90px,1fr));gap:12px;padding:14px 16px;border-bottom:1px solid #80643d33;font-size:13px;align-items:center}.statistics-row:last-child{border-bottom:0}.statistics-row b{font-weight:400;color:var(--gold-light)}.statistics-head{font-size:11px;color:var(--muted);background:#33273288}.statistics-relics{margin-top:24px;padding-top:18px;border-top:1px solid #80643d66}.statistics-relics summary{cursor:pointer;color:var(--gold-light);padding:8px 0}.statistics-row span{white-space:nowrap}@media(max-width:650px){.statistics-row{grid-template-columns:minmax(100px,1.3fr) repeat(3,minmax(55px,1fr));font-size:11px;gap:6px;padding:12px 8px}}

.statistics-head{position:sticky;top:-25px;z-index:1;background:#332732}

.handbook-nav{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:18px;border-bottom:1px solid #77583d77;margin-bottom:20px}
.relic-support{margin:14px 0;padding:12px;border:1px solid #98744e66;background:#151018;text-align:left;display:flex;flex-direction:column;gap:7px;max-width:100%;min-width:0;line-height:1.5}
.relic-support>span{font-size:10px;letter-spacing:.08em;color:#cbb58e}.relic-support strong{font-size:12px;font-weight:500;color:#e8d6b6}.relic-support small{font-size:11px;color:#c7b6a2}.relic-support.needs-cards{border-color:#af746c88}.relic-support.needs-cards strong{color:#e4a59a}
.relic-inspection .relic-support,.purchase-preview .relic-support{width:min(440px,100%)}
@media(max-height:980px){
 .reward-screen:has(.relic-support) .page-heading{padding:18px 20px 12px}
 .reward-screen:has(.relic-support) .victory-income{margin:4px 0 14px}
 .reward-screen:has(.relic-support) .reward-choices{gap:26px;padding:5px 20px 12px}
 .reward-screen:has(.relic-support) .relic-tile{padding:16px;min-height:0}
 .reward-screen:has(.relic-support) .relic-tile .rarity{margin-bottom:12px}
 .reward-screen:has(.relic-support) .relic-tile .relic-art{width:62px;height:62px}
 .reward-screen:has(.relic-support) .relic-tile h3{font-size:22px;margin:12px 0 10px}
 .reward-screen:has(.relic-support) .relic-tile em{margin-top:12px}
 .reward-screen:has(.relic-support) .reward-footer{margin-top:8px}
 .reward-screen:has(.relic-support) .reward-footer p{margin-top:10px}
}
@media(max-height:760px){
 .reward-screen:has(.relic-support) .page-heading{padding:12px 20px 8px}
 .reward-screen:has(.relic-support) .page-heading h1{font-size:25px;margin:6px 0}
 .reward-screen:has(.relic-support) .relic-tile .relic-art{width:46px;height:46px}
 .reward-screen:has(.relic-support) .relic-tile h3{font-size:20px;margin:10px 0 8px}
 .reward-screen:has(.relic-support) .relic-tile>p{font-size:12px}
 .reward-screen:has(.relic-support) .relic-support{margin:10px 0;padding:10px}
 .reward-screen:has(.relic-support) .relic-tile em{margin-top:8px}
}
.handbook-nav button{padding:9px 14px;border:1px solid #80643d66;background:#18121d;color:#c9b79b;font:inherit;font-size:12px}
.handbook-nav button.selected{background:#c4a162;color:#211822;border-color:#d9bd87}
.handbook-page{line-height:1.7}.handbook-page .help-intro{font-size:23px;margin:8px 0 18px}
.handbook-page .handbook-caption{font-size:11px;color:#bfae94}
.handbook-suits{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}
.handbook-suits article{display:flex;align-items:center;gap:18px;min-width:0;background:#17121b;padding:18px;border:1px solid #70543d66}
.handbook-suits .playing-card{flex-shrink:0}.handbook-suits p{font-size:12px;margin:8px 0 0}
.handbook-page h3{font-size:15px;color:#ead3a9;letter-spacing:.02em}
.handbook-ranks{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:5px;margin:22px 0}
.handbook-ranks span{display:flex;flex-direction:column;align-items:center;background:#18121c;border:1px solid #70543d66;padding:7px 2px}
.handbook-ranks b{font:18px Georgia;color:#f5dfb6}.handbook-ranks small{font-size:10px;color:#c4b294}
.handbook-note{padding:15px 0;border-bottom:1px solid #70543d44}.handbook-note p{margin:8px 0 0;font-size:13px}
.handbook-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.handbook-enemies{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.handbook-enemies article{display:flex;gap:12px;align-items:center;min-width:0;background:#17121b;border:1px solid #70543d66;padding:10px}
.handbook-enemies .sprite{flex-shrink:0;transform:scale(.8);margin:-12px}
.rules-selector{display:inline-flex;gap:8px}.rules-selector .button{font-size:11px;padding:5px 12px;min-height:28px}.rules-selector .selected{border-color:var(--gold);color:var(--gold-light);background:#66503344}
.bundle-reward{width:310px;padding:18px;background:#201822cc;border:1px solid #8d704b66;color:var(--gold-light);display:flex;flex-direction:column;align-items:center;gap:12px}.bundle-reward:hover,.bundle-reward:focus-visible{border-color:var(--gold);background:#30232acc}.bundle-reward h3{font-size:20px;margin:0}.bundle-reward p{font-size:12px;line-height:1.6;min-height:40px;margin:0}.bundle-reward small{font-size:11px}.bundle-reward>span{font-size:12px;display:flex;align-items:center;gap:8px}.bundle-cards{display:flex;justify-content:center;gap:12px}.bundle-reward .playing-card{width:95px;height:138px}.bundle-reward .card-art{inset:30px 20px}.bundle-reward .card-corner{font-size:17px}.bundle-reward .royal-mark{width:35px;height:55px}.bundle-reward .element-mark .icon{width:30px;height:30px}.bundle-reward .element-mark span{font-size:10px}.bundle-preview{text-align:center}.bundle-preview>p{font-size:12px;margin:8px 0}.bundle-selection-status{padding:10px 0;color:var(--gold-light);font-size:12px}.bundle-targets .selected{outline:2px solid var(--gold);background:#78603955}.bundle-targets .selected>span{color:var(--gold-light)}
.bundle-reward-screen{padding-bottom:0}.bundle-reward .center-suit{font-size:44px}.bundle-reward .card-corner i{font-size:17px}.bundle-reward .royal-mark .icon{width:26px;height:26px}.bundle-reward .royal-mark span{font-size:19px;margin-top:3px}.bundle-suits{font-size:12px;color:var(--gold-light)}.bundle-suits b{color:#ef8a83}
.report-core{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0;padding:12px;border:1px solid #8d704b66;background:#3a2b2644;color:var(--gold-light);font-size:12px}.report-core small{width:100%;font-size:11px;color:var(--muted)}.enemy-hud .element-status{font-size:9px;max-width:170px;line-height:1.4}
.element-mark{display:flex;flex-direction:column;align-items:center;gap:5px;color:#3f3746}.element-mark .icon{width:48px;height:48px}.element-mark span{font-size:12px;letter-spacing:.1em;border-bottom:2px solid var(--element-color)}.small .element-mark .icon{width:25px;height:25px}.small .element-mark span{font-size:8px;letter-spacing:0}
.core-readout{color:var(--gold-light);font-size:11px;border-right:1px solid #8d704b66;padding-right:12px;white-space:nowrap}.element-status:empty{display:none}.elemental-help{padding:12px;border:1px solid #8d704b66;margin-bottom:16px}.elemental-help p{font-size:12px;line-height:1.6}
.handbook-enemies p{font-size:12px;margin:5px 0}.handbook-enemies small{font-size:11px;color:#d6b987}
.handbook-keys{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin-bottom:18px}
.handbook-keys>div{display:flex;gap:12px;align-items:center;font-size:12px}
.handbook-keys kbd{min-width:100px;text-align:center;padding:6px;border:1px solid #80643d66;background:#17121b;color:#f5dfb6;font-family:inherit;font-size:12px}
@media(max-width:760px){.handbook-suits,.handbook-enemies,.handbook-keys{grid-template-columns:1fr}.handbook-notes{grid-template-columns:1fr}.handbook-ranks{grid-template-columns:repeat(7,minmax(0,1fr))}}
.enemy-skill-info{display:block;margin:4px auto 0;padding:3px 7px;border:1px solid #8a704c;background:#21191c;color:#f2d5a1;font:inherit;font-size:11px;cursor:pointer;pointer-events:auto}
.enemy-skill-info:hover,.enemy-skill-info:focus-visible{outline:2px solid #f3cd79;background:#39282b}
.enemy-hud.skill-imminent [data-enemy-action]{color:#ffd184;font-weight:bold;background:#45262b;border:1px solid #be7656;padding:3px}
.enemy-hud.skill-fired .enemy-skill-info{animation:enemy-skill-flash .8s ease-out}
.enemy-skill-notice{position:absolute;top:14px;left:50%;transform:translateX(-50%);max-width:75%;padding:10px 18px;background:#281820eb;border:1px solid #c79a64;color:#ffe1ab;font-size:15px;text-align:center;opacity:0;pointer-events:none;z-index:6}
.enemy-skill-notice.flash{animation:enemy-notice 2.2s ease-out forwards}
.enemy-inspection{text-align:center;line-height:1.8}.enemy-inspection .sprite{margin:12px auto}.enemy-inspection small{color:#b9ac9b}
@keyframes enemy-notice{0%,80%{opacity:1}100%{opacity:0}}
@keyframes enemy-skill-flash{0%,40%{background:#7c4832;border-color:#ffd48e}100%{background:#21191c}}
.reduced-motion .enemy-hud.skill-fired .enemy-skill-info{animation:none;border-color:#ffd48e}
.pause-veil{pointer-events:none}
.reduced-motion .enemy-skill-notice.flash{opacity:1}
.enemy-hud .enemy-buffs{color:#d6e8b2;border-color:#79955f88;font-size:10px;line-height:1.4;background:#1a241bee}
.enemy-hud .enemy-buffs[hidden]{display:none}
.enemy-buff-details{text-align:left;margin:12px 0;padding:0 12px;background:#1a241b99;border:1px solid #79955f44;font-size:13px}
.enemy-attack-values{color:#ffe1ab}

/* Keep forge navigation visible while the deck and tools scroll independently. */
.service-screen:has(.forge-layout){height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.service-screen:has(.forge-layout)>.topbar,.service-screen:has(.forge-layout)>.page-heading{flex-shrink:0}
.service-screen:has(.forge-layout) .forge-layout{width:100%;flex:1;min-height:0;overflow:hidden}
.service-screen:has(.forge-layout) .forge-deck,.service-screen:has(.forge-layout) .forge-panel{min-height:0;overflow-y:auto;padding-bottom:12px}
.service-screen:has(.forge-layout) .service-footer{width:100%;flex-shrink:0;margin:0 auto;padding-top:12px;padding-bottom:12px;background:#17121c;border-top:1px solid var(--line)}
.card-view-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 16px}
.card-view-controls label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.card-view-controls select{background:#211927;color:#e9d6a5;border:1px solid var(--line);padding:7px;font:inherit}
.card-view-controls small,.card-selection-help{color:var(--muted);font-size:12px;line-height:1.6}
.empty-card-filter{grid-column:1/-1;padding:18px;text-align:center;color:var(--muted)}
.upgrade-result section>span{display:block;margin-bottom:10px;color:var(--gold)}

/* Generated Tiny RPG pixel art. Rank/skill text remains accurate dynamic UI. */
.playing-card.pixel-card{border:0;outline:0;border-radius:0;background-color:transparent;background-image:var(--card-art);background-size:100% 100%;background-repeat:no-repeat;box-shadow:3px 4px 0 #09060c80;color:#202333;image-rendering:pixelated}
.playing-card.pixel-card.red{color:#a32436}
.playing-card.pixel-card .card-corner{top:29%;left:12%;line-height:1}
.playing-card.pixel-card .card-corner.bottom{top:auto;left:auto;bottom:29%;right:12%}
.playing-card.pixel-card .card-corner i{display:none}
.playing-card.pixel-card .card-art{inset:25% 24% 26%}
.playing-card.pixel-card .royal-mark{border:0;width:100%;height:100%}
.card-pixel-icon{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.playing-card.pixel-card .royal-mark span{font-size:17px;margin:0}
.playing-card.pixel-card .card-mult{bottom:10%;font-weight:bold}
.playing-card.pixel-card.joker .card-corner,.playing-card.pixel-card.curse-card .card-corner{display:none}
.playing-card.pixel-card.joker,.playing-card.pixel-card.curse-card{color:#4c315e}
.playing-card.pixel-card .element-mark .card-pixel-icon{height:55%;width:100%}
.playing-card.pixel-card .element-mark{height:100%;width:100%}
.card-back{border:0;box-shadow:3px 4px 0 #09060c80;background:transparent url('../assets/cards/back.png') center/100% 100% no-repeat;image-rendering:pixelated}
.card-back>span,.card-back:before{display:none}
.relic-art.pixel-relic{background:transparent;border:0;box-shadow:none;clip-path:none}
.relic-art.pixel-relic img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}

.pixel-suit{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;mix-blend-mode:darken}

.arena-loading{position:absolute;inset:0;z-index:14;display:grid;place-items:center;background:rgba(12,10,16,.94);text-align:center}
.arena-loading[hidden],.arena-loading button[hidden]{display:none}
.arena-loading-panel{padding:24px 32px;border:1px solid #685333;max-width:min(460px,92%);background:#19151b;box-shadow:0 12px 40px #0008}
.arena-loading strong{display:block;color:#edd2a2;font-size:20px;letter-spacing:2px}
.arena-loading p{color:#d1c3ac;font-size:13px;line-height:1.8;margin:14px 0}
.arena-loading small{display:block;color:#a59985;font-size:11px;margin-top:16px}
.loading-suits{display:flex;justify-content:center;gap:18px;color:#d3ab66;font-size:26px;margin-bottom:18px}
.loading-suits span{animation:arena-deal 1.6s ease-in-out infinite}.loading-suits span:nth-child(2){animation-delay:.2s}.loading-suits span:nth-child(3){animation-delay:.4s}.loading-suits span:nth-child(4){animation-delay:.6s}
@keyframes arena-deal{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}
.load-error .loading-suits span,.reduced-motion .loading-suits span{animation:none;opacity:1}
