/* Black Rain portrait locations. The backgrounds contain scenery only; all
   targets and dynamic values remain in the original DOM and handlers. */
html.survival-portrait .frame_mine,
html.survival-portrait .frame_forest,
html.survival-portrait .frame_bunker {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 600px !important;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #20272b;
}
html.survival-portrait .frame_mine > .mine_fon,
html.survival-portrait .frame_forest > .forest_fon {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 600px !important;
  background-position: center !important;
  background-size: cover !important;
}
html.survival-portrait .frame_mine > .mine_fon {
  background-image: linear-gradient(180deg,rgba(11,17,23,.12),rgba(11,17,23,.24)),url('../img/locations/survival/mine_background.webp') !important;
}
html.survival-portrait .frame_forest > .forest_fon {
  background-image: linear-gradient(180deg,rgba(11,17,23,.10),rgba(11,17,23,.28)),url('../img/locations/survival/forest_background.webp') !important;
}
html.survival-portrait .frame_mine > .mine_scene,
html.survival-portrait .frame_forest > .forest_scene {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 600px !important;
  margin-left: 0 !important;
}
html.survival-portrait .frame_mine > .mine_scene > div,
html.survival-portrait .frame_forest > .forest_scene > div {
  box-sizing: border-box;
  background-repeat: no-repeat !important;
  background-size: 88% 75% !important;
  background-position: center 7px !important;
  background-color: rgba(21,30,36,.78);
  border: 1px solid rgba(151,165,169,.82);
  border-left: 3px solid #d99e56;
  box-shadow: 0 4px 9px rgba(0,0,0,.55);
  clip-path: polygon(0 0,94% 0,100% 7%,100% 100%,6% 100%,0 93%);
  cursor: pointer;
}
html.survival-portrait .frame_mine > .mine_scene > div > .name,
html.survival-portrait .frame_forest > .forest_scene > div > .name {
  position: absolute !important;
  left: 4% !important;
  right: 4% !important;
  top: auto !important;
  bottom: 5px !important;
  width: 92%;
  min-height: 30px;
  padding: 4px 2px;
  transform: none !important;
  box-sizing: border-box;
  background: linear-gradient(110deg,rgba(17,25,31,.97),rgba(41,50,55,.93));
  border-top: 1px solid #9caaab;
  color: #f2efe7 !important;
  font: 700 11px/1.15 var(--br-display) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal !important;
  text-align: center;
  text-shadow: 0 1px 2px #000 !important;
  pointer-events: none;
}
html.survival-portrait .frame_mine > .mine_scene > div {
  width: 46% !important;
  height: 206px !important;
}
html.survival-portrait .frame_mine > .mine_scene > .ore_mine { left: 3% !important; top: 87px !important; background-image: url('../img/locations/survival/ore.webp') !important; }
html.survival-portrait .frame_mine > .mine_scene > .sulfur_caves { left: 51% !important; top: 87px !important; background-image: url('../img/locations/survival/sulfur.webp') !important; }
html.survival-portrait .frame_mine > .mine_scene > .stone_quarry { left: 3% !important; top: 307px !important; background-image: url('../img/locations/survival/quarry.webp') !important; }
html.survival-portrait .frame_mine > .mine_scene > .crystal_caves { left: 51% !important; top: 307px !important; background-image: url('../img/locations/survival/crystal.webp') !important; }
html.survival-portrait .frame_forest > .forest_scene > div {
  left: 6% !important;
  width: 88% !important;
  height: 210px !important;
  background-size: auto 77% !important;
}
html.survival-portrait .frame_forest > .forest_scene > .enchanted_forest { top: 95px !important; background-image: url('../img/locations/survival/scout.webp') !important; }
html.survival-portrait .frame_forest > .forest_scene > .ancient_library { top: 323px !important; background-image: url('../img/locations/survival/archive.webp') !important; }
html.survival-portrait .frame_forest > .forest_scene > .ancient_library.state-locked {
  filter: grayscale(1) drop-shadow(0 4px 6px rgba(0,0,0,.6));
}
html.survival-portrait .frame_mine > #mine_back,
html.survival-portrait .frame_forest > #forest_back {
  position: absolute !important;
  left: 9px !important;
  top: 10px !important;
  min-width: 0 !important;
  width: 73px !important;
  height: 39px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: linear-gradient(130deg,#404a4d,#172127) !important;
  border: 1px solid #89989a !important;
  border-radius: 0 !important;
  box-shadow: 0 3px 8px #0009 !important;
  clip-path: polygon(0 0,89% 0,100% 25%,100% 100%,11% 100%,0 75%);
  color: #f4eee2 !important;
  font: 700 11px/37px Arial,sans-serif !important;
  text-align: center !important;
  text-shadow: 0 1px 2px #000 !important;
  z-index: 20 !important;
}

/* Route maps use six small, dry scene vignettes. Targets and labels remain DOM. */
html.survival-portrait body .game .frame_mine > .mine_fon {
  background-image: linear-gradient(180deg,#091824df 0%,#0918242b 28%,#09182412 65%,#091824e8 100%),url('../img/locations/survival/mine_background.webp') !important;
}
html.survival-portrait body .game .frame_forest > .forest_fon {
  background-image: linear-gradient(180deg,#091824dd 0%,#09182427 27%,#09182414 67%,#091824ed 100%),url('../img/locations/survival/forest_background.webp') !important;
}
html.survival-portrait body .game .frame_mine > .survival-location-header,
html.survival-portrait body .game .frame_forest > .survival-location-header {
  position: absolute !important;
  z-index: 15 !important;
  left: 91px !important;
  right: 8px !important;
  top: 8px !important;
  height: 75px !important;
  pointer-events: none !important;
  text-align: left !important;
}


html.survival-portrait body .game .survival-location-header > .title {
  color: #f9e7cf !important;
  font: 800 19px/23px var(--br-display) !important;
  text-shadow: 0 2px 4px #05131c !important;
}
html.survival-portrait body .game .survival-location-header > .subtitle {
  color: #dfb079 !important;
  font: 700 10px/14px var(--br-display) !important;
  text-shadow: 0 2px 4px #05131c !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div,
html.survival-portrait body .game .frame_forest > .forest_scene > div {
  position: absolute !important;
  height: 86px !important;
  box-sizing: border-box !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid #c5a071 !important;
  border-left: 3px solid #e8ae69 !important;
  border-radius: 7px !important;
  clip-path: none !important;
  box-shadow: 0 5px 12px #06121ac9,inset 0 1px #fff4 !important;
  filter: none !important;
  transition: transform .15s ease, border-color .15s ease !important;
  touch-action: manipulation !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div:active,
html.survival-portrait body .game .frame_forest > .forest_scene > div:active {
  transform: scale(.97) !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div > .name,
html.survival-portrait body .game .frame_forest > .forest_scene > div > .name {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  min-height: 26px !important;
  padding: 3px 19px 3px 5px !important;
  background: linear-gradient(90deg,#0d1d28fa,#213542ef) !important;
  border-top: 1px solid #e6b57b !important;
  color: #f9efe0 !important;
  font: 800 10px/19px var(--br-display) !important;
  text-align: left !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div::after,
html.survival-portrait body .game .frame_forest > .forest_scene > div::after {
  content: '›';
  position: absolute;
  z-index: 2;
  right: 5px;
  bottom: 1px;
  color: #edbc7a;
  font: 900 23px/24px Arial,Helvetica,sans-serif;
  pointer-events: none;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .ore_mine {
  left: 4% !important; top: 140px !important; width: 48% !important;
  background-image: linear-gradient(#08151c18,#08151ce3),url('../img/locations/survival/route_ore.webp') !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .stone_quarry {
  left: 48% !important; top: 235px !important; width: 48% !important;
  background-image: linear-gradient(#08151c18,#08151ce3),url('../img/locations/survival/route_quarry.webp') !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .sulfur_caves {
  left: 4% !important; top: 330px !important; width: 48% !important;
  background-image: linear-gradient(#08151c18,#08151ce3),url('../img/locations/survival/route_sulfur.webp') !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .crystal_caves {
  left: 48% !important; top: 425px !important; width: 48% !important;
  background-image: linear-gradient(#08151c18,#08151ce3),url('../img/locations/survival/route_quartz.webp') !important;
}
html.survival-portrait body .game .frame_forest > .forest_scene > .enchanted_forest {
  left: 5% !important; right: auto !important; top: 171px !important; width: 68% !important; height: 121px !important;
  background-image: linear-gradient(#08151c12,#08151ce0),url('../img/locations/survival/route_forest.webp') !important;
}
html.survival-portrait body .game .frame_forest > .forest_scene > .ancient_library {
  left: auto !important; right: 5% !important; top: 350px !important; width: 68% !important; height: 121px !important;
  background-image: linear-gradient(#08151c12,#08151ce0),url('../img/locations/survival/route_archive.webp') !important;
}
html.survival-portrait body .game .frame_forest > .forest_scene > .ancient_library.state-locked {
  filter: grayscale(.85) brightness(.72) !important;
  border-color: #83929a !important;
}
html.survival-portrait body .game .frame_forest > .forest_scene > .ancient_library.state-locked::after {
  content: '';
  right: 6px;
  bottom: 5px;
  width: 17px;
  height: 17px;
  background: url('../img/ui/survival/kit/lock.webp') center/contain no-repeat;
}
html.survival-portrait body .game .frame_mine > .survival-location-hint,
html.survival-portrait body .game .frame_forest > .survival-location-hint {
  position: absolute !important;
  z-index: 10 !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 10px !important;
  height: 28px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  background: #142634df !important;
  border: 1px solid #9d8e79 !important;
  border-radius: 5px !important;
  color: #f3e4cf !important;
  font: 700 10px/26px Arial,Helvetica,sans-serif !important;
  text-align: center !important;
  pointer-events: none !important;
}

/* The four actual mine campaigns are map targets. The road is shared with
   the campaign world; marker text and the selected route stay live DOM. */
html.survival-portrait body .game .frame_mine > .mine_fon {
  background-image: linear-gradient(180deg,#08131eca 0%,#08131e28 24%,#08131e00 56%,#07131e8a 75%,#07131eed 100%),url('../img/company/survival/world_01_route_portrait.webp') !important;
  background-position: center center !important;
}
html.survival-portrait body .game .frame_mine > .survival-location-header {
  left: 43px !important;
  right: 7px !important;
  top: 34px !important;
  height: 67px !important;
}


html.survival-portrait body .game .frame_mine > .survival-location-header > .region {
  margin-top: 18px;
  color: #e8ab6b;
  font: 800 7px/10px var(--br-display);
  letter-spacing: 1.35px;
  text-shadow: 0 1px 3px #02070d;
}
html.survival-portrait body .game .frame_mine > .survival-location-header > .title {
  font: 900 20px/21px var(--br-display) !important;
}
html.survival-portrait body .game .frame_mine > .survival-location-header > .subtitle {
  color: #e8d8c4 !important;
  font: 600 9px/12px var(--br-display) !important;
}
html.survival-portrait body .game .frame_mine > #mine_back {
  left: 10px !important;
  top: 35px !important;
  width: 27px !important;
  height: 26px !important;
  min-width: 27px !important;
  border: 1px solid #899ba8 !important;
  border-radius: 6px !important;
  clip-path: none !important;
  background: #11212de6 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
html.survival-portrait body .game .frame_mine > #mine_back::before {
  content: '‹';
  color: #f8e9d4;
  font: 800 23px/22px Arial,sans-serif;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div {
  width: 84px !important;
  height: 64px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  filter: drop-shadow(0 3px 3px #030a10cc) !important;
  z-index: 6 !important;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .ore_mine {
  left: 8% !important; top: 147px !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .stone_quarry {
  left: auto !important; right: 5% !important; top: 205px !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .sulfur_caves {
  left: 12% !important; top: 285px !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .crystal_caves {
  left: auto !important; right: 7% !important; top: 366px !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > .ore_mine,
html.survival-portrait body .game .frame_mine > .mine_scene > .stone_quarry,
html.survival-portrait body .game .frame_mine > .mine_scene > .sulfur_caves,
html.survival-portrait body .game .frame_mine > .mine_scene > .crystal_caves {
  width: 84px !important;
  height: 64px !important;
  background-image: none !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div > .mine-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 2px solid #e6ae69;
  border-radius: 8px;
  background: linear-gradient(145deg,#263a48,#0a1723 75%);
  box-shadow: inset 0 0 0 2px #0b1622,0 0 0 2px #14202a,0 3px 8px #030a11b3;
  color: #f6d6a0;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div > .mine-marker-icon > img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div > .name {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: auto !important;
  min-width: 50px !important;
  max-width: 102px !important;
  min-height: 18px !important;
  padding: 2px 5px !important;
  transform: translateX(-50%) !important;
  border: 1px solid #bd945f !important;
  border-radius: 3px !important;
  background: #081722f2 !important;
  color: #fff4e4 !important;
  font: 800 9px/12px var(--br-display) !important;
  text-align: center !important;
  justify-content: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  box-shadow: 0 2px 5px #02080ee0 !important;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div::after { content: none !important; }
html.survival-portrait body .game .frame_mine > .mine_scene > div.is-selected > .mine-marker-icon {
  border-color: #ffe0a3;
  background: linear-gradient(145deg,#ad6832,#142638 72%);
  color: #fff0ca;
  box-shadow: inset 0 0 0 2px #12202b,0 0 0 3px #eeb665,0 0 16px #e5a257a8;
}
html.survival-portrait body .game .frame_mine > .mine_scene > div.is-selected > .name {
  border-color: #f7c789 !important;
  color: #fff2d5 !important;
}
html.survival-portrait body .game .frame_mine > .mine-selection-panel {
  position: absolute;
  z-index: 15;
  left: 8px;
  right: 8px;
  top: 441px;
  height: 103px;
  box-sizing: border-box;
  padding: 7px 9px 8px;
  border: 1px solid #8a9aa5;
  border-radius: 9px;
  background: linear-gradient(145deg,#152637f7,#0b1929fa);
  box-shadow: 0 5px 16px #020910c7,inset 0 1px #bfd0da44;
  color: #f8efe4;
}
html.survival-portrait body .game .frame_mine > .mine-selection-panel > .mine-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fbf3e7;
  font: 900 10px/14px var(--br-display);
}
html.survival-portrait body .game .frame_mine .mine-count {
  padding: 1px 5px;
  border: 1px solid #ae916b;
  border-radius: 4px;
  color: #f6c68c;
  font: 800 8px/12px Arial,sans-serif;
}
html.survival-portrait body .game .frame_mine .mine-selection-name {
  margin-top: 2px;
  color: #f7cf9a;
  font: 800 12px/14px Arial,sans-serif;
}
html.survival-portrait body .game .frame_mine .mine-selection-hint {
  color: #b9c6ca;
  font: 600 8px/11px Arial,sans-serif;
}
html.survival-portrait body .game .frame_mine .mine-open-route {
  display: block;
  width: 100%;
  height: 28px;
  margin: 4px 0 0;
  padding: 0 6px;
  border: 1px solid #ffdb9c;
  border-radius: 6px;
  background: linear-gradient(180deg,#f4bc77,#c76d31);
  box-shadow: inset 0 1px #fff4cdad,0 2px 0 #6d301b;
  color: #21140f;
  font: 900 11px/25px Arial,sans-serif;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

/* Six functional bunker slots fit the phone instead of requiring horizontal drag. */
html.survival-portrait .frame_bunker {
  background: linear-gradient(180deg,rgba(9,14,18,.12),rgba(9,14,18,.3)),url('../img/bunker/survival/background.webp') center / cover no-repeat !important;
}
html.survival-portrait .frame_bunker .bunker_rooms {
  transform: none !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 600px !important;
  padding: 111px 7px 58px !important;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  grid-template-rows: repeat(3,minmax(0,1fr)) !important;
  gap: 5px !important;
  box-sizing: border-box;
  background: none !important;
  cursor: default !important;
}
html.survival-portrait .frame_bunker .bunker_rooms > .bunker_room {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}
html.survival-portrait .frame_bunker .bunker_room .room_image {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: rgba(18,28,34,.9) !important;
  background-position: center 4px !important;
  background-size: 95% 77px !important;
  border: 1px solid #819196;
  border-left: 3px solid #dc9c53;
  border-radius: 0 !important;
  box-shadow: 0 3px 7px #0009;
  clip-path: polygon(0 0,94% 0,100% 7%,100% 100%,6% 100%,0 93%);
  overflow: hidden;
}
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="electro_"] { background-image: url('../img/bunker/survival/generator.webp') !important; }
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="kazarma_"] { background-image: url('../img/bunker/survival/barracks.webp') !important; }
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="odejda_"] { background-image: url('../img/bunker/survival/clothing.webp') !important; }
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="orujie_"] { background-image: url('../img/bunker/survival/armory.webp') !important; }
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="komand_"] { background-image: url('../img/bunker/survival/command.webp') !important; }
html.survival-portrait .frame_bunker .bunker_room_empty .room_image {
  background-image: none !important;
  border-style: dashed;
  border-color: #83969b;
}
html.survival-portrait .frame_bunker .bunker_room .room_title,
html.survival-portrait .frame_bunker .bunker_room .room_level,
html.survival-portrait .frame_bunker .bunker_room .room_empty {
  position: absolute;
  left: 3px;
  right: 3px;
  width: auto;
  margin: 0;
  color: #f1eee7;
  font: 700 10px/12px var(--br-display);
  text-shadow: 0 1px 2px #000;
  text-align: center;
  white-space: normal;
}
html.survival-portrait .frame_bunker .bunker_room .room_title { top: 74px; max-height: 25px; overflow: hidden; }
html.survival-portrait .frame_bunker .bunker_room .room_level { top: 101px; font-size: 9px; color: #d7ab70; }
html.survival-portrait .frame_bunker .bunker_room .room_empty { top: 74px; }
html.survival-portrait .frame_bunker .bunker_room .btn-bunker-collect,
html.survival-portrait .frame_bunker .bunker_room .btn-bunker-upgrade,
html.survival-portrait .frame_bunker .bunker_room_empty .btn-bunker-build {
  position: absolute !important;
  top: auto !important;
  bottom: 4px !important;
  left: 4px !important;
  right: 4px !important;
  width: calc(100% - 8px) !important;
  min-width: 0 !important;
  height: 23px !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  margin: 0 !important;
  background: linear-gradient(180deg,#db9a51,#7f4326) !important;
  border: 1px solid #ecb771 !important;
  border-radius: 0 !important;
  color: #171c20 !important;
  font: 700 9px/21px var(--br-display) !important;
  text-shadow: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 5px #0009 !important;
}
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="electro_"] > .btn-bunker-collect {
  width: 47% !important;
  right: auto !important;
  font-size: 8px !important;
}
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="electro_"] > .btn-bunker-upgrade {
  left: auto !important;
  width: 47% !important;
  font-size: 8px !important;
}
html.survival-portrait .frame_bunker > .interface {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 600px !important;
  pointer-events: none;
}
html.survival-portrait .frame_bunker > .interface > .left {
  left: 8px !important;
  top: 66px !important;
  width: 72px !important;
  height: 37px !important;
  pointer-events: auto;
}
html.survival-portrait .frame_bunker > .interface > .left > .city-btn {
  width: 72px !important;
  height: 37px !important;
  background: linear-gradient(135deg,#404b4f,#1d282d) !important;
  border: 1px solid #89999d !important;
  box-shadow: 0 3px 7px #0009 !important;
  clip-path: polygon(0 0,90% 0,100% 22%,100% 100%,10% 100%,0 78%);
}
html.survival-portrait .frame_bunker > .interface > .left > .city-btn > .city { display: none !important; }
html.survival-portrait .frame_bunker > .interface > .left > .city-btn > .name {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  color: #f2eee4 !important;
  font: 700 11px/36px var(--br-display) !important;
  text-align: center !important;
}
html.survival-portrait .frame_bunker > .interface > .top {
pointer-events: auto;
}

html.survival-portrait .frame_bunker > .interface > .top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(21,31,38,.97),rgba(37,48,53,.95));
  border-bottom: 1px solid #89959a;
  pointer-events: none;
}
html.survival-portrait .frame_bunker > .interface > .top > .profile { display: none !important; }












/* The build list is created in a popup; its room icons share the runtime assets. */
html.survival-portrait body .bunker_build_list .room_image[class*="electro_"] { background-image: url('../img/bunker/survival/generator.webp') !important; }
html.survival-portrait body .bunker_build_list .room_image[class*="kazarma_"] { background-image: url('../img/bunker/survival/barracks.webp') !important; }
html.survival-portrait body .bunker_build_list .room_image[class*="odejda_"] { background-image: url('../img/bunker/survival/clothing.webp') !important; }
html.survival-portrait body .bunker_build_list .room_image[class*="orujie_"] { background-image: url('../img/bunker/survival/armory.webp') !important; }
html.survival-portrait body .bunker_build_list .room_image[class*="komand_"] { background-image: url('../img/bunker/survival/command.webp') !important; }

/* Avatar and currency rules from avatar.css/style.css have a more specific
   selector than the location rules above. Keep the shared resource actions,
   but size them for this 600px portrait coordinate system. */
html.survival-portrait body .game .frame_bunker > .interface > .top > .profile,
html.survival-portrait body .game .frame_bunker > .interface > .top > .profile.hide {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.survival-portrait body .game .frame_bunker > .interface {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 600px !important;
}











html.survival-portrait body .game .frame_bunker > .interface > .top > .coins > .icon,
html.survival-portrait body .game .frame_bunker > .interface > .top > .coinsgold > .icon,
html.survival-portrait body .game .frame_bunker > .interface > .top > .energy > .icon,
html.survival-portrait body .game .frame_bunker > .interface > .top > .coins > .text > .icon,
html.survival-portrait body .game .frame_bunker > .interface > .top > .coinsgold > .text > .icon,
html.survival-portrait body .game .frame_bunker > .interface > .top > .energy > .text > .icon {
display: none !important;
}

html.survival-portrait body .game .frame_bunker > .interface > .top > .coins > .text,
html.survival-portrait body .game .frame_bunker > .interface > .top > .coinsgold > .text,
html.survival-portrait body .game .frame_bunker > .interface > .top > .energy > .text {
display: block !important;
}

html.survival-portrait body .game .frame_bunker > .interface > .top > .coins > .plus,
html.survival-portrait body .game .frame_bunker > .interface > .top > .coinsgold > .plus,
html.survival-portrait body .game .frame_bunker > .interface > .top > .energy > .plus {
display: block !important;
}

html.survival-portrait body .game .frame_bunker > .interface > .top > .coins > .plus::after,
html.survival-portrait body .game .frame_bunker > .interface > .top > .coinsgold > .plus::after,
html.survival-portrait body .game .frame_bunker > .interface > .top > .energy > .plus::after {
display: block;
}


/* Existing bunker type_0 through type_20 classes drive the visible stage. */
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_0"] { --br-art:60px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_1"] { --br-art:60px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_2"] { --br-art:61px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_3"] { --br-art:61px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_4"] { --br-art:62px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_5"] { --br-art:62px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_6"] { --br-art:63px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_7"] { --br-art:63px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_8"] { --br-art:64px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_9"] { --br-art:64px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_10"] { --br-art:65px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_11"] { --br-art:65px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_12"] { --br-art:66px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_13"] { --br-art:66px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_14"] { --br-art:67px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_15"] { --br-art:67px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_16"] { --br-art:68px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_17"] { --br-art:68px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_18"] { --br-art:69px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_19"] { --br-art:69px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image[class$="_20"] { --br-art:70px; }
html.survival-portrait .frame_bunker .bunker_room:not(.bunker_room_empty) .room_image { background-size:auto var(--br-art,77px) !important; }

/* Outdoor construction map: keep all six real rooms and their existing actions. */
html.survival-portrait .frame_bunker {
  background: linear-gradient(180deg,rgba(10,25,36,.34),rgba(12,24,28,.08) 43%,rgba(7,17,22,.28)),url('../img/HOME/survival_base_bg.webp') center / cover no-repeat !important;
}
html.survival-portrait .frame_bunker .bunker_rooms {
  padding: 111px 10px 52px !important;
  gap: 7px 11px !important;
}
html.survival-portrait .frame_bunker .bunker_room .room_image {
  background-color: rgba(15,37,47,.19) !important;
  background-position: center 1px !important;
  border: 1px solid rgba(244,219,178,.42) !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 13px #07131b38, inset 0 -42px 37px #091c2a80 !important;
  clip-path: none !important;
}
html.survival-portrait .frame_bunker .bunker_room_empty .room_image {
  border: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
html.survival-portrait .frame_bunker .bunker_room .room_title,
html.survival-portrait .frame_bunker .bunker_room .room_empty {
  top: 70px;
  left: 10px;
  right: 10px;
  padding: 3px 2px;
  background: rgba(7,24,34,.91);
  border: 1px solid #b99260;
  border-radius: 4px;
  box-shadow: 0 2px 5px #07131baa;
}
html.survival-portrait .frame_bunker .bunker_room .room_title {
  height: 28px !important;
  max-height: 28px !important;
  padding: 0 2px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
html.survival-portrait .frame_bunker .bunker_room .room_level {
  top: 101px;
  color: #f2d5a8;
}
html.survival-portrait .frame_bunker .bunker_room .btn-bunker-collect,
html.survival-portrait .frame_bunker .bunker_room .btn-bunker-upgrade,
html.survival-portrait .frame_bunker .bunker_room_empty .btn-bunker-build {
  height: 26px !important;
  bottom: 3px !important;
  border-radius: 5px !important;
  font: 700 9px/24px var(--br-display) !important;
}
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="electro_"] > .btn-bunker-collect,
html.survival-portrait .frame_bunker .bunker_room .room_image[class*="electro_"] > .btn-bunker-upgrade {
  font-size: 8px !important;
}
html.survival-portrait .frame_bunker .btn-bunker-collect > .energy {
  display: none !important;
}
html.survival-portrait .frame_bunker .bunker_room_empty .room_image > .cursor {
  top: calc(100% - 68px) !important;
  left: calc(50% - 38px) !important;
}
