/* =========================
   OVERLAYS
========================= */
.overlayPanel{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  pointer-events:none;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  z-index:3200;
}

.overlayPanel.hidden {
  display: none !important;
}

/* =========================
   UNIVERSAL WINDOW HEADER (GAME GRAPHIC CHARTER + INVENTORY STRUCTURE)
   ========================= */
.overlayCard,
.optionsCard,
.optionsVueCard,
.statsCard,
.spellsCard,
.inventoryCard,
.craftCard,
.bankCard,
.merchantCard,
.socialCard,
.questsCard,
.encyclopediaCard,
.ladderCard,
.mapCombatsCard,
[class*="Card"] {
  width: min(540px, calc(100vw - 16px));
  max-height: calc(100vh - 20px) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  pointer-events: auto;
  border-radius: 16px;
  border: 2px solid rgba(216, 180, 106, 0.65) !important;
  background: linear-gradient(180deg, rgba(43, 36, 29, 0.96), rgba(21, 18, 15, 0.94)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--ui-text, #efe6d2);
}

#colosseumModal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.overlayCardHeader,
.inventoryCard .overlayCardHeader,
.statsCard .overlayCardHeader,
.spellsCard .overlayCardHeader,
.craftCard .overlayCardHeader,
.bankCard .overlayCardHeader,
.merchantCard .overlayCardHeader,
.optionsVueCard .overlayCardHeader,
.mapCombatsCard .overlayCardHeader,
.socialCard .overlayCardHeader,
.questsCard .overlayCardHeader,
.encyclopediaCard .overlayCardHeader,
.ladderCard .overlayCardHeader {
  position: sticky !important;
  top: 0 !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 40px 11px 16px !important;
  background: linear-gradient(180deg, #3a3128 0%, #28201a 100%) !important;
  border-bottom: 1px solid rgba(216, 180, 106, 0.35) !important;
  margin-bottom: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.overlayCardHeader > div {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
}

.overlayCardHeader h2,
.overlayCardHeader .header-title,
.inventoryCard .overlayCardHeader h2,
.statsCard .overlayCardHeader h2,
.spellsCard .overlayCardHeader h2,
.craftCard .overlayCardHeader h2,
#spellsModal .overlayCardHeader h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ui-gold, #d8b46a) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.overlayCardHeader p,
.inventoryCard .overlayCardHeader p,
.statsCard .overlayCardHeader p,
.spellsCard .overlayCardHeader p,
#spellsModal .overlayCardHeader p {
  display: none !important;
}

/* Universal Top Right Close Cross Button */
.closeCardBtn,
.overlayCardHeader .closeCardBtn,
#closeInventoryPanelBtn,
#closeSpellsPanelBtn,
#closeStatsPanelBtn {
  position: absolute !important;
  right: 14px !important;
  top: 14px !important;
  transform: none !important;
  background: var(--window-surface-soft, rgba(255, 255, 255, 0.08)) !important;
  border: 1px solid var(--window-border, rgba(255, 255, 255, 0.15)) !important;
  color: var(--window-text-muted, #94a3b8) !important;
  font-size: 1.1rem !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  line-height: 1 !important;
  z-index: 10 !important;
}

.closeCardBtn:hover,
#closeInventoryPanelBtn:hover,
#closeSpellsPanelBtn:hover,
#closeStatsPanelBtn:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3) !important;
}

/* Universal Tab Bar Header (Gold Active Indicator) */
.tabHeader,
.bagTabs,
.sheet-tabs,
.enc-tabs,
.socialTabs,
.optionsVueTabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #241d17;
  border-bottom: 1px solid rgba(216, 180, 106, 0.2);
  padding: 0 12px;
}

.tabBtn,
.bagTabBtn,
.sheet-tab-btn,
.enc-tab-btn,
.cat-tab,
.socialTabBtn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: #a7977c !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 10px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border-radius: 0 !important;
}

.tabBtn.active,
.bagTabBtn.active,
.sheet-tab-btn.active,
.enc-tab-btn.active,
.cat-tab.active,
.socialTabBtn.active {
  color: var(--ui-gold, #d8b46a) !important;
  border-bottom: 2px solid var(--ui-gold, #d8b46a) !important;
  background: rgba(216, 180, 106, 0.08) !important;
}
.statsCard{width:min(520px, calc(100vw - 24px));}
.spellsCard{width:min(620px, calc(100vw - 24px));}
.overlayStatsGrid{padding:0 18px 18px;}
.overlaySpellsContent{padding:0 18px 18px;display:grid;gap:12px;}

#spellsModal .overlayCardHeader{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:8px 12px;
  padding:14px 16px 10px;
}

#spellsModal .overlayCardHeader > div{
  min-width:0;
  display:grid;
  gap:4px;
}

#spellsModal .overlayCardHeader h2{
  font-size:clamp(0.98rem,1.3vw,1.22rem);
  line-height:1.08;
}

#spellsModal .overlayCardHeader p{
  font-size:clamp(0.68rem,0.82vw,0.82rem);
  line-height:1.26;
  max-width:42ch;
}

#closeSpellsPanelBtn{
  min-height:32px !important;
  padding:6px 12px !important;
  border-radius:8px !important;
  font-size:0.7rem !important;
  line-height:1 !important;
  align-self:start;
  justify-self:end;
}

/* Spells panel */
.spellsPanelSummary{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(216,180,106,0.24);
  background:linear-gradient(180deg, rgba(23,17,13,0.92), rgba(16,11,9,0.88));
  color:#e5d8bc;
  line-height:1.4;
}
.spellsPanelList{display:grid;gap:10px;}
.spellsPanelItem{
  --spell-accent: rgba(216,180,106,0.32);
  padding:14px;
  border-radius:14px;
  border:2px solid var(--spell-accent);
  background:linear-gradient(180deg, rgba(24,18,14,0.94), rgba(15,11,8,0.92));
  display:grid;
  gap:8px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(0,0,0,0.18);
}
.spellsPanelItem--force{
  --spell-accent: rgba(233, 195, 78, 0.72);
}
.spellsPanelItem--intelligence{
  --spell-accent: rgba(210, 74, 74, 0.76);
}
.spellsPanelItem--chance{
  --spell-accent: rgba(62, 130, 219, 0.76);
}
.spellsPanelItem--agilite{
  --spell-accent: rgba(122, 138, 71, 0.78);
}
.spellsPanelItem--neutral{
  --spell-accent: rgba(216,180,106,0.42);
}
.spellsPanelItem--locked{
  opacity:0.72;
  background:linear-gradient(180deg, rgba(28,26,28,0.94), rgba(16,14,18,0.92));
}
.spellsPanelItemHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.spellsPanelItemTitleWrap,
.combatSpellTitleWrap{display:inline-flex;align-items:center;gap:10px;}
.spellsPanelItemName{color:#ffe5b2;font-weight:bold;}
.spellsPanelItemMeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:#d7ccb4;
  font-size:0.92rem;
}
.spellsPanelItemDescription{
  color:#d7ccb4;
  font-size:0.92rem;
  line-height:1.4;
}

/* Stats overlay */
.overlayStatsGrid .statItem,
.overlayStatsGrid > div{min-height:44px;}
.statItem--allocatable{justify-content:space-between;}
.statPlusBtn{
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(221, 190, 118, 0.4);
  background:linear-gradient(180deg, rgba(69,47,19,0.96), rgba(38,24,11,0.94));
  color:#ffe4ab;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.statPlusBtn:disabled{opacity:0.45;cursor:not-allowed;}

/* System menu */
.systemMenuCard{width:min(360px, calc(100vw - 24px));}
.systemMenuActions{
  display:grid;
  gap:12px;
  padding:0 18px 18px;
}
.systemMenuActions button{min-height:48px;}

/* =======================================
   NPC SYSTEM & DIALOGUE WINDOW
   ======================================= */
.npcDialogueModal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 4000;
  pointer-events: auto;
}

.npcDialogueModal.hidden {
  display: none !important;
}

.npcDialogueContainer {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  background: linear-gradient(135deg, #2c221b 0%, #15110e 100%);
  border: 3px solid #d8b46a;
  border-radius: 12px;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.08);
  font-family: 'Outfit', sans-serif;
  color: #efe6d2;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  min-height: 200px;
}

.npcDialogueHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(216, 180, 106, 0.3);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.npcDialogueName {
  font-size: 1.25rem;
  font-weight: bold;
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.npcDialogueCloseBtn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 0.8;
  transition: color 0.15s ease;
}

.npcDialogueCloseBtn:hover {
  color: #ff4d4d;
}

.npcDialogueContent {
  display: flex;
  gap: 24px;
  flex: 1;
}

.npcDialogueVisualContainer {
  width: 90px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.npcDialogueSprite {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translateX(-50%) scale(2.2);
  transform-origin: bottom center;
}

.npcDialogueTextContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.npcDialogueText {
  margin: 0 0 16px 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #e5dcc9;
}

.npcDialogueChoices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.npcChoiceBtn {
  background: rgba(216, 180, 106, 0.06);
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffe5b2;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}

.npcChoiceBtn:hover {
  background: rgba(216, 180, 106, 0.15);
  border-color: #d8b46a;
  color: #fff;
  transform: translateX(4px);
}

/* =======================================
   NPC MAP ENTITY
   ======================================= */
.npcEntity {
  position: absolute;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 44;
}

.npcEntity.npc-character {
  height: 96px;
}
.npcEntity.npc-character .npcSprite {
  height: 96px;
}

.npcName {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 12, 9, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  pointer-events: auto;
}

.npcSprite {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
}

/* NPC Feet & Boots Base */
.npcSprite .charFeet {
  display: block;
  position: absolute;
  width: 20px;
  height: 10px;
  left: 22px;
  top: 45px;
  z-index: 1;
}

.npcSprite .charFeet::before,
.npcSprite .charFeet::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 7px;
  height: 9px;
  background: #3e2723;
  border: 1.5px solid #1c1511;
  border-radius: 2px 2px 4px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.npcSprite .charFeet::before {
  left: 1px;
}

.npcSprite .charFeet::after {
  right: 1px;
}

.npcEntity:hover {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

/* =======================================
   FAIRY CSS SPRITE (FÉE RISETTE)
   ======================================= */
@keyframes fairyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.npc-sprite-fairy {
  animation: fairyFloat 2.5s ease-in-out infinite;
}

/* Aura Glow */
.npc-sprite-fairy .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.45) 0%, rgba(255, 105, 180, 0.2) 55%, transparent 75%);
  filter: blur(4px);
  animation: fairyAuraPulse 2s ease-in-out infinite alternate;
  border: none;
  box-shadow: none;
  z-index: 0;
}

@keyframes fairyAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

/* Fairy Wings */
.npc-sprite-fairy .fairyWings {
  position: absolute;
  width: 50px;
  height: 30px;
  left: 7px;
  top: 22px;
  z-index: 1;
  pointer-events: none;
}

.npc-sprite-fairy .fairyWings::before,
.npc-sprite-fairy .fairyWings::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 25px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 229, 255, 0.5) 60%, rgba(255, 105, 180, 0.4) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 10% 50%;
  transform-origin: bottom right;
}

.npc-sprite-fairy .fairyWings::before {
  left: 4px;
  transform: rotate(-15deg);
  animation: fairyFlutterLeft 0.15s ease-in-out infinite alternate;
}

.npc-sprite-fairy .fairyWings::after {
  right: 4px;
  border-radius: 50% 50% 50% 10%;
  transform-origin: bottom left;
  transform: rotate(15deg);
  animation: fairyFlutterRight 0.15s ease-in-out infinite alternate;
}

@keyframes fairyFlutterLeft {
  0% { transform: rotate(-15deg) scaleX(0.8); }
  100% { transform: rotate(-45deg) scaleX(1.15); }
}

@keyframes fairyFlutterRight {
  0% { transform: rotate(15deg) scaleX(0.8); }
  100% { transform: rotate(45deg) scaleX(1.15); }
}

/* Fairy Body */
.npc-sprite-fairy .charBody {
  display: block;
  position: absolute;
  width: 14px;
  height: 22px;
  left: 25px;
  top: 25px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #ff79c6 0%, #bd93f9 100%);
  border: 1.5px solid #1c1511;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.45);
  z-index: 2;
}

/* Fairy Head */
.npc-sprite-fairy .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
  z-index: 3;
}

/* Hair styling */
.npc-sprite-fairy .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -3px;
  width: 20px;
  height: 12px;
  background: #ff92bd;
  border: 1.5px solid #1c1511;
  border-radius: 8px 8px 3px 3px;
}

/* Eyes */
.npc-sprite-fairy .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* Magic Wand */
.npc-sprite-fairy .fairyWand {
  position: absolute;
  width: 3px;
  height: 16px;
  left: 42px;
  top: 18px;
  background: #f1c40f;
  border: 1px solid #1c1511;
  border-radius: 1px;
  transform: rotate(25deg);
  z-index: 4;
}

.npc-sprite-fairy .fairyWand::before {
  content: "★";
  position: absolute;
  left: -6px;
  top: -12px;
  color: #fffb00;
  font-size: 12px;
  text-shadow: 0 0 6px #fffb00, 0 0 12px #fffb00;
  animation: fairyStarGlow 0.8s ease-in-out infinite alternate;
}

@keyframes fairyStarGlow {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.3); }
}


/* =======================================
   ALCHEMIST NPC SPRITE
   ======================================= */
.npc-sprite-alchemist {
  animation: fairyFloat 3s ease-in-out infinite;
}

.npc-sprite-alchemist .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 24px;
  left: 24px;
  top: 24px;
  background: linear-gradient(180deg, #6c5ce7 0%, #341f97 100%);
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.npc-sprite-alchemist .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Alchemist Pointed Hat */
.npc-sprite-alchemist .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -8px;
  width: 20px;
  height: 12px;
  background: #341f97;
  border: 1.5px solid #1c1511;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  box-shadow: 0 2px 0 #fdcb6e;
}

/* Face Eyes */
.npc-sprite-alchemist .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* Glowing Glass Flask */
.npc-sprite-alchemist::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 12px;
  left: 41px;
  top: 25px;
  background: radial-gradient(circle at 40% 40%, #55efc4 0%, #00cec9 70%, #0984e3 100%);
  border: 1.5px solid #1c1511;
  border-radius: 50% 50% 3px 3px;
  animation: potionGlow 1.5s ease-in-out infinite alternate;
  z-index: 4;
}

@keyframes potionGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 4px #00cec9; }
  100% { transform: scale(1.15); box-shadow: 0 0 10px #55efc4, 0 0 15px #00cec9; }
}

/* =======================================
   GUARDIAN NPC SPRITE
   ======================================= */
.npc-sprite-guardian {
  animation: npcIdle 2.5s ease-in-out infinite;
}

.npc-sprite-guardian .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 26px;
  left: 23px;
  top: 24px;
  background: linear-gradient(180deg, #b2bec3 0%, #2d3436 100%);
  border: 2px solid #1c1511;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.npc-sprite-guardian .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #dfe6e9;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Guardian Helmet Visor */
.npc-sprite-guardian .charHead::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -2px;
  width: 18px;
  height: 12px;
  background: #636e72;
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 3px 0 #fdcb6e;
}

/* Visor Slit */
.npc-sprite-guardian .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 10px;
  height: 2px;
  background: #1c1511;
  box-shadow: 0 0 4px #fdcb6e;
}

/* Shield */
.npc-sprite-guardian::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 16px;
  left: 10px;
  top: 24px;
  background: linear-gradient(135deg, #d63031 0%, #b2bec3 100%);
  border: 2px solid #1c1511;
  border-radius: 2px 2px 8px 8px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

/* =======================================
   PRIEST NPC SPRITE
   ======================================= */
.npc-sprite-priest {
  animation: priestFloat 2.5s ease-in-out infinite;
}

@keyframes priestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.npc-sprite-priest .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 26px;
  left: 24px;
  top: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fdcb6e 40%, #e17055 100%);
  border: 1.5px solid #1c1511;
  border-radius: 6px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.npc-sprite-priest .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Golden Halo */
.npc-sprite-priest .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -7px;
  width: 20px;
  height: 6px;
  border: 2px solid #fdcb6e;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffeaa7, inset 0 0 4px #fdcb6e;
  animation: haloGlow 1.8s ease-in-out infinite alternate;
}

@keyframes haloGlow {
  0% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 12px #ffeaa7; }
}

/* Eyes */
.npc-sprite-priest .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* Divine Aura */
.npc-sprite-priest::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 234, 167, 0.5) 0%, rgba(253, 203, 110, 0.2) 60%, transparent 75%);
  filter: blur(4px);
  animation: auraPulse 2s ease-in-out infinite alternate;
  z-index: 0;
}

/* =======================================
   HUNTER NPC SPRITE
   ======================================= */
.npc-sprite-hunter {
  animation: npcIdle 2s infinite;
}

.npc-sprite-hunter .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 24px;
  left: 24px;
  top: 24px;
  background: linear-gradient(180deg, #00b894 0%, #2d3436 100%);
  border: 1.5px solid #1c1511;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.npc-sprite-hunter .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  border-radius: 50%;
  z-index: 3;
}

/* Ranger Feather Cap */
.npc-sprite-hunter .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 20px;
  height: 8px;
  background: #00b894;
  border: 1px solid #1c1511;
  border-radius: 4px 4px 0 0;
  box-shadow: -3px -3px 0 #d63031; /* Feather plume */
}

/* Eyes */
.npc-sprite-hunter .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* Bow */
.npc-sprite-hunter::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 22px;
  left: 42px;
  top: 20px;
  background: #634735;
  border: 1px solid #1c1511;
  border-radius: 3px;
  transform: rotate(-10deg);
  box-shadow: inset 1px 0 0 #d63031;
  z-index: 4;
}

/* =======================================
   MERCHANT / BROCANTEUR NPC SPRITE
   ======================================= */
.npc-sprite-merchant {
  animation: npcIdle 3s ease-in-out infinite;
}

.npc-sprite-merchant .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 24px;
  left: 23px;
  top: 24px;
  background: linear-gradient(180deg, #e17055 0%, #d63031 100%);
  border: 1.5px solid #1c1511;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.npc-sprite-merchant .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  border-radius: 50%;
  z-index: 3;
}

/* Merchant Turban */
.npc-sprite-merchant .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -5px;
  width: 20px;
  height: 9px;
  background: #0984e3;
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 -2px 0 #fdcb6e;
}

/* Eyes */
.npc-sprite-merchant .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* Detailed Leather Coin Pouch */
.npc-sprite-merchant::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 11px;
  left: 41px;
  top: 28px;
  background: radial-gradient(circle at 40% 40%, #fdcb6e 0%, #e67e22 70%, #d35400 100%);
  border: 1.5px solid #1c1511;
  border-radius: 4px 4px 6px 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

/* =======================================
   BLACKSMITH GROM CSS SPRITE
   ======================================= */
.npc-sprite-grom {
  animation: fairyFloat 3s ease-in-out infinite;
}

.npc-sprite-grom .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.4) 0%, rgba(231, 76, 60, 0.15) 60%, transparent 75%);
  filter: blur(3px);
  animation: gromAuraPulse 1.8s ease-in-out infinite alternate;
  border: none;
  box-shadow: none;
  z-index: 0;
}

@keyframes gromAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.npc-sprite-grom .charBody {
  display: block;
  position: absolute;
  width: 22px;
  height: 24px;
  left: 21px;
  top: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d35400 0%, #3e2723 100%);
  border: 2px solid #1c1511;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.npc-sprite-grom .charHead {
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  left: 23px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-grom .charHead::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -5px;
  width: 17px;
  height: 12px;
  background: #e67e22;
  border: 1.5px solid #1c1511;
  border-radius: 0 0 8px 8px;
}

.npc-sprite-grom .charHead::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-grom .fairyWand {
  position: absolute;
  width: 4px;
  height: 18px;
  left: 42px;
  top: 22px;
  background: #7f8c8d;
  border: 1.5px solid #1c1511;
  border-radius: 1px;
  transform: rotate(-15deg);
  z-index: 4;
}

.npc-sprite-grom .fairyWand::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -4px;
  width: 13px;
  height: 8px;
  background: #34495e;
  border: 1.5px solid #1c1511;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
  animation: none;
  opacity: 1;
  transform: none;
  color: transparent;
  text-shadow: none;
}

/* =======================================
   ARCHMAGE ELION CSS SPRITE
   ======================================= */
.npc-sprite-mage {
  animation: fairyFloat 3.5s ease-in-out infinite;
}

.npc-sprite-mage .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.4) 0%, rgba(52, 152, 219, 0.15) 60%, transparent 75%);
  filter: blur(4px);
  animation: mageAuraPulse 2.2s ease-in-out infinite alternate;
  border: none;
  box-shadow: none;
  z-index: 0;
}

@keyframes mageAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.npc-sprite-mage .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 24px;
  left: 24px;
  top: 24px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #2980b9 0%, #2c3e50 100%);
  border: 1.5px solid #1c1511;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.npc-sprite-mage .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-mage .charHead::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -7px;
  width: 12px;
  height: 14px;
  background: #ffffff;
  border: 1px solid #1c1511;
  border-radius: 0 0 6px 6px;
}

.npc-sprite-mage .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-mage .fairyWings {
  position: absolute;
  width: 26px;
  height: 18px;
  left: 19px;
  top: 1px;
  z-index: 4;
  pointer-events: none;
  background: transparent;
}

.npc-sprite-mage .fairyWings::before {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  background: #1b4f72;
  border: 1.5px solid #1c1511;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform-origin: bottom center;
  animation: none;
}

.npc-sprite-mage .fairyWings::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 24px;
  height: 4px;
  background: #154360;
  border: 1.5px solid #1c1511;
  border-radius: 2px;
  transform-origin: bottom center;
  animation: none;
  transform: none;
}

.npc-sprite-mage .fairyWand {
  position: absolute;
  width: 3px;
  height: 28px;
  left: 43px;
  top: 10px;
  background: #8e44ad;
  border: 1px solid #1c1511;
  border-radius: 1px;
  transform: rotate(5deg);
  z-index: 4;
}

.npc-sprite-mage .fairyWand::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -6px;
  width: 7px;
  height: 7px;
  background: #5dade2;
  border: 1px solid #154360;
  border-radius: 50%;
  box-shadow: 0 0 8px #5dade2, 0 0 15px #3498db;
  animation: wizardOrbGlow 1.2s ease-in-out infinite alternate;
  color: transparent;
  text-shadow: none;
}

@keyframes wizardOrbGlow {
  0% { transform: scale(0.9); filter: brightness(1); }
  100% { transform: scale(1.35); filter: brightness(1.3); }
}

/* =======================================
   BLACKSMITH DURGAN CSS SPRITE
   ======================================= */
.npc-sprite-blacksmith {
  animation: fairyFloat 2.8s ease-in-out infinite;
}

.npc-sprite-blacksmith .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 82, 34, 0.45) 0%, rgba(243, 156, 18, 0.15) 60%, transparent 75%);
  filter: blur(3px);
  animation: gromAuraPulse 1.5s ease-in-out infinite alternate;
  z-index: 0;
}

.npc-sprite-blacksmith .charBody {
  display: block;
  position: absolute;
  width: 22px;
  height: 24px;
  left: 21px;
  top: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7f8c8d 0%, #3e2723 100%);
  border: 2px solid #1c1511;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.npc-sprite-blacksmith .charBody::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 10px;
  height: 14px;
  background: #d35400;
  border: 1px solid #1c1511;
  border-radius: 1px;
}

.npc-sprite-blacksmith .charHead {
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  left: 23px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-blacksmith .charHead::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -5px;
  width: 17px;
  height: 12px;
  background: #2c3e50;
  border: 1.5px solid #1c1511;
  border-radius: 0 0 8px 8px;
}

.npc-sprite-blacksmith .charHead::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-blacksmith .fairyWand {
  position: absolute;
  width: 4px;
  height: 18px;
  left: 42px;
  top: 22px;
  background: #95a5a6;
  border: 1.5px solid #1c1511;
  border-radius: 1px;
  transform: rotate(-20deg);
  z-index: 4;
}

.npc-sprite-blacksmith .fairyWand::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -4px;
  width: 14px;
  height: 9px;
  background: #2c3e50;
  border: 1.5px solid #1c1511;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
}

/* =======================================
   BANKER LORIS CSS SPRITE
   ======================================= */
.npc-sprite-banker {
  animation: fairyFloat 3.2s ease-in-out infinite;
}

.npc-sprite-banker .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.4) 0%, rgba(243, 156, 18, 0.1) 60%, transparent 75%);
  filter: blur(4px);
  animation: bankerAuraPulse 2s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bankerAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.9; }
}

.npc-sprite-banker .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 24px;
  left: 23px;
  top: 25px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
  border: 2.5px solid #1c1511;
  z-index: 2;
}

.npc-sprite-banker .charBody::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 4px;
  height: 10px;
  background: #fff;
  box-shadow: 0 4px 0 #f1c40f;
}

.npc-sprite-banker .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-banker .charHead::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 5px;
  height: 5px;
  border: 1.5px solid #f1c40f;
  border-radius: 50%;
}

.npc-sprite-banker .charHead::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
}

.npc-sprite-banker .fairyWand {
  position: absolute;
  width: 6px;
  height: 12px;
  left: 43px;
  top: 24px;
  background: #f1c40f;
  border: 1px solid #1c1511;
  border-radius: 1px;
  z-index: 4;
}

.npc-sprite-banker .fairyWand::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -6px;
  width: 6px;
  height: 4px;
  background: #f39c12;
  border: 1px solid #1c1511;
  border-radius: 1px;
  box-shadow: 0 -4px 0 #f1c40f;
}

/* =======================================
   TAMER LENA CSS SPRITE
   ======================================= */
.npc-sprite-tamer {
  animation: fairyFloat 2.6s ease-in-out infinite;
}

.npc-sprite-tamer .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.4) 0%, rgba(39, 174, 96, 0.1) 60%, transparent 75%);
  filter: blur(4px);
  animation: tamerAuraPulse 1.7s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes tamerAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

.npc-sprite-tamer .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 23px;
  left: 24px;
  top: 25px;
  border-radius: 5px;
  background: linear-gradient(180deg, #27ae60 0%, #8e44ad 100%);
  border: 1.5px solid #1c1511;
  z-index: 2;
}

.npc-sprite-tamer .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-tamer .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -3px;
  width: 20px;
  height: 10px;
  background: #e67e22;
  border: 1px solid #1c1511;
  border-radius: 4px 4px 0 0;
  box-shadow: -2px -2px 0 #d35400, 2px -2px 0 #d35400;
}

.npc-sprite-tamer .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-tamer .fairyWand {
  position: absolute;
  width: 2px;
  height: 14px;
  left: 42px;
  top: 22px;
  background: #a04000;
  border: 1px solid #1c1511;
  transform: rotate(45deg);
  z-index: 4;
}

.npc-sprite-tamer .fairyWand::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 10px;
  width: 10px;
  height: 8px;
  border: 1.5px solid #1c1511;
  border-color: transparent transparent #1c1511 #1c1511;
  border-radius: 50%;
  transform: rotate(-45deg);
}

/* =======================================
   COOK MARCO CSS SPRITE
   ======================================= */
.npc-sprite-cook {
  animation: fairyFloat 2.9s ease-in-out infinite;
}

.npc-sprite-cook .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 240, 241, 0.4) 0%, rgba(189, 195, 199, 0.1) 60%, transparent 75%);
  filter: blur(4px);
  animation: cookAuraPulse 1.9s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes cookAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.npc-sprite-cook .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 23px;
  left: 23px;
  top: 25px;
  border-radius: 4px;
  background: #ecf0f1;
  border: 2px solid #1c1511;
  z-index: 2;
}

.npc-sprite-cook .charBody::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 10px;
  height: 4px;
  background: #e74c3c;
  border-radius: 2px;
}

.npc-sprite-cook .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-cook .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -10px;
  width: 18px;
  height: 12px;
  background: #ffffff;
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 0 2px 2px rgba(0,0,0,0.1);
}

.npc-sprite-cook .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-cook .fairyWand {
  position: absolute;
  width: 3px;
  height: 18px;
  left: 42px;
  top: 20px;
  background: #bdc3c7;
  border: 1px solid #1c1511;
  border-radius: 1px;
  transform: rotate(15deg);
  z-index: 4;
}

.npc-sprite-cook .fairyWand::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 7px;
  height: 7px;
}

/* =======================================
   FARMER (PAYSAN) NPC SPRITE
   ======================================= */
.npc-sprite-farmer {
  animation: npcIdle 2.5s ease-in-out infinite;
}

.npc-sprite-farmer .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 24px;
  left: 24px;
  top: 24px;
  background: linear-gradient(180deg, #d35400 0%, #27ae60 100%);
  border: 1.5px solid #1c1511;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.npc-sprite-farmer .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Straw Hat */
.npc-sprite-farmer .charHead::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 24px;
  height: 6px;
  background: #f1c40f;
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 2px 0 #f39c12;
}

.npc-sprite-farmer .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* Pitchfork / Scythe */
.npc-sprite-farmer::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 26px;
  left: 43px;
  top: 18px;
  background: #7f8c8d;
  border: 1px solid #1c1511;
  transform: rotate(-10deg);
  box-shadow: inset 0 -4px 0 #f1c40f;
  z-index: 4;
}

/* =======================================
   LUMBERJACK (BÛCHERON) NPC SPRITE
   ======================================= */
.npc-sprite-lumberjack {
  animation: npcIdle 2.7s ease-in-out infinite;
}

.npc-sprite-lumberjack .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 24px;
  left: 23px;
  top: 24px;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 60%, #2c3e50 100%);
  border: 1.5px solid #1c1511;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.npc-sprite-lumberjack .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Flannel Cap */
.npc-sprite-lumberjack .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 20px;
  height: 8px;
  background: #c0392b;
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 0 0;
}

/* Lumberjack Beard */
.npc-sprite-lumberjack .charHead::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 14px;
  height: 8px;
  background: #795548;
  border: 1px solid #1c1511;
  border-radius: 0 0 6px 6px;
}

/* Woodcutter Axe */
.npc-sprite-lumberjack::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 24px;
  left: 42px;
  top: 20px;
  background: #5d4037;
  border: 1px solid #1c1511;
  border-radius: 2px;
  transform: rotate(15deg);
  box-shadow: inset 0 -6px 0 #95a5a6;
  z-index: 4;
}

/* =======================================
   GUARD (GARDE) NPC SPRITE
   ======================================= */
.npc-sprite-guard {
  animation: npcIdle 2.4s ease-in-out infinite;
}

.npc-sprite-guard .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 26px;
  left: 23px;
  top: 24px;
  background: linear-gradient(180deg, #95a5a6 0%, #34495e 100%);
  border: 2px solid #1c1511;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.npc-sprite-guard .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #ecf0f1;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Guard Helmet with Red Plume */
.npc-sprite-guard .charHead::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -3px;
  width: 18px;
  height: 12px;
  background: #7f8c8d;
  border: 1.5px solid #1c1511;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -4px 0 #e74c3c;
}

/* Helmet Visor Slit */
.npc-sprite-guard .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 10px;
  height: 2px;
  background: #1c1511;
  box-shadow: 0 0 3px #f1c40f;
}

/* Halberd / Spear */
.npc-sprite-guard::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 30px;
  left: 10px;
  top: 14px;
  background: #95a5a6;
  border: 1px solid #1c1511;
  box-shadow: inset 0 -8px 0 #e74c3c;
  z-index: 4;
}

/* =======================================
   DRYAD (DRYADE) NPC SPRITE
   ======================================= */
.npc-sprite-dryad {
  animation: fairyFloat 3.2s ease-in-out infinite;
}

.npc-sprite-dryad .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.5) 0%, rgba(39, 174, 96, 0.15) 60%, transparent 75%);
  filter: blur(4px);
  animation: auraPulse 2s ease-in-out infinite alternate;
  z-index: 0;
}

.npc-sprite-dryad .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 25px;
  left: 24px;
  top: 24px;
  background: linear-gradient(180deg, #2ecc71 0%, #27ae60 50%, #1e8449 100%);
  border: 1.5px solid #1c1511;
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.npc-sprite-dryad .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Floral Vine Crown */
.npc-sprite-dryad .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -5px;
  width: 20px;
  height: 8px;
  background: #27ae60;
  border: 1.5px solid #1c1511;
  border-radius: 50%;
  box-shadow: -3px 0 0 #e74c3c, 3px 0 0 #f1c40f;
}

.npc-sprite-dryad .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* =======================================
   HERMIT (ERMITE) NPC SPRITE
   ======================================= */
.npc-sprite-hermit {
  animation: npcIdle 3s ease-in-out infinite;
}

.npc-sprite-hermit .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 26px;
  left: 23px;
  top: 24px;
  background: linear-gradient(180deg, #795548 0%, #4e342e 100%);
  border: 1.5px solid #1c1511;
  border-radius: 6px;
  z-index: 2;
}

.npc-sprite-hermit .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Rustic Cloak Hood */
.npc-sprite-hermit .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -6px;
  width: 20px;
  height: 12px;
  background: #5d4037;
  border: 1.5px solid #1c1511;
  border-radius: 8px 8px 0 0;
}

/* Long Hermit Beard */
.npc-sprite-hermit .charHead::after {
  content: "";
  position: absolute;
  left: 0px;
  top: 8px;
  width: 16px;
  height: 12px;
  background: #ecf0f1;
  border: 1.5px solid #1c1511;
  border-radius: 0 0 8px 8px;
}

/* Walking Stick */
.npc-sprite-hermit::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 28px;
  left: 42px;
  top: 18px;
  background: #5d4037;
  border: 1px solid #1c1511;
  border-radius: 2px;
  transform: rotate(-10deg);
  z-index: 4;
}

/* =======================================
   GUILD MASTER (GUILDE) NPC SPRITE
   ======================================= */
.npc-sprite-guild {
  animation: fairyFloat 3.1s ease-in-out infinite;
}

.npc-sprite-guild .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.4) 0%, rgba(211, 84, 0, 0.15) 60%, transparent 75%);
  filter: blur(4px);
  animation: auraPulse 2s ease-in-out infinite alternate;
  z-index: 0;
}

.npc-sprite-guild .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 26px;
  left: 23px;
  top: 24px;
  background: linear-gradient(180deg, #8e44ad 0%, #2c3e50 100%);
  border: 2px solid #1c1511;
  border-radius: 5px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.npc-sprite-guild .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

/* Regal Crown */
.npc-sprite-guild .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -7px;
  width: 20px;
  height: 9px;
  background: #f1c40f;
  border: 1.5px solid #1c1511;
  clip-path: polygon(0% 100%, 0% 0%, 25% 40%, 50% 0%, 75% 40%, 100% 0%, 100% 100%);
  box-shadow: 0 0 6px #f39c12;
}

.npc-sprite-guild .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

/* =======================================
   MESSENGER ELO CSS SPRITE
   ======================================= */
.npc-sprite-messenger {
  animation: fairyFloat 2.4s ease-in-out infinite;
}

.npc-sprite-messenger .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.35) 0%, rgba(41, 128, 185, 0.1) 60%, transparent 75%);
  filter: blur(4px);
  animation: messengerAuraPulse 1.6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes messengerAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9) rotate(0deg); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2) rotate(15deg); opacity: 0.9; }
}

.npc-sprite-messenger .charBody {
  display: block;
  position: absolute;
  width: 16px;
  height: 23px;
  left: 24px;
  top: 25px;
  border-radius: 4px;
  background: #2980b9;
  border: 1.5px solid #1c1511;
  z-index: 2;
}

.npc-sprite-messenger .charBody::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 2px;
  width: 18px;
  height: 3px;
  background: #85929e;
  transform: rotate(35deg);
}

.npc-sprite-messenger .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-messenger .charHead::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -4px;
  width: 16px;
  height: 6px;
  background: #1f618d;
  border: 1px solid #1c1511;
  border-radius: 3px 3px 0 0;
  box-shadow: 3px 0 0 #f1c40f;
}

.npc-sprite-messenger .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-messenger .fairyWand {
  position: absolute;
  width: 6px;
  height: 14px;
  left: 42px;
  top: 24px;
  background: #f5b041;
  border: 1px solid #1c1511;
  border-radius: 2px;
  transform: rotate(45deg);
  z-index: 4;
}

.npc-sprite-messenger .fairyWand::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 4px;
  height: 4px;
  background: #e74c3c;
  border-radius: 50%;
}

/* =======================================
   GUILD MASTER ARTHUS CSS SPRITE
   ======================================= */
.npc-sprite-guild {
  animation: fairyFloat 3.1s ease-in-out infinite;
}

.npc-sprite-guild .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.45) 0%, rgba(41, 128, 185, 0.15) 60%, transparent 75%);
  filter: blur(4px);
  animation: guildAuraPulse 2.1s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes guildAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.95; }
}

.npc-sprite-guild .charBody {
  display: block;
  position: absolute;
  width: 20px;
  height: 25px;
  left: 22px;
  top: 25px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7f8c8d 0%, #bdc3c7 100%);
  border: 2px solid #1c1511;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4);
  z-index: 2;
}

.npc-sprite-guild .charBody::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 4px;
  height: 21px;
  background: #c0392b;
  box-shadow: -2px 0 0 #f1c40f, 2px 0 0 #f1c40f;
}

.npc-sprite-guild .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-guild .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -5px;
  width: 18px;
  height: 7px;
  background: #f1c40f;
  border: 1px solid #1c1511;
  clip-path: polygon(0% 100%, 0% 0%, 25% 50%, 50% 0%, 75% 50%, 100% 0%, 100% 100%);
}

.npc-sprite-guild .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-guild .fairyWand {
  position: absolute;
  width: 3px;
  height: 28px;
  left: 44px;
  top: 11px;
  background: #7f8c8d;
  border: 1px solid #1c1511;
  z-index: 4;
}

.npc-sprite-guild .fairyWand::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 10px;
  background: #c0392b;
  border: 1px solid #1c1511;
  border-radius: 1px;
  box-shadow: inset 2px 0 0 #f1c40f;
}


/* =======================================
   DRYAD SYLVA CSS SPRITE
   ======================================= */
.npc-sprite-dryad {
  animation: fairyFloat 2.7s ease-in-out infinite;
}

.npc-sprite-dryad .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 188, 156, 0.4) 0%, rgba(255, 105, 180, 0.15) 60%, transparent 75%);
  filter: blur(4px);
  animation: dryadAuraPulse 1.8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes dryadAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.9; }
}

.npc-sprite-dryad .charBody {
  display: block;
  position: absolute;
  width: 14px;
  height: 23px;
  left: 25px;
  top: 25px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #1abc9c 0%, #27ae60 100%);
  border: 1.5px solid #1c1511;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.npc-sprite-dryad .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #f5cba7;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-dryad .charHead::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -4px;
  width: 22px;
  height: 12px;
  background: #2ecc71;
  border: 1px solid #1c1511;
  border-radius: 8px 8px 4px 4px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2);
}

.npc-sprite-dryad .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-dryad .fairyWand {
  position: absolute;
  width: 3px;
  height: 16px;
  left: 42px;
  top: 19px;
  background: #8e44ad;
  border: 1px solid #1c1511;
  border-radius: 1px;
  transform: rotate(20deg);
  z-index: 4;
}

.npc-sprite-dryad .fairyWand::before {
  content: "🌸";
  position: absolute;
  left: -7px;
  top: -11px;
  font-size: 11px;
  text-shadow: 0 0 6px rgba(255,105,180,0.8);
}

/* =======================================
   HERMIT RONAN CSS SPRITE
   ======================================= */
.npc-sprite-hermit {
  animation: fairyFloat 3.4s ease-in-out infinite;
}

.npc-sprite-hermit .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 165, 166, 0.4) 0%, rgba(127, 140, 141, 0.1) 60%, transparent 75%);
  filter: blur(4px);
  animation: hermitAuraPulse 2s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes hermitAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.npc-sprite-hermit .charBody {
  display: block;
  position: absolute;
  width: 18px;
  height: 23px;
  left: 23px;
  top: 25px;
  border-radius: 4px;
  background: #7f8c8d;
  border: 1.5px solid #1c1511;
  z-index: 2;
}

.npc-sprite-hermit .charHead {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 11px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
  z-index: 3;
}

.npc-sprite-hermit .charHead::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -3px;
  width: 20px;
  height: 16px;
  background: #ecf0f1;
  border: 1px solid #1c1511;
  border-radius: 6px 6px 8px 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 85% 70%, 50% 100%, 15% 70%, 0 100%);
}

.npc-sprite-hermit .charHead::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #1c1511;
  box-shadow: 6px 0 #1c1511;
  border-radius: 50%;
}

.npc-sprite-hermit .fairyWand {
  position: absolute;
  width: 3px;
  height: 28px;
  left: 42px;
  top: 12px;
  background: #a04000;
  border: 1.5px solid #1c1511;
  border-radius: 2px;
  transform: rotate(-5deg);
  z-index: 4;
}

.npc-sprite-hermit .fairyWand::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  background: #a04000;
  border: 1px solid #1c1511;
  border-radius: 50%;
}

/* =======================================
   BANK SYSTEM MODAL STYLES
   ======================================= */
.bankCard {
  border: 2px solid #d8b46a;
  background: radial-gradient(circle at top, #1e1710 0%, #0d0a07 100%) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(216, 180, 106, 0.05);
}

.bankGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .bankGrid {
    grid-template-columns: 1fr;
  }
}

.bankLeftPanel, .bankRightPanel {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid #3d2f1d;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.bankLeftPanel h3, .bankRightPanel h3 {
  margin: 0 0 12px 0;
  font-family: 'Outfit', sans-serif;
  color: #f39c12;
  font-size: 1.1rem;
  border-bottom: 1px dashed #3d2f1d;
  padding-bottom: 6px;
}

.bankGoldMgmt {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(216, 180, 106, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
}

.bankItemRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid rgba(216, 180, 106, 0.15);
  transition: background 0.2s;
  border-radius: 4px;
}

.bankItemRow:hover {
  background: rgba(216, 180, 106, 0.08);
}

.bankItemLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bankItemRowIcon {
  font-size: 1.25rem;
}

.bankItemRowName {
  font-weight: 500;
  color: #fff;
  font-size: 0.9rem;
}

.bankItemRowQty {
  color: #a7977c;
  font-size: 0.85rem;
  margin-left: 6px;
}

.bankItemRowActions {
  display: flex;
  gap: 6px;
}

.bankActionBtn {
  background: #3d2f1d;
  color: #d8b46a;
  border: 1px solid #d8b46a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.bankActionBtn:hover {
  background: #d8b46a;
  color: #0d0a07;
}

/* =======================================
   CENTERED BANK MODAL STYLES (LIST LAYOUT)
   ======================================= */
#bankModal {
  justify-content: center !important;
  align-items: center !important;
  padding: 24px 12px !important;
}

/* Force all text in bank modal to be white for high visibility */
#bankModal .overlayCardHeader h2,
#bankModal .overlayCardHeader p,
#bankModal .bankLeftPanel h3,
#bankModal .bankRightPanel h3,
#bankModal .bankGoldMgmt,
#bankModal .bankGoldMgmt span,
#bankModal .bankGoldMgmt strong,
#bankModal .bankItemRowName,
#bankModal .bankItemRowStats,
#bankModal .bankItemRowQty {
  color: #ffffff !important;
}

.bankCard {
  width: min(900px, calc(100vw - 24px)) !important;
  max-height: min(85vh, 800px) !important;
  background: radial-gradient(circle at top, #1e1710 0%, #0d0a07 100%) !important;
  border: 2px solid #d8b46a !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(216, 180, 106, 0.08) !important;
}

.bankGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .bankGrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .bankItemsScroll {
    height: 200px !important;
  }
}

.bankLeftPanel, .bankRightPanel {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid #3d2f1d;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.bankLeftPanel h3, .bankRightPanel h3 {
  margin: 0 0 12px 0;
  font-family: 'Outfit', sans-serif;
  color: #efe6d2;
  font-size: 1.1rem;
  border-bottom: 1px dashed #3d2f1d;
  padding-bottom: 6px;
  text-shadow: 0 0 8px rgba(216, 180, 106, 0.2);
}

.bankGoldMgmt {
  background: rgba(13, 10, 7, 0.6);
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 10px;
}

.bankItemsScroll {
  height: 350px;
  overflow-y: auto;
  border: 1.5px solid #3d2f1d;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 8px;
}

/* Scrollbars */
.bankItemsScroll::-webkit-scrollbar {
  width: 6px;
}
.bankItemsScroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.bankItemsScroll::-webkit-scrollbar-thumb {
  background: #3d2f1d;
  border-radius: 3px;
}
.bankItemsScroll::-webkit-scrollbar-thumb:hover {
  background: #d8b46a;
}

.bankItemRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(216, 180, 106, 0.1);
  transition: background 0.2s;
  border-radius: 4px;
  background: rgba(13, 10, 7, 0.3);
  margin-bottom: 4px;
}

.bankItemRow:hover {
  background: rgba(216, 180, 106, 0.08);
}

.bankItemInfo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bankItemRowIcon {
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #3d2f1d;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bankItemText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bankItemRowName {
  font-weight: bold;
  color: #efe6d2;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bankItemRowStats {
  font-size: 0.72rem;
  color: #a7977c;
  margin-top: 2px;
}

.bankItemRowQty {
  color: #d8b46a;
  font-weight: bold;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(216, 180, 106, 0.15);
}

.bankItemRowActions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.bankActionBtn {
  background: #3d2f1d;
  color: #d8b46a;
  border: 1.5px solid #d8b46a;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bankActionBtn:hover {
  background: #d8b46a;
  color: #0d0a07;
  transform: translateY(-1px);
}

.bankActionBtn:active {
  transform: translateY(0);
}

/* =======================================
   MERCHANT SYSTEM & SHOP MODAL STYLES
   ======================================= */
#merchantModal,
#shopModal,
#consumableShopModal {
  justify-content: center !important;
  align-items: center !important;
  padding: 24px 12px !important;
}

#merchantModal .overlayCardHeader h2,
#merchantModal .overlayCardHeader p,
#merchantModal .merchantGoldDisplay,
#merchantModal .merchantGoldDisplay span,
#merchantModal .merchantGoldDisplay strong,
#merchantModal .bankItemRowName,
#merchantModal .bankItemRowStats,
#merchantModal .bankItemRowQty,
#shopModal .overlayCardHeader h2,
#shopModal .overlayCardHeader p,
#shopModal .merchantGoldDisplay,
#shopModal .merchantGoldDisplay span,
#shopModal .merchantGoldDisplay strong,
#shopModal .bankItemRowName,
#shopModal .bankItemRowStats,
#shopModal .bankItemRowQty,
#consumableShopModal .overlayCardHeader h2,
#consumableShopModal .overlayCardHeader p,
#consumableShopModal .merchantGoldDisplay,
#consumableShopModal .merchantGoldDisplay span,
#consumableShopModal .merchantGoldDisplay strong,
#consumableShopModal .bankItemRowName,
#consumableShopModal .bankItemRowStats,
#consumableShopModal .bankItemRowQty {
  color: #ffffff !important;
}

.merchantCard {
  width: min(600px, calc(100vw - 24px)) !important;
  max-height: min(85vh, 800px) !important;
  background: radial-gradient(circle at top, #1e1710 0%, #0d0a07 100%) !important;
  border: 2px solid #d8b46a !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(216, 180, 106, 0.08) !important;
}

.merchantContent {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid #3d2f1d;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.merchantGoldDisplay {
  background: rgba(13, 10, 7, 0.6);
  border: 1px solid rgba(216, 180, 106, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 10px;
}

/* Stats panel tabs styling */
.statsTabs .tabBtn {
  background: transparent;
  border: none;
  color: #a7977c;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.statsTabs .tabBtn:hover {
  color: #fff;
  background: rgba(216, 180, 106, 0.08);
}
.statsTabs .tabBtn.active {
  color: var(--ui-gold) !important;
  border-bottom: 2px solid var(--ui-gold);
}

/* Harvest Action Bubble overlay */
.harvest-action-bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--window-surface-strong, rgba(18, 14, 11, 0.96));
  border: 1.5px solid var(--window-border-strong, #d8b46a);
  border-radius: var(--window-radius-sm, 10px);
  padding: 6px 14px;
  color: var(--window-text, #ffe2aa);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 12px var(--window-accent-soft, rgba(216, 180, 106, 0.18));
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 999;
  white-space: nowrap;
  animation: bubblePop 0.18s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  pointer-events: auto;
  margin-top: -8px;
}

.harvest-action-bubble:hover {
  background: var(--window-accent-soft, rgba(216, 180, 106, 0.18));
  color: var(--window-accent-hover, #ffe2aa);
  border-color: var(--window-accent, #d8b46a);
  transform: translate(-50%, -100%) scale(1.06);
}

.harvest-action-bubble .bubble-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.harvest-action-bubble .harvest-icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.harvest-action-bubble:hover .harvest-icon path {
  stroke: #120e0b !important;
}

.harvest-action-bubble:hover .harvest-icon [fill]:not([fill="none"]) {
  fill: #120e0b !important;
}

@keyframes bubblePop {
  0% { transform: translate(-50%, -80%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}

/* Harvest Progress Bar */
.harvest-progress-bar-container {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  background: rgba(0,0,0,0.85);
  border: 1px solid #d8b46a;
  border-radius: 4px;
  overflow: hidden;
  z-index: 100;
}

.harvest-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transition: width 1s linear;
}

/* Floating Gathering indicators */
.gather-floating-indicator {
  position: absolute;
  color: #2ecc71;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 1000;
  animation: floatUpGather 1.5s forwards ease-out;
  transform: translateX(-50%);
}

@keyframes floatUpGather {
  0% {
    transform: translate(-50%, 0) scale(0.8);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -15px) scale(1.1);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -40px) scale(0.9);
    opacity: 0;
  }
}

/* Harvesting Tile Animations */
.harvesting-shake {
  animation: harvestShake 0.15s infinite alternate !important;
}

.harvesting-rustle {
  animation: harvestRustle 0.25s infinite alternate !important;
}

@keyframes harvestShake {
  0% { transform: translate(-1px, 0) rotate(-1.5deg); }
  100% { transform: translate(1.5px, 0.5px) rotate(1.5deg); }
}

@keyframes harvestRustle {
  0% { transform: rotate(-3deg) scale(0.98); }
  100% { transform: rotate(3deg) scale(1.02); }
}

/* Floating Harvesting Particles */
.harvest-particle {
  display: none !important;
}

@keyframes floatParticle {
  0% {
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.2) rotate(15deg);
  }
  100% {
    transform: var(--drift-translate) scale(0.7) rotate(var(--drift-rotate));
    opacity: 0;
  }
}

/* Fishing Concentric Ripple */
.fishing-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(135, 206, 250, 0.95);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  animation: fishingRipple 1s ease-out infinite;
}

@keyframes fishingRipple {
  0% {
    width: 6px;
    height: 6px;
    border-color: rgba(135, 206, 250, 0.95);
    opacity: 1;
  }
  100% {
    width: 32px;
    height: 32px;
    border-color: rgba(255, 255, 255, 0);
    opacity: 0;
  }
}

/* -------------------------------------------------
   CHARACTER HARVESTING TOOLS & ANIMATIONS
   ------------------------------------------------- */

/* 1. PÊCHEUR (FULL BODY CAST, SWAY & REEL) */
#player.harvesting-player-pecheur,
.remotePlayer.harvesting-player-pecheur {
  animation: characterPecheurAction 2.0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-pecheur .charSprite,
.remotePlayer.harvesting-player-pecheur .charSprite {
  animation: pecheurTorsoSway 2.0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-pecheur .charHead,
.remotePlayer.harvesting-player-pecheur .charHead {
  animation: pecheurHeadWatch 2.0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-pecheur .charCape,
.remotePlayer.harvesting-player-pecheur .charCape {
  animation: pecheurCapeSway 2.0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

/* 2. BÛCHERON (FULL BODY AXE CHOP SLAM) */
#player.harvesting-player-bucheron,
.remotePlayer.harvesting-player-bucheron {
  animation: characterBucheronChop 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-bucheron .charSprite,
.remotePlayer.harvesting-player-bucheron .charSprite {
  animation: bucheronTorsoTwist 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-bucheron .charHead,
.remotePlayer.harvesting-player-bucheron .charHead {
  animation: bucheronHeadBalance 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-bucheron .charCape,
.remotePlayer.harvesting-player-bucheron .charCape {
  animation: bucheronCapeSwell 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

/* 3. PAYSAN / CÉRÉALES (FULL BODY & SCYTHE SWEEP RIGHT TO LEFT) */
#player.harvesting-player-paysant,
.remotePlayer.harvesting-player-paysant {
  animation: characterPaysantSwivel 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-paysant .charSprite,
.remotePlayer.harvesting-player-paysant .charSprite {
  animation: charSpriteTorsoTwist 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-paysant .charHead,
.remotePlayer.harvesting-player-paysant .charHead {
  animation: charHeadCounterBalance 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

#player.harvesting-player-paysant .charCape,
.remotePlayer.harvesting-player-paysant .charCape {
  animation: charCapeWindSwell 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

/* --- KEYFRAME ANIMATIONS: PÊCHEUR --- */
@keyframes characterPecheurAction {
  0% { transform: translate(-50%, -100%) rotate(-6deg); }
  20% { transform: translate(-50%, -100%) rotate(8deg) translateY(-2px); } /* Cast */
  45% { transform: translate(-50%, -100%) rotate(-3deg) translateY(1px); }  /* Hold line */
  75% { transform: translate(-50%, -100%) rotate(4deg) translateY(3px); }   /* Tension bite */
  90% { transform: translate(-50%, -100%) rotate(-18deg) translateY(-8px); }/* Reel & pull up! */
  100% { transform: translate(-50%, -100%) rotate(0deg); }
}

@keyframes pecheurTorsoSway {
  0% { transform: scale(1) rotate(-8deg); }
  20% { transform: scale(1) rotate(10deg); }
  45% { transform: scale(1) rotate(-3deg); }
  75% { transform: scale(1) rotate(6deg) translateY(1px); }
  90% { transform: scale(1) rotate(-22deg) scaleY(0.97); } /* Heave back on reel */
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes pecheurHeadWatch {
  0% { transform: translateX(-50%) rotate(5deg); }
  20% { transform: translateX(-50%) rotate(-8deg); }
  45% { transform: translateX(-50%) rotate(4deg); }
  75% { transform: translateX(-50%) rotate(8deg); }
  90% { transform: translateX(-50%) rotate(-14deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

@keyframes pecheurCapeSway {
  0% { transform: translateX(-50%) rotate(-4deg); }
  45% { transform: translateX(-50%) rotate(6deg); }
  90% { transform: translateX(-50%) rotate(-18deg) scaleX(1.1); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* --- KEYFRAME ANIMATIONS: BÛCHERON --- */
@keyframes characterBucheronChop {
  0% { transform: translate(-50%, -100%) rotate(0deg); }
  25% { transform: translate(-50%, -100%) rotate(-16deg) translateY(-4px); } /* Windup Back */
  45% { transform: translate(-50%, -100%) rotate(18deg) translateY(2px) scaleY(0.96); } /* Impact Chop! */
  65% { transform: translate(-50%, -100%) rotate(-10deg) translateY(-2px); } /* Rebound */
  85% { transform: translate(-50%, -100%) rotate(18deg) translateY(2px) scaleY(0.96); } /* 2nd Chop! */
  100% { transform: translate(-50%, -100%) rotate(0deg); }
}

@keyframes bucheronTorsoTwist {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1) rotate(-18deg) skewY(-3deg); }
  45% { transform: scale(1) rotate(22deg) skewY(4deg) translateY(2px); }
  65% { transform: scale(1) rotate(-12deg) skewY(-2deg); }
  85% { transform: scale(1) rotate(22deg) skewY(4deg) translateY(2px); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes bucheronHeadBalance {
  0% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-12deg); }
  45% { transform: translateX(-50%) rotate(15deg); }
  65% { transform: translateX(-50%) rotate(-8deg); }
  85% { transform: translateX(-50%) rotate(15deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

@keyframes bucheronCapeSwell {
  0% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-14deg) scaleX(0.85); }
  45% { transform: translateX(-50%) rotate(24deg) scaleX(1.2); }
  65% { transform: translateX(-50%) rotate(-8deg) scaleX(0.9); }
  85% { transform: translateX(-50%) rotate(24deg) scaleX(1.2); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* --- KEYFRAME ANIMATIONS: PAYSAN --- */
@keyframes characterPaysantSwivel {
  0% { transform: translate(-50%, -100%) rotate(0deg); }
  20% { transform: translate(-50%, -100%) rotate(12deg) translateX(4px); } /* Windup Right */
  45% { transform: translate(-50%, -100%) rotate(-18deg) translateX(-6px); } /* Sweep Left! */
  70% { transform: translate(-50%, -100%) rotate(12deg) translateX(4px); } /* Windup Right */
  90% { transform: translate(-50%, -100%) rotate(-18deg) translateX(-6px); } /* Sweep Left! */
  100% { transform: translate(-50%, -100%) rotate(0deg); }
}

@keyframes charSpriteTorsoTwist {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1) rotate(15deg) skewX(-4deg); }
  45% { transform: scale(1) rotate(-22deg) skewX(6deg); }
  70% { transform: scale(1) rotate(15deg) skewX(-4deg); }
  90% { transform: scale(1) rotate(-22deg) skewX(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes charHeadCounterBalance {
  0% { transform: translateX(-50%) rotate(0deg); }
  20% { transform: translateX(-50%) rotate(-10deg); }
  45% { transform: translateX(-50%) rotate(14deg); }
  70% { transform: translateX(-50%) rotate(-10deg); }
  90% { transform: translateX(-50%) rotate(14deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

@keyframes charCapeWindSwell {
  0% { transform: translateX(-50%) rotate(0deg); }
  20% { transform: translateX(-50%) rotate(-12deg) scaleX(0.9); }
  45% { transform: translateX(-50%) rotate(20deg) scaleX(1.15); }
  70% { transform: translateX(-50%) rotate(-12deg) scaleX(0.9); }
  90% { transform: translateX(-50%) rotate(20deg) scaleX(1.15); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* Tool Base Container */
.player-harvest-tool {
  position: absolute;
  top: 30%;
  right: -12px;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Fishing Rod Container & Vector Model (Pêcheur) */
.player-harvest-tool-pecheur {
  position: absolute;
  top: 10%;
  right: -25px;
  width: 85px;
  height: 85px;
  pointer-events: none;
  z-index: 100;
}

.fishing-rod-model {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: 30% 80%;
  animation: fishingRodCastAndReel 2.0s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes fishingRodCastAndReel {
  0% {
    transform: rotate(-65deg) translate(-12px, -8px) scale(0.8);
    opacity: 0;
  }
  20% {
    /* Cast Forward */
    transform: rotate(30deg) translate(12px, -15px) scale(1.2);
    opacity: 1;
  }
  45% {
    /* Holding line in water */
    transform: rotate(12deg) translate(5px, -5px) scale(1.0);
  }
  75% {
    /* Water tension / bite */
    transform: rotate(20deg) translate(8px, -2px) scale(1.05);
  }
  90% {
    /* Reel back hard & pull up! */
    transform: rotate(-75deg) translate(-18px, -22px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: rotate(-65deg) scale(0.8);
    opacity: 0;
  }
}

.fishing-line-container {
  position: absolute;
  top: 5px;
  right: -20px;
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.fishing-line-string {
  position: absolute;
  top: 5px;
  left: 0;
  width: 50px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(56, 189, 248, 0.7));
  transform-origin: 0% 0%;
  transform: rotate(38deg);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
  animation: lineVibrate 0.6s ease-in-out infinite alternate;
}

.fishing-float {
  position: absolute;
  top: 36px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, #ef4444, #991b1b);
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
  animation: floatBobbing 0.7s ease-in-out infinite alternate;
}

@keyframes lineVibrate {
  0% { transform: rotate(35deg); }
  100% { transform: rotate(41deg); }
}

@keyframes floatBobbing {
  0% { transform: translateY(-4px) scale(0.9); }
  100% { transform: translateY(5px) scale(1.1); }
}

/* 2. Woodcutter Axe Container & Vector Model (Bûcheron) */
.player-harvest-tool-bucheron {
  position: absolute;
  top: 10%;
  right: -25px;
  width: 85px;
  height: 85px;
  pointer-events: none;
  z-index: 100;
}

.axe-model {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: 30% 80%;
  animation: axeRightSwingChop 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes axeRightSwingChop {
  0% {
    transform: rotate(-80deg) translate(-18px, -22px) scale(0.8);
    opacity: 0;
  }
  25% {
    /* Windup Back */
    transform: rotate(-95deg) translate(-22px, -28px) scale(1.1);
    opacity: 1;
  }
  45% {
    /* Downward Impact Chop! */
    transform: rotate(48deg) translate(28px, 14px) scale(1.3);
  }
  65% {
    /* Rebound Back */
    transform: rotate(-65deg) translate(-12px, -18px) scale(1.0);
  }
  85% {
    /* Second Impact Chop! */
    transform: rotate(48deg) translate(28px, 14px) scale(1.3);
  }
  100% {
    transform: rotate(-80deg) scale(0.8);
    opacity: 0;
  }
}

.wood-chop-spark {
  position: absolute;
  right: -22px;
  top: 14px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #ffffff, #fde047, #f59e0b);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  animation: sparkFlash 0.85s infinite;
}

@keyframes sparkFlash {
  0%, 35%, 55%, 75%, 100% { opacity: 0; transform: scale(0); }
  45%, 85% { opacity: 1; transform: scale(1.5) rotate(45deg); }
}

/* 3. Scythe Tool Container & Vector Model (Paysan / Céréales) */
.player-harvest-tool-paysant {
  position: absolute;
  top: 10%;
  right: -28px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 100;
}

.scythe-model {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: 65% 75%;
  animation: scytheRightToLeftSwing 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Scythe Right to Left Sweep Keyframes */
@keyframes scytheRightToLeftSwing {
  0% {
    transform: rotate(60deg) translate(20px, -15px) scale(0.8);
    opacity: 0;
  }
  20% {
    /* Windup Right */
    transform: rotate(85deg) translate(28px, -20px) scale(1.1);
    opacity: 1;
  }
  45% {
    /* Sweep Right to Left! */
    transform: rotate(-110deg) translate(-35px, 8px) scale(1.25);
    opacity: 1;
  }
  70% {
    /* Return Windup Right */
    transform: rotate(85deg) translate(28px, -20px) scale(1.05);
  }
  90% {
    /* Second Sweep Right to Left! */
    transform: rotate(-110deg) translate(-35px, 8px) scale(1.25);
  }
  100% {
    transform: rotate(60deg) scale(0.8);
    opacity: 0;
  }
}

/* Slash Arc Trail (Right to Left Slash) */
.scythe-slash-sweep-arc {
  position: absolute;
  top: -10px;
  left: -20px;
  width: 90px;
  height: 90px;
  border-left: 4px solid rgba(255, 235, 150, 0.95);
  border-top: 3px solid rgba(241, 168, 10, 0.8);
  border-radius: 50%;
  box-shadow: -4px 0 15px rgba(241, 168, 10, 0.7), inset -2px 0 8px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  opacity: 0;
  transform: rotate(20deg);
  animation: scytheArcTrailRightToLeft 1.2s infinite;
}

@keyframes scytheArcTrailRightToLeft {
  0%, 25%, 55%, 75%, 95%, 100% {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  45%, 90% {
    opacity: 1;
    transform: rotate(-75deg) scale(1.35);
  }
}

/* Non-emoji particle shapes */
.cereal-stalk-shape {
  width: 16px;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706);
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
  transform: rotate(25deg);
}

.wood-chip-shape {
  width: 10px;
  height: 7px;
  background: linear-gradient(135deg, #b45309, #78350f);
  border-radius: 1px 3px 1px 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.water-drop-shape {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #38bdf8, #0284c7);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}


/* -------------------------------------------------
   CUSTOM NPC SPRITES (SKINS) FOR LEVEL 40-60
   ------------------------------------------------- */

/* Ulrich the Mountaineer */
.npc-sprite-mountaineer {
  animation: mountaineerBreath 2.5s ease-in-out infinite;
}

@keyframes mountaineerBreath {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-2px) scaleY(0.97); }
}

.npc-sprite-mountaineer .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 185, 255, 0.35) 0%, rgba(9, 132, 227, 0.1) 60%, transparent 80%);
  filter: blur(3px);
  z-index: 0;
  animation: mountaineerAura 3s ease-in-out infinite alternate;
}

@keyframes mountaineerAura {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

.npc-sprite-mountaineer .charBody {
  position: absolute;
  width: 18px;
  height: 24px;
  left: 23px;
  top: 24px;
  background: #795548;
  border: 1.5px solid #1c1511;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15);
}

.npc-sprite-mountaineer .charHead {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #f5cd79;
  border: 1.5px solid #1c1511;
}

/* Red beanie hat */
.npc-sprite-mountaineer .charHead::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 6px;
  left: -1.5px;
  top: -3px;
  background: #e74c3c;
  border: 1.5px solid #1c1511;
  border-radius: 4px 4px 1px 1px;
}

/* Beanie pompom */
.npc-sprite-mountaineer .charHead::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 4px;
  top: -6px;
  background: #ffffff;
  border: 1px solid #1c1511;
  border-radius: 50%;
}

/* Backpack on body */
.npc-sprite-mountaineer::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 14px;
  left: 17px;
  top: 28px;
  background: #3e2723;
  border: 1.2px solid #1c1511;
  border-radius: 2px;
}


/* Balthazar the Archaeologist */
.npc-sprite-archaeologist {
  animation: mountaineerBreath 2.8s ease-in-out infinite;
}

.npc-sprite-archaeologist .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 202, 87, 0.3) 0%, rgba(243, 156, 18, 0.08) 60%, transparent 80%);
  filter: blur(4px);
  z-index: 0;
}

.npc-sprite-archaeologist .charBody {
  position: absolute;
  width: 16px;
  height: 24px;
  left: 24px;
  top: 24px;
  background: #d2b48c;
  border: 1.5px solid #1c1511;
  border-radius: 4px;
}

/* Khaki vest lines */
.npc-sprite-archaeologist .charBody::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 24px;
  left: 6px;
  top: 0;
  background: #f3a683;
  border-left: 1px solid #1c1511;
  border-right: 1px solid #1c1511;
}

.npc-sprite-archaeologist .charHead {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
}

/* Fedora Hat Brim */
.npc-sprite-archaeologist .charHead::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 3px;
  left: -4.5px;
  top: -1px;
  background: #855E42;
  border: 1.2px solid #1c1511;
  border-radius: 2px;
}

/* Fedora Hat Crown */
.npc-sprite-archaeologist .charHead::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 6px;
  left: 0.5px;
  top: -6px;
  background: #855E42;
  border: 1.2px solid #1c1511;
  border-radius: 3px 3px 0 0;
}


/* Lyra the Herbalist */
.npc-sprite-herbalist {
  animation: herbalistFloat 3s ease-in-out infinite;
}

@keyframes herbalistFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.npc-sprite-herbalist .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.4) 0%, rgba(39, 174, 96, 0.1) 60%, transparent 80%);
  filter: blur(3px);
  z-index: 0;
  animation: mountaineerAura 2s ease-in-out infinite alternate;
}

.npc-sprite-herbalist .charBody {
  position: absolute;
  width: 14px;
  height: 22px;
  left: 25px;
  top: 25px;
  background: #2ecc71;
  border: 1.5px solid #1c1511;
  border-radius: 8px 8px 4px 4px;
}

/* Herbalist apron */
.npc-sprite-herbalist .charBody::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 12px;
  left: 3px;
  top: 6px;
  background: #ffffff;
  border: 1px solid #1c1511;
  border-radius: 1px;
}

.npc-sprite-herbalist .charHead {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
}

/* Hair */
.npc-sprite-herbalist .charHead::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 12px;
  left: -2.5px;
  top: -2px;
  background: #e84393;
  border: 1.2px solid #1c1511;
  border-radius: 8px 8px 0 0;
  z-index: -1;
}

/* Flower crown */
.npc-sprite-herbalist .charHead::after {
  content: "🌸🌸";
  position: absolute;
  font-size: 8px;
  left: 0px;
  top: -6px;
  text-shadow: 0 1px 0 #1c1511;
  pointer-events: none;
}


/* Elidor the Druid */
.npc-sprite-druid {
  animation: mountaineerBreath 2.2s ease-in-out infinite;
}

.npc-sprite-druid .charAura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.3) 0%, rgba(27, 77, 62, 0.08) 60%, transparent 80%);
  filter: blur(4px);
  z-index: 0;
}

.npc-sprite-druid .charBody {
  position: absolute;
  width: 18px;
  height: 26px;
  left: 23px;
  top: 23px;
  background: #1b4d3e;
  border: 1.5px solid #1c1511;
  border-radius: 5px;
}

/* Druid belt */
.npc-sprite-druid .charBody::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  left: -1.5px;
  top: 12px;
  background: #5c4033;
  border: 1px solid #1c1511;
}

.npc-sprite-druid .charHead {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 24px;
  top: 9px;
  border-radius: 50%;
  background: #ffdcb6;
  border: 1.5px solid #1c1511;
}

/* Druid White Beard */
.npc-sprite-druid .charHead::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 14px;
  left: 2px;
  top: 8px;
  background: #ffffff;
  border: 1.2px solid #1c1511;
  border-radius: 0 0 6px 6px;
}

/* Antler Horns */
.npc-sprite-druid .charHead::after {
  content: "🦌";
  position: absolute;
  font-size: 11px;
  left: 2px;
  top: -12px;
  filter: drop-shadow(0 1px 0 #1c1511);
  transform: rotate(-10deg);
}

/* =======================================
   NPC QUEST INDICATORS
   ======================================= */
.npc-quest-indicator {
  position: absolute;
  top: -68px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2000 !important;
  animation: questIndicatorFloat 2s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.npc-quest-indicator .quest-svg-icon {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

@keyframes questIndicatorFloat {
  0% {
    transform: translateX(-50%) translateY(0) scale(0.95);
  }
  100% {
    transform: translateX(-50%) translateY(-6px) scale(1.15);
  }
}

/* ==========================================
   TRANSPARENCY MODE (ENTITIES, PLAYERS & PWA)
   ========================================== */
body.transparency-mode .remotePlayer,
body.transparency-mode #player,
body.transparency-mode .monsterEntity,
body.transparency-mode .npcEntity,
body.transparency-mode .charSprite,
body.transparency-mode .monsterSprite,
body.transparency-mode .npcSprite,
.transparency-mode .remotePlayer,
.transparency-mode #player,
.transparency-mode .monsterEntity,
.transparency-mode .npcEntity,
.transparency-mode .charSprite,
.transparency-mode .monsterSprite,
.transparency-mode .npcSprite,
#gameWorld.transparency-mode .remotePlayer,
#gameWorld.transparency-mode #player,
#gameWorld.transparency-mode .monsterEntity,
#gameWorld.transparency-mode .npcEntity {
  opacity: 0.35 !important;
  -webkit-opacity: 0.35 !important;
  transition: opacity 0.2s ease;
}

body.transparency-mode .remotePlayer:hover,
body.transparency-mode #player:hover,
body.transparency-mode .monsterEntity:hover,
body.transparency-mode .npcEntity:hover,
.transparency-mode .remotePlayer:hover,
.transparency-mode #player:hover,
.transparency-mode .monsterEntity:hover,
.transparency-mode .npcEntity:hover {
  opacity: 0.9 !important;
  -webkit-opacity: 0.9 !important;
}

/* ==========================================
   PLAYER CONTEXT MENU (CLICK & TOUCH)
   ========================================== */
.player-context-menu {
  position: fixed !important;
  z-index: 100000 !important;
  min-width: 180px;
  background: rgba(23, 17, 13, 0.95);
  border: 2px solid var(--ui-gold, #d8b46a);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(216, 180, 106, 0.3);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: contextFadeIn 0.15s ease-out;
}

.player-context-menu.hidden {
  display: none !important;
}

.context-menu-title {
  color: var(--ui-gold, #d8b46a);
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(216, 180, 106, 0.2);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.context-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(216, 180, 106, 0.25);
  color: #efe6d2;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-btn:hover, .context-btn:active {
  background: rgba(216, 180, 106, 0.2);
  border-color: var(--ui-gold, #d8b46a);
  color: #fff;
}

.context-btn.secondary {
  background: rgba(50, 50, 50, 0.4);
  border-color: rgba(250, 250, 250, 0.2);
  color: #a7977c;
}

.context-btn.danger {
  background: rgba(183, 28, 28, 0.3);
  border-color: rgba(229, 115, 115, 0.4);
  color: #ffcdd2;
}

/* =======================================
   HOT AIR BALLOON (MONTGOLFIERE) CSS SPRITE
   ======================================= */
.npc-sprite-mongolfiere {
  width: 64px;
  height: 64px;
  position: relative;
  animation: balloonFloat 4s ease-in-out infinite;
}

@keyframes balloonFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

.npc-sprite-mongolfiere .fairyWings,
.npc-sprite-mongolfiere .fairyWand,
.npc-sprite-mongolfiere .charHeadgear,
.npc-sprite-mongolfiere .charCape {
  display: none !important;
}

/* 1. Wicker Basket, Ropes & Sandbags */
.npc-sprite-mongolfiere .charBody {
  display: block !important;
  position: absolute !important;
  width: 18px !important;
  height: 14px !important;
  left: 23px !important;
  top: 46px !important;
  background: #8b5a2b !important; /* Wicker brown base */
  /* Grid pattern representing the wicker texture */
  background-image: 
    linear-gradient(90deg, rgba(0,0,0,0.12) 50%, transparent 50%), 
    linear-gradient(rgba(0,0,0,0.12) 50%, transparent 50%) !important;
  background-size: 3px 3px !important;
  border: 1.8px solid #1c1511 !important;
  border-top: 3px solid #cd853f !important; /* Thick rim */
  border-radius: 2px !important;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.2) !important;
  z-index: 4 !important;
}

/* Left Ropes & Sandbag pouch */
.npc-sprite-mongolfiere .charBody::before {
  content: "" !important;
  position: absolute !important;
  width: 1.5px !important;
  height: 12px !important;
  left: 2px !important;
  top: -12px !important;
  background: #1c1511 !important;
  display: block !important;
  transform: none !important;
  box-shadow: 
    3.5px 0 0 0 #1c1511, /* Second left rope */
    -4px 13px 0 1px #d8c3a5, /* Sandbag canvas */
    -4px 14px 0 1px #d8c3a5,
    -4px 13px 0 2px #1c1511 !important; /* Sandbag outline */
}

/* Right Ropes & Sandbag pouch */
.npc-sprite-mongolfiere .charBody::after {
  content: "" !important;
  position: absolute !important;
  width: 1.5px !important;
  height: 12px !important;
  right: 2px !important;
  top: -12px !important;
  background: #1c1511 !important;
  display: block !important;
  transform: none !important;
  box-shadow: 
    -3.5px 0 0 0 #1c1511, /* Second right rope */
    4px 13px 0 1px #d8c3a5, /* Sandbag canvas */
    4px 14px 0 1px #d8c3a5,
    4px 13px 0 2px #1c1511 !important; /* Sandbag outline */
}

/* 2. Burner Fire Effect */
.npc-sprite-mongolfiere .charAura {
  display: block !important;
  position: absolute !important;
  left: 28px !important;
  top: 36px !important;
  width: 8px !important;
  height: 12px !important;
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40% !important;
  transform: none !important;
  background: linear-gradient(to top, rgba(255,255,255,0.9) 20%, #ffeb3b 50%, #e67e22 80%, transparent) !important;
  filter: blur(0.5px) !important;
  animation: burnerFlame 0.1s ease-in-out infinite alternate !important;
  z-index: 2 !important;
}

@keyframes burnerFlame {
  0% { transform: scaleX(0.9) translateY(1px); opacity: 0.8; }
  100% { transform: scaleX(1.1) scaleY(1.1) translateY(0); opacity: 1.0; }
}

/* 3. Teardrop Balloon Envelope */
.npc-sprite-mongolfiere .charHead {
  display: block !important;
  position: absolute !important;
  width: 42px !important;
  height: 46px !important;
  left: 11px !important;
  top: -2px !important;
  /* Authentic teardrop hot air balloon shape */
  border-radius: 50% 50% 25% 25% / 45% 45% 55% 55% !important;
  border: 1.8px solid #1c1511 !important;
  /* Multi-layered background: 3D specular shine, bottom shadow, lateral shading, and colorful stripes */
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45) 5%, transparent 55%),
    radial-gradient(circle at 50% 115%, rgba(0, 0, 0, 0.5) 10%, transparent 75%),
    linear-gradient(to right, rgba(0,0,0,0.25) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.4) 100%),
    linear-gradient(90deg, #e74c3c 16.6%, #f1c40f 16.6%, #f1c40f 33.3%, #e74c3c 33.3%, #e74c3c 50%, #f1c40f 50%, #f1c40f 66.6%, #e74c3c 66.6%, #e74c3c 83.3%, #f1c40f 83.3%) !important;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.15), 0 5px 8px rgba(0,0,0,0.15) !important;
  z-index: 3 !important;
}

/* Top crown/valve cap of the balloon */
.npc-sprite-mongolfiere .charHead::before {
  content: "" !important;
  position: absolute !important;
  width: 10px !important;
  height: 4px !important;
  left: 16px !important;
  top: -4px !important;
  background: #1c1511 !important;
  border-radius: 3px 3px 0 0 !important;
  display: block !important;
}

/* Bottom burner collar / opening skirt */
.npc-sprite-mongolfiere .charHead::after {
  content: "" !important;
  position: absolute !important;
  width: 18px !important;
  height: 6px !important;
  left: 12px !important;
  bottom: -6px !important;
  background: #e74c3c !important; /* matches bottom envelope */
  border: 1.8px solid #1c1511 !important;
  border-top: none !important;
  border-radius: 0 0 4px 4px !important;
  display: block !important;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15) !important;
  z-index: 5 !important;
}

