/* 오늘의 같은 판(daily.js)·함께 출석(streak.js) v4.7 */
/* 처음 온 손님(최고 기록 없음)은 원래 시작 카드 그대로 — 첫 판을 먼저 */
#startOv .card:not(.returning) .daily-box, #startOv .card:not(.returning) .streak-box { display: none; }
/* 해 본 사람은 설명 문단을 빼고(PC 짝 3명+초대일 때 34px 넘침), 폰에선 그림 안내도 빼서 두 칸이 들판 안에 들어가게(393x852에서 카드 548px > 들판 436px였음) */
#startOv .card.returning > p { display: none; }
@media (max-width: 899px) {
  #startOv .card.returning .legend { display: none; }
  /* 폰 375x667에서 해 본 사람 카드가 들판보다 약 48px 커서 「함께 출석」 아래가 잘렸음(10/5 #422) → 칸 사이·상자 위 여백을 줄임 */
  #startOv:has(.card.returning) { padding-top: 6px; padding-bottom: 6px; }
  #startOv .card.returning { gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  #startOv .card.returning .streak-box { padding-top: 4px; padding-bottom: 4px; }
  #startOv .card.returning .daily-box, #startOv .card.returning .streak-box { margin-top: 0; }
  #startOv .card.returning .attend-line { margin-top: -4px; }
}
/* 360px 폰은 들판이 더 낮아 그래도 13px 넘침 → 해 본 사람에겐 「잡초를 쏙쏙 뽑아요」 제목 줄을 뺌(시험 시작 버튼이 같은 뜻) */
@media (max-width: 374px) {
  #startOv .card.returning > h2 { display: none; }
}
.daily-box { display: block; width: 100%; margin: 8px 0 0; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 14px;
  background: #fff3c9; color: var(--ink); box-shadow: 0 3px 0 var(--ink); font: inherit; text-align: center; cursor: pointer; }
.daily-box b { display: block; font: 1rem var(--display); }
.daily-box span { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.3; }
.daily-box:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.daily-box.done { background: var(--chip); }
.daily-board { list-style: none; margin: 0 0 12px; padding: 0; max-height: 40vh; overflow-y: auto; text-align: left; }
.daily-board li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 0.86rem; }
.daily-board li:nth-child(odd) { background: var(--chip); }
.daily-board li.me { background: #fff3c9; font-weight: 700; }
.daily-board li.empty { justify-content: center; color: var(--muted); }
.daily-board b { font-weight: 400; font-family: var(--display); }
.update-dlg.daily-dlg, .update-dlg.streak-dlg { width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 16px); overflow-y: auto; }
.daily-again[hidden], .streak-box[hidden] { display: none; }

.streak-box { margin: 8px 0 0; padding: 6px 10px; border-radius: 12px; background: #fdeef3; text-align: left; font-size: 0.8rem; }
.streak-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.streak-head b { font: 0.9rem var(--display); font-weight: 400; }
.streak-pair { display: flex; align-items: center; gap: 6px; padding: 4px 0 0; }
.streak-pair .who { flex: 1; min-width: 0; line-height: 1.3; }
.streak-pair .who b { font-weight: 700; }
.streak-pair .who em { font-style: normal; color: #e0453f; font-family: var(--display); }
.streak-pair .who small { display: block; color: var(--muted); font-size: 0.72rem; }
.streak-pair.done .who small { color: #3d7a3a; }
.streak-pair.invite .who { font-size: 0.78rem; }
.streak-pair .mini-btn { flex: none; }
.streak-pair .mini-btn.poke, .streak-pair .mini-btn.ok { background: #ffd8e4; }
.streak-pair .poked { flex: none; color: var(--muted); font-size: 0.72rem; }
.streak-empty { display: block; color: var(--muted); font-size: 0.74rem; padding-top: 2px; }
.streak-mine { margin: 0 0 10px; text-align: left; }
.streak-mine:empty { display: none; }
.streak-mine .streak-pair { padding: 6px 8px; border-radius: 10px; background: #fdeef3; margin-bottom: 4px; }
.streak-h { margin: 0 0 6px; font: 0.95rem var(--display); font-weight: 400; text-align: left; }
.streak-h small { font: 0.72rem var(--body); color: var(--muted); }
.streak-cands { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.streak-cands .mini-btn { font-size: 0.82rem; padding: 4px 12px; }
.streak-cands small { color: var(--muted); }
.streak-box .streak-pair { padding-top: 3px; }
.streak-box .streak-pair .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* 시작 카드는 짝 한 명당 한 줄(최대 3명이어도 들판 안에) */
.streak-box .streak-pair .who small { display: inline; margin-left: 4px; }
.streak-box .streak-pair.invite .who { white-space: normal; }
.vs-banner .vs-daily { margin-top: 6px; font-size: 0.85rem; padding: 4px 14px; background: #fff3c9; }  /* 같은 판 자랑으로 들어온 사람(vs.js) */
/* 자랑 링크로 들어온 처음 손님: 도전 배너(같은 판 버튼 포함)만큼 설명 문단을 빼서 「시험 시작」이 들판 안에(393x852에서 카드 522px > 들판 436px였음). 그림 안내가 같은 내용 */
#startOv .card:has(.vs-banner:not([hidden])) > p { display: none; }
/* v4.10 대결 결과 창: 방금 겨룬 상대와 함께 출석(streak.js) */
.duel-streak { margin: 2px 0 8px; padding: 6px 10px; border-radius: 12px; background: #fdeef3; font-size: 0.8rem; line-height: 1.45; text-align: left; }
.duel-streak .mini-btn { margin-left: 2px; background: #ffd8e4; white-space: nowrap; }
.streak-cands .mini-btn small { color: var(--muted); font-size: 0.7rem; }
