:root {
    --primary: #E91E63;
    --primary-light: #F06292;
    --primary-dark: #C2185B;
    --background: #FFF0F5;
    --surface-glass: rgba(255, 255, 255, 0.45);
    --surface-glass-hover: rgba(255, 255, 255, 0.65);
    --text-primary: #3D0614;
    --text-secondary: #7D4A56;
    --border-glow: rgba(255, 255, 255, 0.5);
}

* {
    box-sizing: border-box;
}

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

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

.text-muted {
    color: #7D4A56 !important;
}

.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: var(--surface-glass-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

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

.header-block .js-dropdown-menu {
    transition: all 0.2s ease-in-out;
}

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

.header-block .js-mobile-menu ul li a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .header-block .js-mobile-menu ul li a {
        font-size: 1rem;
    }
}

.header-block .js-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.header-block .js-dropdown-toggle i {
    transition: transform 0.2s ease;
}

/* ===== hero ===== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner__video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-banner__container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-banner__content {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.25);
    max-width: 800px;
}

@media (min-width: 768px) {
    .hero-banner__content {
        padding: 48px;
    }
}

.hero-banner__title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.hero-banner__description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #FCE4EC;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-banner__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #E91E63;
    color: #FFFFFF;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
    text-decoration: none;
}

.hero-banner__btn:hover {
    background-color: #C2185B;
    transform: translateY(-2px);
}

.hero-banner__btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
}

.hero-banner__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== featured-games ===== */
.featured-games-section {
    position: relative;
}

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

.featured-games-section__card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-games-section__card:hover {
    transform: translateY(-8px);
}

.featured-games-section__card h3 {
    line-height: 1.3;
    margin-top: auto;
}

.featured-games-section img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

@media (max-width: 768px) {
    .featured-games-section__card {
        border-radius: 1.5rem;
    }
}

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

.about-preview .about-preview__glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.about-preview .about-preview__image-container {
    transition: transform 0.5s ease-in-out;
}

.about-preview .about-preview__image-container:hover {
    transform: scale(1.02);
}

.about-preview .about-preview__btn {
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

@media (max-width: 767px) {
    .about-preview .about-preview__title {
        hyphens: auto;
    }

    .about-preview .about-preview__desc {
        hyphens: auto;
    }
}

/* ===== hall-of-fame-preview ===== */
.hall-of-fame-preview .js-tab-btn.active {
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.hall-of-fame-preview .js-leaderboard-container>div {
    transition: transform 0.2s ease;
}

.hall-of-fame-preview .js-leaderboard-container>div:hover {
    transform: translateY(-2px);
}

/* ===== events-preview ===== */
.events-preview-section .event-card {
    position: relative;
    z-index: 1;
}

.events-preview-section .event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.events-preview-section .container {
    max-width: 1200px;
}

@media (max-width: 767px) {
    .events-preview-section h2 {
        hyphens: auto;
    }

    .events-preview-section p {
        hyphens: auto;
    }
}

/* ===== footer ===== */
.footer-section h3 {
    font-family: 'Rajdhani', sans-serif;
}

.footer-section p,
.footer-section a,
.footer-section span {
    font-family: 'Inter', sans-serif;
}

.footer-section .footer-brand-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(233, 30, 99, 0.05);
}

.footer-section a {
    position: relative;
    display: inline-block;
}

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

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

/* ===== PAGE: about ===== */
.rrx-story-section { position: relative; overflow: hidden; }
.rrx-glass-card { transition: transform 0.3s ease; }
.rrx-vision-card { transition: transform 0.3s ease, background-color 0.3s ease; }
.rrx-vision-card:hover { transform: translateY(-5px); background-color: rgba(255, 255, 255, 0.65); }
.rrx-vision-section .container { position: relative; z-index: 2; }
.rrx-story-section img { border-radius: 1.5rem; }
@media (max-width: 767px) {
  .rrx-story-section h2 { line-height: 1.3; }
  .rrx-vision-card { padding: 1.5rem; }
}

/* ===== PAGE: games ===== */
.catalog-info-section {
    background: linear-gradient(135deg, #FFF0F5 0%, #FCE4EC 100%);
}

.catalog-info-section h1 {
    color: #3D0614;
}

.game-list-section .js-filter-btn.active {
    background-color: #E91E63 !important;
    color: #FFFFFF !important;
    border-color: #E91E63 !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.game-list-section .js-game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-list-section .js-game-card:hover {
    transform: translateY(-8px);
}

.game-list-section .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .catalog-info-section .backdrop-blur-md {
        padding: 1.5rem;
    }
}

/* ===== PAGE: hall-of-fame ===== */
.hall-of-fame-section .js-rank-tab.active {
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}
.hall-of-fame-section table {
  border-collapse: separate;
  border-spacing: 0;
}
.hall-of-fame-section .backdrop-blur-xl {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.hall-of-fame-section .backdrop-blur-2xl {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.hall-of-fame-section .js-rank-item {
  transition: all 0.2s ease-in-out;
}
.hall-of-fame-section .js-rank-item:last-child {
  border-bottom: none;
}
.hall-of-fame-section .container {
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .hall-of-fame-section .podium-order-fix {
    display: flex;
    flex-direction: column;
  }
}

/* ===== PAGE: tournament-history ===== */
.tournament-history-block .js-filter-btn.active {
  background-color: #E91E63;
  color: white;
}

.tournament-history-block .js-tournament-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-history-block .js-tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
  border-color: rgba(233, 30, 99, 0.3);
}

.tournament-history-block .backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
  .tournament-history-block .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== PAGE: events ===== */
.schedule-block .js-filter-btn.active { box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4); }.schedule-block .event-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }.schedule-block .event-card:hover { transform: translateY(-5px); border-color: rgba(233, 30, 99, 0.3); box-shadow: 0 10px 25px rgba(233, 30, 99, 0.1); }.schedule-block .js-event-item.hidden { display: none; }

/* ===== PAGE: how-to-play ===== */
.how-to-play-section .guideline-card { transition: all 0.3s ease-in-out; }.how-to-play-section .guideline-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.65); border-color: #E91E63; }.how-to-play-section .faq-item { transition: background 0.3s ease; }.how-to-play-section .faq-item.active { background: rgba(255, 255, 255, 0.8); }.how-to-play-section .faq-item.active i { transform: rotate(180deg); }.how-to-play-section .icon-box i { filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }

/* ===== PAGE: contact ===== */
.contact-info .glass-tile {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease-in-out;
}
.contact-info .glass-tile:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(233, 30, 99, 0.1);
}
.contact-info .icon-wrapper {
  transition: transform 0.3s ease;
}
.contact-info .glass-tile:hover .icon-wrapper {
  transform: scale(1.1);
}
.contact-info a {
  text-decoration: none;
}
.contact-info h1, .contact-info h3 {
  color: #3D0614;
}

/* ===== PAGE: privacy ===== */
.privacy-content-section .privacy-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.privacy-content-section .privacy-card:hover {
  transform: translateY(-5px);
}
.privacy-content-section .icon-box {
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
}
.privacy-content-section .detailed-policy {
  border: 1px solid rgba(233, 30, 99, 0.1);
}
@media (max-width: 767px) {
  .privacy-content-section h2 {
    hyphens: auto;
  }
}

/* ===== PAGE: terms ===== */
.terms-section {
  background-color: #FFF0F5;
  min-height: 100vh;
}

.terms-card {
  box-shadow: 0 8px 32px 0 rgba(233, 30, 99, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-card:hover {
  box-shadow: 0 12px 40px 0 rgba(233, 30, 99, 0.15);
  transform: translateY(-2px);
  border-color: rgba(233, 30, 99, 0.3);
}

.terms-card.active {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(233, 30, 99, 0.5);
}

.js-accordion-icon.rotate-180 {
  transform: rotate(180deg);
}

.js-accordion-content {
  transition: all 0.3s ease-out;
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-content .disclaimer-card {
  position: relative;
  overflow: hidden;
}

.disclaimer-content .disclaimer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E91E63, #F06292);
}

.disclaimer-content .disclaimer-section {
  border-bottom: 1px solid rgba(233, 30, 99, 0.05);
  padding-bottom: 1.5rem;
}

.disclaimer-content .disclaimer-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.disclaimer-content .js-print-btn:active {
  transform: scale(0.95);
}

@media print {
  .disclaimer-content .js-print-btn {
    display: none !important;
  }
  .disclaimer-content {
    background: white !important;
    padding: 0 !important;
  }
  .disclaimer-content .disclaimer-card {
    box-shadow: none !important;
    border: none !important;
  }
}

.comment-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
    background-color: #FCE4EC;
}

.glass-card {
    box-shadow: 0 10px 30px -10px rgba(233, 30, 99, 0.1);
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

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

.reply-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    display: block;
    background-color: #FCE4EC;
}

.glass-card-reply {
    position: relative;
}

.glass-card-reply::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 50%;
    width: 2px;
    border-left: 2px solid rgba(233, 30, 99, 0.2);
    border-bottom: 2px solid rgba(233, 30, 99, 0.2);
    border-bottom-left-radius: 12px;
}

@media (max-width: 768px) {
    .glass-card-reply::before {
        left: -16px;
    }
}


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

.header-block .js-dropdown-menu {
    transition: all 0.2s ease-in-out;
}

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

.header-block .js-mobile-menu ul li a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .header-block .js-mobile-menu ul li a {
        font-size: 1rem;
    }
}

.header-block .js-dropdown-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.header-block .js-dropdown-toggle i {
    transition: transform 0.2s ease;
}

.game-detail-hero__iframe-container iframe {
    border-radius: 1.5rem;
}

.game-detail-hero__iframe-container:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    background: #000;
    border-radius: 0;
}

.game-detail-hero__iframe-container:fullscreen {
    width: 100% !important;
    height: 100% !important;
    background: #000;
    border-radius: 0;
}

.game-description-content h1,
.game-description-content h2,
.game-description-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #3D0614;
    margin: 1.5rem 0 1rem;
}

.game-description-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.game-description-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-family: 'Rajdhani', sans-serif;
}

.footer-section p,
.footer-section a,
.footer-section span {
    font-family: 'Inter', sans-serif;
}

.footer-section .footer-brand-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(233, 30, 99, 0.05);
}

.footer-section a {
    position: relative;
    display: inline-block;
}

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

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