@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --sand: #F5F5DC;
    --off-white: #F0F0F0;
    --jungle-green: #004b49;
    --stone-gray: #555555;
    --gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--sand);
    color: var(--stone-gray);
    overflow-x: hidden;
}

/* Background Texture Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--jungle-green);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--jungle-green);
}

/* Nav */
nav {
    display: flex;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav a {
    font-size: 0.9rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--jungle-green);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.logo-container {
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
}

.classified-box {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid var(--jungle-green);
    position: relative;
    max-width: 500px;
}

.classified-box::before {
    content: "TOP SECRET";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sand);
    padding: 0 10px;
    font-weight: bold;
    color: var(--jungle-green);
    font-size: 0.8rem;
}

/* Accordion (Lore) */
.accordion-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

details {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 75, 73, 0.2);
    padding-bottom: 1rem;
}

summary {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--jungle-green);
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 1rem;
    line-height: 1.8;
    color: var(--stone-gray);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rules */
.rules-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.rule-section {
    margin-bottom: 3rem;
}

.rule-section h2 {
    border-left: 4px solid var(--jungle-green);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.rule-list {
    list-style-type: none;
}

.rule-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.rule-list li::before {
    content: "•";
    color: var(--jungle-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Casino */
.casino-container {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.login-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #5865F2;
    /* Discord Color */
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--jungle-green);
}

.coins-display {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
    margin: 1rem 0;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

button {
    padding: 0.5rem 1rem;
    background: var(--jungle-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

button:hover {
    background: #003836;
}

/* Game */
.game-area {
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.coin {
    width: 100px;
    height: 100px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s;
}

.flip-animation {
    animation: flip 1s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateY(0);
    }

    50% {
        transform: rotateY(720deg);
    }

    100% {
        transform: rotateY(0);
    }
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4rem;
}