/* 窓の一覧。上の帯1の下に重ねる。右上の感想の部品の下にボタンを置かない */
#list { position: absolute; inset: 48px 0 0; z-index: 5; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  background: #1e130c; padding: 4px 10px calc(10px + env(safe-area-inset-bottom)); }
.list-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; max-width: 460px; min-height: 100%; margin: 0 auto; }
.list-head { position: sticky; top: -4px; z-index: 2; background: #1e130c; padding-block: 2px; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 54px 0 4px; }
.list-title { flex: 1; min-width: 0; }
.list-title h2 { font-size: 16px; line-height: 1.25; }
.list-count { font-size: 13px; line-height: 1.3; color: #ffd488; font-variant-numeric: tabular-nums; }
#list .list-close { width: 44px; height: 44px; flex: none; padding: 0; font-size: 24px; line-height: 1; }

#list .list-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; min-height: 122px; padding: 5px 6px 6px; line-height: 1.25; text-align: center; }
.list-art { position: relative; display: block; width: 100%; height: 62px; flex: none; }
.list-pic { display: block; width: 84px; height: 62px; margin: 0 auto; }
.list-name { font-size: 13px; }
.list-status { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 700; }
.list-status:empty { display: none; }
.list-status[data-tier="spotless"] { color: #ffd966; }
.list-status[data-tier="clean"] { color: #a4e4fa; }
.list-status[data-tier="pass"] { color: #a8e6a3; }
.list-status[data-tier="almost"] { color: #ffbd73; }
.list-status[data-tier="streaky"] { color: #d6cdc4; }
.list-mark { width: 17px; height: 17px; flex: none; }
.list-note { font-size: 12px; color: #ecdcc4; font-variant-numeric: tabular-nums; }

#list .list-item.current { border-color: #ffd488; box-shadow: 0 0 0 2px #ffd488, 0 0 6px rgba(255, 212, 136, .55); }
.list-up { position: absolute; right: -2px; bottom: -2px; white-space: nowrap; padding: 0 6px; border: 1.5px dashed #ffd24a; border-radius: 999px; color: #ffe48a; font-size: 10px; font-weight: 700; line-height: 1.5; background: rgba(43, 27, 14, .88); }
.list-now {position: absolute; left: -2px; top: -2px; white-space: nowrap; padding: 1px 6px; border-radius: 8px; background: #ffd488; color: #2b1b0e; font-size: 10px; font-weight: 700; line-height: 1.3; text-align: left; }
.list-master { position: absolute; right: 0; top: 0; padding: 1px 6px; border: 2px solid #ffd24a; border-radius: 999px; color: #ffe48a; font-size: 11px; font-weight: 700; transform: rotate(-6deg); background: rgba(43, 27, 14, .85); }

#list .list-item.locked { background: rgba(0, 0, 0, .28); border-style: dashed; border-color: rgba(255, 246, 230, .22); cursor: default; }
.list-item.locked .list-pic { opacity: .22; filter: saturate(.3); }
.list-item.locked .list-name { color: #b9aa98; }
.list-lock { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); }
.list-item.shake { animation: list-shake .36s ease-in-out; }
.list-item.locked.shake .list-note { color: #ffd488; font-weight: 700; }
@keyframes list-shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }

/* 今日の窓の1行と、7枚の合計。どちらも2列をまたぐ */
#list .list-daily { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 60px; padding: 4px 10px 4px 6px; text-align: left; line-height: 1.25; border: 1.5px solid #ffd488; background: linear-gradient(100deg, rgba(242, 169, 59, .3), rgba(242, 169, 59, .1)); }
.daily-art { position: relative; flex: none; width: 64px; height: 48px; }
.daily-art .list-pic { width: 64px; height: 48px; }
.daily-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.daily-words strong { font-size: 15px; }
.daily-sub { font-size: 12px; color: #ecdcc4; }
.daily-state { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; max-width: 48%; text-align: right; }
.daily-todo { font-size: 13px; font-weight: 700; color: #2b1b0e; background: #ffd488; border-radius: 999px; padding: 2px 12px; }
#list .list-daily.current { box-shadow: 0 0 0 2px #ffd488, 0 0 6px rgba(255, 212, 136, .55); }
#list .list-daily.locked { background: rgba(0, 0, 0, .28); border-style: dashed; border-color: rgba(255, 246, 230, .3); cursor: default; }
.list-daily.locked .list-pic { opacity: .22; filter: saturate(.3); }
.list-daily.locked strong { color: #b9aa98; }
.list-daily.locked.shake { animation: list-shake .36s ease-in-out; }
.list-daily.locked.shake .daily-sub { color: #ffd488; font-weight: 700; }
.totals { grid-column: 1 / -1; display: flex; gap: 6px; }
.totals p { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 4px; background: rgba(255, 246, 230, .07); border-radius: 8px; line-height: 1.2; text-align: center; }
.totals span { font-size: 11px; color: #ecdcc4; }
.totals b { font-size: 17px; color: #ffd488; font-variant-numeric: tabular-nums; }

@media (max-height: 700px) {
  #list { inset: 44px 0 0; }
  #list .list-daily { min-height: 52px; }
  .totals b { font-size: 15px; }
  .list-box { gap: 6px; }
  #list .list-item { min-height: 118px; padding-top: 4px; padding-bottom: 4px; }
  .list-art, .list-pic { height: 56px; }
}
/* 360 幅の英語でも、今日の行の見出しは1行 */
.daily-words strong { white-space: nowrap; }
@media (max-width: 380px) {
  .daily-words strong { font-size: 13px; }
  .daily-sub { font-size: 11px; }
  #list .list-daily { gap: 6px; padding-right: 6px; }
  .daily-art, .daily-art .list-pic { width: 52px; height: 40px; }
  .daily-state { max-width: 40%; }
}
@media (min-width: 760px) and (max-height: 860px) {
  .list-box { grid-template-columns: repeat(4, 1fr); max-width: 760px; align-content: center; }
}
@media (prefers-reduced-motion: reduce) { .list-item.shake, .list-daily.locked.shake { animation: none; } }
