:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#08090c;color:#f5f5f7}*{box-sizing:border-box}body{margin:0;min-height:100vh}#stars{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}.app{position:relative;z-index:1;min-height:100vh}header{padding:26px 28px;position:sticky;top:0;z-index:5}nav{max-width:1080px;margin:auto;min-height:78px;border:1px solid #2b2e38;border-radius:60px;background:#0e1016ed;backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;padding:12px 20px;box-shadow:0 4px 30px #0005}.brandmark{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(140deg,#4857e9,#b44eea);font-size:32px;color:white}.links{display:flex;gap:8px}.links a{color:#9295a1;text-decoration:none;font-size:20px;padding:12px 19px;border-radius:32px}.links a.active{color:#f5f5f7;background:#191b23;font-weight:650}.discord-login{display:grid;place-items:center;text-decoration:none;width:52px;height:52px;border-radius:50%;background:white;color:#5865f2;font-size:34px;font-weight:900}.hero{min-height:calc(100vh - 165px);display:grid;place-items:center;text-align:center;padding:60px 18px 140px}.hero h1{font-size:clamp(45px,8vw,100px);letter-spacing:-.065em;margin:0;font-weight:850;background:linear-gradient(#fff,#a5a8b5);background-clip:text;color:transparent}.hero h1 span{color:#aaa}.hero p{font-size:clamp(23px,3.2vw,38px);color:#9699a5;margin:26px 0 55px}.pill{display:inline-block;border:0;border-radius:99px;padding:16px 26px;background:#fff;color:#111;text-decoration:none;font-size:19px;font-weight:750;cursor:pointer}.mods,.admin{max-width:1080px;margin:38px auto 100px;padding:0 24px}.heading{margin-bottom:40px}.heading h2,.admin h2{font-size:clamp(54px,9vw,84px);letter-spacing:-.06em;margin:0}.heading p{color:#989ba6;font-size:26px;margin:8px 0}.mod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:25px}.mod-card{border:1px solid #30333d;border-radius:27px;background:#0e1015e8;overflow:hidden}.cover{height:220px;background:#171a22;display:grid;place-items:center;position:relative}.cover img{width:100%;height:100%;object-fit:cover}.cover .lock{position:absolute;font-size:48px;text-shadow:0 2px 10px #000}.mod-body{padding:24px}.mod-body h3{font-size:29px;margin:0 0 12px}.meta{color:#838793;font-family:monospace;letter-spacing:2px}.tags{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.tag{border-radius:99px;padding:8px 14px;font-weight:750}.author{background:#1b2852;color:#91aaff;border:1px solid #394e9a}.buyer{background:#463416;color:#ffcc66;border:1px solid #99701b}.description{white-space:pre-wrap;color:#c0c2ca;line-height:1.6}.download{display:inline-block;margin-top:20px}.empty{color:#989ba6}.hidden{display:none!important}.join{position:fixed;bottom:24px;right:24px;background:#5865f2;color:white;text-decoration:none;font-size:39px;font-weight:900;width:70px;height:70px;border-radius:17px;display:grid;place-items:center;box-shadow:0 8px 25px #0009}.settings-toggle{position:fixed;bottom:25px;left:25px;width:55px;height:55px;border:1px solid #414551;background:#12151de9;color:white;border-radius:50%;font-size:26px;cursor:pointer;z-index:8}.settings{position:fixed;z-index:9;bottom:90px;left:24px;width:min(360px,calc(100vw - 48px));max-height:calc(100vh - 115px);overflow:auto;padding:22px;border:1px solid #333744;background:#11141df5;border-radius:22px;box-shadow:0 20px 60px #000b}.settings-head{display:flex;align-items:center;justify-content:space-between}.settings-head h3{margin:0 0 14px}.settings-head button{border:0;background:none;color:white;font-size:30px;cursor:pointer}.settings label,.admin label{display:block;color:#c6c8d0;margin:14px 0}.settings input[type=range],.settings select,.admin input:not([type=checkbox]),.admin textarea{display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #393e4d;border-radius:10px;background:#191d29;color:white}.settings input[type=range]{padding:0}.check{display:flex!important;align-items:center;gap:10px}.secondary{background:#202430;border:1px solid #393e4d;border-radius:12px;padding:10px 16px;color:white;cursor:pointer}footer{padding:30px;text-align:center;color:#999;display:flex;gap:12px;align-items:center;justify-content:center}@media(max-width:550px){header{padding:18px 12px}nav{min-height:72px;padding:8px 12px}.brandmark,.discord-login{width:43px;height:43px}.links{gap:0}.links a{font-size:16px;padding:10px 12px}.hero{min-height:calc(100dvh - 125px)}.mod-body{padding:20px}.mods{margin-top:20px}.join{width:58px;height:58px;font-size:33px}}
.admin-intro{color:#989ba6;font-size:19px;margin:12px 0 32px}.admin form{max-width:760px;padding:24px;border:1px solid #30333d;border-radius:24px;background:#0e1015e8}@media(max-width:550px){.links a{font-size:14px;padding:9px 9px}.admin form{padding:16px}}

/* Exact supplied images: no filters, recoloring, clipping or background removal. */
.brand-image{display:block;width:52px;height:52px;object-fit:cover;border-radius:14px}.discord-login{background:transparent;color:inherit;overflow:visible}.discord-login img{display:block;width:100%;height:100%;object-fit:contain}.join{background:transparent;box-shadow:none;overflow:visible}.join img{display:block;width:100%;height:100%;object-fit:contain}@media(max-width:550px){.brand-image{width:43px;height:43px;border-radius:12px}}

/* Larger readable image links, while keeping supplied artwork proportions. */
nav .discord-login{width:clamp(150px,19vw,230px);height:clamp(150px,19vw,230px);flex-shrink:0;max-height:112px;aspect-ratio:1;}
nav .discord-login img{width:100%;height:100%;object-fit:contain;}
.join{width:clamp(115px,15vw,190px);height:clamp(115px,15vw,190px);border-radius:0;}
.join img{width:100%;height:100%;object-fit:contain;}
@media(max-width:650px){nav .discord-login{width:100px;height:85px;max-height:none}.join{width:125px;height:125px;bottom:14px;right:12px}}

/* Larger image-based Discord controls; no image transformations. */
.discord-login{width:116px;height:116px;flex:0 0 116px;border-radius:0;background:transparent;box-shadow:none;padding:0}
.discord-login img{width:100%;height:100%;object-fit:contain}
.join{width:148px;height:148px;bottom:18px;right:18px;border-radius:0;background:transparent;box-shadow:none;padding:0}
.join img{width:100%;height:100%;object-fit:contain}
@media(max-width:550px){.discord-login{width:76px;height:76px;flex-basis:76px}.join{width:108px;height:108px;bottom:16px;right:16px}.links a{font-size:13px;padding:8px 7px}}

/* Refined Discord image buttons. The join JPEG has white margins: crop to its blue rounded-square artwork. */
.discord-login{width:98px;height:98px;flex-basis:98px}
.join{width:126px;height:126px;bottom:18px;right:18px;overflow:visible;clip-path:none}
.join img{width:100%;height:100%;object-fit:contain}
@media(max-width:550px){.discord-login{width:68px;height:68px;flex-basis:68px}.join{width:94px;height:94px;bottom:16px;right:16px}}

/* Match the top-left server icon to the Connect Discord button. */
.brand-image{width:98px;height:98px;object-fit:cover;border-radius:20px}
@media(max-width:550px){.brand-image{width:68px;height:68px;border-radius:15px}}

/* Keep uploaded covers strictly inside their preview box, never over mod controls. */
.mod-card{min-width:0;isolation:isolate}
.mod-card .cover{height:220px;min-height:220px;max-height:220px;min-width:0;overflow:hidden;display:block;position:relative}
.mod-card .cover img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;object-position:center;pointer-events:none}
.mod-card .cover .lock{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;pointer-events:none}
.mod-card .mod-body{position:relative;z-index:2;overflow-wrap:anywhere}
.mod-card .download,.mod-card .edit,.mod-card .delete{position:relative;z-index:3;pointer-events:auto}

/* Compact cards with smaller 16:9 cover previews. */
.mod-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:22px}
.mod-card{width:100%;max-width:410px}
.mod-card .cover{height:auto;min-height:0;max-height:none;aspect-ratio:16/9;overflow:hidden}
.mod-card .cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.mod-card .mod-body{padding:18px 20px}
.mod-card .mod-body h3{font-size:24px}
.mod-card .description{font-size:15px}
.crop-panel{padding:16px;margin:12px 0 22px;background:#131722;border:1px solid #343947;border-radius:16px}
.crop-panel p{color:#c5c9d5;margin:0 0 12px}
.crop-preview{width:100%;max-width:640px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#08090c}
.crop-preview canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.crop-preview canvas:active{cursor:grabbing}
.crop-panel input[type=range]{width:100%;padding:0}
.crop-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crop-actions span{color:#a8adbb;font-size:13px}

/* Discord account identity in top-right navigation */
.login-identity{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;flex:0 1 auto}
.login-label{font-size:15px;font-weight:650;color:#f4f5ff;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.login-identity .discord-login{display:grid;place-items:center;width:98px;height:98px;max-height:none;flex:0 0 98px;border-radius:50%;overflow:hidden}
.login-identity .discord-login img{width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:750px){.login-identity{gap:6px}.login-label{font-size:11px;max-width:130px}.login-identity .discord-login{width:68px;height:68px;flex-basis:68px}}
@media(max-width:550px){.login-label{font-size:10px;max-width:90px}.login-identity .discord-login{width:52px;height:52px;flex-basis:52px}nav{gap:5px}.links a{padding:8px 5px;font-size:12px}}

/* Compact reference layout */
@media(min-width:751px){
header{padding:16px 24px}nav{min-height:58px;padding:7px 13px}
.brand-image{width:56px;height:56px;border-radius:15px}
.login-identity .discord-login{width:58px;height:58px;flex-basis:58px}
.login-label{font-size:12px}.links a{font-size:14px;padding:9px 14px}
.mods{margin-top:22px}.heading{margin-bottom:20px}
.heading h2{font-size:52px}.heading p{font-size:16px;margin-top:3px}
.mod-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),260px));gap:18px}
.mod-card{max-width:260px;border-radius:14px}
.mod-card .mod-body{padding:12px 14px}
.mod-card .mod-body h3{font-size:17px;margin-bottom:7px}
.mod-card .meta{font-size:10px;letter-spacing:.6px}
.mod-card .tags{margin:10px 0;gap:6px}
.mod-card .tag{font-size:11px;padding:5px 9px}
.mod-card .description{font-size:12px;line-height:1.4}
.mod-card .download{margin-top:12px;font-size:12px;padding:10px 14px}
.mod-card .secondary{font-size:11px;padding:7px 10px}
}
.mod-card .cover .lock{font-size:32px;text-shadow:0 2px 8px #000c}
@media(max-width:750px){.heading h2{font-size:clamp(38px,9vw,54px)}.heading p{font-size:18px}}

/* Separate top-right constellation control and larger account image */
header{position:sticky}
header .settings-toggle{position:absolute;top:8px;right:8px;bottom:auto;left:auto;z-index:8;width:39px;height:39px;font-size:21px}
nav{padding-right:52px}
.login-identity .discord-login{width:110px;height:76px;flex-basis:110px;border-radius:18px;overflow:visible;background:transparent}
.login-identity .discord-login img{object-fit:contain;border-radius:18px}
.login-identity .discord-login[href^="https://discord.com/"]{width:76px;height:76px;flex-basis:76px;border-radius:50%;overflow:hidden}
.login-identity .discord-login[href^="https://discord.com/"] img{object-fit:cover;border-radius:50%}
.credits{max-width:1080px;margin:38px auto 100px;padding:0 24px}
.credits .heading h2{font-size:clamp(54px,9vw,84px);letter-spacing:-.06em;margin:0}
.credit-entry{margin:55px 0}
.credit-entry h3{font-size:clamp(48px,8vw,92px);letter-spacing:-.06em;font-weight:850;margin:0;background:linear-gradient(#fff,#a5a8b5);background-clip:text;color:transparent}
.credit-entry p{font-size:clamp(21px,3vw,32px);color:#a7aab7;margin:12px 0}
@media(min-width:751px){.login-identity .discord-login{width:128px;height:72px;flex-basis:128px}.login-identity .discord-login[href^="https://discord.com/"]{width:72px;height:72px;flex-basis:72px}}
@media(max-width:750px){header .settings-toggle{top:4px;right:4px;width:32px;height:32px;font-size:17px}nav{padding-right:36px}.login-identity .discord-login{width:90px;height:58px;flex-basis:90px}.login-identity .discord-login[href^="https://discord.com/"]{width:58px;height:58px;flex-basis:58px}}
@media(max-width:550px){.login-identity .discord-login{width:76px;height:48px;flex-basis:76px}.login-identity .discord-login[href^="https://discord.com/"]{width:48px;height:48px;flex-basis:48px}.links{gap:1px}.links a{font-size:11px;padding:7px 4px}.brand-image{width:35px;height:35px}}

/* Separate dark-glass account and settings panel, matching the main navigation. */
header{position:sticky;display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 22px}
header nav{flex:1 1 auto;min-width:0;max-width:1080px;margin:0}
header nav{padding-right:13px}
.account-corner{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:9px 13px;background:#0e1016ed;border:1px solid #2b2e38;border-radius:60px;box-shadow:0 4px 30px #0005;backdrop-filter:blur(18px);min-height:76px}
.account-corner .login-identity{gap:10px}
.account-corner .discord-login,.account-corner .discord-login[href^="https://discord.com/"]{display:grid;place-items:center;width:112px;height:68px;flex:0 0 112px;max-height:none;overflow:visible;border-radius:14px;background:transparent}
.account-corner .discord-login img{width:100%;height:100%;object-fit:contain;border-radius:14px}
.account-corner .discord-login[href^="https://discord.com/"]{width:68px;height:68px;flex-basis:68px;border-radius:50%;overflow:hidden}
.account-corner .discord-login[href^="https://discord.com/"] img{object-fit:cover;border-radius:50%}
.account-corner .settings-toggle{position:static;top:auto;right:auto;bottom:auto;left:auto;width:64px;height:64px;flex:0 0 64px;font-size:31px;border-radius:19px;background:#1b1e29;color:#f7f8ff;border:1px solid #444958;display:grid;place-items:center}
.settings{top:105px;right:22px;bottom:auto;left:auto;max-height:calc(100vh - 120px)}
.join{width:112px;height:68px;border-radius:16px}
.mod-card.buyer-locked .cover img{filter:grayscale(1) brightness(.62)}
.mod-card.buyer-locked .cover:after{content:"";position:absolute;inset:0;background:#1114;pointer-events:none}
.mod-card .cover .lock{z-index:2;display:grid;place-items:center;filter:drop-shadow(0 2px 3px #000c);text-shadow:none}
.mod-card .cover .lock svg{width:38px;height:48px;image-rendering:pixelated}
@media(max-width:900px){header{gap:8px;padding:12px}.account-corner{padding:7px 9px;gap:5px}.account-corner .discord-login{width:92px;height:58px;flex-basis:92px}.account-corner .settings-toggle{width:54px;height:54px;flex-basis:54px;font-size:27px}.join{width:92px;height:58px}}
@media(max-width:650px){header{flex-wrap:wrap;justify-content:center}header nav{flex:1 1 100%;justify-content:space-between}header .account-corner{margin-left:auto;min-height:0}.account-corner .discord-login{width:92px;height:58px;flex-basis:92px}.account-corner .discord-login[href^="https://discord.com/"]{width:56px;height:56px;flex-basis:56px}.account-corner .settings-toggle{width:54px;height:54px;flex-basis:54px}.settings{top:155px;right:12px}.join{width:92px;height:58px}}

/* Navigation alignment, fully contained Discord art and hover depth. */
header{position:sticky}
header nav{position:relative;justify-content:flex-start;min-width:0}
header nav .links{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.account-corner{overflow:visible;isolation:isolate}
.account-corner .discord-login{width:100px;height:68px;flex:0 0 100px;overflow:visible;min-width:0;max-height:none}
.account-corner .discord-login img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.account-corner .discord-login[href^="https://discord.com/"]{width:68px;height:68px;flex:0 0 68px;overflow:hidden}
.join{bottom:52px;right:25px;width:100px;height:68px;z-index:7}
.join img{object-fit:contain}
@media(hover:hover) and (pointer:fine){
 .links a,.pill,.secondary,.settings-toggle,.join,.discord-login,.brand,.mod-card .download,.mod-card .edit,.mod-card .delete{transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease,filter .22s ease;transform-origin:center;will-change:transform}
 .links a:hover,.pill:hover,.secondary:hover,.settings-toggle:hover,.join:hover,.mod-card .download:hover,.mod-card .edit:hover,.mod-card .delete:hover{transform:translateY(-3px) scale(1.065);box-shadow:0 9px 20px #0005}
 .links a:active,.pill:active,.secondary:active,.settings-toggle:active,.join:active{transform:scale(.98)}
 .account-corner .discord-login:hover{transform:translateY(-4px) scale(1.09);filter:drop-shadow(0 0 12px #8d62ff) drop-shadow(0 0 18px #7941ff9c)}
 .brand:hover{transform:scale(1.025)}
 .brand:hover .brand-image{box-shadow:none;filter:none}
}
@media(max-width:900px){header nav .links{gap:1px}.links a{font-size:13px;padding:9px 9px}.join{bottom:45px;right:18px;width:92px;height:58px}.account-corner .discord-login{width:92px;height:58px;flex-basis:92px}}
@media(max-width:650px){header nav{min-height:68px}header nav .links{left:auto;right:8px;top:50%;transform:translateY(-50%);gap:0}.links a{font-size:11px;padding:7px 5px}.join{bottom:36px;right:12px}.account-corner .discord-login{width:92px;height:58px;flex-basis:92px}}
@media(max-width:390px){header nav .links a{font-size:10px;padding:6px 3px}.brand-image{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.links a,.pill,.secondary,.settings-toggle,.join,.discord-login,.brand{transition:none!important}}

/* Account pill: contain the complete supplied circular Discord artwork.
   Keep the Discord artwork size unchanged; grow the surrounding pill instead. */
@media(min-width:651px){
 header{padding-right:7px;gap:12px}
 .account-corner{min-height:116px;padding:8px 13px;gap:10px;border-radius:64px;align-items:center;overflow:visible}
 .account-corner .login-identity{align-items:center;gap:10px}
 .account-corner .discord-login:not([href^="https://discord.com/"]){width:100px;height:100px;flex:0 0 100px;max-height:none;display:grid;place-items:center;overflow:visible}
 .account-corner .discord-login:not([href^="https://discord.com/"]) img{width:100px;height:100px;max-width:100px;max-height:100px;object-fit:contain;display:block}
 .account-corner .discord-login[href^="https://discord.com/"]{width:68px;height:68px;flex:0 0 68px}
 .account-corner .settings-toggle{width:70px;height:70px;flex-basis:70px}
}
@media(max-width:650px){
 .account-corner{min-height:88px;padding:8px 10px}
 .account-corner .discord-login:not([href^="https://discord.com/"]){width:76px;height:76px;flex:0 0 76px;max-height:none}
 .account-corner .discord-login:not([href^="https://discord.com/"]) img{width:76px;height:76px;object-fit:contain}
}
.mod-card .cover .lock svg{width:48px;height:58px;image-rendering:pixelated;shape-rendering:crispEdges}

/* Precise header layout: original 1080px navigation cap, separate right control pill. */
.mod-card .cover .lock svg{width:39px;height:48px;image-rendering:pixelated;shape-rendering:crispEdges}
@media(min-width:901px){
 header{position:sticky;padding:16px 22px;display:block}
 header nav{width:min(1080px,calc(100% - 410px));max-width:1080px;min-height:78px;margin:0 auto;flex:none}
 header .account-corner{position:absolute;top:16px;right:22px;margin:0;flex:none}
}
@media(min-width:651px) and (max-width:900px){
 header{position:sticky;padding:12px 16px;display:block}
 header nav{width:calc(100% - 245px);max-width:1080px;margin:0;flex:none}
 header .account-corner{position:absolute;top:12px;right:16px;margin:0;flex:none}
}
@media(max-width:650px){
 header{padding:12px;display:flex;flex-wrap:wrap}
 header nav{width:100%;max-width:1080px;flex:1 1 100%;margin:0}
 header .account-corner{position:relative;right:auto;top:auto;margin-left:auto}
}

/* Only Home and Admin compact sizing. Mods and Credits retain their prior layout. */
@media(min-width:751px){
 /* Home: leave the footer visible and lift the central content. */
 body:has(#home:not(.hidden)) .hero{
   min-height:calc(100dvh - 150px);
   padding:0 18px 42px;
   align-items:center;
 }
 body:has(#home:not(.hidden)) .hero>div{transform:translateY(-36px)}
 body:has(#home:not(.hidden)) .hero h1{font-size:clamp(45px,7vw,90px)}
 body:has(#home:not(.hidden)) .hero p{font-size:clamp(22px,2.8vw,34px);margin:17px 0 32px}
 body:has(#home:not(.hidden)) footer{position:fixed;left:0;right:0;bottom:10px;padding:8px 18px;z-index:3}
 body:has(#home:not(.hidden)) .join{bottom:70px}
 /* Admin: slightly roomier than the previous compact form, with a little more top space. */
 .admin{max-width:980px;margin-top:27px;margin-bottom:22px}
 .admin h2{font-size:clamp(43px,5.2vw,62px);line-height:1.08}
 .admin-intro{font-size:16px;margin:7px 0 14px}
 .admin form{max-width:900px;padding:16px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;align-items:end}
 .admin form>label{margin:3px 0;font-size:14px}
 .admin form>label:nth-of-type(4),.admin form>.crop-panel,.admin form>#upload-status{grid-column:1/-1}
 .admin form>label.check{align-self:center}
 .admin input:not([type=checkbox]),.admin textarea{padding:8px 10px;margin-top:4px;font-size:14px}
 .admin textarea{height:76px;min-height:60px;resize:vertical}
 .admin form>.pill{justify-self:start;padding:11px 19px;font-size:15px}
 .admin .crop-panel{margin:6px 0;padding:12px}
}
@media(min-width:751px) and (max-height:760px){
 body:has(#home:not(.hidden)) .hero{min-height:calc(100dvh - 145px);padding-bottom:15px}
 body:has(#home:not(.hidden)) .hero>div{transform:translateY(-25px)}
 body:has(#home:not(.hidden)) .hero h1{font-size:clamp(42px,6vw,72px)}
 body:has(#home:not(.hidden)) .hero p{margin:12px 0 24px}
 .admin{margin-top:16px}
 .admin h2{font-size:46px}
 .admin-intro{margin:5px 0 10px}
 .admin form{padding:12px 16px;gap:5px 13px}
 .admin textarea{height:64px}
}
@media(max-width:750px){
 body:has(#home:not(.hidden)) .hero{min-height:calc(100dvh - 155px);padding:10px 16px 30px}
 body:has(#home:not(.hidden)) .hero>div{transform:translateY(-15px)}
 body:has(#home:not(.hidden)) .hero h1{font-size:clamp(40px,10vw,64px)}
 body:has(#home:not(.hidden)) .hero p{font-size:21px;margin:14px 0 27px}
 body:has(#home:not(.hidden)) footer{padding:8px}
 .admin{margin-top:24px}
 .admin form{padding:16px}
}

/* Credits entries: plain white text, without RGB gradients or beams. */
#credits .credit-entry h3,
#credits .credit-entry p{
  color:#fff!important;
  background-image:none!important;
  -webkit-text-fill-color:#fff!important;
  animation:none!important;
}
.admin form>label,.settings label{color:#c42e43}
.admin form input,.admin form textarea,.admin form select,
.settings input,.settings select{-webkit-text-fill-color:initial}
/* Preserve blue author badge. */
.mod-body .tag.author,.mod-body .tag.author *{
  background-image:none!important;
  animation:none!important;
  -webkit-text-fill-color:#65b8ff!important;
  color:#65b8ff!important;
}
/* Yellow Coming Soon tag and button, including yellow-toned backgrounds. */
.mod-body .tags .tag.buyer{
  background:#765a16!important;
  border:1px solid #c59b27!important;
  background-image:none!important;
  color:#ffe07a!important;
  -webkit-text-fill-color:#ffe07a!important;
  animation:none!important;
}
.mod-body .coming-soon{
  display:inline-block;
  background:#b58a22!important;
  background-image:none!important;
  border-color:#d6ac37!important;
  color:#fff0a4!important;
  -webkit-text-fill-color:#fff0a4!important;
  animation:none!important;
  cursor:not-allowed;
  pointer-events:none;
}

/* Authenticated user page — follows the supplied layout, preserving the site's stars. */
.user-page{width:min(960px,calc(100% - 36px));margin:65px auto 110px;color:#f5f5f7}
.user-profile-head{display:flex;align-items:center;gap:18px;margin-bottom:27px}
.user-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;border:2px solid #e4e4e7;box-shadow:0 0 0 6px #ffffff0c,0 8px 24px #0008}
.user-welcome{font-size:14px;color:#999;display:block;font-weight:600}
.user-profile-head h1{font-size:clamp(30px,4.5vw,42px);letter-spacing:-.04em;margin:0;overflow-wrap:anywhere;line-height:1.12}
.user-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.user-stat{min-height:97px;background:#111114e8;border:1px solid #2a2a2f;border-radius:15px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:7px;box-shadow:0 6px 20px #0004}
.user-stat-label{font-size:11px;font-weight:800;letter-spacing:.09em;color:#8d8d92}
.user-stat strong{font-size:17px;font-weight:750;color:#e5e5e7;overflow-wrap:anywhere}
.user-stat strong.is-buyer{color:#90e4b5}
.user-stat #user-id{font-size:13px;letter-spacing:0}
.user-stat small{color:#999;font-size:12px}
.user-actions{display:flex;gap:12px;align-items:center;margin-top:34px}
.user-home,.user-signout{padding:12px 24px;border-radius:28px;font-size:14px;font-weight:750;text-decoration:none;cursor:pointer}
.user-home{background:#fff;color:#111;border:1px solid #fff}
.user-signout{background:#0d0d0f;color:#fff;border:1px solid #303036}
@media(max-width:650px){
 .user-page{margin:30px auto 85px}
 .user-avatar{width:72px;height:72px}
 .user-stat-grid{grid-template-columns:1fr}
 .user-stat{min-height:85px}
 .user-actions{margin-top:24px}
}

/* Compact single-pill navigation inspired by the supplied layout. */
header{position:sticky!important;display:block!important;padding:14px 18px!important}
header nav{position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;width:min(1100px,100%)!important;max-width:1100px!important;min-height:64px!important;margin:auto!important;padding:9px 14px!important;border-radius:99px!important}
header nav .brand{position:relative!important;flex:0 0 auto!important}
header nav .brand-image{width:40px!important;height:40px!important}
header nav .links{position:static!important;inset:auto!important;transform:none!important;flex:1 1 auto!important;display:flex!important;justify-content:center!important;gap:4px!important}
header nav .links a{font-size:14px!important;padding:8px 12px!important;white-space:nowrap!important}
header nav .account-corner{position:relative!important;inset:auto!important;margin:0!important;display:flex!important;align-items:center!important;gap:6px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
header nav .account-corner .discord-login,
header nav .account-corner .discord-login:not([href^="https://discord.com/"]){width:44px!important;height:44px!important;max-height:44px!important;flex:0 0 44px!important;border-radius:50%!important;overflow:hidden!important}
header nav .account-corner .discord-login img,
header nav .account-corner .discord-login:not([href^="https://discord.com/"]) img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important}
header nav .account-menu-toggle{position:static!important;width:36px!important;height:36px!important;font-size:19px!important}
header nav .account-menu{position:absolute!important;top:calc(100% + 12px)!important;right:0!important;left:auto!important;z-index:30!important}
@media(max-width:680px){header{padding:9px 7px!important}header nav{gap:3px!important;padding:7px!important}header nav .brand-image{width:30px!important;height:30px!important}header nav .links{gap:0!important}header nav .links a{font-size:11px!important;padding:7px 4px!important}header nav .account-corner{gap:2px!important}header nav .account-corner .discord-login,header nav .account-corner .discord-login:not([href^="https://discord.com/"]){width:33px!important;height:33px!important;max-height:33px!important;flex-basis:33px!important}header nav .account-menu-toggle{width:28px!important;height:28px!important;font-size:15px!important}}

/* Settings control uses the same text-tab treatment as Home, Mods, Credits. */
header nav .account-menu-toggle{width:auto!important;min-width:0!important;height:auto!important;padding:8px 12px!important;border:0!important;border-radius:32px!important;background:transparent!important;box-shadow:none!important;color:#9295a1!important;font:inherit!important;font-size:14px!important;font-weight:500!important;white-space:nowrap!important;cursor:pointer}
header nav .account-menu-toggle:hover,header nav .account-menu-toggle[aria-expanded="true"]{color:#f5f5f7!important;background:#191b23!important}
@media(max-width:680px){header nav .account-menu-toggle{width:auto!important;min-width:0!important;height:auto!important;padding:7px 4px!important;font-size:11px!important}}

/* Embedded store uses the existing site's layout and constellation background. */
.store-page{width:min(1100px,calc(100% - 32px));margin:26px auto 95px;min-height:calc(100dvh - 210px)}
.store-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.store-head h2{font-size:clamp(36px,5vw,58px);letter-spacing:-.045em;margin:0}
.store-head p,.store-note{color:#a0a4b0;font-size:14px;margin:6px 0}
.store-external{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border-radius:99px;background:#fff;color:#111;font-weight:700;font-size:13px;text-decoration:none}
.store-frame-wrap{overflow:hidden;border:1px solid #30333d;border-radius:20px;background:#0e1015e8;min-height:620px}
.store-frame-wrap iframe{display:block;width:100%;height:max(660px,calc(100dvh - 230px));border:0;background:#0e1015}
.store-note{margin-top:14px;line-height:1.6}
.store-note a{color:#d4d9ff;text-decoration:underline}
@media(max-width:650px){.store-page{margin-top:20px}.store-frame-wrap{border-radius:13px;min-height:520px}.store-frame-wrap iframe{height:calc(100dvh - 160px);min-height:560px}}

/* Native SellAuth product cards; checkout itself is SellAuth's official v3 modal. */
.store-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:18px;margin:26px 0 18px}
.store-product{overflow:hidden;border:1px solid #333744;border-radius:19px;background:linear-gradient(155deg,#1c1e27ed,#0c0d13f2);box-shadow:0 16px 48px #0005}
.store-product-art{height:180px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 70%,#41335b,#1a1925 55%,#11121a);border-bottom:1px solid #34323f}
.store-product-art span{font-size:76px;color:#e6dbff;text-shadow:0 0 35px #a56eff9e}
.store-product-info{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.store-product-label{font-size:10px;letter-spacing:.15em;color:#ac9acb;font-weight:800}
.store-product-info h3{font-size:26px;line-height:1.15;margin:0}
.store-product-info p{font-size:13px;color:#a6a8b6;line-height:1.6;margin:0 0 8px;min-height:62px}
.store-buy{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;border:0;border-radius:12px;padding:13px 18px;background:#f5f3ff;color:#16131e;font-weight:800;cursor:pointer;transition:transform .15s,background .15s}
.store-buy:hover{background:#ded4ff;transform:translateY(-1px)}
.store-buy:focus-visible{outline:3px solid #aa92ff;outline-offset:3px}

/* Show the actual uploaded SellAuth Buyer artwork in the product card. */
.store-product-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Alternative Cash App purchase instructions alongside the Store heading. */
.store-alternative{display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:350px}
.store-alternative p{margin:0;color:#a0a4b0;font-size:12px;line-height:1.5}
@media(max-width:650px){.store-alternative{width:100%;max-width:100%}}

/* Improve readability of Cash App instructions and Buyer product description. */
.store-alternative p{font-size:16px!important;line-height:1.6!important}
.store-product-info p{font-size:16px!important;line-height:1.6!important;min-height:0!important}

/* Consistent hover and press feedback across every page and interactive control. */
:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.pill,.secondary,.settings-toggle,.join,.discord-login,.brand){transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,filter .2s ease,background-color .2s ease!important;transform-origin:center;cursor:pointer}
:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.pill,.secondary,.settings-toggle,.join,.discord-login,.brand):not(:disabled):not([aria-disabled="true"]):hover{transform:translateY(-3px) scale(1.045);filter:brightness(1.12);box-shadow:0 9px 22px #0005}
:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.pill,.secondary,.settings-toggle,.join,.discord-login,.brand):not(:disabled):not([aria-disabled="true"]):active{transform:translateY(0) scale(.96);filter:brightness(.95);box-shadow:0 2px 7px #0004}
:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"]):focus-visible{outline:2px solid #aa92ff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.pill,.secondary,.settings-toggle,.join,.discord-login,.brand){transition:none!important}:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.pill,.secondary,.settings-toggle,.join,.discord-login,.brand):hover,:where(button,a[href],input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.pill,.secondary,.settings-toggle,.join,.discord-login,.brand):active{transform:none}}

/* Native, image-free Discord connect control: rounded rectangle with crisp vector logo. */
nav .discord-login:not(.has-avatar){display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:218px;max-width:100%;height:52px;max-height:none;flex:0 1 auto;aspect-ratio:auto;border-radius:18px;padding:0 17px;background:#5865f2;color:#fff;box-shadow:0 5px 16px #5865f235;overflow:visible;white-space:nowrap}
.discord-login-label{display:inline-flex;align-items:center;justify-content:center;gap:11px;font-size:14px;font-weight:800;line-height:1.2;letter-spacing:.01em}
.discord-logo{display:block;width:27px;height:22px;flex-shrink:0}
.discord-login:not(.has-avatar) #login-image{display:none!important}
.discord-login.has-avatar .discord-login-label{display:none}
.discord-login.has-avatar #login-image{display:block}
@media(max-width:600px){nav .discord-login:not(.has-avatar){min-width:0;height:46px;padding:0 12px;border-radius:15px}.discord-login-label{font-size:12px;gap:7px}.discord-logo{width:23px;height:19px}}

/* Fix Discord connect button oval caused by inherited image-button transforms/shape rules. */
nav .account-corner .discord-login:not(.has-avatar){box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;min-width:0!important;max-width:100%!important;height:52px!important;max-height:52px!important;aspect-ratio:auto!important;border-radius:15px!important;padding:0 20px!important;flex:0 0 auto!important;transform:none;clip-path:none!important;background:#5865f2!important}
nav .account-corner .discord-login:not(.has-avatar):hover{transform:translateY(-3px) scale(1.035)!important}
nav .account-corner .discord-login:not(.has-avatar):active{transform:scale(.97)!important}
nav .account-corner .discord-login:not(.has-avatar) .discord-login-label{display:inline-flex!important;white-space:nowrap;line-height:1.2}
@media(max-width:600px){nav .account-corner .discord-login:not(.has-avatar){height:46px!important;max-height:46px!important;padding:0 12px!important;border-radius:13px!important}}

/* Match the original index's white pill-shaped Discord connection control, not an oval. */
header nav .account-corner .discord-login:not(.has-avatar),
header nav .account-corner .discord-login:not(.has-avatar):not([href^="https://discord.com/"]){display:inline-flex!important;box-sizing:border-box!important;position:relative!important;width:max-content!important;min-width:max-content!important;max-width:none!important;height:44px!important;min-height:44px!important;max-height:44px!important;flex:0 0 auto!important;aspect-ratio:auto!important;border-radius:999px!important;padding:0 18px!important;background:#fff!important;color:#111!important;box-shadow:none!important;overflow:hidden!important;clip-path:none!important}
header nav .account-corner .discord-login:not(.has-avatar) .discord-login-label{display:inline-flex!important;align-items:center!important;gap:9px!important;white-space:nowrap!important;font-size:14px!important;font-weight:600!important;line-height:1!important}
header nav .account-corner .discord-login:not(.has-avatar) .discord-logo{width:20px!important;height:19px!important;color:#5865f2!important;flex:none!important}
header nav .account-corner .discord-login:not(.has-avatar):hover{transform:translateY(-2px) scale(1.04)!important;box-shadow:0 6px 26px #5865f299!important}
header nav .account-corner .discord-login:not(.has-avatar):active{transform:scale(.97)!important}
@media(max-width:600px){header nav .account-corner .discord-login:not(.has-avatar),header nav .account-corner .discord-login:not(.has-avatar):not([href^="https://discord.com/"]){height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 12px!important}header nav .account-corner .discord-login:not(.has-avatar) .discord-login-label{font-size:12px!important;gap:6px!important}}

/* Discord brand blue pill with white icon and lettering (same shape as original index). */
header nav .account-corner .discord-login:not(.has-avatar),header nav .account-corner .discord-login:not(.has-avatar):not([href^="https://discord.com/"]){background:#5865f2!important;color:#fff!important}
header nav .account-corner .discord-login:not(.has-avatar) .discord-logo{color:#fff!important}

/* Public announcements and admin action dropdowns */
.announcements-page{max-width:1050px;margin:24px auto 100px;padding:22px}
.announcement-list{display:grid;gap:18px;margin-top:26px}
.announcement-card{background:#10131cde;border:1px solid #343847;border-radius:20px;padding:24px;box-shadow:0 8px 30px #0005}
.announcement-top{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.announcement-top h3{font-size:1.3rem;margin:0;color:#fff}
.announcement-top time{color:#a2a9bc;font-size:.85rem}
.announcement-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:#e2e5ef}
.announcement-mention{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;background:#242d44;border:1px solid #53678c;border-radius:10px;color:#b6d8ff!important;padding:10px 14px;text-decoration:none;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.announcement-mention span{color:#d4d9e4;font-size:.82rem;font-weight:500}
.announcement-mention:hover{background:#334467;transform:translateY(-2px)}
.announcement-delete{margin-left:12px}
.admin-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
.admin-actions button[aria-expanded="true"]{background:#394a75;color:#fff;border-color:#8094d1}
#admin-announcement-panel form{display:grid;gap:15px}
#admin-announcement-panel select{width:100%;min-height:44px}
.mod-card.announcement-highlight{outline:3px solid #ffb24d;outline-offset:4px}
@media(max-width:600px){.announcements-page{padding:14px}.announcement-card{padding:17px}.announcement-top{display:block}}

/* Consistent pop-out animation for all actionable buttons and links. */
button, .pill, .secondary, .announcement-mention, .links a, .store-buy, .discord-login, .join, .user-home, .user-signout, .store-external {
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,background-color .2s ease,border-color .2s ease;
  transform-origin:center;
}
button:not(:disabled):hover, .pill:hover, .secondary:hover, .announcement-mention:hover, .links a:hover, .store-buy:hover, .discord-login:hover, .join:hover, .user-home:hover, .user-signout:hover, .store-external:hover {
  transform:translateY(-3px) scale(1.045);
  filter:brightness(1.12);
  box-shadow:0 9px 22px #0008;
}
button:not(:disabled):active, .pill:active, .secondary:active, .announcement-mention:active, .links a:active, .store-buy:active, .discord-login:active, .join:active, .user-home:active, .user-signout:active, .store-external:active {
  transform:translateY(0) scale(.97);
  transition-duration:.09s;
}
button:focus-visible, .pill:focus-visible, .secondary:focus-visible, .announcement-mention:focus-visible, .links a:focus-visible {
  outline:2px solid #a9bfff;
  outline-offset:3px;
}
button:disabled{cursor:not-allowed;opacity:.55}
@media(prefers-reduced-motion:reduce){
 button, .pill, .secondary, .announcement-mention, .links a, .store-buy, .discord-login, .join, .user-home, .user-signout, .store-external{transition:none!important}
}


/* Match the Home "Burger Modding" silver gradient on page titles and credit names.
   Leave the SellAuth Buyer product card and its typography unchanged. */
#mods .heading h2,
#credits .credit-entry h3,
#admin > h2,
#store .store-head h2 {
  background:linear-gradient(#fff,#a5a8b5)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  font-weight:850;
}

/* Match Credits descriptions to the Home title's silver-white gradient too. */
#credits .credit-entry p {
  background:linear-gradient(#fff,#a5a8b5)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
