
#content-container {
  margin-bottom: 3em;
}

#character_summary {
  padding: 60px 20px 30px 20px;
  background-image: url('/upload/asset/background/단풍나무언덕.png');
  border-radius: 1em;
  margin: 1em 0;
  background-size: cover;
  background-position: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

#character_summary::after {
  border-radius: 1em;
  content: '';
  position: absolute;
  background: black;
  z-index: -1;
  inset: 0;
  opacity: 0.7;
}

#character_summary.info_container {
  background-color: rgb(67, 78, 85);
  border: 1px solid rgb(100, 120, 129);
  box-shadow: 0px 0px 0px 1px rgb(40, 47, 55);
  font-size: 12px;
}

#character_summary .img_character {
  height: 130px;
  pointer-events: none;
  scale: 3;
  object-position: 1px -5px;
}

.character_pill {
  width: auto;
  margin-right: 5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.character_world_icon {
  vertical-align: text-top;
  width: 1em;
  height: 1em;
  margin-right: 3px;
}

#character_summary .history_card {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.character_detail {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--card-bg) !important;
  box-shadow: 0 4px 16px var(--shadow-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.character_tabs {
  position: sticky;
  position: -webkit-sticky;
  top: 60px;
  z-index: 2;
}

.card-tabs {
  display: flex;
  margin-bottom: 1em;
  padding: 0 5px;
  gap: 5px;
}

.card-tabs .btn_tab {
  padding: 10px 20px 10px 20px;
  border: none;
  text-align: center;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}

.card-tabs .btn_tab.active {
  border-bottom: 3px solid coral;
  font-weight: bold;
}

.card-tabs .btn_tab:hover {
  border-bottom: 3px solid rgb(153, 153, 153);
  margin-bottom: -1px;
}

.card-tabs .btn_tab.active:hover {
  border-bottom: 3px solid coral;
}

#detail_equipment .img_character,
#detail_stat .img_character {
  width: 96px;
  height: 96px;
  pointer-events: none;
  object-position: 1px -5px;
}

#detail_equipment .img_character.character_zoom,
#detail_stat .img_character.character_zoom {
  scale: 3;
  object-position: 1px -5px;
  pointer-events: none;
}

#coordi_equip {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
}

#equipment_items {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
}

.item-card {
  display: grid;
  align-items: center;
  grid-template-columns: 44px 1fr;
  gap: 0.5em;
  border-radius: 1em;
  border: 1px solid var(--card-border);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.5em;
}

.item-card.legendary {
  background-color: rgba(40, 180, 0, 0.03);
  border: 1px solid rgba(40, 180, 0, 0.25);
}

.item-card.unique {
  background-color: rgba(255, 170, 0, 0.03);
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.item-card.epic {
  background-color: rgba(153, 102, 255, 0.03);
  border: 1px solid rgba(153, 102, 255, 0.25);
}

.item-card.rare {
  background-color: rgba(55, 225, 255, 0.03);
  border: 1px solid rgba(55, 225, 255, 0.25);
}

.item-card.star_shine {
  background-image: url('/upload/asset/item/star_23.gif');
}

.item-card .item-icon-box {
  position: relative;
  padding: 2px;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
}


.item-card img.item-icon-img {
  position: absolute;
  image-rendering: pixelated;
  max-width: 45px;
  max-height: 45px;
}

.item-card img.item-icon-prism,
.item-card img.item-icon-ring-lv {
  position: absolute;
  left: 6px;
  bottom: 7px;
  image-rendering: pixelated;
}

.item-card img.item-icon-label {
  position: absolute;
  right: 6px;
  bottom: 6px;
  image-rendering: pixelated;
}

.item-card .item-description {
  text-align: left;
  line-height: 1.25em;
}

.item-card .item-description .item-category {
  color: var(--text-secondary);
  font-size: 0.8em;
}

.item-card .item-description .item-option img {
  vertical-align: text-top;
}

.item-card .item-description .item-option {
  color: var(--text-secondary);
  font-size: 10px;
}

.item-card .item-description .item-prism {
  color: rgb(153, 102, 255);
  font-size: 0.8em;
}

.item-card .item-description .item-potential {
  font-size: 0.8em;
}

.item-card .item-description .item-potential.rare {
  color: rgb(55, 225, 255);
}

.item-card .item-description .item-potential.epic {
  color: rgb(153, 102, 255);
}

.item-card .item-description .item-potential.unique {
  color: rgb(255, 170, 0);
}

.item-card .item-description .item-potential.legendary {
  color: rgb(40, 180, 0);
}


.info_container {
  background-color: rgb(67, 78, 85);
  border: 1px solid rgb(100, 120, 129);
  box-shadow: 0px 0px 0px 1px rgb(40, 47, 55);
  font-size: 12px;
}

.hyper_preset_wrap {
  display: flex;
  justify-content: space-between;
  border-radius: 2em;
  background-color: rgb(99, 111, 124);
  border-bottom: 1px solid rgb(164, 173, 181);
  padding: 4px;
  color: rgb(178, 190, 201);
  text-shadow: 1px 1px 2px rgb(51, 51, 51);
}

.btn_hyper_preset {
  border-radius: 0.5em;
  background-color: rgb(129, 142, 154);
  border: 2px solid rgb(76, 85, 96);
  box-shadow: none;
}

.btn_hyper_preset.active {
  background-color: rgb(68, 79, 89);
  box-shadow: 0 0 2px 2px rgb(255 255 255);
}

.hyper_point_wrap {
  display: flex;
  justify-content: space-between;
  border-radius: 2em;
  background-color: rgb(42, 48, 55);
  border-bottom: 1px solid rgb(105, 122, 131);
  padding: 7px;
  color: rgb(167, 189, 197);
}

.hyper_point_wrap.w-fit {
  width: fit-content;
}

.ability_card {
  background-color: rgb(238, 238, 238);
  border: 1px solid rgb(255, 255, 255);
  box-shadow: 0px 1px 0px 1px rgba(46, 53, 61, .4);
  color: white;
}

.ability_preset_wrap {
  display: flex;
  justify-content: space-between;
  border-radius: 2em;
  background-color: rgb(189, 197, 202);
  border-top: 1px solid rgb(165, 173, 181);
  padding: 4px;
  color: white;
  text-shadow: 1px 1px 2px rgb(51, 51, 51);
}

.btn_ability_preset {
  border-radius: 0.5em;
  background-color: rgb(153, 163, 171);
  border: 2px solid rgb(143, 154, 163);
  box-shadow: none;
}

.btn_ability_preset.active {
  background-color: rgb(116, 128, 142);
  box-shadow: 0 0 2px 2px rgb(255 255 255);
}

.ability_grade_card {
  border: 2px solid rgba(255, 255, 255, .3);
  border-bottom: 2px solid rgba(0, 0, 0, .4);
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, .4);
  padding: 0.5em 1em;
  margin-bottom: 7px;
  border-radius: 8px;
  color: white;
  width: 100%;
  font-size: 1.5em;
}

.ability_grade_card.rare {
  background: linear-gradient(rgb(54, 184, 208) 66%, rgb(45, 151, 170));
}

.ability_grade_card.epic {
  background: linear-gradient(rgb(127, 102, 211) 66%, rgb(100, 80, 160));
}

.ability_grade_card.unique {
  background: linear-gradient(rgb(255, 168, 0) 66%, rgb(210, 140, 0));
}

.ability_grade_card.legendary {
  background: linear-gradient(rgb(156, 189, 0) 66%, rgb(130, 160, 0));
}

.ability_value_card {
  padding: 3px 15px;
  margin: 3px 0;
  border-radius: 4px;
  text-align: center;
  color: white;
  width: 100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ability_value_card.rare {
  background-color: rgb(54, 184, 208);
}
.ability_value_card.epic {
  background-color: rgb(127, 102, 211);
}
.ability_value_card.unique {
  background-color: rgb(255, 168, 0);
}
.ability_value_card.legendary {
  background-color: rgb(156, 189, 0);
}


.piece_price {
  width: 50px;
  height: 1.5em;
  text-align: center;
  margin-right: 2px;
  border: 1px solid var(--card-border);
}


.union_grade_wrap {
  justify-content: flex-end;
  align-items: center;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(rgb(38, 43, 49) 30%, rgb(50, 66, 74));
  border: 2px solid rgb(88, 115, 131);
  box-shadow: 0 0 0 2px rgb(34, 41, 49);
  color: rgb(244, 244, 244);
  text-align: center;
}

.union_grade_wrap .union_info_wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.union_grade_wrap .union_info_wrap .union_grade_text {
  width: 100%;
  max-width: 280px;
  height: 58px;
  object-fit: cover;
  object-position: top;
}


.union_wrap {
  border-radius: 10px;
  background: linear-gradient(rgb(38, 43, 49) 70%, rgb(60, 100, 120));
  border: 2px solid rgb(94, 128, 147);
  box-shadow: 0 0 0 2px rgb(211, 179, 139);
  padding: 5px;
}

.union_wrap .union_champion_slot {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  background: linear-gradient(rgb(44, 48, 53) 25%, rgb(45, 86, 104), rgb(44, 66, 78));
  border: 4px solid rgb(108, 130, 149);
  box-shadow: 0 1px 0 1px black;
  width: 100%;
  height: 210px;
  padding: 0;
  overflow: hidden;
}

.union_wrap .union_champion_slot .fa {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 70px;
  color: white;
  text-shadow: 0 0 20px rgb(82, 139, 158);
}

.union_wrap .union_champion_slot .fa-plus {
  font-size: 30px;
}

.union_wrap .union_champion_slot.empty_slot {
  background: linear-gradient(rgb(54, 61, 67), rgb(44, 48, 53));
  border: 4px solid rgb(97, 110, 115);
}

.union_wrap .union_champion_slot.empty_slot .fa-lock{
  color: rgb(96, 102, 106);
  text-shadow: none;
}

.union_wrap .union_champion_slot .union_champion_statue {
  position: absolute;
  height: 140px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.union_wrap .union_champion_slot .union_champion_grade {
  position: absolute;
  height: 20px;
  left: 3px;
  top: 5px;
}

.union_wrap .union_champion_slot .union_champion_sign {
  position: absolute;
  height: 32px;
  top: 0;
}

.union_wrap .union_champion_slot .union_champion_sign.b {
  right: 75px;
}

.union_wrap .union_champion_slot .union_champion_sign.a {
  right: 57px;
}

.union_wrap .union_champion_slot .union_champion_sign.s {
  right: 39px;
}

.union_wrap .union_champion_slot .union_champion_sign.ss {
  right: 21px;
}

.union_wrap .union_champion_slot .union_champion_sign.sss {
  right: 3px;
}

.union_wrap .union_champion_slot .union_champion_character {
  position: absolute;
  height: 84px;
  left: 50%;
  transform: translateX(-10px);
  bottom: 90px;
  pointer-events: none;
  scale: 4;
  object-position: 1px 0;
}

.union_wrap .union_champion_slot .union_champion_info {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: 0;
  padding: 3px;
  line-height: 1.25em;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.union_wrap .union_champion_slot .union_champion_info .union_champion_level {
  color: rgb(236, 201, 167);
}

.union_wrap .union_champion_slot .union_champion_info .union_champion_nickname {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.union_wrap .union_champion_slot .union_champion_info .union_champion_nickname:hover {
  text-decoration: underline;
}

.union_wrap .union_champion_slot .union_champion_info .union_champion_job {
  color: white;
  font-size: 0.85em;
}

.union_wrap .union_artifact_slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(rgb(44, 48, 53) 25%, rgb(45, 86, 104), rgb(44, 66, 78));
  border: 4px solid rgb(108, 130, 149);
  box-shadow: 0 1px 0 1px black;
  width: 100%;
  height: 130px;
  padding: 0;
}

.union_wrap .union_artifact_slot.bright_slot {
  background: linear-gradient(rgb(44, 48, 53), rgb(62, 67, 167), rgb(98, 82, 217));
  border: 4px solid rgb(159, 181, 223);
}

.union_wrap .union_artifact_slot.empty_slot {
  background: linear-gradient(rgb(54, 61, 67), rgb(44, 48, 53));
  border: 4px solid rgb(97, 110, 115);
}

.union_wrap .union_artifact_slot .union_artifact_grade {
  display: flex;
}

.union_wrap .union_artifact_slot .union_artifact_grade img {
  margin: 0 -2px;
  height: 16px;
}

.union_wrap .union_artifact_slot .union_artifact_statue {
  height: 80px;
}

.union_wrap .union_artifact_slot.bright_slot .union_artifact_statue {
  filter: drop-shadow(0 0 20px rgb(171, 121, 255));
}

.union_wrap .union_artifact_slot.empty_slot .union_artifact_statue {
  filter: grayscale(1) opacity(0.8);
}

.union_wrap .union_artifact_slot.empty_slot .fa-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  color: rgba(96, 102, 106, .8);
}

.union_wrap .union_artifact_slot .union_artifact_slot_effect {
  text-align: left;
  color: white;
  margin: 0 0.5rem;
  padding-top: 20px;
}


.union_sub_title {
  color: rgb(236, 201, 167);
  font-weight: bold;
  font-size: 1.25em;
  text-shadow: 2px 2px black;
}



.union-grid {
    display: grid;
    grid-template-columns: repeat(22, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 0;
    background-color: #1a202c;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    max-width: 660px;
    aspect-ratio: 22 / 20;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    border: 2px solid #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.grid-cell {
    background-color: #e2e8f0;
    border: 1px solid rgb(73, 79, 87);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 1;
    min-height: 0;
    min-width: 0;
}

.grid-cell:not(.occupied) {
    transition: all 0.2s ease;
}

.grid-cell.occupied {
    background-color: rgb(176, 137, 102);
    border: none !important;
    box-shadow: 0 0 6px 7px rgb(187, 153, 119) inset;
    font-size: 0 !important;
}

.block-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.grid-cell[class*="block-"] { 
    color: white; 
}

.union-grid .grid-cell.occupied.block-hover {
    background-color: coral !important;
    box-shadow: none !important;
    transform: scale(1.25);
    z-index: 100;
    border: none !important;
}

.region-label,
.inner-stat-text {
    position: absolute;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.union-grid .grid-cell.region-outer:not(.occupied) {
    background-color: rgb(42, 51, 59);
}

.union-grid .grid-cell.region-inner:not(.occupied) {
    background-color: rgb(51, 62, 74);
}


.union-grid .grid-cell.occupied.block-border-top { border-top: 1px solid rgb(170, 136, 102) !important; }
.union-grid .grid-cell.occupied.block-border-right { border-right: 1px solid rgb(170, 136, 102) !important; }
.union-grid .grid-cell.occupied.block-border-bottom { border-bottom: 1px solid rgb(170, 136, 102) !important; }
.union-grid .grid-cell.occupied.block-border-left { border-left: 1px solid rgb(170, 136, 102) !important; }

.union-grid .grid-cell.occupied.block-hover.block-border-top { border-top: none !important; }
.union-grid .grid-cell.occupied.block-hover.block-border-right { border-right: none !important; }
.union-grid .grid-cell.occupied.block-hover.block-border-bottom { border-bottom: none !important; }
.union-grid .grid-cell.occupied.block-hover.block-border-left { border-left: none !important; }

.region-border-top,
.grid-cell.occupied.region-border-top,
.union-grid .grid-cell.occupied.block-border-top.region-border-top,
.union-grid .grid-cell.occupied.block-hover.block-border-top.region-border-top { border-top: 1px solid rgb(177, 179, 183) !important; }
.region-border-right,
.grid-cell.occupied.region-border-right,
.union-grid .grid-cell.occupied.block-border-right.region-border-right,
.union-grid .grid-cell.occupied.block-hover.block-border-right.region-border-right { border-right: 1px solid rgb(177, 179, 183) !important; }
.region-border-bottom,
.grid-cell.occupied.region-border-bottom,
.union-grid .grid-cell.occupied.block-border-bottom.region-border-bottom,
.union-grid .grid-cell.occupied.block-hover.block-border-bottom.region-border-bottom { border-bottom: 1px solid rgb(177, 179, 183) !important; }
.region-border-left,
.grid-cell.occupied.region-border-left,
.union-grid .grid-cell.occupied.block-border-left.region-border-left,
.union-grid .grid-cell.occupied.block-hover.block-border-left.region-border-left { border-left: 1px solid rgb(177, 179, 183) !important; }


.union_character_card {
  display: flex;
  gap: 2px;
  border-radius: 5px;
  background: linear-gradient(rgb(38, 43, 49), rgb(60, 100, 120));
  border: 2px solid rgb(94, 128, 147);
  box-shadow: 0 0 0 2px rgb(211, 179, 139);
  padding: 5px;
  text-align: left;
  align-items: center;
}

.union_character_card.magician {
  background: linear-gradient(rgb(62, 87, 118), rgb(80, 142, 173));
  border: 2px solid rgb(72, 157, 206);
}

.union_character_card.worrior {
  background: linear-gradient(rgb(118, 62, 62), rgb(173, 80, 80));
  border: 2px solid rgb(206, 72, 72);
}

.union_character_card.archor {
  background: linear-gradient(rgb(66, 118, 62), rgb(98, 173, 80));
  border: 2px solid rgb(72, 206, 74);
}

.union_character_card.thief {
  background: linear-gradient(rgb(104, 62, 118), rgb(157, 80, 173));
  border: 2px solid rgb(206, 72, 195);
}

.union_character_card.priate {
  background: linear-gradient(rgb(88, 88, 88), rgb(111, 111, 111));
  border: 2px solid rgb(155, 155, 155);
}

.union_character_card.hybrid {
  background: linear-gradient(rgb(104, 62, 118), rgb(111, 111, 111));
  border: 2px solid rgb(194, 163, 183);
}

.union_character_card.maple_m {
  background: linear-gradient(rgb(118, 91, 62), rgb(173, 122, 80));
  border: 2px solid rgb(206, 130, 72);
}

.union_character_card .union_character_rank {
  width: 40px;
  text-align: center;
}

.union_character_card .union_character_rank img {
  max-width: 40px;
  max-height: 20px;
}

.union_character_card .union_character_info {
  line-height: 1em;
}

.union_character_card .union_character_level {
  font-size: 0.8em;
}

.union_character_card .union_character_class img {
  vertical-align: text-top;
  height: 1em;
}


.coral_card {
  background-color: rgba(255, 127, 80, .1);
  border-radius: 0.5em;
}

.coral_card.border-left {
  border-left: 3px solid coral;
}

.coral_card.hover {
  cursor: pointer;
}

.coral_card.hover:hover {
  background-color: rgba(255, 127, 80, .2);
}

.blue_card {
  background-color: rgba(0, 0, 255, 0.1);
  border-radius: 0.5em;
}

.purple_card {
  background-color: rgba(255, 0, 255, 0.1);
  border-radius: 0.5em;
}

.gray_card {
  background-color: rgba(128, 128, 128, .1);
  border-radius: 0.5em;
}

.white_card {
  background-color: rgba(255, 255, 255, .1);
  border-radius: 0.5em;
}

.glass_card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-align: center;
}

.container-padding {
  padding-top: 60px;
}

@media (max-width: 480px) {
  .container-padding {
    padding-top: 50px;
  }

  .hyper_point_wrap.w-fit {
    width: 100%;
  }
}


@media (max-width: 576px) {
  #character_summary .character_detail_info {
    margin-top: 2.5rem;
    text-align: center;
  }

  #character_summary .character_detail_info .d-flex {
    justify-content: center;
  }

  #character_summary .history_card .history_summary {
    text-align: center;
  }

  #coordi_equip {
    grid-template-columns: 1fr;
  }

  #equipment_items {
    grid-template-columns: 1fr;
  }

  .union_wrap .union_artifact_slot .union_artifact_statue {
    height: 60px;
  }

  .region-label,
  .inner-stat-text {
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  #item_profile {
    left: 50%!important;
    top: 50%!important;
    transform: translate(-50%, -45%)!important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .union_wrap .union_artifact_slot .union_artifact_statue {
    height: 70px;
    max-width: 75px;
  }
}

@media (max-width: 1200px) {
  .character_tabs {
    top: 50px;
  }
}

@media (min-width: 992px) {
  .col-xxs-6.col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}