
/* Content-led storefront and discussion surfaces. */
:root{--text:#25282d;--text-secondary:#626a75;--text-tertiary:#717985;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--ink:#22252a;--muted:var(--text-secondary);--line:#e7e8eb;--soft:#f5f6f7;--accent:#c45843;color:#25282d;background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}

body{line-height:1.5}
@media(max-width:640px){.back{min-height:44px;min-width:44px}}
button,input,textarea,select{font-size:14px}
button,.button{border-radius:8px;transition:background .15s,color .15s,border-color .15s}
.button.primary{background:#25282d;border-color:#25282d}
.button.primary:hover:not(:disabled){background:#41454d;border-color:#41454d}
.button:active:not(:disabled),button:active:not(:disabled){transform:translateY(1px)}
button:disabled,.button:disabled{opacity:.42}
.button.quiet:hover{background:#f2f3f5}
.skip-label{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}

.site-header{height:68px;padding:0 max(28px,calc((100vw - 1180px)/2));gap:56px;background:#fffffff5;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px);border-bottom:1px solid #e9eaed}
.brand{font-size:25px;font-weight:750;letter-spacing:-1.35px}
.site-header nav{gap:32px;font-size:14px}
.site-header nav a{color:var(--text-secondary)}
.site-header nav a:hover{color:#222}
.site-header nav a.active:after{height:2px;background:#23262b;bottom:12px}
.site-header nav a.active{font-weight:550}
.avatar{background:#eff0f2;color:#686e78;height:32px;width:32px;font-weight:550}
#identity{font-size:12px;color:var(--text-secondary)}
.page{max-width:1236px;padding:36px 28px 80px}
.page.narrow{max-width:850px}
.page-head{margin-bottom:30px}
.page-head h1,h1{font-size:27px;font-weight:600;letter-spacing:-.8px}
h2{font-size:18px;letter-spacing:-.3px}
.page-head p{color:var(--text-tertiary)}
.back{margin-bottom:22px;font-size:12px;color:var(--text-secondary)}
.back:hover{color:#20242a}
.empty-state{padding:48px 20px;border:0;background:#f7f8f9;border-radius:8px}
.empty-state h2{font-size:17px}
.empty-state p:empty{display:none}
.loading{min-height:35vh;display:grid;place-content:center;color:var(--text-tertiary)}
.notice{border-radius:8px;background:#2a2f36;box-shadow:0 8px 32px #12182018}
.error-state{border:0;background:#faf3ef}
.search:focus,input:focus,textarea:focus{border-color:#8f959e}

.feed-heading{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:24px}
.feed-heading h1{font-size:26px;font-weight:600}
.feed-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.feed-controls .filters{margin:0;gap:5px}
.feed-controls .filter{font-size:13px;border-radius:7px;padding:8px 13px;color:var(--text-secondary)}
.feed-controls .filter.active{background:#eef0f3;color:#23272d;font-weight:550}
.feed-controls select{width:auto;border:0;background:transparent;font-size:12px;color:var(--text-secondary);padding:8px 24px 8px 9px}
.catalog-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:20px}
.catalog-heading h2{font-size:17px;margin:0;font-weight:600}
.catalog-heading>span{font-size:12px;color:var(--text-tertiary);font-variant-numeric:tabular-nums}
.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}
.work-tile .cover{border-radius:9px;aspect-ratio:1.6;background:#f0f1f3}
.work-tile .cover img{transition:transform .2s}
.work-entry:hover .tile-title{color:#000}
.tile-info{padding-top:13px}
.tile-title{font-size:16px;letter-spacing:-.2px}
.tile-desc{margin-top:7px;color:var(--text-secondary);font-size:13px;-webkit-line-clamp:1}
.tile-bottom{margin-top:7px;padding-top:4px}
.creator-link{font-size:12px;color:var(--text-secondary)}
.creator-link:before{display:none}
.work-actions{gap:5px}
.work-actions button{color:#8b929b;font-size:12px;min-width:32px;border-radius:7px}
.work-actions svg{width:16px;height:16px}
.work-actions button:hover{background:#f1f2f5}
.work-actions button.liked{color:#c55849}
.image-placeholder{display:grid;place-items:center;background:#eeeff2;color:#858c96;font-size:20px;letter-spacing:-.4px}
.author-heading{display:flex;gap:20px;align-items:center;margin-bottom:36px}
.author-heading p{font-size:13px;color:#868d97;margin:8px 0 0}
.author-heading>.button{margin-left:auto}
.large-avatar{width:60px;height:60px;background:#edf0f3;border-radius:50%;display:grid;place-items:center;color:#7c8491;font-size:20px;flex-shrink:0}

.work-detail{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:32px;align-items:start}
.work-media{min-width:0;scroll-margin-top:88px}
.detail-cover{border-radius:11px;aspect-ratio:1.6;background:#f1f2f4;max-height:none;border:1px solid #00000005}
.detail-cover>img,.detail-cover>.image-placeholder{height:100%;width:100%;aspect-ratio:auto;object-fit:contain;max-height:none;min-height:0}
.work-summary{padding:3px 0;min-width:0}
.work-summary h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin-bottom:20px;overflow-wrap:anywhere}
.detail-author{display:flex;align-items:center;gap:9px;color:var(--text-secondary);font-size:12px;margin-bottom:24px}
.detail-author:hover{color:#242930}
.detail-author .avatar{height:26px;width:26px;font-size:11px}
.work-description{font-size:13px;line-height:1.9;color:var(--text-secondary);white-space:pre-wrap;margin:0 0 24px}
.work-facts{font-size:13px;display:flex;flex-direction:column;gap:9px;margin:0 0 28px}
.work-facts>div{display:flex;gap:25px}
.work-facts dt{color:var(--text-tertiary);min-width:40px}
.work-facts dd{margin:0;color:#636b77}
.work-launch .play-launch{width:100%;min-height:46px;gap:9px;font-size:14px}
.play-launch svg{width:16px;height:16px;fill:currentColor;stroke:none}
.detail-social{display:flex;align-items:center;gap:7px;margin-top:14px;padding:0 2px}
.detail-social .work-actions{margin:0;gap:8px}
.detail-social .work-actions button{padding:8px 10px}
.discussion-jump{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;border:0;background:transparent;color:#828a95;padding:8px}
.discussion-jump svg{height:16px;width:16px;stroke:currentColor;stroke-width:1.5;fill:none}
.discussion-jump:hover{background:#f5f6f8}
.work-lower{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:32px;margin-top:42px;padding-top:32px;border-top:1px solid var(--line)}
.game-shell{border-radius:10px;border-color:#e3e5e8;background:#f5f6f7}
.game-tools{height:44px;font-size:11px;background:#fafbfc}
.game-tools .button{font-size:11px}
.game-frame{height:460px}
.game-result{gap:9px;padding:15px;font-size:12px}
.game-result p{flex:1}
.related-works h2{font-size:13px;margin:0 0 18px;color:var(--text-secondary);font-weight:500}
.related-work{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f3;align-items:center}
.related-work:first-of-type{padding-top:0}
.related-work img,.related-work .image-placeholder{width:88px;height:55px;object-fit:cover;border-radius:5px;flex-shrink:0;font-size:10px}
.related-work>div:not(.image-placeholder){min-width:0}
.related-work strong{font-size:12px;font-weight:550}
.related-work p{font-size:11px;color:var(--text-secondary);margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.related-work:hover strong{color:#000}

.discussion{scroll-margin-top:94px;min-width:0}
.discussion-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}
.discussion-head h2{font-size:18px;margin:0}
.discussion-head h2>span{font-size:13px;color:var(--text-tertiary);font-weight:400;margin-left:6px}
/* 评论区是一条平铺的列表，没有外框：输入是一条浅色圆角条，开始写字时右边出现"发布"；每条评论只有头像、名字、正文、时间和回复 */
.comment-composer{display:flex;align-items:flex-end;gap:12px;margin-bottom:12px}
.comment-avatar{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;background:#eceff3;color:#7e8794;border-radius:50%;font-size:12px}
.comment-composer>.comment-avatar{margin-bottom:5px}
.composer-main{flex:1;min-width:0;background:#f6f7f9;border:0;border-radius:21px;padding:0 16px;transition:box-shadow .15s}
/* 焦点只用圆角条内侧一圈很淡的线来表示。全站给 textarea 的粗焦点框在这里会套出第二个框，所以单独关掉 */
.composer-main:focus-within{box-shadow:inset 0 0 0 1px var(--border,#d7dce3)}
.comment-composer textarea{display:block;width:100%;resize:none;min-height:42px;padding:10px 0;border:0;background:transparent;border-radius:0;line-height:1.6;font-size:13px;box-shadow:none;outline:none;max-height:180px}
.comment-composer .composer-main textarea:focus,.comment-composer .composer-main textarea:focus-visible{outline:0;box-shadow:none;border-color:transparent}
.comment-composer textarea::placeholder{color:var(--text-tertiary)}
.comment-composer .composer-send{display:none;flex:none;margin-bottom:5px;padding:0 16px;font-size:12px;min-height:32px;border-radius:16px}
.comment-composer.expanded .composer-send{display:inline-flex;align-items:center}
.reply-target{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text-secondary);padding:9px 0 3px}
.reply-target button{border:0;background:transparent;padding:0 4px;min-height:24px;font-size:17px;color:#929ba8}
.comment-status{font-size:12px;color:#8d5a47;margin:0 0 12px;padding-left:44px;line-height:1.5}
.comment-status:empty{display:none}
.comment-loading,.discussion-empty{color:var(--text-tertiary);font-size:12px;margin:30px 0 40px;text-align:center}
.comment-list{margin-top:28px}
.comment-thread{margin-bottom:26px}
.comment{display:flex;align-items:flex-start;gap:12px}
.comment-main{flex:1;min-width:0}
.comment-byline{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary);min-height:21px}
.comment-byline a:hover{color:#252c35}
.author-badge{font-size:9px;padding:1px 4px;border-radius:3px;background:#eef1f5;color:#738095}
.comment-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;margin:4px 0 7px;color:#424a55}
.comment-meta{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--text-tertiary)}
.comment-meta button{padding:0;border:0;background:transparent;color:var(--text-secondary);font-size:11px;min-height:24px}
.comment-meta button:hover{color:#353e49}
.comment-like{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 27px;border:0;background:transparent;padding:5px 2px;font-size:10px;color:var(--text-tertiary);min-height:34px}
.comment-like svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.comment-like.liked{color:#c65b4b}
.comment-like.liked svg{fill:currentColor}
.comment-replies{margin:18px 0 0 44px}
.comment-reply{margin-top:16px;gap:9px}
.comment-reply .comment-avatar{width:25px;height:25px;flex-basis:25px;font-size:10px}
.comment-reply .comment-body{font-size:13px}
.comment-reply .comment-byline{font-size:11px}
.replies-more{border:0;background:transparent;font-size:11px;color:var(--text-secondary);margin:9px 0 0 78px;padding:5px 0}
.comments-more,.comments-retry{border:0;background:#f5f6f8;border-radius:8px;font-size:12px;color:var(--text-secondary);display:block;width:100%;padding:12px}
.comment-highlight{background:#fbf5e9;outline:8px solid #fbf5e9;border-radius:4px}

.studio{grid-template-columns:150px minmax(0,1fr);gap:46px}
.studio-nav{gap:4px}
.studio-nav a{font-size:13px;border-radius:7px;color:var(--text-secondary)}
.studio-nav a.active{color:#262c34;background:#eef0f4;font-weight:550}
.studio-nav a:hover{background:#f6f7f9}
.work-row{grid-template-columns:144px minmax(0,1fr) auto;padding:24px 0;gap:22px}
.work-row .cover{border-radius:7px}
.work-row h3{font-size:15px}
.work-row p{color:var(--text-secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row-actions .button{font-size:12px;color:var(--text-secondary)}
.stats{gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:25px}
.stat{border:0;border-right:1px solid var(--line);border-radius:0;margin:0;padding:24px}
.stat:last-child{border-right:0}
.stat dt{color:var(--text-secondary)}
.stat dd{font-size:34px;font-variant-numeric:tabular-nums;font-weight:500;margin-top:9px}
.data-table td,.data-table th{padding:17px 12px}
.data-table th{font-size:11px;color:var(--text-secondary);background:#fafbfc}
.data-table tbody tr:hover{background:#fafbfc}
.data-note{font-size:12px;color:var(--text-tertiary)}
.form{max-width:660px}
.field{margin-bottom:25px}
.field>label,.field>legend{font-size:13px;font-weight:500;color:#626b78}
.field input,.field textarea{padding:12px;border-radius:8px;border-color:#dfe3e9}
.field small{font-size:11px;color:var(--text-tertiary)}
.segmented label{padding:10px 15px;border-radius:8px;border-color:#e0e4ea}
.segmented label:has(:checked){border-color:#5d6775;background:#f7f8fa}
.segmented input{accent-color:#404b59}
.cover-picker{border-radius:10px;border:1px dashed #d4dbe3;background:#fafbfc}
.form-footer{padding-top:4px}
.feedback-record{padding:20px 0}
.feedback-record header{font-size:11px}
.feedback-record p{font-size:13px}
.inbox-tabs{display:flex;gap:22px;margin-bottom:28px;border-bottom:1px solid var(--line)}
.inbox-tabs a{font-size:12px;color:var(--text-secondary);padding:0 0 12px;border-bottom:2px solid transparent}
.inbox-tabs a.active{border-color:#333c49;color:#333c49}
.inbox-comment{display:flex;gap:13px;padding:23px 0;border-bottom:1px solid var(--line)}
.inbox-comment .inbox-main{flex:1;min-width:0}
.inbox-comment p{font-size:13px;margin:7px 0}
.inbox-comment header{font-size:11px;color:var(--text-secondary);display:flex;gap:10px;align-items:center}
.inbox-comment header time{margin-left:auto}
.inbox-work{font-size:11px;color:var(--text-secondary)}

.cards-nav{gap:28px;margin-bottom:30px}
.cards-nav a{font-size:13px}
.creator-card{border:0;border-radius:11px;background:#f5f6f8}
.creator-covers{padding:18px;background:#eeeff2;height:220px;gap:9px}
.creator-covers img{border-radius:4px;object-fit:cover;box-shadow:0 3px 10px #18223110}
.creator-card footer{padding:20px 22px}
.creator-card h2{font-size:17px}
.creator-card p{color:var(--text-secondary)}
.creator-card:hover{background:#eef1f4}
.steps{gap:28px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:26px;font-size:12px}
.steps span{color:var(--text-tertiary)}
.steps span.active{color:#38404c}
.steps b{display:inline-flex;width:20px;height:20px;background:#f1f3f6;align-items:center;justify-content:center;border-radius:50%;font-size:10px;margin-right:7px}
.steps .active b{background:#303944;color:#fff}
.select-work{border-radius:9px;border-color:#e1e5eb}
.select-work.selected{border-color:#667484;box-shadow:0 0 0 1px #667484}
.select-work input{accent-color:#3e4b5c}
.select-work .cover{aspect-ratio:1.65}
.select-work .select-copy{font-size:13px;padding:14px}
.select-work .select-copy small{color:var(--text-tertiary)}
.selection-order{margin-top:18px}
.order-chip{border:0;background:#f2f4f7;color:#7c8796;padding:6px 8px;border-radius:7px}
.order-chip button{background:transparent}
.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.template{background:#fff;border-color:#e1e5eb;border-radius:10px;transition:border-color .2s,box-shadow .2s}
.template.selected{border-color:#59677a;box-shadow:0 0 0 1px #59677a}
.template-art{height:190px;background:#f0f1f3}
.template-copy{padding:17px 18px}
.template-copy p{color:var(--text-secondary);font-size:11px;margin-top:6px}
.template-art.collection{display:flex;gap:9px;transform:none;background:#eeeae1}
.template-art.collection i{display:block;width:54px;height:76px;background:#6f9a9c;border:4px solid #faf6eb;border-radius:5px;box-shadow:0 6px 12px #0002;transform:rotate(-8deg)}
.template-art.collection i:nth-child(2){background:#d2ad5f;transform:rotate(7deg);margin-top:24px}
.template-art img{width:100%;height:100%;object-fit:cover}
.template-art.has-covers{padding:22px;gap:10px}
.template-art.has-covers img{width:30%;height:100%;border:5px solid #fbfaf5;border-radius:3px;box-shadow:0 5px 14px #0001}
.template-art.fold.has-covers{background:#333b40}
.template-art.fold.has-covers img{transform:perspective(500px) rotateY(-12deg) rotateZ(-5deg);border-color:#e9e4d7}
.template-art.collection.has-covers img{border-radius:7px;transform:rotate(-8deg);height:88%;object-fit:contain;background:#fbf7ed}
.template-art.collection.has-covers img:nth-child(2){transform:rotate(8deg);margin-top:20px}
.template-art.collection.has-covers img:nth-child(3){display:none}
.personalization{border-color:#e4e7ec}
.profile-fields{margin-top:25px;border-color:#e4e7ec}
.card-preview{border-radius:12px;border-color:#e5e5e1}
.card-view-top{margin-bottom:22px}
.card-secondary>summary{color:var(--text-secondary)}
.white-card{background:#f8f7f3}
.white-card header{border-color:#e4e1da}
.white-card h2{font-family:Georgia,'Songti SC',serif;font-size:34px;font-weight:500}
.white-card .work-grid{gap:28px}
.white-card .cover{border:7px solid #fff}
.white-card .tile-desc{display:none}
.white-card .tile-bottom{display:none}
.share-dialog{border-radius:13px;padding:26px;border-color:#e6e8ed}
.share-dialog::backdrop{background:#1c222b66;backdrop-filter:blur(3px)}

@media(max-width:1000px){.site-header{padding:0 28px;gap:38px}
.work-detail,.work-lower{grid-template-columns:minmax(0,1fr) 270px;gap:26px}
.work-summary h1{font-size:26px}
.work-description{font-size:12px}
.game-frame{height:420px}
.studio{gap:28px;grid-template-columns:125px minmax(0,1fr)}
.work-row{grid-template-columns:112px minmax(0,1fr)}
.row-actions{grid-column:2}
.template-art{height:155px}
.template-art.has-covers{padding:15px;gap:5px}
}

@media(max-width:720px){.site-header{height:62px;padding:0 20px;gap:28px}
.site-header nav{gap:22px;font-size:12px}
.site-header nav a.active:after{bottom:8px}
.brand{font-size:23px}
.page{padding:27px 20px 65px}
.feed-heading{gap:16px;margin-bottom:19px}
.feed-heading h1{font-size:23px;white-space:nowrap}
.feed-controls{margin-bottom:20px}
.feed-controls .filter{font-size:12px;padding:8px 10px}
.feed-controls select{max-width:105px;font-size:11px}
.store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
.tile-title{font-size:15px}
.tile-desc{font-size:12px}
.tile-bottom{gap:4px}
.creator-link{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-bottom .work-actions button{padding:7px 5px;min-width:27px}
.tile-bottom .work-actions svg{width:14px;height:14px}
.tile-bottom .work-actions{gap:0}
.work-detail{display:flex;flex-direction:column;gap:24px}
.work-media{width:100%}
.work-summary{width:100%;display:grid;grid-template-columns:1fr auto;gap:0 20px}
.work-summary h1{font-size:28px;grid-column:1/-1;margin-bottom:14px}
.detail-author{margin-bottom:18px;grid-column:1/-1}
.work-description{grid-column:1/-1;margin-bottom:20px;font-size:13px}
.work-facts{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:10px 25px;font-size:11px;margin-bottom:22px}
.work-facts>div{gap:8px}
.work-facts dt{min-width:0}
/* 窄屏：试玩按钮、互动一行、作品信息各占一整行。它们在标题和简介之间穿插着排，不能再按"按钮在左、互动在右"的两列自动落位，
   否则作品信息会被挤进右边那一小列 */
.work-summary>.work-launch,.work-summary>.detail-social,.work-summary>.work-metadata{grid-column:1/-1}
.work-launch{min-width:150px}
.work-launch .play-launch{min-height:44px}
.detail-social{margin:0;gap:5px}
.discussion-jump span{display:none}
.work-lower{display:block;margin-top:28px;padding-top:28px}
.related-works{margin-top:38px}
.related-work{max-width:420px}
.game-frame{height:430px}
.game-tools .button{min-height:32px}
.game-result{flex-wrap:wrap}
.game-result p{flex-basis:100%}
.comment-composer textarea{font-size:14px}
.comment-composer .composer-send{min-height:36px;border-radius:18px;margin-bottom:3px}
.comment-body{font-size:13px}
.comment-meta button,.replies-more{min-height:32px}
.comment-like{min-height:40px;flex-basis:30px}
.comment-replies{margin-left:38px}
.comment-reply .comment-avatar{width:23px;height:23px;flex-basis:23px}
.replies-more{margin-left:70px}
.studio{display:block}
.studio-nav{flex-direction:row;padding:0 0 12px;margin-bottom:26px}
.studio-nav a{font-size:12px;padding:9px 14px}
.stat{padding:20px 12px}
.stat dd{font-size:28px}
.stat dt{font-size:10px}
.data-table th,.data-table td{padding:14px 9px}
.work-row{gap:17px}
.template-grid{grid-template-columns:1fr;gap:13px}
.template{display:grid;grid-template-columns:130px 1fr;align-items:center}
.template-art{height:115px}
.template-art.has-covers{padding:14px 10px;gap:5px}
.template-art.has-covers img{width:38%;border-width:3px}
.template-art.has-covers img:nth-child(3){display:none}
.template-copy{padding:18px}
.template-copy strong{font-size:14px}
.template-copy p{font-size:11px}
.creator-covers{height:180px}
.steps{gap:15px;font-size:10px}
.steps b{margin-right:4px}
.page-head h1{font-size:25px}
.form-footer .button{font-size:12px}
.cards-nav{margin-bottom:25px}
.author-heading{gap:12px}
.large-avatar{width:48px;height:48px;font-size:17px}
.author-heading h1{font-size:23px}
.author-heading>.button{font-size:11px;padding:9px 11px}
}

@media(max-width:420px){.site-header{padding:0 16px;gap:19px}
.site-header nav{gap:17px}
.site-header nav a:last-child{font-size:12px}
.brand{font-size:21px}
.page{padding-left:16px;padding-right:16px}
.feed-heading{flex-wrap:wrap;gap:18px}
.feed-heading h1{font-size:24px}
.feed-controls{gap:8px}
.feed-controls .filter{font-size:11px;padding:8px}
.store-grid{grid-template-columns:1fr;gap:27px}
.tile-title{font-size:17px}
.tile-desc{font-size:12px}
.creator-link{font-size:11px}
.tile-bottom .work-actions button{padding:7px 9px}
.tile-bottom .work-actions svg{width:16px;height:16px}
.work-launch{min-width:132px}
.detail-social{gap:0}
.detail-social .work-actions{gap:0}
.detail-social .work-actions button{padding:8px}
.work-summary{gap:0 10px}
.discussion-jump{padding:8px}
.stat{padding:18px 10px}
.stat dd{font-size:25px}
.work-row{grid-template-columns:95px minmax(0,1fr)}
.comment{gap:9px}
.comment-composer{gap:9px}
.comment-avatar{width:29px;height:29px;flex-basis:29px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}
}

.inbox-filter{max-width:320px}
.inbox-comment p{white-space:pre-wrap;overflow-wrap:anywhere}
.template-cover-title{background:#fbfaf5;width:30%;height:100%;display:grid;place-items:center;padding:8px;color:#787d85;font-size:10px;overflow-wrap:anywhere;box-shadow:0 5px 14px #0001}
.creator-covers{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
.white-card .work-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.white-card .work-tile:only-child{max-width:600px;width:100%;justify-self:center}


.template-copy{display:block}
.template-art.has-covers img{object-fit:contain;background:#fbfaf5}



/* Server-backed discovery: predictable density and stable asynchronous states. */
.feed-sort{display:flex;align-items:center;gap:8px}

.feed-refresh{display:grid;place-items:center;border:0;color:var(--text-secondary);background:transparent;width:36px;height:36px;font-size:21px;padding:0;border-radius:8px}

.feed-refresh:hover{background:var(--soft)}

.feed-status{font-size:13px;color:#98563e;text-align:center;margin:20px 0 0}

.feed-status:empty{display:none}

.feed-pagination{display:flex;justify-content:center;margin-top:36px}

.feed-pagination:has(button[hidden]){display:none}

.feed-pagination .button{min-width:150px}

.work-comment-count{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:38px;min-height:36px;padding:6px;color:var(--text-secondary);font-size:12px;border-radius:8px}

.work-comment-count:hover{background:var(--soft)}

.work-comment-count svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}

.work-entry:focus-visible{outline:2px solid #656d79;outline-offset:5px;border-radius:10px}

.work-tile .cover{outline:1px solid #00000007;outline-offset:-1px}

.skeleton-work>div{aspect-ratio:1.6;background:#f0f1f3;border-radius:10px}

.skeleton-work>span,.skeleton-work>small{display:block;background:#f0f1f3;height:15px;width:50%;border-radius:4px;margin-top:16px}

.skeleton-work>small{height:11px;width:70%;margin-top:12px}

.skeleton-grid{min-height:320px}

input[type=file]{font-size:13px;color:var(--text-secondary)}

input[type=file]::file-selector-button{font:inherit;color:var(--text);background:#fff;border:1px solid #d8dde3;border-radius:8px;padding:9px 13px;margin-right:12px;cursor:pointer}

input[type=file]::file-selector-button:hover{background:var(--soft)}

:where(a,button,input,textarea,select,summary):focus-visible{outline:2px solid #656d79;outline-offset:3px}

@media(min-width:721px) and (max-width:1000px){.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:720px){.feed-sort{gap:3px}
.feed-refresh{width:36px;height:40px}
.tile-bottom{align-items:center}
.work-comment-count{min-height:44px}
.creator-link{font-size:12px}
.work-description{font-size:14px}
.comment-meta{font-size:12px}
.comment-like{font-size:12px}
.comment-reply .comment-body{font-size:13px}
}

@media(pointer:coarse){.work-actions button,.work-comment-count,.comment-like,.replies-more,.comment-meta button{min-height:44px;min-width:40px}
.feed-refresh{width:44px;height:44px}
}

@media(hover:hover){.work-entry .cover{transition:box-shadow .18s,transform .18s}
.work-entry:hover .cover{box-shadow:0 8px 24px #1c243012;transform:translateY(-2px)}
.work-entry:hover .cover img{transform:none}
}


.source-picker{border:0;padding:0;min-width:0}
.segmented{flex-wrap:wrap}
.segmented label:has(input:checked){border-color:var(--text);background:#f5f6f7}
.github-input{display:flex;gap:8px;align-items:stretch}
.github-input input{flex:1;min-width:0}
.github-input .button{flex:none}
.import-availability{margin:-12px 0 22px;font-size:12px;color:var(--text-secondary);overflow-wrap:anywhere}
.import-availability-summary{margin:0;line-height:1.6}
.import-availability-panel{padding:14px 16px;background:#f5f7f8;border:1px solid #e7ecee;border-radius:var(--radius-sm)}
.import-availability-panel>p{margin:0;color:#48555e}
.import-availability-panel .import-availability-next{margin-top:5px;color:var(--text-secondary)}
.import-availability-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.import-availability-actions:empty{display:none}
.import-requirements{margin-top:10px;font-size:11px;color:var(--text-tertiary)}
.import-requirements summary{cursor:pointer;display:inline-flex;align-items:center}
.import-requirements p{line-height:1.75;margin:9px 0 0;max-width:620px}
.field small{font-size:12px;color:var(--text-secondary)}

.build-panel{margin-top:12px;padding:16px;background:#f6f7f8;border-radius:var(--radius-sm)}
.build-panel progress{display:block;width:100%;height:4px;accent-color:#454d59;margin:0 0 14px}
.build-actions{display:flex;gap:8px;align-items:center}
.build-details{font-size:12px;color:var(--text-secondary);margin-top:10px}
.build-details summary{cursor:pointer;padding:7px 0}
.build-details p{font-size:12px;overflow-wrap:anywhere}
.build-details pre{font:11px/1.65 ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;margin:8px 0 0;color:var(--text-secondary)}
.work-origin{font-size:12px;color:var(--text-secondary);margin:0 0 20px;overflow-wrap:anywhere}
.work-origin a{text-decoration:underline;text-underline-offset:3px}
.work-origin span{display:block;font:11px/1.8 ui-monospace,monospace;margin-top:4px}
.work-media[data-built-project="true"] .game-frame{height:660px}
/* A website is read, not played: give it most of the window height. Full screen still takes the whole display. */
.work-media[data-work-category="website"] .game-frame,.work-media .outside-site .game-frame{height:clamp(460px,calc(100vh - 230px),860px);height:clamp(460px,calc(100dvh - 230px),860px)}
@media(max-width:720px){.work-origin{grid-column:1/-1}.work-media[data-built-project="true"] .game-frame{height:640px}.work-media[data-work-category="website"] .game-frame,.work-media .outside-site .game-frame{height:clamp(430px,calc(100vh - 210px),720px);height:clamp(430px,calc(100dvh - 210px),720px)}.github-input{flex-wrap:wrap}.github-input input{flex-basis:100%}}

/* Immutable versions: one main action, with secondary work in context. */
[data-action-menu]{position:relative;font-size:13px;color:var(--text-secondary)}
[data-action-menu]>summary{cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;list-style:none;font-size:23px;font-weight:600;letter-spacing:2px;line-height:1}
[data-action-menu]>summary::-webkit-details-marker{display:none}
[data-action-menu]>summary:hover,[data-action-menu][open]>summary{background:var(--surface-hover);color:var(--text)}
.action-menu-panel{position:fixed;z-index:70;width:196px;max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--border);border-radius:16px;background:var(--surface-raised);box-shadow:var(--shadow-popover)}
.action-menu-panel>a,.action-menu-panel>button{display:flex;align-items:center;width:100%;min-height:40px;padding:9px 12px!important;margin:0;border:0;border-radius:9px;background:transparent;font:inherit;line-height:1.5;text-align:left;color:var(--text-secondary);white-space:normal;cursor:pointer}
.action-menu-panel>a:hover,.action-menu-panel>button:hover{background:var(--surface-hover);color:var(--text)}
.action-menu-panel>[data-work-archive="archive"]{color:var(--danger)}
.version-secondary{font-size:12px}
.version-secondary>summary{cursor:pointer;padding:8px 10px;border-radius:8px;list-style:none}
.version-secondary>summary::-webkit-details-marker{display:none}
.version-page .page-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.version-page .page-head p{margin:8px 0 0;font-size:13px}
.version-page .form{max-width:none}
.work-edit-page .form{max-width:690px}
.work-edit-cover{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:20px;align-items:center;padding:18px;border:1px solid #e6eaed;border-radius:12px;background:#fafbfc}
.work-edit-cover-preview{aspect-ratio:1.6;display:grid;place-items:center;overflow:hidden;background:#eff2f4;border-radius:8px;color:var(--text-tertiary);font-size:12px}
.work-edit-cover-preview img{display:block;width:100%;height:100%;object-fit:contain}
.work-edit-cover-preview img[hidden],.work-edit-cover-preview span[hidden]{display:none}
.work-edit-cover-controls{min-width:0}
.work-edit-cover-controls input{max-width:100%;padding:0;border:0;background:transparent;font-size:12px}
.work-edit-cover-controls>span{display:block;font-size:11px;overflow-wrap:anywhere;color:var(--text-secondary);margin-top:8px}
.work-edit-cover-controls .button{margin-top:8px;padding-left:0}
.work-edit-page .form-footer{flex-wrap:wrap}
.work-edit-page .form-footer>.tiny{margin-left:auto}
.work-info-more{margin-top:18px;font-size:12px;color:var(--text-secondary)}
.work-info-more summary{cursor:pointer;display:list-item;width:fit-content}
.work-info-more a{display:block;margin-top:10px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){.work-edit-cover{grid-template-columns:1fr;gap:14px;padding:14px}.work-edit-cover-preview{max-height:240px}.work-edit-page .form-footer>.tiny{flex-basis:100%;margin-left:0}}
.version-options{margin:24px 0;color:var(--text-secondary);font-size:13px}
.version-options summary{cursor:pointer;padding:9px 0}
.version-options .cover-picker{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px;margin-top:10px}
.version-options .cover-picker span{font-size:12px;overflow-wrap:anywhere}
.version-conflict{background:#fbf5eb;border:1px solid #eee0c8;border-radius:9px;padding:18px;margin:20px 0;font-size:13px;color:#6d5835}
.version-conflict p{margin:0 0 12px}
.version-secondary{font-size:12px;color:var(--text-secondary)}
.version-secondary[open]{display:flex;align-items:center;gap:10px}
.version-secondary .button{margin:5px;font-size:12px}
.version-current{font-size:13px;color:var(--text-secondary);padding-bottom:20px;border-bottom:1px solid var(--line)}
.version-current strong{color:var(--text);margin-left:8px;font-weight:550}
.version-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:25px 0;border-bottom:1px solid var(--line)}
.version-row-main{flex:1;min-width:0}
.version-row-heading{display:flex;align-items:center;gap:12px}
.version-row-heading>a{font-size:16px;font-weight:550}
.version-row-heading time{font-size:12px;color:var(--text-tertiary);margin-left:auto}
.version-current-label{font-size:11px;color:#4f6253;background:#eef4ed;border-radius:4px;padding:2px 6px}
.version-row p,.version-release-notes{font-size:14px;color:var(--text-secondary);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.version-row p{margin:10px 0 5px}
.version-notice{font-size:13px;padding:13px 16px;border-radius:8px;color:#415a45;background:#eff5ee}
.version-preview-dialog{padding:0;border:1px solid var(--line);border-radius:12px;width:min(1100px,95vw);max-width:95vw;max-height:94vh;overflow:hidden;background:#fff}
.version-preview-dialog::backdrop{background:#1c222b66}
.version-preview-dialog .game-tools{padding:0 16px;height:48px;display:flex;justify-content:space-between;align-items:center}
.version-preview-dialog iframe{border:0;width:100%;height:min(720px,80vh);display:block;background:#fff}
.version-page .game-tools span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#versions-more{margin-top:22px}
@media(max-width:720px){.version-page .page-head{align-items:flex-start}.version-page h1{font-size:23px}.version-page .page-head>.button{white-space:nowrap;font-size:12px}.version-row{gap:14px;padding:21px 0}.version-row-heading{gap:8px;flex-wrap:wrap}.version-row-heading time{flex-basis:100%;margin:0}.version-preview-dialog{width:96vw;max-width:96vw}.version-preview-dialog iframe{height:78vh}.version-page .form-footer{flex-wrap:wrap}.version-secondary .button{margin-left:0}.work-row-more summary,.version-row-more summary{min-height:40px}}

/* Image-led discovery. Positioning is progressive enhancement; CSS grid is
   the fallback. DOM order always remains the server's sort order. */
.page.discovery-page{max-width:1236px;padding:30px 28px 48px}
.discovery-page .feed-toolbar h1.skip-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* One row: type chips on the left, the order and 只看关注 menu on the right. */
.discovery-page .feed-toolbar{display:flex;flex-wrap:nowrap;gap:12px;align-items:center;margin-bottom:22px}
.feed-types{display:flex;gap:6px;flex-wrap:wrap}
.discovery-page .feed-types .filter{min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text-secondary);font-size:var(--type-body);font-weight:var(--weight-control);white-space:nowrap}
.discovery-page .feed-types .filter[aria-pressed=true]{background:var(--text);color:var(--surface);border-color:var(--text)}
.discovery-page .feed-toolbar .filters{flex:0 1 auto;min-width:0;flex-wrap:nowrap;gap:4px;margin:0}
.discovery-page .filters .filter{font-size:var(--type-body);font-weight:var(--weight-control);min-height:44px;padding:9px 12px;white-space:nowrap}
.discovery-page .filters .filter.active{font-weight:var(--weight-title)}
.discovery-page .feed-sort{flex:none;gap:8px}
.feed-sort-divider{display:block;height:1px;margin:6px 6px;background:var(--line)}
.feed-sort-divider[hidden]{display:none}
.discovery-page .feed-count{font-size:var(--type-caption);line-height:1.5;color:var(--text-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums}
.discovery-page .catalog-heading{margin-bottom:12px}
.feed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:32px 24px;align-items:start;min-width:0}
.feed-grid[data-feed-layout=ready]{display:block;position:relative;overflow:visible}
.feed-grid[data-feed-layout=ready]>.work-tile{position:absolute;margin:0;min-width:0}
.feed-grid .work-tile{align-self:start;border-radius:14px;overflow:visible}
.feed-grid .work-entry{display:block;border-radius:14px;min-width:0}
.feed-grid .cover{display:block;position:relative;aspect-ratio:var(--feed-ratio,1.3);border-radius:14px;background:var(--feed-paper,#f0f2f3);outline:1px solid #26333906;outline-offset:-1px;overflow:hidden}
.feed-grid .cover img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;max-height:none}
.feed-grid .cover.empty-cover{display:grid;place-items:center;padding:24px;color:var(--text-secondary);font-size:var(--type-content-title);text-align:center;line-height:1.5;overflow-wrap:anywhere}
.feed-grid .cover.empty-cover>span:not(.cover-action){max-width:100%}
.feed-grid .tile-info{padding:10px 3px 0}
.feed-grid .tile-copy{width:100%;min-width:0}
.feed-grid .tile-title{font-size:var(--type-content-title);line-height:1.5;font-weight:var(--weight-title);letter-spacing:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.feed-grid .tile-desc{display:none}
.feed-grid .tile-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:0 3px;margin-top:4px;gap:4px;min-height:30px;align-items:center}
.feed-grid .creator-link{margin:0;font-size:var(--type-secondary);line-height:1.5;color:var(--text-secondary);min-width:0;max-width:none;overflow:hidden}
.feed-grid .work-actions{margin-left:0;gap:0}
.feed-grid .work-actions button,.feed-grid .work-comment-count{min-width:36px;min-height:36px;font-size:var(--type-caption);padding:5px;color:var(--text-secondary)}
.feed-grid .work-actions button.liked{color:var(--accent)}
.feed-grid .work-actions svg{height:14px;width:14px}
.feed-grid .work-entry:focus-visible{outline-color:var(--focus);outline-offset:5px}
.discovery-page .feed-pagination{margin-top:28px}
.discovery-page .feed-pagination>.button{min-width:142px;border-radius:9px;font-size:var(--type-body)}
.feed-skeleton{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:32px 24px;align-items:start;min-height:600px;opacity:0;animation:feed-skeleton-appear 180ms ease 120ms forwards}
.feed-skeleton .skeleton-work>div{position:relative;overflow:hidden;aspect-ratio:1.1;border-radius:12px;background:#f1f3f4}
.feed-skeleton .skeleton-work>div::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent,#ffffff75,transparent);transform:translateX(-100%);animation:feed-skeleton-sheen 2200ms ease-in-out infinite}
.feed-skeleton .skeleton-work:nth-child(2n)>div::after{animation-delay:160ms}
.feed-skeleton .skeleton-work:nth-child(3n+1)>div{aspect-ratio:1.55}
.feed-skeleton .skeleton-work:nth-child(3n+2)>div{aspect-ratio:1.3}
.feed-skeleton .skeleton-work>span{height:12px;margin-top:13px;width:65%;background:#f1f3f4}
@keyframes feed-skeleton-appear{to{opacity:1}}
@keyframes feed-skeleton-sheen{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.feed-skeleton{opacity:1;animation:none}.feed-skeleton .skeleton-work>div::after{display:none;animation:none}}
@media(hover:hover) and (pointer:fine) and (min-width:721px){.feed-grid .work-tile:hover .cover-action{opacity:1;transform:none}.feed-grid .work-entry:hover .cover{transform:none}.feed-grid .work-entry:hover .cover img{transform:none}}
@media(max-width:720px){
  .page.discovery-page{padding:24px 20px 40px}
  /* The chips share one line with the menu and scroll sideways from the screen edge. */
  .discovery-page .feed-toolbar{flex-wrap:wrap;gap:10px 8px;margin-bottom:18px}
  .discovery-page .feed-toolbar .filters{flex:1 1 0;overflow-x:auto;scrollbar-width:none;margin-left:-20px;padding-left:20px;scroll-padding-inline:20px}
  .discovery-page .feed-toolbar .filters::-webkit-scrollbar{display:none}
  .discovery-page .filters .filter{flex:0 0 auto}
  .feed-grid,.feed-skeleton{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
  .feed-grid .cover{border-radius:12px}
  .feed-grid .tile-info{padding:9px 2px 0}
  .feed-grid .tile-bottom{padding:0 2px;gap:0}
  .feed-grid .creator-link{min-height:28px}
  .feed-grid .work-comment-count,.feed-grid .cover-action{display:none}
  .feed-grid .work-actions button,.feed-grid .work-comment-count{min-width:44px;min-height:44px}
  .feed-grid .cover.empty-cover{padding:16px}
}
@media(max-width:420px){.page.discovery-page{padding-inline:16px}.discovery-page .feed-types .filter{padding-inline:10px}.feed-types{gap:4px}.discovery-page .feed-toolbar .filters{margin-left:-16px;padding-left:16px;scroll-padding-inline:16px}}
@media(max-width:359px){.feed-grid,.feed-skeleton{grid-template-columns:1fr}}
@media(pointer:coarse){.feed-grid .work-actions button,.feed-grid .work-comment-count{min-width:44px;min-height:44px}}


/* Fullscreen retains the existing iframe, session and game state. */
.game-tools{gap:12px;min-height:48px;height:auto;flex-shrink:0;padding:6px 12px}
.game-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Saved-progress note in the frame toolbar: quiet when all is well, visible when progress is not being kept. */
.game-save-state{font-size:11px;color:var(--text-tertiary);white-space:nowrap;align-self:center;margin-right:4px}
.game-save-state[data-save-state=conflict],.game-save-state[data-save-state=failed],.game-save-state[data-save-state=too-large]{color:var(--danger,#b4532a);white-space:normal;text-align:right;line-height:1.3}
.game-tool-actions{display:flex;gap:4px;align-items:center;flex-shrink:0}
.game-display-open,.game-display-open body{overflow:hidden;overscroll-behavior:none}
.game-display-open .page{animation:none!important;transform:none!important}
.game-shell.game-display-active{display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;border:0;border-radius:0;background:#151a1e}
.game-shell.game-display-expanded{position:fixed;inset:0;z-index:1000;width:100vw;height:100vh;height:100dvh}
.game-shell:fullscreen{width:100%;height:100%;margin:0;padding:0}
.game-shell:fullscreen::backdrop{background:#151a1e}
.work-media .game-shell.game-display-active .game-frame{flex:1;min-height:0;height:0;width:100%;border-radius:0}
.game-display-active .game-tools{padding-top:max(6px,env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.game-display-active .game-result{flex-shrink:0;max-height:30dvh;overflow:auto;padding-bottom:max(15px,env(safe-area-inset-bottom))}
@media(max-width:480px){.game-tools{gap:6px;padding-inline:8px}.game-tools .button.small{padding:7px 9px}.game-title{font-size:11px}.game-save-state[data-save-state=saved]{display:none}}

.account-menu{position:relative;flex-shrink:0}
.account-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:4px 8px;border-radius:24px;color:var(--text-secondary)}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary:hover,.account-menu[open]>summary{background:var(--surface-hover);color:var(--text)}
.account-trigger .identity-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-chevron{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.account-menu[open] .account-chevron{transform:rotate(180deg)}
.account-options{position:absolute;z-index:40;right:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 28px);max-height:calc(100vh - 88px);max-height:calc(100dvh - 88px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:var(--surface-raised);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-popover);color:var(--text)}
.account-identity{display:flex;align-items:center;gap:12px;padding:12px 10px 16px}
.account-identity>div{min-width:0}
.account-identity>div>span{display:block;margin-bottom:3px;font-size:11px;color:var(--text-secondary)}
.account-identity strong{display:block;font-size:14px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.account-group,.account-session{border-top:1px solid var(--line);padding-top:8px}
.account-group{padding-bottom:8px}
.account-group-label{margin:2px 10px 4px;font-size:11px;line-height:1.5;font-weight:500;color:var(--text-secondary)}
.account-options :is(a,button){display:flex;align-items:center;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--text);font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:normal;text-align:start;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.account-options :is(a,button):hover{background:var(--surface-hover)}
.account-options :is(a,button):focus-visible{outline:2px solid var(--focus);outline-offset:-2px;background:var(--surface-hover)}
.account-session>a{color:var(--text-secondary)}
@media(max-width:650px){.account-menu>summary{padding:6px;justify-content:center}.account-chevron{display:none}.account-options{width:264px}}

/* Version labels describe the comment context, never a claim that it was played. */
.comment-meta{flex-wrap:wrap}
.comment-context{margin:24px 0 30px;padding:18px 20px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--soft)}
.comment-context[hidden]{display:none}.comment-context-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.comment-context-head h3{font-size:12px;font-weight:550;color:var(--text-secondary,var(--muted))}.comment-context-head button{background:transparent;border:0;padding:6px 0;font-size:11px;white-space:normal;text-align:right}.comment-context .comment-thread{border-bottom:0;padding-bottom:0}.comment-context .comment-highlight{border-radius:8px}.comment-context .comment-status{margin:12px 0}.comment-context .comments-retry{margin:4px 0 0}
@media(max-width:600px){.comment-context{padding:14px 12px}.comment-context-head{gap:12px}.comment-context .comment-replies{margin-left:20px}}

#work-category-form{max-width:420px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
#site-shell{min-height:100svh;display:flex;flex-direction:column}
#site-shell>#main{flex:1;width:100%}
.discovery-page .feed-pagination:has(>button[hidden]){display:none}

/* Feed content type stays separate from work category. Cards are portfolios,
   never play surfaces, and never carry work impression/preview attributes. */
.feed-kind{display:inline-flex;align-items:center;font-size:var(--type-caption);font-weight:var(--weight-control);color:var(--text-secondary)}
.feed-card-tile{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;box-shadow:0 3px 15px #00000004}
.feed-card-entry{display:block;padding:19px;color:inherit;text-decoration:none}
.feed-card-entry:hover{background:var(--soft)}
.feed-card-entry:focus-visible{outline:3px solid var(--text);outline-offset:-3px}
.feed-card-identity{margin:20px 0 14px}
.feed-card-avatar{width:44px;height:44px;display:flex;margin:0 0 12px;border-radius:50%;font-size:20px}
.feed-card-identity .tile-title{font-size:var(--type-content-title);line-height:1.5;margin:0 0 6px;white-space:normal;overflow-wrap:anywhere}
.feed-card-identity p,.feed-card-bio{font-size:var(--type-secondary);line-height:1.6;color:var(--text-secondary);margin:0}
.feed-card-bio{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px}
.feed-card-works{display:grid;gap:9px;border-top:1px solid var(--line);padding-top:14px}
.feed-card-works>div{display:flex;align-items:center;gap:10px;min-width:0;font-size:var(--type-secondary)}
.feed-card-works img,.feed-card-work-placeholder{width:42px;height:34px;object-fit:cover;flex-shrink:0;border-radius:4px;background:var(--soft)}
.feed-card-work-placeholder{display:grid;place-items:center}
.feed-card-works span{min-width:0;overflow-wrap:anywhere}
.feed-card-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;font-size:var(--type-caption);color:var(--text-secondary)}
.feed-card-footer strong{color:var(--text);font-weight:500}
.card-feed-settings{border:1px solid var(--line);border-radius:12px;padding:18px;margin:12px 0 24px;background:var(--surface)}
.card-feed-settings h2{font-size:16px;margin:0 0 8px}
.card-feed-settings p{font-size:13px;line-height:1.6;color:var(--text-secondary);margin:8px 0}
.card-feed-settings .button{margin:8px 0}
@media(max-width:600px){.feed-card-entry{padding:13px}.feed-card-works>div{gap:7px}.feed-card-footer{gap:8px}}

.feed-controls .filters[hidden]{display:none}

/* Feed card: 12px covers with nothing printed on them; the meta block under it is always shown.
   Hover shows a white play button in the middle of the cover. */
.feed-grid .work-tile,.feed-grid .work-entry,.feed-grid .cover{border-radius:12px}
.feed-grid .work-tile:has(.work-entry:focus-visible){outline:2px solid var(--text);outline-offset:5px}
.feed-grid .cover-action{display:none;align-items:center;gap:7px;inset:50% auto auto 50%;right:auto;bottom:auto;padding:12px 20px;border-radius:8px;background:#fff;color:#111;font-size:15px;font-weight:650;white-space:nowrap;box-shadow:0 6px 20px #0000002e;transform:translate(-50%,calc(-50% + 4px))}
.feed-grid .work-tile:hover .cover-action,.feed-grid .work-entry:focus-visible .cover-action{transform:translate(-50%,-50%)}
.feed-grid .cover-action svg{width:12px;height:12px;fill:currentColor}
@media(hover:hover) and (pointer:fine){.feed-grid .cover-action{display:inline-flex}}
.feed-grid .tile-title{font-weight:750}
.feed-grid .tile-bottom{grid-template-columns:minmax(0,1fr) auto}
.feed-grid .work-actions{justify-self:end}

/* Meta (Webflow): avatar across two lines; title with ♡ and views on the first line, the author in grey
   under it. Counts are quiet: small grey numbers, lighter icons (Dribbble). */
.feed-grid .tile-meta{display:flex;align-items:flex-start;gap:10px;padding:12px 2px 0}
.feed-grid .tile-avatar{flex:none;display:block;margin-top:1px}
.feed-grid .tile-avatar .feed-author-avatar{width:28px;height:28px}
.feed-grid .tile-meta .tile-copy{flex:1;min-width:0}
.feed-grid .tile-head{display:flex;align-items:center;gap:10px;min-width:0}
.feed-grid .tile-meta .tile-title{flex:1;min-width:0;-webkit-line-clamp:1;font-size:15px;font-weight:600;line-height:1.45}
.feed-grid .tile-meta .creator-link{display:flex;margin-top:0;font-size:13px;line-height:1.4;color:var(--text-secondary)}
.feed-grid .tile-meta .creator-link:hover{color:var(--text)}
.feed-grid .tile-head .work-actions{flex:none;display:flex;align-items:center;gap:10px;margin:0}
.feed-grid .tile-head .work-actions button,.feed-grid .work-like-count,.feed-grid .work-view-count{display:inline-flex;align-items:center;gap:4px;min-width:0;min-height:24px;padding:0;border:0;background:none;color:var(--text-secondary);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.feed-grid .tile-head .work-actions button:hover{background:none;color:var(--text)}
.feed-grid .tile-head .work-actions button.liked{color:var(--accent)}
.feed-grid .tile-head .work-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;opacity:.6}
.feed-grid .tile-head .work-actions .liked svg{opacity:1}
.feed-grid .tile-head .work-actions button.liked svg{fill:currentColor}
.feed-grid .work-view-count svg{fill:currentColor!important;stroke:none!important}
@media(max-width:720px){
  .feed-grid .tile-meta{gap:8px;padding-top:8px}
  .feed-grid .tile-avatar .feed-author-avatar{width:24px;height:24px}
  .feed-grid .tile-head{gap:6px}
  .feed-grid .tile-head .work-actions{gap:7px}
  .feed-grid .tile-head .work-actions button,.feed-grid .work-like-count,.feed-grid .work-view-count{font-size:11.5px;gap:3px}
  .feed-grid .tile-head .work-actions svg{width:13px;height:13px}
  .feed-grid .tile-meta .creator-link{font-size:12px}
}
/* A narrow card (phones, tablets, the small tiles beside the large one): the title gets the
   whole first line and the counts move beside the author. Measured on the card, not the window. */
.feed-grid .work-tile{container-type:inline-size}
@container (max-width:240px){
  .feed-grid .tile-meta .tile-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title title" "author stats";align-items:center;column-gap:6px}
  .feed-grid .tile-head{display:contents}
  .feed-grid .tile-meta .tile-title{grid-area:title}
  .feed-grid .tile-meta .creator-link{grid-area:author;min-width:0}
  .feed-grid .tile-head .work-actions{grid-area:stats}
}
/* A larger tap area without a larger row. */
@media(pointer:coarse){.feed-grid .tile-head .work-actions button{position:relative;min-width:0;min-height:24px}.feed-grid .tile-head .work-actions button::after{content:"";position:absolute;inset:-10px -6px}}

/* Feed shelves: most liked as one large and four small tiles, then one sideways row per category. */
.feed-shelves:empty{display:none}
.feed-shelf{margin-bottom:48px}
.feed-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.feed-shelf-head h2,.feed-shelf-all{display:flex;align-items:center;gap:9px;margin:0;font-size:24px;font-weight:700;letter-spacing:-.01em;color:var(--text)}
.feed-shelf-all{margin:4px 0 16px}
.feed-shelf-more{min-height:36px;padding:0 4px;border:0;background:none;color:var(--text);font-weight:650;font-size:14px;cursor:pointer}
.feed-shelf-more:hover{text-decoration:underline;text-underline-offset:4px;background:none}
.feed-shelves .cover{aspect-ratio:16/10}
.feed-shelves .cover img{object-fit:cover}
.feed-grid.feed-featured{grid-template-columns:2fr 1fr 1fr;grid-template-rows:auto auto;gap:28px 24px;align-items:stretch}
.feed-featured .work-tile:first-child{grid-row:span 2;display:flex;flex-direction:column;align-self:stretch}
.feed-featured .work-tile:first-child .work-tile-media,.feed-featured .work-tile:first-child .work-entry{flex:1;display:flex;flex-direction:column}
.feed-featured .work-tile:first-child .cover{flex:1;aspect-ratio:auto;min-height:260px}
.feed-featured .work-tile:first-child .tile-title{font-size:18px}
.feed-grid.feed-shelf-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 72px)/4);gap:24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
/* Room for the hover outline, which a scrolling row would otherwise clip. */
.feed-shelves .feed-grid.feed-shelf-row{padding:8px;margin:-8px -8px 0;scroll-padding-inline:8px}
.feed-shelf-row::-webkit-scrollbar{display:none}
.feed-shelf-row>.work-tile{scroll-snap-align:start}
@media(max-width:1000px){.feed-grid.feed-shelf-row{grid-auto-columns:calc((100% - 48px)/3)}}
@media(max-width:720px){
  .feed-shelf{margin-bottom:30px}
  .feed-shelf-head h2,.feed-shelf-all{font-size:20px}
  .feed-grid.feed-featured{grid-template-columns:1fr 1fr;gap:20px 12px}
  .feed-featured .work-tile:first-child{grid-column:span 2;grid-row:auto}
  .feed-featured .work-tile:first-child .cover{aspect-ratio:16/10;min-height:0}
  .feed-featured .work-tile:first-child .tile-title{font-size:16px}
  .feed-shelves .feed-grid.feed-shelf-row{grid-auto-columns:42%;gap:12px;margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}
}
.feed-featured .work-tile:first-child .cover::before{content:"";position:absolute;inset:0;background:var(--cover-src,none) center/cover no-repeat;filter:blur(24px) saturate(1.1);transform:scale(1.3)}
.feed-featured .work-tile:first-child .cover img{z-index:1;object-fit:contain}
@media(max-width:720px){.feed-featured .work-tile:first-child .cover::before{display:none}.feed-featured .work-tile:first-child .cover img{object-fit:cover}}
