@charset "UTF-8";

/* assets/styles/app.scss */
:root {
  --font-main: "Ringbearer", serif;
  --black: rgb(14, 20, 27);
  --blackSecond: rgb(36, 51, 66);
  --blackOutline: rgb(54, 64, 73);
  --white: rgb(241, 219, 162);
  --golden: rgb(232, 196, 104);
  --overlay-bg: rgba(255, 255, 255, 0.8);
  --map-bg: "../images/texture/textureMetal.jpg";
  --green: rgba(22, 163, 74, 0.2);
  --green-outline: rgba(22, 163, 74, 0.4);
  --green-text: rgb(74, 222, 128);
  --red: rgba(220, 38, 38, 0.2);
  --red-outline: rgba(220, 38, 38, 0.4);
  --red-text: rgb(248, 113, 113);
  --grey: rgba(75, 85, 99, 0.2);
  --grey-outline: rgba(75, 85, 99, 0.4);
  --grey-text: rgb(156, 163, 175);
  --blue: rgba(37, 99, 235, 0.2);
  --blue-outline: rgba(37, 99, 235, 0.4);
  --blue-text: rgb(96, 165, 250);
  --purple: rgba(139, 92, 246, 0.2);
  --purple-outline: rgba(139, 92, 246, 0.5);
  --purple-text: rgb(167, 139, 250);
}
body.cyberpunk_2055 {
  --font-main: "Play", serif;
  --black: #1B1B2A;
  --blackSecond: #0A0A0A;
  --blackOutline: #2D2D2D;
  --white: #F3E600;
  --golden: #E0C600;
  --green: rgba(22, 163, 74, 0.2);
  --green-outline: rgba(22, 163, 74, 0.4);
  --green-text: rgb(74, 222, 128);
  --red: rgba(255, 0, 60, 0.2);
  --red-outline: rgba(198, 0, 43, 0.4);
  --red-text: #FF003C;
  --grey: rgba(27, 27, 42, 0.2);
  --grey-outline: rgba(10, 10, 10, 0.4);
  --grey-text: #2D2D2D;
  --blue: rgba(4, 218, 246, 0.2);
  --blue-outline: rgba(0, 169, 198, 0.4);
  --blue-text: #04DAF6;
  --purple: rgba(167, 139, 250, 0.2);
  --purple-outline: rgba(139, 92, 246, 0.5);
  --purple-text: #A89BFF;
}
body.baltic_wars {
  --font-main: "Ringbearer", serif;
  --black: #0F1A22;
  --blackSecond: #1C2A33;
  --blackOutline: #2F3E46;
  --white: #E6D8B6;
  --golden: #C6A85A;
  --overlay-bg: rgba(230, 216, 182, 0.85);
  --green: rgba(27, 94, 32, 0.25);
  --green-outline: rgba(46, 125, 50, 0.45);
  --green-text: #81C784;
  --red: rgba(123, 31, 31, 0.25);
  --red-outline: rgba(136, 14, 14, 0.5);
  --red-text: #E57373;
  --grey: rgba(84, 110, 122, 0.25);
  --grey-outline: rgba(69, 90, 100, 0.45);
  --grey-text: #B0BEC5;
  --blue: rgba(21, 101, 192, 0.25);
  --blue-outline: rgba(13, 71, 161, 0.45);
  --blue-text: #64B5F6;
  --purple: rgba(74, 20, 140, 0.25);
  --purple-outline: rgba(49, 27, 146, 0.5);
  --purple-text: #B39DDB;
}
body.ascendance {
  --font-main: "Inquisitor", serif;
  --black: #161D14;
  --blackSecond: #232A1F;
  --blackOutline: #484838;
  --white: #E1DDCC;
  --golden: #E1CF85;
  --overlay-bg: rgba(225, 221, 204, 0.85);
  --green: rgba(48, 92, 42, 0.25);
  --green-outline: rgba(91, 126, 70, 0.50);
  --green-text: #A8C982;
  --red: rgba(105, 48, 38, 0.25);
  --red-outline: rgba(145, 67, 49, 0.50);
  --red-text: #D98B72;
  --grey: rgba(92, 93, 76, 0.25);
  --grey-outline: rgba(114, 115, 98, 0.50);
  --grey-text: #C3C1AE;
  --blue: rgba(52, 75, 78, 0.25);
  --blue-outline: rgba(76, 103, 104, 0.50);
  --blue-text: #9BB9B5;
  --purple: rgba(77, 54, 75, 0.25);
  --purple-outline: rgba(108, 76, 101, 0.50);
  --purple-text: #C0A0B7;
}
@font-face {
  font-family: "Ringbearer";
  src: url("./RingbearerMedium-C4ESHT6Z.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Play";
  src: url("./Play-Regular-X7QSZWRY.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inquisitor";
  src: url("./Inquisitor-27IGXYKL.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Inquisitor";
  src: url("./Inquisitor Bold-AW5WSS4Z.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Inquisitor";
  src: url("./Inquisitor Italic-UMDNWRND.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Inquisitor";
  src: url("./Inquisitor Bold Italic-TQ3WKH5X.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}
body {
  font-family: var(--font-main);
  background-color: var(--black);
  margin: 0;
  padding: 0;
}
a {
  color: var(--golden);
  text-decoration: none;
}
a:hover {
  color: var(--white);
}
.container {
  color: var(--white);
  border: 2px solid var(--blackOutline);
  background-color: var(--blackSecond);
  padding: 0.6rem;
  border-radius: 1rem;
}
body.cyberpunk_2055 .container {
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
}
body.ascendance .container,
body.ascendance .map-list {
  border-style: solid;
  border-width: 10px;
  border-image-source: url("./menubg1-FFNLNSSZ.png");
  border-image-slice: 32 32 32 32 fill;
  border-image-repeat: stretch;
  margin: 0;
  background-color: transparent;
}
body.ascendance .container.header {
  border-width: 50px 300px;
  border-image-source: url("./menubg2-C3ZDGKHE.png");
  border-image-slice: 50 300 50 300 fill;
  padding: 0 6rem;
  color: var(--black);
}
body.ascendance .container.map-container {
  border-width: 160px 40px 105px;
  border-image-source: url("./backgroundmenu-75SUEPLS.png");
  border-image-slice: 160 40 105 40 fill;
}
body.ascendance .map-list {
  border-width: 45px 45px 90px;
  border-image-source: url("./menubg3-5RKT3CYM.png");
  border-image-slice: 80 70 206 70 fill;
  gap: 0.5rem;
}
body.ascendance .map-list-faction {
  border-width: 4px;
  border-image-source: url("./menubg4-MWO47OFB.png");
  border-image-slice: 10 10 10 10 fill;
  border-color: transparent;
  border-radius: 0;
}
body.ascendance .army {
  position: relative;
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: url("./borderarmy-IDXTJC7B.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  overflow: visible;
}
body.ascendance .army-icon {
  position: absolute;
  inset: 18%;
  z-index: 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 1920px) {
  body.ascendance .container.header {
    border-width: 70px 270px 56px;
    padding: 0 5.5rem;
  }
  body.ascendance .container.map-container {
    border-width: 150px 38px 100px;
  }
  body.ascendance .map-list {
    border-width: 42px 42px 84px;
  }
}
@media (max-width: 1680px) {
  body.ascendance .container.header {
    border-width: 65px 240px 52px;
    padding: 0 5rem;
  }
  body.ascendance .container.map-container {
    border-width: 140px 35px 92px;
  }
  body.ascendance .map-list {
    border-width: 39px 39px 78px;
  }
}
@media (max-width: 1440px) {
  body.ascendance .container.header {
    border-width: 58px 205px 47px;
    padding: 0 4.25rem;
  }
  body.ascendance .container.map-container {
    border-width: 125px 31px 82px;
  }
  body.ascendance .map-list {
    border-width: 35px 35px 70px;
  }
}
@media (max-width: 1280px) {
  body.ascendance .container {
    border-width: 9px;
  }
  body.ascendance .container.header {
    border-width: 52px 175px 42px;
    padding: 0 3.5rem;
  }
  body.ascendance .container.map-container {
    border-width: 110px 28px 72px;
  }
  body.ascendance .map-list {
    border-width: 31px 31px 62px;
  }
}
@media (max-width: 1152px) {
  body.ascendance .container {
    border-width: 8px;
  }
  body.ascendance .container.header {
    border-width: 46px 150px 38px;
    padding: 0 3rem;
  }
  body.ascendance .container.map-container {
    border-width: 95px 24px 64px;
  }
  body.ascendance .map-list {
    border-width: 28px 28px 56px;
  }
}
@media (max-width: 1024px) {
  body.ascendance .container.header {
    border-width: 41px 125px 34px;
    padding: 0 2.5rem;
  }
  body.ascendance .container.map-container {
    border-width: 84px 21px 56px;
  }
  body.ascendance .map-list {
    border-width: 25px 25px 50px;
  }
}
@media (max-width: 900px) {
  body.ascendance .container {
    border-width: 7px;
  }
  body.ascendance .container.header {
    border-width: 36px 100px 30px;
    padding: 0 2rem;
  }
  body.ascendance .container.map-container {
    border-width: 72px 18px 48px;
  }
  body.ascendance .map-list {
    border-width: 22px 22px 44px;
  }
}
@media (max-width: 768px) {
  body.ascendance .container {
    border-width: 6px;
  }
  body.ascendance .container.header {
    border-width: 31px 78px 26px;
    padding: 0 1.5rem;
  }
  body.ascendance .container.map-container {
    border-width: 60px 15px 40px;
  }
  body.ascendance .map-list {
    border-width: 19px 19px 38px;
  }
}
@media (max-width: 640px) {
  body.ascendance .container.header {
    border-width: 27px 60px 23px;
    padding: 0 1.25rem;
  }
  body.ascendance .container.map-container {
    border-width: 50px 13px 34px;
  }
  body.ascendance .map-list {
    border-width: 16px 16px 32px;
  }
}
@media (max-width: 480px) {
  body.ascendance .container {
    border-width: 5px;
  }
  body.ascendance .container.header {
    border-width: 23px 43px 20px;
    padding: 0 0.75rem;
  }
  body.ascendance .container.map-container {
    border-width: 40px 10px 27px;
  }
  body.ascendance .map-list {
    border-width: 13px 13px 26px;
  }
}
@media (max-width: 390px) {
  body.ascendance .container {
    border-width: 4px;
  }
  body.ascendance .container.header {
    border-width: 20px 32px 17px;
    padding: 0 0.5rem;
  }
  body.ascendance .container.map-container {
    border-width: 32px 8px 22px;
  }
  body.ascendance .map-list {
    border-width: 10px 10px 21px;
  }
}
@media (max-width: 320px) {
  body.ascendance .container.header {
    border-width: 17px 24px 15px;
    padding: 0 0.35rem;
  }
  body.ascendance .container.map-container {
    border-width: 26px 7px 18px;
  }
  body.ascendance .map-list {
    border-width: 8px 8px 17px;
  }
}
.interface {
  transition: 0.5s ease-in-out;
  z-index: 3;
}
.interface.hide-left {
  left: -200% !important;
}
.interface.active-left {
  left: 2rem !important;
}
.interface.hide-bottom {
  bottom: -200% !important;
}
.interface.active-bottom {
  bottom: 2rem !important;
}
.interface.hide-top {
  top: -200% !important;
}
.interface.active-top {
  top: 2rem !important;
}
.interface.hide-right {
  right: -200% !important;
}
.interface.active-right {
  right: 2rem !important;
}
.transfert-header-dropdown {
  appearance: none;
  background-color: var(--blackSecond);
  border: 2px solid var(--blackOutline);
  border-radius: 0.75rem;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.transfert-header-dropdown:hover {
  border-color: var(--golden);
  color: var(--golden);
}
.transfert-header-dropdown:focus {
  outline: none;
  border-color: var(--golden);
  box-shadow: 0 0 0 2px rgba(var(--golden), 0.4);
}
.transfert-header-dropdown option {
  background-color: var(--blackSecond);
  color: var(--white);
}
.dropdown {
  appearance: none;
  background-color: var(--blackSecond);
  border: 2px solid var(--blackOutline);
  border-radius: 0.75rem;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.4rem 2rem 0.4rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.dropdown:hover {
  border-color: var(--golden);
  color: var(--golden);
}
.dropdown:focus {
  outline: none;
  border-color: var(--golden);
  box-shadow: 0 0 0 2px rgba(var(--golden), 0.4);
}
.dropdown option {
  background-color: var(--blackSecond);
  color: var(--white);
}
.dropdown-container {
  position: relative;
  display: inline-block;
}
.dropdown-container::after {
  content: "\25bc";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--golden);
  font-size: 0.7rem;
}
.alert {
  color: var(--red-text);
}
.icon {
  width: 25px;
  height: 25px;
  background-size: contain;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
}
.icon.rounded {
  background-color: var(--black);
  border: 1px solid var(--blackOutline);
  border-radius: 50%;
}
.icon.tiny {
  width: 15px;
  height: 15px;
}
.icon.small {
  width: 20px;
  height: 20px;
}
.icon.large {
  width: 50px;
  height: 50px;
}
.icon.fortified {
  background-image: url("./fortified-BJMZJZZD.png");
}
.icon.infanterie {
  background-image: url("./infanterie-NN7QVJ2L.png");
}
.icon.cavalerie {
  background-image: url("./cavalerie-RBNWY7OE.png");
}
.icon.archer {
  background-image: url("./archer-XDB6VWIC.png");
}
.icon.commander {
  background-image: url("./commander-NV446DSB.png");
}
.icon.link {
  background-image: url("./link-XUXDMPNJ.png");
}
.icon.close {
  background-image: url("./close-TUHFLSH2.png");
}
.icon.transfert {
  background-image: url("./transfert-XNUPZNJA.png");
}
.icon.plus {
  background-image: url("./plus-5P6U4HRC.png");
}
.icon.minus {
  background-image: url("./minus-B4ONI6BI.png");
}
.icon.transfert_one {
  background-image: url("./transfert_one-27TUGAEP.png");
}
.icon.transfert_all {
  background-image: url("./transfert_all-3HAAI7NM.png");
}
.icon.arrow_up {
  background-image: url("./arrow_up-P4KCXP3X.png");
}
.icon.money {
  background-image: url("./money-WXAIC5HI.png");
}
.icon.technology {
  background-image: url("./technology-C7RDKISP.png");
}
.icon.edit {
  background-image: url("./edit-KRCNFPXZ.svg");
}
.icon.death {
  background-image: url("./death-ZJMGVEYG.png");
}
.icon.ruler {
  background-image: url("./ruler-NV446DSB.png");
}
.icon.heir {
  background-image: url("./heir-LGM5NZCG.png");
}
body.cyberpunk_2055 .icon.money {
  background-image: url("./cp_money-HDZ3R4PO.png");
}
#army-interface {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 85%;
  min-width: 30%;
}
#troop-interface,
#general-interface,
#building-interface {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
#city-interface {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 85%;
  min-width: 30%;
}
#transfert-interface,
#recrutement-interface {
  position: absolute;
  left: 50%;
  top: 7rem;
  transform: translateX(-50%);
  min-width: 80%;
  max-width: 90%;
  z-index: 4;
}
#technology-interface {
  position: absolute;
  left: 50%;
  top: 7rem;
  transform: translateX(-50%);
  max-width: 90%;
  min-width: 80%;
  max-height: 90%;
  z-index: 4;
}
#recrutement-interface {
  min-width: 0;
  max-width: 30%;
}
.interface > .container {
  position: relative;
}
.interface > .container .close {
  cursor: pointer;
  position: absolute;
  z-index: 1;
  top: -1rem;
  right: -1rem;
}
.button,
button {
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  font-family: var(--font-main);
  border: 1px solid var(--white);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.button:hover:not(.active),
button:hover:not(.active) {
  background: var(--black);
}
.button.small,
button.small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}
.button.smaller,
button.smaller {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}
.button.active,
button.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  border-color: var(--black);
}
body.ascendance .layers-buttons-container .button {
  border-width: 5px;
  border-image-source: url("./ascfiltersbg-DVBBIH46.png");
  border-image-slice: 10 10 10 10 fill;
  border-image-repeat: stretch;
  background-size: contain;
}
body.ascendance .layers-buttons-container .button img {
  filter: none;
}
body.ascendance .layers-buttons-container .button.active {
  background-color: var(--green);
}
.map-list {
  display: flex;
  flex-direction: column;
  text-align: right;
  max-height: 91vh;
  min-width: 20vw;
  overflow: auto;
  border: 2px solid var(--blackOutline);
  background-color: var(--blackSecond);
  padding: 1rem;
  border-radius: 1rem;
}
.map-list-faction {
  color: var(--white);
  border: 2px solid var(--blackOutline);
  background-color: var(--blackSecond);
  padding: 1rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
}
.map-list-faction:hover,
.map-list-faction.selected {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 20%,
      rgba(87, 199, 33, 0.5) 100%);
  padding-right: 1rem;
}
.map-list-faction.ennemy {
  background-color: var(--red);
}
.map-list-faction.ally {
  background-color: var(--green);
}
.map-list-faction.vassal {
  background-color: var(--blue);
}
.map-list-faction.master {
  background-color: var(--purple);
}
.map-list-faction.selected .diplomacy-wrapper {
  visibility: hidden !important;
  pointer-events: none;
}
.map-list-faction .diplomacy-wrapper {
  gap: 0.5rem;
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
.map-list-faction .diplomacy-wrapper.disable {
  visibility: hidden !important;
  pointer-events: none;
}
.map-list-faction .diplomacy-wrapper > div {
  width: 30px;
  height: 30px;
  background-position: right;
  background-size: cover;
}
.map-list-faction .diplomacy-wrapper > div:hover {
  background-position: left;
}
.map-list-faction .diplomacy-wrapper > div.active {
  background-position: center;
}
.map-list-faction .diplomacy-wrapper .diplomacy-war {
  background-image: url("./war-Q5S2G4BJ.png");
}
.map-list-faction .diplomacy-wrapper .diplomacy-ally {
  background-image: url("./ally-YZYYVTK6.png");
}
.map-list-faction .diplomacy-wrapper .diplomacy-vassal {
  background-image: url("./vassal-ZTBDKL6U.png");
}
.map-list-faction:hover .diplomacy-wrapper {
  visibility: visible;
  pointer-events: auto;
}
.map-list-faction .icon {
  max-height: 25px;
  max-width: 25px;
  width: auto;
  height: auto;
}
body.cyberpunk_2055 .map-list,
body.cyberpunk_2055 .map-list-faction {
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
}
@media (max-width: 1024px) {
  .map-list {
    position: fixed;
    right: -150vw;
  }
}
.layers-container {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}
.layers-buttons-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.layers-buttons-container .button,
.layers-buttons-container img {
  width: 25px;
  height: 25px;
}
.layers-buttons-container .button {
  padding: 0.5rem;
}
.layers-buttons-container img {
  filter: invert(1);
}
.layers-buttons-container .button.active img {
  filter: invert(0);
}
.layers-legends {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: fit-content;
}
.layers-legends .legend-item {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
}
.layers-legends .legend-item.active {
  display: flex;
}
.layers-legends .legend-item .legend-color {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  background-color: transparent;
}
.layers-legends .legend-item .legend-text {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--white);
}
.layers-legends .legend-item .legend-tooltip {
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  max-width: 250px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: normal;
}
.layers-legends .legend-item.ally.territorial .legend-color {
  background-color: var(--green);
  border: 1px solid var(--green-outline);
}
.layers-legends .legend-item.ally.territorial .legend-text {
  color: var(--green-text);
}
.layers-legends .legend-item.enemy.territorial .legend-color {
  background-color: var(--red);
  border: 1px solid var(--red-outline);
}
.layers-legends .legend-item.enemy.territorial .legend-text {
  color: var(--red-text);
}
.layers-legends .legend-item.neutral.territorial .legend-color {
  background-color: var(--grey);
  border: 1px solid var(--grey-outline);
}
.layers-legends .legend-item.neutral.territorial .legend-text {
  color: var(--grey-text);
}
.layers-legends .legend-item.vassal.territorial .legend-color {
  background-color: var(--blue);
  border: 1px solid var(--blue-outline);
}
.layers-legends .legend-item.vassal.territorial .legend-text {
  color: var(--blue-text);
}
.layers-legends .legend-item.master.territorial .legend-color {
  background-color: var(--purple);
  border: 1px solid var(--purple-outline);
}
.layers-legends .legend-item.master.territorial .legend-text {
  color: var(--purple-text);
}
.layers-legends .legend-item.terrain .legend-color {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  border: 1px solid #999;
  background-color: var(--legend-color, #ccc);
}
.layers-legends .legend-item.terrain .legend-text {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--white);
}
.layers-legends .legend-item.material.legend-dominant .legend-text {
  color: var(--green-text) !important;
}
@media (max-width: 1024px) {
  .layers-container {
    margin-top: 2rem;
    position: initial;
    order: 2;
  }
}
.armies-wrapper {
  display: none;
}
.armies-wrapper.visible {
  display: flex;
}
.arrow-move {
  display: none;
}
.arrow-move.visible {
  display: block;
}
.arrow-move-confirmed {
  stroke: #0f0;
}
.arrow-move-highlight {
  stroke: var(--golden) !important;
  stroke-width: 8;
  transition: stroke 0.2s;
}
.arrowhead-highlight {
  fill: var(--golden);
  transition: fill 0.2s;
}
.moving-armies-wrapper {
  display: none;
  gap: 0.2rem;
}
.moving-armies-wrapper.visible {
  display: flex;
}
.army {
  width: 35px;
  height: 35px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 2px solid var(--golden);
}
.army-container {
  position: relative;
}
.army-container-infos {
  display: flex;
  border-bottom: 1px solid var(--blackOutline);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  justify-content: space-between;
}
.army-container-buttons .icon {
  cursor: pointer;
  position: absolute;
  z-index: 1;
}
.army-container-buttons-recrut {
  top: -1rem;
  left: -1rem;
}
.army-container-buttons-transfert {
  top: -1rem;
  left: 1rem;
}
.army-container-buttons-close {
  top: -1rem;
  right: -1rem;
}
.army-container-troop,
.army-container-general {
  width: 50px;
  height: 50px;
  position: relative;
  background-size: cover;
  background-position: center;
  border-bottom-right-radius: 0;
}
.army-container-troop-container,
.army-container-general-container {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  gap: 0.5rem;
}
.army-container-troop-container .link,
.army-container-general-container .link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.army-container-troop-life,
.army-container-general-life {
  position: absolute;
  top: 0.2rem;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
  height: 8px;
  border: 1px solid black;
  border-radius: 2px;
}
.army-container-troop-quantity,
.army-container-general-quantity {
  position: absolute;
  bottom: 0;
  right: 0;
  color: var(--black);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1px 5px;
  font-size: 12px;
  border-top-left-radius: 8px;
}
.army-container-troop-icon,
.army-container-general-icon {
  position: absolute;
  bottom: 0;
  left: 3px;
}
.army-container-footer,
.army-infos {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.army-container-footer > div,
.army-infos > div {
  display: flex;
  align-items: center;
}
.unit-container-infos,
.general-container-infos {
  display: flex;
  border-bottom: 1px solid var(--blackOutline);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.unit-container-stats,
.general-container-stats {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
}
.unit-container-stats > *,
.general-container-stats > * {
  grid-column: span 6;
}
.general-container-skills {
  margin-top: 1rem;
}
.general-container-skills .skills-branches {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.general-container-skills .skills-branches .skills-branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.general-container-skills .skills-branches .skills-branch::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #ccc;
  z-index: 0;
}
.general-container-skills .skills-branches .skills-branch .skills-branch-title {
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  z-index: 1;
}
.general-container-skills .skills-branches .skills-branch .skills-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.general-container-skills .skills-branches .skills-branch .skills-list .skill-item {
  position: relative;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  z-index: 1;
  border: 1px solid var(--blackOutline);
  color: var(--black);
  transition: background 0.2s, color 0.2s;
  cursor: not-allowed;
}
.general-container-skills .skills-branches .skills-branch .skills-list .skill-item.active {
  background: var(--green-text);
  color: var(--black);
  font-weight: bold;
  cursor: pointer;
}
.general-container-skills .skills-branches .skills-branch .skills-list .skill-item.active:hover {
  background: var(--green-text);
}
.general-container-skills .skills-branches .skills-branch .skills-list .skill-item.activable {
  background: var(--golden);
  font-weight: bold;
  cursor: pointer;
}
.general-container-skills .skills-branches .skills-branch .skills-list .skill-item.activable:hover {
  background: var(--golden);
}
.transfert-container .transfert-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--blackOutline);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.transfert-container .transfert-content {
  display: flex;
  gap: 1rem;
}
.transfert-container .transfert-content > .container {
  width: 50%;
  height: auto;
}
.transfert-container .transfert-content .transfert-troops {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.transfert-container .transfert-content .transfert-troops-item {
  display: flex;
  gap: 0.5rem;
}
.transfert-container .transfert-content .transfert-troops-item-transfert-one {
  margin-left: auto;
}
.transfert-container .transfert-content .transfert-troops-item-transfert-one,
.transfert-container .transfert-content .transfert-troops-item-transfert-all {
  cursor: pointer;
}
.transfert-container .transfert-content .transfert-troops-general-container {
  position: relative;
}
.transfert-container .transfert-content .transfert-troops-general-container .icon.link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(90deg) translate(-50%, -50%);
}
.transfert-container .transfert-content .transfert-army-target .transfert-troops-item {
  flex-direction: row-reverse;
}
.transfert-container .transfert-content .transfert-army-target .transfert-troops-item .transfert_one,
.transfert-container .transfert-content .transfert-army-target .transfert-troops-item .transfert_all {
  transform: rotate(180deg);
}
.transfert-container .transfert-content .transfert-army-target .transfert-troops-item-transfert-one {
  margin-left: 0;
  margin-right: auto;
}
.faction-information {
  margin: 0 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.faction-information > div {
  gap: 1rem;
  display: flex;
  align-items: center;
  min-width: 100px;
  justify-content: space-between;
}
.city-container .city-container-header-level .close {
  position: relative;
  top: 0;
  right: 0;
}
.city-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(54, 64, 73);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.city-container-header-level {
  display: flex;
  align-items: center;
}
.city-container-header-level .level-up-button {
  cursor: pointer;
}
.city-container-buttons .icon {
  cursor: pointer;
  position: absolute;
  z-index: 1;
}
.city-container-buttons-recrut {
  top: -1rem;
  left: -1rem;
}
.city-container-buttons-transfert {
  top: -1rem;
  left: 1rem;
}
.city-container-buttons-close {
  top: -1rem;
  right: -1rem;
}
.city-container-buildings,
.city-container-fortifications {
  border-bottom: 1px solid rgb(54, 64, 73);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.city-container-buildings .item,
.city-container-fortifications .item {
  width: 50px;
  height: 50px;
  border: 2px solid var(--blackOutline);
  border-radius: 0.6rem;
  position: relative;
  cursor: pointer;
}
.city-container-buildings .item .plus,
.city-container-buildings .item .building,
.city-container-fortifications .item .plus,
.city-container-fortifications .item .building {
  width: 100%;
  height: 100%;
}
.city-container-buildings .item .icon.building,
.city-container-fortifications .item .icon.building {
  border-radius: 0.6rem;
}
.city-container-buildings .item.empty,
.city-container-fortifications .item.empty {
  cursor: pointer;
}
.city-container-buildings .item.empty:hover,
.city-container-fortifications .item.empty:hover {
  border-color: var(--golden);
  box-shadow: 0 0 10px rgba(232, 196, 104, 0.6);
  transform: scale(1.05);
}
.city-container-buildings .item.active,
.city-container-fortifications .item.active {
  border-color: var(--green-outline);
  background-color: var(--green);
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.6);
  transform: scale(1.08);
}
.city-container-buildings .item.active .icon,
.city-container-fortifications .item.active .icon {
  filter: brightness(1.2);
}
.city-container-buildings .item.built,
.city-container-fortifications .item.built {
  border-color: var(--green-outline);
  background-color: var(--green);
}
.city-container-buildings .item.built .icon,
.city-container-fortifications .item.built .icon {
  filter: brightness(1.1);
}
.city-container-buildings .item.pending,
.city-container-fortifications .item.pending {
  border-color: var(--golden);
  background-color: rgba(232, 196, 104, 0.2);
  animation: pulse 5s infinite;
}
.city-container-buildings .item.pending .icon,
.city-container-fortifications .item.pending .icon {
  filter: grayscale(0.2) brightness(1.05);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 5px rgba(232, 196, 104, 0.4);
  }
  50% {
    box-shadow: 0 0 15px rgba(232, 196, 104, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(232, 196, 104, 0.4);
  }
}
.city-container-title {
  padding-bottom: 0.5rem;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.city-container-title-troopCounter {
  display: flex;
  align-items: center;
}
.city-container-troops {
  display: flex;
  gap: 0.5rem;
}
.city-container-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(54, 64, 73);
}
.city-container-footer > * {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.city-container #building-list-interface {
  position: absolute;
  bottom: 0;
  left: 105%;
}
.city-container #building-list-interface .building-list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-height: 300px;
  flex-wrap: wrap;
  width: max-content;
}
.city-container #building-list-interface .building-list-container .item {
  width: 50px;
  height: 50px;
  border: 2px solid var(--blackOutline);
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
}
.city-container #building-list-interface .building-list-container .item .icon {
  width: 100%;
  height: 100%;
}
.city-container #building-list-interface .building-list-container .item:hover {
  border-color: var(--golden);
  box-shadow: 0 0 10px rgba(232, 196, 104, 0.6);
  transform: scale(1.05);
}
.city-container #building-list-interface .building-list-container .item.active {
  border-color: var(--green-outline);
  background-color: var(--green);
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.6);
  transform: scale(1.08);
}
.city-container #building-list-interface .building-list-container .item.active .icon {
  filter: brightness(1.2);
}
.city-container #building-list-interface .building-list-container .building-item {
  position: relative;
}
.city-container #building-list-interface .building-list-container .building-item.disable {
  cursor: auto;
  filter: grayscale(100%);
}
.city-container #building-list-interface .building-list-container .building-item-tier {
  position: absolute;
  top: 5px;
  left: 5px;
}
body.cyberpunk_2055 .item,
body.cyberpunk_2055 .building-item .icon.building {
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.sector-overlay,
.sector-label {
  opacity: 0;
  transition-duration: 0.5s;
  color: black;
  fill: black !important;
  font-size: 2rem;
}
.sector-overlay {
  stroke: #2ECC71;
  stroke-width: 1.5;
  fill: rgba(46, 204, 113, 0.08);
  filter: drop-shadow(0 0 2px rgba(46, 204, 113, 0.7)) drop-shadow(0 0 6px rgba(46, 204, 113, 0.4));
}
.sector-label {
  fill: #fff;
  filter: drop-shadow(0 0 2px rgba(46, 204, 113, 0.7)) drop-shadow(0 0 5px rgba(46, 204, 113, 0.35));
}
.sector {
  transition-duration: 0.5s;
  transform-origin: center;
  transform-box: content-box;
  mix-blend-mode: screen;
}
.sector:hover {
  transform: scale(1.1);
}
.sector:hover ~ .sector-overlay {
  opacity: 100;
}
.sector:hover ~ .sector-label {
  opacity: 100;
}
.building-container {
  max-width: 500px;
}
.building-container-infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgb(54, 64, 73);
}
.building-container-infos-cost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.building-container-description {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.building-container-restriction {
  color: var(--red-text);
}
.recrutement-container-units {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.recrutement-container-units .item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.recrutement-container-units .item .avatar {
  width: 50px;
  height: 50px;
}
.recrutement-container-units .item-actions {
  display: flex;
  align-items: center;
}
.timeline-container {
  margin: 1rem;
}
.timeline-container .timeline-track {
  position: relative;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
  padding: 10px 12px;
}
.timeline-container .timeline-track .timeline-ticks {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.timeline-container .timeline-track .timeline-ticks .tick {
  display: inline-block;
  position: relative;
  font-size: 12px;
  color: white;
  pointer-events: none;
}
.timeline-container .timeline-track .timeline-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 3px solid #2b8df7;
  background: transparent;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: grab;
  touch-action: none;
}
.timeline-container .timeline-track .timeline-handle:active {
  cursor: grabbing;
}
.timeline-container .timeline-value {
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
}
.technology-button {
  position: absolute;
  left: 50%;
  top: 3rem;
  transform: translate(-50%, -50%);
}
.technology-container .tech-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
  border-bottom: 2px solid var(--white);
}
.technology-container .tech-tabs .tech-tab {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.technology-container .tech-tabs .tech-tab.active {
  border-bottom-color: var(--white);
  font-weight: bold;
  background-color: var(--white);
  color: var(--black);
}
.technology-container .tech-tabs-content .tech-tab-content {
  display: none;
}
.technology-container .tech-tabs-content .tech-tab-content.active {
  display: block;
}
.technology-container .tech-tabs-content .tech-tab-content .branches {
  display: flex;
  gap: 2rem;
}
.technology-container .tech-tabs-content .tech-tab-content .branches .branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.technology-container .tech-tabs-content .tech-tab-content .branches .branch .branch-title {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
}
.technology-container .tech-tabs-content .tech-tab-content .branches .branch .technology {
  cursor: pointer;
}
.technology-container .tech-tabs-content .tech-tab-content .branches .branch .technology.locked {
  filter: grayscale(1);
}
.dynasty-container {
  margin: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dynasty-container .family-tree-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%);
  max-height: 90vh;
  max-width: 90vw;
  display: none;
  z-index: 2;
}
.dynasty-container .edit {
  position: absolute;
  top: -13px;
  left: -3px;
  width: 15px;
  cursor: pointer;
}
.family-tree {
  overflow: hidden;
  position: relative;
  padding: 40px 40px 0;
}
.family-tree-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--red-text);
  cursor: pointer;
}
.family-tree .dynasty-name {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: solid 1px;
  position: relative;
}
.family-tree .tree-node-container {
  overflow: hidden;
  padding: 40px 20px;
  border: 1px solid var(--white);
  border-radius: 0.5rem;
}
.family-tree .tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  transition: transform 0.05s linear;
}
.family-tree .tree-node.dragging {
  cursor: grabbing;
}
.family-tree .couple {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 0;
  position: relative;
}
.family-tree .card {
  border: 2px solid #444;
  border-radius: 12px;
  padding: 10px 20px;
  min-width: 140px;
  text-align: center;
  font-weight: 600;
}
.family-tree .connector-horizontal {
  width: 40px;
  height: 2px;
  background: #666;
  position: relative;
}
.family-tree .connector-horizontal::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 35px;
  background: #666;
}
.family-tree .children {
  display: flex;
  gap: 60px;
  margin-top: 30px;
  position: relative;
}
.family-tree .children::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #666;
}
.family-tree .has-parents {
  position: relative;
}
.family-tree .has-parents::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: #666;
}
.family-tree .person,
.family-tree .partner {
  position: relative;
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.family-tree .person-buttons,
.family-tree .partner-buttons {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: 90%;
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}
.family-tree .person .edit,
.family-tree .partner .edit {
  position: initial;
}
.family-tree .person .remove,
.family-tree .partner .remove {
  color: var(--red-text);
  cursor: pointer;
}
.family-tree .person .person-faction-icon,
.family-tree .partner .person-faction-icon {
  position: absolute;
  max-width: 15px;
  max-height: 15px;
  bottom: -6px;
  right: -6px;
}
.family-tree .person .status,
.family-tree .partner .status {
  position: absolute;
  bottom: -6px;
  left: -6px;
}
.family-tree .person .person-age,
.family-tree .partner .person-age {
  position: absolute;
  top: -6px;
  left: -6px;
  font-size: 0.7rem;
  font-weight: 600;
}
.family-tree .person .person-gender,
.family-tree .partner .person-gender {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1.2rem;
}
.dynasty-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.dynasty-modal {
  background: #1e1e1e;
  color: #fff;
  padding: 2rem;
  border-radius: 14px;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: scaleIn 0.2s ease;
}
.dynasty-modal.large {
  max-width: 650px;
  width: 100%;
}
.dynasty-modal h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
}
.dynasty-modal .modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.dynasty-modal .modal-tabs .tab {
  flex: 1;
  padding: 0.6rem;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}
.dynasty-modal .modal-tabs .tab:hover {
  background: #333;
}
.dynasty-modal .modal-tabs .tab.active {
  background: #3a7afe;
  border-color: #3a7afe;
}
.dynasty-modal .tab-content {
  display: none;
}
.dynasty-modal .tab-content.active {
  display: block;
}
.dynasty-modal form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.dynasty-modal label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #aaa;
}
.dynasty-modal input[type=text],
.dynasty-modal input[type=number],
.dynasty-modal select {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.dynasty-modal input[type=text]:focus,
.dynasty-modal input[type=number]:focus,
.dynasty-modal select:focus {
  outline: none;
  border-color: #888;
  background: #303030;
}
.dynasty-modal select {
  cursor: pointer;
}
.dynasty-modal .search-person {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.95rem;
}
.dynasty-modal .search-person:focus {
  outline: none;
  border-color: #888;
}
.dynasty-modal .person-results {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 8px;
  background: #252525;
}
.dynasty-modal .person-results::-webkit-scrollbar {
  width: 6px;
}
.dynasty-modal .person-results::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
.dynasty-modal .person-item {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: 0.2s ease;
}
.dynasty-modal .person-item:hover {
  background: #333;
}
.dynasty-modal .person-item:last-child {
  border-bottom: none;
}
.dynasty-modal .modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.dynasty-modal .modal-actions button {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}
.dynasty-modal .modal-actions button[type=submit] {
  background: #3a7afe;
  color: #fff;
}
.dynasty-modal .modal-actions button[type=submit]:hover {
  background: #2f63d8;
}
.dynasty-modal .modal-actions button.cancel {
  background: #444;
  color: #ddd;
}
.dynasty-modal .modal-actions button.cancel:hover {
  background: #555;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .family-tree {
    padding: 15px 15px 0;
  }
  .dynasty-modal {
    padding: 1.5rem;
  }
  .dynasty-modal.large {
    max-width: 95%;
  }
}
.map {
  display: flex;
  overflow: hidden;
  padding: 1rem;
  gap: 1rem;
  justify-content: center;
}
.map-container {
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.map .svg-container {
  position: relative;
  display: inline-block;
  height: fit-content;
  overflow: hidden;
}
.map .svg-container svg {
  width: 100%;
  height: 100%;
}
.map .svg-container svg ellipse,
.map .svg-container svg circle {
  visibility: hidden;
}
.map .svg-container svg .region {
  transform-origin: center;
  transform-box: fill-box;
  fill: red;
  stroke: black !important;
  stroke-width: 3px;
  position: relative;
  z-index: 1;
}
.map .svg-container svg .region.fog {
  filter: brightness(0.2);
}
.map .svg-container svg .region.hover {
  filter: invert(0.3) !important;
}
.map .svg-container svg .region.added {
  stroke: var(--green) !important;
}
.map .svg-container svg .sea {
  fill: #0f3d99 !important;
  stroke: #1d5d9b !important;
  stroke-width: 2px;
  fill-opacity: 0.9 !important;
  vector-effect: non-scaling-stroke;
}
.map .svg-container svg .river {
  fill: url(#riverGradient) !important;
  stroke: #0f3d99 !important;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill-opacity: 1 !important;
}
@keyframes flow {
  to {
    stroke-dashoffset: -40;
  }
}
.map .svg-container svg .placeholder {
  visibility: hidden;
}
.map .svg-container svg .wasConquered {
  fill: none;
  filter: drop-shadow(0 0 5px red);
  animation: glowPulse 2s infinite alternate;
  pointer-events: none;
  stroke: black;
  stroke-width: 2px;
}
@keyframes glowPulse {
  from {
    filter: drop-shadow(0 0 5px red);
  }
  to {
    filter: drop-shadow(0 0 15px red);
  }
}
.map .svg-container .info-overlay {
  position: absolute;
}
.map .svg-container .info-overlay-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
}
.map .svg-container .info-overlay-wrapper .symbol-wrapper {
  gap: 0.5rem;
  display: none;
}
.map .svg-container .info-overlay-wrapper .symbol-wrapper.visible {
  display: flex;
}
.map .svg-container .info-overlay-wrapper .region-number {
  font-size: 14px;
  color: white;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  display: none;
}
.map .svg-container .info-overlay-wrapper .region-number.visible {
  display: block;
}
.map .svg-container .info-overlay-wrapper .add-buttons-container {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  z-index: 2;
  cursor: pointer;
  display: none;
  gap: 0.5rem;
}
.map .svg-container .info-overlay-wrapper .add-buttons-container.hover {
  display: flex;
}
.map .svg-container .info-overlay-wrapper .add-buttons-container.disable {
  display: none !important;
}
.map .svg-container .info-overlay-wrapper .add-buttons-container > div {
  background: var(--overlay-bg);
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
}
.map .svg-container .info-overlay.river,
.map .svg-container .info-overlay.passage {
  display: none !important;
}
.map .svg-container .info-overlay.sea .add-region {
  display: none !important;
}
.map .svg-container .faction-empire-overlay {
  position: absolute;
  display: none;
  width: clamp(42px, 4vw, 90px);
  aspect-ratio: 1;
  z-index: 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--faction-color)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.85));
}
.map .svg-container .faction-empire-overlay.visible {
  display: block;
}
.map .svg-container .faction-empire-overlay.without-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faction-color);
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid var(--faction-color);
}
.map .svg-container .info-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  bottom: 2rem;
  left: 2rem;
  max-width: 300px;
  z-index: 2;
}
.map .svg-container .info-container .information-title {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.map .svg-container .info-container .information-info-one,
.map .svg-container .info-container .information-info-two,
.map .svg-container .info-container .information-info-three,
.map .svg-container .info-container .information-info-four,
.map .svg-container .info-container .information-info-five {
  font-size: 14px;
}
.map .svg-container #top-left-interface {
  position: absolute;
  right: 2rem;
  top: 2rem;
  z-index: 2;
  display: flex;
  gap: 0;
}
.map .svg-container #top-left-interface .toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 0.6rem;
}
.map .svg-container #top-left-interface .toggle-switch input {
  display: none;
}
.map .svg-container #top-left-interface .toggle-switch .slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: #d1d5db;
  border-radius: 9999px;
  transition: background 0.3s ease;
}
.map .svg-container #top-left-interface .toggle-switch .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.map .svg-container #top-left-interface .toggle-switch input:checked + .slider {
  background: #3b82f6;
}
.map .svg-container #top-left-interface .toggle-switch input:checked + .slider::before {
  transform: translateX(24px);
}
.map .svg-container #top-left-interface .toggle-switch .label-text {
  font-size: 0.9rem;
  user-select: none;
}
.map .svg-container #top-left-interface .sector-back {
  background-image: url("./closebg-TTRTD4EU.png");
  background-size: cover;
  width: 60px;
  height: 61px;
  background-color: transparent;
  border: none;
}
.map .svg-container #top-left-interface .sector-back.hidden {
  display: none;
}
.map .svg-container #confirmInvasion {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: none;
  z-index: 3;
}
.map .svg-container #confirmInvasion.visible {
  display: block;
}
.map #patterContainer {
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}
.draw-buttons-container {
  position: absolute;
  right: 50%;
  bottom: 5px;
  transform: translateX(50%);
}
.draw-buttons-container button {
  padding: 5px;
}
body.cyberpunk_2055 .map .svg-container svg .region {
  stroke: var(--white) !important;
  stroke-width: 6px;
  opacity: 95%;
}
body.baltic_wars .map .svg-container svg .region {
  stroke-width: 1px !important;
}
body.ascendance .map .svg-container .info-container {
  bottom: clamp(2.5rem, 5vw, 6rem);
  left: clamp(0.35rem, 1.7vw, 2rem);
}
body.ascendance .map .svg-container .layers-container {
  top: clamp(3.5rem, 8vw, 10rem);
  left: clamp(0.35rem, 1.7vw, 3rem);
}
body.ascendance .map .svg-container #top-left-interface {
  top: clamp(3.5rem, 8vw, 10rem);
  right: clamp(0.35rem, 1.7vw, 3rem);
}
body.ascendance .map .svg-container svg .region {
  stroke: var(--green-text) !important;
  stroke-width: 4px !important;
  fill-opacity: 0.8 !important;
}
body.ascendance .map .svg-container #backgroundMap {
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
  -webkit-mask-composite: source-in;
}
@media (max-width: 1024px) {
  .map {
    display: block;
  }
  .map .svg-container {
    display: flex;
    flex-direction: column;
  }
  .map .svg-container .toggle-switch {
    top: 0;
    right: 0;
  }
}
.header {
  color: var(--white);
  margin: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}
.header #round-next-button {
  cursor: pointer;
  margin-left: 1rem;
}
/*# sourceMappingURL=app-mrgybjynebpm4n.css.map */
