#lock {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    z-index: 99999;
}

#lock.unlocked {
    display: none;
}

#pass {
    width: 120px;
    padding: 14px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: #fff8e7;
    outline: none;
    font-family: "Inter", sans-serif;
}

#pass:focus {
    border-color: #fff8e7;
}

#pass.error {
    border-color: #ff2828;
    animation: shake 0.3s;
}

@keyframes shake {
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#content {
    display: none;
}

#content.visible {
    display: block;
}

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

:root {
    --fg: #111111;
    --bg: #fff8e7;
    --accent: #ff2828;
    --image-size: 75vw;
}

@media (min-width: 769px) {
    :root {
        --image-size: 400px;
    }
}

@font-face {
    font-family: "LG";
    src: url("https://raw.githubusercontent.com/rudraksha132/srcmed/refs/heads/main/fonts/lg.otf") format("opentype");
}

@font-face {
    font-family: "P";
    src: url("https://raw.githubusercontent.com/rudraksha132/srcmed/refs/heads/main/fonts/pp-playground/medium.otf") format("opentype");
}

@font-face {
    font-family: "GG";
    src: url("https://raw.githubusercontent.com/rudraksha132/srcmed/refs/heads/main/fonts/gg/semibold.ttf") format("truetype");
}

body {
    font-family: "LG", sans-serif;
    font-feature-settings: "ss02";
    background: var(--fg);
    color: var(--bg);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    display: none;
}

.intro::selection,
.outro::selection {
    background-color: var(--bg);
    color: var(--fg);
}

.spotlight::selection {
    background-color: var(--fg);
    color: var(--bg);
}

section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--fg);
    color: var(--bg);
}

.intro,
.outro {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.marquee-mask {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 3rem; 
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    opacity: 0;
}

.marquee-track span {
    font-family: "LG", sans-serif;
    font-size: 3rem;
    letter-spacing: -0.1rem;
    line-height: 1;
    color: var(--bg);
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .marquee-track span {
        font-size: 9rem;
    }
    .marquee-mask {
        height: 8rem;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.images {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--image-size);
    height: var(--image-size);
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    z-index: 1;
}

.images img {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
}

.burst {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.burst img {
    position: absolute;
    object-fit: cover;
    width: 250px;
    height: 250px;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-1000px) scale(0);
    will-change: transform;
}

@media (min-width: 769px) {
    .burst img {
        width: 150px;
        height: 150px;
    }
}

.sub {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--fg);
    overflow: hidden;
}

.entry {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-images {
    position: relative;
    width: var(--image-size);
    height: var(--image-size);
    display: flex;
    justify-content: center;
    align-items: center;
}

.universe {
    position: absolute;
    width: 80vw;
    object-fit: cover;
    filter: blur(15px);
    opacity: 0;
    z-index: 0;
}

.remember {
    position: absolute;
    width: 80vw;
    object-fit: cover;
    filter: blur(15px);
    opacity: 0;
    z-index: 0;
}

.pfp-left,
.pfp-right {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: cover;
    will-change: transform, opacity, box-shadow;
    z-index: 2;
}

.pfp-combined {
    position: absolute;
    object-fit: cover;
    filter: blur(15px);
    scale: 0.9;
    width: 80vw;
    opacity: 0;
    z-index: 1;
    will-change: opacity;
}

@media (min-width: 769px) {
    .pfp-combined {
        width: 600px;
    }
}

.entry-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 0%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    z-index: 10;
}

.spotlight {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg);
    color: var(--fg);
}

.entry-text {
    position: absolute;
    display: flex;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -70%);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
}

.entry h1 {
    font-family: "P", serif;
    font-weight: 500;
    font-size: 3rem;
    line-height: 3rem;
    color: #ff2323;
    opacity: 0;
    filter: blur(15px);
}

.universe-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    z-index: 5;
}

.remember-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    z-index: 5;
}

.remember-text h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: blur(15px);
    user-select: none;
}

.part_1 {
    position: absolute;
    top: 75%;
    left: 0;
    transform: translate(0, -75%);
}

.part_2 {
    position: absolute;
    bottom: 5%;
    left: 30%;
    transform: translate(-30%, -5%);
}

.title {
    display: flex;
    flex-direction: column;
}

.line-mask {
    height: 3.5rem;
    overflow: hidden;
    position: relative;
    display: block;
}

.line-roller {
    display: block;
    will-change: transform;
}

.title h1 {
    height: 3.5rem;
    line-height: 3.5rem;
    letter-spacing: -0.01rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    margin: 0;
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    white-space: nowrap; 
}

@media (min-width: 769px) {
    .line-mask {
        height: 3rem;
    }
    .title h1 {
        font-size: 3rem;
        height: 3rem;
        line-height: 3rem;
    }
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 7rem;
}

.title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
}

.title h1 {
    font-family: "LG", sans-serif;
    width: 100%;
    font-size: 3.5rem;
    line-height: 3.5rem;
    font-weight: 700;
}

.outro-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.swap-wrapper {
    display: grid;
    place-items: center;
    grid-template-areas: "stack"; 
    margin-bottom: -0.5rem; 
}

.swap-line {
    grid-area: stack; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.swap-line h1, .fixed-line h1 {
    font-family: "LG", sans-serif;
    font-size: 3.5rem; 
    line-height: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}


@media (min-width: 769px) {
    .swap-line h1, .fixed-line h1 {
        font-size: 6rem; 
        line-height: 5.5rem;
    }
}

.swap-line.initial {
    opacity: 1;
    filter: blur(0px);
}

.swap-line.final {
    opacity: 0;
    filter: blur(8px);
}

p {
    font-family: "GG", sans-serif;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--bg);
    opacity: 0.8;
}

.subtitle {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -80%);
    text-align: center;
    opacity: 0;
}

@media (min-width: 769px) {
    .title h1 {
        font-size: 3rem;
        line-height: 3rem;
    }
}

.word {
    display: inline-block;
    margin: 0 0.05em;
}

.line {
    margin: -0.2rem;
    overflow: hidden;
}

span {
    color: var(--accent);
}

.doll-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 160px;
    z-index: 100;
    transform: translateY(110%);
    pointer-events: none;
    will-change: transform;
    filter: blur(5px);
}

@media (min-width: 769px) {
    .doll-container {
        left: 40px;
        width: 180px;
        height: 240px;
    }
}

@media (min-width: 1200px) {
    .doll-container {
        left: 60px;
        width: 220px;
        height: 300px;
    }
}

.doll {
    position: absolute;
    bottom: 2.8rem;
    left: 20px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    opacity: 0;
}

.doll-1 {
    opacity: 1;
}

.doll-2 {
    opacity: 0;
}

@keyframes dollFrameSwitch {
    0%, 49.9% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes dollFrameSwitchAlt {
    0%, 49.9% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

.doll-container.active .doll-1 {
    animation: dollFrameSwitch 3s steps(1) infinite;
}

.doll-container.active .doll-2 {
    animation: dollFrameSwitchAlt 3s steps(1) infinite;
}

#custom-player {
    position: fixed;
    height: 75px; 
    bottom: 1.35rem;
    width: 20vw;
    left: 50%;
    transform: translate(-50%, 150%);
    filter: blur(12px);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    font-feature-settings: "ss07", "ss08", "case";
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.player-bg {
    position: absolute;
    inset: 0;
    background: #2c3e50;
    opacity: 1;
    z-index: 1;
    transition: background 1s ease;
}

.player-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    align-items: center;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.player-left {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}

#album-art {
    height: 100%; 
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.player-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding: 0 0.7rem;
    overflow: hidden;
    height: 100%;
}

.meta-inline {
    display: flex;
    align-items: center;
    padding-top: 0;
    width: 100%;
    letter-spacing: -0.04rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#song-title {
    font-size: 14px;
    font-weight: 600;
    margin-right: 6px;
    color: #fff;
    user-select: none;
}

.divider {
    font-size: 12px;
    opacity: 0.6;
    margin-right: 6px;
    color: #fff;
    user-select: none;
}

#artist-name {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
}

.lyrics-container {
    position: relative;
    width: 100%;
    height: 44px;
    padding-right: 10px; 
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

#lyrics-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 14px;
    user-select: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.lyric-line {
    min-height: 44px; 
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.5s ease, 
                filter 0.5s ease;
    transform-origin: left center;
    transform: scale(1);
    opacity: 1;
    filter: blur(4px);
    padding: 2px 0;
}

.lyric-line.active {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
    color: rgba(255,255,255,0.9); 
}

.lyric-word {
    display: inline-block;
    background-image: linear-gradient(to right, #fff var(--p, 0%), rgba(255,255,255,0.4) var(--p, 0%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: --p 0.1s linear, transform 0.3s ease;
}

.lyric-word.popped {
    color: #fff;
    transform: translateY(-1px);
}

.lyric-line.pause-line {
    opacity: 0.6;
}

.lyric-line.pause-line.active {
    opacity: 1;
}

.pause-word {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: rgba(255, 255, 255, 0.5) !important;
    animation: pauseDots 1.5s ease-in-out infinite;
}

.lyric-line.active .pause-word {
    color: rgba(255, 255, 255, 0.7) !important;
}

@keyframes pauseDots {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
