/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #ffc107;
    --gold-hover: #e6ac00;
    --gold-light: #fff3cd;
    --gold-footer: #ffc033;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --text-dark: #212121;
    --text-medium: #555555;
    --text-light: #888888;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
    --radius-card: 20px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-body: 'Nunito', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

section {
    padding: 80px 0;
}

/* ===== SKIP TO CONTENT ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 3px solid var(--gold);
    padding: 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
}

.header-logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #cccccc;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: var(--transition);
}

.btn-login:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-register {
    background: var(--gold);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.btn-register:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5.5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.98);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 10px 0;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--gold);
}

.mobile-menu .mobile-auth {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

/* ===== HERO ===== */
.hero {
    background: var(--bg-light);
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content h1 .highlight {
    color: var(--gold-hover);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-date {
    display: inline-block;
    background: var(--gold-light);
    color: #856404;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--text-dark);
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero decorative element */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-shape {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-shape .blob-1 {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 20px;
    left: 50px;
    animation: blobFloat 8s ease-in-out infinite;
    opacity: 0.85;
}

.hero-shape .blob-2 {
    position: absolute;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    bottom: 20px;
    right: 10px;
    animation: blobFloat 10s ease-in-out infinite reverse;
    opacity: 0.7;
}

.hero-shape .blob-3 {
    position: absolute;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    border-radius: 50% 60% 40% 70% / 60% 40% 70% 50%;
    top: 60px;
    right: 30px;
    animation: blobFloat 12s ease-in-out infinite;
    opacity: 0.6;
}

.hero-shape .blob-center {
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-shape .blob-center svg {
    display: block;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -15px) scale(1.03); }
    66% { transform: translate(-8px, 10px) scale(0.97); }
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--white);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.about-feature-tag {
    background: var(--gold-light);
    color: #856404;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-deco {
    width: 340px;
    height: 340px;
    position: relative;
}

.about-deco .ring {
    position: absolute;
    border-radius: 50%;
    border: 4px solid var(--gold);
    opacity: 0.2;
}

.about-deco .ring-1 {
    width: 340px;
    height: 340px;
    top: 0;
    left: 0;
    animation: ringPulse 4s ease-in-out infinite;
}

.about-deco .ring-2 {
    width: 260px;
    height: 260px;
    top: 40px;
    left: 40px;
    opacity: 0.35;
    animation: ringPulse 4s ease-in-out infinite 1s;
}

.about-deco .ring-3 {
    width: 180px;
    height: 180px;
    top: 80px;
    left: 80px;
    opacity: 0.5;
    animation: ringPulse 4s ease-in-out infinite 2s;
}

.about-deco .ring-center {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 120px;
    left: 120px;
    background: linear-gradient(135deg, var(--gold), #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.35);
}

.about-deco .ring-center svg {
    display: block;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

/* ===== GAME CARDS SECTION ===== */
.games {
    background: var(--bg-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.game-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .game-card-img img {
    transform: scale(1.06);
}

.game-card-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.game-tag {
    background: var(--gold-light);
    color: #856404;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.game-card-desc {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.game-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.star svg {
    display: block;
}

.star.empty {
    color: #ddd;
}

.star.half {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.star.half .star-half-gold {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    display: flex;
    color: var(--gold);
}

.rating-num {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
}

.btn-play svg {
    flex-shrink: 0;
}

.btn-play:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.benefit-card {
    background: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    display: block;
    color: var(--gold);
}

.benefit-icon svg {
    display: block;
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq {
    background: var(--bg-light);
}

.faq-image {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-image img {
    width: 100%;
    height: auto;
    display: block;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-item summary {
    padding: 22px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    user-select: none;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\25BC';
    color: var(--gold);
    font-size: 0.8rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    color: var(--gold-hover);
}

.faq-answer {
    padding: 0 28px 22px;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.97rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--white);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-hover);
}

.contact-detail-icon svg {
    display: block;
}

.contact-detail-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-detail-text span,
.contact-detail-text a {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.contact-detail-text a:hover {
    color: var(--gold-hover);
}

.contact-form-wrap {
    background: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 36px;
    box-shadow: var(--shadow-soft);
}

.contact-form-wrap h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #e53935;
}

.form-error {
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
    font-weight: 600;
}

.form-error.visible {
    display: block;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.form-checkbox label a {
    color: var(--gold-hover);
    font-weight: 600;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: var(--text-dark);
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.form-success {
    display: none;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

.form-success.visible {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gold-footer);
    color: var(--text-dark);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .header-logo {
    font-size: 1.5rem;
    margin-bottom: 14px;
    display: inline-block;
    color: var(--text-dark);
}

.footer-brand .header-logo span {
    color: var(--bg-dark);
}

.footer-brand p {
    color: rgba(33, 33, 33, 0.75);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 320px;
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-contact-line svg {
    flex-shrink: 0;
    display: block;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.footer-col a {
    display: block;
    color: rgba(33, 33, 33, 0.75);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-dark);
    padding-left: 4px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(33, 33, 33, 0.15);
    padding: 20px 0;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.82rem;
    color: rgba(33, 33, 33, 0.65);
    max-width: 800px;
    margin: 0 auto 8px;
    line-height: 1.6;
}

.footer-disclaimer .copyright {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.footer-legal-links a {
    color: rgba(33, 33, 33, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--text-dark);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--white);
    padding: 22px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text h4 svg {
    flex-shrink: 0;
}

.cookie-text p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.87rem;
    transition: var(--transition);
    cursor: pointer;
}

.cookie-btn-accept {
    background: var(--gold);
    color: var(--text-dark);
}

.cookie-btn-accept:hover {
    background: var(--gold-hover);
}

.cookie-btn-necessary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings {
    background: transparent;
    color: #aaa;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-settings:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: none;
}

.scroll-top svg {
    display: block;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
}

/* ===== DIALOG / MODAL ===== */
dialog {
    border: none;
    border-radius: var(--radius-card);
    padding: 0;
    max-width: 680px;
    width: 92%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    color: var(--white);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.modal-close svg {
    display: block;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.modal-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--text-dark);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p, .modal-body li {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.modal-body ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 14px;
}

/* Cookie Preferences Modal */
.cookie-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cookie-pref-item:last-child {
    border-bottom: none;
}

.cookie-pref-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.cookie-pref-info p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
    background: var(--gold);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-save-prefs {
    width: 100%;
    background: var(--gold);
    color: var(--text-dark);
    padding: 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 24px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-save-prefs:hover {
    background: var(--gold-hover);
}

/* Auth modals */
.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.auth-form .form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.btn-auth {
    width: 100%;
    background: var(--gold);
    color: var(--text-dark);
    padding: 13px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-auth:hover {
    background: var(--gold-hover);
}

.auth-message {
    text-align: center;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
}

.auth-message.success {
    color: #2e7d32;
    display: block;
}

.auth-message.error-msg {
    color: #e53935;
    display: block;
}

/* ===== LEGAL PAGE STYLES ===== */
.legal-page {
    background: var(--white);
    padding: 60px 0 80px;
}

.legal-page .container {
    max-width: 860px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.breadcrumb a {
    color: var(--gold-hover);
    font-weight: 600;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--text-dark);
}

.breadcrumb .separator {
    color: var(--text-light);
}

.legal-page h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.legal-page .legal-updated {
    display: inline-block;
    background: var(--gold-light);
    color: #856404;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 36px;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-light);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content ul {
    padding-left: 24px;
    list-style: disc;
    margin-bottom: 18px;
}

.legal-content li {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content li strong {
    color: var(--text-dark);
}

.legal-content em {
    color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-links,
    .header-auth {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-shape {
        width: 280px;
        height: 280px;
    }

    .hero-shape .blob-1 {
        width: 200px;
        height: 200px;
        left: 40px;
    }

    .hero-shape .blob-2 {
        width: 160px;
        height: 160px;
    }

    .hero-shape .blob-3 {
        width: 120px;
        height: 120px;
    }

    .hero-shape .blob-center {
        width: 100px;
        height: 100px;
    }

    .hero-shape .blob-center svg {
        width: 36px;
        height: 36px;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-visual {
        order: -1;
    }

    .about-deco {
        width: 240px;
        height: 240px;
    }

    .about-deco .ring-1 { width: 240px; height: 240px; }
    .about-deco .ring-2 { width: 180px; height: 180px; top: 30px; left: 30px; }
    .about-deco .ring-3 { width: 120px; height: 120px; top: 60px; left: 60px; }
    .about-deco .ring-center { width: 70px; height: 70px; top: 85px; left: 85px; }
    .about-deco .ring-center svg { width: 32px; height: 32px; }

    .contact .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-contact-line {
        justify-content: center;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-top svg {
        width: 18px;
        height: 18px;
    }

    .legal-page h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .contact-form-wrap {
        padding: 24px 18px;
    }
}
