/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0A0A0A;
    font-family: 'Inter', sans-serif;
}

/* === Moon === */
#moon {
    position: fixed;
    top: 5vh;
    right: 8vw;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFDD0;
    animation: moonPulse 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes moonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* === Skyline Layer === */
#skyline {
    position: fixed;
    bottom: 60vh;
    left: 0;
    width: 100vw;
    height: 40vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.building {
    width: var(--bw);
    height: var(--bh);
    background: var(--bc);
    position: relative;
    flex-shrink: 0;
    transform: translateY(100vh);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

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

.window {
    position: absolute;
    width: 6px;
    height: 8px;
    background: #FFD700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.window.lit {
    opacity: 1;
}

.window.warm {
    background: #E8A317;
    opacity: 1;
}

.window.dim {
    opacity: 0;
}

/* === Marquee Layer === */
#marquee {
    position: fixed;
    top: 40vh;
    left: 0;
    width: 100vw;
    height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

#domain-name {
    font-family: 'Righteous', cursive;
    font-size: clamp(4rem, 10vw, 9rem);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: #FFD700;
    text-shadow: 2px 2px 0px #B08D57;
    opacity: 0;
    transition: opacity 1s ease;
}

#domain-name.visible {
    opacity: 1;
}

#subtitle-line {
    margin-top: 0.5em;
    font-family: 'Special Elite', cursive;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    letter-spacing: 0.08em;
    color: #C9A84C;
    display: flex;
    align-items: center;
    min-height: 2em;
}

#subtitle-text {
    display: inline;
}

#subtitle-text.korean {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
}

#cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #FFD700;
    margin-left: 2px;
    animation: blink 0.8s steps(2) infinite;
    font-size: 0;
    overflow: hidden;
    vertical-align: middle;
}

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

/* === Dock Layer === */
#dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 40vh;
    z-index: 2;
}

#dock-platform {
    width: 100%;
    height: 3vh;
    background: #1C1C1E;
}

#water {
    width: 100%;
    height: 37vh;
    background: #0D1B2A;
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    height: 1px;
    background: #FFD700;
    opacity: 0.08;
    left: 0;
    animation: rippleMove 6s ease-in-out infinite;
}

.ripple:nth-child(1) {
    top: 25%;
    width: 85%;
    animation-delay: 0s;
}

.ripple:nth-child(2) {
    top: 50%;
    width: 70%;
    animation-delay: 2s;
}

.ripple:nth-child(3) {
    top: 75%;
    width: 90%;
    animation-delay: 4s;
}

@keyframes rippleMove {
    0%, 100% { width: 70%; left: 15%; }
    50% { width: 100%; left: 0%; }
}

/* === Boat === */
#boat {
    position: absolute;
    top: 30%;
    animation: sailAcross 20s linear infinite;
    z-index: 3;
}

@keyframes sailAcross {
    0% { transform: translateX(-80px); }
    100% { transform: translateX(calc(100vw + 80px)); }
}

#boat-cabin {
    width: 20px;
    height: 12px;
    background: #B08D57;
    margin: 0 auto;
}

#boat-hull {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #C9A84C;
    margin: 0 auto;
    width: 60px;
    border-left-width: 10px;
    border-right-width: 10px;
}

/* === Micro Labels === */
.micro-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #FFD700;
    opacity: 0.4;
    position: absolute;
    bottom: 4px;
    left: 4px;
}
