/* Onyx remains neutral. The emerald light belongs to the glass itself. */
body{background:#090a0c;background-image:none}
:is(.glass,.badge-card,.profile-panel,.news-card,.feature,.stat,.requirement,.rule-panel,.button,.toolbar,.admin-notices){
 background:radial-gradient(ellipse at 50% 115%,#45ef8b12,transparent 65%),linear-gradient(155deg,#ffffff0e,#ffffff02 48%,#ffffff06);
 background-color:#11131774;border:1px solid #ffffff24;
 box-shadow:inset 0 1px 1px #ffffff45,inset 1px 0 1px #ffffff0a,inset 0 -1px 2px #77ffb570,0 12px 36px #0005,0 13px 26px -17px #34ef8999;
 backdrop-filter:blur(28px) saturate(135%);-webkit-backdrop-filter:blur(28px) saturate(135%);
 transition:box-shadow .4s ease,border-color .4s ease,background-color .4s ease,transform .4s ease;
}
:is(.glass,.badge-card,.news-card,.feature){border-radius:24px}
:is(.glass,.badge-card,.news-card,.feature):hover{border-color:#ffffff3b;box-shadow:inset 0 1px 2px #ffffff60,inset 0 -2px 3px #68ffb29c,0 18px 48px #0006,0 17px 34px -22px #35fa8fb3}
.button{border-radius:999px;box-shadow:inset 0 1px 1px #ffffff66,inset 0 -2px 3px #6effb56b,0 7px 20px #0005,0 10px 18px -14px #40ff95;color:#f1fff7;background-color:#17221b99}
.button.ghost{background-color:#14161970;color:#e2e8e5}
.profile-card-v2.has-profile-banner .profile-masthead{height:160px;min-height:0;max-height:160px;aspect-ratio:auto}
.profile-banner{width:100%;height:100%;object-fit:cover}
.profile-card-v2 .profile-masthead{background-color:#11131770}
.player-card .badge-icon,.profile-card-v2 .badge-icon{width:72px;height:72px;min-width:72px}
.profile-card-v2 .badge-pill{padding:5px 9px;gap:6px;flex:0 1 auto;font-size:11px}
.profile-card-v2 .badges-row,.profile-card-v2 .player-badges{gap:7px;flex-wrap:wrap}
.player-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:24px 0}
.badge-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-editor fieldset{border:1px solid #ffffff20;border-radius:18px;padding:20px;margin:20px 0}
.admin-editor legend{padding:0 8px;color:#dce7e0;font-weight:750}
.admin-editor input,.admin-editor textarea,.admin-editor select{min-width:0;max-width:100%}
.player-migration{margin-top:28px;padding-top:24px;border-top:1px solid #ffffff18}
summary{cursor:pointer;transition:color .25s}summary:hover{color:#74f2a9}
details[open]>*:not(summary){animation:glass-unfold .35s ease both}
.admin-sidebar{position:sticky;top:100px;align-self:start}
.admin-sidebar .button{justify-content:flex-start}
.news-editor-tools{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.news-editor-tools button{padding:9px 14px;font-size:12px}
.editor-reading-info{font-size:12px;color:#aeb7b2}
.article{max-width:900px;margin-inline:auto}.article p,.article li{line-height:1.9}
.article blockquote{border-left:2px solid #65eaa2;margin:24px 0;padding:12px 24px;background:#ffffff04;border-radius:0 12px 12px 0}
.home-intro{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#090a0c;pointer-events:none;animation:intro-veil 1.8s .3s both}
.home-intro img{width:clamp(150px,25vw,280px);animation:intro-dissolve 1.6s .2s both}
@keyframes intro-dissolve{0%,30%{opacity:1;filter:blur(0);transform:scale(.94)}100%{opacity:0;filter:blur(22px);transform:scale(1.19)}}
@keyframes intro-veil{0%,25%{opacity:1}100%{opacity:0;visibility:hidden}}
@keyframes glass-unfold{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.liquid-reveal{animation:glass-unfold .7s cubic-bezier(.2,.7,.2,1) both}
dialog[open]{animation:glass-unfold .3s ease both}
@media(max-width:700px){.profile-card-v2.has-profile-banner .profile-masthead{height:105px;max-height:105px}.player-editor-grid{grid-template-columns:1fr}.badge-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-sidebar{position:static}.player-card .badge-icon,.profile-card-v2 .badge-icon{width:62px;height:62px;min-width:62px}}
@media(prefers-reduced-motion:reduce){.home-intro{display:none}.liquid-reveal,dialog[open],details[open]>*:not(summary){animation:none}*{scroll-behavior:auto!important}}

.profile-card-v2 .badge{padding:5px 9px;gap:7px;min-height:58px;font-size:11px}.profile-card-v2 .badge .badge-icon{width:54px;height:54px;min-width:54px}.profile-card-v2 .badge .emblem-caption{font-size:8px}.profile-card-v2 .badge-list{gap:7px}

.emblem-caption-art{position:absolute!important;inset:auto 1% -3%!important;height:40%!important;width:98%!important;background:none!important;border:0!important;padding:0!important;filter:drop-shadow(0 2px 2px #000)}.emblem-caption-art .emblem-wordmark{position:absolute!important;inset:-65% -5% auto!important;width:110%!important;height:240%!important;filter:none!important}.emblem-guild{overflow:visible}
.emblem-caption-art{translate:none!important}

/* Deep, clear glass: a bright lens edge, neutral body and light beneath it. */
body{--liquid-edge:#f0fff74a;--liquid-underlight:#6cffb5;--liquid-shadow:0 22px 54px #0005}
body :is(.glass,.feature,.stat,.member-row,.guild-row,.badge-card,.profile-panel,.news-card,.requirements-sheet,.rules-document,.article,.join-banner,.leaderboard,.admin-notices,.founder-copy,.floating-note){
 background:radial-gradient(ellipse at 50% 112%,#66ffaf24,transparent 57%),linear-gradient(145deg,#ffffff12 0%,#ffffff04 34%,#ffffff02 65%,#ffffff09 100%),#11131866!important;
 border:1px solid var(--liquid-edge)!important;border-bottom-color:#86ffbd65!important;
 box-shadow:inset 0 1px 2px #ffffff72,inset 1px 0 1px #ffffff13,inset -1px 0 1px #ffffff13,inset 0 -2px 3px #78ffb654,0 2px 4px #0004,var(--liquid-shadow),0 23px 25px -26px #4dff9ed9!important;
 backdrop-filter:blur(38px) saturate(145%);-webkit-backdrop-filter:blur(38px) saturate(145%);
}
body :is(.feature,.stat,.member-row,.guild-row,.badge-card,.profile-panel,.news-card,.requirements-sheet,.rules-document,.article,.join-banner,.founder-copy){border-radius:24px}
body :is(.member-row,.guild-row){margin-block:10px;border-radius:18px;transition:transform .32s cubic-bezier(.2,.75,.2,1),box-shadow .32s}
body :is(.member-row,.guild-row):hover{transform:translateY(-2px);box-shadow:inset 0 1px 2px #ffffff8a,inset 0 -2px 4px #9cffcb9c,0 15px 35px #0005,0 20px 26px -24px #4dff9e!important}
body .founder-copy{padding:32px}.hero-art{border-radius:44px}
body .button{
 background:radial-gradient(ellipse at 50% 115%,#83ffc6a1 0%,#3fff962e 38%,transparent 73%),linear-gradient(160deg,#ffffff20,#ffffff04 47%,#ffffff0b),#161d1a88!important;
 border:1px solid #e7fff868!important;border-bottom-color:#c9ffeac4!important;
 box-shadow:inset 0 1px 2px #ffffffa3,inset 1px 0 2px #ffffff28,inset -1px 0 2px #ffffff28,inset 0 -2px 4px #b3ffdcc2,0 5px 9px #0005,0 14px 20px -17px #74ffb6!important;
 backdrop-filter:blur(30px) saturate(155%);-webkit-backdrop-filter:blur(30px) saturate(155%);color:#f0fff7;
}
body .button:hover{background-color:#24362b99!important;transform:translateY(-2px);box-shadow:inset 0 1px 3px #ffffffcc,inset 0 -3px 6px #c0ffe8,0 7px 16px #0005,0 16px 24px -17px #73ffb6!important}
body .button:active{transform:translateY(0) scale(.98)}
body :is(.toolbar,.player-search,.admin-stats>div){border-radius:20px}
.badge-art,.emblem-mark{overflow:visible}
.badge-particles{position:absolute;inset:0;pointer-events:none;z-index:3}
.badge-particles img{position:absolute;left:var(--bx);top:var(--by);width:clamp(9px,19%,25px);height:auto;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 2px #0009);animation:badge-orbit 4.5s ease-in-out infinite;animation-delay:var(--bd);transform:translate(-50%,-50%)}
.theme-bats img{width:clamp(10px,25%,32px);animation-duration:3.2s}
.theme-snowflakes img{filter:drop-shadow(0 0 4px #c6f1ff77)}
.emblem-exclusive{filter:drop-shadow(0 0 7px color-mix(in srgb,var(--badge) 40%,transparent))}
.emblem-exclusive .emblem-base{animation:exclusive-lustre 4s ease-in-out infinite}
.emblem-exclusive .emblem-wordmark{z-index:2}
.badge-theme-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.api-key-once{display:block;width:100%;min-height:90px;padding:16px;overflow-wrap:anywhere;font:13px/1.7 monospace;border:1px solid #89ffc25c;border-radius:16px;background:#070a08;color:#dcffea}
@keyframes badge-orbit{0%,100%{transform:translate(-50%,-50%) rotate(-8deg)}50%{transform:translate(-50%,calc(-50% - 5px)) rotate(8deg)}}
@keyframes exclusive-lustre{0%,100%{opacity:1}50%{opacity:.8}}
@media(max-width:700px){body .founder-copy{padding:24px}body :is(.member-row,.guild-row){margin-block:8px}.badge-theme-controls{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.badge-particles img,.emblem-exclusive .emblem-base{animation:none!important}body .button:hover,body :is(.member-row,.guild-row):hover{transform:none}}
