@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #333333;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #7a7a7a;
  --accent-primary: #b08d57;
  --accent-hover: #c49b63;
  --accent-dark: #8b6f42;
  --border-color: #404040;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(176, 141, 87, 0.2);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease-in-out;
}

header.header-hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent-hover);
}

.nav {
  display: flex;
  gap: 24px;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover { color: var(--text-primary); border-color: var(--accent-primary); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.new-release-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 50px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(176, 141, 87, 0.4);
  transition: all 0.3s ease;
  animation: slide-down 0.6s ease-out;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes slide-down {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.new-release-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(176, 141, 87, 0.5);
}

.banner-text {
  font-size: 1rem;
  line-height: 1.4;
}

.banner-text strong {
  font-weight: 800;
}

.banner-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding-left: 12px;
  transition: all 0.3s ease;
}

.banner-link:hover {
  padding-left: 16px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero .subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Features */
.features {
  padding: 80px 0;
  scroll-margin-top: 90px;
}

.features h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.features .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.feature {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feature h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Reviews Vertical Drum Carousel */
.reviews {
  padding: 80px 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.reviews h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.reviews .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.reviews-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1000px;
}

.reviews-carousel-wrapper::before,
.reviews-carousel-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 10;
  pointer-events: none;
}

.reviews-carousel-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, transparent 100%);
}

.reviews-carousel-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
}

.reviews-carousel-track {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.review-card {
  position: absolute;
  width: 90%;
  max-width: 600px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.3;
  filter: blur(4px);
  transform: scale(0.75) translateZ(-200px);
  pointer-events: none;
}

.review-card.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) translateZ(0);
  z-index: 5;
  pointer-events: auto;
}

.review {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  box-shadow: var(--shadow-soft);
}

.review-card.active .review {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 40px rgba(176, 141, 87, 0.4);
}

.review-stars {
  display: flex;
  gap: 4px;
  font-size: 1.5rem;
}

.review-stars .star {
  color: var(--accent-primary);
}

.review-stars .star-empty {
  color: var(--text-muted);
}

.review-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  flex: 1;
}

.review-author {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
}

.reviews-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.reviews-carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reviews-carousel-dots .dot.active {
  width: 24px;
  background: var(--accent-primary);
}

.reviews-scroll-hint {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Easter Egg - Matrix Shatter Effect */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.triangle-piece {
  position: absolute;
  opacity: 1;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: triangle-fall 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes triangle-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.5) hue-rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rotation));
    filter: brightness(0);
  }
}

.glitch-effect {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0%, 100% {
    transform: translate(0, 0);
    filter: hue-rotate(0deg);
  }
  10% {
    transform: translate(-5px, 5px);
    filter: hue-rotate(90deg);
  }
  20% {
    transform: translate(5px, -5px);
    filter: hue-rotate(180deg);
  }
  30% {
    transform: translate(-5px, -5px);
    filter: hue-rotate(270deg);
  }
  40% {
    transform: translate(5px, 5px);
    filter: hue-rotate(360deg);
  }
}

.screen-shake {
  animation: matrix-shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes matrix-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% {
    transform: translate(-15px, 5px) rotate(-2deg);
    filter: brightness(1.5) contrast(1.2);
  }
  20%, 40%, 60%, 80% {
    transform: translate(15px, -5px) rotate(2deg);
    filter: brightness(0.5) contrast(0.8);
  }
}

.black-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10001;
  opacity: 0;
  animation: fade-to-black 1.5s forwards;
}

@keyframes fade-to-black {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

body.shattering {
  overflow: hidden;
}

body.shattering * {
  user-select: none;
  pointer-events: none;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* About page */
.about {
  padding: 120px 0;
  max-width: 900px;
  margin: 0 auto;
}

.about h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  color: var(--text-primary);
}

.about h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 48px 0 24px 0;
  color: var(--accent-primary);
}

.about h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 32px 0 16px 0;
  color: var(--accent-primary);
}

.about p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Hand-drawn (subtle) underline */
.underline-scribble { position: relative; }
.underline-scribble::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.06em;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--accent-primary);
  opacity: 0.35;
  border-radius: 0.12em;
  transform: rotate(-0.4deg);
  transform-origin: left bottom;
  pointer-events: none;
}

/* Bardo page (screenshots) */
.screens {
  padding: 120px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.screens h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-primary);
}

.screens p.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 720px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.screen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.screen-frame {
  height: clamp(360px, 60vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.screen-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

/* Carousel */
.carousel {
  max-width: 820px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  padding: 12px;
}

.caption {
  text-align: center;
  padding: 10px 8px 4px;
}

.caption h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--accent-primary);
  font-weight: 600;
}

.caption p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(42, 42, 42, 0.85);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: var(--bg-secondary);
}

.carousel-btn svg { width: 20px; height: 20px; }

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots .dot.active {
  width: 24px;
  background: var(--accent-primary);
}

.team-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  margin: 32px 0;
  border: 1px solid var(--border-color);
}

.screens-story {
  margin: 40px 0 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.screens-story p {
  margin-bottom: 24px;
}

.screens-story p:last-child {
  margin-bottom: 0;
}

/* Plain underline link (no blue color) */
.link-plain,
.link-plain:visited,
.link-plain:active {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.link-plain:hover {
  color: inherit;
  text-decoration: underline;
}

.personal-toggle {
  margin-top: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.personal-toggle__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.personal-toggle__button:hover,
.personal-toggle--open .personal-toggle__button {
  background: rgba(255, 255, 255, 0.04);
}

.personal-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.personal-toggle__icon {
  transition: transform 0.3s ease;
  display: inline-flex;
}

.personal-toggle--open .personal-toggle__icon {
  transform: rotate(180deg);
}

.personal-toggle__content {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.35s ease;
}

.personal-toggle__content-inner {
  padding-bottom: 28px;
}

.personal-toggle__content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.personal-toggle__content p:last-child {
  margin-bottom: 0;
}

.personal-toggle--open .personal-toggle__content {
  opacity: 1;
  transform: translateY(0);
}

.features-list {
  margin: 40px 0;
}

.feature-item {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 16px;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.feature-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.feature-item p {
  color: var(--text-secondary);
}

/* Update page */
.update-section {
  padding: 120px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.update-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.release-announcement {
  background: linear-gradient(135deg, rgba(176, 141, 87, 0.1), rgba(196, 155, 99, 0.05));
  border: 2px solid var(--accent-primary);
  border-radius: 30px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(176, 141, 87, 0.3);
}

.release-announcement::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.1) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.celebration-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 30px;
  border-radius: 50px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
  animation: bounce-in 0.8s ease-out;
}

@keyframes bounce-in {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.update-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f59e0b, var(--accent-primary), var(--accent-hover), #fbbf24);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.update-badge {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 2px solid var(--accent-primary);
  padding: 8px 20px;
  border-radius: 20px;
}

.update-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-download-cta {
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.btn-pulse {
  animation: pulse-button 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.7);
  font-size: 1.2rem;
  padding: 20px 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  position: relative;
  z-index: 10;
  cursor: pointer;
  display: inline-block;
}

@keyframes pulse-button {
  0% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.7); }
  50% { box-shadow: 0 0 0 15px rgba(176, 141, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0); }
}

.update-content h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
  position: relative;
}

.update-content h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  border-radius: 2px;
}

.update-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.update-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.update-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.update-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
}

.update-feature:hover::before {
  transform: scaleX(1);
}

.update-feature {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.rejected-card {
  position: relative;
}

.rejected-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.rejected-text {
  color: red;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-15deg);
  z-index: 11;
}

.update-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.update-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.update-feature:hover .update-icon::before {
  width: 100px;
  height: 100px;
}

.update-icon svg {
  width: 28px;
  height: 28px;
  z-index: 1;
  position: relative;
}

.update-text {
  flex: 1;
}

.update-text h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.update-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.update-cta {
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.update-cta .btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  border: none;
  padding: 20px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.update-cta .btn:hover {
  transform: translateY(-2px);
}

.update-release-date {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* Update toggle specific styles */
.update-toggle {
  margin-top: 80px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.update-toggle .personal-toggle__button {
  border-bottom: 1px solid var(--border-color);
}

.update-toggle .personal-toggle__content-inner {
  padding-top: 28px;
}

.update-toggle .update-features {
  margin-bottom: 0;
}

/* Mobile optimizations for update page */
@media (max-width: 768px) {
  .update-section {
    padding: 70px 0 50px;
  }

  .update-header {
    margin-bottom: 50px;
  }

  .release-announcement {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .celebration-badge {
    font-size: 0.85rem;
    padding: 10px 24px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
  }

  .update-header h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .update-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
    margin-bottom: 20px;
  }

  .update-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    padding: 0 10px;
  }

  .btn-pulse {
    font-size: 1rem;
    padding: 16px 40px;
    width: 100%;
    max-width: 280px;
  }

  .hero-download-cta {
    margin-top: 24px;
  }

  .update-content h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .update-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }

  .update-feature {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .update-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    align-self: center;
    border-radius: 12px;
  }

  .update-icon svg {
    width: 24px;
    height: 24px;
  }

  .update-text h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .update-text p {
    font-size: 0.95rem;
  }

  .update-cta {
    margin-top: 40px;
  }

  .update-cta .btn {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 18px 36px;
  }

  .update-release-date {
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 0 20px;
  }

  .rejected-text {
    font-size: 1.5rem;
  }

  .update-toggle {
    margin-top: 60px;
  }

  .update-toggle .personal-toggle__content-inner {
    padding-top: 20px;
  }
}

/* Footer */
footer {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  header {
    padding: 12px 0;
  }

  .logo {
    font-size: 24px;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    z-index: 999;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 14px 16px;
    border-radius: 12px;
    min-height: 48px;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .hero {
    padding: 90px 0 50px;
  }

  .new-release-banner {
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    margin-bottom: 30px;
  }

  .banner-text {
    font-size: 0.95rem;
    text-align: center;
  }

  .banner-link {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    width: 100%;
    text-align: center;
  }

  .banner-link:hover {
    padding-left: 0;
    padding-top: 12px;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }

  .hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }

  .cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    font-size: 15px;
  }

  .features {
    padding: 60px 0;
  }

  .features h2 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .features .subtitle {
    font-size: 1.05rem;
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature {
    padding: 28px 24px;
  }

  .feature h3 {
    font-size: 1.3rem;
  }

  .feature p {
    font-size: 0.95rem;
  }

  .reviews {
    padding: 60px 0;
  }

  .reviews h2 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .reviews .subtitle {
    font-size: 1.05rem;
    margin-bottom: 40px;
  }

  .reviews-carousel-wrapper {
    height: 450px;
  }

  .review-card {
    width: 95%;
  }

  .review {
    padding: 24px 20px;
    min-height: 180px;
  }

  .review-stars {
    font-size: 1.3rem;
  }

  .review-text {
    font-size: 1rem;
  }

  .review-author {
    font-size: 0.9rem;
  }

  .screens {
    padding: 70px 0;
  }

  .screens h1 {
    font-size: 2rem;
  }

  .screens p.subtitle {
    font-size: 1rem;
  }

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

  .about {
    padding: 90px 0;
  }

  .about h1 {
    font-size: 2.2rem;
  }

  .about h2 {
    font-size: 1.7rem;
  }

  .about p,
  .team-card p {
    font-size: 1rem;
  }

  .team-card,
  .screens-story {
    padding: 28px 24px;
  }

  .personal-toggle {
    margin-top: 24px;
  }

  .personal-toggle__button {
    padding: 16px 20px;
    font-size: 16px;
  }

  .personal-toggle__content-inner {
    padding-bottom: 20px;
  }

  .personal-toggle__content p {
    font-size: 0.95rem;
  }

  .feature-item {
    padding: 24px 20px;
    margin: 20px 0;
  }

  .feature-item h4 {
    font-size: 1.2rem;
  }

  footer {
    padding: 40px 0 30px;
    font-size: 0.9rem;
  }

  .screen-frame {
    height: 400px;
  }

  .caption h3 {
    font-size: 1rem;
  }

  .caption p {
    font-size: 0.9rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .new-release-banner {
    padding: 14px 16px;
  }

  .banner-text {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 14px;
    padding: 12px 24px;
  }

  .features h2 {
    font-size: 1.7rem;
  }

  .features .subtitle {
    font-size: 1rem;
  }

  .feature {
    padding: 24px 20px;
  }

  .reviews h2 {
    font-size: 1.7rem;
  }

  .reviews .subtitle {
    font-size: 1rem;
  }

  .reviews-carousel-wrapper {
    height: 400px;
  }

  .review-card {
    width: 95%;
  }

  .review {
    padding: 20px 16px;
    min-height: 160px;
  }

  .review-stars {
    font-size: 1.2rem;
  }

  .review-text {
    font-size: 0.95rem;
  }

  .review-author {
    font-size: 0.85rem;
  }

  .update-header h1 {
    font-size: 1.7rem;
  }

  .update-content h2 {
    font-size: 1.6rem;
  }

  .celebration-badge {
    font-size: 0.8rem;
    padding: 8px 20px;
  }

  .btn-pulse {
    font-size: 0.95rem;
    padding: 14px 32px;
  }

  .update-text h4 {
    font-size: 1.1rem;
  }

  .update-text p {
    font-size: 0.9rem;
  }

  .about h1 {
    font-size: 1.9rem;
  }

  .about h2 {
    font-size: 1.5rem;
  }

  .screens h1 {
    font-size: 1.8rem;
  }

  .screen-frame {
    height: 350px;
  }
}

/* Halloween Theme Colors */
:root {
  --halloween-orange: #ff6b35;
  --halloween-purple: #8b5fbf;
  --halloween-green: #4ade80;
  --halloween-black: #0a0a0a;
  --halloween-gray: #2d2d2d;
}

/* Halloween Decorations */
.halloween-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.halloween-element {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(50px) scale(0.8);
}

.halloween-element.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Halloween Pumpkin */
.halloween-pumpkin {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, var(--halloween-orange), #ff4500);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  animation: pumpkin-glow 3s ease-in-out infinite alternate;
}

.halloween-pumpkin::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 12px;
  height: 12px;
  background: var(--halloween-black);
  border-radius: 50%;
  box-shadow: 28px 0 0 var(--halloween-black);
}

.halloween-pumpkin::after {
  content: '';
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 15px;
  background: var(--halloween-black);
  border-radius: 0 0 20px 20px;
  clip-path: polygon(20% 0%, 80% 0%, 90% 100%, 10% 100%);
}

@keyframes pumpkin-glow {
  0% { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4); }
  100% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.7); }
}

/* Halloween Spider Web */
.halloween-web {
  width: 80px;
  height: 80px;
  position: relative;
  background: radial-gradient(circle, transparent 40%, rgba(255,255,255,0.1) 41%, rgba(255,255,255,0.1) 45%, transparent 46%);
  animation: web-rotate 20s linear infinite;
}

.halloween-web::before,
.halloween-web::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.15);
}

.halloween-web::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.halloween-web::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

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

/* Halloween Ghost */
.halloween-ghost {
  width: 50px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 0 0;
  position: relative;
  animation: ghost-float 4s ease-in-out infinite;
}

.halloween-ghost::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 6px;
  height: 6px;
  background: var(--halloween-black);
  border-radius: 50%;
  box-shadow: 20px 0 0 var(--halloween-black);
}

.halloween-ghost::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: 60%;
  height: 30%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes ghost-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Halloween Bat */
.halloween-bat {
  width: 40px;
  height: 20px;
  background: var(--halloween-black);
  position: relative;
  animation: bat-fly 6s ease-in-out infinite;
}

.halloween-bat::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  width: 30px;
  height: 8px;
  background: var(--halloween-black);
  transform: translateY(-50%) rotate(20deg);
  border-radius: 50% 0 0 50%;
}

.halloween-bat::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  width: 30px;
  height: 8px;
  background: var(--halloween-black);
  transform: translateY(-50%) rotate(-20deg);
  border-radius: 0 50% 50% 0;
}

@keyframes bat-fly {
  0%, 100% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateX(20px) translateY(-30px) rotate(15deg);
    opacity: 1;
  }
  50% {
    transform: translateX(-10px) translateY(-20px) rotate(-10deg);
    opacity: 0.8;
  }
  75% {
    transform: translateX(30px) translateY(-40px) rotate(20deg);
    opacity: 1;
  }
}

/* Halloween Moon */
.halloween-moon {
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at 30% 30%, #ffff99, #ffeb3b);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
  animation: moon-pulse 5s ease-in-out infinite;
}

.halloween-moon::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 15px;
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.halloween-moon::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 60%;
  width: 8px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

@keyframes moon-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 235, 59, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 235, 59, 0.8); }
}

/* Halloween Candy Corn */
.halloween-candy {
  width: 30px;
  height: 50px;
  background: linear-gradient(to bottom, var(--halloween-orange) 0%, var(--halloween-orange) 40%, #ffff99 40%, #ffff99 70%, var(--text-primary) 70%);
  border-radius: 0 0 15px 15px;
  position: relative;
  animation: candy-bounce 3s ease-in-out infinite;
}

@keyframes candy-bounce {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Halloween Skull */
.halloween-skull {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  animation: skull-glow 4s ease-in-out infinite alternate;
}

.halloween-skull::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 6px;
  height: 6px;
  background: var(--halloween-black);
  border-radius: 50%;
  box-shadow: 20px 0 0 var(--halloween-black);
}

.halloween-skull::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: var(--halloween-black);
  border-radius: 0 0 12px 12px;
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

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

/* Halloween Elements Positioning */
.halloween-element {
  --original-width: 60px;
  --original-height: 60px;
  --original-top: 0;
  --original-left: 0;
  --original-right: 0;
}

.halloween-element.pumpkin-1 {
  top: -20px;
  left: 15%;
  --original-width: 60px;
  --original-height: 60px;
  --original-top: -20px;
  --original-left: 15%;
  animation-delay: 0.2s;
}

.halloween-element.pumpkin-2 {
  top: 10px;
  right: 20%;
  --original-width: 60px;
  --original-height: 60px;
  --original-top: 10px;
  --original-right: 20%;
  animation-delay: 0.8s;
}

.halloween-element.web-1 {
  top: -30px;
  left: 80%;
  --original-width: 80px;
  --original-height: 80px;
  --original-top: -30px;
  --original-left: 80%;
  animation-delay: 1.2s;
}

.halloween-element.ghost-1 {
  top: 20px;
  left: 5%;
  --original-width: 50px;
  --original-height: 70px;
  --original-top: 20px;
  --original-left: 5%;
  animation-delay: 0.5s;
}

.halloween-element.ghost-2 {
  top: -10px;
  right: 10%;
  --original-width: 50px;
  --original-height: 70px;
  --original-top: -10px;
  --original-right: 10%;
  animation-delay: 1.5s;
}

.halloween-element.bat-1 {
  top: -40px;
  left: 25%;
  --original-width: 40px;
  --original-height: 20px;
  --original-top: -40px;
  --original-left: 25%;
  animation-delay: 0.3s;
}

.halloween-element.bat-2 {
  top: 15px;
  right: 35%;
  --original-width: 40px;
  --original-height: 20px;
  --original-top: 15px;
  --original-right: 35%;
  animation-delay: 1.0s;
}

.halloween-element.moon-1 {
  top: -50px;
  right: 5%;
  --original-width: 45px;
  --original-height: 45px;
  --original-top: -50px;
  --original-right: 5%;
  animation-delay: 0.7s;
}

.halloween-element.candy-1 {
  top: 25px;
  left: 70%;
  --original-width: 30px;
  --original-height: 50px;
  --original-top: 25px;
  --original-left: 70%;
  animation-delay: 1.3s;
}

.halloween-element.skull-1 {
  top: -15px;
  left: 45%;
  --original-width: 40px;
  --original-height: 40px;
  --original-top: -15px;
  --original-left: 45%;
  animation-delay: 0.9s;
}

/* Halloween Sparkles Effect */
.halloween-sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.halloween-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--halloween-orange);
  border-radius: 50%;
  animation: sparkle-twinkle 2s ease-in-out infinite;
}

.halloween-sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.halloween-sparkle:nth-child(2) { top: 30%; left: 90%; animation-delay: 0.3s; }
.halloween-sparkle:nth-child(3) { top: 70%; left: 15%; animation-delay: 0.6s; }
.halloween-sparkle:nth-child(4) { top: 80%; left: 85%; animation-delay: 0.9s; }
.halloween-sparkle:nth-child(5) { top: 50%; left: 50%; animation-delay: 1.2s; }

.halloween-sparkle.active {
  animation: sparkle-twinkle 2s ease-in-out infinite;
  opacity: 1;
}

@keyframes sparkle-twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

/* Halloween Background Effects */
.halloween-active {
  position: relative;
}

.halloween-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 95, 191, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(74, 222, 128, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: halloween-ambient 8s ease-in-out infinite;
}

@keyframes halloween-ambient {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Responsive Halloween Elements */
@media (max-width: 768px) {
  .halloween-element {
    transform: translateY(30px) scale(0.6);
  }

  .halloween-pumpkin {
    width: 42px;
    height: 42px;
  }

  .halloween-web {
    width: 56px;
    height: 56px;
  }

  .halloween-ghost {
    width: 35px;
    height: 49px;
  }

  .halloween-bat {
    width: 28px;
    height: 14px;
  }

  .halloween-moon {
    width: 31px;
    height: 31px;
  }

  .halloween-candy {
    width: 21px;
    height: 35px;
  }

  .halloween-skull {
    width: 28px;
    height: 28px;
  }

  .halloween-element.pumpkin-1 {
    top: -16px;
    left: 15%;
  }

  .halloween-element.pumpkin-2 {
    top: 8px;
    right: 20%;
  }

  .halloween-element.web-1 {
    top: -24px;
    left: 80%;
  }

  .halloween-element.ghost-1 {
    top: 16px;
    left: 5%;
  }

  .halloween-element.ghost-2 {
    top: -8px;
    right: 10%;
  }

  .halloween-element.bat-1 {
    top: -32px;
    left: 25%;
  }

  .halloween-element.bat-2 {
    top: 12px;
    right: 35%;
  }

  .halloween-element.moon-1 {
    top: -40px;
    right: 5%;
  }

  .halloween-element.candy-1 {
    top: 20px;
    left: 70%;
  }

  .halloween-element.skull-1 {
    top: -12px;
    left: 45%;
  }

  /* Halloween Interactive Effects */
  .hover-sparkle {
    animation: sparkle-hover 1s ease-out forwards !important;
  }

  .celebration-sparkle {
    animation: sparkle-celebration 1.2s ease-out forwards !important;
  }

  @keyframes sparkle-hover {
    0% {
      opacity: 0;
      transform: scale(0) rotate(0deg);
    }
    30% {
      opacity: 1;
      transform: scale(2) rotate(120deg);
    }
    70% {
      transform: scale(1.5) rotate(240deg);
    }
    100% {
      opacity: 0;
      transform: scale(0.5) rotate(360deg);
    }
  }

  @keyframes sparkle-celebration {
    0% {
      opacity: 0;
      transform: scale(0) rotate(0deg);
    }
    20% {
      opacity: 1;
      transform: scale(3) rotate(72deg);
    }
    40% {
      transform: scale(2) rotate(144deg);
    }
    60% {
      transform: scale(2.5) rotate(216deg);
    }
    80% {
      transform: scale(1.5) rotate(288deg);
    }
    100% {
      opacity: 0;
      transform: scale(0) rotate(360deg);
    }
  }

  .halloween-glow {
    filter: brightness(1.05) saturate(1.1);
    transition: filter 1s ease;
  }
}

/* Ghost Warning System */
.ghost-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ghost-warning-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ghost-warning-content {
  position: relative;
  text-align: center;
  max-width: 600px;
  padding: 40px;
  transform: scale(0.8) translateY(50px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ghost-warning-overlay.active .ghost-warning-content {
  transform: scale(1) translateY(0);
}

.ghost-container {
  position: relative;
  margin-bottom: 30px;
}

.ghost-figure {
  width: 120px;
  height: 160px;
  margin: 0 auto;
  position: relative;
  animation: ghost-appear 2s ease-out forwards;
}

.ghost-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.3) 100%);
  border-radius: 60px 60px 0 0;
  position: relative;
  filter: blur(1px);
  animation: ghost-float 4s ease-in-out infinite;
}

.ghost-body::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 20%;
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: 35px 0 0 #1a1a1a;
  animation: ghost-eyes 3s ease-in-out infinite;
}

.ghost-body::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 30%;
  width: 40%;
  height: 25%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(3px);
}

.ghost-bottom {
  position: absolute;
  bottom: -10px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(2px);
}

.ghost-message {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghost-text {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  color: #ff6b35;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
  line-height: 1.4;
  opacity: 0;
  animation: typing 3s steps(40, end) forwards;
  animation-delay: 1.5s;
  white-space: pre-line;
  text-align: center;
  max-width: 500px;
}

.ghost-text::after {
  content: '|';
  animation: cursor-blink 1s infinite;
  animation-delay: 4.5s;
}

.ghost-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.ghost-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: particle-float 3s ease-in-out infinite;
}

.ghost-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.ghost-particle:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 0.5s;
}

.ghost-particle:nth-child(3) {
  bottom: 40%;
  left: 20%;
  animation-delay: 1s;
}

.ghost-particle:nth-child(4) {
  bottom: 30%;
  right: 25%;
  animation-delay: 1.5s;
}

.ghost-particle:nth-child(5) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.ghost-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 107, 53, 0.5);
  border-radius: 50%;
  color: #ff6b35;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.ghost-close:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
  transform: scale(1.1);
}

@keyframes ghost-appear {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ghost-float {
  0%, 100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes ghost-eyes {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.8);
  }
}

@keyframes typing {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(15px);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) translateX(-10px);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-40px) translateX(20px);
    opacity: 1;
  }
}

.ghost-warning-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ghost-warning-overlay.fade-out .ghost-warning-content {
  transform: scale(0.8) translateY(-50px);
}

/* Responsive Ghost Warning */
@media (max-width: 768px) {
  .ghost-warning-content {
    padding: 30px 20px;
    max-width: 90%;
  }

  .ghost-figure {
    width: 80px;
    height: 110px;
  }

  .ghost-text {
    font-size: 1rem;
    max-width: 300px;
  }

  .ghost-close {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    top: -15px;
    right: -15px;
  }
}

@media (max-width: 480px) {
  .ghost-warning-content {
    padding: 20px 15px;
  }

  .ghost-figure {
    width: 60px;
    height: 85px;
  }

  .ghost-text {
    font-size: 0.9rem;
    min-height: 60px;
  }
}

/* Smooth animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
