/* Step 23 — the daily tsume. A tsume-book page: dark traditional wood, the
   mate length as the headline, the hand prominent, nothing else. */

.daily { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.daily-head { margin-bottom: 14px; }
.daily-eyebrow { font: 600 .75rem/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo, #2C4A63); margin: 0 0 6px; }
.daily-title { display: flex; align-items: baseline; gap: 14px; margin: 0; font-size: 2rem; }
.daily-mate { color: var(--seal, #A3382A); font-size: 2.4rem; letter-spacing: .04em; }
.daily-date { margin: 6px 0 0; color: var(--ink-soft, #5C5040); }

.daily-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.daily-board-wrap { position: relative; }
.daily-board { height: min(78vh, 640px); }
.daily-board .pos-svg { width: 100%; height: 100%; display: block; }
.daily-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.daily-panel { background: var(--paper-deep, #E7D8AF); border: 1px solid var(--paper-edge, #D8C48C);
  border-radius: 10px; padding: 18px; }
.daily-instruction { font-size: 3rem; line-height: 1; margin: 0 0 8px; color: var(--seal, #A3382A);
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif; }
.daily-hand { font-size: 1.35rem; margin: 0 0 8px; }
.daily-hand strong { letter-spacing: .12em; }
.daily-desc { color: var(--ink-soft, #5C5040); margin: 0 0 12px; font-size: .95rem; }
.daily-clock { font: 600 1.05rem system-ui, sans-serif; margin: 0 0 8px; }
.daily-message { min-height: 2.8em; margin: 0 0 10px; }
.daily-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.daily-actions button { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--wood-line, #7A5630);
  background: #fff8e6; cursor: pointer; font: inherit; }
.daily-actions .primary-btn { background: var(--seal, #A3382A); color: #fff; border-color: var(--seal, #A3382A); }
.daily-share-text { white-space: pre-wrap; background: #fffaf0; border: 1px dashed var(--wood-line, #7A5630);
  padding: 8px; border-radius: 6px; font: .9rem ui-monospace, monospace; }
.daily-note { font-size: .85rem; color: var(--ink-soft, #5C5040); }
.daily-locked { background: #fff8e6; border-radius: 8px; padding: 10px 12px; }
.daily-locked a { display: inline-block; margin: 4px 8px 0 0; }

.daily-streak { margin-top: 16px; border-top: 1px solid var(--paper-edge, #D8C48C); padding-top: 12px; }
.daily-streak__now { margin: 0 0 8px; font-size: 1.1rem; }
.daily-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font: 700 .8rem system-ui, sans-serif; text-decoration: none; color: #fff; }
.cal-day.is-solved { background: #2F7D4F; }
.cal-day.is-practised { background: #9FC87D; color: #1c3a22; }
.cal-day.is-missed { background: #CBB894; }
.cal-day.is-open { background: #fff8e6; border: 1px dashed var(--wood-line, #7A5630); }
.cal-day.is-none { background: transparent; border: 1px dotted #CBB894; }
.cal-day.is-today { outline: 3px solid var(--seal, #A3382A); outline-offset: 1px; }
.daily-rollover, .daily-links, .daily-signup { font-size: .9rem; margin: 10px 0 0; }
.daily-signup a { font-weight: 700; color: var(--seal, #A3382A); }
.daily-empty { padding: 30px 0; }
.daily-about { max-width: 70ch; margin-top: 32px; color: var(--ink-soft, #5C5040); line-height: 1.6; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

.is-shaking { animation: daily-shake .35s ease; }
@keyframes daily-shake {
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

/* Archive list */
.daily-archive { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.daily-archive ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.daily-archive li a { display: block; padding: 10px 12px; border-radius: 8px; background: var(--paper-deep, #E7D8AF);
  border: 1px solid var(--paper-edge, #D8C48C); color: var(--ink, #2A2118); }
.daily-archive li a:hover { border-color: var(--seal, #A3382A); text-decoration: none; }
.daily-archive .num { font-weight: 700; }
.daily-archive .mate { color: var(--seal, #A3382A); margin-left: 6px; }
.daily-archive .when { display: block; font-size: .8rem; color: var(--ink-soft, #5C5040); }
.daily-archive .tick { float: right; color: #2F7D4F; font-weight: 700; }
.daily-archive .locked { float: right; opacity: .6; }

/* Dashboard panel */
.streak-panel { background: var(--paper-deep, #E7D8AF); border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; }
.streak-panel h2 { margin: 0 0 8px; font-size: 1.15rem; }
.streak-panel .daily-calendar { max-width: 280px; }

@media (max-width: 820px) {
  .daily-grid { grid-template-columns: 1fr; }
  .daily-instruction { font-size: 2.2rem; }
}
@media (orientation: portrait) {
  .daily-board { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .is-shaking { animation: none; }
}
