:root {
  --crimson: #c82333;
  --crimson-glow: rgba(200, 35, 51, 0.4);
  --magicka: #17a2b8;
  --magicka-glow: rgba(23, 162, 184, 0.4);
  --stamina: #28a745;
  --stamina-glow: rgba(40, 167, 69, 0.4);
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.5);
  --realm-bg: rgba(14, 18, 24, 0.88);
  --realm-border: rgba(212, 175, 55, 0.35);
  --realm-dim: #9aa8b6;
  --realm-bright: #e9f0f8;
  --font-serif: 'Cinzel', 'Trajan Pro', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

[hidden] {
  display: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #080b10;
  color: var(--realm-bright);
  font-family: var(--font-sans);
}

#canvas3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* UI Overlay Container */
#ui-root {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Interactive elements inside UI can receive clicks */
.interactive {
  pointer-events: auto;
}

/* ---------------- COMPASS (Top Center) ---------------- */
#compass-container {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 86vw);
  height: 38px;
  background: linear-gradient(180deg, rgba(8,12,18,0.75) 0%, rgba(12,16,24,0.3) 100%);
  border: 1px solid var(--realm-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

#compass-arrow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--gold);
  z-index: 4;
}

#compass-tape {
  position: absolute;
  top: 0;
  left: 0;
  width: 2880px; /* Repeating strip */
  height: 100%;
  display: flex;
  align-items: center;
  transition: transform 0.05s linear;
}

.compass-tick {
  position: absolute;
  color: var(--realm-dim);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px #000;
  transform: translateX(-50%);
}

.compass-tick.cardinal {
  color: var(--gold);
  font-size: 15px;
}

.compass-marker {
  position: absolute;
  transform: translateX(-50%);
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ---------------- TOP LEFT: WAX ACCOUNT & LEVEL ---------------- */
#player-header {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--realm-bg);
  border: 1px solid var(--realm-border);
  padding: 8px 16px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.avatar-crest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #3a2d14, #120f06);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 0 6px var(--gold-glow);
}

.player-info-text {
  display: flex;
  flex-direction: column;
}

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

.player-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.wax-badge {
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.player-sub {
  font-size: 11px;
  color: var(--realm-dim);
}

/* ---------------- TOP RIGHT: QUEST TRACKER & WAX BUTTON ---------------- */
#top-right-panel {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(20, 24, 32, 0.9) 100%);
  border: 1px solid var(--gold);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.wallet-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(30, 36, 48, 0.95) 100%);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateY(-1px);
}

#quest-tracker {
  background: var(--realm-bg);
  border: 1px solid var(--realm-border);
  border-radius: 4px;
  padding: 12px 16px;
  width: 280px;
  backdrop-filter: blur(8px);
}

.quest-title-header {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 4px;
}

.quest-item {
  font-size: 12px;
  color: var(--realm-bright);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  line-height: 1.4;
}

.quest-check {
  color: var(--gold);
  font-weight: bold;
}

/* ---------------- CENTER CROSSHAIR & INTERACTION ---------------- */
#crosshair-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

#crosshair {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease, background 0.15s ease;
}

#crosshair.active {
  transform: scale(1.6);
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

#interaction-prompt {
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid var(--gold);
  padding: 5px 14px;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

#interaction-prompt.visible {
  opacity: 1;
  transform: translateY(0);
}

.key-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 4px;
}

/* ---------------- BOTTOM HUD: BARS & HOTBAR ---------------- */
#bottom-hud {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.realm-bars-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.realm-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 180px;
}

.realm-bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2px;
}

.realm-bar-label {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--realm-dim);
}

.realm-bar-val {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.realm-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(12, 16, 22, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.realm-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transition: transform 0.12s ease-out;
}

.realm-bar-fill.health {
  background: linear-gradient(90deg, #991b1b, #ef4444);
  box-shadow: 0 0 10px var(--crimson-glow);
}

.realm-bar-fill.magicka {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 10px var(--magicka-glow);
}

.realm-bar-fill.stamina {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 10px var(--stamina-glow);
}

/* Bottom Controls & Equipment Hint */
#controls-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--realm-dim);
}

.ctrl-item span {
  color: var(--gold);
  font-weight: 700;
}

/* ---------------- FLOATING COMBAT NUMBERS ---------------- */
.damage-number {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 0 8px rgba(255, 60, 60, 0.8);
  pointer-events: none;
  animation: floatUp 0.8s ease-out forwards;
}

.damage-number.crit {
  font-size: 28px;
  color: #ffdd44;
  text-shadow: 0 0 6px #000, 0 0 12px rgba(255, 215, 0, 0.9);
}

@keyframes floatUp {
  0% { transform: translate(-50%, 0) scale(0.7); opacity: 0; }
  25% { transform: translate(-50%, -15px) scale(1.2); opacity: 1; }
  75% { transform: translate(-50%, -35px) scale(1.0); opacity: 0.9; }
  100% { transform: translate(-50%, -50px) scale(0.8); opacity: 0; }
}

/* ---------------- MODALS (Inventory, Forge, Dialogue, Wallet) ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay:not(.open) * {
  pointer-events: none !important;
}

.realm-dialog {
  background: linear-gradient(180deg, #121822 0%, #0a0e14 100%);
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(212, 175, 55, 0.08);
  width: min(840px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--realm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dialog-close {
  background: none;
  border: none;
  color: var(--realm-dim);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}
.dialog-close:hover {
  color: #fff;
}

.dialog-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Inventory Grid */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.inv-card {
  background: rgba(18, 24, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.inv-card:hover {
  border-color: var(--gold);
  background: rgba(28, 38, 54, 0.8);
  transform: translateY(-2px);
}

.inv-card.equipped {
  border-color: var(--gold);
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.25);
}

.inv-card.nft {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.inv-icon {
  font-size: 32px;
}

.inv-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.inv-type {
  font-size: 10px;
  color: var(--realm-dim);
}

.inv-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.inv-badge.nft-badge {
  background: #7e22ce;
  color: #fff;
}

/* Equipped Gear Slots Overview */
.equipped-overview-panel {
  background: rgba(10, 14, 22, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.equipped-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 650px) {
  .equipped-slots-grid {
    grid-template-columns: 1fr;
  }
}

.equip-slot-box {
  background: rgba(18, 24, 38, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.equip-slot-box:hover {
  border-color: var(--gold);
  background: rgba(28, 38, 58, 0.95);
  transform: translateY(-2px);
}

.slot-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8.5px;
  letter-spacing: 1px;
  color: var(--realm-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.slot-icon {
  font-size: 26px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.slot-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-stat {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

.equipped-stats-row {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #cbd5e1;
  flex-wrap: wrap;
  gap: 8px;
}

/* Cross-Collection Importer */
.nft-importer-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.importer-input-row {
  display: flex;
  gap: 8px;
}

.importer-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--realm-border);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.quick-import-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.chip-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* Category Filter Tabs */
.inv-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inv-filter-btn {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--realm-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inv-filter-btn:hover, .inv-filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: #fff;
}

.inv-card-equip-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #15803d;
  color: #fff;
  margin-top: 4px;
}

/* Forge Recipes */
.forge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .forge-row {
    grid-template-columns: 1fr;
  }
}

.recipe-item {
  background: rgba(18, 24, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recipe-item:hover, .recipe-item.active {
  border-color: var(--gold);
  background: rgba(30, 42, 60, 0.9);
}

.recipe-info h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
}

.recipe-info p {
  font-size: 11px;
  color: var(--realm-dim);
  margin-top: 2px;
}

.forge-action-card {
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid var(--realm-border);
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forge-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
}

.forge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6);
}

.forge-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Dialogue Box (Realm Letterbox) */
#dialogue-overlay {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  background: rgba(10, 14, 20, 0.94);
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  z-index: 85;
  pointer-events: auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.npc-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 1px;
}

.dialogue-text {
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}

.dialogue-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.dialogue-choice {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--realm-bright);
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialogue-choice:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold);
  color: #fff;
  padding-left: 20px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.dialogue-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Dungeon Atmosphere Vignette */
#vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Notifications Banner */
#notification-banner {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 12, 18, 0.9);
  border: 1px solid var(--gold);
  padding: 8px 24px;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 60;
}

#notification-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

/* ---------------- CHARACTER SELECTION SCREEN ---------------- */
.hero-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .hero-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-card {
  background: rgba(18, 24, 34, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.hero-card:hover, .hero-card.selected {
  border-color: var(--gold);
  background: rgba(32, 44, 62, 0.9);
  box-shadow: 0 0 18px var(--gold-glow);
  transform: translateY(-4px);
}

.hero-card.selected::after {
  content: "ACTIVE";
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
}

.hero-avatar-icon {
  font-size: 42px;
  margin-bottom: 4px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
}

.hero-desc {
  font-size: 11px;
  color: var(--realm-dim);
  line-height: 1.4;
  min-height: 44px;
}

.hero-stat-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.hero-passive-tag {
  font-size: 10px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 3px 6px;
  border-radius: 3px;
  line-height: 1.3;
}

/* ---------------- WORLD MAP MODAL ---------------- */
.world-map-frame {
  width: 100%;
  height: 480px;
  background: radial-gradient(circle, #d6c098 0%, #b89d6e 100%);
  border: 2px solid #5a3d1e;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.4);
}

.map-region-label {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  color: #3d240c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.map-pin {
  font-size: 20px;
}

#map-player-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c82333;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(200, 35, 51, 0.9);
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: all 0.1s linear;
}

/* ---------------- BLOCKING HUD OVERLAY ---------------- */
#block-guard-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 24, 38, 0.88);
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  font-family: var(--font-serif);
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

#block-guard-indicator.active {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ---------------- REALM CINEMATIC LOADING TRANSITION ---------------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #040608;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#loading-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--gold-glow);
}

.loading-lore {
  max-width: 580px;
  text-align: center;
  font-size: 14px;
  color: var(--realm-dim);
  line-height: 1.6;
  padding: 0 20px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------- BOSS HEALTH BAR ---------------- */
#boss-bar-container {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 20;
}

#boss-bar-container.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

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

.boss-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

.boss-track {
  width: 100%;
  height: 14px;
  background: rgba(10, 14, 20, 0.9);
  border: 1.5px solid #ef4444;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4), inset 0 2px 4px #000;
  overflow: hidden;
}

.boss-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #991b1b, #ef4444);
  transform-origin: left;
  transition: transform 0.15s ease-out;
}

/* ---------------- WAX VAULT VICTORY REWARD MODAL ---------------- */
.reward-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.reward-nft-showcase {
  background: linear-gradient(145deg, #182234 0%, #0d121c 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 35px var(--gold-glow);
  border-radius: 10px;
  padding: 24px;
  width: min(340px, 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  animation: rewardPulse 3s ease-in-out infinite;
}

@keyframes rewardPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.8); }
}

.reward-nft-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.reward-nft-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 1px;
}

.reward-payout-box {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid #28a745;
  color: #4ade80;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.reward-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.wax-explorer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.wax-explorer-link:hover {
  background: var(--gold);
  color: #000;
}

/* ---------------- WAX ECONOMY & VALUE PORTAL MODAL ---------------- */
.economy-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.economy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.economy-card {
  background: rgba(14, 20, 30, 0.85);
  border: 1px solid var(--realm-border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.economy-card.player-card {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.economy-card.creator-card {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.economy-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.economy-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.economy-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.economy-item-bullet {
  font-size: 16px;
  line-height: 1.2;
}

.economy-metrics-panel {
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid var(--realm-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.metric-label {
  font-size: 11px;
  color: var(--realm-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.metric-value.gold {
  color: var(--gold);
}

.metric-value.blue {
  color: #38bdf8;
}

.metric-value.green {
  color: #4ade80;
}

.grandmaster-banner {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), rgba(56, 189, 248, 0.25));
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: rewardPulse 3s ease-in-out infinite;
}

.grandmaster-banner-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
}

/* ---------------- REALM DEATH SCREEN ---------------- */
#death-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(140, 12, 12, 0.88) 0%, rgba(12, 2, 2, 0.98) 100%);
  z-index: 150;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  backdrop-filter: blur(8px);
}

#death-screen.active, #death-screen.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#death-screen:not(.active):not(.visible) * {
  pointer-events: none !important;
}

.death-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 35px rgba(239, 68, 68, 0.9), 0 4px 12px #000;
  animation: deathTextPulse 2.5s ease-in-out infinite;
}

@keyframes deathTextPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(239,68,68,0.6)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(239,68,68,1.0)); }
}

.death-subtitle {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fca5a5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.death-penalty-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 14px 28px;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 13px;
  max-width: 440px;
  text-align: center;
  line-height: 1.6;
}

.respawn-btn {
  background: linear-gradient(180deg, #991b1b, #7f1d1d);
  border: 1.5px solid #ef4444;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.respawn-btn:hover {
  background: #dc2626;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
  transform: translateY(-2px);
}

/* ---------------- TIERED DROP RATES & CREATOR ECONOMICS ---------------- */
.drop-odds-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.drop-pill {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.drop-pill.common { background: rgba(148, 163, 184, 0.2); border: 1px solid #94a3b8; color: #cbd5e1; }
.drop-pill.rare { background: rgba(56, 189, 248, 0.2); border: 1px solid #38bdf8; color: #38bdf8; }
.drop-pill.epic { background: rgba(168, 85, 247, 0.2); border: 1px solid #a855f7; color: #c084fc; }
.drop-pill.mythic { background: rgba(245, 158, 11, 0.2); border: 1px solid var(--gold); color: var(--gold); }




/* ---------------- CO-OP MULTIPLAYER (UP TO 6 PLAYERS) ---------------- */
.remote-nameplate {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(10, 15, 26, 0.88);
  border: 1px solid var(--realm-border);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  min-width: 110px;
}

.nameplate-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
}

.nameplate-wax {
  color: #38bdf8;
  font-family: monospace;
}

.nameplate-class {
  color: var(--gold);
}

.nameplate-hp-track {
  width: 100%;
  height: 5px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}

.nameplate-hp-fill {
  height: 100%;
  background: #ef4444;
  transition: width 0.15s ease;
}

#realm-party-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

#realm-party-badge:hover {
  background: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.party-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.party-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--realm-border);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.party-member-item.is-self {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
}

.party-member-item .member-role {
  color: var(--gold);
  font-weight: 700;
  width: 75px;
}

.party-member-item .member-name {
  color: #f8fafc;
  font-family: monospace;
  flex: 1;
}

.party-member-item .member-class {
  color: #38bdf8;
  margin-right: 12px;
}

.party-member-item .member-status {
  font-size: 11px;
  color: #4ade80;
}

/* ---------------- NFT WARDROBE CUSTOMIZATION ---------------- */
.wardrobe-split-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.wardrobe-avatar-panel {
  width: 270px;
  flex-shrink: 0;
}

.wardrobe-catalog-panel {
  flex: 1;
  min-width: 0;
}

@media (max-width: 860px) {
  .wardrobe-split-layout {
    flex-direction: column !important;
  }
  .wardrobe-avatar-panel {
    width: 100% !important;
  }
}

.wardrobe-section {
  margin-bottom: 18px;
}

.wardrobe-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.wardrobe-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--realm-border);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wardrobe-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
}

.wardrobe-card.equipped {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.wardrobe-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wardrobe-card-title {
  font-weight: 700;
  font-size: 12px;
  color: #f8fafc;
}

.wardrobe-card-icon {
  font-size: 20px;
}

.wardrobe-card-desc {
  font-size: 11px;
  color: var(--realm-dim);
  line-height: 1.3;
}

.wardrobe-card-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 4px;
  font-weight: 700;
}

.wardrobe-card-badge.mythic { background: rgba(245, 158, 11, 0.2); color: var(--gold); border: 1px solid var(--gold); }
.wardrobe-card-badge.epic { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid #a855f7; }
.wardrobe-card-badge.rare { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid #38bdf8; }
.wardrobe-card-badge.common { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid #94a3b8; }

/* WAX On-Chain Wardrobe Header & Actions */
.wardrobe-wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.starter-pack-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 6px;
  padding: 10px 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.wardrobe-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--realm-border);
  padding-bottom: 4px;
}

.wardrobe-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--realm-dim);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wardrobe-tab-btn:hover {
  color: #fff;
}

.wardrobe-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.wardrobe-card.locked {
  opacity: 0.9;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

.wardrobe-card.locked:hover {
  border-color: rgba(239, 68, 68, 0.6);
}

.nft-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nft-badge.owned {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
}

.nft-badge.locked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.nft-badge.price {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.wardrobe-btn-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.wardrobe-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.18s ease;
  text-decoration: none;
}

.wardrobe-action-btn.equip {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.wardrobe-action-btn.equip:hover {
  background: #38bdf8;
  color: #000;
}

.wardrobe-action-btn.mint {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 179, 8, 0.15));
  border-color: var(--gold);
  color: var(--gold);
}

.wardrobe-action-btn.mint:hover {
  background: var(--gold);
  color: #000;
}

.wardrobe-action-btn.equipped {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  cursor: default;
}

.wardrobe-action-btn.explorer {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--realm-border);
  color: var(--realm-dim);
  font-size: 10px;
  padding: 4px 6px;
}

.wardrobe-action-btn.explorer:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.atomichub-tag {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #38bdf8;
  color: #38bdf8 !important;
  text-decoration: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.atomichub-tag:hover {
  background: #38bdf8;
  color: #000 !important;
}

/* ---------------- ARCHERY & ARENA HUD BANNERS ---------------- */
#archery-hud-banner, #arena-hud-banner {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  pointer-events: none;
}

.archery-banner-content {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  border: 2px solid #facc15;
  border-radius: 8px;
  padding: 8px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(250, 204, 21, 0.3);
  text-align: center;
}

.archery-title {
  font-size: 13px;
  font-weight: 700;
  color: #facc15;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.archery-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  font-size: 13px;
}

.archery-stat .label {
  color: var(--realm-dim);
  font-size: 11px;
}

.arena-banner-content {
  background: linear-gradient(180deg, rgba(30, 10, 10, 0.95), rgba(15, 23, 42, 0.85));
  border: 2px solid #ef4444;
  border-radius: 8px;
  padding: 8px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(239, 68, 68, 0.4);
  text-align: center;
}

.arena-title {
  font-size: 14px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.arena-sub-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  font-size: 13px;
}

/* ---------------- POTION QUICKBAR & ACTIVE BUFFS ---------------- */
#potion-quickbar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
  pointer-events: auto;
}

.potion-slot {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--realm-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.potion-slot:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

.potion-slot:active {
  transform: translateY(1px);
}

.potion-key {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 3px;
  border-radius: 2px;
}

.potion-icon {
  font-size: 18px;
}

.potion-count {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #facc15;
  background: rgba(0, 0, 0, 0.6);
  padding: 0 3px;
  border-radius: 2px;
}

#active-buffs-bar {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 80;
  pointer-events: none;
}

.buff-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: pulse 1.8s infinite alternate;
}

/* ---------------- BOUNTY BOARD & ALCHEMY UI ---------------- */
.bounty-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--realm-border);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.bounty-card:hover {
  border-color: #f59e0b;
}

.bounty-card.completed {
  border-color: #22c55e;
  background: rgba(22, 101, 52, 0.15);
}

.bounty-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bounty-title {
  font-size: 14px;
  font-weight: 700;
  color: #fef08a;
}

.bounty-desc {
  font-size: 12px;
  color: var(--realm-dim);
}

.bounty-reward {
  font-size: 12px;
  color: #facc15;
  font-weight: 600;
}

.bounty-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--realm-border);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bounty-btn.ready {
  background: #22c55e;
  border-color: #4ade80;
  color: #000;
}

.bounty-btn.ready:hover {
  background: #16a34a;
  transform: scale(1.04);
}

.bounty-btn.claimed {
  background: transparent;
  border-color: #475569;
  color: #64748b;
  cursor: default;
}

.alchemy-recipe-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.alchemy-recipe-card:hover {
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-title {
  font-size: 14px;
  font-weight: 700;
  color: #a7f3d0;
}

.recipe-effect {
  font-size: 12px;
  color: #e2e8f0;
}

.recipe-cost-row {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--realm-dim);
}

.brew-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.brew-btn:hover {
  background: #10b981;
  color: #000;
}


