/* Current site chrome, prototype motion and booster layout. */
/* Neutral first paint while the account's correct daylight scenery is decoded. */
html:not(.embedded-page) body.expedition-page{background:#05151b!important}
/* The dynamic scenery owns the background, including before startup runs. */
body.expedition-page::before{content:none!important;display:none!important;background:none!important}
.lighting-settings{margin-top:24px;padding-top:16px;border-top:1px solid #dfc48c44}.account-dialog .lighting-settings .lighting-auto{display:flex;align-items:center;gap:10px}.lighting-auto input{width:18px;height:18px;flex:none;accent-color:#dfc48c}.lighting-settings p,.lighting-settings small{color:#bdcbc8;font-size:13px;line-height:1.5}.lighting-fixed input[type=range]{width:100%;accent-color:#dfc48c;touch-action:pan-y}.lighting-fixed output{margin-left:10px;color:#dfc48c;font-variant-numeric:tabular-nums}
.arch-atmosphere{position:fixed;inset:0;pointer-events:none;z-index:45;overflow:hidden}
.arch-dust{position:absolute;width:3px;height:3px;border-radius:50%;background:#ffe3a7;box-shadow:0 0 7px #ffdda280;animation:arch-drift var(--duration) linear infinite;opacity:0}
@keyframes arch-drift{0%{transform:translate(0,30px);opacity:0}20%,65%{opacity:.4}100%{transform:translate(90px,-180px);opacity:0}}
@media(prefers-reduced-motion:reduce){.arch-atmosphere,.arch-trail{display:none}.arch-reveal{animation:none}.arch-sand{display:none}.expedition-page :is(.gold,.quiet,.arch-open,.game-tabs a),.expedition-page #collection>article{transition:none!important;translate:none!important}}
.arch-sand-canvas{position:fixed;inset:0;pointer-events:none;z-index:2147483646}
.expedition-page .gold:not(#battle-confirm),.expedition-page .gold:not(#battle-confirm):hover,.expedition-page .quiet:not(#account-button):not(.wizz-button):not(:where(#gallery-size)),body>header.arch-rail #account-button{background:radial-gradient(ellipse,#ae79583b,#32213722 60%,transparent 74%)!important;box-shadow:none!important;border:0!important;border-radius:50%!important;color:#f3d5b1!important;overflow:visible!important;text-shadow:0 0 15px #c19a7055}
.expedition-page :is(.gold,.quiet):after{border-radius:50%;background:radial-gradient(ellipse,#d6b08e24,transparent 68%)!important}
.primordial-heading{text-align:center;padding:32px 0 0}.primordial-heading .expedition-eyebrow{color:#d1b19d;font:10px 'Barlow',sans-serif;letter-spacing:4px;display:block}.primordial-heading .expedition-eyebrow:before{display:none}.primordial-heading h1{font:normal clamp(48px,5.5vw,78px)/1.05 Georgia,serif;letter-spacing:-2px;color:#fff0de;margin:10px 0 12px;text-shadow:0 0 60px #c0988940}.primordial-heading .expedition-intro{color:#c7b8c9;font:17px Georgia,serif}
.expedition-page.primordial-boosters .booster-layout{display:grid!important;grid-template-columns:230px minmax(300px,1fr) 240px!important;gap:20px!important;min-height:640px!important;padding:5px 0 20px!important;align-items:center!important}
.primordial-series-list{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:20px}
.primordial-series{position:relative;display:flex;align-items:center;text-align:left;gap:14px;width:100%;min-height:130px;padding:12px 10px;border:0;border-radius:45% 20%;background:radial-gradient(ellipse,#785b7444,transparent 72%);color:#cfbdce;cursor:pointer;transition:filter .25s,translate .25s;isolation:isolate}
.primordial-series:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#17162977,#111323dd),var(--series-scene) center/cover;mask-image:radial-gradient(ellipse,black 20%,transparent 72%);z-index:-1;opacity:.6}
.primordial-series img{width:65px;height:105px;object-fit:contain;filter:grayscale(.7) brightness(.7);rotate:-8deg;transition:filter .4s,rotate .4s,scale .4s}
.primordial-series strong{display:block;font:18px/1.35 Georgia,serif}.primordial-series small{display:block;margin-top:9px;font:11px/1.5 'Barlow',sans-serif;color:#ad95ac}.primordial-series[aria-pressed=true]{color:#ffe1b2;background:radial-gradient(ellipse,#a47b4b33,transparent 70%)}.primordial-series[aria-pressed=true] img,.primordial-series:hover img{filter:none;rotate:0deg;scale:1.08}.primordial-series[aria-pressed=true] small{color:#d8b996}.primordial-series:hover{translate:4px 0}.primordial-series:disabled{cursor:default;opacity:.5}
.expedition-page.primordial-boosters .booster-copy{grid-column:3;grid-row:1;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:10px 0!important;overflow:visible!important}.primordial-boosters .booster-copy:before,.primordial-boosters .booster-copy:after{display:none!important}.primordial-boosters .booster-copy .series-select[hidden]{display:none!important}
.expedition-page.primordial-boosters .booster-theatre{grid-column:2;grid-row:1;min-height:620px!important;--pack-width:300px!important;--pack-top:20px!important}
.expedition-page #booster-specialty{color:#d4c6d7!important}.expedition-page .booster-copy .expedition-ability{display:flex!important;flex-direction:column;align-items:flex-start;gap:12px!important;margin:25px 0!important;font:14px/1.6 'Barlow',sans-serif!important}.expedition-page .booster-copy .expedition-ability b{display:block;color:#f2c995;font:22px Georgia,serif;margin-bottom:5px}.expedition-page .booster-copy .ability-icon{border:0!important;box-shadow:none!important;background:radial-gradient(circle,#d9a15b33,transparent 72%)!important;width:56px!important;height:56px!important}.expedition-page .booster-copy :is(.mode-note,#mode,#availability){color:#ac9ab1!important;font:11px/1.6 'Barlow',sans-serif!important}
.expedition-page #summary{padding:35px 20px;border-top:1px solid #bc99a23b;background:linear-gradient(#14112088,transparent);border-radius:30px}.expedition-page #summary h2{font:40px Georgia,serif;color:#f3dabc}.arch-motion{background:#1d1728dd}.arch-leaf{filter:brightness(.65)}
@media(max-width:1250px) and (min-width:851px){.expedition-page.primordial-boosters .booster-layout{grid-template-columns:190px minmax(270px,1fr)!important}.expedition-page.primordial-boosters .booster-copy{grid-column:1/-1;grid-row:2}.primordial-boosters #booster-specialty{display:flex;gap:35px}.primordial-series strong{font-size:16px}}
@media(max-width:850px){.primordial-heading{padding-top:30px}.expedition-page.primordial-boosters .booster-layout{display:flex!important;flex-direction:column!important;min-height:0!important;gap:10px!important}.primordial-series-list{width:100%;flex-direction:row;gap:2px}.primordial-series{flex:1;min-width:0;flex-direction:column;gap:8px;text-align:center;padding:10px 3px;min-height:165px}.primordial-series img{width:47px;height:72px}.primordial-series strong{font-size:13px}.primordial-series small{font-size:9px}.expedition-page.primordial-boosters .booster-theatre{order:2;width:100%;--pack-width:270px!important;min-height:580px!important}.expedition-page.primordial-boosters .booster-copy{order:3;width:100%;padding:0 10px!important}#booster-specialty{display:flex;gap:20px}.expedition-page .booster-copy .expedition-ability{flex:1;font-size:12px!important}.expedition-page .booster-copy .expedition-ability b{font-size:19px}}
.arch-dust{width:2px;height:2px;background:#e4f3ff;box-shadow:0 0 5px #b6ddff,0 0 13px #d9bb8266;animation-name:night-star-drift}.arch-dust:nth-child(3n){background:#dfbe7d;width:3px;height:3px}.arch-dust:nth-child(7n){width:1px;height:5px}
@keyframes night-star-drift{0%{transform:translate(0,20px) scale(.4);opacity:0}30%{opacity:.75}65%{opacity:.2}85%{opacity:.6}100%{transform:translate(65px,-130px) scale(.3);opacity:0}}
body.expedition-page.primordial-boosters .booster-copy{background:linear-gradient(120deg,#17313d99,#071a2399),url('assets/ui/slate-strata.svg') center/300px!important;border:1px solid #d5c59922!important;border-radius:26px!important;box-shadow:inset 0 1px #d5c59922!important;padding:26px 22px!important;box-sizing:border-box;align-self:center}
body.expedition-page.primordial-boosters #booster-specialty{display:flex!important;flex-direction:column!important;gap:26px!important;margin:0!important;width:100%}
body.expedition-page.primordial-boosters .expedition-ability{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;margin:0!important;color:#becdd3;font:13px/1.65 'Barlow',sans-serif!important}
body.expedition-page.primordial-boosters .expedition-ability b{color:#e6c997;font:21px/1.3 Georgia,serif;margin:3px 0 8px}.expedition-page .booster-copy .ability-icon{width:40px!important;height:40px!important}.expedition-page .booster-copy .ability-icon>.expedition-icon{width:28px!important;height:28px!important}
body.expedition-page.primordial-boosters .booster-theatre{--pack-width:340px!important;--card-width:320px!important;--pack-drop:0px!important;--pack-top:36px!important;--pack-floor:calc(var(--pack-width)*1.6 - 6px)!important;min-height:735px!important;overflow:visible!important}
body.expedition-page.primordial-boosters #stack{top:calc(var(--pack-top) + 12px)!important}
body.expedition-page.primordial-boosters .booster-timing{top:calc(var(--pack-top) + var(--pack-width)*1.6 + 22px)!important;padding:0!important;line-height:1.6;font:19px Georgia,serif!important;color:#eeddb6!important;width:100%;left:0;transform:none}
body.expedition-page.primordial-boosters #booster-countdown{font:bold 36px/1.3 Georgia,serif!important;letter-spacing:2px}#booster-reserve{font:16px/1.8 Georgia,serif!important;color:#cdbb88!important}
.night-booster-info{position:absolute;top:calc(var(--pack-top) + var(--pack-width)*1.6 + 30px);left:0;right:0;text-align:center;color:#c2cbd0;font:12px/1.5 'Barlow',sans-serif}.night-booster-info #availability{color:#eeddb6!important;font:17px Georgia,serif!important}.night-booster-info #mode{font-size:11px;max-width:340px;margin:10px auto}.night-booster-info .drop-legend{display:none}.booster-theatre:has(.booster-timing:not([hidden])) .night-booster-info{display:none}.booster-theatre:not([data-phase=sealed]) .night-booster-info{visibility:hidden}
.primordial-series-list{max-height:470px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8a27855 transparent;padding:12px 4px;position:relative}.primordial-series{flex-shrink:0}.night-card-pending{opacity:0}
@media(min-width:1251px){body.expedition-page.primordial-boosters .booster-layout{grid-template-columns:215px minmax(350px,1fr) 255px!important;gap:12px!important}}
@media(max-width:1250px) and (min-width:851px){body.expedition-page.primordial-boosters .booster-copy{width:100%}body.expedition-page.primordial-boosters #booster-specialty{flex-direction:row!important}.expedition-ability{flex:1}}
@media(max-width:850px){body.expedition-page.primordial-boosters .booster-theatre{--pack-width:min(295px,calc(100vw - 80px))!important;--card-width:min(277px,calc(100vw - 96px))!important;--pack-top:28px!important;min-height:665px!important}.primordial-series-list{max-height:none;overflow-x:auto;overflow-y:hidden;flex-direction:row!important}.primordial-series{flex:0 0 32%;min-height:165px}body.expedition-page.primordial-boosters .booster-copy{padding:23px 18px!important}body.expedition-page.primordial-boosters .booster-timing{font-size:17px!important}body.expedition-page.primordial-boosters #booster-countdown{font-size:32px!important}}
@media(prefers-reduced-motion:reduce){.night-card-pending{opacity:1}}
/* Equal side tracks keep the opening axis exactly at the content midpoint. */
@media(min-width:1251px){body.expedition-page.primordial-boosters .booster-layout{grid-template-columns:255px minmax(350px,1fr) 255px!important}}
@media(min-width:851px) and (max-width:1250px){body.expedition-page.primordial-boosters .booster-layout{grid-template-columns:minmax(155px,1fr) minmax(300px,2fr) minmax(155px,1fr)!important}body.expedition-page.primordial-boosters .booster-copy{grid-column:3!important;grid-row:1!important;padding:18px 12px!important}body.expedition-page.primordial-boosters #booster-specialty{flex-direction:column!important}body.expedition-page.primordial-boosters .booster-theatre{--pack-width:290px!important;--card-width:273px!important}.primordial-series strong{font-size:14px}.primordial-series img{width:45px}.primordial-series{gap:8px}.expedition-page.primordial-boosters .expedition-ability{grid-template-columns:1fr!important}}
#collection>article,#summary-cards>article{position:relative}.night-card-grains{position:absolute;pointer-events:none;z-index:15;max-width:none!important}
body.expedition-page.primordial-boosters #theatre{width:100%!important;max-width:none!important;min-width:0;justify-self:stretch}
/* Combat camp and deck workbench, midnight stone and aged brass. */
body.expedition-page .card-back,body.expedition-page .battle-card-back{background:var(--player-cardback,var(--chosen-cardback,url('assets/hud/card-back-teal-v3-footprint.png') center/100% 100% no-repeat)) #0e2230!important;border:0!important;outline:0!important;box-shadow:0 10px 25px #0008!important;border-radius:3.5%/2.5%!important}
body.expedition-page .card-back>*,body.expedition-page .battle-card-back>*{visibility:hidden!important}body.expedition-page .card-back:before,body.expedition-page .card-back:after,body.expedition-page .battle-card-back:before,body.expedition-page .battle-card-back:after{display:none!important}

body.expedition-page .game-tabs a{background:radial-gradient(ellipse,#bba87828,transparent 72%)!important;border:0!important;box-shadow:none!important;border-radius:50%!important;overflow:visible!important}body.expedition-page .game-tabs a:after{display:none!important}body.expedition-page .game-tabs a[aria-current]{background:radial-gradient(ellipse,#bba87848,transparent 72%)!important}
.primordial-series-list{scrollbar-width:none}.primordial-series-list::-webkit-scrollbar{display:none}@media(min-width:851px){.primordial-series-list{height:450px;max-height:450px;box-sizing:border-box;padding:10px 4px;gap:10px;scroll-snap-type:y proximity;scroll-padding:10px;mask-image:linear-gradient(transparent,#000 2%,#000 98%,transparent)}.primordial-series{height:136.6667px;min-height:136.6667px;box-sizing:border-box;scroll-snap-align:start}}
body.expedition-page .card .rarity-badge{translate:0 3px}.card .finish-metal,.card .finish-hud-sparkles{display:none!important}
body.expedition-page.primordial-boosters .booster-copy{background:linear-gradient(120deg,#102633bc,#10212dcf),url('assets/ui/slate-strata.svg') center/320px!important}
/* Guest information uses the same lightweight presentation as the first prototype. */
.primordial-boosters .night-booster-info #availability{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
/* Blue trial: preserve the original grain and its luminance, change hue only. */
body.expedition-page>header{background-color:#163448;background-image:linear-gradient(105deg,#0a202dcc,#07161fda 52%,#06121be8),var(--exp-material);background-position:0 0,50% 42%;background-size:auto,1100px auto;background-blend-mode:normal,luminosity}
body.expedition-page>header #account-button{background-color:#163448;background-image:linear-gradient(110deg,#0b1b2599,#050f18cc),var(--exp-material);background-blend-mode:normal,luminosity}
body.expedition-page :is(.filters,.panel,.deck-panel,#deck-editor,#training-tools,#training-preview){background-color:#163448;background-image:linear-gradient(110deg,#06111adb,#091921df),var(--exp-material);background-blend-mode:normal,luminosity;box-shadow:inset 0 0 0 3px #091923,inset 0 0 0 4px #9f894b35,0 15px 35px #0006}
body.expedition-page :is(.filters,.deck-filters) :is(select,input[type=search]){background-color:#10222e}
body.expedition-page select option,body.expedition-page select optgroup{background-color:#14232e}body.expedition-page select option:checked{background-color:#3a4b58}
body.expedition-page .rarity-choices label span,body.expedition-page .rarity-choices .rarity-all{background-color:#10222e}
body.expedition-page .rarity-choices input:checked+span,body.expedition-page .rarity-choices .rarity-all[aria-pressed=true]{background-color:#514221}
/* Shared title typography and restrained header logo alignment. */
body.expedition-page :is(.primordial-heading,.heading) h1{font:normal clamp(48px,5.5vw,78px)/1.05 Georgia,serif!important;letter-spacing:-2px!important;color:#fff0de!important;text-shadow:0 2px 5px #0009!important}
/* Keep page titles legible over both daylight and night scenery. */
body.expedition-page :is(.primordial-heading,.heading,.battle-heading) h1{position:relative;isolation:isolate;width:fit-content;max-width:100%;color:#fff0de!important;text-shadow:none!important}
body.expedition-page :is(.primordial-heading,.heading,.battle-heading) h1::before{content:'';position:absolute;z-index:-1;inset:0 -6px;pointer-events:none;border-radius:12px;background:#031310c9;filter:blur(32px)}
body.expedition-page #battle #battle-round{position:relative;isolation:isolate}
body.expedition-page #battle :is(#battle-lobby,#battle-forfeit){background:#122626d9!important;border:1px solid #dfc48c70!important;border-radius:6px!important;box-shadow:none!important;color:#dfc48c!important;text-shadow:none!important;padding:9px 13px;transition:background .2s,border-color .2s}
body.expedition-page #battle :is(#battle-lobby,#battle-forfeit):hover{background:#203636ed!important;border-color:#dfc48c!important}
body.expedition-page #battle :is(#battle-lobby,#battle-forfeit)::after{display:none}
body.expedition-page #battle #battle-round::before{display:block!important;content:'';position:absolute;z-index:-1;inset:-8px -6px;pointer-events:none;border-radius:12px;background:#031310c9;filter:blur(32px)}
body.expedition-page>header .brand{align-self:center;align-items:center}
body.expedition-page>header .brand-lockup{object-fit:contain!important;object-position:left center!important;filter:drop-shadow(0 3px 3px rgba(0,0,0,.51)) drop-shadow(0 6px 10px rgba(0,0,0,.37))}
body.expedition-page .primordial-series :is(strong,small){text-shadow:0 3px 3px #000,0 6px 10px #000e,0 0 22px #000b}
body.expedition-page .primordial-series img{filter:grayscale(.7) brightness(.7) drop-shadow(0 3px 3px #000) drop-shadow(0 6px 10px #000b)}
body.expedition-page .primordial-series[aria-pressed=true] img,body.expedition-page .primordial-series:hover img{filter:drop-shadow(0 3px 3px #000) drop-shadow(0 6px 10px #000b)}
body.expedition-page .game-tabs a::before,body.expedition-page :is(#deck-edit,.player-actions button,#battle-forfeit,#battle-lobby)::before{display:none!important}
body.expedition-page.primordial-boosters .booster-copy{background-color:#163448!important;background-image:linear-gradient(110deg,#06111adb,#091921df),var(--exp-material)!important;background-position:0 0,center!important;background-size:auto,780px auto!important;background-blend-mode:normal,luminosity!important;border:1px solid #d2b77599!important;border-radius:14px!important;box-shadow:inset 0 0 0 3px #091923,inset 0 0 0 4px #9f894b35,0 15px 35px #0006!important;padding:28px 22px!important}
body.expedition-page.primordial-boosters #booster-specialty{align-items:center!important;gap:26px!important}
body.expedition-page.primordial-boosters .expedition-ability{width:100%;grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important;gap:5px!important}
body.expedition-page.primordial-boosters .expedition-ability b{margin:2px 0 7px!important}
body.expedition-page.primordial-boosters .expedition-ability .ability-icon{height:34px!important}
@media(max-width:600px){body.expedition-page :is(.primordial-heading,.heading) h1{font-size:42px!important;letter-spacing:-1px!important}}
/* Explorer identity and power badges follow the slate palette. */
body.expedition-page .avatar{background:radial-gradient(circle at 30% 20%,#344652,#0a1925)!important;border-color:#b9a36c!important;color:#f0d59b!important;box-shadow:inset 0 1px #d6deea18!important}
body.expedition-page .player-deck-power{background:linear-gradient(135deg,#283d4bcc,#091c29)!important;box-shadow:inset 0 0 0 2px #102330!important;border-color:#b9a36c88!important;color:#f4da9a!important}
/* One outer frame for deck composition, with slate surfaces throughout. */
body.combat-page #deck-editor{border:0!important;box-shadow:none!important;background:none!important;padding:0!important}
body.combat-page #deck-preview,body.combat-page .deck-totals{background:#10232fef!important;border-color:#acb6bd24!important;border-radius:10px;box-shadow:none!important}
body.combat-page #deck-preview .deck-totals{background:none!important}
body.combat-page .deck-totals{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:16px}
body.combat-page .deck-total-skills{color:#bccad2!important}
body.combat-page .deck-actions{background:linear-gradient(110deg,#091a26f2,#142a36f5),var(--exp-material)!important;background-blend-mode:normal,luminosity;background-color:#163448;border-color:#c8b27a44!important;box-shadow:0 -8px 22px #06121d44;border-radius:10px}
body.combat-page .deck-candidate{background:#10232f!important;border-color:#95a8b444!important}
body.combat-page .deck-candidate.selected{background:#243c4b!important;border-color:#d1ba80!important;box-shadow:0 0 0 1px #d1ba8055!important}
body.combat-page .deck-empty-slot{background:#10232f!important;color:#c6d0d7!important}
body.combat-page .deck-filters :is(input,select){background-color:#10222e!important;color:#e1e6e8!important}
body.combat-page #deck-tabs button{transition:opacity .22s,filter .22s,background .22s!important}
body.combat-page #deck-tabs button[aria-pressed=false]{opacity:.38;filter:grayscale(.85);background:transparent!important;box-shadow:none!important}
body.combat-page #deck-tabs button[aria-pressed=false]:hover{opacity:.7}
body.combat-page #deck-tabs button[aria-pressed=true]{opacity:1;filter:none;background:radial-gradient(ellipse,#304c60aa,transparent 72%)!important;color:#ffedbc!important;box-shadow:none!important}
body.combat-page #deck-selected{max-width:100%!important;grid-template-columns:repeat(3,var(--chosen-card-width,180px))!important;justify-content:safe center;gap:12px!important;overflow-x:auto;padding:6px 0 12px;scrollbar-width:thin}
@media(max-width:750px){body.combat-page .deck-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Card-back palette: deep mineral green, slightly darker than the card. */
body.expedition-page{--menu-base:#123735;--menu-field:#0d2827;--menu-active:#244440}
body.expedition-page>header{background-color:var(--menu-base);background-image:linear-gradient(105deg,#092b29cc,#071e1dda 52%,#061917e8),var(--exp-material);background-blend-mode:normal,luminosity}
body.expedition-page>header #account-button{background-color:var(--menu-base);background-image:linear-gradient(110deg,#0b292699,#061b19cc),var(--exp-material);background-blend-mode:normal,luminosity}
body.expedition-page :is(.filters,.panel,.deck-panel,#training-tools,#training-preview),body.expedition-page.primordial-boosters .booster-copy{background-color:var(--menu-base)!important;background-image:linear-gradient(110deg,#092421cf,#0a2825d9),var(--exp-material)!important;background-blend-mode:normal,luminosity!important;box-shadow:inset 0 0 0 3px #09221f,inset 0 0 0 4px #9f894b35,0 15px 35px #0006!important}
body.expedition-page :is(.filters,.deck-filters,#training-tools) :is(input:not([type=checkbox]):not([type=range]),select){background-color:var(--menu-field)!important;color:#dce5df!important}
body.expedition-page select option,body.expedition-page select optgroup{background-color:var(--menu-field)!important;color:#dce5df!important}
body.expedition-page select option:checked{background-color:var(--menu-active)!important}
body.expedition-page .rarity-choices label span,body.expedition-page .rarity-choices .rarity-all{background-color:var(--menu-field)!important}
body.expedition-page .rarity-choices input:checked+span,body.expedition-page .rarity-choices .rarity-all[aria-pressed=true]{background-color:var(--menu-active)!important}
body.combat-page #deck-preview,body.combat-page .deck-totals{background:#102c29ef!important}
body.combat-page #deck-preview .deck-totals{background:none!important}
body.combat-page .deck-actions{background:linear-gradient(110deg,#091f1cf2,#14312df5),var(--exp-material)!important;background-blend-mode:normal,luminosity!important;background-color:var(--menu-base)!important}
body.combat-page .deck-candidate,body.combat-page .deck-empty-slot{background:var(--menu-field)!important}
body.combat-page .deck-candidate.selected{background:var(--menu-active)!important}
body.combat-page #deck-tabs button[aria-pressed=true]{background:radial-gradient(ellipse,#2b5148aa,transparent 72%)!important}
body.expedition-page .avatar{background:radial-gradient(circle at 30% 20%,#345149,#0a211e)!important}
body.expedition-page .player-deck-power{background:linear-gradient(135deg,#2a483fcc,#092620)!important;box-shadow:inset 0 0 0 2px #102d26!important}
body.expedition-page .status-banner{background:#0c2825dd;border-color:#bda46466}
body.expedition-page .account-dropdown,body.expedition-page #collection-top{background-color:var(--menu-field)}
/* Sampled from the mineral field of the actual card back: RGB 16,45,49. */
body.expedition-page{--menu-base:#102d31;--menu-field:#102d31;--menu-active:#204046;--cardback-surface:linear-gradient(#102d31b8,#102d31b8),var(--exp-material)}
body.expedition-page>header,body.expedition-page>header #account-button,body.expedition-page :is(.filters,.panel,.deck-panel,#training-tools,#training-preview),body.expedition-page.primordial-boosters .booster-copy{background-color:#102d31!important;background-image:var(--cardback-surface)!important;background-blend-mode:normal,luminosity!important;box-shadow:inset 0 0 0 2px #102d31,inset 0 0 0 3px #9f894b35,0 12px 30px #0005!important}
body.combat-page #deck-preview,body.combat-page .deck-totals,body.combat-page .deck-actions{background-color:#102d31!important;background-image:var(--cardback-surface)!important;background-blend-mode:normal,luminosity!important}
body.combat-page #deck-preview .deck-totals{background:none!important}
body.expedition-page .avatar{background:radial-gradient(circle at 30% 20%,#204046,#102d31)!important}
body.expedition-page .player-deck-power{background:#102d31!important;box-shadow:inset 0 0 0 2px #19383c!important}
body.expedition-page .status-banner{background:#102d31!important}
/* Account surfaces and champagne navigation accents. */
body.expedition-page .account-dialog{background-color:#102d31;background-image:var(--cardback-surface);background-blend-mode:normal,luminosity;border-color:#cfad7088;color:#e1e5df;box-shadow:0 20px 65px #0008}
body.expedition-page .account-dialog input,body.expedition-page .account-dialog .close{background:#102d31;color:#f1dfb7;border-color:#cfad7077}
body.expedition-page .account-dialog :is(.eyebrow,h2){color:#dfc48c}
body.expedition-page>header :is(.game-tabs a,.game-tabs a[aria-current],#account-button){color:#dfc48c!important;text-shadow:none!important}
body.expedition-page>header .expedition-icon{filter:saturate(.65)!important}
body.expedition-page>header .expedition-icon stop:first-child{stop-color:#fff0c5}
body.expedition-page>header .expedition-icon stop:last-child{stop-color:#87714b}
body.expedition-page.primordial-boosters .ability-heading{display:flex;justify-content:center;align-items:center;gap:10px}
body.expedition-page.primordial-boosters .ability-heading b{margin:0!important}
body.expedition-page.primordial-boosters .ability-heading .ability-icon{width:30px!important;height:32px!important;flex:0 0 30px}
body.expedition-page.primordial-boosters .ability-description{display:block;margin-top:7px}
body.expedition-page #summary{background:linear-gradient(#102d3188,#102d3140)!important;border-color:#cfad703b}
/* Increase the sealed pack and opening cards together by fifteen percent. */
body.expedition-page.primordial-boosters .booster-theatre{--pack-width:391px!important;--card-width:368px!important;min-height:840px!important}
@media(min-width:851px) and (max-width:1250px){body.expedition-page.primordial-boosters .booster-theatre{--pack-width:333.5px!important;--card-width:313.95px!important;min-height:755px!important}}
@media(max-width:850px){body.expedition-page.primordial-boosters .booster-theatre{--pack-width:min(339.25px,calc((100vw - 80px)*1.15))!important;--card-width:min(318.55px,calc((100vw - 96px)*1.15))!important;min-height:735px!important}}
body.expedition-page .duplicate-feedback{background:linear-gradient(#102d31ee,#102d31ee),var(--exp-material)!important;background-blend-mode:normal,luminosity;background-color:#102d31!important;border-color:#cfad7088;color:#eedbb0;box-shadow:0 8px 28px #0008}
body.expedition-page .deck-profiles{display:flex;gap:12px;flex-wrap:wrap}
body.expedition-page .deck-profiles button{font:25px Georgia,serif;padding:10px 15px;opacity:.5}
body.expedition-page .deck-profiles button[aria-pressed=true]{opacity:1;color:#fff0de!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:8px}
#deck-state:empty{display:none}
/* Fine separators and non-sticky team summary. Scrolling remains available. */
html,body,body *{scrollbar-width:none!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,body *::-webkit-scrollbar{display:none!important}
body.expedition-page .deck-profiles button[aria-pressed=true]{text-decoration:none!important}
body.combat-page .deck-heading,body.combat-page #deck-editor>h2,body.combat-page #deck-preview,body.combat-page #deck-tabs{position:relative;padding-bottom:22px;margin-bottom:22px}
body.combat-page .deck-heading::after,body.combat-page #deck-editor>h2::after,body.combat-page #deck-preview::after,body.combat-page #deck-tabs::after,body.combat-page #deck-overview>.deck-totals::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#bda87544 15%,#bda87544 85%,transparent);pointer-events:none}
body.combat-page #deck-preview{position:relative!important;top:auto!important;backdrop-filter:none!important;background:none!important;padding-inline:0}
body.combat-page #deck-preview .deck-totals{background:none!important;border:0!important;border-radius:0}
body.combat-page .deck-actions{background:linear-gradient(#102d31f2,#102d31e8)!important;backdrop-filter:none!important;box-shadow:0 -8px 24px #0004!important;border-color:#cfad7055!important}
body.expedition-page .player-deck-power{background:linear-gradient(130deg,#fffefa,#e5e9e3 58%,#fff)!important;color:#102d31!important;border:1px solid #cbd3cb!important;border-bottom:3px solid #173e3d!important;border-radius:9px!important;box-shadow:inset 0 1px 2px #fff,0 2px 6px #0004!important;text-shadow:none!important}

/* Shared full-width separators and legible pearl actions. */
body.combat-page #deck-preview{width:100%;border:0!important;border-radius:0}
body.combat-page #deck-tabs{border:0!important}
body.combat-page #deck-overview>.deck-totals{position:relative;border:0!important;padding-bottom:22px;margin-bottom:22px}
body.expedition-page.combat-page #deck-edit.gold,body.expedition-page.combat-page #deck-save.gold{background:linear-gradient(130deg,#fffefa,#e5e9e3 58%,#fff)!important;color:#102d31!important;border:1px solid #cbd3cb!important;border-bottom:3px solid #173e3d!important;border-radius:9px!important;box-shadow:inset 0 1px 2px #fff,0 2px 6px #0004!important;text-shadow:none!important}


/* Compact action strip; Cancel retains the original unboxed dust button. */
body.combat-page .deck-actions{width:fit-content;max-width:100%;margin-left:auto;gap:12px;padding:10px 12px;box-sizing:border-box}

/* Unified training filter panel and pearl collection controls. */
body.expedition-page.training-mode #training-filter-panel{background-color:#102d31;background-image:var(--cardback-surface);background-blend-mode:normal,luminosity;border:1px solid #bda87577;border-radius:16px;padding:20px 24px;box-shadow:inset 0 0 0 2px #102d31,inset 0 0 0 3px #9f894b35,0 12px 30px #0005}
body.expedition-page.training-mode #training-filter-panel :where(#training-tools,.filters){background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}
body.expedition-page.training-mode #training-filter-panel .filters{margin-top:22px!important;padding-top:20px!important;border-top:1px solid #bda87544!important}
body.expedition-page #training-tools button{background:#17383c;color:#f3e7cd;border-color:#bda87577}
body.expedition-page #training-tools #same-series[aria-pressed=true]{background:#2a4b4d;border-color:#e0c58e}
body.expedition-page.collection-page #gallery-size.quiet{background:none!important;color:#dfc48c!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}
body.expedition-page.collection-page #gallery-size::after{display:none}
body.expedition-page.collection-page #gallery-size svg{filter:drop-shadow(0 1px 1px #0008);transition:filter .2s}
body.expedition-page.collection-page #gallery-size:hover svg{filter:drop-shadow(0 1px 1px #0008) drop-shadow(0 0 5px #d6ac5866)}
body.expedition-page.collection-page #gallery-size:focus-visible{outline:2px solid #dfc48c;outline-offset:3px}
body.expedition-page.collection-page #gallery-size.quiet{width:42px;height:42px;padding:9px;display:inline-grid;place-items:center}
body.expedition-page .training-actions{display:flex;align-items:center;gap:12px;margin-top:10px}
body.expedition-page .training-actions button{min-height:44px;padding:10px 20px;cursor:pointer}
body.expedition-page .training-actions button:disabled{cursor:default}
@media(max-width:600px){body.expedition-page.training-mode #training-filter-panel{padding:16px}}

/* Pearl white and deep green battle controls, preserving existing motion. */
body.expedition-page #battle-confirm .attack-seal{background:linear-gradient(135deg,#e9efea,#52726c 45%,#fafffa 70%,#173e3d)}
body.expedition-page #battle-confirm .attack-seal:before{background:linear-gradient(130deg,#fffefa,#e5e9e3 58%,#fff)}
body.expedition-page #battle-confirm .attack-seal:after{background:linear-gradient(110deg,transparent 43%,#ffffff70 50%,transparent 57%)}
body.expedition-page #battle-confirm .attack-claw path:first-child{fill:#173e3d;stroke:#466c61}
body.expedition-page #battle-confirm .attack-claw path+path{stroke:#aac3b6}
body.expedition-page #battle-confirm .attack-seal svg{filter:drop-shadow(0 1px 1px #102d3144)}
body.expedition-page #battle-confirm .attack-spark{fill:#cfad70}
body.expedition-page #battle-confirm.fight-button:hover{filter:drop-shadow(0 0 10px #e4eee888)}
body.expedition-page .battle-arena{background:linear-gradient(#081d2259,#102d311a 40%,#071e2466),var(--environment-art,url('assets/environments/arena-teal-01-v1.png')) center/cover;box-shadow:inset 0 0 85px #071c2266,0 20px 80px #0005}

/* End-of-duel and surrender surfaces share the site's card-back palette. */
body.expedition-page.combat-page #forfeit-confirm,body.expedition-page.combat-page #battle-result{background-color:#102d31!important;background-image:var(--cardback-surface)!important;background-blend-mode:normal,luminosity!important;color:#dce5df;border-color:#bda87577;box-shadow:inset 0 0 0 2px #102d31,inset 0 0 0 3px #9f894b35,0 12px 30px #0005!important}
body.expedition-page.combat-page #battle-result{border-radius:inherit;backdrop-filter:none}
body.expedition-page.combat-page #forfeit-confirm h2,body.expedition-page.combat-page #battle-result h2{color:#dfc48c}
body.expedition-page.combat-page #battle-result-note{color:#dce5df}
body.expedition-page.combat-page #forfeit-confirm::backdrop{background:#06171bc9}

/* Card selection dialog matches the other combat surfaces. */
body.expedition-page.combat-page #line-picker{background-color:#102d31;background-image:var(--cardback-surface);background-blend-mode:normal,luminosity;border-color:#bda87577;color:#dce5df;box-shadow:inset 0 0 0 2px #102d31,inset 0 0 0 3px #9f894b35,0 20px 80px #0008}
body.expedition-page.combat-page #line-picker h2{color:#dfc48c}
body.expedition-page.combat-page #line-picker::backdrop{background:#06171bd9}
body.expedition-page.combat-page #line-picker-grid .battle-option{background:#102d31;border-color:#607d7866}
body.expedition-page.combat-page #line-picker-grid .battle-option.selected{background:#244847;border-color:#dfc48c;box-shadow:0 0 0 2px #cfad7066}

/* Pearl reveal badge and aligned collection heading. */
body.expedition-page .new-card-feedback{background:linear-gradient(130deg,#fffefa,#e5e9e3 58%,#fff)!important;color:#102d31!important;border-color:#cbd3cb!important;border-bottom:3px solid #173e3d!important;box-shadow:inset 0 1px 2px #fff,0 2px 6px #0004!important;text-shadow:none!important}
body.expedition-page #summary h2{color:#fff!important}
body.expedition-page .collection-heading{align-items:center!important}
body.expedition-page .collection-heading h1{margin-block:0!important}
body.expedition-page .collection-heading #gallery-size{align-self:center;margin-block:0;transform:none}
@media(max-width:850px){
 body.expedition-page .primordial-series-list{max-width:100%;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:8px;overscroll-behavior-x:contain;touch-action:pan-x pan-y;gap:10px;padding-inline:8px}
 body.expedition-page .primordial-series{flex:0 0 calc((100% - 20px)/3);box-sizing:border-box;scroll-snap-align:start}
 /* Only vertical spacing inside the deck changes on mobile. */
 body.combat-page .deck-panel{padding-block:12px}
 body.combat-page .deck-heading{gap:10px;padding-bottom:12px;margin-bottom:12px}
 body.combat-page .deck-profiles button{padding-block:6px}
 body.combat-page #deck-overview>.deck-totals{padding-block:10px 12px;margin-bottom:10px;row-gap:8px}
 body.combat-page #deck-overview .deck-groups{row-gap:6px}
 body.combat-page #deck-overview .deck-group h3{margin-top:8px;margin-bottom:4px}
 body.combat-page #deck-overview .deck-cards{padding-top:12px;padding-bottom:18px}
 body.combat-page #deck-overview .deck-small:nth-child(2),body.combat-page #deck-overview .deck-small:nth-child(3){margin-top:40px}
}

/* Never expose the legacy booster markup while session/catalogue load. */
body.boosters-loading main{visibility:hidden}
#boosters-loading-status{position:absolute;top:180px;left:20px;right:20px;text-align:center;color:#f4eee0;font:20px Georgia,serif;padding:24px}

/* Align collection density control with the bottom of the title. */
body.expedition-page .collection-heading #gallery-size{align-self:flex-end;margin-bottom:0;transform:none}

body.expedition-page .collection-heading{position:relative}
body.expedition-page .collection-heading #gallery-size{align-self:center;position:relative;top:var(--compact-offset,0px)}
@media(max-width:850px){body.combat-page #deck-overview>.deck-totals{padding-bottom:6px;margin-bottom:2px}body.combat-page #deck-overview .deck-group h3{margin-top:4px}}

/* Original ivory/green prehistoric action symbols, keep their upright silhouettes. */
body.expedition-page .action-badge[src*="prehistoric"]{transform:none;width:12.5%;object-fit:contain}

/* Lift the action icons and separate their silhouette from the illustration. */
body.expedition-page .card .action-badge[src*="prehistoric"]{translate:0 -5px;filter:drop-shadow(0 1px 1px #061a20e6) drop-shadow(0 0 2px #ffffffd9) drop-shadow(0 0 5px #ffffff80)}

/* Fine white silhouette edge around the action symbols. */
body.expedition-page .card .action-badge[src*="prehistoric"]{filter:drop-shadow(.5px 0 0 #fff) drop-shadow(-.5px 0 0 #fff) drop-shadow(0 .5px 0 #fff) drop-shadow(0 -.5px 0 #fff) drop-shadow(0 1px 1px #061a20e6) drop-shadow(0 0 2px #ffffffd9) drop-shadow(0 0 5px #ffffff80)}

/* Preview with a white edge only, without glow. */
body.expedition-page .card .action-badge[src*="prehistoric"]{filter:drop-shadow(.5px 0 0 #fff) drop-shadow(-.5px 0 0 #fff) drop-shadow(0 .5px 0 #fff) drop-shadow(0 -.5px 0 #fff)}

/* Preview with a fine black silhouette edge, without glow. */
body.expedition-page .card .action-badge[src*="prehistoric"]{filter:drop-shadow(.5px 0 0 #000) drop-shadow(-.5px 0 0 #000) drop-shadow(0 .5px 0 #000) drop-shadow(0 -.5px 0 #000)}

/* Sampled ivory edge (#dbc fb5 without spaces), icons five percent larger. */
body.expedition-page .card .action-badge[src*="prehistoric"]{scale:1.155;filter:drop-shadow(.5px 0 0 #dbcfb5) drop-shadow(-.5px 0 0 #dbcfb5) drop-shadow(0 .5px 0 #dbcfb5) drop-shadow(0 -.5px 0 #dbcfb5)}

/* Larger deck symbols, with a crisp white edge on power summaries. */
body.combat-page .deck-total-action{width:40px;height:40px;flex-shrink:0;filter:drop-shadow(.5px 0 0 #fff) drop-shadow(-.5px 0 0 #fff) drop-shadow(0 .5px 0 #fff) drop-shadow(0 -.5px 0 #fff)}
body.combat-page .deck-group-symbol,body.combat-page .deck-tab-icon{width:36px;height:36px;flex-shrink:0}
@media(max-width:600px){
 body.combat-page .deck-total-action{width:29px;height:29px}
 body.combat-page .deck-group-symbol,body.combat-page .deck-tab-icon{width:29px;height:29px}
}

/* Each fighter recap belongs to its own card column. */
body.combat-page #deck-overview>.deck-totals{justify-content:center;text-align:center}
body.combat-page #deck-overview>.deck-totals>.deck-total-value{justify-content:center;font-size:clamp(30px,4vw,46px);gap:12px;color:#fff1cb;text-shadow:0 2px 12px #000}
body.combat-page .deck-group-recap{max-width:none;min-height:112px;text-align:center;margin:0 auto 8px}
body.combat-page .deck-group-recap .deck-total-value,.deck-recap-flight.deck-total-group .deck-total-value{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;font:800 1.2rem/1.3 Arial,sans-serif;color:#f5e7c0}
body.combat-page .deck-group-recap small,.deck-recap-flight small{display:block;max-width:280px;margin:5px auto 0;font-size:12px;color:#dce5df;line-height:1.6}
.deck-recap-flight .deck-total-action{width:40px;height:40px;object-fit:contain;filter:drop-shadow(.5px 0 0 white) drop-shadow(-.5px 0 0 white)}
@media(max-width:600px){body.combat-page .deck-group-recap{min-height:100px}body.combat-page .deck-group-recap .deck-total-value{font-size:15px;gap:4px}body.combat-page .deck-group-recap small{font-size:10px}}
body.expedition-page.combat-page #battle-result[data-outcome=defeat]{background-image:linear-gradient(#06181955,#06181999),url('assets/environments/defeat-footprint-v1.png')!important;background-size:cover!important;background-position:center!important;background-blend-mode:normal!important}
body.expedition-page.combat-page #battle-result[data-outcome=victory]{background-image:linear-gradient(#06181944,#06181988),url('assets/environments/victory-summit-v1.png')!important;background-size:cover!important;background-position:center!important;background-blend-mode:normal!important}
body.combat-page #battle-result h2,body.combat-page #battle-result-note{text-shadow:0 2px 12px #000,0 1px 4px #000}

body.combat-page #deck-overview>.deck-totals{display:flex!important;width:100%;justify-content:center!important}

body.combat-page #deck-overview .deck-total-heart{font-size:1.18em;width:auto;height:auto;line-height:1;flex:none}

/* Persistent chrome; the isolated current page owns its own scroll and lifecycle. */
html:has(body.navigation-shell){height:100%;overflow:hidden}
body.navigation-shell{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0}
body.navigation-shell>header{flex:none}
#page-content{display:block;flex:1;min-height:0;width:100%;border:0;background:transparent;margin-top:12px;position:relative;z-index:1}
.navigation-status{position:absolute;top:160px;left:20px;right:20px;text-align:center;color:#f4eee0}
html.embedded-page,html.embedded-page body{background:transparent!important;min-height:100%}
html.embedded-page body::before,html.embedded-page body::after,html.embedded-page body>header,html.embedded-page .arch-atmosphere{display:none!important}
html.embedded-page main{margin-top:16px!important}
@media(prefers-reduced-motion:reduce){#page-content{animation:none!important}}
/* Consistent ability emblems and first-line alignment in both deck summaries. */
body.combat-page .deck-total-skills .combat-skill-line{display:flex;align-items:flex-start;justify-content:center;gap:5px;text-align:left}
body.combat-page .deck-total-skills .combat-skill-line>.support-role-icon{display:block;position:static;flex:0 0 26px;width:26px;height:26px;object-fit:contain;margin:calc((1lh - 26px)/2) 0 0}
body.combat-page .deck-total-skills .combat-skill-line>.support-effect-text{display:block;flex:0 1 auto;min-width:0;font:inherit}
body.expedition-page #collection-top{background:none!important;color:#dfc48c!important;border:0!important;box-shadow:none!important;text-shadow:none!important}
body.expedition-page #collection-top svg{filter:drop-shadow(0 1px 1px #0008);transition:filter .2s}
body.expedition-page #collection-top:hover svg{filter:drop-shadow(0 1px 1px #0008) drop-shadow(0 0 5px #d6ac5866)}
body.expedition-page #collection-top:focus-visible{outline:2px solid #dfc48c;outline-offset:3px}
@media(max-width:600px){body.combat-page .deck-total-skills .combat-skill-line>.support-role-icon{flex-basis:22px;width:22px;height:22px;margin-top:calc((1lh - 22px)/2)}}

/* Compact header spacing and pearl lettering on the active tab. */
#page-content{margin-top:6px}
body.expedition-page>header .game-tabs a[aria-current=page]{background:transparent!important;color:#fffefa!important;border-color:transparent!important;box-shadow:none!important;text-shadow:0 1px 2px #102d31!important}
body.expedition-page>header .game-tabs a[aria-current=page]::before{display:none}
body.combat-page .deck-total-skills .combat-skill-line{justify-content:flex-start;width:100%}
body.combat-page .deck-total-skills .combat-skill-line>.support-effect-text{flex:1;min-width:0}

#page-content{margin-top:0}
html.embedded-page main{margin-top:12px!important}
body.expedition-page>header .game-tabs a[aria-current=page] .expedition-icon{filter:grayscale(1) brightness(1.75)!important}

body.expedition-page>header .game-tabs a[aria-current=page]>span{color:#fffefa!important;-webkit-text-fill-color:#fffefa!important}
@media(max-width:850px){
 body.combat-page #deck-preview{padding-bottom:8px;margin-bottom:6px}
 body.combat-page #deck-preview .deck-totals{padding-bottom:8px}
 body.combat-page #deck-tabs{margin-top:6px}
 body.combat-page #deck-selected{justify-content:start;scroll-snap-type:x mandatory;scroll-padding-inline:0;touch-action:pan-x pan-y;overscroll-behavior-x:contain;scrollbar-width:none}
 body.combat-page #deck-selected .deck-selected-slot{scroll-snap-align:start}
 body.combat-page #deck-selected .deck-selected-card{touch-action:pan-x pan-y}
}
body.expedition-page>header .game-tabs a[aria-current=page]{background:radial-gradient(ellipse,#ffffff1c,transparent 72%)!important;text-shadow:0 0 7px #ffffff20!important}

/* Local palette trial: ivory active navigation and 60% surface-only opacity. */
body.expedition-page>header .game-tabs a[aria-current=page],
body.expedition-page>header .game-tabs a[aria-current=page]>span{color:#fff0de!important;-webkit-text-fill-color:#fff0de!important;text-shadow:0 0 7px #fff0de20!important}
body.expedition-page>header .game-tabs a[aria-current=page]{background:radial-gradient(ellipse,#fff0de1c,transparent 72%)!important}
body.expedition-page>header .game-tabs a[aria-current=page] .expedition-icon{filter:grayscale(1) sepia(.22) brightness(1.55)!important}
body.expedition-page{--cardback-surface:linear-gradient(transparent,transparent),url('assets/ui/cardback-surface-90.svg')}
body.expedition-page>header,
body.expedition-page :is(.filters,.panel,.deck-panel,#training-tools,#training-preview,#training-confirm,.account-dialog,#training-filter-panel,.duplicate-feedback,#forfeit-confirm,#line-picker),
body.expedition-page.primordial-boosters .booster-copy,
body.expedition-page.combat-page #battle-result:not([data-outcome=victory]):not([data-outcome=defeat]){background-color:transparent!important;background-image:var(--cardback-surface)!important;background-blend-mode:normal!important}
/* Darken scenery beneath panel surfaces, clipped to their rounded borders. */
body.expedition-page :is(.filters,.panel,.deck-panel,#training-tools,#training-preview,#training-confirm,.account-dialog,#training-filter-panel,.duplicate-feedback,#forfeit-confirm,#line-picker),
body.expedition-page.primordial-boosters .booster-copy,
body.expedition-page.combat-page #battle-result:not([data-outcome=victory]):not([data-outcome=defeat]){background-color:rgb(2 9 8 / var(--panel-shade-opacity,0))!important}
html.daylight-panels body.expedition-page :is(.filters,.panel,.deck-panel,#training-tools,#training-preview,#training-confirm,.account-dialog,#training-filter-panel,.duplicate-feedback,#forfeit-confirm,#line-picker,.booster-copy,#battle-result){transition:background-color var(--panel-shade-duration,10s) linear}
body.expedition-page.training-mode #training-filter-panel :is(#training-tools,.filters){background:none!important}
/* Outside training, only the filter section owns a surface, not its wrapper. */
body.expedition-page:not(.training-mode) #training-filter-panel{background:none!important}
/* Let the shared panel surface show through Collection's dense filter controls. */
body.expedition-page.collection-page:not(.training-mode) .filters :is(input[type=search],select){background-color:#102d3138!important;box-shadow:inset 0 1px 3px #0002}
body.expedition-page.collection-page:not(.training-mode) .filters .rarity-choices :is(label span,.rarity-all){background-color:#102d3138!important}
body.expedition-page.collection-page:not(.training-mode) .filters .rarity-choices input:checked+span,
body.expedition-page.collection-page:not(.training-mode) .filters .rarity-choices .rarity-all[aria-pressed=true]{background-color:#204046b3!important}
/* Nested recap panels share the outer surface instead of stacking opacity. */
body.combat-page #deck-overview>.deck-totals{background:none!important}
body.combat-page .deck-actions,body.expedition-page .status-banner{background:#102d3199!important}
body.expedition-page #summary{background:linear-gradient(#102d3199,#102d3199)!important}

/* Local catalogue: artwork placeholders keep every HUD element in place. */
#series-stars{position:absolute;top:6px;left:12px;right:12px;text-align:center;z-index:4;color:#fff0de;pointer-events:none;font-size:14px}

/* Series skill panel: left-aligned copy and a restrained gold divider. */
body.expedition-page.primordial-boosters #booster-specialty{align-items:stretch!important}
body.expedition-page.primordial-boosters .expedition-ability{justify-items:start!important;text-align:left!important;align-items:flex-start!important}
body.expedition-page.primordial-boosters .ability-heading{justify-content:flex-start}
body.expedition-page.primordial-boosters .expedition-ability+.expedition-ability{border-top:1px solid #d2b77599;padding-top:24px!important}
/* Favorite protection and the same deck marker in both selection screens. */
body.collection-page #detail{width:min(540px,calc(100vw - 80px),60vh);transform:translateX(-26px)}
.detail-card-row{position:relative}
#card-favorite{position:absolute;right:-52px;top:45%;width:44px;height:44px;padding:6px;border:0;border-radius:0;background:none;color:#dfc48c;box-shadow:none;cursor:pointer}
#card-favorite[hidden]{display:none}
#card-favorite svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #0008)}
#card-favorite[aria-pressed=true] svg{fill:currentColor}
#card-favorite:focus-visible{outline:2px solid #f3d995;outline-offset:3px}
.deck-candidate-art{position:relative}
body.combat-page .deck-candidate.selected{border-color:#a18e5044!important;box-shadow:none!important;background:var(--menu-field)!important}
.deck-training-tag[hidden]{display:none}

.training-mode .card-open.protected-training-card{opacity:1;cursor:not-allowed}
.training-protection-tag{position:absolute;z-index:13;right:5px;top:5px;padding:5px 7px;border:1px solid #cbd3cb;border-radius:6px;background:linear-gradient(130deg,#fffefa,#e5e9e3);color:#173e3d;font-size:11px;font-weight:700;pointer-events:none}

body.combat-page .deck-candidate.selected .deck-candidate-art{outline:3px solid #e54c46;outline-offset:3px;border-radius:12px}
/* Keep notification/account pill geometry with the ivory and green finish. */
body.expedition-page>header #account-button{background:linear-gradient(130deg,#fffefa,#e5e9e3 58%,#fff)!important;color:#102d31!important;border:1px solid #cbd3cb!important;border-bottom:3px solid #173e3d!important;border-radius:30px!important;box-shadow:inset 0 1px 2px #fff,0 2px 6px #0004!important;text-shadow:none!important}
body.expedition-page>header #account-button:before{background:#173e3d;box-shadow:0 11px 0 3px #173e3d;outline-color:#173e3d55}
body.expedition-page>header #account-button:after{color:#173e3d}
@media(max-width:850px){body.expedition-page>header #account-button:before{box-shadow:0 9px 0 2px #173e3d}}
body.combat-page #deck-tabs{justify-content:center;gap:5px}
body.combat-page #deck-tabs button{flex:0 1 140px;max-width:140px;padding-inline:12px}
/* Put particles in the top layer so transformed card dialogs cannot offset or clip them. */
.arch-sand-canvas[popover]{margin:0;padding:0;border:0;background:transparent;max-width:none;max-height:none;overflow:visible}


/* Fade the rail into the card emblem instead of enclosing its left side. */
body.expedition-page>header{--rail-fade-start:30px;--rail-fade-end:320px;border-color:transparent!important;overflow:visible;isolation:isolate;background:none!important;box-shadow:none!important}
body.expedition-page>header::before,body.expedition-page>header::after{content:'';position:absolute;inset:-1px;border-radius:inherit;pointer-events:none}
body.expedition-page>header::before{z-index:-1;border:1px solid #8b9d7277;box-shadow:inset 0 1px #d9d3a743,inset 0 -1px #6d8a6840;mask-image:linear-gradient(to right,transparent var(--rail-fade-start),#00000008 calc(var(--rail-fade-end) * .65),#00000030 var(--rail-fade-end),#000 calc(var(--rail-fade-end) + 130px)),linear-gradient(to left,transparent,#00000099 55px,#000 165px);mask-composite:intersect}
body.expedition-page>header::after{z-index:-2;background-image:var(--cardback-surface);background-position:0 0,50% 42%;background-size:auto,1100px auto;mask-image:linear-gradient(to right,transparent var(--rail-fade-start),#00000008 calc(var(--rail-fade-end) * .65),#00000030 var(--rail-fade-end),#000 calc(var(--rail-fade-end) + 130px)),linear-gradient(to left,transparent,#00000099 55px,#000 165px);mask-composite:intersect}
body.expedition-page>header .brand-lockup{transform:translateY(-3px)}
@media(min-width:851px){body.expedition-page>header #account-button{translate:-100px 0}}
@media(min-width:851px){body.expedition-page>header::before,body.expedition-page>header::after{right:-12px}}
body.expedition-page .wizz-button.quiet{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#dfc48c!important;text-shadow:none!important}
body.expedition-page .wizz-button::after{display:none}
body.expedition-page .wizz-button svg{filter:drop-shadow(0 1px 1px #0008);transition:filter .2s}
body.expedition-page .wizz-button:is(:hover,:focus-visible,.ringing) .bell-body{fill:currentColor}
body.expedition-page .wizz-button:hover svg{filter:drop-shadow(0 1px 1px #0008) drop-shadow(0 0 5px #d6ac5866)}
body.expedition-page .wizz-button:focus-visible{outline:2px solid #dfc48c;outline-offset:3px}
@media(max-width:850px){body.expedition-page>header{--rail-fade-start:18px;--rail-fade-end:200px}}

/* Keep the booster title's layout space without displaying its lettering. */
.booster-copy>h1,.primordial-heading>h1{visibility:hidden}


/* Slimmer header, with the wordmark vertically aligned to the navigation. */
@media(min-width:851px){body.expedition-page>header{height:clamp(78px,calc(6.9vw - 2px),98px)}body.expedition-page>header .brand{min-height:0}}
@media(max-width:850px){body.expedition-page>header{padding-top:8px;padding-bottom:10px;row-gap:5px}body.expedition-page>header .game-tabs a{height:61px}}


/* Expedition engravings: open silhouettes and a restrained active waymark. */
body.expedition-page>header .game-tabs{gap:22px}
body.expedition-page>header .game-tabs a{flex-direction:column;gap:0;height:76px;padding:3px 8px 9px;font:400 19px/1.15 Georgia,serif;letter-spacing:.8px;background:none!important;border-radius:0!important;position:relative}
body.expedition-page>header .game-tabs a .expedition-mark{width:55px;height:36px;margin-bottom:1px;opacity:.88;filter:drop-shadow(0 1px 1px #0008)}
body.expedition-page>header .game-tabs a>span:not(#challenge-count){font-variant:small-caps;text-shadow:0 1px 2px #0008}
body.expedition-page>header .game-tabs a::after{display:block!important;content:'';position:absolute;left:24%;right:24%;bottom:2px;height:1px;background:linear-gradient(90deg,transparent,#d6b77988,transparent);opacity:.35;transition:opacity .25s ease}
body.expedition-page>header .game-tabs a[aria-current=page]{background:none!important}
body.expedition-page>header .game-tabs a[aria-current=page]::after{opacity:1;background:linear-gradient(90deg,transparent,#ead4a6 40%,transparent 47%,transparent 53%,#ead4a6 60%,transparent)}
body.expedition-page>header .game-tabs a[aria-current=page]::before{display:block!important;content:'◆';position:absolute;inset:auto auto -2px calc(50% - 3px);width:6px;height:8px;background:none;opacity:1;transform:none;font:7px/8px Georgia,serif;color:#ead4a6;pointer-events:none}
body.expedition-page>header .game-tabs a:hover::after{opacity:1}
body.expedition-page>header #challenge-count{position:absolute;right:6px;top:6px;font:11px/1.2 sans-serif;letter-spacing:0}
@media(max-width:850px){body.expedition-page>header .game-tabs{gap:8px}body.expedition-page>header .game-tabs a{height:61px;font-size:16px;letter-spacing:.3px;padding:0 3px 8px}body.expedition-page>header .game-tabs a .expedition-mark{width:43px;height:29px}}

/* Keep the expedition menus open, without an underline or active diamond. */
body.expedition-page>header .game-tabs a::after,body.expedition-page>header .game-tabs a[aria-current=page]::before{display:none!important}

/* Approved outline/solid states follow the existing route selection. */
body.expedition-page>header .game-tabs a{font-family:'Times New Roman',serif;font-weight:400;letter-spacing:normal}
body.expedition-page>header .game-tabs a>span:not(#challenge-count){font-variant:normal}
body.expedition-page>header .game-tabs a .menu-icon-solid{display:none}
body.expedition-page>header .game-tabs a[aria-current=page] .menu-icon-outline{display:none}
body.expedition-page>header .game-tabs a[aria-current=page] .menu-icon-solid{display:inline}
/* Selected menus keep their gold, with a restrained amber glow. */
body.expedition-page>header .game-tabs a[aria-current=page],
body.expedition-page>header .game-tabs a[aria-current=page]>span:not(#challenge-count){color:#dfc48c!important;-webkit-text-fill-color:#dfc48c!important;text-shadow:0 0 9px #d6ac582e!important}
body.expedition-page>header .game-tabs a[aria-current=page] .expedition-icon{filter:drop-shadow(0 1px 1px #0008) drop-shadow(0 0 5px #d6ac5866)!important;opacity:1}
/* Public navigation text sizing, with larger marks to balance the stacked layout. */
body.expedition-page>header .game-tabs a{font-size:clamp(17px,1.55vw,21px);line-height:1}
body.expedition-page>header .game-tabs a .expedition-mark{width:62px;height:42px;margin-bottom:2px}
@media(min-width:851px) and (max-width:1150px){body.expedition-page>header .game-tabs a .expedition-mark{width:55px;height:37px}}
@media(max-width:850px){body.expedition-page>header .game-tabs a{font-size:16px}body.expedition-page>header .game-tabs a .expedition-mark{width:49px;height:33px;margin-bottom:1px}}
/* Continue native dialog dimming over the persistent header. */
.navigation-modal-shade{position:fixed;left:0;right:0;top:0;z-index:100;pointer-events:auto}
.navigation-modal-shade[hidden]{display:none}
/* Let the opening light dissolve before reaching the embedded page boundary. */
html.embedded-page body.primordial-boosters main:has(#opening-light){mask-image:none}
/* Centre series choices on the pack artwork rather than on the artwork plus timer. */
@media(min-width:851px){body.primordial-boosters .primordial-series-list{transform:translateY(-60px)}}

/* Shared recap typography in overview and editor, including the flight endpoint. */
body.combat-page #deck-overview,body.combat-page #deck-preview{--recap-power-size:22px;--recap-skill-size:13.5px;--recap-hp-size:36px}
body.combat-page #deck-overview .deck-total-group .deck-total-value,body.combat-page #deck-preview .deck-total-group .deck-total-value{font:800 var(--recap-power-size)/1.3 Arial,sans-serif}
body.combat-page #deck-overview .deck-total-skills,body.combat-page #deck-preview .deck-total-skills{font-size:var(--recap-skill-size);line-height:1.6}
body.combat-page #deck-overview>.deck-totals>.deck-total-value,body.combat-page #deck-preview .deck-totals>.deck-total-value{font:800 var(--recap-hp-size)/1.3 Arial,sans-serif}
body.combat-page #deck-overview .deck-total-heart,body.combat-page #deck-preview .deck-total-heart{font-size:1.18em;width:auto;height:auto;line-height:1;flex:none}
@media(max-width:600px){body.combat-page #deck-overview,body.combat-page #deck-preview{--recap-power-size:15.5px;--recap-skill-size:11px;--recap-hp-size:24px}}

/* The centered black outline is built into the symbols. */
img[src*="-prehistoric-v3.svg"]{filter:none!important}


/* Soft symbol shadow, reduced from its original intensity. */
.card img.action-badge[src*="-prehistoric-v3.svg"]{filter:drop-shadow(0 0 2.5px rgba(0,0,0,.7225)) drop-shadow(0 0 1.2px rgba(0,0,0,.469625))!important}

/* Booster opening can cross the persistent header without fading the card artwork. */
#page-content.booster-opening-over-header{position:fixed;inset:0;height:100dvh;z-index:60;flex:none}
/* Keep the layout in place, but only let the opening artwork cover the mobile header. */
@media(max-width:850px){
 body.booster-opening-overlay :is(.primordial-series-list,.primordial-heading,.booster-copy,.night-booster-info,#summary,footer){visibility:hidden!important;pointer-events:none!important}
}
/* Keep skills on one common left edge, with text directly following its icon. */
.card .combat-description{align-items:stretch}
.card .combat-description .combat-skill-line{display:flex;align-items:flex-start;gap:.18em;width:100%;text-align:left}
.card .combat-description .combat-skill-line>.support-role-icon{flex:0 0 1.15em;width:1.15em;height:1.15em;margin:0}
.card .combat-description .combat-skill-line>.support-effect-text{display:block;flex:1;min-width:0;text-align:left}
body.expedition-page .player-deck-power{display:inline-flex;align-items:center;gap:7px;min-width:0;position:relative;padding:5px 9px 9px;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#dfc48c!important;text-shadow:0 1px 2px #0008!important;font:400 15px/1.15 Georgia,serif;white-space:nowrap}
.player-deck-power .deck-power-icon{width:27px;height:30px;flex:none;filter:drop-shadow(0 1px 1px #0007)}
.player-deck-power .deck-power-value{font:700 1.2em/1 Georgia,serif;color:#f1d99f;font-variant-numeric:tabular-nums}
#deck-power-summary[hidden]{display:none}
#battle-audience{position:static;min-height:1.5em;margin:10px 0 0;text-align:left;color:#dfc48c}
@media(max-width:600px){body.expedition-page .player-deck-power{font-size:12px;gap:5px}.player-deck-power .deck-power-icon{width:22px;height:25px}}

/* Power belongs to the deck heading, rather than to a separate badge. */
body.expedition-page .player-deck-power{padding:0!important}
body.combat-page .deck-heading>div:first-child{flex:1;min-width:0}
body.combat-page .deck-title-row{flex-wrap:nowrap;justify-content:space-between;gap:18px}
body.combat-page #deck-power-summary{flex:none;font-size:20px}
@media(max-width:600px){
 body.combat-page .deck-title-row{gap:8px}
 body.combat-page .deck-profiles{flex-wrap:nowrap;gap:3px}
 body.combat-page .deck-profiles button{font-size:17px;padding:6px 3px;white-space:nowrap}
 body.combat-page #deck-power-summary{font-size:16px;gap:4px}
 body.combat-page #deck-power-summary .deck-power-icon{width:20px;height:24px}
}

/* The three approved footprints replace the old attack seal. */
body.expedition-page #battle-confirm.fight-button{width:90px;color:#e3c78a;background:none!important;filter:drop-shadow(0 3px 3px #0009)}
#battle-confirm .validation-footprint{display:block;width:100%;height:auto}
#battle-confirm.striking{visibility:hidden!important}
.validation-trail{position:absolute;inset:0;pointer-events:none;z-index:15}
.validation-trail .step{position:absolute;width:38px;height:52px;color:#dfc28a;opacity:0;transform:translate(-50%,-50%) rotate(65deg) scale(.7)}
.validation-trail .step svg{display:block;width:100%;height:100%}
.validation-trail .dust{position:absolute;width:4px;height:4px;clip-path:polygon(10% 0,100% 25%,70% 100%,0 65%);background:#d2b77c;opacity:0}
@media(max-width:580px){body.expedition-page #battle-confirm.fight-button{width:57px}}

/* No waiting controls may reappear between the last strike and its result. */
.battle-arena[data-phase="reveal"] #battle-opponent-wizz,.battle-arena[data-phase="finished"] #battle-opponent-wizz{visibility:hidden}
.battle-arena[data-phase="finished"] .battle-lanes,.battle-arena[data-phase="finished"] .health-row{visibility:hidden}

/* Account settings are grouped by purpose, with one section visible at a time. */
.account-dialog{width:min(590px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto}
.account-settings[hidden],.account-settings [hidden]{display:none!important}
.account-sections{display:flex;gap:5px;border-bottom:1px solid #d9bd7944;margin:22px 0;padding-bottom:8px}
.account-sections button{flex:1;background:transparent;border:0;border-radius:0;color:#afbdba;padding:11px 6px;font:15px Georgia,serif;cursor:pointer}
.account-sections button[aria-pressed=true]{color:#efd49a;box-shadow:inset 0 -2px #d5b772}
.account-settings h3{font:22px Georgia,serif;color:#dfc48c;margin:0 0 22px}
.portrait-settings,.cardback-settings{display:flex;align-items:center;gap:24px;min-height:185px}
.profile-portrait{width:100px;height:100px;border-radius:50%;border:1px solid #d2b87a;flex:none;background:#173d41;color:#ead399;display:grid;place-items:center;font:40px Georgia;overflow:hidden}
.profile-portrait img,.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar{overflow:hidden}
.portrait-upload{display:inline-block!important;cursor:pointer;color:#edd39a;border-bottom:1px solid #d4b57288;padding:8px 0;font:16px Georgia}
#remove-portrait{display:block;border:0;background:none;color:#aebebb;padding:10px 0;cursor:pointer}
.portrait-settings p,.cardback-settings small{display:block;font:12px/1.6 Arial;color:#aebebb;margin:10px 0}
.cardback-preview{width:100px;aspect-ratio:5/7;object-fit:fill;border-radius:7px;box-shadow:0 7px 18px #0006}
.cardback-settings label{flex:1;min-width:0}.cardback-settings select{width:100%;margin-top:10px}
.profile-feedback{min-height:1.5em;font:13px Arial;color:#dfc48c}
.account-dialog #logout.account-signout{display:block;margin:22px 0 0!important;padding:14px 0!important;border-radius:0!important;border-top:1px solid #d9bd7933!important;width:100%;background:none!important;color:#c2b1a2!important}
.account-dialog #logout[hidden]{display:none!important}
.account-settings [data-panel=notifications]>.notification-volume{margin:0 0 18px}.account-settings [data-panel=notifications]>button{display:block;margin:12px 0;width:100%}
@media(max-width:480px){.account-dialog{padding:22px 18px}.portrait-settings,.cardback-settings{gap:16px}.profile-portrait{width:76px;height:76px}.account-sections button{font-size:13px}.cardback-preview{width:85px}}

.account-settings .portrait-upload{background:none;border:0;border-bottom:1px solid #d4b57288;border-radius:0;text-align:left}
.account-settings select{appearance:auto;background:#102d31;color:#efd9a8;border:1px solid #b99b6055;border-radius:6px;padding:10px 12px;font:15px Georgia,serif;min-height:42px}
.account-settings button:focus-visible,.account-settings select:focus-visible{outline:2px solid #dfc48c;outline-offset:3px}

.cardback-preview{flex:none}

.portrait-crop canvas{display:block;width:min(256px,100%);height:auto;aspect-ratio:1;border-radius:50%;border:1px solid #d6bd81;margin:14px auto;touch-action:none;cursor:grab;background:#102d31}.portrait-crop canvas:active{cursor:grabbing}.portrait-crop p{font:13px/1.5 Arial;color:#b7c6c2}.portrait-crop label{display:flex;align-items:center;gap:15px;color:#dfc48c}.portrait-crop input{flex:1;min-width:0;accent-color:#d9bd7d}.crop-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.crop-actions button{background:#12353a;color:#e7cf96;border:1px solid #bba16d66;padding:10px 14px;border-radius:7px;cursor:pointer}.crop-actions button:disabled{opacity:.5}
/* The three recaps share one row: the longest text sets the card fans' common baseline. */
@media(min-width:851px){
 body.combat-page #deck-overview .deck-groups{grid-template-rows:auto auto;row-gap:0}
 body.combat-page #deck-overview .deck-group{display:grid;grid-template-rows:subgrid;grid-row:span 2;min-width:0}
 body.combat-page #deck-overview .deck-group-recap{align-self:start}
}
body.expedition-page .deck-profiles button{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px}.deck-slot-icon{display:block;width:42px;height:46px;overflow:visible}body.expedition-page .deck-profiles button[aria-pressed=true] .deck-slot-icon{filter:drop-shadow(0 0 5px #dfc48c45)}@media(max-width:600px){.deck-slot-icon{width:34px;height:37px}body.combat-page .deck-profiles button{padding:5px}}
body.expedition-page.combat-page #deck-edit{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:none!important;border:0!important;box-shadow:none!important;color:#dfc48c!important;padding:6px 10px;font:20px Georgia,serif;text-shadow:0 1px 3px #0006}body.expedition-page.combat-page #deck-edit:hover{color:#fff0de!important}body.expedition-page.combat-page #deck-edit:focus-visible{outline:1px solid #dfc48c;outline-offset:4px}@media(max-width:600px){body.expedition-page.combat-page #deck-edit{font-size:16px;gap:6px}}
body.expedition-page.combat-page #deck-edit,body.expedition-page.combat-page #deck-edit:hover,body.expedition-page.combat-page #deck-edit>span{color:#dfc48c!important;-webkit-text-fill-color:#dfc48c!important;text-shadow:none!important}.deck-edit-icon{display:block;width:34px;height:38px;flex:none;color:inherit}@media(max-width:600px){.deck-edit-icon{width:28px;height:31px}}
body.expedition-page.combat-page #deck-edit,body.expedition-page.combat-page #deck-edit:hover,body.expedition-page.combat-page #deck-edit>span{color:#f1d99f!important;-webkit-text-fill-color:#f1d99f!important;font-size:18px;text-shadow:none!important;background:none!important;box-shadow:none!important;filter:none!important;transform:none!important}
body.expedition-page.combat-page #deck-edit::before,body.expedition-page.combat-page #deck-edit::after{display:none!important}
body.combat-page #deck-state:empty{display:none}
body.combat-page #deck-edit{align-self:center;padding-block:0;line-height:1.15}
body.combat-page #deck-edit .deck-edit-icon{width:27px;height:30px;filter:none;transform:translateY(1px)}
@media(max-width:600px){body.expedition-page.combat-page #deck-edit,body.expedition-page.combat-page #deck-edit>span{font-size:15px}body.combat-page #deck-edit .deck-edit-icon{width:22px;height:25px}}
body.expedition-page.combat-page #deck-edit{top:2px}
body.expedition-page>header #account-button{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#dfc48c!important;-webkit-text-fill-color:#dfc48c!important;text-shadow:none!important;padding:12px 23px 12px 42px;font:19px/1.2 Georgia,serif;min-height:48px}
body.expedition-page>header #account-button::before{content:'';position:absolute;left:4px;top:50%;transform:translateY(-50%);width:30px;height:34px;border-radius:0;background:url('assets/icons/account-gold-v1.png') center/contain no-repeat!important;box-shadow:none!important;outline:none!important}
body.expedition-page>header #account-button::after{color:#dfc48c;top:50%;transform:translateY(-50%);right:5px}
body.expedition-page>header #account-button:focus-visible{outline:1px solid #dfc48c;outline-offset:4px}
@media(max-width:850px){body.expedition-page>header #account-button{font-size:15px;padding-left:32px;padding-right:17px;min-height:40px}body.expedition-page>header #account-button::before{width:24px;height:28px;left:2px}}
.primordial-series:not([aria-pressed=true]){color:#c6c6c6;background:radial-gradient(ellipse,#7777772b,transparent 72%);filter:grayscale(1)}
.primordial-series:not([aria-pressed=true]) small{color:#a6a6a6}
.primordial-series:not([aria-pressed=true])::before{background:linear-gradient(90deg,#20202077,#181818dd),var(--series-scene) center/cover;filter:grayscale(1)}
.primordial-series[aria-pressed=true]{background:radial-gradient(ellipse,#ffffff38,transparent 72%)}
.primordial-series[aria-pressed=true]::before{background:linear-gradient(90deg,#d0d0d044,#77777788),var(--series-scene) center/cover;filter:grayscale(1)}

/* Phone corrections, isolated from desktop layout. */
@media(max-width:850px){
 body.expedition-page>header .brand-lockup{filter:none}
 body.expedition-page>header::before,body.expedition-page>header::after{mask-image:none;-webkit-mask-image:none}
 body.expedition-page .primordial-series-list{padding-block:32px;margin-block:-20px}
 body.expedition-page .primordial-series img{filter:grayscale(.7) brightness(.7) drop-shadow(0 4px 5px #000b)}
 body.expedition-page .primordial-series[aria-pressed=true] img,body.expedition-page .primordial-series:hover img{filter:drop-shadow(0 4px 5px #000b)}
 body.expedition-page .primordial-series :is(strong,small){text-shadow:0 2px 4px #000c,0 0 7px #0008}
 body.expedition-page>header{row-gap:9px}
 body.primordial-boosters .primordial-heading{display:none}
 body.collection-page #detail{width:min(540px,calc(100vw - 24px),62dvh);transform:none;max-height:96dvh;overflow:auto}
 body.collection-page .detail-card-row{display:flex;flex-direction:column;align-items:center;gap:10px}
 body.collection-page #detail-card{width:100%}
 body.collection-page #card-favorite{position:static;order:-1;flex:none;width:38px;height:38px;outline:none!important;-webkit-tap-highlight-color:transparent}
 body.combat-page .deck-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
 body.combat-page .deck-title-row{flex-direction:column;align-items:flex-start;gap:8px}
 body.combat-page #deck-power-summary{margin:0 0 0 6px}
 body.expedition-page.combat-page #deck-edit{font-size:14px;padding-inline:0;min-height:47px;align-self:start;white-space:nowrap}
 body.expedition-page.combat-page #deck-edit>span{font-size:14px}
 body.combat-page #deck-overview .deck-group-recap{min-height:0;margin-bottom:0}
 body.combat-page #deck-overview .deck-cards{padding-top:8px;padding-bottom:10px}
 body.combat-page #deck-overview .deck-groups{row-gap:32px}
 body.combat-page #battle .battle-arena{width:100vw;margin-left:calc(50% - 50vw);box-sizing:border-box;border-radius:14px;padding-inline:10px}
 body.combat-page .health-row{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:stretch;gap:6px}
 body.combat-page .health-player{grid-template-rows:76px auto 12px auto;gap:8px;min-width:0}
 body.combat-page .health-player>strong{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;flex-wrap:nowrap;gap:2px;font-size:14px;line-height:18px}
 body.combat-page .enemy-health>strong{align-items:flex-end}
 body.combat-page .health-player .player-label{order:1;min-height:36px;display:flex;align-items:center}
 body.combat-page .enemy-health .player-label{text-align:right;justify-content:flex-end}
 body.combat-page .health-player :is(.prediction-purse,.prediction-total){order:0;height:32px;min-height:32px}
 body.combat-page .health-row .versus{align-self:center}
 body.combat-page .recent-moves img{width:26px;height:26px;filter:none;transform:none}
 body.expedition-page.combat-page #line-picker{max-height:96dvh}
 body.combat-page #line-picker .line-picker-heading button{outline:none!important;box-shadow:none!important;background:none!important;-webkit-tap-highlight-color:transparent}
 body[data-rarity-opening-effects] .reveal-stage .rarity-rays{mask-image:radial-gradient(circle,#000 15%,transparent 58%);-webkit-mask-image:radial-gradient(circle,#000 15%,transparent 58%)}
 body[data-rarity-opening-effects] .reveal-stage .rarity-aura{mask-image:radial-gradient(ellipse,#000 10%,#0008 32%,transparent 60%);-webkit-mask-image:radial-gradient(ellipse,#000 10%,#0008 32%,transparent 60%)}
 body.navigation-shell:has(#page-content.mobile-card-modal)>header{visibility:hidden}
 #page-content.mobile-card-modal{position:fixed;inset:0;height:100dvh;z-index:61;flex:none}
}

@media(max-width:850px){body.combat-page .recent-moves img[src*="rock-prehistoric"]{content:url("assets/icons/rock-prehistoric-mobile.png")}body.combat-page .recent-moves img[src*="paper-prehistoric"]{content:url("assets/icons/paper-prehistoric-mobile.png")}body.combat-page .recent-moves img[src*="scissors-prehistoric"]{content:url("assets/icons/scissors-prehistoric-mobile.png")}}
@media(max-width:360px){
 body.combat-page .deck-slot-icon{width:28px;height:32px}
 body.expedition-page.combat-page .deck-profiles button{padding:3px}
 body.expedition-page.combat-page #deck-edit,body.expedition-page.combat-page #deck-edit>span{font-size:12px;gap:4px}
}

/* Do not expose the empty battle or legacy controls before its first state. */
body.combat-booting main{visibility:hidden}
body.battle-loading #lobby-content{display:none}
body.battle-loading #battle>:not(#battle-status):not(#battle-error){visibility:hidden}
@media(max-width:850px){
 body.expedition-page :is(button,a,summary,[role=button]):focus{outline:none!important;-webkit-tap-highlight-color:transparent}
 body.expedition-page dialog .close{outline:none!important;border:0!important;box-shadow:none!important;background:none!important}
}

/* A narrow travelling highlight stays inside the logo's existing gold underline. */
body.expedition-page>header .brand{position:relative}
.brand-underline-light{position:absolute;pointer-events:none;mask:url('assets/brand/dino-footprint-lockup-v2.png') center/100% 100% no-repeat;clip-path:inset(78% 2% 14% 30%);background:linear-gradient(90deg,transparent,#fff1b5 35%,#fffdf1 50%,#fff1b5 65%,transparent) -30% 0/18% 100% no-repeat;animation:brand-underline-glide 4.8s ease-in-out infinite;mix-blend-mode:screen}
@keyframes brand-underline-glide{0%,12%{background-position:10% 0;opacity:0}22%{opacity:.95}75%{opacity:.95}88%,100%{background-position:125% 0;opacity:0}}
@media(prefers-reduced-motion:reduce){.brand-underline-light{display:none;animation:none}}
/* Mobile only: keep the booster center/size, release the halo to the viewport edge. */
@media(max-width:850px){
 body.expedition-page.primordial-boosters main,
 body.expedition-page.primordial-boosters .booster-layout{overflow:visible!important;mask-image:none!important}
 body.expedition-page.primordial-boosters #theatre{width:100vw!important;max-width:none!important;align-self:center}
 body.expedition-page .card .action-badge[src*="prehistoric"],
 body.expedition-page .battle-action{filter:none!important}
 html.mobile-zooming .card .card-finish,
 html.mobile-zooming .arch-atmosphere,
 html.mobile-zooming .arch-sand-canvas{visibility:hidden!important}
 html.mobile-zooming .card{transform:none!important}
}


/* Keep animated cards above the health/history overlay on phones only. */
@media(max-width:850px){body.combat-page .focusing .health-row{z-index:14}body.combat-page #duel-focus{z-index:15}}
/* Match the desktop combat shadow while keeping pre-rendered high-resolution mobile symbols. */
@media(max-width:850px){body.expedition-page .battle-action{filter:drop-shadow(0 3px 5px #000b)!important}}
/* Clip decorative booster overflow at the phone viewport, preserving pack layout. */
@media(max-width:850px){
 html:has(body.primordial-boosters),body.primordial-boosters{overflow-x:clip}
}




/* Touching a series starts a gesture, not a hover selection. */
@media(max-width:850px) and (hover:none){
 body.expedition-page .primordial-series{touch-action:pan-x pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
 body.expedition-page .primordial-series img{pointer-events:none;-webkit-user-drag:none}
 body.expedition-page .primordial-series:hover{translate:0 0}
 body.expedition-page .primordial-series:not([aria-pressed=true]):hover img{filter:grayscale(.7) brightness(.7) drop-shadow(0 4px 5px #000b);rotate:-8deg;scale:1}
}

/* Quiet directional cues for the additional booster series. */
.series-scroll-host{position:relative}
.series-scroll-hint{position:absolute;z-index:3;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;padding:6px;border:0;border-radius:50%;color:#dfc48c;background:radial-gradient(circle,#071310b3,transparent 72%);cursor:pointer;opacity:.85;touch-action:manipulation}
.series-scroll-hint[hidden]{display:none}
.series-scroll-hint svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transform:rotate(var(--hint-angle));filter:drop-shadow(0 1px 2px #000)}
.series-scroll-hint:hover{opacity:1}
.series-scroll-hint:focus-visible{outline:1px solid #dfc48c;outline-offset:2px}
@media(max-width:850px){.series-scroll-hint{width:36px;height:44px}}
/* Personal gifts are opened before the normal series catalogue. */
body.birthday-boosters .primordial-series-list,body.birthday-boosters .series-scroll-hint{display:none!important}
body.birthday-boosters #booster-specialty{color:#e5c98c;line-height:1.6}
body.expedition-page .deck-profiles #deck-clear{font:14px system-ui,sans-serif;gap:3px;opacity:.85;margin-left:6px}
body.expedition-page .deck-profiles #deck-clear:disabled{opacity:.35}
body.expedition-page #deck-clear .deck-slot-icon{width:26px;height:30px}
@media(max-width:600px){body.expedition-page .deck-profiles #deck-clear{font-size:12px;margin-left:2px}body.expedition-page #deck-clear .deck-slot-icon{width:21px;height:25px}}
@media(max-width:600px){body.combat-page .deck-heading{grid-template-columns:minmax(0,1fr)}body.expedition-page.combat-page #deck-edit{justify-self:end;min-height:34px}body.combat-page .deck-profiles{flex-wrap:wrap}}

body.expedition-page .deck-profiles #deck-clear{font:18px Georgia,serif;color:#f1d99f!important;opacity:1;background:none!important;box-shadow:none!important;text-shadow:none!important;gap:6px}
body.expedition-page .deck-profiles #deck-clear:disabled{opacity:.35}
body.expedition-page .deck-profiles #deck-clear .deck-slot-icon{width:27px;height:30px}
body.expedition-page.collection-page :is(#cancel-training,#training-back,#reset-xp-cancel){background:#666!important;color:#fff!important;border:0!important;border-radius:2px!important;box-shadow:none!important;text-shadow:none!important}
body.expedition-page.collection-page :is(#cancel-training,#train-review,#training-back,#training-submit,#reset-xp-cancel,#reset-xp-submit){min-height:32px;padding:5px 10px;cursor:pointer}
@media(max-width:600px){body.expedition-page .deck-profiles #deck-clear{font-size:14px}body.expedition-page .deck-profiles #deck-clear .deck-slot-icon{width:22px;height:25px}}

/* Match the associated symbol to the skill glyph beside it. */
body.expedition-page.primordial-boosters .ability-heading .ability-action-symbol{width:28px!important;height:28px!important;max-width:none;max-height:none;flex:0 0 28px;object-fit:contain;margin:0;vertical-align:middle}
