:root {
    --primary: #FF85B3;
    --secondary: #A5F3FC;
    --accent: #FDE047;
    --background: #FFF5F8;
    --surface: #FFFFFF;
    --text-primary: #4D1D39;
    --text-secondary: #8E5B77;
    --border-color: #FFD1E3;
    --shadow-candy: 0 10px 25px -5px rgba(255, 133, 179, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

.candy-card {
    background: var(--surface);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-candy);
    transition: brightness 0.2s ease;
}

.candy-button {
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.candy-button:hover {
    filter: brightness(1.05);
}

.candy-button:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(77, 29, 57, 0.4) 0%, rgba(255, 133, 179, 0.2) 100%);
    z-index: 0;
}

.section-gap {
    padding-top: 128px;
    padding-bottom: 128px;
}

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

.header-block .font-body {
    font-family: 'Lexend', sans-serif;
}

.header-block .shadow-candy_soft {
    box-shadow: 0 10px 25px -5px rgba(255, 133, 179, 0.2);
}

.header-block .shadow-floating_card {
    box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

.header-block .js-dropdown-list {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767px) {
    .header-block .js-nav-mobile-menu.flex {
        display: flex !important;
    }
}

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

.hero-section .hero-section__video-wrapper {
    pointer-events: none;
}

.hero-section .hero-section__video {
    filter: brightness(0.8);
}

.hero-section .hero-section__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-section__btn-primary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-section .hero-section__btn-secondary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-section .hero-section__disclaimer-box {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-section .hero-section__disclaimer-text {
    line-height: 1.5;
    font-weight: 300;
}

/* ===== games_grid ===== */
.games-grid-block .game-card {
    transition: box-shadow 0.2s ease-in-out;
}

.games-grid-block .game-card:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 133, 179, 0.25);
}

.games-grid-block .game-card a {
    transition: color 0.2s ease;
}

.games-grid-block .game-card img {
    transition: transform 0.2s ease;
}

.games-grid-block .game-card:hover img {
    transform: scale(1.05);
}

/* ===== features ===== */
.community-features-block .community-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.community-features-block .community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(255, 133, 179, 0.15);
    border-color: #FF85B3;
}

.community-features-block .font-fredoka {
    font-family: 'Fredoka', sans-serif;
}

.community-features-block .font-lexend {
    font-family: 'Lexend', sans-serif;
}

/* ===== about_snippet ===== */
.about-snippet-block {
    position: relative;
    overflow: hidden;
}

.about-snippet-block .shadow-floating_card {
    box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

.about-snippet-block .shadow-candy_soft {
    box-shadow: 0 10px 25px -5px rgba(255, 133, 179, 0.2);
}

.about-snippet-block a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 48px;
    text-decoration: none;
}

.about-snippet-block .container {
    max-width: 1200px;
}

/* ===== footer ===== */
.spinoasis-footer .spinoasis-footer__disclaimer {
    box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

.spinoasis-footer .spinoasis-footer__logos img {
    transition: transform 0.2s ease;
}

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

#js-age-modal:not(.hidden) {
    display: flex;
}

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

.spinoasis-footer h4 {
    color: #4D1D39 !important;
}

.spinoasis-footer h3 {
    color: #4D1D39 !important;
}

@media (max-width: 767px) {
    .spinoasis-footer {
        text-align: center;
    }

    .spinoasis-footer .spinoasis-footer__logos {
        flex-direction: column;
    }

    .spinoasis-footer .grid {
        grid-template-columns: 1fr !important;
    }

    .spinoasis-footer .grid > div,
    .spinoasis-footer .flex.flex-col {
        align-items: center;
    }

    .spinoasis-footer .border-t {
        flex-direction: column !important;
        text-align: center;
    }
}

/* ===== PAGE: about ===== */
.about-content h2, .about-content h3 { font-family: 'Fredoka', sans-serif; }
.about-content p, .about-content span { font-family: 'Lexend', sans-serif; }
.about-content .shadow-candy_soft { box-shadow: 0 10px 25px -5px rgba(255, 133, 179, 0.2); }
.about-content .shadow-floating_card { box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08); }
.about-content .bg-candy_pink { background: linear-gradient(135deg, #FF85B3 0%, #FFB1D1 100%); }
.about-content .bg-sky_pop { background: linear-gradient(135deg, #7DD3FC 0%, #A5F3FC 100%); }
.about-content .bg-lemon_glow { background: linear-gradient(135deg, #FDE047 0%, #FEF08A 100%); }

/* ===== PAGE: games ===== */
.spinoasis-catalog .catalog-controls {
  transition: all 0.3s ease;
}
.spinoasis-catalog .js-filter-btn.active {
  background: #FF85B3;
  color: white;
  border-color: transparent;
}
.spinoasis-catalog .js-game-card {
  transform: translateY(0);
}
.spinoasis-catalog .js-game-card:hover {
  transform: translateY(-8px);
}
.spinoasis-catalog .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spinoasis-catalog input::placeholder {
  color: #8E5B77;
  opacity: 0.6;
}
.spinoasis-catalog .hidden {
  display: none !important;
}

/* ===== PAGE: support ===== */
.support-page .support-tabs-container button.active {
  background-color: #FF85B3;
  border-color: #FF85B3;
  color: #FFFFFF;
}

.support-page .js-faq-trigger i.rotate-45 {
  transform: rotate(45deg);
}

.support-page .js-faq-search::placeholder {
  color: #8E5B77;
  opacity: 0.6;
}

.support-page .js-faq-item {
  transition: box-shadow 0.3s ease;
}

.support-page .js-faq-item:hover {
  box-shadow: 0 10px 25px -5px rgba(255, 133, 179, 0.1);
}

.support-page .js-faq-content {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PAGE: events ===== */
.events-calendar-section .js-filter-btn.active {
  background-color: #FF85B3;
  color: white;
  border-color: #FF85B3;
}
.events-calendar-section .shadow-floating_card {
  box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}
.events-calendar-section .js-event-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.events-calendar-section .js-event-card:hover {
  border-color: #FF85B3;
  transform: translateY(-5px);
}

/* ===== PAGE: achievements ===== */
.achievements-section .achievement-card {
  background: #FFFFFF;
  border: 2px solid #FFD1E3;
  border-radius: 32px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.achievements-section .achievement-card:hover {
  box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

.achievements-section .progress-bg {
  background: #FCE7F3;
  height: 12px;
  border-radius: 9999px;
  overflow: hidden;
}

.achievements-section .progress-fill {
  background: linear-gradient(135deg, #FF85B3 0%, #FFB1D1 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.achievements-section .active-filter {
  background: #FF85B3;
  color: #FFFFFF !important;
  border-color: #FF85B3;
}

.achievements-section .badge-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.achievements-section .badge-container::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(165, 243, 252, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.achievements-section .badge-container img {
  position: relative;
  z-index: 1;
}

/* ===== PAGE: complaint ===== */
.complaint-section .complaint-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.complaint-section .complaint-card:hover {
  box-shadow: 0 25px 50px -12px rgba(255, 133, 179, 0.25);
}
.complaint-section .complaint-details-block {
  position: relative;
  overflow: hidden;
}
.complaint-section .complaint-details-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 133, 179, 0.03) 0%, transparent 20%);
  pointer-events: none;
}

/* ===== PAGE: privacy ===== */
.policy-section { font-family: 'Lexend', sans-serif; }
.policy-section h1, .policy-section h2 { font-family: 'Fredoka', sans-serif; }
.policy-card { position: relative; overflow: hidden; }
.policy-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, #FF85B3, #A5F3FC, #FDE047); }
.policy-body article { padding-bottom: 1.5rem; }
.policy-body ul li::marker { color: #FF85B3; }
.policy-body p { margin-top: 0.5rem; }
@media (max-width: 768px) {
  .policy-body { font-size: 14px; }
  .policy-header { margin-bottom: 2rem; }
}

/* ===== PAGE: terms ===== */
.terms-content-block {
  font-family: 'Lexend', sans-serif;
}

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

.terms-content-block .js-nav-item.active {
  transform: scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(255, 133, 179, 0.3);
}

.terms-content-block .js-content-section {
  scroll-margin-top: 100px;
}

.terms-content-block .shadow-floating_card {
  box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

@media (max-width: 768px) {
  .terms-content-block .js-content-section.hidden {
    display: block !important;
  }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-content {
  font-family: 'Lexend', sans-serif;
}

.disclaimer-content h1,
.disclaimer-content h2 {
  font-family: 'Fredoka', sans-serif;
}

.disclaimer-content .disclaimer-card {
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease-in-out;
}

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

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

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

.disclaimer-content .content-group:last-of-type {
  border-bottom: none;
}

/* ===== PAGE: rgp ===== */
.rgp-content-block .shadow-candy_soft {
  box-shadow: 0 10px 25px -5px rgba(255, 133, 179, 0.2);
}
.rgp-content-block .shadow-floating_card {
  box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}
.rgp-content-block .js-faq-trigger i {
  transition: transform 0.3s ease;
}
.rgp-content-block .js-faq-item.active .js-faq-trigger i {
  transform: rotate(45deg);
}
.rgp-content-block .js-faq-content {
  transition: all 0.3s ease-in-out;
}
.rgp-content-block img {
  max-height: 500px;
  object-fit: cover;
}

.main-comment-card {
    transition: none;
}

.comment-avatar {
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: cover;
    display: block;
}

.comment-body p {
    word-break: break-word;
    color: #4D1D39;
}

.comment-actions button {
    cursor: pointer;
    border: none;
    outline: none;
}

.reply-avatar {
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
}

.reply-comment-card {
    border-left-width: 6px;
    border-left-color: #FF85B3;
}

.reply-content p {
    color: #8E5B77;
}

.reply-comment-card:last-child {
    margin-bottom: 2rem;
}


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

.header-block .font-body {
    font-family: 'Lexend', sans-serif;
}

.header-block .shadow-candy_soft {
    box-shadow: 0 10px 25px -5px rgba(255, 133, 179, 0.2);
}

.header-block .shadow-floating_card {
    box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

.header-block .js-dropdown-list {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767px) {
    .header-block .js-nav-mobile-menu.flex {
        display: flex !important;
    }
}

.spinoasis-footer .spinoasis-footer__disclaimer {
    box-shadow: 0 20px 40px -10px rgba(77, 29, 57, 0.08);
}

.spinoasis-footer .spinoasis-footer__logos img {
    transition: transform 0.2s ease;
}

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

#js-age-modal:not(.hidden) {
    display: flex;
}

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

.spinoasis-footer h4 {
    color: #4D1D39 !important;
}

.spinoasis-footer h3 {
    color: #4D1D39 !important;
}

.content-rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-rich-text h2 {
    color: #4D1D39;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 1rem;
}

.js-game-container:fullscreen {
    border-radius: 0;
    border: 0;
}

.js-game-container:-webkit-full-screen {
    border-radius: 0;
    border: 0;
}

.js-game-container:fullscreen .js-game-iframe {
    height: 100vh;
    width: 100vw;
}

.js-game-container:-webkit-full-screen .js-game-iframe {
    height: 100vh;
    width: 100vw;
}
