@font-face {
  font-family: "Open Sans";
  font-weight: normal;
  font-style: normal;
  src: url("./assets/colonist/OpenSans-Regular.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  src: url("./assets/colonist/OpenSans-Semibold.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-weight: bold;
  font-style: normal;
  src: url("./assets/colonist/OpenSans-Bold.woff") format("woff");
}
@font-face {
  font-family: "Wicked Mouse";
  font-weight: normal;
  font-style: normal;
  src: url("./assets/colonist/WickedMouse.otf") format("opentype");
}

:root {
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: #177fde;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow: hidden;
}

img {
  vertical-align: middle;
}

a {
  color: #48ff00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

.muted {
  color: rgba(255, 255, 255, 0.7);
}

.screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.125rem;
}

.web-layout-container {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 130px 1fr;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.web-sidebar {
  display: flex;
  flex-direction: column;
  grid-row: 1 / -1;
  grid-column: 1;
  align-items: center;
  background: #1062b0;
  padding: 16px 0;
  overflow-y: auto;
}

.web-sidebar-logo {
  margin-bottom: 24px;
  padding: 0 8px;
}

.web-sidebar-logo img {
  width: 90px;
  height: auto;
}

.web-sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

.web-sidebar-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
}

.web-sidebar-nav-item:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  text-decoration: none;
}

.web-sidebar-nav-item.active {
  background: #1e90ff;
}

.web-sidebar-nav-item img {
  width: 48px;
  height: 48px;
}

.web-sidebar-nav-item span {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.web-sidebar-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 16px 8px;
  width: 100%;
}

.language-button {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.language-button img {
  width: 18px;
  height: 18px;
}

.web-header {
  display: flex;
  grid-row: 1;
  grid-column: 2 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  max-width: 1100px;
  min-height: 80px;
}

.web-header-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.web-header-profile {
  display: flex;
  align-items: center;
}

.web-header-profile-loggedin {
  display: flex;
  gap: 8px;
  align-items: center;
}

.web-header-profile-avatar {
  width: 48px;
  height: 48px;
}

.web-header-profile-avatar .profile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.web-header-username {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
}

.web-header-karma {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.web-header-visitor-container {
  display: flex;
  gap: 16px;
  align-items: center;
}

.web-header-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #1fab1c;
  padding: 8px 16px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.web-header-login-button:hover {
  background: #177f15;
}

.header-coins {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.header-coins img {
  width: 20px;
  height: 20px;
}

.header-coins h3 {
  margin: 0;
}

.web-header-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.web-header-burger,
.web-header-burger-left {
  cursor: pointer;
}

.web-header-burger img,
.web-header-burger-left img {
  width: 40px;
  height: 40px;
}

.web-header-mobile-left {
  display: none;
  gap: 16px;
  align-items: center;
  max-width: 1100px;
}

.web-header-logo img {
  height: 32px;
}

.web-layout-content-with-ads {
  display: flex;
  gap: 24px;
  margin: 0 auto;
  padding: 0 24px 24px;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 700px;
  overflow: hidden;
}

.web-layout-content-with-ads.content-wide {
  max-width: 1200px;
  max-height: none;
  height: 100%;
}

.web-layout-main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  min-height: 0;
}

.web-layout-ad-space {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  min-width: 300px;
  min-height: 600px;
  padding-top: 16px;
}

.btn_general {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background-color: #1fab1c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  height: 40px;
  padding: 0 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn_general:hover {
  background-color: #177f15;
  text-decoration: none;
  color: #fff;
}

.btn_general_orange {
  background-color: #f06800;
}

.btn_general_orange:hover {
  background-color: #bd5200;
}

.btn_general_secondary {
  background-color: rgba(0, 0, 0, 0.2);
}

.btn_general_secondary:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.header-logout-button {
  min-width: 120px;
}

.input_general {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 8px 12px;
}

.input_general::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-card {
  width: 100%;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.panel-card h2,
.panel-card h3 {
  margin-top: 0;
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat-grid span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-pill {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
}

.auth-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

.scene_landing_page_container {
  position: relative;
  display: flex;
  gap: 24px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.landing_page_left_side,
.landing_page_right_side {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.landing_page_map_container {
  position: relative;
  width: 85%;
  max-width: 640px;
}

.landing_page_map {
  width: 100%;
  height: auto;
}

.landing_page_map_animation_container {
  position: absolute;
  inset: 0;
}

.landing_page_map_settlement_1,
.landing_page_map_settlement_2,
.landing_page_map_settlement_3,
.landing_page_map_settlement_4,
.landing_page_map_settlement_5,
.landing_page_map_settlement_6,
.landing_page_map_settlement_7,
.landing_page_map_settlement_8 {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  max-width: 10%;
  max-height: 10%;
}

.landing_page_map_settlement_1 {
  top: 58.25%;
  left: 32.125%;
  animation: drop_1 12s 0s infinite linear, settlement_drop 12s 0s infinite linear;
}

.landing_page_map_settlement_2 {
  top: 43.25%;
  left: 23.25%;
  animation: drop_4 12s 2.25s infinite linear, settlement_drop 12s 2.25s infinite linear;
}

.landing_page_map_settlement_3 {
  top: 38.375%;
  left: 67.375%;
  animation: drop_5 12s 3s infinite linear, settlement_drop 12s 3s infinite linear;
}

.landing_page_map_settlement_4 {
  top: 38.375%;
  left: 50%;
  animation: drop_8 12s 5.25s infinite linear, settlement_drop 12s 5.25s infinite linear;
}

.landing_page_map_settlement_5 {
  top: 23.125%;
  left: 41%;
  animation: drop_1 12s 6s infinite linear, settlement_drop 12s 6s infinite linear;
}

.landing_page_map_settlement_6 {
  top: 38.375%;
  left: 50%;
  animation: drop_4 12s 8.25s infinite linear, settlement_drop 12s 8.25s infinite linear;
}

.landing_page_map_settlement_7 {
  top: 68.875%;
  left: 67.375%;
  animation: drop_5 12s 9s infinite linear, settlement_drop 12s 9s infinite linear;
}

.landing_page_map_settlement_8 {
  top: 53.625%;
  left: 76.125%;
  animation: drop_8 12s 11.25s infinite linear, settlement_drop 12s 11.25s infinite linear;
}

.landing_page_map_road {
  position: absolute;
  opacity: 0;
  max-width: 2.1%;
  max-height: 10%;
}

.landing_page_map_road_1 {
  top: 52.625%;
  left: 26.625%;
  transform: rotate(-60deg);
  animation: drop_2 12s 0.75s infinite linear, road_-60deg_drop 12s 0.75s infinite linear;
}

.landing_page_map_road_2 {
  top: 45.125%;
  left: 22.5%;
  animation: drop_3 12s 1.5s infinite linear, road_vertical_drop 12s 1.5s infinite linear;
}

.landing_page_map_road_3 {
  top: 37.75%;
  left: 61.875%;
  transform: rotate(60deg);
  animation: drop_6 12s 3.75s infinite linear, road_60deg_drop 12s 3.75s infinite linear;
}

.landing_page_map_road_4 {
  top: 37.625%;
  left: 53.125%;
  transform: rotate(-60deg);
  animation: drop_7 12s 4.5s infinite linear, road_-60deg_drop 12s 4.5s infinite linear;
}

.landing_page_map_road_5 {
  top: 22.5%;
  left: 44.5%;
  transform: rotate(-60deg);
  animation: drop_2 12s 6.75s infinite linear, road_-60deg_drop 12s 6.75s infinite linear;
}

.landing_page_map_road_6 {
  top: 30%;
  left: 48.875%;
  animation: drop_3 12s 7.5s infinite linear, road_vertical_drop 12s 7.5s infinite linear;
}

.landing_page_map_road_7 {
  top: 60.25%;
  left: 66.5%;
  animation: drop_6 12s 9.75s infinite linear, road_vertical_drop 12s 9.75s infinite linear;
}

.landing_page_map_road_8 {
  top: 52.75%;
  left: 70.875%;
  transform: rotate(60deg);
  animation: drop_7 12s 10.5s infinite linear, road_60deg_drop 12s 10.5s infinite linear;
}

.landing_page_right_side_content {
  text-align: center;
  max-width: 360px;
}

.landing_page_right_side_content h1 {
  font-family: "Wicked Mouse", "Open Sans", sans-serif;
  margin-bottom: 16px;
}

.landing_page_logo {
  width: 220px;
  margin-bottom: 12px;
}

.landing_page_social_proof {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.landing_page_social_proof_item {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

.button_cta_landingpage_container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button_cta_landingpage_main,
.button_cta_landingpage_sub,
.button_cta_landingpage_sub_mobile {
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.button_cta_landingpage_main {
  background-color: #f06800;
}

.button_cta_landingpage_main:hover {
  background-color: #bd5200;
}

.button_cta_landingpage_sub {
  background-color: rgba(0, 0, 0, 0.2);
}

.button_cta_landingpage_sub:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.button_cta_landingpage_sub_mobile {
  display: none;
  background-color: transparent;
}

.landing-page-background-overlay,
.landing-page-background-overlay-mobile {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

.landing-page-background-overlay-mobile {
  display: none;
}

.homepage-lobby-container {
  width: 100%;
  height: 100%;
}

.m-lobby-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scene_lobby_mid_tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.scene_lobby_mid_tabs_active,
.scene_lobby_mid_tabs_inactive {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: bold;
}

.scene_lobby_mid_tabs_active {
  background: #1e90ff;
}

.scene_lobby_mid_tabs_inactive {
  background: rgba(0, 0, 0, 0.2);
}

.lobby_center_tables_container {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.lobby-table {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.lobby-table-table {
  width: 100%;
  border-spacing: 0;
  text-align: left;
}

.lobby-table-table thead th {
  position: sticky;
  top: 0;
  background-color: #1062b0;
  padding: 10px 12px;
}

.lobby-table-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lobby-table-table tbody tr:nth-of-type(2n) {
  background-color: rgba(255, 255, 255, 0.05);
}

.lobby-room-title {
  font-weight: bold;
}

.lobby-room-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.lobby-room-players {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.player-pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
}

.lobby-room-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.refresh-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.m-lobby-buttons-container {
  display: flex;
  gap: 16px;
  padding-top: 16px;
}

.m-lobby-create-room-button,
.m-lobby-join-room-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-weight: bold;
  padding: 16px 24px;
  font-size: 1.25rem;
}

.m-lobby-create-room-button {
  background: #1fab1c;
}

.m-lobby-create-room-button:hover {
  background: #177f15;
}

.m-lobby-join-room-button {
  background: #f06800;
}

.m-lobby-join-room-button:hover {
  background: #d95f00;
}

.game-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 16px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.game-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}

.game-board {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.board-svg {
  width: 100%;
  height: 100%;
}

.player-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.player-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.trade-card {
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.trade-line {
  font-size: 0.85rem;
}

.trade-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.history-list {
  max-height: 200px;
  overflow: auto;
}

.replay-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.replay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.replay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.replay-row.compact {
  padding: 8px;
}

.replay-actions {
  display: flex;
  gap: 8px;
}

.replay-viewer {
  max-width: 520px;
}

.replay-board {
  margin-top: 16px;
}

@keyframes settlement_drop {
  0% {
    transform: translate(-50%, -150%);
  }
  2.5% {
    transform: translate(-50%, -50%);
  }
}

@keyframes road_vertical_drop {
  0% {
    transform: translate(0%, -100%);
  }
  2.5% {
    transform: translate(0%, 0%);
  }
}

@keyframes road_60deg_drop {
  0% {
    transform: translate(0, -100%) rotate(60deg);
  }
  2.5% {
    transform: translate(0, 0) rotate(60deg);
  }
}

@keyframes road_-60deg_drop {
  0% {
    transform: translate(0, -100%) rotate(-60deg);
  }
  2.5% {
    transform: translate(0, 0) rotate(-60deg);
  }
}

@keyframes drop_1 {
  0% { opacity: 1; }
  49% { opacity: 1; }
  49.5% { opacity: 0; }
}

@keyframes drop_2 {
  0% { opacity: 1; }
  42.75% { opacity: 1; }
  43.25% { opacity: 0; }
}

@keyframes drop_3 {
  0% { opacity: 1; }
  36.5% { opacity: 1; }
  37% { opacity: 0; }
}

@keyframes drop_4 {
  0% { opacity: 1; }
  30.25% { opacity: 1; }
  30.75% { opacity: 0; }
}

@keyframes drop_5 {
  0% { opacity: 1; }
  24% { opacity: 1; }
  24.5% { opacity: 0; }
}

@keyframes drop_6 {
  0% { opacity: 1; }
  17.75% { opacity: 1; }
  18.25% { opacity: 0; }
}

@keyframes drop_7 {
  0% { opacity: 1; }
  11.5% { opacity: 1; }
  12% { opacity: 0; }
}

@keyframes drop_8 {
  0% { opacity: 1; }
  5.25% { opacity: 1; }
  5.75% { opacity: 0; }
}

@media (max-width: 991px) {
  .web-layout-ad-space {
    display: none;
  }
}

@media (max-width: 767px) {
  .web-layout-container {
    grid-template-columns: 1fr;
  }

  .web-layout-container > .web-sidebar {
    display: none;
  }

  .web-header {
    grid-column: 1 / -1;
    margin-bottom: 16px;
    background: #1062b0;
  }

  .web-header-mobile-left {
    display: flex;
  }

  .web-header-burger {
    display: none;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .landing_page_left_side {
    display: none;
  }

  .landing-page-background-overlay {
    display: none;
  }

  .landing-page-background-overlay-mobile {
    display: block;
  }

  .button_cta_landingpage_sub {
    display: none;
  }

  .button_cta_landingpage_sub_mobile {
    display: block;
  }
}
