:root {
    --primary: #4C1D95;
    --primary-dark: #2E1065;
    --secondary: #F59E0B;
    --accent: #D946EF;
    --background-main: #F8FAFC;
    --background-card: #FFFFFF;
    --background-muted: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.text-muted {
    color: #64748b !important;
}

.transition-premium {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

/* ===== header ===== */
.header-block .js-dropdown-menu {
    z-index: 101;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-block .js-dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-block .js-mobile-menu {
    height: calc(100vh - 70px);
}

.header-block .js-mobile-menu.active {
    display: block;
}

.header-block .nav-link-active {
    color: #4C1D95;
    font-weight: 700;
}

/* ===== hero ===== */
.hero-block h1 {
    font-family: 'Playfair Display', serif;
}

.hero-block p {
    font-family: 'Inter', sans-serif;
}

.hero-block .js-hero-cta {
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

/* ===== about-teaser ===== */
.about-teaser-block {
    position: relative;
}

.about-teaser-block .js-content-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.about-teaser-block .js-content-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-teaser-block .js-image-container {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-teaser-block .js-image-container.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 767px) {
    .about-teaser-block h2 {
        hyphens: auto;
    }
}

/* ===== retro-categories ===== */
.retro-categories-block .retro-category-card {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), shadow 0.5s ease;
}

.retro-categories-block .font-playfair {
    font-family: 'Playfair Display', serif;
}

.retro-categories-block .font-inter {
    font-family: 'Inter', sans-serif;
}

/* ===== online-teaser ===== */
.online-teaser-block .online-card {
    height: 100%;
}

.online-teaser-block .container {
    position: relative;
    z-index: 2;
}

.online-teaser-block h2,
.online-teaser-block h3 {
    color: #0F172A;
}

.online-teaser-block p {
    line-height: 1.6;
}

.online-teaser-block .js-teaser-cta:hover {
    background-color: #1E293B;
}

@media (max-width: 767px) {
    .online-teaser-block {
        padding: 40px 0;
    }

    .online-teaser-block h2 {
        font-size: 20px;
    }

    .online-teaser-block h3 {
        font-size: 16px;
    }
}

/* ===== newsletter ===== */
.newsletter-section .newsletter-card {
    position: relative;
    transition: transform 0.5s ease-out;
}

.newsletter-section .newsletter-input {
    backdrop-filter: blur(8px);
}

.newsletter-section .newsletter-button {
    white-space: nowrap;
}

.newsletter-section .newsletter-form {
    width: 100%;
}

.newsletter-section .newsletter-overlay {
    pointer-events: none;
}

/* ===== footer ===== */
.footer-block {
    font-family: 'Inter', sans-serif;
}

.footer-block .footer-heading {
    font-family: 'Playfair Display', serif;
}

.footer-block .footer-link:hover {
    text-decoration: underline;
}

/* ===== PAGE: privacy ===== */
.policy-article-content h1, .policy-article-content h2, .policy-article-content h3 { font-family: 'Playfair Display', serif; color: #0F172A; }.policy-article-content p, .policy-article-content li { font-family: 'Inter', sans-serif; }.policy-section { border-bottom: 1px solid #F1F5F9; padding-bottom: 2.5rem; }.policy-section:last-child { border-bottom: none; }.policy-article-content a { transition: color 0.3s ease; }

/* ===== PAGE: terms ===== */
.policy-container-block { background-color: #F8FAFC; color: #0F172A; min-height: 100vh; font-family: 'Inter', sans-serif; }.policy-content-wrapper { background: #FFFFFF; border-radius: 1rem; border: 1px solid #E2E8F0; padding: 2rem; box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05); }.policy-heading-main, .policy-heading-sub { font-family: 'Playfair Display', serif; }.policy-paragraph { margin-bottom: 1.5rem; }.policy-list li svg { flex-shrink: 0; }.policy-contact-box { transition: transform 0.3s ease; }.policy-contact-box:hover { transform: translateY(-2px); }@media (max-width: 768px) { .policy-content-wrapper { padding: 1.25rem; border-radius: 0.75rem; border: none; box-shadow: none; background: transparent; } .policy-contact-box { background: #FFFFFF; border: 1px solid #E2E8F0; } }

/* ===== PAGE: disclaimer ===== */
.policy-container-block .disclaimer-content {
    font-family: 'Inter', sans-serif;
    color: #475569;
    line-height: 1.6;
}

.policy-container-block .disclaimer-heading {
    font-family: 'Playfair Display', serif;
    color: #0F172A;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 16px;
}

@media (min-width: 768px) {
    .policy-container-block .disclaimer-heading {
        font-size: 32px;
    }
}

.policy-container-block .disclaimer-text {
    margin-bottom: 1.75rem;
    font-size: 14px;
    text-align: justify;
    hyphens: auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .policy-container-block .disclaimer-text {
        font-size: 16px;
    }
}

.policy-container-block .disclaimer-link {
    color: #4C1D95;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.policy-container-block .disclaimer-link:hover {
    color: #D946EF;
}

/* ===== PAGE: cookies ===== */
.policy-container-block { background-color: #F8FAFC; color: #0F172A; font-family: 'Inter', sans-serif; }
.policy-content-wrapper h2, .policy-content-wrapper h3 { font-family: 'Playfair Display', serif; color: #0F172A; }
.policy-content-wrapper p { color: #475569; }
.policy-content-wrapper a { transition: all 0.3s ease; }
.policy-content-wrapper strong { color: #0F172A; }

/* ===== PAGE: about ===== */
.about-project-section .js-mission-card { height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.about-project-section .about-image-wrapper img { transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.about-project-section .container { position: relative; }
.about-project-section .font-['Playfair_Display'] { font-family: 'Playfair Display', serif; }

/* ===== PAGE: retro-classic ===== */
.retro-reviews-section .js-filter-btn.active { background-color: #4C1D95; color: white; border-color: #4C1D95; }
.retro-reviews-section .js-review-card { height: 100%; min-height: 480px; }
.retro-reviews-section .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.retro-reviews-section .container { max-width: 1280px; }

/* ===== PAGE: sega-dendy-world ===== */
.sega-dendy-explore .js-guide-card { height: 100%; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.sega-dendy-explore input::placeholder { color: #94A3B8; opacity: 1; }
.sega-dendy-explore .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== PAGE: online-battles ===== */
.online-battles-section .js-battle-card { height: 100%; transition: transform 0.5s ease-out, shadow 0.5s ease-out; }.online-battles-section .js-search-field::placeholder { color: #94A3B8; opacity: 1; }.online-battles-section .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }.online-battles-section a:after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: #4C1D95; transition: width 0.3s; }.online-battles-section a:hover:after { width: 100%; }

/* ===== PAGE: quiz ===== */
.quiz-section .js-checkbox-label input:checked + span { color: #4C1D95; font-weight: 600; } .quiz-section .js-checkbox-label:has(input:checked) { background-color: #F5F3FF; border-color: #A78BFA; } .quiz-section .js-input:focus { border-color: #4C1D95; } .quiz-section label:has(input[type="radio"]:checked) { border-color: #4C1D95; background-color: #F5F3FF; }

/* ===== PAGE: contact ===== */
.contact-section-block input::placeholder,
.contact-section-block textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.contact-section-block .contact-card-info:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
  .contact-section-block h2 {
    hyphens: auto;
  }
}

.avatar-circle {
    user-select: none;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-comment-text {
    color: #475569;
    line-height: 1.6;
}

.comment-card-shadow {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
}

.reply-border {
    border-left: 4px solid #DDD6FE;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}


/* ===== PAGE TEMPLATE: retro-reviews ===== */
.retro-detail-page .article-content h1,
.retro-detail-page .article-content h2,
.retro-detail-page .article-content h3 {
    font-family: 'Playfair Display', serif;
    color: #0F172A;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-weight: 700;
}

.retro-detail-page .article-content h1 {
    font-size: 18px;
}

@media (min-width: 768px) {
    .retro-detail-page .article-content h1 {
        font-size: 42px;
    }
}

.retro-detail-page .article-content h2 {
    font-size: 16px;
}

@media (min-width: 768px) {
    .retro-detail-page .article-content h2 {
        font-size: 32px;
    }
}

.retro-detail-page .article-content h3 {
    font-size: 14px;
}

@media (min-width: 768px) {
    .retro-detail-page .article-content h3 {
        font-size: 26px;
    }
}

.retro-detail-page .article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.retro-detail-page .article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.retro-detail-page .article-content li {
    list-style: none;
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: #475569;
}

.retro-detail-page .article-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background-color: #4C1D95;
    border-radius: 50%;
}

.retro-detail-page .js-tab-btn.active {
    color: #4C1D95;
    border-bottom-color: #4C1D95;
}

.header-block .js-dropdown-menu {
    z-index: 101;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-block .js-dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-block .js-mobile-menu {
    height: calc(100vh - 70px);
}

.header-block .js-mobile-menu.active {
    display: block;
}

.footer-block .footer-heading {
    font-family: 'Playfair Display', serif;
}

.footer-block .footer-link:hover {
    text-decoration: underline;
}

.retro-detail-page .avatar-circle {
    background: linear-gradient(135deg, #4C1D95 0%, #D946EF 100%);
}

/* ===== PAGE TEMPLATE: sega-guides ===== */
.header-block .js-dropdown-menu {
    z-index: 101;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-block .js-dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-block .js-mobile-menu {
    height: calc(100vh - 70px);
}

.header-block .js-mobile-menu.active {
    display: block;
}

.footer-block {
    font-family: 'Inter', sans-serif;
}

.footer-block .footer-heading {
    font-family: 'Playfair Display', serif;
}

.footer-block .footer-link:hover {
    text-decoration: underline;
}

.sega-guide-hero {
    position: relative;
}

.guide-content-wrapper p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.guide-content-wrapper h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 2.5rem;
}

.avatar-circle {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transition-premium {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-like-btn.active {
    color: #D946EF;
}

.js-like-btn.active svg {
    fill: #D946EF;
    stroke: #D946EF;
}

/* ===== PAGE TEMPLATE: online-tops ===== */
.header-block .js-dropdown-menu {
    z-index: 101;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-block .js-dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-block .js-mobile-menu {
    height: calc(100vh - 70px);
}

.header-block .js-mobile-menu.active {
    display: block;
}

.footer-block {
    font-family: 'Inter', sans-serif;
}

.footer-block .footer-heading {
    font-family: 'Playfair Display', serif;
}

.footer-block .footer-link:hover {
    text-decoration: underline;
}

.detail-page-wrapper .detail-hero h1 {
    font-family: 'Playfair Display', serif;
}

.detail-page-wrapper .top-item-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-page-wrapper .top-item-card:hover {
    transform: scale(1.02);
}

.detail-page-wrapper .prose-container blockquote {
    border-left: 4px solid #4C1D95;
    padding-left: 1.5rem;
    font-style: italic;
    color: #4C1D95;
    background: #F5F3FF;
    padding: 2rem;
    border-radius: 1rem;
}

@media (max-width: 767px) {
    .detail-page-wrapper .detail-hero h1 {
        font-size: 18px;
    }

    .detail-page-wrapper h2 {
        font-size: 16px;
    }

    .detail-page-wrapper h3 {
        font-size: 14px;
    }
}