
*{box-sizing:border-box}html,body{margin:0}button,input,textarea,select{font:inherit}img{display:block;max-width:100%}
:root{
 --bg:#08090d;--panel:rgba(15,17,23,.84);--panel-solid:#12151c;--line:rgba(255,255,255,.075);
 --text:#fafaf8;--muted:#a4abb7;--gold:#e6c36d;--gold2:#f4dda2;
 --knight:#4f8cff;--wizard:#2ec786;--shadow:#a678ff;--dictator:#ef6f73;
}
body{font-family:Inter,system-ui,sans-serif;color:var(--text);background:#07080c;min-height:100vh;overflow-x:hidden}
body.member-forum-bg{background:#07080c url("assets/forum-universal-bg.webp") center top/cover fixed no-repeat}
h1,h2,h3,h4,p{margin:0}.hidden{display:none!important}.center{text-align:center}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#d5b96e;margin-bottom:5px}
#circuitCanvas{display:none}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#0a0c11}::-webkit-scrollbar-thumb{background:linear-gradient(#d3b361,#80662e);border:3px solid #0a0c11;border-radius:999px}
#circuitCanvas{position:fixed;inset:0;width:100%;height:100%;z-index:-3}
.circuit-veil{position:fixed;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(5,6,10,.50),rgba(7,8,12,.42));pointer-events:none}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 50% 0,rgba(230,195,109,.07),transparent 35%)}
.glass{background:linear-gradient(180deg,rgba(18,20,28,.92),rgba(10,11,16,.91));border:1px solid var(--line);box-shadow:0 24px 70px rgba(0,0,0,.38);backdrop-filter:blur(16px)}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;position:relative;overflow:hidden}
.login-image{position:absolute;inset:0;background:url("assets/login-systemia-cloudy.webp") center/cover no-repeat}
.login-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,9,.50),rgba(5,6,9,.76)),radial-gradient(circle at 50% 40%,rgba(0,0,0,.05),rgba(0,0,0,.62))}
.login-card{position:relative;width:min(430px,100%);padding:30px;border-radius:24px;text-align:center}
.login-card h1,.side-brand b,.topbar h2,.hero-copy h2,.subhead h3,.podium h3,.profile-name,.admin-card h3{font-family:Cinzel,serif}
.login-crown{font-size:40px;color:var(--gold2)}#loginForm{display:grid;gap:13px;margin-top:22px;text-align:left}
#loginForm label{font-size:12px;color:#d8dbe2}#loginForm input{width:100%;height:46px;margin-top:7px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#fff;padding:0 13px}
.primary-btn,.soft-btn,.tiny-btn{border:0;cursor:pointer;border-radius:12px;font-weight:800}.primary-btn{height:45px;background:linear-gradient(180deg,var(--gold2),var(--gold));color:#171109}.soft-btn{height:40px;padding:0 14px;background:rgba(255,255,255,.045);border:1px solid var(--line);color:#fff}.tiny-btn{height:34px;padding:0 11px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:#fff}
.demo-copy{display:block;color:#8e95a1;margin-top:15px}.error{color:#ff969d;min-height:18px;margin-top:8px;font-size:12px}
.app{display:flex;min-height:100vh}.app-shell{display:grid;grid-template-rows:78px minmax(0,1fr);min-height:100vh}.shell-body{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:0}
.sidebar{width:auto;flex:0 0 auto;background:rgba(8,10,14,.90);border-right:1px solid var(--line);padding:17px 12px 16px;position:sticky;top:78px;height:calc(100vh - 78px);backdrop-filter:blur(14px);overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}
.side-brand{display:flex;gap:10px;align-items:center;padding:10px 8px 16px;border-bottom:1px solid var(--line);flex:0 0 auto}.side-brand>span{font-size:25px;color:var(--gold2)}.side-brand small{display:block;font-size:9px;letter-spacing:.13em;color:#7e8591;margin-top:3px}.member-brand{justify-content:center;padding-top:6px;padding-bottom:18px}.brand-logo{width:min(188px,100%);height:auto;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.28))}
.side-nav{display:grid;gap:5px;margin-top:14px;flex:1;align-content:start}.side-nav button,.side-logout{height:43px;border:1px solid transparent;background:none;color:#b6bcc7;border-radius:11px;display:flex;align-items:center;gap:10px;padding:0 10px;cursor:pointer;text-align:left}
.side-nav button img,.side-logout img{width:22px;height:22px;object-fit:contain}.side-nav button.active,.side-nav button:hover{color:#fff;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.04)}.side-nav button.active{box-shadow:inset 2px 0 0 var(--gold)}
.side-logout{position:static;margin-top:12px;flex:0 0 auto}.main{min-width:0;min-height:0}.topbar{height:78px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 24px 0 22px;background:rgba(7,8,12,.78);border-bottom:1px solid var(--line);backdrop-filter:blur(15px)}
.topbar h2{font-size:20px}.full-topbar{grid-column:1/-1}.full-topbar .eyebrow{margin-bottom:3px}.full-topbar h2{font-size:22px}.shell-body .main{min-width:0}.top-inline{display:flex;align-items:center;gap:17px}.top-stat,.top-profile{border:0;background:none;color:#fff;display:flex;align-items:center;gap:9px;cursor:pointer;padding:0}.top-stat img{width:27px;height:27px}.top-stat small,.top-profile small,.gm-inline small{display:block;color:#8e95a0;font-size:9px}.top-stat b,.top-profile b{font-size:12px}.top-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#31599f;font-weight:800}
.notif-bell{width:40px;height:40px;border:0;background:none;position:relative;display:grid;place-items:center;cursor:pointer}.notif-bell img{width:27px;height:27px}.notif-bell em{position:absolute;right:-2px;top:-3px;min-width:18px;height:18px;border-radius:999px;background:#dcb95f;color:#171108;font-style:normal;font-size:9px;font-weight:900;display:grid;place-items:center}
#viewRoot,#adminRoot{padding:18px 18px 90px}.panel{background:linear-gradient(180deg,rgba(17,19,26,.83),rgba(10,12,17,.85));border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 44px rgba(0,0,0,.24)}
.image-overlay::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,8,.14),rgba(4,5,8,.33) 50%,rgba(4,5,8,.76));pointer-events:none}
.hero{position:relative;min-height:320px;border-radius:22px;overflow:hidden;border:1px solid var(--line)}.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-copy{position:absolute;left:22px;right:22px;bottom:20px;z-index:2}.hero-copy h2{font-size:29px;margin:6px 0 7px}.hero-copy p{color:#d7dbe3;max-width:650px;font-size:13px;line-height:1.55}.hero-actions{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}
.fpl-badge{width:118px;margin-bottom:7px}.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);margin-top:14px;padding:12px 8px}.stat{display:flex;align-items:center;gap:9px;padding:5px 13px;min-width:0}.stat+.stat{border-left:1px solid rgba(255,255,255,.06)}.stat img{width:28px;height:28px;object-fit:contain;flex:0 0 28px}.stat small{display:block;color:#8e95a2;font-size:9px}.stat b{display:block;font-size:16px;margin-top:2px}.stat p{font-size:9px;color:#757c88;margin-top:2px}
.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.command-grid .hero{min-height:370px}
.subhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.subhead h3{font-size:18px}.subhead .hint{font-size:11px;color:#8f96a2}
.carousel{height:228px;position:relative;border-radius:20px;overflow:hidden}.carousel-track{display:flex;width:300%;height:100%;animation:carouselMove 20s infinite ease-in-out}.carousel-slide{width:33.333%;height:100%;position:relative}.carousel-slide img{width:100%;height:100%;object-fit:cover}.carousel-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,5,8,.74),rgba(4,5,8,.16) 55%,rgba(4,5,8,.5))}.carousel-copy{position:absolute;left:20px;bottom:18px;z-index:1}.carousel-copy h3{font-family:Cinzel,serif}@keyframes carouselMove{0%,28%{transform:translateX(0)}34%,61%{transform:translateX(-33.333%)}67%,94%{transform:translateX(-66.666%)}100%{transform:translateX(0)}}
.vault-section{padding:15px;margin-top:14px}.faction-tabs{display:flex;gap:7px;flex-wrap:wrap}.faction-tab{height:38px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.025);color:#fff;cursor:pointer;font-size:12px}.faction-tab.active{background:rgba(230,195,109,.10);border-color:rgba(230,195,109,.28)}.faction-tab.knight{color:var(--knight)}.faction-tab.wizard{color:var(--wizard)}.faction-tab.shadow{color:var(--shadow)}.faction-tab.dictator{color:var(--dictator)}
.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:13px}.cards-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:13px}.flip-card{perspective:1200px;aspect-ratio:3/4}.flip-card.territory{aspect-ratio:4/3}.flip-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .58s}.flip-card.flipped .flip-inner{transform:rotateY(180deg)}.flip-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:18px;overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column;text-align:center}.flip-back{transform:rotateY(180deg);background:#11141b;padding:14px}.flip-front{background:#11141b}
.card-art{position:relative;flex:1;min-height:0}.card-art>img{width:100%;height:100%;object-fit:cover}.card-art.locked::after{content:"";position:absolute;inset:0;background:rgba(3,4,7,.18)}.card-bottom{padding:11px 10px 12px;background:#11141b}.card-title{display:flex;align-items:center;justify-content:center;gap:7px;font-family:Cinzel,serif;font-size:14px}.card-title img{width:22px;height:22px;object-fit:contain}.color-knight{color:var(--knight)}.color-wizard{color:var(--wizard)}.color-shadow{color:var(--shadow)}.color-dictator{color:var(--dictator)}.flip-face p{font-size:11px;line-height:1.5;color:#aab1bd;margin-top:7px}.flip-back .back-content{display:flex;flex-direction:column;height:100%}.flip-back .back-copy{flex:1;display:flex;flex-direction:column;justify-content:center}.flip-back .back-actions{margin-top:auto}.contrib-banner{position:relative;width:160px;height:34px;margin:0 auto 11px}.contrib-banner img{width:100%;height:100%;object-fit:fill}.contrib-banner span{position:absolute;inset:0;display:grid;place-items:center;font-size:9px;font-weight:900;letter-spacing:.08em;color:#1b1b1b}.contrib-banner.silver span{color:#333}.back-cost{font-size:18px!important;color:#fff!important;font-weight:800;margin-top:10px!important}.nav-arrows{display:flex;gap:7px}.nav-arrows button{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.03);color:#fff;cursor:pointer}.nav-arrows img{width:22px;margin:auto}
.chat-grid{display:grid;grid-template-columns:3fr 1fr;gap:12px}.chat-panel{overflow:hidden}.chat-head{padding:13px 15px;border-bottom:1px solid var(--line)}.chat-bg{min-height:535px;background:linear-gradient(180deg,rgba(5,6,10,.30),rgba(5,6,10,.72)),url("assets/grand-hall.webp") center/cover no-repeat;display:flex;flex-direction:column}.chat-feed{flex:1;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:10px;max-height:455px}.msg-row{display:flex;align-items:flex-end;gap:8px}.msg-row.self{justify-content:flex-end}.msg-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800}.bubble{max-width:72%;border-radius:16px;padding:10px 12px;border:1px solid rgba(255,255,255,.07);font-size:12px;line-height:1.5}.bubble.other{background:rgba(255,255,255,.075)}.bubble.knight{background:rgba(63,135,255,.20)}.bubble.wizard{background:rgba(30,199,127,.20)}.bubble.shadow{background:rgba(142,91,255,.20)}.bubble.dictator{background:rgba(222,85,85,.20)}.reply-preview{padding:7px 8px;background:rgba(0,0,0,.18);border-radius:9px;margin-bottom:7px;font-size:10px;color:#c8ccd3}.msg-meta{display:flex;gap:9px;margin-top:7px;color:#9ca3af;font-size:10px}.msg-meta button{border:0;background:none;color:#cfd3da;padding:0;cursor:pointer;font-size:10px}.composer{display:grid;grid-template-columns:auto auto auto auto 1fr auto;gap:6px;padding:10px;border-top:1px solid var(--line);background:rgba(8,9,14,.84)}.composer button{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.025);display:grid;place-items:center}.composer button img{width:22px}.composer input{height:38px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:#fff;padding:0 11px}.composer .send{width:auto;padding:0 13px;background:linear-gradient(180deg,var(--gold2),var(--gold));color:#171109;font-weight:800}
.online-panel{padding:13px}.online-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.055)}.online-dot{width:8px;height:8px;border-radius:50%;background:#45d990;box-shadow:0 0 12px rgba(69,217,144,.8)}
.rooms-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.room-card{position:relative;height:225px;border-radius:19px;overflow:hidden;border:1px solid var(--line);cursor:pointer}.room-card>img.bg{width:100%;height:100%;object-fit:cover}.room-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,8,.12),rgba(4,5,8,.70))}.room-copy{position:absolute;left:15px;bottom:14px;z-index:2}.room-copy h3{font-family:Cinzel,serif;margin:3px 0}.room-emblem{position:absolute;right:12px;top:12px;width:48px;z-index:2}.room-lock{position:absolute;left:12px;top:12px;width:48px;z-index:2}
#factionChatTarget{scroll-margin-top:90px}
.war-hero{height:500px}.progress-line{height:10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:7px}.progress-line span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold2))}
.podium{display:grid;grid-template-columns:1fr 1.12fr 1fr;gap:12px;align-items:end}.podium-card{height:280px;position:relative;border-radius:20px;overflow:hidden;border:1px solid var(--line);text-align:center}.podium-card.first{height:320px}.podium-card>img.bg{width:100%;height:100%;object-fit:cover}.podium-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,8,.18),rgba(4,5,8,.70))}.podium-copy{position:absolute;inset:auto 12px 14px;z-index:2}.rank-num{font-family:Cinzel,serif;color:#efd188;font-size:21px}.rank-avatar{width:67px;height:67px;border-radius:50%;display:grid;place-items:center;margin:8px auto;font-weight:900}.first .rank-avatar{width:78px;height:78px}.rank-name{font-family:Cinzel,serif}.rank-small{font-size:10px;color:#d0d4dc;margin-top:5px}.rank-table{margin-top:12px;overflow:auto}.rank-row{display:grid;grid-template-columns:60px 1.25fr 1fr 90px 105px 125px 105px;min-width:760px;text-align:center;align-items:center}.rank-row>div{padding:11px 8px;border-bottom:1px solid rgba(255,255,255,.055);font-size:11px}.rank-row.head{color:#d4b86d;background:rgba(255,255,255,.025);font-weight:800}.faction-cell{display:flex;align-items:center;justify-content:center;gap:6px}.faction-cell img{width:22px;height:22px}.crown-count{display:flex;justify-content:center;align-items:center;gap:5px}.crown-count img{width:17px}
.hall-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hall-card{padding:14px;background:linear-gradient(180deg,rgba(7,8,12,.78),rgba(14,15,20,.84));border:1px solid var(--line);border-radius:18px;text-align:center}.hall-card img{width:130px;margin:0 auto 8px}.hall-card p{font-size:11px;color:#aaaeb7;margin-top:5px}
.wallet-summary{padding:16px}.wallet-line{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:12px}.wallet-stat{display:flex;align-items:flex-start;gap:8px}.wallet-stat img{width:28px}.wallet-stat small{display:block;color:#999faa;font-size:9px}.wallet-stat b{display:block;font-size:14px;margin-top:4px}.wallet-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.reward-row,.tx-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.055)}.reward-left{display:flex;align-items:center;gap:9px}.reward-left img{width:38px}
.profile-banner{height:285px;border-radius:20px;overflow:hidden;position:relative}.profile-banner img{width:100%;height:100%;object-fit:cover}.profile-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,8,.08),rgba(4,5,8,.55))}
.profile-card{margin:-52px 16px 0;position:relative;z-index:2;background:#173d79;border:1px solid rgba(120,171,255,.23);border-radius:19px;padding:15px;display:grid;grid-template-columns:auto 1fr;gap:14px}.profile-frame{position:relative;width:105px;height:105px}.profile-avatar{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;background:#2d63b4;font-size:29px;font-weight:900;border:3px solid rgba(255,255,255,.15)}.mood{position:absolute;right:-4px;bottom:8px;width:30px;height:30px;border-radius:50%;background:#10151d;border:1px solid rgba(255,255,255,.13);display:grid;place-items:center}.profile-top{display:flex;justify-content:space-between;align-items:start;gap:10px}.profile-name{font-size:24px}.profile-fpl{width:100px;margin-bottom:5px}.profile-bio{font-size:12px;line-height:1.5;max-width:650px;color:#eef2f8;margin-top:6px;min-height:36px}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:13px}.pstat{display:flex;align-items:flex-start;gap:7px}.pstat img{width:23px}.pstat small{display:block;color:#c4d5f2;font-size:9px}.pstat b{display:block;font-size:13px;margin-top:3px}.profile-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 16px}.asset-strip{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px}.asset-strip img{width:52px}.title-item{display:flex;align-items:center;gap:8px}.title-item img{width:44px}
.notif-drawer{position:fixed;right:0;top:0;width:min(360px,100%);height:100vh;background:rgba(11,13,18,.98);border-left:1px solid var(--line);z-index:100;padding:15px;overflow:auto}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--line)}.icon-only{width:34px;height:34px;border:0;background:none;display:grid;place-items:center}.icon-only img{width:24px}.drawer-tools{display:flex;gap:8px;padding:10px 0}.drawer-tools button{border:0;background:none;color:#adb3be;display:flex;align-items:center;gap:5px;font-size:10px;cursor:pointer}.drawer-tools img{width:18px}.notif-list{display:grid;gap:8px}.notice{padding:11px;border-radius:13px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.05);cursor:pointer}.notice.unread{box-shadow:inset 2px 0 0 var(--gold)}.notice-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.notice-head img{width:25px}.notice h4{font-size:12px;margin:6px 0 4px}.notice p{font-size:10px;line-height:1.45;color:#9da4af}.shade,.modal-shade{position:fixed;inset:0;background:rgba(3,4,7,.62);z-index:90}.modal-shade{display:grid;place-items:center;padding:18px}.modal{position:relative;z-index:101;width:min(760px,100%);max-height:86vh;overflow:auto;border-radius:22px;padding:20px}.modal-layout{display:grid;grid-template-columns:210px 1fr;gap:16px;align-items:center}.modal-art img{max-height:300px;object-fit:contain;margin:auto}.modal h3{font-family:Cinzel,serif;font-size:25px;margin:5px 0 8px}.modal p{font-size:12px;line-height:1.55;color:#c8ced7}.modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.modal-actions button{height:38px;padding:0 13px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.035);color:#fff}.modal-actions .primary{background:linear-gradient(180deg,var(--gold2),var(--gold));color:#171108;border:0}.modal-actions .danger{color:#ff9fa5}.toast{position:fixed;left:50%;bottom:82px;transform:translateX(-50%);z-index:120;padding:10px 14px;border-radius:12px;background:#11141a;border:1px solid var(--line);font-size:12px}
.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.admin-card{padding:14px}.admin-card small{color:#9198a4;font-size:9px}.admin-card strong{display:block;font-size:24px;margin-top:5px}.admin-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.03);color:#fff;padding:0 10px}.form-grid input,.form-grid select{height:40px}.form-grid textarea{height:90px;padding-top:9px;resize:vertical}.gm-inline{display:flex;align-items:center;gap:8px}.gm-inline>span{font-size:25px;color:var(--gold2)}.gm-inline small{display:block;color:#8f96a1}
.mobile-nav{display:none}
@media(max-width:1050px){.cards-4{grid-template-columns:repeat(2,1fr)}.hall-grid{grid-template-columns:repeat(2,1fr)}.command-grid,.wallet-columns,.profile-extra,.admin-duo{grid-template-columns:1fr}.chat-grid{grid-template-columns:2.5fr 1fr}.wallet-line,.profile-stats,.stat-strip{grid-template-columns:repeat(2,1fr)}.stat+.stat{border-left:0}.admin-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.app-shell{grid-template-rows:68px minmax(0,1fr)}.shell-body{grid-template-columns:1fr}.sidebar{display:none}.topbar{height:68px;padding:0 12px}.topbar .eyebrow{display:none}.top-stat span small,.top-profile span small{display:none}.top-inline{gap:10px}.top-stat img{width:24px}.top-avatar{width:31px;height:31px}.top-profile span{display:none}#viewRoot,#adminRoot{padding:12px 12px 82px}.hero{min-height:330px}.hero-copy{left:16px;right:16px;bottom:15px}.hero-copy h2{font-size:24px}.fpl-badge{width:96px}.stat-strip{grid-template-columns:1fr 1fr}.command-grid{grid-template-columns:1fr}.carousel{height:200px}.cards-4,.cards-2,.rooms-grid,.hall-grid{grid-template-columns:1fr 1fr}.chat-grid{grid-template-columns:1fr}.online-panel{display:none}.composer{grid-template-columns:auto auto auto 1fr auto}.composer button:nth-child(3),.composer button:nth-child(4){display:none}.podium{grid-template-columns:1fr}.podium-card.first{order:-1}.wallet-line,.profile-stats{grid-template-columns:1fr 1fr}.profile-card{margin:-38px 8px 0;grid-template-columns:88px 1fr}.profile-frame{width:88px;height:88px}.profile-extra{margin:10px 8px}.modal-layout{grid-template-columns:1fr}.modal-art img{max-height:190px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:8px;right:8px;bottom:8px;z-index:40;padding:6px;border-radius:16px;background:rgba(10,12,18,.95);border:1px solid var(--line);backdrop-filter:blur(14px)}.mobile-nav button{border:0;background:none;color:#9ea5b1;height:46px;border-radius:10px;display:grid;place-items:center}.mobile-nav button.active{background:rgba(230,195,109,.09);color:#fff}.mobile-nav img{width:20px;margin:auto}.mobile-nav small{font-size:8px}}
/* V2.3.2 notification icon refinement */
.notice-head img{width:28px!important;height:28px!important;object-fit:contain!important;padding:1px}
.notif-bell img{width:26px!important;height:26px!important;object-fit:contain!important}


/* V2.3.3 — targeted Vault update applied on top of V2.3.2 Runtime Fix */
/* Consistent low-opacity dark veil on image-based tiles */
.image-overlay::after{background:linear-gradient(180deg,rgba(4,5,8,.24),rgba(4,5,8,.36) 48%,rgba(4,5,8,.62))!important}
.carousel-slide::after{background:linear-gradient(90deg,rgba(4,5,8,.48),rgba(4,5,8,.28) 55%,rgba(4,5,8,.48))!important}
.room-card::after,.podium-card::after,.profile-banner::after{background:linear-gradient(180deg,rgba(4,5,8,.22),rgba(4,5,8,.56))!important}
.card-art.locked::after,.territory-art::after{background:rgba(3,4,7,.22)!important}

.color-systemia{color:#f2ddaa}.system-glyph{display:inline-grid;place-items:center;color:#f4d99b;text-shadow:0 0 14px rgba(244,217,155,.45)}
.vault-rule-note{font-size:10px;color:#9ea5b1}.faction-tabs-16{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.faction-tabs-16 .faction-tab{height:auto;min-height:66px;padding:9px 11px;border-radius:14px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px}.faction-tab-top{display:flex;align-items:center;gap:7px}.faction-tab-top img{width:22px;height:22px;object-fit:contain}.faction-tab-top b{font-size:11px}.faction-tabs-16 .faction-tab small{font-size:8px;letter-spacing:.06em;color:#8d95a2}.locked-faction-tab{opacity:.76}.systemia-tab{background:linear-gradient(180deg,rgba(246,225,172,.08),rgba(255,255,255,.02))!important;border-color:rgba(238,211,145,.16)!important}
.vault-character-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px}.vault-faction-heading{display:flex;align-items:center;gap:9px}.vault-faction-heading img{width:30px;height:30px;object-fit:contain}.vault-faction-heading h3{font-family:Cinzel,serif;font-size:18px}.vault-character-head small{display:block;color:#8e96a3;margin-top:3px;font-size:9px}.vault-counter{font-size:10px;color:#c7cbd4;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);padding:7px 10px;border-radius:999px}
.vault-slider-window{overflow:hidden;width:100%}.vault-slider-track{display:flex;width:100%;transition:transform .48s cubic-bezier(.22,.61,.36,1);will-change:transform}.vault-slide-row{flex:0 0 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.vault-slider-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:13px}.slider-arrow{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:#fff;font-size:19px}.slider-dots{display:flex;gap:7px}.slider-dots span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.16);transition:.2s}.slider-dots span.active{background:#edcc83;box-shadow:0 0 10px rgba(237,204,131,.45)}
.character-vault-card{aspect-ratio:3/4;min-height:0}.character-vault-card .flip-inner{min-height:100%;height:100%}.character-vault-card .flip-face{height:100%}.vault-lock-overlay{position:absolute!important;right:10px!important;top:10px!important;width:42px!important;height:42px!important;object-fit:contain!important;z-index:3!important;filter:drop-shadow(0 5px 9px rgba(0,0,0,.45))}.card-art.revealed-placeholder::after{display:none}.faction-card-back{background:var(--factionSolid)!important}.faction-card-back::before{content:"";position:absolute;inset:0;background:rgba(8,10,15,.34);z-index:0}.faction-card-back>*{position:relative;z-index:1}.locked-back-copy{justify-content:flex-start!important;gap:8px;padding-top:2px}.back-lock-icon{width:42px;height:42px;object-fit:contain;margin:0 auto 1px}.tier-badge{height:52px;width:auto;max-width:92%;object-fit:contain;margin:0 auto}.character-vault-card .contrib-banner{margin-bottom:0}.character-vault-card .card-title{font-size:12px;line-height:1.25}.character-vault-card .card-title img{width:19px;height:19px}.back-cost-wrap{text-align:center;margin-top:auto}.back-cost-wrap small{font-size:9px;color:#e7eaf0;opacity:.85}.character-vault-card .back-cost{font-size:22px!important;margin-top:2px!important}.unlocked-desc{text-align:justify!important;font-size:10px!important;line-height:1.45!important;color:#f1f2f5!important;margin:3px 0 0!important}.character-vault-card .back-actions{margin-top:8px}.character-vault-card .back-actions button{width:100%;height:38px}.locked-faction-panel{margin-top:15px;display:grid;grid-template-columns:80px 1fr;gap:14px;align-items:center;padding:18px;border-radius:18px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}.locked-faction-panel>img{width:64px;height:64px;object-fit:contain}.locked-faction-panel p{font-size:11px;color:#aeb4bf;line-height:1.5;margin:6px 0}.contrib-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.contrib-inline .contrib-banner{margin:0;width:150px;height:32px}.contrib-inline .primary-btn{height:36px}.systemia-locked{background:linear-gradient(180deg,rgba(239,214,155,.06),rgba(255,255,255,.02));border-color:rgba(239,214,155,.12)}.systemia-tier-copy{color:#d8c79b!important}
.territory-art{position:relative}.territory-art .vault-lock-overlay{right:12px!important;top:12px!important}
@media(max-width:1050px){.faction-tabs-16{grid-template-columns:repeat(4,minmax(0,1fr))!important}.vault-slide-row{grid-template-columns:repeat(2,minmax(0,1fr))}.character-vault-card{aspect-ratio:3/4}}
@media(max-width:760px){.faction-tabs-16{grid-template-columns:repeat(2,minmax(0,1fr))!important}.vault-slide-row{grid-template-columns:repeat(2,minmax(0,1fr))}.vault-character-head{align-items:flex-start}.character-vault-card .card-title{font-size:11px}.tier-badge{height:44px}.locked-faction-panel{grid-template-columns:1fr;text-align:center}.locked-faction-panel>img{margin:auto}.contrib-inline{justify-content:center}}


/* V2.3.4 dual-currency + shop update */
.currency-five{grid-template-columns:repeat(5,1fr)!important}
.currency-top img{width:28px;height:28px;object-fit:contain}
.gct-top b{color:#f2cc72}.sct-top b{color:#e5e8ef}
.currency-inline{display:inline-flex;align-items:center;gap:6px}.currency-inline img{width:23px;height:23px;object-fit:contain}
.currency-goal-hero,.territory-goal,.modal-currency-goal{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.currency-goal-piece{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}
.currency-goal-piece img{width:24px;height:24px;object-fit:contain}.currency-goal-piece small{font-size:9px;color:#9da4b1}.currency-goal-piece.gct b{color:#f3d071}.currency-goal-piece.sct b{color:#edf0f6}.currency-joiner{color:#d0b779;font-weight:800}
.modal-note{display:block;color:#9fa6b3;margin-top:9px;line-height:1.45}.modal-richtext{font-size:12px;line-height:1.55;color:#c8ced7}
.currency-button-content{display:flex;align-items:center;justify-content:center;gap:10px;min-width:145px}.currency-button-content img{width:30px;height:30px;object-fit:contain}.currency-button-content span{text-align:left}.currency-button-content small{display:block;font-size:8px;opacity:.78}.currency-button-content b{display:block;font-size:12px;margin-top:2px}.currency-pay-btn{height:auto!important;min-height:52px!important;padding:8px 13px!important}
.unlock-price-hidden{text-align:center!important;color:#e6e9f0!important;opacity:.86;margin-top:12px!important}
.faction-card-back.knight{background:#0d2350!important}.faction-card-back.wizard{background:#0b3b27!important}.faction-card-back.shadow{background:#25113f!important}.faction-card-back.dictator{background:#401414!important}.faction-card-back.systemia{background:#211c13!important}
.faction-card-back::before{background:rgba(5,7,11,.18)!important}
.treasury-summary{padding:18px}.treasury-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.treasury-heading p{font-size:11px;color:#9da4af;margin-top:4px}
.currency-balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.currency-balance-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.07)}.currency-balance-card img{width:72px;height:72px;object-fit:contain}.currency-balance-card small{display:block;color:#a7adb7;font-size:9px}.currency-balance-card b{display:block;font-size:23px;margin-top:4px}.currency-balance-card p{font-size:10px;color:#8f96a2;margin-top:5px}.currency-balance-card.sct{background:linear-gradient(180deg,rgba(220,225,235,.08),rgba(255,255,255,.025))}.currency-balance-card.gct{background:linear-gradient(180deg,rgba(232,186,86,.11),rgba(255,255,255,.025));border-color:rgba(232,186,86,.15)}
.currency-tx{display:inline-flex;align-items:center;gap:5px}.currency-tx img{width:20px;height:20px;object-fit:contain}
.gct-shop-section{padding:18px;margin-top:12px}.shop-header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}.shop-header p{font-size:11px;color:#9da4af;margin-top:5px}.shop-current{display:flex;align-items:center;gap:9px}.shop-current img{width:40px}.shop-current small{display:block;color:#999faa;font-size:9px}.shop-current b{display:block;color:#f2cd72;margin-top:3px}
.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.shop-package{position:relative;border-radius:20px;padding:14px;background:linear-gradient(180deg,rgba(19,22,30,.9),rgba(11,13,19,.94));border:1px solid rgba(255,255,255,.07);overflow:hidden}.shop-package.popular{border-color:rgba(220,184,85,.35);box-shadow:0 0 0 1px rgba(220,184,85,.12),0 14px 34px rgba(0,0,0,.24)}.shop-package.value{border-color:rgba(246,215,135,.28)}.shop-package-label{position:absolute;left:12px;top:12px;z-index:2;padding:5px 8px;border-radius:999px;background:rgba(8,10,15,.78);border:1px solid rgba(255,255,255,.09);font-size:8px;font-weight:900;letter-spacing:.08em;color:#f0d48a}.shop-package-art{height:190px;display:grid;place-items:center;padding:6px}.shop-package-art img{max-height:180px;width:auto;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.28))}.shop-package-copy{text-align:center}.shop-package-copy h4{font-family:Cinzel,serif;font-size:15px}.shop-package-copy small{display:block;color:#9299a5;margin:5px 0 10px}.shop-total{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px}.shop-total img{width:27px}.shop-total b{color:#f1ca67}.shop-package .primary-btn{width:100%;height:40px}
@media(max-width:1100px){.currency-five{grid-template-columns:repeat(3,1fr)!important}.shop-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.currency-five{grid-template-columns:1fr 1fr!important}.currency-balance-grid{grid-template-columns:1fr}.shop-grid{grid-template-columns:1fr}.shop-header{align-items:flex-start;flex-direction:column}.currency-top span small{display:none}.currency-top span b{font-size:10px}.top-inline{gap:6px}.top-stat{gap:5px}.top-stat img{width:22px;height:22px}}

.profile-stats{grid-template-columns:repeat(5,1fr)}
.admin-currency-row{display:grid;grid-template-columns:54px 1.1fr .9fr .8fr .8fr .7fr .7fr .9fr;align-items:center;text-align:center;min-width:780px}.admin-currency-row>div{padding:12px 8px;border-bottom:1px solid rgba(255,255,255,.06)}.admin-currency-row.head{color:#d9bf77;font-weight:700;background:rgba(255,255,255,.03)}
@media(max-width:1050px){.profile-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.profile-stats{grid-template-columns:1fr 1fr}}


/* ============================================================
   V2.3.5 — Vault / Chat Rooms / Unlock Flow layout update
   ============================================================ */
.chat-rooms-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,3fr);gap:14px;align-items:stretch}
.chat-room-drawer{padding:13px;min-width:0;max-height:calc(100vh - 118px);overflow:hidden;display:flex;flex-direction:column}
.chat-drawer-head{padding:3px 4px 11px;border-bottom:1px solid rgba(255,255,255,.06);margin-bottom:10px}.chat-drawer-head small{color:#8f96a2;font-size:10px}
.chat-drawer-list{display:grid;gap:9px;overflow:auto;padding-right:4px}.chat-drawer-list::-webkit-scrollbar,.vault-drawer-list::-webkit-scrollbar{width:8px}.chat-drawer-list::-webkit-scrollbar-track,.vault-drawer-list::-webkit-scrollbar-track{background:rgba(255,255,255,.025);border-radius:999px}.chat-drawer-list::-webkit-scrollbar-thumb,.vault-drawer-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(231,195,109,.78),rgba(125,96,38,.72));border-radius:999px;border:2px solid #101219}
.chat-drawer-tile{height:100px;position:relative;border-radius:15px;overflow:hidden;border:1px solid rgba(255,255,255,.07);background-position:center;background-size:cover;color:#fff;text-align:left;padding:0;cursor:pointer}.chat-drawer-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,7,11,.72),rgba(5,7,11,.38)),linear-gradient(180deg,rgba(5,7,11,.08),rgba(5,7,11,.48))}.chat-drawer-tile.active{border-color:rgba(231,195,109,.50);box-shadow:0 0 0 1px rgba(231,195,109,.13),0 10px 24px rgba(0,0,0,.20)}.chat-drawer-tile.locked{filter:saturate(.78)}
.chat-drawer-content{position:absolute;left:11px;right:11px;bottom:10px;z-index:2;display:grid;gap:4px}.chat-drawer-title{display:flex;align-items:center;gap:7px;min-width:0}.chat-drawer-title img{width:24px;height:24px;object-fit:contain;flex:0 0 24px}.chat-drawer-title b{font-family:Cinzel,serif;font-size:10px;line-height:1.2}.chat-drawer-content small{font-size:8px;letter-spacing:.08em;color:#d0d4dc}.chat-drawer-lock{position:absolute;right:8px;top:8px;width:30px;height:30px;object-fit:contain;z-index:3;filter:drop-shadow(0 5px 8px rgba(0,0,0,.4))}
.chat-room-main{overflow:hidden}.chat-room-main .chat-head{height:116px;position:relative;background-position:center;background-size:cover;display:flex;align-items:flex-end;padding:15px}.chat-room-main .chat-head::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,6,10,.16),rgba(5,6,10,.72));pointer-events:none}.chat-room-main .chat-head>div{position:relative;z-index:2}.chat-room-main .chat-bg{min-height:520px}
.bubble.knight{background:rgba(63,135,255,.14)!important}.bubble.wizard{background:rgba(30,199,127,.14)!important}.bubble.shadow{background:rgba(142,91,255,.15)!important}.bubble.dictator{background:rgba(222,85,85,.14)!important}.bubble.systemia{background:rgba(229,207,154,.12)!important}.bubble.other-faction-bubble{box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}

.vault-layout-shell{padding:13px!important}.vault-main-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,3fr);gap:14px;align-items:start}.vault-faction-drawer{min-width:0;border-right:1px solid rgba(255,255,255,.055);padding-right:12px}.vault-drawer-head{padding:2px 4px 11px;border-bottom:1px solid rgba(255,255,255,.055);margin-bottom:10px}.vault-drawer-head small{display:block;color:#8f96a2;font-size:9px;margin-top:3px}.vault-drawer-list{display:grid;gap:8px;max-height:790px;overflow:auto;padding-right:4px}
.vault-drawer-tile{height:88px;position:relative;overflow:hidden;border-radius:14px;border:1px solid rgba(255,255,255,.065);background-position:center;background-size:cover;text-align:left;color:#fff;padding:0;cursor:pointer}.vault-drawer-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,7,11,.80),rgba(5,7,11,.37)),linear-gradient(180deg,rgba(5,7,11,.12),rgba(5,7,11,.52))}.vault-drawer-tile.active{border-color:rgba(231,195,109,.52);box-shadow:0 0 0 1px rgba(231,195,109,.10)}.vault-drawer-tile.is-locked{filter:saturate(.72)}.vault-drawer-tile-content{position:absolute;left:10px;right:10px;bottom:9px;z-index:2;display:grid;gap:3px}.vault-drawer-title{display:flex;align-items:center;gap:7px}.vault-drawer-title img{width:23px;height:23px;object-fit:contain}.vault-drawer-title .system-glyph{width:23px;height:23px;display:grid;place-items:center;color:#ead497}.vault-drawer-title b{font-family:Cinzel,serif;font-size:10px;line-height:1.2}.vault-drawer-tile-content small{font-size:7.5px;letter-spacing:.07em;color:#c9ced8}
.vault-card-stage{min-width:0;padding:2px}.vault-card-stage-head{margin:0 0 12px}.vault-stage-controls{display:flex;align-items:center;gap:8px}.vault-stage-controls .vault-counter{white-space:nowrap}.vault-stage-controls .slider-arrow{width:35px;height:35px}.vault-slide-page{flex:0 0 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.vault-page-dots{justify-content:center;margin-top:12px}.vault-empty-stage{min-height:480px;border-radius:18px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.055);display:grid;place-items:center;align-content:center;text-align:center;padding:28px}.vault-empty-stage img{width:65px;margin-bottom:12px}.vault-empty-stage p{max-width:360px;color:#9ea5b1;font-size:11px;line-height:1.5}.character-vault-card{width:100%;aspect-ratio:3/4}.territory-section{margin-top:14px}
.unlock-rule-line{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:10px 11px;border-radius:12px;border:1px solid rgba(255,255,255,.07);font-size:11px;line-height:1.45}.unlock-rule-line img{width:25px;height:25px;object-fit:contain;flex:0 0 25px}.unlock-rule-line.met{background:rgba(80,170,112,.08);border-color:rgba(95,201,132,.18)}.unlock-rule-line.blocked{background:rgba(219,164,71,.08);border-color:rgba(219,164,71,.18)}.modal-actions button:disabled,.modal-actions .disabled-action{opacity:.42;cursor:not-allowed;filter:saturate(.45);transform:none!important}.unlock-price-hidden{font-size:10px!important;line-height:1.5!important;text-align:center!important;max-width:92%;margin:5px auto 0!important;color:#d5dae4!important}.vault-rule-modal{margin-top:12px;padding:11px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);display:grid;gap:10px}.vault-rule-modal>b{font-size:11px;line-height:1.45;color:#e3e7ef}
.territory-back{background:#11151d!important}.territory-back .back-content{height:100%;display:flex;flex-direction:column}.territory-back-copy{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;height:100%}.territory-back-title{margin-top:2px;font-size:15px!important}.territory-back-desc{text-align:justify!important;font-size:11px!important;line-height:1.55!important;color:#d2d7e0!important;margin:2px 0 0!important}.territory-back .territory-goal{margin-top:auto!important;display:grid!important;justify-items:center!important;gap:8px!important;text-align:center}.territory-back .territory-goal>small{font-size:8px;letter-spacing:.10em;color:#959ca8}.territory-back .back-actions{margin-top:12px}.territory-back .back-actions button{width:100%;height:39px}
.purchase-notice{display:grid;gap:9px}.purchase-notice>p{margin:0 0 3px}.purchase-detail-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06)}.purchase-detail-row span{color:#9ea5b0;font-size:11px}.purchase-detail-row b{font-size:12px;color:#f0d083}.purchase-detail-row:last-of-type{border-bottom:0}
.war-hero{position:relative}.war-lock-badge{position:absolute!important;right:20px!important;top:20px!important;width:66px!important;height:66px!important;object-fit:contain!important;z-index:4!important;filter:drop-shadow(0 9px 15px rgba(0,0,0,.52))}
@media(max-width:1180px){.vault-main-layout,.chat-rooms-layout{grid-template-columns:minmax(190px,.85fr) minmax(0,2.4fr)}.vault-slide-page{gap:10px}}
@media(max-width:920px){.vault-main-layout,.chat-rooms-layout{grid-template-columns:1fr}.vault-faction-drawer{border-right:0;border-bottom:1px solid rgba(255,255,255,.055);padding-right:0;padding-bottom:12px}.vault-drawer-list,.chat-drawer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:320px}.chat-room-drawer{max-height:none}.vault-slide-page{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.vault-slide-page{grid-template-columns:repeat(2,minmax(0,1fr))}.vault-card-stage-head{align-items:flex-start;gap:9px}.vault-stage-controls{flex-wrap:wrap;justify-content:flex-end}.vault-drawer-list,.chat-drawer-list{grid-template-columns:1fr 1fr}.chat-drawer-tile,.vault-drawer-tile{height:82px}.war-lock-badge{width:52px!important;height:52px!important;right:13px!important;top:13px!important}}


/* ============================================================
   V2.3.6 — Daily Reward / Vault Drawer / Chat / War Table
   ============================================================ */
.locked-section-nav{opacity:.86}.locked-section-nav .nav-lock-end{width:18px!important;height:18px!important;object-fit:contain;margin-left:auto;filter:drop-shadow(0 4px 7px rgba(0,0,0,.45))}.locked-section-nav:hover{opacity:1}
.daily-reward-tile{margin-top:14px;padding:16px;overflow:hidden}.daily-reward-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.daily-reward-head h3{font-family:Cinzel,serif;font-size:18px}.daily-reward-head p{font-size:11px;color:#a7aebb;line-height:1.5;max-width:620px;margin-top:5px}.daily-reward-action{display:flex;align-items:center;gap:12px}.daily-status{text-align:right;font-size:12px;color:#eee4ca}.daily-status small{display:block;color:#8f96a2;margin-top:4px}.daily-days{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;margin-top:14px}.daily-day{position:relative;min-height:96px;border-radius:15px;overflow:hidden;border:1px solid rgba(255,255,255,.07);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));display:grid;justify-items:center;align-content:center;gap:3px}.daily-day>*{position:relative;z-index:2}.daily-day img{width:28px;height:28px;object-fit:contain}.daily-day small{font-size:8px;color:#9299a6;letter-spacing:.11em}.daily-day b{font-size:14px}.daily-day span{font-size:8px;color:#9ba1ac}.daily-day-fill{position:absolute!important;inset:0;z-index:1!important;background:linear-gradient(180deg,rgba(244,211,135,.86),rgba(184,132,48,.72));transform:scaleY(0);transform-origin:bottom;transition:transform .35s}.daily-day.claimed .daily-day-fill{transform:scaleY(1)}.daily-day.claimed small,.daily-day.claimed b,.daily-day.claimed span{color:#171109;text-shadow:0 1px 0 rgba(255,255,255,.25)}.daily-day.current{border-color:rgba(239,206,128,.55);box-shadow:0 0 0 1px rgba(239,206,128,.13),0 0 22px rgba(219,177,85,.10)}.daily-rule{display:flex;align-items:center;gap:9px;margin-top:11px;padding-top:11px;border-top:1px solid rgba(255,255,255,.06);font-size:10px;color:#8f96a2}.daily-rule img{width:22px;height:22px;object-fit:contain}.daily-reward-action button:disabled{opacity:.48;cursor:not-allowed}
.vault-main-layout{align-items:stretch!important}.vault-faction-drawer{display:flex;flex-direction:column;align-self:stretch;min-height:100%;height:auto}.vault-drawer-list{flex:1;max-height:none!important;overflow:auto!important}.vault-drawer-tile{height:76px}.vault-drawer-tile.no-background{background:linear-gradient(180deg,#12151d,#0d1017)!important}.vault-drawer-neutral{position:absolute;inset:0;background:radial-gradient(circle at 90% 10%,rgba(231,195,109,.05),transparent 34%),linear-gradient(90deg,rgba(255,255,255,.018),transparent);pointer-events:none}.vault-drawer-tile.no-background .vault-drawer-tile-content{bottom:8px}.vault-drawer-tile.no-background.is-locked{filter:none}.vault-bottom-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.055)}.vault-bottom-controls .vault-counter{min-width:170px;text-align:center}.territory-status-note{text-align:center!important;color:#b8bfca!important;font-size:10px!important;line-height:1.5!important;margin-top:auto!important}.territory-back-copy{justify-content:flex-start!important}.territory-back-desc{margin-top:8px!important}.territory-back .back-actions{margin-top:14px!important}
.chat-room-main{min-height:calc(100vh - 118px)}.chat-room-main .chat-unified-bg{min-height:calc(100vh - 118px);max-height:calc(100vh - 118px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background-position:center;background-size:cover;overflow:hidden}.chat-sticky-title{position:relative;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(180deg,rgba(8,10,15,.94),rgba(8,10,15,.82));border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(12px)}.chat-sticky-title h3{font-family:Cinzel,serif;font-size:18px}.chat-sticky-title>small{color:#9fa6b1;font-size:10px}.chat-room-main .chat-feed{max-height:none!important;height:auto!important;min-height:0;overflow:auto;padding-top:14px}.bubble.knight{background:rgba(63,135,255,.30)!important}.bubble.wizard{background:rgba(30,199,127,.29)!important}.bubble.shadow{background:rgba(142,91,255,.31)!important}.bubble.dictator{background:rgba(222,85,85,.29)!important}.bubble.systemia{background:rgba(229,207,154,.27)!important}.bubble{backdrop-filter:blur(4px)}
.war-view-root{padding-bottom:18px!important;overflow:hidden}.war-screen{height:calc(100vh - 114px);min-height:560px;max-height:760px;border-radius:22px;overflow:hidden;position:relative;background-size:cover;background-position:center;border:1px solid rgba(255,255,255,.07);display:grid;place-items:center}.war-screen-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,7,11,.42),rgba(5,7,11,.68))}.war-center-content{position:relative;z-index:2;width:min(720px,88%);display:grid;justify-items:center;text-align:center;gap:10px}.war-center-lock{width:105px;height:105px;object-fit:contain;filter:drop-shadow(0 12px 22px rgba(0,0,0,.52))}.war-center-content h2{font-family:Cinzel,serif;font-size:30px}.war-center-content>p:not(.eyebrow){color:#d2d7df;line-height:1.55;max-width:620px}.war-goal{margin-top:4px}.war-progress-meta{width:100%;display:flex;justify-content:space-between;color:#c4cad3;font-size:10px}.war-progress{width:100%;height:12px}.war-center-content>.primary-btn{margin-top:4px;min-width:190px}
@media(max-width:1080px){.daily-days{grid-template-columns:repeat(4,1fr)}.daily-reward-head{flex-direction:column}.daily-reward-action{width:100%;justify-content:space-between}.daily-status{text-align:left}}
@media(max-width:760px){.daily-days{grid-template-columns:repeat(2,1fr)}.daily-reward-action{align-items:flex-start;flex-direction:column}.chat-room-main,.chat-room-main .chat-unified-bg{min-height:620px;max-height:620px}.war-view-root{overflow:auto}.war-screen{height:auto;min-height:620px;max-height:none}.war-center-lock{width:82px;height:82px}.war-center-content h2{font-size:25px}.vault-bottom-controls .vault-counter{min-width:130px;font-size:9px}.vault-drawer-tile{height:72px}}


/* ============================================================
   V2.3.7 — Overlay Polish / Treasury / Notification / Updates
   ============================================================ */
.image-overlay,.carousel,.carousel-slide,.room-card,.chat-drawer-tile,.vault-drawer-tile,.podium-card,.profile-banner,.war-screen,.update-feature,.latest-update-card,.archive-thumb{position:relative;overflow:hidden;background-clip:padding-box}
.image-overlay::after,.carousel-slide::after,.room-card::after,.podium-card::after,.profile-banner::after,.chat-drawer-overlay,.vault-drawer-overlay,.war-screen-overlay,.latest-update-card::after,.archive-thumb::after{inset:-1px!important;border-radius:inherit}
.image-overlay::after{z-index:1!important}.image-overlay>*{z-index:2}.hero>img{inset:-1px!important;width:calc(100% + 2px)!important;height:calc(100% + 2px)!important}.carousel-slide img,.room-card>img.bg,.podium-card>img.bg,.profile-banner img{width:calc(100% + 2px)!important;height:calc(100% + 2px)!important;margin:-1px!important}.card-art.locked::after,.territory-art::after{inset:-1px!important}
.chat-room-main{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}.chat-room-main .chat-sticky-title{position:relative!important;top:auto!important;z-index:8!important;background:#0b0d13!important;border-bottom:1px solid rgba(255,255,255,.09)!important;box-shadow:0 8px 20px rgba(0,0,0,.20)}
.chat-room-main .chat-unified-bg{position:relative!important;isolation:isolate;min-height:0!important;height:calc(100vh - 170px)!important;max-height:calc(100vh - 170px)!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;background-position:center!important;background-size:cover!important;overflow:hidden!important}.chat-room-main .chat-unified-bg::before{content:"";position:absolute;inset:-1px;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,6,10,.48),rgba(4,6,10,.60) 48%,rgba(4,6,10,.66))}.chat-room-main .chat-feed,.chat-room-main .composer{position:relative;z-index:2}.chat-room-main .chat-feed{padding-top:16px!important}.bubble{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.35);border-color:rgba(255,255,255,.10)!important;box-shadow:0 8px 24px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.06)!important}.bubble.knight{background:rgba(53,115,255,.43)!important}.bubble.wizard{background:rgba(25,176,104,.42)!important}.bubble.shadow{background:rgba(132,72,238,.44)!important}.bubble.dictator{background:rgba(199,62,62,.43)!important}.bubble.systemia{background:rgba(194,166,101,.40)!important}
.treasury-summary{padding:23px 20px!important;min-height:286px!important}.treasury-heading{padding:2px 2px 0!important}.treasury-heading h2{margin-top:3px!important}.treasury-heading p{margin-top:8px!important;line-height:1.55!important;max-width:760px}.currency-balance-grid{margin-top:22px!important;gap:16px!important}.currency-balance-card{padding:18px!important;min-height:116px}.currency-balance-card b{margin-top:6px!important}.currency-balance-card p{margin-top:8px!important;line-height:1.45!important}.treasury-summary .wallet-line{margin-top:22px!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.065);gap:16px!important}.shop-header{align-items:flex-start!important}.shop-current{display:none!important}
.notif-drawer{top:78px!important;height:calc(100vh - 78px)!important;max-height:none!important;border-top:1px solid rgba(255,255,255,.07);z-index:100!important}#drawerShade{top:78px!important;height:calc(100vh - 78px)!important;bottom:auto!important}
.war-screen{height:calc(100vh - 114px)!important;max-height:none!important;min-height:540px!important;border-radius:22px!important;background-size:cover!important;background-position:center!important}.war-screen-overlay{border-radius:inherit;background:linear-gradient(180deg,rgba(4,6,10,.42),rgba(4,6,10,.70))!important}.war-center-lock{width:128px!important;height:128px!important;margin-bottom:2px!important}.war-center-content{gap:11px!important;max-width:760px}.war-center-content h2{font-size:32px!important}.war-center-content>p:not(.eyebrow){max-width:650px!important}
.updates-section-nav .updates-lock-icon{width:18px!important;height:18px!important;margin-left:auto;object-fit:contain}.updates-section-nav.unlocked .updates-lock-icon{display:none!important}
.updates-page{display:grid;gap:16px}.update-feature{height:min(44vw,410px);min-height:300px;border-radius:22px;border:1px solid rgba(255,255,255,.075);background-size:cover;background-position:center;display:flex;align-items:flex-end}.update-feature::after{content:"";position:absolute;inset:-1px;border-radius:inherit;background:linear-gradient(180deg,rgba(4,6,10,.14),rgba(4,6,10,.38) 48%,rgba(4,6,10,.83));z-index:1}.update-feature-copy{position:relative;z-index:2;padding:24px;width:min(760px,90%)}.update-feature-copy h2{font-family:Cinzel,serif;font-size:30px;margin:5px 0 9px}.update-feature-copy p{font-size:12px;line-height:1.55;color:#e2e5eb;max-width:680px}.update-feature-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
.development-support{padding:20px!important;background:linear-gradient(180deg,rgba(244,239,223,.07),rgba(12,14,20,.92))!important;border-color:rgba(235,224,196,.14)!important}.development-support-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.development-support-head h3{font-family:Cinzel,serif;font-size:20px}.development-support-head p{margin-top:6px!important;color:#aeb5c0!important;font-size:11px!important;line-height:1.55!important;max-width:700px}.development-total{text-align:right;white-space:nowrap}.development-total small{display:block;color:#aeb4be;font-size:9px;letter-spacing:.09em}.development-total b{display:block;font-family:Cinzel,serif;font-size:20px;color:#f4dfae;margin-top:4px}.crown-conduit-wrap{margin-top:18px}.crown-conduit-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;color:#d7dbe2;font-size:10px}.crown-conduit{position:relative;height:24px;border-radius:999px;padding:4px 50px 4px 5px;background:linear-gradient(180deg,#f5f2e8,#9d9b95);box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 24px rgba(230,218,181,.08);overflow:visible}.crown-conduit-inner{height:100%;border-radius:999px;background:#181b22;overflow:hidden;position:relative}.crown-conduit-fill{height:100%;min-width:0;border-radius:999px;background:linear-gradient(90deg,#b78630,#f4d991,#fff0b7);box-shadow:0 0 14px rgba(239,201,112,.5);position:relative;transition:width .4s}.crown-conduit-fill::after{content:"";position:absolute;top:0;bottom:0;width:72px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);animation:conduitShimmer 2.8s linear infinite}.crown-node{position:absolute;right:-2px;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:radial-gradient(circle,#fff5cc 0 12%,#d9b25d 38%,#6f5426 72%,#181b22 74%);border:3px solid #eee7d5;display:grid;place-items:center;color:#25190a;font-size:23px;box-shadow:0 0 22px rgba(242,215,151,.28)}@keyframes conduitShimmer{from{left:-80px}to{left:calc(100% + 80px)}}.support-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:15px}.support-foot p{font-size:10px;color:#9ea5b1}.support-foot .primary-btn{min-width:190px}
.latest-update-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.latest-update-card{height:182px;border-radius:18px;border:1px solid rgba(255,255,255,.07);background-size:cover;background-position:center;display:flex;align-items:flex-end;text-align:left;padding:0;color:#fff}.latest-update-card::after{content:"";position:absolute;background:linear-gradient(180deg,rgba(4,6,10,.08),rgba(4,6,10,.78));z-index:1}.latest-update-copy{position:relative;z-index:2;padding:14px;width:100%}.latest-update-copy small{font-size:8px;letter-spacing:.09em;color:#dbc17d}.latest-update-copy h4{font-family:Cinzel,serif;font-size:13px;line-height:1.28;margin-top:4px}.update-section-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:5px}.update-section-title h3{font-family:Cinzel,serif;font-size:22px}.update-section-title p{font-size:10px;color:#9299a5}
.archive-list{display:grid;gap:12px}.archive-entry{display:grid;grid-template-columns:300px 1fr auto;gap:17px;align-items:center;padding:13px;border-radius:18px;background:linear-gradient(180deg,rgba(19,22,31,.90),rgba(12,14,21,.92));border:1px solid rgba(255,255,255,.06)}.archive-thumb{height:145px;border-radius:14px;background-size:cover;background-position:center}.archive-thumb::after{content:"";position:absolute;background:linear-gradient(180deg,rgba(4,6,10,.08),rgba(4,6,10,.44))}.archive-copy small{font-size:8px;letter-spacing:.10em;color:#d7ba70}.archive-copy h4{font-family:Cinzel,serif;margin:6px 0;font-size:15px}.archive-copy p{font-size:10px;line-height:1.5;color:#9fa6b2;max-width:700px}.archive-actions{display:flex;flex-direction:column;gap:8px;min-width:104px}.archive-actions button{height:36px}
.update-locked-panel{min-height:500px;display:grid;place-items:center;text-align:center;padding:28px}.update-locked-inner{max-width:520px}.update-locked-inner>img{width:86px;margin:0 auto 15px}.update-locked-inner p{color:#aab1bd;line-height:1.55;font-size:12px;margin:7px 0 16px}.pin-field{width:100%;height:43px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:#fff;padding:0 12px;margin-top:10px;text-align:center;letter-spacing:.14em;text-transform:uppercase}.pin-error{min-height:16px;margin-top:7px;color:#ff9a9f!important;font-size:10px!important}.article-modal{display:grid;gap:15px}.article-modal-image{height:245px;border-radius:17px;overflow:hidden;position:relative}.article-modal-image img{width:100%;height:100%;object-fit:cover}.article-modal-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,6,10,.04),rgba(4,6,10,.30))}.article-modal h3{font-family:Cinzel,serif;font-size:24px}.article-modal p{line-height:1.62!important}.share-room-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.share-room-grid button{height:44px}
@media(max-width:1180px){.latest-update-grid{grid-template-columns:repeat(2,1fr)}.archive-entry{grid-template-columns:240px 1fr}.archive-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}}
@media(max-width:760px){.notif-drawer{top:68px!important;height:calc(100vh - 68px)!important}.shade#drawerShade{top:68px!important;height:calc(100vh - 68px)!important}.mobile-nav{grid-template-columns:repeat(6,1fr)!important}.chat-room-main .chat-unified-bg{height:552px!important;max-height:552px!important}.development-support-head,.support-foot{flex-direction:column;align-items:flex-start}.development-total{text-align:left}.support-foot .primary-btn{width:100%}.latest-update-grid{grid-template-columns:1fr}.archive-entry{grid-template-columns:1fr}.archive-thumb{height:170px}.archive-actions{grid-column:auto;justify-content:flex-start}.update-feature{height:360px}.update-feature-copy h2{font-size:24px}}
/* Ensure dark overlay sits above the artwork, never behind it. */
.image-overlay>img{z-index:0!important}
.image-overlay::after{z-index:1!important}
.image-overlay>.hero-copy,.image-overlay>.war-center-content{z-index:2!important}

.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:linear-gradient(#c7a652,#765925);border-radius:999px;border:2px solid rgba(0,0,0,.15)}


/* V2.3.11 incremental patch: sidebar scrollbar on left + canonical reveal renders. */
.sidebar{direction:rtl}
.sidebar>*{direction:ltr}
.card-art.revealed-character-art{background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.10))}
.card-art.revealed-character-art>img:first-child{object-fit:contain!important;width:100%;height:100%;padding:0}

/* ===== V2.3.12 Batch Update ===== */
body.view-vault{background-image:url("assets/vault-bg.webp")!important;background-position:center top!important;background-size:cover!important;background-attachment:fixed!important}
body.view-hall{background-image:url("assets/hall-bg.webp")!important;background-position:center top!important;background-size:cover!important;background-attachment:fixed!important}
body.view-vault .circuit-veil,body.view-hall .circuit-veil{background:linear-gradient(180deg,rgba(5,6,10,.52),rgba(7,8,12,.64))!important}

/* Character stage backgrounds + subtle faction glow */
.character-stage-bg{background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.character-stage-bg.knight{background-image:linear-gradient(rgba(5,8,14,.06),rgba(5,8,14,.16)),url("assets/card-bg-knight.webp")!important}
.character-stage-bg.wizard{background-image:linear-gradient(rgba(5,8,14,.06),rgba(5,8,14,.18)),url("assets/card-bg-wizard.webp")!important}
.character-stage-bg.shadow{background-image:linear-gradient(rgba(5,8,14,.07),rgba(5,8,14,.18)),url("assets/card-bg-shadow.webp")!important}
.character-stage-bg.dictator{background-image:linear-gradient(rgba(5,8,14,.08),rgba(5,8,14,.18)),url("assets/card-bg-dictator.webp")!important}
.character-stage-bg.systemia{background-image:linear-gradient(180deg,rgba(255,255,255,.03),rgba(0,0,0,.12))!important}
.character-stage-bg.revealed-character-art>img:first-child{object-fit:contain!important;position:relative;z-index:2;padding:3% 2% 0!important;filter:drop-shadow(0 12px 12px rgba(0,0,0,.26))}
.character-stage-bg.locked{background-image:none!important}
.character-vault-card .flip-face{border-width:1.5px!important}
.faction-glow-knight .flip-face{border-color:rgba(79,140,255,.78)!important;box-shadow:0 0 0 1px rgba(79,140,255,.18),0 0 16px rgba(79,140,255,.24),0 13px 28px rgba(0,0,0,.28)!important}
.faction-glow-wizard .flip-face{border-color:rgba(46,199,134,.78)!important;box-shadow:0 0 0 1px rgba(46,199,134,.18),0 0 16px rgba(46,199,134,.23),0 13px 28px rgba(0,0,0,.28)!important}
.faction-glow-shadow .flip-face{border-color:rgba(166,120,255,.80)!important;box-shadow:0 0 0 1px rgba(166,120,255,.18),0 0 16px rgba(166,120,255,.25),0 13px 28px rgba(0,0,0,.28)!important}
.faction-glow-dictator .flip-face{border-color:rgba(239,111,115,.80)!important;box-shadow:0 0 0 1px rgba(239,111,115,.18),0 0 16px rgba(239,111,115,.24),0 13px 28px rgba(0,0,0,.28)!important}
.faction-glow-systemia .flip-face{border-color:rgba(238,215,158,.82)!important;box-shadow:0 0 0 1px rgba(238,215,158,.22),0 0 18px rgba(238,215,158,.22),0 13px 28px rgba(0,0,0,.28)!important}
.vault-clean-launch{margin-top:0!important}

/* Crowntopia visual notice — reusable image frame with dynamic HTML */
.modal{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;width:min(940px,96vw)!important;overflow:visible!important;max-height:92vh!important}
.system-notice-card{position:relative;min-height:520px;background-position:center;background-repeat:no-repeat;background-size:contain;display:flex;align-items:center;justify-content:flex-end;padding:68px 72px 66px 46%;filter:drop-shadow(0 24px 40px rgba(0,0,0,.46))}
.system-notice-content{width:100%;max-height:390px;overflow:auto;padding:15px 15px 15px 0;color:#342a1b;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.system-notice-content .eyebrow{color:#9e741f!important;font-weight:900}
.system-notice-content h3{color:#332717!important;font-size:25px!important}
.system-notice-content p,.system-notice-content .modal-richtext,.system-notice-content .modal-richtext p{color:#4d402e!important}
.system-notice-content .modal-actions button{background:rgba(80,55,22,.08)!important;border-color:rgba(104,76,27,.18)!important;color:#342a1b!important}
.system-notice-content .modal-actions .primary{background:linear-gradient(180deg,#f2d995,#c49437)!important;color:#23170b!important}
.system-notice-content .modal-actions .danger{color:#9b3030!important}
.system-notice-content .modal-note,.system-notice-content small{color:#75654f!important}
.system-notice-content .unlock-rule-line,.system-notice-content .vault-rule-modal,.system-notice-content .purchase-notice{background:rgba(104,76,27,.06);border:1px solid rgba(104,76,27,.15);border-radius:12px;padding:10px}
.system-notice-content .currency-button-content img,.system-notice-content .currency-goal-piece img{filter:drop-shadow(0 2px 2px rgba(0,0,0,.12))}

/* Hall of Crowns memorial walls */
.hall-memorial-section{display:grid;gap:18px}
.hall-intro{max-width:780px;padding:6px 4px 0}.hall-intro h2{font-family:Cinzel,serif;font-size:28px;margin:4px 0 7px}.hall-intro>p:last-child{font-size:12px;line-height:1.55;color:#d7dbe3}
.memorial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.memorial-wall{position:relative;min-width:0;aspect-ratio:3/4.35;filter:drop-shadow(0 18px 28px rgba(0,0,0,.38))}
.memorial-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.memorial-inscriptions{position:absolute;left:18%;right:18%;top:31%;bottom:15%;display:flex;flex-direction:column;min-height:0;text-align:center;color:#292219}
.memorial-inscriptions h3{font-family:Cinzel,serif;font-size:16px;margin:0 0 9px;text-shadow:0 1px 0 rgba(255,255,255,.55)}
.memorial-list{display:grid;gap:10px;overflow-y:auto;padding:2px 4px 8px}.memorial-list::-webkit-scrollbar{width:4px}.memorial-list::-webkit-scrollbar-thumb{background:rgba(110,83,34,.38);border-radius:999px}
.memorial-holder{padding:7px 4px 8px;border-bottom:1px solid rgba(80,64,40,.15)}.memorial-holder:last-child{border-bottom:0}.memorial-holder>b{display:block;font-family:Cinzel,serif;font-size:12px;color:#2f281f}
.memorial-crowns{display:flex;justify-content:center;gap:2px;flex-wrap:wrap;margin-top:5px}.memorial-crowns img{width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.16))}.memorial-empty{font-size:10px;color:#6a5d49;padding-top:20px}

/* New profile layout */
.profile-shell{display:grid;gap:0}.profile-hero-banner{position:relative;height:260px;border-radius:22px 22px 0 0;overflow:hidden;border:1px solid var(--line);border-bottom:0}.profile-hero-banner>img{width:100%;height:100%;object-fit:cover}.profile-banner-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,6,10,.05),rgba(4,6,10,.16) 50%,rgba(4,6,10,.62))}
.profile-overview-row{position:relative;margin-top:-64px;z-index:3;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:0 22px 16px}.profile-overview-row.public{margin-bottom:0}.profile-identity-block{display:flex;align-items:flex-end;gap:14px;min-width:0}.profile-avatar-wrap{position:relative;width:128px;height:128px;flex:0 0 128px}.profile-avatar-img{width:100%;height:100%;border-radius:50%;object-fit:cover;background:#10151d;border:4px solid rgba(239,214,155,.92);box-shadow:0 12px 28px rgba(0,0,0,.35)}.profile-avatar-wrap .mood{right:2px;bottom:8px;width:34px;height:34px}.mood.static{position:absolute;display:grid;place-items:center;border-radius:50%;background:#11151d;border:1px solid rgba(255,255,255,.12)}.profile-name-block{padding-bottom:7px}.profile-name-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-name-line h1{font-family:Cinzel,serif;font-size:28px}.profile-name-line .profile-fpl{width:82px;margin:0}.profile-name-block>p{font-size:11px;color:#c4cad4;margin-top:3px}.profile-actions{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:7px}
.profile-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:14px}.profile-left-panel,.profile-main-panel{padding:16px}.profile-section-title h3{font-family:Cinzel,serif;margin-top:2px}.profile-faction-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.06)}.profile-faction-row>img{width:42px;height:42px;object-fit:contain}.profile-faction-row small{display:block;color:#8e96a3;font-size:9px}.profile-faction-row b{display:block;margin-top:2px}.profile-faction-row p{font-size:9px;color:#818895;margin-top:2px}.profile-lock-box{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.06)}.profile-lock-box>img{width:35px;height:35px}.profile-lock-box small{font-size:9px;color:#d8bb73}.profile-lock-box b{display:block;font-size:11px;margin-top:2px}.profile-lock-box p{font-size:9px;line-height:1.4;color:#818895;margin-top:3px}.profile-main-stats{display:grid;gap:9px;padding:13px 0}.profile-stat-item{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.045)}.profile-stat-item>img{width:25px;height:25px;object-fit:contain}.profile-stat-item small{display:block;color:#8e96a3;font-size:9px}.profile-stat-item b{display:block;font-size:12px;margin-top:2px}.profile-title-block{border-top:1px solid rgba(255,255,255,.06);padding-top:12px}.profile-title-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-title-head>span{font-size:9px;color:#8e96a3}.text-btn{border:0;background:none;color:#d7bc79;font-size:9px;font-weight:800;cursor:pointer}.active-title-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.active-title-list span,.public-title-row span{font-size:9px;padding:7px 9px;border-radius:999px;border:1px solid rgba(230,195,109,.18);background:rgba(230,195,109,.07);color:#ead394}
.profile-tabs{display:flex;gap:26px;border-bottom:1px solid rgba(255,255,255,.07);padding:0 5px}.profile-tabs button{position:relative;height:42px;border:0;background:none;color:#9da4af;font-size:10px;font-weight:900;letter-spacing:.16em;cursor:pointer}.profile-tabs button.active{color:#fff}.profile-tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--gold)}.profile-tab-body{padding:16px 3px 2px}.profile-content-section+.profile-content-section{border-top:1px solid rgba(255,255,255,.06);margin-top:16px;padding-top:16px}.profile-bio-copy{font-size:12px;line-height:1.6;color:#e0e4ea;max-width:760px}.achievement-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:12px}.achievement-showcase>div{display:flex;align-items:center;gap:9px;padding:10px;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.05)}.achievement-showcase img{width:48px}.achievement-showcase b{font-size:10px}
.collection-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:13px}.collection-head h3{font-family:Cinzel,serif;margin-top:2px}.collection-head>span{font-size:10px;color:#d8c17e}.collection-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.collection-mini-card{overflow:hidden;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}.collection-mini-art{position:relative;aspect-ratio:3/4;overflow:hidden}.collection-mini-art>img:first-child{width:100%;height:100%;object-fit:contain;padding:4%;filter:drop-shadow(0 8px 9px rgba(0,0,0,.22))}.collection-mini-card.locked .collection-mini-art>img:first-child{object-fit:cover;padding:0}.collection-lock{position:absolute;right:7px;top:7px;width:28px!important;height:28px!important;object-fit:contain!important;padding:0!important}.collection-mini-card>div:last-child{padding:8px}.collection-mini-card b{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-mini-card small{font-size:8px;color:#858d99}.collection-mini-card.unlocked{border-color:rgba(79,140,255,.20);box-shadow:0 0 10px rgba(79,140,255,.08)}
.profile-lock-wide{display:flex;gap:13px;align-items:center;padding:15px;border-radius:15px;background:rgba(230,195,109,.045);border:1px solid rgba(230,195,109,.11)}.profile-lock-wide>img{width:50px}.profile-lock-wide h3{font-family:Cinzel,serif;margin:2px 0 5px}.profile-lock-wide p{font-size:10px;color:#9ea5b0}.owner-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px}
.public-summary{padding:18px}.public-bio{max-width:760px}.public-bio>p:last-child{font-size:12px;line-height:1.6;color:#e2e5eb}.public-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.public-title-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.edit-profile-form{display:grid;gap:15px}.edit-profile-form label{display:grid;gap:6px;font-size:10px;font-weight:800;color:#6f5d3c}.edit-profile-form textarea{width:100%;min-height:76px;resize:vertical;border-radius:12px;border:1px solid rgba(104,76,27,.18);background:rgba(255,255,255,.44);color:#342a1b;padding:10px}.edit-profile-form label>small{font-weight:500}.avatar-option-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:8px}.avatar-option{position:relative;border:1px solid rgba(104,76,27,.15);background:rgba(255,255,255,.38);border-radius:12px;padding:6px;color:#473923;cursor:pointer}.avatar-option>img:first-child{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}.avatar-option small{display:block;font-size:7px;line-height:1.2;margin-top:5px}.avatar-option.selected,.avatar-option.temp-selected{box-shadow:0 0 0 2px #c89736 inset}.avatar-option.locked{opacity:.55;cursor:not-allowed}.avatar-lock{position:absolute;inset:6px 6px auto auto;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(18,16,12,.7)}.avatar-lock img{width:17px}.banner-option{width:100%;position:relative;border:2px solid #c89736;border-radius:12px;overflow:hidden;padding:0;background:none}.banner-option img{width:100%;height:90px;object-fit:cover}.banner-option span{position:absolute;left:9px;bottom:8px;background:rgba(5,6,8,.68);color:#fff;padding:5px 8px;border-radius:999px;font-size:8px}

@media(max-width:1180px){.memorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:250px minmax(0,1fr)}.collection-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.system-notice-card{min-height:640px;background-size:cover;background-position:40% center;padding:250px 28px 32px}.system-notice-content{background:rgba(255,250,239,.88);border-radius:18px;padding:14px;max-height:320px}.memorial-grid{grid-template-columns:1fr 1fr;gap:7px}.memorial-inscriptions{left:18%;right:18%;top:31%}.memorial-holder>b{font-size:9px}.memorial-crowns img{width:20px;height:20px}.profile-hero-banner{height:185px;border-radius:16px 16px 0 0}.profile-overview-row{margin-top:-44px;padding:0 10px 12px;align-items:flex-end}.profile-avatar-wrap{width:88px;height:88px;flex-basis:88px}.profile-name-line h1{font-size:20px}.profile-name-line .profile-fpl{width:65px}.profile-name-line .profile-honor-badge.is-founding{width:65px}.profile-name-line .profile-honor-badge.is-early-access{width:54px}.profile-actions{display:none}.profile-layout{grid-template-columns:1fr}.profile-left-panel{order:2}.profile-main-panel{order:1}.profile-left-panel{padding:13px}.achievement-showcase{grid-template-columns:1fr}.collection-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-stat-grid,.public-summary-grid{grid-template-columns:1fr 1fr}.avatar-option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hall-intro h2{font-size:21px}}


/* ============================================================
   V2.3.13 — Profile hub, Hall tiles, rankings and popup polish
   Targeted overrides on top of the V2.3.12 working build.
   ============================================================ */

/* Header identity */
.top-profile-copy{display:grid;gap:2px;text-align:left}.top-name-line{display:flex;align-items:center;gap:6px}.top-faction-emblem{width:21px;height:21px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.top-profile-copy>small{display:block!important;color:#8f96a3;font-size:9px}.top-name-line b{font-size:12px}

/* Profile is now the player hub */
.profile-callsign,.callsign-mini{color:#d5bc7c!important;text-transform:uppercase;letter-spacing:.12em;font-weight:800}.callsign-mini{display:block;font-size:8px;margin-top:3px}.profile-daily-reward{margin-top:14px}.profile-daily-reward .daily-reward-tile{margin:0}
.crown-action{height:42px;min-width:164px;padding:0 20px;border:0;color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em;cursor:pointer;clip-path:polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%);transition:filter .18s,transform .18s}.crown-action:hover{filter:brightness(1.08);transform:translateY(-1px)}.gold-action{background:linear-gradient(180deg,#f0d38b,#a97426);color:#181108}.faction-action{background:linear-gradient(180deg,#4f8cff,#24498f)}

/* Collection: all factions, much smaller cards */
.collection-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:13px}.collection-filters button{height:29px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);color:#8f97a4;font-size:8px;font-weight:900;letter-spacing:.08em;cursor:pointer}.collection-filters button.active{background:rgba(226,194,112,.12);border-color:rgba(226,194,112,.26);color:#f1d99d}
.collection-mini-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:8px!important}.collection-mini-card{border-radius:11px!important}.collection-mini-copy{padding:6px!important}.collection-mini-copy .card-title{font-size:8px!important;gap:4px!important;justify-content:flex-start!important;white-space:nowrap;overflow:hidden}.collection-mini-copy .card-title img{width:14px!important;height:14px!important;flex:0 0 14px}.collection-mini-copy .card-title span{overflow:hidden;text-overflow:ellipsis}.collection-mini-card small{font-size:7px!important;margin-top:3px;display:block}.collection-lock{width:22px!important;height:22px!important}.collection-mini-art>img:first-child{padding:2%!important}.collection-mini-card.locked .collection-mini-art>img:first-child{padding:0!important}.collection-mini-card[class*="faction-glow-"]{box-shadow:none!important}

/* New simple character art backdrops retain the character as the focus */
.character-stage-bg{background-size:cover!important;background-position:center!important}.character-stage-bg.revealed-character-art>img:first-child{padding:2% 1% 0!important;max-width:100%;max-height:100%;object-fit:contain!important}

/* Hall of Crowns — four dynamic tiles with generated faction frames */
.hall-faction-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}.hall-faction-tile{position:relative;aspect-ratio:3/4;min-width:0;filter:drop-shadow(0 16px 28px rgba(0,0,0,.33))}.hall-frame-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:4}.hall-tile-inner{position:absolute;inset:7.5% 8.5% 8.5%;z-index:2;background:rgba(248,242,228,.96);border-radius:12px;overflow:hidden;display:grid;grid-template-rows:34% auto 1fr;color:#2c261e}.hall-faction-visual{position:relative;background-size:cover;background-position:center;display:grid;place-items:end center;padding:12px;overflow:hidden}.hall-image-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,7,.12),rgba(4,5,7,.56))}.hall-faction-visual>img{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:52px;height:52px;object-fit:contain;z-index:2;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}.hall-faction-visual h3{position:relative;z-index:2;font-family:Cinzel,serif;font-size:15px;text-shadow:0 2px 5px rgba(0,0,0,.75);margin:0}.hall-tile-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(118,85,32,.45),transparent);margin:0 13px}.hall-holder-list{padding:10px 14px 15px;overflow-y:auto;display:grid;align-content:start;gap:8px}.hall-holder-list::-webkit-scrollbar{width:4px}.hall-holder-list::-webkit-scrollbar-thumb{background:rgba(109,80,32,.35);border-radius:999px}.hall-holder{text-align:center;padding:5px 2px 8px;border-bottom:1px solid rgba(90,68,39,.13)}.hall-holder:last-child{border-bottom:0}.hall-holder>b{font-family:Cinzel,serif;font-size:11px;color:#30271e}.hall-holder-crowns{display:flex;justify-content:center;gap:2px;flex-wrap:wrap;margin-top:5px}.hall-holder-crowns img{width:25px;height:25px;object-fit:contain}.hall-empty{text-align:center;color:#766a59;font-size:9px;padding-top:14px}

/* Rankings */
.ranking-rule{margin:12px 0 9px;padding:10px 12px;text-align:center;border:1px solid rgba(231,199,119,.14);background:rgba(231,199,119,.05);border-radius:12px;color:#e4ca88;font-size:9px;font-weight:800;letter-spacing:.035em;line-height:1.55}.ranking-rule span{opacity:.55;margin:0 5px}.rank-row{grid-template-columns:58px 1.45fr 1fr 90px 105px 125px 105px!important}.rank-row>div{height:100%;display:flex;align-items:center;justify-content:center;border-right:1px solid rgba(255,255,255,.055);border-bottom:1px solid rgba(255,255,255,.055)}.rank-row>div:last-child{border-right:0}.rank-player-cell{justify-content:flex-start!important;gap:8px!important;font-weight:800}.rank-player-cell img{width:31px;height:31px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.1);background:#0d1117}.crown-count img{width:28px!important;height:28px!important;object-fit:contain}.podium-crowns{display:flex;justify-content:center;align-items:center;gap:5px;margin:4px auto}.podium-crowns img{width:29px;height:29px;object-fit:contain}.rank-avatar-img{object-fit:cover;border:2px solid rgba(255,255,255,.15);background:#0b0d12}

/* System notice popup: no blur, strict safe content area */
.modal-shade{background:rgba(3,4,7,.72)!important;backdrop-filter:none!important}.system-modal{width:min(980px,calc(100vw - 24px))!important;max-height:94vh!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.system-notice-card{width:100%;aspect-ratio:4/3;min-height:0!important;background-size:100% 100%!important;background-position:center!important;padding:23.5% 10.5% 15.5% 48%!important;display:block!important;filter:drop-shadow(0 24px 42px rgba(0,0,0,.5))!important}.system-notice-content{width:100%!important;height:100%;max-height:none!important;overflow:auto!important;padding:0 4px 2px 0!important;color:#352a1a!important}.system-notice-content h3{font-size:clamp(18px,2vw,27px)!important;line-height:1.05!important;margin:4px 0 9px!important}.system-notice-content p,.system-notice-content .modal-richtext,.system-notice-content .modal-richtext p{font-size:11px!important;line-height:1.48!important}.system-notice-content .modal-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;margin-top:11px!important;align-items:stretch}.system-notice-content .modal-actions button{height:42px!important;min-width:0!important;width:100%;padding:0 12px!important;border-radius:0!important;clip-path:polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%);font-size:10px!important;font-weight:800!important}.system-notice-content .modal-actions .currency-pay-btn{min-height:52px!important;height:52px!important}.system-notice-content .modal-actions .modal-close-btn{grid-column:1/-1;justify-self:center;width:92px!important;height:30px!important;clip-path:none!important;border-radius:8px!important;font-size:9px!important}.system-notice-content .unlock-rule-line{padding:8px 9px!important;margin-top:8px!important}.system-notice-content .modal-note{display:block;margin-top:7px!important;font-size:9px!important;line-height:1.4!important}

/* Edit Profile is an ordinary forum tile, not a Systemia notice image */
.plain-profile-modal{width:min(820px,calc(100vw - 28px))!important;max-height:88vh!important;overflow:auto!important;background:rgba(10,12,17,.98)!important;padding:18px!important;border:1px solid rgba(255,255,255,.08)!important}.plain-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.07);padding-bottom:12px;margin-bottom:14px}.plain-modal-head h3{margin:2px 0 0!important;color:#fff!important}.plain-modal-x{width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;font-size:20px}.dark-edit-form label{color:#d8dde5!important}.dark-edit-form input,.dark-edit-form textarea{width:100%;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:#fff;padding:10px}.dark-edit-form input{height:42px}.dark-edit-form textarea{min-height:82px}.dark-edit-form label>small{color:#858e9c!important;font-size:8px}.identity-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.plain-profile-modal .avatar-option{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.07);color:#dfe4ec}.plain-profile-modal .banner-option{border-color:rgba(229,197,113,.7)}.plain-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}

@media(max-width:1260px){.collection-mini-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.hall-faction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.collection-mini-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.system-notice-card{padding-left:47%!important;padding-right:8.5%!important}}
@media(max-width:760px){.top-faction-emblem{width:20px;height:20px}.top-profile-copy{display:none}.collection-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.hall-faction-grid{grid-template-columns:1fr 1fr;gap:7px}.hall-faction-visual h3{font-size:11px}.hall-faction-visual>img{width:38px;height:38px}.hall-holder>b{font-size:8px}.hall-holder-crowns img{width:18px;height:18px}.system-modal{width:min(96vw,620px)!important}.system-notice-card{aspect-ratio:auto!important;min-height:610px!important;background-size:cover!important;background-position:38% center!important;padding:250px 22px 24px!important}.system-notice-content{height:auto!important;max-height:320px!important;background:rgba(255,250,239,.91);border-radius:15px;padding:13px!important}.system-notice-content .modal-actions{grid-template-columns:1fr!important}.system-notice-content .modal-actions .modal-close-btn{grid-column:1}.identity-edit-grid{grid-template-columns:1fr}.plain-modal-actions{justify-content:stretch}.plain-modal-actions .crown-action{flex:1;min-width:0}.profile-actions{display:flex!important;gap:5px;padding-bottom:4px}.profile-actions .crown-action{min-width:0;height:36px;padding:0 11px;font-size:8px}.profile-overview-row{flex-wrap:wrap}.ranking-rule{font-size:8px}.rank-row{min-width:790px!important}}

/* ===== V2.3.14 Build Crowntopia / identity lock / popup rebuild ===== */
.build-crowntopia-nav{position:relative}.build-crowntopia-nav .external-arrow{margin-left:auto;color:#d8bb70;font-size:12px;opacity:.8}

/* Mood system — universal Crowntopia spirit moods */
.profile-avatar-wrap .mood,.mood.static{overflow:hidden;padding:0;background:#0b0d12!important;border:2px solid rgba(236,204,125,.78)!important;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.profile-avatar-wrap .mood img,.mood.static img{width:100%;height:100%;object-fit:cover}
.mood-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.mood-choice{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:13px;padding:8px;color:#dfe4ec;cursor:pointer;display:grid;gap:6px;text-align:center}.mood-choice img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:9px;background:#07080c}.mood-choice span{font-size:9px;font-weight:800;letter-spacing:.03em}.mood-choice.selected{border-color:rgba(232,198,111,.72);box-shadow:0 0 0 1px rgba(232,198,111,.18),0 0 25px rgba(232,198,111,.10)}

/* Hall of Crowns — frame is the exact tile boundary; no faction image block */
.hall-faction-grid{align-items:stretch}.hall-faction-tile{aspect-ratio:1086/1448;width:100%;overflow:visible}.hall-tile-inner{inset:14% 10.5% 9.5%!important;border-radius:8px!important;display:grid!important;grid-template-rows:auto 1px minmax(0,1fr)!important;background:linear-gradient(180deg,rgba(252,249,241,.97),rgba(239,232,216,.97))!important}.hall-faction-heading{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 8px 9px;min-height:64px}.hall-faction-heading img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.16))}.hall-faction-heading h3{font-family:Cinzel,serif;font-size:14px;margin:0;text-shadow:none!important}.hall-tile-divider{margin:0 11px!important}.hall-holder-list{min-height:0;padding:10px 12px 15px!important}.hall-holder{padding:7px 2px 9px!important}.hall-holder>b{font-size:10px!important}.hall-holder-crowns img{width:23px!important;height:23px!important}

/* System / notification popup rebuilt as a normal reliable HTML tile */
.modal-shade{background:rgba(3,4,7,.76)!important;backdrop-filter:none!important}.system-modal{width:min(860px,calc(100vw - 28px))!important;max-height:86vh!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.system-popup-tile{position:relative;display:grid;grid-template-columns:minmax(220px,34%) minmax(0,1fr);min-height:390px;max-height:84vh;border:1px solid rgba(231,198,111,.30);border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#171a22,#0d0f14);box-shadow:0 30px 90px rgba(0,0,0,.62)}.system-popup-close{position:absolute;z-index:7;right:14px;top:14px;width:40px;height:40px;border-radius:11px;border:1px solid rgba(255,255,255,.10);background:rgba(8,10,14,.82);display:grid;place-items:center;cursor:pointer}.system-popup-close img{width:27px;height:27px}.system-popup-art{position:relative;min-height:390px;background:#08090d;overflow:hidden;border-right:1px solid rgba(255,255,255,.07)}.system-popup-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 55%,rgba(13,15,20,.88) 100%),linear-gradient(180deg,transparent 66%,rgba(10,12,17,.65));pointer-events:none}.system-popup-art img{width:100%;height:100%;object-fit:cover;object-position:center}.system-popup-content{padding:34px 48px 30px 32px;overflow:auto;min-width:0;color:#f5f4ef}.system-popup-content h3{font-family:Cinzel,serif;font-size:clamp(21px,2.5vw,30px);line-height:1.12;margin:4px 0 11px;color:#fff}.system-popup-content>p,.system-popup-content .modal-richtext,.system-popup-content .modal-richtext p{font-size:12px;line-height:1.58;color:#bdc4ce}.system-popup-content .modal-richtext b,.system-popup-content .modal-richtext strong{color:#f3d995}.system-popup-content .modal-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;margin-top:16px!important}.system-popup-content .modal-actions button{height:43px!important;min-width:0!important;width:100%;padding:0 15px!important;border-radius:0!important;clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%);border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.055)!important;color:#fff!important;font-size:10px!important;font-weight:850!important;cursor:pointer}.system-popup-content .modal-actions button.primary{background:linear-gradient(180deg,#f2d990,#cda342)!important;color:#171108!important;border:0!important}.system-popup-content .modal-actions button.danger{color:#ff9da4!important}.system-popup-content .modal-actions .currency-pay-btn{height:56px!important}.system-popup-content .unlock-rule-line{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.07)!important;color:#d3d8df!important}.system-popup-content .unlock-rule-line img{width:24px}.system-popup-content .modal-note{color:#8f98a5!important}.system-popup-content .purchase-notice,.system-popup-content .vault-rule-modal{color:#c5cbd4}.system-popup-content .purchase-detail-row{border-color:rgba(255,255,255,.08)!important}.system-popup-content .currency-goal-piece{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.07)!important}.system-popup-content .currency-goal-piece small{color:#9099a6!important}

/* Header avatar always inherits permanent account faction colour behind transparent portraits */
.top-avatar{background-color:#31599f;background-blend-mode:normal;border:1px solid rgba(255,255,255,.10)}

@media(max-width:900px){.mood-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.system-popup-tile{grid-template-columns:210px minmax(0,1fr)}.system-popup-content{padding-left:24px;padding-right:42px}}
@media(max-width:760px){.mood-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hall-faction-heading{min-height:48px;padding:8px 4px 6px}.hall-faction-heading img{width:30px;height:30px}.hall-faction-heading h3{font-size:10px}.system-modal{width:min(94vw,520px)!important}.system-popup-tile{display:block;min-height:0;max-height:88vh;overflow:auto}.system-popup-art{height:170px;min-height:170px;border-right:0;border-bottom:1px solid rgba(255,255,255,.07)}.system-popup-art img{object-position:center 30%}.system-popup-art:after{background:linear-gradient(180deg,transparent 50%,rgba(13,15,20,.96))}.system-popup-content{padding:18px 18px 22px}.system-popup-content .modal-actions{grid-template-columns:1fr!important}.system-popup-close{right:10px;top:10px}.hall-tile-inner{inset:15% 11% 10%!important}.hall-holder>b{font-size:8px!important}.hall-holder-crowns img{width:17px!important;height:17px!important}}

/* V2.3.15 player-side completion */
.nav-bottom-build{margin-top:auto!important;border-top:1px solid rgba(255,255,255,.07)!important;padding-top:0!important}
.purchase-phone-label{display:grid;gap:6px;margin-top:12px;color:#d7dce4;font-size:9px;font-weight:800;letter-spacing:.08em}.purchase-phone-label input{height:42px;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:#0b0d12;color:#fff;padding:0 12px;font:600 12px Inter,sans-serif}.purchase-phone-label input:focus{outline:1px solid rgba(234,199,111,.58);border-color:rgba(234,199,111,.38)}
.war-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.war-presets button,#customWarContribute{height:42px;border:1px solid rgba(239,204,117,.24);background:rgba(239,204,117,.08);color:#f4dc9c;clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%);font-weight:800;cursor:pointer}.custom-contribution{display:grid;grid-template-columns:1fr 145px;gap:9px;margin-top:9px}.custom-contribution input{height:42px;border-radius:9px;border:1px solid rgba(255,255,255,.08);background:#0c0e13;color:#fff;padding:0 12px}
.gct-orders-section{margin-top:14px;padding:16px}.gct-order-list{display:grid;gap:10px;margin-top:12px}.gct-order-card{padding:13px;border-radius:14px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025)}.gct-order-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.gct-order-head>div{display:grid;gap:3px}.gct-order-head small{font-size:8px;color:#7f8895}.gct-order-head b{font-family:Cinzel,serif;font-size:12px;color:#f0d58f}.order-status{padding:6px 9px;border-radius:999px;font-size:8px;font-weight:850;letter-spacing:.05em;background:rgba(239,204,117,.09);color:#e8cb82;border:1px solid rgba(239,204,117,.17)}.order-status.gct_credited{color:#9fe4bf;background:rgba(55,191,124,.08);border-color:rgba(55,191,124,.18)}.order-status.cancelled,.order-status.expired{color:#ff9aa2;background:rgba(239,80,92,.08);border-color:rgba(239,80,92,.17)}.gct-order-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.gct-order-info span{padding:9px;border-radius:10px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.05)}.gct-order-info small{display:block;font-size:7px;color:#737d8a;letter-spacing:.07em}.gct-order-info b{display:block;margin-top:3px;font-size:10px;color:#e6e9ee}.order-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-top:13px}.order-timeline span{position:relative;display:grid;grid-template-rows:12px auto;justify-items:center;text-align:center;min-width:0}.order-timeline span:before{content:"";position:absolute;top:5px;left:0;right:0;height:1px;background:rgba(255,255,255,.09)}.order-timeline span:first-child:before{left:50%}.order-timeline span:last-child:before{right:50%}.order-timeline i{position:relative;z-index:1;width:11px;height:11px;border-radius:50%;border:2px solid #303640;background:#0e1117}.order-timeline span.done:before{background:rgba(225,190,96,.45)}.order-timeline span.done i{border-color:#d9b958;background:#d9b958;box-shadow:0 0 13px rgba(217,185,88,.27)}.order-timeline span.current i{box-shadow:0 0 0 4px rgba(217,185,88,.12),0 0 14px rgba(217,185,88,.35)}.order-timeline small{display:block;padding:5px 3px 0;color:#68717e;font-size:6px;line-height:1.25}.order-timeline span.done small{color:#b6a46e}.gct-order-empty{display:flex;align-items:center;gap:11px;margin-top:12px;padding:14px;border-radius:13px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.055)}.gct-order-empty img{width:38px;height:38px;object-fit:contain}.gct-order-empty b{font-size:11px}.gct-order-empty p{margin:3px 0 0;color:#858e9b;font-size:9px}
.vault-drawer-tile.systemia.has-background .vault-drawer-overlay{background:linear-gradient(90deg,rgba(8,9,12,.75),rgba(8,9,12,.42)),linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.50))}.vault-drawer-tile.systemia .vault-drawer-title img{filter:drop-shadow(0 3px 9px rgba(231,202,124,.35))}.color-systemia{color:#f0dca6!important}
.system-popup-art img{object-position:center 24%!important}
@media(max-width:900px){.gct-order-info{grid-template-columns:repeat(2,minmax(0,1fr))}.order-timeline small{font-size:5px}}
@media(max-width:760px){.war-presets{grid-template-columns:1fr}.custom-contribution{grid-template-columns:1fr}.gct-order-head{display:grid}.gct-order-info{grid-template-columns:1fr 1fr}.order-timeline{overflow-x:auto;grid-template-columns:repeat(5,92px);justify-content:start;padding-bottom:4px}}

/* ============================================================
   V2.3.16 — Player Experience, Loading & Stickers Batch
   ============================================================ */

/* Universal Systemia / Royal Core transition loader */
.transition-loader{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;overflow:hidden;background:#efe2c7;opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease}
.transition-loader.visible{opacity:1;visibility:visible}
.transition-loader-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.transition-loader-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,252,244,.08),rgba(48,32,13,.16)),radial-gradient(circle at 50% 48%,rgba(255,248,218,.08),rgba(42,27,10,.22) 82%)}
.transition-loader-core{position:relative;z-index:2;width:min(620px,86vw);display:grid;justify-items:center;text-align:center;padding:28px 24px 24px;border-radius:28px;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.24),rgba(255,255,255,.04) 48%,transparent 73%);text-shadow:0 3px 20px rgba(61,39,6,.48)}
.transition-loader-logo{width:min(390px,70vw);max-height:210px;object-fit:contain;filter:drop-shadow(0 12px 24px rgba(85,51,8,.35))}
.royal-core-spinner{position:relative;width:54px;height:54px;margin-top:12px;border:1px solid rgba(115,76,18,.22);border-radius:50%;box-shadow:0 0 32px rgba(226,176,72,.25),inset 0 0 18px rgba(255,244,192,.25);animation:royalCoreSpin 2.3s linear infinite}
.royal-core-spinner:before,.royal-core-spinner:after{content:"";position:absolute;border-radius:50%;inset:7px;border:1px solid rgba(218,163,48,.38);animation:royalCoreSpin 1.55s linear infinite reverse}.royal-core-spinner:after{inset:17px;background:radial-gradient(circle,#fff8cf 0 14%,#ebc65c 28%,rgba(235,198,92,.08) 70%);border:0;box-shadow:0 0 20px rgba(236,196,83,.8);animation:royalCorePulse 1.25s ease-in-out infinite}
.royal-core-spinner span{position:absolute;width:6px;height:6px;border-radius:50%;background:#f1cf73;box-shadow:0 0 12px rgba(241,207,115,.95)}.royal-core-spinner span:nth-child(1){left:50%;top:-3px}.royal-core-spinner span:nth-child(2){right:2px;bottom:8px}.royal-core-spinner span:nth-child(3){left:2px;bottom:8px}
.transition-loader-core>p{margin-top:13px;font-family:Cinzel,serif;font-size:13px;font-weight:700;letter-spacing:.08em;color:#fff9e9;text-shadow:0 2px 11px rgba(75,46,6,.78)}
@keyframes royalCoreSpin{to{transform:rotate(360deg)}}@keyframes royalCorePulse{50%{transform:scale(1.18);opacity:.68}}
body.transitioning{overflow:hidden}

/* Locked sections live as one group immediately before Build Crowntopia */
.locked-section-start{margin-top:12px!important;border-top:1px solid rgba(255,255,255,.075)!important}
.nav-bottom-build{margin-top:12px!important;border-top:1px solid rgba(230,195,109,.13)!important}

/* Cleaner universal notices. Narrow art, roomy content, reliable small currency icons. */
.system-modal{width:min(930px,calc(100vw - 34px))!important}
.system-popup-tile{grid-template-columns:minmax(170px,26%) minmax(0,1fr)!important;min-height:370px!important;max-height:86vh!important}
.system-popup-art{min-height:370px!important;background:radial-gradient(circle at 50% 45%,rgba(225,191,101,.10),rgba(7,8,12,.98) 68%)!important}
.system-popup-tile.art-contain .system-popup-art{padding:26px 18px;display:grid;place-items:center}
.system-popup-tile.art-contain .system-popup-art:after{background:linear-gradient(90deg,transparent 72%,rgba(13,15,20,.72) 100%)!important}
.system-popup-tile.art-contain .system-popup-art img{width:100%!important;height:100%!important;max-height:310px!important;object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 14px 24px rgba(0,0,0,.35))}
.system-popup-tile.art-cover .system-popup-art img{object-fit:cover!important;object-position:center!important}
.system-popup-content{padding:31px 44px 28px 30px!important}
.system-popup-content .modal-richtext{min-width:0}
.system-popup-content .purchase-notice{display:grid;gap:4px;padding:0!important;background:none!important;border:0!important}
.system-popup-content .purchase-detail-row{padding:9px 2px!important;gap:18px!important}.system-popup-content .purchase-detail-row span{font-size:10px!important}.system-popup-content .purchase-detail-row b{font-size:11px!important;max-width:58%;text-align:right}
.system-popup-content .contribution-balance{display:flex;align-items:center;gap:11px;margin:13px 0;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065)}
.system-popup-content .contribution-balance img{width:34px!important;height:34px!important;object-fit:contain!important;flex:0 0 34px}.system-popup-content .contribution-balance small{display:block;font-size:8px;color:#88919e}.system-popup-content .contribution-balance b{display:block;margin-top:2px;color:#f2d58c;font-size:12px}
.system-popup-content .war-presets{grid-template-columns:repeat(3,minmax(0,1fr))!important}.system-popup-content .custom-contribution{grid-template-columns:minmax(0,1fr) 130px!important}
.purchase-phone-label input{width:100%}

/* Profile Stickers tab */
.stickers-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.stickers-head h3{font-family:Cinzel,serif;font-size:20px}.stickers-head p{max-width:680px;color:#929aa6;font-size:10px;line-height:1.55;margin-top:5px}.stickers-head>span{font-size:9px;color:#d5bd79;white-space:nowrap;padding-top:6px}
.sticker-filters{margin-top:14px}
.sticker-pack-grid{display:grid;grid-template-columns:repeat(6,minmax(94px,1fr));gap:16px 12px;margin-top:16px;align-items:start}
.sticker-pack-mini{appearance:none;border:0;background:transparent;color:#fff;padding:0;display:grid;gap:7px;text-align:center;cursor:pointer;min-width:0;transition:transform .18s ease,filter .18s ease}.sticker-pack-mini:hover{transform:translateY(-4px)}.sticker-pack-mini.locked{filter:saturate(.45) brightness(.62)}.sticker-pack-mini.claimed .sticker-pack-art:after{content:"✓";position:absolute;right:6px;top:6px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#d6b85e;color:#171108;font-weight:950;box-shadow:0 5px 14px rgba(0,0,0,.38)}
.sticker-pack-art{position:relative;display:block;aspect-ratio:2/3;overflow:hidden;filter:drop-shadow(0 10px 13px rgba(0,0,0,.30))}.sticker-pack-art>img:first-child{width:100%;height:100%;object-fit:cover}.sticker-pack-lock{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:38px!important;height:38px!important;object-fit:contain!important;filter:drop-shadow(0 6px 10px rgba(0,0,0,.7))}
.sticker-pack-copy{display:grid;gap:3px;min-width:0}.sticker-pack-copy b{font-family:Cinzel,serif;font-size:8.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sticker-pack-copy small{font-size:6.5px;letter-spacing:.06em;color:#818a97}.sticker-pack-mini.available .sticker-pack-copy small{color:#dbc17b}.sticker-pack-mini.purchased .sticker-pack-copy small{color:#fff0b2}.sticker-pack-mini.claimed .sticker-pack-copy small{color:#86dcae}
.sticker-pack-detail{display:grid;grid-template-columns:125px minmax(0,1fr);gap:18px;align-items:start}.sticker-detail-cover img{width:100%;aspect-ratio:2/3;object-fit:cover;filter:drop-shadow(0 12px 18px rgba(0,0,0,.32))}.sticker-detail-info{min-width:0}.sticker-detail-info .unlock-rule-line{margin-top:12px}

/* Booster-pack reveal experience */
.sticker-opening-modal{width:min(970px,calc(100vw - 28px))!important;max-height:91vh!important;overflow:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.sticker-opening-shell{position:relative;min-height:600px;padding:28px 32px 32px;border:1px solid rgba(233,199,111,.28);border-radius:24px;overflow:hidden;background:radial-gradient(circle at 50% 42%,rgba(84,121,220,.15),rgba(10,12,18,.97) 58%);box-shadow:0 30px 90px rgba(0,0,0,.67);display:grid;grid-template-rows:auto 1fr auto;justify-items:center}.sticker-opening-shell.faction-wizard{background:radial-gradient(circle at 50% 42%,rgba(40,199,126,.18),rgba(9,17,14,.98) 59%)}.sticker-opening-shell.faction-shadow{background:radial-gradient(circle at 50% 42%,rgba(153,93,255,.20),rgba(14,9,21,.98) 59%)}.sticker-opening-shell.faction-dictator{background:radial-gradient(circle at 50% 42%,rgba(229,70,74,.18),rgba(20,8,9,.98) 59%)}
.sticker-opening-shell:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,transparent 33%,rgba(255,226,143,.06) 49%,transparent 62%)}
.sticker-opening-x{position:absolute;right:15px;top:15px;width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(7,9,13,.78);color:#fff;font-size:23px;cursor:pointer;z-index:4}.sticker-opening-head{position:relative;z-index:2;text-align:center}.sticker-opening-head h3{font-family:Cinzel,serif;font-size:25px;margin:2px 0 4px}.sticker-opening-head small{color:#9ea6b2;font-size:9px;letter-spacing:.08em}
.sticker-reveal-stage{position:relative;width:min(330px,72vw);aspect-ratio:4/5;align-self:center;display:grid;place-items:center;margin:12px auto}.sticker-stack-card,.sticker-reveal-card{position:absolute;width:78%;height:88%;border-radius:20px;border:1px solid rgba(239,208,124,.22);background:linear-gradient(180deg,rgba(238,204,112,.09),rgba(255,255,255,.025));box-shadow:0 22px 45px rgba(0,0,0,.38)}.sticker-stack-card.back-three{transform:translate(17px,-8px) rotate(5deg);opacity:.34}.sticker-stack-card.back-two{transform:translate(9px,-4px) rotate(2.5deg);opacity:.58}.sticker-reveal-card{appearance:none;display:grid;place-items:center;padding:0;cursor:pointer;overflow:hidden;z-index:3;transition:transform .18s ease,opacity .18s ease}.sticker-reveal-card:hover{transform:translateY(-4px) scale(1.015)}.sticker-reveal-card.cycling{transform:translate(-55%,8%) rotate(-18deg) scale(.88);opacity:0}
.sticker-reveal-tile{width:100%;height:100%;padding:17px;display:grid;place-items:center;background:radial-gradient(circle at 50% 46%,rgba(255,255,255,.11),rgba(8,10,14,.94) 74%)}.sticker-reveal-tile img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 13px 18px rgba(0,0,0,.35))}
.sticker-reveal-hint{position:relative;z-index:2;color:#aeb5bf;font-size:10px;text-align:center}.sticker-opening-shell.complete{display:block;min-height:0;text-align:center}.sticker-claim-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin:24px auto 18px;max-width:860px}.sticker-claim-tile{aspect-ratio:4/5;border-radius:13px;border:1px solid rgba(239,207,119,.15);background:rgba(255,255,255,.035);padding:8px;display:grid;place-items:center}.sticker-claim-tile img{width:100%;height:100%;object-fit:contain}.sticker-claim-btn{display:block;min-width:220px;margin:5px auto 0}

/* Manage Titles */
.manage-title-copy>p{margin-bottom:14px!important}.owned-title-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.owned-title-option{position:relative;display:flex;align-items:center;gap:9px;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.028);cursor:pointer}.owned-title-option.selected{border-color:rgba(229,194,101,.36);background:rgba(229,194,101,.07)}.owned-title-option input{position:absolute;opacity:0;pointer-events:none}.owned-title-option img{width:34px;height:34px;object-fit:contain}.owned-title-option span{font-size:10px;font-weight:750;color:#e8ebef}.title-selection-count{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.07);font-size:10px;color:#949ca8}.title-selection-count b{color:#e7c978}

/* Chat emoji + sticker libraries */
.chat-unified-bg{position:relative}.chat-picker-layer{position:absolute;left:14px;right:14px;bottom:67px;z-index:12}.chat-picker-panel{max-height:360px;overflow:auto;border:1px solid rgba(235,202,115,.18);border-radius:17px;background:rgba(11,13,18,.985);box-shadow:0 22px 55px rgba(0,0,0,.5);padding:13px}.chat-picker-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.065)}.chat-picker-head b{font-family:Cinzel,serif;font-size:13px}.picker-close{width:31px;height:31px;border-radius:9px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.04);color:#fff;font-size:20px;cursor:pointer}.emoji-categories{display:grid;gap:12px;margin-top:11px}.emoji-categories section>small{display:block;font-size:7px;color:#8f98a5;letter-spacing:.11em;margin-bottom:7px}.emoji-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:3px}.emoji-grid button{height:35px;border:0;border-radius:8px;background:transparent;font-size:21px;cursor:pointer}.emoji-grid button:hover{background:rgba(255,255,255,.06)}
.sticker-library-tabs{display:flex;gap:7px;overflow:auto;padding:10px 0}.sticker-library-tabs button{flex:0 0 74px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.025);border-radius:10px;color:#fff;padding:5px;cursor:pointer}.sticker-library-tabs button.active{border-color:rgba(232,198,106,.38);background:rgba(232,198,106,.07)}.sticker-library-tabs img{height:56px;width:100%;object-fit:cover}.sticker-library-tabs span{display:block;margin-top:4px;font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sticker-library-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.sticker-library-grid button{aspect-ratio:1;border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.025);border-radius:11px;padding:5px;cursor:pointer}.sticker-library-grid button:hover{border-color:rgba(232,198,106,.28);background:rgba(232,198,106,.05)}.sticker-library-grid img{width:100%;height:100%;object-fit:contain}.empty-sticker-library{min-height:150px;display:grid;place-items:center;text-align:center;padding:18px}.empty-sticker-library img{width:45px;opacity:.7}.empty-sticker-library p{max-width:380px;color:#929ba7;font-size:10px;line-height:1.5}.sticker-message{min-width:150px}.sent-sticker{width:min(230px,36vw);max-height:230px;object-fit:contain;margin:7px 0 2px;filter:drop-shadow(0 10px 18px rgba(0,0,0,.27))}

@media(max-width:1120px){.sticker-pack-grid{grid-template-columns:repeat(4,minmax(90px,1fr))}.sticker-claim-grid{grid-template-columns:repeat(4,1fr)}.emoji-grid{grid-template-columns:repeat(9,1fr)}}
@media(max-width:760px){.transition-loader-logo{width:min(310px,78vw)}.transition-loader-core>p{font-size:11px}.system-popup-tile{display:block!important}.system-popup-art{height:135px!important;min-height:135px!important;padding:10px!important}.system-popup-tile.art-contain .system-popup-art img{max-height:115px!important}.system-popup-content{padding:17px 17px 20px!important}.system-popup-content .war-presets{grid-template-columns:1fr!important}.system-popup-content .custom-contribution{grid-template-columns:1fr!important}.sticker-pack-grid{grid-template-columns:repeat(3,minmax(80px,1fr));gap:13px 8px}.stickers-head{display:grid}.sticker-pack-detail{grid-template-columns:92px minmax(0,1fr);gap:12px}.sticker-opening-shell{min-height:540px;padding:22px 14px 22px}.sticker-claim-grid{grid-template-columns:repeat(3,1fr);gap:7px}.owned-title-grid{grid-template-columns:1fr}.chat-picker-layer{left:7px;right:7px;bottom:64px}.emoji-grid{grid-template-columns:repeat(7,1fr)}.sticker-library-grid{grid-template-columns:repeat(4,1fr)}.sticker-library-tabs button{flex-basis:64px}.sent-sticker{width:min(190px,58vw)}}
@media(max-width:760px){.composer button:nth-child(1),.composer button:nth-child(4){display:none!important}.composer button:nth-child(2),.composer button:nth-child(3){display:grid!important}.composer{grid-template-columns:auto auto 1fr auto!important}}


/* ===== Batch 1 production / HUMM notice system ===== */
.real-login-card{display:flex;flex-direction:column;align-items:stretch}
.login-crowntopia-logo{display:block;width:min(260px,78%);max-height:128px;object-fit:contain;margin:0 auto 24px;filter:drop-shadow(0 0 18px rgba(225,196,119,.18))}
.forgot-password-btn{margin-top:10px;border:0;background:transparent;color:#cdbb8a;font:700 11px Inter,sans-serif;letter-spacing:.12em;cursor:pointer}
.forgot-password-btn:hover{color:#fff}

.humm-modal{width:min(980px,94vw)!important;max-width:980px!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;overflow:visible!important}
.humm-popup-tile{position:relative;display:grid;grid-template-columns:minmax(190px,30%) 1px minmax(0,1fr);min-height:390px;max-height:min(78vh,680px);overflow:hidden;border-radius:18px;background:
linear-gradient(90deg,rgba(0,0,0,.22),rgba(0,0,0,.58) 43%,rgba(0,0,0,.76)),
url('assets/humm-popup-bg.webp') center/cover no-repeat;
box-shadow:0 22px 60px rgba(0,0,0,.65),0 0 0 1px rgba(222,190,111,.22)}
.humm-popup-character{display:flex;align-items:flex-end;justify-content:center;min-width:0;padding:28px 10px 18px}
.humm-popup-character img{display:block;width:100%;height:100%;max-height:350px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 16px 24px rgba(0,0,0,.48))}
.humm-popup-divider{align-self:stretch;width:1px;background:linear-gradient(to bottom,transparent 5%,rgba(231,207,145,.16),rgba(231,207,145,.58) 45%,rgba(231,207,145,.16),transparent 95%);box-shadow:0 0 14px rgba(229,201,128,.16)}
.humm-popup-content{position:relative;min-width:0;overflow:auto;padding:42px 46px 36px;color:#f7f3e9}
.humm-popup-content h3{margin:4px 0 14px;font-family:Cinzel,serif;font-size:clamp(24px,3vw,38px);line-height:1.08;color:#fff4d1}
.humm-popup-content .humm-id{color:#d5bb75;letter-spacing:.16em}
.humm-popup-content .humm-speech,.humm-popup-content .modal-richtext{color:#e8e3d7;line-height:1.65}
.humm-popup-content .modal-note{color:#c9c2b4}
.humm-popup-content .purchase-detail-row,.humm-popup-content .build-review>div{background:rgba(0,0,0,.28);border-color:rgba(229,201,128,.15)}
.humm-popup-content label,.humm-popup-content small{color:#ded7c8}
.humm-popup-content input,.humm-popup-content textarea,.humm-popup-content select{background:rgba(8,8,10,.78);border:1px solid rgba(229,201,128,.24);color:white}
.humm-popup-content .modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.humm-popup-content .modal-actions button{min-height:42px}
.humm-popup-content .modal-actions button.primary{background:linear-gradient(135deg,#c7a659,#8d6f32);color:#0b0a07;border-color:#e2c77d}
.humm-popup-content .modal-actions button.danger{background:#552126;color:#ffd9d9}
.humm-popup-tile .system-popup-close{z-index:8}
.humm-inline-field{display:grid;gap:7px;margin-top:18px}
.humm-inline-field input{padding:12px 13px}

.requirement-met-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(115,220,151,.14);border:1px solid rgba(115,220,151,.65);color:#90eaae;font-weight:900;font-size:18px;flex:0 0 30px}
.title-text-only .owned-title-option img{display:none!important}
.title-text-only .owned-title-option{min-height:46px;padding:11px 13px}
.empty-title-state,.empty-achievement-state,.live-chat-empty{padding:20px;border:1px dashed rgba(205,187,138,.25);color:#aaa;text-align:center;border-radius:12px}

.onboarding-modal{width:min(1000px,95vw)!important}
.onboarding-tile{min-height:460px}
.onboarding-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:18px 0}
.onboarding-form label{display:grid;gap:6px;font-size:10px;font-weight:800;letter-spacing:.1em}
.onboarding-form label:first-child{grid-column:1/-1}
.onboarding-form input{width:100%;padding:12px;border-radius:8px}
.onboarding-final-copy{font-size:13px}

.achievement-library{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.achievement-library>div{position:relative;min-height:170px;padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.achievement-library>div img{width:74px;height:74px;object-fit:contain;margin-bottom:8px}
.achievement-library>div small{margin-top:5px;color:#9ea3aa;font-size:10px;line-height:1.35}
.achievement-library>div.locked{filter:saturate(.15);opacity:.52}
.achievement-library>div.locked img{filter:brightness(.35)}
.achievement-lock-mark{position:absolute;top:10px;right:10px;font-size:13px}

.tx-row .currency-tx.spent{color:#ffaaa5}
.tx-row .currency-tx.earned{color:#a8e9bb}
.ct-reply-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(0,0,0,.45);border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#c9cdd5}
.ct-reply-banner button{border:0;background:transparent;color:#fff;font-size:18px;cursor:pointer}
.msg-reactions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.chat-reaction-pill{border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.25);color:#fff;border-radius:999px;padding:3px 7px;font-size:11px;cursor:pointer}
.chat-reaction-pill.mine{border-color:rgba(222,190,111,.7);background:rgba(222,190,111,.15)}
.compact-reaction-panel{max-width:330px!important}
.reaction-choice-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.reaction-choice-grid button{font-size:23px;padding:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:8px}
.live-poll-composer{display:grid;gap:9px;max-width:480px!important}
.live-poll-composer input{padding:11px;background:#111;color:#fff;border:1px solid #383838;border-radius:8px}
.live-poll{display:grid;gap:7px;min-width:min(360px,60vw)}
.live-poll>b{display:block;margin-bottom:4px}
.live-poll button{display:flex;justify-content:space-between;gap:12px;text-align:left;padding:8px 10px;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:8px}
.live-poll button.mine{border-color:#d2b66d}
.chat-live-text{white-space:pre-wrap;overflow-wrap:anywhere}

.real-back-arrow{font-family:Arial,sans-serif!important;font-size:28px!important;font-weight:500!important;line-height:1!important;display:grid!important;place-items:center!important}
.build-humm-popup{min-height:420px}

@media(max-width:720px){
  .humm-popup-tile{grid-template-columns:118px 1px minmax(0,1fr);min-height:360px;max-height:84vh}
  .humm-popup-character{padding:22px 3px 15px;align-items:center}
  .humm-popup-character img{max-height:255px}
  .humm-popup-content{padding:34px 20px 24px}
  .humm-popup-content h3{font-size:22px}
  .onboarding-form{grid-template-columns:1fr}
  .onboarding-form label:first-child{grid-column:auto}
}
@media(max-width:500px){
  .humm-popup-tile{grid-template-columns:1fr;grid-template-rows:120px 1px auto}
  .humm-popup-character{padding:8px 14px 0;align-items:end}
  .humm-popup-character img{max-height:118px;width:auto}
  .humm-popup-divider{width:100%;height:1px;background:linear-gradient(to right,transparent,rgba(231,207,145,.55),transparent)}
  .humm-popup-content{padding:20px 18px 22px}
  .humm-popup-content .modal-actions{flex-direction:column}
}


/* ===== Crowntopia Early Access 0.1.5 ===== */
.character-portrait-cover{display:grid;place-items:center;min-height:150px;border-radius:14px;background:radial-gradient(circle at 50% 42%,rgba(230,199,116,.10),rgba(7,8,12,.92) 70%);overflow:hidden}
.character-portrait-cover img{width:100%!important;height:100%!important;max-height:220px!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 13px 20px rgba(0,0,0,.38))!important}
.shop-package .buy-gct{display:flex;align-items:center;justify-content:center;gap:9px;clip-path:none!important;border-radius:10px!important}
.shop-package .buy-gct span{font-size:9px;letter-spacing:.08em}.shop-package .buy-gct b{font-size:12px;color:inherit}
.wallet-recent-scroll{max-height:280px;overflow-y:auto;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(205,166,76,.75) rgba(255,255,255,.035)}
.wallet-recent-scroll::-webkit-scrollbar{width:8px}.wallet-recent-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.03);border-radius:999px}.wallet-recent-scroll::-webkit-scrollbar-thumb{background:linear-gradient(#caa54d,#745621);border-radius:999px}
.onboarding-talkative{display:grid;gap:8px!important}.onboarding-talkative span{display:block}.onboarding-modal .humm-popup-content{padding-top:32px}.onboarding-modal .humm-popup-character img{max-height:370px}
.humm-popup-character{overflow:hidden}.humm-popup-character img{object-position:center bottom!important;max-width:100%;transform:translateY(0)}
.humm-popup-content .war-presets button,.humm-popup-content #customWarContribute{min-height:44px}
@media(max-width:760px){.onboarding-talkative{gap:7px!important}.onboarding-modal .humm-popup-character{height:150px!important}.onboarding-modal .humm-popup-character img{max-height:138px!important}.character-portrait-cover{min-height:110px}}


/* ===== Crowntopia 0.1.5a targeted popup/chat fixes ===== */
/* Keep War Table SCT token at utility-icon size inside the HUMM popup. */
.humm-popup-content .contribution-balance{display:flex;align-items:center;gap:12px;margin:14px 0;padding:12px 13px;border-radius:12px;background:rgba(0,0,0,.30);border:1px solid rgba(229,201,128,.16)}
.humm-popup-content .contribution-balance img{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;object-fit:contain!important;flex:0 0 42px!important}
.humm-popup-content .contribution-balance small{display:block;font-size:8px;letter-spacing:.08em;color:#b8b1a2}
.humm-popup-content .contribution-balance b{display:block;margin-top:2px;color:#f1d486;font-size:13px}
.war-contribution-form{display:grid;gap:10px}
.war-contribution-form>p{margin:0;color:#e5e0d5;line-height:1.55}
.humm-popup-content .war-presets{margin-top:2px}
.humm-popup-content .war-presets button.selected{background:linear-gradient(135deg,#d9bd73,#9d7838)!important;color:#0b0905!important;border-color:#ead28f!important}
.war-custom-label{display:grid;gap:7px;margin-top:2px;font-size:9px!important;font-weight:800;letter-spacing:.08em;color:#ded7c8!important}
.war-custom-label input{width:100%;height:44px;border-radius:10px!important;padding:0 12px}

/* These two forms may be taller than the viewport. Keep their action row visible. */
.war-contribution-modal .humm-popup-content,.gct-purchase-modal .humm-popup-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.war-contribution-modal .modal-richtext,.gct-purchase-modal .modal-richtext{min-height:0;overflow-y:auto;padding-right:7px;scrollbar-width:thin;scrollbar-color:rgba(205,166,76,.7) rgba(255,255,255,.03)}
.war-contribution-modal .modal-actions,.gct-purchase-modal .modal-actions{position:relative;flex:0 0 auto;margin-top:14px!important;padding-top:13px;border-top:1px solid rgba(229,201,128,.15);background:linear-gradient(180deg,rgba(8,8,10,0),rgba(8,8,10,.90) 22%)}
.gct-purchase-modal .modal-actions .primary,.war-contribution-modal .modal-actions .primary{min-height:46px;font-weight:900;letter-spacing:.04em}

/* Chat sticker-pack tabs represent the character, not the booster-pack artwork. */
.sticker-library-tabs .sticker-character-tab{height:56px!important;width:100%!important;object-fit:contain!important;object-position:center bottom!important;border-radius:7px;background:radial-gradient(circle at 50% 43%,rgba(228,197,113,.14),rgba(5,7,10,.86) 72%);padding:2px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.34))}

@media(max-width:760px){
 .war-contribution-modal .humm-popup-content,.gct-purchase-modal .humm-popup-content{overflow:auto}
 .war-contribution-modal .modal-richtext,.gct-purchase-modal .modal-richtext{overflow:visible;padding-right:0}
}
\n\n/* ===== Crowntopia 0.1.5b GCT checkout + mobile orientation hotfix ===== */
/* GCT forms: keep HUMM fully visible and keep checkout actions on-screen. */
.gct-purchase-modal .humm-popup-tile{min-height:440px;max-height:min(82vh,700px)}
.gct-purchase-modal .humm-popup-character{align-items:center;justify-content:center;padding:30px 16px 26px;overflow:hidden}
.gct-purchase-modal .humm-popup-character img{width:auto!important;height:auto!important;max-width:92%!important;max-height:300px!important;object-fit:contain!important;object-position:center center!important;transform:none!important}
.gct-purchase-modal .humm-popup-content{min-height:0;overflow:hidden!important}
.gct-purchase-modal .modal-richtext{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding-right:8px!important}
.gct-purchase-modal .modal-actions{display:flex!important;visibility:visible!important;opacity:1!important;position:sticky!important;bottom:0;z-index:5;flex:0 0 auto!important;margin-top:12px!important;padding:14px 0 1px!important;background:linear-gradient(180deg,rgba(5,6,8,0),rgba(5,6,8,.96) 25%)!important}
.gct-purchase-modal .modal-actions button{flex:1 1 180px;min-height:48px!important}
.gct-purchase-modal .purchase-phone-label{margin-top:14px}
.gct-purchase-modal .purchase-phone-label input{height:46px}
.order-submitted-notice .purchase-detail-row:last-of-type b{color:#e9c96c}

/* On phones, Crowntopia is landscape-only. Portrait is intentionally blocked. */
.mobile-landscape-guard{display:none}
@media (orientation:portrait) and (max-width:700px) and (pointer:coarse){
  body{overflow:hidden!important}
  .mobile-landscape-guard{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 50% 32%,rgba(176,139,55,.16),transparent 35%),#07080c;color:#f8efd3;text-align:center}
  .mobile-landscape-guard>div{max-width:330px}
  .mobile-landscape-guard .rotate-device-icon{font-size:62px;line-height:1;color:#d8b75f;filter:drop-shadow(0 0 16px rgba(216,183,95,.22))}
  .mobile-landscape-guard h2{margin:14px 0 8px;font-family:Cinzel,serif;font-size:25px;letter-spacing:.04em}
  .mobile-landscape-guard p{margin:0;color:#bdb7a9;font-size:13px;line-height:1.55}
}

@media(max-width:760px){
 .gct-purchase-modal .humm-popup-tile{max-height:88vh}
 .gct-purchase-modal .humm-popup-character img{max-height:130px!important}
 .gct-purchase-modal .humm-popup-content{overflow:hidden!important}
 .gct-purchase-modal .modal-richtext{overflow-y:auto!important}
 .gct-purchase-modal .modal-actions{flex-direction:row!important}
}

/* ===== Crowntopia 0.1.5c: GCT checkout that cannot clip its action buttons ===== */
.gct-checkout-v2 .gct-checkout-tile{
  height:min(760px,calc(100vh - 36px))!important;
  min-height:min(620px,calc(100vh - 36px))!important;
  max-height:none!important;
  grid-template-columns:minmax(210px,31%) 1px minmax(0,1fr)!important;
}
.gct-checkout-v2 .gct-checkout-character{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:28px 18px!important;
  overflow:hidden!important;
}
.gct-checkout-v2 .gct-checkout-character img{
  width:auto!important;
  height:auto!important;
  max-width:88%!important;
  max-height:285px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.gct-checkout-v2 .gct-checkout-content{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  padding:38px 44px 24px!important;
}
.gct-checkout-v2 .gct-checkout-heading{min-width:0}
.gct-checkout-v2 .gct-checkout-heading h3{
  margin:4px 0 16px!important;
  font-size:clamp(28px,3vw,42px)!important;
}
.gct-checkout-v2 .gct-checkout-scroll{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:9px!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(205,166,76,.78) rgba(255,255,255,.035);
}
.gct-checkout-v2 .gct-checkout-scroll::-webkit-scrollbar{width:8px}
.gct-checkout-v2 .gct-checkout-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.03);border-radius:999px}
.gct-checkout-v2 .gct-checkout-scroll::-webkit-scrollbar-thumb{background:linear-gradient(#d1ad56,#72521d);border-radius:999px}
.gct-checkout-v2 .gct-checkout-actions{
  position:relative!important;
  z-index:20!important;
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin:14px -2px 0!important;
  padding:15px 2px 0!important;
  border-top:1px solid rgba(229,201,128,.20)!important;
  background:#090a0d!important;
}
.gct-checkout-v2 .gct-checkout-actions:has(.gct-primary-action:only-child){grid-template-columns:1fr!important}
.gct-checkout-v2 .gct-checkout-actions button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:50px!important;
  width:100%!important;
  border-radius:10px!important;
  border:1px solid rgba(232,202,122,.24)!important;
  background:rgba(255,255,255,.055)!important;
  color:#f4efe4!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  cursor:pointer!important;
}
.gct-checkout-v2 .gct-checkout-actions .gct-primary-action{
  background:linear-gradient(135deg,#e5c979,#a37d34)!important;
  color:#0a0804!important;
  border-color:#efd891!important;
}
.gct-checkout-v2 .gct-checkout-actions button:disabled{opacity:.6!important;cursor:wait!important}
.gct-checkout-v2 .gct-checkout-notice{padding-bottom:4px}
.gct-checkout-v2 .purchase-phone-label{display:grid!important;gap:8px!important;margin:15px 0 6px!important}
.gct-checkout-v2 .purchase-phone-label input{height:48px!important;font-size:14px!important}
.gct-checkout-v2 .modal-note{display:block!important;margin-top:12px!important;padding-bottom:2px!important}

@media(max-height:700px) and (min-width:761px){
  .gct-checkout-v2 .gct-checkout-tile{height:calc(100vh - 24px)!important;min-height:0!important}
  .gct-checkout-v2 .gct-checkout-content{padding:26px 34px 18px!important}
  .gct-checkout-v2 .gct-checkout-heading h3{font-size:30px!important;margin-bottom:10px!important}
  .gct-checkout-v2 .gct-checkout-character img{max-height:230px!important}
  .gct-checkout-v2 .gct-checkout-actions button{min-height:44px!important}
}

@media(max-width:760px){
  .gct-checkout-v2 .gct-checkout-tile{
    height:calc(100vh - 18px)!important;
    min-height:0!important;
    max-height:none!important;
    grid-template-columns:118px 1px minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
  }
  .gct-checkout-v2 .gct-checkout-character{padding:16px 6px!important}
  .gct-checkout-v2 .gct-checkout-character img{max-height:180px!important;max-width:96%!important}
  .gct-checkout-v2 .gct-checkout-content{padding:24px 18px 14px!important}
  .gct-checkout-v2 .gct-checkout-heading h3{font-size:24px!important;margin-bottom:10px!important}
  .gct-checkout-v2 .gct-checkout-actions{grid-template-columns:1fr 1fr!important;margin-top:9px!important;padding-top:10px!important}
  .gct-checkout-v2 .gct-checkout-actions button{min-height:44px!important;font-size:9px!important}
}

/* ===== Crowntopia Early Access 0.3.0 / Batch 3 production viewport ===== */
html.ct-phone-portrait,html.ct-phone-portrait body{overflow:hidden!important;overscroll-behavior:none}
html.ct-phone-portrait .mobile-landscape-guard{display:grid!important;position:fixed;inset:0;z-index:2147483647;place-items:center;padding:28px;background:radial-gradient(circle at 50% 32%,rgba(176,139,55,.16),transparent 35%),#07080c;color:#f8efd3;text-align:center}
html.ct-phone-portrait .mobile-landscape-guard>div{max-width:340px}
html.ct-phone-portrait .mobile-landscape-guard .rotate-device-icon{font-size:62px;line-height:1;color:#d8b75f;filter:drop-shadow(0 0 16px rgba(216,183,95,.22))}
html.ct-phone-portrait .mobile-landscape-guard h2{margin:14px 0 8px;font-family:Cinzel,serif;font-size:25px;letter-spacing:.04em}
html.ct-phone-portrait .mobile-landscape-guard p{margin:0;color:#bdb7a9;font-size:13px;line-height:1.55}
html.ct-phone-landscape,html.ct-phone-landscape body{min-width:1020px!important;overflow-x:hidden!important}
html.ct-phone-landscape body,html.ct-phone-landscape body.view-vault,html.ct-phone-landscape body.view-hall{background-attachment:scroll!important}
html.ct-phone-landscape .mobile-landscape-guard{display:none!important}
/* The 1020px virtual viewport deliberately keeps the desktop/tablet shell visible on phones. */
html.ct-phone-landscape .mobile-nav{display:none!important}
html.ct-phone-landscape .sidebar{display:flex!important}
html.ct-phone-landscape .app-shell{grid-template-rows:78px minmax(0,1fr)!important}
html.ct-phone-landscape .shell-body{grid-template-columns:238px minmax(0,1fr)!important}
html.ct-phone-landscape .topbar{height:78px!important;padding:0 24px 0 22px!important}
html.ct-phone-landscape .topbar .eyebrow{display:block!important}
html.ct-phone-landscape #viewRoot{padding:18px 18px 90px!important}

/* Batch 3 final: fullscreen phone safe-area handling. */
html.ct-phone-landscape body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
html.ct-phone-landscape.ct-fullscreen body{overscroll-behavior:none;touch-action:manipulation}
html.ct-phone-landscape.ct-fullscreen .app-shell{min-height:100vh;min-height:100dvh}

/* ============================================================
   Crowntopia 0.3.0a — installed-phone UX correction
   One-finger main scrolling, fixed desktop-like shell, compact chat rooms,
   profile action alignment and Vault action visibility.
   ============================================================ */
html.ct-phone-landscape.ct-fullscreen body,
html.ct-phone-landscape body{touch-action:auto!important}

/* Keep the wide 1020px game shell at exactly the available landscape height.
   The sidebar and the main viewport scroll independently, just like desktop. */
html.ct-phone-landscape .app-shell{
  height:100vh!important;
  height:100dvh!important;
  max-height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape .shell-body{
  min-height:0!important;
  height:calc(100dvh - 78px)!important;
  overflow:hidden!important;
}
html.ct-phone-landscape .sidebar{
  position:relative!important;
  top:auto!important;
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y!important;
  overscroll-behavior-y:contain;
}
html.ct-phone-landscape .main{
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y!important;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
}
html.ct-phone-landscape #viewRoot{
  min-height:100%;
  padding:12px 12px 22px!important;
}

/* Profile owner actions must stay on the same row on installed phones. */
html.ct-phone-landscape .profile-overview-row{
  flex-wrap:nowrap!important;
  gap:10px!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
html.ct-phone-landscape .profile-identity-block{flex:1 1 auto!important;min-width:0!important}
html.ct-phone-landscape .profile-actions{
  display:flex!important;
  flex:0 0 auto!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
}
html.ct-phone-landscape .profile-actions .crown-action{
  min-width:126px!important;
  height:38px!important;
  padding:0 12px!important;
  font-size:8px!important;
  white-space:nowrap!important;
}

/* Vault: actions remain real, visible card controls; main one-finger scroll exposes
   the lower rows instead of clipping them beneath the fullscreen viewport. */
html.ct-phone-landscape .character-vault-card .back-actions{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
html.ct-phone-landscape .character-vault-card .back-actions button{min-height:36px!important}

/* Chat on phone landscape: room switching becomes a compact horizontal command
   strip and the actual conversation gets the full main-column width. */
html.ct-phone-landscape .chat-rooms-layout{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:8px!important;
  align-items:stretch!important;
}
html.ct-phone-landscape .chat-room-drawer{
  height:66px!important;
  min-height:66px!important;
  max-height:66px!important;
  padding:6px 8px!important;
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:7px!important;
  overflow:hidden!important;
}
html.ct-phone-landscape .chat-drawer-head{
  margin:0!important;
  padding:4px 6px 0 2px!important;
  border-bottom:0!important;
  align-self:center!important;
}
html.ct-phone-landscape .chat-drawer-head .eyebrow{font-size:6px!important;letter-spacing:.10em!important;margin-bottom:2px!important}
html.ct-phone-landscape .chat-drawer-head h3{font-size:13px!important;line-height:1!important}
html.ct-phone-landscape .chat-drawer-head small{display:none!important}
html.ct-phone-landscape .chat-drawer-list{
  display:flex!important;
  align-items:stretch!important;
  gap:6px!important;
  min-width:0!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0 0 2px!important;
  touch-action:pan-x!important;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
html.ct-phone-landscape .chat-drawer-tile{
  flex:0 0 108px!important;
  width:108px!important;
  height:52px!important;
  min-height:52px!important;
  border-radius:10px!important;
}
html.ct-phone-landscape .chat-drawer-content{left:7px!important;right:7px!important;bottom:5px!important;gap:1px!important}
html.ct-phone-landscape .chat-drawer-title{gap:4px!important}
html.ct-phone-landscape .chat-drawer-title img{width:17px!important;height:17px!important;flex-basis:17px!important}
html.ct-phone-landscape .chat-drawer-title b{font-size:7px!important;line-height:1.08!important}
html.ct-phone-landscape .chat-drawer-content small{display:none!important}
html.ct-phone-landscape .chat-drawer-lock{width:19px!important;height:19px!important;right:5px!important;top:5px!important}
html.ct-phone-landscape .chat-room-main{
  width:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape .chat-room-main .chat-sticky-title{
  min-height:48px!important;
  padding:8px 12px!important;
}
html.ct-phone-landscape .chat-room-main .chat-sticky-title h3{font-size:15px!important}
html.ct-phone-landscape .chat-room-main .chat-sticky-title>small{font-size:8px!important}
html.ct-phone-landscape .chat-room-main .chat-unified-bg{
  height:calc(100dvh - 226px)!important;
  min-height:230px!important;
  max-height:none!important;
}
html.ct-phone-landscape .chat-room-main .chat-feed{
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y!important;
  overscroll-behavior-y:contain;
}
html.ct-phone-landscape .chat-room-main .composer{min-height:48px!important}

/* Touch scrolling for long popup libraries such as Stickers. */
html.ct-phone-landscape .chat-picker-panel,
html.ct-phone-landscape .sticker-library-tabs,
html.ct-phone-landscape .sticker-opening-modal{
  -webkit-overflow-scrolling:touch;
}

/* ============================================================
   Crowntopia 0.4.0 — Batch 4 mobile final UX
   Installed-phone-only forum, immersive Chat Rooms, scroll-safe
   HUMM notices and compact Vault cards. Desktop/tablet unchanged.
   ============================================================ */

/* The forum is blocked in a mobile browser by viewport.js. These rules only
   affect the installed PWA in landscape. */
html.ct-phone-landscape.ct-standalone .mobile-chat-controls,
html.ct-phone-landscape.ct-standalone .mobile-chat-panel-toggle,
html.ct-phone-landscape.ct-standalone .mobile-chat-backdrop{display:none}

/* ----- Immersive Chat Rooms ----- */
html.ct-phone-landscape.ct-standalone body.view-chats .topbar{display:none!important}
html.ct-phone-landscape.ct-standalone body.view-chats .app-shell{
  grid-template-rows:0 minmax(0,1fr)!important;
  height:100dvh!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .shell-body{
  grid-template-columns:minmax(0,1fr)!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .main{
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats #viewRoot{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
}

/* Main Crowntopia controls become a Discord-style slide-in drawer. */
html.ct-phone-landscape.ct-standalone body.view-chats .sidebar{
  display:flex!important;
  position:fixed!important;
  z-index:270!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:238px!important;
  height:100dvh!important;
  max-height:100dvh!important;
  transform:translateX(-100%)!important;
  transition:transform .22s ease!important;
  box-shadow:20px 0 44px rgba(0,0,0,.48)!important;
  border-right:1px solid rgba(231,198,111,.20)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .sidebar{transform:translateX(0)!important}

/* Rooms become a second slide-in sub-panel. */
html.ct-phone-landscape.ct-standalone body.view-chats .chat-rooms-layout{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-drawer{
  position:fixed!important;
  z-index:265!important;
  left:0!important;
  top:0!important;
  bottom:0!important;
  width:272px!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  padding:16px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  transform:translateX(-100%)!important;
  transition:left .22s ease,transform .22s ease!important;
  overflow:hidden!important;
  border-radius:0 18px 18px 0!important;
  background:rgba(12,14,20,.985)!important;
  box-shadow:22px 0 48px rgba(0,0,0,.48)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-rooms-open .chat-room-drawer{transform:translateX(0)!important}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .chat-room-drawer{left:238px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-head{
  display:block!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:5px 7px 10px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-head .eyebrow{font-size:7px!important;margin-bottom:4px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-head h3{font-size:20px!important;line-height:1.15!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-head small{display:block!important;margin-top:3px!important;font-size:8px!important;color:#8f97a4!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-list{
  flex:1 1 auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  align-content:start!important;
  gap:8px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0 3px 10px 0!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-tile{
  width:100%!important;
  height:78px!important;
  min-height:78px!important;
  flex:none!important;
  border-radius:13px!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-content{left:10px!important;right:10px!important;bottom:8px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-title img{width:24px!important;height:24px!important;flex-basis:24px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-title b{font-size:10px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-content small{display:block!important;font-size:7px!important}

/* Chat itself occupies the whole installed-phone display. */
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main{
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:0!important;
  border:0!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main .chat-sticky-title{
  height:54px!important;
  min-height:54px!important;
  padding:8px 18px 8px 48px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main .chat-sticky-title h3{font-size:18px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main .chat-unified-bg{
  height:calc(100dvh - 54px)!important;
  min-height:0!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main .chat-feed{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  padding:13px 18px 12px 46px!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main .composer{
  flex:0 0 auto!important;
  min-height:52px!important;
  padding:7px 10px 7px 46px!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .bubble{max-width:68%!important}

/* Drawer edge controls remain visible while both panels are closed. */
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-controls{display:block!important}
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-panel-toggle{
  position:fixed!important;
  z-index:290!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  width:38px!important;
  height:70px!important;
  padding:0!important;
  border:1px solid rgba(231,198,111,.30)!important;
  border-left:0!important;
  border-radius:0 12px 12px 0!important;
  background:rgba(8,10,14,.94)!important;
  color:#e4c46f!important;
  box-shadow:8px 8px 24px rgba(0,0,0,.28)!important;
  transition:left .22s ease!important;
  writing-mode:vertical-rl!important;
  cursor:pointer!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-panel-toggle span{font-size:6px!important;letter-spacing:.10em!important;font-weight:850!important}
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-panel-toggle b{font-size:20px!important;line-height:1!important}
html.ct-phone-landscape.ct-standalone body.view-chats .control-toggle{left:0!important;top:25%!important}
html.ct-phone-landscape.ct-standalone body.view-chats .rooms-toggle{left:0!important;top:52%!important}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .control-toggle{left:238px!important}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open:not(.mobile-chat-rooms-open) .rooms-toggle{left:238px!important}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-rooms-open:not(.mobile-chat-nav-open) .rooms-toggle{left:272px!important}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open.mobile-chat-rooms-open .rooms-toggle{left:510px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:250!important;
  display:none!important;
  border:0!important;
  background:rgba(0,0,0,.34)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .mobile-chat-backdrop,
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-rooms-open .mobile-chat-backdrop{display:block!important}

/* ----- Mobile HUMM/system notices -----
   Art and heading remain fixed; long content gets its own mini scrollbar and
   action buttons always remain visible at the bottom. */
html.ct-phone-landscape.ct-standalone .modal-shade{padding:8px!important;overflow:hidden!important}
html.ct-phone-landscape.ct-standalone .system-modal{
  width:min(960px,calc(100vw - 16px))!important;
  height:calc(100dvh - 16px)!important;
  max-height:none!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-tile{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  grid-template-columns:minmax(210px,31%) minmax(0,1fr)!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-art{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-art img{max-height:100%!important}
html.ct-phone-landscape.ct-standalone .system-popup-content{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:24px 38px 14px 24px!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content>.eyebrow,
html.ct-phone-landscape.ct-standalone .system-popup-content>h3{flex:0 0 auto!important}
html.ct-phone-landscape.ct-standalone .system-popup-content>h3{font-size:27px!important;margin-bottom:10px!important}
html.ct-phone-landscape.ct-standalone .system-popup-content>.modal-richtext,
html.ct-phone-landscape.ct-standalone .system-popup-content>p{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:9px!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(222,190,111,.76) rgba(255,255,255,.035)!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content>.modal-richtext::-webkit-scrollbar,
html.ct-phone-landscape.ct-standalone .system-popup-content>p::-webkit-scrollbar{width:5px}
html.ct-phone-landscape.ct-standalone .system-popup-content>.modal-richtext::-webkit-scrollbar-thumb,
html.ct-phone-landscape.ct-standalone .system-popup-content>p::-webkit-scrollbar-thumb{background:rgba(222,190,111,.72);border-radius:999px}
html.ct-phone-landscape.ct-standalone .system-popup-content>.modal-richtext::-webkit-scrollbar-track,
html.ct-phone-landscape.ct-standalone .system-popup-content>p::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
html.ct-phone-landscape.ct-standalone .system-popup-content .modal-actions{
  flex:0 0 auto!important;
  margin-top:9px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(231,198,111,.13)!important;
  background:#0f1117!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content .modal-actions button{height:39px!important}

/* ----- Vault card mobile cleanup ----- */
html.ct-phone-landscape.ct-standalone .vault-slide-page{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
html.ct-phone-landscape.ct-standalone .character-vault-card{aspect-ratio:3/4!important;min-height:0!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .flip-face{overflow:hidden!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .card-bottom{padding:7px 7px 8px!important;min-height:62px!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .card-title{font-size:9px!important;line-height:1.15!important;gap:4px!important;white-space:nowrap!important;overflow:hidden!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .card-title img{width:15px!important;height:15px!important;flex:0 0 15px!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .card-title span{overflow:hidden!important;text-overflow:ellipsis!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .card-bottom p{font-size:7px!important;line-height:1.25!important;margin-top:4px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .back-content{height:100%!important;min-height:0!important;padding:8px 8px 7px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .locked-back-copy{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:4px!important;
  padding:0!important;
  text-align:center!important;
}
html.ct-phone-landscape.ct-standalone .character-vault-card .back-lock-icon{width:25px!important;height:25px!important;margin:0 auto!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .contrib-banner{width:126px!important;height:25px!important;margin:0 auto!important;flex:0 0 25px!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .contrib-banner span{font-size:6px!important;letter-spacing:.05em!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .tier-badge{height:34px!important;max-width:84%!important;margin:0 auto!important;flex:0 0 34px!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .flip-back .card-title{width:100%!important;justify-content:center!important;flex:0 0 auto!important}
html.ct-phone-landscape.ct-standalone .character-vault-card .unlock-price-hidden,
html.ct-phone-landscape.ct-standalone .character-vault-card .unlocked-desc{
  width:100%!important;
  margin:2px 0 0!important;
  color:#d7dbe2!important;
  font-size:7px!important;
  line-height:1.25!important;
  text-align:center!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .character-vault-card .back-actions{
  display:block!important;
  flex:0 0 32px!important;
  height:32px!important;
  margin:5px 0 0!important;
  padding:0!important;
  visibility:visible!important;
  opacity:1!important;
}
html.ct-phone-landscape.ct-standalone .character-vault-card .back-actions button{
  width:100%!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 8px!important;
  font-size:8px!important;
  line-height:32px!important;
}

/* ============================================================
   Crowntopia 0.4.1 — Batch 4 final mobile stabilization
   This block intentionally wins over every earlier phone override.
   Desktop/tablet layouts remain unchanged.
   ============================================================ */

/* Universal system-popup content wrapper. On desktop it behaves like normal
   content; installed phones turn it into the single owned scroll surface. */
.system-popup-scroll{min-width:0}

@media (orientation:landscape){
html.ct-phone-landscape.ct-standalone{
  /* --- Chat: real app chrome mounted under body, never clipped by #viewRoot --- */
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-main .chat-sticky-title{
  padding-left:48px!important;
  padding-right:126px!important;
}

/* Main Crowntopia drawer: one persistent edge arrow on the left. */
html.ct-phone-landscape.ct-standalone body.view-chats .control-toggle{
  display:flex!important;
  left:0!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:36px!important;
  height:76px!important;
  writing-mode:vertical-rl!important;
  border-radius:0 12px 12px 0!important;
  border-left:0!important;
  border-right:1px solid rgba(231,198,111,.36)!important;
  z-index:340!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .control-toggle{
  left:238px!important;
}

/* Rooms: top dropdown, one horizontal row, swipe left/right. */
html.ct-phone-landscape.ct-standalone body.view-chats .rooms-toggle{
  display:flex!important;
  position:fixed!important;
  left:auto!important;
  right:max(12px,calc(env(safe-area-inset-right) + 8px))!important;
  top:max(8px,calc(env(safe-area-inset-top) + 5px))!important;
  transform:none!important;
  width:104px!important;
  height:36px!important;
  writing-mode:horizontal-tb!important;
  flex-direction:row!important;
  gap:7px!important;
  border:1px solid rgba(231,198,111,.36)!important;
  border-radius:10px!important;
  background:rgba(8,10,14,.96)!important;
  z-index:340!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .rooms-toggle span{
  font-size:8px!important;
  letter-spacing:.10em!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .rooms-toggle b{
  font-size:17px!important;
  transform:none!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .rooms-toggle,
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-rooms-open .rooms-toggle,
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open.mobile-chat-rooms-open .rooms-toggle{
  left:auto!important;
  right:max(12px,calc(env(safe-area-inset-right) + 8px))!important;
}

html.ct-phone-landscape.ct-standalone body.view-chats .chat-room-drawer{
  position:fixed!important;
  z-index:320!important;
  left:0!important;
  right:0!important;
  top:0!important;
  bottom:auto!important;
  width:100%!important;
  height:116px!important;
  min-height:116px!important;
  max-height:116px!important;
  padding:48px 12px 9px!important;
  border-radius:0 0 18px 18px!important;
  transform:translateY(-105%)!important;
  transition:transform .20s ease!important;
  overflow:hidden!important;
  background:rgba(10,12,18,.992)!important;
  border:0!important;
  border-bottom:1px solid rgba(231,198,111,.24)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.48)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-rooms-open .chat-room-drawer{
  transform:translateY(0)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .chat-room-drawer{
  left:0!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-head{display:none!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-list{
  width:100%!important;
  height:59px!important;
  min-height:59px!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  padding:0 4px 4px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  touch-action:pan-x!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(222,190,111,.72) rgba(255,255,255,.035)!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-list::-webkit-scrollbar{height:4px}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-list::-webkit-scrollbar-thumb{background:rgba(222,190,111,.72);border-radius:99px}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-tile{
  flex:0 0 180px!important;
  width:180px!important;
  height:54px!important;
  min-height:54px!important;
  border-radius:11px!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-content{
  left:8px!important;right:8px!important;bottom:6px!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-title img{
  width:19px!important;height:19px!important;flex-basis:19px!important;
}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-title b{font-size:8px!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-content small{display:none!important}
html.ct-phone-landscape.ct-standalone body.view-chats .chat-drawer-lock{width:18px!important;height:18px!important;right:5px!important;top:5px!important}

/* Backdrop is below the drawer and controls, but above the conversation. */
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-backdrop{z-index:300!important}
html.ct-phone-landscape.ct-standalone body.view-chats .sidebar{z-index:325!important}
html.ct-phone-landscape.ct-standalone body.view-chats .mobile-chat-controls{z-index:340!important}

/* --- Universal HUMM/system notices: exactly one internal scroll surface.
   Header/art/actions stay visible; long content alone scrolls. --- */
html.ct-phone-landscape.ct-standalone .system-modal{
  height:calc(100dvh - 14px)!important;
  max-height:calc(100dvh - 14px)!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-tile{
  height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content{
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:20px 38px 12px 22px!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content>h3{
  font-size:25px!important;
  margin:2px 0 8px!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-scroll{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0 10px 4px 0!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(222,190,111,.80) rgba(255,255,255,.035)!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-scroll::-webkit-scrollbar{width:5px!important}
html.ct-phone-landscape.ct-standalone .system-popup-scroll::-webkit-scrollbar-thumb{background:rgba(222,190,111,.80)!important;border-radius:999px!important}
html.ct-phone-landscape.ct-standalone .system-popup-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.035)!important}
html.ct-phone-landscape.ct-standalone .system-popup-scroll>p,
html.ct-phone-landscape.ct-standalone .system-popup-scroll>.modal-richtext{
  margin-top:0!important;
  min-height:0!important;
  overflow:visible!important;
  padding-right:0!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content .modal-actions{
  align-self:end!important;
  margin-top:7px!important;
  padding-top:8px!important;
  background:#0f1117!important;
  border-top:1px solid rgba(231,198,111,.14)!important;
}
html.ct-phone-landscape.ct-standalone .system-popup-content .modal-actions button{height:38px!important}

/* --- Sticker pack reveal: no scrolling. The entire reveal/claim sequence is
   sized to the installed-phone landscape viewport. --- */
html.ct-phone-landscape.ct-standalone .sticker-opening-modal{
  width:min(760px,calc(100vw - 22px))!important;
  height:calc(100dvh - 12px)!important;
  max-height:calc(100dvh - 12px)!important;
  overflow:hidden!important;
  padding:0!important;
}
html.ct-phone-landscape.ct-standalone .sticker-opening-shell{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  padding:9px 16px 9px!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  justify-items:center!important;
}
html.ct-phone-landscape.ct-standalone .sticker-opening-x{
  right:10px!important;top:10px!important;width:34px!important;height:34px!important;font-size:20px!important;
}
html.ct-phone-landscape.ct-standalone .sticker-opening-head .eyebrow{font-size:7px!important;margin-bottom:2px!important}
html.ct-phone-landscape.ct-standalone .sticker-opening-head h3{font-size:20px!important;line-height:1.05!important;margin:1px 0 2px!important}
html.ct-phone-landscape.ct-standalone .sticker-opening-head small{font-size:8px!important}
html.ct-phone-landscape.ct-standalone .sticker-reveal-stage{
  width:min(250px,29vw)!important;
  height:100%!important;
  max-height:300px!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  margin:2px auto!important;
}
html.ct-phone-landscape.ct-standalone .sticker-stack-card,
html.ct-phone-landscape.ct-standalone .sticker-reveal-card{
  width:78%!important;
  height:92%!important;
  border-radius:16px!important;
}
html.ct-phone-landscape.ct-standalone .sticker-reveal-tile{padding:10px!important}
html.ct-phone-landscape.ct-standalone .sticker-reveal-hint{
  margin:2px 0 0!important;
  font-size:8px!important;
  line-height:1.25!important;
}
html.ct-phone-landscape.ct-standalone .sticker-opening-shell.complete{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
}
html.ct-phone-landscape.ct-standalone .sticker-claim-grid{
  width:min(720px,94%)!important;
  height:auto!important;
  max-height:250px!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:6px!important;
  margin:6px auto!important;
  align-self:center!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .sticker-claim-tile{
  min-width:0!important;
  padding:5px!important;
  border-radius:10px!important;
}
html.ct-phone-landscape.ct-standalone .sticker-claim-btn{
  min-width:190px!important;
  height:38px!important;
  margin:3px auto 0!important;
}
}

@media (orientation:landscape){
/* Batch 4.1: real persistent HUMM notices use this class. It is intentionally
   separate from onboarding and the deterministic GCT checkout modal. */
html.ct-phone-landscape.ct-standalone .humm-popup-content.humm-scroll-layout{
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:20px 32px 12px 22px!important;
}
html.ct-phone-landscape.ct-standalone .humm-popup-content.humm-scroll-layout>h3{
  margin:2px 0 8px!important;
  font-size:25px!important;
  line-height:1.06!important;
}
html.ct-phone-landscape.ct-standalone .humm-popup-scroll{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0 9px 4px 0!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(222,190,111,.82) rgba(255,255,255,.035)!important;
}
html.ct-phone-landscape.ct-standalone .humm-popup-scroll::-webkit-scrollbar{width:5px!important}
html.ct-phone-landscape.ct-standalone .humm-popup-scroll::-webkit-scrollbar-thumb{background:rgba(222,190,111,.82)!important;border-radius:999px!important}
html.ct-phone-landscape.ct-standalone .humm-popup-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.035)!important}
html.ct-phone-landscape.ct-standalone .humm-popup-scroll>.modal-richtext,
html.ct-phone-landscape.ct-standalone .humm-popup-scroll>.humm-speech{
  min-height:0!important;
  overflow:visible!important;
  margin-top:0!important;
  padding-right:0!important;
}
html.ct-phone-landscape.ct-standalone .humm-popup-content.humm-scroll-layout>.modal-actions{
  flex:0 0 auto!important;
  margin-top:7px!important;
  padding-top:8px!important;
  border-top:1px solid rgba(229,201,128,.14)!important;
  background:linear-gradient(180deg,rgba(8,8,10,0),rgba(8,8,10,.92) 28%)!important;
}
html.ct-phone-landscape.ct-standalone .humm-popup-content.humm-scroll-layout>.modal-actions button{
  min-height:38px!important;
  height:38px!important;
}
}


/* ============================================================
   Crowntopia 0.4.2 — Batch 4 final stabilization fix
   Final phone popup sizing + desktop chat-control isolation.
   ============================================================ */

/* Mobile chat drawer controls must never render as raw desktop buttons.
   Installed-phone rules below/above explicitly opt them back in. */
.mobile-chat-controls,.mobile-chat-panel-toggle,.mobile-chat-backdrop{display:none}

@media (orientation:landscape){
/* Every HUMM notice on the installed phone owns the viewport instead of
   inheriting the desktop tile's 390px minimum height. This keeps the footer
   action row physically inside the screen. */
html.ct-phone-landscape.ct-standalone .humm-modal{
  width:min(950px,calc(100vw - 16px))!important;
  height:calc(100dvh - 16px)!important;
  max-height:calc(100dvh - 16px)!important;
  padding:0!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-tile{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  grid-template-columns:minmax(150px,23%) 1px minmax(0,1fr)!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-character{
  min-height:0!important;
  height:100%!important;
  padding:12px 4px 8px!important;
  align-items:flex-end!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-character img{
  width:100%!important;
  height:auto!important;
  max-height:calc(100dvh - 30px)!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-content.humm-scroll-layout{
  height:100%!important;
  min-height:0!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  overflow:hidden!important;
}
html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-scroll{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
html.ct-phone-landscape.ct-standalone .humm-modal .modal-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  flex:0 0 auto!important;
  min-height:42px!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:12!important;
}

/* War Table contribution: compact the form and permanently reserve a footer
   row for CANCEL / REVIEW CONTRIBUTION. */
html.ct-phone-landscape.ct-standalone .war-contribution-modal .humm-popup-tile{
  grid-template-columns:145px 1px minmax(0,1fr)!important;
}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .humm-popup-content.humm-scroll-layout{
  padding:12px 28px 9px 16px!important;
  grid-template-rows:auto auto minmax(0,1fr) 44px!important;
}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .humm-popup-content>h3{
  font-size:21px!important;
  margin:1px 0 5px!important;
}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .humm-id{font-size:7px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .war-contribution-form{gap:5px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .war-contribution-form>p{font-size:9px!important;line-height:1.35!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .contribution-balance{
  margin:4px 0!important;padding:6px 8px!important;gap:8px!important;
}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .contribution-balance img{
  width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;flex-basis:28px!important;
}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .war-presets{gap:5px!important;margin-top:1px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .war-presets button{min-height:32px!important;height:32px!important;font-size:8px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .war-custom-label{gap:3px!important;margin-top:0!important;font-size:7px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .war-custom-label input{height:34px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .modal-note{font-size:7px!important;line-height:1.25!important;margin-top:1px!important}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .modal-actions{
  align-self:stretch!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:6px 0 0!important;
  background:#0f1117!important;
  border-top:1px solid rgba(229,201,128,.15)!important;
}
html.ct-phone-landscape.ct-standalone .war-contribution-modal .modal-actions button{
  min-height:36px!important;height:36px!important;font-size:8px!important;
}

/* Mood selector is a deliberately compact no-scroll chooser: seven moods fit
   into two rows inside the landscape phone viewport. */
html.ct-phone-landscape.ct-standalone .mood-selection-modal{
  width:min(800px,calc(100vw - 28px))!important;
  height:min(310px,calc(100dvh - 22px))!important;
  max-height:calc(100dvh - 22px)!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-tile{
  grid-template-columns:125px 1px minmax(0,1fr)!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-character{padding:8px 2px 6px!important}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-character img{max-height:245px!important}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-content.humm-scroll-layout{
  padding:12px 28px 9px 14px!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-content>h3{
  font-size:20px!important;margin:1px 0 4px!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-id{font-size:7px!important}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-scroll{
  overflow:hidden!important;padding:0!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .mood-picker-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:5px!important;
  margin-top:2px!important;
  align-content:center!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .mood-choice{
  min-height:0!important;
  padding:4px!important;
  gap:2px!important;
  border-radius:9px!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .mood-choice img{
  width:52px!important;height:52px!important;aspect-ratio:1/1!important;
  margin:0 auto!important;border-radius:7px!important;
}
html.ct-phone-landscape.ct-standalone .mood-selection-modal .mood-choice span{font-size:7px!important;line-height:1.05!important}
}


/* ===== V1.1 Batch 1: Maintenance Gate ===== */
.ct-maintenance-gate{position:fixed;inset:0;z-index:100000;background:radial-gradient(circle at 50% 30%,rgba(121,91,32,.17),transparent 42%),#08090c;overflow:auto;color:#f3eee3}
.ct-maintenance-shell{min-height:100%;display:grid;place-items:center;padding:34px 18px;box-sizing:border-box}
.ct-maintenance-logo{position:absolute;top:28px;left:34px;width:min(230px,28vw);height:auto}
.ct-maintenance-card{width:min(920px,94vw);min-height:430px;display:grid;grid-template-columns:minmax(230px,35%) 1px minmax(0,1fr);align-items:stretch;background:rgba(15,16,20,.96);border:1px solid rgba(214,179,87,.34);border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.5);overflow:hidden}
.ct-maintenance-humm{display:grid;place-items:center;padding:30px;overflow:hidden}
.ct-maintenance-humm img{width:min(270px,100%);max-height:360px;object-fit:contain}
.ct-maintenance-divider{background:linear-gradient(transparent,rgba(215,184,102,.7),transparent);margin:28px 0}
.ct-maintenance-copy{padding:56px 48px;display:flex;flex-direction:column;justify-content:center;gap:14px;min-width:0}
.ct-maintenance-copy h1{font-family:Cinzel,serif;font-size:clamp(27px,4vw,46px);line-height:1.05;margin:0;color:#fff6df}
.ct-maintenance-copy p{margin:0;color:#d9d7d2;line-height:1.65;font-size:15px}
.ct-maintenance-copy strong{color:#e8c970}.ct-maintenance-copy small{color:#9198a3}.ct-maintenance-copy button{align-self:flex-start;margin-top:8px}
@media(max-width:720px){.ct-maintenance-logo{position:static;width:180px;margin:0 auto 20px}.ct-maintenance-shell{display:flex;flex-direction:column;justify-content:center}.ct-maintenance-card{grid-template-columns:1fr;min-height:0}.ct-maintenance-divider{height:1px;margin:0 28px;background:linear-gradient(90deg,transparent,rgba(215,184,102,.7),transparent)}.ct-maintenance-humm{padding:22px 22px 0}.ct-maintenance-humm img{height:180px}.ct-maintenance-copy{padding:28px 24px 34px}}



/* ===== Crowntopia V1.1 Batch 2 ===== */
.v11-profile-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.v11-profile-tabs button{min-width:0}
.profile-avatar-wrap.public-profile-trigger{border:0;padding:0;background:none;cursor:pointer}
.profile-avatar-wrap.public-profile-trigger:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}
.avatar-option-grid{align-items:stretch}
.avatar-option{position:relative;overflow:hidden}
.avatar-option .avatar-option-art{display:grid;place-items:center;aspect-ratio:1/1;width:100%;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.025)}
.avatar-option .avatar-option-art>img{width:100%;height:100%;object-fit:cover}
.avatar-option.selected{border-color:#e5c66f!important;box-shadow:0 0 0 2px rgba(229,198,111,.30),0 0 24px rgba(229,198,111,.15)}
.avatar-option.locked{opacity:1!important;cursor:not-allowed}
.avatar-option.locked .avatar-option-art>img{filter:none!important}
.avatar-option.locked small{color:#9d8b5c}
.avatar-locked-blank{display:grid;place-items:center;width:100%;height:100%;border-radius:12px;background:linear-gradient(180deg,rgba(17,21,29,.78),rgba(8,10,15,.96));border:1px dashed rgba(229,198,111,.18)}
.avatar-locked-blank img{width:28px!important;height:28px!important;object-fit:contain;opacity:.92}
.profile-honor-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-honor-badge{display:block;width:auto;object-fit:contain}
.profile-name-line .profile-honor-badge.is-founding{width:82px;height:auto}
.profile-name-line .profile-honor-badge.is-early-access{width:68px;height:auto}
.featured-achievement-row{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch;margin-top:12px}
.featured-achievement-chip{width:108px;min-height:128px;border:1px solid rgba(229,198,111,.22);background:rgba(255,255,255,.025);border-radius:14px;padding:9px;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.featured-achievement-chip img{width:74px;height:74px;object-fit:contain;display:block;margin:auto}
.featured-achievement-chip span{display:flex;align-items:center;justify-content:center;width:100%;min-height:28px;font-size:9px;font-weight:800;margin-top:6px;line-height:1.25;text-align:center}
.achievement-empty-featured{padding:18px;border:1px dashed rgba(255,255,255,.12);border-radius:12px;color:#8f97a4;font-size:11px;width:100%}
.achievement-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.achievement-section-head h3{font-family:Cinzel,serif;margin:3px 0}
.achievement-section-head p:not(.eyebrow){font-size:10px;color:#8d95a1;max-width:600px}
.achievement-section-head>span{font-size:10px;color:#d8bb73;white-space:nowrap}
.achievement-grid-scroll{height:500px;overflow-y:auto;padding-right:5px}
.achievement-grid-scroll::-webkit-scrollbar{width:5px}.achievement-grid-scroll::-webkit-scrollbar-thumb{background:rgba(222,188,101,.55);border-radius:999px}
.achievement-grid-v11{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.achievement-tile-v11{min-height:90px;display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:10px;text-align:left;padding:9px;border-radius:14px;border:1px solid rgba(255,255,255,.07);background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.012));color:#fff;cursor:pointer;position:relative}
.achievement-tile-v11.owned{border-color:rgba(222,188,101,.34);background:linear-gradient(145deg,rgba(222,188,101,.07),rgba(255,255,255,.018))}
.achievement-tile-v11.featured{box-shadow:inset 3px 0 0 #d8b958}
.achievement-art-v11{width:72px;height:72px;display:grid;place-items:center}
.achievement-art-v11 img{width:100%;height:100%;object-fit:contain}
.achievement-copy-v11{min-width:0}
.achievement-copy-v11 b{display:block;font-family:Cinzel,serif;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.achievement-copy-v11 small{display:block;color:#8f97a4;font-size:8px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.achievement-copy-v11 em{display:inline-block;margin-top:5px;font-style:normal;font-size:7px;font-weight:900;color:#e5c66f;letter-spacing:.08em}
.achievement-progress-track{display:block;height:4px;border-radius:999px;background:rgba(255,255,255,.08);margin-top:7px;overflow:hidden}
.achievement-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#aa7c27,#f2d981);border-radius:inherit}
.achievement-humm-detail{text-align:left}
.achievement-humm-badge{display:block;width:135px;height:135px;object-fit:contain;margin:0 auto 8px}
.achievement-humm-status{text-align:center;font-size:9px;font-weight:900;letter-spacing:.1em;margin-bottom:12px}
.achievement-humm-status.owned{color:#e5c66f}.achievement-humm-status.locked{color:#888f9a}
.achievement-humm-progress{height:7px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin:10px 0}
.achievement-humm-progress i{display:block;height:100%;background:linear-gradient(90deg,#9e7629,#f2d67d)}
.achievement-humm-detail .ex-humm-stat{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);font-size:10px}
.ct-public-profile-modal{width:min(820px,92vw)!important;max-height:min(760px,90vh)!important;overflow:auto!important;padding:0!important;position:relative}
.ct-public-profile-close{position:absolute;right:14px;top:14px;z-index:8}
.ct-public-banner{height:185px;position:relative;overflow:hidden;border-radius:18px 18px 0 0}
.ct-public-banner>img{width:100%;height:100%;object-fit:cover}
.ct-public-banner>span{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,5,9,.08),rgba(4,5,9,.75))}
.ct-public-identity{display:flex;align-items:flex-end;gap:14px;margin:-55px 22px 0;position:relative;z-index:3}
.ct-public-avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;border:4px solid #e6cb82;background:#101319}
.ct-public-name-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ct-public-name-line h2{font-family:Cinzel,serif;font-size:25px}
.ct-public-identity p{color:#c1c7d0;font-size:11px;margin-top:3px}
.ct-public-body{padding:18px 22px 22px}
.ct-public-bio{padding:12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(255,255,255,.02)}
.ct-public-bio>p:last-child{font-size:11px;line-height:1.5;margin-top:5px}
.ct-public-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.ct-public-stats .profile-stat-item{padding:10px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:rgba(255,255,255,.02)}
.ct-public-section{margin-top:14px}
.ct-public-featured{display:flex;gap:9px;flex-wrap:wrap;margin-top:8px}
.public-featured-badge{width:104px;padding:8px;text-align:center;border:1px solid rgba(229,198,111,.2);border-radius:12px;background:rgba(255,255,255,.02)}
.public-featured-badge img{width:70px;height:70px;object-fit:contain}.public-featured-badge span{display:block;font-size:8px;font-weight:800;margin-top:4px}
.ct-public-name-line .profile-honor-badges{gap:6px}
.ct-public-name-line .profile-honor-badge.is-founding{width:72px;height:auto}
.ct-public-name-line .profile-honor-badge.is-early-access{width:58px;height:auto}
.v11-rank-table .rank-row.head>div{grid-row:1}
.v11-rank-table .v11-rank-rank{grid-area:rank}
.v11-rank-table .v11-rank-player{grid-area:player}
.v11-rank-table .v11-rank-faction{grid-area:faction}
.v11-rank-table .v11-rank-crowns{grid-area:crowns}
.v11-rank-table .v11-rank-achievements{grid-area:achievements}
.v11-rank-table .v11-rank-titles{grid-area:titles}
.v11-rank-table .v11-rank-contribution{grid-area:contribution}
.v11-rank-table .v11-rank-total{grid-area:total}
.v11-rank-table .rank-row>div{min-width:0}
.v11-rank-table .rank-row.head>div{font-weight:900}
.v11-rank-table .rank-row .v11-rank-rank,.v11-rank-table .rank-row .v11-rank-crowns,.v11-rank-table .rank-row .v11-rank-achievements,.v11-rank-table .rank-row .v11-rank-titles,.v11-rank-table .rank-row .v11-rank-contribution,.v11-rank-table .rank-row .v11-rank-total{justify-content:center!important;text-align:center}
.v11-rank-table .rank-row .v11-rank-total{font-weight:900}
.v11-rank-table .rank-row.head .v11-rank-total,.v11-rank-table .rank-row.head .v11-rank-contribution{line-height:1.2}
.public-featured-empty{color:#858d99;font-size:10px;padding:9px}
.rank-avatar-button,.rank-inline-avatar{border:0;background:none;padding:0;cursor:pointer}
.rank-inline-avatar img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.rank-player-cell{display:flex!important;align-items:center;justify-content:center;gap:8px}.rank-player-cell span{min-width:0}.rank-player-cell small{display:block;font-size:8px;color:#858d99;margin-top:2px}
.v11-rank-table .rank-row{display:grid;grid-template-columns:72px minmax(260px,2.1fr) minmax(170px,1.15fr) 110px 110px 95px 135px 110px;min-width:0;width:100%}
.msg-avatar.ct-avatar-image{background-size:cover!important;background-position:center!important;border:1px solid rgba(255,255,255,.12);cursor:pointer}
.podium-card[data-public-user]{cursor:pointer}

@media(max-width:760px){
 .v11-profile-tabs{display:flex!important;overflow-x:auto;gap:4px}.v11-profile-tabs button{flex:0 0 auto;padding-inline:10px}
 .achievement-grid-scroll{height:470px}.achievement-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .achievement-tile-v11{grid-template-columns:58px minmax(0,1fr);min-height:78px;padding:7px}.achievement-art-v11{width:56px;height:56px}
 .achievement-copy-v11 b{font-size:9px}.achievement-copy-v11 small{font-size:7px}
 .ct-public-profile-modal{width:94vw!important;max-height:88vh!important}.ct-public-banner{height:145px}.ct-public-identity{margin:-42px 14px 0}.ct-public-avatar{width:84px;height:84px}.ct-public-body{padding:14px}.ct-public-stats{grid-template-columns:repeat(2,1fr)}
 .v11-rank-table{overflow:visible!important;background:transparent!important;border:0!important}.v11-rank-table .rank-row.head{display:none}
 .v11-rank-table .v11-rank-row{display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;margin-bottom:10px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(10,12,18,.78);text-align:left}
 .v11-rank-table .v11-rank-row>div{display:flex!important;align-items:center;justify-content:space-between!important;gap:8px;padding:6px 4px;border:0!important;font-size:10px}
 .v11-rank-table .v11-rank-row>div::before{content:attr(data-label);font-size:7px;color:#8e96a3;text-transform:uppercase;letter-spacing:.06em}
 .v11-rank-table .v11-rank-row .rank-player-cell{grid-column:1/-1;justify-content:flex-start!important}
 .v11-rank-table .v11-rank-row .rank-player-cell::before{display:none}
.v11-rank-table .v11-rank-row .v11-rank-total{grid-column:1/-1;font-size:11px;font-weight:900}
 .podium{gap:8px}.podium-card{min-height:245px}
}
@media(max-width:430px){
 .achievement-grid-v11{grid-template-columns:1fr}
 .achievement-grid-scroll{height:440px}
 .ct-public-stats{grid-template-columns:1fr 1fr}
}

/* ===== Batch 2 FINAL visual correction: featured achievement alignment + rankings ===== */
/* Keep achievement artwork and its title on the exact same horizontal centerline. */
.featured-achievement-chip{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.featured-achievement-chip>img{
  display:block!important;
  flex:0 0 auto!important;
  width:74px!important;
  height:74px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto 6px!important;
}
.featured-achievement-chip>span{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:28px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.ct-public-featured .public-featured-badge{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.ct-public-featured .public-featured-badge>img{
  display:block!important;
  width:70px!important;
  height:70px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto 5px!important;
}
.ct-public-featured .public-featured-badge>span{
  box-sizing:border-box!important;
  width:100%!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

/* Desktop rankings: use one explicit eight-column grid for BOTH header and rows.
   This intentionally overrides all older 7-column ranking rules. */
@media (min-width:761px){
  .v11-rank-table{
    width:100%!important;
    overflow:hidden!important;
  }
  .v11-rank-table .rank-row,
  .v11-rank-table .rank-row.head,
  .v11-rank-table .v11-rank-row{
    display:grid!important;
    grid-template-columns:72px minmax(260px,2.15fr) minmax(160px,1.15fr) 105px 115px 95px 135px 110px!important;
    grid-template-areas:none!important;
    min-width:0!important;
    width:100%!important;
    align-items:stretch!important;
    text-align:center!important;
  }
  .v11-rank-table .rank-row>div,
  .v11-rank-table .rank-row.head>div,
  .v11-rank-table .v11-rank-row>div{
    grid-area:auto!important;
    grid-row:auto!important;
    grid-column:auto!important;
    min-width:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:12px 10px!important;
    border-right:1px solid rgba(255,255,255,.055)!important;
    border-bottom:1px solid rgba(255,255,255,.055)!important;
  }
  .v11-rank-table .rank-row>div:last-child,
  .v11-rank-table .rank-row.head>div:last-child,
  .v11-rank-table .v11-rank-row>div:last-child{
    border-right:0!important;
  }
  .v11-rank-table .rank-player-cell{
    justify-content:flex-start!important;
    gap:10px!important;
    text-align:left!important;
  }
  .v11-rank-table .faction-cell{
    justify-content:center!important;
  }
  .v11-rank-table .v11-rank-rank,
  .v11-rank-table .v11-rank-crowns,
  .v11-rank-table .v11-rank-achievements,
  .v11-rank-table .v11-rank-titles,
  .v11-rank-table .v11-rank-contribution,
  .v11-rank-table .v11-rank-total{
    justify-content:center!important;
    text-align:center!important;
  }
  .v11-rank-table .v11-rank-total{
    font-weight:900!important;
  }
}


/* ===== Batch 2 final mini-fix: ranking Player details only =====
   Keep the Player column heading centered, but left-align player avatar/name/callsign
   inside every data row. */
.v11-rank-table .rank-row.head .v11-rank-player{
  justify-content:center!important;
  text-align:center!important;
}
.v11-rank-table .v11-rank-row .rank-player-cell,
.v11-rank-table .v11-rank-row .v11-rank-player{
  justify-content:flex-start!important;
  text-align:left!important;
  padding-left:18px!important;
}
.v11-rank-table .v11-rank-row .rank-player-cell>span,
.v11-rank-table .v11-rank-row .v11-rank-player>span{
  text-align:left!important;
  margin:0!important;
}
.v11-rank-table .v11-rank-row .rank-inline-avatar{
  margin:0!important;
  flex:0 0 auto!important;
}

/* ===== Crowntopia V1.1 Batch 3 — Vault + Marketplace ===== */
.view-marketplace #viewRoot{max-width:1600px;margin:0 auto}
.marketplace-page{display:grid;gap:14px}
.marketplace-hero{position:relative;min-height:310px;border-radius:22px;overflow:hidden;border:1px solid rgba(232,199,113,.18);background:#0a0c12}
.marketplace-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.marketplace-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,7,11,.88) 0%,rgba(5,7,11,.58) 42%,rgba(5,7,11,.14) 74%),linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.58))}
.marketplace-hero-copy{position:absolute;left:28px;bottom:26px;max-width:610px;z-index:2}
.marketplace-hero-copy h2{font-family:Cinzel,serif;font-size:34px;margin:3px 0 8px}
.marketplace-hero-copy p{font-size:12px;line-height:1.6;color:#d8dde5}
.marketplace-hero-copy small{display:inline-block;margin-top:12px;padding:6px 9px;border-radius:999px;background:rgba(229,198,111,.09);border:1px solid rgba(229,198,111,.18);color:#e5c66f;font-size:8px;font-weight:900;letter-spacing:.08em}
.marketplace-panel{padding:18px}
.marketplace-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02);border-radius:14px}
.marketplace-tabs button{height:42px;border:0;border-radius:10px;background:transparent;color:#89919e;font-size:9px;font-weight:900;letter-spacing:.12em;cursor:pointer}
.marketplace-tabs button.active{color:#171108;background:linear-gradient(180deg,#f0d47d,#b98a2d);box-shadow:0 7px 18px rgba(0,0,0,.24)}
.marketplace-copy{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:18px 2px 10px}
.marketplace-copy h3{font-family:Cinzel,serif;font-size:21px;margin:3px 0 5px}
.marketplace-copy p:not(.eyebrow){font-size:10px;color:#929aa7;line-height:1.55;max-width:700px}
.marketplace-price-key{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;border:1px solid rgba(229,198,111,.16);background:rgba(229,198,111,.045);white-space:nowrap}
.marketplace-price-key img{width:28px;height:28px;object-fit:contain}.marketplace-price-key b{font-size:12px;color:#e7cb82}
.marketplace-filters{margin-top:12px}
.marketplace-pack-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:18px 14px;margin-top:18px;align-items:start}
.marketplace-pack-card{width:100%}
.marketplace-pack-card .sticker-pack-art{aspect-ratio:2/3;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.018)}
.marketplace-pack-card .sticker-pack-art>img:first-child{object-fit:contain;padding:2px}
.marketplace-pack-card.faction-glow-mystery .sticker-pack-art{box-shadow:0 0 0 1px rgba(227,190,87,.19),0 10px 30px rgba(0,0,0,.24)}
.marketplace-pack-card.faction-glow-mystery:hover .sticker-pack-art{box-shadow:0 0 0 1px rgba(239,205,109,.42),0 0 28px rgba(213,172,67,.18)}
.color-gold{color:#e5c66f!important}
.marketplace-pack-detail .sticker-detail-cover img{object-fit:contain;border-radius:14px;background:rgba(255,255,255,.02)}
.marketplace-requirements{display:grid;gap:7px;margin-top:12px}
.marketplace-requirement{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 9px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:rgba(255,255,255,.018)}
.marketplace-requirement>img{width:24px;height:24px;object-fit:contain}
.marketplace-requirement small{display:block;color:#7f8794;font-size:7px;letter-spacing:.07em}.marketplace-requirement b{display:block;font-size:9px;margin-top:2px}
.marketplace-requirement em{font-size:7px;font-style:normal;font-weight:900;letter-spacing:.08em}.marketplace-requirement.met em{color:#8ce0ae}.marketplace-requirement.blocked em{color:#aa9560}
.sticker-opening-shell.faction-mystery{background:radial-gradient(circle at 50% 42%,rgba(228,191,83,.22),rgba(15,11,6,.98) 59%);border-color:rgba(235,205,119,.4)}
.sticker-library-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.sticker-library-head-actions>span{font-size:9px;color:#d5bd79}
.marketplace-empty-library{display:grid;place-items:center;text-align:center;gap:7px;min-height:260px;margin-top:15px;border:1px dashed rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.015);padding:20px}.marketplace-empty-library>img{width:46px;opacity:.75}.marketplace-empty-library h3{font-family:Cinzel,serif}.marketplace-empty-library p{font-size:10px;color:#8c94a0}.marketplace-empty-library .primary-btn{margin-top:5px}
.vault-marketplace-shortcut{white-space:nowrap}

@media(max-width:1100px){.marketplace-pack-grid{grid-template-columns:repeat(4,minmax(110px,1fr))}.marketplace-hero{min-height:270px}}
@media(max-width:760px){
 .marketplace-hero{min-height:230px;border-radius:16px}.marketplace-hero-copy{left:16px;right:16px;bottom:16px}.marketplace-hero-copy h2{font-size:25px}.marketplace-hero-copy p{font-size:10px}
 .marketplace-panel{padding:12px}.marketplace-copy{align-items:flex-start;flex-direction:column}.marketplace-price-key{align-self:flex-start}.marketplace-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.marketplace-tabs button{font-size:8px}
 .marketplace-pack-card .sticker-pack-copy b{font-size:8px}.marketplace-pack-card .sticker-pack-copy small{font-size:6px}.sticker-library-head-actions{justify-content:flex-start}
 .marketplace-pack-detail{grid-template-columns:100px minmax(0,1fr);gap:12px}.marketplace-requirement{grid-template-columns:24px minmax(0,1fr);}.marketplace-requirement em{grid-column:2}
 .vault-stage-controls{flex-wrap:wrap}.vault-marketplace-shortcut{order:3;width:100%;text-align:right}
}


/* ===== Batch 3 correction: additive packs + compact Marketplace cards ===== */
.marketplace-pack-grid,
.sticker-pack-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(96px,118px))!important;
  justify-content:start!important;
  align-items:start!important;
  gap:14px 12px!important;
}
.marketplace-pack-card,
.sticker-pack-grid .sticker-pack-mini{
  width:100%!important;
  max-width:118px!important;
}
.marketplace-pack-card .sticker-pack-art,
.sticker-pack-grid .sticker-pack-art{
  aspect-ratio:2/3!important;
  border-radius:10px!important;
}
.marketplace-pack-card .sticker-pack-copy,
.sticker-pack-grid .sticker-pack-copy{gap:2px!important}
.sticker-pack-edition{
  display:block;
  font-style:normal;
  font-size:5.8px;
  line-height:1.15;
  letter-spacing:.09em;
  color:#aeb4bf;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.marketplace-pack-card .sticker-pack-copy b,
.sticker-pack-grid .sticker-pack-copy b{font-size:7.5px!important}
.marketplace-pack-card .sticker-pack-copy small,
.sticker-pack-grid .sticker-pack-copy small{font-size:5.8px!important;line-height:1.25}
@media(max-width:760px){
  .marketplace-pack-grid,
  .sticker-pack-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px 8px!important;
  }
  .marketplace-pack-card,
  .sticker-pack-grid .sticker-pack-mini{max-width:108px!important}
}


/* ============================================================
   Crowntopia V1.1 — Batch 9 FINAL consolidated corrections
   ============================================================ */

/* Owner portrait is informational; Mood is the deliberate control. */
.owner-avatar-wrap{border:0;padding:0;background:none;cursor:default}
.owner-avatar-wrap .mood{cursor:pointer;z-index:4}
.owner-avatar-wrap .mood:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}

/* Achievement identity: every achievement keeps its own artwork while locked.
   Locking dims the real badge and overlays the canonical Crowntopia lock. */
.achievement-art-v11,.achievement-humm-badge-wrap{position:relative;isolation:isolate}
.achievement-badge-core{transition:filter .24s ease,opacity .24s ease,transform .24s ease}
.achievement-art-v11.is-locked .achievement-badge-core,
.achievement-humm-badge-wrap.is-locked .achievement-badge-core{filter:grayscale(.58) brightness(.42) saturate(.62);opacity:.48}
.achievement-art-v11.is-unlocked .achievement-badge-core,
.achievement-humm-badge-wrap.is-unlocked .achievement-badge-core{filter:drop-shadow(0 0 8px rgba(239,205,112,.34)) drop-shadow(0 0 20px rgba(239,205,112,.16));opacity:1}
.achievement-tile-v11.owned:hover .achievement-badge-core{filter:drop-shadow(0 0 10px rgba(244,214,127,.48)) drop-shadow(0 0 25px rgba(239,205,112,.22));transform:scale(1.025)}
.achievement-lock-mark{position:absolute;left:50%;top:50%;z-index:3;display:grid;place-items:center;width:34px;height:34px;transform:translate(-50%,-50%);border-radius:50%;background:rgba(7,9,13,.80);border:1px solid rgba(231,199,111,.35);box-shadow:0 8px 22px rgba(0,0,0,.45)}
.achievement-lock-mark img{width:19px!important;height:19px!important;object-fit:contain!important;opacity:.96!important;filter:none!important}
.achievement-humm-badge-wrap{display:grid;place-items:center;width:135px;height:135px;margin:0 auto 8px}
.achievement-humm-badge-wrap .achievement-humm-badge{width:135px;height:135px;margin:0;object-fit:contain}
.achievement-humm-badge-wrap .achievement-lock-mark{width:42px;height:42px}.achievement-humm-badge-wrap .achievement-lock-mark img{width:23px!important;height:23px!important}

/* HUMM speech lines are easier to scan when the spirit has more to say. */
.humm-talkative-lines,.exp-humm-lines{display:grid;gap:7px}
.humm-talkative-lines>span,.exp-humm-lines>span{display:block}

/* Phone layout is detected by viewport.js and uses a 1020px virtual canvas,
   so phone-specific fixes must not rely only on max-width:760px. */
html.ct-phone-landscape .v11-profile-tabs{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:7px!important;overflow:visible!important;padding:0 3px!important;
}
html.ct-phone-landscape .v11-profile-tabs button{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
  padding:0 4px!important;font-size:8px!important;letter-spacing:.08em!important;white-space:nowrap!important;
}

/* Mobile rankings: every data point remains visible in a compact two-tier card. */
html.ct-phone-landscape .v11-rank-table{overflow:visible!important;background:transparent!important;border:0!important}
html.ct-phone-landscape .v11-rank-table .rank-row.head{display:none!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row{
  display:grid!important;
  grid-template-columns:58px minmax(210px,1.65fr) minmax(145px,1fr) minmax(82px,.72fr)!important;
  grid-template-areas:"rank player faction crowns" "achievements titles contribution total"!important;
  gap:0!important;min-width:0!important;width:100%!important;margin:0 0 9px!important;padding:7px 9px!important;
  border:1px solid rgba(255,255,255,.075)!important;border-radius:13px!important;background:rgba(10,12,18,.80)!important;
}
html.ct-phone-landscape .v11-rank-table .v11-rank-row>div{
  min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;padding:6px 7px!important;border:0!important;font-size:9px!important;text-align:center!important;
}
html.ct-phone-landscape .v11-rank-table .v11-rank-row>div::before{
  content:attr(data-label);display:block;flex:0 0 auto;margin-right:3px;color:#8e96a3;font-size:6px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-player{grid-area:player!important;justify-content:flex-start!important;text-align:left!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-player::before{display:none!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-rank{grid-area:rank!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-faction{grid-area:faction!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-crowns{grid-area:crowns!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-achievements{grid-area:achievements!important;border-top:1px solid rgba(255,255,255,.055)!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-titles{grid-area:titles!important;border-top:1px solid rgba(255,255,255,.055)!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-contribution{grid-area:contribution!important;border-top:1px solid rgba(255,255,255,.055)!important}
html.ct-phone-landscape .v11-rank-table .v11-rank-row .v11-rank-total{grid-area:total!important;border-top:1px solid rgba(255,255,255,.055)!important;font-size:10px!important}
html.ct-phone-landscape .v11-rank-table .rank-inline-avatar img{width:31px;height:31px}
html.ct-phone-landscape .v11-rank-table .rank-player-cell small{font-size:7px}

/* Narrow portrait fallback also defines explicit areas so CSS grid never creates
   implicit columns that hide ranking values. */
@media(max-width:760px){
 .v11-profile-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;overflow:visible!important}
 .v11-profile-tabs button{min-width:0!important;width:100%!important;padding-inline:3px!important;font-size:7px!important;letter-spacing:.04em!important;white-space:nowrap!important}
 .v11-rank-table .v11-rank-row{grid-template-columns:1fr 1fr!important;grid-template-areas:"player player" "rank faction" "crowns achievements" "titles contribution" "total total"!important}
 .v11-rank-table .v11-rank-row .rank-player-cell{grid-area:player!important;grid-column:auto!important}
 .v11-rank-table .v11-rank-row .v11-rank-rank{grid-area:rank!important}.v11-rank-table .v11-rank-row .v11-rank-faction{grid-area:faction!important}.v11-rank-table .v11-rank-row .v11-rank-crowns{grid-area:crowns!important}.v11-rank-table .v11-rank-row .v11-rank-achievements{grid-area:achievements!important}.v11-rank-table .v11-rank-row .v11-rank-titles{grid-area:titles!important}.v11-rank-table .v11-rank-row .v11-rank-contribution{grid-area:contribution!important}.v11-rank-table .v11-rank-row .v11-rank-total{grid-area:total!important;grid-column:auto!important}
}

/* Batch 9 mobile HUMM: ~30% smaller than the former full-screen tile while
   preserving full copy/actions through the existing internal scroll region. */
@media (orientation:landscape){
 html.ct-phone-landscape.ct-standalone .humm-modal{
   width:min(714px,70vw)!important;height:70dvh!important;max-height:70dvh!important;
   padding:0!important;overflow:hidden!important;
 }
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-tile{
   width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
   grid-template-columns:minmax(112px,22%) 1px minmax(0,1fr)!important;overflow:hidden!important;
 }
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-character{min-height:0!important;height:100%!important;padding:8px 3px 6px!important;overflow:hidden!important}
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-character img{width:100%!important;height:auto!important;max-height:calc(70dvh - 16px)!important;object-fit:contain!important;object-position:center bottom!important}
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-content.humm-scroll-layout{
   height:100%!important;min-height:0!important;padding:11px 22px 8px 13px!important;
   grid-template-rows:auto auto minmax(0,1fr) auto!important;overflow:hidden!important;
 }
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-content.humm-scroll-layout>h3{font-size:20px!important;line-height:1.07!important;margin:1px 0 5px!important}
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-id{font-size:7px!important}
 html.ct-phone-landscape.ct-standalone .humm-modal .humm-popup-scroll{
   min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 7px 3px 0!important;
   touch-action:pan-y!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain!important;
 }
 html.ct-phone-landscape.ct-standalone .humm-modal .modal-actions{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
   min-height:38px!important;margin-top:5px!important;padding-top:6px!important;visibility:visible!important;opacity:1!important;
 }
 html.ct-phone-landscape.ct-standalone .humm-modal .modal-actions button{min-height:34px!important;height:auto!important;padding:5px 8px!important;font-size:8px!important}
 html.ct-phone-landscape.ct-standalone .mood-selection-modal{width:min(714px,70vw)!important;height:70dvh!important;max-height:70dvh!important}
 html.ct-phone-landscape.ct-standalone .mood-selection-modal .humm-popup-scroll{overflow-y:auto!important;padding-right:6px!important}
 html.ct-phone-landscape.ct-standalone .mood-selection-modal .mood-choice img{width:44px!important;height:44px!important}
}

/* Remove the browser's blue tap flash across the mobile/PWA forum without
   removing keyboard focus-visible accessibility. */
@media (hover:none) and (pointer:coarse){
 html,html *{-webkit-tap-highlight-color:transparent!important}
}
html.ct-phone *{-webkit-tap-highlight-color:transparent!important}


/* ===== Crowntopia V1.1 Batch 10 — Go-live HUMM return ===== */
.v11-release-welcome{display:grid;gap:11px;color:#e7e9ee;line-height:1.58}
.v11-release-welcome p{margin:0;font-size:12px;color:#d8dde5}
.v11-release-welcome .v11-release-lead{font-size:13px;color:#fff;font-weight:800}
.v11-release-gift{display:grid;gap:4px;margin:5px 0;padding:15px 16px;border:1px solid rgba(230,195,109,.38);border-radius:15px;background:linear-gradient(135deg,rgba(230,195,109,.13),rgba(255,255,255,.025));box-shadow:inset 0 0 28px rgba(230,195,109,.06)}
.v11-release-gift span{font-size:8px;font-weight:900;letter-spacing:.16em;color:#d9bd76}
.v11-release-gift strong{font-family:Cinzel,serif;font-size:24px;color:#f2d17c}
.v11-release-gift small{font-size:9px;color:#9ea6b2}
.v11-release-summary{display:grid;gap:7px;margin-top:4px;padding:13px 14px;border-radius:13px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.065)}
.v11-release-summary>b{font-size:9px;letter-spacing:.14em;color:#e0c47e}
.v11-release-summary>span{position:relative;padding-left:14px;font-size:10px;color:#cbd1da}
.v11-release-summary>span::before{content:'•';position:absolute;left:2px;color:#d9bd76}
@media(max-width:760px){.v11-release-welcome p{font-size:11px}.v11-release-gift strong{font-size:20px}.v11-release-summary>span{font-size:9px}}

/* ===== V1.2 BATCH 1: mobile and tablet refinement ===== */
/* Tap manipulation removes double-tap-to-zoom on interactive game controls,
   without blocking pinch-to-zoom or scrolling surfaces. */
@media (pointer:coarse){
  button,a,[role="button"],.flip-card,.vault-drawer-tile,.chat-drawer-tile{
    touch-action:manipulation;
  }
}
/* The app's installed-phone virtual viewport is 1020px wide: target its
   device classes rather than depending on max-width media rules. */
@media (orientation:landscape){
  html.ct-phone-landscape.ct-standalone body.view-chats .control-toggle{
    top:72%!important;
    left:max(0px,env(safe-area-inset-left))!important;
    transform:translateY(-50%)!important;
    max-height:72px!important;
  }
  html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .control-toggle{
    left:calc(238px + env(safe-area-inset-left))!important;
  }
}
/* Keep controls above the bottom composer and system/browser safe area on
   non-virtual mobile layouts. */
@media (max-width:760px) and (pointer:coarse){
  body.view-chats .control-toggle{top:69%!important;bottom:auto!important;transform:translateY(-50%)!important}
}
/* Desktop back faces retain their complete description; tablets and the
   installed-phone canvas get a dedicated detail action above UNLOCKED. */
.ct-character-detail-btn{display:none!important}
@media (min-width:761px) and (max-width:1180px) and (pointer:coarse){
  .character-vault-card.is-unlocked .ct-character-detail-btn{display:block!important}
}
html.ct-phone-landscape .character-vault-card.is-unlocked .ct-character-detail-btn{
  display:block!important;
}
@media (max-width:760px){
  .character-vault-card.is-unlocked .ct-character-detail-btn{display:block!important}
}
.character-vault-card.is-unlocked .back-actions:has(.ct-character-detail-btn){
  display:grid!important;gap:5px!important;
}
.character-vault-card.is-unlocked .back-actions .ct-character-detail-btn{
  height:auto!important;min-height:30px!important;padding:5px 3px!important;
  font-size:9px!important;line-height:1.15!important;white-space:normal!important;
}
html.ct-phone-landscape .character-vault-card.is-unlocked .back-actions .ct-character-detail-btn{
  min-height:28px!important;font-size:8px!important;
}
.ct-character-details-body{display:grid;grid-template-columns:minmax(0,125px) minmax(0,1fr);align-items:start;gap:16px;max-width:100%;overflow-wrap:anywhere}
.ct-character-details-art{width:100%;max-height:210px;object-fit:contain}
.ct-character-details-copy{min-width:0;line-height:1.55}
.ct-character-details-copy p{margin:0 0 9px}
@media(max-width:650px){.ct-character-details-body{grid-template-columns:1fr}.ct-character-details-art{max-height:125px}}
/* Tablets need explicit middle-width wrapping rather than inheriting fixed
   desktop min-widths or the installed-phone 1020px behavior. */
@media (min-width:761px) and (max-width:1180px){
  .app-shell,.shell-body,#viewRoot,.vault-main-layout,.profile-layout,.chat-rooms-layout{min-width:0}
  .vault-card-stage,.profile-main-panel,.chat-room-main{min-width:0;max-width:100%}
  .vault-slide-page{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vault-stage-controls{flex-wrap:wrap}
  .profile-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,2fr)}
}
@media (min-width:761px) and (max-width:950px){
  .profile-layout{grid-template-columns:1fr}
  .profile-left-panel,.profile-main-panel{min-width:0}
}

/* V1.2 Batch 2 — temporary player presence */
.ct-presence-add{position:absolute;right:1px;bottom:8px;z-index:5;width:34px;height:34px;border:2px solid #dfc88c;border-radius:50%;background:#111725;color:#f5dca5;font-weight:900;font-size:24px;cursor:pointer;line-height:1}
.ct-presence-note{position:absolute;left:55%;bottom:-7px;z-index:5;max-width:190px;min-width:76px;max-height:74px;overflow:hidden;padding:7px 10px;border-radius:18px 18px 18px 4px;background:#22242b;color:#fff;border:1px solid #b9a379;box-shadow:0 6px 15px #0009;font-size:12px;overflow-wrap:anywhere;text-align:center;line-height:1.25}
button.ct-presence-note{cursor:pointer}
.ct-public-avatar-wrap{position:relative;flex:0 0 auto}.ct-public-avatar-wrap .ct-presence-note{left:54%;bottom:-8px}.ct-public-avatar-wrap .ct-presence-mood{right:1px;bottom:4px}
.ct-presence-picker{display:grid;gap:14px}.ct-presence-description{font-size:12px;color:#ded6c6}.ct-presence-tabs{display:flex;gap:8px}.ct-presence-tabs button{flex:1;padding:10px;border:1px solid #7a6a47;color:#e6d8b8;background:#171b27;border-radius:10px;cursor:pointer}.ct-presence-tabs button.selected{background:#7a6030;color:white;border-color:#e6c577}.ct-presence-clear{padding:10px;background:#221b21;color:#ffcbcb;border:1px solid #9a6a6a;border-radius:9px;cursor:pointer}.ct-presence-label{display:block;font-size:12px;color:#f8de9b}.ct-presence-picker textarea{width:100%;box-sizing:border-box;resize:vertical;border-radius:9px;background:#101522;border:1px solid #9c8969;color:white;padding:10px;font:inherit}.ct-presence-note-bottom{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}.ct-presence-note-bottom small{font-size:10px;color:#c6c1b7}
@media(max-width:760px){.ct-presence-note{max-width:112px;font-size:10px}.ct-public-avatar-wrap .ct-presence-note{max-width:120px}}

/* V1.2 Batch 2 correction: presence appears to the upper-right of the avatar.
   Scope to the three supported avatar contexts without moving other badges. */
.profile-avatar-wrap .ct-presence-note,
.ct-public-avatar-wrap .ct-presence-note{
  left:auto!important;right:-24px!important;top:-12px!important;bottom:auto!important;
  max-width:190px;min-width:72px;z-index:12;
  border-radius:18px 18px 18px 5px;
}
.profile-avatar-wrap .ct-presence-mood,
.ct-public-avatar-wrap .ct-presence-mood{
  position:absolute!important;left:auto!important;right:-14px!important;
  top:-12px!important;bottom:auto!important;z-index:12!important;
  width:38px!important;height:38px!important;overflow:hidden!important;
  padding:0!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;
  border:2px solid rgba(236,204,125,.85)!important;
  background:#10151d!important;
}
.profile-avatar-wrap .ct-presence-mood img,
.ct-public-avatar-wrap .ct-presence-mood img{
  display:block;width:100%!important;height:100%!important;
  object-fit:cover!important;border-radius:50%;
}
/* Owner empty-state action follows the same upper-right placement. */
.profile-avatar-wrap .ct-presence-add{right:-12px!important;top:-12px!important;bottom:auto!important}
@media(max-width:760px){
 .profile-avatar-wrap .ct-presence-note,.ct-public-avatar-wrap .ct-presence-note{
  right:-18px!important;top:-9px!important;max-width:120px!important;font-size:10px;
 }
 .profile-avatar-wrap .ct-presence-mood,.ct-public-avatar-wrap .ct-presence-mood{
  right:-10px!important;top:-9px!important;width:31px!important;height:31px!important;
 }
}
/* Installed landscape phone: open MENU tab must touch the drawer edge.
   The safe-area left inset belongs to the closed button only, not to the
   opened drawer edge which itself starts at left:0. */
@media(orientation:landscape){
 html.ct-phone-landscape.ct-standalone body.view-chats.mobile-chat-nav-open .control-toggle{
  left:238px!important;margin-left:0!important;
  border-top-left-radius:0!important;border-bottom-left-radius:0!important;
 }
}

/* V1.2 Batch 2 Correction 3 — anchor the NOTE's bottom-left tip at the
   avatar upper-right. Text wrapping increases height UPWARDS, not over
   the portrait or display name. Applies to own and public profiles. */
.profile-avatar-wrap .ct-presence-note,
.ct-public-avatar-wrap .ct-presence-note{
  left:calc(100% - 14px)!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(100% - 12px)!important;
  margin:0!important;
  transform:none!important;
  width:max-content;
  max-width:190px;
  box-sizing:border-box;
  text-align:center;
}
@media(max-width:760px){
  .profile-avatar-wrap .ct-presence-note,
  .ct-public-avatar-wrap .ct-presence-note{
    left:calc(100% - 11px)!important;
    right:auto!important;
    top:auto!important;
    bottom:calc(100% - 9px)!important;
    max-width:120px!important;
  }
}

/* V1.2 Batch 9.5: prevent double-tap zoom on taps, not scrolling/pinch.
   Keep touch-action:auto on scrollable content (Journey, Chat, HUMM). */
html.ct-phone button,html.ct-phone a,html.ct-phone [role="button"],
html.ct-phone input[type="button"],html.ct-phone input[type="submit"],
html.ct-phone .sidebar-item,html.ct-phone .nav-item { touch-action:manipulation; }
/* iOS standalone scroll containment and bottom safe-area handling. */
html.ct-standalone .modal-scroll,html.ct-standalone .humm-popup-scroll,
html.ct-standalone .system-popup-scroll,html.ct-standalone .main {
 -webkit-overflow-scrolling:touch;
}
@supports (-webkit-touch-callout:none) {
  html.ct-phone input,html.ct-phone textarea,html.ct-phone select { font-size:max(16px,1em); }
}
