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

html {
    overflow-x: hidden;
}

body {
    background: #fafafa;
    color: #1a1a1a;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    overflow-x: hidden;
    cursor: none;
    --gold: #d4a828;
    --gold-bright: #e8c840;
    --gold-dark: #8a6a10;
}

/* Cursor spotlight */
.cursor-spotlight {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 40, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    transition: left 0.06s linear, top 0.06s linear;
}

/* Sections */
.section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
}

.section-light {
    background: #fafafa;
    color: #1a1a1a;
}

.section-dark {
    background: #1a1a1a;
    color: #f0ece0;
}

.section-gold {
    background: rgba(212, 168, 40, 0.1);
    background-color: #fafafa;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 5;
}

/* Section dividers */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    z-index: 10;
}

.section-dark .section-divider {
    background: #2a2a2a;
}

.crack-line {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 11;
}

.crack-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 0.4s ease-out;
}

.crack-path.drawn {
    stroke-dashoffset: 0;
}

/* Logic symbols */
.logic-symbol {
    position: absolute;
    font-family: 'Syne', sans-serif;
    font-size: 15vw;
    color: rgba(26, 26, 26, 0.04);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.section-dark .logic-symbol {
    color: rgba(240, 236, 224, 0.04);
}

.sym-right {
    left: 75%;
}

.sym-neg {
    left: 25%;
}

/* Grid lines */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(26, 26, 26, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 26, 26, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Arena */
.arena-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
    justify-content: center;
}

.arena-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.arena-kanji {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #d4a828;
    margin-top: 12px;
}

.arena-subtitle {
    font-family: 'Syne Mono', monospace;
    font-size: 0.8rem;
    color: #8a6a10;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 16px;
}

/* Section headers */
.section-header {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 40px;
    line-height: 1.1;
}

.weight-heavy {
    font-weight: 800;
}

.weight-light {
    font-weight: 400;
}

.light-text {
    color: #f0ece0;
}

/* Argument blocks */
.block-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arg-block {
    border: 3px solid #1a1a1a;
    padding: 2rem;
    background: #fafafa;
    box-shadow: 6px 6px 0px #1a1a1a;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.arg-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block-tag {
    display: inline-block;
    font-family: 'Syne Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4a828;
    margin-bottom: 8px;
    background: #1a1a1a;
    padding: 2px 8px;
}

.tag-gold {
    background: #d4a828;
    color: #1a1a1a;
}

.block-text {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
}

.block-text-dark {
    font-family: 'DM Sans', sans-serif;
    color: #f0ece0;
}

/* Counter blocks (dark section) */
.opposition-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.counter-block {
    border: 3px solid #d4a828;
    padding: 2rem;
    background: rgba(212, 168, 40, 0.05);
    box-shadow: 6px 6px 0px #8a6a10;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.counter-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ronpa section */
.ronpa-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ronpa-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #d4a828;
    margin-bottom: 30px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ronpa-title.visible {
    opacity: 1;
}

.shatter-zone {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.shatter-block {
    border: 3px solid #d4a828;
    padding: 12px 24px;
    font-family: 'Syne Mono', monospace;
    font-size: 0.8rem;
    color: #d4a828;
    background: rgba(212, 168, 40, 0.08);
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

.shatter-block.shattered[data-dir="1"] {
    transform: rotate(-25deg) translate(-100px, 80px);
    opacity: 0;
}

.shatter-block.shattered[data-dir="2"] {
    transform: rotate(15deg) translate(20px, 120px);
    opacity: 0;
}

.shatter-block.shattered[data-dir="3"] {
    transform: rotate(30deg) translate(80px, 60px);
    opacity: 0;
}

.ronpa-explain {
    font-family: 'DM Sans', sans-serif;
    max-width: 600px;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.ronpa-crack {
    margin-top: 20px;
}

/* Mountain section */
.mountain-section {
    padding-bottom: 0;
}

.mountain-text {
    font-family: 'DM Sans', sans-serif;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #1a1a1a;
}

.mountain-landscape {
    width: 100%;
    margin-top: 60px;
}

.mountain-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .section-content {
        padding: 60px 20px;
    }

    .arg-block,
    .counter-block {
        padding: 1.5rem;
    }

    .shatter-zone {
        flex-direction: column;
        align-items: center;
    }

    body {
        cursor: auto;
    }

    .cursor-spotlight {
        display: none;
    }
}
