:root {
    --bg-color: #0A0A0C;
    --surface-color: #16161D;
    --surface-secondary: #22222E;
    --primary-color: #FF6B00;
    --primary-glow: rgba(255, 107, 0, 0.4);
    --accent-color: #FF9F0A;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --border-color: #2D2D39;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
}

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

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

.jelly-card {
    background: var(--surface-color);
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jelly-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px -10px rgba(255, 107, 0, 0.15);
}

.jelly-button {
    background: linear-gradient(180deg, #FF6B00 0%, #E65A00 100%);
    border-radius: 9999px;
    padding: 0.75rem 2.5rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 0 0 #994100;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.jelly-button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.neon-glow {
    box-shadow: 0 0 20px 0 rgba(255, 107, 0, 0.3);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .jelly-card {
        border-radius: 1.5rem;
    }
}

/* ===== header ===== */
.phantom-header-block .nav-item {
    position: relative;
}

.phantom-header-block .nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B00;
    transition: width 0.3s ease;
}

.phantom-header-block .nav-item:hover::after {
    width: 100%;
}

.phantom-header-block .js-dropdown-menu {
    animation: jellyFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top right;
}

@keyframes jellyFade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

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

.phantom-header-block .jelly-button-cta {
    box-shadow: 0 4px 0 0 #994100, 0 8px 15px rgba(255, 107, 0, 0.2);
}

.phantom-header-block .jelly-button-cta:active {
    transform: translateY(2px);
    box-shadow: 0 0px 0 0 #994100;
}

/* ===== hero ===== */
#hero-phantom .animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

@keyframes bounce-slow {

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

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

#hero-phantom h1 {
    color: #FFFFFF !important;
}

#hero-phantom p {
    color: #A1A1AA !important;
}

#hero-phantom .jelly-visual {
    perspective: 1000px;
}

#hero-phantom .jelly-visual:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ===== featured-games ===== */
.featured-games-section .active-tab {
    background-color: #FF6B00 !important;
    color: #FFFFFF !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.featured-games-section .js-filter-btn:hover:not(.active-tab) {
    border-color: #FF6B00;
    color: #FFFFFF;
}

.featured-games-section .jelly-card {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.featured-games-section .jelly-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 0_0_#994100;
}

.featured-games-section img {
    pointer-events: none;
    transition: transform 0.5s ease;
}

.featured-games-section .jelly-card:hover img {
    transform: scale(1.05);
}

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

.features-block h2,
.features-block h3 {
    font-family: 'Fredoka', sans-serif;
}

.features-block .js-feature-card {
    position: relative;
    z-index: 1;
}

.features-block .js-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

.features-block i {
    line-height: 1;
}

/* ===== how-to-start ===== */
.how-to-start-block .how-to-start-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.how-to-start-block .how-to-start-card img {
    transition: transform 0.5s ease;
}

.how-to-start-block .how-to-start-card:hover img {
    transform: scale(1.1);
}

.how-to-start-block .how-to-start-card i {
    filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.4));
}

/* ===== footer ===== */
.phantom-footer {
    position: relative;
    z-index: 10;
}

.phantom-footer .footer-brand img {
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.2));
}

.phantom-footer h3 {
    color: #FFFFFF !important;
    letter-spacing: -0.01em;
}

.phantom-footer a:hover {
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

.phantom-footer i {
    font-size: 18px;
}

@media (max-width: 767px) {
    .phantom-footer .grid {
        text-align: left;
    }

    .phantom-footer h3 {
        font-size: 16px !important;
    }

    .phantom-footer p {
        font-size: 14px !important;
        line-height: 1.5;
    }
}

/* ===== PAGE: about ===== */
.about-blocks .jelly-card { background: #16161D; border-radius: 2.5rem; border: 1px solid #2D2D39; transition: all 0.3s ease; } .about-blocks .jelly-card:hover { transform: translateY(-4px); box-shadow: 0 0 20px 0 rgba(255, 107, 0, 0.2); } .about-blocks .neon-accent { color: #FF6B00; text-shadow: 0 0 10px rgba(255, 107, 0, 0.3); } .about-blocks .image-glow { position: relative; } .about-blocks .image-glow::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 100px rgba(0,0,0,0.5); pointer-events: none; }

/* ===== PAGE: games ===== */
.games-section .jelly_card { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }.games-section .jelly_button { background: linear-gradient(180deg, #FF6B00 0%, #E65A00 100%); border-bottom: 4px solid #994100; transition: all 0.2s ease; }.games-section .jelly_button:active { transform: translateY(2px); border-bottom-width: 0; }.games-section .neon_glow { box-shadow: 0 0 20px 0 rgba(255,107,0,0.3); }@media (max-width: 767px) { .games-section .container { padding-left: 1rem; padding-right: 1rem; } }

/* ===== PAGE: tournaments ===== */
.tournaments-page {
  font-family: 'Quicksand', sans-serif;
}
.tournaments-page h2, .tournaments-page h3 {
  font-family: 'Fredoka', sans-serif;
}
.tournaments-page .tournament-card {
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tournaments-page .tournament-card:hover {
  transform: translateY(-8px);
  border-color: #FF6B00;
  box-shadow: 0 20px 40px -15px rgba(255, 107, 0, 0.2);
}
.tournaments-page .js-filter-btn.active {
  background-color: #FF6B00;
  border-color: #FF6B00;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}
.tournaments-page .upcoming-events-block .bg-[#16161D] {
  transition: transform 0.3s ease;
}
.tournaments-page .upcoming-events-block .bg-[#16161D]:hover {
  transform: scale(1.01);
}

/* ===== PAGE: achievements ===== */
.achievements-page .js-achievement-card {
  background: linear-gradient(180deg, #16161D 0%, #0D0D14 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 30px -10px rgba(0,0,0,0.5);
}

.achievements-page .js-filter-btn.active {
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.achievements-page .progress-bar-inner {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievements-page input::placeholder {
  color: #71717A;
  font-weight: 400;
}

.achievements-page .achievement-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,107,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== PAGE: hall-of-fame ===== */
.hall-of-fame-section .jelly-card { background: #16161D; border-radius: 2rem; border: 1px solid #2D2D39; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }.hall-of-fame-section .jelly-card:hover { transform: translateY(-8px); border-color: #FF6B00; box-shadow: 0 15px 40px -10px rgba(255,107,0,0.2); }.hall-of-fame-section .rank-badge { position: absolute; top: -12px; left: 24px; padding: 4px 16px; border-radius: 9999px; font-family: 'Fredoka', sans-serif; font-weight: 700; color: #FFFFFF; font-size: 14px; z-index: 10; shadow: 0 4px 10px rgba(0,0,0,0.3); }.hall-of-fame-section .progress-bar-container { background: #22222E; border-radius: 9999px; height: 10px; overflow: hidden; position: relative; }.hall-of-fame-section .progress-fill { height: 100%; border-radius: 9999px; transition: width 1s ease-out; }.hall-of-fame-section .search-box input::placeholder { color: #71717A; opacity: 1; }.hall-of-fame-section .filter-tabs::-webkit-scrollbar { height: 4px; }.hall-of-fame-section .filter-tabs::-webkit-scrollbar-thumb { background: #2D2D39; border-radius: 10px; }

/* ===== PAGE: how-to-play ===== */
.how-to-play-page .jelly_card {
  background: #16161D;
  border-radius: 2rem;
  border: 1px solid #2D2D39;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.how-to-play-page .jelly_card:hover {
  transform: translateY(-8px);
  border-color: #FF6B00;
  box-shadow: 0 20px 40px -15px rgba(255, 107, 0, 0.2);
}
.how-to-play-page .neon_glow {
  box-shadow: 0 0 20px 0 rgba(255, 107, 0, 0.4);
}
.how-to-play-page .glass_panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.how-to-play-page .tip-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 107, 0, 0.3);
}
.how-to-play-page .instruction-card img {
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}
.how-to-play-page .instruction-card:hover img {
  filter: grayscale(0%);
}

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

.contact-section .contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.05), transparent 70%);
  pointer-events: none;
}

.contact-section iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.contact-section .jelly-btn {
  box-shadow: 0 4px 0 0 #994100;
}

.contact-section .jelly-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* ===== PAGE: privacy ===== */
.privacy-content .privacy-content__card {
  position: relative;
  overflow: hidden;
}
.privacy-content .privacy-content__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.2), transparent);
}
.privacy-content .privacy-content__body p {
  margin-bottom: 1.5rem;
}
.privacy-content .privacy-content__body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.privacy-content .privacy-content__body ul li i {
  flex-shrink: 0;
}

/* ===== PAGE: terms ===== */
.terms-content-section .js-accordion-item { transform: translateZ(0); backface-visibility: hidden; }.terms-content-section .js-accordion-icon.rotate-180 { transform: rotate(180deg); }.terms-content-section .js-accordion-item:hover { border-color: rgba(255, 107, 0, 0.5); }.terms-content-section .js-accordion-content { transition: all 0.3s ease-in-out; }

/* ===== PAGE: disclaimer ===== */
.disclaimer-content .jelly-card-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.disclaimer-content .disclaimer-block {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.5rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.disclaimer-content .disclaimer-block:hover {
  border-color: rgba(255, 107, 0, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .disclaimer-content .disclaimer-block {
    padding: 1rem;
  }
}

.comment-avatar {
    width: 64px;
    height: 64px;
    border-radius: 1.5rem;
    object-fit: cover;
    border: 3px solid #2D2D39;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.neon-border {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.jelly-comment-card:hover .neon-border {
    border-color: #FF6B00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.jelly-comment-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.reply-avatar {
    width: 48px;
    height: 48px;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 2px solid #2D2D39;
}

.jelly-reply-card {
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.jelly-reply-card:hover {
    background-color: #282836;
}

.reply-line {
    z-index: 0;
    opacity: 0.5;
}


/* ===== PAGE TEMPLATE: games-list ===== */
.phantom-header-block .nav-item {
    position: relative;
}

.phantom-header-block .nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B00;
    transition: width 0.3s ease;
}

.phantom-header-block .nav-item:hover::after {
    width: 100%;
}

.phantom-header-block .js-dropdown-menu {
    animation: jellyFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top right;
}

@keyframes jellyFade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

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

.game-iframe-wrapper {
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.15);
    transition: transform 0.3s ease;
}

.game-iframe-wrapper:hover {
    transform: translateY(-4px);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FF6B00;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.jelly-comment-card,
.jelly-reply-card {
    transition: all 0.3s ease;
}

.jelly-comment-card:hover {
    transform: translateX(5px);
    border-color: #FF6B00;
}

.phantom-footer h3 {
    color: #FFFFFF !important;
}