
/* BLACK RAIN utility dossiers. Existing prices, timers and purchase hooks stay in the DOM. */
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup,
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup,
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup {
  background-color: #13191b !important;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 6px),
    radial-gradient(ellipse at 50% 0, rgba(105,73,39,.30), transparent 44%),
    linear-gradient(175deg, #30302b 0, #171c1e 27%, #101719 100%) !important;
  border: 1px solid #a47a49 !important; border-image: url('../img/ui/survival/commerce/dossier_frame.png') 19 / 8px stretch !important;
  border-radius: 5px !important;
  box-shadow: inset 0 0 0 2px #0b1112, inset 0 0 0 3px #674c31,
    inset 0 12px 25px rgba(240,189,104,.05), 0 6px 18px #030607,
    0 0 0 500px rgba(2,6,8,.75) !important;
  color: #f3e8d5 !important;
}
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup::before,
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup::before,
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup::before {
  background: linear-gradient(180deg, #423a2e 0, #202326 65%, #151b1e) !important;
  border-bottom: 1px solid #a7804d !important;
  box-shadow: inset 0 1px rgba(242,204,143,.35), 0 2px 5px #0a0e10 !important;
}
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup > .h1,
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup > .h1,
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > .dailyBonusHeroTitle {
  color: #f8ecd7 !important;
  font-family: var(--br-display) !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  text-shadow: 0 1px #080d0e, 0 0 8px rgba(250,188,95,.16) !important;
}
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup > .close,
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup > .close,
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > .close {
  border-color: #cb9762 !important;
  box-shadow: inset 0 1px rgba(255,215,157,.45), 0 2px 5px #080c0c !important;
}

/* Combat kit: readable supply list and one clear purchase action. */
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup {
  height: 310px !important;
  max-height: 310px !important;
}
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup > .powerUp-vip {
  background: linear-gradient(180deg, rgba(13,20,23,.18), rgba(11,16,19,.64)) !important;
  border: 1px solid rgba(166,132,82,.30) !important;
  border-radius: 4px !important;
}
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup > .powerUp-vip > .text {
  color: #f1e9d8 !important;
  font-size: 9.5px !important;
  line-height: 1.4 !important;
}
html.survival-portrait body .game #start_kit#start_kit#start_kit#start_kit#start_kit.popup #start_kit1-buy,
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup .vip-btn-block .btn {
  color: #fff2d9 !important;
  background: transparent url('../img/ui/survival/kit/button_primary.webp') center / 100% 100% no-repeat !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

/* Premium keeps its original product periods and all platform prices. */
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup {
  height: 365px !important;
  max-height: 365px !important;
}
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup > .powerUp-vip {
  background: linear-gradient(180deg, rgba(34,42,43,.88), rgba(12,20,22,.94)) !important;
  border: 1px solid #59645f !important;
  border-radius: 4px !important;
}
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup > .powerUp-vip > .text {
  color: #e8e6d9 !important;
  font-size: 9.5px !important;
  line-height: 1.45 !important;
}
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup .vip-btn-block {
  top: 83px !important;
  left: 0 !important;
  color: #f0d5a5 !important;
  font-size: 11px !important;
}
html.survival-portrait body .game #vipPopup#vipPopup#vipPopup#vipPopup#vipPopup.popup .vip-btn-block .btn {
  width: 145px !important;
  margin-right: 3px !important;
}

/* Seven-day board follows the selected portrait composition. */
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup {
  height:98% !important; max-height:none !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > .dailyBonusHeroTitle {
  padding-left: 25px !important;
  width: calc(100% - 80px) !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > .dailyBonusHeroTitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  background: url('../img/ui/survival/kit/calendar.webp') center / contain no-repeat;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup .dailyBonusHeroRowTitle {
  color: #e6c48c !important;
  font-size: 12px !important;
  letter-spacing: .02em !important;
  text-shadow: 0 1px #070b0c !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup .specialBonusFrame {
  background: linear-gradient(180deg, #363432, #1e2527 42%, #151c1e) !important;
  border: 1px solid #79694e !important;
  box-shadow: inset 0 1px rgba(238,205,158,.26), inset 0 -2px #0c1113 !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup .dailyBonusHeroDay.selected .specialBonusFrame {
  border-color: #f5b45b !important;
  box-shadow: inset 0 0 0 1px #bd7731, 0 0 8px rgba(248,166,64,.72) !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > .dailyBonusHeroPass {
  background: linear-gradient(130deg, #483c2c, #242729 56%, #3b3329) !important;
  border: 1px solid #b89461 !important;
  box-shadow: inset 0 1px rgba(255,219,157,.34), 0 2px 5px #0a0e0e !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > #dailyBonusHero-claim-btn {
  background: transparent url('../img/ui/survival/kit/button_primary.webp') center / 100% 100% no-repeat !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
html.survival-portrait body .game #dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero#dailyBonusHero.popup > #dailyBonusHero-vip-btn {
  background: transparent url('../img/ui/survival/kit/button_secondary.webp') center / 100% 100% no-repeat !important;
  border: 1px solid transparent !important;
}

/* Existing settings controls keep their IDs and language handlers. */
html.survival-portrait body .game #error#error#error#error#error#error.popup:has(.game-settings-popup) {
  background-color: #10191b !important;
  background-image: linear-gradient(155deg, #30302b, #172023 32%, #0e181b) !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  border: 1px solid #a47d4e !important;
  box-shadow: inset 0 0 0 2px #0a1113, inset 0 0 0 3px #705438, 0 6px 18px #030607 !important;
}
html.survival-portrait body .game #error#error#error#error#error#error.popup:has(.game-settings-popup) > .text {
  background-color: #152023 !important;
  background-image: linear-gradient(180deg, #26302d, #111d20 80%) !important;
  border: 1px solid #706b57 !important;
}
html.survival-portrait body .game #error#error#error#error#error#error.popup:has(.game-settings-popup) .game-settings-popup > .btn,
html.survival-portrait body .game #error#error#error#error#error#error.popup:has(.game-settings-popup) .game-settings-lang-btns > .btn {
  background: transparent url('../img/ui/survival/kit/button_secondary.webp') center / 100% 100% no-repeat !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html.survival-portrait body .game #error#error#error#error#error#error.popup:has(.game-settings-popup) .game-settings-popup > .btn:first-child,
html.survival-portrait body .game #error#error#error#error#error#error.popup:has(.game-settings-popup) .game-settings-lang-btns > .btn.active {
  background: transparent url('../img/ui/survival/kit/button_primary.webp') center / 100% 100% no-repeat !important;
  border-color: transparent !important;
  color: #132023 !important;
}

/* Ticket exchange uses the current server-built groups and original click targets. */
html.survival-portrait body .game #specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents.popup.eventTicketExchangeMode {
  background-color: #12191c !important;
  background-image: linear-gradient(175deg, #31312a, #182125 28%, #10191c) !important;
  border: 1px solid #a47b4c !important;
  box-shadow: inset 0 0 0 2px #0a1214, inset 0 0 0 3px #664a30, 0 5px 14px #030607, 0 0 0 500px rgba(2,6,8,.75) !important;
}
html.survival-portrait body .game #specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents.eventTicketExchangeMode > .choice.eventTicketExchangeChoice {
  bottom: 54px !important;
  background: #10191c !important;
  border-color: #746b57 !important;
  scrollbar-color: #a7804e #172124 !important;
  scrollbar-width: thin !important;
}
html.survival-portrait body .game #specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents.eventTicketExchangeMode > .choice.eventTicketExchangeChoice::-webkit-scrollbar {
  width: 5px;
}
html.survival-portrait body .game #specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents.eventTicketExchangeMode > .choice.eventTicketExchangeChoice::-webkit-scrollbar-thumb {
  background: #a7804e;
  border-radius: 3px;
}
html.survival-portrait body .game #specialEvents#specialEvents#specialEvents.eventTicketExchangeMode .eventTicketExchangeRow .specialBonusFrame {
  background: linear-gradient(160deg, #38403d, #1b282c 62%, #10191c) !important;
  border-color: #86714f !important;
  box-shadow: inset 0 1px rgba(245,207,151,.27), 0 2px 4px #0b1113 !important;
}
html.survival-portrait body .game #specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents#specialEvents.eventTicketExchangeMode > .specialInfo {
  top: auto !important;
  bottom: 17px !important;
  height: 20px !important;
  background: linear-gradient(90deg, transparent, #1b2425 12%, #1b2425 88%, transparent) !important;
  color: #e4dbc9 !important;
}
