* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

nav {
    background: #16213e;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
}

nav span {
    color: #eee;
}

h1,
h2 {
    text-align: center;
    margin: 30px 0 20px;
    color: #e94560;
}

.packs-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px;
}

.pack-card {
    background: #16213e;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 220px;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    transition: transform 0.2s;
}

.pack-card:hover {
    transform: translateY(-5px);
}

.pack-card img {
    width: 120px;
    height: 160px;
    object-fit: contain;
}

.pack-card button,
.btn {
    background: #e94560;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background 0.3s;
}

.pack-card button:hover,
.btn:hover {
    background: #c73652;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 180px;
    background: #16213e;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    border: 3px solid gray;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

.card.rare {
    border-color: #3498db;
}

.card.epic {
    border-color: #9b59b6;
}

.card.legendary {
    border-color: #f1c40f;
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.card-actions button {
    background: #e94560;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.auth-form {
    max-width: 300px;
    margin: 50px auto;
    background: #16213e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: #0f3460;
    color: white;
}

.auth-form button {
    width: 100%;
    background: #e94560;
    border: none;
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.auth-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 10px;
}

.success {
    color: #1dd1a1;
    text-align: center;
    margin: 10px;
}

/* Pack overlay */
#pack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#card-reveal {
    animation: reveal 0.8s ease;
}

@keyframes reveal {
    0% {
        transform: scale(0.3) rotateY(90deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
}