:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --spoiler-bg: #fef2f2;
    --spoiler-text: #991b1b;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: var(--font-family); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1128px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Header */
.main-header {
    background: var(--card-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800; text-decoration: none; color: #000000; }
.logo span { color: var(--accent-color); }
.desktop-nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; margin: 0 12px; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--accent-color); }
.date-tag { background: #eff6ff; color: var(--accent-color); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

/* Layout */
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin: 32px 0; }

/* Breadcrumbs */
.modern-breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 24px; }
.modern-breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.modern-breadcrumbs a:hover { color: var(--accent-color); }
.modern-breadcrumbs .sep { color: var(--border-color); font-weight: 400; }
.modern-breadcrumbs .current { color: var(--accent-color); }

/* Spoiler Alert */
.spoiler-alert {
    background: var(--spoiler-bg);
    color: var(--spoiler-text);
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    border: 1px solid #fee2e2;
}

/* Main Card */
.main-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -1px; }
.puzzle-info { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }
.puzzle-info span { color: var(--accent-color); font-weight: 700; }

/* Featured Image */
.hero-image {
    max-width: 500px;
    margin: 0 auto 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.hero-image img { width: 100%; height: auto; display: block; }

.welcome-box { background: #f1f5f9; padding: 24px; border-radius: 16px; margin-bottom: 40px; font-size: 1rem; border-left: 4px solid var(--accent-color); }

/* Reveal Sections */
.section-container { margin-bottom: 48px; }
.section-title { margin-bottom: 24px; }
.section-title h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.title-line { width: 60px; height: 4px; background: var(--accent-color); border-radius: 2px; }

.btn-reveal-main {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-reveal-main:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-reveal-main span { font-size: 1.25rem; font-weight: 800; }
.btn-reveal-main small { opacity: 0.8; font-size: 0.8rem; }

.ladder-grid { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 24px; }
.ladder-step {
    background: white;
    border: 2px solid var(--accent-color);
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-color);
    width: 240px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.clues-list { display: grid; gap: 16px; }
.clue-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.clue-info { display: flex; align-items: center; gap: 16px; }
.clue-num { background: white; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-color); font-weight: 800; color: var(--accent-color); }
.clue-info h3 { font-size: 1rem; font-weight: 700; }

.btn-reveal-small { background: white; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 8px 16px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-reveal-small:hover { background: var(--accent-color); color: white; }

/* Final Challenge Card (Dark) */
.final-challenge-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 24px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.final-badge { position: absolute; top: 20px; right: 24px; background: var(--accent-color); padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.final-clue { font-size: 1.2rem; margin-bottom: 24px; font-weight: 600; opacity: 0.9; }
.final-reveal-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-reveal-final { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 12px 24px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-reveal-final:hover { background: white; color: var(--text-main); }

/* Bookmark CTA */
.bookmark-cta {
    background: #fffbeb;
    border: 2px dashed #fcd34d;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
}
.bookmark-content { display: flex; align-items: center; gap: 20px; }
.bookmark-icon { font-size: 2rem; }
.bookmark-text h3 { font-size: 1.15rem; font-weight: 800; color: #92400e; margin-bottom: 4px; }
.bookmark-text p { font-size: 0.9rem; color: #b45309; }
.star-badge { background: #f59e0b; color: white; padding: 10px 20px; border-radius: 50px; font-weight: 800; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }

/* How to Play Premium */
.how-to-premium { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 40px; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.how-to-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.how-to-step { padding: 24px; background: #f8fafc; border-radius: 16px; transition: all 0.3s; border: 1px solid transparent; }
.how-to-step:hover { border-color: var(--accent-color); background: white; box-shadow: var(--shadow-md); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-count { font-size: 0.8rem; font-weight: 800; color: var(--accent-color); background: #eff6ff; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.step-head h4 { font-size: 1.1rem; font-weight: 800; }

/* Prediction / Countdown Page */
.scheduled-msg { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.countdown-section { text-align: center; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); padding: 48px; border-radius: 24px; margin-bottom: 32px; border: 1px solid #bfdbfe; }
.countdown-timer { font-size: 3.5rem; font-weight: 800; color: var(--accent-color); letter-spacing: -2px; }
.prediction-box { background: #fffbeb; border: 1px solid #fde68a; padding: 24px; border-radius: 20px; margin-bottom: 32px; }
.verify-badge { background: #d97706; color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; margin-bottom: 12px; display: inline-block; }
/* SEO Pillar Section */
.seo-pillar { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border-color); }
.seo-pillar h2 { font-size: 1.75rem; margin-bottom: 24px; color: var(--text-main); letter-spacing: -0.5px; }
.seo-pillar h3 { font-size: 1.25rem; margin: 32px 0 16px; color: var(--text-main); }
/* FAQ Section Specifics */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.faq-item { background: #fdfdfd; border: 1px solid var(--border-color); padding: 24px; border-radius: 16px; transition: 0.2s; }
.faq-item:hover { border-color: var(--accent-color); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.faq-item h4 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 12px; font-weight: 800; display: flex; align-items: flex-start; gap: 10px; }
.faq-item h4::before { content: "Q:"; color: var(--accent-color); font-size: 0.9rem; }
.faq-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.clue-reveal-box { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 20px; padding: 32px; margin-bottom: 32px; text-align: center; }
.reveal-header { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 1px; }

.expert-details { margin-top: 32px; color: var(--text-muted); font-size: 1rem; }
.expert-details p { margin-bottom: 20px; }
.eeat-box { background: #f0fdf4; border-left: 4px solid var(--success); padding: 20px; border-radius: 12px; margin: 24px 0; color: #166534; }

.related-clues { margin-top: 48px; border-top: 1px solid var(--border-color); padding-top: 32px; }
.related-clues h4 { margin-bottom: 20px; font-size: 1.1rem; }
.clue-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.clue-tag-link { text-decoration: none; background: #eff6ff; color: var(--accent-color); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; border: 1px solid #dbeafe; transition: 0.2s; }
.clue-tag-link:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); }
.cta-back { margin-top: 40px; text-align: center; }

/* Pagination */
.puzzle-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-color); }
.nav-btn { text-decoration: none; border: 1px solid var(--border-color); padding: 20px; border-radius: 16px; transition: 0.2s; }
.nav-btn:hover { border-color: var(--accent-color); background: #f0f7ff; }
.nav-label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.nav-title { font-size: 1.15rem; font-weight: 800; color: var(--accent-color); }
.next { text-align: right; }

/* Sidebar Widgets */
.sidebar-card { background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.sidebar-title-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sidebar-title-group h4 { margin-bottom: 0; font-size: 1.1rem; font-weight: 800; }
.timer-sidebar { font-size: 1.75rem; font-weight: 800; color: var(--accent-color); margin-top: 12px; text-align: center; }

.archive-list-modern { display: flex; flex-direction: column; gap: 10px; }
.archive-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: 12px; text-decoration: none; color: var(--text-main); transition: 0.2s; }
.archive-item:hover { border-color: var(--accent-color); transform: translateX(5px); background: white; }
.archive-id-badge { background: #eff6ff; color: var(--accent-color); font-weight: 800; font-size: 0.75rem; padding: 4px 10px; border-radius: 8px; }
.archive-details { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.archive-date { font-size: 0.85rem; font-weight: 700; }
.archive-theme { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.footer { background: white; border-top: 1px solid var(--border-color); padding: 80px 0 40px; margin-top: 80px; }
.footer-content-wrapper { display: grid; grid-template-columns: 1.5fr 3fr; gap: 64px; margin-bottom: 64px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h5 { font-size: 0.9rem; font-weight: 800; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col a:hover { color: var(--accent-color); }
.footer-logo { font-size: 1.5rem; margin-bottom: 20px; }
.copyright { text-align: center; border-top: 1px solid var(--border-color); padding-top: 40px; font-size: 0.8rem; color: var(--text-muted); }

/* Legal Content Styling */
.legal-content-rich h1 { font-size: 2.2rem; margin-bottom: 30px; color: var(--text-main); }
.legal-content-rich h2 { font-size: 1.5rem; margin: 40px 0 20px; color: var(--text-main); border-bottom: 2px solid var(--bg-color); padding-bottom: 10px; }
.legal-content-rich p { margin-bottom: 20px; color: var(--text-main); line-height: 1.8; }
.legal-content-rich ul { margin-bottom: 24px; padding-left: 24px; list-style-type: disc; }
.legal-content-rich li { margin-bottom: 12px; color: var(--text-main); }
.legal-content-rich a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.legal-content-rich a:hover { text-decoration: underline; }

/* MOBILE OPTIMIZATION */
@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; }
    .footer-content-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .main-card, .how-to-premium { border: none; border-radius: 0; box-shadow: none; padding: 24px 16px; }
    .bookmark-cta { margin: 0 16px 32px; }
    .hero-image { max-width: 100%; border: none; }
    .puzzle-pagination { grid-template-columns: 1fr; }
    .next { text-align: left; }
    .countdown-timer { font-size: 2.5rem; }
    .desktop-nav { display: none; }
}
