/* ronpa.day — Dopamine Neon Burst Landing */
/* Typography weights: Montserrat 700/800, Inter 400/500, JetBrains Mono 600/700 */

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

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    background: #0A0A14;
    color: #8A8AA0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kanji-watermark {
    font-size: 20vw;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

/* ===== COUNTDOWN RING ===== */
.countdown-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem;
    z-index: 1;
}

.countdown-ring {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #1A1A2E;
    stroke-width: 4;
}

.ring-progress {
    fill: none;
    stroke: #00FF88;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}

.countdown-digits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.15rem;
    animation: pulse 2s ease-in-out infinite;
}

.countdown-digit {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #FFFFFF;
}

.countdown-sep {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: #8A8AA0;
}

/* ===== PROPOSITION ===== */
.proposition {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #FFFFFF;
    text-transform: uppercase;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

/* ===== CHOICE BUTTONS ===== */
.choice-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-for,
.btn-against {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 1rem 3rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
}

.btn-for {
    background: #00FF88;
    color: #0A0A14;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.1);
}

.btn-for:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6), 0 0 80px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.btn-for:active {
    transform: translateY(0);
}

.btn-against {
    background: #FF0080;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4), 0 0 60px rgba(255, 0, 128, 0.1);
}

.btn-against:hover {
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.6), 0 0 80px rgba(255, 0, 128, 0.2);
    transform: translateY(-2px);
}

.btn-against:active {
    transform: translateY(0);
}

.btn-for.chosen,
.btn-against.chosen {
    transform: scale(1.08);
}

.btn-for.dimmed,
.btn-against.dimmed {
    opacity: 0.35;
    pointer-events: none;
}

.choice-feedback {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #FFD700;
    margin-top: 1.25rem;
    min-height: 1.2em;
    z-index: 1;
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.choice-feedback.show {
    opacity: 1;
}

/* ===== NEON DIVIDER ===== */
.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, #00FF88, transparent 30%, transparent 70%, #FF0080);
    max-width: 900px;
    margin: 0 auto;
}

/* ===== PULSE DOT ===== */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.pulse-dot-green {
    background: #00FF88;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.pulse-dot-magenta {
    background: #FF0080;
    animation: dotPulse 1.5s ease-in-out infinite;
}

/* ===== ARENA ===== */
.arena {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.arena-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 2.5rem;
}

.arena-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.side-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.for-label {
    color: #00FF88;
}

.against-label {
    color: #FF0080;
}

/* ===== ARGUMENT CARDS ===== */
.arg-card {
    background: #141422;
    border: 1px solid #1A1A2E;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.arg-card:hover {
    transform: translateY(-2px);
}

.arg-card[data-side="for"]:hover {
    border-color: rgba(0, 255, 136, 0.3);
}

.arg-card[data-side="against"]:hover {
    border-color: rgba(255, 0, 128, 0.3);
}

.arg-user {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8A8AA0;
    display: block;
    margin-bottom: 0.5rem;
}

.arg-text {
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* ===== VOTE BADGES ===== */
.vote-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.vote-badge:hover {
    transform: scale(1.08);
}

.vote-badge.voted {
    transform: scale(1.12);
}

.for-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00FF88;
}

.for-badge:hover {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.against-badge {
    background: rgba(255, 0, 128, 0.1);
    color: #FF0080;
}

.against-badge:hover {
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

.vote-arrow {
    transition: transform 0.3s ease;
}

.vote-badge.voted .vote-arrow {
    transform: translateY(-2px);
}

/* ===== STREAK ===== */
.streak {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.streak-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.streak-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.day-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.day-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day-circle.filled {
    background: #FFD700;
}

.day-circle.missed {
    border: 1px solid #1A1A2E;
    background: transparent;
}

.day-circle.today {
    background: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.15);
    animation: todayGlow 2s ease-in-out infinite;
}

.day-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #8A8AA0;
    text-transform: uppercase;
}

.streak-text {
    font-size: 0.85rem;
    color: #8A8AA0;
    margin-bottom: 2rem;
}

.streak-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #FFD700;
}

.streak-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF;
}

.stat-label {
    font-size: 0.7rem;
    color: #8A8AA0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== HALL OF FAME ===== */
.hall {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hall-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 2rem;
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hall-card {
    background: #141422;
    border: 1px solid #1A1A2E;
    padding: 1.5rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.hall-card:hover {
    border-color: rgba(255, 215, 0, 0.25);
    transform: translateY(-3px);
}

.hall-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8A8AA0;
    display: block;
    margin-bottom: 0.5rem;
}

.hall-topic {
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hall-winner {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hall-excerpt {
    font-size: 0.78rem;
    color: #8A8AA0;
    font-style: italic;
    line-height: 1.5;
    border-left: 2px solid #1A1A2E;
    padding-left: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
    letter-spacing: 0.1em;
}

.footer-hint {
    font-size: 0.85rem;
    color: #8A8AA0;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.footer-copy {
    font-size: 0.7rem;
    color: #8A8AA0;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes todayGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.15); }
    50% { box-shadow: 0 0 14px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.25); }
}

/* ===== FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
    }

    .countdown-wrapper {
        width: 160px;
        height: 160px;
    }

    .countdown-ring {
        width: 160px;
        height: 160px;
    }

    .proposition {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .choice-row {
        gap: 1rem;
    }

    .btn-for,
    .btn-against {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .arena-split {
        grid-template-columns: 1fr;
    }

    .hall-grid {
        grid-template-columns: 1fr;
    }

    .streak-stats {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .btn-for,
    .btn-against {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .streak-row {
        gap: 0.6rem;
    }

    .streak-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}
