:root {
    --primary-color: #030303;
    --secondary-color: #1a5f3d;
    --accent-color: #2d8659;
    --bg-light: #f5f5f5;
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, #1a5f3d 0%, #2d8659 100%);
    --gradient-accent: linear-gradient(135deg, #2d8659 0%, #3fa76f 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-gate.active {
    display: flex;
}

.age-gate-content {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-gate-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.age-gate-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.age-gate-disclaimer {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary, .btn-hero {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(3, 3, 3, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    backdrop-filter: blur(10px);
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-link:hover {
    color: #3fa76f;
}

.responsible-gaming-banner {
    background: var(--warning);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #666;
    margin-bottom: 2rem;
}

.btn-hero {
    background: var(--gradient-primary);
    color: white;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.game-section {
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    overflow-x: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.game-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.control-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.spin-btn {
    padding: 1rem 3rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-board {
    position: relative;
    background: linear-gradient(135deg, #1a5f3d 0%, #2d8659 100%);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    min-height: 300px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.reels-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.reel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.symbol {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
}

.symbol.winning {
    animation: pulse 0.5s ease infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.symbol.cascading {
    animation: cascade 0.5s ease;
}

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

.win-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 215, 0, 0.95);
    color: var(--primary-color);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 10;
}

.win-message.show {
    opacity: 1;
    animation: winPop 0.5s ease;
}

@keyframes winPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cultural-fact, .achievements {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.cultural-fact h3, .achievements h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

.achievement-item.unlocked {
    color: var(--success);
    font-weight: 600;
}

.paytable {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.paytable h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.paytable-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.paytable-item .symbol {
    font-size: 2rem;
    padding: 0.5rem;
    flex-shrink: 0;
}

.paytable-item .value {
    font-weight: 600;
    color: var(--accent-color);
}

.about-section {
    padding: 4rem 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.features-section {
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.gallery-section {
    padding: 4rem 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.trust-section {
    padding: 4rem 20px;
    background: white;
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.trust-info h3, .responsible-gaming h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.trust-info h3:first-child, .responsible-gaming h3:first-child {
    margin-top: 0;
}

.trust-info p, .responsible-gaming p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
}

.support-logos {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.support-logo {
    display: block;
    max-width: 150px;
    transition: var(--transition);
}

.support-logo:hover {
    transform: scale(1.05);
}

.support-logo img {
    width: 100%;
    height: auto;
}

.help-resources {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.help-resources h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.help-resources ul {
    list-style-position: inside;
    color: #666;
}

.help-resources li {
    margin-bottom: 0.5rem;
}

.contact-section {
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--accent-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 20px;
    }

    .about-grid, .trust-content, .contact-grid, .game-info {
        grid-template-columns: 1fr;
    }

    .game-header {
        flex-direction: column;
        align-items: stretch;
    }

    .game-stats {
        justify-content: space-between;
    }

    .game-controls {
        justify-content: center;
    }

    .reels-container {
        gap: 0.15rem;
        padding: 0.25rem;
    }

    .symbol {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        padding: 0.25rem;
    }

    .game-board {
        padding: 0.5rem;
        min-height: 250px;
    }

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

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

@media (max-width: 480px) {
    .age-gate-content {
        padding: 2rem 1.5rem;
    }

    .age-gate-buttons {
        flex-direction: column;
        width: 100%;
    }

    .age-gate-buttons button {
        width: 100%;
    }

    .game-board {
        padding: 0.25rem;
        min-height: 200px;
    }

    .reels-container {
        gap: 0.1rem;
        padding: 0.1rem;
    }

    .symbol {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
        padding: 0.15rem;
    }

    .win-message {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .game-container {
        padding: 1rem;
    }

    .game-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}