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

html, body {
    width: 100%;
    min-height: 100%;
    background: #000;
}

body {
    overflow: hidden;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.escena {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 48%, #10040b 0%, #050205 42%, #000 78%);
}

#lienzo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.encabezado {
    position: absolute;
    top: clamp(18px, 5vh, 45px);
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.encabezado h1 {
    font-weight: 300;
    font-size: clamp(23px, 4vw, 36px);
    letter-spacing: 3px;
    color: #ffd9e5;
    text-shadow: 0 0 18px #f02c75;
}

.encabezado p {
    margin-top: 8px;
    color: #b995a5;
    font-size: 12px;
    letter-spacing: 2px;
}

.dedicatoria {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: clamp(82px, 12vh, 115px);
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1.8s ease, transform 1.8s ease;
    pointer-events: none;
    z-index: 2;
}

.dedicatoria.visible {
    opacity: 1;
    transform: translateY(0);
}

.dedicatoria h2 {
    color: #ffd0df;
    font-size: clamp(19px, 3.8vw, 29px);
    font-weight: 400;
    text-shadow: 0 0 18px #ed2871;
}

.dedicatoria p {
    margin-top: 9px;
    color: #c8aab8;
    font-size: 13px;
}

.controles {
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

button {
    border: 1px solid rgba(255, 100, 160, .7);
    border-radius: 30px;
    padding: 11px 22px;
    background: rgba(91, 5, 39, .72);
    color: #ffeaf1;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(240, 30, 110, .22);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, box-shadow .2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(240, 30, 110, .5);
}

button:active {
    transform: scale(.97);
}

@media (max-height: 650px) {
    .encabezado { top: 12px; }
    .dedicatoria { bottom: 70px; }
    .controles { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .dedicatoria { transition: none; }
}
