/* ===== 출석체크 모달 스타일 (개선) ===== */
#attendance-modal .modal-content {
    max-width: 950px;
    width: 95%;
    background: radial-gradient(ellipse at top, #2c3e50, #1a2531);
    border: 1px solid #7f8c8d;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#attendance-header {
    text-align: center;
    margin-bottom: 25px;
}

#attendance-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--legendary-color);
    text-shadow: 0 0 15px var(--legendary-color);
}

#attendance-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.attendance-day-cell {
    aspect-ratio: 1 / 1;
    background-color: rgba(10, 12, 18, 0.5);
    border: 1px solid #34495e;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

/* 달력의 시작 부분 빈 칸 스타일 */
.attendance-day-cell.empty {
    background: none;
    border: none;
}

.day-number {
    position: absolute;
    top: 4px;
    left: 7px;
    font-weight: bold;
    font-size: 1em;
    color: #7f8c8d;
    text-shadow: 1px 1px 2px #000;
}

.reward-image {
    width: 60%;
    height: 60%;
    position: relative;
}

.reward-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 수량 표시 위치 및 스타일 수정 */
.reward-quantity {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: rgba(0,0,0,0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
}

/* 골드 보상 폰트 크기 조절 */
.reward-info {
    font-size: 0.9em;
    text-align: center;
    width: 100%;
    font-weight: 500;
    margin-top: 5px;
    word-break: keep-all; /* 단어 단위 줄바꿈 */
}

.reward-info.gold-reward {
    font-size: 0.8em; /* 골드일 경우 폰트를 더 작게 */
}


/* --- 상태별 스타일 --- */
.attendance-day-cell.future { opacity: 0.6; }
.attendance-day-cell.missed { background-color: rgba(0,0,0,0.5); opacity: 0.4; }

.attendance-day-cell.claimed::after {
    content: '✔';
    position: absolute;
    inset: 0;
    background: rgba(26, 188, 156, 0.3);
    backdrop-filter: blur(2px) grayscale(80%);
    color: #1abc9c;
    font-size: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px #fff;
}

.attendance-day-cell.claimable {
    cursor: pointer;
    border-color: #f1c40f;
    box-shadow: 0 0 10px #f1c40f, inset 0 0 10px rgba(241, 196, 15, 0.3);
    transform: scale(1.03);
}
.attendance-day-cell.claimable:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px #f1c40f;
}

/* --- 연속 출석 UI (개선) --- */
#attendance-consecutive-status {
    background: rgba(10, 12, 18, 0.7);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #34495e;
}
#consecutive-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--legendary-color);
    font-weight: bold;
}
#consecutive-progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}
.consecutive-step {
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: var(--bg-color-light);
    transition: all 0.3s;
    gap: 5px;
}
.consecutive-step .day-count {
    font-size: 1.1em;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
}
.consecutive-step .reward-image {
    width: 50px;
    height: 50px;
}
.consecutive-step .reward-info {
    font-size: 0.8em;
}

.consecutive-step.achieved {
    background: var(--legendary-color);
    border-color: var(--gold-color);
    color: #000;
    box-shadow: 0 0 15px var(--legendary-color);
}