:root {
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --secondary: #EC4899;
    --accent: #0EA5E9;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border: #E2E8F0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

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

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

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

.card-transition:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== header ===== */
.header-block {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.header-block__logo {
    max-width: 50px;
}

.header-block .js-dropdown-menu {
    animation: headerFadeIn 0.2s ease-out;
    transform-origin: top right;
}

.header-block .js-mobile-nav {
    animation: headerSlideDown 0.3s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== hero ===== */
.hero-block {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-block .hero-title {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-block .animate-bounce-slow {
    animation: bounce-slow 4s infinite ease-in-out;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-block .hero-overlay {
    pointer-events: none;
}

.hero-block .stat-card {
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.hero-block .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366F1 0%, #EC4899 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-block .stat-card:hover::before {
    opacity: 1;
}

@media (max-width: 767px) {
    .hero-block .hero-title {
        hyphens: auto;
    }

    .hero-block .hero-stats-wrapper {
        margin-top: -40px;
    }
}

/* ===== featured_games ===== */
.featured-games-section {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.featured-games-section h2,
.featured-games-section h3 {
    color: #0F172A;
}

.featured-games-section .js-filter-btn {
    cursor: pointer;
    border: 1px solid #E2E8F0;
}

.featured-games-section .js-filter-btn.active {
    background-color: #6366F1;
    color: #FFFFFF;
    border-color: #6366F1;
}

.featured-games-section .js-game-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-games-section .js-game-card img {
    transition: transform 0.5s ease;
}

.featured-games-section .js-game-card:hover img {
    transform: scale(1.1);
}

.featured-games-section .js-game-card .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== features ===== */
.features-section {
    position: relative;
    z-index: 1;
}

.features-section .feature-card {
    will-change: transform;
}

.features-section .feature-card i {
    transition: transform 0.3s ease;
}

.features-section .feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.features-section .container {
    position: relative;
    z-index: 2;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at top left, rgba(99, 102, 241, 0.03), transparent 40%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.03), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* ===== leaderboard_snippet ===== */
.leaderboard-snippet .player-row {
    transition: all 0.3s ease;
}

.leaderboard-snippet .js-tab-btn.active {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.leaderboard-snippet .player-row:hover {
    transform: translateX(8px);
}

.leaderboard-snippet .js-leaderboard-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== footer ===== */
#footer-section .disclaimer-box {
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.1);
}

#footer-section .footer-link {
    position: relative;
}

#footer-section .footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #6366F1;
    transition: width 0.3s ease;
}

#footer-section .footer-link:hover::after {
    width: 100%;
}

#footer-section #js-age-modal {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== PAGE: about ===== */
.about-content .object-fit-cover { object-fit: cover; }
.about-content .container { position: relative; z-index: 10; }
.about-content .group:hover .group-hover\:bg-indigo-500 { background-color: #6366F1; }
.about-content .group:hover .group-hover\:bg-pink-500 { background-color: #EC4899; }
.about-content .group:hover .group-hover\:bg-sky-500 { background-color: #0EA5E9; }
.about-content .group:hover .group-hover\:text-white { color: #FFFFFF; }

/* ===== PAGE: all-games ===== */
.games-grid-section .js-filter-btn.active {
  background-color: #6366F1 !important;
  color: white !important;
  border-color: #6366F1 !important;
}
.games-grid-section .js-game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.games-grid-section .js-game-card .p-6 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.games-grid-section .js-game-modal.is-active {
  display: flex !important;
}

/* ===== PAGE: online-players ===== */
.players-list-section .js-player-filter.active {
  background-color: #6366F1 !important;
  color: #FFFFFF !important;
  border-color: #6366F1 !important;
}

.players-list-section .progress-container {
  position: relative;
}

.players-list-section .search-container input::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.players-list-section .js-player-card {
  will-change: transform, opacity;
}

.players-list-section .no-results-msg.hidden {
  display: none;
}

/* ===== PAGE: leaderboard ===== */
.rankings-section .js-tab-trigger { color: #64748B; background: transparent; }
.rankings-section .js-tab-trigger.active { background-color: #6366F1; color: #FFFFFF; }
.rankings-section .js-tab-content.hidden { display: none; }
.rankings-section .js-tab-content.active { display: block; }
.rankings-section .rankings-section-podium-card { min-height: 220px; }
@media (min-width: 768px) {
  .rankings-section .rankings-section-podium-card.p-8 { min-height: 280px; }
}
.rankings-section table tr:hover td { background-color: rgba(99, 102, 241, 0.02); transition: background 0.2s ease; }

/* ===== PAGE: hall-of-fame ===== */
.fame-grid-section .js-filter-btn.active {
  background-color: #6366F1;
  color: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.fame-grid-section .js-filter-btn:not(.active):hover {
  border-color: #6366F1;
  color: #6366F1;
  background-color: rgba(99, 102, 241, 0.05);
}

.fame-grid-section .js-player-item {
  animation: fadeUp 0.5s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fame-grid-section input::placeholder {
  color: #94A3B8;
}

.fame-grid-section .text-success {
  color: #22C55E;
}

/* ===== PAGE: faq ===== */
.faq-block-section .js-faq-item.is-active { border-color: #6366F1; box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1); } .faq-block-section .js-faq-item.is-active .faq-icon-wrapper { transform: rotate(180deg); background-color: #6366F1; } .faq-block-section .js-faq-item.is-active .faq-icon-wrapper i { color: #FFFFFF; } .faq-block-section .js-faq-content { transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out; } .faq-block-section .js-faq-item.is-active .js-faq-content { opacity: 1; }

/* ===== PAGE: privacy ===== */
.privacy-policy-section .js-nav-link.active {
  background-color: #EEF2FF;
  color: #6366F1;
  border-left: 4px solid #6366F1;
  padding-left: 12px;
}

.privacy-policy-section .js-nav-link {
  border-left: 4px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-policy-section .js-privacy-section {
  animation: privacyFadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes privacyFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .privacy-policy-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== PAGE: terms ===== */
.legal-section { font-family: 'Plus Jakarta Sans', sans-serif; }
.legal-section__content { font-family: 'Inter', sans-serif; }
.legal-section__wrapper { overflow: hidden; }
.legal-section .js-nav-link.active { color: #6366F1; font-weight: 600; }
.legal-section .js-nav-link.active i { transform: translateX(4px); }
@media (max-width: 767px) {
  .legal-section__sidebar { display: none; }
  .legal-section__content { width: 100%; }
}

/* ===== PAGE: disclaimer ===== */
.hex-disclaimer .hex-disclaimer__card { transition: transform 0.3s ease; }.hex-disclaimer .hex-disclaimer__content p { hyphens: auto; }.hex-disclaimer .hex-disclaimer__section h2 { line-height: 1.2; }.hex-disclaimer .hex-disclaimer__progress { transition: width 0.1s ease-out; z-index: 10; }@media (max-width: 767px) { .hex-disclaimer .hex-disclaimer__content { space-y: 6; } }

/* ===== PAGE: rgp ===== */
.rgp-content {
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.rgp-content h2,
.rgp-content h3 {
  color: #0F172A;
}
.rgp-content a {
  transition: all 0.3s ease;
}
.rgp-content .js-toc-nav a {
  padding: 8px 12px;
  border-radius: 8px;
}
.rgp-content .js-toc-nav a.active {
  background-color: #F1F5F9;
  color: #6366F1;
  font-weight: 600;
}
.rgp-content .js-toc-nav a:hover {
  background-color: #F8FAFC;
}
.rgp-content #entertainment,
.rgp-content #safety,
.rgp-content #self-control,
.rgp-content #awareness {
  scroll-margin-top: 100px;
}
@media (max-width: 767px) {
  .rgp-content ul li {
    font-size: 13px;
  }
}

.main-comment-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.main-comment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.03), transparent);
    pointer-events: none;
}

.avatar-circle {
    transition: transform 0.3s ease;
}

.main-comment-container:hover .avatar-circle {
    transform: scale(1.05) rotate(-5deg);
}

.action-btn i {
    transition: transform 0.2s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

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

.reply-thread-line {
    border-color: #E2E8F0;
}

.avatar-circle-sm {
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
}

.reply-container:hover {
    border-color: #EEF2FF;
}

.reply-actions button i {
    vertical-align: middle;
}


/* ===== PAGE TEMPLATE: games-list ===== */
.header-block {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.header-block__logo {
    max-width: 50px;
}

.header-block .js-dropdown-menu {
    animation: headerFadeIn 0.2s ease-out;
    transform-origin: top right;
}

.header-block .js-mobile-nav {
    animation: headerSlideDown 0.3s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#footer-section .disclaimer-box {
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.1);
}

#footer-section .footer-link {
    position: relative;
}

#footer-section .footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #6366F1;
    transition: width 0.3s ease;
}

#footer-section .footer-link:hover::after {
    width: 100%;
}

#footer-section #js-age-modal {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.game-detail-page .prose p {
    margin-bottom: 1.5rem;
}

.game-detail-page .js-tab-btn.active {
    background-color: #6366F1;
    color: #FFFFFF;
}

.game-detail-page .js-tab-content {
    animation: tabFadeIn 0.4s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-detail-page .comment-card-wrapper {
    width: 100%;
}

.game-detail-page .avatar-circle {
    background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
}

.game-detail-page .action-btn.active i {
    color: #EC4899;
}

.game-detail-page .reply-thread-line {
    border-color: #E2E8F0;
}