body.wn-ui .wn-home-board.wx-three-column{display:grid;grid-template-columns:290px minmax(300px,390px) 290px;justify-content:center;align-items:start;gap:44px;width:min(1160px,100%);margin:20px auto 0}
body.wn-ui .wx-left-column{display:flex;flex-direction:column;gap:16px;padding-top:64px;min-width:0}
body.wn-ui .wx-account-summary{padding:15px 14px;border:1px solid #4b6588;border-radius:12px;background:#061329d9;min-height:85px}
body.wn-ui .wx-account-summary .wn-player-open{width:100%;gap:10px}
body.wn-ui .wx-account-summary .wn-player-name{font-size:16px;max-width:150px}
body.wn-ui .wx-account-summary .wn-player-open>img{width:37px;height:39px}
body.wn-ui .wx-account-summary .wn-player-points{font-size:10px}
body.wn-ui .wx-account-summary .wn-level-star{width:44px;height:47px;font-size:20px;flex:none;margin-left:auto}
body.wn-ui .wx-left-column .wn-server-card{margin:0;max-width:none;width:100%;padding:16px;min-height:300px}
body.wn-ui .wx-left-actions{display:flex;gap:12px}
body.wn-ui .wx-left-actions button,body.wn-ui .wx-right-column>.store-btn{flex:1;min-width:0;border-radius:7px;height:45px;font:500 16px Arial,system-ui,sans-serif;color:white;border:0;box-shadow:none;padding:0 12px;cursor:pointer}
body.wn-ui .wx-left-actions .settings-btn{background:#29bfd6}
body.wn-ui .wx-left-actions .lead-btn{background:#ed941c}
body.wn-ui .wx-right-column{display:flex;flex-direction:column;gap:16px;padding-top:64px;min-width:0}
body.wn-ui .wx-ad-slot{display:flex;flex-direction:column;gap:10px;min-height:380px;text-align:center;color:#b6a4b1;font:400 12px Arial,system-ui,sans-serif}
body.wn-ui .wx-ad-slot>div{flex:1;min-height:350px;border:1px solid #4b65884d;border-radius:12px;background:#06132950}
body.wn-ui .wx-right-column>.store-btn{flex:none;width:100%;background:#85bf36}
body.wn-ui .wx-three-column .wn-main-column{grid-column:2;grid-row:1;width:100%;max-width:390px;align-self:start;justify-self:center}
body.wn-ui .wx-three-column .wn-menu-actions{display:none!important}
body.wn-ui .wx-three-column .home-center-buttons>button[hidden]{display:none!important}
body.wn-ui .wn-topbar{justify-content:flex-end;min-height:42px}
html[data-wn-theme=red] body.wn-ui .wx-account-summary{background:#1c030cd9;border-color:#a3435a}
html[data-wn-theme=red] body.wn-ui .wx-left-actions .settings-btn{background:#d52d4c}
html[data-wn-theme=red] body.wn-ui .wx-right-column>.store-btn{background:#db233f}
html[data-wn-theme=red] body.wn-ui .wx-ad-slot>div{background:#1c030c50;border-color:#a3435a4d}
/* Account dialog, based on the requested Profile layout. */
body.wn-ui .wn-profile-popover.wx-account{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:130000;width:min(640px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto;padding:0;border-radius:22px;background:#0f111a;border:1px solid #313541;box-shadow:0 20px 80px #0009;--wx-muted:#adb4c4}
body.wn-ui .wx-account .wn-profile-close{right:19px;top:13px;width:38px;height:38px;line-height:35px;border-radius:50%;background:#2c3041;font-size:25px}
body.wn-ui .wx-account-content h2{font:500 24px Arial,system-ui,sans-serif;padding:22px;border-bottom:1px solid #30323d;margin:0}
body.wn-ui .wx-account-identity{display:flex;gap:20px;padding:22px 24px;align-items:center}
body.wn-ui .wx-account-avatar{width:100px;height:100px;object-fit:cover;border-radius:50%;border:3px solid #303644;flex:none}
body.wn-ui .wx-account-person{min-width:0;flex:1}
body.wn-ui .wx-account-name{font:800 23px Arial,system-ui,sans-serif;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f2f3f8}
body.wn-ui .wx-account-level{display:flex;align-items:center;gap:12px;margin:14px 0 10px}
body.wn-ui .wx-account-star{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#ffa839;clip-path:polygon(50% 0,64% 30%,99% 35%,75% 58%,81% 98%,50% 79%,18% 98%,25% 58%,1% 35%,35% 30%);font:800 13px Arial;color:#512600;padding-top:3px}
body.wn-ui .wx-account-xp-label{font:400 13px Arial,system-ui,sans-serif;color:#aeb6c7;line-height:1.4}
body.wn-ui .wx-account-progress{position:relative;width:100%;height:20px;background:#080a10;border:1px solid #313747;border-radius:99px;overflow:hidden}
body.wn-ui .wx-account-progress i{display:block;width:0;height:100%;border-radius:99px;background:linear-gradient(90deg,#ffc16b,#f69822)}
body.wn-ui .wx-account-progress small{position:absolute;inset:0;text-align:center;color:#fff;font:500 11px/18px Arial;white-space:nowrap;text-shadow:0 1px 2px #000}
body.wn-ui .wx-account-stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:0 24px}
body.wn-ui .wx-account-stats>div{padding:13px 15px;min-height:69px;border-radius:12px;background:#191c25;display:flex;flex-direction:column;gap:9px;min-width:0}
body.wn-ui .wx-account-stats span{color:#acb5c7;font:400 13px Arial,system-ui,sans-serif}
body.wn-ui .wx-account-stats strong{color:#f2f3f8;font:800 18px Arial,system-ui,sans-serif;overflow-wrap:anywhere}
body.wn-ui .wx-account-extra{display:flex;justify-content:space-between;gap:12px;margin:16px 24px;color:#aeb6c7;font:400 12px Arial;flex-wrap:wrap}
body.wn-ui .wx-account-extra b{color:#ffe0a0;margin-left:8px}
body.wn-ui .wx-account-footer{display:flex;align-items:center;justify-content:space-between;margin:0 24px 22px;padding:9px 12px 9px 15px;background:#191c25;border-radius:12px;color:#acb5c7;font:400 14px Arial}
body.wn-ui .wx-account-signout{background:#2b3041;border-radius:18px;color:#f2f3f8;padding:10px 16px;font:700 13px Arial;cursor:pointer}
body.wn-ui .wx-account-note{color:#d3b2bd;font:12px/1.5 Arial;margin:0 24px 18px;direction:rtl}
.wx-account-shade{position:fixed;inset:0;z-index:129999;background:#0009;backdrop-filter:blur(4px);cursor:default}
.wx-account-shade[hidden]{display:none}
@media(max-width:1100px){body.wn-ui .wn-home-board.wx-three-column{grid-template-columns:250px minmax(290px,370px) 250px;gap:22px}}
@media(max-width:940px){body.wn-ui .wn-home-board.wx-three-column{grid-template-columns:minmax(230px,280px) minmax(290px,390px);gap:26px}body.wn-ui .wx-right-column{grid-column:2;grid-row:2;padding-top:0}body.wn-ui .wx-ad-slot{display:none}body.wn-ui .wx-left-column{padding-top:55px;grid-row:1/3}}
@media(max-width:640px){body.wn-ui .wn-home-board.wx-three-column{display:flex;flex-direction:column;align-items:center;gap:24px;margin-top:10px}body.wn-ui .wx-left-column{display:contents}body.wn-ui .wx-account-summary{width:100%;max-width:400px;order:0}body.wn-ui .wx-three-column .wn-main-column{order:1}body.wn-ui .wx-left-column .wn-server-card{max-width:400px;order:2}body.wn-ui .wx-left-actions{width:100%;max-width:400px;order:3}body.wn-ui .wx-right-column{width:100%;max-width:400px;padding:0;order:4}body.wn-ui .wx-account-avatar{width:65px;height:65px}body.wn-ui .wx-account-identity{gap:13px;padding:18px}body.wn-ui .wx-account-name{font-size:18px}body.wn-ui .wx-account-stats{padding:0 18px}body.wn-ui .wx-account-stats strong{font-size:16px}body.wn-ui .wx-account-footer{margin-inline:18px}}

/* Server identity and occupancy share a row above a full-width population bar. */
body.wn-ui .wx-left-column .server-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:8px;row-gap:9px;align-items:center;padding:11px 9px;height:auto;min-height:59px}
body.wn-ui .wx-left-column .server-name{grid-column:1;grid-row:1;display:flex;gap:7px;min-width:0;width:auto;max-width:none}
body.wn-ui .wx-left-column .server-city{font-size:13px;max-width:none;width:auto;overflow:visible;white-space:normal;text-overflow:clip;line-height:1.25}
body.wn-ui .wx-left-column .server-img{flex:none;width:23px;height:18px}
body.wn-ui .wx-left-column .server-info{display:contents!important}
body.wn-ui .wx-left-column .server-online{grid-column:2;grid-row:1;white-space:nowrap;justify-content:flex-end}
body.wn-ui .wx-left-column .server-range{grid-column:1/-1;grid-row:2;width:100%!important;min-width:0;height:4px;margin:0}

/* level badge: gold shield + star (img/level-badge.svg), the level number on top */
body.wn-ui .wn-level-star,body.wn-ui .wx-account-star{clip-path:none;background:url(/img/level-badge.svg) center/contain no-repeat;color:#fff;font-weight:900;
  font-family:Arial,sans-serif;text-shadow:0 1px 0 #7a3a05,0 0 3px #7a3a05,0 0 1px #000;padding:0 0 3px;display:grid;place-items:center;line-height:1}
body.wn-ui .wn-level-star{width:54px;height:60px;font-size:22px}
body.wn-ui .wx-account-summary .wn-level-star{width:44px;height:48px;font-size:18px}
body.wn-ui .wx-account-star{width:40px;height:44px;font-size:15px}
@media(max-width:900px){body.wn-ui .wn-level-star{width:46px;height:51px;font-size:19px}}
@media(max-width:680px){body.wn-ui .wn-level-star{width:38px;height:42px;font-size:16px}}
/* the level is at most 300: three digits fit on the star */
body.wn-ui .wn-level-star{font-size:17px;letter-spacing:-0.5px}
body.wn-ui .wx-account-summary .wn-level-star{font-size:14px}
body.wn-ui .wx-account-star{font-size:12px;letter-spacing:-0.5px}
@media(max-width:900px){body.wn-ui .wn-level-star{font-size:15px}}
@media(max-width:680px){body.wn-ui .wn-level-star{font-size:13px}}
/* level badge 30% bigger */
body.wn-ui .wn-level-star{width:70px;height:78px;font-size:22px}
body.wn-ui .wx-account-summary .wn-level-star{width:57px;height:62px;font-size:18px}
body.wn-ui .wx-account-star{width:52px;height:57px;font-size:16px}
@media(max-width:900px){body.wn-ui .wn-level-star{width:60px;height:66px;font-size:19px}}
@media(max-width:680px){body.wn-ui .wn-level-star{width:49px;height:55px;font-size:17px}}
/* Profile: token balance across from the level shield */
body.wn-ui .wx-account-tokens{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 6px;border-radius:999px;background:rgba(0,0,0,.28);border:1px solid rgba(255,200,60,.45);font:800 16px/1 Inter,Arial,sans-serif;color:#ffd84a}
body.wn-ui .wx-account-tokens::before{content:'';width:26px;height:26px;background:url(/img/token.png?v=2) center/contain no-repeat;filter:drop-shadow(0 0 5px rgba(255,200,60,.7))}
/* Kill Message tab: my kill message on/off */
body.wn-ui .wx-km-onoff{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:8px;font-weight:800}
