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

body {
    font-family: 'SamuraiBody', serif;
    color: #f5e6c8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Video de fondo */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    object-fit: cover; /* 🔑 mantiene proporción */
    transform: translate(-50%, -50%) scale(1.10);

    z-index: -2;
    filter: grayscale(20%) contrast(110%);
}

/* Oscurecer video */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Contenido central */
.content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Kanji principal */
.content h1 {
    font-family: 'SamuraiTitle', serif;
    font-size: 130px;
    letter-spacing: 14px;
    color: #c72c2c;

    text-shadow:
        0 0 10px rgba(199,44,44,0.6),
        0 0 30px rgba(199,44,44,0.3);
}
.content h2 {
    font-family: 'SamuraiTitle', serif;
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 20px;
}
.content h3 {
    font-family: 'SamuraiBody', serif;
    font-size: 32px;
    letter-spacing: 6px;
    margin-bottom: 20px;
}
/* Texto */
.content p {
    font-family: 'SamuraiBody', serif;
    font-size: 18px;
    letter-spacing: 4px;
    color: #e8d8b0;
    opacity: 0.9;
}
/* Botón */
.btn {
    position: relative; /* 🔑 IMPORTANTE */
    text-decoration: none;
    color: #f5e6c8;

    border: 2px solid #c72c2c;
    padding: 16px 44px;

    font-family: 'SamuraiTitle', serif;
    font-size: 15px;
    letter-spacing: 4px;

    background: transparent;
    cursor: pointer;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.25s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(199,44,44,0.5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn:hover {
    background: #c72c2c;
    color: #fff;

    box-shadow:
        0 0 20px rgba(199,44,44,0.8),
        0 0 40px rgba(199,44,44,0.4);

    transform: translateY(-2px);
}

.btn:hover::after {
    opacity: 1;
}

/* Fade cinematográfico */
body.fade-out::after {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    animation: samuraiFade 1s forwards ease-in;
    z-index: 9999;
}

@keyframes samuraiFade {
    0% {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}
#muteBtn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10;

    background: rgba(0,0,0,0.6);
    border: 1px solid #c72c2c;
    color: #f5e6c8;
    font-size: 20px;

    padding: 10px 14px;
    cursor: pointer;

    transition: all 0.3s ease;
}

#muteBtn:hover {
    background: #c72c2c;
    box-shadow: 0 0 15px rgba(199,44,44,0.8);
}
/* Katana Slash Effect */
#katana-slash {
    position: fixed;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        transparent 45%,
        rgba(255,255,255,0.9) 48%,
        #c72c2c 50%,
        rgba(255,255,255,0.9) 52%,
        transparent 55%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
}

#katana-slash.active {
    animation: katanaCut 0.6s ease-out forwards;
}

@keyframes katanaCut {
    0% {
        opacity: 0;
        transform: translateX(-30%) translateY(-30%);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(30%) translateY(30%);
    }
}
/* Japanese Ink Fade */
body.ink-fade::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.85) 70%,
        #000 100%
    );
    opacity: 0;
    animation: inkFade 1s ease-out forwards;
    z-index: 9999;
}

@keyframes inkFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@font-face {
    font-family: 'SamuraiTitle';
    src: url('../fonts/samurai-title.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SamuraiBody';
    src: url('../fonts/samurai-body.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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