:root {
    --primary-color: #000000;
    --text-color: #000000;
    --background-color: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-light: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    background-image: url('images/textures/kiwihug-zGZYQQVmXw0-unsplash.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    position: relative;
}

/* Main Content */
main {
    position: relative;
}

/* Hero Section */
.hero {
    background: rgba(255, 255, 255, 0.95);
    padding: 12em 0 8em;
    text-align: center;
    z-index: 5;
    overflow: hidden;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1px);
}

.cards-background {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    opacity: 0.6;
    perspective: 1000px;
    transform-style: preserve-3d;
    overflow: visible;
}

.floating-card {
    position: absolute;
    pointer-events: auto;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.floating-card img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px var(--shadow-medium);
    filter: grayscale(100%) brightness(1.1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    image-rendering: optimizeQuality;
    -ms-interpolation-mode: bicubic;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 4em 3em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2em;
}

.hero h1 {
    font-size: 4.5em;
    font-weight: 300;
    margin-bottom: 2em;
    color: var(--text-color);
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 2em;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p.coming-soon {
    font-size: 1.8em;
    font-weight: 500;
    color: var(--text-color);
    opacity: 1;
    margin-bottom: 1em;
    letter-spacing: 1px;
}

.email-signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    margin-top: 3em;
}

.email-signup-form input[type="email"] {
    padding: 1em 1.5em;
    border: 1px solid var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-size: 1em;
    width: 300px;
    max-width: 100%;
    text-align: center;
    border-radius: 0;
}

.email-signup-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px var(--text-color);
}

.email-signup-form input[type="email"]::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1em 3em;
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-color);
    background: transparent;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--text-color);
}

.btn:hover {
    background: var(--text-color);
    color: var(--background-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-large {
    padding: 1.2em 3.5em;
    font-size: 1em;
}

/* Sections */
section {
    padding: 8em 0;
    position: relative;
    z-index: 2;
}

section:not(.hero) {

}

section h2 {
    font-size: 2.5em;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4em;
    color: var(--text-color);
    letter-spacing: -1px;
}

/* About Section */
.about {
    border-top: 1px solid var(--border-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4em;
}

.about-item {
    text-align: center;
    padding: 3em 2em;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px var(--shadow-light);
}

.about-item h3 {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    color: var(--text-color);
    font-weight: 500;
}

.about-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* Rules Section */
.rules {
}

.rules .container {
    max-width: 100%;
}

.rules-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1668px) {
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
    }
}


@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 3em;
    }
}

.rule-card {
    background: none;
    border: none;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: none;
}

.rule-card:hover {
    transform: translateY(-2px);
}

.rule-card h3 {
    font-size: 1.2em;
    margin-bottom: 2em;
    color: var(--text-color);
    font-weight: 500;
}

.card-icon {
    font-size: 2.5em;
    margin: 0 0 1em 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 0;
}

.card-icon img {
    width: auto;
    height: 10em;
    border-radius: 16px;
}

.rule-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* Games Section */
.games {
    border-top: 1px solid var(--border-light);
}

.games-intro {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 5em;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
    font-style: italic;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3em;
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    padding: 3em 2em;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.game-card h3 {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    font-weight: 500;
    color: var(--text-color);
}

.game-card p {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* Download Section */
.download {
    border-top: 0px solid var(--border-light);
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download h2 {
    margin-bottom: 3em;
}

.download p {
    font-size: 1.1em;
    margin-bottom: 3em;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.98);
    padding: 3em 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 10;
}

footer p {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9em;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 8em 0 6em;
    }

    .hero h1 {
        font-size: 3em;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1em;
    }

    section {
        padding: 6em 0;
    }

    section h2 {
        font-size: 2em;
    }

    .about-grid,
    .rules-grid,
    .games-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .floating-card img {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .btn {
        padding: 0.9em 2.5em;
        font-size: 0.9em;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-light);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow-medium);
    animation: modal-slide-in 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em 2em 1em;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: -1px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 2em;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rule-icon {
    width: 24px;
    height: 24px;
    margin-right: 1em;
    margin-top: 0.2em;
    color: var(--text-color);
    opacity: 0.7;
    flex-shrink: 0;
}

.rule-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Update game card styles for buttons */
.game-card {
    cursor: pointer;
    text-align: left;
}

.game-card:focus {
    outline: 1px solid var(--text-color);
    outline-offset: 2px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5em 1.5em 1em;
    }

    .modal-header h2 {
        font-size: 1.5em;
    }

    .modal-body {
        padding: 1.5em;
    }

    .rule-item {
        margin-bottom: 1em;
        padding-bottom: 1em;
    }
}

