.lobby-two-games{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:5px 0 8px}.lobby-two-games>.primary{position:relative;min-height:84px!important;width:100%!important;padding:12px 12px 19px!important;margin:0!important;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;overflow:visible}.lobby-two-games>.primary>span{font-size:27px!important;white-space:nowrap}.lobby-two-games small{font:700 10px KongSans,sans-serif;color:#2b5b37;white-space:nowrap}.lobby-two-games .jungle-entry{filter:drop-shadow(0 0 7px #d5ffb25e)}.entry-new{position:absolute;right:7px;top:-7px;background:#388148;color:#fff8bf;font:16px Jua,sans-serif;border:2px solid #fff0a3;border-radius:13px;padding:2px 8px;transform:rotate(7deg);box-shadow:0 0 12px #e7ff8b}
#game[data-route=expedition] #screen{display:grid;grid-template-rows:45px 45px minmax(145px,1fr) 29px 110px 30px auto 21px;gap:5px;padding-bottom:2px}#game[data-route=expedition] #navigation{display:flex}.jungle-enemy-row{display:flex;gap:11px;align-items:center;justify-content:center;background:#6a382bdc;color:#fff2d3;border:1px solid #e6af82;border-radius:13px;margin:0 8px;padding:3px 8px}.jungle-enemy-row span{font:17px Jua,sans-serif}.jungle-enemy-row i{font:22px Jua,sans-serif;border:2px solid #a9d16c;border-radius:50%;background:radial-gradient(#8cc145,#2b6035);width:34px;height:34px;text-align:center;line-height:31px;font-style:normal}.jungle-enemy-row small{font-size:10px;line-height:1.4;width:66px;color:#ffe6ba}.jungle-order-stage{position:relative;min-height:0;isolation:isolate;margin:0 5px;border-radius:16px;background:linear-gradient(#245e3600,#1d63462e);overflow:hidden}.jungle-cast{position:absolute;inset:0;width:100%;height:calc(100% - 44px);object-fit:contain}.jungle-slots{position:absolute;bottom:1px;left:0;right:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 7px}.jungle-slot{position:relative;text-align:center;color:#fff4cb;text-shadow:0 1px 3px #174329}.jungle-slot>b{position:absolute;left:1px;top:1px;border-radius:50%;width:22px;height:22px;background:#f6d87d;color:#25462a;border:1px solid #976b2c;text-shadow:none;font:17px Jua,sans-serif}.jungle-slot strong{display:block;font:18px Jua,sans-serif}.jungle-slot small{font-size:10px;display:block;white-space:nowrap}.jungle-slot>div{display:flex;gap:3px;justify-content:center;margin-top:3px}.jungle-slot button{font:12px Jua,sans-serif;min-height:25px;min-width:33px;background:linear-gradient(#fff4c6,#e4c77d);color:#305d33;border:1px solid #9b792b;border-radius:7px;padding:2px 5px}.jungle-slot button:disabled{opacity:.35}.jungle-rule,.jungle-growth-note{font:12px Jua,sans-serif;color:#fff1bc;text-align:center;margin:0 8px;background:#174a37e8;border:1px solid #76995a;border-radius:9px;display:flex;justify-content:center;align-items:center;gap:5px;padding:3px 5px}.jungle-owned{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:4px;padding:0 0 6px;margin:0 7px;border-width:15px;border-image-width:15px 15px 18px;min-height:0}.jungle-owned button{position:relative;min-width:0;padding:1px 2px;background:#ebdfb0;border:1px solid #c9ac64;border-radius:9px;display:flex;align-items:center;flex-direction:column;justify-content:center;overflow:hidden}.jungle-owned button.chosen{background:#f8e49d;border-color:#83ad4a;box-shadow:inset 0 0 0 2px #fff4a3,0 0 7px #ddffb0}.jungle-owned img{width:37px;height:32px;object-fit:contain;flex-shrink:0}.jungle-owned b{font:11px Jua,sans-serif;line-height:1.05}.jungle-owned small{font-size:8px;line-height:1.1}.jungle-owned em{position:absolute;right:1px;top:0;font:13px Jua,sans-serif;font-style:normal;background:#4e8d47;color:#fff;border-radius:50%;width:16px;height:16px;text-align:center}.jungle-growth-note{font-size:11px}.jungle-growth-note img{width:24px;height:24px;object-fit:contain}.jungle-start-row{display:flex;align-items:center;justify-content:center;gap:3px;margin:0 8px}.jungle-start-row>.primary{font-size:25px;min-height:54px;flex:1;white-space:nowrap;padding:9px 20px 17px}.jungle-start-row>.secondary{font-size:12px;min-height:46px;padding:7px 13px 12px;max-width:115px}.jungle-progress-line{text-align:center;font-size:10px;line-height:1.4;color:#fff4c5;text-shadow:0 1px 2px #154c3c;overflow:hidden;white-space:nowrap}.fusion-panel{background:linear-gradient(#1c5b3f,#17472e);color:#fff0b9;border:2px solid #d4b66b;border-radius:15px;padding:9px 12px;margin:10px 0 0;text-align:center}.fusion-panel h3{font:20px Jua,sans-serif;margin:0 0 5px}.fusion-panel>div{display:flex;align-items:center;justify-content:center;gap:9px}.fusion-panel>div b,.fusion-panel>div strong{font:26px Jua,sans-serif;color:#ffe687}.fusion-panel>div span{font-size:11px}.fusion-panel p{font-size:11px;line-height:1.5;margin:5px 0}.fusion-panel small{font-size:10px}.fusion-panel button{width:100%;font-size:20px;min-height:48px;margin:5px 0 0}.fusion-legacy-note{font-size:10px;line-height:1.5;text-align:center;color:#62704a;margin:7px 0}.jungle-skill-list p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin:8px 0}.jungle-skill-list p b{font:17px Jua,sans-serif}.jungle-skill-list p span{font-size:11px}.jungle-skill-list>small{font-size:10px;line-height:1.6;display:block}.character-modal .growth-columns strong{font-size:26px}.character-modal .growth-columns p{min-height:32px}.character-modal .growth-columns button{font-size:12px}.character-modal .info-page{overscroll-behavior:contain}.jungle-growth-note{letter-spacing:-.3px}
@container game (max-height:740px){.lobby-two-games>.primary{min-height:70px!important;padding:8px 8px 14px!important}.lobby-two-games>.primary>span{font-size:23px!important}.lobby-two-games small{font-size:9px}.entry-new{font-size:13px;top:-6px}.lobby-two-games{margin:4px 0 5px}#game[data-route=expedition] #screen{grid-template-rows:38px 37px minmax(108px,1fr) 23px 96px 26px auto 18px;gap:3px}.jungle-enemy-row{gap:8px;padding:2px 6px}.jungle-enemy-row span{font-size:15px}.jungle-enemy-row i{width:28px;height:28px;line-height:26px;font-size:19px}.jungle-enemy-row small{font-size:9px}.jungle-cast{height:calc(100% - 42px)}.jungle-slot strong{font-size:15px}.jungle-slot small{font-size:9px}.jungle-slot>div{margin-top:1px}.jungle-slot button{font-size:10px;min-height:20px}.jungle-rule{font-size:10px}.jungle-growth-note{font-size:9px}.jungle-owned{gap:3px;border-width:12px;border-image-width:12px 12px 15px}.jungle-owned img{height:27px;width:30px}.jungle-owned b{font-size:10px}.jungle-owned small{font-size:8px}.jungle-start-row>.primary{font-size:21px;min-height:47px;padding:7px 16px 14px}.jungle-start-row>.secondary{font-size:10px;max-width:92px;padding:5px 10px 10px;min-height:39px}.jungle-progress-line{font-size:9px}.fusion-panel{padding:8px}.fusion-panel h3{font-size:17px}.fusion-panel>div b,.fusion-panel>div strong{font-size:23px}.fusion-panel button{min-height:43px;font-size:17px}.fusion-panel p{font-size:10px}.character-modal .growth-columns strong{font-size:23px}.character-modal .growth-columns button{font-size:10px}}

.jungle-cast{object-fit:fill}

.jungle-enemy-bush{width:44px;height:34px;object-fit:contain}.jungle-progress-line button{padding:0;border:0;background:transparent;color:#ffe890;font:12px Jua,sans-serif;text-decoration:underline}.jungle-owned button{cursor:pointer}@container game (max-height:740px){.jungle-enemy-bush{width:37px;height:28px}.jungle-progress-line button{font-size:10px}}

/* Expedition preparation: reserve real space for portraits and controls. */
#game[data-route=expedition]{height:100dvh;max-height:none}
#game[data-route=expedition] #screen{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-rows:48px 44px minmax(156px,1fr) 28px 206px 30px 58px 24px;
  gap:5px;padding:0 10px 5px;overflow:hidden;
}
#game[data-route=expedition] #screen>*{min-width:0}
#game[data-route=expedition] .view-heading{grid-row:1;width:100%;height:100%;margin:0}
#game[data-route=expedition] .view-heading h1{font-size:24px;margin:0 0 5px}
.jungle-enemy-row{grid-row:2;margin:0;padding:3px 8px}
.jungle-order-stage{grid-row:3;margin:0}
.jungle-cast{height:calc(100% - 78px)}
.jungle-slots{height:76px;bottom:0;padding:0 4px;align-items:start}
.jungle-slot strong{font-size:19px;line-height:1.2}
.jungle-slot small{font-size:11px;line-height:1.3}
.jungle-slot>div{margin-top:4px}
.jungle-slot button{min-width:38px;min-height:28px;font-size:13px}
.jungle-slot>b{left:4px;top:0}
.jungle-rule{grid-row:4;margin:0;font-size:12px;line-height:1.3}
.jungle-roster{grid-row:5;min-height:0;display:grid;grid-template-rows:22px minmax(0,1fr);gap:4px}
.jungle-roster-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px;color:#fff4ca;text-shadow:0 1px 3px #143b29}
.jungle-roster-heading b{font:17px Jua,sans-serif}
.jungle-roster-heading span{font-size:11px}
.jungle-owned{height:100%;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:6px;margin:0;padding:0 0 6px;border-width:12px;border-image-width:12px 12px 18px}
.jungle-owned button{min-height:0;padding:3px 2px;gap:1px;overflow:visible;justify-content:center}
.jungle-owned img{width:42px;height:38px}
.jungle-owned b{font-size:14px;line-height:16px;white-space:nowrap}
.jungle-owned small{font-size:11px;line-height:13px}
.jungle-owned em{right:3px;top:2px;width:18px;height:18px;font-size:14px;line-height:18px}
.jungle-growth-note{grid-row:6;margin:0;font-size:12px}
.jungle-start-row{grid-row:7;margin:0;gap:5px}
.jungle-start-row>.primary{min-height:58px;font-size:25px;padding:9px 12px 17px}
.jungle-start-row>.secondary{font-size:13px!important;max-width:125px;min-height:46px!important;padding:6px 12px 11px!important}
.jungle-progress-line{grid-row:8;white-space:normal;line-height:1.3;font-size:11px;overflow:visible;align-self:center}
@media(min-width:650px){
  #game[data-route=expedition]{width:min(100vw,520px);height:calc(100dvh - 20px);margin:10px auto}
  #game[data-route=expedition] #screen{padding-left:16px;padding-right:16px}
}
@container game (max-height:780px){
  #game[data-route=expedition] #screen{grid-template-rows:42px 38px minmax(120px,1fr) 26px 174px 0 54px 24px;gap:4px;padding-bottom:4px}
  #game[data-route=expedition] .view-heading h1{font-size:22px}
  .jungle-enemy-row{gap:8px;padding:2px 6px}.jungle-enemy-row span{font-size:15px}.jungle-enemy-row small{font-size:10px}
  .jungle-cast{height:calc(100% - 70px)}.jungle-slots{height:68px}
  .jungle-slot strong{font-size:16px}.jungle-slot small{font-size:10px}.jungle-slot button{font-size:12px;min-height:25px;min-width:34px}.jungle-slot>div{margin-top:2px}
  .jungle-roster-heading b{font-size:16px}.jungle-roster-heading span{font-size:10px}
  .jungle-owned img{width:34px;height:28px}.jungle-owned b{font-size:13px;line-height:15px}.jungle-owned small{font-size:10px;line-height:12px}.jungle-owned button{padding:2px 1px;gap:0}
  .jungle-growth-note{display:none}.jungle-start-row>.primary{font-size:22px;min-height:54px;padding:8px 10px 15px}.jungle-progress-line{font-size:10px}
}
@container game (max-height:620px){
  #game[data-route=expedition] #screen{grid-template-rows:36px 34px minmax(78px,1fr) 0 170px 0 50px 20px;gap:3px}
  #game[data-route=expedition] .view-heading h1{font-size:20px}
  .jungle-rule{display:none}.jungle-cast{height:calc(100% - 62px)}.jungle-slots{height:60px}
  .jungle-slot strong{font-size:15px}.jungle-slot small{font-size:9px}.jungle-slot button{min-height:24px;padding:1px 5px}.jungle-slot>div{margin-top:1px}
  .jungle-owned img{height:24px}.jungle-owned b{font-size:12px;line-height:14px}
  .jungle-start-row>.primary{min-height:50px;font-size:21px;padding:7px 10px 14px}
  .jungle-progress-line{font-size:10px;line-height:1.2}
}
@container game (max-height:530px){
  #game[data-route=expedition] #screen{overflow-y:auto;overscroll-behavior:contain;grid-template-rows:36px 34px 106px 0 170px 0 50px 24px}
}
