/* Follow-up to the approved monochrome wireframe. */
.mission-title,.mission-card[data-stage] .mission-title{font-size:20px;font-weight:700;line-height:1.4}
.toggle.is-close svg{transform:none}.toggle.is-close{color:#333}
.toggle.is-close{width:32px;height:32px;min-height:32px;border-radius:50%;background:#fff;margin-right:0;position:relative}.toggle.is-close::before{content:'';position:absolute;inset:-6px}
.heading-trigger{cursor:pointer;border-radius:5px}.heading-trigger:focus-visible{outline:2px solid #777;outline-offset:5px}
#mission-details{height:0;overflow:hidden;opacity:0;transition:height .5s cubic-bezier(.22,.61,.36,1),opacity .35s ease}
#mission-details[aria-hidden=false]{opacity:1}.mission-content{display:flow-root}
.star-scene canvas{display:block;width:100%;height:100%}
.records-link{background:rgba(255,255,255,.92);border-radius:24px}
.main-scene{display:flow-root;min-height:max(680px,calc(100svh - 56px - 71px - env(safe-area-inset-bottom,0px)));padding-bottom:0}
.center-content,.is-writing .center-content{position:absolute;top:210px;left:20px;right:20px;min-height:0;padding:0;display:flex;justify-content:flex-start;align-items:center;color:#191919}
.hands-wrap{width:min(73%,255px);margin-bottom:22px}
.center-content .participation{position:absolute;top:max(285px,calc(var(--card-height,100px) - 154px));width:100%}
.mission-card{margin-bottom:320px}
.mission-card[data-stage=feeling],.mission-card[data-stage=photo],.mission-card[data-stage=complete]{margin-bottom:230px}
.photo-step,.completion-step{border-top:1px solid #d5d5d5;margin-top:20px;padding-top:20px}
.photo-step h2{font-size:14px;font-weight:500;text-align:center;margin:2px 0 18px}
.photo-slot{height:200px;position:relative;border-radius:16px;background:#fff;overflow:hidden}
.add-photo{width:100%;height:100%;border:0;background:#fff;color:#333;font-size:30px}
.photo-preview{width:100%;height:100%;object-fit:cover}.remove-photo{position:absolute;top:8px;right:8px;width:36px;height:36px;border:0;border-radius:50%;background:#eee;color:#333;font-size:24px}
.photo-status:empty{display:none}.photo-status,.save-error{font-size:13px;line-height:1.5;margin:10px 0;color:#444}
.public-notice{font-size:12px;line-height:1.5;color:#727272;margin:14px 0}
.finish-button,.again-button{min-height:46px;width:100%;border:0;border-radius:12px;background:#191919;color:#fff;font-size:14px;padding:10px}
.edit-feeling,.view-records{display:block;margin:12px auto 0;min-height:36px;border:0;background:none;color:#666;font-size:12px;text-decoration:underline}
button:disabled{cursor:wait;opacity:.55}
.completion-step{text-align:center}.completion-step h2{font-size:18px;margin:0 0 20px}
.completion-image{position:relative;background:#fff;border-radius:16px;margin:0 10px 26px;aspect-ratio:1}
.completion-image > img{width:100%;height:100%;object-fit:cover;border-radius:16px}.completion-image > img.no-photo{object-fit:contain;padding:28px}
.completion-emotion{position:absolute;left:-10px;bottom:-14px;background:#222;color:white;font-size:12px;padding:12px;border-radius:20px}
.completion-date{font-family:'Instrument Sans',sans-serif;font-size:13px;font-weight:600;margin:0 0 8px}.completion-note{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:170px;overflow:auto;margin:0 0 22px}
.photo-picker{position:fixed;inset:auto 0 0;width:min(100%,430px);max-width:430px;max-height:90svh;margin:0 auto;padding:12px 20px calc(20px + env(safe-area-inset-bottom,0px));border:0;border-radius:22px 22px 0 0;background:#fff;color:#222}
.photo-picker::backdrop{background:#0007}.sheet-handle{width:35px;height:4px;background:#ccc;border-radius:4px;margin:0 auto 20px}.photo-picker h2{font-size:16px;margin:0 0 16px}
.photo-picker button{width:100%;min-height:48px;border:1px solid #ddd;border-radius:10px;background:white;text-align:left;padding:12px;font-size:14px;margin:0 0 9px}.photo-picker button span{float:right}.photo-picker .close-picker{text-align:center;background:#eee;border:0;margin-top:8px}
.records-mission{font-size:14px;line-height:1.5;color:#666;margin:8px 0 24px}.records-status{font-size:14px;line-height:1.6;color:#777;margin:25px 0}.records-status:empty{display:none}.record-date{display:table;margin:20px auto 16px;padding:6px 12px;border-radius:20px;background:#eee;font-size:12px;color:#555}
.records-space{min-height:calc(100svh - 71px - env(safe-area-inset-bottom,0px))}
.emotion-chip{display:table;padding:4px 8px;margin:0 0 8px;background:#eee;color:#555;border-radius:20px;font-size:12px;line-height:1.4}
.record-image-button{flex:none;align-self:flex-start;background:none;border:0;padding:0;min-width:82px;min-height:82px;border-radius:12px;overflow:hidden}.record-image-button img{display:block}
.image-lightbox{border:0;border-radius:18px;background:#fff;padding:12px;width:min(80vw,344px);max-height:90svh;margin:auto;overflow:visible}
.image-lightbox::backdrop{background:#000b}.image-lightbox img{display:block;max-width:100%;width:100%;max-height:calc(90svh - 24px);object-fit:contain;border-radius:10px}
.close-lightbox{position:absolute;top:10px;right:10px;width:40px;height:40px;border:0;border-radius:50%;background:white;box-shadow:0 1px 8px #0002;font-size:27px;color:#222}
.record-item{display:flex;gap:14px;border:1px solid #ddd;border-radius:17px;padding:14px;margin:10px 0;background:#fff}.record-item img{flex:none;width:82px;height:82px;object-fit:cover;border-radius:12px;background:#eee}.record-item>div{flex:1;min-width:0}.record-item h3{margin:0 0 6px;font-size:14px;font-weight:700}.record-item p{font-size:14px;line-height:1.5;margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.record-item time{font-size:12px;color:#888}.records-more,.records-retry{min-height:44px;display:block;margin:20px auto;border:1px solid #ddd;border-radius:12px;background:white;padding:10px 20px;font-size:14px}
@media(max-width:359px){.mission-title,.mission-card[data-stage] .mission-title{font-size:20px}.record-item{gap:10px;padding:12px}.record-item img{width:65px;height:65px}.center-content,.is-writing .center-content{top:250px}}
/* Supplied two-hand artwork, composed as independently animated layers. */
.hands-wrap{display:block;height:260px;padding:0;border:0;background:transparent;overflow:visible;cursor:pointer;touch-action:manipulation}
.hands-wrap .hand{position:absolute;width:76%;height:auto;pointer-events:none;user-select:none;transform-origin:50% 75%}
.hands-wrap .hand-back{left:0;top:0}.hands-wrap .hand-front{right:0;top:22px}
.hands-wrap .clap-spark{position:absolute;pointer-events:none;opacity:0;width:26px;height:26px}
.hands-wrap .spark-one{width:49px;height:49px;right:-12px;top:-25px}.hands-wrap .spark-two{left:-19px;bottom:10px}.hands-wrap .spark-three{right:-22px;top:41px;width:21px;height:21px}
.back-to-top{position:fixed;z-index:9;bottom:calc(87px + env(safe-area-inset-bottom,0px));right:max(18px,calc((100vw - 430px)/2 + 18px));width:46px;height:46px;border:1px solid #e4e4e4;border-radius:50%;background:#fff;color:#222;box-shadow:0 3px 14px #0002;font-size:25px;display:grid;place-items:center}
/* Keep text scrolling and focus feedback inside the clipped expanding card. */
#feeling-note{scrollbar-width:none;-ms-overflow-style:none}
#feeling-note::-webkit-scrollbar{display:none;width:0;height:0}
#feeling-note:focus{outline:0;box-shadow:inset 0 0 0 2px #999}
.emotion-option:nth-child(1){--emotion-fill:#ff5fa2;--emotion-line:#8c2853}
.emotion-option:nth-child(2){--emotion-fill:#ff7a3d;--emotion-line:#873b17}
.emotion-option:nth-child(3){--emotion-fill:#7465f4;--emotion-line:#302575}
.emotion-option:nth-child(4){--emotion-fill:#54d5b1;--emotion-line:#1b6652}
.emotion-option:nth-child(5){--emotion-fill:#a9b9e9;--emotion-line:#435581}
.emotion-option.selected{color:var(--emotion-line)}
.emotion-option.selected .face{background:var(--emotion-fill)}
.record-item{position:relative;padding-bottom:48px;padding-right:38px}
.record-menu{position:absolute;right:4px;top:4px;width:34px;height:38px;background:none;border:0;color:#777;font-size:25px;line-height:1}
.record-like{position:absolute;right:12px;bottom:8px;display:flex;align-items:center;gap:6px;border:0;background:transparent;min-height:34px;min-width:44px;padding:4px 6px;color:#777;font-size:12px}
.record-like .star{width:22px;height:22px;color:#bbb}.record-like[aria-pressed=true]{color:#6354cb}.record-like[aria-pressed=true] .star{color:#7465f4}
.record-item .record-action-status{position:absolute;left:12px;bottom:0;max-width:70%;font-size:11px;color:#777}.record-action-status:empty{display:none}
.request-dialog{width:min(86vw,360px);margin:auto;border:0;border-radius:24px;padding:28px 22px 22px;color:#222;background:white;max-height:85svh;overflow:auto}
.request-dialog::backdrop{background:#0009}.request-close{position:absolute;right:10px;top:8px;width:36px;height:36px;border:0;background:transparent;font-size:25px;color:#666}
.request-dialog h2{font-size:17px;margin:0 24px 12px 0}.request-record{font-size:12px;color:#888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 18px}
.request-choices{display:grid;gap:10px}.request-choices button{text-align:left;border:1px solid #e6e6e6;border-radius:14px;padding:16px 14px;background:#fafafa;color:#222;min-height:80px}.request-choices strong{display:block;font-size:15px;margin-bottom:8px}.request-choices small{display:block;font-size:12px;line-height:1.5;color:#888}
.request-result{text-align:center;padding:20px 0;font-size:16px}.request-result>span{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e0f7ef;color:#1b6652;font-size:28px}
.request-error{font-size:13px;line-height:1.5;color:#666;margin:12px 0 0}.request-error:empty{display:none}.linked-record{margin-bottom:28px}

/* Brand SVG assets stay vector-sharp without additional image libraries. */
.brand-logo{display:block;width:36px;height:36px;object-fit:contain}
.emotion-option .face,.emotion-option.selected .face,.emotion-option.muted .face{background:transparent;border-radius:0}
.emotion-option .face img{display:block;width:100%;height:100%;object-fit:contain;filter:grayscale(1);transition:filter .18s}
.emotion-option.selected .face img{filter:none}
.completion-emotion{width:82px;height:84px;left:-12px;bottom:-18px;background:none;padding:0;border-radius:0}
.completion-emotion .completion-sticker{display:block;width:100%;height:100%;object-fit:contain;border-radius:0}
.bottom-nav a{flex:1;max-width:160px;gap:4px;color:#999}
.bottom-nav a img{object-fit:contain;opacity:.4}
.bottom-nav a[aria-current=page]{color:#222}
.bottom-nav a[aria-current=page] img{opacity:1}
.about-page{min-height:calc(100svh - 56px);padding:24px 20px calc(100px + env(safe-area-inset-bottom,0px))}
.about-block{height:180px;border-radius:24px;background:#f1f1f1;margin-bottom:20px}

/* White surfaces with a one-pixel inner stroke and the supplied soft shadow. */
.mission-card,.about-block,.record-item,.photo-slot,.completion-dialog,.request-dialog,.photo-picker,.image-lightbox{
  background:#fff;border:0;box-shadow:inset 0 0 0 1px #e2e2e2,0 4px 12px rgb(0 0 0 / 6%);
}
.eyebrow{color:#ff55a1}
.certify-button{background:#191919;color:#fff;box-shadow:none}
#feeling-note{box-shadow:inset 0 0 0 1px #cdcdcd}
#feeling-note:focus{box-shadow:inset 0 0 0 2px #999}
.bottom-nav{background:#fff;box-shadow:inset 0 1px #cdcdcd,0 4px 12px rgb(0 0 0 / 6%);border:0}
.completion-dialog{width:min(calc(100vw - 48px),350px);max-width:calc(100vw - 48px);max-height:min(80svh,calc(100svh - 80px));margin:auto;padding:34px 20px 26px;border-radius:24px;overflow:auto;color:#191919}
.completion-dialog::backdrop{background:rgb(0 0 0 / 60%)}
.completion-dialog .completion-step{border:0;margin:0;padding:0}
.completion-dialog .completion-step h2{font-family:'Instrument Sans',sans-serif;color:#ff55a1;font-size:22px;font-weight:700;line-height:1.2;margin:0 0 24px}
.completion-dialog .completion-image{width:70.5%;margin:0 auto 25px;border-radius:16px}
.completion-dialog .completion-emotion{width:43%;height:auto;aspect-ratio:455/462;left:auto;right:-15%;bottom:-10%;padding:0}
.completion-dialog .completion-date{font-size:15px;font-weight:700;margin:0 0 8px}
.completion-dialog .completion-note{font-size:15px;line-height:1.65;max-height:110px;margin:0 0 22px}
.completion-dialog .again-button{height:46px;border-radius:16px;font-weight:600}
.completion-dialog .view-records{font-size:14px;margin-top:7px}
.completion-dialog .completion-step h2{margin:0 28px 10px}
.completion-mission{margin:0 18px 24px;font-size:16px;font-weight:600;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.completion-close{position:absolute;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#292929;cursor:pointer}
.completion-close:focus-visible{outline:2px solid #777;outline-offset:-4px}
.mission-card{padding-block:24px}
.record-item{padding:22px 38px 56px 18px}
.record-menu{top:12px}
.record-like{bottom:14px}
.about-block{padding-block:24px}
.star-scene::after{content:'';position:absolute;inset:auto 0 0;height:160px;pointer-events:none;background:linear-gradient(to bottom,transparent 0%,rgb(255 255 255 / 30%) 35%,rgb(255 255 255 / 78%) 75%,#fff 100%)}

/* About banners use the supplied vector artwork and live, selectable story text. */
.about-page{padding:22px 14px calc(100px + env(safe-area-inset-bottom,0px))}
.about-index{display:grid;gap:22px}
.about-banner{display:block;width:100%;padding:0;border:0;border-radius:22px;overflow:hidden;background:transparent;text-decoration:none}
.about-banner img,.about-hero{display:block;width:100%;height:auto}
.about-banner[aria-disabled=true]{cursor:default}
.about-banner:focus-visible,.about-back:focus-visible,.instagram-button:focus-visible{outline:2px solid #ff55a1;outline-offset:4px}
.about-hero{border-radius:22px}
.about-back{display:inline-flex;align-items:center;min-height:44px;margin:-10px 0 10px;color:#666;text-decoration:none;font-size:14px}
.about-copy{padding:8px 7px 0}
.about-copy h1,.about-copy h2{font-size:20px;line-height:1.5;font-weight:700;letter-spacing:-.04em;word-break:keep-all;margin:22px 0 14px}
.about-copy h2{margin-top:32px}
.about-copy p{font-size:14px;line-height:1.85;letter-spacing:-.02em;color:#e8388d;margin:0 0 22px;word-break:normal;overflow-wrap:anywhere}
.about-copy strong{font-weight:700}
.instagram-button{width:100%;min-height:50px;padding:14px 18px;border:0;border-radius:14px;background:#191919;color:#fff;font-size:15px;font-weight:600;display:flex;justify-content:space-between;align-items:center;cursor:default;margin:22px 0 54px}
