:root {
    --bg:   #ffffff;
    --text: #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin-top: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    background: var(--bg);
    color: #000000;
    color: var(--text);
    font-family: 'Playfair Display', serif;
    cursor: none !important;
    transition: background 0.6s ease, color 0.6s ease;
}

* { cursor: none !important; }

/* ─── Landing ─────────────────────────────────────────────────────────────── */

#landing {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 50;
    transition: opacity 0.8s ease, background 0.6s ease;
}

#ticket-logo {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
    cursor: none;
    transform: rotate(-8deg);
    transition: transform 0.4s ease;
}

#ticket-logo:hover {
    transform: rotate(-4deg);
}

/* ─── Main ────────────────────────────────────────────────────────────────── */

#main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, filter 0.4s ease;
}

/* ─── Container ───────────────────────────────────────────────────────────── */

#container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: var(--bg);
    transition: background 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10vw;
}

/* ─── Disc ────────────────────────────────────────────────────────────────── */

#disc {
    overflow: hidden;
    position: fixed;
    z-index: 10;
    background: inherit;
    mix-blend-mode: darken;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#disc img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-color {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 11;
    mix-blend-mode: multiply;
    opacity: 0.75;
}

/* ─── Text block ──────────────────────────────────────────────────────────── */

#text-block {
    position: relative;
    z-index: 20;
    max-width: 900px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(26px, 2vw, 52px);
    color: var(--text);
    font-weight: 400;
    transition: color 0.6s ease;
    text-wrap: pretty;
}

.swap-word {
    font-style: italic;
    display: inline-block;
    color: var(--accent);
    opacity: 1;
    cursor: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.swap-word:hover {
    color: var(--hover) !important;
    opacity: 1;
}

/* ─── Blur when modal open ────────────────────────────────────────────────── */

.blurred {
    filter: blur(12px);
    transition: filter 0.4s ease;
}

/* ─── Bottom bar ──────────────────────────────────────────────────────────── */

#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 30;
    background: transparent;
}

#color-btn,
#about-btn {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 15px;
    color: var(--text);
    opacity: 0.5;
    background: transparent;
    border: none;
    cursor: none;
    padding: 0;
    transition: opacity 0.3s ease;
}

#color-btn:hover,
#about-btn:hover {
    opacity: 1;
}

/* ─── About modal ─────────────────────────────────────────────────────────── */

#about-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12vw;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#about-modal.visible {
    opacity: 1;
    pointer-events: all;
}

#about-content {
    position: relative;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

#about-content::-webkit-scrollbar {
    display: none;
}

#about-close {
    position: fixed;
    top: 32px;
    right: 36px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 12px;
    color: var(--text);
    opacity: 0.4;
    background: transparent;
    border: none;
    cursor: none;
    padding: 0;
    transition: opacity 0.2s ease;
}

#about-close:hover {
    opacity: 1;
}

#about-content h2 {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.5;
}

#about-content h3 {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 400;
    opacity: 0.5;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

#about-content h4 {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 400;
    opacity: 0.5;
    margin-top: 3rem;
}

#about-content p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-divider {
    width: 40px;
    height: 0.5px;
    background: var(--text);
    opacity: 0.5;
    margin: 2rem auto;
}

/* ─── Custom cursor ───────────────────────────────────────────────────────── */

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--text);
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, background 0.2s ease;
}

#cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--text);
    opacity: 0;
    transform: translate(14px, -50%);
    transition: opacity 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    #about-modal {
        padding: 0 6vw;
    }

    #bottom-bar {
        padding: 0 20px;
    }
}
