/* [project]/src/components/pages/TechTreeContent.module.css [app-client] (css) */
html:has(.TechTreeContent-module__wmVYPG__page) {
  scrollbar-gutter: auto;
  overflow-y: hidden;
}

body:has(.TechTreeContent-module__wmVYPG__page) > footer {
  display: none;
}

.TechTreeContent-module__wmVYPG__page {
  color: #3a2118;
  background: #2c1d13 url("/lobby/aoe/lobby-background.webp") center / cover no-repeat;
  width: 100vw;
  max-width: none;
  height: calc(100dvh - 57px);
  min-height: 660px;
  margin-inline: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__searchBox {
  background-image: url("/lobby/aoe/input-right.webp"), url("/lobby/aoe/input-left.webp"), url("/lobby/aoe/input-center.webp");
  background-position: 100%, 0, center;
  background-repeat: no-repeat;
  background-size: auto 100%, auto 100%, calc(100% - 36px) 100%;
  align-items: center;
  min-width: 0;
  height: 45px;
  display: flex;
  position: relative;
}

.TechTreeContent-module__wmVYPG__civPicker {
  background-image: url("/lobby/aoe/dropdown-right.webp"), url("/lobby/aoe/dropdown-left.webp"), url("/lobby/aoe/dropdown-center.webp");
  background-position: 100%, 0, center;
  background-repeat: no-repeat;
  background-size: auto 100%, auto 100%, calc(100% - 36px) 100%;
  min-width: 0;
  height: 45px;
  position: relative;
}

.TechTreeContent-module__wmVYPG__searchBox input {
  appearance: none;
  color: #43261c;
  width: 100%;
  min-width: 0;
  height: 39px;
  font-family: var(--font-display);
  background: none;
  border: 0;
  outline: 0;
  font-size: 18px;
  font-weight: 700;
}

.TechTreeContent-module__wmVYPG__civPickerButton {
  cursor: pointer;
  color: #43261c;
  width: 100%;
  min-width: 0;
  height: 100%;
  font-family: var(--font-display);
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 8px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
}

.TechTreeContent-module__wmVYPG__civPickerButton img {
  object-fit: contain;
  flex: none;
  width: 29px;
  height: 29px;
}

.TechTreeContent-module__wmVYPG__civPickerButton span {
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__civPickerButton svg {
  color: #5f3927;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform .12s;
}

.TechTreeContent-module__wmVYPG__civPicker[data-open="true"] .TechTreeContent-module__wmVYPG__civPickerButton svg {
  transform: rotate(180deg);
}

.TechTreeContent-module__wmVYPG__civPickerMenu {
  z-index: 80;
  scrollbar-color: #765536 #ac896c;
  scrollbar-width: thin;
  background: #c9a581 url("/lobby/aoe/panel-inlay.webp");
  border: 2px ridge #765539;
  width: 100%;
  max-height: 430px;
  padding: 4px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  overflow-y: auto;
  box-shadow: 0 10px 20px #2d180e7a, inset 0 0 0 1px #efcfab66;
}

.TechTreeContent-module__wmVYPG__civPickerMenu > button {
  cursor: pointer;
  color: #43261c;
  width: 100%;
  min-height: 40px;
  font-family: var(--font-display);
  text-align: left;
  border: 1px solid #0000;
  align-items: center;
  gap: 9px;
  padding: 4px 7px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.TechTreeContent-module__wmVYPG__civPickerMenu > button:hover, .TechTreeContent-module__wmVYPG__civPickerMenu > button[aria-selected="true"] {
  background: #efcfa961;
  border-color: #653d266b;
}

.TechTreeContent-module__wmVYPG__civPickerMenu img {
  object-fit: contain;
  flex: none;
  width: 31px;
  height: 31px;
}

.TechTreeContent-module__wmVYPG__civPickerMenu span {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__civPickerMenu svg {
  color: #693b27;
  flex: none;
  width: 14px;
  height: 14px;
}

.TechTreeContent-module__wmVYPG__searchBox > svg {
  color: #79533c;
  flex: none;
  width: 17px;
  height: 17px;
  margin-left: 13px;
}

.TechTreeContent-module__wmVYPG__searchBox input {
  color: #ead9c1;
  padding: 0 36px 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 400;
}

.TechTreeContent-module__wmVYPG__searchBox input::placeholder {
  color: #aa8e75;
  opacity: 1;
}

.TechTreeContent-module__wmVYPG__searchBox > svg {
  color: #b18c69;
}

.TechTreeContent-module__wmVYPG__searchBox button {
  cursor: pointer;
  color: #6c4431;
  place-items: center;
  width: 25px;
  height: 25px;
  display: grid;
  position: absolute;
  right: 9px;
}

.TechTreeContent-module__wmVYPG__searchBox button svg {
  width: 14px;
  height: 14px;
}

.TechTreeContent-module__wmVYPG__availabilityToggle {
  cursor: pointer;
  color: #f5dfbd;
  width: 100%;
  min-width: 0;
  height: 43px;
  font-family: var(--font-display);
  text-shadow: 0 1px 2px #1d100b;
  background: url("/lobby/aoe/button-brown.webp") center / 100% 100% no-repeat;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 19px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.TechTreeContent-module__wmVYPG__availabilityToggle:hover {
  background-image: url("/lobby/aoe/button-brown-hover.webp");
}

.TechTreeContent-module__wmVYPG__availabilityToggle[data-active="true"] {
  color: #ffdca9;
}

.TechTreeContent-module__wmVYPG__availabilityToggle svg {
  width: 15px;
  height: 15px;
}

.TechTreeContent-module__wmVYPG__legend {
  color: #513527;
  text-transform: uppercase;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.TechTreeContent-module__wmVYPG__legend > span {
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.TechTreeContent-module__wmVYPG__boardStage {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__treeFrame {
  --civ-panel-width: 382px;
  --tree-head: 94px;
  --age-dark-row: 112px;
  --age-row: 200px;
  --tree-content-height: calc(var(--tree-head) + var(--age-dark-row) + var(--age-row) + var(--age-row) + var(--age-row));
  background: #c09e82 url("/lobby/aoe/panel-inlay.webp");
  border: 0;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 5px 11px #45271747;
}

.TechTreeContent-module__wmVYPG__treeViewport {
  overscroll-behavior-inline: contain;
  scrollbar-color: #765536 #312116;
  scrollbar-width: auto;
  touch-action: pan-y;
  cursor: grab;
  flex: 1;
  width: auto;
  min-width: 0;
  height: 100%;
  display: flex;
  overflow: auto hidden;
}

.TechTreeContent-module__wmVYPG__treeViewport img {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.TechTreeContent-module__wmVYPG__treeViewport[data-dragging="true"] {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.TechTreeContent-module__wmVYPG__treeViewport[data-dragging="true"] * {
  cursor: grabbing !important;
}

.TechTreeContent-module__wmVYPG__treeViewport::-webkit-scrollbar {
  height: 17px;
}

.TechTreeContent-module__wmVYPG__treeViewport::-webkit-scrollbar-track {
  background: #342319;
  box-shadow: inset 0 1px 3px #100a06;
}

.TechTreeContent-module__wmVYPG__treeViewport::-webkit-scrollbar-thumb {
  background: linear-gradient(#ae8654, #755130);
  border: 3px solid #342319;
}

.TechTreeContent-module__wmVYPG__civPanel {
  z-index: 24;
  width: var(--civ-panel-width);
  min-width: var(--civ-panel-width);
  scrollbar-color: #765536 transparent;
  scrollbar-width: thin;
  cursor: default;
  background: linear-gradient(#ba9070e6, #a98063f0), url("/lobby/aoe/panel-inlay.webp");
  border-right: 3px ridge #6f5035;
  flex-direction: column;
  height: 100%;
  display: flex;
  position: relative;
  overflow-y: auto;
  box-shadow: 11px 0 20px #40231438, inset -1px 0 #eecca55c;
}

.TechTreeContent-module__wmVYPG__civPanelHead {
  background: #e5c29b2e;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px 15px 8px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__civPanelHead > img {
  object-fit: contain;
  filter: drop-shadow(0 4px 4px #2d180e73);
  flex: none;
  width: 76px;
  height: 76px;
}

.TechTreeContent-module__wmVYPG__civPanelHead .TechTreeContent-module__wmVYPG__civPicker {
  flex: 1;
}

.TechTreeContent-module__wmVYPG__civPanelHead .TechTreeContent-module__wmVYPG__civPickerButton {
  font-size: 21px;
}

.TechTreeContent-module__wmVYPG__civArchetype {
  color: #694936;
  border-bottom: 2px ridge #765539;
  margin: 0;
  padding: 0 15px 11px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.TechTreeContent-module__wmVYPG__panelTools {
  background: #6c473014;
  border-top: 2px ridge #765539;
  gap: 8px;
  padding: 11px 14px 12px;
  display: grid;
}

.TechTreeContent-module__wmVYPG__panelTools .TechTreeContent-module__wmVYPG__searchBox {
  width: 100%;
  height: 42px;
}

.TechTreeContent-module__wmVYPG__panelTools .TechTreeContent-module__wmVYPG__availabilityToggle {
  height: 39px;
}

.TechTreeContent-module__wmVYPG__panelTools .TechTreeContent-module__wmVYPG__legend {
  padding: 2px 3px 0;
  font-size: 11px;
}

.TechTreeContent-module__wmVYPG__panelTools .TechTreeContent-module__wmVYPG__legendSwatch {
  width: 14px;
  height: 14px;
}

.TechTreeContent-module__wmVYPG__panelTools .TechTreeContent-module__wmVYPG__searchBox input {
  font-size: 15px;
}

.TechTreeContent-module__wmVYPG__civPanelBody {
  flex: none;
  padding: 14px 16px 22px;
  overflow: visible;
}

.TechTreeContent-module__wmVYPG__civPanelBody section + section {
  margin-top: 16px;
}

.TechTreeContent-module__wmVYPG__civPanelBody h2 {
  color: #48271d;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 1px #e4c19d;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.TechTreeContent-module__wmVYPG__civPanelBody ul {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.TechTreeContent-module__wmVYPG__civPanelBody li {
  color: #4f3327;
  padding-left: 11px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.28;
  position: relative;
}

.TechTreeContent-module__wmVYPG__civPanelBody li:before {
  content: "";
  background: #bc7c3f;
  border: 1px solid #5a301f;
  width: 5px;
  height: 5px;
  position: absolute;
  top: .34em;
  left: 0;
  transform: rotate(45deg);
}

.TechTreeContent-module__wmVYPG__uniqueUnitList {
  gap: 6px;
  display: grid;
}

.TechTreeContent-module__wmVYPG__uniqueUnitRow {
  cursor: default;
  color: #4a2d22;
  text-align: left;
  background: #edcda633;
  border: 1px solid #55301f47;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 5px 7px 5px 5px;
  transition: border-color .1s, background-color .1s, transform .1s;
  display: flex;
}

.TechTreeContent-module__wmVYPG__uniqueUnitRow:hover, .TechTreeContent-module__wmVYPG__uniqueUnitRow:focus-visible {
  background: #ebc9a466;
  border-color: #643656a8;
  outline: none;
  transform: translateX(2px);
}

.TechTreeContent-module__wmVYPG__uniqueUnitPortrait {
  border: 2px solid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 2px 5px #30180e47;
}

.TechTreeContent-module__wmVYPG__uniqueUnitPortrait .TechTreeContent-module__wmVYPG__techIcon {
  border: 0;
  width: 36px;
  height: 36px;
}

.TechTreeContent-module__wmVYPG__uniqueUnitRow > span:last-child {
  min-width: 0;
}

.TechTreeContent-module__wmVYPG__uniqueUnitRow strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: block;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__uniqueUnitRow small {
  color: #76533e;
  text-transform: capitalize;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.TechTreeContent-module__wmVYPG__ageRail {
  z-index: 2;
  grid-template-rows: var(--tree-head) var(--age-dark-row) repeat(3, var(--age-row)) minmax(0, 1fr);
  background: #c09e82 url("/lobby/aoe/panel-inlay.webp");
  border-right: 3px ridge #6f5035;
  width: 142px;
  min-width: 142px;
  height: 100%;
  display: grid;
  position: relative;
  box-shadow: 8px 0 13px #46281724;
}

.TechTreeContent-module__wmVYPG__ageRailHead {
  border-bottom: 0;
}

.TechTreeContent-module__wmVYPG__ageLabel {
  text-align: center;
  border-bottom: 1px solid #4a2f1f66;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.TechTreeContent-module__wmVYPG__ageLabel[data-age="1"], .TechTreeContent-module__wmVYPG__ageCell[data-age="1"] {
  background-color: #0000;
}

.TechTreeContent-module__wmVYPG__ageLabel[data-age="2"], .TechTreeContent-module__wmVYPG__ageCell[data-age="2"] {
  background-color: #ebd2b44d;
}

.TechTreeContent-module__wmVYPG__ageLabel[data-age="3"], .TechTreeContent-module__wmVYPG__ageCell[data-age="3"] {
  background-color: #5b392617;
}

.TechTreeContent-module__wmVYPG__ageLabel[data-age="4"], .TechTreeContent-module__wmVYPG__ageCell[data-age="4"] {
  background-color: #e8c9a542;
  border-bottom: 0;
}

.TechTreeContent-module__wmVYPG__ageRailRemainder {
  background-color: #e8c9a542;
}

.TechTreeContent-module__wmVYPG__ageLabel img {
  object-fit: contain;
  filter: drop-shadow(0 4px 4px #361d1173);
  width: 48px;
  height: 61px;
}

.TechTreeContent-module__wmVYPG__ageLabel strong {
  color: #44271d;
  font-family: var(--font-display);
  letter-spacing: .015em;
  text-shadow: 0 1px #e5c6a2;
  -webkit-text-stroke: .2px currentcolor;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
}

.TechTreeContent-module__wmVYPG__treeCanvas {
  isolation: isolate;
  background: #c09e82 url("/lobby/aoe/panel-inlay.webp");
  min-width: max-content;
  height: 100%;
  display: flex;
  position: relative;
}

.TechTreeContent-module__wmVYPG__treeCanvas:after {
  z-index: 0;
  top: var(--tree-content-height);
  content: "";
  background-color: #e8c9a542;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.TechTreeContent-module__wmVYPG__treeEmpty {
  width: 640px;
  height: var(--tree-content-height);
  color: #583629;
  font-family: var(--font-display);
  text-align: center;
  place-items: center;
  padding: 30px;
  font-size: 18px;
  font-weight: 700;
  display: grid;
}

.TechTreeContent-module__wmVYPG__buildingLane {
  z-index: 1;
  height: var(--tree-content-height);
  grid-template-rows: var(--tree-head) var(--age-dark-row) repeat(3, var(--age-row));
  flex: none;
  min-width: 176px;
  display: grid;
  position: relative;
}

.TechTreeContent-module__wmVYPG__buildingHead, .TechTreeContent-module__wmVYPG__ageCell {
  z-index: 2;
  border-bottom: 1px solid #4e311f61;
  position: relative;
}

.TechTreeContent-module__wmVYPG__buildingHead {
  background: none;
  border-bottom: 0;
  place-items: center;
  padding: 5px 10px;
  display: grid;
}

.TechTreeContent-module__wmVYPG__trunk {
  z-index: 0;
  background: #49301f;
  width: 2px;
  position: absolute;
  top: 72px;
  left: 50%;
  box-shadow: 1px 0 #e5c49d94;
}

.TechTreeContent-module__wmVYPG__buildingCard, .TechTreeContent-module__wmVYPG__nodeCard {
  font-family: Arial, Helvetica, sans-serif;
}

.TechTreeContent-module__wmVYPG__buildingCard {
  color: #fff1d7;
  background: linear-gradient(#9d3010b8, #6f1f0cd1), url("/lobby/aoe/button-brown.webp") center / cover;
  border: 1px solid #c26c31;
  border-radius: 0;
  outline: 2px solid #251911;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
  width: 80px;
  min-height: 84px;
  padding: 5px 3px 3px;
  transition: filter .12s, transform .12s;
  display: flex;
  position: relative;
  box-shadow: 0 4px 7px #3a1f127a, inset 0 0 0 1px #efa75e45;
}

.TechTreeContent-module__wmVYPG__buildingCard:hover, .TechTreeContent-module__wmVYPG__nodeCard:hover {
  z-index: 8;
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.TechTreeContent-module__wmVYPG__buildingCard strong {
  -webkit-line-clamp: 2;
  text-align: center;
  text-shadow: 0 1px 1px #22120c;
  -webkit-box-orient: vertical;
  max-width: 72px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.02;
  display: -webkit-box;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__ageCell {
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  padding: 20px 8px 7px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__branch {
  z-index: 0;
  background: #49301f;
  height: 2px;
  position: absolute;
  top: 12px;
  box-shadow: 0 1px #e6c59e85;
}

.TechTreeContent-module__wmVYPG__nodeConnector {
  z-index: 0;
  background: #49301f;
  width: 2px;
  position: absolute;
  top: 12px;
  transform: translateX(-1px);
  box-shadow: 1px 0 #e6c59e85;
}

.TechTreeContent-module__wmVYPG__nodeGrid {
  z-index: 2;
  grid-auto-rows: 82px;
  justify-content: center;
  gap: 14px;
  width: 100%;
  display: grid;
  position: relative;
}

.TechTreeContent-module__wmVYPG__nodeSlot {
  z-index: 1;
  width: 78px;
  height: 82px;
  display: block;
  position: relative;
}

.TechTreeContent-module__wmVYPG__nodeCard {
  z-index: 1;
  color: #fff8e8;
  border: 1px solid #b8a173;
  border-radius: 0;
  outline: 2px solid #211711;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
  width: 78px;
  min-height: 82px;
  padding: 4px 3px 3px;
  transition: filter .12s, transform .12s, opacity .12s;
  display: flex;
  position: relative;
  box-shadow: 0 4px 7px #371f126e, inset 0 0 0 1px #ffedc529;
}

.TechTreeContent-module__wmVYPG__nodeLabel {
  -webkit-line-clamp: 2;
  text-align: center;
  text-shadow: 0 1px 1px #17100b;
  -webkit-box-orient: vertical;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.02;
  display: -webkit-box;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__nodeCard .TechTreeContent-module__wmVYPG__techIcon, .TechTreeContent-module__wmVYPG__buildingCard .TechTreeContent-module__wmVYPG__techIcon {
  width: 46px;
  height: 46px;
}

.TechTreeContent-module__wmVYPG__unit, .TechTreeContent-module__wmVYPG__legendSwatch.TechTreeContent-module__wmVYPG__unit, .TechTreeContent-module__wmVYPG__detailIcon.TechTreeContent-module__wmVYPG__unit {
  background: linear-gradient(150deg, #087e9f, #03516f);
  border-color: #35b4d0;
}

.TechTreeContent-module__wmVYPG__regionalUnit, .TechTreeContent-module__wmVYPG__legendSwatch.TechTreeContent-module__wmVYPG__regionalUnit, .TechTreeContent-module__wmVYPG__detailIcon.TechTreeContent-module__wmVYPG__regionalUnit {
  background: linear-gradient(150deg, #3e65d5, #29439d);
  border-color: #758de3;
}

.TechTreeContent-module__wmVYPG__uniqueUnit, .TechTreeContent-module__wmVYPG__legendSwatch.TechTreeContent-module__wmVYPG__uniqueUnit, .TechTreeContent-module__wmVYPG__detailIcon.TechTreeContent-module__wmVYPG__uniqueUnit {
  background: linear-gradient(150deg, #74447d, #4b294f);
  border-color: #a56aad;
}

.TechTreeContent-module__wmVYPG__building, .TechTreeContent-module__wmVYPG__legendSwatch.TechTreeContent-module__wmVYPG__building, .TechTreeContent-module__wmVYPG__detailIcon.TechTreeContent-module__wmVYPG__building {
  background: linear-gradient(150deg, #a53b15, #6e220d);
  border-color: #dd7135;
}

.TechTreeContent-module__wmVYPG__tech, .TechTreeContent-module__wmVYPG__legendSwatch.TechTreeContent-module__wmVYPG__tech, .TechTreeContent-module__wmVYPG__detailIcon.TechTreeContent-module__wmVYPG__tech {
  background: linear-gradient(150deg, #2f7f45, #17502c);
  border-color: #50a96a;
}

.TechTreeContent-module__wmVYPG__techIcon {
  background: #080b0d;
  border: 1px solid #21160f;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #f4daac29;
}

.TechTreeContent-module__wmVYPG__techIcon img, .TechTreeContent-module__wmVYPG__techIcon svg {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.TechTreeContent-module__wmVYPG__techIconLarge {
  width: 52px;
  height: 52px;
}

.TechTreeContent-module__wmVYPG__unavailable {
  opacity: .82;
  filter: saturate(.32) brightness(.64);
}

.TechTreeContent-module__wmVYPG__unavailable:hover {
  opacity: .97;
  filter: saturate(.46) brightness(.83);
}

.TechTreeContent-module__wmVYPG__unavailableMark {
  z-index: 5;
  pointer-events: none;
  width: 42px;
  height: 42px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.TechTreeContent-module__wmVYPG__unavailableMark:before, .TechTreeContent-module__wmVYPG__unavailableMark:after {
  content: "";
  background: linear-gradient(#7a2c16, #3d130c 55%, #1d0a07);
  border: 1px solid #190b07;
  width: 46px;
  height: 7px;
  position: absolute;
  top: 18px;
  left: -2px;
  box-shadow: 0 2px 2px #0009, inset 0 1px #a84822;
}

.TechTreeContent-module__wmVYPG__unavailableMark:before {
  transform: rotate(44deg);
}

.TechTreeContent-module__wmVYPG__unavailableMark:after {
  transform: rotate(-44deg);
}

.TechTreeContent-module__wmVYPG__buildingCard .TechTreeContent-module__wmVYPG__unavailableMark {
  top: 6px;
}

.TechTreeContent-module__wmVYPG__dimmed {
  opacity: .15;
}

.TechTreeContent-module__wmVYPG__legendSwatch, .TechTreeContent-module__wmVYPG__unavailableLegend {
  border: 1px solid #2b1b12;
  border-radius: 0;
  flex: none;
  place-items: center;
  width: 15px;
  height: 15px;
  display: grid;
  box-shadow: inset 0 0 0 1px #fff0cf2e;
}

.TechTreeContent-module__wmVYPG__nodeDetails {
  z-index: 40;
  pointer-events: none;
  scrollbar-color: #765536 transparent;
  scrollbar-width: thin;
  background: linear-gradient(#ba9070f0, #a98063f5), url("/lobby/aoe/panel-inlay.webp");
  border: 0;
  border-left: 3px ridge #6f5035;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 360px;
  min-height: 0;
  max-height: none;
  padding: 18px 17px 22px;
  animation: .11s ease-out TechTreeContent-module__wmVYPG__detailReveal;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: -11px 0 20px #4023143d, inset 1px 0 #eecca55c;
}

@keyframes TechTreeContent-module__wmVYPG__detailReveal {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.TechTreeContent-module__wmVYPG__detailHeader {
  align-items: center;
  gap: 12px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__detailIcon {
  border: 2px solid #2c1c13;
  border-radius: 0;
  flex: none;
  place-items: center;
  width: 60px;
  height: 60px;
  display: grid;
}

.TechTreeContent-module__wmVYPG__detailCopy {
  min-width: 0;
}

.TechTreeContent-module__wmVYPG__detailTitle {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__detailCopy h2 {
  color: #402119;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.TechTreeContent-module__wmVYPG__detailCopy > small {
  color: #76533e;
  text-transform: uppercase;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.TechTreeContent-module__wmVYPG__detailDescription {
  color: #4e3024;
  background: #efd3b138;
  border-left: 3px solid #825334;
  margin: -2px 0 0;
  padding: 8px 10px;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.42;
}

.TechTreeContent-module__wmVYPG__resourceCost {
  color: #65432f;
  align-items: center;
  gap: 5px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  display: inline-flex;
}

.TechTreeContent-module__wmVYPG__resourceCostItem {
  color: #45261d;
  align-items: center;
  gap: 3px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  display: inline-flex;
}

.TechTreeContent-module__wmVYPG__resourceCostItem img {
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #32180b57);
  width: 21px;
  height: 21px;
}

.TechTreeContent-module__wmVYPG__resourceCostItem strong {
  line-height: 1;
}

.TechTreeContent-module__wmVYPG__detailStats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  display: grid;
}

.TechTreeContent-module__wmVYPG__stat {
  background: #eecfa947;
  border: 1px solid #52321f61;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  font-size: 12.5px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__stat > svg {
  color: #815126;
  stroke-width: 1.8px;
  flex: none;
  width: 14px;
  height: 14px;
}

.TechTreeContent-module__wmVYPG__stat span {
  color: #75533e;
  text-transform: uppercase;
}

.TechTreeContent-module__wmVYPG__stat strong {
  color: #45261d;
}

.TechTreeContent-module__wmVYPG__unavailableBadge {
  color: #7a281f;
  text-transform: uppercase;
  background: #70251b1c;
  border: 1px solid #834235;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 700;
}

.TechTreeContent-module__wmVYPG__unitEvolution h3, .TechTreeContent-module__wmVYPG__upgradeGuide h3 {
  color: #543225;
  font-family: var(--font-display);
  text-transform: uppercase;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.TechTreeContent-module__wmVYPG__upgradeGuide h3 svg {
  color: #83552f;
  width: 13px;
  height: 13px;
}

.TechTreeContent-module__wmVYPG__evolutionTrack {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.TechTreeContent-module__wmVYPG__evolutionStep {
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.TechTreeContent-module__wmVYPG__evolutionArrow {
  color: #795138;
  flex: none;
  width: 16px;
  height: 16px;
}

.TechTreeContent-module__wmVYPG__evolutionCard {
  background: #eecfa938;
  border: 1px solid #52321f5c;
  align-items: center;
  gap: 8px;
  min-width: 145px;
  padding: 5px 8px 5px 5px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__evolutionCurrent {
  background: #f3cd9b7a;
  border-color: #8c5d2f;
  box-shadow: inset 0 0 0 1px #ffeac261;
}

.TechTreeContent-module__wmVYPG__evolutionUnavailable {
  opacity: .58;
  filter: saturate(.45);
}

.TechTreeContent-module__wmVYPG__evolutionPortrait {
  border: 2px solid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__evolutionPortrait .TechTreeContent-module__wmVYPG__techIcon {
  border: 0;
  width: 34px;
  height: 34px;
}

.TechTreeContent-module__wmVYPG__evolutionCopy {
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  gap: 2px 5px;
  min-width: 0;
  display: flex;
}

.TechTreeContent-module__wmVYPG__evolutionCopy > strong {
  color: #45261d;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__evolutionCopy > small {
  color: #76533e;
  font-size: 11px;
  font-weight: 700;
}

.TechTreeContent-module__wmVYPG__evolutionCopy .TechTreeContent-module__wmVYPG__resourceCost {
  gap: 3px;
  font-size: 15px;
}

.TechTreeContent-module__wmVYPG__evolutionCopy .TechTreeContent-module__wmVYPG__resourceCostItem {
  gap: 1px;
  font-size: 12.5px;
}

.TechTreeContent-module__wmVYPG__evolutionCopy .TechTreeContent-module__wmVYPG__resourceCostItem img {
  width: 15px;
  height: 15px;
}

.TechTreeContent-module__wmVYPG__upgradeGuide {
  background: #eecfa92e;
  border: 1px solid #52321f52;
  padding: 8px 10px;
}

.TechTreeContent-module__wmVYPG__upgradeGuide p {
  color: #523426;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.TechTreeContent-module__wmVYPG__relationGrid {
  gap: 11px;
  padding-top: 2px;
  display: grid;
}

.TechTreeContent-module__wmVYPG__relationStrip h3 {
  color: #543225;
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.TechTreeContent-module__wmVYPG__relationStrip > div {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__relationUnit {
  background: #eecfa938;
  border: 1px solid #52321f57;
  align-items: center;
  gap: 6px;
  width: 128px;
  min-width: 0;
  padding: 4px 6px 4px 4px;
  display: flex;
}

.TechTreeContent-module__wmVYPG__relationIcon {
  background: linear-gradient(150deg, #087e9f, #03516f);
  border: 1px solid #35b4d0;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__relationIcon img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.TechTreeContent-module__wmVYPG__relationUnit > span:last-child {
  min-width: 0;
}

.TechTreeContent-module__wmVYPG__relationUnit strong {
  color: #43261c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  display: block;
  overflow: hidden;
}

.TechTreeContent-module__wmVYPG__relationUnit small {
  color: #7a4d34;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.TechTreeContent-module__wmVYPG__ageBadge {
  color: #643;
  text-transform: uppercase;
  flex: none;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.TechTreeContent-module__wmVYPG__ageBadge img {
  object-fit: contain;
  width: 19px;
  height: 25px;
}

.TechTreeContent-module__wmVYPG__stateMessage, .TechTreeContent-module__wmVYPG__skeleton {
  color: #583629;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  background: #c09e82 url("/lobby/aoe/panel-inlay.webp");
  place-items: center;
  display: grid;
}

.TechTreeContent-module__wmVYPG__skeleton {
  animation: 1.1s ease-in-out infinite alternate TechTreeContent-module__wmVYPG__parchmentPulse;
}

@keyframes TechTreeContent-module__wmVYPG__parchmentPulse {
  from {
    filter: brightness(.9);
  }

  to {
    filter: brightness(1.06);
  }
}

@media (max-width: 820px) {
  .TechTreeContent-module__wmVYPG__page {
    min-height: 620px;
  }

  .TechTreeContent-module__wmVYPG__treeFrame {
    --civ-panel-width: 310px;
    --tree-head: 86px;
  }

  .TechTreeContent-module__wmVYPG__civPanelHead {
    min-height: 88px;
  }

  .TechTreeContent-module__wmVYPG__civPanelHead > img {
    width: 58px;
    height: 58px;
  }

  .TechTreeContent-module__wmVYPG__civPanelHead .TechTreeContent-module__wmVYPG__civPickerButton {
    font-size: 18px;
  }

  .TechTreeContent-module__wmVYPG__ageRail {
    width: 104px;
    min-width: 104px;
  }

  .TechTreeContent-module__wmVYPG__ageLabel img {
    width: 40px;
    height: 51px;
  }

  .TechTreeContent-module__wmVYPG__ageLabel strong {
    max-width: 92px;
    font-size: 14px;
  }

  .TechTreeContent-module__wmVYPG__nodeDetails {
    width: min(340px, 100% - 12px);
  }
}

/*# sourceMappingURL=src_components_pages_TechTreeContent_module_15rd755.css.map*/