:root {
  --ink: #30271e;
  --deep: #1f3832;
  --pine: #385a50;
  --paper: #efe1bd;
  --cream: #f8f0d9;
  --orange: #c75e2b;
  --mustard: #d7a845;
  --rust: #8d3724;
  --sage: #b9c9aa;
  --muted: #746957;
  --line: 2px solid var(--ink);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--deep); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.2) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(135deg, #d6c293, var(--paper) 46%, #c6af7d);
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .34; pointer-events: none; background: repeating-linear-gradient(7deg, transparent 0 6px, rgba(69,48,25,.05) 7px 8px); }
button, input, a { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--mustard); outline-offset: 3px; }

.prototype { min-height: 100vh; padding: 18px clamp(16px, 3vw, 48px) 56px; overflow: hidden; }
.prototype > *, .prototype > main > * { width: min(1440px, 100%); margin-inline: auto; }
.prototype > main { width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 72px; margin-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border: var(--line); border-radius: 50% 46% 48% 42%; background: var(--orange); color: var(--cream); font: 900 20px/1 "STKaiti", "KaiTi", serif; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-5deg); }
.brand b, .brand small { display: block; }
.brand b { font: 900 18px/1.1 "STKaiti", "KaiTi", serif; letter-spacing: .04em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.day-controls { display: flex; overflow: hidden; border: var(--line); border-radius: 999px; background: var(--cream); box-shadow: 3px 4px 0 var(--ink); }
.day-controls button { border: 0; background: transparent; padding: 10px 15px; font-weight: 900; }
.day-controls > button:first-child { border-right: 1px solid var(--ink); }
.day-controls > button:last-child { border-left: 1px solid var(--ink); }
.day-controls button:not(:disabled):hover { background: var(--mustard); }
.day-controls button:disabled { opacity: .32; cursor: not-allowed; }
.current-date { min-width: 154px; }
.current-date small { display: block; color: var(--rust); font-size: 9px; letter-spacing: .12em; }
.archive-button { border: var(--line); border-radius: 4px 9px 5px 8px; background: var(--deep); color: var(--cream); padding: 12px 17px; font-weight: 900; box-shadow: 4px 4px 0 var(--orange); transform: rotate(1deg); }

.date-rail { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; padding: 8px 4px 11px; overscroll-behavior-x: contain; scroll-padding-inline: 50%; scroll-snap-type: x mandatory; scrollbar-color: var(--orange) rgba(48,39,30,.12); scrollbar-width: thin; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.date-rail::-webkit-scrollbar { height: 4px; }.date-rail::-webkit-scrollbar-track { background: rgba(48,39,30,.12); }.date-rail::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--orange); }
.date-rail button { flex: 0 0 84px; height: 82px; border: 1px solid var(--ink); border-radius: 3px 6px 4px 7px; background: rgba(248,240,217,.88); padding: 7px 5px 6px; box-shadow: 2px 3px 0 rgba(48,39,30,.8); scroll-snap-align: center; }
.date-rail small, .date-rail span, .date-rail time, .date-rail b { display: block; line-height: 1; }
.date-rail small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .05em; }
.date-rail .date-icon { display: grid; width: 24px; height: 24px; margin: 4px auto 2px; border: 1px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--deep); box-shadow: 1px 1px 0 var(--ink); place-items: center; transform: rotate(-3deg); }
.date-rail .date-icon svg { display: block; width: 16px; height: 16px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.date-rail .date-icon .solid { fill: currentColor; stroke: currentColor; }.date-rail .date-icon .cutout { fill: var(--cream); stroke: none; }
.date-rail .kind-sport .date-icon { background: var(--pine); color: var(--cream); }.date-rail .kind-feast .date-icon { background: var(--orange); color: var(--cream); }.date-rail .kind-rest .date-icon { background: var(--ink); color: var(--mustard); }.date-rail .kind-evolve .date-icon { background: var(--rust); color: var(--cream); }.date-rail .kind-regain .date-icon { color: var(--rust); }.date-rail .walk-done .date-icon { background: var(--mustard); color: var(--deep); }
.date-rail button.active .date-icon { transform: rotate(4deg) scale(1.08); }
.date-rail time { color: var(--ink); font-size: 8px; font-weight: 900; white-space: nowrap; }
.date-rail b { margin-top: 5px; color: var(--muted); font-size: 8px; }
.date-rail button:not(:disabled):hover, .date-rail button.active { background: var(--mustard); transform: translateY(-4px) rotate(-1deg); box-shadow: 4px 5px 0 var(--ink); }
.date-rail .future, .calendar-grid .future { opacity: .42; cursor: not-allowed; }

.headline { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .65fr); align-items: center; gap: clamp(20px, 4vw, 50px); padding: 18px 8px 22px; text-align: left; }
.headline-copy > span { color: var(--pine); font: 900 9px/1 sans-serif; letter-spacing: .18em; }
.headline h1 { max-width: 900px; margin: 10px 0 12px; font: 900 clamp(42px, 5.4vw, 72px)/.92 "STKaiti", "KaiTi", serif; letter-spacing: -.07em; }
.headline h1 em { display: inline-block; color: var(--orange); font-style: normal; transform: rotate(-2deg); }
.headline p { max-width: 720px; margin: 0; color: #554a3b; font-size: 13px; font-weight: 650; line-height: 1.6; }
.daily-quote { max-width: 720px; border-left: 4px solid var(--orange); padding: 2px 0 2px 12px; animation: quote-in .55s ease-out both; }
.daily-quote span { display: block; margin-bottom: 5px; color: var(--rust); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.daily-quote p::before, .daily-quote p::after { color: var(--orange); font: 900 17px/1 "STKaiti", "KaiTi", serif; }.daily-quote p::before { content: "“"; }.daily-quote p::after { content: "”"; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; border: 1px solid var(--ink); background: var(--cream); padding: 7px 11px; box-shadow: 3px 3px 0 var(--ink); font-size: 9px; font-weight: 900; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #4d9d60; box-shadow: 0 0 0 5px rgba(77,157,96,.18); }
.goal-brief { position: relative; overflow: hidden; border: var(--line); background: var(--deep); color: var(--cream); padding: 20px; box-shadow: 8px 9px 0 var(--orange); transform: rotate(.6deg); }
.goal-brief::after { content: ""; position: absolute; right: -65px; top: -65px; width: 145px; height: 145px; border: 1px solid rgba(248,240,217,.24); border-radius: 50%; box-shadow: 0 0 0 18px rgba(248,240,217,.04); }
.goal-brief header, .goal-deadline { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.goal-brief header span { color: var(--mustard); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.goal-brief header b { font: 900 20px/1 "STKaiti", "KaiTi", serif; }
.goal-numbers { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }
.goal-numbers > div { border-block: 1px solid rgba(248,240,217,.3); padding: 8px 0; }
.goal-numbers small, .goal-numbers strong { display: block; }.goal-numbers small { color: #b9c9aa; font-size: 8px; font-weight: 900; }.goal-numbers strong { margin-top: 5px; color: var(--cream); font: 900 clamp(22px, 3vw, 34px)/1 "STKaiti", "KaiTi", serif; }
.goal-numbers i { color: var(--mustard); font-size: 22px; font-style: normal; font-weight: 900; }
.goal-deadline { align-items: center; margin-top: 12px; border: 1px solid var(--cream); background: var(--orange); padding: 9px 12px; box-shadow: 3px 4px 0 var(--mustard); }
.goal-deadline span { flex: 0 0 auto; font-size: 8px; font-weight: 900; }.goal-deadline output { color: var(--cream); font: 900 clamp(22px, 2.7vw, 35px)/1 "STKaiti", "KaiTi", serif; font-variant-numeric: tabular-nums; }

.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, .76fr); border: var(--line); background: var(--cream); box-shadow: 10px 11px 0 var(--deep); }
.story-card { min-width: 0; overflow: hidden; border-right: var(--line); background: var(--deep); }
.cat-canvas { --look-y: 0px; --walk-x: 0px; --walk-duration: 1120ms; --head-turn: 0deg; --tail-turn: 0deg; --facing: 1; --marker-x: 50%; --marker-y: 70%; position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--deep); padding: 0; cursor: crosshair; }
.cat-canvas::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; box-shadow: inset 0 0 85px rgba(36,29,20,.25); background: repeating-linear-gradient(8deg, transparent 0 6px, rgba(47,34,18,.035) 7px 8px); mix-blend-mode: multiply; }
.scene-backdrop { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.scene-backdrop::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.scene-background { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .4s ease, transform .4s ease; }
.scene-variant-1 .scene-background { object-position: 46% center; filter: saturate(.9) sepia(.08) brightness(1.05); transform: scale(1.02); }
.scene-variant-1::after { background: linear-gradient(155deg, rgba(255,220,140,.18), transparent 52%); }
.scene-variant-2 .scene-background { object-position: 56% center; filter: saturate(1.08) contrast(1.02); transform: scale(1.08); }
.scene-variant-2::after { background: linear-gradient(180deg, rgba(255,244,195,.12), transparent 46%); }
.scene-variant-3 .scene-background { object-position: 42% center; filter: saturate(.74) brightness(.78) contrast(1.06); transform: scale(1.12); }
.scene-variant-3::after { background: linear-gradient(180deg, rgba(40,56,62,.32), rgba(92,72,57,.18)); }
.scene-variant-4 .scene-background { object-position: center bottom; filter: saturate(.62) brightness(.58) hue-rotate(15deg); transform: scale(1.15); }
.scene-variant-4::after { background: radial-gradient(circle at 78% 18%, rgba(255,233,164,.22) 0 3%, transparent 13%), linear-gradient(rgba(24,38,62,.25), rgba(18,26,39,.42)); }
.cat-position { position: absolute; z-index: 2; left: 50%; bottom: -4%; display: block; width: 66%; max-height: 94%; transform: translate(calc(-50% + var(--walk-x)), var(--look-y)); transform-origin: center bottom; transition: transform var(--walk-duration) cubic-bezier(.18,.75,.22,1); }
.cat-visual { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; transform: scaleX(var(--facing)); transform-origin: center bottom; }
.cat-rig { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; opacity: 1; transform-origin: center bottom; filter: drop-shadow(0 14px 9px rgba(31,26,19,.28)); transition: opacity .14s ease; }
.cat-walk-animation { position: absolute; left: 50%; bottom: 0; display: block; width: 70%; height: auto; opacity: 0; filter: saturate(1.05) contrast(1.02) drop-shadow(0 14px 9px rgba(31,26,19,.28)); pointer-events: none; transform: translateX(-50%) scaleX(1.15); transform-origin: center bottom; transition: opacity .16s ease; }
.cat-part { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; will-change: transform; }
.cat-tail { z-index: 0; clip-path: polygon(70% 35%,100% 37%,100% 73%,70% 74%); transform-origin: 74% 57%; animation: tail-alive 1.9s ease-in-out infinite; }
.cat-body { z-index: 1; clip-path: polygon(27% 38%,47% 36%,60% 23%,79% 30%,88% 48%,84% 87%,56% 90%,46% 80%,26% 72%,22% 52%); transform-origin: 58% 78%; animation: body-breathe 4.2s ease-in-out infinite; }
.cat-paw-a { z-index: 2; clip-path: polygon(19% 48%,38% 47%,43% 65%,35% 90%,16% 88%,14% 64%); transform-origin: 31% 56%; }
.cat-paw-b { z-index: 3; clip-path: polygon(41% 49%,60% 48%,64% 73%,59% 98%,39% 96%,37% 66%); transform-origin: 51% 59%; }
.cat-head { z-index: 4; clip-path: polygon(24% 6%,54% 5%,61% 36%,49% 54%,24% 46%); transform-origin: 43% 39%; animation: head-alive 3.4s ease-in-out infinite; }
.cat-pet-target { position: absolute; inset: 16% 14% 4%; border: 0; border-radius: 48%; background: transparent; cursor: grab; touch-action: manipulation; }
.cat-pet-target:focus-visible { outline: 0; }.cat-pet-target:focus-visible::after { content: "摸猫"; position: absolute; left: 50%; bottom: 4%; border: 1px solid var(--cream); background: var(--deep); color: var(--cream); padding: 5px 7px; box-shadow: 2px 2px 0 var(--mustard); font-size: 8px; font-weight: 900; transform: translateX(-50%); }
.cat-pet-target:active { cursor: grabbing; }
.cat-canvas:hover .cat-rig { filter: saturate(1.05) contrast(1.02) drop-shadow(0 14px 9px rgba(31,26,19,.28)); }
.issue-stamp { position: absolute; z-index: 3; left: 18px; top: 17px; display: grid; place-items: center; width: 82px; height: 82px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mustard); font: 900 13px/1 sans-serif; box-shadow: 3px 4px 0 var(--ink); transform: rotate(-7deg); }
.issue-stamp small { margin-top: -18px; color: var(--rust); font-size: 10px; }
.cat-speech { position: absolute; z-index: 4; right: 18px; top: 18px; max-width: 210px; border: var(--line); border-radius: 48% 52% 47% 45%; background: rgba(248,240,217,.94); padding: 12px 16px; box-shadow: 3px 4px 0 var(--ink); font-size: 11px; font-weight: 900; line-height: 1.45; transform: rotate(2deg); }
.cat-speech::after { content: ""; position: absolute; right: 30px; bottom: -10px; width: 15px; height: 15px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--cream); transform: rotate(45deg); }
.paw-burst { position: absolute; z-index: 4; left: 50%; top: 45%; pointer-events: none; }
.paw-burst i { position: absolute; opacity: 0; font-size: 29px; font-style: normal; filter: drop-shadow(2px 2px 0 var(--ink)); }
.paw-burst i:nth-child(1) { --bx: -100px; --by: -120px; }.paw-burst i:nth-child(2) { --bx: 5px; --by: -165px; }.paw-burst i:nth-child(3) { --bx: 110px; --by: -110px; }
.cat-petted .paw-burst i { animation: paw-pop .8s ease-out; }
.walk-complete .paw-burst i { animation: paw-pop .8s ease-out; }
.cat-petted .cat-rig { animation: cat-hop .7s ease-out; }
.cat-pressing .cat-rig { transform: translateY(8px) scale(.98,.95); }
.stage-shift .cat-rig { animation: stage-reveal .65s ease-out; }
.cat-walking .cat-rig { opacity: 0; }
.cat-walking .cat-walk-animation { opacity: 1; }
.walk-marker { position: absolute; z-index: 4; left: var(--marker-x); top: var(--marker-y); opacity: 0; color: var(--mustard); font-size: 26px; text-shadow: 2px 2px 0 var(--ink); pointer-events: none; transform: translate(-50%,-50%); }.cat-walking .walk-marker { animation: walk-mark .9s ease-out; }
.daily-walk { position: absolute; z-index: 5; left: 14px; bottom: 13px; border: 1px solid var(--cream); border-radius: 4px 8px 5px 7px; background: var(--mustard); color: var(--ink); padding: 9px 12px; box-shadow: 3px 4px 0 var(--ink); font-size: 9px; font-weight: 900; }
.daily-walk.complete { background: var(--deep); color: var(--cream); }
.interaction-hint { position: absolute; z-index: 4; right: 14px; bottom: 17px; border: 1px solid rgba(248,240,217,.65); background: rgba(31,56,50,.82); color: var(--cream); padding: 7px 9px; font-size: 8px; font-weight: 900; letter-spacing: .04em; pointer-events: none; }
.issue-stamp, .cat-speech, .paw-burst { pointer-events: none; }
.story-caption { display: flex; align-items: center; gap: 18px; min-height: 78px; background: var(--deep); color: var(--cream); padding: 14px 20px; }
.story-caption span { flex: 0 0 auto; color: var(--mustard); font: 900 21px/1.1 "STKaiti", "KaiTi", serif; }
.story-caption p { margin: 0; color: #d6cbaa; font-size: 10px; line-height: 1.6; }.story-caption b { color: var(--cream); }

.live-panel { display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 45px); background: radial-gradient(circle at 90% 8%, rgba(199,94,43,.14) 0 2px, transparent 3px) 0 0 / 15px 15px, var(--cream); }
.live-panel > header span, .live-panel > header b, .live-panel > header small { display: block; }
.live-panel > header span { color: var(--rust); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.live-panel > header b { margin-top: 6px; font: 900 22px/1 "STKaiti", "KaiTi", serif; }
.live-panel > header small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.weight-hero { margin: 26px 0 22px; }
.weight-hero small { color: var(--muted); font-size: 9px; font-weight: 900; }
.weight-hero strong { display: block; margin: 8px 0; font: 900 clamp(44px, 5vw, 68px)/.9 "STKaiti", "KaiTi", serif; }
.weight-hero p { margin: 0; color: var(--muted); }.weight-hero p b { color: var(--orange); }
.weight-hero .weight-remaining { font-size: 13px; font-weight: 850; }
.weight-deltas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.weight-hero .weight-change { color: var(--pine); font-size: 11px; font-weight: 900; line-height: 1.4; }.weight-hero .weight-change.rebound { color: var(--orange); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.readout-grid > div { border: 1px solid var(--ink); background: var(--paper); padding: 10px; box-shadow: 2px 2px 0 var(--ink); }
.readout-grid > .plan-readout { background: rgba(215,168,69,.18); }
.readout-grid > .plan-readout span { color: var(--rust); }
.readout-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.readout-grid span, .readout-grid b { display: block; }
.readout-grid span { color: var(--muted); font-size: 7px; font-weight: 900; }
.readout-grid b { overflow: hidden; margin-top: 5px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.target-compare { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 6px; margin-top: 16px; }
.target-compare > div { position: relative; overflow: hidden; border: 1px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.target-compare > i { color: var(--orange); font-size: 20px; font-style: normal; font-weight: 900; text-align: center; }
.target-compare span { position: absolute; z-index: 2; left: 7px; top: 7px; border: 1px solid var(--ink); background: var(--cream); padding: 3px 5px; font-size: 7px; font-weight: 900; }
.target-compare img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: linear-gradient(#ead9af, #f8f0d9); }
.target-compare .compare-weight { position: absolute; z-index: 2; right: 7px; bottom: 7px; border: 1px solid var(--cream); background: var(--deep); color: var(--cream); padding: 4px 6px; font-size: 9px; }
.progress-card { margin-top: auto; border: 1px solid var(--ink); background: rgba(248,240,217,.72); padding: 15px 16px 14px; box-shadow: 3px 4px 0 var(--ink); }
.progress-card.is-visible { animation: panel-in .5s ease-out both; }
.progress-card.complete.is-visible { animation: complete-arrive .9s ease-out both; }
.progress-head { display: flex; justify-content: space-between; align-items: end; }
.progress-head span { color: var(--muted); font-size: 13px; font-weight: 900; }.progress-head b { color: var(--orange); font: 900 34px/1 "STKaiti", "KaiTi", serif; }
.progress-card.is-visible .progress-head b { animation: percent-pop .65s .12s ease-out both; }
.progress-track { margin: 12px 0 10px; }
/* Progress effect adapted from Uiverse.io by rust_1966. */
.progress-container { position: relative; overflow: hidden; width: 100%; max-width: 500px; height: 20px; border: 1px solid var(--ink); border-radius: 30px; background: radial-gradient(circle, var(--cream), #d8caaa); box-shadow: inset 0 1px 4px rgba(48,39,30,.28), 0 4px 10px rgba(48,39,30,.2); }
.progress-bar { --progress: 0%; position: absolute; left: 0; top: 0; overflow: hidden; width: 0; height: 100%; border-radius: 30px; background: var(--orange); box-shadow: 0 0 12px rgba(199,94,43,.75), 0 0 22px rgba(199,94,43,.5); }
.progress-card.is-visible .progress-bar { animation: neon-grow 3s ease-in-out forwards; }
.progress-bar::before { content: ""; position: absolute; left: 50%; top: 50%; width: 200%; height: 200%; border: 1px solid rgba(248,240,217,.35); border-radius: 50%; background: transparent; opacity: .5; transform: translate(-50%,-50%) scale(.5); }
.progress-card.is-visible .progress-bar::before { animation: neon-ripple 3s infinite; }
.progress-text { position: absolute; z-index: 2; left: 50%; top: 50%; color: var(--cream); font-size: 10px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(48,39,30,.65); transform: translate(-50%,-50%); }
.particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--cream); opacity: .6; }
.progress-card.is-visible .particle { animation: neon-float 5s infinite ease-in-out; }
.particle:nth-child(1) { left: 20%; top: 10%; }.particle:nth-child(2) { left: 70%; top: 30%; animation-delay: 1s !important; }.particle:nth-child(3) { left: 50%; top: 50%; animation-delay: 2s !important; }.particle:nth-child(4) { left: 40%; top: 80%; animation-delay: 1.5s !important; }.particle:nth-child(5) { left: 60%; top: 90%; animation-delay: 2.5s !important; }
.progress-card > small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }.progress-card > small b { color: var(--orange); font-size: 13px; }
.today-button { margin-top: 18px; border: var(--line); background: var(--orange); color: var(--cream); padding: 12px; box-shadow: 4px 4px 0 var(--ink); font-weight: 900; }

.insight-grid { margin-top: 34px; }
.trend-card { border: var(--line); box-shadow: 7px 8px 0 var(--ink); }
.trend-card { background: var(--cream); padding: clamp(22px, 3vw, 38px); }
.trend-card header { display: flex; align-items: end; justify-content: space-between; }
.trend-card header span { color: var(--pine); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.trend-card h2 { margin: 6px 0 0; font: 900 30px/1 "STKaiti", "KaiTi", serif; }
.trend-total { border-left: 3px solid var(--orange); padding-left: 9px; text-align: right; }.trend-total small, .trend-total b { display: block; }.trend-total small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; }.trend-total b { margin-top: 3px; color: var(--orange); font: 900 27px/1 "STKaiti", "KaiTi", serif; }
.trend-card svg { box-sizing: border-box; width: 100%; height: auto; margin-top: 18px; overflow: visible; border: 1px solid #c9bb98; background: linear-gradient(180deg, rgba(248,240,217,.75), rgba(238,224,188,.38)); }
.trend-card .chart-grid { fill: none; stroke: #c9bb98; stroke-width: .35; stroke-dasharray: 2 2; }
.trend-card .chart-area { fill: url(#trailArea); stroke: none; }
.trend-card .chart-current-guide { fill: none; stroke: rgba(48,39,30,.38); stroke-width: .45; stroke-dasharray: 1.5 1.5; }
.trend-card .chart-glow { fill: none; stroke: rgba(209,100,43,.18); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-card .chart-line { fill: none; stroke: url(#trailLine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; animation: trail-draw 1.35s .12s ease-out forwards; transition: .35s ease; }
.trend-card .chart-milestone { fill: var(--cream); stroke: var(--orange); stroke-width: .65; }.trend-card .chart-current-pulse { fill: none; stroke: var(--orange); stroke-width: .65; transform-box: fill-box; transform-origin: center; animation: chart-pulse 1.8s ease-out infinite; }.trend-card .chart-current { fill: var(--mustard); stroke: var(--ink); stroke-width: .7; filter: drop-shadow(1px 1px 0 rgba(48,39,30,.45)); }
.trend-card .chart-axis text { fill: var(--muted); stroke: var(--cream); stroke-width: .55; paint-order: stroke; font-size: 2.15px; font-weight: 900; }
.trend-card .chart-price-tag rect { fill: var(--deep); stroke: var(--ink); stroke-width: .35; }.trend-card .chart-price-tag text { fill: var(--cream); font-size: 2.1px; font-weight: 900; }
.trend-card .chart-cursor { opacity: 0; pointer-events: none; transition: opacity .12s ease; }.trend-card .chart-cursor.visible { opacity: 1; }
.trend-card .chart-cursor > line { stroke: var(--ink); stroke-width: .4; stroke-dasharray: 1 1; }.trend-card .chart-cursor > circle { fill: var(--cream); stroke: var(--orange); stroke-width: .75; }
.trend-card .chart-cursor-tip rect { fill: var(--deep); stroke: var(--mustard); stroke-width: .35; }.trend-card .chart-cursor-tip text { fill: var(--cream); font-size: 1.7px; font-weight: 900; }.trend-card .chart-cursor-tip [data-chart-tip-weight] { fill: var(--mustard); font-size: 2.15px; }
.trend-card .chart-hitbox { fill: transparent; cursor: crosshair; pointer-events: all; }
.chart-hint { margin: 6px 0 0; color: var(--muted); font-size: 7px; font-weight: 900; text-align: right; }
.chart-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.chart-labels span { position: relative; overflow: hidden; border: 1px solid #c9bb98; background: rgba(248,240,217,.7); padding: 8px 7px 7px; color: var(--muted); font-size: 8px; font-weight: 900; box-shadow: 2px 2px 0 rgba(48,39,30,.18); }.chart-labels span::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--pine); }.chart-labels span:nth-child(2) { text-align: center; }.chart-labels span:nth-child(2)::before { background: var(--orange); }.chart-labels span:last-child { text-align: right; }.chart-labels span:last-child::before { background: var(--mustard); }
.chart-labels small, .chart-labels b { display: block; white-space: nowrap; }.chart-labels small { font-size: 7px; }.chart-labels small i { font-style: normal; }.chart-labels b { margin-top: 5px; color: var(--ink); font-size: 10px; }

.state-inspector { margin-top: 22px; border: 1px dashed var(--ink); background: rgba(248,240,217,.7); }.state-inspector summary { padding: 11px 14px; cursor: pointer; font-size: 9px; font-weight: 900; }.state-inspector pre { overflow: auto; margin: 0; border-top: 1px dashed var(--ink); padding: 14px; font: 10px/1.6 ui-monospace, monospace; }
.calendar-dialog { width: min(850px, calc(100vw - 28px)); max-height: 88vh; border: var(--line); padding: 0; background: var(--paper); box-shadow: 10px 11px 0 var(--ink); }.calendar-dialog::backdrop { background: rgba(25,35,31,.78); backdrop-filter: blur(4px); }.calendar-dialog > header { display: flex; align-items: center; justify-content: space-between; background: var(--deep); color: var(--cream); padding: 16px 20px; }.calendar-dialog header small, .calendar-dialog header b { display: block; }.calendar-dialog header small { color: var(--mustard); font-size: 8px; }.calendar-dialog header b { margin-top: 4px; font: 900 20px/1 "STKaiti", "KaiTi", serif; }.calendar-dialog header button { width: 36px; height: 36px; border: 1px solid var(--cream); border-radius: 50%; background: transparent; color: var(--cream); font-size: 22px; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding-inline: 20px; }.calendar-week { padding-block: 13px 5px; text-align: center; font-size: 9px; font-weight: 900; }.calendar-grid { padding-bottom: 20px; }.calendar-grid button { min-height: 105px; border: 1px solid var(--ink); background: var(--cream); padding: 9px; text-align: left; box-shadow: 2px 2px 0 var(--ink); }.calendar-grid small, .calendar-grid b, .calendar-grid span { display: block; }.calendar-grid b { margin-top: 24px; font-size: 10px; }.calendar-grid span { margin-top: 4px; color: var(--muted); font-size: 7px; }.calendar-grid button.active { background: var(--mustard); transform: translateY(-3px); box-shadow: 4px 5px 0 var(--ink); }.calendar-grid .kind-rest { filter: grayscale(.7); }

.pop { animation: pop .18s ease; }
@keyframes pop { 50% { transform: scale(1.06); color: var(--orange); } }
@keyframes cat-hop { 40% { transform: translateY(-12px) scale(1.03) rotate(-1deg); } }
@keyframes body-breathe { 50% { transform: translateY(-3px) scale(1.012,1.02); } }
@keyframes head-alive { 0%,100% { transform: rotate(var(--head-turn)); } 50% { transform: translateY(-2px) rotate(calc(var(--head-turn) + .7deg)); } }
@keyframes tail-alive { 0%,100% { transform: rotate(var(--tail-turn)); } 50% { transform: rotate(calc(var(--tail-turn) + 4deg)); } }
@keyframes walk-mark { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-80%) scale(1.4); } }
@keyframes paw-pop { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.2); } }
@keyframes stage-reveal { 0% { opacity: .2; filter: sepia(1); transform: scale(1.08); } 100% { opacity: 1; } }
@keyframes quote-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes trail-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-pulse { 0% { opacity: .7; transform: scale(.55); } 75%,100% { opacity: 0; transform: scale(1.35); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes neon-grow { from { width: 0; } to { width: var(--progress); } }
@keyframes neon-ripple { from { opacity: .7; transform: translate(-50%,-50%) scale(.5); } to { opacity: 0; transform: translate(-50%,-50%) scale(1.5); } }
@keyframes neon-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,-20px); } }
@keyframes percent-pop { 50% { color: var(--mustard); transform: scale(1.18) rotate(-2deg); } }
@keyframes complete-arrive { 0% { opacity: 0; transform: translateY(10px); } 55% { box-shadow: 3px 4px 0 var(--ink), 0 0 0 9px rgba(215,168,69,.25); } 100% { opacity: 1; box-shadow: 3px 4px 0 var(--ink); } }

@media (hover: hover) {
  .readout-grid > div, .target-compare > div { transition: transform .18s ease, box-shadow .18s ease; }
  .readout-grid > div:hover, .target-compare > div:hover { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--ink); }
}

@media (max-width: 1050px) {
  .headline { grid-template-columns: 1fr; }.hero { grid-template-columns: 1fr; }.story-card { border-right: 0; border-bottom: var(--line); }.live-panel { min-height: 540px; }
}

@media (max-width: 760px) {
  .prototype { padding: 12px 12px 42px; }.topbar { flex-wrap: wrap; gap: 11px; }.brand { order: 1; }.archive-button { order: 2; padding: 10px 12px; font-size: 10px; }.day-controls { order: 3; width: 100%; }.day-controls .current-date { flex: 1; }
  .date-rail { margin-inline: -3px; padding: 8px 3px 11px; }.date-rail button { flex-basis: 76px; }
  .headline { gap: 12px; padding: 16px 4px; }.headline h1 { font-size: 38px; }.headline p { font-size: 11px; }.goal-brief { padding: 13px 15px; }.goal-brief header { display: none; }.goal-numbers { margin-top: 0; }.goal-numbers > div { padding: 6px 0; }.goal-deadline { margin-top: 8px; padding: 7px 9px; }.goal-deadline output { font-size: 18px; }
  .hero { border-width: 1px; box-shadow: 6px 7px 0 var(--deep); }.cat-canvas { aspect-ratio: 3 / 2; }.cat-position { bottom: -3%; width: 88%; max-height: 96%; }.issue-stamp { left: 10px; top: 10px; width: 64px; height: 64px; font-size: 10px; }.cat-speech { right: 9px; top: 10px; max-width: 155px; font-size: 9px; }.daily-walk { left: 8px; bottom: 8px; padding: 8px 9px; }.interaction-hint { right: auto; left: 8px; bottom: 50px; max-width: 145px; line-height: 1.45; }.story-caption { display: block; padding: 13px; }.story-caption p { margin-top: 6px; }
  .live-panel { min-height: 0; padding: 27px 19px; }.target-compare span { position: static; display: block; border: 0; border-bottom: 1px solid var(--ink); padding: 6px 7px; font-size: 8px; }.progress-card { margin-top: 24px; }.progress-head b { font-size: 30px; }
  .trend-card { padding: 22px 16px; }.trend-card h2 { font-size: 26px; }.trend-card header > b { font-size: 24px; }
  .calendar-week, .calendar-grid { gap: 4px; padding-inline: 9px; }.calendar-grid button { min-height: 83px; padding: 6px; }.calendar-grid b { margin-top: 18px; font-size: 8px; }.calendar-grid span { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body.paused * { animation-play-state: paused !important; }
