@import url('./adventure-rewards.css?rev=20261028-recompensas-impactos-v1');
@import url('./adventure-missions.css?rev=20261028-misiones-campo-v1');
@import url('./adventure-talents.css?rev=20261026-interfaz-libro-v3');
#adventurePanel{border:0;background:none;padding:0;max-width:none}
.advSelection{max-width:1020px;margin:18px auto;padding:clamp(18px,4vw,40px);border:1px solid #bca97740;border-radius:20px;background:linear-gradient(130deg,#13272de8,#0a141deb),url('../adventure/valle-abierto/overview.webp?rev=20261024-mundo-continuo') center/cover;color:#e8dfcd}
.advSelection h1{font-size:clamp(28px,5vw,46px);margin:12px 0}
.advSelection p{max-width:650px;color:#b9ccce}
.advSelectionBack{float:right}
.advHeroPicker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0}
.advHeroPicker button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;padding:10px 4px;border:1px solid #7d97995c;border-radius:14px;background:linear-gradient(#20323b40,#0b1724b3);color:#e8dfcb;min-height:164px}
.advHeroPicker button[aria-pressed=true]{border-color:#e8cd8b;background:#bba36e24;box-shadow:inset 0 0 24px #cdb17718}
.advHeroPicker img{height:120px;width:100%;object-fit:contain;pointer-events:none}
.advHeroPicker small{color:#aabfc5;font-size:11px}
.advEntry{display:flex;justify-content:space-between;gap:15px;align-items:center}
.advInstructions{font-size:12px;margin:18px 0 0!important}
body.adventurePlaying{overflow:hidden!important;overscroll-behavior:none}
body.adventurePlaying .onlineHeader,body.adventurePlaying .citadelMasthead,body.adventurePlaying .onlineMobileNav,body.adventurePlaying #dailyMissions,body.adventurePlaying .localLink{display:none!important}
#adventurePanel .advField{position:fixed;inset:0;z-index:1100;width:100%;height:100%;height:100dvh;background:#080e13;touch-action:none;overflow:hidden;color:#f4e6ca;user-select:none;-webkit-user-select:none}
.advField>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#adventurePanel .advMinimap{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:126px;height:126px;min-height:0;padding:0!important;border:1px solid #bca97970;border-radius:50%;overflow:hidden;z-index:10;background:#060d13;box-shadow:0 2px 18px #0008}
.advMinimap canvas{display:block;width:100%;height:100%;pointer-events:none}
.advNotice{position:absolute;bottom:115px;left:50%;transform:translateX(-50%);max-width:75%;padding:7px 14px;border-radius:18px;background:#0b1927c7;box-shadow:0 2px 12px #0006;color:#f0daad;font:12px system-ui;text-align:center;pointer-events:none;z-index:17}
.advNotice[hidden]{display:none}
.advOverlay{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:16px;background:#02090fb0;backdrop-filter:blur(5px);touch-action:auto;user-select:text}
.advOverlay[hidden]{display:none!important}
#adventurePanel .advModal{position:relative;width:min(620px,100%);max-height:90dvh;overflow:auto;padding:26px;border:1px solid #d0b88370;border-radius:18px;background:linear-gradient(130deg,#17282f,#0b1420);box-shadow:0 14px 70px #000a;color:#eee2ca;overscroll-behavior:contain}
.advModal h2{margin:0 42px 20px 0;font:26px Georgia}
.advModal h3{font:16px Georgia;margin:18px 0 8px}
.advModal p{font:13px/1.6 system-ui;color:#b9ccd0}
.advModal small{font:12px/1.4 system-ui;color:#b4c9ca}
.advModal .primary,.advModal .ghost{min-height:46px;padding:10px 18px;margin:6px 7px 6px 0;touch-action:manipulation}
#adventurePanel .advModalClose{position:absolute;top:10px;right:10px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:#dfd3b9;font:30px Georgia}
.advItems{display:grid;gap:8px}
#adventurePanel .advItem{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid #607c8266;border-radius:12px;background:#22373c50;padding:10px;color:#e9dcc0;min-height:64px}
.advItem.equipped{border-color:#cbb374;background:#a58b4d20}
.advItem>span:last-child{display:grid;gap:5px}
.advItem:disabled{opacity:.4}
.advItemIcon{display:grid;place-items:center;min-width:42px;height:42px;color:#f4d89e;font:27px Georgia;border:1px solid #b9a57860;border-radius:10px;background:#0e1b24}
.advItemIcon.tier2{color:#c9b1ef;border-color:#b091d880}
.advItemIcon.tier3{color:#efd394;border-color:#e6b457a0}
.advItemIcon img{display:block;width:46px;height:46px;object-fit:contain;pointer-events:none}
.advGearRow{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px}
.advGearRow .advItem{width:100%;min-width:0}
.advGearRow .advItem strong{overflow-wrap:anywhere}
#adventurePanel .advDropItem{min-height:44px;min-width:44px;border:1px solid #7f93914d;border-radius:10px;background:#182a30;color:#bfcec4;font:24px system-ui;touch-action:manipulation}
.advPotionStock{display:flex;align-items:center;gap:12px;padding:9px 12px;background:#54232120;border:1px solid #9d5e4c55;border-radius:12px}
.advPotionStock img{width:48px;height:48px;object-fit:contain}
.advPotionStock span{display:grid;gap:6px}
.advPotionStock strong{font:14px system-ui}
@media(max-width:700px){
.advItemIcon img{width:40px;height:40px}}
.advQuests article{display:flex;gap:15px;margin:16px 0;padding:12px 0;border-bottom:1px solid #d0b87c20}
.advQuests article>span{font-size:25px;color:#d7bf8c}
.advQuests h3{margin:0}
.advQuests p{margin:7px 0}
.advQuests .done{opacity:.65}
.advPauseOptions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.advPauseOptions button{font-size:12px;padding:8px;border-radius:8px;min-height:42px;background:#20343c;color:#e9ddc5;border:1px solid #8d9d9250}
.advWorldMap{display:block;width:100%;height:auto;border-radius:12px}
.advLoading{position:absolute;inset:0;z-index:40;display:grid;place-items:center;background:#070f19}
.advLoading span{width:36px;height:36px;border:2px solid #806e49;border-top-color:#ead3a5;border-radius:50%;animation:advSpin 1s linear infinite}@keyframes advSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){
.advHeroPicker{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.advHeroPicker img{height:88px}
.advHeroPicker button{min-height:126px}
.advHeroPicker strong{font-size:11px}
.advEntry{flex-wrap:wrap}
.advEntry>.primary{width:100%}
#adventurePanel .advMinimap{top:64px;right:max(12px,env(safe-area-inset-right));width:86px;height:86px}
#adventurePanel .advModal{padding:22px 16px}
.advNotice{bottom:110px;font-size:11px}
.advInstructions{font-size:11px}}
@media(max-height:500px) and (orientation:landscape){
#adventurePanel .advMinimap{top:12px;right:12px;width:78px;height:78px}
.advNotice{bottom:80px}
.advOverlay{padding:8px}
#adventurePanel .advModal{max-height:95dvh}
.advHeroPicker img{height:80px}
.advHeroPicker button{min-height:114px}}
.advItemIcon svg{width:28px;height:28px;pointer-events:none}
#adventurePanel .advLootReceipt{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:125px;z-index:18;display:flex;gap:11px;align-items:center;text-align:left;width:min(310px,40vw);min-height:78px;padding:12px!important;border:1px solid #b7a47788;border-radius:12px;background:linear-gradient(110deg,#14232deF,#0b141eF2);box-shadow:0 5px 24px #0008;color:#efe4cc;touch-action:manipulation;animation:advLootIn .25s ease-out}
#adventurePanel .advLootReceipt[hidden]{display:none!important}
.advLootReceipt>span:last-child{display:grid;gap:4px;min-width:0}
.advLootReceipt strong{font:14px Georgia;line-height:1.2}
.advLootReceipt small{font:9px system-ui;color:#cfb984;letter-spacing:.3px}
.advLootReceipt>span>span{font:10px/1.3 system-ui;color:#b7cfc6}
.advLootReceipt .advLootLink{color:#9dc8cf}
.advLootReceipt.tier2{border-color:#aa90c788!important}
.advLootReceipt.tier3{border-color:#e1bd6888!important}
@keyframes advLootIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.advStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.advStats>div{display:grid;gap:4px;padding:12px 6px;border:1px solid #b8c5ba25;border-radius:10px;text-align:center;background:#8aa7960a}
.advStats strong{font:21px Georgia;color:#ecd6a7}
.advStats small{font-size:10px}
.advBetter{color:#9dd6af!important}
.advWorse{color:#c2aaa3!important}
.advItem.newItem{box-shadow:inset 3px 0 #e2c783}
.advEmptyBag{padding:28px;text-align:center}
.advEmptyBag>svg{width:60px;height:60px;color:#a99a72;opacity:.65}
#adventurePanel .advTrack{display:block;margin-top:10px;padding:8px 12px;border:1px solid #cfb47677;border-radius:9px;background:#b69b5718;color:#dbc69f;font:11px system-ui;min-height:42px;touch-action:manipulation}
.advTrack.tracked{border-color:#8cb4ac88;color:#b5d8cb}
.advMapLegend{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:10px 0;color:#c2c8b5;font:10px system-ui}
.advJourneyTime{font-size:11px!important}
.advTrackedGoal{color:#e0cb95!important}
.advTravel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#adventurePanel .advTravel button{display:grid;gap:3px;text-align:left;padding:10px;border:1px solid #88aaa855;border-radius:10px;color:#e3dac3;background:#243e4050;min-height:48px;touch-action:manipulation}
.advTravel button:disabled{opacity:.4}
.advTravel small{font-size:10px}
@media(max-width:700px){
#adventurePanel .advLootReceipt{left:10px;top:99px;bottom:auto;width:166px;max-width:48%;padding:9px!important;gap:7px;min-height:70px}
.advLootReceipt .advItemIcon{min-width:28px;width:28px;height:32px;border:none;background:none}
.advLootReceipt .advItemIcon svg{width:25px;height:25px}
.advLootReceipt strong{font-size:12px}
.advLootReceipt small{font-size:8px}
.advLootReceipt>span>span{font-size:9px}
.advStats strong{font-size:19px}
.advTravel{grid-template-columns:1fr}}
@media(max-height:500px) and (orientation:landscape){
#adventurePanel .advLootReceipt{top:90px;bottom:auto;width:215px;max-width:29%;min-height:65px;padding:8px!important}
.advWorldMap{max-height:65vh;max-width:65vh;margin:0 auto}
.advStats{margin-bottom:10px}}
.advTravelGroups{display:grid;gap:8px}
.advRegionGroup{border:1px solid #8ca49a30;border-radius:10px;padding:0 12px;margin:10px 0}
.advRegionGroup>summary{cursor:pointer;padding:13px 0;min-height:44px;box-sizing:border-box;font:13px/18px system-ui;color:#decdaa;touch-action:manipulation}
.advRegionGroup>.advTravel{margin-bottom:12px}
.advRegionGroup .advQuests article:last-child{border-bottom:0}
.advAvatarName{display:grid;gap:9px;max-width:400px;margin:25px 0 7px;color:#e7d8b7;font-size:14px}
.advAvatarName input{width:100%;min-height:48px;border:1px solid #9f9d7370;border-radius:10px;background:#081710b8;color:#f0e4c8;padding:11px 14px;font:17px system-ui}
.advAvatarName input:focus{outline:2px solid #c5b77b;outline-offset:2px}
.advSelection form>small{color:#a8bdad;font-size:12px}
.advSelection h3{font:19px Georgia;color:#e6d2a8;margin-top:28px}
.advAvatarError{color:#f3b4a0!important}
.advAvatarCard{display:grid;grid-template-columns:260px 1fr;gap:30px;align-items:center;padding:20px 0}
.advAvatarCard>img{height:310px;width:100%;object-fit:contain;filter:drop-shadow(0 10px 18px #0009)}
.advAvatarCard h1{overflow-wrap:anywhere}
.advAvatarCard .primary{margin-top:10px;min-height:48px}
.advAvatarXp{display:block;width:min(320px,100%);height:8px;accent-color:#a4b778;margin:15px 0 7px}
.advAvatarCard small{color:#b7c7ae;font:12px system-ui}
@media(max-width:600px){
.advAvatarCard{grid-template-columns:100px minmax(0,1fr);gap:14px;padding:20px 0}
.advAvatarCard>img{height:210px}
.advAvatarCard h1{font-size:27px}
.advAvatarCard p{font-size:12px}
.advAvatarCard .primary{width:100%}
.advAvatarXp{width:100%}}
.advInteract svg{width:29px;height:29px;margin:auto;pointer-events:none}
.advInteract small{font:8px system-ui;pointer-events:none}
.advAvatarPicker{display:grid;grid-template-columns:repeat(2,minmax(130px,210px));gap:14px;margin:18px 0 24px}
.advAvatarPicker button{display:grid;justify-items:center;gap:8px;padding:12px 18px;border:1px solid #7d97995c;border-radius:16px;background:linear-gradient(#20323b40,#0b1724b3);color:#e8dfcb;min-height:190px}
.advAvatarPicker button[aria-pressed=true]{border-color:#e8cd8b;background:#bba36e24;box-shadow:inset 0 0 24px #cdb17718}
.advAvatarPicker img{height:140px;max-width:100%;object-fit:contain}
.advAvatarPicker strong{font-size:15px}
@media(max-width:600px){
.advAvatarPicker{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.advAvatarPicker button{min-height:155px;padding:8px}
.advAvatarPicker img{height:110px}
.advAvatarPicker strong{font-size:13px}}
#adventurePanel .advMapModal{width:min(1080px,96vw);max-height:92dvh;padding:20px;overflow:hidden;display:flex;flex-direction:column}
.advMapModal h2{margin:0 40px 14px 0;font-size:25px}
.advMapLayout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:20px;min-height:0;align-items:center}
.advMapCanvasWrap{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
#adventurePanel .advMapModal .advWorldMap{display:block;width:min(100%,calc(92dvh - 110px));height:auto;max-height:none;max-width:100%;aspect-ratio:1;margin:0;border:1px solid #bba77638;border-radius:10px}
.advMapSidebar{min-width:0;max-height:calc(92dvh - 110px);overflow:auto;scrollbar-width:thin}
.advMapSidebar .advStats{grid-template-columns:1fr;margin:0;gap:5px}
.advMapSidebar .advStats>div{grid-template-columns:1fr auto;align-items:center;padding:9px}
.advMapSidebar .advStats strong{font-size:18px}
.advMapSidebar p{font-size:12px}
.advMapSidebar .advMapLegend{justify-content:flex-start;gap:8px}
.advMapRefuges summary{min-height:44px;cursor:pointer;display:flex;align-items:center;color:#dbc79e;font-size:12px}
.advMapRefuges .advTravel{grid-template-columns:1fr}
@media(max-width:700px) and (orientation:portrait){
#adventurePanel .advMapModal{padding:16px 12px}
.advMapModal h2{font-size:21px;margin-bottom:10px}
.advMapLayout{grid-template-columns:1fr;gap:9px}
.advMapSidebar{max-height:none;overflow:visible}
.advMapSidebar .advStats{grid-template-columns:repeat(3,1fr)}
.advMapSidebar .advStats>div{grid-template-columns:1fr;text-align:center;padding:5px}
.advMapSidebar .advStats strong{font-size:16px}
.advMapSidebar .advMapLegend{margin:5px 0;justify-content:center}
.advMapSidebar p{margin:6px 0;font-size:11px}
.advMapSidebar .advJourneyTime{display:none}
.advMapSidebar .advMapRefuges{display:none}
#adventurePanel .advMapModal .advWorldMap{width:min(100%,calc(92dvh - 230px))}}
@media(max-height:520px) and (orientation:landscape){
#adventurePanel .advMapModal{padding:10px 14px}
.advMapModal h2{font-size:18px;margin-bottom:5px}
.advMapLayout{grid-template-columns:minmax(0,1fr) 180px;gap:12px}
#adventurePanel .advMapModal .advWorldMap{width:min(100%,calc(92dvh - 64px))}
.advMapSidebar{max-height:calc(92dvh - 64px)}
.advMapSidebar .advStats strong{font-size:15px}}

@media(max-width:700px) and (orientation:portrait){
#adventurePanel .advMapModal .advWorldMap{width:min(100%,calc(92dvh - 265px))}
.advMapSidebar .advMapRefuges{display:block;position:relative}
.advMapSidebar .advMapRefuges summary{min-height:32px}
.advMapSidebar .advMapRefuges[open] .advTravel{position:absolute;bottom:100%;left:0;right:0;z-index:4;padding:8px;border:1px solid #b2a17370;border-radius:10px;background:#10212bf5}}
.advTalentIntro{font-size:13px;color:#bac9c8;line-height:1.6}
.advLands{display:grid;gap:12px}
.advLands article{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid #465b5a;border-radius:8px;background:#101e25}
.advLands img{width:110px;height:100px;object-fit:cover;border-radius:5px}
.advLands p{font-size:13px;line-height:1.4}
.advLands h3{margin:0;color:#e6ce9c}
.advLands button{min-height:44px}
.tier4{--tier-color:#edbd57!important;border-color:#edbd57!important}
.advLootReceipt.tier4 strong{color:#ffdc86}
@media(max-width:650px){
.advLands img{width:74px;height:85px}
.advLands article{gap:10px}
.advLands h3{font-size:16px}
.advLands button{width:100%}}
.advLands button,.advPauseOptions button,.advModal>button:not(.advModalClose){background:#263b3c;color:#eddfc4;border:1px solid #917e54;border-radius:6px;padding:10px 14px;font-family:inherit;cursor:pointer}
.advLands button:hover:not(:disabled){background:#3b5048;border-color:#d9b66f}
.advLands button:disabled{opacity:.4;cursor:default}
.advLands button:focus-visible{outline:2px solid #e5cb91;outline-offset:3px}
