body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    color: #333;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
h1 {
    text-align: center;
    color: #5a3b94;
    margin-bottom: 30px;
}
.settings {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}
button {
    background-color: #5a3b94;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #4a2e84;
}
.draw-1 {
    background-color: #4a74e8;
}
.draw-1:hover {
    background-color: #3a64d8;
}
.draw-10 {
    background-color: #ea4c89;
}
.draw-10:hover {
    background-color: #da3c79;
}
.reset {
    background-color: #666;
}
.reset:hover {
    background-color: #555;
}
.manual {
    background-color: #1a73e8;
}
.manual:hover {
    background-color: #3a73e8;
}
.history {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f8f8;
}
.history h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}
.progress {
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: width 0.3s;
}
.ssr-bar {
    background-color: #ff5e62;
}
.sr-bar {
    background-color: #a17fe0;
}
.r-bar {
    background-color: #5691c8;
}
.n-bar {
    background-color: #8e9eab;
}
.result-container {
    margin-top: 20px;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.card {
    width: 125px;
    height: 185px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    animation: appear 0.5s;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .card {
    width: 50px;
    height: 90px;
}
}
.card:hover {
    transform: translateY(-5px);
}
.card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}
.card.ssr {
    border: 4px solid gold;
    box-shadow:
    0 0 8px rgba(255, 215, 0, 0.6),
    0 0 16px rgba(255, 215, 0, 0.4);
    animation: ssrPulse 1.5s ease-in-out infinite alternate;
    transform-origin: center;
}
.card.sr {
    border: 3px solid silver;
}
.card.r {
    border: 2px solid #cd7f32;
}
.card.n {
    border: 2px solid #aaa;
}
.card-rarity-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.6);
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 2;
}
.card-rarity {
    font-size: 18px;
    margin-bottom: 3px;
    position: relative;
    z-index: 2;
}
.card-name {
    font-size: 12px;
    text-align: center;
    padding: 5px;
    word-break: keep-all;
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
}
.settings-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.settings-row label {
    width: 150px;
    margin-right: 10px;
}
.settings-row input, .settings-row select {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes ssrPulse {
from {
    transform: scale(1.00);
    box-shadow:
    0 0 8px rgba(255, 215, 0, 0.6),
    0 0 16px rgba(255, 215, 0, 0.4);
}
to {
    transform: scale(1.05);
    box-shadow:
    0 0 12px rgba(255, 215, 0, 0.8),
    0 0 24px rgba(255, 215, 0, 0.6);
}
}
.cost-container {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
}
.guaranteed-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.guaranteed-progress {
    flex-grow: 1;
    margin: 0 10px;
}
.guaranteed-text {
    font-size: 14px;
    color: #666;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}
.pagination button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}
.pagination button.active {
    background-color: #5a3b94;
    color: white;
    border-color: #5a3b94;
}
.pagination button:disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}
.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    display: none;
}
.card.ssr .shimmer {
    display: block;
}
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.ad-banner {
    width: 100%;
    height: 90px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
}

.hide-display {
    display: none;
}
