/* Shard Selector Tabs */
.shard-selector-section {
  padding: 2rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.shard-selector-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.shard-arrow {
  background: var(--bg);
  border: 2px solid rgba(191, 160, 111, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent);
  font-size: 1.5rem;
  z-index: 20;
  position: relative;
}

.shard-arrow:hover {
  border-color: var(--accent);
  background: rgba(191, 160, 111, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(191, 160, 111, 0.3);
}

.shard-arrow:active {
  transform: scale(0.95);
}

.shard-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  position: relative;
  flex: 1;
  overflow: visible;
  perspective: 1000px;
  min-height: 90px;
}

.shard-tab {
  background: transparent;
  border: 2px solid rgba(191, 160, 111, 0.3);
  border-radius: 8px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 220px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.shard-tab.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  border-color: var(--accent);
  background: rgba(191, 160, 111, 0.15);
  box-shadow: 0 0 20px rgba(191, 160, 111, 0.3);
  z-index: 5;
}

.shard-tab.prev-peek {
  transform: translateX(-180%) scale(0.75);
  opacity: 0.4;
  pointer-events: auto;
  filter: brightness(0.6);
  z-index: 2;
  max-width: 180px;
}

.shard-tab.next-peek {
  transform: translateX(80%) scale(0.75);
  opacity: 0.4;
  pointer-events: auto;
  filter: brightness(0.6);
  z-index: 2;
  max-width: 180px;
}

.shard-tab.prev-peek:hover,
.shard-tab.next-peek:hover {
  opacity: 0.6;
  filter: brightness(0.8);
  transform: translateX(-180%) scale(0.8);
}

.shard-tab.next-peek:hover {
  transform: translateX(80%) scale(0.8);
}

.shard-number {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.shard-name {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.shard-tab.active .shard-name {
  color: var(--accent);
}

/* Map Container */
.map-container-section {
  position: relative;
  background: var(--bg);
  padding: 3rem 0;
  overflow: hidden;
}

.shard-content {
  display: none;
  opacity: 0;
  transform: translateX(100px);
}

.shard-content.active {
  display: block;
  animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.shard-content.slide-out-left {
  animation: slideOutToLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.shard-content.slide-out-right {
  animation: slideOutToRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100px);
  }
}

@keyframes slideOutToRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes fadeInMap {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Interactive Map Viewer */
.map-viewer {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 85vh;
  /* background: linear-gradient(135deg, #211F1C 0%, #211F1C 50%, #211F1C 100%); */
  background: #2C2A28;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(191, 160, 111, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Fullscreen styles */
.map-viewer:fullscreen {
  max-width: 100%;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.map-viewer:-webkit-full-screen {
  max-width: 100%;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.map-viewer:-moz-full-screen {
  max-width: 100%;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.map-viewer:-ms-fullscreen {
  max-width: 100%;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.map-canvas {
  width: 100%;
  height: 100%;
  cursor: default;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

/* Subtle vignette fog overlay */
.map-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(26, 24, 21, 0.3) 80%, rgba(26, 24, 21, 0.7) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Fog gradient overlays on edges */
.map-canvas::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(to right, rgba(26, 24, 21, 0.6) 0%, transparent 15%, transparent 85%, rgba(26, 24, 21, 0.6) 100%),
    linear-gradient(to bottom, rgba(26, 24, 21, 0.4) 0%, transparent 10%, transparent 90%, rgba(26, 24, 21, 0.4) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Map content wrapper - for transforms */
.map-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.map-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
  object-fit: contain; /* shows full map without cropping */
  object-position: center center;
}

/* Map Controls */
.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-btn {
  display: none;
}

.zoom-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(33, 31, 28, 0.95);
  border: 1px solid rgba(191, 160, 111, 0.3);
  border-radius: 8px;
  padding: 8px;
  backdrop-filter: blur(10px);
  align-items: center;
}

/* Exit Fullscreen Button - inside zoom controls */
.exit-fullscreen-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(191, 160, 111, 0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.exit-fullscreen-btn:hover {
  background: rgba(191, 160, 111, 0.15);
  border-color: var(--accent);
  transform: scale(1.05);
}

.exit-fullscreen-btn:active {
  transform: scale(0.95);
}

.exit-fullscreen-btn i {
  font-size: 1.5rem;
  font-weight: bold;
}

.zoom-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(191, 160, 111, 0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(191, 160, 111, 0.15);
  border-color: var(--accent);
  transform: scale(1.05);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-btn i {
  font-size: 1.3rem;
  font-weight: bold;
}

/* Map Filter Panel */
.map-filter-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(33, 31, 28, 0.95);
  border: 2px solid rgba(191, 160, 111, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-toggle-btn:hover {
  background: rgba(191, 160, 111, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(191, 160, 111, 0.3);
}

.filter-toggle-btn i.ph-funnel {
  font-size: 1.2rem;
}

.filter-toggle-btn .filter-caret {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.filter-toggle-btn.active .filter-caret {
  transform: rotate(180deg);
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: rgba(33, 31, 28, 0.98);
  border: 2px solid rgba(191, 160, 111, 0.3);
  border-radius: 8px;
  padding: 12px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 70vh;
  overflow-y: auto;
}

.filter-toggle-btn.active + .filter-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb {
  background: rgba(191, 160, 111, 0.4);
  border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(191, 160, 111, 0.6);
}

.filter-option {
  padding: 0 16px;
  margin: 4px 0;
}

.filter-option input[type="checkbox"] {
  display: none;
}

.filter-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-option label:hover {
  background: rgba(191, 160, 111, 0.1);
  color: var(--accent);
}

.filter-option input[type="checkbox"]:checked + label {
  background: rgba(191, 160, 111, 0.15);
  color: var(--accent);
}

/* Select All checkbox icon states */
.filter-option .select-all-checked {
  display: none;
}

.filter-option .select-all-unchecked {
  display: inline;
}

.filter-option input[type="checkbox"]:checked + label .select-all-checked {
  display: inline;
}

.filter-option input[type="checkbox"]:checked + label .select-all-unchecked {
  display: none;
}

.filter-option .filter-emoji {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.filter-option .filter-icon-img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  object-fit: contain;
}

.filter-option label i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  color: var(--accent);
}

.filter-separator {
  height: 1px;
  background: rgba(191, 160, 111, 0.2);
  margin: 8px 16px;
}

/* Select All option styling */
.filter-option:first-child label {
  font-weight: 600;
  color: var(--accent);
}

.filter-option:first-child input[type="checkbox"]:checked + label {
  background: rgba(191, 160, 111, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .map-filter-panel {
    top: 10px;
    left: 10px;
  }
  
  .filter-toggle-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .filter-dropdown {
    min-width: 220px;
  }
}

/* Map Markers Overlay */
.map-markers-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.marker {
  pointer-events: none;
  user-select: none;
}

.marker text {
  pointer-events: none;
  user-select: none;
}

/* Marker ping animation */
.marker-ping {
  pointer-events: none;
}

/* Hidden markers */
.marker.hidden {
  display: none;
}

/* Marker types with different colors */
.marker-chest .marker-bg {
  stroke: #FFD700;
}

.marker-sack .marker-bg {
  stroke: #8B7355;
}

.marker-platsilver .marker-bg {
  stroke: #C0C0C0;
}

.marker-rubysilver .marker-bg {
  stroke: #E0115F;
}

.marker-bellflower .marker-bg {
  stroke: #FFB6C1;
}

.marker-scarlet .marker-bg {
  stroke: #FF2400;
}

.marker-mushroom .marker-bg {
  stroke: #8B4513;
}

.marker-quest .marker-bg {
  stroke: #4169E1;
}

.marker-miniboss .marker-bg {
  stroke: #DC143C;
}

.marker-dungeon .marker-bg {
  stroke: #9370DB;
}

/* Zoom message notification - Small popup with fill animation */
.zoom-message {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(33, 31, 28, 0.95);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  min-width: 250px;
  overflow: hidden;
}

.zoom-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.message-text {
  position: relative;
  z-index: 2;
  display: block;
}

.message-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.8));
  animation: fillProgress 3s linear forwards;
  z-index: 1;
}

@keyframes fillProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Region Cards Section */

.map-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.map-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Regions Section */
.regions-section {
  padding: 4rem 0;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Region Card */
.region-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--border);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1), box-shadow 0.3s cubic-bezier(.2,.9,.3,1), border-color 0.3s ease;
  cursor: pointer;
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 1;
}

.region-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.region-card:active {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Region Card Colors with Animations */
.region-card--green { 
  color: #7cb342;
  border-top-color: #7cb342;
  animation: borderGlowGreen 3s ease-in-out infinite, cardFloat 4s ease-in-out infinite;
  animation-delay: 0s, 0.5s;
}

.region-card--teal { 
  color: #00897b;
  border-top-color: #00897b;
  animation: borderGlowTeal 3s ease-in-out infinite, cardFloat 4.1s ease-in-out infinite;
  animation-delay: 0.1s, 0.6s;
}

.region-card--orange { 
  color: #ff7043;
  border-top-color: #ff7043;
  animation: borderGlowOrange 3s ease-in-out infinite, cardFloat 4.2s ease-in-out infinite;
  animation-delay: 0.2s, 0.7s;
}

.region-card--pink { 
  color: #ec407a;
  border-top-color: #ec407a;
  animation: borderGlowPink 3s ease-in-out infinite, cardFloat 4.3s ease-in-out infinite;
  animation-delay: 0.3s, 0.8s;
}

.region-card--cyan { 
  color: #26c6da;
  border-top-color: #26c6da;
  animation: borderGlowCyan 3s ease-in-out infinite, cardFloat 4.4s ease-in-out infinite;
  animation-delay: 0.4s, 0.9s;
}

.region-card--lime { 
  color: #9ccc65;
  border-top-color: #9ccc65;
  animation: borderGlowLime 3s ease-in-out infinite, cardFloat 4.5s ease-in-out infinite;
  animation-delay: 0.5s, 1s;
}

.region-card--red { 
  color: #e53935;
  border-top-color: #e53935;
  animation: borderGlowRed 3s ease-in-out infinite, cardFloat 4.6s ease-in-out infinite;
  animation-delay: 0.6s, 1.1s;
}

.region-card--blue { 
  color: #42a5f5;
  border-top-color: #42a5f5;
  animation: borderGlowBlue 3s ease-in-out infinite, cardFloat 4.7s ease-in-out infinite;
  animation-delay: 0.7s, 1.2s;
}

.region-card--purple { 
  color: #ab47bc;
  border-top-color: #ab47bc;
  animation: borderGlowPurple 3s ease-in-out infinite, cardFloat 4.8s ease-in-out infinite;
  animation-delay: 0.8s, 1.3s;
}

.region-card--gold { 
  color: #ffb300;
  border-top-color: #ffb300;
  animation: borderGlowGold 3s ease-in-out infinite, cardFloat 4.9s ease-in-out infinite;
  animation-delay: 0.9s, 1.4s;
}

/* Border Glow Animations */
@keyframes borderGlowGreen {
  0%, 100% { border-top-color: #7cb342; }
  50% { border-top-color: #9cd362; }
}

@keyframes borderGlowBlue {
  0%, 100% { border-top-color: #42a5f5; }
  50% { border-top-color: #62c5ff; }
}

@keyframes borderGlowOrange {
  0%, 100% { border-top-color: #ff7043; }
  50% { border-top-color: #ff9063; }
}

@keyframes borderGlowPurple {
  0%, 100% { border-top-color: #ab47bc; }
  50% { border-top-color: #cb67dc; }
}

@keyframes borderGlowGreen {
  0%, 100% { border-top-color: #7cb342; }
  50% { border-top-color: #9cd362; }
}

@keyframes borderGlowTeal {
  0%, 100% { border-top-color: #00897b; }
  50% { border-top-color: #20a99b; }
}

@keyframes borderGlowOrange {
  0%, 100% { border-top-color: #ff7043; }
  50% { border-top-color: #ff9063; }
}

@keyframes borderGlowPink {
  0%, 100% { border-top-color: #ec407a; }
  50% { border-top-color: #ff609a; }
}

@keyframes borderGlowCyan {
  0%, 100% { border-top-color: #26c6da; }
  50% { border-top-color: #46e6fa; }
}

@keyframes borderGlowLime {
  0%, 100% { border-top-color: #9ccc65; }
  50% { border-top-color: #bcec85; }
}

@keyframes borderGlowRed {
  0%, 100% { border-top-color: #e53935; }
  50% { border-top-color: #ff5955; }
}

@keyframes borderGlowBlue {
  0%, 100% { border-top-color: #42a5f5; }
  50% { border-top-color: #62c5ff; }
}

@keyframes borderGlowPurple {
  0%, 100% { border-top-color: #ab47bc; }
  50% { border-top-color: #cb67dc; }
}

@keyframes borderGlowGold {
  0%, 100% { border-top-color: #ffb300; }
  50% { border-top-color: #ffd320; }
}

/* Card Float Animation */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.005); }
}

/* Region Icon */
.region-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: currentColor;
  opacity: 0.9;
}

/* Region Content */
.region-content {
  position: relative;
}

.region-name {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.region-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.region-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.region-tag--starting {
  background: rgba(124, 179, 66, 0.2);
  color: #7cb342;
  border: 1px solid rgba(124, 179, 66, 0.3);
}

.region-tag--exploration {
  background: rgba(66, 165, 245, 0.2);
  color: #42a5f5;
  border: 1px solid rgba(66, 165, 245, 0.3);
}

.region-tag--dungeon {
  background: rgba(255, 112, 67, 0.2);
  color: #ff7043;
  border: 1px solid rgba(255, 112, 67, 0.3);
}

.region-tag--boss {
  background: rgba(229, 57, 53, 0.2);
  color: #e53935;
  border: 1px solid rgba(229, 57, 53, 0.3);
}

.region-tag--resource {
  background: rgba(255, 179, 0, 0.2);
  color: #ffb300;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.region-tag--pvp {
  background: rgba(171, 71, 188, 0.2);
  color: #ab47bc;
  border: 1px solid rgba(171, 71, 188, 0.3);
}

.region-tag--endgame {
  background: rgba(255, 179, 0, 0.2);
  color: #ffb300;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.region-level {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.region-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Difficulty Indicator */
.region-difficulty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.difficulty-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.difficulty-dots {
  display: flex;
  gap: 0.35rem;
}

.difficulty-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  box-shadow: 0 0 8px currentColor;
}

/* Region Card Hover Overlay */
.region-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2C2A28;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.region-card:hover .region-hover-overlay {
  opacity: 1;
  pointer-events: all;
}

.region-hover-name {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

.region-hover-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  text-align: center;
  max-width: 90%;
  margin: 0;
}

/* Responsive */
@media (max-width: 920px) {
  .shard-selector-wrapper {
    max-width: 700px;
  }

  .shard-tab {
    min-width: 180px;
    padding: 0.85rem 1.5rem;
  }

  .shard-tab.prev-peek {
    transform: translateX(-160%) scale(0.7);
  }

  .shard-tab.next-peek {
    transform: translateX(60%) scale(0.7);
  }

  .shard-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .map-viewer {
    height: 600px;
  }

  .map-controls {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  .shard-selector-section {
    padding: 1.5rem 0;
  }

  .shard-selector-wrapper {
    gap: 1rem;
    max-width: 500px;
  }

  .shard-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .shard-tab {
    min-width: 160px;
    padding: 0.75rem 1.25rem;
  }

  .shard-tab.prev-peek,
  .shard-tab.next-peek {
    display: none; /* Hide peek on mobile for cleaner look */
  }

  .map-container-section {
    padding: 2rem 1rem;
  }

  .map-viewer {
    height: 500px;
    border-radius: 8px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .zoom-btn {
    width: 40px;
    height: 40px;
  }

  .regions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .region-card {
    padding: 1.5rem;
  }

  .region-name {
    font-size: 1.5rem;
  }

  .region-icon {
    font-size: 2.5rem;
  }

  .region-hover-overlay {
    padding: 1.25rem;
  }

  .region-hover-name {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
  }

  .region-hover-description {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .shard-selector-section {
    padding: 1rem 0;
  }

  .shard-selector-wrapper {
    gap: 0.75rem;
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .shard-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .shard-tab {
    min-width: 140px;
    padding: 0.65rem 1rem;
  }

  .shard-number {
    font-size: 1rem;
  }

  .shard-name {
    font-size: 0.65rem;
  }

  .map-container-section {
    padding: 1.5rem 0.5rem;
  }

  .map-viewer {
    height: 400px;
    border-radius: 6px;
  }

  .map-controls {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .filter-btn span {
    display: none;
  }

  .zoom-controls {
    padding: 6px;
    gap: 6px;
  }

  .zoom-btn {
    width: 36px;
    height: 36px;
  }

  .regions-section {
    padding: 3rem 0;
  }

  .region-card {
    padding: 1.25rem;
  }

  .shard-number {
    font-size: 1.1rem;
  }

  .shard-name {
    font-size: 0.7rem;
  }

  .region-hover-overlay {
    padding: 1rem;
  }

  .region-hover-name {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .region-hover-description {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 100%;
  }
}
