:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #fde047;
    --accent-glow: rgba(253, 224, 71, 0.4);
    --bg-dark: #0b1120;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border: #334155;
    --error: #f87171;
    --success: #34d399;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

.site-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.5) 0%, rgba(11, 17, 32, 0.9) 80%, var(--bg-dark) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.main-title {
    margin-bottom: 20px;
}

.title-top {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
}
.title-mid {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 0 4px 15px rgba(253, 224, 71, 0.3);
}
.title-bot {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Matchup Focus Display */
.matchup-focus {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 25px auto 35px;
    background: rgba(15, 23, 42, 0.6);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 500px;
    backdrop-filter: blur(8px);
}

.matchup-focus .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.matchup-focus .flag {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.matchup-focus .name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.matchup-focus .vs-badge {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-style: italic;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    flex-shrink: 0;
}

/* Event Period */
.event-period {
    background: rgba(37, 99, 235, 0.15);
    padding: 15px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.period-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent);
}

.period-desc {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
}

/* Main Content Area */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Screens (Success, Ended) */
.status-screen {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}

.status-screen .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-screen h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #fff;
}

.highlight-text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 24px;
}

.ended-thanks, .success-details {
    background: rgba(0,0,0,0.2);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.thanks-title {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.thanks-desc {
    color: #e2e8f0;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.closing-msg {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 24px;
}

.prize-box {
    display: inline-block;
    background: rgba(253, 224, 71, 0.1);
    border: 1px solid rgba(253, 224, 71, 0.4);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
}

/* Form Section */
.form-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.form-group {
    margin-bottom: 30px;
}

/* Prediction Cards */
.prediction-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.prediction-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.prediction-card input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.card-inner {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 110px;
}

.card-inner .flag {
    font-size: 2rem;
    margin-bottom: 8px;
}

.card-inner .text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.prediction-card:hover .card-inner {
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(37, 99, 235, 0.2);
}

.prediction-card input:checked + .card-inner {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), inset 0 0 0 2px var(--accent);
    transform: translateY(-2px);
}

.prediction-card input:checked + .card-inner .text {
    color: #fff;
    font-weight: 900;
}

/* Inputs */
.user-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border);
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), inset 0 2px 4px rgba(0,0,0,0.3);
}

input::placeholder {
    color: #64748b;
}

.error-msg {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 500;
}

.global-error {
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3), inset 0 1px 1px rgba(255,255,255,0.2);
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Info Sections */
.info-sections {
    display: grid;
    gap: 20px;
}

.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-content ul {
    list-style: none;
}

.info-content li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.info-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.info-content li strong {
    color: #e2e8f0;
}

.text-sm li {
    font-size: 0.95rem;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce {
    animation: bounce 2s infinite;
}

/* Footer slot */
#wbx-powered-by-slot {
    margin-top: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .title-top { font-size: 1.2rem; }
    .title-mid { font-size: 2.2rem; }
    .title-bot { font-size: 1.4rem; }
    
    .prediction-options {
        grid-template-columns: 1fr;
    }
    
    .card-inner {
        min-height: 70px;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 15px;
    }
    
    .card-inner .flag {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    
    .user-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .matchup-focus {
        gap: 15px;
        padding: 20px 15px;
    }
    .matchup-focus .flag {
        font-size: 3rem;
    }
    .matchup-focus .name {
        font-size: 1.1rem;
    }
    .matchup-focus .vs-badge {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}
