/* yesang.xyz — eclectic collage mix */

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

body {
    background: #FFFFFF;
    color: #1A1A1A;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== Shared ========== */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== Hero Zone ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #FFFFFF;
}

.collage-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Diagonal collage strips */
.collage-strip {
    position: absolute;
    height: 40px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.08);
}

.strip-pink {
    background: #FF4D6D;
    width: 280px;
    top: 15%;
    left: -30px;
    transform: rotate(var(--angle, -5deg));
    opacity: 0.18;
}

.strip-yellow {
    background: #FFD166;
    width: 220px;
    top: 45%;
    right: -20px;
    transform: rotate(var(--angle, 3deg));
    opacity: 0.22;
}

.strip-blue {
    background: #118AB2;
    width: 200px;
    bottom: 20%;
    left: 8%;
    transform: rotate(var(--angle, -2deg));
    opacity: 0.15;
}

.strip-green {
    background: #06D6A0;
    width: 160px;
    top: 70%;
    right: 15%;
    transform: rotate(var(--angle, 4deg));
    opacity: 0.12;
}

/* Newspaper texture block */
.texture-newspaper {
    position: absolute;
    width: 300px;
    height: 200px;
    top: 10%;
    right: 5%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(26,26,26,0.03) 3px,
            rgba(26,26,26,0.03) 4px
        ),
        linear-gradient(90deg, rgba(245,240,232,0.6), rgba(245,240,232,0.3));
    transform: rotate(2deg);
    clip-path: polygon(2% 0%, 98% 1%, 100% 97%, 0% 100%);
    mix-blend-mode: multiply;
}

/* Grid texture block (tech) */
.texture-grid {
    position: absolute;
    width: 250px;
    height: 180px;
    bottom: 8%;
    left: 3%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(17,138,178,0.08) 19px,
            rgba(17,138,178,0.08) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(17,138,178,0.08) 19px,
            rgba(17,138,178,0.08) 20px
        );
    transform: rotate(-1.5deg);
    opacity: 0.7;
}

/* Photographic fragment */
.texture-photo-fragment {
    position: absolute;
    width: 180px;
    height: 130px;
    top: 55%;
    left: 12%;
    background: linear-gradient(135deg, #073B4C 0%, #118AB2 60%, #06D6A0 100%);
    opacity: 0.08;
    transform: rotate(-3deg);
    clip-path: polygon(5% 3%, 95% 0%, 100% 92%, 3% 98%);
    mix-blend-mode: multiply;
}

/* Data chart SVG overlay */
.data-chart-overlay {
    position: absolute;
    width: 350px;
    height: 120px;
    bottom: 25%;
    right: 10%;
    opacity: 0.6;
    transform: rotate(1deg);
}

.data-chart-overlay svg {
    width: 100%;
    height: 100%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    color: #1A1A1A;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #118AB2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.prompt-callout {
    background: #F5F0E8;
    padding: 1.1rem 2rem;
    display: inline-block;
    margin-bottom: 2rem;
    clip-path: polygon(0% 0%, 97% 2%, 100% 96%, 3% 100%);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
    transform: rotate(-0.5deg);
}

.prompt-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #1A1A1A;
}

.cta-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    background: #FF4D6D;
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
}

.cta-btn:hover {
    transform: translateY(-2px) rotate(0.5deg);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}

/* ========== Prediction Input ========== */
.predict-input {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.predict-form {
    background: #F5F0E8;
    padding: 2rem;
    border-radius: 4px;
    clip-path: polygon(0% 0%, 99% 1%, 100% 98%, 1% 100%);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
}

.predict-prompt-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    display: block;
    margin-bottom: 0.25rem;
}

.predict-prompt-q {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.confidence-group {
    margin-bottom: 1.5rem;
}

.confidence-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1A1A1A;
    display: block;
    margin-bottom: 0.75rem;
}

.slider-container {
    position: relative;
}

/* Custom confidence slider */
.confidence-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #FF4D6D 0%, #FFD166 50%, #06D6A0 100%);
    outline: none;
    cursor: pointer;
}

.confidence-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #1A1A1A;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.confidence-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.confidence-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #1A1A1A;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.15);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.slider-low,
.slider-high {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.slider-val {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1A;
    transition: color 0.3s ease;
}

.reasoning-group {
    margin-bottom: 1.25rem;
}

.reasoning-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1A1A1A;
    display: block;
    margin-bottom: 0.5rem;
}

.reasoning-field {
    width: 100%;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem;
    border: 2px solid #E5E5E5;
    border-radius: 4px;
    background: #FFFFFF;
    resize: vertical;
    color: #1A1A1A;
    transition: border-color 0.2s ease;
}

.reasoning-field:focus {
    border-color: #118AB2;
    outline: none;
}

.submit-prediction {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    background: #FF4D6D;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-prediction:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.18);
}

.submit-prediction.submitted {
    background: #06D6A0;
    pointer-events: none;
}

/* ========== Active Predictions ========== */
.predictions {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

.pred-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transform: rotate(calc(var(--seed, 0.5) * 3deg - 1.5deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.pred-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Card textures */
.card-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: multiply;
}

.tech-texture {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(255,255,255,0.15) 11px, rgba(255,255,255,0.15) 12px),
        repeating-linear-gradient(90deg, transparent, transparent 11px, rgba(255,255,255,0.15) 11px, rgba(255,255,255,0.15) 12px);
}

.culture-texture {
    background:
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,77,109,0.06) 8px, rgba(255,77,109,0.06) 9px);
}

.events-texture {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(26,26,26,0.04) 3px, rgba(26,26,26,0.04) 4px);
}

.tech-bg {
    background: #073B4C;
    color: #FFFFFF;
}

.culture-bg {
    background: #F5F0E8;
    color: #1A1A1A;
}

.events-bg {
    background: #FFFFFF;
    color: #1A1A1A;
    border: 1px solid #E5E5E5;
}

.pred-cat {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
}

.pred-question {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
}

.consensus {
    margin-bottom: 0.5rem;
    position: relative;
}

.consensus-label {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.25rem;
}

.consensus-bar {
    height: 5px;
    background: rgba(128,128,128,0.2);
    border-radius: 3px;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.consensus-fill {
    height: 100%;
    background: #118AB2;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.tech-bg .consensus-fill {
    background: #06D6A0;
}

.consensus-val {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    position: relative;
}

.pred-deadline {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    opacity: 0.6;
    position: relative;
}

/* ========== Crowd Consensus ========== */
.crowd-consensus {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F0E8 100%);
}

.crowd-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crowd-item {
    display: grid;
    grid-template-columns: 1fr 150px 40px;
    align-items: center;
    gap: 1rem;
}

.crowd-topic {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #1A1A1A;
}

.crowd-bar-track {
    height: 8px;
    background: #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.crowd-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4D6D, #FFD166, #06D6A0);
    border-radius: 4px;
    transition: width 1s ease;
}

.crowd-pct {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #118AB2;
    text-align: right;
}

/* ========== Resolved ========== */
.resolved {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.resolved-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.resolved-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    clip-path: polygon(0% 0%, 100% 1%, 99% 100%, 1% 99%);
}

.resolved-card:hover {
    transform: rotate(-0.5deg);
}

/* Reveal mask for animation */
.reveal-mask {
    position: absolute;
    inset: 0;
    background: #073B4C;
    z-index: 3;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.6s ease;
    pointer-events: none;
}

.resolved-card.revealed .reveal-mask {
    clip-path: circle(150% at 50% 50%);
    opacity: 0;
    transition: clip-path 0.6s ease, opacity 0.3s ease 0.5s;
}

.stamp {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    display: inline-block;
    transform: rotate(15deg);
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 2.5px solid;
    z-index: 2;
    letter-spacing: 0.05em;
}

.stamp.correct {
    color: #06D6A0;
    border-color: #06D6A0;
}

.stamp.wrong {
    color: #FF4D6D;
    border-color: #FF4D6D;
}

/* Stamp entrance animation */
@keyframes stampSlam {
    0% { transform: rotate(15deg) scale(2.5); opacity: 0; }
    60% { transform: rotate(15deg) scale(0.9); opacity: 1; }
    80% { transform: rotate(15deg) scale(1.05); }
    100% { transform: rotate(15deg) scale(1); opacity: 1; }
}

.resolved-card.revealed .stamp {
    animation: stampSlam 0.5s ease forwards 0.2s;
}

.resolved-q {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    padding-right: 4.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.resolved-meta {
    font-size: 0.75rem;
    color: #999;
    font-family: 'Work Sans', sans-serif;
}

/* ========== Scoring / Brier ========== */
.scoring {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.score-panel {
    background: #F5F0E8;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    clip-path: polygon(1% 0%, 100% 1%, 99% 100%, 0% 99%);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.08);
}

.score-display {
    margin-bottom: 1.5rem;
}

.score-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-num {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    color: #118AB2;
    display: block;
    line-height: 1.2;
}

.score-rank {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #06D6A0;
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.sb-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    color: #1A1A1A;
    min-width: 5.5rem;
}

.sb-track {
    flex: 1;
    height: 6px;
    background: #E5E5E5;
    border-radius: 3px;
    overflow: hidden;
}

.sb-fill {
    height: 100%;
    background: #118AB2;
    border-radius: 3px;
    transition: width 1s ease;
}

.sb-fill.yellow { background: #FFD166; }
.sb-fill.green { background: #06D6A0; }

.sb-val {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #1A1A1A;
    min-width: 2rem;
    text-align: right;
}

.score-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26,26,26,0.1);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: #1A1A1A;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.7rem;
    color: #999;
}

/* ========== Footer ========== */
.footer {
    background: #073B4C;
    color: #FFFFFF;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Footer collage scraps */
.footer-collage {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-scrap {
    position: absolute;
    opacity: 0.08;
}

.scrap-1 {
    width: 200px;
    height: 60px;
    background: #FF4D6D;
    top: 10%;
    left: -20px;
    transform: rotate(-4deg);
    clip-path: polygon(3% 0%, 97% 5%, 100% 95%, 0% 100%);
}

.scrap-2 {
    width: 150px;
    height: 45px;
    background: #FFD166;
    bottom: 15%;
    right: 5%;
    transform: rotate(3deg);
    clip-path: polygon(0% 3%, 98% 0%, 100% 97%, 2% 100%);
}

.scrap-3 {
    width: 180px;
    height: 50px;
    background: #06D6A0;
    top: 50%;
    right: 30%;
    transform: rotate(-1.5deg);
    clip-path: polygon(1% 2%, 100% 0%, 98% 100%, 0% 97%);
}

.footer-inner {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    z-index: 1;
}

.footer-prompt {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.flink {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #FFFFFF;
}

.footer-copy {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

/* ========== Keyframe Animations ========== */
@keyframes revealCircle {
    0% { clip-path: circle(0% at 50% 50%); }
    100% { clip-path: circle(150% at 50% 50%); }
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,77,109,0); }
}

@keyframes countUp {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes stripeDrift {
    0% { transform: translateX(-10px) rotate(var(--angle, -5deg)); }
    100% { transform: translateX(10px) rotate(var(--angle, -5deg)); }
}

/* Animated strips */
.collage-strip {
    animation: stripeDrift 8s ease-in-out infinite alternate;
}

.strip-yellow { animation-delay: -2s; animation-duration: 10s; }
.strip-blue { animation-delay: -4s; animation-duration: 12s; }
.strip-green { animation-delay: -1s; animation-duration: 9s; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .prediction-cards { grid-template-columns: 1fr; }
    .pred-card { transform: none !important; }
    .resolved-cards { grid-template-columns: 1fr; }
    .crowd-item { grid-template-columns: 1fr; gap: 0.25rem; }
    .crowd-bar-track { width: 100%; }
    .crowd-pct { text-align: left; }
    .score-stats { gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .hero { min-height: 80vh; }
    .section-heading { font-size: 1.5rem; }
    .predict-form { padding: 1.25rem; }
}
