/* -------------------------------------------------------------
 * KIFFGRAS CANNABIS SOCIAL CLUB CHEMNITZ - PREMIUM STYLING & ANIMATIONS
 * ------------------------------------------------------------- */

/* 1. Custom Global Cursor Settings */
body {
  cursor: default;
}

body.joint-cursor-active {
  cursor: none !important;
}

body.joint-cursor-active a, 
body.joint-cursor-active button, 
body.joint-cursor-active select, 
body.joint-cursor-active input, 
body.joint-cursor-active textarea, 
body.joint-cursor-active [role="button"], 
body.joint-cursor-active label,
body.joint-cursor-active .strain-card {
  cursor: none !important;
}

/* 2. Flat Layout Settings */
.light-leak {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(40px);
}

.leak-gold-1 {
  top: 15%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 178, 111, 0.05) 0%, transparent 70%);
  animation: float-leak-1 12s infinite alternate ease-in-out;
}

.leak-spruce-2 {
  bottom: 20%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(46, 90, 68, 0.06) 0%, transparent 70%);
  animation: float-leak-2 15s infinite alternate ease-in-out;
}

@keyframes float-leak-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(80px, 50px) scale(1.15); opacity: 0.9; }
}

@keyframes float-leak-2 {
  0% { transform: translate(0, 0) scale(1.1); opacity: 0.5; }
  100% { transform: translate(-70px, -60px) scale(0.95); opacity: 0.8; }
}

/* 3. Custom Joint Cursor Container */
#joint-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-10px, -15px) rotate(-40deg);
  transform-origin: 0px 14px;
  transition: transform 0.1s ease-out;
  display: none;
  overflow: visible !important;
}

#joint-cursor .joint-cherry {
  transform-origin: 52px 11px;
  mix-blend-mode: screen;
  transition: fill 0.5s ease, filter 0.5s ease;
}

#joint-glow-cherry {
  position: absolute;
  top: 7px;
  left: 50px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  background-color: #D4B26F;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease, background-color 0.5s ease;
  overflow: visible;
}

#joint-cursor.glowing #joint-glow-cherry {
  animation: html-smolder 1.5s infinite ease-in-out;
}

#joint-cursor.hovering {
  transform: translate(-10px, -15px) rotate(-40deg) scale(1.15);
}

#joint-cursor.hovering #joint-glow-cherry {
  animation: html-smolder-active 0.8s infinite ease-in-out;
}

/* HTML Smoldering Glow Animations (No Clipping) */
@keyframes html-smolder {
  0%, 100% {
    background-color: #D4B26F;
    box-shadow: 0 0 15px 5px rgba(212, 178, 111, 0.6);
  }
  50% {
    background-color: #FF7F00;
    box-shadow: 0 0 25px 8px rgba(255, 127, 0, 0.85);
  }
}

@keyframes html-smolder-active {
  0%, 100% {
    background-color: #FF7F00;
    box-shadow: 0 0 25px 8px rgba(255, 127, 0, 0.85);
  }
  50% {
    background-color: #FF3700;
    box-shadow: 0 0 35px 12px rgba(255, 55, 0, 1);
  }
}

/* Smoldering Animations */
@keyframes smolder {
  0%, 100% {
    fill: #D4B26F;
    filter: drop-shadow(0 0 3px #D4B26F) drop-shadow(0 0 8px rgba(212, 178, 111, 0.7));
  }
  50% {
    fill: #FF7F00;
    filter: drop-shadow(0 0 5px #FF7F00) drop-shadow(0 0 14px rgba(255, 127, 0, 0.9));
  }
}

@keyframes smolder-active {
  0%, 100% {
    fill: #FF7F00;
    filter: drop-shadow(0 0 5px #FF7F00) drop-shadow(0 0 14px rgba(255, 127, 0, 0.9));
  }
  50% {
    fill: #FF3700;
    filter: drop-shadow(0 0 8px #FF3700) drop-shadow(0 0 22px rgba(255, 55, 0, 1));
  }
}

/* 4. ZIPPO WIDGET & Flame Animations */
#zippo-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 80px;
  height: 120px;
  padding: 10px;
  z-index: 1000;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible !important;
}

#zippo-widget:hover {
  transform: translateY(-5px);
}

#zippo-lid {
  transform-origin: 8px 43px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#zippo-widget.open #zippo-lid {
  transform: rotate(-135deg);
}

#zippo-flame {
  opacity: 0;
  transform-origin: 35px 32px;
  transition: opacity 0.25s ease-out;
}

#zippo-widget.ignited #zippo-flame {
  opacity: 1;
  animation: flicker 0.15s infinite alternate ease-in-out;
}

@keyframes flicker {
  0% {
    transform: scale(0.95, 0.92) skewX(-2deg);
    filter: drop-shadow(0 0 3px #FFA500) drop-shadow(0 0 8px #FF4500);
  }
  100% {
    transform: scale(1.05, 1.08) skewX(2deg);
    filter: drop-shadow(0 0 5px #FFD700) drop-shadow(0 0 12px #FF4500);
  }
}

/* 5. Game Screen & HUD */
#opening-canvas {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: auto;
  cursor: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#opening-hud {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  text-align: center;
}

#burn-timer-container {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(26, 32, 28, 0.5);
  z-index: 41;
  display: none;
}

#burn-timer-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #2E5A44, #D4B26F);
  box-shadow: 0 0 6px #D4B26F;
  transition: width 0.1s linear, background 0.5s ease;
}

#burn-timer-bar.critical {
  background: linear-gradient(to right, #802E2E, #FF3700);
  box-shadow: 0 0 8px #FF3700;
}

/* 6. Ambient Radial Glow Background */
#ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle 350px at 0px 0px, rgba(46, 90, 68, 0.08) 0%, transparent 100%);
}

/* 7. Viewport Canvas Overlay for Smoke Particles */
#smoke-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* 8. Silky Smooth Transition Utilities */
.smooth-transition {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.strain-card {
  transition: 
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

button, a, input, select {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-hover-lift:hover {
  transform: translateY(-2px);
  border-color: #D4B26F;
  box-shadow: 0 10px 20px rgba(46, 90, 68, 0.15);
}
