/* WEEKLY Liquid Royale V4 — Account + Community UX
   Presentation only. Existing wallet, profile privacy, claims and VIP logic stay server-owned. */
body.wl-liquid{--w4-ink:#f7f1ff;--w4-soft:#b7a9c9;--w4-line:#8062a25c;--w4-purple:#b46cff;--w4-pink:#f48cdb}
body.wl-liquid .w4-page{width:min(1280px,100%);margin:0 auto 70px;color:var(--w4-ink);font:inherit;box-sizing:border-box}
body.wl-liquid .w4-page *,body.wl-liquid .w4-page *::before,body.wl-liquid .w4-page *::after{box-sizing:border-box}
.w4-page :is(h1,h2,h3,p){margin:0}.w4-page a{text-decoration:none}
.w4-page :is(h1,h2,h3){font-family:Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.045em}
.w4-page h1{font-size:clamp(2.4rem,4.4vw,4.3rem);line-height:1.07;font-weight:950}
.w4-page h2{font-size:clamp(1.2rem,2.3vw,1.65rem);font-weight:870}
.w4-page em{font-style:normal;color:#d3a4fc}
.w4-kicker{font-size:.66rem;font-weight:850;letter-spacing:.17em;color:#d7a0fc}
.w4-muted{color:#b0a4bd!important;font-size:.85rem;line-height:1.65}
.w4-note{color:#847d9b;font-size:.73rem;line-height:1.6;margin-top:15px!important}
.w4-btn,.w4-ghost{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border-radius:12px;font-size:.82rem;font-weight:820;white-space:normal}
.w4-btn{background:linear-gradient(119deg,#c45de4,#8151e9)!important;color:white!important;border:1px solid #f0b2fa9e;box-shadow:0 7px 25px #a55bea48,inset 0 1px 0 #ffe1fd72}
.w4-ghost{background:#241a33;color:#e8d4f9!important;border:1px solid #986eb58f}
.w4-btn:hover,.w4-ghost:hover{filter:brightness(1.12);transform:translateY(-1px)}
.w4-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 18px}
.w4-page-heading p{margin-top:9px;color:var(--w4-soft);font-size:.91rem;line-height:1.55}
.w4-page-heading h1,.w4-page-heading h2{margin-top:5px}
.w4-card{border-radius:21px;border:1px solid var(--w4-line);padding:22px;background:radial-gradient(ellipse at 88% 0%,#643b8636,transparent 61%),linear-gradient(150deg,#21182d,#11101b);box-shadow:0 15px 38px #0006,inset 0 1px 0 #ffffff13}
.w4-card header{display:flex;align-items:center;gap:13px;margin-bottom:18px}
.w4-card header>span{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;color:#e5baf9;background:#54357491;border:1px solid #bd8af669;font-size:1.38rem}
.w4-card header small{color:#c292e7;font-size:.61rem;font-weight:850;letter-spacing:.13em}
.w4-card header h2{margin-top:3px;font-size:1.17rem}
.w4-card header>a{margin-left:auto;font-size:.75rem;color:#d6b0fe}
/* The original profile is the actual Weekly identity — no separate Wallet passport. */
.w4-identity-hero,.w4-vip-hero,.w4-community-hero,.w4-rewards-hero{
 isolation:isolate;position:relative;overflow:hidden;min-height:280px;border-radius:25px;
 border:1px solid #a45acd7b;box-shadow:0 20px 60px #0009,inset 0 1px 0 #f4c4ff25;
 background:radial-gradient(ellipse at 80% 30%,#8935b367,transparent 59%),linear-gradient(110deg,#151020,#2a173f 72%,#1c142d);
}
.w4-identity-hero:after,.w4-vip-hero:after,.w4-community-hero:after,.w4-rewards-hero:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:repeating-linear-gradient(115deg,transparent 0 90px,#e8b2ff06 91px 93px,transparent 94px 184px)}
.w4-identity-hero .w4-hero-aura{position:absolute;width:500px;height:250px;left:5%;top:-55%;border-radius:50%;background:#ca52fd59;filter:blur(90px);pointer-events:none}
.w4-identity-hero .w4-hero-copy{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:18px;max-width:81%;padding:37px 32px 38px}
.w4-identity-hero .w4-kicker{flex-basis:100%}
.w4-avatar{height:86px;width:86px;flex:0 0 86px;border:2px solid #dbb5fc;border-radius:22px;display:grid;place-items:center;font-size:2.6rem;font-weight:950;color:#fff;box-shadow:0 0 33px #c96bf48b;background:linear-gradient(135deg,#c389ef,#5e347c 61%,#24162f)}
.w4-identity-copy{min-width:0;flex:1 1 220px}
.w4-idline{display:block;margin-bottom:7px;color:#dac0e7;font-size:.61rem;letter-spacing:.1em;font-weight:800}
.w4-identity-copy p{margin-top:8px;color:#ddd4e7;font-size:.92rem;line-height:1.5;max-width:420px}
.w4-status{display:inline-block;margin-top:9px;font-size:.67rem;color:#d5acff;font-weight:800}
.w4-identity-hero .w4-btn{margin-left:105px}
.w4-profile-mascot{position:absolute;right:-12px;bottom:-135px;width:min(36%,400px);max-height:390px;object-fit:contain;filter:drop-shadow(0 0 24px #e252ed54);pointer-events:none;z-index:1}
.w4-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:17px}
.w4-info-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:13px 0;border-top:1px solid #7d5a9856;font-size:.79rem}
.w4-info-row>span{color:#a99db8}.w4-info-row strong{color:#f4eafb;font-weight:820;overflow-wrap:anywhere;text-align:right}
.w4-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.w4-actions a{font-size:.73rem;color:#efdcff;padding:10px 12px;border:1px solid #8758b273;background:#3524487e;border-radius:10px}
.w4-ranks{display:flex;flex-wrap:wrap;gap:8px}.w4-rank{padding:9px 12px;border-radius:10px;border:1px solid var(--rank-color,#ae77d8);background:#231a33;color:#f4e8ff;font-size:.78rem;font-weight:820}
.w4-empty{display:grid;gap:6px;align-content:center;justify-items:center;text-align:center;min-height:154px}.w4-empty>span{font-size:2.7rem;color:#c882e5;text-shadow:0 0 17px #bd52eb}.w4-empty strong{font-size:.87rem}.w4-empty p{color:#a99cb9;font-size:.76rem;line-height:1.5}
.w4-collection{grid-column:1/-1}.w4-collectibles{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px}.w4-collectibles article{display:grid;gap:7px;padding:10px;border:1px solid #70558174;border-radius:12px;background:#1a1425}.w4-collectibles img{width:100%;aspect-ratio:1;object-fit:contain}.w4-collectibles strong{font-size:.76rem}.w4-collectibles small{color:#a99cb9;font-size:.65rem}
/* Wallet: single balance panel + compact transaction list, no charts or 3-column financial dashboard. */
.w4-wallet{max-width:970px!important}.w4-wallet-hero{position:relative;isolation:isolate;overflow:hidden;min-height:225px;border-radius:22px;padding:30px 34px;border:1px solid #a765dd9d;background:radial-gradient(ellipse at 85% 46%,#b855ed71,transparent 43%),linear-gradient(110deg,#281632,#15101c);box-shadow:0 17px 46px #0008,inset 0 1px 0 #fae1ff38}
.w4-wallet-main{position:relative;z-index:2}.w4-wallet-main>small{font-size:.65rem;letter-spacing:.15em;color:#e1bbff;font-weight:850}.w4-wallet-main h2{font-size:clamp(2.9rem,6vw,4.5rem);margin:11px 0;letter-spacing:-.06em}.w4-wallet-main h2 span{color:#e4b2ff;text-shadow:0 0 18px #c85bea}.w4-wallet-main>p{color:#bbacce;font-size:.82rem;line-height:1.6;max-width:490px}.w4-connection{display:inline-block;font-size:.66rem;font-weight:850;color:#e5c7fc;margin-top:10px}.w4-wallet-main .w4-btn{margin:12px 0 0 13px}.w4-wallet-art{position:absolute;right:7%;top:14%;font-size:11rem;line-height:1;opacity:.28;color:#d08efe;text-shadow:0 0 40px #d54bec;transform:rotate(21deg);pointer-events:none}
.w4-wallet-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:13px 0 20px}.w4-wallet-actions a{padding:13px 10px;text-align:center;color:#e5d6f4;font-weight:780;font-size:.77rem;background:#251c34;border:1px solid #7553898c;border-radius:12px}.w4-wallet-actions a:hover{border-color:#bb83f4;background:#392548}
.w4-transactions{display:grid;gap:0}.w4-transaction{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #765b8757}.w4-transaction-icon{border-radius:10px;background:#54396d64;color:#e4baff;width:36px;height:36px;display:grid;place-items:center}.w4-transaction div{min-width:0}.w4-transaction strong{font-size:.8rem;color:#f5ecfa}.w4-transaction small{display:block;color:#9c8cac;font-size:.67rem;line-height:1.5;overflow-wrap:anywhere;margin-top:3px}.w4-transaction b{font-size:.83rem;text-align:right}.w4-gain{color:#9be7c6}.w4-loss{color:#f9a2b9}.w4-wallet-foot{display:flex;align-items:center;justify-content:space-between;padding:15px 3px;margin-top:15px}.w4-wallet-foot a{font-size:.8rem;color:#d5abf7}.w4-wallet-foot button{background:none;border:0;color:#bda5d1;font-size:.8rem;cursor:pointer}
.w4-warning{border:1px solid #e59bb2;background:#3b1d2d;padding:12px;border-radius:12px;margin-bottom:16px!important;color:#ffd4e3}
/* VIP, community, rewards are distinct landing pages; never invent payments, ranks or earnings. */
.w4-vip-hero,.w4-community-hero,.w4-rewards-hero{display:flex;align-items:center;min-height:300px;padding:42px 43px;gap:30px}
.w4-vip-hero>div:first-child,.w4-community-hero>div:first-child,.w4-rewards-hero>div:first-child{position:relative;z-index:2;max-width:620px}
.w4-vip-hero p,.w4-community-hero p,.w4-rewards-hero p{margin:12px 0 18px;color:#d1bbdf;font-size:1rem;line-height:1.65}
.w4-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}
.w4-vip-hero-art{position:relative;margin-left:auto;width:240px;flex:0 0 240px}.w4-vip-hero-art>span{font-size:11rem;position:absolute;z-index:0;right:2%;top:-60px;color:#c485fa70;text-shadow:0 0 24px #b85aec8f}.w4-vip-hero-art img{position:relative;z-index:1;width:100%;filter:drop-shadow(0 0 20px #d278fa57)}
.w4-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.w4-tier{position:relative;display:flex;flex-direction:column;min-height:355px;padding:21px;border:1px solid #6c518a9d;border-radius:22px;background:radial-gradient(ellipse at 60% 30%,#6d3e9b4b,transparent 65%),linear-gradient(160deg,#1d1729,#11101c);box-shadow:0 16px 30px #0006;overflow:hidden}.w4-tier-featured{border-color:#d18afa;box-shadow:0 0 26px #ad65df3a,0 17px 30px #0008}.w4-tier-top{display:flex;justify-content:space-between;gap:9px}.w4-tier-top small{font-size:.65rem;letter-spacing:.1em;color:#d8b0f4;font-weight:850}.w4-tier-mark{margin:17px 0 9px;color:#dbbdff;font-size:5rem;text-shadow:0 0 27px #ac55e8}.w4-tier h3{font-size:1.25rem}.w4-tier p{margin:9px 0 0;color:#c0adc9;font-size:.8rem;line-height:1.55}.w4-tier-info{color:#9f92b1!important}.w4-tier>a{margin-top:auto;display:block;text-align:center;padding:12px;background:linear-gradient(130deg,#a960e3,#6742ae);border-radius:11px;color:#fff;font-size:.79rem;font-weight:800}
.w4-community-hero img{position:absolute;right:-2%;width:min(37%,400px);bottom:-72%;filter:drop-shadow(0 0 22px #ad45e7);opacity:.95}.w4-community-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:17px}.w4-community-tile{min-height:195px;padding:23px 19px;display:flex;flex-direction:column;gap:9px;border-radius:19px;background:linear-gradient(140deg,#2a1d3a,#14111f);border:1px solid #76518d8a;color:#fff;box-shadow:0 15px 30px #0005}.w4-community-tile>span{font-size:2.5rem;color:#dea7ff}.w4-community-tile h2{font-size:1.1rem}.w4-community-tile p{font-size:.78rem;color:#bbadc6;line-height:1.5}.w4-community-tile b{font-size:.73rem;margin-top:auto;color:#d6aeff}.w4-community-preview{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:25px 0 16px;padding:24px;border-radius:18px;border:1px solid #7f5a96;background:#21182e}.w4-community-preview h2{margin:3px 0 6px}.w4-community-preview p{font-size:.81rem;color:#bcaec9;line-height:1.5}.w4-team-mini{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px}.w4-team-member{display:grid;justify-items:start;gap:6px;background:#1b1625;border:1px solid #735b84;padding:15px;border-radius:14px;color:white}.w4-team-member>span{display:grid;place-items:center;font-size:1.3rem;width:40px;height:40px;border-radius:12px;background:#67448f}.w4-team-member strong{font-size:.85rem}.w4-team-member small{font-size:.7rem;color:#bcaacb}
.w4-rewards-hero{min-height:270px}.w4-rewards-hero>span{margin:auto;font-size:10rem;color:#c58af66b;text-shadow:0 0 30px #e46bec8a}.w4-rewards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:17px}.w4-rewards-feature{display:flex;flex-direction:column;min-height:240px}.w4-rewards-feature p{font-size:.82rem;line-height:1.6;color:#bba9c7;margin-bottom:13px}.w4-rewards-feature a{margin-top:auto}.w4-availability{color:#cfaaf1!important}.w4-soon{color:#c7a6e2;font-size:.8rem;margin-top:auto;background:#31233b;padding:12px;border-radius:10px}
/* Compact validated wallet pill on every authenticated page. */
body.wl-liquid .w4-global-coins,body.wl-liquid .royale-balance-pill{display:inline-flex!important;align-items:center;gap:6px;min-height:39px;padding:8px 13px;border:1px solid #c98efc81;border-radius:13px;color:#f4d9ff!important;background:linear-gradient(145deg,#3d254e,#21162f)!important;box-shadow:inset 0 1px 0 #f7d8ff33,0 4px 16px #8f4bd724;font-size:.79rem;font-weight:900;text-decoration:none;white-space:nowrap}
body.wl-liquid .w4-global-coins span,body.wl-liquid .royale-balance-pill span{color:#edb9ff}
body.wl-liquid .w4-global-coins small,body.wl-liquid .royale-balance-pill small{font-size:.57rem;letter-spacing:.08em;color:#d9c1e6}
body.wl-liquid .w4-global-coins[data-w4-status="unavailable"]{opacity:.65}
@media(max-width:1070px){.w4-identity-hero .w4-hero-copy{max-width:94%}.w4-profile-mascot{opacity:.39}.w4-community-hero img{opacity:.35}.w4-community-tiles{grid-template-columns:repeat(2,1fr)}.w4-tiers{grid-template-columns:repeat(2,1fr)}.w4-rewards-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body.wl-liquid .w4-page{padding:0 2px;margin-bottom:40px}.w4-page-heading{align-items:start;flex-direction:column}.w4-identity-hero .w4-hero-copy{padding:26px 18px 29px;gap:13px}.w4-identity-hero .w4-btn{margin-left:0}.w4-avatar{width:65px;height:65px;flex-basis:65px;font-size:2rem}.w4-identity-copy{flex-basis:170px}.w4-profile-grid,.w4-tiers,.w4-rewards-grid{grid-template-columns:1fr}.w4-collection{grid-column:auto}.w4-card{padding:17px}.w4-vip-hero,.w4-community-hero,.w4-rewards-hero{padding:29px 21px;min-height:260px}.w4-vip-hero-art{display:none}.w4-community-tiles{grid-template-columns:1fr 1fr}.w4-community-tile{min-height:166px;padding:17px}.w4-wallet-hero{padding:24px 21px}.w4-wallet-actions{grid-template-columns:repeat(2,1fr)}.w4-wallet-art{right:-3%;opacity:.15}.w4-transaction{grid-template-columns:30px minmax(0,1fr) auto;gap:7px}.w4-transaction b{font-size:.74rem}.w4-community-preview{align-items:flex-start;flex-direction:column}.w4-rewards-hero>span{font-size:5rem}}
@media(max-width:460px){body.wl-liquid .w4-global-coins small,body.wl-liquid .royale-balance-pill small{display:none}.w4-identity-hero .w4-hero-copy{max-width:100%}.w4-profile-mascot{width:55%;opacity:.18}.w4-community-tiles{grid-template-columns:1fr}.w4-page h1{font-size:2.55rem}.w4-wallet-hero{min-height:180px}.w4-wallet-main h2{font-size:3rem}}
@media(prefers-reduced-motion:reduce){.w4-page *{transition-duration:.01ms!important;animation-duration:.01ms!important}}
/* V3 kept the Gothic Member Spotlight UI below the new homepage; remove that
   duplicate presentation without deleting personal data or game endpoints. */
body.wl-liquid:has(#royale-v3) .wl-spotlight-heading,
body.wl-liquid:has(#royale-v3) .wr-dashboard-grid,
body.wl-liquid:has(#royale-v3) .wr-bottom-grid,
body.wl-liquid:has(#royale-v3) .wr-footer-note{display:none!important}
/* Edit profile shares the same brand language, preserving original CSRF and choices. */
.w4-edit-profile{max-width:850px!important}.w4-editor{display:grid;gap:17px}.w4-editor label{display:grid;gap:8px;color:#c5afd2;font-size:.7rem;font-weight:850;letter-spacing:.055em}.w4-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
body.wl-liquid .w4-editor :is(input:not([type=checkbox]),textarea,select){width:100%;border:1px solid #8965a58a;border-radius:12px;padding:13px 14px;background:#171222;color:#f3e8fd;font-size:.9rem;line-height:1.5;font-weight:500;letter-spacing:0;min-width:0}
body.wl-liquid .w4-editor :is(input:focus,textarea:focus,select:focus){border-color:#d5a3ff;outline:2px solid #a76be54d;outline-offset:2px}
body.wl-liquid .w4-editor input[readonly]{opacity:.65;cursor:not-allowed}.w4-editor .w4-edit-check{display:flex;align-items:center;gap:10px;font-size:.8rem;line-height:1.5;font-weight:650;letter-spacing:0;cursor:pointer}
.w4-editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.w4-editor-actions button{cursor:pointer;font:inherit;font-size:.83rem;font-weight:850}
@media(max-width:600px){.w4-form-row{grid-template-columns:1fr}.w4-editor{gap:14px}}

/* Profile customization presets remain honored. */
.w4-identity-hero.w4-theme-midnight{background:radial-gradient(ellipse at 80% 20%,#5b54bf5c,transparent 60%),linear-gradient(115deg,#111627,#261b3a)}
.w4-identity-hero.w4-theme-purple{background:radial-gradient(ellipse at 78% 20%,#d046ed65,transparent 58%),linear-gradient(115deg,#21112c,#351641)}
.w4-identity-hero.w4-theme-crown{background:radial-gradient(ellipse at 82% 20%,#bf8a5666,transparent 58%),linear-gradient(115deg,#221726,#37233d)}
.w4-avatar.w4-avatar-crown{background:linear-gradient(135deg,#efc895,#9e5ba3,#42284f)}
.w4-avatar.w4-avatar-knight{background:linear-gradient(135deg,#9fa4e4,#524684,#272337)}
.w4-avatar.w4-avatar-star{background:linear-gradient(135deg,#ebb3fe,#8148b5,#332045)}
