:root {
    --primary-bg: #F8FAFC;
    --secondary-bg: #F1F5F9;
    --accent-gradient: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 100%);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-blue: #2563EB;
    --deep-indigo: #3730A3;
    --sand-gold: #D97706;
    --ocean-cyan: #0EA5E9;
    --border-color: #E2E8F0;
    --card-bg: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(55, 48, 163, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.corsalix-floating-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px var(--shadow-color);
    transition: all 0.5s ease-out;
}

.corsalix-floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(55, 48, 163, 0.15);
}

.corsalix-btn-primary {
    background: linear-gradient(to right, var(--accent-blue), var(--deep-indigo));
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.3s ease;
}

.corsalix-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: scale(1.02);
}

.corsalix-heading {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== valikko ===== */
#header-corsalix {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#header-corsalix .js-dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

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

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

#header-corsalix .mobile-nav-link {
    font-size: 0.8rem;
}

#header-corsalix nav a,
#header-corsalix button {
    letter-spacing: 0.025em;
}

#header-corsalix .js-mobile-nav {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* ===== tervetuloapiratesbattleislandtreasure-seikkailuun ===== */
.hero-block {
    position: relative
}

.hero-block .hero-block-bg {
    background-image:url('../public/img/graphics/pirate-adventure-island-horizon.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed
}

.hero-block .hero-block-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(55, 48, 163, 0.5))
}

.hero-block .hero-block-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5)
}

@media(max-width:768px) {
    .hero-block .hero-block-bg {
        background-attachment: scroll
    }
}

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

.tournaments-block h2 {
    letter-spacing: 0.1em;
}

.tournaments-block table {
    min-width: 600px;
}

.tournaments-block .js-tournament-row {
    cursor: default;
}

.tournaments-block .js-tournament-row:last-child {
    border-bottom: none;
}

.tournaments-block .overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.tournaments-block .overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.tournaments-block .overflow-x-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.tournaments-block .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 767px) {
    .tournaments-block table {
        min-width: 500px;
    }
}

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

.difficulties-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(224, 231, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.difficulties-block .difficulty-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.difficulties-block .difficulty-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.difficulties-block .bi-check2-circle {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== piraattiensnnt ===== */
.rules-section .js-rules-tab.active {
    background: linear-gradient(135deg, #2563EB 0%, #3730A3 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.rules-section .js-rules-content.hidden {
    display: none;
}

.rules-section .js-rules-content.active {
    display: grid;
    animation: fadeIn 0.5s ease-out;
}

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

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

.rules-section .container {
    max-width: 1200px;
}

.rules-section .bi-check2-circle {
    font-size: 1.2rem;
}

/* ===== mitmerenkvijtsanovat ===== */
.pirates-reviews {
    background-color: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.pirates-reviews .js-review-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #FFFFFF;
}

.pirates-reviews .js-review-card:hover {
    border-color: #E0E7FF;
}

.pirates-reviews h2 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

.pirates-reviews p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

/* ===== laivastojavarusteet ===== */
.ships-grid-412 {
    background-image: radial-gradient(circle at 50% 0%, rgba(224, 231, 255, 0.4) 0%, transparent 70%);
    hyphens: auto;
}

.ships-grid-412 .ships-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ships-grid-412 .ships-card:hover {
    transform: translateY(-10px);
}

/* ===== tietopankki ===== */
.guides-grid-block .guide-card {
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guides-grid-block .guide-img {
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

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

.guides-grid-block h2,
.guides-grid-block h3 {
    font-family: 'Cinzel', serif;
}

.guides-grid-block .guide-card a {
    text-decoration: none;
}

.guides-grid-block .guide-card h3 {
    transition: color 0.3s ease;
}

.guides-grid-block .guide-card:hover h3 {
    color: #2563EB;
}

/* ===== alatunniste ===== */
.footer-block .footer-title {
    font-family: 'Cinzel', serif;
}

.footer-block .footer-link,
.footer-block p,
.footer-block span,
.footer-block a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-block .footer-col {
    display: flex;
    flex-direction: column;
}

.footer-block .footer-link:hover {
    text-decoration: none;
}

.footer-block .bi {
    line-height: 1;
}

.hero-block {
    position: relative;
}

.hero-block .hero-block-bg {
    background-image: url('../public/img/graphics/pirate-adventure-island-horizon.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-block .hero-block-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(55, 48, 163, 0.5));
}

.hero-block .hero-block-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media(max-width:768px) {
    .hero-block .hero-block-bg {
        background-attachment: scroll;
    }
}

#header-corsalix {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#header-corsalix .js-dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

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

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

.footer-block .footer-title {
    font-family: 'Cinzel', serif;
}

.footer-block .footer-link,
.footer-block p,
.footer-block span,
.footer-block a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-block .footer-col {
    display: flex;
    flex-direction: column;
}

.news-grid-block .news-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-grid-block .news-card:hover {
    transform: translateY(-8px);
}

.game-feature-block h2 {
    letter-spacing: 0.05em;
}


/* ===== PAGE: privacy ===== */
.policy-wrapper-block { background-color: #F8FAFC; padding: 4rem 1rem; min-height: 100vh; font-family: 'Plus Jakarta Sans', sans-serif; }
.policy-content-area { max-width: 900px; margin: 0 auto; }
.policy-inner-container { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border: 1px solid #FFFFFF; border-radius: 2rem; padding: 2.5rem; shadow-color: rgba(55, 48, 163, 0.08); box-shadow: 0 10px 30px -5px rgba(55, 48, 163, 0.08); }
.policy-main-heading { font-family: 'Cinzel', serif; font-size: 18px; line-height: 1.2; color: #0F172A; margin-bottom: 0.5rem; text-align: center; }
@media (min-width: 768px) { .policy-main-heading { font-size: 42px; } }
.policy-date { font-size: 14px; color: #64748B; text-align: center; margin-bottom: 3rem; }
.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 { font-family: 'Cinzel', serif; font-size: 16px; color: #0F172A; margin-bottom: 1.25rem; border-left: 4px solid #2563EB; padding-left: 1rem; line-height: 1.3; }
@media (min-width: 768px) { .policy-section h2 { font-size: 32px; } }
.policy-section p { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 1rem; }
.policy-section ul { list-style-type: none; padding-left: 0; margin-bottom: 1.5rem; }
.policy-section li { position: relative; padding-left: 1.75rem; font-size: 16px; line-height: 1.6; color: #334155; margin-bottom: 0.75rem; }
.policy-section li::before { content: '\F2FD'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: #2563EB; font-size: 1rem; }
.policy-link { color: #2563EB; text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.policy-link:hover { color: #3730A3; text-decoration: underline; }
.policy-section .list-none li::before,
.policy-list li::before { content: none; }
.policy-section .list-none li,
.policy-list li { padding-left: 0; }
@media (max-width: 767px) {
  .policy-inner-container { padding: 1.5rem; }
  .policy-main-heading { font-size: 18px; }
  .policy-section h2 { font-size: 16px; }
  .policy-section p, .policy-section li { font-size: 14px; }
}

/* ===== PAGE: terms ===== */
.policy-wrapper-block { background-color: #F8FAFC; min-height: 100vh; }.policy-content-area { border-radius: 2rem; position: relative; z-index: 1; }.policy-body h2 { font-family: 'Cinzel', serif; letter-spacing: -0.02em; color: #0F172A; }.policy-body p { line-height: 1.8; color: #475569; }.policy-link { color: #2563EB; text-decoration: none; transition: all 0.3s ease; }.policy-link:hover { color: #3730A3; text-decoration: underline; }.policy-section { animation: fadeIn 0.8s ease-out forwards; opacity: 0; }.policy-section:nth-child(1) { animation-delay: 0.1s; }.policy-section:nth-child(2) { animation-delay: 0.2s; }.policy-section:nth-child(3) { animation-delay: 0.3s; }.policy-section:nth-child(4) { animation-delay: 0.4s; }.policy-section:nth-child(5) { animation-delay: 0.5s; }.policy-section:nth-child(6) { animation-delay: 0.6s; }.policy-section:nth-child(7) { animation-delay: 0.7s; }@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== PAGE: disclaimer ===== */
.policy-content-area {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.8;
  color: #334155;
}
.policy-content-area h1, 
.policy-content-area h2 {
  color: #0F172A;
  letter-spacing: -0.02em;
}
.policy-content-area p {
  margin-bottom: 1.5rem;
  text-align: justify;
  hyphens: auto;
}
.policy-content-area ul li {
  position: relative;
  line-height: 1.5;
}
.policy-content-area .disclaimer-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  box-shadow: 0 20px 25px -5px rgba(55, 48, 163, 0.05), 0 10px 10px -5px rgba(55, 48, 163, 0.02);
}
@media (max-width: 767px) {
  .policy-content-area p {
    text-align: left;
  }
  .policy-content-area h1 {
    font-size: 18px !important;
  }
  .policy-content-area h2 {
    font-size: 16px !important;
  }
  .policy-content-area h3 {
    font-size: 14px !important;
  }
}

/* ===== PAGE: cookies ===== */
.policy-wrapper-block { background-color: #F8FAFC; min-height: 100vh; font-family: 'Plus Jakarta Sans', sans-serif; }.policy-content-area .policy-heading-primary { font-family: 'Cinzel', serif; color: #0F172A; line-height: 1.2; }.policy-content-area .policy-paragraph { line-height: 1.8; color: #475569; }.policy-content-area .policy-list i { font-size: 1.1rem; }.policy-content-area a { transition: all 0.3s ease; }.policy-content-card { transition: transform 0.3s ease; }.policy-content-card:hover { transform: translateY(-4px); }

/* ===== PAGE: play ===== */
.corsalix-play-block .corsalix-game-wrapper {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.corsalix-play-block iframe {
  border-radius: 0 0 2rem 2rem;
}
.corsalix-play-block #js-game-container:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  z-index: 9999;
  background: #000;
}
.corsalix-play-block #js-game-container:fullscreen #js-game-frame {
  height: calc(100vh - 60px);
  border-radius: 0;
}
.corsalix-play-block #js-game-container:fullscreen .bg-[#F1F5F9] {
  border-radius: 0;
}
@media (max-width: 768px) {
  .corsalix-play-block .corsalix-game-wrapper {
    border-radius: 1.5rem;
  }
  .corsalix-play-block iframe {
    border-radius: 0 0 1.5rem 1.5rem;
  }
}

/* ===== PAGE: contacts ===== */
.contact-section .contact-card {
    height: 100%;
}

.contact-section .icon-wrapper {
    transition: transform 0.3s ease-in-out;
}

.contact-section .contact-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.contact-section address {
    line-height: 1.6;
}

.contact-section h1, .contact-section h2, .contact-section h3 {
    color: #0F172A !important;
}

@media (max-width: 767px) {
    .contact-section .contact-card {
        padding: 1.5rem;
    }
}

.font-cinzel {
    font-family: 'Cinzel', serif
}

.avatar-ui {
    object-fit: cover;
    min-width: 4rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.main-comment-card {
    box-shadow: 0 20px 25px -5px rgba(55, 48, 163, 0.05), 0 8px 10px -6px rgba(55, 48, 163, 0.05)
}

.main-comment-card:hover {
    border-color: rgba(37, 99, 235, 0.2)
}

.reply-comment-card {
    transition: all 0.3s ease-in-out
}

.reply-comment-card:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px)
}

.avatar-ui {
    object-fit: cover;
    width: 3rem;
    height: 3rem;
    min-width: 3rem
}


/* ===== PAGE TEMPLATE: ships ===== */
.detail-hero-section {
    background-color: #0F172A;
}

.detail-article-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 2rem 0 1rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .detail-article-content h2 {
        font-size: 32px;
    }
}

.detail-article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #334155;
}

.detail-article-content ul,
.detail-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.detail-article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: #475569;
}

.detail-article-content blockquote {
    border-left: 4px solid #2563EB;
    background: #F1F5F9;
    padding: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
}

#header-corsalix .js-dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

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

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

.js-like-btn.active i {
    color: #EA580C;
    -webkit-text-fill-color: #EA580C;
}

.avatar-ui {
    user-select: none;
}

#footer-block .footer-title {
    font-family: 'Cinzel', serif;
}

#footer-block .footer-link,
#footer-block p,
#footer-block span,
#footer-block a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== PAGE TEMPLATE: guides ===== */
.detail-hero-section {
    background-color: #0F172A;
}

.detail-article-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 2rem 0 1rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .detail-article-content h2 {
        font-size: 32px;
    }
}

.detail-article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #334155;
}

.detail-article-content ul,
.detail-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.detail-article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: #475569;
}

.detail-article-content blockquote {
    border-left: 4px solid #2563EB;
    background: #F1F5F9;
    padding: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
}

#header-corsalix .js-dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

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

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

.js-like-btn.active i {
    color: #EA580C;
    -webkit-text-fill-color: #EA580C;
}

.avatar-ui {
    user-select: none;
}

#footer-block .footer-title {
    font-family: 'Cinzel', serif;
}

#footer-block .footer-link,
#footer-block p,
#footer-block span,
#footer-block a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== PAGE TEMPLATE: story ===== */
.detail-hero-section {
    background-color: #0F172A;
}

.detail-article-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 2rem 0 1rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .detail-article-content h2 {
        font-size: 32px;
    }
}

.detail-article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #334155;
}

.detail-article-content ul,
.detail-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.detail-article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: #475569;
}

.detail-article-content blockquote {
    border-left: 4px solid #2563EB;
    background: #F1F5F9;
    padding: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
}

#header-corsalix .js-dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

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

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

.js-like-btn.active i {
    color: #EA580C;
    -webkit-text-fill-color: #EA580C;
}

.avatar-ui {
    user-select: none;
}

#footer-block .footer-title {
    font-family: 'Cinzel', serif;
}

#footer-block .footer-link,
#footer-block p,
#footer-block span,
#footer-block a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== PAGE TEMPLATE: news ===== */
.detail-hero-section {
    background-color: #0F172A;
}

.detail-article-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 2rem 0 1rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .detail-article-content h2 {
        font-size: 32px;
    }
}

.detail-article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #334155;
}

.detail-article-content ul,
.detail-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.detail-article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: #475569;
}

.detail-article-content blockquote {
    border-left: 4px solid #2563EB;
    background: #F1F5F9;
    padding: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
}

#header-corsalix .js-dropdown-menu {
    animation: fadeIn 0.2s ease-out;
}

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

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

.js-like-btn.active i {
    color: #EA580C;
    -webkit-text-fill-color: #EA580C;
}

.avatar-ui {
    user-select: none;
}

#footer-block .footer-title {
    font-family: 'Cinzel', serif;
}

#footer-block .footer-link,
#footer-block p,
#footer-block span,
#footer-block a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}