body.game-hub-page #sectionmain{width:calc(100% - 56px);max-width:1440px;margin:24px auto 0;padding:0 0 55px;box-sizing:border-box}body.game-hub-page{--hub-ink:#30261e;--hub-muted:#9b8975;--hub-line:#e6dacb;--hub-paper:#fffdfa;--hub-accent:#91663f}.game-hub-page #sectionmain{font-size:14px;color:var(--hub-ink)}.hub-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.hub-topline>a{font-size:12px;color:#8d7053!important;text-decoration:none}.hub-topline button{padding:8px 13px;border:1px solid #d9c6ad;border-radius:8px;background:#fffaf3;font-size:12px;color:#785334}
.hub-intro-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;margin-bottom:22px}.hub-intro{position:relative;min-height:158px;border:1px solid var(--hub-line);border-radius:15px;background:linear-gradient(105deg,#fcf4e9,#f7efe2);overflow:hidden;display:flex;align-items:center}.hub-intro-copy{position:relative;z-index:1;padding:26px 30px;max-width:70%}.hub-eyebrow{font-size:9px;color:#a3835f;font-weight:600;letter-spacing:.17em}.hub-intro h1{font-size:30px!important;line-height:1.2;letter-spacing:-.8px;margin:8px 0 12px!important;color:#30261e!important}.hub-intro p{font-size:12px;color:#8d775d;margin:0;line-height:1.6}.hub-intro-art{position:absolute;inset:0 0 0 auto;height:100%!important;width:48%!important;object-fit:cover;object-position:50% 30%;opacity:.68;mask-image:linear-gradient(90deg,transparent,#000 35%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%)}
body.game-hub-page .hub-database-card{display:flex;align-items:center;gap:16px;padding:24px;border:1px solid #b88e63;border-radius:15px;background:linear-gradient(130deg,#8b6342,#705039);text-decoration:none;color:#fff8ed!important;box-shadow:0 6px 17px #76523014;transition:transform .15s,box-shadow .15s}.hub-database-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #76523025}.hub-database-icon{display:grid;place-items:center;width:46px;height:52px;flex-shrink:0;font-size:30px;border:1px solid #dbc2a654;border-radius:10px;background:#ffffff0b;color:#f0d8b4}.hub-database-card small{font-size:8px;font-weight:500;letter-spacing:.15em;color:#dac2a4}.hub-database-card strong{display:flex;align-items:center;justify-content:space-between;gap:22px;font-size:22px;line-height:1.35;font-weight:650;margin:4px 0 7px;color:#fff8ed}.hub-database-card strong>span{font-size:16px;color:#d6b791}.hub-database-card p{font-size:11px;line-height:1.65;color:#e0cdb8;margin:0}
.hub-findbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:15px;border-bottom:1px solid var(--hub-line)}.hub-global-search{display:flex;align-items:center;gap:10px;flex:1;min-width:210px;padding:11px 14px;border:1px solid #dfcfbc;border-radius:10px;background:#fffefa}.hub-global-search>span{font-size:23px;line-height:1;color:#ad8d6b}.hub-global-search input{border:0;outline:0;min-width:0;width:100%;font:inherit;font-size:13px;background:transparent;color:#3e3024}.hub-global-search:focus-within{box-shadow:0 0 0 3px #ba94651a;border-color:#bb956b}.hub-kind-filters{display:flex;gap:4px;background:#f2eadd;border-radius:9px;padding:4px}.hub-kind-filters button{padding:8px 13px;border:0;border-radius:6px;background:transparent;font-size:12px;color:#967d61}.hub-kind-filters button[aria-pressed=true]{background:#fffefa;color:#705033;box-shadow:0 2px 5px #7151330c;font-weight:600}.hub-sort select{font:inherit;font-size:11px;color:#967f65;border:0;background:transparent;padding:9px 4px;cursor:pointer}.hub-section-nav{display:flex;align-items:center;gap:7px;overflow:auto;padding:14px 0 16px;scrollbar-width:thin}.hub-section-nav a{flex-shrink:0;font-size:11px;color:#a0876b!important;padding:6px 10px;border:1px solid #e6daca;border-radius:6px;background:#fffaf2;text-decoration:none}.hub-section-nav a:hover{border-color:#bc9b73;color:#775433!important}
.hub-rows{display:grid;gap:20px;margin-top:4px}.hub-row{display:grid;grid-template-columns:repeat(var(--hub-columns,2),minmax(0,1fr));gap:16px;align-items:stretch}.hub-panel{min-width:0;border:1px solid #e4d8c9;border-radius:13px;background:var(--hub-paper);box-shadow:0 3px 13px #70503204;display:flex;flex-direction:column;overflow:hidden;scroll-margin-top:105px}.hub-panel-heading{position:static!important;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 17px 11px;background:transparent!important;border:0!important;height:auto!important;box-shadow:none!important}.hub-panel-heading>div{display:flex;align-items:center;gap:9px;min-width:0}.hub-panel-heading h2{font-size:16px!important;line-height:1.3;letter-spacing:-.25px;margin:0!important;color:#483523!important;overflow-wrap:anywhere}.hub-panel-heading>div>span{font-size:10px;color:#b5a086;flex-shrink:0}.hub-panel-heading>button{border:0;background:transparent;color:#a88660;font-size:15px;padding:3px;cursor:pointer}.hub-panel-search{display:flex;align-items:center;gap:8px;border:1px solid #eee4d6;background:#fcf8f1;border-radius:7px;padding:6px 9px;margin:0 15px 10px;color:#b79e7e}.hub-panel-search input{font:inherit;font-size:10px;width:100%;min-width:0;color:#68533b;background:transparent;border:0;outline:0}.hub-panel-search:focus-within{border-color:#c9a982}.hub-panel-items{padding:0 10px 10px;min-width:0;flex:1}.hub-card-wrap{position:relative;min-width:0}.hub-material{display:flex;align-items:center;gap:11px;border:1px solid transparent;border-radius:8px;padding:8px 6px;text-decoration:none!important;min-width:0;min-height:58px;box-sizing:border-box;color:#4b3827!important;transition:background .13s,border-color .13s}.hub-material:hover{background:#f7f0e6;border-color:#e6d7c3}.hub-material-copy{display:block;min-width:0;flex:1}.hub-material-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:12px;font-weight:550;line-height:1.45;color:#4b3827}.hub-material-copy small{display:block;font-size:9px;color:#b09a80;margin-top:5px}.hub-material-arrow{font-size:12px;color:#c3ad92;flex-shrink:0;margin-left:auto}.hub-media{flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:6px;background:#f4ecdf;width:72px;height:44px}.hub-media img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;border-radius:0!important}.hub-media.type-thumb{width:38px;height:38px;border-radius:8px;background:#f4f0e9}.hub-media.type-character{width:44px;height:65px;background:linear-gradient(#efe3d0,#f9f3e9)}.hub-media.type-item{width:46px;height:46px;background:radial-gradient(#edddc4,#faf6ee)}.hub-media-letter{font-size:21px;color:#c3aa87}.hub-panel.view-list .hub-panel-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-content:start;gap:3px 8px}
.hub-panel.view-tiles .hub-panel-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,125px),1fr));gap:6px;align-content:start}.view-tiles .hub-material{display:flex;flex-direction:column;align-items:stretch;padding:6px;gap:8px;min-height:0}.view-tiles .hub-media{width:100%;height:72px}.view-tiles .hub-media.type-thumb{width:44px;height:44px;align-self:center;margin:14px 0}.view-tiles .hub-media.type-character{height:95px;width:64px;align-self:center}.view-tiles .hub-media.type-item{width:72px;height:72px;align-self:center}.view-tiles .hub-material-arrow{display:none}.view-tiles .hub-material-copy small{margin-top:4px}.view-tiles .hub-material-copy strong{font-size:11px}
.hub-panel.view-portraits .hub-panel-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,90px),1fr));gap:6px;align-content:start}.view-portraits .hub-material{flex-direction:column;text-align:center;padding:6px;gap:8px;min-height:0}.view-portraits .hub-media{height:100px;width:100%;border-radius:8px;background:#f6ede0}.view-portraits .hub-media.type-character{width:78px;height:112px;max-width:100%}.view-portraits .hub-media.type-thumb{width:44px;height:44px;margin:34px 0}.view-portraits .hub-media.type-item{width:76px;height:90px;margin:11px 0}.view-portraits .hub-material-copy{width:100%}.view-portraits .hub-material-copy strong{font-size:11px;-webkit-line-clamp:3}.view-portraits .hub-material-arrow{display:none}.view-portraits .hub-material-copy small{font-size:8px}
.hub-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #efe4d6;padding:10px 15px;background:#fcf8f2;font-size:9px;color:#aa9274}.hub-panel-footer>div{display:flex;align-items:center;gap:8px;white-space:nowrap}.hub-panel-footer button{display:grid;place-items:center;min-width:25px;height:24px;border:1px solid #e5d6c1;background:#fffdf8;color:#8b6540;border-radius:5px;padding:0;font-size:12px}.hub-panel-footer button:disabled{opacity:.35;cursor:default}.hub-panel-empty{font-size:12px;color:#b09c81;padding:24px 10px;text-align:center;line-height:1.6}.hub-unassigned-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-top:12px}.hub-unassigned-heading span{font-size:8px;letter-spacing:.14em;color:#b29672}.hub-unassigned-heading h2{font-size:18px!important;margin:5px 0 0!important;color:#765539}.hub-unassigned-heading p{font-size:11px;color:#a18c72;max-width:400px;line-height:1.6}.hub-page-empty{padding:45px;text-align:center;color:#a38e74}
.hub-editor-bar{position:sticky;top:80px;z-index:20;display:flex;align-items:center;gap:9px;flex-wrap:wrap;border:1px solid #d1ac7b;background:#f7ebd7;box-shadow:0 6px 18px #78522b16;border-radius:10px;padding:12px 15px;margin-bottom:18px}.hub-editor-bar>div{margin-right:auto}.hub-editor-bar strong{display:block;font-size:12px;color:#77512c}.hub-editor-bar small{display:block;font-size:10px;color:#a58660;margin-top:4px}.hub-editor-bar button,.hub-row-controls button,.hub-panel-editbar button{font:inherit;font-size:10px;padding:7px 10px;background:#fffaf1;border:1px solid #dcc7a7;border-radius:6px;color:#84613b}.hub-editor-bar .hub-save{background:#805a36;color:#fff7e8;border-color:#805a36}.hub-editor-bar [role=status]{font-size:10px;color:#a76b42;max-width:260px}.hub-row-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 13px;background:#f5eddf;border:1px dashed #d9c3a4;border-radius:8px;margin-bottom:-10px;font-size:10px;color:#94704b}.hub-row-controls strong{font-size:11px;margin-right:auto}.hub-row-controls label{display:flex;gap:8px;align-items:center}.hub-row-controls select{font:inherit;font-size:11px;border:1px solid #ddc7a6;background:#fffcf6;border-radius:5px;padding:4px;color:#77512e}.hub-row-controls button:disabled{opacity:.3}.hub-panel-editbar{display:flex;align-items:center;gap:4px;padding:0 15px 9px}.hub-panel-editbar>button:first-child{margin-right:auto}.hub-panel-editbar button{padding:5px 7px}.hub-new-panel{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:1px dashed #d6be9a;border-radius:13px;background:#faf2e5;font:inherit;font-size:12px;color:#a58051}.hub-new-panel>span{font-size:25px}.hub-item-edit{position:absolute;right:4px;top:4px;padding:3px 6px;border:1px solid #d2b58d;border-radius:5px;background:#fffbf0;color:#986c39;font-size:12px;z-index:1}.hub-card-wrap:has(.hub-item-edit) .hub-material{border:1px dashed #e5d3b7}.hub-card-wrap:has(.hub-item-edit) .hub-material-arrow{visibility:hidden}
body.game-hub-page .hub-dialog{width:min(720px,calc(100vw - 28px));max-width:720px;max-height:90dvh;overflow:auto;box-sizing:border-box;padding:28px;border:1px solid #d8c3a5;border-radius:16px;background:#fffdf9;color:#5c452d;font-size:13px;box-shadow:0 22px 80px #36220e33}body.game-hub-page .hub-dialog::backdrop{background:#30221977;backdrop-filter:blur(2px)}.hub-dialog h2{font-size:23px;line-height:1.25;margin:7px 32px 21px 0;color:#4b3420}.hub-dialog-kicker{font-size:8px;letter-spacing:.14em;color:#b09067}.hub-dialog>button.hub-dialog-close{position:absolute;right:13px;top:13px;width:28px;height:28px;padding:0;border-radius:50%;background:#f5ebdb;border:1px solid #e3d0b3;color:#9a744a;font-size:19px}.hub-dialog label{display:block;font-size:11px;color:#a0815b;margin-bottom:15px}.hub-dialog :is(input:not([type=checkbox],[type=file]),select){display:block;width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:13px;color:#5f472d;background:#fffefa;border:1px solid #e0cdb1;border-radius:7px;padding:10px 12px;margin-top:6px}.hub-dialog :is(input,select):focus-visible{outline:2px solid #c49a62;outline-offset:2px}.hub-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hub-dialog-help{font-size:11px;line-height:1.8;color:#ae9576;margin:8px 0 18px}.hub-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:18px}.hub-dialog-actions>span{margin-right:auto;font-size:11px;color:#a98a62}.hub-dialog button,.hub-dialog .hub-upload-button{font:inherit;font-size:11px;padding:9px 13px;border:1px solid #d9c09b;border-radius:7px;background:#fffaf1;color:#947044;cursor:pointer}.hub-dialog .hub-primary{background:#825b35;border-color:#825b35;color:#fff7e8}.hub-dialog .hub-danger{color:#a87d5a;background:transparent;border-color:#e5d4bd;margin-right:auto}.hub-dialog button:disabled{opacity:.35;cursor:default}.hub-dialog [data-error]{font-size:11px;color:#b0784c;line-height:1.7}.hub-picker-tools{display:flex;gap:10px;align-items:center;margin-bottom:15px}.hub-dialog .hub-picker-tools input{flex:1}.hub-dialog .hub-picker-tools select{width:140px}.hub-picker-results{display:grid;gap:6px;max-height:390px;overflow:auto}.hub-dialog label.hub-picker-option{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid #ead9bf;border-radius:8px;margin:0;color:#6d5030;background:#fffcf6;cursor:pointer}.hub-picker-option input{accent-color:#976c3c}.hub-picker-option strong{display:block;font-size:12px;font-weight:500;line-height:1.5}.hub-picker-option small{display:block;font-size:9px;color:#b19775;margin-top:4px}.hub-picker-option.is-used{opacity:.5}.hub-picker-paging{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px;font-size:10px;color:#ad936f}.hub-picker-paging button{padding:5px 10px}.hub-image-preview{height:160px;max-width:280px;display:grid;place-items:center;border:1px solid #eadbc6;border-radius:10px;background:#f6efdf;margin:0 auto 15px;overflow:hidden}.hub-image-preview img{height:100%;width:100%;object-fit:contain}.hub-image-preview.type-character{height:180px;width:130px}.hub-image-preview.type-thumb{height:70px;width:70px}.hub-image-preview.type-item{height:120px;width:120px;background:radial-gradient(#e9d5b3,#fbf5e9)}.hub-image-preview>span{font-size:11px;color:#b09875}.hub-image-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.hub-dialog .hub-upload-button{display:inline-flex;margin:0;align-items:center}.hub-dialog .hub-paste-zone{padding:10px;border:1px dashed #ddc5a0;border-radius:7px;color:#b09066;font-size:10px;cursor:text;text-align:center;background:#fcf8ed}.hub-media-library{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:10px;max-height:230px;overflow:auto}.hub-media-library button{padding:4px;height:70px;background:#f9f2e6}.hub-media-library img{width:100%;height:100%;object-fit:contain}.hub-item-order{border-top:1px solid #ead9bf;padding-top:15px}.hub-sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
@media(max-width:1100px){.hub-row{grid-template-columns:repeat(min(var(--hub-columns),2),minmax(0,1fr))}.hub-intro-grid{grid-template-columns:minmax(0,1fr) 270px}.hub-intro-copy{max-width:82%;padding:24px}.hub-kind-filters button{padding:8px 10px}}
@media(max-width:650px){body.game-hub-page #sectionmain{width:calc(100% - 28px);margin-top:18px}.hub-intro-grid{grid-template-columns:1fr;gap:10px}.hub-intro{min-height:135px}.hub-intro h1{font-size:26px!important}.hub-intro-copy{padding:22px;max-width:80%}.hub-intro-art{width:52%!important;opacity:.5}.hub-database-card{padding:17px 20px!important;gap:14px;min-height:86px;box-sizing:border-box}.hub-database-icon{width:35px;height:40px;font-size:24px}.hub-database-card strong{font-size:18px;margin:2px 0 3px}.hub-database-card p{font-size:10px}.hub-findbar{gap:10px}.hub-global-search{flex-basis:100%}.hub-kind-filters{flex:1;justify-content:space-between}.hub-kind-filters button{font-size:11px;padding:7px 10px}.hub-sort select{font-size:10px}.hub-row{grid-template-columns:minmax(0,1fr);gap:13px}.hub-panel-heading h2{font-size:17px!important}.hub-panel.view-list .hub-panel-items{grid-template-columns:1fr}.hub-panel.view-tiles .hub-panel-items{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-panel.view-portraits .hub-panel-items{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-material-copy strong{font-size:13px}.hub-section-nav{padding-top:12px}.hub-rows{gap:15px}.hub-topline button{font-size:10px}.hub-editor-bar{top:74px;padding:10px}.hub-editor-bar>div{flex-basis:100%}.hub-editor-bar [role=status]{max-width:100%;order:3}.hub-editor-bar button{flex:1}.hub-unassigned-heading{display:block}.hub-unassigned-heading p{font-size:10px}.hub-form-grid{grid-template-columns:1fr;gap:0}body.game-hub-page .hub-dialog{padding:22px 18px}.hub-dialog h2{font-size:21px}.hub-dialog .hub-picker-tools select{width:110px}.hub-media-library{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.hub-database-card,.hub-material{transition:none}}
/* Keep the reference entry legible above the site's shared text colors. */
body.site-theme.game-hub-page #sectionmain .hub-database-card :is(strong,p,small,span){color:#fff4e3!important}
body.site-theme.game-hub-page #sectionmain .hub-database-card small{color:#ead2b4!important}
.hub-material-copy strong{font-size:13px}.view-tiles .hub-material-copy strong,.view-portraits .hub-material-copy strong{font-size:12px}
/* Two windows across; the next pair starts below. */
.hub-row{grid-template-columns:repeat(min(var(--hub-columns,2),2),minmax(0,1fr))}
.hub-media{width:90px;height:56px}
.hub-media.type-thumb{width:48px;height:48px}
.hub-media.type-character{width:56px;height:80px}
.hub-media.type-item{width:60px;height:60px}
.view-tiles .hub-media{height:92px}
.view-tiles .hub-media.type-thumb{width:56px;height:56px;margin:18px 0}
.view-tiles .hub-media.type-character{width:78px;height:116px}
.view-tiles .hub-media.type-item{width:90px;height:92px}
.view-portraits .hub-media{height:120px}
.view-portraits .hub-media.type-character{width:92px;height:132px}
.view-portraits .hub-media.type-thumb{width:56px;height:56px;margin:38px 0}
.view-portraits .hub-media.type-item{width:90px;height:108px;margin:12px 0}
@media(max-width:650px){.hub-row{grid-template-columns:minmax(0,1fr)}}
/* Readable cards: cover imagery leads; thumbnails support the text. */
.hub-row{align-items:start}
.hub-panel-heading{padding:20px 22px 16px}
.hub-panel-heading h2{font-size:22px!important;line-height:1.3}
.hub-panel-heading>div>span{font-size:13px}
.hub-panel-search{margin:0 20px 18px;padding:10px 12px}
.hub-panel-search input{font-size:14px}
.hub-content-group{min-width:0;display:flex;flex-direction:column;flex:1}
.hub-content-group .hub-panel-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:12px;padding:0 16px 18px;align-content:start}
.hub-content-group.view-portraits .hub-panel-items{grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr))}
.hub-content-group.media-cover .hub-panel-items{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}
.hub-content-group .hub-material{padding:12px;gap:15px;min-height:110px;border:1px solid #ebdfd0;background:#fffdfa}
.hub-content-group .hub-material-copy strong{font-size:17px;line-height:1.45;font-weight:600;-webkit-line-clamp:3}
.hub-content-group .hub-material-copy small{font-size:12px;line-height:1.4;margin-top:7px}
.hub-content-group .hub-material.type-cover{flex-direction:column;align-items:stretch;padding:0;gap:0;overflow:hidden;min-height:0}
.hub-content-group .hub-material.type-cover .hub-media{width:100%;height:auto;aspect-ratio:16/9;border-radius:0}
.hub-content-group .hub-material.type-cover .hub-media{position:relative}
.hub-content-group .hub-material.type-cover .hub-media img{position:absolute;inset:0}
.hub-content-group .hub-material.type-cover .hub-material-copy{padding:14px 16px 16px;flex:1;text-align:left}
.hub-content-group .hub-material.type-cover .hub-material-copy strong{font-size:18px}
.hub-content-group .hub-material.type-cover .hub-material-arrow{display:none}
.hub-content-group .hub-material.type-thumb{flex-direction:row;align-items:center;text-align:left;min-height:112px}
.hub-content-group .hub-material.type-thumb .hub-media{width:80px;height:80px;max-width:80px;margin:0;border-radius:10px;align-self:center}
.hub-content-group .hub-material.type-thumb .hub-material-copy{width:auto}
.hub-card-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:1.5;margin:8px 0 0;color:#66574a}
.hub-material.type-cover .hub-card-description,.hub-material.type-character .hub-card-description,.hub-material.type-item .hub-card-description{display:none}
.hub-content-group .hub-material.type-character,.hub-content-group .hub-material.type-item{flex-direction:column;text-align:center;gap:13px}
.hub-content-group .hub-material.type-character .hub-media{width:110px;height:155px;margin:0;max-width:100%;align-self:center}
.hub-content-group .hub-material.type-item .hub-media{width:116px;height:116px;margin:0;max-width:100%;align-self:center}
.hub-content-group .hub-material.type-character .hub-material-copy,.hub-content-group .hub-material.type-item .hub-material-copy{width:100%}
.hub-panel-footer{font-size:12px;padding:13px 20px;gap:12px;margin-top:auto}
.hub-panel-footer button{min-width:32px;height:30px;font-size:15px}
.hub-section-nav a{font-size:13px;padding:8px 12px}
.hub-kind-filters button,.hub-sort select{font-size:13px}
.hub-global-search input{font-size:15px}
.hub-topline button{font-size:14px}
.hub-intro p{font-size:14px}
.hub-database-card p{font-size:13px}
.hub-panel-editbar{flex-wrap:wrap;gap:7px;padding:0 20px 15px}
.hub-panel-editbar button,.hub-editor-bar button,.hub-row-controls button{font-size:13px}
.hub-editor-bar strong{font-size:15px}.hub-editor-bar small,.hub-editor-bar [role=status]{font-size:13px}
.hub-editor-bar .hub-save{color:#fff7e8!important}
.hub-subsection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 20px 16px;padding:16px 0 0;border-top:1px solid #dfcdb6}
.hub-subsection-heading h3{font-size:18px!important;line-height:1.45;color:#4e3523!important;margin:0!important;font-weight:650}
.hub-subsection-heading h3>span{font-size:12px;font-weight:400;color:#8e7862;margin-left:8px}
.hub-subsection-heading>div{display:flex;gap:5px;flex-wrap:wrap}
.hub-subsection-heading button{font:inherit;font-size:12px;padding:6px 8px;border:1px solid #ddc9ad;border-radius:6px;background:#fff8ed;color:#795639}
.has-subsections .hub-content-group+.hub-content-group{margin-top:18px}
.has-subsections .hub-panel-footer{background:#fcf8f1;border-bottom:1px solid #ebdfd0}
.hub-dialog label,.hub-dialog-help{font-size:13px}
.hub-dialog button{font-size:13px}
@media(max-width:650px){
 .hub-panel-heading h2{font-size:21px!important}.hub-panel-heading{padding:18px}
 .hub-content-group .hub-panel-items{grid-template-columns:1fr;padding:0 12px 16px}
 .hub-content-group.view-portraits:not(.media-thumb):not(.media-cover) .hub-panel-items{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hub-content-group .hub-material-copy strong{font-size:17px}
 .hub-content-group .hub-material.type-thumb .hub-media{width:76px;height:76px;max-width:76px}
 .hub-subsection-heading{flex-wrap:wrap;margin:0 16px 14px}.hub-subsection-heading h3{font-size:18px!important}
 .hub-panel-search{margin:0 16px 15px}.hub-panel-footer{padding:12px 16px}
 .hub-panel-editbar{padding:0 16px 15px}.hub-topline button{font-size:12px}
 .hub-content-group .hub-material.type-cover .hub-material-copy strong{font-size:18px}
}
/* Equal sections, fixed card frames and no public editorial categories. */
.hub-panel{display:block;padding-top:18px}
.hub-panel>.hub-panel-search{margin-bottom:4px}
.hub-window-tools{display:flex;flex-wrap:wrap;gap:7px;padding:0 20px 16px}
.hub-window-tools>button:first-child{margin-right:auto}
.hub-window-tools button,.hub-section-heading button{font:inherit;font-size:13px;padding:7px 10px;border:1px solid #ddc9ad;border-radius:6px;background:#fff8ed;color:#795639}
.hub-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 16px}
.hub-section-heading h2{font-size:22px!important;line-height:1.35;color:#39291d!important;margin:0!important;font-weight:650}
.hub-section-heading h2>span{font-size:13px;font-weight:400;margin-left:8px}
.hub-section-heading>div{display:flex;gap:6px;flex-wrap:wrap}
.hub-content-group{display:block;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
.hub-content-group+.hub-content-group{margin-top:0!important;border-top:1px solid #deccb5!important}
body.game-hub-page .hub-content-group .hub-panel-items{display:grid!important;grid-template-columns:repeat(auto-fill,264px)!important;gap:14px!important;width:calc(100% - 32px);max-width:1098px;box-sizing:content-box;padding:0 16px 18px;justify-content:start;align-items:start}
.hub-card-wrap{width:264px;max-width:100%}
body.game-hub-page .hub-content-group .hub-material{width:264px;max-width:100%;box-sizing:border-box;border:1px solid #ddc7ad;border-radius:9px;background:#fffdfa;overflow:hidden}
body.game-hub-page .hub-content-group .hub-material.type-thumb{height:112px;min-height:112px;padding:12px;gap:13px}
body.game-hub-page .hub-content-group .hub-material.type-thumb .hub-media{flex:0 0 80px;width:80px;height:80px;max-width:80px}
body.game-hub-page .hub-content-group .hub-material.type-thumb .hub-material-copy strong{font-size:17px;line-height:1.4;-webkit-line-clamp:3}
body.game-hub-page .hub-content-group .hub-material.type-cover{padding:0;gap:0}
body.game-hub-page .hub-content-group .hub-material.type-cover{height:232px;min-height:232px}
body.game-hub-page .hub-content-group .hub-material.type-cover .hub-media{width:100%;height:auto;aspect-ratio:16/9}
body.game-hub-page .hub-content-group .hub-material.type-cover .hub-material-copy{padding:15px 16px;min-height:78px;box-sizing:border-box}
body.game-hub-page .hub-content-group .hub-material.type-cover .hub-material-copy{min-height:0}
body.game-hub-page .hub-content-group .hub-material.type-cover .hub-material-copy strong{font-size:18px;line-height:1.4;-webkit-line-clamp:2}
.hub-material-arrow,.hub-card-description{display:none!important}
.hub-panel-items .hub-panel-empty{grid-column:1/-1}
.hub-card-wrap:has(.hub-item-edit) .hub-material{border:1px dashed #cfa978!important}
@media(max-width:650px){
 .hub-section-heading{padding:17px 16px 14px;flex-wrap:wrap}.hub-section-heading h2{font-size:21px!important}
 .hub-window-tools{padding:0 16px 15px}
 body.game-hub-page .hub-content-group .hub-panel-items{justify-content:center}
}
@media(max-width:315px){body.game-hub-page .hub-content-group .hub-panel-items{grid-template-columns:minmax(0,1fr)!important}.hub-card-wrap,body.game-hub-page .hub-content-group .hub-material{width:100%}}
/* One search, a quiet reference entry and cards that flow naturally. */
body.game-hub-page #sectionmain{margin-top:10px}
.hub-owner-actions{display:flex;justify-content:flex-end;margin:0 0 8px}
.hub-owner-actions button{font:inherit;font-size:13px;padding:7px 12px;background:#fffaf3;border:1px solid #ddc9af;border-radius:8px;color:#6d523c}
.hub-intro-grid{margin-bottom:16px}
.hub-intro{min-height:178px;transition:transform .2s ease,box-shadow .2s ease}
body.game-hub-page .hub-database-card{background:linear-gradient(130deg,#f0e5d5,#e8dccb);border-color:#d9c5a9;box-shadow:0 3px 12px #76523009}
body.site-theme.game-hub-page #sectionmain .hub-database-card :is(strong,p,small,span){color:#604b38!important}
body.site-theme.game-hub-page #sectionmain .hub-database-card small{color:#80694f!important}
.hub-database-icon{border-color:#cfb99a;background:#ffffff50}
.hub-findbar{border:0;padding-bottom:0;margin-bottom:18px}
.hub-global-search{min-width:0}
.hub-panel{padding-top:0}
.hub-window-tools{padding-top:15px}
.hub-section-heading{padding-top:20px}
.hub-panel-footer{margin-top:0}
.hub-card-wrap{position:relative}
body.game-hub-page .hub-content-group .hub-material{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;transform-origin:center}
.hub-media img{transition:transform .3s ease}
@media(hover:hover){
 .hub-card-wrap:hover{z-index:2}
 body.game-hub-page .hub-content-group .hub-material:hover{transform:translateY(-3px) scale(1.025);box-shadow:0 9px 22px #65432620;border-color:#b88d5f}
 .hub-material.type-cover:hover .hub-media img{transform:scale(1.045)}
 .hub-intro:hover{transform:translateY(-2px);box-shadow:0 6px 18px #76523010}
}
body.game-hub-page .hub-content-group .hub-material:focus-visible{transform:translateY(-3px) scale(1.025);box-shadow:0 9px 22px #65432620}
@media(max-width:650px){body.game-hub-page #sectionmain{margin-top:8px}.hub-intro{min-height:150px}.hub-findbar{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){
 body.game-hub-page .hub-content-group .hub-material,.hub-media img,.hub-intro,.hub-database-card{transition:none!important;transform:none!important}
 body.game-hub-page .hub-content-group .hub-material:hover,.hub-material.type-cover:hover .hub-media img,body.game-hub-page .hub-content-group .hub-material:focus-visible,.hub-intro:hover{transform:none!important}
}

/* Fill the available window with equal columns, without a four-card cap. */
body.game-hub-page .hub-content-group .hub-panel-items{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--hub-card-min,240px)),1fr))!important;width:auto;max-width:none;box-sizing:border-box;align-items:stretch;justify-content:stretch}
body.game-hub-page .hub-content-group .hub-card-wrap{width:auto;height:100%;min-width:0}
body.game-hub-page .hub-content-group .hub-material{width:100%;height:100%;min-width:0}
body.game-hub-page .hub-content-group .hub-material.type-cover{height:100%;min-height:232px}
body.game-hub-page .hub-content-group .hub-material.type-cover .hub-media{flex-shrink:0}
body.game-hub-page .hub-content-group .hub-material .hub-material-copy{text-align:var(--hub-card-align,left)}
body.game-hub-page .hub-section-heading h2{flex:1;text-align:var(--hub-heading-align,left)}
@media(max-width:315px){body.game-hub-page .hub-content-group .hub-panel-items{grid-template-columns:minmax(0,1fr)!important}}

.hub-owner-actions:has(.hub-owner-materials){align-items:center;flex-wrap:wrap;gap:10px 16px}
.game-world-page .hub-owner-materials{color:#f4d7c3}
