@font-face{font-family:PetSans;src:url('/assets/fonts/lich-raid/NotoSansKR-lich-v1.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:PetNumbers;src:url('/assets/fonts/lich-raid/BarlowCondensed-lich-v1.woff2') format('woff2');font-weight:600;font-display:swap}

/* Shared lobby / codex / equipment-forge palette. This scope never restyles
   the deck, common navigation or original pet illustrations. */
.pe-loadout-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}
.pe-loadout-modes button{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px;min-height:48px;padding:8px 14px;background:var(--pe-panel);color:var(--pe-muted);border:1px solid var(--pe-line);border-radius:4px;text-align:left}
.pe-loadout-modes button b{color:var(--pe-text)}
.pe-loadout-modes button span{overflow-wrap:anywhere}
.pe-loadout-modes button[aria-pressed=true]{border-color:var(--pe-accent);background:#202b25;color:var(--pe-text)}
.pe-loadout-modes button[aria-pressed=true] b{color:var(--pe-accent)}
.pet-equipment{--pe-bg:#080c17;--pe-panel:#111828;--pe-line:#28324a;--pe-text:#f3f5ff;--pe-muted:#8b97b0;--pe-accent:#c8ff6b;--pe-blue:#9fb6ee;box-sizing:border-box;max-width:1240px;margin:auto;padding:24px;color:var(--pe-text);background:linear-gradient(160deg,#111b2d,#0b1221 62%);border:1px solid #35435d;border-radius:6px;font:13px/1.65 PetSans,'Noto Sans KR','Malgun Gothic',sans-serif;font-synthesis:none;box-shadow:0 24px 80px #02061175}
.pet-equipment *,.pe-dialog *{box-sizing:border-box}.pet-equipment [hidden],.pe-dialog [hidden]{display:none!important}.pet-equipment h1,.pet-equipment h2,.pet-equipment h3,.pet-equipment p{margin:0}.pet-equipment button,.pe-close{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.pet-equipment :is(button,a):focus-visible,.pe-close:focus-visible{outline:2px solid var(--pe-accent,#c8ff6b);outline-offset:3px}.pet-equipment .pe-icon,.pet-deck-slot .pe-icon,.pe-close .pe-icon{display:block;width:20px;height:20px;flex:none}.pet-equipment img{display:block}.pet-equipment button:disabled{cursor:default}
.pe-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:21px;border-bottom:1px solid var(--pe-line);margin-bottom:18px}.pe-heading-title{display:flex;align-items:center;gap:15px;min-width:0}.pe-heading-icon{width:52px;height:56px;display:grid;place-items:center;border:1px solid #597142;background:linear-gradient(145deg,#c8ff6b14,#c8ff6b04);border-radius:4px;color:var(--pe-accent);flex:none}.pe-heading-icon .pe-icon{width:27px;height:27px}.pe-eyebrow{display:block;font-size:10px;font-weight:600;color:var(--pe-blue);letter-spacing:.08em}.pe-heading h1{font-size:28px;font-weight:800;letter-spacing:-1px;line-height:1.4}.pe-heading p{font-size:12px;color:var(--pe-muted);margin-top:3px}
.pe-capacity{padding-left:20px;border-left:1px solid var(--pe-line);text-align:right;white-space:nowrap}.pe-capacity>span{font-size:10px;color:var(--pe-muted);display:block}.pe-capacity b{display:flex;align-items:baseline;justify-content:flex-end;gap:6px;font-family:PetNumbers,sans-serif;font-weight:600;line-height:1.2}.pe-capacity i{font-style:normal;font-size:29px;color:var(--pe-accent)}.pe-capacity em{font-style:normal;font-size:18px;color:#8191ae}
.pe-notice{display:flex;align-items:center;gap:12px;padding:9px 13px;margin-bottom:18px!important;font-size:11px;color:#b1c2df;background:#15213a;border:1px solid #34486a;border-radius:4px}.pe-notice b{color:#b9ceff;font-size:10px;white-space:nowrap;padding-right:12px;border-right:1px solid #425576;font-weight:700}
.pe-workspace{display:grid;grid-template-columns:224px minmax(260px,1fr) 292px;gap:16px;align-items:stretch;min-width:0}
.pe-collection{display:flex;flex-direction:column;min-width:0;background:var(--pe-panel);border:1px solid var(--pe-line);border-radius:4px;padding:14px 10px 10px}.pe-collection-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px 13px;border-bottom:1px solid var(--pe-line);margin-bottom:10px}.pe-collection-head h2{font-size:13px;letter-spacing:-.4px;font-weight:700}.pe-collection-head>span{font:600 16px PetNumbers,PetSans,sans-serif;color:#9aabc9;white-space:nowrap}
.pe-grid{display:flex;flex-direction:column;gap:8px;max-height:450px;overflow:auto;scrollbar-width:thin;scrollbar-color:#405474 transparent;overscroll-behavior:contain}
.pe-card{position:relative;display:flex;align-items:center;gap:10px;min-width:0;width:100%;padding:7px 8px;text-align:left;border:1px solid #2f3b55;border-radius:4px;color:var(--pe-text);background:#111b2d;transition:background .18s,border-color .18s,box-shadow .18s}.pe-card:not(:disabled):hover{background:#1c2b43;border-color:#5b708f}.pe-card.pe-selected{border-color:#78974d;background:linear-gradient(110deg,#2b392bcc,#142236);box-shadow:inset 3px 0 var(--pe-accent)}.pe-card.pe-selected:not(:disabled):hover{border-color:#b1d87a;background:linear-gradient(110deg,#32422dcc,#1a2b42)}.pe-card:disabled{opacity:.55}
.pe-card-art{display:grid;place-items:center;width:60px;height:72px;background:radial-gradient(ellipse at 50% 75%,#718bbc24,transparent 68%);flex:none}.pe-card-art img{height:72px;width:66px;object-fit:contain;filter:drop-shadow(0 3px 3px #0006)}.pe-card-identity{min-width:0;flex:1}.pe-card-identity strong{display:block;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.pe-card-identity small{display:block;font-size:10px;color:#9eacc5;margin-top:3px}.pe-selected .pe-card-identity small{color:#b8d595}.pe-card-indicator{color:#697b9b}.pe-card-indicator .pe-icon{width:15px;height:15px}.pe-selected .pe-card-indicator{color:var(--pe-accent)}
.pe-collection-note{margin-top:auto!important;padding:14px 5px 3px;color:#899ab7;font-size:10px;border-top:1px solid var(--pe-line);line-height:1.8}.pe-empty-collection{padding:27px 7px;color:var(--pe-muted);font-size:12px;text-align:center}

.pe-stage{position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0;min-height:474px;overflow:hidden;background:#0a1423;border:1px solid #3b506d;border-radius:4px}
.pe-stage-environment{position:absolute;inset:0;z-index:-3;background:linear-gradient(180deg,#132b4966,#0a152555 45%,#0b1723cc),url('/assets/ui/pve-command-v2/deck-command-hangar-v1.webp') 50% 50%/cover;opacity:.7}
.pe-stage:before{content:'';position:absolute;inset:10px;border:1px solid #8aa7d321;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 50% 44%,#6ba3d919,transparent 66%)}.pe-stage:after{content:'';position:absolute;left:26px;right:26px;top:63px;height:1px;background:linear-gradient(90deg,transparent,#8baedf40,transparent);z-index:-1}
.pe-stage-top{display:flex;justify-content:space-between;gap:10px;padding:20px 20px 0;font-size:10px;color:#b2c5e1;z-index:1}.pe-stage-state{display:flex;align-items:center;gap:6px;font-size:9px;color:#b8d995}.pe-stage-state:before{content:'';width:4px;height:4px;background:var(--pe-accent);border-radius:50%}
.pe-stage [data-pet-art]{display:grid;place-items:center;flex:1;min-height:280px;padding:20px 10px 6px;position:relative;z-index:1}.pe-hero{width:100%;height:340px;object-fit:contain;filter:drop-shadow(0 15px 10px #010814b0);animation:pe-reveal .25s ease-out}
.pe-stage-floor{position:absolute;left:9%;right:9%;height:45px;bottom:78px;transform:perspective(450px) rotateX(60deg);border:1px solid #91b7df91;border-radius:50%;background:radial-gradient(ellipse,#a5dd701a,transparent 65%);box-shadow:0 0 38px #a1cafe1c,inset 0 0 25px #b1d9fd17;z-index:-1}.pe-stage-floor:after{content:'';position:absolute;inset:9px 22px;border:1px solid #9bb3d454;border-radius:50%}
.pe-stage-caption{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 12px 21px;text-align:center;background:linear-gradient(transparent,#091321ba);z-index:1}.pe-stage-caption>span{font-size:10px;letter-spacing:.15em;color:#b5c8e9}.pe-stage-caption>strong{font-size:25px;letter-spacing:-.8px;line-height:1.4}.pe-stage-caption>small{font-size:9px;color:#9bacc9}
.pe-stage-empty{display:grid;place-items:center;gap:24px;text-align:center;max-width:230px;color:#9db0ce;font-size:12px}.pe-stage-empty .pe-icon{width:66px;height:66px;color:#778bb284}.pe-art-error{position:absolute;text-align:center;font-size:12px;color:#ebbcaf;padding:0 10px}

.pe-inspector{display:flex;flex-direction:column;gap:15px;min-width:0}.pe-equipped{background:linear-gradient(120deg,#1b2940,#111c30);border:1px solid #425673;border-radius:4px;padding:13px}
.pe-equipped-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#c6d4ec}.pe-equipped-head h2{font-size:11px;font-weight:600}.pe-equipped-head>span{font:600 17px PetNumbers,sans-serif;color:#849ab9}
.pe-equipped [data-pet-equipped]{display:flex;gap:11px;align-items:center;min-width:0}.pe-equipped-portrait{display:grid;place-items:center;flex:none;width:61px;height:64px;border:1px solid #56688766;background:#0b1425;border-radius:3px;color:#8aa0c3}.pe-equipped-portrait img{width:58px;height:61px;object-fit:contain}.pe-equipped-portrait .pe-icon{width:29px;height:29px}.pe-equipped [data-pet-equipped]>div{min-width:0}
.pe-equipped small,.pe-equipped strong,.pe-equipped [data-pet-equipped]>div>span{display:block}.pe-equipped small{font-size:9px;color:#90a3c4;margin-bottom:2px}.pe-equipped strong{font-size:14px;font-weight:700;overflow-wrap:anywhere}.pe-equipped [data-pet-equipped]>div>span{font-size:9px;color:#9dacc5;margin-top:2px}.pe-equipped .pe-button{margin-top:12px;width:100%;min-height:40px}
.pe-detail{flex:1;min-width:0;padding:0 2px}.pe-detail-heading{margin:0 0 16px}.pe-detail h2{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:800;letter-spacing:-.75px;margin:3px 0 8px;line-height:1.45}.pe-detail h2 small{font-size:10px;font-weight:500;letter-spacing:0;color:#a0b3d1;border:1px solid #374963;padding:2px 6px;border-radius:3px}
.pe-detail p{font-size:11px;color:#a0b1cd;word-break:keep-all;line-height:1.9}.pe-buff-title{display:flex;align-items:center;gap:8px;border-top:1px solid #344663;padding-top:13px;margin-bottom:9px}.pe-buff-title>.pe-icon{color:var(--pe-accent);width:17px;height:17px}.pe-buff-title h3{font-size:12px;font-weight:700}.pe-buff-title>span{margin-left:auto;font-size:9px;color:#adbcda;padding:1px 7px;border:1px solid #3d4f6c;border-radius:3px}
.pe-buff-list{list-style:none;padding:0;margin:0 0 15px}.pe-buff-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 11px;background:#152039;border:1px solid #304461;border-radius:4px;margin-top:6px;font-size:11px;color:#c6d5eb}.pe-buff-list b{font:600 24px/1 PetNumbers,sans-serif;color:var(--pe-accent)}.pe-buff-list b.pe-value-pending{font:500 12px PetSans,sans-serif;color:#a0b1cf}
.pe-support-info{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.pe-support-info dt{font-size:9px;color:#8b9ebb;margin-bottom:5px}.pe-support-info dd{margin:0;font-size:11px;color:#cfdbef}.pe-mode{display:inline-block;font:600 13px PetNumbers,sans-serif;border:1px solid #415370;border-radius:3px;padding:1px 7px;background:#17233a;margin-right:4px}
.pe-help{font-size:10px!important;color:#889cb9!important;margin-top:15px!important}.pe-detail-empty{padding:3px 0}.pe-detail-empty h2{font-size:19px}.pe-detail-empty .pe-buff-title{margin-top:23px}
.pe-login{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:20px;width:100%;border:1px solid #53643f;border-radius:4px;color:var(--pe-accent);text-decoration:none;font-size:12px;background:#c8ff6b08}

.pet-equipment .pe-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 15px;border:1px solid #415371;border-radius:4px;background:#16233a;color:#c7d5eb;font-size:12px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
.pet-equipment .pe-button:not(:disabled):hover{background:#21334e;border-color:#8197bb;box-shadow:0 3px 10px #0003}.pet-equipment .pe-button:not(:disabled):active{transform:translateY(1px);box-shadow:inset 0 2px 5px #0005}
.pet-equipment .pe-button:disabled{color:#8392ad;background:#141e30;border-color:#2f3b51;box-shadow:none}.pet-equipment .pe-button:disabled .pe-icon{opacity:.5}.pet-equipment .pe-button-quiet{background:#101a2c;border-color:#344663;color:#a4b5cf;font-size:11px}
.pe-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px;padding-top:18px;border-top:1px solid var(--pe-line);background:linear-gradient(#0c142300,#0c1423)}.pe-save-state{display:flex;align-items:center;gap:10px;color:#8195b6;min-width:0;flex:1}.pe-save-state>.pe-icon{width:20px;height:20px;color:#8aabcc}.pe-save-state>p{font-size:11px;line-height:1.75;color:#a6b7d1;max-width:450px;word-break:keep-all}.pe-footer-actions{display:flex;align-items:center;gap:8px;flex:none}
.pe-footer .pe-primary{min-width:200px;justify-content:space-between;gap:16px;background:linear-gradient(110deg,#d2ff84,#b9ee64);border-color:#d9ffa2;color:#182513;font-weight:800;box-shadow:0 4px 16px #a5cf6412}
.pe-footer .pe-primary:not(:disabled):hover{background:linear-gradient(110deg,#e2ffac,#ccff81);border-color:#eaffc5;box-shadow:0 0 22px #bcff632a}.pe-footer .pe-primary:disabled{background:#1e2b36;border-color:#40505e;color:#a4b2c4}.pe-primary[data-processing=true] .pe-icon{animation:pe-spin 1.2s linear infinite}.pe-error{color:#ffb3b0!important}

.pe-dialog{position:fixed;padding:0;width:1240px;max-width:calc(100vw - 36px);max-height:94dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#455775 #0c1423;border:1px solid #4a6081;border-radius:6px;color:#f3f5ff;background:#0b1221;box-shadow:0 30px 130px #000b}.pe-dialog::backdrop{background:#030813d9;backdrop-filter:blur(5px)}.pe-dialog .pet-equipment{border:0;box-shadow:none}.pe-dialog .pe-heading{padding-right:42px}
.pe-dialog-chrome{position:sticky;top:0;height:0;z-index:5}.pe-close{position:absolute;right:14px;top:17px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #465a7a;border-radius:4px;background:#15223a;color:#afc2df;box-shadow:0 2px 8px #0005}.pe-close:hover{border-color:#9fbb8a;color:#d4ff9b;background:#223429}.pe-close .pe-icon{width:18px;height:18px}

.pet-deck-slot{display:flex;align-items:center;gap:13px;margin:12px 0;padding:12px 15px;border:1px solid #344661;border-radius:4px;background:linear-gradient(110deg,#18273d,#101a2c);color:#e2ecfc;font-family:PetSans,'Noto Sans KR','Malgun Gothic',sans-serif}.pet-deck-slot>.pe-slot-icon{display:grid;place-items:center;width:42px;height:44px;border:1px solid #61764666;border-radius:4px;background:#c8ff6b09;color:#c8ff6b;flex:none}.pet-deck-slot>div{flex:1;min-width:0}.pet-deck-slot small{display:block;font-size:10px;color:#97aaca;margin-bottom:3px}.pet-deck-slot strong{display:block;font-size:14px;letter-spacing:-.3px;font-weight:700}
.pet-deck-slot button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 15px;border:1px solid #637d44;border-radius:4px;color:#d5ffab;background:#c8ff6b0e;font:600 12px PetSans,'Malgun Gothic',sans-serif;cursor:pointer;touch-action:manipulation;flex:none}.pet-deck-slot button:hover{color:#182513;background:#c8ff6b;border-color:#d7ff99}.pet-deck-slot button:focus-visible{outline:2px solid #c8ff6b;outline-offset:3px}.pet-deck-slot button .pe-icon{width:17px;height:17px}

.pet-page{color-scheme:dark;margin:0;padding:24px 26px 32px;min-height:100dvh;background:radial-gradient(ellipse at 55% 0,#1b294180,transparent 55%),#080c17;color:#f3f5ff;font-family:PetSans,'Noto Sans KR','Malgun Gothic',sans-serif}.pet-page-nav{max-width:1240px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 auto 17px;padding:0 2px}.pet-page-nav a{display:flex;align-items:center;gap:8px;min-height:44px;color:#c0cee7;font-size:12px;text-decoration:none}.pet-page-nav a:hover{color:#c8ff6b}.pet-page-nav a:focus-visible{outline:2px solid #c8ff6b;outline-offset:3px}.pet-page-nav span{font-size:11px;color:#8799b8}.pet-page-nav .pe-icon{width:18px;height:18px;transform:rotate(180deg)}.pet-page .pet-equipment{min-width:0}.pet-page [data-pet-page-root]{max-width:1240px;margin:auto}
@keyframes pe-spin{to{transform:rotate(360deg)}}@keyframes pe-reveal{from{transform:translateY(5px)}to{transform:translateY(0)}}

@media(max-width:1150px){.pe-workspace{grid-template-columns:188px minmax(240px,1fr) 264px;gap:12px}.pet-equipment{padding:20px}.pe-card{gap:6px;padding-inline:6px}.pe-card-art{width:51px}.pe-card-art img{width:59px}.pe-card-identity strong{font-size:13px}.pe-hero{height:320px}.pe-stage{min-height:460px}.pe-footer .pe-primary{min-width:180px}}
@media(max-width:900px){.pe-workspace{grid-template-columns:176px minmax(0,1fr)}.pe-stage{grid-column:2;grid-row:1;min-height:440px}.pe-inspector{grid-column:1/-1;display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;padding-top:4px}.pe-equipped{align-self:start}.pe-detail-heading{margin-bottom:10px}.pe-detail-heading h2{font-size:21px}.pe-detail .pe-help{margin-top:10px!important}.pe-hero{height:315px}.pe-collection-note{font-size:9px}.pe-footer .pe-primary{min-width:166px}.pe-heading p{font-size:11px}}
@media(max-width:600px){
/* Keep the approved Heukgu silhouette clear of the existing stage caption. */
.pe-hero[src$="/pet-heukgu-transparent-v2.png"],.pe-hero[src$="/pet-heukgu-large-head-v3.png"],.pe-hero[src$="/pet-pepegu-approved.png"]{height:210px;max-height:210px}
.pet-page{padding:10px 10px 18px}.pet-page-nav{margin-bottom:8px;gap:8px}.pet-page-nav span{font-size:10px}.pet-page-nav a{font-size:11px;min-height:38px}
.pet-equipment{padding:16px 12px 0;border-radius:5px;font-size:12px}.pe-heading{gap:12px;margin-bottom:12px;padding-bottom:14px;align-items:center}.pe-heading-title{gap:10px}.pe-heading-icon{width:37px;height:42px}.pe-heading-icon .pe-icon{width:23px;height:23px}.pe-heading h1{font-size:23px;line-height:1.35}.pe-heading p{font-size:10px;max-width:215px;line-height:1.65;margin-top:3px}.pe-eyebrow{font-size:9px}.pe-capacity{padding-left:10px}.pe-capacity>span{font-size:9px}.pe-capacity i{font-size:25px}.pe-capacity em{font-size:15px}
.pe-notice{display:block;padding:8px 10px;margin-bottom:12px!important;line-height:1.7;font-size:10px}.pe-notice b{display:inline;padding-right:8px;margin-right:7px;font-size:9px}.pe-notice span{display:inline}
.pe-workspace{display:flex;flex-direction:column;gap:13px}.pe-stage{order:0;min-height:0;height:316px}.pe-stage-top{font-size:9px;padding:14px 14px 0}.pe-stage-state{font-size:9px}.pe-stage [data-pet-art]{min-height:0;padding:4px 10px 0}.pe-hero{height:235px;max-height:235px}.pe-stage-floor{height:36px;bottom:49px}.pe-stage-caption{padding:0 10px 12px;gap:1px}.pe-stage-caption>span{display:none}.pe-stage-caption>strong{font-size:21px}.pe-stage-caption>small{font-size:9px}
.pe-collection{order:1;padding:11px 9px 9px}.pe-collection-head{padding:0 1px 9px;margin-bottom:9px}.pe-collection-head h2{font-size:12px}.pe-collection-head>span{font-size:14px}.pe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-height:260px;padding:2px}.pe-card{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:4px 3px 7px;min-height:110px;text-align:center}.pe-card-art{width:100%;height:65px}.pe-card-art img{height:65px;width:100%;max-width:70px}.pe-card-identity{flex:none;width:100%}.pe-card-identity strong{font-size:12px;line-height:1.35}.pe-card-identity small{font-size:9px;margin-top:3px;white-space:nowrap}.pe-card-indicator{display:none}.pe-card.pe-selected{box-shadow:inset 0 -2px #c8ff6b}.pe-collection-note{display:none}
.pe-inspector{order:2;display:flex;flex-direction:column;gap:17px;padding-top:0}.pe-equipped{align-self:stretch;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 9px;padding:10px 11px;align-items:center}.pe-equipped-head{grid-column:1/-1;margin:0 0 3px}.pe-equipped-head h2{font-size:10px}.pe-equipped-head>span{font-size:14px}.pe-equipped-portrait{width:48px;height:48px}.pe-equipped-portrait img{width:46px;height:46px}.pe-equipped [data-pet-equipped]{gap:8px}.pe-equipped strong{font-size:13px}.pe-equipped small{font-size:8px}.pe-equipped [data-pet-equipped]>div>span{font-size:9px}.pe-equipped .pe-button{margin:0;min-height:44px;width:auto;padding:8px;font-size:10px;gap:5px}.pe-equipped .pe-button .pe-icon{width:15px;height:15px}
.pe-detail{padding:0 3px 3px}.pe-detail h2{font-size:23px;margin-bottom:7px}.pe-detail p{font-size:11px}.pe-detail-heading{margin-bottom:12px}.pe-buff-title{padding-top:12px}.pe-buff-title h3{font-size:12px}.pe-buff-list li{padding:11px 12px;font-size:12px}.pe-buff-list b{font-size:27px}.pe-support-info dt{font-size:10px}.pe-support-info dd{font-size:12px}.pe-mode{font-size:14px}.pe-help{font-size:10px!important}
.pe-footer{position:sticky;bottom:var(--adventure-dock-height,0px);z-index:3;display:flex;flex-direction:column;align-items:stretch;gap:11px;margin:16px -12px 0;padding:13px 12px max(13px,env(safe-area-inset-bottom));background:#0d1628f7;border-top:1px solid #465b7b;box-shadow:0 -10px 24px #050b1660;backdrop-filter:blur(10px);border-radius:0 0 4px 4px}.pe-save-state{gap:8px;min-height:20px}.pe-save-state>.pe-icon{width:18px;height:18px}.pe-save-state p{font-size:10px;line-height:1.6;max-width:none}.pe-footer-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.pet-equipment .pe-button{min-height:46px;font-size:12px;padding:10px 12px}.pe-footer .pe-primary{min-width:0;font-size:13px}
.pe-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:96dvh;border-radius:5px}.pe-dialog .pet-equipment{padding-top:18px}.pe-dialog .pe-heading{padding-right:44px}.pe-dialog .pe-heading p{max-width:185px}.pe-dialog .pe-capacity{display:none}.pe-dialog{scroll-padding-block:72px 132px}.pe-dialog .pe-footer{bottom:0}.pe-close{right:8px;top:17px;width:44px;height:44px}
.pet-deck-slot{gap:9px;padding:10px;flex-wrap:wrap}.pet-deck-slot>.pe-slot-icon{width:36px;height:39px}.pet-deck-slot small{font-size:9px}.pet-deck-slot strong{font-size:12px}.pet-deck-slot button{min-height:44px;padding:9px 11px;font-size:11px;gap:7px}.pet-deck-slot button .pe-icon{width:15px;height:15px}
}
@media(max-width:360px){.pe-heading p{max-width:172px;font-size:9px}.pe-heading h1{font-size:21px}.pe-capacity>span{font-size:8px}.pe-heading-title{gap:8px}.pe-heading-icon{width:32px}.pe-card-identity strong{font-size:11px}.pe-card-identity small{font-size:8px}.pe-equipped [data-pet-equipped]>div>span{max-width:130px;font-size:8px}.pe-equipped .pe-button{font-size:9px}.pe-equipped .pe-button .pe-icon{display:none}.pet-deck-slot button{margin-left:45px;width:calc(100% - 45px)}}
@media(prefers-reduced-motion:reduce){.pet-equipment *,.pe-dialog *{animation:none!important;transition:none!important}}

.pe-buff-label{display:flex;align-items:center;gap:9px}.pe-buff-label .pet-buff-icon{width:32px;height:32px;object-fit:contain;flex-shrink:0}
/* Potion attempts stay next to the selected pet and its support effects. */
.pe-potential{margin-top:24px;padding:18px;border:1px solid #51634a;border-radius:16px;background:linear-gradient(145deg,#192721,#0c1420 74%)}
.pe-potential-heading{display:flex;gap:12px;align-items:center}.pe-potential-heading>img{width:56px;height:64px;object-fit:contain}.pe-potential h3{margin:5px 0;color:#e3f9c5;font-size:17px}.pe-potential p{font-size:13px;line-height:1.65;color:#b4c4c0}.pe-potential dl{display:flex;justify-content:space-between;gap:16px;margin:16px 0}.pe-potential dt{font-size:11px;color:#91a79a}.pe-potential dd{margin:4px 0;color:#e5fac9;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}.pe-potential .pe-potential-button{width:100%;min-height:46px;border-color:#bfe592;background:linear-gradient(#c9f094,#9fcb6b);color:#162318;font-weight:800}.pe-potential .pe-potential-button:disabled{opacity:.5}.pe-potential small{font-size:10px;line-height:1.5;color:#8fa293}.pe-potential.is-magnet{border-color:#badd86;box-shadow:inset 0 0 25px #a9d9780b}.pe-potential-result{min-height:42px}
