@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=MedievalSharp&family=Uncial+Antiqua&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');

:root {
  --parchment: #F4E4BC;
  --parchment-dark: #E8D5A3;
  --parchment-shadow: #D4C19A;
  --gold: #FFD700;
  --gold-dark: #DAA520;
  --bronze: #CD7F32;
  --steel: #4682B4;
  --emerald: #50C878;
  --ruby: #E0115F;
  --sapphire: #0F52BA;
  --dark-wood: #3E2723;
  --leather: #8B4513;
  --ink: #1A1A1A;
  --quest-bg: #0F0A1A;
  --quest-accent: #4A148C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', serif;
  background: var(--quest-bg);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Treasure Map Background - Light Parchment Map Style */
.adventure-map-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    /* Light parchment base - very light beige */
    #FEF9E7,
    /* Light blue ocean/water - soft and light */
    linear-gradient(135deg, 
      rgba(173, 216, 230, 0.35) 0%, 
      rgba(135, 206, 235, 0.3) 25%,
      rgba(176, 224, 230, 0.25) 50%, 
      rgba(135, 206, 235, 0.3) 75%,
      rgba(173, 216, 230, 0.35) 100%
    ),
    /* Yellow sand beaches - light yellow */
    radial-gradient(ellipse 1400px 950px at 50% 50%, 
      rgba(255, 248, 220, 0.6) 0%, 
      rgba(255, 245, 200, 0.4) 18%,
      rgba(255, 248, 220, 0.2) 25%,
      transparent 32%
    ),
    /* Main Island - Light green, visible but not dark */
    radial-gradient(ellipse 1200px 800px at 50% 50%, 
      rgba(144, 238, 144, 0.85) 0%, 
      rgba(124, 252, 0, 0.8) 5%,
      rgba(50, 205, 50, 0.75) 12%,
      rgba(34, 139, 34, 0.7) 20%,
      rgba(46, 125, 50, 0.6) 28%,
      rgba(56, 142, 60, 0.45) 38%,
      rgba(76, 175, 80, 0.3) 48%,
      transparent 62%
    ),
    /* Island shape extension top-right */
    radial-gradient(ellipse 400px 300px at 70% 25%, 
      rgba(144, 238, 144, 0.7) 0%, 
      rgba(50, 205, 50, 0.5) 30%,
      transparent 50%
    ),
    /* Island shape extension bottom-left */
    radial-gradient(ellipse 350px 250px at 25% 75%, 
      rgba(144, 238, 144, 0.7) 0%, 
      rgba(50, 205, 50, 0.5) 30%,
      transparent 50%
    ),
    /* Lake/Pond on island - light blue */
    radial-gradient(ellipse 220px 170px at 25% 70%, 
      rgba(173, 216, 230, 0.6) 0%, 
      rgba(135, 206, 235, 0.4) 35%,
      transparent 55%
    ),
    /* Very subtle parchment texture */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 4px,
      rgba(139, 69, 19, 0.02) 4px,
      rgba(139, 69, 19, 0.02) 6px
    ),
    /* Light aged spots */
    radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.05) 0%, rgba(139, 69, 19, 0.02) 20%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.04) 0%, rgba(139, 69, 19, 0.02) 18%, transparent 35%);
  background-size: 
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    20px 20px,
    100% 100%, 100% 100%;
  animation: mapPulse 20s ease-in-out infinite;
  border: 30px solid #D2B48C;
  border-radius: 0;
  box-shadow: 
    inset 0 0 50px rgba(0, 0, 0, 0.03),
    inset 0 0 20px rgba(139, 69, 19, 0.02),
    0 0 40px rgba(0, 0, 0, 0.2),
    /* Light rolled scroll edges */
    inset -15px 0 20px rgba(0, 0, 0, 0.08),
    inset 15px 0 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Scroll curl effect */
.adventure-map-bg::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, transparent 50%);
  border-radius: 5px;
  pointer-events: none;
  z-index: -1;
}

@keyframes mapPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

.map-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    /* Light map grid lines */
    linear-gradient(rgba(139, 69, 19, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 69, 19, 0.15) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px;
  opacity: 0.4;
  pointer-events: none;
}

.map-paths {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Island Paths - Light brown paths */
.map-paths::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    /* Main path across main island - light brown */
    radial-gradient(ellipse 1000px 200px at 50% 50%, transparent 0%, rgba(139, 69, 19, 0.5) 2%, rgba(139, 69, 19, 0.6) 5%, rgba(139, 69, 19, 0.5) 8%, transparent 12%),
    /* Path to treasure 1 */
    radial-gradient(ellipse 500px 150px at 35% 45%, transparent 0%, rgba(139, 69, 19, 0.45) 2%, rgba(139, 69, 19, 0.55) 5%, rgba(139, 69, 19, 0.45) 8%, transparent 11%),
    /* Path to treasure 2 */
    radial-gradient(ellipse 600px 180px at 65% 55%, transparent 0%, rgba(139, 69, 19, 0.45) 2%, rgba(139, 69, 19, 0.55) 5%, rgba(139, 69, 19, 0.45) 8%, transparent 11%);
  animation: pathGlow 15s ease-in-out infinite;
  opacity: 0.7;
}

/* Dotted island paths - more visible on green */
.map-paths::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    /* Dotted path on main island - darker for green background */
    repeating-linear-gradient(
      35deg,
      transparent,
      transparent 15px,
      rgba(101, 67, 33, 0.8) 15px,
      rgba(101, 67, 33, 0.8) 19px
    ),
    /* Dotted path connecting areas */
    repeating-linear-gradient(
      -25deg,
      transparent,
      transparent 18px,
      rgba(101, 67, 33, 0.7) 18px,
      rgba(101, 67, 33, 0.7) 22px
    );
  background-size: 400px 3px, 350px 3px;
  background-position: 40% 50%, 60% 50%;
  opacity: 0.85;
}

@keyframes pathGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* Treasure Markers (Red X marks the spot) */
.treasure-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  font-size: 2.5rem;
  color: #DC143C;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(220, 20, 60, 0.6);
  animation: treasurePulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  font-weight: bold;
}

.treasure-marker::before {
  content: '❌';
  position: absolute;
  font-size: 3rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
  color: #DC143C;
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(10deg); }
}

/* Compass Points */
.compass-point {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #8B4513;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

/* Grass tufts */
.grass-tuft {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
}

/* Treasure chest icon */
.treasure-chest-icon {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

@keyframes treasurePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Compass Rose - More Visible */
.compass-rose {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 100px;
  height: 100px;
  font-size: 4rem;
  color: var(--leather);
  opacity: 0.8;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
  animation: compassRotate 20s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.compass-rose::before {
  content: '🧭';
  position: absolute;
  font-size: 4.5rem;
}

@keyframes compassRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Map Landmarks - Visible but not dark */
.map-landmark {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.85;
  pointer-events: none;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.landmark-mountain {
  top: 35%;
  left: 30%;
  font-size: 3.5rem;
}

.landmark-palm {
  top: 50%;
  left: 25%;
  font-size: 3rem;
}

.landmark-ship {
  top: 30%;
  left: 70%;
  font-size: 3.5rem;
}

.landmark-castle {
  top: 40%;
  left: 60%;
  font-size: 3rem;
}

/* Floating Adventure Elements */
.floating-elements {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-coin, .floating-gem, .floating-star, .floating-sword {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: floatAround 20s infinite;
}

.floating-coin {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-gem {
  top: 30%;
  right: 15%;
  animation-delay: 5s;
}

.floating-star {
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

.floating-sword {
  top: 60%;
  right: 10%;
  animation-delay: 15s;
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(-30px, -100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
}

/* Quest Navigation */
.quest-nav {
  position: relative;
  z-index: 100;
  background: linear-gradient(180deg, rgba(15, 10, 26, 0.95) 0%, rgba(15, 10, 26, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 5px 30px rgba(255, 215, 0, 0.3);
  padding: 15px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.quest-logo {
  position: relative;
}

.logo-frame {
  position: relative;
  padding: 5px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.logo-frame img {
  height: 50px;
  display: block;
  border-radius: 4px;
}

.logo-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--gold);
  border-radius: 8px;
  opacity: 0;
  filter: blur(10px);
  animation: logoPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.quest-menu {
  display: flex;
  gap: 20px;
}

.quest-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.quest-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.quest-link:hover::before,
.quest-link.active::before {
  opacity: 0.2;
}

.quest-link:hover,
.quest-link.active {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.link-icon {
  font-size: 1.2rem;
}

.quest-actions {
  display: flex;
  gap: 15px;
}

.btn-quest {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-enter {
  background: linear-gradient(135deg, var(--steel) 0%, #2E5A8A 100%);
  color: white;
  border: 2px solid var(--steel);
}

.btn-enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(70, 130, 180, 0.5);
}

.btn-begin {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-begin:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.btn-icon {
  font-size: 1.1rem;
}

/* Main Content */
.quest-main {
  position: relative;
  z-index: 10;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.main-layout {
  display: grid;
  grid-template-columns: 350px 1fr 320px;
  gap: 30px;
  align-items: start;
}

.main-content-area {
  width: 100%;
}

/* Games Sidebar - Scroll Quest Design */
.games-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Pirate Casino Games Sidebar (Right) */
.pirate-games-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.pirate-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.98) 0%, rgba(232, 213, 163, 0.98) 100%);
  border: 8px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 
    0 10px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.pirate-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.05) 2px,
      rgba(139, 69, 19, 0.05) 4px
    );
  pointer-events: none;
  z-index: 0;
}

.pirate-panel::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(5px);
}

.pirate-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--parchment-shadow);
}

.pirate-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  animation: pirateFloat 3s ease-in-out infinite;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pirateFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.pirate-title {
  font-family: 'Uncial Antiqua', cursive;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.pirate-subtitle {
  color: var(--leather);
  font-size: 0.95rem;
  font-style: italic;
}

.pirate-games-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.pirate-game-card {
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.pirate-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pirate-game-card:hover::before {
  opacity: 1;
}

.pirate-game-card:hover {
  transform: translateX(-5px);
  border-color: var(--gold);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.game-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.game-info {
  flex: 1;
  min-width: 0;
}

.game-info h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.game-info p {
  font-size: 0.8rem;
  color: var(--leather);
  margin-bottom: 6px;
}

.game-badge {
  display: inline-block;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

.play-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gold-dark);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.pirate-cta {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--gold);
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.treasure-chest-mini {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: chestBounce 2s ease-in-out infinite;
}

@keyframes chestBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.1); }
}

.pirate-cta p {
  color: var(--leather);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.pirate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid var(--gold-dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.pirate-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

/* Game Play Area */
.game-play-area {
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.8);
  border: 4px solid var(--gold);
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
  position: relative;
  z-index: 1;
}

.game-play-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-bottom: 3px solid var(--gold-dark);
  border-radius: 15px 15px 0 0;
}

.game-play-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--quest-bg);
  margin: 0;
  font-weight: 700;
}

.close-game-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-game-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: rotate(90deg);
}

.game-play-content {
  padding: 25px;
  min-height: 300px;
}

.game-loader {
  text-align: center;
  padding: 40px 20px;
}

.loader-icon {
  font-size: 4rem;
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 15px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Game Interface */
.game-interface {
  width: 100%;
}

.game-demo-notice {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.notice-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.game-demo-notice h5 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.game-demo-notice p {
  color: var(--leather);
  font-size: 0.95rem;
  line-height: 1.6;
}

.game-canvas {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--parchment-shadow);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slot Machine */
.slot-machine {
  width: 100%;
  text-align: center;
}

.slot-reels {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.slot-reel {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 4px solid var(--gold-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.slot-result {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
  padding: 15px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 10px;
}

/* Blackjack Table */
.blackjack-table {
  width: 100%;
  text-align: center;
}

.dealer-hand, .player-hand {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.card {
  width: 60px;
  height: 90px;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.blackjack-result {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  padding: 15px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 10px;
}

/* Roulette Wheel */
.roulette-wheel {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  border: 8px solid var(--gold-dark);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-center {
  font-size: 4rem;
  z-index: 2;
}

.roulette-numbers {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.number {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 5px 10px;
  border-radius: 5px;
}

.number.red {
  background: #DC143C;
  color: white;
}

.number.black {
  background: #000;
  color: white;
}

.roulette-result {
  margin-top: 20px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  padding: 15px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 10px;
}

/* Baccarat Table */
.baccarat-table {
  width: 100%;
  text-align: center;
}

.banker-hand, .player-hand {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.baccarat-result {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  padding: 15px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 10px;
}

/* Pokies Machine */
.pokies-machine {
  width: 100%;
  text-align: center;
}

.pokies-reels {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.pokies-reel {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 4px solid var(--gold-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pokies-result {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
  padding: 15px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 10px;
}

/* Game Controls */
.game-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-action-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  border: 3px solid var(--gold-dark);
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.game-action-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.register-btn {
  background: linear-gradient(135deg, var(--quest-accent) 0%, #6A1B9A 100%);
  border-color: var(--quest-accent);
}

.register-btn:hover {
  box-shadow: 0 8px 25px rgba(106, 27, 154, 0.5);
}

.games-panel {
  position: relative;
  background: var(--parchment);
  border: 8px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 
    0 10px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.games-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.05) 2px,
      rgba(139, 69, 19, 0.05) 4px
    );
  pointer-events: none;
  z-index: 0;
}

.games-panel::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(5px);
}

.panel-title {
  font-family: 'Uncial Antiqua', cursive;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
  border-bottom: 3px solid var(--parchment-shadow);
}

/* Web Games Banners - Scroll Quest Style */
.game-banners {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.game-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.game-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.game-banner:hover::before {
  opacity: 1;
}

.game-banner:hover {
  border-color: var(--gold);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
  transform: translateX(8px) translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.banner-image {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.game-banner:hover .banner-image {
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-title {
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.banner-arrow {
  font-size: 1.5rem;
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.game-banner:hover .banner-arrow {
  color: var(--gold);
  transform: translateX(5px);
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.launcher-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--bronze) 0%, #8B4513 100%);
  color: var(--parchment);
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.launcher-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 3s linear infinite;
}

.launcher-btn:hover::before {
  opacity: 1;
}

.launcher-btn:hover {
  background: linear-gradient(135deg, #8B4513 0%, var(--bronze) 100%);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.launcher-icon {
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.launcher-btn span:last-child {
  position: relative;
  z-index: 1;
}

.more-games-link {
  text-align: center;
  color: var(--leather);
  text-decoration: underline;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.more-games-link:hover {
  color: var(--gold-dark);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Mobile Games Grid - Scroll Quest Style */
.mobile-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}

.mobile-game-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 2px solid var(--parchment-shadow);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mobile-game-icon:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: rgba(255, 255, 255, 0.8);
}

.icon-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--gold-dark);
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.icon-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-game-icon:hover .icon-image::after {
  opacity: 1;
}

.mobile-game-icon:hover .icon-image {
  border-color: var(--gold);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-title {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Quest Banner - Parchment Style */
.quest-banner {
  margin-bottom: 60px;
}

.banner-parchment {
  position: relative;
  background: var(--parchment);
  padding: 60px 50px;
  border-radius: 20px;
  box-shadow: 
    0 10px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(212, 175, 55, 0.1);
  border: 8px solid var(--parchment-dark);
  position: relative;
  overflow: hidden;
}

.banner-parchment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.parchment-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.quest-title-frame {
  margin-bottom: 30px;
}

.quest-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 3.5rem;
  color: var(--ink);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.title-decoration {
  font-size: 2.5rem;
  animation: spinSlow 3s linear infinite;
}

@keyframes spinSlow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.title-text {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.quest-subtitle {
  font-size: 1.3rem;
  color: var(--leather);
  margin-bottom: 40px;
  line-height: 1.8;
  font-style: italic;
}

.treasure-button {
  display: inline-block;
  position: relative;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 4px solid var(--gold-dark);
  border-radius: 12px;
  color: var(--quest-bg);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.treasure-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
}

.button-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.button-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-icon {
  font-size: 1.5rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.parchment-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at top left, rgba(139, 69, 19, 0.2) 0%, transparent 50%),
    radial-gradient(circle at top right, rgba(139, 69, 19, 0.2) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(139, 69, 19, 0.2) 0%, transparent 50%),
    radial-gradient(circle at bottom right, rgba(139, 69, 19, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Quest Log Section */
.quest-log-section {
  margin-bottom: 60px;
}

.quest-log-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.log-header {
  margin-bottom: 30px;
  text-align: center;
}

.log-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.title-icon {
  font-size: 2rem;
}

.log-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 0 auto;
  max-width: 300px;
}

.quest-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quest-entry {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 25px;
  border-radius: 12px;
  border: 3px solid var(--parchment-shadow);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.quest-entry:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--gold);
}

.entry-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.entry-content {
  flex: 1;
}

.entry-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.entry-content p {
  color: var(--leather);
  font-size: 1rem;
  line-height: 1.6;
}

/* Expandable Content Styles */
.content-summary {
  margin-bottom: 15px;
}

.summary-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-points li {
  padding: 8px 0 8px 25px;
  position: relative;
  color: var(--leather);
  font-size: 0.95rem;
  line-height: 1.6;
}

.summary-points li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.content-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px dashed var(--parchment-shadow);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  border: 2px solid var(--gold-dark);
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

.expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

.expand-btn.expanded .expand-text::before {
  content: 'Hide ';
}

.expand-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.entry-banner {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid var(--parchment-shadow);
}

.entry-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Treasure Gallery */
.treasure-gallery {
  margin-bottom: 60px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.gallery-subtitle {
  color: var(--parchment);
  font-size: 1.1rem;
  font-style: italic;
}

.treasure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.treasure-chest {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
}

.chest-lid {
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, var(--bronze) 0%, #8B4513 100%);
  border-radius: 10px 10px 0 0;
  border: 4px solid var(--gold-dark);
  border-bottom: none;
  transform-origin: top;
  transition: transform 0.6s ease;
  z-index: 2;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.treasure-chest:hover .chest-lid {
  transform: rotateX(-45deg);
}

.chest-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.treasure-chest:hover .chest-lock {
  transform: translate(-50%, -50%) scale(1.2);
  filter: drop-shadow(0 0 10px var(--gold));
}

.chest-body {
  position: relative;
  background: linear-gradient(135deg, var(--bronze) 0%, #8B4513 100%);
  padding: 40px 20px;
  border-radius: 0 0 10px 10px;
  border: 4px solid var(--gold-dark);
  border-top: none;
  overflow: hidden;
  min-height: 250px;
}

.chest-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: rotate 4s linear infinite;
}

.treasure-chest:hover .chest-glow {
  opacity: 1;
}

.chest-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--parchment);
}

.chest-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: chestIconBounce 2s ease-in-out infinite;
}

@keyframes chestIconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

.chest-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.chest-content p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--parchment);
}

.chest-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.treasure-chest:hover .chest-shine {
  left: 100%;
}

.promo-carousel-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-carousel {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.promo-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.promo-carousel a {
  flex-shrink: 0;
  width: 100%;
}

.promo-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-banner {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.promo-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Adventure Paths */
.adventure-paths {
  margin-bottom: 60px;
}

.paths-header {
  text-align: center;
  margin-bottom: 40px;
}

.paths-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.paths-subtitle {
  color: var(--parchment);
  font-size: 1.1rem;
  font-style: italic;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.path-card {
  position: relative;
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 5px solid var(--parchment-dark);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

.path-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
  border-color: var(--gold);
}

.path-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--quest-bg);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.path-badge.epic {
  background: var(--sapphire);
  color: white;
}

.path-badge.legendary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--ruby) 100%);
  color: white;
}

.path-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.path-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.path-card:hover .path-image img {
  transform: scale(1.1);
}

.path-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.path-info {
  padding: 25px;
  text-align: center;
}

.path-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: pathIconFloat 3s ease-in-out infinite;
}

@keyframes pathIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.path-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 10px;
}

/* Casino Adventures Section */
.casino-adventures {
  margin-bottom: 60px;
}

.adventures-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.adventures-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.adventures-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.adventures-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.adventures-subtitle {
  color: var(--leather);
  font-size: 1.1rem;
  font-style: italic;
}

.adventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.adventure-card {
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.adventure-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate 4s linear infinite;
}

.adventure-card:hover::before {
  opacity: 1;
}

.adventure-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.adventure-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: floatIcon 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.adventure-content {
  position: relative;
  z-index: 1;
}

.adventure-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.adventure-content p {
  color: var(--leather);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.adventure-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.stat {
  padding: 8px 16px;
  background: var(--gold);
  color: var(--quest-bg);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

/* Player Journey Section */
.player-journey {
  margin-bottom: 60px;
}

.journey-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.journey-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.journey-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.journey-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.journey-subtitle {
  color: var(--leather);
  font-size: 1.1rem;
  font-style: italic;
}

.journey-path {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.journey-step:hover {
  transform: translateX(10px);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 4px solid var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--quest-bg);
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.step-content p {
  color: var(--leather);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.step-reward {
  display: inline-block;
  padding: 8px 18px;
  background: var(--emerald);
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(80, 200, 120, 0.3);
}

.journey-connector {
  width: 4px;
  height: 30px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  position: relative;
}

.journey-connector::before {
  content: '↓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--gold);
}

/* Casino Legends Section */
.casino-legends {
  margin-bottom: 60px;
}

.legends-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.legends-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.legends-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.legends-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.legends-subtitle {
  color: var(--leather);
  font-size: 1.1rem;
  font-style: italic;
}

.legends-content {
  position: relative;
  z-index: 1;
}

.legends-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.legend-feature {
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legend-feature:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  animation: floatIcon 3s ease-in-out infinite;
}

.legend-feature h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.legend-feature p {
  color: var(--leather);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legends-banner {
  display: flex;
  gap: 30px;
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--gold);
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  align-items: center;
}

.banner-content {
  flex: 1;
}

.banner-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.banner-content p {
  color: var(--leather);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.banner-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.legend-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid var(--gold-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.legend-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.legend-btn.secondary {
  background: linear-gradient(135deg, var(--steel) 0%, #2E5A8A 100%);
  color: white;
  border-color: var(--steel);
  box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.legend-btn.secondary:hover {
  box-shadow: 0 6px 20px rgba(70, 130, 180, 0.5);
}

.banner-image {
  flex: 1;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Champions Hall Section */
.champions-hall {
  margin-bottom: 60px;
}

.hall-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hall-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.hall-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hall-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.hall-subtitle {
  color: var(--leather);
  font-size: 1.1rem;
  font-style: italic;
}

.champions-showcase {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.champion-trophy {
  background: rgba(255, 255, 255, 0.8);
  border: 4px solid var(--gold);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.champion-trophy::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  animation: rotate 5s linear infinite;
}

.trophy-base {
  position: relative;
  margin-bottom: 25px;
  display: inline-block;
}

.trophy-icon {
  font-size: 6rem;
  filter: drop-shadow(0 0 20px var(--gold));
  animation: trophyGlow 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes trophyGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--gold)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 30px var(--gold)); }
}

.trophy-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.3; }
}

.trophy-content {
  position: relative;
  z-index: 1;
}

.trophy-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.winner-name {
  font-size: 1.2rem;
  color: var(--leather);
  margin-bottom: 8px;
  font-style: italic;
}

.winner-amount {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.winner-game {
  font-size: 1rem;
  color: var(--leather);
}

.champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.champion-card {
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.champion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.champion-card:hover::before {
  opacity: 1;
}

.champion-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.card-crown {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 2rem;
  filter: drop-shadow(0 0 10px var(--gold));
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.champion-avatar {
  font-size: 4rem;
  margin: 20px 0 15px;
  position: relative;
  z-index: 1;
}

.champion-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.champion-card p {
  color: var(--leather);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.champion-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hall-cta {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--gold);
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.hall-cta p {
  color: var(--leather);
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.hall-btn {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  border: 4px solid var(--gold-dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.hall-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

/* Daily Quest Board Section */
.quest-board {
  margin-bottom: 60px;
}

.board-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.board-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.board-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.board-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 15px;
}

.board-subtitle {
  color: var(--leather);
  font-size: 1.1rem;
  font-style: italic;
}

.quest-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.board-quest {
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--parchment-shadow);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.board-quest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.board-quest:hover::before {
  opacity: 1;
}

.board-quest:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.quest-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
  animation: questIconPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes questIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.quest-details {
  position: relative;
  z-index: 1;
}

.quest-details h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.quest-details p {
  color: var(--leather);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.quest-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--gold);
  color: var(--quest-bg);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
  width: fit-content;
}

.reward-icon {
  font-size: 1.2rem;
}

.quest-progress {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--parchment-shadow);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 2px solid var(--parchment-dark);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 8px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 0.85rem;
  color: var(--leather);
  font-weight: 600;
  text-align: center;
  display: block;
}

.board-footer {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--gold);
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.board-footer p {
  color: var(--leather);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.board-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--quest-bg);
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid var(--gold-dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.board-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

/* Quest Scroll - FAQ */
.quest-scroll {
  margin-bottom: 60px;
}

.scroll-container {
  background: linear-gradient(135deg, rgba(244, 228, 188, 0.95) 0%, rgba(232, 213, 163, 0.95) 100%);
  border: 6px solid var(--parchment-dark);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.scroll-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.03) 2px,
      rgba(139, 69, 19, 0.03) 4px
    );
  pointer-events: none;
}

.scroll-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.scroll-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'Uncial Antiqua', cursive;
  font-size: 2.5rem;
  color: var(--ink);
}

.scroll-content {
  position: relative;
  z-index: 1;
}

.faq-item {
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--parchment-shadow);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--gold);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 215, 0, 0.1);
}

.question-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.faq-question h4 {
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
}

.question-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .question-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px;
}

.faq-answer p {
  color: var(--leather);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

/* Quest Footer */
.quest-footer {
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 1) 100%);
  border-top: 2px solid var(--gold);
  padding: 50px 20px;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--gold));
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold);
  transform: translateY(-2px);
}

.footer-text {
  color: var(--parchment);
  font-size: 0.9rem;
}

.footer-text a {
  color: var(--gold);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .pirate-games-sidebar {
    order: 3;
    position: relative;
    top: 0;
  }

  .games-sidebar {
    position: relative;
    top: 0;
    order: -1;
  }

  .adventures-grid {
    grid-template-columns: 1fr;
  }

  .legends-features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .legends-banner {
    flex-direction: column;
  }

  .banner-image {
    max-width: 100%;
  }

  .quest-entry {
    flex-direction: column;
    text-align: center;
  }

  .entry-banner {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .treasure-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .promo-carousel-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }

  .quest-menu {
    width: 100%;
    justify-content: center;
  }

  .quest-actions {
    width: 100%;
    justify-content: center;
  }

  .quest-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .title-text {
    font-size: 1.8rem;
  }

  .banner-parchment {
    padding: 40px 25px;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .quest-title {
    font-size: 1.5rem;
  }

  .title-text {
    font-size: 1.3rem;
  }

  .banner-parchment {
    padding: 30px 20px;
  }

  .treasure-grid {
    grid-template-columns: 1fr;
  }

  .adventures-container,
  .journey-container,
  .legends-container,
  .hall-container,
  .board-container {
    padding: 30px 20px;
  }

  .champions-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .quest-board-grid {
    grid-template-columns: 1fr;
  }

  .journey-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }
}
