@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");

.pixelify-sans {
  font-family: "Pixelify Sans", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
  /* outline: 1px solid red; */
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Keine Scrollbalken */
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h2 {
  font-size: 24px;
}

p {
  text-align: center;
  margin: 1rem;
}

canvas {
  display: block;
  background: #47aba9;
}

#fullscreenButton {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#worldInfo {
  position: absolute;
  bottom: 50px;
  left: 10px;
  padding: 10px 20px;
  font-family: Pixelify Sans, serif;
  font-size: 16px;
  z-index: 10;
  text-align: left;
}

#debug {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 350px;
  height: 100%;
  background-color: rgba(224, 255, 255, 0.7);
  z-index: 10;
  padding: 10px;
  box-shadow: -20px 0 20px rgba(0, 0, 0, 0.4);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  overflow-y: auto;
  font-family: "Pixelify Sans", serif;
  transition: transform 0.25s ease;
}

#debug.collapsed {
  transform: translateX(350px);
}

#debugToggle {
  position: absolute;
  right: 350px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 60px;
  background-color: rgba(224, 255, 255, 0.7);
  border: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
  transition: right 0.25s ease;
}

#debug.collapsed + #debugToggle,
#debugToggle.collapsed {
  right: 0;
}

#debug h3 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
}

#debug label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
}

#debug input[type="checkbox"] {
  margin-right: 10px;
  accent-color: black;
}

#debug p {
  margin: 0 0 1rem 0;
  font-size: 16px;
  color: #333;
  text-align: left;
}

#debugStats {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 13px;
  font-family: monospace;
  color: #222;
  text-align: center;
}

#loginScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; /* 100% der Breite des Viewports */
  height: 100vh; /* 100% der Höhe des Viewports */
  overflow: hidden; /* Verhindert Überlauf */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #333; /* Hintergrundfarbe bleibt */
  color: white;
  font-family: Pixelify Sans, serif;
  font-size: 22px;
  padding: 20px;
  box-sizing: border-box;
}

input[type="text"] {
  padding: 10px 25px;
  margin: 10px;
  font-size: 18px;
  border: 2px solid #555;
  border-radius: 5px;
  outline: none;
  /* width: 250px; */
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #f9f9f9;
  font-family: Pixelify Sans, serif;
  color: #333;
  text-align: center;
}

input[type="text"]:focus {
  border-color: #47aba9;
  box-shadow: 0 0 10px rgba(71, 171, 169, 0.5);
}

#characterButton {
  padding: 10px 18px;
  font-family: Pixelify Sans, serif;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #47aba9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  align-self: center; /* Center the buttons */
}

#characterButton:hover {
  background-color: #3a9c98;
}

#characterButton:active {
  transform: scale(0.95);
}

#characterButton:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

#chatInputContainer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#chatInputContainer:focus-within {
  opacity: 1;
  pointer-events: auto;
}

#chatInput {
  width: 60vw;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #555;
  border-radius: 5px;
  outline: none;
}

/* ── Mobile custom keyboard overlay ───────────────────────────────────────── */
#mobileKeyboard {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 4px 14px;
  font-family: "Pixelify Sans", serif;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
  gap: 3px;
}

#mobileKeyboard.mkb-visible {
  display: flex;
}

#mobileKeyboardBar {
  display: flex;
  align-items: stretch;
  gap: 5px;
  margin-bottom: 5px;
  padding: 0 2px;
  flex-shrink: 0;
  min-height: clamp(36px, 9vw, 54px);
}

#mobileKeyboardDisplay {
  flex: 8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  padding: 5px 8px;
  color: white;
  font-family: "Pixelify Sans", serif;
  font-size: clamp(14px, 3.5vw, 20px);
  min-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobileKeyboardDisplay.mkb-placeholder {
  opacity: 0.45;
}

.mkb-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: clamp(36px, 9vw, 54px);
}

.mkb-key {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: white;
  font-family: "Pixelify Sans", serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 0 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mkb-key.mkb-pressed {
  background: rgba(71, 171, 169, 0.5);
  border-color: rgba(71, 171, 169, 0.65);
}

.mkb-key-wide {
  flex: 3;
}

.mkb-key-send {
  flex: 1;
  background: rgba(71, 171, 169, 0.28);
  border-color: rgba(71, 171, 169, 0.45);
}

.mkb-key-send.mkb-pressed {
  background: rgba(71, 171, 169, 0.6);
}

.mkb-key-caps {
  flex: 1;
  font-size: 16px;
  opacity: 0.4;
}

.mkb-key-caps.mkb-key-caps-on {
  opacity: 1;
  background: rgba(71, 171, 169, 0.28);
  border-color: rgba(71, 171, 169, 0.45);
}

.mkb-key-cancel {
  flex: 1;
  background: rgba(180, 50, 50, 0.3);
  border-color: rgba(220, 80, 80, 0.4);
  font-size: 17px;
}

.mkb-key-bs {
  flex: 1;
  font-size: 16px;
}

#walletLogin {
  margin-top: 20px;
  text-align: center;
}

#anonButton {
  padding: 15px 30px;
  font-family: Pixelify Sans, serif;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #47aba9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#anonButton:hover {
  background-color: #3a9c98;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#phantomButton {
  padding: 10px 20px;
  font-family: Pixelify Sans, serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #8c30f5; /* Phantom-Violett */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

#phantomButton:hover {
  background-color: #7326c9;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#disconnectWalletButton {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding-top: 6px;
}

#serverStatus {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #555;
}

#serverStatus.pinging {
  background: #888;
  animation: statusPulse 0.8s ease-in-out infinite;
}

#serverStatus.ok {
  background: #4caf7d;
}

#serverStatus.error {
  background: #e05555;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#solflareButton {
  padding: 10px 20px;
  font-family: Pixelify Sans, serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #ff8c00; /* Solflare-Orange */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

#solflareButton:hover {
  background-color: #e07a00;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
/*       
      #solflareButton:active {
        transform: scale(0.95);
      } */

/* #solflareButton.selected {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    } */

#walletAddress {
  margin-top: 10px;
  font-family: Pixelify Sans, serif;
  font-size: 14px;
  color: #ddd;
}

#serverSelection {
  margin: 20px 0;
  text-align: left;
  font-family: Pixelify Sans, serif;
  font-size: 18px;
  color: white;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#characterSelectInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#serverSelection label {
  margin: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#walletSelection {
  margin: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#anonButton {
  padding: 16px 48px;
  font-family: "Pixelify Sans", serif;
  font-size: 22px;
  font-weight: bold;
  color: white;
  background-color: #47aba9;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#anonButton:hover {
  background-color: #3a9c98;
  box-shadow: 0 0 14px rgba(71, 171, 169, 0.6);
}

#anonButton:active {
  transform: scale(0.97);
}

#anonButton:disabled {
  background-color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}

#anonSubtext {
  font-size: 13px;
  color: #aaa;
  margin: 4px 0 0 0;
}

.login-divider {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 16px 0 8px;
  gap: 10px;
  color: #666;
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #444;
}

#walletPrompt {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 10px 0;
  line-height: 1.5;
  text-align: center;
  align-self: stretch;
}

#topRight {
  position: absolute;
  display: flex;
  align-items: center;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  font-family: Pixelify Sans, serif;
  font-size: 18px;
  z-index: 10;
  text-align: right;
}

.wallet-buttons {
  display: inline-flex;
  gap: 10px;
}

.wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  font-family: "Pixelify Sans", serif;
  transition: background-color 0.2s, border-color 0.2s;
}

.wallet-button:hover {
  background-color: #2a2a2a;
  border-color: #888;
  color: white;
}

.wallet-button.selected {
  border-color: #007bff;
  background-color: #e7f3ff;
}

.wallet-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
  font-family: "Pixelify Sans", serif;
  color: #333;
  border-radius: 8px;
}

.modal-content p span {
  word-wrap: break-word;
  display: inline-block;
  max-width: 100%;
  text-align: left;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.modal-content button {
  padding: 10px 20px;
  font-size: 16px;
  font-family: "Pixelify Sans", serif;
  color: white;
  background-color: #47aba9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 15px;
}

.modal-content button:hover {
  background-color: #3a9c98;
}

.modal-content button:active {
  transform: scale(0.95);
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.modal-btn-secondary {
  background-color: transparent !important;
  color: #888 !important;
  border: 1px solid #ccc !important;
}

.modal-btn-secondary:hover {
  background-color: #f0f0f0 !important;
  color: #333 !important;
}

.modal-content button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

#versionBadge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-family: "Pixelify Sans", serif;
  transition: color 0.2s;
  user-select: none;
}

#versionBadge:hover {
  color: rgba(255, 255, 255, 0.85);
}

.changelog-modal-content {
  text-align: left;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.changelog-date {
  color: #999;
  font-size: 13px;
  margin: 4px 0 12px 0;
  flex-shrink: 0;
  text-align: left;
}

.changelog-modal-content h3 {
  flex-shrink: 0;
  text-align: left;
}

.changelog-modal-content .modal-buttons {
  flex-shrink: 0;
}

.changelog-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 8px 0;
  text-align: left;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.changelog-list li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #444;
  line-height: 1.4;
}

#nftContainer {
  display: flex;
  gap: 10px;
  margin: 20px 80px;
  max-width: 800px;
  flex-wrap: wrap;
  color: #333;
}


.nft-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 200px;
  border: 2px dashed #aaa;
  border-radius: 10px;
  background-color: #f5f5f5;
  margin: 10px;
  color: #555;
  font-family: "Pixelify Sans", sans-serif;
}

.placeholder-image {
  width: 100px;
  height: 100px;
  background-color: #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
}

#carouselContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  width: auto;
}

.carousel-track {
  display: flex;
  /* overflow: hidden; */
  width: auto;
  margin: 10px;
}

.nft-card {
  width: 110px;
  height: 140px;
  border: 2px dashed #47aba9;
  border-radius: 10px;
  text-align: center;
  padding: 5px;
  background: rgba(71, 171, 169, 0.08);
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nft-card:hover {
  background: rgba(71, 171, 169, 0.18);
  transform: scale(1.04);
}

.nft-card p {
  margin: 0;
  padding: 0;
  color: #47aba9;
  font-size: 14px;
  font-family: "Pixelify Sans", serif;
}

.nft-card:first-of-type {
  margin-left: 10px;
}

.carousel-button {
  background-color: #47aba9;
  color: white;
  border: none;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

.carousel-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.nft-card.selected {
  border: 2px solid #47aba9;
  box-shadow: 0 0 10px #47aba9;
  transform: scale(1.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#leaderboard {
  position: absolute;
  top: 60px;
  left: 20px;
  z-index: 1000;
  font-family: "Pixelify Sans", serif;
  font-size: 18px;
  color: white;
  text-align: left;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}


#leaderboard ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#leaderboard li {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

#leaderboard li .player-id {
  font-family: "Pixelify Sans", serif;
}

.player-list-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.key-hint {
  font-size: 11px;
  opacity: 0.45;
  letter-spacing: 0;
  cursor: pointer;
}

@media (pointer: fine) {
  .dismiss-icon { display: none; }
}

@media (pointer: coarse) {
  .key-hint { display: none; }
  #questDialogClose,
  #questDialogAbandon,
  #pawnDialogChop { justify-content: center; }
}

#questDialog {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(480px, 90vw);
}

#questDialog.visible {
  display: block;
}

#questDialogBox {
  background: rgba(12, 12, 24, 0.96);
  border: 2px solid #47aba9;
  border-radius: 10px;
  padding: 0;
  font-family: "Pixelify Sans", serif;
  color: #eee;
  overflow: hidden;
}

#questDialogHeader {
  background: rgba(71, 171, 169, 0.15);
  border-bottom: 1px solid rgba(71, 171, 169, 0.3);
  padding: 12px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  text-align: left;
}

#questDialogDismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

#questDialogDismiss:hover {
  color: #fff;
}

#questTitleText {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.3px;
}

#questNpcName {
  font-size: 12px;
  color: #47aba9;
}

#questDescription {
  font-size: 13px;
  margin: 0;
  padding: 12px 16px;
  line-height: 1.6;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-style: italic;
  text-align: left;
}

#questMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 10px 16px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: left;
}

#questObjectiveText {
  color: #e8d87a;
}

#questRewardText {
  color: #a8e0a0;
}

#questDialogClose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  margin: 10px 16px 12px;
  padding: 7px 12px;
  font-family: "Pixelify Sans", serif;
  font-size: 14px;
  background: #47aba9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#questDialogClose:hover {
  background: #3a9c98;
}

#questDialogClose:disabled {
  background: #2a5a59;
  color: #888;
  cursor: default;
}

#questDialogAbandon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 7px 12px;
  font-family: "Pixelify Sans", serif;
  font-size: 14px;
  background: none;
  color: #a05050;
  border: 1px solid #a05050;
  border-radius: 5px;
  cursor: pointer;
}

#questDialogAbandon:hover {
  background: rgba(160, 80, 80, 0.15);
  color: #d06060;
  border-color: #d06060;
}

#pawnDialog {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(480px, 90vw);
}

#pawnDialog.visible {
  display: block;
}

#pawnDialogBox {
  background: rgba(12, 12, 24, 0.96);
  border: 2px solid #47aba9;
  border-radius: 10px;
  padding: 0;
  font-family: "Pixelify Sans", serif;
  color: #eee;
  overflow: hidden;
}

#pawnDialogHeader {
  background: rgba(71, 171, 169, 0.15);
  border-bottom: 1px solid rgba(71, 171, 169, 0.3);
  padding: 12px 16px 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#pawnDialogTitle {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.3px;
}

#pawnDialogDismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

#pawnDialogDismiss:hover { color: #fff; }

#pawnDialogDescription {
  font-size: 13px;
  margin: 0;
  padding: 12px 16px;
  line-height: 1.6;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-style: italic;
  text-align: left;
}

#pawnDialogChop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  margin: 10px 16px 12px;
  padding: 7px 12px;
  font-family: "Pixelify Sans", serif;
  font-size: 14px;
  background: #47aba9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#pawnDialogChop:hover { background: #3a9c98; }
#pawnDialogChop:disabled { background: #2a5a59; color: #888; cursor: default; }

#pawnChopCounter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}
#pawnChopCounter button {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 18px;
  width: 32px;
  height: 32px;
  background: #2a4a49;
  color: #c8e6e5;
  border: 1px solid #3a7a78;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}
#pawnChopCounter button:hover:not(:disabled) { background: #3a9c98; }
#pawnChopCounter button:disabled { color: #555; cursor: default; }
#pawnChopCount {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 20px;
  color: #f5c518;
  min-width: 24px;
  text-align: center;
}

#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 1000;
}

.toast {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: "Pixelify Sans", serif;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.toast.toast-visible {
  opacity: 1;
}

#zoomIndicator {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 7px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#zoomIndicator.visible {
  opacity: 1;
}

#serverSelectContainer {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 5px 10px;
}

#serverSelect {
  font-family: "Pixelify Sans", serif;
  font-size: 13px;
  background: transparent;
  color: #bbb;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#serverSelect:hover {
  color: white;
}

#serverSelect option {
  background: #1a1a1a;
  color: #ccc;
}

#questLog {
  position: absolute;
  bottom: 60px;
  left: 20px;
  z-index: 1000;
  font-family: "Pixelify Sans", serif;
  font-size: 18px;
  color: white;
  text-align: left;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.ql-scroll-btn {
  background: none;
  border: none;
  color: #aaa;
  font-family: "Pixelify Sans", serif;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px 0 0;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.ql-scroll-btn:hover {
  color: white;
}

#questLog ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#questLog li {
  line-height: 1.5;
}

@media (max-width: 768px) {
  #leaderboard {
    left: 10px;
    min-width: 150px;
  }
}



/* ── Mint card in carousel ──────────────────────────────────────────────── */
.nft-card--mint {
  border-style: dashed;
}

.nft-card-badge {
  font-size: 10px;
  font-family: "Pixelify Sans", serif;
  color: #aaa;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.nft-card-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  font-size: 48px;
  line-height: 1;
  color: #47aba9;
  opacity: 0.7;
  font-family: sans-serif;
  font-weight: 300;
  margin-bottom: 2px;
}

@media (orientation: landscape) and (max-height: 500px) {
  #loginScreen {
    overflow-y: auto;
    justify-content: flex-start;
    padding: 10px 20px;
  }


  #serverSelection {
    margin: 10px 0;
  }

  #serverSelection > p:first-child {
    display: none;
  }

}
