/* ============================================
   출석체크 스킨 - 그린 톤 리뉴얼
   ============================================ */

:root {
    --at-primary: #3182f6;
    --at-primary-dark: #1b64da;
    --at-primary-light: #5b9bff;
    --at-accent: #f5c518;
    --at-accent-dark: #d9aa00;
    --at-bonus-bg: #fff7d6;
    --at-bonus-border: #ffe28a;
    --at-sun: #e23744;
    --at-text: #1a2630;
    --at-text-muted: #6b7886;
    --at-line: #e9edf2;
    --at-bg-soft: #f6f8f7;
    --at-card-shadow: 0 2px 14px rgba(15, 32, 25, 0.06);
    --at-card-radius: 18px;
}

/* === Base === */
.at-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Noto Sans KR', 'Segoe UI', sans-serif; color: var(--at-text); max-width: 100%; }
.at-wrap *, .at-wrap *::before, .at-wrap *::after { box-sizing: border-box; }
.at-wrap a { color: inherit; }

/* === 헤더 (히어로) === */
.at-header {
    position: relative;
    background: linear-gradient(135deg, var(--at-primary) 0%, var(--at-primary-dark) 100%);
    border-radius: 22px;
    padding: 36px 36px 32px;
    margin-bottom: 18px;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
}
.at-header::after { content: ''; position: absolute; top: -50px; right: -40px; width: 220px; height: 220px; background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none; }
.at-header::before { content: ''; position: absolute; bottom: -60px; left: -40px; width: 160px; height: 160px; background: rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }

.at-header-content { position: relative; z-index: 2; flex: 1; min-width: 0; }
.at-hero-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; padding: 4px 10px; background: rgba(255,255,255,0.18); border-radius: 6px; margin-bottom: 12px; }
.at-hero-title { font-size: 28px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.02em; color: #fff; }
.at-hero-sub { font-size: 14px; color: rgba(255,255,255,0.82); margin-bottom: 18px; }

/* 인라인 체크인 카드 */
.at-checkin-card { background: transparent; padding: 0; margin: 0; border-radius: 0; box-shadow: none; }
.at-checkin-form { display: flex; flex-direction: column; gap: 10px; }
.at-checkin-input-row {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 4px;
    align-items: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    max-width: 520px;
}
.at-checkin-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    color: var(--at-text);
}
.at-checkin-input::placeholder { color: #aab3bc; }
.at-checkin-btn {
    border: none;
    background: var(--at-accent);
    color: #2a1d00;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.at-checkin-btn:hover { background: var(--at-accent-dark); }
.at-checkin-btn:active { transform: scale(0.97); }
.at-checkin-btn:disabled { background: rgba(255,255,255,0.4); color: rgba(255,255,255,0.7); cursor: not-allowed; }

.at-quick-msgs { display: flex; flex-wrap: wrap; gap: 6px; }
.at-quick-msg {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    transition: background 0.15s;
}
.at-quick-msg:hover { background: rgba(255,255,255,0.28); }

.at-checkin-done {
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
}
.at-checkin-done-icon { font-size: 20px; }
.at-checkin-done-text { font-weight: 700; }
.at-checkin-done-sub { color: rgba(255,255,255,0.75); font-size: 13px; }
.at-checkin-done-badge { margin-left: auto; background: var(--at-accent); color: #2a1d00; font-weight: 800; padding: 5px 12px; border-radius: 999px; font-size: 13px; }

.at-hero-login { display: inline-flex; align-items: center; gap: 8px; background: var(--at-accent); color: #2a1d00; font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-size: 14px; transition: background 0.15s; }
.at-hero-login:hover { background: var(--at-accent-dark); color: #2a1d00; text-decoration: none; }
.at-hero-login-icon { font-size: 16px; }

/* 헤더 일러스트 (이모지 조합) */
.at-hero-illust {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 180px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.at-hero-illust > span { position: absolute; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25)); }
.at-hero-illust-1 { font-size: 110px; transform: rotate(-8deg); }
.at-hero-illust-2 { font-size: 62px; bottom: 8px; right: 12px; }
.at-hero-illust-3 { font-size: 48px; top: 6px; left: 6px; transform: rotate(20deg); }

/* === 적립 포인트 시상 카드 === */
.at-tier-row {
    background: #fff;
    border-radius: var(--at-card-radius);
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: var(--at-card-shadow);
}
.at-tier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.at-tier-head strong { font-size: 14px; font-weight: 800; color: var(--at-text); }
.at-tier-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.at-tier-card {
    background: var(--at-bg-soft);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    border: 1.5px solid transparent;
    transition: transform 0.15s;
}
.at-tier-card:hover { transform: translateY(-2px); }
.at-tier-card.at-tier-rank-1 { background: linear-gradient(180deg, #fff8d8 0%, #fff1a0 100%); border-color: rgba(245,197,24,0.4); }
.at-tier-card.at-tier-rank-2 { background: linear-gradient(180deg, #f3f6fa 0%, #e3e9f0 100%); border-color: rgba(170,180,190,0.4); }
.at-tier-card.at-tier-rank-3 { background: linear-gradient(180deg, #fdecd9 0%, #f7d6ad 100%); border-color: rgba(210,147,90,0.4); }
.at-tier-card.at-tier-rank-other { background: linear-gradient(180deg, #f6f8f7 0%, #e9eef0 100%); border-color: rgba(160,170,180,0.3); }
.at-tier-card.at-tier-rank-other .at-tier-points strong { color: var(--at-text); }
.at-tier-medal { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.at-tier-rank { font-size: 11.5px; font-weight: 700; color: var(--at-text-muted); margin-bottom: 3px; }
.at-tier-points { font-size: 12.5px; color: var(--at-text); }
.at-tier-points strong { font-size: 18px; font-weight: 800; color: var(--at-primary); margin-right: 2px; }
.at-tier-card.at-tier-rank-1 .at-tier-points strong { color: #c89500; }
.at-tier-card.at-tier-rank-2 .at-tier-points strong { color: #707b86; }
.at-tier-card.at-tier-rank-3 .at-tier-points strong { color: #b87333; }
.at-tier-points small { font-size: 11px; color: var(--at-text-muted); font-weight: 700; }

/* === 보너스 풀폭 배너 === */
.at-tier-bonus {
    margin-top: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--at-bonus-bg) 0%, #ffe28a 100%);
    border: 1px solid var(--at-bonus-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #6b4d00;
    font-size: 12.5px;
}
.at-tier-bonus-icon { font-size: 18px; line-height: 1; }
.at-tier-bonus-text { font-weight: 700; }
.at-tier-bonus-text strong { color: #4a3300; font-weight: 800; }
.at-tier-bonus-amount {
    font-size: 12px;
    font-weight: 800;
    color: #4a3300;
    background: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.at-tier-bonus-amount strong { font-size: 14px; }
.at-tier-bonus-tail { font-weight: 700; color: #6b4d00; }

/* === 2컬럼 그리드 === */
.at-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 16px;
}
.at-col-left, .at-col-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* === 캘린더 === */
.at-calendar-card {
    background: #fff;
    border-radius: var(--at-card-radius);
    padding: 22px 22px 18px;
    box-shadow: var(--at-card-shadow);
}
.at-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.at-cal-title { font-size: 17px; font-weight: 800; color: var(--at-text); }
.at-cal-nav { display: flex; gap: 6px; }
.at-cal-nav button {
    width: 30px; height: 30px;
    border: 1px solid var(--at-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: var(--at-text-muted);
    transition: all 0.15s;
}
.at-cal-nav button:hover { border-color: var(--at-primary); color: var(--at-primary); background: #e8f3ff; }

.at-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.at-cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--at-text-muted); padding: 6px 0 10px; }
.at-cal-dow.sun { color: var(--at-sun); }
.at-cal-dow.sat { color: #3182f6; }

.at-cal-day {
    text-align: center;
    padding: 6px 2px;
    border-radius: 10px;
    cursor: default;
    position: relative;
    min-height: 40px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: background 0.12s;
}
.at-cal-day.clickable { cursor: pointer; }
.at-cal-day.clickable:hover:not(.today):not(.empty) { background: var(--at-bg-soft); }
.at-cal-day.empty { cursor: default; }
.at-cal-tip { font-size: 11px; color: var(--at-text-muted); margin-top: 6px; text-align: center; }
.at-cal-day-num { font-size: 13px; font-weight: 500; color: var(--at-text); line-height: 1; }
.at-cal-day.empty .at-cal-day-num { color: transparent; }
.at-cal-day.sun .at-cal-day-num { color: var(--at-sun); }
.at-cal-day.sat .at-cal-day-num { color: #3182f6; }

.at-cal-day.checked .at-cal-day-num { color: var(--at-primary); font-weight: 800; }
.at-cal-day.selected:not(.today) {
    background: #e8f3ff;
    box-shadow: 0 0 0 2px var(--at-primary) inset;
}
.at-cal-day.selected:not(.today) .at-cal-day-num { color: var(--at-primary); font-weight: 800; }
.at-cal-day.today { background: var(--at-primary); }
.at-cal-day.today .at-cal-day-num { color: #fff; font-weight: 800; }
.at-cal-day.today.checked { background: var(--at-primary); }
.at-cal-day.today.sun .at-cal-day-num,
.at-cal-day.today.sat .at-cal-day-num { color: #fff; }

.at-cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--at-primary-light); margin-top: 3px; }
.at-cal-day.today .at-cal-dot { background: var(--at-accent); }

.at-cal-legend { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--at-line); font-size: 12px; color: var(--at-text-muted); flex-wrap: wrap; }
.at-cal-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.at-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.at-legend-dot.at-legend-checked { background: var(--at-primary-light); }
.at-legend-dot.at-legend-today { background: var(--at-accent); }
.at-cal-legend-mid { margin-left: auto; font-size: 12px; color: var(--at-text); }
.at-cal-legend-mid strong { color: var(--at-primary); font-weight: 800; }

/* === 진행률 카드 === */
.at-progress-card {
    background: #fff;
    border-radius: var(--at-card-radius);
    padding: 20px 22px;
    box-shadow: var(--at-card-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
}
.at-progress-circle {
    --at-pct: 0;
    --at-pct-deg: calc(var(--at-pct) * 3.6deg);
    flex-shrink: 0;
    width: 92px; height: 92px;
    border-radius: 50%;
    background: conic-gradient(var(--at-primary-light) var(--at-pct-deg), var(--at-bg-soft) 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.at-progress-circle::after {
    content: ''; position: absolute;
    inset: 7px;
    background: #fff;
    border-radius: 50%;
}
.at-progress-inner { position: relative; z-index: 1; text-align: center; line-height: 1; }
.at-progress-inner strong { font-size: 28px; font-weight: 800; color: var(--at-primary); }
.at-progress-inner span { font-size: 14px; font-weight: 700; color: var(--at-primary); }
.at-progress-cap { font-size: 11px; color: var(--at-text-muted); margin-top: 3px; font-weight: 600; }
.at-progress-info { flex: 1; min-width: 0; }
.at-progress-info-label { font-size: 12px; color: var(--at-text-muted); margin-bottom: 4px; }
.at-progress-info-value { font-size: 16px; font-weight: 700; color: var(--at-text); margin-bottom: 6px; }
.at-progress-info-value strong { color: var(--at-primary); font-size: 18px; }
.at-progress-info-extra { font-size: 12px; color: var(--at-text-muted); }
.at-progress-info-extra strong { color: var(--at-text); font-weight: 700; }

/* === 우측 랭킹 카드 === */
.at-rank-card {
    background: #fff;
    border-radius: var(--at-card-radius);
    padding: 22px;
    box-shadow: var(--at-card-shadow);
}
.at-rank-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.at-rank-card-title { font-size: 17px; font-weight: 800; color: var(--at-text); }
.at-rank-date { font-size: 12px; color: var(--at-text-muted); }
.at-rank-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.at-champ-open {
    background: var(--at-primary);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.at-champ-open:hover { background: var(--at-primary-dark); }

/* ===== 출석왕 랭킹 모달 ===== */
.at-champ-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    animation: atFadeIn 0.2s ease;
    padding: 20px;
}
.at-champ-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    max-height: 86vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: atPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.at-champ-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--at-line);
}
.at-champ-title { font-size: 16px; font-weight: 800; color: var(--at-text); }
.at-champ-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--at-bg-soft);
    color: var(--at-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.at-champ-close:hover { background: var(--at-line); color: var(--at-text); }
.at-champ-tabs { display: flex; gap: 6px; padding: 12px 22px 0; }
.at-champ-tab {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--at-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--at-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.at-champ-tab:hover { border-color: var(--at-primary); color: var(--at-primary); }
.at-champ-tab.active { background: var(--at-primary); color: #fff; border-color: var(--at-primary); }
.at-champ-body { padding: 12px 22px 18px; overflow-y: auto; }
.at-champ-desc {
    font-size: 12.5px;
    color: var(--at-text-muted);
    background: var(--at-bg-soft);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.at-champ-desc strong { color: var(--at-primary); font-weight: 800; margin-right: 4px; }
.at-champ-my {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--at-bg-soft);
    border-radius: 12px;
    font-size: 13px;
    color: var(--at-text);
    text-align: center;
    border: 1px dashed var(--at-line);
}
.at-champ-my strong { color: var(--at-primary); font-weight: 800; }

.at-rank-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.at-rank-tab {
    padding: 6px 14px;
    border: 1px solid var(--at-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--at-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.at-rank-tab:hover { border-color: var(--at-primary); color: var(--at-primary); }
.at-rank-tab.active { background: var(--at-primary); color: #fff; border-color: var(--at-primary); }

/* === 리스트 (오늘/랭킹 공용) === */
.at-list { list-style: none; padding: 0; margin: 0; }
.at-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--at-line);
    position: relative;
}
.at-del-btn {
    position: absolute;
    top: 8px; right: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(226, 55, 68, 0.1);
    color: var(--at-sun);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.at-list-item:hover .at-del-btn { opacity: 1; }
.at-del-btn:hover { background: var(--at-sun); color: #fff; }
.at-del-btn:disabled { opacity: 0.5; cursor: wait; }
.at-list-item:last-child { border-bottom: none; }

.at-rank {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    color: #fff;
    letter-spacing: -0.02em;
}
.at-rank-1 {
    background: linear-gradient(135deg, #ffd84d 0%, #f5b800 60%, #c99000 100%);
    box-shadow: 0 4px 10px rgba(245,184,0,0.35), inset 0 1px 0 rgba(255,255,255,0.45);
    text-shadow: 0 1px 1px rgba(120,80,0,0.35);
}
.at-rank-2 {
    background: linear-gradient(135deg, #e9edf2 0%, #b9c1cc 60%, #8c95a1 100%);
    box-shadow: 0 4px 10px rgba(140,149,161,0.3), inset 0 1px 0 rgba(255,255,255,0.55);
    text-shadow: 0 1px 1px rgba(60,70,80,0.3);
}
.at-rank-3 {
    background: linear-gradient(135deg, #f0b07a 0%, #d28552 60%, #a35a2a 100%);
    box-shadow: 0 4px 10px rgba(163,90,42,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 1px 1px rgba(90,40,10,0.35);
}
.at-rank-n { background: var(--at-bg-soft); color: var(--at-text-muted); font-size: 13px; }
.at-rank-label { letter-spacing: -0.02em; }

.at-avatar-slot { width: 38px; height: 38px; flex-shrink: 0; }
.at-avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    border-radius: 50%;
    color: #fff; font-size: 15px; font-weight: 800;
    box-sizing: border-box;
}
.at-nick-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.at-nick-row .at-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.at-streak-chip {
    display: inline-flex; align-items: center; gap: 3px;
    background: #fff4c2; color: #8a6900;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
}
.at-info { flex: 1; min-width: 0; }
.at-nick { font-size: 14px; font-weight: 700; color: var(--at-text); }
.at-memo { font-size: 12.5px; color: var(--at-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.at-meta { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.at-time { font-size: 11.5px; color: var(--at-text-muted); }
.at-point-badge {
    display: inline-block;
    background: #e8f3ff;
    color: var(--at-primary);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}
.at-point-badge.top { background: #fff4c2; color: #8a6900; }

/* === Empty / Loading === */
.at-empty { list-style: none; text-align: center; padding: 40px 20px; }
.at-empty-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.35; }
.at-empty-text { font-size: 14px; color: var(--at-text-muted); }

.at-loading { text-align: center; padding: 28px; }
.at-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--at-line);
    border-top-color: var(--at-primary);
    border-radius: 50%;
    animation: atSpin 0.7s linear infinite;
    margin: 0 auto;
}
@keyframes atSpin { to { transform: rotate(360deg); } }

/* === 더보기 === */
.at-more-btn {
    display: block; width: 100%;
    padding: 11px;
    border: 1px solid var(--at-line);
    border-radius: 12px;
    background: #fff;
    font-size: 13px; font-weight: 700;
    color: var(--at-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 10px;
}
.at-more-btn:hover { border-color: var(--at-primary); color: var(--at-primary); background: #e8f3ff; }

/* === Confetti === */
.at-confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
.at-confetti-piece { position: absolute; width: 10px; height: 10px; top: -10px; border-radius: 2px; animation: atConfettiFall 2.5s ease-out forwards; }
@keyframes atConfettiFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* === Success Modal === */
.at-success-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); z-index: 9998; display: flex; align-items: center; justify-content: center; animation: atFadeIn 0.3s ease; }
.at-success-modal { background: #fff; border-radius: 22px; padding: 36px 32px; text-align: center; max-width: 340px; width: 90%; animation: atPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.at-success-icon { font-size: 60px; margin-bottom: 10px; }
.at-success-title { font-size: 21px; font-weight: 800; margin-bottom: 6px; color: var(--at-text); }
.at-success-sub { font-size: 14px; color: var(--at-text-muted); margin-bottom: 4px; }
.at-success-point { font-size: 32px; font-weight: 800; color: var(--at-primary); margin: 14px 0 6px; }
.at-success-bonus { font-size: 13px; font-weight: 700; color: #8a6900; background: var(--at-bonus-bg); border: 1px solid var(--at-bonus-border); padding: 8px 14px; border-radius: 10px; margin: 8px 0 10px; }
.at-success-streak { font-size: 13px; color: var(--at-text-muted); }
.at-success-close { margin-top: 22px; background: var(--at-primary); color: #fff; border: none; padding: 13px 44px; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; transition: background 0.15s; }
.at-success-close:hover { background: var(--at-primary-dark); }

@keyframes atFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes atPopIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* === 일자 보기 인라인 표시 === */
.at-rank-card-titlewrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.at-back-btn {
    align-self: flex-start;
    border: 1px solid var(--at-line);
    background: #fff;
    color: var(--at-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.at-back-btn:hover { background: var(--at-primary); color: #fff; border-color: var(--at-primary); }

/* === Responsive === */
@media (max-width: 991px) {
    .at-grid { grid-template-columns: 1fr; }
    .at-hero-title { font-size: 24px; }
    .at-hero-illust { width: 140px; height: 130px; }
    .at-hero-illust-1 { font-size: 90px; }
    .at-hero-illust-2 { font-size: 52px; }
    .at-hero-illust-3 { font-size: 40px; }
}

@media (max-width: 768px) {
    .at-header { padding: 26px 22px 22px; flex-direction: column; align-items: flex-start; }
    .at-hero-illust { display: none; }
    .at-hero-title { font-size: 22px; }
    .at-hero-sub { font-size: 13px; }
    .at-tier-row { padding: 16px; }
    .at-tier-head { gap: 6px; }
    .at-tier-head span { font-size: 11px; flex-basis: 100%; }
    .at-tier-cards { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .at-tier-card { padding: 10px 4px; }
    .at-tier-medal { font-size: 22px; }
    .at-tier-points strong { font-size: 16px; }
    .at-tier-points small { font-size: 11px; }
    .at-tier-bonus { padding: 7px 12px; font-size: 12px; gap: 6px; }
    .at-tier-bonus-icon { font-size: 16px; }
    .at-tier-bonus-amount { font-size: 11.5px; padding: 2px 9px; }
    .at-tier-bonus-amount strong { font-size: 13px; }
    .at-calendar-card, .at-progress-card, .at-rank-card { padding: 16px; border-radius: 16px; }
    .at-cal-day { min-height: 36px; }
    .at-cal-day-num { font-size: 12px; }
    .at-progress-card { gap: 14px; }
    .at-progress-circle { width: 78px; height: 78px; }
    .at-progress-inner strong { font-size: 22px; }
    .at-checkin-input-row { max-width: 100%; }
    .at-checkin-btn { padding: 10px 18px; font-size: 13px; }
    .at-list-item { gap: 10px; padding: 11px 2px; }
    .at-rank { width: 40px; height: 40px; font-size: 10.5px; }
    .at-avatar-fallback { font-size: 13px; }
}

@media (max-width: 480px) {
    .at-tier-cards { grid-template-columns: repeat(2, 1fr); }
}
