:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#173c3a;background:#f7f8f3;font-synthesis:none;font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default}a{color:#23675e;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #81b9a7;outline-offset:3px}h1,h2,h3,p{margin-top:0}
.shell{max-width:920px;margin:auto;padding:24px 24px 116px}.profile-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;margin-bottom:24px}.profile-person{display:flex;align-items:center;gap:16px;min-width:0}.avatar{width:68px;height:68px;flex:0 0 68px;border:1px solid #d5e2d0;background:#edf3e7;border-radius:50%;display:grid;place-items:center;overflow:hidden;padding:0;font-size:18px;font-weight:600;color:#28604e}.avatar img{width:42px;height:42px}.profile-copy{min-width:0}.profile-copy>strong{font-size:25px;font-weight:650;display:block;overflow-wrap:anywhere;line-height:1.3}.profile-stats{display:flex;gap:28px;flex-shrink:0;text-align:center}.profile-stats strong{display:block;font-size:29px;font-weight:650;line-height:1.4}.profile-stats span{font-size:12px;color:#73866f}.library{display:grid;grid-template-columns:116px minmax(0,1fr);gap:24px;align-items:start}.categories{display:flex;flex-direction:column;gap:5px;position:sticky;top:16px;max-height:calc(100dvh - 112px);overflow:auto;padding-bottom:4px}.category-button{min-height:52px;border:0;border-radius:12px;padding:12px 10px;background:transparent;color:#718178;text-align:left;line-height:1.5;font-size:14px;flex-shrink:0}.category-button.active{background:#e2ece1;color:#215f4e;font-weight:650}.feedback{font-size:14px;color:#9b453b;line-height:1.7;margin-bottom:16px;overflow-wrap:anywhere}.feedback:empty{margin:0}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 14px}.achievement-card{min-width:0}.achievement-summary{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;height:100%;border:0;background:transparent;padding:3px;border-radius:14px}.sticker-wrap{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#fff;border:1px solid #e5eadd}.sticker-wrap img{width:92%;height:92%;object-fit:contain;mix-blend-mode:multiply}.sticker-placeholder{font-size:44px;color:#88a094}.card-name{font-size:14px;line-height:1.5;overflow-wrap:anywhere;text-align:center}.stars{display:inline-block;font-size:14px;letter-spacing:2px;color:#ae9355;white-space:nowrap}.earned-tag{display:inline-block;font-size:12px;color:#35765a;background:#eaf3e4;padding:4px 7px;border-radius:6px}.modal-open{overflow:hidden}#achievement-dialog{width:calc(100% - 32px);max-width:640px;max-height:calc(100dvh - 32px);border:1px solid #dbe3d7;border-radius:22px;background:#fffef9;color:inherit;padding:0 26px 26px;overscroll-behavior:contain}#achievement-dialog::backdrop{background:#122e2bb3;backdrop-filter:blur(4px)}.dialog-toolbar{display:flex;justify-content:flex-end;position:sticky;top:0;z-index:1;background:#fffef9;padding-top:10px;margin-bottom:4px}.dialog-toolbar button{width:44px;height:44px;border:0;border-radius:50%;background:#f0f3ea;font-size:27px;color:#617967}.detail-header{display:flex;gap:20px;align-items:center;margin:0 0 24px}.detail-sticker{width:104px;height:104px;flex:0 0 104px;display:grid;place-items:center}.detail-sticker img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.detail-copy{min-width:0}.detail-copy h2{font-size:24px;line-height:1.35;margin:0 0 9px;overflow-wrap:anywhere}.detail-description{font-size:14px;color:#6b7c6b;line-height:1.7;white-space:pre-line;margin:0 0 8px;overflow-wrap:anywhere}
.tasks-section{border-top:1px solid #e2e8dc;padding-top:22px}.tasks-section h3{font-size:16px;margin-bottom:13px}.task-list{display:grid;gap:9px}.task-row{display:flex;align-items:start;gap:11px;border:1px solid #e1e8dc;background:#fbfcf8;padding:13px;border-radius:11px;line-height:1.7;font-size:15px}.task-row input{accent-color:#4a8067;min-width:19px;width:19px;height:19px;margin-top:4px}.task-row.done{background:#edf4e7;color:#6a8070}.tasks-section .feedback:not(:empty){margin-top:12px}.muted{color:#73866f;font-size:14px;line-height:1.7}.works{padding:18px 0;border-bottom:1px solid #e2e8dc}.works>summary{cursor:pointer;font-size:14px;color:#637d63;line-height:1.8}.challenge-action{padding-top:18px}.challenge-action .muted{margin-bottom:12px}
.button{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:11px;min-height:46px;padding:12px 20px;background:#39735f;color:#fff;font-weight:550;font-size:15px}.challenge-action .button{width:100%;margin-top:10px}.button:disabled{background:#dce5d8;color:#85967f}.button.secondary{border:1px solid #d6e1d0;background:#fff;color:#50705a}.button.secondary:disabled{color:#96a292}.file-hint{font-size:12px;color:#7c8e72;line-height:1.8;margin:8px 0}.upload-progress{margin:18px 0}progress{display:block;width:100%;height:9px;border:0;border-radius:6px;overflow:hidden;accent-color:#39735f;background:#e5eddf}progress::-webkit-progress-bar{background:#e5eddf;border-radius:6px}progress::-webkit-progress-value{background:#39735f;border-radius:6px}.progress-text{font-size:13px;line-height:1.8;color:#4d7155;margin:8px 0}.previews{display:flex;gap:8px;flex-wrap:wrap}.preview-item{width:calc(33.333% - 6px);min-width:80px}.previews img,.previews video{display:block;width:100%;height:110px;object-fit:cover;border-radius:8px;background:#e9eee4}.preview-caption{display:block;font-size:11px;color:#7c8e72;margin-top:4px}.preview-file{display:flex;align-items:center;background:#edf3e7;min-height:90px;padding:10px;font-size:12px;overflow-wrap:anywhere}
.challenge{background:#fbfcf8;border:1px solid #e0e7dc;border-radius:12px;padding:14px;margin:14px 0}.challenge-head{display:flex;justify-content:space-between;align-items:start;gap:10px;font-size:14px;margin-bottom:12px}.challenge-date{font-size:11px;color:#8b9b84;display:block;margin-top:5px}.challenge-media{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 14px}.challenge-media img{max-width:100%;width:calc(33.333% - 5px);height:140px;object-fit:contain;border-radius:8px;background:#f1f5ec}.challenge-media video{width:100%;max-height:300px;border-radius:10px;background:#192a27}.like-button{border:1px solid #dae3d3;border-radius:20px;padding:8px 15px;background:#f8faf5;font-size:13px}.like-button.liked{color:#477248;background:#edf4e6;border-color:#a8c191}.like-button:disabled{color:#85937e}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fffffff5;border-top:1px solid #dfe6dd;display:flex;justify-content:center;gap:clamp(24px,8vw,65px);padding:10px 16px calc(10px + env(safe-area-inset-bottom));z-index:3;backdrop-filter:blur(14px)}.bottom-nav button,.bottom-nav>a{border:0;background:transparent;min-width:58px;display:flex;flex-direction:column;gap:3px;align-items:center;font-size:12px;padding:4px 8px;color:#b7c1ba}.bottom-nav button span,.bottom-nav>a span{font-size:25px;line-height:29px}.bottom-nav .active{color:#366b5e}.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.empty{text-align:center;color:#7a8c73;padding:50px 16px;line-height:1.8}
@media(max-width:760px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.profile-stats{gap:22px}}
@media(max-width:500px){.shell{padding:14px 14px 106px}.profile-bar{padding:12px 0;margin-bottom:20px;gap:10px}.profile-person{gap:10px;flex:1}.avatar{width:48px;height:48px;flex-basis:48px;font-size:15px}.avatar img{width:32px;height:32px}.profile-copy>strong{font-size:18px}.profile-stats{gap:16px}.profile-stats strong{font-size:23px}.profile-stats span{font-size:10px}.library{grid-template-columns:76px minmax(0,1fr);gap:12px}.categories{top:10px}.category-button{font-size:12px;padding:12px 9px;min-height:48px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}.card-name{font-size:12px}.achievement-summary{padding:1px;gap:7px}#achievement-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:0 16px 20px;border-radius:18px}.detail-header{gap:14px;margin-bottom:20px}.detail-sticker{width:82px;height:82px;flex-basis:82px}.detail-copy h2{font-size:20px}.detail-description{font-size:13px}.task-row{padding:11px;font-size:14px}.challenge-media img{height:100px}.bottom-nav{gap:calc((100vw - 280px)/4)}}
/* The plaza stays behind the library and comments sheets. */
.plaza-page{background:#10221f;color:#173c3a;overflow:hidden}.plaza-shell{max-width:760px;margin:auto;padding:0 24px;height:calc(100dvh - 80px - env(safe-area-inset-bottom));display:flex;flex-direction:column;color:#f4f5ed}.plaza-toolbar{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:16px}.plaza-toolbar button{border:0;background:none;color:#a0b1a7;font-size:15px;min-height:44px;padding:8px}.plaza-toolbar .open-library{color:#e4e9da;border:1px solid #577065;border-radius:24px;padding:8px 18px}.plaza-shell>.feedback{color:#f5beb2;margin:0;font-size:13px;flex-shrink:0}.feed-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#c3cfc3;text-align:center}.feed-empty .button{background:#e6eedf;color:#214c40}.feed-post{display:flex;flex-direction:column;flex:1;min-height:0;padding-bottom:12px}.player{position:relative;flex:1;min-height:140px;background:#071511;overflow:hidden}.media-stage{position:absolute;inset:0;display:grid;place-items:center;touch-action:pan-x}.media-stage>img,.media-stage>video{width:100%;height:100%;object-fit:contain;min-height:0;min-width:0}.player-tools{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:center;gap:8px;pointer-events:none}.player-tools>span{margin-right:auto;color:#fff;font-size:12px;text-shadow:0 1px 4px #000}.player-tools button{pointer-events:auto;color:#fff;background:#13211bbf;border:1px solid #d4e2d733;border-radius:22px;min-height:36px;padding:6px 12px;font-size:12px}.playback-bar{display:flex;gap:12px;align-items:center;height:30px;flex-shrink:0}.playback-bar input{flex:1;min-width:0;height:24px;margin:0;accent-color:#b5d3af;cursor:pointer}.playback-bar span{font-size:10px;color:#a9bbae;font-variant-numeric:tabular-nums}.post-copy{padding:8px 0 0;flex-shrink:0}.post-author{display:flex;align-items:center;gap:10px;font-size:15px;overflow-wrap:anywhere}.post-author img{width:34px;height:34px;border-radius:50%;background:#fff4df;padding:5px}.post-copy h1{font-size:21px;font-weight:600;line-height:1.4;margin:12px 0 5px}.post-copy p{font-size:14px;color:#bacbbe;line-height:1.7;margin:0;white-space:pre-line;max-height:4.8em;overflow:auto;overflow-wrap:anywhere}.post-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;flex-shrink:0}.post-paging{display:flex;align-items:center;gap:8px;color:#94ab9d;font-size:11px;white-space:nowrap}.post-actions{display:flex;gap:18px;align-items:center}.post-actions button{display:flex;align-items:center;gap:6px;min-height:44px;min-width:44px;background:transparent;border:0;color:#cdd9ce;padding:4px 0;font-size:12px}.post-actions svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.post-actions .selected{color:#e3b581}.post-actions .selected svg{fill:currentColor}.post-actions .recognize.selected{color:#ec9b90}.post-actions button:disabled{opacity:.45}.plaza-page>.bottom-nav{background:#10221ff5;border-color:#385145}.plaza-page>.bottom-nav .active{color:#d4e5cd}.plaza-page>.bottom-nav button:disabled{color:#62786a}
.library-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:940px;height:94dvh;max-height:94dvh;margin:0 auto;border:0;border-radius:24px 24px 0 0;padding:0;background:#f7f8f3;color:#173c3a;overflow:hidden;animation:library-enter .22s ease-out}.library-dialog::backdrop,#comments-dialog::backdrop{background:#0008}.library-dialog.closing{animation:library-exit .22s ease-in forwards}@keyframes library-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes library-exit{to{transform:translateY(100%)}}.sheet-toolbar{height:44px;display:flex;align-items:center;justify-content:flex-end;padding:0 14px;position:relative}.sheet-handle{position:absolute;left:calc(50% - 22px);top:12px;width:44px;height:4px;border-radius:4px;background:#c8d4c5}.sheet-toolbar button{width:40px;height:40px;background:none;border:0;font-size:27px;color:#5a7564}.library-scroll{height:calc(100% - 44px);overflow:auto;overscroll-behavior:contain}.library-dialog .shell{padding:0 24px 36px}.library-dialog .profile-bar{border-bottom:1px solid #d6e0d1;padding-bottom:20px;margin-bottom:22px}.library-dialog .library{grid-template-columns:64px minmax(0,1fr);gap:22px}.library-dialog .category-button{width:64px;height:64px;min-height:0;flex:0 0 64px;padding:6px;text-align:center;font-size:14px}.library-dialog .categories{gap:8px;top:10px;max-height:calc(94dvh - 64px)}.library-dialog .gallery{grid-template-columns:repeat(auto-fill,minmax(var(--sticker-size),1fr));justify-content:center;gap:24px 20px}.library-dialog .achievement-summary{padding:0;gap:10px}.library-dialog .sticker-wrap{width:var(--sticker-size);height:var(--sticker-size)}.library-dialog .card-name{font-size:14px}
#comments-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:680px;max-height:78dvh;margin:0 auto;border:0;border-radius:22px 22px 0 0;background:#f7f8f3;color:#173c3a;padding:18px 22px calc(18px + env(safe-area-inset-bottom));overflow:hidden}#comments-dialog[open]{display:flex;flex-direction:column}.comments-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.comments-header h2{font-size:18px;margin:0}.comments-header button{border:0;background:none;width:40px;height:40px;font-size:26px}.comments-scroll{overflow:auto;min-height:80px;max-height:45dvh;overscroll-behavior:contain}.comment{padding:14px 0;border-bottom:1px solid #dce4d8}.comment-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.comment-head strong{font-size:14px;overflow-wrap:anywhere;min-width:0}.comment-head time{font-size:10px;color:#7c8e7b;white-space:nowrap}.comment p{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}#comment-form{display:flex;gap:10px;margin-top:18px;align-items:flex-end}#comment-text{flex:1;min-width:0;resize:vertical;max-height:130px;border:1px solid #d6e1d0;border-radius:12px;padding:10px;font:inherit;font-size:14px;background:#fff;color:inherit}#comment-error:not(:empty){margin-top:10px;margin-bottom:0}
@media(max-width:500px){.plaza-shell{padding:0 14px;height:calc(100dvh - 78px - env(safe-area-inset-bottom))}.plaza-toolbar{height:56px}.plaza-toolbar button{font-size:14px}.post-actions{gap:12px}.post-actions button{gap:4px}.post-actions svg{width:25px;height:25px}.post-copy h1{font-size:19px;margin-top:9px}.post-copy p{font-size:13px}.post-bottom{gap:6px;padding-top:8px}.library-dialog .shell{padding:0 14px 32px}.library-dialog .library{gap:12px;grid-template-columns:56px minmax(0,1fr)}.library-dialog .category-button{width:56px;height:56px;flex-basis:56px;font-size:13px}.library-dialog .gallery{gap:22px 10px}.library-dialog .profile-bar{padding-top:4px;padding-bottom:18px}.library-dialog .card-name{font-size:14px}#comments-dialog{padding-left:16px;padding-right:16px}.comment-head{flex-wrap:wrap;gap:4px 10px}}
@media(prefers-reduced-motion:reduce){.library-dialog{animation:none}.library-dialog.closing{animation:none;opacity:0}}
.detail-copy{flex:1}.rank-badge{width:56px;height:56px;flex:0 0 56px;align-self:flex-start;margin-top:8px}.rank-badge svg{display:block;width:100%;height:100%;fill:#efd69b;stroke:#bc944a;stroke-width:1.5}.rank-badge text{font-size:23px;font-weight:750;fill:#74551c;stroke:none}.works{border-top:1px solid #e2e8dc}.works>summary,.my-challenge>summary{cursor:pointer;font-size:16px;font-weight:600;line-height:1.8;color:#365e4c}.my-challenge{padding-top:18px}.challenge-history{padding:8px 0 0}.activity-entry{font-size:13px;line-height:1.8;color:#73866f;overflow-wrap:anywhere;margin:10px 0}.my-challenge .challenge-action{padding-top:8px}@media(max-width:500px){.rank-badge{width:44px;height:44px;flex-basis:44px}.detail-header{gap:10px}.detail-sticker{width:66px;height:66px;flex-basis:66px}}

.playback-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;padding:16px;border-radius:50%;border:1px solid #ffffff66;background:#10221f70;color:#fff;backdrop-filter:blur(2px)}.playback-center svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.playback-center.is-paused svg{fill:currentColor;stroke-width:1.5}@media(max-width:500px){.playback-center{width:56px;height:56px;padding:14px}}

.personal-page{background:#f7f8f3;color:#173c3a}.personal-shell{max-width:640px;margin:auto;padding:32px 24px calc(116px + env(safe-area-inset-bottom))}.personal-shell h1{font-size:24px;font-weight:650;margin-bottom:34px}.personal-identity{text-align:center;padding:16px 0 24px}.personal-avatar{width:80px;height:80px;padding:14px;border-radius:50%;background:#edf3e7;border:1px solid #d5e2d0}.personal-identity h2{font-size:25px;line-height:1.4;overflow-wrap:anywhere;margin:18px 0 8px}.personal-identity p{margin:0}.personal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;border-top:1px solid #d6e0d1;border-bottom:1px solid #d6e0d1;padding:26px 0;gap:12px}.personal-stats strong{display:block;font-size:26px;font-weight:650;line-height:1.5}.personal-stats span{display:block;font-size:12px;color:#73866f;margin-top:4px}.personal-actions{display:grid;gap:12px;margin-top:32px}.personal-actions .button{width:100%}.personal-shell>.feedback:not(:empty){margin-top:20px}@media(max-width:500px){.personal-shell{padding:24px 20px calc(116px + env(safe-area-inset-bottom))}.personal-stats strong{font-size:23px}}
/* Full-screen media stays behind the floating controls and navigation. */
.plaza-page .plaza-shell{position:relative;pointer-events:none}.plaza-page .plaza-toolbar{position:relative;z-index:2;pointer-events:auto}.plaza-page .feed-post{justify-content:flex-end}.plaza-page .player{position:fixed;inset:0;min-height:0;z-index:0;pointer-events:auto}.plaza-page .media-stage{touch-action:pinch-zoom}.plaza-page .media-stage>img,.plaza-page .media-stage>video{object-fit:cover}.plaza-page .player::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#05100e85 0%,#05100e08 25%,#05100e05 43%,#05100eb8 76%,#05100ef5 100%);pointer-events:none}.plaza-page .playback-center{z-index:1}.plaza-page .player-tools{z-index:1;top:76px;bottom:auto;max-width:712px;left:24px;right:24px;margin:auto}.plaza-page .playback-bar,.plaza-page .post-copy,.plaza-page .post-bottom{position:relative;z-index:1;pointer-events:auto}.plaza-page .post-copy,.plaza-page .post-bottom{filter:drop-shadow(0 1px 3px #0008)}.plaza-page .plaza-toolbar .open-library{background:#10221f80;backdrop-filter:blur(5px);border-color:#ffffff55}.plaza-page .feed-empty,.plaza-page .plaza-shell>.feedback{position:relative;z-index:1;pointer-events:auto}.plaza-page>.bottom-nav{background:#10221f66;border-color:#ffffff26}.plaza-page>.bottom-nav>a{color:#becdc3}@media(max-width:500px){.plaza-page .player-tools{top:66px;left:14px;right:14px}}

/* Keep a generous seek target around the thin visible progress track. */
.playback-bar input{appearance:none;-webkit-appearance:none;background:transparent}.playback-bar input::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:linear-gradient(to right,#d4e5cd var(--played,0%),#ffffff50 var(--played,0%))}.playback-bar input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:6px;height:6px;margin-top:-2px;border-radius:50%;border:0;background:#d4e5cd}.playback-bar input::-moz-range-track{height:2px;border-radius:2px;background:#ffffff50}.playback-bar input::-moz-range-progress{height:2px;background:#d4e5cd}.playback-bar input::-moz-range-thumb{width:6px;height:6px;border:0;border-radius:50%;background:#d4e5cd}.playback-bar input:focus-visible{outline:2px solid #d4e5cd;outline-offset:2px}

/* CSS pixels scale with the viewport; physical thumb size is only approximate. */
:root{--touch-target:clamp(48px,12.5vw,64px);--sticker-size:clamp(64px,20vw,88px);--bottom-nav-height:calc(max(58px,var(--touch-target)) + 21px + env(safe-area-inset-bottom))}
.plaza-page button,.personal-page button,.button{min-width:var(--touch-target);min-height:var(--touch-target)}
.bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,110px));gap:0}
.bottom-nav button,.bottom-nav>a{min-width:var(--touch-target);min-height:max(58px,var(--touch-target));justify-content:center}
.bottom-nav .coming-soon-link{color:#7b8981}.plaza-page>.bottom-nav .coming-soon-link{color:#87998d}
.plaza-page .plaza-shell{height:calc(100dvh - var(--bottom-nav-height))}
.plaza-toolbar{height:max(56px,calc(var(--touch-target) + 8px))}
.plaza-page .player-tools{top:calc(max(56px,var(--touch-target) + 8px) + 10px)}
.playback-bar{height:var(--touch-target)}.playback-bar input{height:var(--touch-target)}
.sheet-toolbar{height:var(--touch-target)}.library-scroll{height:calc(100% - var(--touch-target))}
.library-dialog .library{grid-template-columns:var(--touch-target) minmax(0,1fr);gap:clamp(12px,3vw,22px)}
.library-dialog .category-button{width:var(--touch-target);height:var(--touch-target);min-height:var(--touch-target);flex-basis:var(--touch-target)}
.library-dialog .gallery{gap:18px 10px;align-items:start}
.library-dialog .achievement-summary{min-width:var(--touch-target);min-height:var(--touch-target);gap:8px}
.library-dialog .card-name{font-size:13px}.library-dialog .categories{max-height:calc(94dvh - var(--touch-target) - 20px)}
.works>summary,.my-challenge>summary{min-height:var(--touch-target);padding-block:calc((var(--touch-target) - 1.8em)/2)}
.coming-soon-dialog{width:calc(100% - 40px);max-width:360px;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #dbe3d7;border-radius:24px;padding:24px;background:#f7f8f3;color:#173c3a;text-align:center}
.coming-soon-dialog::backdrop{background:#10221fb3;backdrop-filter:blur(4px)}
.coming-soon-dialog img{display:block;width:100%;height:auto;max-height:45dvh;object-fit:contain;border-radius:16px}
.coming-soon-dialog h2{font-size:20px;line-height:1.5;margin:20px 0}.coming-soon-dialog .button{width:100%}
@media(max-width:500px){.avatar{width:var(--touch-target);height:var(--touch-target);flex-basis:var(--touch-target)}.library-dialog .card-name{font-size:12px}.coming-soon-dialog{padding:20px}}

/* Independent difficulty and source-category filters. */
.difficulty-filters{display:grid;grid-template-columns:repeat(5,minmax(var(--touch-target),1fr));gap:6px;margin-bottom:18px}.difficulty-button{border:1px solid #dbe4d6;border-radius:12px;background:transparent;font-size:13px;padding:6px}.difficulty-button.active{background:#39735f;color:#fff;border-color:#39735f}
.library-dialog .category-button{font-size:clamp(10px,2.6vw,12px);line-height:1.2;padding:3px;overflow-wrap:anywhere}.gallery>.empty{grid-column:1/-1}
.personal-shell>.profile-bar{border-bottom:1px solid #d6e0d1;padding-top:0;padding-bottom:22px}.personal-shell .profile-copy>.muted{font-size:12px;display:block;margin-top:5px}.personal-shell .profile-copy{min-width:0}.personal-shell .profile-person{min-width:0}
.collection-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.collection-tile{min-width:0!important;display:flex;flex-direction:column;align-items:flex-start;gap:14px;border:1px solid #dae3d5;border-radius:16px;background:#fffef9;padding:16px 12px;text-align:left}.collection-title{font-size:14px;font-weight:600}.collection-preview{display:flex;align-items:center;min-height:40px;width:100%}.collection-preview .sticker-wrap{width:clamp(28px,8vw,40px);height:clamp(28px,8vw,40px);flex-shrink:0;border:2px solid #fffef9}.collection-preview .sticker-wrap+.sticker-wrap{margin-left:-12px}.collection-extra{font-size:12px;margin-left:4px;white-space:nowrap}.collection-total{font-size:11px;line-height:1.6;color:#73866f}.sticker-wrap.pending{filter:grayscale(1);opacity:.55}.collection-tile:disabled{opacity:.65}.personal-actions #name-rule{margin:-4px 0 4px;font-size:12px}
#collection-dialog[open]{display:flex;flex-direction:column}#collection-dialog>.sheet-toolbar{flex-shrink:0}#collection-title{font-size:20px;margin:8px 20px 24px}.collection-scroll{padding:0 20px 32px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}.owned-item{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.owned-status{font-size:11px;color:#73866f}
.rename-dialog{width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 24px);overflow:auto;background:#fffef9;color:#173c3a;border:1px solid #dbe3d7;border-radius:22px;padding:0 22px 24px}.rename-dialog::backdrop{background:#10221fb3;backdrop-filter:blur(4px)}.rename-dialog h2{font-size:22px;margin-bottom:16px}.rename-dialog form{display:grid;gap:12px}.rename-dialog input{width:100%;min-width:0;min-height:var(--touch-target);padding:10px 12px;border:1px solid #cddbc8;border-radius:10px;background:#fff;font:inherit}.rename-dialog form p{font-size:12px;margin:0 0 8px}.rename-dialog .feedback:not(:empty){margin-top:14px;margin-bottom:0}
@media(max-width:500px){.personal-shell{padding-left:14px;padding-right:14px}.personal-shell>.profile-bar{padding-top:0;gap:8px}.collection-tile{padding:14px 10px}.collection-title{font-size:13px}.collection-tiles{gap:10px}}

/* Touch scrolling must not leave Safari’s emulated hover latched on a tile. */
@media (hover:hover) and (pointer:fine){.category-button:hover{background:#eaf0e5}.achievement-summary:hover{background:#edf2e8}.playback-center:hover{background:#10221faa}}

/* Vertical feed gestures cover floating text and controls; dialogs keep native scrolling. */
.plaza-page:not(.modal-open){touch-action:pinch-zoom;overscroll-behavior:none}
.plaza-page .post-copy{user-select:none;-webkit-user-select:none}
.plaza-page dialog{touch-action:auto}

/* Text-only feedback remains transparent to every feed gesture. */
.recognition-feedback{position:fixed;z-index:40;top:36%;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 48px);margin:0;padding:0;border:0;background:none;color:#fff;font-size:17px;font-weight:500;line-height:1.6;text-align:center;text-shadow:0 1px 4px #000,0 0 12px #0009;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none;user-select:none;-webkit-user-select:none}

/* A two-second celebration pauses the feed; the completed scene waits for dismissal. */
.celebration-dialog{width:calc(100% - 40px);max-width:380px;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;border:1px solid #e3e8da;border-radius:28px;padding:20px 24px 24px;background:#fffdf5;color:#214d43;text-align:center;box-shadow:0 20px 80px #0003}
.celebration-dialog::backdrop{background:#08241db3;backdrop-filter:blur(5px)}
.celebration-art{max-width:300px;margin:0 auto 10px;pointer-events:none}.celebration-art svg{display:block;width:100%;height:auto;max-height:36dvh}.celebration-dialog h2{font-size:26px;line-height:1.35;margin:0 0 12px;outline:none}.celebration-dialog p{font-size:16px;line-height:1.8;margin:0;white-space:pre-line;overflow-wrap:anywhere}.celebration-actions{min-height:var(--touch-target);margin-top:22px}.celebration-actions .button{width:100%;background:#39735f;color:#fffdf5;border:0;border-radius:14px}
.celebration-cat{transform-origin:140px 216px}.celebration-popper{transform-origin:182px 183px}.celebration-burst{opacity:0}.celebration-paper{opacity:1;transform:translate(var(--x),var(--fall)) rotate(var(--spin));transform-box:view-box;transform-origin:215px 144px}
.celebrating .celebration-cat{animation:cat-cheer 2s ease-in-out both}.celebrating .celebration-popper{animation:popper-kick 2s ease-out both}.celebrating .celebration-burst{animation:popper-flash 2s ease-out both}.celebrating .celebration-paper{animation:paper-burst 2s cubic-bezier(.15,.6,.3,1) both}
@keyframes cat-cheer{0%,100%{transform:translateY(0) rotate(0)}16%{transform:translateY(3px) rotate(-4deg)}32%{transform:translateY(-9px) rotate(3deg)}52%{transform:translateY(0) rotate(-2deg)}72%{transform:translateY(-4px) rotate(1deg)}}
@keyframes popper-kick{0%,16%,100%{transform:rotate(0)}26%{transform:rotate(10deg)}42%{transform:rotate(-3deg)}}
@keyframes popper-flash{0%,18%,55%,100%{opacity:0}24%,35%{opacity:1}}
@keyframes paper-burst{0%,18%{opacity:0;transform:translate(0,0) rotate(0) scale(.2)}22%{opacity:1}64%{opacity:1;transform:translate(var(--x),var(--y)) rotate(var(--spin)) scale(1)}100%{opacity:1;transform:translate(var(--x),var(--fall)) rotate(var(--spin)) scale(1)}}
@media(prefers-reduced-motion:reduce){.celebrating .celebration-cat,.celebrating .celebration-popper,.celebrating .celebration-burst,.celebrating .celebration-paper{animation:none}.celebration-paper{transform:translate(var(--x),var(--fall))}}
@media(max-width:360px){.celebration-dialog{padding:16px 18px 20px}.celebration-dialog h2{font-size:24px}.celebration-dialog p{font-size:15px}}

.avatar img{width:100%;height:100%;object-fit:cover}.post-author img{padding:0;object-fit:cover}

/* Each scene contains its background media and all work-specific text/actions. */
.feed-viewport{position:fixed;inset:0;overflow:hidden;overscroll-behavior:none;background:#10221f}.feed-scene{position:absolute;inset:0;width:100%;height:100%;transform:translate3d(0,0,0);isolation:isolate}.feed-moving .feed-scene{will-change:transform}.feed-preview{pointer-events:none}.feed-preview .plaza-shell{pointer-events:none}.feed-preview button,.feed-preview input{pointer-events:none}.feed-preview .player{position:fixed;inset:0}
