@charset "utf-8";

.att-wrap {
    --att-ink: #1c1917;
    --att-muted: #78716c;
    --att-line: #e7e5e4;
    --att-soft: #f5f5f4;
    --att-accent: #0f766e;
    --att-accent-soft: #ccfbf1;
    --att-warn: #b45309;
    --att-ok: #15803d;
    box-sizing: border-box;
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 8px 4px 28px;
    color: var(--att-ink);
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

.att-wrap *,
.att-wrap *::before,
.att-wrap *::after { box-sizing: border-box; }

.att-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.att-title {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.att-sub {
    margin: 0;
    font-size: 0.88rem;
    color: var(--att-muted);
    line-height: 1.45;
    max-width: 28em;
}

.att-head-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.att-point {
    font-size: 0.82rem;
    color: var(--att-muted);
    background: var(--att-soft);
    padding: 6px 10px;
    border-radius: 999px;
}

.att-point b { color: var(--att-ink); }

.att-shop-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--att-ink);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.att-banner {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.att-banner.is-ok {
    background: #dcfce7;
    color: var(--att-ok);
}

.att-action {
    text-align: center;
    margin-bottom: 28px;
    padding: 28px 16px;
    border-radius: 20px;
    background:
        radial-gradient(120% 80% at 50% 0%, #ccfbf1 0%, transparent 55%),
        linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
    border: 1px solid var(--att-line);
}

.att-check-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 280px);
    height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: var(--att-accent);
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.att-check-btn:hover:not(:disabled):not(.is-done) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.32);
}

.att-check-btn:disabled,
.att-check-btn.is-done {
    background: #a8a29e;
    box-shadow: none;
    cursor: default;
    transform: none;
}

.att-hint {
    margin: 12px 0 0;
    font-size: 0.84rem;
    color: var(--att-muted);
}

.att-hint b { color: var(--att-accent); }

.att-cal {
    margin-bottom: 28px;
}

.att-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.att-cal-head strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.att-cal-legend {
    font-size: 0.75rem;
    color: var(--att-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.att-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--att-line);
}

.att-dot.is-done { background: var(--att-accent); }
.att-dot.is-today { box-shadow: inset 0 0 0 2px var(--att-warn); background: transparent; }

.att-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.att-dow {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--att-muted);
    padding: 4px 0;
}

.att-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--att-soft);
    color: var(--att-ink);
}

.att-cell.is-empty { background: transparent; }

.att-cell.is-checked {
    background: var(--att-accent-soft);
    color: var(--att-accent);
    font-weight: 800;
}

.att-cell.is-today {
    box-shadow: inset 0 0 0 2px var(--att-warn);
}

.att-cell.is-today.is-checked {
    background: var(--att-accent);
    color: #fff;
    box-shadow: none;
}

.att-sec-title {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.att-sec-title span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--att-muted);
    margin-left: 4px;
}

.att-empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: var(--att-muted);
    font-size: 0.88rem;
    border: 1px dashed var(--att-line);
    border-radius: 12px;
}

.att-people {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--att-line);
    border-radius: 14px;
    overflow: hidden;
}

.att-people li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--att-line);
    font-size: 0.9rem;
    gap: 8px;
}

.att-people li:last-child { border-bottom: 0; }

.att-podium .att-medal {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1;
}
.att-podium .att-rank {
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--att-muted);
    font-size: 0.82rem;
    min-width: 2.2em;
}
.att-podium .att-nick {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}
.att-podium .att-rank-1 .att-rank { color: #b45309; }
.att-podium .att-rank-2 .att-rank { color: #64748b; }
.att-podium .att-rank-3 .att-rank { color: #9a3412; }

.att-nick { font-weight: 700; }
.att-time { color: var(--att-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; margin-left: auto; }

.att-admin-note {
    margin: 20px 0 0;
    font-size: 0.75rem;
    color: var(--att-muted);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .att-wrap { padding: 4px 2px 24px; }
    .att-head { flex-direction: column; }
    .att-head-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .att-check-btn { width: 100%; min-width: 0; }
}
