/* 試煉專屬舞台；不影響征服旅程共用面板。 */
#towerPanel:has(.ar-shell){background:#101412 url('assets/story/camp.webp') center/cover fixed;isolation:isolate}
#towerPanel:has(.ar-shell)::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#080d10eb,#101412b8 48%,#080d10eb),linear-gradient(#0b111482,#0b1114e8)}
#towerPanel .ar-shell{--ar-gold:#c6a36b;max-width:1120px;min-height:100dvh;padding:24px 44px 48px;position:relative;background:radial-gradient(ellipse at 50% 30%,#ab8e5120,transparent 65%);border-inline:1px solid #b9995b25}
.ar-shell::before,.ar-shell::after{content:'';position:absolute;pointer-events:none;width:30px;height:30px;border-color:#bc9b5d88;border-style:solid;top:16px}.ar-shell::before{left:16px;border-width:1px 0 0 1px}.ar-shell::after{right:16px;border-width:1px 1px 0 0}
.ar-shell .ar-topbar{min-height:64px;margin:0;border-bottom:1px solid #c6a36b4d;padding:0 0 16px;background:none;box-shadow:none}
.ar-shell .tw-me{background:none;border:0;padding:0;box-shadow:none;gap:20px;flex-wrap:wrap}.ar-shell .tw-hero{gap:12px}.ar-shell .tw-hface{width:48px;height:48px;border-radius:50%;box-shadow:0 0 0 3px #181b18,0 0 0 4px #bc9b5d66}
.ar-shell .tw-head b{font-size:17px;color:#e5d1a8}.ar-shell .tw-hero small{font-size:12px}.ar-shell .tw-lives{display:flex;gap:5px}.ar-shell .tw-flag{width:23px;height:31px;object-fit:contain}.ar-shell .tw-relics{border-left:1px solid #c6a36b33;padding-left:16px;display:flex;align-items:center;gap:5px}.ar-shell .tw-relics small{font-size:12px;color:#aaa28e}
.ar-shell .outline{border-color:#9b825855;background:#10171588;border-radius:3px;color:#d9c49f;white-space:nowrap}.ar-shell .outline:hover{background:#bca06c22}
.ar-progress{display:flex;align-items:center;justify-content:center;gap:16px;margin:22px auto 18px;position:relative;max-width:460px}.ar-progress::before{content:'';position:absolute;height:1px;left:18px;right:18px;background:#b89b5e4a;z-index:0}.ar-progress span{position:relative;display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #776b4c;border-radius:50%;background:#151c1b;box-shadow:inset 0 0 0 3px #222822;color:#7b8072;font:14px Georgia}.ar-progress .won{color:#ffe7aa;border-color:#e5bd70;background:#69512c;box-shadow:0 0 13px #ce9d4044,inset 0 0 0 3px #322a1c}.ar-progress .next{border-color:#c5ab76;color:#e3d1a8;box-shadow:0 0 14px #d2b77822,inset 0 0 0 3px #30352b}
.ar-heading{text-align:center;margin:22px 0 24px}.ar-heading h2{font-size:28px!important;color:#efe2c4;font-weight:500;letter-spacing:3px!important;margin:6px 0!important;text-shadow:0 2px 15px #000}.ar-heading p{font-size:13px;color:#baa98a;margin:7px 0 0;letter-spacing:2px}.ar-ornament{color:#c9a66b;display:flex;gap:16px;align-items:center;justify-content:center;font-size:10px}.ar-ornament::before,.ar-ornament::after{content:'';height:1px;width:64px;background:linear-gradient(90deg,transparent,#aa8c55)}.ar-ornament::after{transform:rotate(180deg)}
.ar-shell .ar-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;max-width:820px;margin:0 auto 34px;align-items:start;padding:4px 12px 18px}.ar-shell .ar-offers:has(>.ar-choice:nth-child(4)){max-width:980px;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.ar-choice{min-width:0;animation:arDeal .36s both;animation-delay:calc(var(--i)*65ms);position:relative}.ar-shell .ar-choice>.tw-card{width:100%;display:block;transition:transform .2s,filter .2s;outline-offset:8px}.ar-shell .ar-choice>.tw-card:hover{transform:translateY(-7px);filter:brightness(1.08)}.ar-shell .ar-choice>.tw-card:hover .ycard{transform:none}.ar-shell .ar-choice .ycard{width:100%;box-shadow:0 14px 24px #0009,0 0 0 1px #c6a36b55}.ar-shell .ar-choice .ycard.hero{box-shadow:0 15px 28px #000a,0 0 22px #dfb85326}

.ar-draft-track{display:flex;gap:6px;max-width:240px;margin:-10px auto 28px}.ar-draft-track i{height:4px;flex:1;background:#4e5144}.ar-draft-track .done{background:#a18752}.ar-draft-track .current{background:#f3d596;box-shadow:0 0 8px #dbb46b88}
.ar-deck-tray{border:1px solid #b79a6244;border-top:2px solid #b79a6277;background:linear-gradient(#1f2722e6,#111916e6);border-radius:4px;padding:16px 20px 20px;box-shadow:inset 0 1px #e1c48b16,0 12px 30px #0004;position:relative;margin:24px 0 0}.ar-shell .ar-deck-tray h3{margin:0 0 14px;font-size:13px;letter-spacing:2px;color:#c6b593}.ar-shell .ar-deck-tray .tw-deck{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.ar-shell .ar-deck-tray .tw-card>em{display:none}.ar-shell .ar-deck-tray .tw-card{min-width:0}
.ar-entrance{min-height:calc(100dvh - 160px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px 0 50px}.ar-seal{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;position:relative;background:radial-gradient(circle,#d8bd7520,transparent 70%);margin:0 0 16px;filter:drop-shadow(0 0 22px #b38e4255)}.ar-seal::before,.ar-seal::after{content:'';position:absolute;inset:0;border:1px solid #c6a36b66;border-radius:50%}.ar-seal::after{inset:12px;border-style:dashed;border-color:#c6a36b33}.ar-seal img{width:140px;height:140px;object-fit:contain}.ar-entrance h1{font-size:56px;letter-spacing:16px;margin:8px 0 12px;color:#eddbb3;text-shadow:0 3px 25px #000}.ar-shell .ar-entrance h2{font-size:19px;font-weight:400;letter-spacing:3px;margin:0 0 14px;color:#c5b799}.ar-entrance .tw-sub{margin:8px 0}
.ar-shell .primary{min-width:210px;border:1px solid #d8bb7c;border-radius:4px;background:linear-gradient(#c5a66c,#a88548);color:#231e13;padding:15px 28px;box-shadow:inset 0 1px #fff6,0 4px 0 #4a3a22,0 10px 24px #0008;font-size:16px}.ar-shell .primary:hover{background:linear-gradient(#dfc28b,#b8975c);box-shadow:inset 0 1px #fff6,0 4px 0 #4a3a22,0 0 22px #b8994f44}.ar-shell .tw-actions{justify-content:center;gap:16px}
.ar-shell .ar-vs{max-width:660px;margin:24px auto 0;gap:0;position:relative}.ar-shell .ar-vs-title{text-align:center;letter-spacing:4px;color:#e6d0a4;font-size:19px;margin-bottom:24px}.ar-shell .ar-side{justify-content:center;text-align:center;flex-direction:column;gap:12px;border:0;border-radius:0;padding:20px 14px;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--f) 16%,transparent),transparent 65%);position:relative}.ar-shell .ar-ring{width:110px;height:110px;border:3px solid #b99c65;outline:1px solid #74603b;outline-offset:5px;box-shadow:0 0 30px color-mix(in srgb,var(--f) 25%,transparent),0 10px 24px #000a}.ar-shell .ar-who b{font:23px Georgia,'Songti TC',serif;color:#ecddbd}.ar-shell .ar-who small{display:block;margin-top:6px;color:#b9b29e}.ar-shell .ar-vs-mark{max-width:300px;width:100%;margin:8px auto}.ar-shell .ar-vs-mark b{font-size:24px;font-style:italic;color:#e6c483;letter-spacing:2px}.ar-shell .ar-fight{margin-top:20px}.ar-shell .tw-flavor{text-align:center;color:#cfb197;background:#6a362d33;padding:10px;border:1px solid #a5714e44;border-radius:3px}
.ar-shell .ar-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;max-width:820px;margin:32px auto 50px}.ar-shell .ar-tile{width:100%;min-height:330px;padding:8px;border-radius:8px;box-shadow:0 15px 25px #0008,inset 0 0 0 1px #000a;animation:arDeal .35s both}.ar-shell .ar-tile:nth-child(2){animation-delay:65ms}.ar-shell .ar-tile:nth-child(3){animation-delay:130ms}.ar-shell .ar-tile-art{height:160px;background:radial-gradient(circle,#bba66b21,#0f1615 75%)}.ar-shell .ar-tile-art svg{width:96px;height:96px}.ar-shell .ar-tile-body{padding:16px 12px}.ar-shell .ar-tile-body b{font-size:19px}.ar-shell .ar-tile-body em{font-size:14px;line-height:1.7}.ar-shell .ar-swap{font-size:76px;font-weight:200}
.ar-result{text-align:center;padding:40px 0 20px}.ar-result-emblem{width:150px;height:150px;display:grid;place-items:center;margin:0 auto;filter:drop-shadow(0 0 24px #d5af6266)}.ar-result-emblem img{max-width:100%;max-height:100%}.ar-result.defeat .ar-result-emblem{filter:grayscale(.6) drop-shadow(0 5px 20px #0008)}.ar-result .tw-sub{margin:20px auto 28px}.ar-result .ar-heading{margin-top:12px}.ar-shell .tw-card.picked .ycard{outline:3px solid #f3d593;box-shadow:0 0 25px #e5bc6855}.choosing .ar-shell .ar-deck-tray{border-color:#d9b777}
@keyframes arDeal{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@media(min-width:850px){.ar-shell .ar-vs{display:grid;grid-template-columns:1fr 75px 1fr;align-items:center;max-width:760px;margin-top:30px}.ar-shell .ar-vs-title{grid-column:1/-1}.ar-shell .ar-side:first-of-type{grid-column:3;grid-row:2}.ar-shell .ar-vs-mark{grid-column:2;grid-row:2}.ar-shell .ar-side:last-child{grid-column:1;grid-row:2}.ar-shell .ar-vs-mark i{display:none}.ar-shell .ar-ring{width:145px;height:145px}.ar-shell .ar-fight{margin:26px 0 38px}}
@media(max-width:700px){#towerPanel .ar-shell{padding:18px 14px 54px;border:0}.ar-shell::before,.ar-shell::after{display:none}.ar-shell .ar-topbar{gap:8px;padding-bottom:12px;min-height:52px;align-items:flex-start}.ar-shell .ar-topbar>.outline{font-size:11px;padding:8px}.ar-shell .tw-me{gap:8px 12px;flex:1}.ar-shell .tw-hface{width:36px;height:36px}.ar-shell .tw-head b{font-size:14px;letter-spacing:1px}.ar-shell .tw-hero{gap:8px}.ar-shell .tw-hero small{font-size:10px}.ar-shell .tw-lives{gap:3px}.ar-shell .tw-flag{width:16px;height:23px}.ar-shell .tw-relics{display:none}.ar-progress{gap:13px;margin:18px auto}.ar-progress span{width:26px;height:26px;font-size:12px}.ar-heading{margin:22px 0 20px}.ar-heading h2{font-size:23px!important;letter-spacing:2px!important}.ar-shell .ar-offers{gap:9px;padding:2px 0 12px;margin-bottom:20px}.ar-shell .ar-offers:has(>.ar-choice:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:330px}.ar-shell .ar-deck-tray{padding:12px 10px 14px;margin-top:18px}.ar-shell .ar-deck-tray .tw-deck{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ar-shell .ar-deck-tray h3{font-size:12px;letter-spacing:1px}.ar-entrance{min-height:calc(100dvh - 110px);padding:28px 4px}.ar-seal{width:160px;height:160px}.ar-seal img{width:115px;height:115px}.ar-entrance h1{font-size:44px;letter-spacing:12px}.ar-shell .ar-entrance h2{font-size:15px;letter-spacing:1px}.ar-shell .ar-vs{margin-top:20px}.ar-shell .ar-vs-title{font-size:17px;margin-bottom:12px}.ar-shell .ar-side{padding:12px}.ar-shell .ar-ring{width:82px;height:82px}.ar-shell .ar-who b{font-size:19px}.ar-shell .ar-who small{font-size:12px}.ar-shell .ar-vs-mark{max-width:210px}.ar-shell .ar-tiles{grid-template-columns:1fr;gap:14px;margin:24px auto;max-width:440px}.ar-shell .ar-tile{display:grid;grid-template-columns:86px 1fr;min-height:150px;gap:6px}.ar-shell .ar-tile-top{grid-column:1/-1;padding:4px 8px}.ar-shell .ar-tile-art{height:86px}.ar-shell .ar-tile-art svg{width:66px;height:66px}.ar-shell .ar-tile-body{padding:10px}.ar-shell .ar-tile-body b{font-size:17px}.ar-shell .ar-tile-body em{font-size:12px}.ar-shell .ar-swap{font-size:48px}.ar-result{padding-top:24px}.ar-result-emblem{width:120px;height:120px}.ar-shell .primary{min-width:190px}.ar-result .tw-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.ar-choice,.ar-shell .ar-tile{animation:none}.ar-shell .ar-choice>.tw-card{transition:none}.ar-shell .ar-choice>.tw-card:hover{transform:none}}
.ar-card-summary{font-size:13px;color:#d0c7b2;line-height:1.7;text-align:center;margin:14px 2px 0;min-height:44px}
@media(max-width:700px){.ar-card-summary{font-size:12px;line-height:1.6;min-height:40px;margin-top:12px}}
.ar-shell .ar-draft-tray{max-width:820px;margin:12px auto 24px;padding:12px 16px 16px}.ar-draft-tray .ar-slot{aspect-ratio:5/7;min-width:0;border:1px dashed #bda16a44;border-radius:4px;display:grid;place-items:center;color:#95815a66;background:#0a110c44;font-size:20px}.ar-shell .ar-draft-tray .ar-draft-cards{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.ar-shell .ar-draft-tray h3{margin-bottom:10px}
@media(max-width:700px){.ar-shell .ar-draft-tray{padding:10px;margin:14px auto 18px}.ar-shell .ar-draft-tray .ar-draft-cards{display:flex;overflow-x:auto;gap:7px;padding:2px 0 8px;scrollbar-width:thin;scrollbar-color:#9a8253 #121b16}.ar-shell .ar-draft-tray .ar-draft-cards>.tw-card,.ar-shell .ar-draft-tray .ar-slot{width:62px;flex:0 0 62px}.ar-shell .ar-draft-tray h3{margin-bottom:8px}.ar-draft-tray+.ar-heading{margin-top:18px}}
/* 與牌組頁共用主要規則摘要；完整規則在全寬區域閱讀。 */
.ar-card-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:left;min-height:0;line-height:1.6;overflow-wrap:anywhere;word-break:normal}.ar-info{display:flex;justify-content:space-between;align-items:center;gap:6px;width:100%;min-width:0;margin-top:10px;padding:9px 0;background:none;border:0;border-top:1px solid #c6a36b3b;border-radius:0;color:#c2b18d;font-size:12px;line-height:1.5;text-align:left;overflow-wrap:anywhere}.ar-info span{flex:none}.ar-info[aria-expanded=true] span{transform:rotate(180deg)}.ar-inspect{max-width:796px;margin:-16px auto 28px;padding:18px 22px;border:1px solid #b99b5b55;border-radius:5px;background:#131d19f2;box-shadow:0 8px 25px #0006;color:#ddd6c2;line-height:1.8;overflow-wrap:anywhere}.ar-shell .ar-inspect h3{font-size:17px;color:#e0c68f;margin:0 0 10px}.ar-inspect .rl{display:block;font-size:14px}.ar-inspect .sk{margin-top:10px;padding-top:10px;border-top:1px solid #b99b5b33}
@media(max-width:700px){.ar-card-summary{font-size:12.5px;line-height:1.6}.ar-info{font-size:11px}.ar-inspect{margin:0 auto 24px;padding:14px 16px}.ar-inspect .rl{font-size:14px}}
.ar-banner{margin:10px 0 0;overflow-wrap:anywhere;line-height:1.6}.ar-banner>span{display:block!important;max-width:100%;white-space:normal!important;min-width:0;font-size:12px!important;padding:7px 10px!important}.ar-banner b{display:block;font-size:12px}.ar-choice .ar-banner{margin-top:14px}.ar-topbar+.ar-banner{max-width:820px;margin:12px auto 0}.ar-topbar+.ar-banner>span{display:flex!important;align-items:baseline;gap:12px;flex-wrap:wrap}
.ar-stage-draft>.ar-progress{display:none}
.ar-shell .ar-swap{position:relative;display:grid;place-items:center;width:100px;height:112px}.ar-swap i{position:absolute;width:64px;height:88px;border:2px solid #b69a65;border-radius:5px;background:linear-gradient(140deg,#354138,#18211c);box-shadow:inset 0 0 0 4px #151d18,inset 0 0 0 5px #99805277,0 5px 12px #0008;transform:translateX(-13px) rotate(-14deg)}.ar-swap i:nth-child(2){transform:translateX(13px) rotate(14deg);background:linear-gradient(140deg,#4a4d32,#20271b)}.ar-swap b{position:relative;z-index:1;font:40px Georgia;color:#ecd49e;text-shadow:0 2px 8px #000}
@media(max-width:700px){.ar-shell .ar-swap{width:72px;height:76px}.ar-swap i{width:42px;height:61px}.ar-swap b{font-size:30px}}
.ar-card-summary{min-height:4.8em}.ar-stage-hero .ar-choice .ar-banner{min-height:64px}.ar-info{min-height:42px}
@media(max-width:700px){.ar-stage-hero .ar-choice .ar-banner{min-height:118px}.ar-stage-hero .ar-info{min-height:48px}}
.ar-shell .tw-sub{display:block}.ar-shell .ar-heading h2:focus{outline:none}
@media(max-width:700px){#towerPanel .ar-shell .ar-deck-tray.ar-draft-tray .ar-draft-cards{display:flex!important;flex-wrap:nowrap;overflow-x:auto}#towerPanel .ar-shell .ar-draft-tray .ar-draft-cards>.tw-card,#towerPanel .ar-shell .ar-draft-tray .ar-slot{flex:0 0 62px;width:62px}}
