:root {
    --primary: #00F2FF;
    --secondary: #7000FF;
    --accent: #FF00E5;
    --bg-main: #050508;
    --bg-surface: #0F111A;
    --bg-card: rgba(20, 22, 35, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 255, 0.3);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.glow-hover:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--border-glow);
    transform: translateY(-4px);
}

.btn-pill {
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===== header ===== */
#header-spinfusion .js-dropdown-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#header-spinfusion .js-mobile-menu {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

#header-spinfusion .js-dropdown-toggle i {
    transition: transform 0.3s ease;
}

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

#header-spinfusion a {
    position: relative;
    display: inline-block;
}

#header-spinfusion .spinfusion-brand-link {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
}

#header-spinfusion .spinfusion-brand-link img {
    flex: 0 0 auto;
    margin: 0;
}

#header-spinfusion .spinfusion-brand-link span {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

#header-spinfusion .hidden.lg\:flex a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F2FF 0%, #7000FF 100%);
    transition: width 0.3s ease;
}

#header-spinfusion .hidden.lg\:flex a:hover::after {
    width: 100%;
}

/* ===== hero ===== */
.hero-section {
    position: relative;
    background-color: #050508;
}

.hero-section .hero-title {
    letter-spacing: -0.02em;
}

.hero-section .hero-disclaimer {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 22, 35, 0.7);
    backdrop-filter: blur(20px);
}

.hero-section .hero-visual img {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-section .hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-section .js-hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-section .js-hero-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.hero-section .js-hero-cta:hover::after {
    left: 100%;
    top: 100%;
}

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

.games-grid-block h2,
.games-grid-block h3 {
    font-family: 'Syne', sans-serif;
}

.games-grid-block .game-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.games-grid-block .js-game-modal.is-active {
    display: flex !important;
}

.games-grid-block .js-iframe-wrapper:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
}

.games-grid-block .js-iframe-wrapper:fullscreen {
    width: 100% !important;
    height: 100% !important;
}

/* ===== features ===== */
#platform-features .js-feature-card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#platform-features .js-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

#platform-features .js-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#platform-features .js-feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#platform-features .js-feature-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== community ===== */
.community-highlights .js-tab-btn {
    color: rgba(255, 255, 255, 0.7);
}

.community-highlights .active-tab {
    background: linear-gradient(90deg, #00F2FF 0%, #7000FF 100%);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.community-highlights .js-tab-content {
    animation: fadeIn 0.5s ease-in-out;
}

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

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

/* ===== footer ===== */
.spinfusion-footer {
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.spinfusion-footer h3 {
    font-family: 'Syne', sans-serif;
}

.spinfusion-footer-disclaimer {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.spinfusion-footer-disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00F2FF, #7000FF);
    border-radius: 4px 0 0 4px;
}

.spinfusion-footer-logos img {
    max-height: 60px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

#age-verification-modal.visible {
    display: flex;
}

#age-verification-modal {
    transition: opacity 0.3s ease;
}

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

@media (max-width: 767px) {
    .spinfusion-footer-logos {
        gap: 1.5rem;
    }

    .spinfusion-footer-logos a {
        width: 100px;
    }
}

#header-spinfusion .js-dropdown-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#header-spinfusion .js-mobile-menu {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

#header-spinfusion .js-dropdown-toggle i {
    transition: transform 0.3s ease;
}

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

#header-spinfusion .hidden.lg\:flex a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F2FF 0%, #7000FF 100%);
    transition: width 0.3s ease;
}

#header-spinfusion .hidden.lg\:flex a:hover::after {
    width: 100%;
}

.hero-section .hero-disclaimer {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 22, 35, 0.7);
    backdrop-filter: blur(20px);
}

.hero-section .hero-visual img {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-section .hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.games-catalog .js-filter-btn.js-active {
    background: #00F2FF;
    color: #050508;
    border-color: #00F2FF;
}

.games-catalog .js-game-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.spinfusion-footer h3 {
    font-family: 'Syne', sans-serif;
}

.spinfusion-footer-disclaimer {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.spinfusion-footer-disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00F2FF, #7000FF);
    border-radius: 4px 0 0 4px;
}

#age-verification-modal.visible {
    display: flex;
}


/* ===== PAGE: about ===== */
.about-content .about-card {
  background: rgba(20, 22, 35, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.about-content h2, .about-content h3 {
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.about-content p {
  line-height: 1.6;
}

@media (max-width: 767px) {
  .about-content .about-card {
    padding: 24px;
  }
}

/* ===== PAGE: how-to-play ===== */
.instructions-section .instruction-card:hover .bi { transform: scale(1.1) rotate(5deg); transition: transform 0.3s ease; } .instructions-section .js-accordion-trigger i.active { transform: rotate(45deg); } .instructions-section .js-accordion-content { transition: all 0.3s ease-out; }

/* ===== PAGE: events ===== */
.events-calendar .js-filter-btn.active {
  background: linear-gradient(90deg, #00F2FF 0%, #7000FF 100%);
  border-color: transparent;
  color: white;
}

.events-calendar .js-event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-calendar .js-event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
  border-color: rgba(0, 242, 255, 0.3);
}

@media (max-width: 767px) {
  .events-calendar h1 {
    hyphens: auto;
  }
}

/* ===== PAGE: contacts ===== */
.spinfusion-contact-section .contact-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.spinfusion-contact-section .contact-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.spinfusion-contact-section .js-copy-email {
  cursor: pointer;
  font-weight: 600;
}
.spinfusion-contact-section h2, .spinfusion-contact-section h3 {
  letter-spacing: -0.02em;
}

/* ===== PAGE: rooms ===== */
.rooms-lobby-section .room-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.rooms-lobby-section .room-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.rooms-lobby-section .js-filter-btn.active {
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.rooms-lobby-section .room-card img {
  filter: brightness(0.9);
}

.rooms-lobby-section .room-card:hover img {
  filter: brightness(1.1);
}

/* ===== PAGE: privacy ===== */
.privacy-content-section article h2 { scroll-margin-top: 100px; } .privacy-content-section .js-nav-link { position: relative; display: inline-block; } .privacy-content-section .js-nav-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background: #00F2FF; transition: width 0.3s ease; } .privacy-content-section .js-nav-link:hover::after { width: 100%; } .privacy-content-section main::-webkit-scrollbar { width: 6px; } .privacy-content-section main::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); } .privacy-content-section main::-webkit-scrollbar-thumb { background: #7000FF; border-radius: 10px; }

/* ===== PAGE: terms ===== */
.terms-section .terms-block h2 {
  background: linear-gradient(90deg, #00F2FF, #7000FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.terms-section .terms-body p {
  margin-bottom: 1.5rem;
}
.terms-section .terms-body ul li i {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}
.terms-section .terms-body article:last-child p {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .terms-section .terms-body {
    space-y: 8;
  }
  .terms-section .terms-block h2 {
    font-size: 16px;
  }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-content .disclaimer-card {
  background: rgba(20, 22, 35, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.disclaimer-content .disclaimer-block p {
  hyphens: auto;
}

.disclaimer-content i {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .disclaimer-content i {
    font-size: 1.75rem;
  }
}

.disclaimer-content .disclaimer-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ===== PAGE: rgp ===== */
.rgp-content .rgp-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.rgp-content .rgp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.rgp-content .js-answer-btn.active {
  background-color: #00F2FF;
  color: #050508;
  border-color: #00F2FF;
}
.rgp-content .js-answer-btn:focus {
  outline: none;
}
.rgp-content .js-question-item {
  transition: opacity 0.3s ease;
}
.rgp-content .js-question-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.comment-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(0, 242, 255, 0.4);
    background: #0F111A;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease
}

.main-comment-card:hover .comment-avatar {
    border-color: #00F2FF;
    transform: rotate(-3deg) scale(1.05)
}

.main-comment-card {
    background: linear-gradient(165deg, rgba(20, 22, 35, 0.8) 0%, rgba(10, 11, 20, 0.9) 100%);
}

.main-comment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 60%);
    pointer-events: none;
}

.comment-avatar-reply {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 1.5px solid rgba(112, 0, 255, 0.4);
    background: #0F111A;
    flex-shrink: 0;
    transition: transform 0.3s ease
}

.reply-comment-card:hover .comment-avatar-reply {
    transform: scale(1.1) rotate(5deg);
    border-color: #7000FF;
}

.reply-comment-card {
    box-shadow: inset 0 0 20px rgba(112, 0, 255, 0.02);
}


/* ===== PAGE TEMPLATE: games ===== */
.game-detail-page {
    font-family: 'Inter', sans-serif;
}

.game-hero h1 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

#header-spinfusion .js-dropdown-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#header-spinfusion .js-mobile-menu {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

#header-spinfusion .js-dropdown-toggle i {
    transition: transform 0.3s ease;
}

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

#header-spinfusion a {
    position: relative;
    display: inline-block;
}

#header-spinfusion .hidden.lg\:flex a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F2FF 0%, #7000FF 100%);
    transition: width 0.3s ease;
}

#header-spinfusion .hidden.lg\:flex a:hover::after {
    width: 100%;
}

.spinfusion-footer {
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.spinfusion-footer h3 {
    font-family: 'Syne', sans-serif;
}

.spinfusion-footer-disclaimer {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.spinfusion-footer-disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00F2FF, #7000FF);
    border-radius: 4px 0 0 4px;
}

.spinfusion-footer-logos img {
    max-height: 60px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

#age-verification-modal.visible {
    display: flex;
}

#age-verification-modal {
    transition: opacity 0.3s ease;
}
