.adventure{isolation:isolate;max-width:1600px;margin:0 auto;padding:40px 24px;color:#f5f0e7;background:radial-gradient(ellipse at top,#17253b,#080e1c 75%)}
/* Bound the map independently from the page, preserving its 3:2 canvas. */
.adventure .adventure__viewport{box-sizing:border-box;width:100%;max-width:1200px;margin-inline:auto}
.adventure .adventure__map{width:100%;max-width:1200px}
.adventure__heading{text-align:center;margin:0 auto 24px;max-width:820px}.adventure__eyebrow{color:#e7bc69;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:700}.adventure__heading h1{font-size:clamp(26px,3.2vw,48px);line-height:1.12;margin:14px 0;letter-spacing:-.025em}.adventure__heading p{color:#c4cbd6;font-size:15px;line-height:1.6}
.adventure__journey{display:flex;align-items:center;gap:15px;width:fit-content;max-width:100%;margin:auto;padding:16px 24px;border:1px solid #b59255;border-radius:12px;background:linear-gradient(130deg,#192435,#0b0f19);box-shadow:0 8px 28px #0005}.adventure__crest{font-size:34px;color:#e9bf71}.adventure__journey strong,.adventure__journey div>span{display:block}.adventure__journey strong{font-size:14px}.adventure__journey div>span{font-size:12px;color:#aab6c9;margin-top:5px}.adventure__badge{font-size:10px;white-space:nowrap;color:#e7c78b;border:1px solid #715c36;border-radius:20px;padding:6px 10px}
.adventure__hint{text-align:center;font-size:12px;color:#adb9cc;margin:20px 0 12px}.adventure__viewport{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #705c37;border-radius:16px;scrollbar-color:#ad8a49 #0e1625}.adventure__map{position:relative;aspect-ratio:3/2;min-width:850px;background:linear-gradient(#0b162942,#08101b55),url('./adventure/mapa.png') center/100% 100%;isolation:isolate}.adventure__islands{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;mix-blend-mode:screen;pointer-events:none}
.adventure__hero{position:absolute;left:7%;top:17%;width:12%;z-index:2;text-align:center;filter:drop-shadow(0 7px 4px #0008)}.adventure__hero img{display:block;width:100%;height:auto}.adventure__hero span{display:inline-block;font-size:10px;color:#f8dc9b;border:1px solid #bb9958;background:#0b111be8;border-radius:20px;padding:4px 10px;white-space:nowrap}
.adventure__chapter{position:absolute;transform:translate(-50%,0);z-index:3;width:15%;max-width:190px;min-height:48px;padding:8px 5px;border:1px solid #b18d49;border-radius:8px;color:#f5d798;background:linear-gradient(#182334f5,#080d17f5);cursor:pointer;box-shadow:0 4px 12px #0008;text-align:center}.adventure__chapter strong{display:block;font-size:clamp(10px,1vw,14px);line-height:1.2}.adventure__chapter small{display:block;font-size:9px;color:#aebdd1;margin-top:4px}.adventure__chapter-number{position:absolute;left:50%;top:-18px;transform:translateX(-50%);border:1px solid #d6b771;border-radius:50%;background:#111c2e;color:#ffe0a1;font-size:10px;width:24px;height:24px;display:grid;place-items:center}.adventure__chapter.is-selected,.adventure__chapter:hover{border-color:#ffe1a2;box-shadow:0 0 18px #ffcf6555}.adventure__chapter:focus-visible,.adventure__viewport:focus-visible{outline:2px solid #ffe1a2;outline-offset:3px}
.adventure__details{position:relative;display:flex;align-items:center;gap:28px;max-width:840px;margin:22px auto 0;padding:22px 42px 22px 24px;border:1px solid #bd9854;border-radius:12px;background:linear-gradient(135deg,#172032,#090e18)}.adventure__details h2{font-size:22px;margin:8px 0}.adventure__details p{font-size:13px;line-height:1.6;color:#bdc8d8;margin:0}.adventure__availability{flex:0 0 210px;border-left:1px solid #74603c;padding-left:22px}.adventure__availability strong{font-size:13px;color:#edcc8b;display:block}.adventure__availability span{font-size:12px;color:#a4afc1;display:block;margin-top:7px;line-height:1.5}.adventure__close{position:absolute;right:9px;top:8px;border:0;background:transparent;color:#d4be91;font-size:24px;cursor:pointer}
@media(max-width:650px){.adventure{padding:28px 12px}.adventure__journey{padding:12px;gap:10px;flex-wrap:wrap}.adventure__badge{margin-left:43px}.adventure__details{display:block;padding:20px 32px 20px 18px}.adventure__availability{margin-top:16px;padding:14px 0 0;border-left:0;border-top:1px solid #74603c}.adventure__heading p{font-size:13px}.adventure__hint{line-height:1.6}.adventure__viewport{border-radius:10px}}
/* Keep the islands' own alpha, without blending their artwork into the map. */
.adventure .adventure__islands{mix-blend-mode:normal;opacity:1;filter:drop-shadow(0 9px 8px #0008)}
.adventure .adventure__hero{transition:left 1.2s ease-in-out,top 1.2s ease-in-out;pointer-events:none}
.adventure .adventure__hero--first-island{left:6%;top:43%}
.adventure .adventure__chapter.is-locked{cursor:not-allowed;border-color:#786d58;color:#c5bdaf;box-shadow:0 4px 12px #0008}
.adventure .adventure__chapter.is-locked .adventure__chapter-number{border-color:#a09173;color:#e2cfaa}
.adventure .adventure__chapter.is-locked small{color:#b3a38a}
@media(prefers-reduced-motion:reduce){.adventure .adventure__hero{transition:none}}
.adventure .adventure__hero--on-path{width:10%;transform:translate(-50%,-100%);transition:none;z-index:100;pointer-events:none}
.adventure__hero--on-path span{position:absolute;top:100%;left:50%;transform:translateX(-50%)}
.adventure__world-dialog{margin:auto;width:min(520px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;padding:28px;border:1px solid #c5a064;border-radius:14px;color:#f5ead5;background:linear-gradient(135deg,#192538,#090e18);box-shadow:0 20px 80px #000a}
.adventure__world-dialog::backdrop{background:#040812b8}
.adventure__world-dialog h2{font-size:24px;margin:12px 0}
.adventure__world-dialog p{font-size:14px;color:#c1cbd9;line-height:1.6}
.adventure__world-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.adventure__world-actions button{min-height:44px;padding:10px 16px;border:1px solid #ad8b4c;border-radius:7px;background:#101928;color:#f6e8ce;cursor:pointer}
.adventure__world-actions .adventure__enter{flex:1;background:linear-gradient(#ffe18b,#d9a635);color:#211706;font-weight:700}
.adventure__world-actions button:disabled{opacity:.6;cursor:default}
.adventure .adventure__chapter:disabled{cursor:wait;opacity:1}
.adventure__world-actions button:focus-visible{outline:2px solid #fff0bc;outline-offset:3px}
.adventure--landing{min-height:calc(100dvh - 180px);padding-top:52px;padding-bottom:64px}
.adventure-offer{max-width:540px;margin:30px auto 0;text-align:center;padding:30px;border:1px solid #ac8745;border-radius:16px;background:linear-gradient(140deg,#182437,#090f1b);box-shadow:0 14px 50px #0005}
.adventure-offer h2{font-size:22px;margin:12px 0}.adventure-offer p{font-size:14px;line-height:1.7;color:#bbc8dc}
.adventure-offer__price{display:grid;gap:8px;padding:22px 0;margin:20px 0;border-block:1px solid #a58b493b}.adventure-offer__price>span{font-size:13px;color:#d4c198}.adventure-offer__price strong{font-size:46px;line-height:1.2;color:#ffda7a}.adventure-offer__price small{font-size:12px;color:#a5b4c9}
.adventure-offer__button{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;box-sizing:border-box;min-height:50px;padding:12px 18px;color:#201605;background:linear-gradient(#ffe38c,#daa727);border:1px solid #ffe39a;border-radius:7px;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer}
.adventure-offer .adventure-offer__note{font-size:12px;color:#9eacc1}.adventure-offer__notice{padding:12px;border:1px solid #a58b49;border-radius:7px}
.adventure.adventure--map{max-width:none;min-height:100dvh;padding:0 12px 16px;background:#070c16}
.adventure-map-toolbar{display:flex;align-items:center;gap:20px;width:100%;max-width:1200px;box-sizing:border-box;margin:0 auto;padding:10px 0;color:#d2b577;border-bottom:1px solid #90723d55}
.adventure-map-toolbar>span{font-size:12px;letter-spacing:.1em;text-transform:uppercase}.adventure-map-exit{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border:1px solid #8d723f;border-radius:7px;color:#f7e7c6;text-decoration:none;font-size:12px;font-weight:700;background:#111b2b}
.adventure--map .adventure__viewport{margin-top:10px}.adventure-access-loading{padding:32px;color:#ead7a9}
@media(max-width:650px){.adventure-offer{padding:22px 18px}.adventure--landing{padding-top:32px}.adventure.adventure--map{padding:0 6px 8px}.adventure-map-toolbar{padding:6px 0}}
/* Compact campaign canvas: fit the full map, including low-height phones. */
@media (max-width:1100px), (max-height:600px) and (pointer:coarse) {
  .adventure.adventure--map { padding:0 6px 6px; box-sizing:border-box; }
  .adventure--map .adventure-map-toolbar { gap:8px; padding:4px 0; flex-wrap:nowrap; min-height:42px; }
  .adventure--map .adventure-map-exit { min-height:32px; padding:0 9px; font-size:10px; flex-shrink:0; }
  .adventure--map .adventure-map-toolbar>span { font-size:9px; letter-spacing:.06em; }
  .adventure--map .shop-wallet { gap:5px; flex-shrink:0; }
  .adventure--map .shop-wallet>span { min-width:0; padding:3px 6px; grid-template-columns:22px auto; gap:0 4px; border-radius:6px; }
  .adventure--map .shop-wallet .currency-icon { width:22px; height:22px; }
  .adventure--map .shop-wallet small { font-size:8px; }
  .adventure--map .shop-wallet b { font-size:11px; }
  .adventure.adventure--map .adventure__viewport { width:100%; margin-top:4px; border-radius:8px; }
  .adventure.adventure--map .adventure__map { min-width:0; width:100%; container-type:inline-size; }
  .adventure--map .adventure__chapter { min-height:24px; padding:3px 2px; border-radius:5px; }
  .adventure--map .adventure__chapter strong { font-size:clamp(7px,1.45cqw,12px); }
  .adventure--map .adventure__chapter small { font-size:clamp(6px,1.1cqw,9px); margin-top:2px; }
  .adventure--map .adventure__chapter-number { width:clamp(14px,2.8cqw,22px); height:clamp(14px,2.8cqw,22px); top:-12px; font-size:clamp(7px,1.3cqw,10px); }
  .adventure--map .adventure__hero span { font-size:clamp(6px,1.25cqw,10px); padding:2px 5px; }
}
@media (orientation:landscape) and (max-width:1100px), (orientation:landscape) and (max-height:600px) and (pointer:coarse) {
  .adventure.adventure--map .adventure__viewport { width:min(100%,calc((100dvh - 60px) * 1.5)); }
}
@media(max-width:500px) {
  .adventure--map .adventure__chapter small { display:none; }
  .adventure--map .adventure__hero span { max-width:110px; white-space:normal; }
}
/* Background art is independent of the interactive islands and path geometry. */
.adventure.adventure--map{position:relative;isolation:isolate}
.adventure.adventure--map::before{content:"";position:absolute;z-index:-1;inset:62px 0 0;pointer-events:none;background:linear-gradient(#0b162942,#08101b55),url('./adventure/mapa.png') center top / min(1320px,100%) auto no-repeat}
.adventure.adventure--map .adventure__map{background:transparent}
.adventure.adventure--map .adventure__viewport{border-color:transparent;border-radius:0}
@media(max-width:1100px),(max-height:600px) and (pointer:coarse){
 .adventure.adventure--map::before{position:fixed;inset:0;background:linear-gradient(#0b162942,#08101b55),url('./adventure/mapa.png') center / cover no-repeat}
 .adventure--map .adventure-map-toolbar{background:#070c16db;border-radius:0 0 6px 6px}
}
@media(max-width:1100px),(max-height:600px) and (pointer:coarse){
 .adventure.adventure--map .adventure-map-toolbar{width:calc(100% + 12px);max-width:none;margin-left:-6px;margin-right:-6px;padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right));border-radius:0}
}
/* Mobile camera: large world, native two-axis touch panning. */
@media(max-width:1100px),(max-height:600px) and (pointer:coarse){
 .adventure.adventure--map{height:100dvh;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
 .adventure.adventure--map .adventure-map-toolbar{flex:0 0 42px;width:100%;margin:0;border-radius:0}
 .adventure.adventure--map .adventure__viewport{flex:1;min-height:0;max-width:none;width:100%;margin:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;border:0;border-radius:0;scrollbar-width:thin}
 .adventure.adventure--map .adventure__map{width:1100px;min-width:1100px;max-width:none;aspect-ratio:3/2;background:linear-gradient(#0b162942,#08101b55),url('./adventure/mapa.png') center/100% 100%}
 .adventure--map .adventure__chapter{min-height:40px;padding:6px 4px}
 .adventure--map .adventure__chapter strong{font-size:12px}
 .adventure--map .adventure__chapter small{display:block;font-size:9px}
 .adventure--map .adventure__chapter-number{width:24px;height:24px;top:-18px;font-size:10px}
 .adventure--map .adventure__hero--on-path{width:9%}
}
/* Constrain the camera, not the scrollable world, inside the app grid. */
@media(max-width:1100px),(max-height:600px) and (pointer:coarse){
 .app-shell--game,.app-shell--game .game-main{min-width:0;max-width:100vw}
 .adventure.adventure--map{width:100%;max-width:100vw;min-width:0;box-sizing:border-box}
 .adventure.adventure--map .adventure__viewport{min-width:0;max-width:100%;flex:1 1 0;overflow-x:auto;overflow-y:auto;cursor:grab}
 .adventure.adventure--map .adventure__viewport:active{cursor:grabbing}
 .adventure.adventure--map .adventure__map{width:770px;min-width:770px;max-width:770px;user-select:none}
 .adventure--map .adventure__chapter{min-height:28px;padding:4px 3px}
 .adventure--map .adventure__chapter strong{font-size:9px}
 .adventure--map .adventure__chapter small{font-size:7px;margin-top:2px}
 .adventure--map .adventure__chapter-number{width:17px;height:17px;top:-13px;font-size:8px}
 .adventure--map .adventure__hero span{font-size:7px;padding:2px 4px}
}
.adventure .adventure__chapter.is-locked:disabled{cursor:not-allowed;opacity:1}
.adventure .adventure__chapter.is-locked{background:linear-gradient(#192132fa,#080c16fa);border:2px solid #ac9461;box-shadow:0 4px 12px #000a}
.adventure .adventure__chapter.is-locked .adventure__chapter-number{width:32px;height:32px;top:-30px;border:2px solid #e2c17b;background:#0b1324;box-shadow:0 2px 8px #000b}
.adventure__chapter-number svg{width:20px;height:20px;color:#ffe0a0}
.adventure .adventure__chapter.is-locked small{display:inline-block;color:#ffe0a0;background:#302b20;font-size:9px;font-weight:700;padding:3px 5px;border-radius:4px;line-height:1.2}
@media(max-width:900px){.adventure .adventure__chapter.is-locked .adventure__chapter-number{width:26px;height:26px;top:-25px}.adventure__chapter-number svg{width:17px;height:17px}.adventure .adventure__chapter.is-locked small{font-size:8px;padding:2px 4px}}
