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

body, html {
    width: 100%;
    height: 100%;
}

.hero {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
}

/* Animated smoke/vape background using CSS */
.smoke-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(120, 80, 255, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(0, 200, 255, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(30, 10, 60, 0.9) 0%, #0a0a0f 70%);
}

.smoke-layer {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.smoke-layer::before,
.smoke-layer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: drift 12s ease-in-out infinite alternate;
}

.smoke-layer::before {
    width: 500px;
    height: 300px;
    background: rgba(100, 60, 255, 0.3);
    top: 30%;
    left: -10%;
    animation-duration: 15s;
}

.smoke-layer::after {
    width: 400px;
    height: 400px;
    background: rgba(0, 180, 255, 0.2);
    bottom: 10%;
    right: -5%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.smoke-layer2::before {
    width: 600px;
    height: 200px;
    background: rgba(200, 100, 255, 0.15);
    top: 10%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: -8s;
}

.smoke-layer2::after {
    width: 300px;
    height: 500px;
    background: rgba(50, 200, 255, 0.15);
    bottom: 30%;
    left: 20%;
    animation-duration: 13s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
    100% { transform: translate(60px, 30px) scale(1.05); }
}

/* Particle effect */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

h1 {
    position: relative;
    z-index: 10;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 9rem);
    letter-spacing: 0.08em;
    color: transparent;
    background: linear-gradient(135deg, #fff 0%, #c8a0ff 40%, #00d4ff 80%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(150, 100, 255, 0.6)) drop-shadow(0 0 80px rgba(0, 200, 255, 0.3));
    animation: glow-pulse 4s ease-in-out infinite;
}

h1::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 160, 255, 0.15), rgba(0, 212, 255, 0.1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(20px);
    z-index: -1;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(150, 100, 255, 0.5)) drop-shadow(0 0 60px rgba(0, 200, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 60px rgba(150, 100, 255, 0.9)) drop-shadow(0 0 100px rgba(0, 200, 255, 0.5)); }
}

/* Hand-drawn strike-through over the title, synced to the intro sound */
.strike-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 45, 85, 0.8)) drop-shadow(0 0 16px rgba(255, 45, 85, 0.4));
}

.strike-path {
    fill: none;
    stroke: #ff2d55;
    stroke-width: 6;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    transition-property: stroke-dashoffset;
    transition-timing-function: linear;
}

/* Scanline overlay for cyberpunk feel */
.scanlines {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
    pointer-events: none;
}

/* Entry gate overlay */
.entry-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.6s ease;
}

.entry-gate.hidden {
    opacity: 0;
    pointer-events: none;
}

.enter-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.15em;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(200, 160, 255, 0.6);
    border-radius: 6px;
    padding: 0.8em 2em;
    cursor: pointer;
    filter: drop-shadow(0 0 20px rgba(150, 100, 255, 0.6)) drop-shadow(0 0 40px rgba(0, 200, 255, 0.3));
    animation: glow-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease, background 0.2s ease;
}

.enter-btn:hover {
    background: rgba(200, 160, 255, 0.1);
    transform: scale(1.05);
}

/* Pac-Man swallow-the-title animation, played once the intro sound finishes */
.pacman-wrap {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pacman-wrap.visible {
    opacity: 1;
}

.pacman-wrap.in-front {
    z-index: 11;
}

.pacman-svg {
    width: var(--pacman-size, 300px);
    height: var(--pacman-size, 300px);
    transform: scale(0.03);
    transform-origin: 50% 50%;
    overflow: visible;
}

.pacman-eye-group {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pacman-eye-group.show {
    opacity: 1;
}

.pacman-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: pacman-blink 4.2s ease-in-out infinite;
}

@keyframes pacman-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.12); }
}
