:root {
  color-scheme: light;
  --ink:#253d32; --muted:#536459; --mint:#bce7ce; --deep:#195845;
  --paper:#f8f6e9; --white:#fffdf6; --pink:#ffc4b6; --sun:#ffdf75;
  --line:#e3e4d3; --shadow:0 4px 0 #263e3210;
  font-family: "Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;
  color:var(--ink); background:var(--paper); font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0; min-height:100svh}
[hidden] {display:none!important}
button,input,select {font:inherit; color:inherit}
button {cursor:pointer; touch-action:manipulation}
button:disabled {cursor:default; opacity:.6}
button:not(:disabled):active {transform:translateY(2px)}
a {color:inherit}
:focus-visible {outline:3px solid #bf5b50; outline-offset:3px}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(1.85rem,5vw,3.2rem); letter-spacing:.01em; line-height:1.28}
h2 {font-size:1.28rem; letter-spacing:.02em}
h3 {font-size:1rem}
small,.muted {color:var(--muted)}
small {font-size:.83rem}
.frame {width:min(100% - 32px,1040px); margin-inline:auto}
.top {background:var(--white); border-bottom:1px solid var(--line)}
.top-inner {min-height:66px; padding-top:env(safe-area-inset-top); display:flex; align-items:center; justify-content:space-between; gap:.6rem}
.brand {display:inline-flex; align-items:center; gap:.54rem; text-decoration:none; font-weight:900; white-space:nowrap; font-size:clamp(.95rem,3.8vw,1.16rem)}
.brand-icon {display:grid; place-items:center; width:36px; height:36px; border-radius:13px; background:var(--sun); color:var(--deep); font-size:1.45rem; transform:rotate(-8deg)}
.brand-accent {color:var(--deep)}
#app {padding-block:24px calc(95px + env(safe-area-inset-bottom))}
.loading {margin:35px 0;text-align:center}
.stack {display:grid; gap:18px}
.gap {display:grid; gap:.65rem}
.row {display:flex; align-items:center; gap:.6rem; flex-wrap:wrap}
.between {display:flex; justify-content:space-between; align-items:center; gap:.75rem}
.card {border:1px solid var(--line); background:var(--white); border-radius:24px; padding:clamp(15px,3vw,24px); box-shadow:var(--shadow)}
.hero {position:relative; isolation:isolate; overflow:hidden; display:grid; align-items:center; grid-template-columns:minmax(0,1fr) minmax(75px,.48fr); gap:10px; min-height:195px; padding:clamp(19px,5vw,46px); background:var(--mint); border:1px solid #a7d6bb; border-radius:31px; box-shadow:var(--shadow)}
.hero:before,.hero:after {content:""; position:absolute; z-index:-1; border:1px solid #ffffff8c; border-radius:50%; width:250px; height:250px; right:-68px; bottom:-156px; box-shadow:0 0 0 28px #ffffff28,0 0 0 55px #fff3}
.hero:after {width:86px;height:86px;right:30%; bottom:auto; top:-62px}
.hero p {margin-top:.62rem; font-size:.95rem; line-height:1.7}
.hero-art {position:relative; display:grid; place-items:center; min-height:95px; font-size:clamp(3.3rem,10vw,6.3rem); transform:rotate(-9deg)}
.hero-art .spark {position:absolute; color:var(--deep); font-size:.38em; right:11%; top:2%; animation:shimmer 3s infinite}
.hero-art .spark.two {font-size:.25em; right:87%; top:68%; animation-delay:.5s}
.hero-art .bubble {position:absolute; border:2px solid #ffffffb5; border-radius:50%; width:.34em; height:.34em; bottom:2%; right:8%; box-shadow:inset 3px 2px #fff7}
@keyframes shimmer {50% {transform:scale(.7) rotate(18deg); opacity:.55}}
@keyframes pop {from {opacity:0;transform:translateY(8px) scale(.98)} to {opacity:1;transform:translateY(0) scale(1)}}
.kicker {display:inline-block; font-size:.82rem; font-weight:800; color:var(--deep); margin-bottom:.5rem}
.rail {display:grid; gap:16px; grid-template-columns:repeat(2,minmax(0,1fr))}
.two-col {display:grid; gap:18px}
.stat {min-width:0; background:#fff5c9}
.stat.coral {background:#ffdfd5}
.stat h2 {font-size:clamp(.92rem,3.8vw,1.28rem)}
.stat strong {font-size:clamp(1.5rem,6vw,2.3rem); font-weight:900}
progress {display:block; width:100%; height:12px; border:0; border-radius:999px; overflow:hidden; accent-color:var(--deep); background:#dde8d8}
progress::-webkit-progress-bar {background:#dde8d8}
progress::-webkit-progress-value {background:var(--deep);border-radius:999px;transition:width .25s}
progress::-moz-progress-bar {background:var(--deep);border-radius:999px}
.btn {min-height:44px; padding:.6rem .95rem; border:1px solid #0000; border-radius:14px; background:var(--deep); color:white; font-weight:800; text-decoration:none; display:inline-flex; justify-content:center; align-items:center; line-height:1.25; transition:transform .15s,background .15s}
.btn.soft {background:#e8f4e9;color:var(--deep);border-color:#d8e9d8}
.btn.yellow {background:var(--sun);color:var(--ink);border-color:#ead06d}
.btn.pink {background:var(--pink);color:var(--ink);border-color:#f2ad9f}
.btn.plain {background:transparent;color:var(--deep);border-color:var(--line)}
.btn.wide {width:100%}
.tag {display:inline-flex; align-items:center; gap:.2rem; background:#e7f3e6; color:var(--deep); padding:.23rem .57rem; border-radius:999px; font-weight:750; font-size:.82rem}
.tag.coral {background:#ffdfd5;color:#873b32}
.tag.yellow {background:#fff0ac;color:#58430b}
.daystrip {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.day {background:var(--white);border:1px solid var(--line); border-radius:14px; min-height:60px; display:grid; place-content:center; gap:2px; text-align:center; font-size:.87rem}
.day strong {font-size:1.05rem}
.day[aria-pressed=true] {background:var(--deep);color:#fff;border-color:var(--deep)}
.day[aria-pressed=true] small {color:#edfff1}
.list {list-style:none; margin:0; padding:0}
.item {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:7px; padding:12px 0; border-bottom:1px solid var(--line)}
.item:last-child {border-bottom:0}
.item h3,.person strong {overflow-wrap:anywhere}
.item .meta {margin-top:.28rem; display:flex; align-items:center; gap:.35rem .55rem; flex-wrap:wrap}
.item .extra {grid-column:1/-1; display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-top:.55rem}
.check {width:44px; height:44px; padding:0; border-radius:15px; border:1px solid #accebb; background:#e7f5e8; color:var(--deep); font-size:1.14rem; font-weight:800}
.check.done {background:var(--mint); opacity:1}
.reaction {min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:13px; background:var(--white)}
.reaction[aria-pressed=true] {background:var(--pink); border-color:#eba499}
details summary {cursor:pointer; font-weight:800; min-height:34px; padding-block:4px}
.person {display:flex;align-items:center;gap:.7rem; min-width:0}
.avatar {width:42px;height:42px; flex:none; display:grid;place-items:center; border-radius:14px;background:var(--mint);font-size:1.25rem}
.avatar.pink {background:var(--pink)}
.quest {display:grid; grid-template-columns:auto minmax(0,1fr); gap:.65rem; align-items:start}
.quest .avatar {background:#fff0ad}
.quest .btn {justify-self:start}
.login {max-width:530px; margin-inline:auto}
label {font-weight:750; display:grid; gap:.3rem}
input,select {width:100%; min-width:0; min-height:44px; border-radius:13px; border:1px solid #c8d1c2; background:white; padding:.55rem .7rem}
select {cursor:pointer}
.item select {min-height:44px;width:auto;max-width:100%}
form {display:grid; gap:13px}
.form-msg {color:#9a4236; font-size:.9rem; line-height:1.55}
dialog {border:1px solid var(--line); max-width:min(480px,calc(100% - 24px)); width:100%; max-height:calc(100svh - 24px); overflow:auto; border-radius:26px; background:var(--white); color:var(--ink); padding:22px}
dialog::backdrop {background:#172e25a6}
dialog[open] {animation:pop .2s ease-out}
#tabs {position:fixed; z-index:2; bottom:0; inset-inline:0; display:flex; justify-content:center; gap:5px; border-top:1px solid var(--line); background:#fffdf6; padding:7px 8px calc(7px + env(safe-area-inset-bottom))}
#tabs button {border:0;background:transparent;border-radius:13px;min-width:0;width:min(24%,132px);min-height:51px;padding:.3rem .1rem;display:grid;justify-items:center;align-content:center;gap:3px;font-size:.75rem;font-weight:800}
#tabs button span {font-size:1.15rem;line-height:1}
#tabs button[aria-current=page] {background:#dcf1df;color:var(--deep)}
#toast {position:fixed;z-index:3;bottom:calc(80px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);width:max-content;background:var(--deep);color:#fff;border-radius:16px;padding:11px 16px;font-weight:750;font-size:.9rem;box-shadow:var(--shadow)}
#toast:empty {display:none}
#toast.error {background:#843c32}
.code {font:900 clamp(1rem,5vw,1.55rem) ui-monospace,monospace;letter-spacing:.04em;background:#fff2bd;padding:12px 8px;border-radius:12px;text-align:center;user-select:all}
.empty {padding:12px 0;color:var(--muted)}
@media(min-width:720px) {
  #app {padding-top:34px}
  .two-col {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); align-items:start}
  .hero {min-height:225px}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important; transition:none!important}
}
