:root {
    --background-primary: #020617;
    --background-secondary: #0f172a;
    --background-tertiary: #1e293b;
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --secondary: #2dd4bf;
    --accent: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(56, 189, 248, 0.2);
}

body {
    background-color: var(--background-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

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

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.ocean-gradient {
    background: linear-gradient(180deg, #020617 0%, #0c4a6e 100%);
}

.btn-liquid {
    background: linear-gradient(90deg, #38bdf8 0%, #2dd4bf 100%);
    transition: all 400ms ease-in-out;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
}

.btn-liquid:hover {
    transform: scale(1.05);
    filter: hue-rotate(45deg);
}

.submerged-grid {
    display: grid;
    gap: 2rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.header-navigation .js-dropdown-trigger i {
    transition: transform 0.3s ease;
}

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

.header-navigation .js-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-navigation .js-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.header-navigation .js-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

@media (min-width: 1024px) {
    .header-navigation .js-dropdown-content {
        backdrop-filter: blur(12px);
        background: rgba(15, 23, 42, 0.95);
    }
}

/* ===== hero ===== */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-bg-img {
    background-position: center;
    background-size: cover;
}

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

.hero-content-box {
    transition: all 1s ease-out;
}

.hero-content-box.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn-primary:hover {
    transform: scale(1.05);
}

.hero-btn-secondary:hover {
    transform: scale(1.05);
}

.hero-title {
    hyphens: auto;
    text-wrap: balance;
}

.hero-description {
    color: #94a3b8;
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

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

.features-section h2,
.features-section h3 {
    font-family: 'Playfair Display', serif;
}

.features-section .feature-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}

.features-section .feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(30, 41, 59, 0.9);
}

.features-section .icon-wrapper i {
    transition: transform 0.4s ease;
}

.features-section .feature-card:hover .icon-wrapper i {
    transform: rotate(360deg);
}

@media (max-width: 767px) {
    .features-section .feature-card {
        padding: 24px;
    }
}

/* ===== games-grid ===== */
.social-games-grid .game-card {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.social-games-grid .game-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
}

.social-games-grid .container {
    max-width: 1280px;
}

.js-game-overlay.is-active {
    display: flex;
}

.js-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .social-games-grid h2 {
        font-size: 24px;
    }

    .social-games-grid p {
        font-size: 14px;
    }
}

/* ===== about-preview ===== */
.about-preview-block {
    position: relative;
    z-index: 10;
}

.about-preview-block .about-badge {
    letter-spacing: 0.15em;
}

.about-preview-block .about-content h2 {
    color: #f8fafc;
}

.about-preview-block .about-content h3 {
    color: #38bdf8;
}

.about-preview-block .about-image-wrapper img {
    transition: transform 0.6s ease-in-out;
}

.about-preview-block .about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-preview-block .js-reveal {
    visibility: hidden;
}

/* ===== footer ===== */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer__container {
    position: relative;
    z-index: 2;
}

.site-footer__disclaimer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #38bdf8;
}

.site-footer__trust-logos img {
    filter: brightness(1);
    transition: transform 0.3s ease;
}

.site-footer__trust-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer a {
    transition: color 0.3s ease;
}

.js-age-modal.active {
    display: flex;
}

@media (max-width: 767px) {
    .site-footer__trust-logos img {
        max-width: 100px;
    }

    .site-footer__disclaimer {
        padding: 20px;
    }
}

/* ===== PAGE: privacy ===== */
#policy-content-container {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  color: #f8fafc;
  line-height: 1.6;
}

.privacy-content-wrapper {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.privacy-header-decoration {
  text-align: center;
  margin-bottom: 30px;
  color: #38bdf8;
  font-size: 24px;
}

#policy-content-container h2 {
  color: #38bdf8;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  #policy-content-container h2 {
    font-size: 32px;
  }
}

#policy-content-container h3 {
  color: #2dd4bf;
  font-size: 14px;
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  #policy-content-container h3 {
    font-size: 26px;
  }
}

#policy-content-container p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #94a3b8;
}

@media (min-width: 768px) {
  #policy-content-container p {
    font-size: 18px;
  }
}

#policy-content-container ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style: none;
}

#policy-content-container li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 25px;
  font-size: 14px;
  color: #94a3b8;
}

@media (min-width: 768px) {
  #policy-content-container li {
    font-size: 16px;
  }
}

#policy-content-container li::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #38bdf8;
}

/* Lists that use their own inline icon (e.g. anchor) should not show the arrow marker */
#policy-content-container li.flex::before {
  content: none;
}

#policy-content-container li.flex {
  padding-left: 0;
}

#policy-content-container strong {
  color: #f8fafc;
  font-weight: 600;
}

.last-updated-tag {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: right;
  font-size: 12px;
  color: #38bdf8;
  font-style: italic;
}

/* ===== PAGE: terms ===== */
.policy-content-container {
  background: #020617;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.policy-content-container .terms-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.policy-content-container .terms-heading {
  color: #38bdf8;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 16px;
}

@media (min-width: 768px) {
  .policy-content-container .terms-heading {
    font-size: 32px;
  }
}

.policy-content-container .terms-text {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .policy-content-container .terms-text {
    font-size: 18px;
  }
}

.policy-content-container .terms-list {
  list-style: none;
  padding-left: 0;
}

.policy-content-container .terms-list-item {
  display: flex;
  align-items: flex-start;
  color: #94a3b8;
  font-size: 14px;
}

@media (min-width: 768px) {
  .policy-content-container .terms-list-item {
    font-size: 16px;
  }
}

.policy-content-container .terms-section {
  position: relative;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.policy-content-container .terms-section:last-child {
  border-bottom: none;
}

/* ===== PAGE: disclaimer ===== */
.policy-content-container { font-family: 'Inter', sans-serif; max-width: 1200px; margin: 0 auto; }
.policy-content-container h2 { font-family: 'Playfair Display', serif; color: #f8fafc; }
.policy-content-container h3 { font-family: 'Playfair Display', serif; border-left: 4px solid #38bdf8; padding-left: 1rem; }
.policy-content-container p { line-height: 1.8; color: #cbd5e1; }
.policy-section { position: relative; transition: transform 0.3s ease; }
.policy-section:hover { transform: translateX(5px); }
.policy-header h2 { text-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* ===== PAGE: cookies ===== */
#policy-content-container { padding: 40px 20px; max-width: 1200px; margin: 0 auto; color: #f8fafc; font-family: 'Inter', sans-serif; line-height: 1.6; } .policy-article { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(12px); border: 1px solid rgba(56, 189, 248, 0.1); border-radius: 24px; padding: 30px; } .policy-section { margin-bottom: 40px; } .policy-content-container h1 { font-family: 'Playfair Display', serif; color: #38bdf8; font-size: 18px; margin-bottom: 24px; } @media (min-width: 768px) { .policy-content-container h1 { font-size: 42px; } } .policy-content-container h2 { font-family: 'Playfair Display', serif; color: #38bdf8; font-size: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(56, 189, 248, 0.2); padding-bottom: 8px; } @media (min-width: 768px) { .policy-content-container h2 { font-size: 32px; } } .policy-content-container h3 { font-family: 'Playfair Display', serif; color: #2dd4bf; font-size: 14px; margin-bottom: 12px; } @media (min-width: 768px) { .policy-content-container h3 { font-size: 26px; } } .policy-content-container p { margin-bottom: 16px; color: #94a3b8; font-size: 14px; } @media (min-width: 768px) { .policy-content-container p { font-size: 16px; } } .cookie-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; } @media (min-width: 768px) { .cookie-grid { grid-template-columns: repeat(3, 1fr); } } .cookie-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(56, 189, 248, 0.1); padding: 20px; border-radius: 16px; transition: transform 0.3s ease, border-color 0.3s ease; } .cookie-card:hover { transform: translateY(-5px); border-color: #38bdf8; } .cookie-card h3 { margin-top: 0; } .cookie-card p { margin-bottom: 0; font-size: 13px; }

/* ===== PAGE: rgp ===== */
.policy-content-container { background: #020617; padding: clamp(20px, 5vw, 60px); color: #f8fafc; font-family: 'Inter', sans-serif; min-height: 60vh; line-height: 1.6; } .rgp-wrapper { max-width: 1000px; margin: 0 auto; } .rgp-section { margin-bottom: 3rem; } .rgp-section-title { font-family: 'Playfair Display', serif; } .rgp-section h3 { font-family: 'Playfair Display', serif; border-left: 4px solid #38bdf8; padding-left: 1rem; } .rgp-section ul li i { color: #2dd4bf; transition: transform 0.3s ease; } .rgp-section ul li:hover i { transform: translateX(5px); } .rgp-section div[class*='bg-'] { transition: background 0.3s ease, border-color 0.3s ease; } .rgp-section div[class*='bg-']:hover { background: #1e293b; border-color: #38bdf8; }

/* ===== PAGE: about ===== */
.about-section .js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.about-section .js-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section .pillar-card {
  position: relative;
  overflow: hidden;
}

.about-section .pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, rgba(56, 189, 248, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-section .pillar-card:hover::before {
  opacity: 1;
}

.about-section .about-image-wrapper img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-section .about-image-wrapper:hover img {
  transform: scale(1.02) rotate(1deg);
}

@media (max-width: 767px) {
  .about-section .stat-box span:first-child {
    font-size: 24px;
  }
  .about-section .stat-box span:last-child {
    font-size: 10px;
  }
}

/* ===== PAGE: all-games ===== */
.catalog-grid-section {
  background: radial-gradient(circle at 50% 0%, #0c4a6e 0%, #020617 70%);
}

.catalog-grid-section .catalog-grid-section__search-input::placeholder {
  color: #94a3b8;
  opacity: 0.7;
}

.catalog-grid-section .catalog-grid-section__card {
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.catalog-grid-section .catalog-grid-section__card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.15);
}

.catalog-grid-section .catalog-grid-section__main-title {
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

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

@media (max-width: 767px) {
  .catalog-grid-section .catalog-grid-section__grid {
    display: flex;
    flex-direction: column;
  }
}

/* ===== PAGE: support ===== */
.support-center .support-form-container {
  backdrop-filter: blur(12px);
}

.support-center input::placeholder,
.support-center textarea::placeholder {
  color: #475569;
  opacity: 1;
}

.support-center select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
}

.support-center input:focus,
.support-center textarea:focus,
.support-center select:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* ===== PAGE: how-to-play ===== */
.instructions-section { position: relative; overflow: hidden; }
.instructions-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.05) 0%, transparent 50%); pointer-events: none; }
.instructions-section .js-faq-item.active .js-faq-content { max-height: 200px; padding-bottom: 1rem; }
.instructions-section .js-faq-item.active .js-faq-trigger i { transform: rotate(180deg); }
.instructions-section .js-faq-trigger:hover { background: rgba(56, 189, 248, 0.05); }
.instructions-section .js-faq-content { transition: max-height 0.3s ease-out, padding 0.3s ease; }

/* ===== PAGE: events ===== */
.events-list .js-filter-btn.active {
  background-color: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
}

.events-list .js-event-card {
  transition: transform 0.4s ease, border-color 0.4s ease;
  transform: translateY(0);
}

.events-list .js-event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.events-list .events-list__search input::placeholder {
  color: #94a3b8;
}

.events-list .events-list__search input:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.events-list .hidden {
  display: none !important;
}

/* ===== PAGE: daily-tasks ===== */
.tasks-list-section .js-task-card {
  background: rgba(30, 41, 59, 0.7);
}

.tasks-list-section .active {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
}

.tasks-list-section .js-task-card.hidden {
  display: none;
}

@media (max-width: 767px) {
  .tasks-list-section h2 {
    font-size: 18px !important;
  }
  .tasks-list-section h3 {
    font-size: 14px !important;
  }
  .tasks-list-section p {
    font-size: 14px !important;
  }
}

.fishing-comment-main {
    position: relative;
    z-index: 1
}

.avatar-ui {
    flex-shrink: 0;
    transition: transform 0.4s ease;
    user-select: none
}

.fishing-comment-main:hover .avatar-ui {
    transform: scale(1.05) rotate(-3deg)
}

.comment-avatar-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 9999px;
    border: 2px solid #020617
}

.fishing-comment-reply {
    position: relative
}

.avatar-ui-sm {
    flex-shrink: 0;
    user-select: none
}

.reply-avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 9999px;
    border: 1px solid #020617
}

.fishing-comment-reply p {
    font-family: 'Inter', sans-serif
}


/* ===== PAGE TEMPLATE: games-list ===== */
.header-navigation {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-navigation .js-dropdown-trigger i {
    transition: transform 0.3s ease;
}

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

.header-navigation .js-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-navigation .js-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.header-navigation .js-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

@media (min-width: 1024px) {
    .header-navigation .js-dropdown-content {
        backdrop-filter: blur(12px);
        background: rgba(15, 23, 42, 0.95);
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer__container {
    position: relative;
    z-index: 2;
}

.site-footer__disclaimer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #38bdf8;
}

.site-footer__trust-logos img {
    filter: brightness(1);
    transition: transform 0.3s ease;
}

.site-footer__trust-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer a {
    transition: color 0.3s ease;
}

.js-age-modal.active {
    display: flex;
}

@media (max-width: 767px) {
    .site-footer__trust-logos img {
        max-width: 100px;
    }

    .site-footer__disclaimer {
        padding: 20px;
    }
}

.games-detail-block .js-game-iframe:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

.games-detail-block .js-game-iframe:-ms-fullscreen {
    width: 100%;
    height: 100%;
}

.games-detail-block .js-game-iframe:fullscreen {
    width: 100%;
    height: 100%;
}

.games-detail-block .fishing-comment-reply {
    margin-left: 2rem;
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    padding-left: 1rem;
}