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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.4;
}

/* Radial light glow behind logo */
.glow-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%,
    rgba(180, 100, 20, 0.12) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Logo wrapper */
.logo-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0%   { opacity: 0; transform: scale(0.82) translateY(18px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

/* The clickable logo */
.logo-link {
  display: block;
  position: relative;
  text-decoration: none;
  outline: none;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.3deg); }
}

.logo-link img {
  display: block;
  width: min(62vw, 360px);
  height: auto;
  filter:
    drop-shadow(0 0 28px rgba(200, 120, 30, 0.55))
    drop-shadow(0 0 70px rgba(180, 90, 10, 0.30));
  transition:
    filter 0.35s ease,
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: filter, transform;
  user-select: none;
  -webkit-user-drag: none;
}

/* Hover state */
.logo-link:hover img,
.logo-link:focus img {
  filter:
    drop-shadow(0 0 44px rgba(220, 140, 40, 0.9))
    drop-shadow(0 0 100px rgba(200, 100, 20, 0.55))
    drop-shadow(0 0 8px rgba(255, 200, 80, 0.6));
  transform: scale(1.06);
}

/* Click burst ring */
.logo-link::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 2px solid rgba(210, 130, 30, 0.0);
  transform: scale(0.9);
  transition:
    border-color 0.2s,
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.5s;
  opacity: 0;
  pointer-events: none;
}

.logo-link:active::after {
  border-color: rgba(210, 130, 30, 0.7);
  transform: scale(1.1);
  opacity: 1;
  transition: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: rgba(210, 130, 30, 0.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor.hovering {
  width: 40px;
  height: 40px;
  background: rgba(210, 130, 30, 0.25);
}

/* Scanline subtle effect */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9;
}
