/* parallel.quest - Memphis Multiverse Quest */
/* Colors: #ffd166, #1a1a1a, #faf3e0, #118ab2, #06d6a0, #ef476f, #e63946, #000000 */
/* Fonts: Bungee (display), Outfit (body 500), Space Mono (UI) */

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    background: #faf3e0;
    color: #1a1a1a;
    overflow-x: hidden;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* Hero Section */
.hero {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf3e0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(26,26,26,0.03) 20px, rgba(26,26,26,0.03) 22px);
}

.hero-circle {
    width: 60vmin;
    height: 60vmin;
    border-radius: 50%;
    background: #ffd166;
    border: 4px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 2;
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.8s ease;
}

.hero-circle.split {
    border-radius: 10px;
    width: 80vw;
    height: 50vh;
}

.domain-title {
    font-family: 'Bungee', cursive;
    font-size: clamp(32px, 6vw, 96px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.1;
}

.hero-prompt {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    margin-top: 20px;
    color: #1a1a1a;
    max-width: 400px;
}

.start-btn {
    font-family: 'Bungee', cursive;
    font-size: 16px;
    letter-spacing: 0.08em;
    padding: 14px 36px;
    margin-top: 30px;
    background: #1a1a1a;
    color: #ffd166;
    border: 4px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.start-btn:hover {
    background: #ef476f;
    color: #faf3e0;
    transform: rotate(-2deg) scale(1.05);
}

/* Quest Split */
.quest-split {
    display: none;
    width: 100vw;
    min-height: 100vh;
    flex-direction: row;
    position: relative;
}

.quest-split.active {
    display: flex;
}

.split-left,
.split-right {
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.split-left {
    background: #ef476f;
    border-right: 2px solid #1a1a1a;
}

.split-right {
    background: #118ab2;
    border-left: 2px solid #1a1a1a;
}

.split-content {
    text-align: center;
    max-width: 360px;
}

.choice-shape {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.choice-title {
    font-family: 'Bungee', cursive;
    font-size: 32px;
    color: #faf3e0;
    margin-bottom: 16px;
}

.choice-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #faf3e0;
    margin-bottom: 30px;
}

.choice-btn {
    font-family: 'Bungee', cursive;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 12px 28px;
    background: #faf3e0;
    color: #1a1a1a;
    border: 4px solid #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.choice-btn:hover {
    transform: rotate(3deg) scale(1.08);
    background: #ffd166;
}

/* Branches / Quest Map */
.branches {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding: 80px 40px;
    background: #faf3e0;
    overflow: hidden;
}

.section-title {
    font-family: 'Bungee', cursive;
    font-size: 48px;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: 0.04em;
}

.connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connector-line {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 3;
    stroke-dasharray: 8 6;
    stroke-linecap: round;
}

/* Quest Nodes */
.quest-node {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

.quest-node:hover {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 10;
}

.quest-node svg {
    width: 100%;
    height: 100%;
}

.node-label {
    display: block;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    margin-top: 6px;
    text-transform: uppercase;
}

.quest-node.activated {
    animation: nodeActivate 0.5s ease;
}

@keyframes nodeActivate {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1); }
}

/* Counter Section */
.counter-section {
    width: 100vw;
    padding: 100px 40px;
    background: #1a1a1a;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.counter-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.counter-num {
    font-family: 'Bungee', cursive;
    font-size: 120px;
    color: #ffd166;
    line-height: 1;
    transition: color 0.3s ease;
}

.counter-text {
    font-family: 'Bungee', cursive;
    font-size: 24px;
    color: #faf3e0;
    text-align: left;
    line-height: 1.3;
}

.counter-caption {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #faf3e0;
    opacity: 0.7;
    max-width: 400px;
}

/* Footer */
.quest-footer {
    width: 100vw;
    padding: 30px 40px;
    background: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4px solid #ffd166;
}

.footer-domain {
    font-family: 'Bungee', cursive;
    font-size: 18px;
    color: #ffd166;
}

.footer-tag {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #faf3e0;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .quest-split {
        flex-direction: column;
    }

    .split-left,
    .split-right {
        width: 100%;
        min-height: 50vh;
    }

    .domain-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .quest-node {
        width: 80px;
        height: 80px;
    }

    .counter-num {
        font-size: 72px;
    }

    .counter-block {
        flex-direction: column;
        gap: 10px;
    }

    .counter-text {
        text-align: center;
    }

    .quest-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
