/* Forest adventure preparation. All surfaces are scoped to this game mode. */
#game[data-route=expedition]{width:min(100vw,520px);height:100dvh;max-height:1100px;margin:0 auto;background:#103f34 url('./assets/jungle.jpg') center/cover;border:1px solid #bca568;border-radius:24px;box-shadow:0 18px 70px #001f21b3,inset 0 0 0 3px #224b37}
#game[data-route=expedition] #topbar{flex:0 0 66px;min-height:66px;padding:8px 17px;background:linear-gradient(110deg,#164b37f2,#1b5140e8 60%,#113b31f5);border-bottom:1px solid #e8ca8677;box-shadow:0 3px 16px #032e28a6}
#game[data-route=expedition] #screen{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:70px minmax(0,1fr) 90px;gap:10px;padding:10px 15px 8px;overflow:hidden;background:linear-gradient(#103e301a,#0a342c99)}
#game[data-route=expedition] #screen>*{min-height:0;min-width:0;grid-row:auto}
#game[data-route=expedition] .expedition-title{position:relative;display:flex;align-items:center;gap:14px;border:1px solid #f3d394;border-radius:21px 21px 17px 17px;background:radial-gradient(ellipse at 40% 5%,#fffce8,#f1dfaf 70%,#dec080);box-shadow:inset 0 0 0 3px #fff4c6,inset 0 -5px 0 #bfa05b55,0 4px 0 #6a4b2e,0 7px 16px #052d2877;padding:5px 18px 6px 12px;color:#285640;isolation:isolate}
#game[data-route=expedition] .expedition-title:after{content:'';position:absolute;inset:7px;border:1px solid #bda05b66;border-radius:15px;pointer-events:none;z-index:-1}
.expedition-crest{width:57px;height:57px;flex:0 0 57px;display:grid;place-items:center;border:2px solid #efd98b;border-radius:50%;background:radial-gradient(circle at 35% 20%,#4f8152,#1a4d37 75%);box-shadow:inset 0 0 0 3px #779147,0 2px 0 #936d30,0 0 0 1px #a37a3c}
.expedition-crest img{width:49px;height:49px;object-fit:contain;filter:drop-shadow(0 2px 1px #0d372a66)}.expedition-title-copy{flex:1;min-width:0}.expedition-title-copy>small{display:block;font:10px KongSans,sans-serif;letter-spacing:1.5px;color:#71805a;margin:0 0 3px}.expedition-title-copy h1{font:29px/1 Jua,sans-serif;margin:0;color:#28553d;text-shadow:0 1px #fffbe4;white-space:nowrap}.expedition-title-copy h1 span{font-size:15px;margin-left:9px;color:#7b7246}
.expedition-stage-seal{text-align:center;min-width:58px;padding-left:12px;border-left:1px solid #c5a766;color:#7e6538}.expedition-stage-seal small{font:10px KongSans,sans-serif;display:block}.expedition-stage-seal b{font:30px/1.1 Jua,sans-serif;color:#477046;text-shadow:0 1px #fff6d0}
#game[data-route=expedition] .expedition-content{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:54px minmax(230px,1fr) 220px;gap:10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:0 2px 4px;overscroll-behavior:contain}.expedition-content::-webkit-scrollbar{display:none}
#game[data-route=expedition] .expedition-content>*{grid-row:auto;min-height:0;min-width:0}
#game[data-route=expedition] .jungle-enemy-row{display:flex;justify-content:space-between;padding:4px 17px;gap:12px;border:1px solid #9eb27a;border-radius:16px;background:linear-gradient(100deg,#103c32f5,#255b46e8,#0f3a32f5);box-shadow:inset 0 1px #c3e2a82e,0 3px 0 #082e27;color:#f5e7b4}
.enemy-row-copy{display:grid;gap:1px}.enemy-row-copy b{font:16px Jua,sans-serif}.enemy-row-copy small{font:10px KongSans,sans-serif;color:#c7d8b6!important;white-space:nowrap;width:auto!important}
.enemy-mystery-slots{display:flex;gap:12px;align-items:center}.enemy-mystery-slot{width:47px;height:43px;display:grid;place-items:center;position:relative;border:1px solid #8da26e;border-radius:50% 50% 43% 43%;background:radial-gradient(#68915a60,#092f2970);box-shadow:inset 0 0 8px #001f25a6,0 1px #f4e5a544}
#game[data-route=expedition] .jungle-enemy-bush{width:45px;height:37px;filter:drop-shadow(0 2px 1px #001d27b3)}.enemy-mystery-slot i{position:absolute;right:-4px;bottom:-2px;font:9px Jua,sans-serif;background:#294c35;color:#d3dab0;border:1px solid #a0b17a;border-radius:50%;width:13px;height:13px;text-align:center;line-height:12px}.enemy-mystery-mark{font:25px Jua,sans-serif;color:#b5c89c;border:1px solid #90a77677;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;opacity:.8}
#game[data-route=expedition] .jungle-order-stage{position:relative;margin:0;isolation:isolate;min-height:230px;border:2px solid #d3b76a;border-radius:24px 24px 18px 18px;background:linear-gradient(#153d2e38 15%,#22503d00 45%,#133e31db 82%),url('./assets/lobby-day.png') 50% 32%/100% auto;box-shadow:inset 0 0 0 3px #f2dd8a44,inset 0 -28px 45px #072f2e80,0 4px 0 #062e26,0 8px 18px #062b2877;overflow:hidden}
#game[data-route=expedition] .jungle-order-stage:before,#game[data-route=expedition] .jungle-order-stage:after{content:'';position:absolute;width:76px;height:76px;background:url('./assets/forest-corner-v11.svg') center/contain no-repeat;top:-2px;left:-2px;z-index:4;pointer-events:none}.jungle-order-stage:after{left:auto!important;right:-2px;transform:scaleX(-1)}
.party-stage-heading{position:absolute;left:39px;right:39px;top:10px;display:flex;align-items:center;justify-content:space-between;color:#f9ebbd;text-shadow:0 1px 4px #082d2c;font:12px KongSans,sans-serif;z-index:3}.party-stage-heading>b{font:11px KongSans,sans-serif;background:#174b3dd9;border:1px solid #d3c1848c;border-radius:12px;padding:3px 10px;color:#f4df9d}
.party-rays{position:absolute;inset:0 0 65px;background:conic-gradient(from 0deg at 50% -25%,transparent 145deg,#fff6be28 156deg,transparent 166deg,#f9f7c71a 178deg,transparent 189deg,#fff4c21f 201deg,transparent 220deg);pointer-events:none;z-index:0;animation:party-light 8s ease-in-out infinite alternate}.party-fireflies{position:absolute;inset:0;pointer-events:none;z-index:2}.party-fireflies i{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff5af;box-shadow:0 0 7px 3px #f6df8566;left:24%;top:40%;animation:party-fly 5s ease-in-out infinite}.party-fireflies i:nth-child(2){left:68%;top:21%;animation-delay:-2s}.party-fireflies i:nth-child(3){left:83%;top:58%;animation-delay:-3s}
#game[data-route=expedition] .jungle-cast{position:absolute;top:34px;left:6px;width:calc(100% - 12px);height:calc(100% - 128px);object-fit:fill;z-index:1}
#game[data-route=expedition] .jungle-slots{position:absolute;left:0;right:0;bottom:0;height:92px;gap:10px;padding:0 11px 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;z-index:3}
#game[data-route=expedition] .jungle-slot{position:relative;min-width:0;padding:7px 4px 4px;border:1px solid #f7de9f;border-radius:15px 15px 11px 11px;background:linear-gradient(145deg,#fff4cd,#e7d09a);box-shadow:inset 0 0 0 2px #fff8dc,0 3px #6b4b2f;color:#2d5236;text-shadow:0 1px #fff5cc;text-align:center}
#game[data-route=expedition] .jungle-slot>b{left:-5px;top:-9px;width:28px;height:28px;border:2px solid #f4df9d;border-radius:50%;background:linear-gradient(#5a8c4c,#275e3b);color:#fff1a8;box-shadow:0 2px #40522b,inset 0 1px #96b978;font:18px/24px Jua,sans-serif;text-shadow:0 1px #245132}
#game[data-route=expedition] .jungle-slot strong{font:20px/21px Jua,sans-serif;display:block}.jungle-slot small span{color:#7f8156}
#game[data-route=expedition] .jungle-slot small{font:11px/15px KongSans,sans-serif;color:#55714c;white-space:nowrap}
#game[data-route=expedition] .jungle-slot>div{display:flex;justify-content:center;align-items:center;gap:4px;margin-top:4px}
#game[data-route=expedition] .jungle-slot button{width:39px;min-width:0;height:28px;min-height:28px;display:grid;place-items:center;padding:0;border:1px solid #998448;border-radius:8px;background:linear-gradient(#fff6d4,#d9bf80);box-shadow:inset 0 1px #fffbe2,0 2px #937440;color:#345539;font:26px/20px Jua,sans-serif}
#game[data-route=expedition] .jungle-slot button:disabled{opacity:.26;box-shadow:none}.slot-order-label{font:9px KongSans,sans-serif;color:#7d7951}
#game[data-route=expedition] .jungle-slot.empty{background:#174837dd;border:1px dashed #b9bd89;box-shadow:inset 0 0 15px #082f28;color:#e6dba3;text-shadow:0 1px #18422e}.jungle-slot.empty small{color:#b9c7a0!important}
#game[data-route=expedition] .jungle-roster{position:relative;min-height:0;grid-template-rows:29px minmax(0,1fr) 24px;gap:6px;padding:7px 10px 6px;border:2px solid #b99c5c;border-radius:21px;background:linear-gradient(140deg,#36583be8,#173e30f7 65%);box-shadow:inset 0 0 0 2px #e6cf8755,0 4px #062d25,0 7px 15px #052e2766}
#game[data-route=expedition] .jungle-roster-heading{display:flex;justify-content:space-between;align-items:center;padding:0 2px;color:#fff0bd}.jungle-roster-heading>div{display:flex;align-items:center;gap:7px;min-width:0}.jungle-roster-heading img{width:25px;height:25px;object-fit:contain}
#game[data-route=expedition] .jungle-roster-heading b{font:18px Jua,sans-serif;white-space:nowrap}.jungle-roster-heading>strong{font:20px Jua,sans-serif;color:#ffe29b;white-space:nowrap}.jungle-roster-heading>strong small{font:12px KongSans,sans-serif;color:#b6c9a0}
#game[data-route=expedition] .jungle-roster-heading span{font:10px KongSans,sans-serif;color:#c5d7b6;white-space:nowrap}
#game[data-route=expedition] .jungle-owned.panel{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;height:100%;min-height:0;padding:0;margin:0;border:0;background:none;filter:none;overflow:visible}
#game[data-route=expedition] .jungle-owned button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:3px 2px 4px;border:1px solid #d0ba7c;border-radius:14px;background:radial-gradient(ellipse at 50% 15%,#fffbe8,#eadcaf 78%);box-shadow:inset 0 0 0 2px #fff8d5,0 3px #7f663b,0 4px 7px #052c2566;overflow:visible;transition:filter .12s,border-color .12s,box-shadow .12s;min-width:0;min-height:0}
.roster-portrait{display:grid;place-items:center;width:100%;min-height:0;flex:1;background:radial-gradient(ellipse,#e6e9b284,transparent 72%);border-radius:50%}
#game[data-route=expedition] .jungle-owned img{height:100%;max-height:47px;width:auto;max-width:90%;object-fit:contain;filter:drop-shadow(0 2px 1px #54734729)}
#game[data-route=expedition] .jungle-owned b{font:14px/16px Jua,sans-serif;color:#385c3b;flex:0 0 auto}.jungle-owned small{flex:0 0 auto}
#game[data-route=expedition] .jungle-owned small{font:9px/11px KongSans,sans-serif;color:#7b8053}
#game[data-route=expedition] .jungle-owned button.chosen{border:2px solid #fce798;background:radial-gradient(ellipse at top,#fff7c0,#cfe5a0 75%);box-shadow:inset 0 0 0 1px #fff9c9,0 3px #64863d,0 0 0 1px #86ba5780,0 0 13px #c7dd7c33;padding:2px 1px 3px}
#game[data-route=expedition] .jungle-owned em{right:-4px;top:-5px;width:23px;height:23px;border:2px solid #fff0a4;background:linear-gradient(#6d9c49,#286341);color:#fff3b5;box-shadow:0 2px #24503d;font:15px/19px Jua,sans-serif;z-index:3}
#game[data-route=expedition] .jungle-growth-note{grid-row:3;display:flex;justify-content:center;align-items:center;gap:4px;border:0;border-top:1px solid #e4d18f44;border-radius:0;background:none;font:10px KongSans,sans-serif;color:#d5dfbc;line-height:1.3;padding-top:4px}.jungle-growth-note b{color:#f9e5a0}#game[data-route=expedition] .jungle-growth-note img{width:18px;height:18px}
#game[data-route=expedition] .expedition-footer{display:grid;grid-template-rows:minmax(0,1fr) 23px;gap:6px;padding:0 2px}
#game[data-route=expedition] .expedition-footer>*{grid-row:auto;min-width:0}
#game[data-route=expedition] .jungle-start-row{display:flex;gap:9px;align-items:stretch;min-height:0}
#game[data-route=expedition] .jungle-start-row>.primary{display:flex;justify-content:center;align-items:center;gap:20px;flex:1;min-width:0;min-height:0;padding:6px 20px!important;border:2px solid #fff0ab;border-radius:23px;background:linear-gradient(#fff7ad 0%,#ffe576 14%,#ffd04c 51%,#e8ac31 84%,#d5992e);box-shadow:inset 0 0 0 2px #c98d30,inset 0 5px 0 #fffbc85c,0 4px #8d622c,0 6px 12px #052a2677;color:#315b36;text-shadow:0 1px #fff4bc;overflow:hidden}
#game[data-route=expedition] .jungle-start-row>.primary:before{left:7%;right:7%;height:18px;top:3px;background:linear-gradient(#fffbd0b3,transparent)}
.jungle-start-row>.primary>span{display:flex;flex-direction:column;align-items:center;gap:1px;position:relative;z-index:1}.jungle-start-row>.primary b{font:25px/1.1 Jua,sans-serif}.jungle-start-row>.primary small{font:10px KongSans,sans-serif;color:#92712b;text-shadow:0 1px #fff2a5}.jungle-start-row>.primary i{position:relative;font:28px Jua,sans-serif;border:1px solid #b38d3b;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;background:#fff3a357;box-shadow:inset 0 1px #fff8ce;z-index:1}
#game[data-route=expedition] .jungle-start-row>.secondary{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-width:82px;max-width:125px;min-height:0!important;padding:5px 11px!important;background:linear-gradient(#edf3ca,#b5cf91);border:2px solid #e2e7af;border-radius:20px;box-shadow:inset 0 0 0 1px #8ea267,0 4px #526e3d;color:#3e623f;text-shadow:0 1px #eef4ce;font:15px Jua,sans-serif!important}.jungle-start-row>.secondary small{font:10px KongSans,sans-serif}.jungle-start-row>.primary:active,.jungle-start-row>.secondary:active{filter:brightness(1.08);transform:translateY(2px)}
#game[data-route=expedition] .jungle-progress-line{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#bfd1af;font:10px KongSans,sans-serif;padding:0 5px;white-space:nowrap}.jungle-progress-line>span b{color:#f6e2a0}.jungle-progress-line i{font-style:normal;padding:0 7px;color:#78997f}
#game[data-route=expedition] .jungle-progress-line button{display:flex;gap:5px;align-items:center;border:0;border-radius:12px;background:#214c3bd9;color:#e6e7be;padding:3px 9px;font:11px Jua,sans-serif;text-decoration:none}.jungle-progress-line button b{border:1px solid #b9c48d;border-radius:50%;width:14px;height:14px;line-height:13px;font-size:10px}
#game[data-route=expedition] #navigation{flex:0 0 74px;min-height:74px;border-top:2px solid #edcb82;border-radius:22px 22px 0 0;background:repeating-linear-gradient(2deg,#704c2b00 0 10px,#44301e26 11px 12px),linear-gradient(#916437,#62432b);box-shadow:inset 0 3px #d0a05c,inset 0 7px #9e7445,0 -5px 18px #042a26a6;padding:5px 9px max(6px,env(safe-area-inset-bottom))}
#game[data-route=expedition] #navigation .icon{width:39px;height:38px;filter:drop-shadow(0 2px 1px #342d1b88)}#game[data-route=expedition] #navigation button{font:12px Jua,sans-serif;color:#faedbc}#game[data-route=expedition] #navigation button.active .nav-aura{background:linear-gradient(#ffefac,#f1cb67);border:1px solid #fff1b5;box-shadow:inset 0 0 0 2px #fff6cb77,0 0 12px #fce28b77;border-radius:16px}
@media(max-width:599px){#game[data-route=expedition]{width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}}
@container game (max-width:599px){#game[data-route=expedition] #topbar{flex-basis:59px;min-height:59px;padding:6px 10px}#game[data-route=expedition] #screen{grid-template-rows:59px minmax(0,1fr) 85px;gap:8px;padding:7px 9px 6px}#game[data-route=expedition] .expedition-content{grid-template-rows:48px minmax(230px,1fr) 199px;gap:8px}#game[data-route=expedition] .expedition-title{padding:4px 12px 5px 8px;gap:9px;border-radius:18px}.expedition-crest{width:46px;height:46px;flex-basis:46px}.expedition-crest img{width:41px;height:41px}.expedition-title-copy>small{font-size:8px;letter-spacing:.5px}.expedition-title-copy h1{font-size:24px}.expedition-title-copy h1 span{display:block;font-size:10px;margin:3px 0 0;letter-spacing:2px}.expedition-stage-seal{min-width:44px;padding-left:8px}.expedition-stage-seal b{font-size:27px}.expedition-stage-seal small{font-size:8px}#game[data-route=expedition] .jungle-enemy-row{padding:3px 12px;gap:8px}.enemy-row-copy b{font-size:14px}.enemy-row-copy small{font-size:9px}.enemy-mystery-slots{gap:9px}.enemy-mystery-slot{width:37px;height:36px}#game[data-route=expedition] .jungle-enemy-bush{width:36px;height:31px}.enemy-mystery-mark{width:21px;height:21px;font-size:20px}#game[data-route=expedition] .jungle-order-stage{min-height:230px;border-radius:21px 21px 16px 16px}.party-stage-heading{left:30px;right:30px;top:9px;font-size:10px}.party-stage-heading>b{font-size:9px;padding:3px 7px}#game[data-route=expedition] .jungle-order-stage:before,#game[data-route=expedition] .jungle-order-stage:after{width:60px;height:60px}#game[data-route=expedition] .jungle-slots{height:87px;gap:7px;padding:0 8px 8px}#game[data-route=expedition] .jungle-slot strong{font-size:17px;line-height:20px}#game[data-route=expedition] .jungle-slot small{font-size:9px;line-height:13px}#game[data-route=expedition] .jungle-slot>b{width:24px;height:24px;line-height:20px;font-size:16px;top:-7px;left:-4px}#game[data-route=expedition] .jungle-slot button{width:30px;height:27px;min-height:27px}.slot-order-label{font-size:8px}#game[data-route=expedition] .jungle-cast{height:calc(100% - 122px);top:31px}#game[data-route=expedition] .jungle-roster{grid-template-rows:25px minmax(0,1fr) 21px;padding:6px 7px 5px;gap:5px;border-radius:18px}.jungle-roster-heading img{width:21px;height:21px}#game[data-route=expedition] .jungle-roster-heading b{font-size:16px}#game[data-route=expedition] .jungle-roster-heading span{display:none}.jungle-roster-heading>strong{font-size:17px}#game[data-route=expedition] .jungle-owned.panel{gap:6px}#game[data-route=expedition] .jungle-owned img{max-height:43px}#game[data-route=expedition] .jungle-owned b{font-size:12px;line-height:14px}#game[data-route=expedition] .jungle-owned small{font-size:8px;line-height:10px}#game[data-route=expedition] .jungle-owned em{width:20px;height:20px;line-height:16px;font-size:13px;right:-3px;top:-4px}#game[data-route=expedition] .jungle-growth-note{font-size:9px}#game[data-route=expedition] .jungle-growth-note img{width:16px;height:16px}.jungle-start-row>.primary b{font-size:23px}.jungle-start-row>.primary small{font-size:9px}.jungle-start-row>.primary i{font-size:23px;width:31px;height:31px}#game[data-route=expedition] .jungle-start-row>.primary{gap:10px;padding:5px 12px!important;border-radius:21px}#game[data-route=expedition] .jungle-start-row>.secondary{min-width:73px;max-width:90px;border-radius:18px;padding:4px 8px!important;font-size:13px!important}#game[data-route=expedition] .jungle-progress-line{font-size:9px;padding:0 2px}.jungle-progress-line i{padding:0 3px}#game[data-route=expedition] #navigation{min-height:66px;flex-basis:66px;padding:4px 6px max(5px,env(safe-area-inset-bottom));border-radius:19px 19px 0 0}#game[data-route=expedition] #navigation .icon{height:34px;width:35px}#game[data-route=expedition] #navigation button{font-size:10px}}
@media(max-height:780px){#game[data-route=expedition] #screen{grid-template-rows:55px minmax(0,1fr) 79px;gap:7px;padding-top:6px;padding-bottom:5px}#game[data-route=expedition] .expedition-content{grid-template-rows:46px 230px 196px;gap:8px}#game[data-route=expedition] .expedition-title-copy>small{display:none}.expedition-title-copy h1 span{margin-top:3px}#game[data-route=expedition] .jungle-roster-heading span{display:none}}
@keyframes party-light{from{opacity:.5}to{opacity:1}}@keyframes party-fly{0%,100%{transform:translate(0,0);opacity:.3}50%{transform:translate(6px,-11px);opacity:.9}}
@media(prefers-reduced-motion:reduce){.party-rays,.party-fireflies i{animation:none}}
#game[data-route=expedition] .jungle-owned button.hero-card:not(.chosen){border-color:#e4c77c;background:radial-gradient(ellipse at 50% 12%,#fff7db,#dfcb91 80%)}
#game[data-route=expedition] .jungle-owned button.locked .roster-portrait{opacity:.74;filter:saturate(.65)}
#game[data-route=expedition] .jungle-owned button.locked:after{content:'✦';position:absolute;top:3px;right:5px;color:#b4934b;font-size:11px;text-shadow:0 1px #fff6ce}
#game[data-route=expedition] .jungle-owned button.locked small{color:#9b793d}
