:root {
    --bg-color: #1b2838;
    --primary-color: #66c0f4;
    --secondary-color: #c7d5e0;
    --dark-blue: #171a21;
    --rarity-mavi: #4b69ff;
    --rarity-mor: #8847ff;
    --rarity-pembe: #d32ce6;
    --rarity-kırmızı: #eb4b4b;
    --rarity-sarı: #ffd700;
}

body {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    font-family: 'Motiva Sans', sans-serif;
    margin: 0;
    text-align: center;
}

header {
    background-color: var(--dark-blue);
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

main {
    padding: 20px;
}

.case-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.case-item {
    background-color: var(--dark-blue);
    border: 1px solid #000;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 200px;
}

.case-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color);
}

.case-item img {
    max-width: 150px;
    height: auto;
}

.case-item h3 {
    margin: 10px 0 0 0;
    color: #fff;
    font-size: 1em;
}

.case-item-button {
    background-color: #5c7e10;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.case-item-button:hover {
    background-color: #7b9f2d;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--dark-blue);
    padding: 20px;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.5);
}

.spinner-window {
    background-color: #000;
    border: 2px solid #333;
    width: 100%;
    height: 150px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
}

.spinner-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 10;
    box-shadow: 0 0 10px var(--primary-color);
}

.spinner-reel {
    height: 100%;
    display: flex;
    position: relative;
    /* transition via JS */
}

.spinner-item {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 5px;
    background-size: cover;
    background-position: center;
}
.spinner-item img {
    max-width: 100px;
    max-height: 80px;
    filter: drop-shadow(2px 2px 3px #000);
}
.spinner-item p {
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 5px;
    font-size: 0.8em;
    text-shadow: 1px 1px 2px #000;
}

.result-display {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    min-height: 50px;
}

.result-item {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
}

.hidden {
    display: none;
}

/* Nadirlik Renkleri */
.rarity-Mavi { border-left: 5px solid var(--rarity-mavi); }
.rarity-Mor { border-left: 5px solid var(--rarity-mor); }
.rarity-Pembe { border-left: 5px solid var(--rarity-pembe); }
.rarity-Kırmızı { border-left: 5px solid var(--rarity-kırmızı); }
.rarity-Sarı { border-left: 5px solid var(--rarity-sarı); box-shadow: 0 0 15px var(--rarity-sarı); }