:root {
    --primary: #2563EB;
    --secondary: #7C3AED;
    --accent: #F59E0B;
    --background-main: #F1F5F9;
    --background-surface: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --glass-fill: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

.glass-panel {
    background: var(--glass-fill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.btn-primary-gradient {
    background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.btn-primary-gradient:hover {
    opacity: 1;
}

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

.site-header .js-dropdown-menu {
    z-index: 110;
    transition: all 0.2s ease-out;
}

.site-header .js-mobile-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.site-header .js-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header .js-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header .js-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header .container {
    max-width: 1280px;
}

/* ===== hero ===== */
.hero-section {
    position: relative;
    background-color: #000;
    font-family: 'Inter', sans-serif;
}

.hero-section .hero-bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 1;
}

@media (max-width: 767px) {
    .hero-section .hero-bg-overlay::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.9) 100%);
    }
}

.hero-section h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto !important;
        padding: 60px 0 50px;
        overflow: visible !important;
    }

    .hero-section .js-hero-slide {
        position: relative !important;
        inset: auto !important;
        min-height: 420px;
        display: flex;
        align-items: center;
    }

    .hero-section .js-hero-slide.hidden {
        display: none;
    }

    .hero-section .js-hero-slide .hero-bg-overlay {
        position: absolute !important;
    }

    .hero-section .js-hero-slide .container {
        height: auto !important;
        padding-top: 40px;
        padding-bottom: 40px;
        position: relative;
        z-index: 10;
    }

    .hero-section h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    }

    .hero-section p {
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    }

    .hero-section .js-hero-slide .flex-col > div:last-child {
        display: none;
    }

    .hero-section .js-hero-dot {
        width: 12px !important;
        height: 12px !important;
    }
}

.hero-section .js-hero-primary-btn,
.hero-section .js-hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 48px;
}

/* ===== about ===== */
.about-section .about-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.about-section p {
    hyphens: auto;
}

/* ===== features ===== */
.dynamic-crown-features .js-feature-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.dynamic-crown-features .js-feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}

.dynamic-crown-features .container {
    position: relative;
}

@media (max-width: 767px) {
    .dynamic-crown-features h2 {
        font-size: 16px;
    }

    .dynamic-crown-features h3 {
        font-size: 14px;
    }
}

/* ===== newsletter ===== */
.newsletter-block .js-newsletter-input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.newsletter-block .js-newsletter-input:focus::placeholder {
    opacity: 0.5;
}

.newsletter-block .glass-glow {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.newsletter-block .js-newsletter-success.hidden {
    display: none;
}

@media (max-width: 767px) {
    .newsletter-block .js-newsletter-form {
        flex-direction: column;
    }
}

/* ===== footer ===== */
.footer-section .footer-link:hover {
    color: #2563EB;
}

.footer-section .container {
    position: relative;
    z-index: 10;
}

.footer-section a {
    text-decoration: none;
}

.footer-section .footer-brand-column img {
    max-width: 50px;
}

@media (max-width: 767px) {
    .footer-section {
        text-align: center;
    }

    .footer-section .flex {
        justify-content: center;
    }

    .footer-section .items-start {
        align-items: center;
    }

    .footer-section .footer-brand-column p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== PAGE: privacy ===== */
.policy-container { padding: 4rem 1.25rem; max-width: 1280px; margin: 0 auto; }
.policy-content { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 1.5rem; padding: 2rem; shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1); }
.policy-title { font-family: 'Montserrat', sans-serif; color: #0F172A; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; font-size: 16px; }
@media (min-width: 768px) { .policy-title { font-size: 32px; } }
.policy-text { font-family: 'Inter', sans-serif; color: #475569; line-height: 1.8; margin-bottom: 1.5rem; font-size: 14px; }
@media (min-width: 768px) { .policy-text { font-size: 16px; } }
.policy-list { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: #475569; }
.policy-list li { margin-bottom: 0.75rem; line-height: 1.6; }
.policy-link { color: #2563EB; text-decoration: none; font-weight: 500; }
.policy-link:hover { text-decoration: underline; }

/* ===== PAGE: terms ===== */
.policy-container { padding: 4rem 1.25rem; background-color: #F1F5F9; display: flex; justify-content: center; }
.policy-content { max-width: 800px; width: 100%; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 1.5rem; padding: 2rem; shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05); }
.policy-h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #0F172A; font-size: 18px; margin-bottom: 1.5rem; line-height: 1.2; }
@media (min-width: 768px) { .policy-h1 { font-size: 42px; } }
.policy-h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #1E293B; font-size: 16px; margin-top: 2rem; margin-bottom: 1rem; line-height: 1.3; }
@media (min-width: 768px) { .policy-h2 { font-size: 32px; } }
.policy-intro { font-size: 16px; color: #334155; line-height: 1.6; margin-bottom: 2rem; font-weight: 500; }
.policy-text { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .policy-text { font-size: 16px; } }
.policy-list { margin-bottom: 1.5rem; padding-left: 1.25rem; list-style-type: disc; color: #475569; }
.policy-list li { margin-bottom: 0.5rem; font-size: 14px; line-height: 1.6; }
@media (min-width: 768px) { .policy-list li { font-size: 16px; } }
.policy-content a { color: #2563EB; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.policy-content a:hover { border-bottom-color: #2563EB; }

/* ===== PAGE: disclaimer ===== */
.policy-container {
  background-color: #f8fafc;
  font-family: 'Inter', sans-serif;
}
.policy-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}
.policy-content h1,
.policy-content h2 {
  font-family: 'Montserrat', sans-serif;
  color: #0f172a;
}
.legal-body p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #475569;
  font-size: 1rem;
}
.legal-body ul li {
  color: #475569;
  position: relative;
  padding-left: 0.5rem;
}
.legal-body a {
  transition: color 0.2s ease;
}
@media (max-width: 767px) {
  .policy-content {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  .legal-body p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ===== PAGE: cookies ===== */
.policy-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.policy-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.policy-content h2,
.policy-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: #0F172A;
}

.policy-content p {
  margin-bottom: 1.5rem;
}

.policy-glass-card {
  transition: box-shadow 0.3s ease;
}

.policy-list li span:first-child {
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .policy-container {
    padding: 1rem 1rem;
  }
  .policy-glass-card {
    padding: 1.5rem;
  }
}

/* ===== PAGE: tops ===== */
.tops-section .active-filter { background-color: #2563EB !important; color: #ffffff !important; }.tops-section .js-game-card { transition: transform 0.2s ease-in-out; }.tops-section .js-game-card:hover { transform: translateY(-4px); }

/* ===== PAGE: reviews ===== */
.reviews-content .active-filter { background-color: #2563EB !important; color: #FFFFFF !important; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); }.reviews-content .js-review-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }.reviews-content .js-review-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* ===== PAGE: retro-corner ===== */
.retro-catalog .js-game-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.retro-catalog .js-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}
.retro-catalog .js-filter-btn.active {
  background-color: #2563EB !important;
  color: white !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}
.retro-catalog .js-game-card img {
  transition: transform 0.5s ease;
}
.retro-catalog .js-game-card:hover img {
  transform: scale(1.05);
}

/* ===== PAGE: online-racing ===== */
.online-racing-section { font-family: 'Inter', sans-serif; overflow: hidden; }
.online-racing-section .js-article-card { transition: transform 0.2s ease; }
.online-racing-section .js-article-card:hover { transform: translateY(-5px); backdrop-filter: blur(20px); }
.online-racing-section .container { position: relative; z-index: 1; }
.online-racing-section img { transition: scale 0.4s ease; }
.online-racing-section .js-article-card:hover img { scale: 1.05; }

/* ===== PAGE: battle-city ===== */
.battle-city-section .game-container {
  transition: box-shadow 0.3s ease;
}
.battle-city-section .game-viewport canvas {
  image-rendering: pixelated;
  background: #111;
}
.battle-city-section .mobile-controls button {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
@media (max-width: 768px) {
  .battle-city-section .game-viewport {
    max-width: 100%;
    border-width: 2px;
  }
}

/* ===== PAGE: contact ===== */
.contact-page .js-contact-form input::placeholder, .contact-page .js-contact-form textarea::placeholder { color: #94A3B8; opacity: 1; } .contact-page .contact-info-block img { filter: grayscale(20%) brightness(0.9); transition: all 0.3s ease; } .contact-page .contact-info-block img:hover { filter: grayscale(0%) brightness(1); }

.main-comment-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1.75rem;
    border: 4px solid #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

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

.main-comment-card {
    transition: transform 0.2s ease;
}

.main-comment-card:hover {
    transform: translateY(-4px);
}

.reply-comment-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.reply-comment-container::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 26px;
    width: 32px;
    height: 1px;
    background: #cbd5e1;
}

@media (min-width: 768px) {
    .reply-comment-container::before {
        left: -48px;
        width: 48px;
    }
}


/* ===== PAGE TEMPLATE: retro-corner-list ===== */
.retro-content .prose-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
    margin: 2rem 0 1rem;
}

.retro-content .prose-content p {
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
}

.retro-content .prose-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.retro-content .prose-content li {
    margin-bottom: 0.75rem;
}

.retro-content .prose-content blockquote {
    border-left: 4px solid #2563EB;
    padding-left: 1.5rem;
    font-style: italic;
    background: rgba(37, 99, 235, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.site-header {
    font-family: 'Inter', sans-serif;
}

.site-header .js-dropdown-menu {
    z-index: 110;
    transition: all 0.2s ease-out;
}

.site-header .js-mobile-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.site-header .js-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header .js-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header .js-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.footer-section .footer-link:hover {
    color: #2563EB;
}

.footer-section .container {
    position: relative;
    z-index: 10;
}

.footer-section a {
    text-decoration: none;
}

/* ===== PAGE TEMPLATE: online-racing-list ===== */
.racing-detail-wrapper {
    font-family: 'Inter', sans-serif;
}

.hero-detail h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.prose-content h2 {
    border-left: 4px solid #2563EB;
    padding-left: 1.5rem;
}

.site-header {
    font-family: 'Inter', sans-serif;
}

.site-header .js-dropdown-menu {
    z-index: 110;
    transition: all 0.2s ease-out;
}

.site-header .js-mobile-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.site-header .js-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header .js-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header .js-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.footer-section .footer-link:hover {
    color: #2563EB;
}

.footer-section .container {
    position: relative;
    z-index: 10;
}

.footer-section a {
    text-decoration: none;
}

@media (max-width: 767px) {
    .footer-section {
        text-align: center;
    }

    .footer-section .flex {
        justify-content: center;
    }

    .footer-section .items-start {
        align-items: center;
    }
}

.js-reply-trigger {
    cursor: pointer;
}

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

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