.tg-top-games{grid-column:1/-1;min-width:0;padding:18px;border:1px solid #3a344c;border-radius:16px;background:linear-gradient(120deg,#191527,#141621);margin:16px 0;color:#f3effb;contain:layout style}
.tg-top-games>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.tg-top-games>header h3{margin:0!important;font-size:15px!important;font-weight:750!important;letter-spacing:0!important}.tg-top-games h3>span{color:#eac77e}.tg-top-games>header button{padding:7px 11px;border:1px solid #78659e66;border-radius:9px;background:#9b79dc12;color:#d6c4f6;font:inherit;font-size:12px;cursor:pointer;min-height:36px}
.tg-top-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tg-top-game{min-width:0;--top-a:#b56c55;--top-b:#34202f;--top-orb:#ffd4a2;--top-glow:#e6a488}.tg-top-tone-1{--top-a:#518e7e;--top-b:#122f35;--top-orb:#b9e1cc;--top-glow:#99d4c7}.tg-top-tone-2{--top-a:#9b7ac5;--top-b:#271e42;--top-orb:#dcc2ff;--top-glow:#c3a9eb}
.tg-top-poster,.tg-top-mini{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 73% 30%,var(--top-orb) 0 8%,transparent 9%),linear-gradient(155deg,var(--top-a),var(--top-b) 68%,#0e0d19);border:1px solid #ffffff1c;border-radius:11px}.tg-top-poster{display:flex;align-items:flex-end;width:100%;aspect-ratio:1.23;padding:13px;color:#fff!important;text-decoration:none;text-align:left;cursor:pointer;font:inherit;transition:border-color .16s}.tg-top-poster:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#0a0914e8,transparent 75%)}.tg-top-empty:after{content:"";position:absolute;z-index:-1;left:40%;top:4%;height:120%;width:28%;border-radius:50% 50% 15% 15%;background:linear-gradient(100deg,#ffffff20,#ffffff02);transform:rotate(-12deg)}
.tg-top-poster img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;z-index:-2}.tg-top-poster img[hidden]{display:none}.tg-top-poster strong{font-size:clamp(12px,1.2vw,19px);font-weight:800;line-height:1.13;overflow-wrap:anywhere;text-shadow:0 2px 8px #000a;max-width:100%;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tg-top-poster:hover{border-color:#b796e8}.tg-top-rank{position:absolute;top:8px;left:8px;border:1px solid #ffffff20;border-radius:6px;background:#10111dc9;color:#ece6f6;padding:3px 7px;font-size:11px;line-height:1.3}.tg-top-tone-0 .tg-top-rank{background:#e9c77c;color:#30231a;border-color:#ffe2a0}.tg-top-name{display:block;margin-top:8px;color:#f2edf9;text-decoration:none;font-size:13px;font-weight:700;overflow-wrap:anywhere;line-height:1.35}.tg-top-name:hover{text-decoration:underline}.tg-top-game>small{display:block;margin-top:5px;color:#b0a9bf;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.tg-top-plus{position:absolute;inset:22% 0 auto;text-align:center;color:#fff6;font-size:30px;font-weight:400;pointer-events:none}
.public-profile-dialog .tg-top-games{margin:16px 0}.profile-card>.tg-top-games{margin:8px 0 18px;width:100%}.profile-card>.tg-top-games .tg-top-three{max-width:860px}.profile-card>.tg-top-games .tg-top-poster{aspect-ratio:1.6}
.tg-top-editor{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;background:#14131f;color:#f3effa;border:1px solid #4b3e62;border-radius:20px;box-shadow:0 24px 90px #0009;overflow:auto}.tg-top-editor::backdrop{background:#060610c9}.tg-top-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:17px 20px;border-bottom:1px solid #302b40}.tg-top-dialog-head h2{font-size:19px;margin:0}.tg-top-editor button{font:inherit;color:inherit;cursor:pointer;background:#252133;border:1px solid #4b405f;border-radius:9px;min-height:38px;padding:7px 11px}.tg-top-editor button:disabled{opacity:.4;cursor:default}.tg-top-dialog-body{padding:17px 20px}.tg-top-dialog-body>p{margin:0 0 15px;color:#b6adca;font-size:13px}.tg-top-edit-slots{display:grid;gap:8px;margin-bottom:19px}.tg-top-edit-slot{display:flex;align-items:center;gap:7px;--top-a:#b56c55;--top-b:#34202f;--top-orb:#ffd4a2}.tg-top-edit-slot.tg-top-tone-1{--top-a:#518e7e;--top-b:#122f35;--top-orb:#b9e1cc}.tg-top-edit-slot.tg-top-tone-2{--top-a:#9b7ac5;--top-b:#271e42;--top-orb:#dcc2ff}.tg-top-editor .tg-top-slot-select{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;padding:6px;font-size:12px}.tg-top-editor .tg-top-slot-select[aria-pressed=true]{border-color:#b998eb;background:#38294d}.tg-top-slot-select>span:last-child{overflow-wrap:anywhere}.tg-top-mini{width:35px;height:44px;flex-shrink:0;display:grid;place-items:center;border-radius:6px}.tg-top-mini img{position:absolute;width:100%;height:100%;object-fit:cover;z-index:-1}.tg-top-mini b{background:#12101db8;border-radius:4px;padding:0 4px}.tg-top-slot-actions{display:flex;gap:4px}.tg-top-editor .tg-top-slot-actions button{width:34px;padding:3px}.tg-top-search-label{display:grid;gap:7px;color:#c9bddc;font-size:12px}.tg-top-search-label input{width:100%;min-width:0;border:1px solid #514263;border-radius:10px;background:#0e0c18;color:#f1edf7;padding:11px 12px;font:inherit;font-size:16px}.tg-top-results{margin-top:10px;font-size:13px;color:#b9afc9;display:grid;gap:6px;min-height:24px}.tg-top-editor .tg-top-result{display:flex;align-items:center;gap:10px;text-align:left;padding:7px 9px;min-width:0}.tg-top-result>span:first-child{width:32px;height:40px;background:#383047;border-radius:5px;overflow:hidden;flex-shrink:0}.tg-top-result img{width:100%;height:100%;object-fit:cover}.tg-top-result>span:nth-child(2){min-width:0;flex:1}.tg-top-result strong{display:block;overflow-wrap:anywhere;font-size:12px}.tg-top-result small{display:block;color:#b1a6c2;font-size:11px}.tg-top-result i{font-style:normal;color:#d5bdf5}.tg-top-editor footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid #302b40}.tg-top-editor .tg-top-save-error{color:#ffb4b4;margin:12px 0 0}.tg-top-editor button.primary-action{background:linear-gradient(120deg,#7753a6,#465f89);border-color:#b495d077}
@media(max-width:600px){.tg-top-games{padding:13px;border-radius:14px}.tg-top-three{gap:8px}.tg-top-poster{padding:9px;aspect-ratio:.85}.tg-top-poster strong{font-size:12px}.tg-top-name{font-size:11px}.tg-top-game>small{font-size:10px}.tg-top-games>header h3{font-size:14px!important}.tg-top-games>header button{font-size:11px;min-height:40px}.tg-top-rank{top:6px;left:6px;font-size:10px;padding:3px 6px}.profile-card>.tg-top-games .tg-top-poster{aspect-ratio:.85}.tg-top-dialog-body{padding:14px}.tg-top-dialog-head{padding:14px}.tg-top-editor footer{padding:12px 14px}.tg-top-editor .tg-top-slot-select{font-size:11px}.tg-top-slot-actions{gap:3px}.tg-top-editor .tg-top-slot-actions button{width:29px;padding:2px}.tg-top-mini{width:29px;height:39px}}
@media(pointer:coarse){.tg-top-games>header button,.tg-top-editor button{min-height:44px}.tg-top-slot-actions button{min-width:36px}}
@media(prefers-reduced-motion:reduce){.tg-top-poster{transition:none}}
/* Compact profile composition; typography follows the app rather than form defaults. */
.tg-top-games,.tg-top-editor,.tg-top-editor button,.tg-top-editor input{font-family:inherit}
.tg-top-games>header h3{font-size:15px!important;font-weight:700!important}.tg-top-game>small{font-size:11px}.tg-top-editor .tg-top-slot-select{font-size:13px;font-weight:600}.tg-top-editor footer button{font-size:14px;font-weight:600}.tg-top-editor footer .primary-action{flex:0 0 auto;min-width:140px;width:auto}
.tg-top-list-heading{margin-top:14px;font-size:12px;font-weight:650;color:#c5b6df}.tg-top-list-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.tg-top-list-pages span{font-size:12px;color:#b9abc9}.tg-top-results{min-height:48px}.tg-top-result:disabled{opacity:.45}
.profile-card .profile-identity>.tg-own-reputation{display:inline-flex;align-items:center;gap:7px;background:#a69cce19;border:1px solid #b8a7db26;border-radius:7px;color:#c9c0db;padding:5px 9px;font-size:12px!important;order:1;align-self:flex-start}.tg-own-reputation strong{color:#ece5f7;font-weight:700}.profile-card .profile-badges{order:-1!important}.profile-card .profile-name-row{order:0!important}
.tg-top-hall{grid-column:1/-1;min-width:0}.tg-top-hall:empty{display:none}.tg-top-hall .hall-profile-entry,.tg-top-hall .hall-public-rank{margin:0 0 14px!important;max-width:100%;width:max-content;font-size:12px!important;white-space:normal}
@media(min-width:1001px){
html body .profile-card{grid-template-columns:160px minmax(250px,1fr) minmax(340px,560px);column-gap:24px;align-items:start}
html body .profile-card>.profile-avatar-editor{grid-column:1;grid-row:2}
html body .profile-card>.profile-identity{grid-column:2;grid-row:2;min-width:0;align-self:start}
html body .profile-card>.tg-top-games{grid-column:3;grid-row:2;width:100%;margin:0;padding:13px;align-self:start}
.profile-card>.tg-top-games .tg-top-three{gap:9px;max-width:none}.profile-card>.tg-top-games .tg-top-poster{aspect-ratio:1.12;padding:10px}.profile-card>.tg-top-games .tg-top-poster strong{font-size:13px}.profile-card>.tg-top-games .tg-top-name{font-size:12px}
}
.public-profile-dialog .public-profile-hero>.tg-top-games{grid-column:1/-1;width:100%;margin:15px 0 0}
@media(max-width:1000px){.profile-card>.tg-top-games .tg-top-three{max-width:none}.profile-card>.tg-top-games{margin-bottom:0}.profile-card>.tg-top-hall{margin-top:0}.public-profile-dialog .profile-reputation{font-size:12px;gap:6px}.public-profile-dialog .profile-reputation span{margin-right:5px}}
@media(max-width:600px){html body .profile-card .profile-identity>.tg-own-reputation{font-size:11px!important;padding:4px 7px}.tg-top-editor .tg-top-slot-select{font-size:12px}.tg-top-editor .tg-top-slot-actions button{min-width:32px}.tg-top-editor footer{justify-content:space-between}.tg-top-games>header h3{font-size:14px!important}}
#gameSheet .meta-developer{color:#c6a6f4;text-decoration:underline;text-decoration-color:#ad8ada66;text-underline-offset:3px;font-weight:600}#gameSheet .meta-developer:hover{color:#e0caff}#gameSheet .developer-link{display:flex;align-items:center;gap:9px;margin:16px 0 13px;font:inherit;font-size:14px;font-weight:600}#gameSheet .developer-link svg{flex:none;color:#b7a1e0}
/* Keep reputation quiet, close to the name; preserve gold outside the hero too. */
html body .profile-card .profile-identity>.tg-own-reputation{background:none;border:0;border-radius:0;padding:0!important;margin:-3px 0 1px;gap:5px;color:#aaa4ba;font-size:13px!important;line-height:1.45;font-weight:400}.tg-own-reputation strong{color:#c5bed2;font-weight:500}
html body .public-profile-dialog .tg-plain-reputation{display:block;margin:3px 0 10px;padding:0;background:none;border:0;color:#aaa4ba;font-size:13px;line-height:1.45;font-weight:400}.tg-plain-reputation span{color:#c5bed2}
html body .tg-top-hall button.hall-public-rank,html body .tg-top-hall button.hall-profile-entry{display:block;padding:8px 12px;border:1px solid #c69a4a65;border-radius:10px;background:linear-gradient(110deg,#c3952614,#9576c20a);color:#e9d1a2;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;text-align:start;box-shadow:none}
html body .tg-top-hall .hall-public-rank-number,html body .tg-top-hall .hall-rank-number{display:inline-block;padding:2px 7px;border-radius:6px;margin-right:3px;background:linear-gradient(110deg,#bd8a35,#f0d99d);color:#302017;font-size:13px;font-weight:750;white-space:nowrap}
@media(min-width:1001px){
html body .profile-card{grid-template-columns:160px clamp(280px,24vw,400px) minmax(0,1fr);column-gap:28px}
html body .profile-card>.profile-identity{align-self:start;gap:8px}
html body .profile-card>.tg-top-games{padding:15px 17px;background:linear-gradient(120deg,#1d192b88,#16182799);border-color:#72628538}
.profile-card>.tg-top-games .tg-top-three{gap:12px}.profile-card>.tg-top-games .tg-top-poster{height:clamp(110px,8vw,150px);aspect-ratio:auto}.profile-card>.tg-top-games .tg-top-name{font-size:13px}.profile-card>.tg-top-games .tg-top-poster strong{font-size:14px}
}
/* Larger, identifiable game artwork in the picker; footer stays in reach. */
.tg-top-editor{width:min(720px,calc(100% - 24px))}.tg-top-editor[open]{display:flex;flex-direction:column;overflow:hidden}.tg-top-editor .tg-top-dialog-head,.tg-top-editor footer{flex-shrink:0}.tg-top-editor .tg-top-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.tg-top-editor .tg-top-result{min-height:88px;padding:9px 11px;gap:14px}.tg-top-editor .tg-top-result>span:first-child{width:58px;height:72px;border-radius:7px}.tg-top-editor .tg-top-result strong{font-size:15px;line-height:1.35;font-weight:650}.tg-top-editor .tg-top-result small{font-size:12px;margin-top:5px}.tg-top-editor .tg-top-result i{font-size:20px}.tg-top-editor .tg-top-slot-select{font-size:14px}.tg-top-editor .tg-top-mini{width:42px;height:52px}
@media(max-width:600px){html body .profile-card .profile-identity>.tg-own-reputation{font-size:12px!important;margin:-1px 0 0}.tg-top-editor .tg-top-result{min-height:80px;padding:8px;gap:11px}.tg-top-editor .tg-top-result>span:first-child{width:49px;height:64px}.tg-top-editor .tg-top-result strong{font-size:14px}.tg-top-editor .tg-top-result small{font-size:12px}.tg-top-editor .tg-top-mini{width:33px;height:44px}.tg-top-editor .tg-top-slot-select{font-size:12px}.tg-top-dialog-body{padding:12px}}
html,body,#gameSheet{overscroll-behavior-y:none}.tg-top-editor,.tg-top-dialog-body{overscroll-behavior:none}
.tg-pull-refresh{position:fixed;z-index:90;left:50%;transform:translate(-50%,var(--pull,0px));display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #7f6ca655;border-radius:24px;background:#1b192ceb;color:#e0d1f4;box-shadow:0 5px 18px #0003;pointer-events:none;max-width:calc(100% - 28px)}.tg-pull-refresh[hidden]{display:none}.tg-pull-refresh span{font-size:22px;line-height:1}.tg-pull-refresh small{font-family:inherit;font-size:12px;font-weight:500;line-height:1.4}.tg-pull-refresh.is-ready{border-color:#baa0e7;color:#f3e9ff}

html body .library-hub .tg-recent-downloads>header{display:block;padding:12px 16px;margin-bottom:12px}html body .library-hub .tg-recent-downloads>header h3{font-size:17px}.tg-recent-shelf{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:9px;overscroll-behavior-x:contain}.tg-recent-game{flex:0 0 108px;min-width:0;color:#eee8f8;text-decoration:none;scroll-snap-align:start}.tg-recent-game>span{display:grid;place-items:center;width:108px;height:125px;border-radius:10px;overflow:hidden;background:#282135;color:#b39aca}.tg-recent-game img{width:100%;height:100%;object-fit:cover}.tg-recent-game>strong{display:block;font-size:12px;line-height:1.35;margin-top:7px;overflow-wrap:anywhere;font-weight:650}.tg-recent-game>small{display:block;font-size:11px;color:#aaa0b9;margin-top:3px}@media(max-width:600px){.tg-recent-game{flex-basis:94px}.tg-recent-game>span{width:94px;height:112px}}
/* Explicit foreground layers prevent fallback art bleeding through real covers. */
.tg-top-poster img{z-index:0}.tg-top-poster::before{z-index:1;pointer-events:none}.tg-top-poster strong,.tg-top-poster .tg-top-rank,.tg-top-poster .tg-top-plus{position:relative;z-index:2}.tg-top-poster .tg-top-rank{position:absolute}.tg-top-poster .tg-top-plus{position:absolute}.tg-top-empty::after{z-index:0;pointer-events:none}.tg-top-poster:has(img:not([hidden])){background:#151320}.tg-top-mini img{z-index:0}.tg-top-mini b{position:relative;z-index:1}
html body .tg-top-games{border-color:#9d7cd14d;box-shadow:0 0 22px #9770d30e,inset 0 1px 0 #e0c9ff09}html body .tg-top-games>header h3{font-size:18px!important;letter-spacing:.01em!important;color:#f1e5ff}
.tg-top-poster:not(.tg-top-empty) .tg-top-rank{font-size:10px;padding:3px 6px;border-radius:5px;box-shadow:0 1px 5px #0003}
@media(min-width:1001px){
html body .profile-card{grid-template-columns:clamp(190px,12vw,232px) clamp(300px,24vw,420px) minmax(0,1fr);column-gap:26px}
html body .profile-card>.profile-avatar-editor{width:clamp(190px,12vw,232px);height:clamp(190px,12vw,232px);margin-top:-36px}
html body .profile-card>.profile-identity{gap:10px;margin-top:0;justify-content:flex-start}
html body .profile-card .profile-name-row h3{font-size:clamp(32px,2.5vw,44px);line-height:1.25}
html body .profile-card .profile-badges .rank-badge,html body .profile-card .profile-badges .special-badge{font-size:12px;min-height:29px}
html body .profile-card .profile-identity>.tg-own-reputation{font-size:14px!important}
html body .profile-card .profile-identity>.hall-profile-entry{font-size:14px;padding:7px 11px}
html body .profile-card .profile-identity>[data-tg-guide-help]{order:-2;align-self:flex-start;margin:0 0 2px;padding:0;min-height:0;background:none;border:0;border-radius:0;color:#c0abd9;font-size:13px;line-height:1.5;text-underline-offset:3px}
html body .profile-card>.tg-top-games{border-color:#9d7cd14d;box-shadow:0 0 24px #9770d311,inset 0 1px 0 #e0c9ff0b}
}
@media(max-width:600px){html body .tg-top-games>header h3{font-size:16px!important}}

@media(max-width:600px){html body .profile-card>.tg-profile-details:empty{display:none}html body .profile-card>.tg-top-hall{margin:0}html body .profile-card>.tg-top-hall .hall-profile-entry{margin:0!important}html body .profile-card>.tg-top-games{margin:0}html body .profile-card>.tg-profile-tools{margin:0;padding-top:0;gap:9px}}
