/* 오늘의 인생(js/daily-ui.js): 번호 머리·칸 줄·이름 칸·로비 버튼·받은 링크 화면 */

/* 번호 머리(포스터·결말·받은 링크 위) */
.dl-head { display: grid; justify-items: center; gap: 3px; margin: 0 0 10px; text-align: center; }
.dl-kick { display: inline-block; padding: 4px 12px 3px; border: 2px solid #2A211E; border-radius: 3px; background: var(--acc); color: #FFFFFF; font: 800 14px 'Paperlogy', var(--head); letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(242, 199, 68, .85), inset 0 3px 0 rgba(255, 255, 255, .28), 0 2px 0 #2A211E; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.dl-head small { color: var(--muted); font-size: 12.5px; }

/* 칸 줄: 나이대마다 한 칸, 색은 그때 가장 높은 자리 */
.dl-row { display: flex; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.dl-cell { display: grid; justify-items: center; gap: 2px; }
.dl-cell i { width: 26px; height: 26px; border-radius: 5px; background: var(--dl-c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18), 0 2px 0 rgba(0, 0, 0, .2); }
.dl-cell small { color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.dl-row.big .dl-cell i { width: 38px; height: 38px; border-radius: 7px; }
@media (max-width: 380px) { .dl-row.big { gap: 4px; } .dl-row.big .dl-cell i { width: 32px; height: 32px; } }
:is(.dl-cell, .dl-legend span).t0 { --dl-c: #ECE8E0; } :is(.dl-cell, .dl-legend span).t1 { --dl-c: #8D5A3B; } :is(.dl-cell, .dl-legend span).t2 { --dl-c: #F08A2C; } :is(.dl-cell, .dl-legend span).t3 { --dl-c: #F2C744; } :is(.dl-cell, .dl-legend span).t4 { --dl-c: #3FAE5A; } :is(.dl-cell, .dl-legend span).t5 { --dl-c: #E2452B; }   /* 공유 문구의 ⬜🟫🟧🟨🟩🟥와 같은 순서 */
:root[data-theme="dark"] :is(.dl-cell, .dl-legend span).t0 { --dl-c: #4A4440; }
.dl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 2px 0 8px; color: var(--muted); font-size: 11.5px; }
.dl-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 2px; background: var(--dl-c); vertical-align: -1px; }
.dl-score { margin: 4px 0 10px; text-align: center; font-size: 14px; } .dl-score b { font: 800 16px 'Paperlogy', var(--head); }
.dl-note { margin: 8px 2px 0; color: var(--muted); font-size: 12px; text-align: center; }
.dl-left { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 13px; } .dl-left b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 결말 맨 위 묶음 */
.dl-final { margin: 0 0 14px; padding: 12px 10px 12px; border: 10px solid transparent; border-image: url(../assets/hud/choice.webp) 30 fill / 10px; }
:root[data-theme="dark"] .dl-final { border-image-source: url(../assets/hud/choice-night.webp); }

/* 포스터의 이름 칸 */
.dl-name { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 10px 0; }
.dl-name label { font: 800 14px 'Paperlogy', var(--head); }
.dl-name input { min-width: 0; height: 44px; padding: 0 12px; border-radius: 6px; background: #FFFCF4; border: 2px solid #D9A62E; color: #2A211E; font: 700 16px var(--body); }
.dl-name input:focus { outline: none; border-color: #2A211E; }
:root[data-theme="dark"] .dl-name input { background: var(--hd-well, #15110E); color: var(--hd-ink, #F5EBD6); }
.dl-poster .p2-trait, .dl-poster .p2-name b, .dl-poster .p2-chips span, .dl-poster .p2-slo { cursor: default; }

/* 로비 버튼: 고리 안에 번호 */
.lb-dno { font: 900 calc(var(--s) * .3) 'Paperlogy', var(--head); color: #2A211E; letter-spacing: -.03em; transform: translateY(-4%); }
.lb-daily.done .lb-ring { filter: saturate(.55) brightness(.92); }
.lb-daily .lb-dot { top: 2px; right: 2px; }

/* 플레이 중 위 연도 옆 번호 */
#when[data-daily]::before { content: attr(data-daily); display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--acc); color: #FFFFFF; font-size: 11px; font-weight: 800; vertical-align: 1px; }

/* 받은 링크 화면 */
.dl-link .dl-vs { display: grid; gap: 10px; margin: 6px 0; }
.dl-link .dl-vs.two { grid-template-columns: 1fr 1fr; }
.dl-who { display: grid; justify-items: center; padding: 8px 4px; border: 8px solid transparent; border-image: url(../assets/hud/choice.webp) 30 fill / 8px; }
:root[data-theme="dark"] .dl-who { border-image-source: url(../assets/hud/choice-night.webp); }
.dl-who > small { color: var(--muted); font-weight: 800; }
.dl-vs.two .dl-row.big .dl-cell i { width: 26px; height: 26px; }
.dl-vs.two .dl-row { gap: 2px; }
.dl-old { margin: 4px 0 10px; text-align: center; font-weight: 700; }

/* 추모관 표시 */
.dl-hof { background: var(--acc) !important; color: #FFFFFF !important; }
.cta-box .dl-left b { display: inline; font: 800 18px 'Paperlogy', var(--head); color: inherit; }   /* .cta-box b(큰 제목)가 시간 글자를 덮지 않게 */
.dl-vs.two .dl-row { flex-wrap: nowrap; }
.dl-vs.two .dl-row.big .dl-cell i { width: min(22px, calc((100vw - 120px) / 18)); height: min(22px, calc((100vw - 120px) / 18)); border-radius: 4px; }
.dl-vs.two .dl-cell small { font-size: 9.5px; }
