/* Shared spacing and responsive controls; preserve each page's game artwork. */
.media-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.media-intro{max-width:75ch;margin:16px auto;line-height:1.5}.game-settings-dialog{box-sizing:border-box;max-width:94vw;max-height:90dvh;overflow:auto;scrollbar-gutter:stable}.game-settings-dialog label,.game-settings-dialog input,.game-settings-dialog select{max-width:100%;box-sizing:border-box}.game-settings-dialog button{white-space:normal;overflow-wrap:anywhere}.game-settings-dialog p{line-height:1.5}.game-settings-dialog h2{line-height:1.2}
.player-profile{padding:24px!important}.player-profile>h2{margin:0 0 8px}.player-profile>.profile-identity{margin:0 0 12px}.player-profile>.profile-explanation{max-width:78ch;font-size:14px}.player-profile .profile-member{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.player-profile .profile-member>*{min-width:0;margin:0}.player-profile .licence-editor,.player-profile .profile-progress-overview,.player-profile .profile-account-tools,.player-profile .profile-member>.profile-ownership,.player-profile .profile-member>.profile-multiplayer{grid-column:1/-1}.player-profile .licence-editor{box-sizing:border-box;padding:18px}.player-profile .licence-edit-launch{width:min(290px,100%);margin:16px auto}.player-profile .licence-disclosure{max-width:65ch;margin:12px auto;text-align:center;font-size:12px}.profile-progress-overview,.player-profile .profile-friends,.profile-account-tools{padding:16px;border:1px solid #639ccc;border-radius:10px;background:#052346}.profile-progress-overview h3{margin:0 0 9px;color:#ffe775}.profile-progress-overview p{margin:0;line-height:1.7}.profile-account-tools summary,.profile-compare-tools summary{cursor:pointer;color:#ffe775;font-weight:bold;min-height:30px;line-height:1.6}.profile-account-tools button{margin:8px 8px 0 0;max-width:100%;min-height:42px}.player-profile .profile-control-editor{margin:0;padding:16px}.player-profile .settings-close{position:sticky;bottom:0;z-index:4;display:block;margin:20px 0 0 auto;background:#a90016;border:2px solid white;padding:10px 24px}.player-profile details>p{font-size:13px;line-height:1.6}.player-profile .profile-member>section:not(.licence-editor):not(.profile-friends):not(.profile-control-editor){grid-column:1/-1}
#profile-dialog{box-sizing:border-box;width:min(1080px,94vw);max-height:90dvh;overflow:auto;padding:22px;scrollbar-gutter:stable}#profile-dialog .profile-heading{display:flex;align-items:center;gap:16px}#profile-dialog .profile-heading .profile-identity{min-width:0;flex:1}#profile-dialog #profile-title{overflow-wrap:anywhere}#profile-dialog #profile-close{flex:none;min-height:42px}#profile-dialog .profile-section-nav{position:sticky;top:-22px;z-index:5;display:flex;flex-wrap:wrap;gap:7px;background:#05284e;padding:12px 0;border-bottom:1px solid #6097c7;margin:14px 0}#profile-dialog .profile-section-nav button{min-height:40px;padding:8px 12px;font-size:12px}#profile-dialog .licence-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0}#profile-dialog .licence-share>button{min-height:42px;flex:1 1 190px}#profile-dialog .licence-share>p:empty{display:none}#profile-dialog .profile-compare-tools{flex-basis:100%;padding:10px 12px;background:#06284b;border-radius:8px}#profile-dialog .profile-compare-tools button{margin:6px 6px 0 0;min-height:40px}#profile-dialog section{margin-top:20px;padding:16px;border-radius:10px;border:1px solid #416f99;background:#031e3bd9;scroll-margin-top:100px}#profile-dialog #profile-summary,#profile-dialog .licence-records-heading{scroll-margin-top:100px}#profile-dialog .tool-filters{display:flex;gap:12px;flex-wrap:wrap}#profile-dialog .tool-filters label{flex:1 1 190px;min-width:0}#profile-dialog .tool-filters select{width:100%;box-sizing:border-box;min-height:42px}#profile-dialog #profile-records{padding-left:0;list-style:none}#profile-dialog #profile-records>li{padding:12px;margin:8px 0;border:1px solid #416f99;border-radius:8px;overflow-wrap:anywhere}#profile-dialog .profile-note{font-size:13px;line-height:1.5}#profile-dialog .profile-multiplayer{max-width:100%;box-sizing:border-box}#profile-dialog .profile-mp-totals{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
@media(max-width:700px){.media-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.player-profile{padding:16px!important}.player-profile .profile-member{grid-template-columns:1fr}.player-profile .profile-member>*{grid-column:1}.player-profile .licence-editor{padding:12px}.player-profile .licence-menu{gap:10px}.player-profile .profile-account-tools button{width:100%;margin:8px 0 0}#profile-dialog{padding:14px}#profile-dialog .profile-heading{gap:10px}#profile-dialog .profile-heading>.profile-licence{width:75px;height:auto}#profile-dialog .profile-section-nav{top:-14px;gap:5px}#profile-dialog .profile-section-nav button{flex:1 1 auto;padding:8px;font-size:11px}#profile-dialog .licence-share>button{flex-basis:140px;font-size:12px}#profile-dialog section{padding:12px}#profile-dialog .profile-compare-tools button{display:block;width:100%;margin:8px 0 0}#profile-dialog .licence-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.game-settings-dialog{max-width:95vw}.tool-filters{gap:10px}}
#profile-dialog .profile-section-nav button{background:linear-gradient(#145e9a,#062955);border:1px solid #88c9f3;border-radius:6px;color:#fff;font-weight:700}#profile-dialog .profile-section-nav button:hover{background:#174b80}#profile-dialog .profile-section-nav button:focus-visible{outline:3px solid #ffe45c;outline-offset:2px}
@media(min-width:760px){.player-profile .licence-editor{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;align-items:center}.player-profile .licence-editor .licence-card-host{min-width:0}.player-profile .licence-editor #licence-edit-tools,.player-profile .licence-editor .licence-save-status,.player-profile .licence-editor .licence-disclosure{grid-column:1/-1}.player-profile .licence-editor .licence-edit-launch span{font-size:18px}.player-profile .licence-editor .sega-licence-card{margin:0 auto}}
.player-profile .profile-member>.licence-editor{order:-3}.player-profile .profile-member>.profile-progress-overview{order:-2}.player-profile:has(.profile-member:not([hidden]))>.profile-explanation{display:none}
