:root {
    --eco-green: #4CAF50;
    --eco-green-dark: #2e7d32;
    --eco-green-mid: #66bb6a;
    --eco-leaf: #81C784;
    --white: #fff;
    --text: #1f3d2b;
    --text-soft: #4b6b5a;
    --line: #cfead6;
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, .08);
    --glow: 0 0 0 3px rgba(76, 175, 80, .20);
    --r-md: 16px;
    --r-lg: 22px;
    --pill: 999px;
    --t: .25s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Poppins, system-ui, Arial, sans-serif;
    background-attachment: fixed;
    background-image: url(../assets/images/game/bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--text);
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--eco-green);
    box-shadow: var(--glow);
}

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

main {
    margin: 12vh auto;
    padding: 0 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--pill);
    border: 2px solid rgba(76, 175, 80, .20);
    background: linear-gradient(135deg, var(--white), #f1fdf4);
    color: var(--eco-green-dark);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 16px 34px rgba(76, 175, 80, .20);
    transition: transform var(--t), box-shadow var(--t), filter var(--t);
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(76, 175, 80, .30);
    filter: saturate(1.05);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 14px 28px rgba(76, 175, 80, .22);
}

.edition-version {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 40px 42px;
    margin: 0 auto 64px;
    border: 2px solid var(--eco-leaf);
    box-shadow: 0 18px 40px rgba(76, 175, 80, .18);
    transition: transform var(--t), box-shadow var(--t);
    position: relative;
    max-width: 1000px;
}

.edition-version:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(76, 175, 80, .24);
}

.edition-version h3 {
    margin: 0 0 16px;
    color: var(--eco-green-dark);
    font-size: 1.65rem;
    line-height: 1.3;
}

.price {
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 0 28px;
    color: #1f3d1f;
}

.edition-version ul {
    margin: 0 0 32px;
}

.edition-version li {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.edition-version li::before {
    content: "🍃";
    margin-top: 2px;
}

.tagline {
    margin: 28px 0 32px;
    padding: 18px 22px;
    border-left: 6px solid var(--eco-green);
    background: #f1f8e9;
    border-radius: var(--r-md);
    font-size: 1rem;
    font-style: italic;
    color: #2f5e45;
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, .10);
}

@media (max-width: 700px) {
    .edition-version {
        padding: 32px 24px;
    }

    .edition-version h3 {
        font-size: 1.45rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .edition-version li {
        font-size: 1rem;
        line-height: 1.55;
    }
}

.infos-bar {
    max-width: 900px;
    margin: 30px auto 40px;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f4faf5, #eaf5ee);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 14px 18px;
    border-radius: 14px;
    min-width: 210px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
}

.info-icon {
    font-size: 28px;
}

.info-card strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.info-card p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-soft);
}

footer {
    margin-top: 120px;
    padding: 30px 10px;
    text-align: center;
    font-size: .95rem;
    background: #e0f2f1;
    border-top: 3px double #a7ffeb;
    color: #244;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background:
            radial-gradient(circle at top, rgba(76, 175, 80, 0.10), transparent 35%),
            rgba(15, 32, 20, 0.48);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.auth-box {
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fcf8 0%, #f2f8f2 100%);
    border-radius: 32px;
    padding: 34px 34px 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(76, 175, 80, 0.16);
    animation: fadeUp .35s ease;
}

.auth-box::-webkit-scrollbar {
    width: 10px;
}

.auth-box::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.25);
    border-radius: var(--pill);
}

.auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-header h2 {
    margin: 0 0 10px;
    color: var(--eco-green-dark);
    font-size: clamp(1.8rem, 2.4vw, 2.2rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.auth-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.55;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-tab {
    border: none;
    border-radius: var(--pill);
    padding: 16px 18px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    background: #e7efe8;
    color: var(--eco-green-dark);
    transition: all .25s ease;
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.06);
}

.auth-tab:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--eco-green-dark), var(--eco-green-mid));
    color: #fff;
    box-shadow: 0 14px 28px rgba(76, 175, 80, 0.24);
}

.auth-form {
    display: none;
    width: 100%;
}

.auth-form.active {
    display: block;
}

.auth-form label {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    font-size: .98rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.auth-form input,
.auth-form select {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 17px 18px;
    border-radius: 18px;
    border: 2px solid #bfdcc6;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    color: var(--text);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.auth-form input::placeholder {
    color: #93a99b;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--eco-green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
    transform: translateY(-1px);
}

.auth-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 52px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%232e7d32' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: .2s;
    user-select: none;
}

.toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.toggle-password.active {
    opacity: 1;
}

.auth-main-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 18px;
    border: none;
    border-radius: var(--pill);
    background: linear-gradient(135deg, var(--eco-green-dark), var(--eco-green-mid));
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -0.2px;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(76, 175, 80, 0.24);
    transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.auth-main-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.28);
}

.auth-secondary-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 17px;
    border: 2px solid rgba(76, 175, 80, 0.14);
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.78);
    color: var(--eco-green-dark);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease;
}

.auth-secondary-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.input-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.15);
}

.input-success {
    border-color: #4CAF50 !important;
}

body.auth-locked {
    overflow: hidden;
}

@media (max-width: 640px) {
    .auth-overlay {
        padding: 12px;
    }

    .auth-box {
        max-width: 100%;
        max-height: 95vh;
        padding: 24px 18px 20px;
        border-radius: 24px;
    }

    .auth-header h2 {
        font-size: 1.55rem;
    }

    .auth-header p {
        font-size: .95rem;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
    }

    .auth-form input,
    .auth-form select {
        padding: 15px;
        border-radius: 16px;
    }

    .auth-main-btn,
    .auth-secondary-btn {
        padding: 16px;
        font-size: .98rem;
    }
}