* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020b05;
  color: #e9ffef;
}

body {
  padding-top: 80px;
}

/* ===== Top bar ===== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(5, 15, 7, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 180, 120, 0.4);
  z-index: 40;
}

/* Left side: menu + title */
.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Menu button */

.nav-menu {
  position: relative;
}

.menu-button {
  width: 32px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(130, 190, 145, 0.7);
  background: rgba(7, 25, 10, 0.9);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 0;
}
.sound-toggle-btn {
  margin-left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(130, 190, 145, 0.7);
  background: rgba(7, 25, 10, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #e9ffef;
}

.sound-toggle-btn:active {
  transform: scale(0.95);
}


.menu-icon-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e9ffef;
}

/* Dropdown menu */

.menu-dropdown {
  position: absolute;
  top: 34px;
  left: 0;
  min-width: 180px;
  background: radial-gradient(circle at top left, #193822, #050d07);
  border-radius: 12px;
  border: 1px solid rgba(120, 200, 140, 0.65);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
  padding: 6px 0;
  z-index: 999999;
}

.menu-dropdown a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: #e9ffef;
  text-decoration: none;
}

.menu-dropdown a:hover {
  background: rgba(90, 170, 110, 0.3);
}

.game-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-logo {
  height: 34px;
  width: auto;
  display: block;
}


.game-subtitle {
  font-size: 11px;
  color: #a5d7b3;
}

/* top actions */

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
}

/* Ecosystem selector center */

.ecosystem-switch {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ecosystem-title {
  font-size: 13px;
  color: #cdeed5;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ecosystem-buttons {
  display: inline-flex;
  gap: 6px;
  background: rgba(10, 25, 12, 0.9);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 140, 0.6);
}

.ecosystem-btn {
  border: none;
  outline: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: #e9ffef;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ecosystem-btn .ecosystem-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.ecosystem-btn .ecosystem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ecosystem-btn .ecosystem-label {
  line-height: 1;
}

/* base colors per network */
.ecosystem-btn[data-net="bsc"] {
  border: 1px solid rgba(255, 215, 0, 0.35);
}
.ecosystem-btn[data-net="polygon"] {
  border: 1px solid rgba(186, 104, 200, 0.4);
}
.ecosystem-btn[data-net="opbnb"] {
  border: 1px solid rgba(255, 152, 0, 0.4);
}

/* Hover */
.ecosystem-btn[data-net="bsc"]:hover:not(.active) {
  background: rgba(255, 215, 0, 0.2);
}
.ecosystem-btn[data-net="polygon"]:hover:not(.active) {
  background: rgba(186, 104, 200, 0.25);
}
.ecosystem-btn[data-net="opbnb"]:hover:not(.active) {
  background: rgba(255, 152, 0, 0.25);
}

/* Active */
.ecosystem-btn[data-net="bsc"].active {
  background: linear-gradient(135deg, #ffd600, #ffb300);
  color: #1b1b1b;
  font-weight: 600;
}
.ecosystem-btn[data-net="polygon"].active {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
  color: #ffffff;
  font-weight: 600;
}
.ecosystem-btn[data-net="opbnb"].active {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #1b1b1b;
  font-weight: 600;
}

.right-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.top-buttons {
  display: flex;
  gap: 6px;
}

/* Connect / Disconnect */
#connectBtn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #32a852;
  color: #ffffff;
}

#disconnectBtn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #aa3333;
  color: #ffffff;
}

.wallet-info {
  font-size: 11px;
  color: #cdeed5;
  text-align: right;
}

/* ===== Message banner (center of screen) ===== */

.message-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(6, 40, 12, 0.96);
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid rgba(120, 200, 140, 0.7);
  z-index: 60;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  text-align: center;
}

/* ===== Map & buildings ===== */

#map-layer {
  position: relative;
  min-height: 100vh;
  background-image: url("media/farm-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 40px;
}

.map-building {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 180px;
  max-width: 46vw;
  text-align: center;
  pointer-events: auto;
}

.map-img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px -1px rgba(0, 0, 0, 0.6);
}

.map-info {
  margin-top: 4px;
  font-size: 11px;
  background: radial-gradient(circle at top, rgba(40, 120, 70, 0.55), rgba(0, 0, 0, 0.9));
  border-radius: 12px;
  padding: 6px 8px 8px;
  border: 1px solid rgba(140, 220, 170, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.map-info h3 {
  font-size: 12px;
  margin: 0 0 4px;
  font-weight: 700;
  color: #f7fff8;
}

/* Plan line: "2% daily | 60 days" */
.map-info p:nth-of-type(1) {
  margin: 0 0 3px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #c9ffd8;
  font-size: 16px;
}

/* Cost line: "Cost: 0.01" */
.map-info p:nth-of-type(2) {
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.18);
  border: 1px solid rgba(241, 196, 15, 0.6);
  color: #ffe9a6;
  font-size: 15px;
}

.map-info p:nth-of-type(2) strong {
  font-size: 15px;
}

/* Level & Staked rows */
.map-info p:nth-of-type(3),
.map-info p:nth-of-type(4) {
  margin: 0 0 2px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(120, 200, 140, 0.35);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f6fff8;
}

.map-info p:nth-of-type(3) span,
.map-info p:nth-of-type(4) span {
  font-weight: 600;
}

/* fallback general p */
.map-info p:last-of-type {
  margin-bottom: 0;
}


.map-info h3 {
  font-size: 12px;
  margin: 0 0 2px;
}

.map-info p {
  margin: 0;
}

/* upgrade + claim buttons common style */
.building-upgrade-btn {
  margin-top: 4px;
  width: 100%;
  padding: 5px;
  font-size: 11px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #32a852, #6ce08a);
  color: #041108;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.building-upgrade-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.9);
}

.building-upgrade-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}


.building-upgrade-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* hammer effect (bigger) */
.hammer-effect {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  animation: hammer-bounce 0.5s infinite;
}

@keyframes hammer-bounce {
  0% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
  100% { transform: translate(-50%, 0); }
}

/* smoke effect */

.smoke-cluster {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 999;
}

.smoke-img {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 110px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  animation: smoke-loop 2.5s ease-in-out infinite;
}

@keyframes smoke-loop {
  0%   { transform: translate(-50%, 8px)  scale(0.95); opacity: 0.35; }
  40%  { transform: translate(-50%, -4px) scale(1.02); opacity: 0.9; }
  100% { transform: translate(-50%, -18px) scale(1.1); opacity: 0.4; }
}

/* ===== Coin rain ===== */

.coin-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.coin-rain .coin {
  position: absolute;
  top: -10%;
  animation: coin-fall 1.4s linear forwards;
}

@keyframes coin-fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(120vh); opacity: 0; }
}

/* ===== Bottom bar – scrollable ===== */

.bottom-bar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 20px 10px 30px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  z-index: 1;
  pointer-events: auto;
}

.bottom-card {
  flex: 1;
  min-height: 90px;
  background: rgba(13, 24, 15, 0.9);
  border: 1px solid rgba(120, 200, 140, 0.7);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: #e9ffef;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

/* ===== Generic card header (stats & referral) ===== */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #4caf50 0%, #2e7d32 55%, #1b5e20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-subtitle {
  font-size: 10px;
  color: #a8cbb4;
}

/* CTA button at bottom of stats card */
.card-footer-cta {
  margin-top: 12px;          /* فاصله بیشتر از بالا */
  display: flex;
  justify-content: center;   /* دکمه بیاد وسط */
}

.card-cta-btn {
  padding: 10px 18px;
  font-size: 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2ecc71, #7ef5a2);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ===== Staking stats grid ===== */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 4px;
}

.stat-item {
  background: rgba(3, 10, 5, 0.9);
  border-radius: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(120, 200, 140, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 10px;
  color: #a8cbb4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 12px;
  font-weight: 600;
  color: #e9ffef;
}

/* ===== Referral link card ===== */

.ref-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.ref-label {
  color: #cdeed5;
}

.ref-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(144, 222, 164, 0.9);
  background: rgba(6, 20, 10, 0.95);
  color: #b4e1c4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ref-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.ref-row input {
  flex: 1;
  font-size: 11px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(140, 180, 150, 0.7);
  background: rgba(4, 10, 5, 0.9);
  color: #e9ffef;
}

.ref-row button {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #3274a8;
  color: #ffffff;
}

.ref-note {
  margin-top: 2px;
  font-size: 10px;
  color: #b3d7bd;
}

/* Referral intro text */

.ref-intro {
  font-size: 11px;
  line-height: 1.5;
  color: #cfeedd;
  background: rgba(6, 18, 10, 0.4); /* خیلی ملایم */
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
}



/* Referral levels grid style */

.ref-levels-header {
  display: grid;
  grid-template-columns: 48px 1fr 1.3fr;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9fd0ac;
  margin-bottom: 4px;
  opacity: 0.9;
}

.ref-levels-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

/* each row is three columns */
.ref-level-row {
  display: grid;
  grid-template-columns: 48px 1fr 1.3fr;
  align-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(6, 16, 9, 0.92);
  border: 1px solid rgba(120, 200, 140, 0.22);
}

.ref-level-row:nth-child(odd) {
  background: rgba(4, 12, 7, 0.95);
}

/* Level badge */
.ref-level-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #4caf50 0%, #2e7d32 55%, #1b5e20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #e9ffef;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

/* columns for users & rewards */
.ref-level-users,
.ref-level-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.ref-level-users .ref-count,
.ref-level-amount .ref-amount {
  font-size: 11px;
  font-weight: 600;
}

.ref-level-caption {
  font-size: 9px;
  color: #a8cbb4;
}

/* total row */

.ref-total-row {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(120, 200, 140, 0.35);
  font-size: 11px;
  text-align: right;
  color: #cdeed5;
}

.ref-total-row #refTotal {
  font-weight: 600;
}

/* Hidden helper */
.hidden {
  display: none !important;
}

/* ===== Loader / Splash Screen ===== */

.loader-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #08150d 0%, #020805 60%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader-inner {
  text-align: center;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(4, 14, 7, 0.96);
  border: 1px solid rgba(120, 200, 140, 0.8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  max-width: 320px;
  width: 90%;
}

/* orbit + coin */
.loader-orbit {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
}

.loader-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(144, 222, 164, 0.7);
  box-shadow: 0 0 18px rgba(144, 222, 164, 0.9);
  animation: loader-glow 1.8s ease-in-out infinite;
}

.loader-coin {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: radial-gradient(circle at 30% 20%, #ffe082 0%, #f9a825 45%, #f57f17 85%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  animation: loader-spin 1.4s linear infinite;
}


.loader-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
  border-radius: 32px;
  background-image: url('media/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.85);
  filter: drop-shadow(0 0 12px rgba(120, 255, 150, 0.8));
  animation: loader-logo-pulse 2.1s ease-in-out infinite;
}

@keyframes loader-logo-pulse {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 6px rgba(120,255,150,0.5)); }
  50%  { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(120,255,150,1)); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 6px rgba(120,255,150,0.5)); }
}

.loader-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.loader-subtitle {
  font-size: 12px;
  color: #b4e1c4;
  margin-bottom: 14px;
}

.loader-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 30, 16, 0.9);
  overflow: hidden;
  border: 1px solid rgba(140, 210, 150, 0.9);
  margin-bottom: 8px;
}

.loader-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #32a852, #8ce09c);
  animation: loader-bar-move 1.6s linear infinite;
}

.loader-hint {
  font-size: 11px;
  color: #9ad0a8;
}

/* hide loader */
.loader-overlay.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

/* loader animations */
@keyframes loader-spin {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes loader-glow {
  0%   { box-shadow: 0 0 10px rgba(144, 222, 164, 0.6); }
  50%  { box-shadow: 0 0 24px rgba(144, 222, 164, 1); }
  100% { box-shadow: 0 0 10px rgba(144, 222, 164, 0.6); }
}

@keyframes loader-bar-move {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(-10%); }
  100% { transform: translateX(120%); }
}

/* ===== Mobile tweaks ===== */

@media (max-width: 768px) {
  body {
    padding-top: 16px;
  }

  .top-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .right-actions {
    align-items: center;
  }

  .wallet-info {
    text-align: center;
  }

  #map-layer {
    padding-bottom: 40px;
  }
  
  
  
  
  

  
  
  
  
  
  
  
.map-building[data-building-id="1"] { top: 17% !important; left: 22% !important; }
  .map-building[data-building-id="2"] { top: 17% !important; left: 72% !important; }
  .map-building[data-building-id="3"] { top: 47% !important; left: 22% !important; }
  .map-building[data-building-id="4"] { top: 47% !important; left: 72% !important; }
  .map-building[data-building-id="5"] { top: 77% !important; left: 22% !important; }
  .map-building[data-building-id="6"] { top: 81% !important; left: 72% !important; }
  
  
  .map-building { transform: translate(-50%, -50%) scale(0.68); }
  
  

  .bottom-bar {
    padding: 6px 8px;
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
    margin: 18px 8px 26px;
  }

  .bottom-card {
    min-height: 85px;
    font-size: 12px;
    flex: 1 1 50%;
  }

  #refStats.bottom-card {
    flex-basis: 100%;
  }

  .map-building {
    width: 44vw;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-info {
    padding: 4px 6px 6px;
  }

  .map-info h3 {
    font-size: 11px;
  }

  .map-info p:nth-of-type(1),
  .map-info p:nth-of-type(2) {
    font-size: 17px;
    padding: 2px 6px;
  }

  .map-info p:nth-of-type(3),
  .map-info p:nth-of-type(4) {
    font-size: 9px;
    padding: 3px 5px;
  }

  .building-upgrade-btn {
    font-size: 10px;
    padding: 4px;
  }


  .game-logo {
    height: 26px;
  }

}



  #menuDropdown,
  .menu-dropdown {
    position: fixed !important;
    top: 72px !important;
    left: 12px !important;

    right: auto !important;
    width: 240px !important;

    max-height: 280px !important;
    overflow: hidden !important;

    z-index: 2147483647 !important;
  }

  .menu-dropdown a {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
  
    .top-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }




/* Desktop-specific tweaks */
@media (min-width: 900px) {
  .ref-intro {
    font-size: 12px;
    line-height: 1.6;
    text-align: justify;
  }

  .ref-body {
    gap: 4px;
  }
}

/* Theme colors per network */
body.theme-bsc .building-upgrade-btn,
body.theme-bsc #connectBtn {
  background: #32a852;
}

body.theme-polygon .building-upgrade-btn,
body.theme-polygon #connectBtn {
  background: #8b5cf6;
}

body.theme-opbnb .building-upgrade-btn,
body.theme-opbnb #connectBtn {
  background: #f59e0b;
}

body.theme-bsc .bottom-card {
  border-color: rgba(120, 200, 140, 0.7);
}

body.theme-polygon .bottom-card {
  border-color: rgba(168, 85, 247, 0.7);
}

body.theme-opbnb .bottom-card {
  border-color: rgba(245, 158, 11, 0.7);
}
