:root {
  /* Epic fantasy color palette - WoW inspired */
  --bg-start: #0a0e27;
  --bg-mid: #1a1147;
  --bg-end: #2d1b69;
  --card-bg: rgba(138, 43, 226, 0.2);
  --card-border: rgba(218, 165, 32, 0.5);
  --card-glow: rgba(138, 43, 226, 0.4);
  --text: #ffffff;
  --text-gold: #ffd700;
  --text-purple: #e0b3ff;
  --muted: #c4b5fd;
  --accent: #c77dff;
  --accent-glow: rgba(199, 125, 255, 0.8);
  --gold: #daa520;
  --gold-bright: #ffd700;
  --gold-glow: rgba(218, 165, 32, 0.9);
  --purple: #8b5cf6;
  --purple-dark: #4c1d95;
  --purple-bright: #a78bfa;
  --highlight-bg: rgba(255, 215, 0, 0.25);
  --highlight-border: rgba(255, 215, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at top, var(--bg-mid), var(--bg-start)), 
              radial-gradient(ellipse at bottom, var(--bg-end), var(--bg-start));
  background-size: 100% 200%;
  animation: bgShift 20s ease-in-out infinite alternate;
  overflow: hidden;
}

@keyframes bgShift {
  0%, 100% { background-position: center top, center bottom; }
  50% { background-position: center 30%, center 70%; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.bg-effects {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.7;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.6), transparent 70%);
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.5), transparent 70%);
  bottom: -15%;
  left: -10%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(40px, -50px) scale(1.1) rotate(5deg); }
  50% { transform: translate(-30px, 30px) scale(0.9) rotate(-5deg); }
  75% { transform: translate(50px, 40px) scale(1.05) rotate(3deg); }
}

/* Magical particle effects */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--gold-bright), transparent);
  border-radius: 50%;
  animation: drift 15s linear infinite;
  box-shadow: 0 0 8px var(--gold-glow);
}

@keyframes drift {
  0% { 
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { 
    transform: translateY(-100px) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   HEADER / HUD - WoW Style
   ═══════════════════════════════════════════════════════════ */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(180deg, 
    rgba(10, 14, 39, 0.98), 
    rgba(26, 17, 71, 0.85) 60%, 
    transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(218, 165, 32, 0.4);
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.3),
              inset 0 -1px 0 rgba(218, 165, 32, 0.3);
  z-index: 100;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  letter-spacing: 0.15em;
  font-size: 28px;
  text-shadow: 0 0 40px var(--purple),
               0 0 20px var(--gold-glow),
               2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--text-gold);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { 
    text-shadow: 0 0 40px var(--purple),
                 0 0 20px var(--gold-glow),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  50% { 
    text-shadow: 0 0 60px var(--purple),
                 0 0 35px var(--gold-glow),
                 2px 2px 6px rgba(0, 0, 0, 0.9);
  }
}

.logo-icon {
  color: var(--accent);
  animation: logoGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 12px var(--accent-glow));
    transform: scale(1) rotate(0deg);
  }
  50% { 
    filter: drop-shadow(0 0 25px var(--accent-glow));
    transform: scale(1.15) rotate(5deg);
  }
}

.hud-center {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid rgba(255, 60, 60, 0.5);
  border-radius: 25px;
  box-shadow: 0 0 25px rgba(255, 60, 60, 0.4),
              inset 0 0 20px rgba(255, 60, 60, 0.1);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #ff3030;
  border-radius: 50%;
  animation: livePulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 48, 48, 1),
              0 0 30px rgba(255, 48, 48, 0.6);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.7); }
}

.live-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffcaca;
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.8);
}

.hud-right {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   MENU GRID
   ═══════════════════════════════════════════════════════════ */
.wall {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  overflow: auto;
  z-index: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.wall::-webkit-scrollbar {
  width: 10px;
}

.wall::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.wall::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-bright), var(--purple));
  border-radius: 5px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY CARDS - Epic Fantasy Style
   ═══════════════════════════════════════════════════════════ */
.card {
  background: linear-gradient(135deg, 
    rgba(76, 29, 149, 0.4) 0%,
    rgba(109, 40, 217, 0.3) 50%,
    rgba(76, 29, 149, 0.4) 100%);
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, 
    var(--gold) 0%, 
    var(--purple-bright) 50%, 
    var(--gold) 100%) 1;
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 60px var(--card-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(218, 165, 32, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    transparent 30%, 
    rgba(218, 165, 32, 0.3) 50%, 
    transparent 70%);
  border-radius: 28px;
  animation: borderShimmer 3s linear infinite;
  z-index: -1;
}

@keyframes borderShimmer {
  0% { transform: translateX(-100%) rotate(0deg); }
  100% { transform: translateX(100%) rotate(0deg); }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotateX(10deg);
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(138, 43, 226, 0.5),
    0 0 40px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card h2 {
  margin: 0 0 24px 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--text-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 0 30px var(--gold-glow),
               0 0 15px var(--purple),
               2px 2px 6px rgba(0, 0, 0, 0.9);
  position: relative;
}

.card h2::before {
  content: '';
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
  box-shadow: 0 0 15px var(--gold-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: barPulse 2s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { 
    box-shadow: 0 0 15px var(--gold-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: scaleY(1);
  }
  50% { 
    box-shadow: 0 0 25px var(--gold-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: scaleY(1.1);
  }
}

.card h2::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--gold) 0%, 
    transparent 100%);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════════════
   MENU ITEMS - Epic Style
   ═══════════════════════════════════════════════════════════ */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid rgba(167, 139, 250, 0.2);
  background: rgba(76, 29, 149, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(218, 165, 32, 0.15), 
    transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.row:hover::before {
  transform: translateX(100%);
}

.row:hover {
  background: rgba(109, 40, 217, 0.3);
  border-color: rgba(218, 165, 32, 0.5);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4),
              0 0 30px rgba(218, 165, 32, 0.2);
}

.row + .row {
  margin-top: 12px;
}

.name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-purple);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.price {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  color: var(--text-gold);
  padding: 10px 20px;
  background: linear-gradient(135deg, 
    rgba(218, 165, 32, 0.3), 
    rgba(184, 134, 11, 0.4));
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHTED ITEMS - Legendary Tier
   ═══════════════════════════════════════════════════════════ */
.row.highlight {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.25), 
    rgba(255, 165, 0, 0.35));
  border: 3px solid var(--gold-bright);
  box-shadow: 
    0 0 50px rgba(255, 215, 0, 0.6),
    0 8px 30px rgba(255, 165, 0, 0.4),
    inset 0 0 40px rgba(255, 215, 0, 0.15);
  animation: legendaryPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% { 
    box-shadow: 
      0 0 50px rgba(255, 215, 0, 0.6),
      0 8px 30px rgba(255, 165, 0, 0.4),
      inset 0 0 40px rgba(255, 215, 0, 0.15);
    transform: scale(1);
  }
  50% { 
    box-shadow: 
      0 0 70px rgba(255, 215, 0, 0.8),
      0 12px 40px rgba(255, 165, 0, 0.6),
      inset 0 0 60px rgba(255, 215, 0, 0.25);
    transform: scale(1.02);
  }
}

.row.highlight .name {
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
               0 0 15px rgba(255, 165, 0, 0.6),
               2px 2px 8px rgba(0, 0, 0, 0.9);
  font-weight: 900;
}

.row.highlight .price {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.5), 
    rgba(255, 140, 0, 0.6));
  border-color: var(--gold-bright);
  color: #ffffff;
  box-shadow: 0 0 30px var(--gold-glow),
              0 0 15px rgba(255, 165, 0, 0.8),
              inset 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   ERROR DISPLAY
   ═══════════════════════════════════════════════════════════ */
.error {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 20px 26px;
  border-radius: 20px;
  background: rgba(185, 28, 28, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 3px solid rgba(255, 60, 60, 0.6);
  color: #ffd4d4;
  font-size: 15px;
  font-weight: 600;
  white-space: pre-wrap;
  z-index: 200;
  animation: errorSlide 0.5s ease;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4),
              0 0 40px rgba(255, 60, 60, 0.3);
}

@keyframes errorSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   LOADING STATE - Magic Shimmer
   ═══════════════════════════════════════════════════════════ */
.loading-skeleton {
  background: linear-gradient(
    90deg,
    rgba(138, 43, 226, 0.15) 0%,
    rgba(218, 165, 32, 0.25) 50%,
    rgba(138, 43, 226, 0.15) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - Portrait Kiosk Optimized
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1200px) and (min-height: 1800px) {
  .wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (orientation: landscape) {
  .wall {
    grid-template-columns: repeat(2, 1fr);
    top: 90px;
    padding: 24px;
    gap: 22px;
  }
  
  .hud-left { font-size: 24px; }
  .name { font-size: 20px; }
  .price { font-size: 20px; }
  .card { padding: 24px; }
  .card h2 { font-size: 16px; }
}

.wall::-webkit-scrollbar {
  width: 10px;
}

.wall {
  -ms-overflow-style: none;
  scrollbar-width: thin;
}
