:root{color-scheme:light;background:#fff7eb;color:#443323;--rail-width:44px;--rail-gap:8px;--feed-cream:#fff7eb;--feed-ink:#443323}
.feed-shell{position:fixed;left:50%;top:0;transform:translateX(-50%);width:min(462px,100%);height:100dvh;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:grid;grid-template-columns:minmax(0,1fr) var(--rail-width);gap:var(--rail-gap);align-items:stretch}
#feed{position:relative;inset:auto;height:100%;width:100%;overflow:hidden;min-width:0}
#feed article,body.comments-open #feed article{position:absolute;inset:0;display:grid;height:100%;width:100%;max-width:none;grid-template-rows:minmax(0,1fr) 70px;gap:8px;padding:0;margin:0;min-width:0}
.game-viewport{border-radius:17px;min-height:0;isolation:isolate}
.game-viewport>.stage{border:0;border-radius:17px;background:#000;width:100%;height:100%}
.empty{color:#746553;text-align:center;padding:10px;font-size:13px}
iframe.fitted{transform:scale(var(--game-scale,0));transform-origin:center center}
#feed article>footer,body.controls-visible #feed article>footer{position:static;inset:auto;z-index:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;visibility:visible;pointer-events:auto;padding:0;border:0;border-radius:0;box-shadow:none;background:none;color:var(--feed-ink);min-width:0}
.game-info{display:flex;align-items:baseline;gap:7px;height:21px;padding:0 2px;min-width:0;overflow:hidden}
.game-info .game-title{font-size:12px;font-weight:650;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.game-info .byline{color:#8b6a4e;font-size:11px;font-weight:400;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:46%;min-width:0;padding:0;flex:0 1 auto;text-decoration:none}
.game-info .byline:hover{text-decoration:underline}
#feed .actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:1px;min-width:0;height:44px;padding:0 3px;background:#f8d6b477;border-radius:12px;flex:none}
#feed .actions button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:1 1 auto;border:0;border-radius:9px;background:none;box-shadow:none;color:var(--feed-ink);font-size:11px;font-weight:500;min-width:0;min-height:44px;height:44px;padding:0 4px;touch-action:manipulation}
#feed .actions button:hover{background:#edbb8d40}
#feed .actions .reaction[aria-pressed=true]{background:#efbd8d88;color:#8e461d}
#feed .actions svg{height:16px;width:16px;flex:none;stroke-width:1.8}
#feed .action-count{position:static;display:inline;min-width:0;padding:0;border:0;border-radius:0;background:none;color:#8b6649;font-size:10px;font-weight:500;line-height:normal}
#feed .reaction[aria-pressed=true] .action-count{background:none;color:inherit;border:0}
#feed .actions .game-more,body.controls-visible #feed .game-more{position:static;inset:auto;flex:0 0 28px;width:28px;min-width:28px;min-height:44px;height:44px;font-size:20px;padding:0;background:none;color:inherit;border-radius:9px}
.feed-rail{display:flex;flex-direction:column;gap:8px;min-height:0;min-width:0;z-index:4}
.rail-tools{display:flex;flex-direction:column;gap:8px;flex:none}
.feed-rail .account-link,.feed-rail .search-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;flex:none;touch-action:manipulation}
.feed-rail .account-link{background:#e8c4a0;border:3px solid #fff3e6;border-radius:50%;color:var(--feed-ink);font-size:16px;font-weight:650}
.feed-rail .account-link:not(.signed-in)::before{content:'';display:block;width:21px;height:21px;background:currentColor;mask:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="none" stroke="black" stroke-width="1.8"/><path d="M4 21v-2a8 8 0 0 1 16 0v2" fill="none" stroke="black" stroke-width="1.8"/></svg>') center/contain no-repeat}
.feed-rail .search-button{border:0;border-radius:14px;background:#f4dfc9;color:var(--feed-ink)}
.feed-rail .search-button .magnifier{height:15px;width:15px}
.feed-rail .game-switcher,body.comments-open .feed-rail .game-switcher{position:relative;inset:auto;top:auto;right:auto;transform:none;display:flex;flex-direction:column;flex:1 1 0;min-height:88px;width:44px;border:0;border-radius:20px;background:#ee9a526b;box-shadow:inset 0 1px 0 #fff7;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;backdrop-filter:blur(12px) saturate(125%);-webkit-backdrop-filter:blur(12px) saturate(125%)}
.feed-rail .game-switcher button{width:100%;height:auto;min-height:44px;flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:10px 0;background:#e68b4560;color:#79502f;border:0;border-radius:0;touch-action:none}
.feed-rail .game-switcher #next-game{background:#ffbd777d;border-top:1px solid #9f61252b}
.feed-rail .game-switcher button:hover{filter:brightness(1.035)}
.feed-rail .game-switcher button:active{filter:brightness(.95)}
.feed-rail .game-switcher button:disabled{opacity:.4;cursor:default;filter:none;pointer-events:none}
.feed-rail .game-switcher .switch-label{font-size:11px;font-weight:400;line-height:1.2;writing-mode:vertical-rl;letter-spacing:3px;pointer-events:none}
.feed-rail .game-switcher svg{width:25px;height:25px;stroke-width:1.8;pointer-events:none;flex:none}
.feed-logo{height:44px;min-height:44px;width:44px;display:grid;place-items:center;flex:none;text-decoration:none;color:#8b542b;font-size:25px;font-weight:800;letter-spacing:-2px;line-height:1;touch-action:manipulation}
.feed-logo .logo-dot{color:#dc823d}
.feed-rail button:focus-visible,.feed-logo:focus-visible,.actions button:focus-visible,.account-link:focus-visible{outline:2px solid #8b542b;outline-offset:2px;z-index:1}
.game-switcher button:focus-visible{outline-offset:-4px}
.search-dialog,.report-dialog,.comments-sheet{color:#faf8f2;color-scheme:dark}
.creator-page{color:#faf8f2;background:#101014;max-width:650px;color-scheme:dark}
.action-status{bottom:100px;background:#443b30ed;color:#fff7eb;font-size:12px;max-width:calc(100% - 80px);text-align:center;pointer-events:none}
.save-hint{background:#fff3df;color:#482515}
.save-hint h2{font-size:17px}
.save-hint::before{right:var(--hint-arrow-right,18px)}
#feed article{container-type:inline-size;container-name:game-column}
@container game-column (max-width:240px){#feed .actions .action-label{display:none}#feed .actions button{gap:3px;padding:0 2px}#feed .game-info .byline{max-width:40%}}
@media(max-height:450px){.feed-rail{gap:5px}.rail-tools{gap:5px}.feed-rail .game-switcher button{gap:5px;padding:4px 0}.feed-rail .game-switcher .switch-label{display:none}}
@media(prefers-reduced-motion:reduce){.feed-rail *{transition:none!important}}

/* Compact top and bottom panels leave the full middle width to the game. */
.feed-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:36px minmax(0,1fr);gap:4px;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
.feed-rail{grid-row:1;grid-column:1;flex-direction:row;align-items:center;justify-content:space-between}
.feed-logo{order:-1;width:auto;height:36px;min-height:36px;font-size:24px;letter-spacing:-1.4px;padding:0 6px}
.feed-rail .account-link,.feed-rail .search-button{width:36px;height:36px;min-width:36px;min-height:36px}
.rail-tools{flex-direction:row-reverse;gap:8px}
#feed{grid-row:2;grid-column:1;min-height:0}
#feed article,body.comments-open #feed article{grid-template-rows:minmax(0,1fr) 73px;gap:6px}
#feed article>footer,body.controls-visible #feed article>footer{position:relative;gap:4px}
.game-info{padding-right:28px}
#feed .actions{display:grid;grid-template-columns:1fr 1fr 2fr 2fr;gap:6px;padding:0;background:none;height:44px;width:100%}
#feed .actions button{height:44px;min-height:44px;padding:0;flex:none;border-radius:13px;background:#f4dfc9}
#feed .actions svg{width:20px;height:20px}
#feed .actions .comments-button{grid-column:1;grid-row:1}
#feed .actions .share{grid-column:2;grid-row:1}
#feed .actions .reaction{grid-column:3;grid-row:1;background:#fff3e4;color:#79502f;font-size:16px;font-weight:750;gap:5px}
#feed .actions .reaction[aria-pressed=true]{background:#d98744;color:#fff7eb}
#feed .actions .action-label{display:none}
#feed .actions .reaction .action-label{display:inline}
#feed .action-count{position:absolute;top:3px;right:6px;font-size:10px}
#feed .actions .game-more,body.controls-visible #feed .game-more{position:absolute;top:0;right:0;width:24px;min-width:24px;height:21px;min-height:21px;border-radius:6px;background:none}
#feed .actions .game-more svg{width:17px;height:17px}
.feed-shell .game-switcher,body.comments-open .feed-shell .game-switcher{position:static;inset:auto;transform:none;grid-column:4;grid-row:1;display:flex;flex-direction:row;width:100%;height:44px;min-height:44px;margin:0;border:0;border-radius:13px;background:#edc29c;box-shadow:none;overflow:hidden;touch-action:none}
.feed-shell .game-switcher button{display:grid;place-items:center;flex:1;min-width:0;width:50%;height:44px;min-height:44px;border:0;border-radius:0;background:#e7b58a;color:#79502f;padding:0;touch-action:none}
.feed-shell .game-switcher #next-game{background:#ffcc94;border-left:1px solid #9f61252b;border-top:0}
.feed-shell .game-switcher .switch-label{display:none}
.feed-shell .game-switcher svg{width:24px;height:24px;pointer-events:none}
.feed-shell .game-switcher button:disabled{opacity:.35;pointer-events:none}
.feed-shell .game-switcher button:active{filter:brightness(.93)}
.feed-shell[hidden]{display:none}
@media (orientation:landscape) and (max-height:600px){
 .feed-shell{grid-template-columns:52px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px}
 .feed-rail{grid-row:1;grid-column:1;flex-direction:column;justify-content:space-between;gap:8px}
 .feed-logo{writing-mode:vertical-rl;text-orientation:mixed;font-size:24px;padding:5px 0;height:auto;min-height:0}
 .rail-tools{flex-direction:column;gap:6px}
 #feed{grid-row:1;grid-column:2}
 #feed article,body.comments-open #feed article{grid-template-columns:minmax(0,1fr) 68px;grid-template-rows:minmax(0,1fr);gap:8px}
 #feed article>.game-viewport{grid-row:1;grid-column:1}
 #feed article>footer,body.controls-visible #feed article>footer{grid-row:1;grid-column:2;min-height:0}
 .game-info{display:none}
 #feed .actions{position:relative;display:block;height:100%;min-height:0;padding:0}
 #feed .actions .comments-button,#feed .actions .share{position:absolute;top:0;width:32px;height:40px;min-height:40px;border-radius:12px}
 #feed .actions .comments-button{right:0}
 #feed .actions .share{left:0}
 #feed .actions .reaction{position:absolute;top:50%;left:0;transform:translateY(-50%);width:100%;height:52px;font-size:15px}
 #feed .actions .reaction svg{width:16px;height:16px}
 #feed .actions .game-more,body.controls-visible #feed .game-more{top:46px;right:22px}
 .feed-shell .game-switcher,body.comments-open .feed-shell .game-switcher{position:absolute;bottom:0;left:0;top:auto;width:100%;height:88px;min-height:88px;flex-direction:column}
 .feed-shell .game-switcher button{width:100%;height:44px;min-height:44px}
 .feed-shell .game-switcher svg{transform:rotate(90deg)}
 .feed-shell .game-switcher #next-game{border-left:0;border-top:1px solid #9f61252b}
 .action-status{bottom:20px}
}

/* Credits live in the lower-left gutter without taking height from the game. */
.game-viewport{display:block;border-radius:17px;overflow:hidden}
.source-dock{--source-left:6px;position:absolute;left:var(--source-left);bottom:16px;width:28px;display:flex;flex-direction:column;align-items:center;gap:2px;z-index:3;touch-action:manipulation}
#feed .source-toggle,#feed .source-dock .game-more,body.controls-visible #feed .source-dock .game-more{position:static;inset:auto;display:grid;place-items:center;width:28px;min-width:28px;min-height:30px;height:30px;padding:0;border:0;border-radius:9px;background:#fff7ebd9;color:#72583f;box-shadow:none;font-size:10px;line-height:1;touch-action:manipulation}
#feed .source-dock.over-game button{background:#fff7ebed;box-shadow:0 1px 6px #44332318}
#feed .source-toggle:hover,#feed .source-toggle[aria-expanded=true],#feed .source-dock .game-more:hover{background:#f4dfc9}
#feed .source-dock .game-more svg{width:17px;height:17px}
#feed .source-dock .game-info{position:absolute;left:calc(100% + 6px);bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:min(280px,calc(100cqw - var(--source-left) - 46px));height:auto;max-height:60vh;overflow:auto;padding:12px 14px;border:1px solid #dec8af;border-radius:13px;background:#fff7ebf5;box-shadow:0 4px 18px #44332318;opacity:0;visibility:hidden;transform:translateX(-12px) scale(.94);transform-origin:left bottom;transition:opacity 180ms ease,transform 220ms ease,visibility 220ms;pointer-events:none;touch-action:pan-y}
#feed .source-open .game-info{opacity:1;visibility:visible;transform:translateX(0) scale(1);pointer-events:auto}
#feed .source-dock .game-title{font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;flex:none}
#feed .source-dock .byline{font-size:11px;line-height:1.5;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:0;flex:none}
#feed .source-dock .game-source{font-size:11px;color:#8b542b;line-height:1.5;text-underline-offset:3px}
.source-toggle:focus-visible,.source-dock .game-more:focus-visible,.game-info a:focus-visible{outline:2px solid #8b542b;outline-offset:2px}
@media(prefers-reduced-motion:reduce){#feed .source-dock .game-info{transition:none}}
#feed article,body.comments-open #feed article{grid-template-rows:minmax(0,1fr) 44px;gap:4px}
@media (orientation:landscape) and (max-height:600px){
 #feed article,body.comments-open #feed article{grid-template-rows:minmax(0,1fr)}
}
/* Keep the number beside its action, with enough contrast to read at a glance. */
#feed .actions .action-count{position:static;display:inline-flex;align-items:center;justify-content:center;min-width:1ch;font-size:13px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums;color:#593418;padding:0;background:none;flex:none}
#feed .actions button{gap:5px}
#feed .actions .share svg{width:18px;height:18px}
#feed .actions .reaction .action-count{font-size:14px;font-weight:800;min-width:22px;min-height:24px;padding:3px 5px;border-radius:7px;background:#fff7eb70;color:inherit}
#feed .actions .share[data-has-count=true]{background:#e7bd91;color:#593418}
#feed .actions .share[data-has-count=true] .action-count{font-size:14px;font-weight:800}
#feed .actions button[data-has-count=false] .action-count{color:#846b55;font-weight:600}
#feed .actions .reaction[aria-pressed=true] .action-count{background:#fff7eb33;color:inherit}
@media(orientation:landscape) and (max-height:600px){#feed .actions .share{width:40px}#feed .actions .comments-button{width:26px}#feed .actions .share svg{width:15px;height:15px}#feed .actions .share .action-count{font-size:12px}#feed .actions .reaction{gap:3px;font-size:14px}#feed .actions .reaction .action-count{font-size:12px;min-width:17px;padding:3px}}
.save-feedback{position:fixed;z-index:20;max-width:calc(100vw - 24px);padding:9px 13px;border:1px solid #d8b28c;border-radius:12px;background:#fff7eb;color:#593418;box-shadow:0 4px 16px #44332320;font-size:12px;font-weight:650;pointer-events:none}
.save-feedback::before{content:'';position:absolute;top:-5px;right:var(--save-arrow-right,12px);width:8px;height:8px;transform:rotate(45deg);border-top:1px solid #d8b28c;border-left:1px solid #d8b28c;background:#fff7eb}
.feed-rail .account-link.saved-feedback{box-shadow:0 0 0 3px #d9874470}
.feed-rail .rail-tools{order:1}
.saved-list-label{order:0;flex:1;min-width:0;text-align:center;white-space:nowrap;font-size:12px;font-weight:700;color:#79502f;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
@media(orientation:landscape) and (max-height:600px){.saved-list-label{position:absolute;left:50%;top:6px;transform:translateX(-50%);width:auto;max-width:50%;padding:4px 9px;border-radius:8px;background:#fff7ebed;z-index:4;font-size:11px}}
#feed .actions .comments-button .action-label{display:inline;font-size:13px;font-weight:750;white-space:nowrap}
.comments-sheet{background:#fff7eb;color:#443323;color-scheme:light;border-color:#dcc6ae}
.comments-grip{border-bottom-color:#e3d1bc;padding-top:19px;padding-bottom:11px}
.comments-grip::before{background:#cbb299}
.comments-close{color:#79502f;min-width:40px;min-height:36px;top:8px}
.comments-content{padding:10px 16px}
.rating-summary{padding:0 0 10px;border-bottom:1px solid #e7d8c6}
#rating-total{margin:0 0 8px;font-size:13px;font-weight:700}
.rating-row{display:flex;align-items:center;gap:10px;margin:6px 0;min-height:20px;font-size:12px}
.rating-stars{color:#b56a22;letter-spacing:2px;width:53px;flex:none}
.rating-bar{height:7px;flex:1;background:#eddfcf;border-radius:8px;overflow:hidden}
.rating-bar i{display:block;height:100%;background:#dd9b51;border-radius:8px;width:0;transition:width .18s ease}
.rating-count{min-width:48px;text-align:right;font-variant-numeric:tabular-nums;color:#79502f}
.comments-message{color:#88715d;margin:10px 0;font-size:12px}
.comment-avatar{background:#edd8bf;color:#79502f}
.comment-time{color:#9b8068}
.comment-stars{display:inline-block;margin-left:8px;color:#a86724;letter-spacing:1px;font-size:11px}
.comments-form{display:block;padding:10px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e0ccb6;background:#fff7eb;max-height:65%;overflow-y:auto;touch-action:pan-y}
.rating-choice{border:0;padding:0;display:flex;gap:8px;margin:0 0 8px;min-width:0}
.rating-choice legend{font-size:12px;font-weight:650;margin-bottom:5px;padding:0}
.rating-choice label{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:36px;border-radius:9px;background:#f3e6d6;cursor:pointer;touch-action:manipulation}
.rating-choice input{position:absolute;opacity:0;width:100%;height:100%;margin:0;inset:0;cursor:pointer}
.rating-choice span{color:#aa6727;font-size:17px;pointer-events:none}
.rating-choice small{font-size:11px;color:#82664b;pointer-events:none}
.rating-choice label:has(input:checked){background:#e6ae70;box-shadow:inset 0 0 0 1px #b87936}
.rating-choice input:focus-visible+span{outline:2px solid #8b542b;outline-offset:3px}
.review-label{font-size:12px;font-weight:650;display:block;margin-bottom:4px}
.comments-form textarea{display:block;width:100%;min-height:52px;max-height:120px;resize:vertical;box-sizing:border-box;border:1px solid #d9c1a6;border-radius:10px;padding:8px 10px;background:#fffdf8;color:#443323;font:16px system-ui;line-height:1.4;touch-action:pan-y}
.rating-submit-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.rating-form-status{margin:0;font-size:11px;color:#84694e;line-height:1.4}
.comments-form [type=submit]{flex:none;min-height:34px;border-radius:9px;padding:7px 14px;background:#d78e48;color:#fffaf2;font-size:12px;font-weight:700;touch-action:manipulation}
.comments-form [type=submit]:disabled{opacity:.5}
#ratings-reload{padding:8px 12px;border:1px solid #d8b995;border-radius:8px;background:#f3dfc6;color:#79502f;cursor:pointer}
@media(orientation:landscape) and (max-height:600px){#feed .actions .comments-button{width:28px}#feed .actions .comments-button .action-label{font-size:12px}.comments-sheet .comments-form{max-height:70%}.rating-choice{margin-bottom:4px}.rating-choice label{min-height:30px}}
@media(prefers-reduced-motion:reduce){.rating-bar i{transition:none}}
.rating-summary-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.rating-summary-header #rating-total{margin:0}
#rating-edit{border:1px solid #d8b995;border-radius:8px;background:#f3dfc6;color:#79502f;padding:6px 10px;font:600 11px system-ui;cursor:pointer;touch-action:manipulation;flex:none}
.rating-choice .no-rating{font:600 12px system-ui;color:#79502f}
.comments-list .own-review{background:#f7e8d6;border-radius:12px;padding:12px 8px;margin:8px -8px}

/* Expand the existing frame in place so the current game keeps running. */
#feed .game-expand{position:absolute;right:8px;bottom:8px;z-index:3;display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:6px;border:1px solid #72583f25;border-radius:9px;background:#fff7ebdf;color:#72583f;box-shadow:0 1px 6px #44332318;touch-action:manipulation}
#feed .game-expand svg{width:20px;height:20px;pointer-events:none}
#feed .game-expand:hover{background:#f4dfc9}
#feed .game-expand:focus-visible,#feed .expanded-controls button:focus-visible{outline:2px solid #168bff;outline-offset:-3px}
#feed .expanded-controls{display:none}
body.game-expanded .feed-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);z-index:10;background:var(--feed-cream)}
body.game-expanded .feed-rail{display:none}
body.game-expanded #feed{grid-row:1;grid-column:1}
body.game-expanded #feed article{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0}
body.game-expanded #feed article>.game-viewport{grid-row:1;grid-column:1;border-radius:0}
body.game-expanded .game-viewport>.stage{border-radius:0}
body.game-expanded #feed article>footer,body.game-expanded #feed .source-dock,body.game-expanded #feed .game-expand{display:none}
body.game-expanded #feed .expanded-controls{grid-row:2;grid-column:1;display:flex;gap:6px;align-items:center;width:100%;height:calc(36px + env(safe-area-inset-bottom));border-top:1px solid #dcc6ae;background:#fff7eb;padding:3px 6px calc(3px + env(safe-area-inset-bottom));touch-action:manipulation}
body.game-expanded #feed .expanded-controls button{flex:1;min-width:0;height:28px;min-height:28px;display:flex;align-items:center;justify-content:center;padding:0 12px;border:0;border-radius:8px;background:#593d2a;color:#fff7eb;font:750 12px system-ui;box-shadow:0 1px 3px #44332325;touch-action:manipulation}
body.game-expanded #feed .expanded-controls button:hover{background:#3e291b}
body.game-expanded #feed .expanded-controls button:active{background:#2e1e14}
#feed .source-dock .creator-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:10px 12px;border:1px solid #c9a884;border-radius:10px;background:#f4dfc9;color:#593d2a;text-decoration:none;white-space:normal;box-sizing:border-box;touch-action:manipulation}
#feed .source-dock .creator-card:hover{background:#edd0af;border-color:#a77b52}
#feed .source-dock .creator-card .byline{max-width:100%;text-decoration:none}

#feed .source-dock .creator-card{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.creator-card-details{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.creator-card-action{display:inline-flex;align-items:center;gap:4px;flex:none;white-space:nowrap;font-size:11px;font-weight:750;color:#79502f}
.creator-card-action>span{font-size:20px;line-height:1}
.creator-page .works{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-top:20px}
.creator-page .works a{aspect-ratio:390/700;border:0;border-radius:0;background:#202029;color:#fff7eb}
.creator-page .works img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.creator-page .work-title{font-size:13px;line-height:1.25;padding:28px 10px 10px;font-weight:800}

/* A passive game-sized surface stays behind the iframe, without gating loading. */
.game-viewport>.stage::before{content:"";position:absolute;left:50%;top:50%;translate:-50% -50%;width:var(--surface-width,0px);height:var(--surface-height,0px);background:var(--surface-color,#000);pointer-events:none}
.game-viewport>.stage>iframe{position:relative}
.game-viewport>.stage>iframe.fitted{position:absolute}

/* The light switch controls the full PlayFeed page, including its frame. */
.game-info-heading{display:flex;align-items:center;gap:7px;width:100%;min-width:0}
#feed .source-dock .game-info-heading .creator-card{flex:1;min-width:0;width:auto}
#feed .source-dock .game-edit{display:grid;place-items:center;flex:0 0 34px;width:34px;height:36px;min-height:36px;padding:7px;border:1px solid #c9a884;border-radius:9px;background:#f4dfc9;color:#79502f;cursor:pointer;touch-action:manipulation}
#feed .source-dock .game-edit[hidden]{display:none}
.game-edit svg{width:20px;height:20px}
#game-edit-dialog{width:min(380px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #d9c1a6;border-radius:18px;padding:22px;background:#fff7eb;color:#443323;color-scheme:light;touch-action:pan-y}
#game-edit-dialog::backdrop{background:#15191080;backdrop-filter:blur(3px)}
#game-edit-dialog h2{font-size:18px;margin:0 0 20px}
#game-edit-dialog label{display:block;font-size:13px;font-weight:650;margin:15px 0}
#game-edit-dialog input{display:block;width:100%;min-width:0;margin-top:7px;padding:11px 12px;border:1px solid #cfb496;border-radius:10px;background:#fffdf8;color:#443323;font:16px system-ui;user-select:text;touch-action:manipulation}
#game-edit-status{font-size:12px;line-height:1.6;color:#8a502f;min-height:19px;margin:12px 0}
.game-edit-actions{display:flex;justify-content:flex-end;gap:8px}
#game-edit-dialog button{padding:9px 15px;border:1px solid #d4b697;background:#f4dfc9;color:#79502f;font-size:13px;font-weight:700;touch-action:manipulation}
#game-edit-dialog button[type=submit]{background:#79502f;color:#fff7eb;border-color:#79502f}
#game-edit-dialog button:disabled{opacity:.5;cursor:wait}
.switch-dark #game-edit-dialog{background:#293323;color:#d3ddc8;border-color:#4b5841}
.switch-dark #game-edit-dialog input,.switch-dark #game-edit-dialog button{background:#35402e;color:#d3ddc8;border-color:#4b5841}
.switch-dark #game-edit-status{color:#b6c7a5}
:root.switch-dark{color-scheme:dark;background:#20251f;color:#bdc8b2;--feed-cream:#20251f;--feed-ink:#bdc8b2}
.switch-dark body,.switch-dark .feed-shell{background:#20251f;color:#bdc8b2}
.switch-dark .game-viewport>.stage{background:#20251f}
.switch-dark .game-viewport>.stage::before{background:#20251f}
.switch-dark .feed-logo,.switch-dark .feed-logo .logo-dot,.switch-dark .saved-list-label{color:#aebba1}
.switch-dark .feed-rail .search-button,.switch-dark .feed-rail .account-link{background:#35402e;color:#bdc8b2;border-color:#293323}
.switch-dark #feed .actions button,.switch-dark #feed .actions .reaction,.switch-dark .feed-shell .game-switcher,.switch-dark .feed-shell .game-switcher button,.switch-dark .feed-shell .game-switcher #next-game{background:#35402e;color:#bdc8b2;border-color:#4b5841}
.switch-dark #feed .actions .reaction[aria-pressed=true]{background:#566c42;color:#e6f2d9}
.switch-dark #feed .actions .action-count,.switch-dark #feed .actions button[data-has-count=false] .action-count{color:#aebba1}
.switch-dark #feed .actions .reaction .action-count{background:#ffffff0d}
.switch-dark #feed .game-expand,.switch-dark #feed .source-dock button,.switch-dark #feed .source-dock .game-info,.switch-dark #feed .source-dock .creator-card,.switch-dark #feed .expanded-controls,.switch-dark #feed .expanded-controls button{background:#2c3625;color:#bdc8b2;border-color:#4b5841}
.switch-dark #feed .source-dock .byline,.switch-dark #feed .source-dock .game-source,.switch-dark .creator-card-action{color:#aebba1}
.switch-dark .search-dialog,.switch-dark .report-dialog,.switch-dark .comments-sheet,.switch-dark .comments-form,.switch-dark .save-hint,.switch-dark .save-feedback{background:#293323;color:#d3ddc8;border-color:#4b5841}
.switch-dark .comments-form textarea,.switch-dark .search-dialog input,.switch-dark .rating-choice label,.switch-dark #rating-edit{background:#35402e;color:#d3ddc8;border-color:#4b5841}

/* Bottom controls: source, share, wide navigation, collection, member. */
#feed article,body.comments-open #feed article{grid-template-rows:minmax(0,1fr) 48px}
#feed .actions{grid-template-columns:minmax(40px,1fr) minmax(34px,.9fr) minmax(88px,2.4fr) minmax(34px,.9fr) minmax(40px,1fr);gap:4px;height:48px}
#feed .actions button{height:48px;min-height:48px;touch-action:manipulation;background:#edc29c}
#feed .actions .comments-button{grid-column:1}
#feed .actions .share{grid-column:2}
.feed-shell .game-switcher,body.comments-open .feed-shell .game-switcher{grid-column:3;justify-self:center;width:min(100%,180px);height:48px;min-height:48px}
.feed-shell .game-switcher button,.feed-shell .game-switcher #next-game{height:48px;min-height:48px;background:#edc29c}
#feed .actions .reaction{grid-column:4;font-size:12px;gap:0;padding:5px 0 0;overflow:hidden;background:#edc29c}
#feed .actions .share[data-has-count=true]{background:#edc29c}
#feed .actions .reaction svg{width:15px;height:15px}
#feed .actions .reaction .action-count{position:absolute;top:3px;right:4px;min-width:0;min-height:0;padding:0;font-size:9px;font-weight:600;line-height:1;background:none;border:0;border-radius:0}
#feed .actions .reaction[aria-pressed=true] .action-count{background:none}
#feed .actions .account-link{grid-column:5;grid-row:1;align-self:stretch;justify-self:stretch;display:grid;place-items:center;width:100%;height:48px;min-width:0;min-height:48px;border:0;border-radius:13px;background:#edc29c;color:var(--feed-ink);padding:0;font-size:16px;font-weight:650;touch-action:manipulation}
#feed .actions .account-link:not(.signed-in)::before{content:'';width:21px;height:21px;background:currentColor;mask:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="none" stroke="black" stroke-width="1.8"/><path d="M4 21v-2a8 8 0 0 1 16 0v2" fill="none" stroke="black" stroke-width="1.8"/></svg>') center/contain no-repeat}
.account-link.saved-feedback{box-shadow:0 0 0 3px #d9874470}
.save-feedback::before{top:auto;bottom:-5px;rotate:180deg}
#feed .source-dock{position:absolute;left:0;bottom:calc(100% + 8px);width:44px;height:0;gap:0;z-index:5}
#feed .source-dock>.game-more{display:none!important}
#feed .source-dock .game-info{left:0;bottom:0;width:min(320px,calc(100cqw - 8px));transform-origin:left bottom;transform:translateY(10px) scale(.96)}
#feed .source-open .game-info{transform:translateY(0) scale(1)}
.comments-sheet{width:min(462px,100%)}
.comments-grip .sheet-more{position:absolute;left:8px;top:8px;min-width:44px;min-height:40px;padding:0;border:0;background:transparent;color:#79502f;font-size:18px;letter-spacing:2px;touch-action:manipulation}
#sheet-source .game-info{display:flex;flex-direction:column;align-items:stretch;gap:8px;height:auto;overflow:visible;padding:0 0 14px;border-bottom:1px solid #e0ccb6}
#sheet-source .creator-card{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px;border:1px solid #c9a884;border-radius:10px;background:#f4dfc9;color:#593d2a;text-decoration:none;white-space:normal}
#sheet-source .game-title{font-size:15px;font-weight:750;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
#sheet-source .byline{max-width:100%;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:#8b6a4e}
#sheet-source .game-source{font-size:12px;color:#8b542b;text-underline-offset:3px}
#sheet-source .game-edit{display:grid;place-items:center;flex:none;width:36px;height:40px;min-width:36px;padding:7px;background:#f4dfc9;color:#79502f;border:1px solid #c9a884;border-radius:9px}
#sheet-source .game-edit[hidden]{display:none}
.reviews-heading{font-size:14px;margin:14px 0 12px}
body.game-expanded #feed .expanded-controls{height:calc(50px + env(safe-area-inset-bottom));padding:4px 8px calc(4px + env(safe-area-inset-bottom))}
body.game-expanded #feed .expanded-controls button{height:42px;min-height:42px;font-size:14px}
.switch-dark #feed .actions .account-link,.switch-dark #sheet-source .creator-card,.switch-dark #sheet-source .game-edit{background:#35402e;color:#bdc8b2;border-color:#4b5841}
.switch-dark #feed .actions .share[data-has-count=true]{background:#35402e;color:#bdc8b2}
.switch-dark #sheet-source .byline,.switch-dark #sheet-source .game-source,.switch-dark .sheet-more{color:#aebba1}
@media(max-width:350px){#feed .actions{gap:3px}}
@media(orientation:landscape) and (max-height:600px){
 #feed article,body.comments-open #feed article{grid-template-columns:minmax(0,1fr) 92px;grid-template-rows:minmax(0,1fr)}
 #feed .actions{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:44px minmax(88px,1fr) 48px 48px;height:100%;gap:4px}
 #feed .actions .comments-button,#feed .actions .share{position:static;inset:auto;width:100%;height:44px;min-height:44px;grid-row:1}
 #feed .actions .comments-button{grid-column:1}#feed .actions .share{grid-column:2}
 .feed-shell .game-switcher,body.comments-open .feed-shell .game-switcher{position:static;inset:auto;grid-column:1 / -1;grid-row:2;flex-direction:column;height:100%;min-height:88px}
 .feed-shell .game-switcher button{width:100%;height:auto;flex:1;min-height:44px}
 #feed .actions .reaction{position:static;inset:auto;transform:none;width:100%;grid-column:1 / -1;grid-row:3;height:48px}
 #feed .actions .account-link{grid-column:1 / -1;grid-row:4;justify-self:stretch}
 #feed .source-dock{left:auto;right:calc(100% + 8px);bottom:auto;top:44px}
 #feed .source-dock .game-info{left:auto;right:0;width:min(300px,calc(100vw - 180px));bottom:0}
 body.game-expanded #feed article{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
}


/* Emphasize the forward action and the single expanded-game exit. */
.feed-shell .game-switcher #next-game,
.switch-dark .feed-shell .game-switcher #next-game{
 background:#d63f20;color:#fff;border-color:#b62e16;
}
.feed-shell .game-switcher #next-game:hover,
.switch-dark .feed-shell .game-switcher #next-game:hover{background:#c53518}
.feed-shell .game-switcher #next-game:active,
.switch-dark .feed-shell .game-switcher #next-game:active{background:#b92d13}
body.game-expanded #feed .expanded-controls .expanded-exit,
.switch-dark body.game-expanded #feed .expanded-controls .expanded-exit{
 background:#d63f20;color:#fff;border-color:#b62e16;
}
body.game-expanded #feed .expanded-controls .expanded-exit:hover,
.switch-dark body.game-expanded #feed .expanded-controls .expanded-exit:hover{background:#c53518}
body.game-expanded #feed .expanded-controls .expanded-exit:active,
.switch-dark body.game-expanded #feed .expanded-controls .expanded-exit:active{background:#b92d13}

/* Preserve the home control below the creator's scrollable collection. */
.creator-page{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
.creator-home-controls{position:fixed;z-index:8;left:50%;bottom:0;transform:translateX(-50%);width:min(462px,100%);display:flex;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border-top:1px solid #dcc6ae;background:#fff7eb;box-shadow:0 -3px 16px #0002}
.creator-home-controls[hidden]{display:none}
.creator-home-controls a{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:48px;border-radius:13px;background:#d63f20;color:#fff;font:750 15px system-ui;text-decoration:none;touch-action:manipulation}
.creator-home-controls svg{width:19px;height:19px;flex:none}
.creator-home-controls a:hover{background:#c53518}
.creator-home-controls a:active{background:#b92d13}
.creator-home-controls a:focus-visible{outline:3px solid #f9aa76;outline-offset:-4px}
/* Only slow loads show feedback; navigation stays outside the waiting screen. */
.loading-screen{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:#eee9df;color:#79502f;pointer-events:none}
.loading-screen[hidden]{display:none}
.loading-screen strong{font:700 20px system-ui;letter-spacing:.03em}
.loading-screen span:not(.loading-spinner){font:14px system-ui}
.loading-help{font:12px system-ui;color:#8d7964;line-height:1.5}
.loading-spinner{display:block;width:32px;height:32px;margin-bottom:5px;border:3px solid #d6c7b4;border-top-color:#d63f20;border-radius:50%;animation:game-load-spin .85s linear infinite}
.boot-loading{border-radius:17px;animation:loading-reveal .12s ease 1s both}
.switch-dark .loading-screen{background:#20251f;color:#bdc8b2}
.switch-dark .loading-help{color:#9aa98c}
@keyframes loading-reveal{from{opacity:0}to{opacity:1}}
@keyframes game-load-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none}}

/* Keep iframe gutters and loading surfaces consistently black. */
.game-viewport,.game-viewport>.stage,.switch-dark .game-viewport>.stage,.switch-dark .game-viewport>.stage::before{background:#000}
.game-loading,.switch-dark .game-loading{background:#000;color:#fff7eb}
