/* =========================
   CHARACTER LIST & SELECTION
========================= */
.character-selection-panel {
  max-width: 520px !important;
  width: 92% !important;
  padding: 28px 24px !important;
}

#characterPanel .panel-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 180, 106, 0.18);
}

#characterPanel .panel-header-title h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fff2d0 0%, #ffd700 45%, #d8b46a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 14px rgba(216, 180, 106, 0.3);
  letter-spacing: 0.02em;
}

.char-count-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #efe6d2;
  background: linear-gradient(135deg, rgba(216, 180, 106, 0.15), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(216, 180, 106, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.characterList,
#charList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 180, 106, 0.35) rgba(0, 0, 0, 0.2);
}

.characterList::-webkit-scrollbar,
#charList::-webkit-scrollbar {
  width: 5px;
}

.characterList::-webkit-scrollbar-thumb,
#charList::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 106, 0.35);
  border-radius: 3px;
}

.characterItem {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42, 34, 27, 0.92) 0%, rgba(20, 16, 12, 0.96) 100%);
  border: 1px solid rgba(216, 180, 106, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 88px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.characterItem:hover {
  background: linear-gradient(135deg, rgba(54, 44, 34, 0.95) 0%, rgba(28, 22, 16, 0.98) 100%);
  border-color: rgba(216, 180, 106, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(216, 180, 106, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.characterItem.selectedCharacter {
  border-color: #ffd700 !important;
  background: linear-gradient(135deg, rgba(62, 50, 36, 0.95) 0%, rgba(32, 24, 17, 0.98) 100%);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(216, 180, 106, 0.15);
}

/* Sprite Frame Box */
.characterSpriteFrame {
  width: 68px;
  height: 80px;
  border-radius: 12px;
  background: radial-gradient(circle at bottom center, rgba(216, 180, 106, 0.28) 0%, rgba(15, 12, 9, 0.9) 75%);
  border: 1px solid rgba(216, 180, 106, 0.35);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.characterItem:hover .characterSpriteFrame {
  border-color: rgba(216, 180, 106, 0.65);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(216, 180, 106, 0.25);
}

.characterMiniSprite {
  width: 48px;
  height: 72px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.characterMiniSprite .charSprite {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -44%) scale(0.68) !important;
  transform-origin: center !important;
}

.spritePedestal {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 7px;
  background: radial-gradient(ellipse at center, rgba(216, 180, 106, 0.45) 0%, rgba(0, 0, 0, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
}

/* Character Details */
.characterDetails,
.characterText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 36px;
}

.charHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.characterName {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff2d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.charLevelBadge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffd700;
  background: rgba(216, 180, 106, 0.15);
  border: 1px solid rgba(216, 180, 106, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.charMetaRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.characterClassBadge,
.characterClass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #dcd3bf;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.classIconWrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.classIconWrap svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.classNameText {
  font-weight: 600;
  color: #efe6d2;
}

/* XP Bar Container */
.charXpContainer,
.charLevelLine {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 1px;
}

.xpTextRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #a7977c;
  font-weight: 600;
}

.xpLabel {
  color: #d8b46a;
  font-weight: 700;
}

.xpValue {
  color: rgba(239, 230, 210, 0.75);
}

.charXpContainer .xpBar,
.charLevelLine .xpBar {
  width: 100%;
  height: 7px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 106, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
  margin-top: 0;
}

.charXpContainer .xpFill,
.charLevelLine .xpFill {
  height: 100%;
  background: linear-gradient(90deg, #c59b56 0%, #ffd700 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  transition: width 0.3s ease;
}

/* Play Action Prompt */
.charPlayAction {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  flex-shrink: 0;
}

.playBtnPulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8b46a 0%, #9e783b 100%);
  border: 1px solid #ffe2aa;
  color: #15100c;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.characterItem:hover .playBtnPulse {
  background: linear-gradient(180deg, #ffe2aa 0%, #c59b56 100%);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

/* Delete Button */
.deleteCharacterCross {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 77, 77, 0.3) !important;
  color: #ff6b6b !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0.75 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
  padding: 0 !important;
}

.characterItem:hover .deleteCharacterCross {
  opacity: 0.95 !important;
  border-color: rgba(255, 77, 77, 0.5) !important;
}

.deleteCharacterCross:hover {
  opacity: 1 !important;
  background: rgba(237, 66, 69, 0.4) !important;
  border-color: #ff4d4d !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.4) !important;
}

/* Empty State */
.empty-characters-box {
  text-align: center;
  padding: 32px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(216, 180, 106, 0.25);
  border-radius: 14px;
  margin: 12px 0;
}

.empty-characters-box .empty-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.empty-characters-box p {
  margin: 0;
  color: #efe6d2;
  font-weight: 600;
}

.empty-characters-box .empty-sub {
  color: #a7977c;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Actions Footer */
.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.create-char-btn {
  background: linear-gradient(180deg, #e5b967 0%, #b8860b 100%) !important;
  border: 1px solid #ffe2aa !important;
  color: #120e0b !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(216, 180, 106, 0.2) !important;
}

.create-char-btn:hover:not(.disabled-btn) {
  background: linear-gradient(180deg, #fff0c4 0%, #d49b18 100%) !important;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.35) !important;
}

.create-char-btn.disabled-btn {
  opacity: 0.5;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
}

.logout-btn {
  margin-top: 2px;
}

@media (max-width: 480px) {
  .characterItem {
    gap: 10px;
    padding: 10px 12px;
  }
  .characterSpriteFrame {
    width: 58px;
    height: 72px;
  }
  .playBtnPulse span {
    display: none;
  }
  .playBtnPulse {
    padding: 8px 10px;
  }
}

/* =========================
   INSTANCES & REALMS SELECTION
========================= */
.instance-selection-panel {
  max-width: 520px !important;
  width: 92% !important;
  padding: 24px 18px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

@media (min-width: 640px) {
  .instance-selection-panel {
    max-width: 620px !important;
    padding: 28px 24px !important;
  }
}

.instance-selection-panel .panel-header-title {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 180, 106, 0.18);
  width: 100%;
  box-sizing: border-box;
}

.instance-selection-panel .panel-header-title h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, #fff2d0 0%, #ffd700 45%, #d8b46a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 14px rgba(216, 180, 106, 0.3);
  letter-spacing: 0.02em;
}

.instance-selection-panel .panel-subtitle {
  font-size: 0.85rem;
  color: #a7977c;
  margin: 0;
}

/* Search Bar */
.instance-search-container {
  position: relative;
  margin: 12px 0 8px 0;
  width: 100%;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}

.instance-search-input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 36px 10px 36px !important;
  background: rgba(10, 8, 6, 0.6);
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: 10px;
  color: #efe6d2;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.instance-search-input:focus {
  border-color: #ffd700;
  background: rgba(15, 12, 9, 0.85);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.clear-search-btn {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: #a7977c !important;
  font-size: 12px !important;
  cursor: pointer !important;
  padding: 4px !important;
  width: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.clear-search-btn:hover {
  color: #fff !important;
}

/* Instance List Container */
#instanceList {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 10px !important;
  margin-bottom: 14px !important;
  max-height: 52vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 4px 6px 4px 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 180, 106, 0.35) rgba(0, 0, 0, 0.2);
  scrollbar-gutter: stable;
}

#instanceList::-webkit-scrollbar {
  width: 5px;
}

#instanceList::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 106, 0.35);
  border-radius: 3px;
}

/* Instance Card */
.instanceBox {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 14px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(42, 34, 27, 0.92) 0%, rgba(20, 16, 12, 0.96) 100%) !important;
  border: 1px solid rgba(216, 180, 106, 0.25) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.instanceBox:hover {
  background: linear-gradient(135deg, rgba(54, 44, 34, 0.95) 0%, rgba(28, 22, 16, 0.98) 100%) !important;
  border-color: rgba(216, 180, 106, 0.55) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(216, 180, 106, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-2px) !important;
}

.instanceBox.is-full {
  opacity: 0.85;
}

/* Realm Card Top Row */
.realmCardTop {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.realmEmblemFrame {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(216, 180, 106, 0.25) 0%, rgba(15, 12, 9, 0.9) 80%);
  border: 1px solid rgba(216, 180, 106, 0.4);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.instanceBox:hover .realmEmblemFrame {
  border-color: #ffd700;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.3);
}

.realmEmblem {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realmEmblem svg {
  width: 20px;
  height: 20px;
  fill: #ffd700;
  filter: drop-shadow(0 0 4px rgba(216, 180, 106, 0.5));
}

.instanceHeader {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.realmTitleRow {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.instanceTitle {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff2d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  min-width: 0;
}

.realmIdBadge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(216, 180, 106, 0.15);
  color: #ffd700;
  border: 1px solid rgba(216, 180, 106, 0.3);
  flex-shrink: 0;
}

.realmSubtitle {
  font-size: 0.76rem;
  color: #a7977c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ping Badge */
.instancePing {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.pingDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.instancePing.ping-low {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.25);
}
.instancePing.ping-low .pingDot {
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
}

.instancePing.ping-medium {
  color: #f1c40f;
  border-color: rgba(241, 196, 15, 0.25);
}
.instancePing.ping-medium .pingDot {
  background: #f1c40f;
  box-shadow: 0 0 6px #f1c40f;
}

.instancePing.ping-high {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.25);
}
.instancePing.ping-high .pingDot {
  background: #e74c3c;
  box-shadow: 0 0 6px #e74c3c;
}

/* Instance Stats & Progress */
.instanceStats {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.instanceStatsHeader {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.instanceStatusBadge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  flex-shrink: 0 !important;
}

.statusDotPulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.instanceStatusBadge.fluid {
  background: rgba(46, 204, 113, 0.14);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.35);
}
.instanceStatusBadge.fluid .statusDotPulse {
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
}

.instanceStatusBadge.busy {
  background: rgba(241, 196, 15, 0.14);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.35);
}
.instanceStatusBadge.busy .statusDotPulse {
  background: #f1c40f;
  box-shadow: 0 0 6px #f1c40f;
}

.instanceStatusBadge.full {
  background: rgba(231, 76, 60, 0.14);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.35);
}
.instanceStatusBadge.full .statusDotPulse {
  background: #e74c3c;
  box-shadow: 0 0 6px #e74c3c;
}

.instancePlayersCount {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(239, 230, 210, 0.85);
  white-space: nowrap;
}

.instanceProgress {
  height: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  border: 1px solid rgba(216, 180, 106, 0.15) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.instanceProgressBar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instanceProgressBar.fluid {
  background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.instanceProgressBar.busy {
  background: linear-gradient(90deg, #e67e22 0%, #f1c40f 100%);
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.instanceProgressBar.full {
  background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* Back Button */

.instance-back-btn {
  margin-top: 10px;
  width: 100% !important;
  padding: 12px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(216, 180, 106, 0.25) !important;
  border-radius: 10px !important;
  color: #a7977c !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.instance-back-btn:hover {
  color: #efe6d2 !important;
  border-color: rgba(216, 180, 106, 0.5) !important;
  background: rgba(216, 180, 106, 0.12) !important;
}

@media (max-width: 480px) {
  .instance-selection-panel {
    width: 95% !important;
    padding: 18px 12px !important;
  }
  #instanceList {
    padding: 2px 4px 2px 2px !important;
  }
  .instanceBox {
    padding: 12px 10px !important;
  }
  .realmEmblemFrame {
    width: 36px;
    height: 36px;
  }
  .realmEmblem svg {
    width: 18px;
    height: 18px;
  }
  .instanceTitle {
    font-size: 0.95rem;
  }
  .instancePlayersCount {
    font-size: 0.72rem;
  }
}

.disabled-btn {
  opacity: 0.55;
  cursor: not-allowed !important;
}