/* 今日の任務ページ。色は進捗ページ（progress/style.css）と同じ。外部フォント・画像なし。 */
:root {
  --bg: #fbf8f2;
  --card: #ffffff;
  --ink: #1f1d1a;
  --muted: #6b655c;
  --line: #e7e1d6;
  --accent: #e2572b;
  --accent-ink: #ffffff;
  --bad: #b5452a;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --card: #211f1c;
    --ink: #f3efe8;
    --muted: #aaa298;
    --line: #36322c;
    --accent: #ff7a4d;
    --accent-ink: #1a1410;
    --bad: #ff8e6e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
a { color: var(--accent); }
.wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.kicker { margin: 0; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
h1 { margin: 2px 0 0; font-size: clamp(1.7rem, 7vw, 2.2rem); font-weight: 800; line-height: 1.3; }
.date { margin: 4px 0 0; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.5em; }

.card {
  margin-top: 20px; background: var(--card); border: 2px dashed var(--accent);
  border-radius: var(--radius); padding: 28px 20px 24px; text-align: center;
}
.mission-text { margin: 0; font-size: clamp(1.3rem, 5.6vw, 1.6rem); font-weight: 800; line-height: 1.55; min-height: 3.1em; }
.mission-text.error { color: var(--bad); font-size: 1rem; }
.did .mission-text { font-size: 1.05rem; font-weight: 600; color: var(--muted); min-height: 0; }
.label { margin: 0 0 6px; font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 28px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.15rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); min-width: 60%; }
.btn-ghost { background: transparent; color: var(--accent); font-size: 1rem; min-height: 48px; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.do { margin-top: 24px; }
.do .hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }

.teaser { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.teaser-text { margin: 0; font-size: 1.15rem; font-weight: 800; }
.teaser .hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

.cue { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

.word { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.word-text { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.6; }

/* 有料版のお知らせ：URLを設定しても小さく（主役は任務と予告。behavioral-design 6章 依頼3） */
.notify { margin-top: 16px; padding: 10px 4px 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.notify p { margin: 0 0 4px; }
.notify a { display: inline-block; padding: 6px 0; font-weight: 700; }

.links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.links .btn { flex: 1 1 200px; }

.foot { margin-top: auto; padding-top: 28px; font-size: .78rem; color: var(--muted); }
.foot p { margin: 4px 0; }

/* 読み込み前のちらつきを抑える */
body:not(.ready) .teaser-text { visibility: hidden; }
