:root {
    --background: #090b09;
    --surface: #111911;
    --surface-variant: #282f28;
    --primary: #aaff00;
    --primary-glow: rgba(170, 255, 0, 0.15);
    --secondary: #ccff33;
    --accent: #ffff00;
    --text-primary: #FFFFFF;
    --text-secondary: #7a9a7a;
    --border-color: #aaff0026;
    --success: #00FF88;
    --warning: #FFBB00;
}

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

.bg-main-dark {
    background-color: var(--background);
}

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

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

* {
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-variant);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== header ===== */
.lucky-rush-header {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lucky-rush-header .lucky-rush-nav-link {
    position: relative;
}

.lucky-rush-header .lucky-rush-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #aaff00;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #aaff00;
}

.lucky-rush-header .lucky-rush-nav-link:hover::after {
    width: 100%;
}

.lucky-rush-header .js-mobile-menu {
    border-top: 1px solid #aaff0026;
}

.lucky-rush-header .js-mobile-menu.active {
    display: block !important;
}

/* ===== hero ===== */
.lucky-rush-hero-section {
    font-family: 'Lexend', sans-serif;
}

.lucky-rush-hero-section h1 {
    font-family: 'Fredoka', sans-serif;
    text-shadow: 0 0 15px rgba(142,178,35, 0.3);
}

.lucky-rush-hero-section .lucky-rush-hero-btn {
    background: linear-gradient(180deg, #ccff33 0%, #aaff00 100%);
    border-bottom: 4px solid #8eb223;
    position: relative;
    top: 0;
}

.lucky-rush-hero-section .lucky-rush-hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(142,178,35, 0.5);
}

.lucky-rush-hero-section .lucky-rush-hero-btn:active {
    top: 4px;
    border-bottom-width: 0;
    transform: scale(0.98);
}

.lucky-rush-hero-section .js-hero-reveal {
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.lucky-rush-hero-section .js-hero-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .lucky-rush-hero-section h1 {
        hyphens: auto;
    }
}

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

.features-block .js-feature-card {
    background: linear-gradient(145deg, #111911 0%, #040f04 100%);
}

.features-block .js-feature-card i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.features-block .container {
    max-width: 1280px;
}

/* ===== games_preview ===== */
.games-preview-section .btn-candy {
    background: linear-gradient(180deg, #aaff00 0%, #97d414 100%);
    box-shadow: 0 4px 0 #459b0f, 0 6px 20px rgba(142,178,35, 0.4);
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.games-preview-section .btn-candy:hover {
    background: linear-gradient(180deg, #ccff33 0%, #aaff00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #459b0f, 0 8px 25px rgba(142,178,35, 0.5);
}

.games-preview-section .btn-candy:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #459b0f, 0 3px 10px rgba(142,178,35, 0.3);
}

.games-preview-section .js-filter-btn.active {
    box-shadow: 0 0 15px rgba(142,178,35, 0.5);
}

.games-preview-section .container {
    max-width: 1280px;
}

/* ===== community ===== */
.community-hub .community-card {
    position: relative;
    overflow: hidden;
}

.community-hub .community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #aaff00, transparent);
    opacity: 0.5;
}

.community-hub .activity-item {
    transition: all 0.3s ease;
}

.community-hub .animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

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

.community-hub .js-activity-feed::-webkit-scrollbar {
    width: 0;
}

.community-hub .candy-btn-shadow {
    box-shadow: 0 4px 0 #B8143D;
}

.community-hub .candy-btn-shadow:active {
    box-shadow: none;
    transform: translateY(2px);
}

/* ===== footer ===== */
.lucky-footer .lucky-footer__disclaimer {
    transition: transform 0.3s ease;
}

.lucky-footer .lucky-footer__disclaimer:hover {
    transform: translateY(-5px);
}

.lucky-footer .lucky-footer__logos img {
    filter: none !important;
    transition: transform 0.3s ease;
}

.lucky-footer .lucky-footer__logos img:hover {
    transform: scale(1.05);
}

.lucky-footer #js-age-modal.flex {
    display: flex;
}

.lucky-rush-header {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lucky-rush-header .lucky-rush-nav-link {
    position: relative;
}

.lucky-rush-header .lucky-rush-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #aaff00;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #aaff00;
}

.lucky-rush-header .lucky-rush-nav-link:hover::after {
    width: 100%;
}

.lucky-rush-header .js-mobile-menu {
    border-top: 1px solid #aaff0026;
}

.lucky-rush-header .js-mobile-menu.active {
    display: block !important;
}

.lucky-footer .lucky-footer__disclaimer {
    transition: transform 0.3s ease;
}

.lucky-footer .lucky-footer__disclaimer:hover {
    transform: translateY(-5px);
}

.lucky-footer .lucky-footer__logos img {
    filter: none !important;
    transition: transform 0.3s ease;
}

.lucky-footer .lucky-footer__logos img:hover {
    transform: scale(1.05);
}

.lucky-footer #js-age-modal.flex {
    display: flex;
}

.lucky-hero-block h1 {
    font-family: 'Fredoka', sans-serif;
}

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

.lucky-catalog-grid-block .js-game-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lucky-catalog-grid-block .js-game-card:hover {
    transform: translateY(-8px);
}

.lucky-catalog-grid-block h2 {
    font-family: 'Fredoka', sans-serif;
}

.lucky-catalog-grid-block h3 {
    font-family: 'Fredoka', sans-serif;
}

.lucky-catalog-grid-block input::placeholder {
    color: #5C4A4D;
    opacity: 1;
}


/* ===== PAGE: about ===== */
.mission-block-wrapper .mission-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mission-block-wrapper .mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(142,178,35, 0.05), transparent);
  transition: 0.5s;
}

.mission-block-wrapper .mission-card:hover::before {
  left: 100%;
}

.mission-block-wrapper .js-animate-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mission-block-wrapper .js-animate-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== PAGE: how-to-play ===== */
.instructions-section {
  font-family: 'Lexend', sans-serif;
}
.instructions-section h1, .instructions-section h2, .instructions-section h3 {
  font-family: 'Fredoka', sans-serif;
}
.instructions-section .instruction-card {
  position: relative;
  overflow: hidden;
}
.instructions-section .scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.instructions-section .scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.instructions-section .js-tab-btn {
  cursor: pointer;
  outline: none;
}
.instructions-section .js-tab-content.hidden {
  display: none;
}
.instructions-section .js-tab-content.block {
  display: block;
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE: tournament-history ===== */
.history-list-section .js-filter-btn.active {
  background-color: #aaff00;
  border-color: #aaff00;
  color: #090b09;
  box-shadow: 0 0 15px rgba(142,178,35, 0.4);
}

.history-list-section .js-history-card {
  perspective: 1000px;
}

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

.history-list-section .js-history-card img {
  object-fit: cover;
}

.history-list-section input::placeholder {
  color: #5C4A4D;
  opacity: 1;
}

.history-list-section ::-webkit-scrollbar {
  width: 8px;
}

.history-list-section ::-webkit-scrollbar-track {
  background: #090b09;
}

.history-list-section ::-webkit-scrollbar-thumb {
  background: #aaff0026;
  border-radius: 10px;
}

.history-list-section ::-webkit-scrollbar-thumb:hover {
  background: #aaff00;
}

/* ===== PAGE: faq ===== */
.faq-section .faq-item.active { border-color: #aaff00; background-color: #282f28; box-shadow: 0 0 20px rgba(142,178,35, 0.15); }
.faq-section .faq-item.active .faq-trigger .faq-icon { transform: rotate(180deg); }
.faq-section .faq-item.active .faq-content { max-height: 500px; opacity: 1; padding-top: 4px; }
.faq-section .faq-trigger:focus { background-color: rgba(142,178,35, 0.05); }
.faq-section .faq-item { transform: translateZ(0); backface-visibility: hidden; }
@media (max-width: 767px) {
  .faq-section .faq-content { transition: max-height 0.25s ease-out, opacity 0.2s ease; }
}

/* ===== PAGE: support ===== */
.support-contact-section { font-family: 'Lexend', sans-serif; } .support-contact-section h2, .support-contact-section h3 { font-family: 'Fredoka', sans-serif; } .support-card { position: relative; overflow: hidden; height: 100%; } .support-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(142,178,35, 0.05) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .support-card:hover::before { opacity: 1; } .support-icon-wrapper { box-shadow: inset 0 0 10px rgba(142,178,35, 0.1); } .js-copy-btn:active { transform: scale(0.9); transition: transform 0.1s; } .support-contact-section .email-display { box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }

/* ===== PAGE: privacy ===== */
.privacy-content { font-family: 'Lexend', sans-serif; }.privacy-content__h2 { font-family: 'Fredoka', sans-serif; line-height: 1.2; }.privacy-content__text { font-size: 14px; } @media (min-width: 768px) { .privacy-content__text { font-size: 16px; } }.privacy-content__section { position: relative; overflow: hidden; }.privacy-content__section::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(142,178,35, 0.05) 0%, transparent 70%); pointer-events: none; }.privacy-content__list li { font-size: 14px; } @media (min-width: 768px) { .privacy-content__list li { font-size: 16px; } }

/* ===== PAGE: terms ===== */
.terms-section { overflow-x: hidden; }.terms-container { position: relative; }.terms-content-box { transition: box-shadow 0.3s ease; }.terms-content-box:hover { box-shadow: 0 0 30px rgba(142,178,35, 0.1); }.terms-inner-scroll article:not(:last-child) { border-bottom: 1px solid #aaff0026; padding-bottom: 24px; }.terms-item p { color: #7a9a7a; }.terms-item h2 { text-shadow: 0 0 5px rgba(142,178,35, 0.2); }.js-back-to-top { cursor: pointer; border: none; outline: none; }

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

.disclaimer-section .disclaimer-card {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.disclaimer-section .disclaimer-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.disclaimer-section p {
  word-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 767px) {
  .disclaimer-section .disclaimer-card {
    padding: 24px;
    border-radius: 16px;
  }
}

/* ===== PAGE: rgp ===== */
.rgp-content .rgp-card {
  position: relative;
  overflow: hidden;
}
.rgp-content .rgp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(142,178,35, 0.05), transparent);
  transition: 0.5s;
}
.rgp-content .rgp-card:hover::after {
  left: 100%;
}
.rgp-content .js-accordion-item.active .bx-chevron-down {
  transform: rotate(180deg);
}
.rgp-content .js-accordion-item.active .js-accordion-content {
  max-height: 200px;
}
.rgp-content .js-accordion-trigger:focus {
  background-color: rgba(142,178,35, 0.05);
}

.main-review-card {
    position: relative;
    overflow: hidden;
    background: #111911;
}

.comment-avatar {
    object-fit: cover;
    width: 56px;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-stars i {
    filter: drop-shadow(0 0 8px rgba(255, 187, 0, 0.4));
}

.action-bar button:active {
    transform: scale(0.92);
}

.main-review-card:hover {
    box-shadow: 0 0 30px rgba(142,178,35, 0.1);
}

.reply-review-card {
    background: #282f28;
}

.reply-review-card .comment-avatar {
    width: 40px;
    min-width: 40px;
    height: 40px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-review-card:hover {
    border-color: #ccff33;
}


/* ===== PAGE TEMPLATE: games-list ===== */
.lucky-rush-header .lucky-rush-nav-link {
    position: relative;
}

.lucky-rush-header .lucky-rush-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #aaff00;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #aaff00;
}

.lucky-rush-header .lucky-rush-nav-link:hover::after {
    width: 100%;
}

.lucky-rush-header .js-mobile-menu.active {
    display: block !important;
}

.game-iframe-wrapper.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
}

.game-iframe-wrapper.fullscreen iframe {
    height: 100vh !important;
}

.prose-red h2 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
}

.prose-red p {
    color: #7a9a7a;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose-red ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.prose-red ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #7a9a7a;
}

.prose-red ul li::before {
    content: '\ea4c';
    font-family: 'boxicons';
    position: absolute;
    left: 0;
    top: 2px;
    color: #aaff00;
    font-size: 1.25rem;
}

.prose-red strong {
    color: #FFFFFF;
    font-weight: 600;
}

.js-rating-selector i.active {
    font-weight: 900;
}

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

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

.reply-review-card::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #aaff0026;
}

@media (max-width: 767px) {
    .reply-review-card {
        margin-left: 1.5rem;
    }

    .reply-review-card::before {
        left: -16px;
    }
}
