.pc-caves-launch{color:#f4dc9d;background:#473021;border:1px solid #b49456;border-radius:7px;padding:10px 20px;margin:5px;min-height:44px;cursor:pointer}
dialog.pc-caves-dialog[open]{position:fixed;inset:2vh 2vw;width:96vw;height:96vh;max-width:none;max-height:none;margin:0;padding:clamp(12px,1.5vw,28px);box-sizing:border-box;border:2px solid #ba985c;border-radius:12px;color:#ebdfc1;background:#261c16 url('assets/woodland-panel-leather-v1.webp') center/cover;box-shadow:inset 0 0 0 4px #312315,0 20px 80px #000c;overflow:hidden}
.pc-caves-dialog::backdrop{background:#0b0907cf}.pc-caves-screen{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:10px;overflow:hidden}.pc-cave-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b49456;gap:12px}.pc-cave-header>div:last-child{display:flex;gap:8px}.pc-cave-header h1{margin:3px 0 10px;font-size:clamp(23px,2.5vw,40px);color:#edcf8c}.pc-cave-header small{color:#bba884;letter-spacing:.12em}.pc-caves-screen [data-cave-message]{margin:0;color:#f3a996;min-height:0}.pc-caves-screen [data-cave-message]:empty{display:none}
.pc-caves-dialog button{min-height:40px;padding:8px 14px;color:#f3ddb0;background:linear-gradient(#67472d,#382518);border:1px solid #b59660;border-radius:6px;cursor:pointer}.pc-caves-dialog button:disabled{opacity:.45;cursor:default}.pc-caves-dialog button:focus-visible{outline:2px solid #f3d380;outline-offset:2px}.pc-caves-dialog h2,.pc-caves-dialog h3{color:#e8cc93;margin:4px 0 10px}.pc-caves-dialog p{line-height:1.4;margin:8px 0}.pc-caves-dialog small{color:#c8b491;line-height:1.4}.pc-caves-dialog label{display:grid;gap:5px;margin:9px 0}.pc-caves-dialog select,.pc-caves-dialog input{width:100%;min-height:38px;padding:7px;color:#f4e3bd;background:#201811;border:1px solid #987a49;border-radius:5px;box-sizing:border-box}
.pc-cave-selection{display:grid;grid-template-columns:minmax(240px,1fr) minmax(250px,1.3fr) minmax(220px,1fr);gap:18px;min-height:0}.pc-cave-selection>section,.pc-cave-lobby-info,.pc-cave-lobby-controls,.pc-cave-result{border:1px solid #a78852;border-radius:8px;background:#1c1513ac;padding:16px;min-width:0;overflow:hidden}.pc-cave-description{display:flex;flex-direction:column;justify-content:center;background:radial-gradient(ellipse,#78613766,#131514ee)!important}.pc-cave-history{display:flex;flex-direction:column;gap:9px}.pc-cave-history button{text-align:left;display:grid;gap:4px}.pc-cave-loading{place-self:center}
.pc-cave-lobby{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(480px,2fr) minmax(210px,.8fr);gap:14px;min-height:0}.pc-cave-member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-height:0}.pc-cave-player{display:flex;flex-direction:column;gap:8px;text-align:center;border:1px solid #8a744d;border-radius:9px;min-width:0;padding:12px;background:linear-gradient(#49382c,#18120e);overflow:hidden}.pc-cave-player.is-ready{border-color:#aac977;box-shadow:inset 0 0 15px #8ca45222}.pc-cave-player-art{flex:1;min-height:60px;overflow:hidden}.pc-cave-player-art .hero-portrait,.pc-cave-team .hero-portrait{width:100%;height:100%}.pc-cave-player-art svg,.pc-cave-player-art img{max-width:100%;max-height:100%;object-fit:contain}.pc-cave-vacant{justify-content:center;border-style:dashed;opacity:.65}.pc-cave-invite-art{font-size:100px;color:#b59769;display:grid;height:100%;place-items:center}.pc-cave-lobby-controls{display:flex;flex-direction:column;gap:12px}.pc-cave-lobby-controls form{display:grid;gap:5px}.pc-cave-lobby-controls>p{margin-top:auto}
.pc-cave-battle{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(360px,1.8fr) minmax(230px,1fr);gap:16px;min-height:0}.pc-cave-team{display:flex;flex-direction:column;min-height:0;gap:8px}.pc-cave-team>article{display:grid;grid-template-columns:70px 1fr;grid-template-rows:1fr 1fr;gap:4px;min-height:0;flex:1;border:1px solid #89714a;background:#1c1712c9;border-radius:8px;padding:10px;overflow:hidden}.pc-cave-team article.is-active{border-color:#edd391;box-shadow:0 0 15px #d4a34444}.pc-cave-team article>div{grid-row:1/3;min-height:0;overflow:hidden}.pc-cave-team h3{font-size:16px;align-self:end;margin:0;overflow-wrap:anywhere}.pc-cave-team strong{font-size:14px}.pc-cave-team svg{width:100%;height:100%}.pc-cave-arena{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:0;border:1px solid #a78852;border-radius:10px;background:radial-gradient(ellipse,#4c4b4770,#0a0d12e6);padding:14px}.pc-cave-enemy{flex:1;min-height:50px;overflow:hidden;width:100%}.pc-cave-enemy img{width:100%;height:100%;object-fit:contain}.pc-cave-arena nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}.pc-cave-result{display:flex;flex-direction:column;gap:8px}.pc-cave-result h2{font-size:clamp(23px,2vw,35px)}.pc-cave-loot{flex:1;min-height:40px;max-height:180px}.pc-cave-loot svg{width:100%;height:100%}.pc-cave-result>button:last-child{margin-top:auto}
@media(max-height:720px){.pc-caves-dialog{padding:12px}.pc-caves-screen{gap:7px}.pc-cave-header h1{font-size:25px;margin:0 0 5px}.pc-caves-dialog p,.pc-caves-dialog small{font-size:12px;line-height:1.25}.pc-caves-dialog h2{font-size:18px}.pc-caves-dialog h3{font-size:15px;margin:3px}.pc-cave-selection>section,.pc-cave-lobby-info,.pc-cave-lobby-controls,.pc-cave-result{padding:10px}.pc-caves-dialog label{margin:5px 0;font-size:12px}.pc-cave-player{padding:8px;gap:4px}.pc-caves-dialog button{min-height:34px;padding:6px 10px}.pc-cave-result{gap:3px}}
@media(max-width:1100px){.pc-cave-lobby{grid-template-columns:190px minmax(360px,1fr) 190px;gap:8px}.pc-cave-member-grid{gap:6px}.pc-cave-player{padding:6px}.pc-cave-player h3{font-size:14px}.pc-cave-selection{gap:10px}.pc-cave-battle{gap:10px}}
.pc-caves-screen{display:flex;flex-direction:column}.pc-cave-header,.pc-cave-mobile-tabs,[data-cave-message]{flex:none}.pc-cave-selection,.pc-cave-lobby,.pc-cave-battle{flex:1}.pc-cave-mobile-tabs{display:none}.pc-cave-team>article{grid-template-columns:minmax(70px,.9fr) minmax(75px,1fr)}.pc-cave-player-art .hero-loadout-figure{width:100%;height:100%}
@media(max-width:999px){
 dialog.pc-caves-dialog[open]{inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);width:100%;height:100dvh;padding:10px;border-radius:0}
 .pc-cave-header{gap:6px}.pc-cave-header h1{font-size:20px;margin:3px 0 7px}.pc-cave-header small{font-size:10px;letter-spacing:.04em}.pc-cave-header>div:last-child{gap:4px}.pc-cave-header button{font-size:11px;min-height:44px;padding:7px}
 .pc-cave-mobile-tabs{display:flex;gap:5px}.pc-cave-mobile-tabs button{flex:1;min-height:44px;padding:7px;font-size:13px}.pc-cave-mobile-tabs [aria-pressed=true]{background:#946e36;color:#fff0bb}
 .pc-cave-selection,.pc-cave-lobby,.pc-cave-battle{display:block;min-height:0;overflow:hidden}.pc-cave-selection>section,.pc-cave-lobby>section,.pc-cave-battle>section{display:none;height:100%;box-sizing:border-box}
 .pc-caves-screen[data-pane="0"] .pc-cave-selection>section:nth-child(1),.pc-caves-screen[data-pane="1"] .pc-cave-selection>section:nth-child(2),.pc-caves-screen[data-pane="2"] .pc-cave-selection>section:nth-child(3),.pc-caves-screen[data-pane="0"] .pc-cave-lobby>section:nth-child(1),.pc-caves-screen[data-pane="1"] .pc-cave-lobby>section:nth-child(2),.pc-caves-screen[data-pane="2"] .pc-cave-lobby>section:nth-child(3),.pc-caves-screen[data-pane="0"] .pc-cave-battle>section:nth-child(1),.pc-caves-screen[data-pane="1"] .pc-cave-battle>section:nth-child(2),.pc-caves-screen[data-pane="2"] .pc-cave-battle>section:nth-child(3){display:flex;flex-direction:column}
 .pc-caves-screen[data-pane="1"] .pc-cave-lobby>.pc-cave-member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.pc-cave-player h3{font-size:13px;overflow-wrap:anywhere}.pc-cave-player p,.pc-cave-player strong,.pc-cave-player small{font-size:11px;line-height:1.2}.pc-cave-player{padding:5px;gap:6px}.pc-cave-selection select{min-height:40px;margin:0}.pc-cave-selection label{margin:5px 0}.pc-cave-selection h2{margin:2px 0}.pc-cave-selection p{font-size:12px}.pc-cave-selection>section>button{min-height:44px}.pc-cave-team>article{grid-template-columns:minmax(90px,.9fr) 1fr}.pc-cave-arena nav button{min-height:44px;font-size:11px;padding:5px}.pc-cave-arena>p{font-size:12px}.pc-cave-history button{min-height:50px;font-size:13px}.pc-cave-result>button{min-height:44px}
}
@media(max-width:999px) and (max-height:500px){.pc-cave-header h1{font-size:16px}.pc-cave-header small{display:none}.pc-cave-mobile-tabs button,.pc-cave-header button{min-height:36px}.pc-caves-screen{gap:4px}.pc-cave-selection>section:first-child{display:none!important}.pc-caves-screen[data-pane="0"] .pc-cave-selection>section:first-child{display:grid!important;grid-template-columns:1fr 1fr;gap:3px 10px;align-content:start}.pc-cave-selection>section:first-child h2,.pc-cave-selection>section:first-child>p{display:none}.pc-cave-selection>section:first-child>button{grid-column:1/3}.pc-cave-selection label{margin:0}.pc-cave-selection select{min-height:34px}.pc-cave-result{flex-wrap:wrap;align-content:start}.pc-cave-result>p{margin:2px}.pc-cave-result h2{font-size:18px;margin:0}.pc-cave-result>button{margin-top:0!important}.pc-cave-result h3{margin:0}.pc-cave-lobby-controls{gap:4px}.pc-cave-lobby-controls form{grid-template-columns:1fr 1fr;align-items:end}.pc-cave-lobby-controls label{margin:0}.pc-cave-arena{gap:2px;padding:5px}.pc-cave-arena h2{font-size:16px;margin:0}.pc-cave-arena>p{margin:0}.pc-cave-arena nav button{min-height:34px}.pc-cave-player-art{min-height:30px}.pc-cave-player{gap:2px}.pc-cave-player h3,.pc-cave-player p{margin:0}}

.pc-cave-description{justify-content:flex-start}.pc-cave-preview-scene{position:relative;flex:1;min-height:100px;border:1px solid #b28b4e;overflow:hidden;background:#151211}.pc-cave-location-art{width:100%;height:100%;object-fit:cover}.pc-cave-next-opponent{position:absolute;right:8px;bottom:8px;display:flex;gap:8px;align-items:center;width:75%;height:35%;min-height:65px;max-height:120px;border:1px solid #b99450;background:#20160fe8;padding:5px}.pc-cave-next-opponent>img{height:100%;width:40%;object-fit:contain}.pc-cave-next-opponent>span{display:flex;flex-direction:column;gap:4px;font-size:10px}.pc-cave-next-opponent strong{font-size:13px}.pc-cave-next-opponent small{font-size:10px}.pc-cave-mode-progress{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 0}.pc-cave-mode-progress>div{border:1px solid #977744;background:#1b130dc9;padding:7px}.pc-cave-mode-progress strong{display:block;color:#edcf8c;font-size:13px;margin-bottom:5px}.pc-cave-mode-progress span{display:flex;justify-content:space-between;gap:6px;font-size:11px;margin:3px 0}.pc-cave-mode-progress b{font-weight:400;color:#f4d389}
@media(max-height:720px){.pc-cave-description>p{font-size:11px;margin:3px 0}.pc-cave-description>small{font-size:10px}.pc-cave-preview-scene{min-height:70px}.pc-cave-mode-progress{padding:4px 0;gap:4px}.pc-cave-mode-progress>div{padding:5px}.pc-cave-mode-progress span{font-size:10px;margin:2px 0}}
@media(max-width:999px) and (max-height:500px){.pc-caves-screen[data-pane="1"] .pc-cave-selection>.pc-cave-description{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto minmax(0,1fr);gap:5px}.pc-cave-description>h2{grid-column:1/3}.pc-cave-description>.pc-cave-preview-scene{grid-column:1;grid-row:2/5}.pc-cave-description>.pc-cave-mode-progress{grid-column:2;grid-row:2/5}.pc-cave-description>p,.pc-cave-description>small,.pc-cave-description>strong{display:none}.pc-cave-next-opponent{height:40%;min-height:45px;width:94%;right:3px;bottom:3px}.pc-cave-next-opponent>span{font-size:9px}.pc-cave-next-opponent strong{font-size:10px}.pc-cave-next-opponent small{display:none}}

.destination-result-v124{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}.destination-result-v124>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #b19354;padding:5px 0}.destination-result-v124 h1{margin:0;color:#eed494;font-size:clamp(27px,3vw,48px)}.destination-result-v124.is-defeat h1{color:#e6a485}.destination-result-v124 h2{font-size:clamp(18px,1.5vw,25px);margin:0 0 6px;color:#efd29a}.dr124-panels{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:12px;flex:1;min-height:0}.dr124-panels>section{border:1px solid #ad8e50;background:#24170d url('assets/pc-v124/ui/panel.webp') center/cover;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:0;min-width:0;overflow:hidden}.dr124-panels p{font-size:12px;margin:3px 0;line-height:1.4}.dr124-panels small{font-size:11px}.dr124-portrait,.dr124-enemy{flex:1;min-height:50px;overflow:hidden;background:radial-gradient(ellipse,#b0945630,#111a14ad);border:1px solid #8f7140}.dr124-portrait svg,.dr124-enemy img{width:100%;height:100%;object-fit:contain}.dr124-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.dr124-resources>div{display:flex;flex-direction:column;gap:4px;padding:9px;border:1px solid #8c6d3c;background:#1a120bd9}.dr124-resources strong{color:#f3d78f;font-size:22px}.dr124-loot{flex:1;min-height:70px;display:flex;flex-direction:column;align-items:center;gap:5px}.dr124-loot>svg,.dr124-loot>img{flex:1;min-height:0;max-width:100%;width:100%;object-fit:contain}.dr124-loot strong{text-align:center;font-size:13px}.dr124-no-loot{flex:1;display:grid;place-items:center;color:#bba478}.dr124-enemy-stats{display:flex;justify-content:space-between;gap:4px;font-size:11px}.dr124-next>button,.dr124-reward>button{min-height:44px;flex:none}.dr124-preserved{flex:1;display:flex;flex-direction:column;justify-content:center;gap:15px;color:#e5cd91}
@media(max-width:999px){.dr124-panels{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.dr124-panels>.dr124-hero{display:none}.destination-result-v124 h1{font-size:28px}.destination-result-v124>header>strong{font-size:11px}.dr124-panels>section{padding:8px;gap:6px}.dr124-resources{grid-template-columns:1fr 1fr}.dr124-resources>div{padding:6px}.dr124-resources strong{font-size:18px}.dr124-panels h2{font-size:16px}.dr124-enemy-stats{flex-wrap:wrap}.dr124-next>strong{font-size:12px}.dr124-next>button,.dr124-reward>button{font-size:12px;padding:6px}.dr124-panels p{font-size:10px}.dr124-panels small{font-size:10px}}
@media(max-height:600px){.destination-result-v124{gap:4px}.destination-result-v124>header{padding:2px 0}.destination-result-v124 h1{font-size:23px}.dr124-panels{gap:6px}.dr124-panels>section{padding:6px;gap:4px}.dr124-panels p{font-size:10px}.dr124-panels h2{font-size:15px}.dr124-panels button{min-height:34px;font-size:11px}.dr124-resources{grid-template-columns:repeat(3,minmax(0,1fr))}.dr124-resources>div{padding:3px;gap:1px}.dr124-resources strong{font-size:15px}.dr124-resources small{font-size:9px}.dr124-preserved{gap:4px}}

.destination-result-v124.is-defeat .dr124-reward{order:3}.destination-result-v124.is-defeat .dr124-next{order:2}.destination-result-v124.is-defeat .dr124-hero{order:1}.destination-result-v124.is-defeat .dr124-preserved{flex:none;font-size:11px;gap:3px}.destination-result-v124.is-defeat .dr124-reward>button{min-height:42px}

.pc-cave-preview-power{display:flex;justify-content:space-between;gap:8px;padding:7px;border:1px solid #9b7c47;font-size:11px;background:#1a120bd9}.pc-cave-preview-power span{display:flex;flex-direction:column;gap:4px}.pc-cave-preview-power b{color:#e9cc8d}.t124-power{display:flex;justify-content:space-between;gap:5px;font-size:10px}.t124-power>span{display:flex;flex-direction:column;gap:3px}.t124-power b{color:#e9cc8d}@media(max-width:999px){.t124-power{grid-column:2;flex-wrap:wrap;font-size:9px}}@media(max-width:999px) and (max-height:500px){.pc-cave-preview-power{grid-column:1/3;grid-row:2;font-size:9px;padding:3px}.pc-cave-description>.pc-cave-preview-scene,.pc-cave-description>.pc-cave-mode-progress{grid-row:3/5}.t124-power{font-size:8px}}

.dr124-chest{height:clamp(70px,15vh,160px);min-height:45px;flex:0 1 auto;display:flex;justify-content:center}.dr124-chest>img{display:block;width:100%;height:100%;object-fit:contain}.dr124-reward:has(.dr124-chest) .dr124-no-loot{flex:0}.dr124-reward:has(.dr124-chest) .dr124-loot{min-height:50px}@media(max-height:650px){.dr124-chest{height:65px}}@media(max-width:500px){.dr124-chest{height:85px}}

/* Reference54/55: reusable regional cards, real progression and explicit preparation. */
body.pc-redesign .pc-cave-selection-v124{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px}
body.pc-redesign .pc-cave-selection-v124>section{min-height:0;padding:12px;background:var(--pc-content-color,#111314) var(--pc-content-image) center/cover!important;border-radius:0}
.pc-cave-catalog{display:flex;flex-direction:column;gap:8px;min-height:0}.pc-cave-mode-buttons,.pc-cave-separate-progress,.pc-cave-run-tabs{display:flex;gap:7px;flex:none}.pc-cave-mode-buttons>button,.pc-cave-run-tabs>button{flex:1;min-width:0}.pc-cave-separate-progress{justify-content:space-between;font-size:12px;color:#e3ca96;padding:6px;border:1px solid #795f37}.pc-cave-region-cards{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}.pc-cave-region-card{display:flex;flex-direction:column;flex:1;min-height:0;border:1px solid #92713f;overflow:hidden;background:#151314}.pc-cave-region-card.selected{border-color:#ecc67b;box-shadow:inset 0 0 12px #d5ad4933}
body.pc-redesign .pc-cave-region-open{display:flex!important;gap:10px;width:100%;padding:6px!important;flex:1;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#efd8a5;text-align:left;overflow:hidden}
.pc-cave-region-open::before{display:none!important}.pc-cave-region-open>.smith-button-label{display:flex!important;width:100%;height:100%;gap:10px;min-height:0;align-items:center;overflow:hidden}.pc-cave-region-open img{width:36%;height:100%;object-fit:cover;flex:none}.pc-cave-region-open span:not(.smith-button-label){display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.pc-cave-region-open strong{font-size:clamp(16px,1.4vw,25px);color:#efd8a5}.pc-cave-region-open small{font-size:12px}.pc-cave-region-open progress{width:100%;height:9px;accent-color:#c59c50}.pc-cave-region-open b{font-size:12px}
.pc-cave-card-difficulties,.pc-cave-difficulty-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none}.pc-cave-card-difficulties{padding:5px}.pc-cave-difficulty>span.smith-button-label{display:flex;flex-direction:column;align-items:center;gap:3px}.pc-cave-difficulty-symbol{color:#ebc277;font-size:21px;line-height:1}.difficulty-hard .pc-cave-difficulty-symbol{color:#c4cfdb}.difficulty-nightmare .pc-cave-difficulty-symbol{color:#d9a19b}.pc-cave-difficulty strong{font-size:13px}.pc-cave-difficulty small{font-size:10px}.pc-cave-card-difficulties button{min-height:50px;padding:5px}.pc-cave-card-difficulties .pc-cave-difficulty-symbol{display:none}
body.pc-redesign .pc-cave-selection-v124 [aria-pressed=true]{border-color:#edcf80;box-shadow:inset 0 0 12px #d3ad4c33}.pc-cave-selection-v124>.pc-cave-description{gap:7px;justify-content:start}.pc-cave-selection-v124 h2{font-size:clamp(19px,1.7vw,29px);margin:0}.pc-cave-setup-controls{flex:none}.pc-cave-setup-controls h3{font-size:15px;margin:0 0 5px}.pc-cave-difficulty-tiles button{min-height:64px;padding:5px}.pc-cave-floor-controls{display:flex;align-items:center;gap:8px;flex:none}.pc-cave-floor-controls label{flex:none;display:flex;align-items:center;gap:7px;margin:0;font-size:13px}.pc-cave-floor-controls select{width:110px;min-height:34px}.pc-cave-pass-state{font-size:11px;color:#d8bd83}.pc-cave-detail-pages{display:none}.pc-cave-loot-preview{flex:none;border:1px solid #725b39;padding:6px}.pc-cave-loot-preview>strong{font-size:13px}.pc-cave-loot-preview>div{display:flex;align-items:center;gap:12px;margin:4px 0}.pc-cave-loot-preview .icon{width:25px;height:25px}.pc-cave-loot-preview span,.pc-cave-loot-preview small{font-size:11px}.pc-cave-prepare{flex:none}.pc-cave-daily-cap{font-size:11px;flex:none}.pc-cave-description .pc-cave-preview-power{flex:none}.pc-cave-manual-invite summary{cursor:pointer;color:#e7ce97;font-size:13px;padding:6px 0}.pc-cave-manual-invite form{margin-top:4px}
@media(min-width:1000px){body.pc-redesign .pc-cave-selection-v124>.pc-cave-history{display:none}.pc-caves-screen[data-pane="2"]>.pc-cave-selection-v124{grid-template-columns:minmax(0,1fr)}.pc-caves-screen[data-pane="2"]>.pc-cave-selection-v124>:not(.pc-cave-history){display:none!important}body.pc-redesign .pc-caves-screen[data-pane="2"]>.pc-cave-selection-v124>.pc-cave-history{display:flex}.pc-cave-history button{min-height:54px}}
@media(max-width:999px){body.pc-redesign .pc-cave-selection-v124{display:block}body.pc-redesign .pc-cave-selection-v124>section{padding:8px}.pc-cave-region-cards{gap:7px}.pc-cave-mode-buttons>button{min-height:38px}.pc-cave-separate-progress{font-size:11px}.pc-cave-region-open strong{font-size:17px}.pc-cave-card-difficulties button{min-height:36px!important;padding:3px}.pc-cave-card-difficulties strong{font-size:11px}.pc-cave-card-difficulties small{font-size:9px}.pc-cave-region-open span:not(.smith-button-label){gap:4px}.pc-cave-catalog>small{font-size:11px}.pc-cave-detail-pages{display:flex;gap:5px;flex:none}.pc-cave-detail-pages>button{flex:1;min-height:36px}.pc-cave-selection-v124>.pc-cave-description{display:none;gap:6px}.pc-caves-screen[data-pane="1"]>.pc-cave-selection-v124>.pc-cave-description{display:flex!important;flex-direction:column!important}.pc-cave-description[data-detail-pane="setup"]>:is(.pc-cave-preview-scene,.pc-cave-loot-preview){display:none}.pc-cave-description[data-detail-pane="preview"]>:is(.pc-cave-setup-controls,.pc-cave-floor-controls,.pc-cave-preview-power,.pc-cave-run-tabs){display:none}.pc-cave-selection-v124 .pc-cave-preview-scene{min-height:60px}.pc-cave-description .pc-cave-preview-power{font-size:11px}.pc-cave-difficulty-tiles button{min-height:62px!important;font-size:12px}.pc-cave-run-tabs>button{min-height:36px;font-size:12px;padding:5px}.pc-cave-floor-controls{flex-wrap:wrap;gap:4px}.pc-cave-setup-controls h3{font-size:14px}.pc-cave-description .pc-cave-prepare{min-height:42px!important}.pc-cave-daily-cap{display:block!important;font-size:10px}.pc-cave-pass-state{font-size:10px}}
@media(max-width:999px) and (max-height:500px){body.pc-redesign .pc-caves-screen[data-pane="0"]>.pc-cave-selection-v124>.pc-cave-catalog{display:flex!important}.pc-cave-region-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pc-cave-region-open>.smith-button-label{flex-direction:column;gap:4px}.pc-cave-region-open img{width:100%;height:40%;min-height:30px}.pc-cave-region-open strong{font-size:12px}.pc-cave-region-open span:not(.smith-button-label){gap:2px;width:100%}.pc-cave-region-open small,.pc-cave-region-open b{font-size:9px}.pc-cave-card-difficulties{gap:2px;padding:2px}.pc-cave-card-difficulties button{min-height:28px!important;padding:2px!important}.pc-cave-card-difficulties strong{font-size:8px}.pc-cave-card-difficulties small{display:none}.pc-cave-mode-buttons>button{min-height:30px}.pc-cave-separate-progress{padding:3px;font-size:9px}.pc-cave-catalog{gap:4px}.pc-cave-catalog>small{display:none}.pc-cave-description>h2{display:none}.pc-cave-detail-pages>button,.pc-cave-run-tabs>button{min-height:30px!important;font-size:11px}.pc-cave-description[data-detail-pane="setup"]>.pc-cave-preview-power{display:none}.pc-cave-difficulty-tiles button{min-height:48px!important}.pc-cave-difficulty-symbol{font-size:15px}.pc-cave-difficulty strong{font-size:11px}.pc-cave-difficulty small{font-size:9px}.pc-cave-setup-controls h3{display:none}.pc-cave-floor-controls label{font-size:11px}.pc-cave-floor-controls select{min-height:30px;padding:3px}.pc-cave-selection-v124>.pc-cave-description{gap:4px}.pc-cave-description .pc-cave-prepare{min-height:34px!important}.pc-cave-lobby-controls{display:grid!important;grid-template-columns:1fr 1fr;align-content:start;gap:4px!important}.pc-cave-lobby-controls>button{min-height:32px!important}.pc-cave-lobby-controls>.pc-cave-manual-invite{grid-column:1/3}.pc-cave-manual-invite form{grid-template-columns:1fr 1fr}.pc-cave-lobby-controls>p{font-size:10px}}
/* Real friend picker: independent native modal preserves the lobby and focus. */
body.pc-redesign dialog.pc-cave-friends[open]{position:fixed!important;inset:0!important;margin:auto!important;width:min(720px,96vw)!important;height:min(650px,94dvh)!important;max-width:96vw!important;max-height:94dvh!important;padding:16px!important;display:flex!important;flex-direction:column;gap:10px;min-height:0;box-sizing:border-box;overflow:hidden!important;background:#111314 var(--pc-content-image) center/cover!important;border:2px solid #ac864d;color:#eed7a6}
.pc-cave-friends::backdrop{background:#080808bd}.pc-cave-friends header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:none}.pc-cave-friends h2{font-size:23px;margin:0}.pc-cave-friends button{min-height:40px}.pc-cave-friends>label{display:grid;gap:5px;font-size:13px;flex:none}.pc-cave-friends input{width:100%;min-height:36px;box-sizing:border-box;padding:6px;background:#191b1c;border:1px solid #a5824a;color:#f2dab0}.pc-cave-friends>[data-cave-friend-status]{margin:0;font-size:12px;flex:none}.pc-cave-friends [role=alert]{color:#eab2a2}.pc-cave-friends [data-cave-friend-results]{display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;overflow:hidden}.pc-cave-friends [data-cave-friend-results]>article{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:1;min-height:0;border:1px solid #85683f;padding:8px;box-sizing:border-box}.pc-cave-friends [data-cave-friend-results]>article>div{min-width:0;display:flex;flex-direction:column;gap:5px}.pc-cave-friends strong{font-size:16px;overflow-wrap:anywhere}.pc-cave-friends [data-cave-friend-results] button{flex:none;min-width:80px}.pc-cave-friend-badges{display:flex;gap:4px}.pc-cave-friend-badges:empty{display:none}.pc-cave-friends footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.pc-cave-friends footer>span{white-space:nowrap;font-size:13px}.pc-cave-friends [data-account-crest]{width:26px!important;height:26px!important;min-height:26px!important;padding:0!important}
@media(max-width:600px){body.pc-redesign dialog.pc-cave-friends[open]{width:98vw!important;max-width:98vw!important;height:96dvh!important;max-height:96dvh!important;padding:10px!important;gap:8px}.pc-cave-friends h2{font-size:19px}.pc-cave-friends strong{font-size:15px}.pc-cave-friends [data-cave-friend-results]>article{padding:6px}.pc-cave-friends button{min-height:38px}}
@media(max-height:500px){body.pc-redesign dialog.pc-cave-friends[open]{padding:8px!important;gap:5px}.pc-cave-friends h2{font-size:18px}.pc-cave-friends button{min-height:32px}.pc-cave-friends input{min-height:30px}.pc-cave-friends>label{font-size:11px;gap:3px}.pc-cave-friends [data-cave-friend-results]>article{padding:5px}.pc-cave-friends strong{font-size:13px}}

/* Tile contents are independent elements, with or without a skin label wrapper. */
body.pc-redesign .pc-cave-difficulty{display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:3px;min-width:0;overflow:hidden;white-space:normal!important}
body.pc-redesign .pc-cave-difficulty>strong,body.pc-redesign .pc-cave-difficulty>small{max-width:100%;overflow-wrap:anywhere;line-height:1.15}
body.pc-redesign .pc-cave-difficulty-tiles button{min-height:74px!important;padding:5px!important;font-size:13px!important}
body.pc-redesign .pc-cave-mode-buttons>button,body.pc-redesign .pc-cave-run-tabs>button{min-height:40px!important;font-size:14px!important}
body.pc-redesign .pc-cave-card-difficulties button{min-height:46px!important;font-size:12px!important;padding:4px!important}
@media(max-width:600px) and (orientation:portrait){body.pc-redesign .pc-cave-card-difficulties{display:none}.pc-cave-difficulty-tiles small{display:none}.pc-cave-difficulty-tiles .pc-cave-difficulty-symbol{font-size:19px}body.pc-redesign .pc-cave-difficulty-tiles button{min-height:60px!important;font-size:11px!important}.pc-cave-difficulty-tiles strong{font-size:11px}body.pc-redesign .pc-cave-mode-buttons>button,body.pc-redesign .pc-cave-run-tabs>button{font-size:11px!important;min-height:36px!important}}
@media(max-width:999px) and (max-height:500px){body.pc-redesign .pc-cave-card-difficulties{display:none}body.pc-redesign .pc-cave-difficulty-tiles button{min-height:54px!important;font-size:11px!important}body.pc-redesign .pc-cave-mode-buttons>button,body.pc-redesign .pc-cave-run-tabs>button{min-height:30px!important;font-size:11px!important}}

@media(min-width:1000px) and (max-height:850px){
 body.pc-redesign .pc-cave-selection-v124>.pc-cave-description{gap:4px;padding:9px}
 .pc-cave-selection-v124 .pc-cave-preview-scene{min-height:64px}
 body.pc-redesign .pc-cave-difficulty-tiles button{min-height:64px!important}
 .pc-cave-selection-v124 .pc-cave-loot-preview{padding:4px}
 .pc-cave-selection-v124 .pc-cave-loot-preview>div{margin:2px 0}
 .pc-cave-selection-v124 .pc-cave-loot-preview .icon{width:20px;height:20px}
 .pc-cave-selection-v124 .pc-cave-preview-power{padding:3px;gap:4px;font-size:12px}
 .pc-cave-selection-v124 .pc-cave-prepare{min-height:38px!important;padding:5px!important}
 .pc-cave-selection-v124 h2{font-size:22px}
}

.pc-cave-selection-v124 .pc-cave-next-opponent{height:auto;max-height:none;min-height:0;box-sizing:border-box;width:78%;align-items:center;padding:6px;bottom:6px;right:6px}
.pc-cave-selection-v124 .pc-cave-next-opponent>img{width:54px;height:66px;flex:none;object-fit:contain}
.pc-cave-selection-v124 .pc-cave-next-opponent>span{min-width:0;font-size:10px;line-height:1.2;gap:3px}
.pc-cave-selection-v124 .pc-cave-next-opponent strong{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
@media(min-width:1000px) and (max-height:850px){.pc-cave-difficulty-tiles small{display:none}.pc-cave-difficulty-tiles .pc-cave-difficulty-symbol{font-size:17px}}
@media(max-width:999px) and (max-height:500px){.pc-cave-selection-v124 .pc-cave-next-opponent>img{height:45px;width:38px}.pc-cave-selection-v124 .pc-cave-next-opponent{width:95%;padding:3px}.pc-cave-selection-v124 .pc-cave-next-opponent strong{font-size:10px}}
