/* ===== Typography & noise reduction inside the app (serif only for big display text) */
.main h2, .main h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.main h2 { font-size: 1.12rem; }
.main h3 { font-size: 1rem; }
.main .faint { font-size: .88rem; }
.main .small { font-size: .9rem; }
.main .card { box-shadow: 0 1px 2px rgba(26, 31, 54, .04), 0 6px 20px rgba(26, 31, 54, .05); }

/* ===== Today: compact header */
.today-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 16px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.greet { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 4px; }
.mini-stats { display: flex; gap: 8px; }
.mini-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; text-align: center; min-width: 76px; }
.mini-stats b { display: block; font-size: 1.15rem; }
.mini-stats span { font-size: .75rem; color: var(--ink-2); }

/* ===== Today: hero mission + side */
.today-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .today-grid { grid-template-columns: 1fr; } }
.mission-hero { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(18px, 3vw, 30px); color: #fff; min-height: 340px;
  background: radial-gradient(520px 320px at 92% 0%, rgba(243, 194, 92, .45), transparent 60%),
              radial-gradient(460px 300px at 0% 100%, rgba(120, 150, 255, .35), transparent 60%),
              linear-gradient(140deg, #18204a, #24317a 60%, #2e3f95);
  box-shadow: 0 24px 50px rgba(29, 39, 82, .30); }
.mission-hero h2 { color: #fff; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.15; margin: 4px 0 6px; }
.mission-hero .k, .reward .k, .challenge .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #f3c25c; }
.reward .k, .challenge .k { color: var(--gold); }
.mh-sub { color: rgba(255, 255, 255, .82); margin: 0; max-width: 52ch; }
.mh-faint { color: rgba(255, 255, 255, .66); font-size: .88rem; }
.mh-faint a, .mh-contract a { color: #ffe2a0; }
.mh-contract { margin-top: 10px; width: fit-content; font-size: .9rem; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px 12px; display: block; }
.mh-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.mh-target { font-weight: 700; font-size: .85rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255, 255, 255, .55); font-weight: 600; padding-right: 8px; }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; border: 1.5px solid rgba(255, 255, 255, .35); }
.stepper li.now { color: #fff; }
.stepper li.now span { background: #f3c25c; border-color: #f3c25c; color: #241a02; }
.stepper li.past { color: rgba(255, 255, 255, .8); }
.stepper li.past span { background: rgba(255, 255, 255, .2); border-color: transparent; }

.mh-start, .mh-focus { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
@media (max-width: 640px) {
  .mh-start, .mh-focus { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mh-start .seg { justify-content: center; }
  .start-btn { min-width: 0; width: 100%; }
}
.big-ring { position: relative; width: clamp(170px, 22vw, 230px); aspect-ratio: 1; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring .track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 12; }
.big-ring .prog { fill: none; stroke: #f3c25c; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.big-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-family: var(--serif); font-size: 3rem; line-height: 1; }
.mission-hero .clock { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mission-hero .live { color: #7fe0b5; font-weight: 700; font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.mission-hero .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7fe0b5; animation: pulse 1.4s infinite; }
.start-btn { margin-top: 12px; min-width: 260px; font-size: 1.08rem; box-shadow: 0 10px 24px rgba(243, 194, 92, .35); }
.mh-focus-side .btn { margin-top: 16px; }
.btn.light { background: #fff; color: #1d2752; border-color: transparent; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.seg.light button { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .18); }
.seg.light button.on { background: #fff; color: #1d2752; }

.mh-reflect { max-width: 620px; }
.mh-reflect .q { display: block; font-weight: 600; margin: 14px 0 6px; color: #fff; }
.mh-reflect input[type=text] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.mh-reflect input::placeholder { color: rgba(255, 255, 255, .45); }
.mh-reflect input:focus { border-color: #f3c25c; box-shadow: 0 0 0 3px rgba(243, 194, 92, .25); }
.mh-reflect .share { margin-top: 12px; color: rgba(255, 255, 255, .8); }

.mh-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.done-badge { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: #1b4d3a;
  background: radial-gradient(circle at 30% 30%, #b6f2d6, #4cc394); box-shadow: 0 0 0 10px rgba(127, 224, 181, .15); animation: pop .5s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mh-tomorrow { width: 100%; max-width: 560px; text-align: left; margin-top: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px; }
.mh-tomorrow h3 { color: #fff; }
.mh-tomorrow label.f { color: rgba(255, 255, 255, .75); }
.mh-tomorrow input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }

.today-side { display: grid; gap: 16px; }
.reward { background: linear-gradient(160deg, var(--gold-soft), var(--card) 65%); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.reward-row { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.gift { width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: radial-gradient(circle at 30% 30%, #fff4d6, #f3c25c); box-shadow: 0 8px 18px rgba(201, 154, 46, .3); }
.reward-name { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }

.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-dots.big { width: 100%; max-width: 380px; margin-top: 14px; }
.wdot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wdot i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.mission-hero .wdot i { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); }
.wdot small { font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.mission-hero .wdot small { color: rgba(255, 255, 255, .6); }
.wdot.full i, .mission-hero .wdot.full i { background: linear-gradient(135deg, #f3c25c, #c99a2e); border-color: transparent; }
.wdot.half i, .mission-hero .wdot.half i { background: linear-gradient(135deg, #f3c25c 50%, transparent 50%); border-color: #f3c25c; }
.wdot.miss i { background: var(--warn-soft); border-color: transparent; }
.wdot.ice i { background: var(--ice-soft); border-color: transparent; }
.wdot.rest i { background: transparent; border-style: dashed; }
.wdot.today i { outline: 2px solid var(--navy); outline-offset: 2px; }
.mission-hero .wdot.today i { outline-color: #fff; }
.week-dots.big .wdot.full i { animation: pop .5s ease both; }
@media (max-width: 640px) {
  .stepper li { padding-right: 2px; }
  .stepper li:not(.now) { font-size: 0; gap: 0; }
  .stepper li:not(.now) span { font-size: .72rem; }
}
