/* CSS Variables for Medieval Fantasy Theme */
:root {
  /* Medieval Light Theme Colors */
  --bg-primary: #f4e8d0;
  --bg-secondary: #e8dcc4;
  --bg-tertiary: #d9c9a8;
  --text-primary: #2c1810;
  --text-secondary: #5a4632;
  --text-accent: #8b4513;
  --gold-accent: #d4af37;
  --border-color: #8b7355;
  --shadow-light: rgba(61, 43, 31, 0.2);
  --shadow-medium: rgba(61, 43, 31, 0.35);
  --gradient-primary: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  --gradient-secondary: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #daa520 100%);
  --parchment-bg: #f4e8d0;
  --wood-dark: #3e2723;
  --stone-gray: #5d4e37;
}

/* Medieval Dark Theme Colors */
[data-theme="dark"] {
  --bg-primary: #1a1410;
  --bg-secondary: #2a2018;
  --bg-tertiary: #3a2d20;
  --text-primary: #e8dcc4;
  --text-secondary: #b8a68a;
  --text-accent: #d4af37;
  --gold-accent: #ffd700;
  --border-color: #5a4632;
  --shadow-light: rgba(0, 0, 0, 0.4);
  --shadow-medium: rgba(0, 0, 0, 0.6);
  --gradient-primary: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  --gradient-secondary: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  --parchment-bg: #2a2018;
  --wood-dark: #1a1410;
  --stone-gray: #4a3d2f;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Development Ticker Styles */
.development-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: 
    linear-gradient(90deg, var(--wood-dark) 0%, var(--stone-gray) 20%, var(--border-color) 40%, var(--gold-accent) 50%, var(--border-color) 60%, var(--stone-gray) 80%, var(--wood-dark) 100%);
  background-size: 200% 100%;
  animation: gradientShift 5s ease infinite;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(212, 175, 55, 0.3);
  border-bottom: 2px solid var(--gold-accent);
}

.ticker-content {
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

.ticker-text {
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-accent);
  text-shadow: 
    2px 2px 0 rgba(0, 0, 0, 0.7),
    0 0 10px rgba(212, 175, 55, 0.5);
  padding-left: 100%;
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  background-size: 100% 100%;
  color: var(--text-primary);
  line-height: 1.7;
  transition: all 0.3s ease;
  padding-top: 40px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* Container Layout */
.container {
  display: flex;
  min-height: calc(100vh - 40px); /* Subtract ticker height */
}

/* Sidebar Styles */
.sidebar {
  width: 320px;
  background: linear-gradient(180deg, var(--wood-dark) 0%, var(--bg-secondary) 20%, var(--bg-secondary) 80%, var(--wood-dark) 100%);
  border-right: 4px solid var(--border-color);
  border-image: repeating-linear-gradient(
    0deg,
    var(--border-color),
    var(--border-color) 10px,
    var(--gold-accent) 10px,
    var(--gold-accent) 12px
  ) 1;
  padding: 2rem 0;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 20px var(--shadow-medium), inset 0 0 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(139, 69, 19, 0.1) 3px,
      rgba(139, 69, 19, 0.1) 6px
    );
  pointer-events: none;
  z-index: 1;
}

.sidebar > * {
  position: relative;
  z-index: 2;
}

.sidebar-header {
  padding: 0 2rem 2rem;
  border-bottom: 3px double var(--gold-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1004;
  background: linear-gradient(180deg, rgba(139, 69, 19, 0.2) 0%, transparent 100%);
}

.sidebar-header::after {
  content: '⚔';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  padding: 0 15px;
  font-size: 20px;
  color: var(--gold-accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 200px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;
 
}

.logo-img:hover {
  transform: scale(1.05);
}



.theme-toggle {
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--border-color) 100%);
  border: 2px solid var(--gold-accent);
  color: var(--wood-dark);
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  z-index: 1002;
  position: relative;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.theme-toggle:hover {
  background: linear-gradient(135deg, var(--border-color) 0%, var(--gold-accent) 100%);
  color: var(--gold-accent);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(212, 175, 55, 0.5);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.nav-section {
  margin: 2rem 0;
  padding: 0 2rem;
}

.nav-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'Roboto', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  position: relative;
}

.nav-section h3::before {
  content: '◆';
  margin-right: 8px;
  color: var(--gold-accent);
  font-size: 0.8em;
}

.nav-section h3::after {
  content: '◆';
  margin-left: 8px;
  color: var(--gold-accent);
  font-size: 0.8em;
}

.nav-section ul {
  list-style: none;
}

.nav-section li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1004;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.03em;
}

.nav-link::before {
  content: '›';
  margin-right: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--gold-accent);
  font-weight: bold;
}

.nav-link:hover {
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, transparent 100%);
  color: var(--text-primary);
  transform: translateX(8px);
  border-left-color: var(--gold-accent);
}

.nav-link:hover::before {
  opacity: 1;
  margin-right: 12px;
}

.nav-link.active {
  background: linear-gradient(90deg, var(--gradient-primary) 0%, var(--bg-tertiary) 100%);
  color: var(--gold-accent);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.3), 0 4px 12px var(--shadow-medium);
  border-left-color: var(--gold-accent);
  border-left-width: 4px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link.active::before {
  opacity: 1;
  margin-right: 12px;
  content: '⚡';
}

/* Main Content Styles */
.main-content {
  flex: 1;
  margin-left: 320px;
  padding: 2rem 3rem;
  max-width: calc(100vw - 320px);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30 L30 0 M30 30 L60 30 M30 30 L0 30 M30 30 L30 60' stroke='%238b7355' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  position: relative;
  z-index: 1;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.content-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0;
  background: 
    linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(101, 67, 33, 0.9) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.1) 10px, rgba(212, 175, 55, 0.1) 20px);
  border: 4px solid var(--gold-accent);
  border-image: linear-gradient(45deg, var(--gold-accent), var(--border-color), var(--gold-accent)) 1;
  margin-bottom: 3rem;
  color: var(--gold-accent);
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    0 8px 25px var(--shadow-medium);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(184, 134, 11, 0.2) 0%, transparent 50%);
  z-index: 1;
}

.hero::after {
  content: '⚔ ⚜ ⚔';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-accent);
  font-size: 24px;
  letter-spacing: 20px;
  opacity: 0.5;
  z-index: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* Video Player Container */
.video-player-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.video-player {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: #000;
  transition: all 0.3s ease;
}

.video-player:hover {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.video-player video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  cursor: pointer;
}

/* Video Overlay Styles */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.4s ease;
  z-index: 20;
  backdrop-filter: blur(2px);
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 3rem;
  animation: fadeInUp 0.6s ease;
}

.overlay-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.overlay-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  color: #e2e8f0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8, #1e40af);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.play-button:hover::before {
  left: 100%;
}

.play-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
  background: linear-gradient(45deg, #2563eb, #1e40af, #1d4ed8);
}

.play-button:active {
  transform: translateY(-1px) scale(1.02);
}

.play-button i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.play-button:hover i {
  transform: scale(1.1);
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 15;
}

.video-player:hover .video-controls,
.video-controls.show {
  opacity: 1;
  transform: translateY(0);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.controls-row:last-child {
  margin-bottom: 0;
  justify-content: space-between;
}

/* Progress Bar */
.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.progress-bar:hover {
  height: 8px;
}

.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
}

.progress-handle {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

.time-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 80px;
}

.time-separator {
  opacity: 0.7;
}

/* Control Buttons */
.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Volume Controls */
.volume-container {
  position: relative;
  display: flex;
  align-items: center;
}

.volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
}

.volume-container:hover .volume-slider,
.volume-slider.active {
  width: 80px;
}

.volume-bar {
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}

.volume-filled {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 3px;
  width: 100%;
  transition: width 0.1s ease;
}

.volume-handle {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.volume-bar:hover .volume-handle {
  opacity: 1;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

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

.play-pause-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.play-pause-btn:hover {
  background: linear-gradient(45deg, #2563eb, #1e40af);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}



/* Loading Spinner */
.video-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-loading.show {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  font-size: 1rem;
  opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Responsive Design */
/* Medium screens - tablets */
@media (max-width: 768px) {
  .video-player-container {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    z-index: 10;
    position: relative;
  }
  
  .video-player {
    border-radius: 12px;
    width: 100%;
    height: auto;
    max-height: 80vh;
  }
  
  .video-player video {
    border-radius: 12px;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
  
  .overlay-content {
    padding: 2rem 1rem;
    z-index: 30;
  }
  
  .overlay-title {
    font-size: 2.5rem;
  }
  
  .overlay-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .play-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    gap: 0.75rem;
    z-index: 31;
    position: relative;
    touch-action: manipulation;
  }
  
  .play-button i {
    font-size: 1.2rem;
  }
  
  .video-overlay {
    z-index: 25;
  }
  
  .video-controls {
    padding: 1rem;
  }
  
  .controls-row {
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .control-btn {
    width: 36px;
    height: 36px;
  }
  
  .play-pause-btn {
    width: 42px;
    height: 42px;
  }
  
  .time-display {
    font-size: 0.8rem;
    min-width: 70px;
  }
  

}

@media (max-width: 480px) {
  .overlay-title {
    font-size: 2rem;
  }
  
  .overlay-subtitle {
    font-size: 1rem;
  }
  
  .play-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .video-controls {
    padding: 0.75rem;
    opacity: 1;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .controls-row {
    gap: 0.5rem;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .progress-bar {
    height: 8px;
  }
  
  .progress-handle {
    width: 16px;
    height: 16px;
    top: -4px;
  }
  
  .play-pause-btn {
    width: 38px;
    height: 38px;
  }
  
  .progress-bar {
    height: 4px;
  }
  
  .progress-bar:hover {
    height: 6px;
  }
  
  .time-display {
    font-size: 0.75rem;
    min-width: 60px;
  }
  
  /* Mobile volume controls */
  .volume-container:hover .volume-slider,
  .volume-slider.active {
    width: 60px;
  }
  
  .volume-bar {
    width: 50px;
    height: 8px;
  }
  
  .volume-handle {
    opacity: 1;
    width: 14px;
    height: 14px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .video-controls {
    opacity: 1;
    transform: translateY(0);
  }
  
  .control-btn {
    width: 44px;
    height: 44px;
  }
  
  .play-pause-btn {
    width: 52px;
    height: 52px;
  }
  
  .progress-bar {
    height: 8px;
  }
  
  .progress-handle {
    opacity: 1;
    width: 16px;
    height: 16px;
  }
  
  /* Touch volume controls */
   .volume-slider {
     width: 0;
   }
   
   .volume-slider.active {
     width: 70px;
   }
   
   .volume-bar {
     height: 8px;
     margin-top: 10px;
     margin-bottom: 10px;
   }
   
   .volume-handle {
     opacity: 1;
     width: 20px;
     height: 20px;
     top: 50%;
     transform: translateY(-50%);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
   }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .video-player {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }
  
  .play-button {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  }
}

/* Dark mode adjustments for video player */
[data-theme="dark"] .video-controls {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8), transparent);
}

[data-theme="dark"] .control-btn {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .video-controls {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
}

/* Accessibility improvements */
.control-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.progress-bar:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.volume-bar:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .video-player,
  .video-overlay,
  .video-controls,
  .control-btn,
  .play-button,
  .progress-filled,
  .volume-filled {
    transition: none;
  }
  
  .overlay-content {
    animation: none;
  }
  
  .loading-spinner {
    animation: none;
  }
  
  .play-button::before {
    transition: none;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #f0f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* Content Sections */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--gold-accent);
  font-family: 'Roboto', sans-serif;
  text-shadow: 
    2px 2px 0 var(--stone-gray),
    4px 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 3px double var(--gold-accent);
}

h1::before {
  content: '✦';
  margin-right: 15px;
  color: var(--gold-accent);
  font-size: 0.7em;
}

h1::after {
  content: '✦';
  margin-left: 15px;
  color: var(--gold-accent);
  font-size: 0.7em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-accent);
  font-family: 'Roboto', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.03em;
  border-left: 4px solid var(--gold-accent);
  padding-left: 1rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 1.5rem;
}

h3::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-size: 1em;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text-accent);
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Greendale3 Introduction Section */
.greendale3-intro-section {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--parchment-bg) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.05) 2px, rgba(139, 69, 19, 0.05) 4px);
  padding: 2.5rem;
  border: 4px solid var(--border-color);
  border-image: linear-gradient(45deg, var(--gold-accent), var(--border-color), var(--gold-accent)) 1;
  margin: 2rem 0;
  box-shadow: 
    0 8px 20px var(--shadow-medium),
    inset 0 0 50px rgba(212, 175, 55, 0.1);
  position: relative;
}

.greendale3-intro-section::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  padding: 0 20px;
  color: var(--gold-accent);
  font-size: 20px;
  letter-spacing: 10px;
}

.greendale3-intro-section h1 {
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  text-shadow: 
    2px 2px 0 var(--stone-gray),
    4px 4px 8px rgba(0, 0, 0, 0.5);
}

.greendale3-intro-section p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-align: justify;
  text-indent: 2em;
  font-family: 'Roboto', sans-serif;
}

.greendale3-intro-section p:first-of-type::first-letter {
  font-size: 3em;
  font-weight: bold;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--gold-accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section {
  background: var(--gradient-primary);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-section strong {
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 250px;
  text-align: center;
}

.cta-button.primary {
  background: white;
  color: var(--text-accent);
  border: 2px solid white;
}

.cta-button.primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cta-button {
    min-width: 200px;
  }
}

/* Feature Grid */
.feature-grid, .features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 1.5rem;
  border: 3px solid var(--border-color);
  border-image: linear-gradient(135deg, var(--border-color), var(--gold-accent)) 1;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 6px var(--shadow-light),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--gold-accent) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.feature-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 8px 15px var(--shadow-medium),
    inset 0 0 30px rgba(212, 175, 55, 0.2);
  border-image: linear-gradient(135deg, var(--gold-accent), var(--border-color)) 1;
}

.feature-item h3 {
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-light);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.feature-card i {
  font-size: 2.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Game Details */
.game-details {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  padding: 2rem;
  border: 4px double var(--gold-accent);
  margin: 2rem 0;
  box-shadow: 
    0 8px 20px var(--shadow-medium),
    inset 0 0 40px rgba(212, 175, 55, 0.1);
  position: relative;
}

.game-details::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

.game-details::after {
  content: '⚜';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  padding: 0 20px;
  font-size: 24px;
  color: var(--gold-accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.exchange-rates, .bomb-levels, .prize-tiers {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.rate-item, .burn-item, .reward-item, .score-item, .allocation-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.level, .tier {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
}

.tier.bronze { border-left: 4px solid #cd7f32; }
.tier.silver { border-left: 4px solid #c0c0c0; }
.tier.gold { border-left: 4px solid #ffd700; }
.tier.diamond { border-left: 4px solid #b9f2ff; }

/* Vision and Development */
.vision-statement {
  font-size: 1.25rem;
  text-align: center;
  padding: 2rem;
  background: var(--gradient-secondary);
  color: white;
  border-radius: 16px;
  margin: 2rem 0;
  font-weight: 500;
}

.vision-pillars, .development-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pillar, .timeline-item {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.pillar:hover, .timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Staking and Referral */
.staking-options, .referral-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.staking-option, .referral-tier {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

/* Staking Image Styles */
.staking-image-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.staking-image {
  max-width: 60%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow-medium);
  transition: transform 0.3s ease;
}

.staking-image:hover {
  transform: scale(1.02);
}

/* Referral Image Styles */
.referral-image-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.referral-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow-medium);
  transition: transform 0.3s ease;
}

.referral-image:hover {
  transform: scale(1.02);
}

/* Referral Diagram Styles */
.referral-diagram {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.diagram-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.diagram-step {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  text-align: center;
  min-width: 150px;
  transition: all 0.3s ease;
}

.diagram-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.diagram-arrow {
  font-size: 1.5rem;
  color: var(--text-accent);
  font-weight: bold;
}

/* Reward Breakdown Styles */
.reward-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.reward-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.reward-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-light);
}

.reward-item h4 {
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

/* Benefits Grid Styles */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.benefit-item h4 {
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

/* Referral Conclusion Styles */
.referral-conclusion {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--gradient-accent);
  border-radius: 12px;
  color: white;
  text-align: center;
}

.referral-conclusion p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Mobile Responsiveness for Referral System */
@media (max-width: 768px) {
  .diagram-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .diagram-arrow {
    transform: rotate(90deg);
  }
  
  .reward-breakdown,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Q&A Section */
.qa-item {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 1.5rem;
  border: 3px solid var(--border-color);
  border-left: 5px solid var(--gold-accent);
  margin: 1rem 0;
  box-shadow: 
    0 4px 12px var(--shadow-light),
    inset 0 0 20px rgba(212, 175, 55, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.qa-item::before {
  content: '❓';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  opacity: 0.2;
  color: var(--gold-accent);
}

.qa-item:hover {
  transform: translateX(8px);
  box-shadow: 
    0 6px 18px var(--shadow-medium),
    inset 0 0 30px rgba(212, 175, 55, 0.1);
  border-left-width: 8px;
}

.qa-item h3 {
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
  font-family: 'Roboto', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* NFT Section */
.nft-showcase {
  display: block;
  margin: 2rem 0;
}

.nft-card {
  background: var(--gradient-primary);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  color: white;
  max-width: 300px;
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.nft-image {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.benefit-item {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* EPIC69 Features */
.epic69-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.epic-feature {
  background: var(--gradient-accent);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Economics */
.tokenomics {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

.token-allocation h4 {
  margin-bottom: 1rem;
  text-align: center;
}

.coming-soon-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  margin: 1rem 0;
}

.coming-soon-notice span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-style: italic;
}

/* Roadmap */
.roadmap-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: 'Roboto', sans-serif;
  position: relative;
  padding-bottom: 1rem;
}

.roadmap-intro::after {
  content: '⚔';
  display: block;
  margin-top: 1rem;
  color: var(--gold-accent);
  font-size: 1.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.roadmap {
  position: relative;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 4px;
  background: 
    repeating-linear-gradient(
      0deg,
      var(--gold-accent) 0px,
      var(--gold-accent) 10px,
      var(--border-color) 10px,
      var(--border-color) 20px
    );
  box-shadow: 
    0 0 10px rgba(212, 175, 55, 0.5),
    inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.roadmap-item {
  display: flex;
  margin: 4rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  transform: translateY(-5px);
}

.roadmap-item::before {
  content: '⬥';
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg-secondary);
  border: 3px solid var(--gold-accent);
  z-index: 1;
  box-shadow: 
    0 0 0 5px rgba(212, 175, 55, 0.2),
    0 0 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 1.2em;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

.roadmap-item.completed::before {
  content: '✓';
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--border-color) 100%);
  border-color: var(--gold-accent);
  box-shadow: 
    0 0 0 5px rgba(212, 175, 55, 0.3),
    0 0 20px rgba(212, 175, 55, 0.6);
  color: var(--wood-dark);
  font-weight: bold;
}

.roadmap-item.active::before {
  content: '⚡';
  background: linear-gradient(135deg, var(--gold-accent) 0%, #ffd700 100%);
  border-color: var(--gold-accent);
  box-shadow: 
    0 0 0 5px rgba(255, 215, 0, 0.3),
    0 0 25px rgba(255, 215, 0, 0.6);
  animation: pulse 2s infinite;
  color: var(--wood-dark);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 87, 108, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 87, 108, 0);
  }
}

.roadmap-date {
  min-width: 120px;
  font-weight: 700;
  color: var(--gold-accent);
  padding: 1rem 2rem 1rem 4rem;
  font-size: 1.2rem;
  font-family: 'Roboto', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
}

.roadmap-content {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 2rem;
  border: 3px solid var(--border-color);
  border-image: linear-gradient(135deg, var(--gold-accent), var(--border-color)) 1;
  flex: 1;
  margin-left: 2rem;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.roadmap-content::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--border-color);
  pointer-events: none;
  opacity: 0.3;
}

.roadmap-item:hover .roadmap-content {
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(212, 175, 55, 0.2);
  border-image: linear-gradient(135deg, var(--border-color), var(--gold-accent)) 1;
}

.roadmap-status {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Roboto', sans-serif;
  border: 2px solid;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.roadmap-item .roadmap-status {
  background: rgba(139, 115, 85, 0.2);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.roadmap-item.completed .roadmap-status {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(184, 134, 11, 0.3) 100%);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.roadmap-item.active .roadmap-status {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(212, 175, 55, 0.3) 100%);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
}

.roadmap-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.roadmap-content ul {
  list-style: none;
}

.roadmap-content li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 2rem;
  transition: all 0.3s ease;
}

.roadmap-content li:hover {
  transform: translateX(5px);
}

.checkmark {
  color: #4facfe;
  font-weight: bold;
  margin-right: 0.5rem;
}

.roadmap-content li.upcoming {
  color: var(--text-secondary);
}

.roadmap-content li.upcoming::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

/* Social Media Section */
.social-section {
  margin-top: 4rem;
  padding: 3rem 0;
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 4px double var(--gold-accent);
  box-shadow: 
    0 8px 25px var(--shadow-medium),
    inset 0 0 40px rgba(212, 175, 55, 0.1);
  position: relative;
}

.social-section::before {
  content: '⚔ Connect With Our Kingdom ⚔';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  padding: 0 30px;
  color: var(--gold-accent);
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.social-container {
  text-align: center;
}

.social-container h2 {
  color: var(--gold-accent);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--border-color) 100%);
  color: var(--wood-dark);
  text-decoration: none;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px var(--shadow-medium),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid var(--gold-accent);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px var(--shadow-medium),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--border-color) 0%, var(--gold-accent) 100%);
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--text-accent);
  color: white;
}

.close-menu {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1004;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Design */
/* Large screens */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    margin-left: 280px;
    max-width: calc(100vw - 280px);
    padding: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-menu {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .sidebar {
    width: 85%;
    max-width: 320px;
    position: fixed;
    left: -100%;
    height: 100vh;
    z-index: 1003;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 3rem;
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 1rem;
  }
  
  .content-section {
    padding: 1.5rem 0;
  }
  
  .greendale3-intro-section {
    padding: 1rem;
  }
  
  .features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero {
    padding: 1rem;
  }
  
  .intro-video {
    max-width: 100%;
    margin: 0;
  }
  
  .intro-video video {
    border-radius: 8px;
  }
  
  .logo-img {
    width: 60px;
    height: 60px;
  }
  
  .overlay-title {
    font-size: 2rem;
  }
  
  .overlay-subtitle {
    font-size: 1rem;
  }
  
  .play-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .overlay-content {
    padding: 1.5rem;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  
  .social-link {
    width: 200px;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.25rem;
  }
  
  .roadmap::before {
    left: 1rem;
  }
  
  .roadmap-item {
    flex-direction: column;
    margin: 3rem 0;
  }
  
  .roadmap-item::before {
    left: 0.25rem;
    top: 0.75rem;
  }
  
  .roadmap-date {
    padding: 0.5rem 0 0.5rem 2rem;
    font-size: 1rem;
  }
  
  .roadmap-content {
    margin-left: 0;
    margin-top: 0.5rem;
    padding: 1.5rem;
  }
  
  .roadmap-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .roadmap-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
  }
  
  .roadmap-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* Extra small screens - small mobile phones */
@media (max-width: 480px) {
  .main-content {
    padding: 0.75rem;
  }
  
  .content-section h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .content-section h2 {
    font-size: 1.3rem;
  }
  
  .content-section h3 {
    font-size: 1.1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .greendale3-intro-section h1 {
    font-size: 1.5rem;
  }
  
  .greendale3-intro-section p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .video-controls {
    padding: 0.5rem;
  }
  
  .control-btn {
    width: 30px;
    height: 30px;
  }
  
  .social-link {
    width: 90%;
    max-width: 300px;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .social-section {
    padding: 1rem;
    margin-top: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-left: 2px solid var(--border-color);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-accent) 0%, var(--border-color) 100%);
  border: 2px solid var(--border-color);
  box-shadow: 
    inset 0 0 6px rgba(255, 255, 255, 0.3),
    0 0 8px rgba(212, 175, 55, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--border-color) 0%, var(--gold-accent) 100%);
  box-shadow: 
    inset 0 0 6px rgba(255, 255, 255, 0.4),
    0 0 12px rgba(212, 175, 55, 0.6);
}

/* Medieval scrollbar corners */
::-webkit-scrollbar-corner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.p-2 {
  padding: 2rem;
}

/* World Image Styles */
.world-image-container {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.world-image {
  max-width: 80%;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
}

.world-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Responsive adjustments for world image */
@media (max-width: 768px) {
  .world-image-container {
    margin: 1rem 0;
    padding: 0.5rem;
  }
  
  .world-image {
    max-width: 90%;
    max-height: 300px;
  }
}

/* Inventory Image Styles */
.inventory-image-container {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.inventory-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Inventory Sections Styles */
.inventory-sections {
  margin-top: 3rem;
  padding: 2rem 0;
}

.inventory-sections h3 {
  color: #00ff88;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.inventory-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.inventory-btn {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 3px solid var(--border-color);
  border-image: linear-gradient(45deg, var(--gold-accent), var(--border-color)) 1;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px var(--shadow-light),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.inventory-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s ease;
}

.inventory-btn:hover::before {
  left: 100%;
}

.inventory-btn:hover {
  background: 
    linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-image: linear-gradient(45deg, var(--border-color), var(--gold-accent)) 1;
  transform: translateY(-4px);
  box-shadow: 
    0 8px 25px var(--shadow-medium),
    inset 0 0 30px rgba(212, 175, 55, 0.2);
}

.inventory-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 15px var(--shadow-light),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.btn-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.btn-content {
  text-align: left;
  flex-grow: 1;
}

.btn-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--gold-accent);
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {
  .inventory-image-container {
    margin: 1rem 0;
    padding: 0.5rem;
  }
  
  .inventory-image {
    max-width: 90%;
    max-height: 300px;
  }
  
  .inventory-sections {
    margin-top: 2rem;
    padding: 1rem 0;
  }
  
  .inventory-btn {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .btn-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  
  .btn-content {
    text-align: center;
  }
  
  .inventory-buttons {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .crafting-flow {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }
  
  .ranking-systems {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}

/* Inventory Modal Styles */
.inventory-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.inventory-modal-content {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px var(--shadow-medium);
  border: 1px solid var(--border-color);
  animation: slideIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close-modal:hover {
  color: var(--text-primary);
}

.inventory-modal h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
}

.inventory-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.inventory-detail-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.inventory-instructions h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.instructions-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow-light);
}

.instructions-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.instructions-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Hotbar diagram styles */
.hotbar-diagram {
  margin: 1.5rem 0;
  text-align: center;
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.hotbar-diagram pre {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  background: none;
  padding: 0;
}

.diagram-label {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.instructions-table tr:last-child td {
  border-bottom: none;
}

.instructions-table tr:hover {
  background-color: var(--bg-tertiary);
  transition: background-color 0.2s ease;
}

.instructions-table td:nth-child(2) {
  font-family: 'Courier New', monospace;
  background-color: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-accent);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  .inventory-modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .inventory-display {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .inventory-detail-image {
    max-width: 100%;
  }
  
  .instructions-table {
    font-size: 0.9rem;
  }
  
  .instructions-table th,
  .instructions-table td {
    padding: 0.5rem;
  }
}

/* Main Inventory Modal Styles */
.main-inventory-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.functions-list ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.functions-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  transition: background-color 0.2s ease;
}

.functions-list li:hover {
  background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
  padding-left: 0.5rem;
  border-radius: 4px;
}

.item-flow-diagram {
  background: var(--code-bg, #f8f9fa);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color, #e0e0e0);
}

.flow-ascii {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 0.5rem 0;
  padding: 1rem;
  background: var(--bg-secondary, #ffffff);
  border-radius: 4px;
  border: 1px solid var(--border-light, #f0f0f0);
  overflow-x: auto;
  white-space: pre;
}

.step-by-step ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.step-by-step li {
  margin: 0.75rem 0;
  line-height: 1.5;
}

.controls-info {
  margin-top: 1rem;
}

.main-inventory-content h4 {
  color: var(--text-primary, #333);
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color, #007bff);
  padding-bottom: 0.25rem;
  display: inline-block;
}

/* Dark theme adjustments for main inventory */
[data-theme="dark"] .functions-list li {
  border-bottom-color: #444;
}

[data-theme="dark"] .functions-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .item-flow-diagram {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .flow-ascii {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

[data-theme="dark"] .main-inventory-content h4 {
  color: #e0e0e0;
}

/* Responsive adjustments for main inventory */
@media (max-width: 768px) {
  .main-inventory-content {
    gap: 1rem;
  }
  
  .flow-ascii {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
  
  .functions-list li {
    padding: 0.4rem 0;
  }
  
  .step-by-step li {
    margin: 0.5rem 0;
  }
}

/* Marketplace Styles */
.marketplace-image-container {
    text-align: center;
    margin: 2rem 0;
}

.marketplace-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flow-diagram {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.flow-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    color: #495057;
    white-space: pre;
    overflow-x: auto;
}

/* Dark theme support for marketplace */
@media (prefers-color-scheme: dark) {
    .flow-diagram {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .flow-ascii {
        color: #e2e8f0;
    }
}

/* Recipe Styles */
.recipe-image-container {
    text-align: center;
    margin: 2rem 0;
}

.recipe-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.category-item h3 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-item ul {
    list-style: none;
    padding: 0;
}

.category-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.category-item li:last-child {
    border-bottom: none;
}

.category-item li strong {
    color: var(--text-accent);
    font-weight: 600;
}

.crafting-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.flow-step {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.flow-step h4 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.flow-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Dark theme support for recipe */
[data-theme="dark"] .recipe-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Leaderboard Styles */
.leaderboard-image-container {
    text-align: center;
    margin: 2rem 0;
}

.leaderboard-image {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.ranking-systems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ranking-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.ranking-item h4 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.ranking-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.xp-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.activity-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: 
    0 4px 12px var(--shadow-medium),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
  border: 3px solid var(--border-color);
}

.activity-table th {
  background: linear-gradient(135deg, var(--wood-dark) 0%, var(--stone-gray) 100%);
  color: var(--gold-accent);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 3px solid var(--gold-accent);
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.activity-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
}

.activity-table tr:last-child td {
  border-bottom: none;
}

.activity-table tr:hover {
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.activity-table td:first-child {
  font-weight: 700;
  color: var(--gold-accent);
  border-left: 3px solid var(--gold-accent);
}

/* Under Development Badge */
.under-development-badge {
    display: inline-block;
    background: #000000;
    color: white;
    font-size: 0.7em;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    margin-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: pulse 2s infinite;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    vertical-align: middle;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dark theme support for leaderboard */
[data-theme="dark"] .leaderboard-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .under-development-badge {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* NFT Introduction Styles */
.nft-introduction {
  background: rgba(139, 69, 19, 0.1);
  border: 2px solid #8B4513;
  border-radius: 10px;
  padding: 25px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
}

.nft-introduction p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #2F4F2F;
}

.nft-introduction ul {
  margin: 15px 0;
  padding-left: 20px;
}

.nft-introduction li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #2F4F2F;
}

.nft-introduction strong {
  color: #8B4513;
}

/* Ingame Items Introduction Styles */
.ingame-items-introduction {
    background: linear-gradient(135deg, #2d5016, #3d6b1f);
    border: 2px solid #4a7c23;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    font-family: 'Orbitron', monospace;
    color: #e8f5e8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ingame-items-introduction p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.ingame-items-introduction ul {
    margin: 15px 0;
    padding-left: 20px;
}

.ingame-items-introduction li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ingame-items-introduction strong {
    color: #90ee90;
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.3);
}

/* Pickup Gallery Styles */
.pickup-gallery {
    margin: 30px 0;
}

.pickup-category {
    margin-bottom: 40px;
    background: rgba(45, 80, 22, 0.3);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #4a7c23;
}

.pickup-category h3 {
    color: var(--gold-accent);
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 
      2px 2px 0 var(--stone-gray),
      4px 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

.pickup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.pickup-item {
    background: 
      linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 3px solid var(--border-color);
    border-image: linear-gradient(45deg, var(--gold-accent), var(--border-color)) 1;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
      0 4px 10px var(--shadow-light),
      inset 0 0 15px rgba(212, 175, 55, 0.1);
    position: relative;
}

.pickup-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--border-color);
    opacity: 0.3;
    pointer-events: none;
}

.pickup-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
      0 12px 30px var(--shadow-medium),
      inset 0 0 25px rgba(212, 175, 55, 0.2),
      0 0 20px rgba(212, 175, 55, 0.4);
    border-image: linear-gradient(45deg, var(--border-color), var(--gold-accent)) 1;
}

.pickup-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.pickup-item:hover .pickup-image {
    transform: scale(1.1);
}

.pickup-item p {
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

/* NFT Grid Styles */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem;
  margin: 2rem 0;
}

.nft-item {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 1rem;
  border: 4px solid var(--border-color);
  border-image: linear-gradient(45deg, var(--gold-accent), var(--border-color), var(--gold-accent)) 1;
  transition: all 0.3s ease;
  box-shadow: 
    0 6px 15px var(--shadow-medium),
    inset 0 0 25px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.nft-item::before {
  content: '⚜';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: var(--gold-accent);
  opacity: 0.2;
  transition: all 0.3s ease;
}

.nft-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 
    0 12px 35px var(--shadow-medium),
    inset 0 0 40px rgba(212, 175, 55, 0.2),
    0 0 30px rgba(212, 175, 55, 0.3);
  border-image: linear-gradient(45deg, var(--border-color), var(--gold-accent), var(--border-color)) 1;
}

.nft-item:hover::before {
  opacity: 0.4;
  transform: rotate(20deg) scale(1.2);
}

.nft-image {
  width: 100%;
  height: auto;
  border: 2px solid var(--gold-accent);
  object-fit: cover;
  aspect-ratio: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.nft-item:hover .nft-image {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
  .nft-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .nft-item {
    padding: 0.75rem;
  }
  
  .nft-introduction {
    padding: 20px;
    margin: 15px 0;
  }
  
  .vision-pillars, 
  .development-timeline, 
  .staking-options, 
  .referral-tiers,
  .benefits-grid,
  .benefits-list,
  .epic69-features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }
  
  .pillar, 
  .timeline-item, 
  .staking-option, 
  .referral-tier,
  .benefit-item,
  .epic-feature {
    padding: 1.25rem;
  }
  
  .staking-image,
  .referral-image,
  .leaderboard-image {
    max-width: 80%;
  }
  
  .tool-categories {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .category-item {
    padding: 1.25rem;
  }
  
  .feature-grid,
  .features-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pickup-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .pickup-item {
    padding: 10px;
  }
  
  .pickup-image {
    width: 48px;
    height: 48px;
  }
  
  .pickup-item p {
    font-size: 10px;
  }
  
  .vision-pillars, 
  .development-timeline, 
  .staking-options, 
  .referral-tiers,
  .benefits-grid,
  .benefits-list,
  .epic69-features {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }
  
  .pillar, 
  .timeline-item, 
  .staking-option, 
  .referral-tier,
  .benefit-item,
  .epic-feature {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .pillar h3,
  .timeline-item h3,
  .staking-option h3,
  .referral-tier h3,
  .benefit-item h3,
  .epic-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .inventory-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .inventory-btn {
    padding: 0.75rem;
  }
  
  .btn-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .btn-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .btn-content p {
    font-size: 0.8rem;
  }
  
  .crafting-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .flow-step {
    padding: 1rem;
  }
  
  .flow-step h4 {
    font-size: 1rem;
  }
  
  .flow-step p {
    font-size: 0.85rem;
  }
  
  .ranking-systems {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ranking-item {
    padding: 1rem;
  }
  
  .tool-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-item {
    padding: 1rem;
  }
  
  .category-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .category-item p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .category-item li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
  }
  
  .feature-grid,
  .features-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .feature-item p {
    font-size: 0.85rem;
  }
  
  .ranking-item h4 {
    font-size: 1rem;
  }
  
  .ranking-item p {
    font-size: 0.85rem;
  }
}

/* Terms of Service Styles */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
}

.terms-section {
  background: 
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--parchment-bg) 100%);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 3px solid var(--border-color);
  border-image: linear-gradient(45deg, var(--gold-accent), var(--border-color), var(--gold-accent)) 1;
  box-shadow: 
    0 6px 18px var(--shadow-medium),
    inset 0 0 30px rgba(212, 175, 55, 0.08);
  position: relative;
}

.terms-section::before {
  content: '§';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  color: var(--gold-accent);
  opacity: 0.1;
  font-family: 'Roboto', sans-serif;
}

.terms-section h2 {
  color: var(--gold-accent);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-accent);
  font-family: 'Roboto', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.terms-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
}

.terms-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.terms-list li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
  font-family: 'Roboto', sans-serif;
}

.terms-list li::before {
  content: '◆';
  color: var(--gold-accent);
  font-weight: bold;
  position: absolute;
  left: 0.5rem;
}

.terms-footer {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  padding: 2rem;
  border: 3px double var(--gold-accent);
  margin-top: 2rem;
  text-align: center;
  box-shadow: 
    0 6px 18px var(--shadow-medium),
    inset 0 0 25px rgba(212, 175, 55, 0.1);
}

.terms-footer p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.terms-footer strong {
  color: var(--gold-accent);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Terms Styles */
@media (max-width: 768px) {
  .terms-content {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .terms-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.3rem;
  }
  
  .terms-list li {
    padding-left: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
  
  .theme-toggle {
    display: none;
  }
  
  .inventory-modal {
    display: none;
  }
}