:root {
    --color-bg-dark: #0E1116;
    --color-surface: #1E2A35;
    --color-primary: #0099CC;
    --color-accent: #7EF9C2;
    --color-text-main: #F5F7FA;
    --color-text-muted: #C4C4C4;
    --color-highlight: #C4C4C4;
    --color-border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --container-width: 1200px;
}

@keyframes aurora-shift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(30deg);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(0, 153, 204, 0.16), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(126, 249, 194, 0.12), transparent 50%),
                var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.7;
}

img,
iframe {
    max-width: 100%;
    display: block;
}

img {
    border-radius: 12px;
    object-fit: cover;
}

iframe,
.card img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

button {
    font-family: inherit;
}

a,
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.io-fade {
    opacity: 0;
    transform: translateY(24px);
}

.io-fade.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-text-main);
    margin: 0 0 16px;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin: 0 0 16px;
}

.container {
    width: min(100% - 48px, var(--container-width));
    margin: 0 auto;
}

.aurora-line {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(126, 249, 194, 0.85), rgba(0, 153, 204, 0.85));
    box-shadow: 0 0 22px rgba(126, 249, 194, 0.45);
}

.aurora-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 247, 250, 0.75), transparent);
    transform: translateX(-100%);
    animation: aurora-glide 4s ease-in-out infinite;
}

@keyframes aurora-glide {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

.card {
    background: linear-gradient(180deg, rgba(30, 42, 53, 0.95), rgba(25, 35, 44, 0.95));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--color-accent);
}

.card + .card {
    margin-top: 32px;
}

.hidden {
    display: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    background: transparent;
    color: var(--color-text-main);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(126, 249, 194, 0.85), rgba(0, 153, 204, 0.85));
    color: #0E1116;
    box-shadow: 0 0 0 rgba(126, 249, 194, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(126, 249, 194, 1), rgba(0, 153, 204, 1));
    box-shadow: 0 0 12px rgba(126, 249, 194, 0.65);
    color: #0E1116;
}

.btn-secondary {
    background: rgba(14, 17, 22, 0.4);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 12px rgba(126, 249, 194, 0.35);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 17, 22, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}

.main-header:hover {
    background: rgba(14, 17, 22, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    row-gap: 12px;
    width: 100%;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 1.8rem;
    justify-content: center;
    width: auto;
    order: 2;
    background: rgba(30, 42, 53, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-link img {
    height: 48px;
    width: auto;
}


.age-disclaimer-header {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 380px;
    line-height: 1.5;
    margin: 8px 0;
    order: 3;
    width: 100%;
    background: rgba(30, 42, 53, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(126, 249, 194, 0.2);
}

.hero-section {
    padding: 96px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero {
    background: linear-gradient(160deg, rgba(14, 17, 22, 0.7), rgba(14, 17, 22, 0.35)),
                url('uploads/media/hero1.jpg');
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    background: radial-gradient(circle at 10% 20%, rgba(126, 249, 194, 0.18), transparent 60%),
                radial-gradient(circle at 75% -10%, rgba(0, 153, 204, 0.2), transparent 55%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 360px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: center;
    max-width: 640px;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(126, 249, 194, 0.25);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.section {
    padding: 96px 0;
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(126, 249, 194, 0.06), transparent 55%),
                radial-gradient(circle at 85% 25%, rgba(0, 153, 204, 0.08), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-subtle-bg {
    background: linear-gradient(180deg, rgba(0, 153, 204, 0.08), rgba(14, 17, 22, 0.2));
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 16px auto 0;
}

.about-section {
    background: linear-gradient(180deg, rgba(0, 153, 204, 0.12), rgba(14, 17, 22, 0));
}

.about-section::before {
    background: radial-gradient(circle at 10% 10%, rgba(126, 249, 194, 0.12), transparent 60%),
                radial-gradient(circle at 90% 0%, rgba(0, 153, 204, 0.1), transparent 55%);
}

.about-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    background: linear-gradient(180deg, rgba(30, 42, 53, 0.92), rgba(18, 24, 31, 0.92));
    position: relative;
    overflow: hidden;
}

.about-highlight::before {
    content: "";
    position: absolute;
    inset: -40% -20% 55% 40%;
    background: radial-gradient(circle at top left, rgba(126, 249, 194, 0.25), transparent 60%);
    opacity: 0.6;
    filter: blur(12px);
    pointer-events: none;
}

.about-highlight p {
    position: relative;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonials-section {
    background: linear-gradient(180deg, rgba(14, 17, 22, 0), rgba(0, 153, 204, 0.1));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    position: relative;
}

.testimonials-section::before {
    background: radial-gradient(circle at 20% 0%, rgba(0, 153, 204, 0.12), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(126, 249, 194, 0.12), transparent 60%);
}

.games-grid,
.testimonials-grid,
.responsible-points {
    display: grid;
    gap: 32px;
}

.games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
}

.game-card h3 {
    margin-bottom: 12px;
}

.game-description {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.responsible-points {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.point-item {
    text-align: center;
}

.point-item i {
    font-size: 2.6rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.point-item p {
    color: var(--color-text-muted);
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 260px;
    background: rgba(30, 42, 53, 0.6);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--color-accent);
    text-shadow: 0 0 18px rgba(126, 249, 194, 0.35);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, rgba(126, 249, 194, 0.85), rgba(0, 153, 204, 0.85));
}

.player-avatar i {
    font-size: 1.4rem;
    color: #0E1116;
}

.player-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.avatar-aurora {
    background: linear-gradient(135deg, rgba(126, 249, 194, 0.9), rgba(0, 153, 204, 0.8));
}

.avatar-horizon {
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.8), rgba(14, 17, 22, 0.9));
}

.avatar-glacier {
    background: linear-gradient(135deg, rgba(62, 178, 230, 0.85), rgba(20, 34, 45, 0.95));
}

.player-name {
    font-weight: 700;
}

.trust-badge {
    color: #7EF9C2;
}

.review-text {
    color: var(--color-text-muted);
    font-style: italic;
}

.review-date {
    color: rgba(245, 247, 250, 0.65);
    font-size: 0.95rem;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-main);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.2);
}

.error-message {
    display: none;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--color-accent);
}

.disclaimer-block {
    margin-top: 96px;
    padding: 72px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 42, 53, 0.95), rgba(18, 24, 31, 0.95));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Game iframe styling */
.game-iframe-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: 24px 0;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: #000;
}

.game-launch-btn {
    margin-top: 16px;
    width: 100%;
}

.disclaimer-block i {
    font-size: 2.6rem;
    color: var(--color-accent);
    margin-bottom: 18px;
}

.disclaimer-block p {
    color: var(--color-text-muted);
    max-width: 780px;
    margin: 0 auto 16px;
}

.main-footer {
    padding: 72px 0 48px;
    background: linear-gradient(180deg, #0E1116, #1E2A35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    text-align: center;
}

.footer-brand,
.footer-nav,
.footer-policies,
.footer-resources {
    flex: 1 1 220px;
}

.footer-nav ul,
.footer-policies ul,
.footer-resources ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer-nav a,
.footer-policies a,
.footer-resources a {
    color: var(--color-text-muted);
}

.footer-nav a:hover,
.footer-policies a:hover,
.footer-resources a:hover {
    color: var(--color-accent);
}

.footer-age-disclaimer {
    color: var(--color-text-muted);
}

.footer-responsible-gaming-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.footer-logo-img {
    max-width: 120px;
    filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    border-radius: 0;
}

.footer-meta {
    margin-top: 48px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: rgba(30, 42, 53, 0.92);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    max-width: 360px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.cookie-content p {
    color: var(--color-text-muted);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.cookie-settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 17, 22, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000;
}

.cookie-settings-modal.active {
    display: flex;
}

.cookie-settings-content {
    background: linear-gradient(180deg, rgba(30, 42, 53, 0.95), rgba(18, 24, 31, 0.95));
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-category {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.cookie-category p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.cookie-category input[type="checkbox"] {
    accent-color: var(--color-accent);
}

.cookie-settings-actions {
    text-align: right;
    margin-top: 24px;
}

.age-verification-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 17, 22, 0.85);
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 10000;
}

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

.age-verification-content {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.age-verification-content p {
    color: var(--color-text-muted);
}

.termsCaveBox {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.termsCaveBox h1,
.termsCaveBox h2,
.termsCaveBox h3,
.termsCaveBox h4,
.termsCaveBox h5 {
    margin-top: 32px;
}

.termsCaveBox p,
.termsCaveBox li {
    color: var(--color-text-muted);
}

.termsCaveBox ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.policy-meta {
    margin-top: 32px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        align-items: center;
        text-align: center;
        gap: 16px;
        justify-content: center;
    }

    .age-disclaimer-header {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .logo-link {
        background: rgba(30, 42, 53, 0.3);
        padding: 8px 16px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-container {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section,
    .about-section,
    .main-footer {
        padding: 48px 16px;
    }

    .section {
        padding: 64px 0;
    }

    .hero-container {
        gap: 32px;
    }

    .cookie-consent-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .termsCaveBox {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .container {
        width: min(100% - 32px, var(--container-width));
    }

    .header-container {
        gap: 16px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .logo-link {
        justify-content: center;
        width: auto;
    }

    .age-disclaimer-header {
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: center;
        margin: 8px 0;
        max-width: none;
        padding: 6px 12px;
        border-radius: 16px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .card {
        padding: 20px;
    }

    .cookie-settings-content {
        padding: 24px;
    }

    .close-modal-btn {
        top: 12px;
        right: 12px;
    }

    .game-modal-content {
        height: 75vh;
        width: 95%;
    }

    .footer-content {
        flex-direction: column;
    }

    /* Game iframe responsive adjustments */
    .game-iframe-wrap {
        padding-bottom: 75%; /* Adjust for mobile */
    }
}
