@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,
.game-index-card.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,
.game-index-card.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,
.game-index-card.ascendance {
  --font-main: "Inquisitor", serif;
  --black: #161D14;
  --blackSecond: #232A1F;
  --blackOutline: #484838;
  --white: #E1DDCC;
  --golden: #E1CF85;
  --overlay-bg: rgba(52, 75, 78, 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;
}
body.westeros,
.game-index-card.westeros {
  --font-main: "Game Of Thrones", serif;
  --black: #25231E;
  --blackSecond: #3B3328;
  --blackOutline: #6F5A3B;
  --white: #E8DAB1;
  --golden: #CDA869;
  --overlay-bg: rgba(232, 218, 177, 0.9);
  --text-on-light: #2D241A;
  --text-muted-on-light: #5C4A34;
  --link-on-light: #70402C;
  --link-on-light-hover: #7E312D;
  --green: rgba(53, 96, 58, 0.25);
  --green-outline: rgba(72, 123, 77, 0.5);
  --green-text: #91B478;
  --red: rgba(126, 49, 45, 0.25);
  --red-outline: rgba(149, 73, 55, 0.5);
  --red-text: #C9826E;
  --grey: rgba(83, 94, 103, 0.25);
  --grey-outline: rgba(103, 121, 137, 0.5);
  --grey-text: #AEB8BC;
  --blue: rgba(52, 82, 105, 0.25);
  --blue-outline: rgba(73, 108, 135, 0.5);
  --blue-text: #8EB3CA;
  --purple: rgba(92, 62, 91, 0.25);
  --purple-outline: rgba(120, 82, 117, 0.5);
  --purple-text: #C09AB9;
}
@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;
}
@font-face {
  font-family: "Game Of Thrones";
  src: url("./Cinzel-Regular-23YP363E.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
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;
}
.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);
}
body.ascendance,
.game-index-card.ascendance {
  --theme-panel-text: white;
  --theme-header-text: var(--black);
  --theme-item-text: var(--white);
  --theme-link-text: var(--golden);
  --theme-link-hover: var(--white);
  --theme-search-muted: rgba(225, 221, 204, 0.7);
  --theme-container-image: url("./menubg1-FFNLNSSZ.png");
  --theme-container-slice: 32 fill;
  --theme-container-border: clamp(4px, 0.52vw, 10px);
  --theme-header-image: url("./menubg2-C3ZDGKHE.png");
  --theme-header-slice: 50 300 fill;
  --theme-header-border: clamp(17px, 3.65vw, 70px) clamp(24px, 14.06vw, 270px) clamp(15px, 2.92vw, 56px);
  --theme-header-padding: 0 clamp(0.35rem, 4.58vw, 5.5rem);
  --theme-map-image: url("./backgroundmenu-75SUEPLS.png");
  --theme-map-slice: 160 40 105 fill;
  --theme-map-border: clamp(26px, 7.81vw, 150px) clamp(7px, 1.98vw, 38px) clamp(18px, 5.21vw, 100px);
  --theme-list-image: url("./menubg3-5RKT3CYM.png");
  --theme-list-slice: 80 70 206 fill;
  --theme-list-border: clamp(8px, 2.19vw, 42px) clamp(8px, 2.19vw, 42px) clamp(17px, 4.38vw, 84px);
  --theme-item-image: url("./menubg4-MWO47OFB.png");
  --theme-item-slice: 10 fill;
  --theme-item-border: 4px;
  --theme-search-background: none;
  --theme-search-border-slice: 32 fill;
  --theme-filter-image: url("./ascfiltersbg-7CXSTRDB.png");
  --theme-filter-slice: 10 fill;
  --theme-filter-border: 5px;
  --theme-filter-background: transparent;
  --theme-filter-hover: rgba(255, 255, 255, 0.06);
  --theme-filter-active: var(--green);
  --theme-troop-slice: 14 16 17 16 fill;
  --theme-troop-border: 5px;
  --theme-info-bottom: clamp(2.5rem, 5vw, 6rem);
  --theme-interface-top: clamp(3.5rem, 8vw, 10rem);
  --theme-interface-side: clamp(0.35rem, 1.7vw, 3rem);
  --theme-interface-bottom: clamp(2.5rem, 5vw, 6rem);
  --theme-region-stroke: var(--green-text);
  --theme-region-stroke-width: 8px;
  --theme-region-opacity: 0.8;
  --theme-map-mask-x: 5%;
  --theme-map-mask-y: 8%;
}
body.westeros,
.game-index-card.westeros {
  --theme-panel-text: var(--text-on-light);
  --theme-header-text: var(--text-on-light);
  --theme-item-text: var(--text-on-light);
  --theme-link-text: var(--link-on-light);
  --theme-link-hover: var(--link-on-light-hover);
  --theme-search-muted: var(--text-muted-on-light);
  --theme-container-image: url("./menubg1-VJXP3GCV.png");
  --theme-container-slice: 25 28 26 fill;
  --theme-container-border: clamp(4px, 0.52vw, 10px);
  --theme-header-image: url("./menubg2-L22UHJKZ.png");
  --theme-header-slice: 8 110 35 fill;
  --theme-header-border: clamp(4px, 0.42vw, 8px) clamp(24px, 4.17vw, 80px) clamp(12px, 1.25vw, 24px);
  --theme-header-padding: 0 clamp(1rem, 3.13vw, 3.75rem);
  --theme-map-image: url("./backgroundmenu-45DDK37A.png");
  --theme-map-slice: 15 12 17 15 fill;
  --theme-map-border: clamp(5px, 0.42vw, 8px) clamp(4px, 0.31vw, 6px) clamp(6px, 0.52vw, 10px) clamp(5px, 0.42vw, 8px);
  --theme-list-image: url("./menubg3-56MO7NDO.png");
  --theme-list-slice: 64 26 22 fill;
  --theme-list-border: clamp(34px, 3.33vw, 64px) clamp(14px, 1.35vw, 26px) clamp(12px, 1.15vw, 22px);
  --theme-item-image: url("./menubg4-QVRZYSA7.png");
  --theme-item-slice: 10 14 fill;
  --theme-item-border: 4px;
  --theme-search-background: url("./search_bg-IJV5MYQP.png");
  --theme-search-border-slice: 25 28 22;
  --theme-filter-image: url("./ascfiltersbg-SUPWVRE4.png");
  --theme-filter-slice: 20 fill;
  --theme-filter-border: 8px;
  --theme-filter-background: rgba(232, 218, 177, 0.88);
  --theme-filter-hover: rgba(232, 218, 177, 0.98);
  --theme-filter-active: rgba(205, 168, 105, 0.92);
  --theme-troop-slice: 21 19 20 21 fill;
  --theme-troop-border: 7px;
  --theme-interface-top: clamp(1rem, 1.04vw, 1.25rem);
  --theme-interface-side: clamp(1rem, 1.04vw, 1.25rem);
  --theme-interface-bottom: clamp(1rem, 1.15vw, 1.375rem);
  --theme-info-bottom: var(--theme-interface-bottom);
  --theme-region-stroke: #25231E;
  --theme-region-stroke-width: 2px;
  --theme-region-opacity: 0.9;
  --theme-map-mask-x: 4%;
  --theme-map-mask-y: 5%;
}
body.ascendance .container,
body.ascendance .map-list,
body.westeros .container,
body.westeros .map-list {
  margin: 0;
  color: var(--theme-panel-text);
  background-color: transparent;
  border: var(--theme-container-border) solid transparent;
  border-image-source: var(--theme-container-image);
  border-image-slice: var(--theme-container-slice);
  border-image-repeat: stretch;
  border-radius: 0;
}
body.ascendance .container a:not(.button),
body.ascendance .map-list a:not(.button),
body.westeros .container a:not(.button),
body.westeros .map-list a:not(.button) {
  color: var(--theme-link-text);
}
body.ascendance .container a:not(.button):hover,
body.ascendance .map-list a:not(.button):hover,
body.westeros .container a:not(.button):hover,
body.westeros .map-list a:not(.button):hover {
  color: var(--theme-link-hover);
}
body.ascendance .container.header,
body.westeros .container.header {
  padding: var(--theme-header-padding);
  color: var(--theme-header-text);
  border-width: var(--theme-header-border);
  border-image-source: var(--theme-header-image);
  border-image-slice: var(--theme-header-slice);
}
body.ascendance .container.map-container,
body.westeros .container.map-container {
  border-width: var(--theme-map-border);
  border-image-source: var(--theme-map-image);
  border-image-slice: var(--theme-map-slice);
}
body.ascendance .map-list,
body.westeros .map-list {
  gap: 0.5rem;
  border-width: var(--theme-list-border);
  border-image-source: var(--theme-list-image);
  border-image-slice: var(--theme-list-slice);
}
body.ascendance .map-list-faction,
body.westeros .map-list-faction {
  color: var(--theme-item-text);
  background-color: transparent;
  border: var(--theme-item-border) solid transparent;
  border-image-source: var(--theme-item-image);
  border-image-slice: var(--theme-item-slice);
  border-image-repeat: stretch;
  border-radius: 0;
}
body.ascendance .army-container-troop.container,
body.ascendance .army-container-general.container,
body.westeros .army-container-troop.container,
body.westeros .army-container-general.container {
  box-sizing: border-box;
  padding: 0;
  border: var(--theme-troop-border) solid transparent;
  border-image-source: var(--theme-filter-image);
  border-image-slice: var(--theme-troop-slice);
  border-image-repeat: stretch;
  border-radius: 0;
}
body.ascendance .army {
  position: relative;
  width: 50px;
  height: 50px;
  overflow: visible;
  background: url("./borderarmy-IDXTJC7B.png") center/contain no-repeat;
  border: none;
  border-radius: 50%;
}
body.ascendance .army-icon {
  position: absolute;
  z-index: 1;
  inset: 18%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 50%;
  height: auto;
  width: auto;
}
body.westeros .interface.active-left {
  left: var(--theme-interface-side) !important;
}
body.westeros .interface.active-right {
  right: var(--theme-interface-side) !important;
}
body.westeros .interface.active-top {
  top: var(--theme-interface-top) !important;
}
body.westeros .interface.active-bottom {
  bottom: var(--theme-interface-bottom) !important;
}
body.westeros .army {
  border: 3px double var(--golden);
  background-color: var(--blackSecond);
  box-shadow: 0 0 0 1px rgba(37, 35, 30, 0.8), 0 0.2rem 0.5rem rgba(37, 35, 30, 0.55);
}
body.westeros .layers-legends .legend-item.map-filter .legend-text,
body.westeros .timeline-container .timeline-track .timeline-ticks .tick {
  color: var(--text-on-light);
}
body.westeros .technology-container .tech-tabs {
  border-bottom-color: var(--blackOutline);
}
body.westeros .technology-container .tech-tabs .tech-tab.active {
  color: var(--text-on-light);
  background-color: rgba(205, 168, 105, 0.32);
  border-bottom-color: var(--link-on-light-hover);
}
.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.airport {
  background-image: url("./airport-7NQ2GIEE.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");
}
.icon.night-watch {
  background-image: url("./night-watch-6KWXJFJT.svg");
}
.icon.royal-guard {
  background-image: url("./royal-guard-5NZFMEO5.svg");
}
.icon.exiled {
  background-image: url("./exiled-62JDCWJV.svg");
}
.icon.tournois {
  background-image: url("./tournois-STVO64UB.png");
}
.icon.mariage {
  background-image: url("./mariage-6MRUAD6T.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,
body.westeros .layers-buttons-container .button {
  color: var(--theme-item-text);
  background-color: var(--theme-filter-background);
  border: var(--theme-filter-border) solid transparent;
  border-image-source: var(--theme-filter-image);
  border-image-slice: var(--theme-filter-slice);
  border-image-repeat: stretch;
}
body.ascendance .layers-buttons-container .button img,
body.westeros .layers-buttons-container .button img {
  filter: none;
}
body.ascendance .layers-buttons-container .button:hover:not(.active),
body.westeros .layers-buttons-container .button:hover:not(.active) {
  background-color: var(--theme-filter-hover);
}
body.ascendance .layers-buttons-container .button.active,
body.westeros .layers-buttons-container .button.active {
  color: var(--theme-item-text);
  background-color: var(--theme-filter-active);
  border-color: transparent;
}
.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: 0.5rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  flex-wrap: wrap;
  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;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}
.map-list-faction .diplomacy-wrapper {
  order: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.4rem;
  width: 100%;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height 0.25s ease,
    margin-top 0.25s ease,
    opacity 0.2s ease;
}
.map-list-faction .diplomacy-wrapper.disable {
  visibility: hidden !important;
  pointer-events: none;
}
.map-list-faction .diplomacy-wrapper:not(.disable) {
  max-height: 3rem;
  margin-top: 0.2rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.map-list-faction .diplomacy-wrapper .diplomacy-button {
  --diplomacy-background: rgba(255, 255, 255, .08);
  --diplomacy-border: var(--blackOutline);
  --diplomacy-text: var(--white);
  --diplomacy-surface: color-mix(in srgb, var(--blackSecond) 92%, #000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--diplomacy-text) 65%, var(--diplomacy-border));
  border-radius: 0.35rem;
  color: var(--diplomacy-text);
  background: var(--diplomacy-surface);
  font: inherit;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
  opacity: 0.7;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.map-list-faction .diplomacy-wrapper .diplomacy-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-list-faction .diplomacy-wrapper .diplomacy-button:hover,
.map-list-faction .diplomacy-wrapper .diplomacy-button:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}
.map-list-faction .diplomacy-wrapper .diplomacy-button:focus-visible {
  outline: 2px solid var(--golden);
  outline-offset: 1px;
}
.map-list-faction .diplomacy-wrapper .diplomacy-button.active {
  border-color: color-mix(in srgb, var(--diplomacy-text) 80%, var(--diplomacy-border));
  background: linear-gradient(var(--diplomacy-background), var(--diplomacy-background)), var(--diplomacy-surface);
  box-shadow: inset 0 0 0 1px var(--diplomacy-border), 0 0 0.65rem var(--diplomacy-background);
  color: var(--diplomacy-text);
  opacity: 1;
}
.map-list-faction .diplomacy-wrapper .diplomacy-button-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  background-position: right;
  background-size: cover;
}
.diplomacy-button:hover .map-list-faction .diplomacy-wrapper .diplomacy-button-icon {
  background-position: left;
}
.diplomacy-button.active .map-list-faction .diplomacy-wrapper .diplomacy-button-icon {
  background-position: center;
}
.map-list-faction .diplomacy-wrapper .diplomacy-war {
  --diplomacy-background: var(--red);
  --diplomacy-border: var(--red-outline);
  --diplomacy-text: var(--red-text);
}
.map-list-faction .diplomacy-wrapper .diplomacy-war .diplomacy-button-icon {
  background-image: url("./war-Q5S2G4BJ.png");
}
.map-list-faction .diplomacy-wrapper .diplomacy-ally {
  --diplomacy-background: var(--green);
  --diplomacy-border: var(--green-outline);
  --diplomacy-text: var(--green-text);
}
.map-list-faction .diplomacy-wrapper .diplomacy-ally .diplomacy-button-icon {
  background-image: url("./ally-YZYYVTK6.png");
}
.map-list-faction .diplomacy-wrapper .diplomacy-vassal {
  --diplomacy-background: var(--blue);
  --diplomacy-border: var(--blue-outline);
  --diplomacy-text: var(--blue-text);
}
.map-list-faction .diplomacy-wrapper .diplomacy-vassal .diplomacy-button-icon {
  background-image: url("./vassal-ZTBDKL6U.png");
}
.map-list-faction .name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.layers-buttons-container .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem 0.75rem;
}
.layers-buttons-container .layers-button--icon {
  width: 2.75rem;
  padding: 0.35rem;
}
.layers-buttons-container .layers-button-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex: 0 0 auto;
}
.layers-buttons-container .layers-button-label {
  line-height: 1;
  white-space: nowrap;
}
.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.relation-filter .legend-color {
  background-color: var(--green);
  border: 1px solid var(--green-outline);
}
.layers-legends .legend-item.ally.relation-filter .legend-text {
  color: var(--green-text);
}
.layers-legends .legend-item.enemy.relation-filter .legend-color {
  background-color: var(--red);
  border: 1px solid var(--red-outline);
}
.layers-legends .legend-item.enemy.relation-filter .legend-text {
  color: var(--red-text);
}
.layers-legends .legend-item.neutral.relation-filter .legend-color {
  background-color: var(--grey);
  border: 1px solid var(--grey-outline);
}
.layers-legends .legend-item.neutral.relation-filter .legend-text {
  color: var(--grey-text);
}
.layers-legends .legend-item.vassal.relation-filter .legend-color {
  background-color: var(--blue);
  border: 1px solid var(--blue-outline);
}
.layers-legends .legend-item.vassal.relation-filter .legend-text {
  color: var(--blue-text);
}
.layers-legends .legend-item.master.relation-filter .legend-color {
  background-color: var(--purple);
  border: 1px solid var(--purple-outline);
}
.layers-legends .legend-item.master.relation-filter .legend-text {
  color: var(--purple-text);
}
.layers-legends .legend-item.map-filter .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.map-filter .legend-text {
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--white);
}
.layers-legends .legend-item.map-filter.legend-dominant .legend-text {
  color: var(--green-text) !important;
}
body.westeros .layers-legends .legend-item.ally.relation-filter .legend-color {
  background-color: rgba(53, 96, 58, 0.42);
  border-color: #355F3A;
}
body.westeros .layers-legends .legend-item.ally.relation-filter .legend-text {
  color: #294B2E;
}
body.westeros .layers-legends .legend-item.enemy.relation-filter .legend-color {
  background-color: rgba(126, 49, 45, 0.42);
  border-color: #7E312D;
}
body.westeros .layers-legends .legend-item.enemy.relation-filter .legend-text {
  color: #702A27;
}
body.westeros .layers-legends .legend-item.neutral.relation-filter .legend-color {
  background-color: rgba(79, 85, 88, 0.38);
  border-color: #555E63;
}
body.westeros .layers-legends .legend-item.neutral.relation-filter .legend-text {
  color: #454C50;
}
body.westeros .layers-legends .legend-item.vassal.relation-filter .legend-color {
  background-color: rgba(52, 82, 105, 0.42);
  border-color: #34566F;
}
body.westeros .layers-legends .legend-item.vassal.relation-filter .legend-text {
  color: #294A63;
}
body.westeros .layers-legends .legend-item.master.relation-filter .legend-color {
  background-color: rgba(92, 62, 91, 0.42);
  border-color: #654461;
}
body.westeros .layers-legends .legend-item.master.relation-filter .legend-text {
  color: #573852;
}
@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;
  stroke-width: var(--army-arrow-stroke-width, 6);
}
.arrow-move.visible {
  display: block;
}
.arrow-move-confirmed {
  stroke: #0f0;
}
.arrow-move-highlight {
  stroke: var(--golden) !important;
  stroke-width: var(--army-arrow-highlight-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);
  position: relative;
  touch-action: none;
  -webkit-touch-callout: none;
}
.army-icon {
  position: relative;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  height: 100%;
  width: 100%;
}
.army.army-naval {
  border-color: #66d9ff;
  box-shadow: 0 0 0 2px rgba(3, 25, 38, 0.9), 0 0 8px rgba(102, 217, 255, 0.85);
}
.army.army-naval::before {
  content: "\2693";
  position: absolute;
  z-index: 2;
  top: -8px;
  left: -8px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #66d9ff;
  border-radius: 50%;
  background: #071923;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.army.army-direct-embark-target {
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #66d9ff);
}
.army.army-transported {
  box-shadow: 0 0 0 2px rgba(7, 25, 35, 0.9), 0 0 8px rgba(102, 217, 255, 0.8);
}
.army.army-transported .army-icon::after {
  content: "\2693";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--golden);
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}
.army.army-airport-departure {
  border-color: #5fd7ff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.85), 0 0 10px rgba(95, 215, 255, 0.9);
}
.army.army-airport-departure::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -7px;
  bottom: -7px;
  border-radius: 50%;
  background: var(--black) url("./airport-7NQ2GIEE.png") center/12px no-repeat;
  border: 1px solid #5fd7ff;
}
.army.army-airport-transfer-pending {
  opacity: 0.55;
  pointer-events: none;
}
.army-airport-arrival {
  position: relative;
  border: 2px dashed #78e08f;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(120, 224, 143, 0.9);
  opacity: 0.72;
  cursor: context-menu;
}
.army-airport-arrival::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -7px;
  bottom: -7px;
  border-radius: 50%;
  background: var(--black) url("./airport-7NQ2GIEE.png") center/12px no-repeat;
  border: 1px solid #78e08f;
}
.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-container {
  max-height: min(60vh, 36rem);
  padding-right: 0.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-content: flex-start;
}
.army-container-troop,
.army-container-general {
  width: 100px;
  height: 100px;
  position: relative;
  isolation: isolate;
  border-bottom-right-radius: 0;
  transition:
    filter 0.15s ease,
    outline-color 0.15s ease,
    transform 0.15s ease;
}
.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.selected,
.army-container-general.selected {
  z-index: 3;
  outline: 2px solid var(--golden);
  outline-offset: 2px;
  filter: brightness(1.18);
  transform: translateY(-2px);
}
.army-container-troop-avatar,
.army-container-general-avatar {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: inherit;
  pointer-events: none;
}
.army-container-troop-life,
.army-container-general-life {
  position: absolute;
  z-index: 2;
  top: 0.2rem;
  width: 82%;
  left: 50%;
  transform: translateX(-50%);
  height: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 1px 2px #000,
    1px 0 1px #000,
    -1px 0 1px #000;
  pointer-events: none;
}
.army-container-troop-life progress,
.army-container-general-life progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  border-radius: 2px;
  overflow: hidden;
}
.army-container-troop-life span,
.army-container-general-life span {
  position: relative;
  z-index: 1;
}
.army-container-troop-total,
.army-container-general-total {
  position: absolute;
  z-index: 2;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 28px;
  padding: 1px 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.army-container-troop-quantity,
.army-container-general-quantity {
  position: absolute;
  z-index: 2;
  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;
  z-index: 2;
  bottom: 0;
  left: 3px;
}
.army-container-troop-tier,
.army-container-general-tier {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  color: var(--golden);
  background: var(--black);
  border-top: 1px solid var(--golden);
  border-right: 1px solid var(--golden);
  border-radius: 0 3px 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.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;
}
#army-encounters-interface {
  position: fixed;
  z-index: 1200;
  top: 50%;
  right: 2rem;
  width: min(70rem, 100vw - 4rem);
  transform: translateY(-50%);
  transition: right 0.45s ease, opacity 0.3s ease;
}
#army-encounters-interface.hide-right {
  right: calc(-100% - 4rem);
  opacity: 0;
  pointer-events: none;
}
#army-encounters-interface > .container {
  position: relative;
  max-height: min(78vh, 52rem);
  overflow: auto;
}
#army-encounters-interface .army-encounters-close {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  right: 0.5rem;
}
.army-encounter-marker {
  position: relative;
  order: 1;
  flex: 0 0 3rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0.2rem solid var(--golden);
  border-radius: 50%;
  background: var(--blackSecond);
  color: var(--white);
  cursor: pointer;
}
.army-encounter-marker.selected {
  box-shadow: 0 0 1rem var(--golden);
}
.army-encounter-marker.pending-publication {
  border-style: dashed;
  opacity: 0.72;
}
.army-encounter-marker.resolved {
  border-color: #9bc66b;
}
.army-encounter-marker.resolved .army-encounter-marker-icon {
  background: rgba(32, 92, 42, 0.9);
}
.army-encounter-marker-icon {
  position: absolute;
  inset: 0.3rem;
  border-radius: inherit;
  background: rgba(125, 0, 0, 0.8);
}
.army-encounter-marker-symbol {
  position: relative;
  z-index: 1;
  font-weight: 700;
}
.army-encounter {
  border: 1px solid color-mix(in srgb, var(--golden) 55%, transparent);
  padding: 1rem;
}
.army-encounter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.army-encounter-header small {
  display: block;
  opacity: 0.75;
}
.army-encounter-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 3rem;
  height: 3rem;
  border: 2px solid var(--golden);
  border-radius: 50%;
}
.army-encounter-engagements {
  display: grid;
  gap: 1rem;
}
.army-encounter-groups {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
}
.army-encounter-group {
  flex: 1 0 18rem;
  border: 1px solid color-mix(in srgb, var(--white) 25%, transparent);
  padding: 0.8rem;
}
.army-encounter-group.winner {
  border-color: #9bc66b;
  box-shadow: inset 0 0 1rem rgba(83, 145, 64, 0.22);
}
.army-encounter-group.defeated {
  opacity: 0.6;
}
.army-encounter-factions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.army-encounter-factions > span {
  display: inline-flex;
  align-items: center;
  border-left: 0.35rem solid var(--faction-color);
  padding-left: 0.45rem;
}
.army-encounter-factions i {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: center/contain no-repeat;
}
.army-encounter-faction {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-left: 0.35rem solid var(--faction-color);
  padding-left: 0.45rem;
}
.army-encounter-faction-icon,
.army-encounter-avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 50%;
  background: center/cover no-repeat;
}
.army-encounter-army {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-left: 0.35rem solid var(--faction-color);
  padding: 0.45rem;
}
.army-encounter-army small {
  display: block;
  opacity: 0.7;
}
.army-encounter-versus {
  align-self: center;
  color: var(--golden);
  font-size: 1.5rem;
}
.army-encounter-result {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-left: 0.3rem solid var(--golden);
  background: color-mix(in srgb, var(--blackSecond) 82%, transparent);
}
.army-encounter-result.resolved {
  border-left-color: #9bc66b;
}
.army-encounter-result small {
  opacity: 0.75;
}
.army-battle-configuration {
  display: grid;
  grid-template-columns: repeat(2, minmax(14rem, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--golden) 55%, transparent);
}
.army-battle-configuration > small {
  grid-column: 1/-1;
  opacity: 0.75;
}
.army-battle-field {
  display: grid;
  gap: 0.35rem;
}
.army-battle-field select {
  min-height: 2.3rem;
  min-width: 0;
  font: inherit;
}
.army-battle-participants {
  margin-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--golden) 35%, transparent);
  padding-top: 0.8rem;
}
.army-battle-participants summary {
  cursor: pointer;
  font-weight: 700;
}
.army-battle-participants form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.army-battle-camps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.army-battle-camp {
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--camp-color) 70%, var(--golden));
}
.army-battle-camp legend {
  max-width: 100%;
  padding: 0 0.4rem;
  overflow: hidden;
  color: var(--camp-color);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.army-battle-camp-empty {
  display: block;
  padding: 0.6rem;
  opacity: 0.7;
}
.army-battle-army-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  max-height: 18rem;
  overflow: auto;
}
.army-battle-army-choices label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.5rem;
  border-left: 0.3rem solid var(--faction-color);
  background: color-mix(in srgb, var(--blackSecond) 78%, transparent);
  cursor: pointer;
}
.army-battle-army-choices input {
  flex: 0 0 auto;
}
.army-battle-army-choices span {
  min-width: 0;
}
.army-battle-army-choices strong,
.army-battle-army-choices small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.army-battle-army-choices small {
  opacity: 0.7;
}
.army-battle-participant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.army-battle-participant-actions small {
  max-width: 44rem;
  opacity: 0.75;
}
.army-battle-participant-actions button {
  flex: 0 0 auto;
  min-height: 2.3rem;
}
.army-battle-danger-zone {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}
.army-battle-danger-zone button {
  min-height: 2.3rem;
  border-color: #b43a3a;
  color: #ffb6b6;
}
.army-battle-resolution {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--golden) 55%, transparent);
}
.army-battle-resolution select,
.army-battle-resolution button {
  min-height: 2.3rem;
  font: inherit;
}
.army-battle-resolution small {
  grid-column: 1/-1;
  opacity: 0.75;
}
.army-simulation-layer {
  display: none;
  position: absolute;
  z-index: 110;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.army-simulation-layer.visible {
  display: block;
}
.army-simulation-layer > .army.army-simulation-moving {
  position: absolute;
  z-index: 110;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  margin: 0;
}
.army-simulation-layer > .army.army-simulation-moving .army-icon {
  margin: 0;
}
.army-simulation-layer > .army.army-simulation-moving.in-battle .army-icon {
  filter: drop-shadow(0 0 0.25rem var(--golden)) drop-shadow(0 0 0.7rem #d30000);
}
.army-simulation-layer > .army.army-simulation-moving.army-simulation-defeated::before {
  content: "\2691";
  position: absolute;
  z-index: 2;
  top: -0.3rem;
  right: -0.3rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--golden);
  border-radius: 50%;
  background: #6f0808;
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1;
  text-shadow: 0 1px 2px var(--black);
  pointer-events: none;
}
.army-simulation-timeline {
  position: relative;
  z-index: 130;
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
}
.army-simulation-timeline[hidden] {
  display: none;
}
.army-simulation-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.army-simulation-track {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 2rem;
}
.army-simulation-range {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  accent-color: var(--golden);
  cursor: pointer;
}
.army-simulation-events {
  position: absolute;
  z-index: 3;
  inset: 0 0.45rem;
  pointer-events: none;
}
.army-simulation-event {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--golden);
  border-radius: 50%;
  background: #6f0808;
  color: var(--white);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.army-simulation-time {
  min-width: 5.4rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.map-container.army-simulation-active.army-simulation-arrows-hidden .arrow-move {
  opacity: 0 !important;
  pointer-events: none !important;
}
.army.army-delete-pending,
.army.army-simulation-removed,
.army.army-simulation-hidden,
.arrow-move.army-simulation-removed {
  display: none !important;
}
.army-simulation-status {
  min-width: 7rem;
  font-size: 0.75em;
  opacity: 0.8;
}
@media (max-width: 800px) {
  #army-encounters-interface {
    right: 0.5rem;
    width: calc(100vw - 1rem);
  }
  .army-encounter-groups {
    display: grid;
  }
  .army-battle-resolution {
    grid-template-columns: 1fr;
  }
  .army-battle-resolution small {
    grid-column: auto;
  }
  .army-battle-configuration {
    grid-template-columns: 1fr;
  }
  .army-battle-configuration > small {
    grid-column: auto;
  }
  .army-battle-participant-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .army-battle-participant-actions button,
  .army-battle-danger-zone button {
    width: 100%;
  }
  .army-battle-camps {
    grid-template-columns: 1fr;
  }
  .army-simulation-timeline {
    grid-template-columns: auto minmax(8rem, 1fr);
  }
  .army-simulation-time,
  .army-simulation-status {
    grid-row: 2;
  }
}
body.westeros #army-encounters-interface {
  right: clamp(0.75rem, 1.5vw, 2rem);
  width: min(62rem, 100vw - 3rem);
  font-size: 0.88rem;
}
body.westeros #army-encounters-interface > .container {
  box-sizing: border-box;
  max-height: min(86vh, 48rem);
  padding: clamp(0.85rem, 1.35vw, 1.25rem);
  overflow-x: hidden;
  scrollbar-color: var(--blackOutline) rgba(111, 90, 59, 0.16);
  box-shadow: 0 1rem 2.75rem rgba(37, 35, 30, 0.48);
}
body.westeros #army-encounters-interface h2 {
  margin: 0 3.5rem 0.85rem 0;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(111, 90, 59, 0.5);
  color: var(--text-on-light);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0.035em;
  text-shadow: 0 1px rgba(255, 248, 222, 0.55);
}
body.westeros #army-encounters-interface .army-encounters-close {
  top: 0.7rem;
  right: 0.7rem;
  box-sizing: border-box;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border: 1px solid var(--golden);
  border-radius: 50%;
  background-color: var(--black);
  background-origin: content-box;
  box-shadow: 0 0.2rem 0.45rem rgba(37, 35, 30, 0.28);
}
body.westeros .army-encounters-content {
  display: grid;
  gap: 0.75rem;
}
body.westeros .army-encounter {
  padding: 0.85rem;
  border-color: rgba(111, 90, 59, 0.48);
  background:
    linear-gradient(
      145deg,
      rgba(255, 248, 220, 0.42),
      rgba(205, 168, 105, 0.13));
  box-shadow: inset 0 0 0 1px rgba(255, 248, 220, 0.2), 0 0.25rem 0.7rem rgba(59, 51, 40, 0.13);
}
body.westeros .army-encounter-header {
  gap: 0.75rem;
  margin: -0.15rem -0.15rem 0.75rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(111, 90, 59, 0.38);
  background:
    linear-gradient(
      90deg,
      rgba(205, 168, 105, 0.2),
      transparent 72%);
}
body.westeros .army-encounter-header strong {
  color: var(--text-on-light);
  font-size: 1.05rem;
}
body.westeros .army-encounter-header small,
body.westeros .army-encounter-army small {
  color: var(--text-muted-on-light);
  opacity: 1;
}
body.westeros .army-encounter-symbol {
  flex-basis: 2.55rem;
  height: 2.55rem;
  border-color: var(--link-on-light);
  background: rgba(255, 248, 220, 0.46);
  color: var(--text-on-light);
  box-shadow: inset 0 0 0 3px rgba(205, 168, 105, 0.2);
}
body.westeros .army-encounter-engagements {
  gap: 0.75rem;
}
body.westeros .army-encounter-groups {
  gap: 0.65rem;
  padding: 0.1rem;
}
body.westeros .army-encounter-group {
  flex-basis: 15rem;
  padding: 0.65rem;
  border-color: rgba(111, 90, 59, 0.42);
  background: rgba(255, 248, 220, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 220, 0.18);
}
body.westeros .army-encounter-group.winner {
  border-color: #527544;
  background: rgba(82, 117, 68, 0.12);
}
body.westeros .army-encounter-group.defeated {
  opacity: 0.72;
  filter: saturate(0.75);
}
body.westeros .army-encounter-factions {
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}
body.westeros .army-encounter-factions i,
body.westeros .army-encounter-faction-icon,
body.westeros .army-encounter-avatar {
  width: 2.15rem;
  height: 2.15rem;
  flex-basis: 2.15rem;
  border: 1px solid rgba(111, 90, 59, 0.48);
  background-color: rgba(255, 248, 220, 0.5);
  box-shadow: 0 0.12rem 0.25rem rgba(59, 51, 40, 0.2);
}
body.westeros .army-encounter-army {
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  background: rgba(232, 218, 177, 0.38);
}
body.westeros .army-encounter-versus {
  display: grid;
  place-items: center;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(112, 64, 44, 0.55);
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.58);
  color: var(--link-on-light-hover);
  font-size: 1rem;
}
body.westeros .army-encounter-result {
  color: var(--text-on-light);
  background: rgba(205, 168, 105, 0.2);
}
body.westeros .army-encounter-result.resolved {
  background: rgba(82, 117, 68, 0.14);
}
body.westeros .army-encounter-result small {
  color: var(--text-muted-on-light);
  opacity: 1;
}
body.westeros .army-battle-configuration {
  gap: 0.7rem 1rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top-color: rgba(111, 90, 59, 0.48);
}
body.westeros .army-battle-configuration > small {
  color: var(--text-muted-on-light);
  opacity: 1;
}
body.westeros .army-battle-field {
  gap: 0.3rem;
}
body.westeros .army-battle-field label {
  color: var(--text-on-light);
  font-weight: 700;
  letter-spacing: 0.025em;
}
body.westeros .army-battle-field select {
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(111, 90, 59, 0.68);
  border-radius: 0.15rem;
  outline: none;
  background: rgba(255, 248, 220, 0.76);
  color: var(--text-on-light);
  box-shadow: inset 0 1px 2px rgba(59, 51, 40, 0.12);
}
body.westeros .army-battle-field select:focus {
  border-color: var(--link-on-light-hover);
  box-shadow: 0 0 0 2px rgba(126, 49, 45, 0.16);
}
body.westeros .army-battle-field option,
body.westeros .army-battle-field optgroup {
  background: #f2e5bd;
  color: var(--text-on-light);
}
body.westeros .army-battle-participants {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top-color: rgba(111, 90, 59, 0.4);
}
body.westeros .army-battle-participants summary {
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  color: var(--text-on-light);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
body.westeros .army-battle-participants summary:hover,
body.westeros .army-battle-participants[open] > summary {
  border-color: rgba(111, 90, 59, 0.38);
  background: rgba(205, 168, 105, 0.16);
}
body.westeros .army-battle-participants form {
  gap: 0.7rem;
  margin-top: 0.65rem;
}
body.westeros .army-battle-camps {
  gap: 0.7rem;
}
body.westeros .army-battle-camp {
  padding: 0.65rem;
  border-width: 2px 1px 1px;
  background: rgba(255, 248, 220, 0.26);
}
body.westeros .army-battle-camp legend {
  color: color-mix(in srgb, var(--camp-color) 68%, var(--text-on-light));
}
body.westeros .army-battle-camp-empty {
  color: var(--text-muted-on-light);
  opacity: 1;
}
body.westeros .army-battle-army-choices {
  gap: 0.4rem;
  max-height: 13rem;
}
body.westeros .army-battle-army-choices label {
  padding: 0.45rem 0.55rem;
  border-top: 1px solid rgba(111, 90, 59, 0.22);
  border-right: 1px solid rgba(111, 90, 59, 0.22);
  border-bottom: 1px solid rgba(111, 90, 59, 0.22);
  background: rgba(232, 218, 177, 0.5);
  color: var(--text-on-light);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
body.westeros .army-battle-army-choices label:hover {
  border-color: rgba(111, 90, 59, 0.58);
  background: rgba(255, 248, 220, 0.62);
}
body.westeros .army-battle-army-choices label:has(input:checked) {
  border-color: color-mix(in srgb, var(--faction-color) 62%, var(--blackOutline));
  background: color-mix(in srgb, var(--faction-color) 12%, rgba(255, 248, 220, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 248, 220, 0.22);
}
body.westeros .army-battle-army-choices input {
  accent-color: var(--link-on-light-hover);
}
body.westeros .army-battle-army-choices small {
  color: var(--text-muted-on-light);
  opacity: 1;
}
body.westeros .army-battle-participant-actions {
  padding-top: 0.15rem;
}
body.westeros .army-battle-participant-actions small {
  color: var(--text-muted-on-light);
  opacity: 1;
}
body.westeros .army-battle-participant-actions button {
  padding: 0.65rem 1rem;
  border-color: var(--golden);
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 0.35rem rgba(37, 35, 30, 0.2);
}
body.westeros .army-battle-participant-actions button:hover {
  color: #fff3cf;
  box-shadow: 0 0.25rem 0.5rem rgba(37, 35, 30, 0.28);
  transform: translateY(-1px);
}
body.westeros .army-battle-danger-zone {
  margin-top: 0.6rem;
}
body.westeros .army-battle-danger-zone button {
  padding: 0.6rem 1rem;
  border-color: #8f3935;
  border-radius: 0.35rem;
  background: rgba(91, 35, 32, 0.94);
  color: #f2d3c9;
  box-shadow: 0 0.15rem 0.35rem rgba(37, 35, 30, 0.2);
}
body.westeros .army-battle-danger-zone button:hover {
  background: #702d2a;
  color: #fff0eb;
  transform: translateY(-1px);
}
body.westeros .army-battle-resolution {
  border-top-color: rgba(111, 90, 59, 0.48);
}
body.westeros .army-battle-resolution select {
  border-color: rgba(111, 90, 59, 0.68);
  background: rgba(255, 248, 220, 0.76);
  color: var(--text-on-light);
}
body.westeros .army-battle-resolution small {
  color: var(--text-muted-on-light);
  opacity: 1;
}
@media (max-width: 800px) {
  body.westeros #army-encounters-interface {
    right: 0.5rem;
    width: calc(100vw - 1rem);
    font-size: 0.82rem;
  }
  body.westeros #army-encounters-interface > .container {
    max-height: calc(100vh - 1rem);
    padding: 0.7rem;
  }
  body.westeros .army-encounter {
    padding: 0.65rem;
  }
  body.westeros .army-encounter-groups {
    padding-bottom: 0.35rem;
  }
  body.westeros .army-encounter-group {
    flex-basis: auto;
  }
  body.westeros .army-encounter-versus {
    justify-self: center;
    transform: rotate(90deg);
  }
}
.game-event-marker {
  position: relative;
  order: 2;
  flex: 0 0 3rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0.2rem solid var(--golden);
  border-radius: 50%;
  background: var(--blackSecond);
  color: var(--golden);
  cursor: pointer;
}
.game-event-marker.selected {
  box-shadow: 0 0 1rem var(--golden);
}
.game-event-marker-icon {
  width: 2rem;
  height: 2rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 1.45rem;
  line-height: 2rem;
  text-align: center;
}
.game-event-marker-count {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.12rem;
  border: 1px solid var(--golden);
  border-radius: 1rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
}
#game-events-interface {
  position: absolute;
  z-index: 1200;
  top: 50%;
  left: 2rem;
  width: min(28rem, 100vw - 4rem);
  transform: translateY(-50%);
}
#game-events-interface > .container {
  box-sizing: border-box;
  max-height: min(78vh, 48rem);
  overflow-y: auto;
}
#game-events-interface .game-events-close {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  right: 0.5rem;
  box-sizing: border-box;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border: 1px solid var(--golden);
  border-radius: 50%;
  background-color: var(--black);
  background-origin: content-box;
}
.game-event-card {
  padding: 0.35rem;
}
.game-event-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 3rem;
}
.game-event-header h2 {
  margin: 0.1rem 0 0;
  overflow-wrap: anywhere;
}
.game-event-header small {
  opacity: 0.72;
  text-transform: uppercase;
}
.game-event-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 3rem;
  height: 3rem;
  border: 2px solid var(--golden);
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 2.35rem;
  color: var(--golden);
  font-size: 1.4rem;
}
.game-event-timing {
  padding: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--golden) 55%, transparent);
  text-align: center;
}
.game-event-participants {
  margin-top: 1rem;
}
.game-event-participants h3 {
  margin: 0 0 0.6rem;
}
.game-event-participants ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-event-participants li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border-left: 0.3rem solid var(--faction-color);
  background: color-mix(in srgb, var(--black) 45%, transparent);
}
.game-event-faction-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  background: center/cover no-repeat;
}
.game-event-empty {
  opacity: 0.7;
}
.game-event-participation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  min-height: 2.7rem;
}
.game-event-participation span {
  font-size: 1.4rem;
  line-height: 1;
}
body.westeros #game-events-interface > .container {
  color: var(--text-on-light);
}
body.westeros .game-event-participants li {
  background: rgba(205, 168, 105, 0.2);
}
body.westeros .game-event-header small,
body.westeros .game-event-empty {
  color: var(--text-muted-on-light);
  opacity: 1;
}
@media (max-width: 600px) {
  #game-events-interface {
    left: 0.5rem;
    width: calc(100vw - 1rem);
  }
}
.unit-container,
.general-container {
  position: relative;
}
.unit-container .entity-interface-close,
.general-container .entity-interface-close {
  padding: 0;
  border: 0;
  cursor: pointer;
}
.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;
}
.unit-container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.unit-container-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.unit-container.has-large-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-bg);
  opacity: 0.55;
  pointer-events: none;
}
.unit-container.has-large-image > :not(.unit-container-background):not(.entity-interface-close) {
  position: relative;
  z-index: 2;
}
.unit-container-infos-tier {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: var(--golden);
  background: var(--black);
  border: 1px solid var(--golden);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
}
.interface > .unit-container.container .entity-interface-close,
.interface > .general-container.container .entity-interface-close {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  right: 0.5rem;
}
.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);
}
.army-container-general .general-avatar-edit {
  position: absolute;
  z-index: 4;
  top: 0.35rem;
  right: 0.35rem;
  box-sizing: border-box;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  background-color: rgba(20, 16, 12, 0.82);
  background-size: 0.95rem;
  border: 1px solid rgba(232, 196, 104, 0.82);
  border-radius: 0.25rem;
  box-shadow: 0 0.15rem 0.35rem rgba(0, 0, 0, 0.65);
  opacity: 0.82;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}
.army-container-general .general-avatar-edit:hover,
.army-container-general .general-avatar-edit:focus-visible {
  background-color: var(--black);
  border-color: var(--golden);
  opacity: 1;
  transform: scale(1.06);
}
#general-avatar-interface {
  position: absolute;
  z-index: 8;
  top: var(--theme-interface-top, 2rem);
  left: 50%;
  width: min(92vw, 32rem);
  transform: translateX(-50%);
}
#general-avatar-interface .general-avatar-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}
#general-avatar-interface .general-avatar-editor h2,
#general-avatar-interface .general-avatar-editor p {
  margin: 0;
  text-align: center;
}
#general-avatar-interface .general-avatar-editor-name {
  color: var(--golden);
}
#general-avatar-interface .general-avatar-editor-controls,
#general-avatar-interface .general-avatar-editor-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}
#general-avatar-interface .general-avatar-editor-status {
  min-height: 1.2em;
  color: var(--red-text);
}
#general-avatar-interface .general-avatar-crop {
  position: relative;
  width: min(68vw, 20rem);
  aspect-ratio: 1;
  overflow: hidden;
  touch-action: none;
  cursor: default;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--golden);
  box-shadow: inset 0 0 0 1px var(--blackOutline);
}
#general-avatar-interface .general-avatar-crop img {
  display: none;
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
#general-avatar-interface .general-avatar-crop span {
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  pointer-events: none;
}
#general-avatar-interface .general-avatar-crop.has-image {
  cursor: grab;
}
#general-avatar-interface .general-avatar-crop.has-image img {
  display: block;
}
#general-avatar-interface .general-avatar-crop.has-image span {
  display: none;
}
#general-avatar-interface .general-avatar-crop.dragging {
  cursor: grabbing;
}
#general-avatar-interface .general-avatar-zoom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#general-avatar-interface .general-avatar-zoom input {
  min-width: 10rem;
}
@media (max-width: 640px) {
  #general-avatar-interface {
    width: calc(100vw - 1rem);
  }
  #general-avatar-interface .general-avatar-editor {
    padding: 0.75rem;
  }
  #general-avatar-interface .general-avatar-crop {
    width: min(76vw, 18rem);
  }
}
.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;
  align-items: center;
}
.transfert-container .transfert-content .transfert-troops-item-tier {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  color: var(--golden);
  background: var(--black);
  border: 1px solid var(--golden);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
}
.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;
}
.icon.airport {
  position: relative;
  cursor: context-menu;
  touch-action: none;
  -webkit-touch-callout: none;
}
.airport-transfer-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  min-width: 220px;
  max-width: 320px;
  padding: 0.65rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--white);
}
.airport-transfer-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--blackOutline);
}
.airport-transfer-menu-title {
  flex: 1;
  font-weight: 700;
}
.airport-transfer-menu-close {
  flex: 0 0 25px;
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}
.airport-transfer-menu-empty {
  max-width: 260px;
  font-size: 0.8rem;
  opacity: 0.75;
}
.airport-transfer-menu-army {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  color: inherit;
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
  cursor: pointer;
}
.airport-transfer-menu-army:hover {
  border-color: var(--golden);
  background: rgba(0, 0, 0, 0.35);
}
.airport-transfer-menu-army:disabled {
  opacity: 0.5;
  cursor: wait;
}
.airport-transfer-menu-army span:last-child {
  display: flex;
  flex-direction: column;
}
.airport-transfer-menu-army small {
  opacity: 0.7;
}
.airport-transfer-menu-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}
.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;
  overflow: auto;
}
.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%;
  }
}
.live-search {
  position: relative;
  align-self: flex-start;
  width: 100%;
  max-width: 32rem;
}
.live-search__field {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-left: auto;
  overflow: hidden;
  background-color: var(--black);
  border-radius: 10px;
  border: 3px solid transparent;
  color: var(--white);
  transition:
    width 250ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.live-search__field:focus-within {
  width: 100%;
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1);
}
.live-search__field:focus-within .live-search__input {
  width: 100%;
  padding-right: 1rem;
  opacity: 1;
  pointer-events: auto;
}
.live-search__trigger {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #222;
  cursor: pointer;
}
.live-search__icon {
  background-image: url("./search_icon-SACK4DGG.png");
  background-size: contain;
  width: 15px;
  height: 15px;
  display: block;
  transition: transform 200ms ease;
}
.live-search__trigger:hover .live-search__icon {
  transform: scale(1.08);
}
.live-search__input {
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--white);
  font: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    width 250ms ease,
    padding 250ms ease,
    opacity 150ms ease;
}
.live-search__input::placeholder {
  color: #858b94;
}
.live-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}
.live-search__results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
  width: clamp(34rem, 42vw, 42rem);
  max-width: calc(100vw - 4rem);
  max-height: min(30rem, 100vh - 8rem);
  box-sizing: border-box;
  overflow: hidden;
  visibility: hidden;
  background-color: var(--blackSecond);
  border: 1px solid var(--blackOutline);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}
.live-search__results:empty {
  display: none;
}
.live-search__results:not([hidden]) {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.live-search__list {
  display: grid;
  max-height: min(30rem, 100vh - 8rem);
  gap: 0.5rem;
  padding: 0.65rem;
  margin: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--blackOutline) transparent;
  scrollbar-width: thin;
}
.live-search__item {
  min-height: 4.25rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.live-search__item:hover,
.live-search__item:focus-within {
  background-color: rgba(255, 255, 255, 0.075);
  border-color: var(--golden);
  transform: translateX(-0.15rem);
}
.live-search__link {
  display: flex;
  min-height: 4.25rem;
  box-sizing: border-box;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--white);
  text-decoration: none;
  outline: none;
}
.live-search__link:hover,
.live-search__link:focus-visible {
  color: var(--white);
}
.live-search__image {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border: 1px solid var(--blackOutline);
  border-radius: 0.375rem;
}
.live-search__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
}
.live-search__title {
  display: flex;
  min-width: 0;
  gap: 0.55rem;
  align-items: flex-start;
  overflow: visible;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}
.live-search__number {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0.1rem 0.35rem;
  place-items: center;
  color: var(--black);
  font-size: 0.8rem;
  line-height: 1;
  background-color: var(--golden);
  border-radius: 0.35rem;
}
.live-search__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--grey-text);
  font-size: 0.85rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.live-search__status {
  padding: 1rem;
  margin: 0;
  color: var(--grey-text);
  font-size: 0.9rem;
  text-align: center;
}
@media (max-width: 48rem) {
  .live-search__results {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }
  .live-search__results,
  .live-search__list {
    max-height: min(22rem, 100vh - 6rem);
  }
  .live-search__item,
  .live-search__link {
    min-height: 4rem;
  }
  .live-search__link {
    padding: 0.7rem 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-search__field,
  .live-search__input,
  .live-search__results,
  .live-search__item,
  .live-search__link,
  .live-search__icon {
    transition: none;
  }
}
body.ascendance .live-search__field,
body.westeros .live-search__field {
  color: var(--theme-item-text);
  background-color: var(--theme-filter-background);
  border: var(--theme-filter-border) solid transparent;
  border-image-source: var(--theme-filter-image);
  border-image-slice: var(--theme-filter-slice);
  border-image-repeat: stretch;
  border-radius: 0;
}
body.ascendance .live-search__field:focus-within,
body.westeros .live-search__field:focus-within {
  background-color: var(--theme-filter-hover);
  border-color: transparent;
  box-shadow: 0 0.35rem 0.75rem rgba(0, 0, 0, 0.35);
}
body.ascendance .live-search__trigger,
body.westeros .live-search__trigger {
  flex-basis: 2rem;
  width: 2rem;
  height: 2rem;
}
body.ascendance .live-search__input,
body.westeros .live-search__input {
  color: var(--theme-item-text);
}
body.ascendance .live-search__input::placeholder,
body.westeros .live-search__input::placeholder {
  color: var(--theme-search-muted);
}
body.ascendance .live-search__results,
body.westeros .live-search__results {
  padding: 0.25rem;
  background-color: transparent;
  background-image: var(--theme-search-background);
  background-position: center;
  background-size: cover;
  border: var(--theme-container-border) solid transparent;
  border-image-source: var(--theme-container-image);
  border-image-slice: var(--theme-search-border-slice);
  border-image-repeat: stretch;
  border-radius: 0;
}
body.ascendance .live-search__list,
body.westeros .live-search__list {
  gap: 0.4rem;
  padding: 0.35rem;
}
body.ascendance .live-search__item,
body.westeros .live-search__item {
  background-color: transparent;
  border: var(--theme-item-border) solid transparent;
  border-image-source: var(--theme-item-image);
  border-image-slice: var(--theme-item-slice);
  border-image-repeat: stretch;
  border-radius: 0;
  filter: brightness(0.92);
  transition: filter 150ms ease, transform 150ms ease;
}
body.ascendance .live-search__item:hover,
body.ascendance .live-search__item:focus-within,
body.westeros .live-search__item:hover,
body.westeros .live-search__item:focus-within {
  background-color: transparent;
  border-color: transparent;
  filter: brightness(1.18);
  transform: translateX(-0.15rem);
}
body.ascendance .live-search__link,
body.westeros .live-search__link {
  min-height: 4rem;
  padding: 0.7rem 0.9rem;
  color: var(--theme-item-text);
}
body.ascendance .live-search__link:hover,
body.ascendance .live-search__link:focus-visible,
body.westeros .live-search__link:hover,
body.westeros .live-search__link:focus-visible {
  color: var(--theme-item-text);
}
body.ascendance .live-search__number,
body.westeros .live-search__number {
  color: var(--golden);
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--golden);
  border-radius: 0;
}
body.ascendance .live-search__description,
body.westeros .live-search__description {
  color: var(--theme-search-muted);
}
.map {
  display: flex;
  overflow: hidden;
  padding: 1rem;
  gap: 1rem;
  justify-content: center;
}
.map-stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}
.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 {
  --region-default-stroke-color: black;
  --region-inner-stroke-width: 6px;
  transform-origin: center;
  transform-box: fill-box;
  fill: red;
  stroke: var(--region-stroke-color, var(--region-default-stroke-color));
  stroke-width: var(--region-inner-stroke-width);
  position: relative;
  z-index: 1;
}
.map .svg-container svg .region.fog {
  filter: brightness(0.2);
}
.map .svg-container svg .region.hover,
.map .svg-container svg .region.army-move-allowed {
  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 .region-markers-wrapper {
  position: absolute;
  z-index: 115;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: max-content;
  transform: translate(-50%, -50%);
}
.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.region-overlay-content-visible .region-markers-wrapper {
  top: auto;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
}
.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: none;
  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 .map-container.map-overlays-hidden .info-overlay,
.map .svg-container .map-container.map-overlays-hidden .faction-empire-overlay,
.map .svg-container .map-container.map-overlays-hidden .moving-armies-wrapper,
.map .svg-container .map-container.map-overlays-hidden .army-simulation-layer,
.map .svg-container .map-container.map-overlays-hidden .arrow-move,
.map .svg-container .map-container.map-overlays-hidden .wasConquered {
  display: none !important;
}
.map .svg-container .map-overlay-item-hidden {
  display: none !important;
}
.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 [hidden] {
  display: none !important;
}
.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-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.map .svg-container .info-container .information-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.map .svg-container .info-container .information-item {
  font-size: 14px;
}
.map .svg-container #top-left-interface {
  position: absolute;
  right: 2rem;
  top: 2rem;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}
.map .svg-container #top-left-interface .map-overlay-controls {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.map .svg-container #top-left-interface .map-overlay-controls button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.75rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0;
  color: color-mix(in srgb, var(--theme-item-text, var(--white)) 65%, transparent);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  background-color: var(--theme-filter-background, var(--blackSecond));
  border: var(--theme-filter-border, 1px) solid transparent;
  border-image-source: var(--theme-filter-image, none);
  border-image-slice: var(--theme-filter-slice, 1);
  border-image-repeat: stretch;
  border-radius: 0;
  cursor: pointer;
  filter: brightness(0.82) saturate(0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.map .svg-container #top-left-interface .map-overlay-controls button:hover:not(.active) {
  background-color: var(--theme-filter-hover, var(--blackSecond));
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.map .svg-container #top-left-interface .map-overlay-controls button:focus-visible {
  outline: 2px solid var(--golden);
  outline-offset: 2px;
}
.map .svg-container #top-left-interface .map-overlay-controls button.active {
  color: var(--theme-item-text, var(--white));
  background-color: var(--theme-filter-active, var(--green));
  border-color: transparent;
  box-shadow: none;
  filter: brightness(1.12) saturate(1);
}
.map .svg-container #top-left-interface .map-overlay-controls .map-overlay-menu-toggle span {
  transition: transform 0.2s ease;
}
.map .svg-container #top-left-interface .map-overlay-controls .map-overlay-menu-toggle[aria-expanded=true] span {
  transform: rotate(180deg);
}
.map .svg-container #top-left-interface .map-overlay-controls .map-overlay-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  grid-template-columns: repeat(var(--map-overlay-columns, 4), 2.75rem);
  gap: 0.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0.4rem 0.35rem rgba(0, 0, 0, 0.7));
}
.map .svg-container #top-left-interface .map-overlay-controls .map-overlay-options[hidden] {
  display: 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;
}
.map-container.army-route-dragging #Map .region.hover:not(.army-move-allowed) {
  filter: none !important;
}
.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 {
  --region-default-stroke-color: var(--white);
  --region-inner-stroke-width: 12px;
  opacity: 95%;
}
body.baltic_wars .map .svg-container svg .region {
  --region-inner-stroke-width: 2px;
}
body.ascendance .map .svg-container .info-container,
body.westeros .map .svg-container .info-container {
  bottom: var(--theme-info-bottom);
  left: var(--theme-interface-side);
}
body.ascendance .map .svg-container .layers-container,
body.westeros .map .svg-container .layers-container {
  top: var(--theme-interface-top);
  left: var(--theme-interface-side);
}
body.ascendance .map .svg-container #top-left-interface,
body.westeros .map .svg-container #top-left-interface {
  top: var(--theme-interface-top);
  right: var(--theme-interface-side);
}
body.ascendance .map .svg-container #confirmInvasion,
body.westeros .map .svg-container #confirmInvasion {
  right: var(--theme-interface-side);
  bottom: var(--theme-interface-bottom);
}
body.ascendance .map .svg-container .technology-button,
body.westeros .map .svg-container .technology-button {
  top: var(--theme-interface-top);
}
body.ascendance .map .svg-container .draw-buttons-container,
body.westeros .map .svg-container .draw-buttons-container {
  bottom: var(--theme-interface-bottom);
}
body.ascendance .map .svg-container svg .region,
body.westeros .map .svg-container svg .region {
  --region-default-stroke-color: var(--theme-region-stroke);
  --region-inner-stroke-width: var(--theme-region-stroke-width);
  fill-opacity: var(--theme-region-opacity) !important;
}
body.ascendance .map .svg-container #backgroundMap,
body.westeros .map .svg-container #backgroundMap {
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black var(--theme-map-mask-x),
      black calc(100% - var(--theme-map-mask-x)),
      transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0%,
      black var(--theme-map-mask-y),
      black calc(100% - var(--theme-map-mask-y)),
      transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black var(--theme-map-mask-x),
      black calc(100% - var(--theme-map-mask-x)),
      transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0%,
      black var(--theme-map-mask-y),
      black calc(100% - var(--theme-map-mask-y)),
      transparent 100%);
  -webkit-mask-composite: source-in;
}
body.ascendance .map .svg-container .draw-buttons-container {
  bottom: 1rem;
}
@media (max-width: 1024px) {
  .map {
    display: block;
  }
  .map .svg-container {
    display: flex;
    flex-direction: column;
  }
  .map .svg-container #top-left-interface {
    max-width: calc(100vw - 1rem);
  }
}
.header {
  position: relative;
  color: var(--white);
  margin: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}
.header .round-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.header .round-action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
  padding: 0.3rem 0.55rem;
  color: inherit;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid currentColor;
  border-radius: 0.3rem;
  font: inherit;
  cursor: pointer;
}
.header .round-action-button:hover {
  color: var(--golden);
  background: rgba(0, 0, 0, 0.35);
}
.header .round-action-button.reset:hover {
  color: #d9786f;
}
.header .round-action-button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.header .round-action-button[hidden] {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-commands-toggle,
.header .commands-help-close {
  appearance: none;
  box-sizing: border-box;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid currentColor;
  color: inherit;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.header-commands-toggle {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}
.header-commands-toggle:hover,
.header-commands-toggle[aria-expanded=true] {
  color: var(--golden);
  background: rgba(0, 0, 0, 0.35);
  transform: none;
}
.header .commands-help {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(36rem, 100vw - 2rem);
  max-height: min(42rem, 100vh - 8rem);
  overflow-y: auto;
  padding: 1rem 1.15rem;
  color: var(--theme-panel-text, var(--white));
  background: var(--blackSecond);
  border: 2px solid var(--blackOutline);
  border-radius: 0.35rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45);
}
.header .commands-help[hidden] {
  display: none;
}
.header .commands-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
}
.header .commands-help-header h2,
.header .commands-help h3 {
  margin: 0;
}
.header .commands-help h2 {
  font-size: 1.35rem;
}
.header .commands-help h3 {
  margin-top: 0.85rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.header .commands-help-close {
  width: 1.65rem;
  min-width: 1.65rem;
  height: 1.65rem;
  min-height: 1.65rem;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
}
.header .commands-help-close:hover {
  color: var(--golden);
  background: rgba(0, 0, 0, 0.35);
  transform: none;
}
.header .commands-help-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.55rem;
  line-height: 1.25;
}
.header .command-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  min-width: 1.85rem;
  height: 1.85rem;
  color: #f3dfad;
  background: #30251c;
  border: 1px solid #9f793b;
  border-radius: 0.3rem;
  font: 700 0.65rem/1 sans-serif;
}
.header .command-icon.mouse {
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.85rem;
  border-radius: 0.65rem 0.65rem 0.5rem 0.5rem;
}
.header .command-icon.mouse::before {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 0.75rem;
  background: #d39b39;
}
.header .command-icon.mouse.left::before {
  left: 0;
  border-radius: 0.55rem 0 0 0;
}
.header .command-icon.mouse.right::before {
  right: 0;
  border-radius: 0 0.55rem 0 0;
}
.header .command-icon.key {
  padding: 0 0.35rem;
}
.header .command-icon.tap {
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #30251c;
  font-size: 0.9rem;
  letter-spacing: -0.25rem;
  padding-right: 0.25rem;
}
.header .command-icon.drag {
  font-size: 1.1rem;
}
body.westeros .header .commands-help {
  background: #dfc999;
  border-color: #74501f;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .header {
    padding-inline: 0.65rem;
  }
  .header .commands-help {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: calc(100vh - 5.5rem);
  }
}
.game-index-page {
  min-height: 100vh;
  color: var(--white);
  background: linear-gradient(rgba(14, 20, 27, 0.84), rgba(14, 20, 27, 0.94)), url("./textureMetal-UQPNMIQH.jpg") center/cover fixed;
}
.game-index {
  width: min(92rem, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) 0;
}
.game-index__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}
.game-index__header h1 {
  margin: 0.2rem 0 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  text-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.75);
}
.game-index__eyebrow {
  color: var(--golden);
  font-size: clamp(0.75rem, 1vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.game-index__account {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
  text-align: right;
}
.game-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.game-index__empty {
  padding: 2rem;
  color: var(--white);
  text-align: center;
  background: rgba(14, 20, 27, 0.78);
  border: 1px solid var(--blackOutline);
}
.game-index-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(15rem, 25vw, 23rem);
  overflow: hidden;
  color: var(--white);
  font-family: var(--font-main);
  border: var(--theme-container-border, 10px) solid transparent;
  border-image-source: var(--theme-container-image, url("./menubg1-FFNLNSSZ.png"));
  border-image-slice: var(--theme-container-slice, 32 fill);
  border-image-repeat: stretch;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.48);
  transition: transform 180ms ease, filter 180ms ease;
}
.game-index-card:hover {
  color: var(--white);
  filter: brightness(1.08);
  transform: translateY(-0.35rem);
}
.game-index-card:focus-visible {
  outline: 3px solid var(--golden);
  outline-offset: 0.3rem;
}
.game-index-card__map,
.game-index-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.game-index-card__map {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: saturate(0.78) contrast(1.08);
  transition: transform 350ms ease, opacity 180ms ease;
}
.game-index-card:hover .game-index-card__map {
  opacity: 0.9;
  transform: scale(1.035);
}
.game-index-card__overlay {
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 15%,
      rgba(0, 0, 0, 0.82) 100%);
}
.game-index-card__content {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  left: clamp(1rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--white);
  text-shadow: 0 0.15rem 0.45rem rgba(0, 0, 0, 0.95);
}
.game-index-card__type,
.game-index-card__round {
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.game-index-card__type {
  color: var(--golden);
}
.game-index-card__name {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  line-height: 1;
}
@media (max-width: 42rem) {
  .game-index {
    width: min(100% - 1rem, 92rem);
  }
  .game-index__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .game-index__account {
    justify-content: flex-start;
    text-align: left;
  }
}
.mobile-map-toolbar,
.mobile-panel-backdrop {
  display: none;
}
@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body.mobile-panel-open {
    overflow: hidden;
  }
  .map {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    overflow: visible;
  }
  .map-stage {
    width: 100%;
    min-width: 0;
  }
  .map .svg-container {
    position: relative;
    display: block;
    width: 100%;
    height: min(76dvh, 52rem);
    min-height: 32rem;
    overflow: hidden;
  }
  .map .map-container {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }
  .map .svg-container svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    touch-action: none;
  }
  .map .svg-container #top-left-interface {
    position: absolute;
    z-index: 40;
    top: 0.55rem !important;
    right: 0.55rem !important;
    left: auto !important;
    display: flex;
    max-width: calc(100% - 1.1rem);
    align-items: flex-start;
    gap: 0.35rem;
  }
  .map .svg-container #top-left-interface > * {
    flex: 0 0 auto;
  }
  .map .live-search {
    width: 2.75rem;
    max-width: calc(100vw - 7.5rem);
    transition: width 180ms ease;
  }
  .map .live-search:focus-within {
    width: min(68vw, 22rem);
  }
  .map .live-search__field {
    width: 100%;
    min-width: 2.75rem;
  }
  .map .live-search__results {
    position: fixed;
    z-index: 1300;
    top: max(4.75rem, env(safe-area-inset-top));
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
    max-height: min(65dvh, 30rem);
  }
  .map .live-search__list {
    max-height: min(65dvh, 30rem);
  }
  .map #top-left-interface .map-overlay-controls button,
  .map .live-search__field {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .map #top-left-interface .sector-back {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    background-size: cover;
  }
  .map .technology-button {
    z-index: 35;
    top: 0.65rem !important;
    left: 0.65rem;
    transform: none;
  }
  .map .draw-buttons-container {
    z-index: 35;
    right: 50%;
    bottom: 0.65rem !important;
    display: flex;
    gap: 0.35rem;
    transform: translateX(50%);
  }
  .map .draw-buttons-container button,
  .mobile-map-toolbar__button {
    box-sizing: border-box;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.65rem;
    font: inherit;
    cursor: pointer;
  }
  .map .svg-container .info-container {
    position: absolute;
    z-index: 30;
    right: 0.55rem;
    bottom: 4rem !important;
    left: 0.55rem !important;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    max-height: 31%;
    overflow: auto;
    transform: none;
  }
  .map .svg-container .info-container.hide-left {
    left: -200% !important;
  }
  .map .svg-container .info-container.active-left {
    left: 0.55rem !important;
  }
  .layers-container,
  .map-list {
    position: fixed !important;
    z-index: 1200;
    right: 0.5rem !important;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: 0.5rem !important;
    top: auto !important;
    box-sizing: border-box;
    width: auto !important;
    max-width: none;
    max-height: min(68dvh, 38rem);
    margin: 0 !important;
    overflow: auto;
    transform: translateY(calc(100% + 1rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 180ms ease;
  }
  .layers-container {
    display: block;
    padding: 0.75rem;
    color: var(--theme-panel-text, var(--white));
    background: var(--blackSecond);
    border: 2px solid var(--blackOutline);
  }
  body.ascendance .layers-container,
  body.westeros .layers-container {
    background-color: transparent;
    border: var(--theme-container-border) solid transparent;
    border-image-source: var(--theme-container-image);
    border-image-slice: var(--theme-container-slice);
    border-image-repeat: stretch;
  }
  body.mobile-layers-open .layers-container,
  body.mobile-factions-open .map-list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .layers-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .layers-buttons-container .button {
    width: 100%;
    min-height: 2.75rem;
    height: auto;
    white-space: normal;
  }
  .layers-legends {
    width: 100%;
    box-sizing: border-box;
  }
  .layers-legends .legend-item.active {
    min-height: 2rem;
  }
  .map-list {
    min-width: 0;
    padding: 0.75rem;
    text-align: left;
  }
  .map-list-faction {
    min-height: 2.75rem;
    font-size: 0.9rem;
  }
  .map-list-faction .diplomacy-wrapper:not(.disable) {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 8rem;
  }
  .mobile-map-toolbar {
    position: fixed;
    z-index: 1000;
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    display: flex;
    gap: 0.4rem;
  }
  .mobile-map-toolbar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--white);
    background: var(--blackSecond);
    border: 1px solid var(--golden);
    border-radius: 0.35rem;
    box-shadow: 0 0.25rem 0.8rem rgba(0, 0, 0, 0.45);
  }
  body.westeros .mobile-map-toolbar__button,
  body.ascendance .mobile-map-toolbar__button {
    color: var(--theme-item-text);
    background-color: var(--theme-filter-background);
    border: var(--theme-filter-border) solid transparent;
    border-image-source: var(--theme-filter-image);
    border-image-slice: var(--theme-filter-slice);
    border-image-repeat: stretch;
    border-radius: 0;
  }
  .mobile-panel-backdrop {
    position: fixed;
    z-index: 1150;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(1px);
  }
  .mobile-panel-backdrop[hidden] {
    display: none;
  }
  .interface.active-left,
  .interface.active-right,
  .interface.active-top,
  .interface.active-bottom {
    position: fixed !important;
    z-index: 1250;
    right: 0.5rem !important;
    bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
    left: 0.5rem !important;
    top: auto !important;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(78dvh, 46rem) !important;
    overflow: auto;
    transform: none !important;
  }
  #army-interface,
  #city-interface,
  #technology-interface,
  #transfert-interface,
  #recrutement-interface,
  #troop-interface,
  #general-interface,
  #building-interface {
    box-sizing: border-box;
    min-width: 0;
    max-width: none;
  }
  #recrutement-interface {
    max-width: none;
  }
  .interface > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .interface > .container .close,
  .army-container-buttons-close,
  .city-container-buttons-close,
  .entity-interface-close {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
  .army {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .army-container-troop-container {
    max-height: 52dvh;
    scrollbar-gutter: auto;
  }
  .army-container-troop-container,
  .army-container-general-container {
    justify-content: center;
  }
  .army-container-troop,
  .army-container-general {
    width: clamp(5.5rem, 28vw, 6.5rem);
    height: clamp(5.5rem, 28vw, 6.5rem);
  }
  .army-container-footer,
  .army-infos,
  .city-container-footer,
  .city-container-header,
  .army-container-infos {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .transfert-container .transfert-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .transfert-container .transfert-content {
    flex-direction: column;
  }
  .transfert-container .transfert-content > .container {
    box-sizing: border-box;
    width: 100%;
  }
  .transfert-container .transfert-content .transfert-army-target .transfert-troops-item {
    flex-direction: row;
  }
  .transfert-container .transfert-content .transfert-army-target .transfert-troops-item-transfert-one {
    margin-right: 0;
    margin-left: auto;
  }
  .technology-container .tech-tabs {
    gap: 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .technology-container .tech-tabs .tech-tab {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
  }
  .technology-container .tech-tabs-content .tech-tab-content .branches,
  .general-container-skills .skills-branches {
    flex-direction: column;
    gap: 1rem;
  }
  .technology-container .tech-tabs-content .tech-tab-content .branches .branch,
  .general-container-skills .skills-branches .skills-branch {
    width: 100%;
  }
  .unit-container-infos,
  .general-container-infos {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .unit-container-stats,
  .general-container-stats {
    grid-template-columns: 1fr;
  }
  .unit-container-stats > *,
  .general-container-stats > * {
    grid-column: auto;
  }
  .city-container-buildings,
  .city-container-fortifications,
  .city-container-troops {
    flex-wrap: wrap;
  }
  .city-container #building-list-interface {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }
  .city-container #building-list-interface .building-list-container {
    width: 100%;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .airport-transfer-menu {
    position: fixed;
    z-index: 1400;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    top: auto;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: none;
  }
  .timeline-container {
    box-sizing: border-box;
    width: calc(100% - 1rem);
    margin: 0.5rem;
  }
  .army-simulation-timeline {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
  }
  .army-simulation-time,
  .army-simulation-status {
    min-width: 0;
    grid-row: 2;
  }
  .dynasty-container {
    box-sizing: border-box;
    width: calc(100% - 1rem);
    margin: 0.5rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
  .dynasty-container .family-tree-container {
    position: fixed;
    z-index: 1300;
    inset: 0.5rem;
    max-width: none;
    max-height: none;
    transform: none;
  }
  .family-tree {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dynasty-modal-overlay {
    padding: 0.5rem;
    box-sizing: border-box;
  }
  .dynasty-modal,
  .dynasty-modal.large {
    box-sizing: border-box;
    width: 100%;
    max-width: min(100%, 40rem);
    max-height: calc(100dvh - 1rem);
    overflow: auto;
  }
}
@media (max-width: 700px) {
  .header {
    box-sizing: border-box;
    width: calc(100% - 1rem);
    margin: 0.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.55rem 0.7rem;
  }
  body.ascendance .container.header,
  body.westeros .container.header {
    padding: 0.55rem 0.7rem;
    border-width: 0.5rem 1.1rem 0.75rem;
  }
  .header-title {
    grid-column: 1/-1;
    grid-row: 1;
    min-width: 0;
    text-align: center;
  }
  .header-title h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.05;
  }
  .header-date {
    margin-top: 0.2rem;
    font-size: 0.75rem;
  }
  .header-account {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.45rem;
    font-size: 0.78rem;
  }
  .header-account-name {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 2;
    gap: 0.35rem;
    justify-content: flex-end;
  }
  .header .round-control {
    justify-content: flex-end;
    gap: 0.3rem;
    white-space: normal;
  }
  .header .round-label {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .header .round-action-button {
    min-height: 2.35rem;
    margin-left: 0;
    padding: 0.35rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.1;
  }
  .header-commands-toggle {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    min-height: 2.35rem;
  }
  .header .commands-help {
    top: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-height: none;
  }
  .map {
    padding: 0 0.5rem 0.5rem;
  }
  .map .svg-container {
    height: calc(100dvh - 8.5rem);
    min-height: 28rem;
    max-height: 48rem;
  }
  .map .map-container {
    border-radius: 0;
  }
  .map .svg-container .info-container {
    max-height: 36%;
    font-size: 0.85rem;
  }
  .map .svg-container .info-container .information-title {
    font-size: 1rem;
  }
  .map .svg-container .info-container .information-item {
    font-size: 0.8rem;
  }
  .mobile-map-toolbar {
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
  .mobile-map-toolbar__button {
    min-width: 0;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }
  .layers-container,
  .map-list {
    right: 0.35rem !important;
    left: 0.35rem !important;
    bottom: max(0.35rem, env(safe-area-inset-bottom));
    max-height: 72dvh;
  }
  .layers-buttons-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layers-buttons-container .layers-button-label {
    white-space: normal;
    line-height: 1.15;
  }
  .map-list-faction .diplomacy-wrapper:not(.disable) {
    grid-template-columns: 1fr;
    max-height: 10rem;
  }
  .interface.active-left,
  .interface.active-right,
  .interface.active-top,
  .interface.active-bottom {
    right: 0.35rem !important;
    left: 0.35rem !important;
    bottom: max(0.35rem, env(safe-area-inset-bottom)) !important;
    max-height: 82dvh !important;
  }
  #army-encounters-interface {
    right: 0.35rem;
    left: 0.35rem;
    width: auto;
    max-width: none;
  }
  #army-encounters-interface > .container {
    max-height: 84dvh;
  }
  .army-encounter {
    padding: 0.65rem;
  }
  .army-encounter-groups {
    overflow-x: visible;
  }
  .army-encounter-group {
    min-width: 0;
    flex-basis: auto;
  }
  .army-battle-resolution,
  .army-battle-configuration,
  .army-battle-camps {
    grid-template-columns: 1fr;
  }
  .army-battle-participant-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .army-battle-participant-actions button,
  .army-battle-danger-zone button {
    width: 100%;
  }
  .army-simulation-timeline {
    padding: 0.5rem;
  }
  .army-simulation-status {
    font-size: 0.7rem;
  }
  .unit-container-stats,
  .general-container-stats {
    gap: 0.35rem;
  }
  .recrutement-container-units {
    gap: 0.65rem;
  }
  .recrutement-container-units .item {
    width: calc(50% - 0.35rem);
    min-width: 8rem;
  }
  .transfert-troops-item {
    min-height: 2.5rem;
  }
  .timeline-container .timeline-track {
    min-height: 3rem;
    height: auto;
  }
  .timeline-container .timeline-track .timeline-handle {
    width: 2.75rem;
    height: 2.75rem;
  }
  .game-index-card {
    min-height: 13rem;
  }
}
@media (max-width: 420px) {
  .header-account-name {
    display: none;
  }
  .header .round-action-button [data-round-action-label] {
    max-width: 6.8rem;
    white-space: normal;
    text-align: left;
  }
  .map .live-search:focus-within {
    width: calc(100vw - 7.2rem);
  }
  .mobile-map-toolbar__button span:last-child {
    display: none;
  }
  .mobile-map-toolbar__button {
    width: 2.75rem;
    padding: 0;
  }
  .recrutement-container-units .item {
    width: 100%;
  }
  .dynasty-modal .modal-tabs,
  .dynasty-modal .modal-actions {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .layers-container,
  .map-list,
  .mobile-panel-backdrop {
    transition: none;
  }
}
@media (max-width: 1024px) {
  .map .svg-container .info-container {
    position: fixed !important;
    z-index: 1100;
    top: auto !important;
    right: auto !important;
    bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: min(100vw - 1rem, 46rem) !important;
    min-width: 0 !important;
    max-width: 46rem !important;
    max-height: min(30dvh, 14rem);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    opacity: 1;
    transform: translate3d(-50%, 0, 0) !important;
    transition: transform 180ms ease, opacity 150ms ease;
  }
  .map .svg-container .info-container.hide-left {
    left: 50% !important;
    right: auto !important;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 5rem), 0) !important;
  }
  .map .svg-container .info-container:not(.hide-left) {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0) !important;
  }
  .map .svg-container .info-container .information-content,
  .map .svg-container .info-container .information-items,
  .map .svg-container .info-container .information-item,
  .map .svg-container .info-container .information-title {
    min-width: 0;
    max-width: 100%;
  }
  .map .svg-container .info-container .information-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .map .svg-container .info-container .information-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #army-interface {
    position: fixed !important;
    z-index: 1260;
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    box-sizing: border-box;
    width: min(100vw - 1rem, 50rem) !important;
    min-width: 0 !important;
    max-width: 50rem !important;
    max-height: min(58dvh, 34rem) !important;
    transform: translateX(-50%) !important;
  }
  #army-interface:not(.hide-bottom) {
    bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
  }
  #army-interface.hide-bottom {
    bottom: -200% !important;
  }
  #army-interface > .army-container.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.55rem;
  }
  #army-interface .army-container-infos {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
  }
  #army-interface .army-container-troop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
    max-height: min(31dvh, 15rem);
    padding: 0.15rem 0.1rem 0.3rem;
    overflow-y: auto;
  }
  #army-interface .army-container-general-container {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  #army-interface .army-container-troop {
    flex: 0 0 clamp(4rem, 17vw, 4.5rem);
    width: clamp(4rem, 17vw, 4.5rem);
    height: clamp(4rem, 17vw, 4.5rem);
  }
  #army-interface .army-container-general {
    flex: 0 0 clamp(4.5rem, 19vw, 5rem);
    width: clamp(4.5rem, 19vw, 5rem);
    height: clamp(4.5rem, 19vw, 5rem);
  }
  #army-interface .army-container-troop-life,
  #army-interface .army-container-general-life {
    top: 0.12rem;
    height: 10px;
    font-size: 0.72rem;
  }
  #army-interface .army-container-troop-total,
  #army-interface .army-container-general-total {
    top: 0.12rem;
    min-width: 1.4rem;
    padding: 1px 3px;
    font-size: 0.68rem;
  }
  #army-interface .army-container-troop-quantity,
  #army-interface .army-container-general-quantity {
    padding: 1px 3px;
    font-size: 0.62rem;
  }
  #army-interface .army-container-troop-tier,
  #army-interface .army-container-general-tier {
    min-width: 13px;
    height: 13px;
    padding: 0 2px;
    font-size: 0.55rem;
  }
  #army-interface .army-container-footer {
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }
  .map .svg-container:has(#army-interface:not(.hide-bottom)) .info-container {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(-50%, calc(100% + 5rem), 0) !important;
  }
}
@media (max-width: 700px) {
  .map .svg-container .info-container {
    bottom: max(0.3rem, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 0.6rem) !important;
    max-width: calc(100vw - 0.6rem) !important;
    max-height: min(28dvh, 12rem);
  }
  .map .svg-container .info-container.hide-left {
    left: 50% !important;
    right: auto !important;
  }
  #army-interface {
    width: calc(100vw - 0.6rem) !important;
    max-height: min(54dvh, 30rem) !important;
  }
  #army-interface:not(.hide-bottom) {
    bottom: max(0.3rem, env(safe-area-inset-bottom)) !important;
  }
  #army-interface > .army-container.container {
    padding: 0.45rem;
  }
  #army-interface .army-container-troop-container {
    max-height: min(29dvh, 13rem);
  }
  #army-interface .army-container-troop {
    flex-basis: clamp(3.8rem, 17vw, 4.3rem);
    width: clamp(3.8rem, 17vw, 4.3rem);
    height: clamp(3.8rem, 17vw, 4.3rem);
  }
  #army-interface .army-container-general {
    flex-basis: clamp(4.25rem, 19vw, 4.75rem);
    width: clamp(4.25rem, 19vw, 4.75rem);
    height: clamp(4.25rem, 19vw, 4.75rem);
  }
}

/* assets/styles/components/_trade-routes.scss */
.trade-routes path {
  fill: none;
  stroke: #ffd36b;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  pointer-events: stroke;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px #111);
}
.trade-routes path:focus {
  outline: none;
}
.trade-routes path:focus-visible {
  stroke: #fff;
  stroke-width: 6;
}
#trade-route-panel {
  position: absolute;
  left: var(--theme-interface-side, 2rem);
  top: 6rem;
  width: min(26rem, 100% - 4rem);
  max-height: calc(100% - 8rem);
  overflow-y: auto;
  z-index: 3;
  box-sizing: border-box;
  padding: 1rem;
}
#trade-route-panel[hidden],
#trade-route-panel [hidden] {
  display: none !important;
}
#trade-route-panel > .close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 1;
  box-sizing: border-box;
  width: 2.4rem;
  height: 2.4rem;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid var(--golden);
  border-radius: 50%;
  background-color: var(--black);
  background-origin: content-box;
  box-shadow: 0 0.2rem 0.45rem rgba(37, 35, 30, 0.28);
}
#trade-route-panel h2 {
  padding-right: 3rem;
  overflow-wrap: anywhere;
}
#trade-route-panel section {
  border-top: 1px solid currentColor;
  margin-top: 1rem;
  padding-top: 0.75rem;
}
#trade-route-panel ul {
  padding-left: 1.25rem;
}
.trade-route-region {
  stroke: #ffd36b !important;
  stroke-width: 4 !important;
  vector-effect: non-scaling-stroke;
  filter: brightness(1.25);
}
/*# sourceMappingURL=app-mu8ds431d8onnr.css.map */
