:root {
    --primary-bg: #121212;
    --text-color: #f1f1f1;
    --accent: #d4af37;
    --card-width: 150px;
    --card-height: 210px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #000;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}

nav a:hover {
    color: var(--accent);
}

.container {
    padding: 20px;
    flex: 1;
}

button {
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #fff;
}

/* Pack Opening */
.pack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    perspective: 1000px;
}

.card-container {
    width: var(--card-width);
    height: var(--card-height);
    position: relative;
    cursor: pointer;
}

.card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
}

.card-back {
    background-color: #333;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    font-weight: bold;
}

.card-front {
    transform: rotateY(180deg);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.card-actions button {
    font-size: 12px;
    padding: 5px;
}

/* Album */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.album-slot {
    width: 100%;
    aspect-ratio: 2.5 / 3.5;
    background-color: #222;
    border: 2px dashed #444;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
    font-size: 14px;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23444"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center 20%;
}

.album-slot.filled {
    border-style: solid;
    border-color: var(--accent);
    background-image: none;
    cursor: pointer;
}

.album-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Lightbox */
.lightbox {
    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;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid var(--accent);
    border-radius: 10px;
}

/* Login */
.login-form {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 50px auto;
    gap: 15px;
}

.login-form input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
}

.hidden {
    display: none !important;
}
