.wallet-connect {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 10px 0;
  gap: 8px;
  width: 326px;
  padding-left: 6px;
}

.wallet-connect label {
  margin-right: 8px;
  font-size: 12px;
  color: #9acd32;
  text-shadow: 0 0 2px rgba(154, 205, 50, 0.5);
}

#wallet-type {
  background: #1a2a1a;
  color: #9acd32;
  border: 3px solid #666;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  box-shadow: 0 0 4px #9acd32;
  cursor: pointer;
  width: 208px;
  min-width: 208px;
  height: 33px;
  line-height: 13px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-right: 0px;
}

#wallet-type:hover {
  border-color: #b0ff57;
  box-shadow: 0 0 6px #b0ff57;
}

select#wallet-type {
  position: relative;
  left: -6px;
}

.donation-form {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0;
  gap: 8px;
}

#custom-donation {
  background: #1a2a1a;
  color: #9acd32;
  border: 3px solid #666;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  box-shadow: 0 0 4px #9acd32;
  width: 208px;
  height: 33px;
  line-height: 13px;
  box-sizing: border-box;
  margin-top: -4px;
}

.donation-form #custom-donate-btn {
  margin-top: -8px;
}

.donation-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.donation-options li {
  display: flex;
  align-items: center;
  color: #9acd32;
  font-size: 12px;
  gap: 8px;
  margin: 0;
}

.donation-options li:last-child {
  position: static;
  width: 100%;
}

.donation-options li span {
  background: #1a2a1a;
  color: #9acd32;
  border: 3px solid #666;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  box-shadow: 0 0 4px #9acd32;
  width: 208px;
  height: 33px;
  line-height: 13px;
  box-sizing: border-box;
  text-align: center;
}

.info-display {
  background: #1a2a1a;
  color: #9acd32;
  border: 3px solid #666;
  border-radius: 8px;
  padding: 0 24px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  box-shadow: 0 0 4px #9acd32;
  width: 326px;
  height: 66px;
  line-height: 20px;
  box-sizing: border-box;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: none;
  background-image: none;
  overflow: visible;
}
.info-display > * {
  margin: 0;
  padding: 0;
  transform: none;
}

#troubleshooting {
  margin-top: 10px;
  text-align: center;
}

#troubleshooting h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #9acd32;
  text-shadow: 0 0 2px rgba(154, 205, 50, 0.5);
}

#troubleshooting ul {
  list-style: none;
  padding: 0;
  font-size: 12px;
  color: #9acd32;
}

#troubleshooting li {
  margin: 5px 0;
}

.social-link {
  color: #9acd32;
  text-decoration: none;
  font-weight: bold;
}

.social-link:hover {
  text-decoration: underline;
  color: #b0ff57;
}

.game-btn, .donation-btn, #connect-wallet-btn, #custom-donate-btn {
  background: #1a2a1a;
  color: #9acd32;
  border: 3px solid #666;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  box-shadow: 0 0 4px #9acd32;
  width: 110px;
  height: 33px;
  line-height: 13px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  position: relative;
  top: 0;
  margin: 8px auto;
}

.game-btn:hover, .donation-btn:hover, #connect-wallet-btn:hover, #custom-donate-btn:hover {
  border-color: #b0ff57;
  box-shadow: 0 0 6px #b0ff57;
}

.game-btn:active, .donation-btn:active, #connect-wallet-btn:active, #custom-donate-btn:active {
  transform: translate(2px, 2px);
}

.game-btn:disabled, .donation-btn:disabled, #connect-wallet-btn:disabled, #custom-donate-btn:disabled {
  background: #666;
  color: #999;
  cursor: not-allowed;
  box-shadow: 1px 1px 0 #666, inset 2px 2px 0 #ccc, inset -2px -2px 0 #555;
  transform: translate(2px, 2px);
}

/* Wrapper for aligning buttons */
.button-alignment-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.button-alignment-wrapper > * {
  display: flex;
  justify-content: flex-end;
  width: 326px;
}

/* Specific wrapper for Wallet not connected to center it in the IIGS */
.button-alignment-wrapper .info-display {
  width: 326px;
  margin-left: auto;
  margin-right: auto;
}

/* Donations page specific styles */
#donations.tab-content {
  width: 100% !important;
  height: 407px !important;
  min-height: 407px !important;
  max-height: 407px !important;
  box-sizing: border-box;
}

#donation-history {
  max-height: 471px !important; /* Match tab content height */
  overflow-y: auto !important;
}

.rm-boxes {
  position: absolute;
  top: 202px !important; /* 32px + 64px + 96px + 8px + 2px */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* so they don't block other UI */
  z-index: 10;
}

.rm-box {
  width: 256px;
  height: 352px;
  background: #1a2a1a;
  color: #9acd32;
  border: 4px solid #9acd32;
  border-radius: 10px;
  box-shadow: 0 0 8px #9acd32, 0 0 2px #b0ff57;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px;
  margin-left: 32px;
  margin-right: 32px;
  text-shadow: 0 0 4px #9acd32;
  transition: border-color 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}

.rm-box#rm2 {
  margin-left: 0;
  margin-right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
}

.rm-box#rm1 {
  margin-left: 40px;
  margin-right: 0;
}

.rm-box:hover {
  border-color: #b0ff57;
  box-shadow: 0 0 16px #b0ff57, 0 0 8px #9acd32;
}

.donation-btn {
  background: #a0a0a0;
  color: #333;
  border: 3px solid #666;
  border-radius: 8px;
  box-shadow: 0 0 4px #9acd32;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  width: 110px;
  height: 33px;
  line-height: 13px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  position: relative;
  top: 0;
  margin: 8px auto;
}

.donation-btn:hover {
  border-color: #b0ff57;
  box-shadow: 0 0 6px #b0ff57;
}

.donation-btn:active {
  transform: translate(2px, 2px);
}

.donation-btn:disabled {
  background: #666;
  color: #999;
  cursor: not-allowed;
  box-shadow: 1px 1px 0 #666, inset 2px 2px 0 #ccc, inset -2px -2px 0 #555;
  transform: translate(2px, 2px);
}

#connect-wallet-btn {
  border: 3px solid #666;
  background: #a0a0a0;
  color: #333;
  box-shadow: 0 0 4px #9acd32;
}

#donations ~ #popup-wrapper, #popup-wrapper:has(#donations) {
  min-height: 436px !important;
}

.donations-page #popup-wrapper {
  width: 75vw !important;
  max-width: 1000px !important;
  min-height: 372px !important;
  height: 372px !important;
  margin: 15px auto !important;
  padding: 15px !important;
}

#username-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #1a2a1a;
  border: 3px solid #9acd32;
  border-radius: 8px;
  padding: 8px 12px;
  color: #b0ff57;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 4px #9acd32;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  z-index: 1000;
}

#username-button:hover {
  border-color: #b0ff57;
  box-shadow: 0 0 8px #b0ff57;
}

#username-button:active {
  transform: translate(1px, 1px);
}

#username-value {
  display: inline-block;
  vertical-align: middle;
}

.info-display.single-line-message {
  justify-content: center;
  padding-top: 0;
  transform: translateY(-20px);
}