:root{color-scheme:dark;--bg:#0b0c0f;--surface:#121318;--panel:#17181d;--panel2:#1e2026;--input:#1a1b20;--line:#2a2d35;--text:#f4f4f6;--muted:#a1a5b0;--soft:#747983;--accent:#e74650;--accent-ink:#fff;--shadow:0 18px 55px #0006;--max:1240px;--radius:12px;font-family:Inter,'Segoe UI',Arial,sans-serif}
:root[data-theme=light]{color-scheme:light;--bg:#f7f7f8;--surface:#fff;--panel:#fff;--panel2:#f0f1f3;--input:#f8f8fa;--line:#dedfe4;--text:#171920;--muted:#565c68;--soft:#777d88;--accent:#c8313b;--accent-ink:#fff;--shadow:0 18px 50px #20232d15}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a{transition:background .17s,border-color .17s,color .17s,transform .17s}button{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1,h2,h3,p{margin-top:0}.shell{max-width:var(--max);width:calc(100% - 52px);margin-inline:auto}.muted{color:var(--muted)}.subtle-label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--soft)}.icon{display:inline-flex;align-items:center;justify-content:center;flex:none}.icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.topbar{position:sticky;top:0;z-index:30;background:var(--bg);border-bottom:1px solid var(--line)}.top-inner{min-height:66px;display:flex;align-items:center;gap:34px}.brand{font-weight:900;font-size:25px;letter-spacing:-.09em;white-space:nowrap}.brand i{color:var(--accent);font-style:normal}.brand-mark{display:inline-grid;place-items:center;width:28px;height:28px;background:var(--accent);color:white;border-radius:6px;margin-right:9px;font-size:19px;letter-spacing:-.09em}.navlinks{display:flex;gap:25px;align-items:center;height:100%;font-size:12px;color:var(--muted);font-weight:700}.navlinks a{border-bottom:2px solid transparent;padding:26px 0 24px}.navlinks a.active,.navlinks a:hover{color:var(--text);border-color:var(--accent)}.nav-right{margin-left:auto;display:flex;gap:9px;align-items:center}.searchbox{background:var(--panel);color:var(--soft);border:1px solid var(--line);border-radius:8px;padding:9px 12px;display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap}.searchbox .icon svg{width:15px}.searchbox kbd{font-size:10px;color:var(--soft);margin-left:18px}.langselect{background:var(--panel);color:var(--text);border:1px solid var(--line);padding:9px 6px;border-radius:8px;font-size:11px;max-width:95px}.theme-btn,.circle-btn{width:36px;height:36px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;display:grid;place-items:center}.theme-btn:hover,.circle-btn:hover{background:var(--panel2)}.hamb{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);padding:12px 17px;font-size:12px;font-weight:750;min-height:41px}.btn:hover{background:var(--panel2);transform:translateY(-1px)}.btn.red{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.btn.red:hover{filter:brightness(1.08)}.btn.sm{min-height:34px;padding:8px 12px}.btn.ghost{background:transparent}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.intro{padding:92px 0 100px;background:radial-gradient(circle at 82% 46%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 44%)}.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);align-items:center;gap:90px}.eyebrow{color:var(--accent);font-weight:800;font-size:11px;letter-spacing:.15em;text-transform:uppercase;margin-bottom:24px}.intro h1{font-size:clamp(66px,7.4vw,110px);line-height:.97;font-weight:900;letter-spacing:-.09em;margin:0 0 23px}.intro h1 span{color:var(--accent)}.intro-desc{font-size:15px;line-height:1.85;color:var(--muted);max-width:515px}.hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin:30px 0}.hero-points{display:flex;gap:28px;margin-top:58px;padding-top:21px;border-top:1px solid var(--line)}.hero-points div{display:flex;flex-direction:column;gap:5px}.hero-points b{font-size:18px;letter-spacing:-.02em}.hero-points small{color:var(--soft);font-size:10px;letter-spacing:.1em;text-transform:uppercase}.hero-preview{position:relative;max-width:480px;margin:auto;width:100%}.hero-ring{position:absolute;inset:-46px 4%;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:50%;pointer-events:none}.hero-card{border:1px solid var(--line);background:var(--panel);border-radius:15px;box-shadow:var(--shadow);overflow:hidden;transform:rotate(-2deg);position:relative}.cover{height:180px;position:relative;overflow:hidden;background:#31262c}.cover.pattern-grid:after{content:"";position:absolute;inset:0;opacity:.13;background-image:linear-gradient(#fff6 1px,transparent 1px),linear-gradient(90deg,#fff6 1px,transparent 1px);background-size:29px 29px}.cover.pattern-lines:after{content:"";position:absolute;inset:-80px;opacity:.25;background:repeating-linear-gradient(-23deg,transparent,transparent 22px,#fff3 23px,#fff3 24px)}.cover.pattern-dots:after{content:"";position:absolute;inset:0;opacity:.24;background:radial-gradient(#fff8 1.2px,transparent 2px) 0 0/25px 25px}.cover.variant-0{background:linear-gradient(119deg,#392329,#151923 59%,#5a3137)}.cover.variant-1{background:linear-gradient(119deg,#22252d,#465267 60%,#12151b)}.cover.variant-2{background:linear-gradient(119deg,#352c3f,#13161a 65%,#473d54)}.cover.variant-3{background:linear-gradient(119deg,#40372f,#101820 60%,#244a4a)}.cover.variant-4{background:linear-gradient(119deg,#243037,#17212c 60%,#2d4a54)}.cover.variant-5{background:linear-gradient(119deg,#25362e,#17201b 60%,#486648)}.avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:22px;color:white;background:linear-gradient(130deg,#a03c4c,#1b222c);border:4px solid var(--panel);overflow:hidden;position:relative;flex:none}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.squared{border-radius:13px}.profile-header .avatar{width:88px;height:88px;margin-top:-42px}.hero-card .avatar{width:68px;height:68px;margin-top:-36px}.hero-card-body{padding:0 24px 26px}.hero-card-body h3{margin:9px 0 4px;font-size:26px}.handle{font-size:12px;color:var(--muted)}.hero-card-stat{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:23px;padding:16px 0}.hero-card-stat b{font-size:23px;display:block}.hero-card-stat small{font-size:10px;color:var(--soft)}.mini-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.chip{border:1px solid var(--line);background:var(--panel2);color:var(--muted);padding:7px 10px;border-radius:6px;font-size:11px}.milestones{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface);padding:26px 0}.milestones .shell{display:grid;grid-template-columns:repeat(4,1fr)}.milestones .step{padding:0 25px;border-right:1px solid var(--line)}.milestones .step:first-child{padding-left:0}.milestones .step:last-child{border:0}.step strong{display:block;font-size:25px;margin-bottom:4px}.step span{font-size:11px;color:var(--soft);text-transform:uppercase;letter-spacing:.1em}.section{padding:64px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:21px}.section-heading h2{font-size:25px;letter-spacing:-.045em;margin:0}.section-heading p{color:var(--muted);line-height:1.6;margin:7px 0}.player-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.player-card{background:var(--panel);border:1px solid var(--line);border-radius:11px;overflow:hidden}.player-card:hover{border-color:var(--accent)}.player-card .cover{height:90px}.player-card .avatar{width:51px;height:51px;margin:-27px 0 6px 15px}.player-card-body{padding:0 17px 18px}.player-card-body strong{font-size:16px}.player-card-body small{display:block;margin:5px 0 12px;color:var(--muted)}.player-card-foot{display:flex;justify-content:space-between;font-size:11px;border-top:1px solid var(--line);padding-top:12px;color:var(--soft)}.page-title{padding:46px 0 24px}.page-title h1{font-size:38px;letter-spacing:-.055em;margin:11px 0}.page-title p{max-width:690px;color:var(--muted);line-height:1.8}.input,.form-input{border:1px solid var(--line);border-radius:8px;background:var(--input);color:var(--text);padding:11px 12px;width:100%;min-width:0}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.field label{font-size:12px;color:var(--muted);font-weight:650}.field textarea{resize:vertical;min-height:86px}.field small{font-size:11px;color:var(--soft)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px}.panel h2{font-size:17px;margin:0 0 17px}.page-content{min-height:50vh}.dash{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 67px)}.sidebar{border-right:1px solid var(--line);padding:21px 12px;background:var(--surface)}.sideuser{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);background:var(--panel);border-radius:9px}.sideuser .avatar{width:40px;height:40px;font-size:12px;border-width:2px}.sideuser small{display:block;color:var(--muted);margin-top:4px}.side-label{font-size:10px;text-transform:uppercase;color:var(--soft);letter-spacing:.1em;margin:22px 12px 8px}.side-link{display:flex;gap:10px;align-items:center;width:100%;border:0;border-radius:7px;background:transparent;color:var(--muted);padding:11px 12px;text-align:left;font-size:12px}.side-link:hover,.side-link.active{background:var(--panel2);color:var(--text)}.side-link.active{font-weight:750}.side-link .icon svg{width:16px;height:16px}.dash-main{padding:35px min(5vw,62px) 85px;max-width:1390px;width:100%;min-width:0}.dash-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:27px}.dash-head h1{font-size:29px;letter-spacing:-.05em;margin:0 0 6px}.dash-head p{color:var(--muted);margin:0}.dash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.dash-stat{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:10px}.dash-stat strong{display:block;font-size:26px;margin:9px 0}.dash-stat span{font-size:11px;color:var(--muted)}.progress-outer{height:7px;background:var(--panel2);border-radius:99px;overflow:hidden;margin:16px 0}.progress-outer span{display:block;height:100%;background:var(--accent);border-radius:99px}.task-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.task-grid a{padding:10px;background:var(--panel2);border-radius:6px;font-size:12px;color:var(--muted)}.task-grid a:hover{color:var(--text)}.dash-block{margin-bottom:22px}.dash-block h2{font-size:19px;margin:0 0 16px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.full{grid-column:1/-1}.preset-list,.palette-list,.toggle-list{display:flex;flex-wrap:wrap;gap:9px}.preset{width:114px;height:65px;border-radius:8px;border:3px solid transparent;cursor:pointer}.preset.active{outline:2px solid var(--accent);outline-offset:2px}.color-swatch{width:35px;height:35px;border-radius:50%;border:3px solid var(--panel);box-shadow:0 0 0 1px var(--line)}.color-swatch.active{box-shadow:0 0 0 2px var(--text)}.seg{background:var(--panel2);border:1px solid var(--line);border-radius:7px;color:var(--muted);padding:9px 12px;font-size:12px}.seg.active{border-color:var(--accent);color:var(--text)}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.switch-row:last-child{border-bottom:0}.switch-row b{font-size:12px}.switch-row small{display:block;color:var(--soft);margin-top:4px}.switch-row input{accent-color:var(--accent)}.compact-note{font-size:12px;line-height:1.7;color:var(--muted)}.theme-preview{height:130px;border:1px solid var(--line);border-radius:10px;margin-top:18px;position:relative;overflow:hidden}.theme-preview .cover{height:100%}.stack{display:grid;gap:14px}.connection{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.connection p{margin:5px 0 0;color:var(--muted);font-size:12px}.profile-stage{max-width:1160px;width:calc(100% - 52px);margin:31px auto 100px;position:relative}.profile-panel{border:1px solid var(--line);background:var(--panel);border-radius:12px;overflow:hidden;position:relative;box-shadow:var(--shadow)}.profile-panel .cover{height:205px}.profile-header{padding:0 28px 25px;position:relative}.profile-identity{display:flex;align-items:flex-end;gap:18px}.profile-name{font-size:27px;margin:6px 0 4px;letter-spacing:-.045em}.profile-top-right{margin-left:auto;display:flex;align-items:center;gap:9px}.profile-desc{margin:15px 0 0;line-height:1.65;color:var(--muted);max-width:650px}.profile-meta{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:13px;color:var(--soft);font-size:12px}.profile-stats{display:flex;gap:30px;align-items:center;padding-top:20px;margin-top:19px;border-top:1px solid var(--line)}.profile-stats b{font-size:18px;display:block}.profile-stats small{font-size:11px;color:var(--soft)}.profile-tabs{display:flex;gap:2px;margin-top:25px;border-bottom:1px solid var(--line)}.profile-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:13px 20px;font-size:12px}.profile-tabs button.active{color:var(--text);border-color:var(--accent);font-weight:700}.section-stack{display:grid;gap:22px;margin-top:28px}.section-block{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:11px;position:relative}.section-block h2{display:flex;align-items:center;gap:9px;font-size:15px;margin:0 0 17px}.section-block h2 small{font-size:11px;color:var(--soft);font-weight:400}.gear-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gear-item{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}.gear-art{height:134px;display:grid;place-items:center;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--muted) 12%,transparent),transparent 70%)}.gear-art svg{max-height:130px;max-width:100%;width:100%}.gear-item-text{padding:12px}.gear-item-text strong{font-size:12px;display:block;line-height:1.4}.gear-item-text small{display:block;color:var(--muted);margin-top:6px}.gear-tag{display:block;color:var(--accent);font-size:10px;text-transform:uppercase;letter-spacing:.09em;margin-bottom:5px}.setting-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.setting-card{padding:14px;border-radius:7px;background:var(--panel2)}.setting-card span{display:block;font-size:11px;color:var(--muted)}.setting-card b{display:block;margin-top:7px;font-size:14px;word-break:break-word}.public-layout-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.public-layout-grid.narrow{grid-template-columns:1fr}.section-empty{color:var(--soft);font-size:12px;line-height:1.7}.decal-layer{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:5}.decal{position:absolute;pointer-events:auto;cursor:grab;touch-action:none;user-select:none;filter:drop-shadow(0 5px 12px #0007);font-size:72px;line-height:1}.decal img{max-width:210px;max-height:210px;display:block}.decal:active{cursor:grabbing}.decal-hint{font-size:11px;color:var(--soft)}.section-controls{display:flex;align-items:center;gap:7px}.small-icon-btn{border:1px solid var(--line);color:var(--muted);background:var(--panel2);border-radius:6px;min-width:30px;min-height:30px}.gear-picker{max-height:480px;overflow:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:6px}.picker-item{display:flex;gap:8px;align-items:center;background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:8px;text-align:left;color:var(--text)}.picker-item:hover{border-color:var(--accent)}.picker-item .gear-art{width:83px;height:65px;flex:none}.picker-item .gear-art svg{max-height:64px}.picker-item strong{font-size:12px;display:block}.picker-item small{font-size:10px;color:var(--muted)}.gear-row{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.gear-row:last-child{border-bottom:0}.gear-row .gear-art{width:95px;height:63px;flex:none;border-radius:7px}.gear-row .gear-art svg{max-height:61px}.gear-row strong{display:block;font-size:12px}.gear-row small{color:var(--muted);font-size:11px}.gear-row .small-icon-btn{margin-left:auto}.modal-back{position:fixed;inset:0;z-index:70;background:#050508b8;display:grid;place-items:center;padding:22px}.modal{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;width:min(770px,100%);padding:25px;max-height:92vh;overflow:auto;box-shadow:0 30px 100px #0009}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.modal-head h2{margin:0;font-size:22px}.modal-head button{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:8px}.filter-pills{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.notebox{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:16px;color:var(--muted);font-size:12px;line-height:1.7}.toast{position:fixed;z-index:90;bottom:22px;right:22px;background:var(--panel2);border:1px solid var(--line);border-left:3px solid var(--accent);padding:15px 18px;border-radius:8px;box-shadow:var(--shadow);color:var(--text);font-size:12px;max-width:330px}.footer{padding:36px 0;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.footer .shell{display:flex;align-items:center;justify-content:space-between;gap:16px}.footer-links{display:flex;gap:16px}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.download-box{max-width:760px;padding:29px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.download-box h2{font-size:29px}.download-row{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.download-row span{color:var(--muted)}.download-row b{font-weight:500}.preview-pill{display:inline-block;padding:6px 9px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);border-radius:6px;font-size:10px;font-weight:700}.light-only{display:none}html[data-theme=light] .light-only{display:inline}html[data-theme=light] .dark-only{display:none}html[dir=rtl] .side-link{text-align:right}html[dir=rtl] .sidebar{border-right:0;border-left:1px solid var(--line)}html[dir=rtl] .nav-right{margin-left:0;margin-right:auto}html[dir=rtl] .hero-card{transform:rotate(2deg)}html[dir=rtl] .gear-row .small-icon-btn{margin-left:0;margin-right:auto}
@media(max-width:1150px){.hero-grid{gap:28px}.intro h1{font-size:clamp(63px,7vw,93px)}.searchbox{display:none}.navlinks{gap:16px}.gear-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.shell,.profile-stage{width:calc(100% - 32px)}.hamb{display:grid}.navlinks{display:none;position:absolute;top:66px;left:0;right:0;background:var(--surface);border-bottom:1px solid var(--line);padding:15px;flex-direction:column;align-items:stretch;gap:0}.navlinks.visible{display:flex}.navlinks a{padding:12px}.nav-right{gap:6px}.hero-grid{grid-template-columns:1fr;gap:55px}.intro{padding:65px 0}.hero-preview{max-width:470px}.player-grid{grid-template-columns:repeat(2,1fr)}.dash{display:block}.sidebar{display:flex;flex-wrap:wrap;gap:6px;border-right:0;border-bottom:1px solid var(--line);padding:11px}.sidebar .side-label{display:none}.sideuser{width:100%}.side-link{width:auto}.dash-main{padding:30px 20px}.profile-top-right{flex-wrap:wrap}.public-layout-grid,.public-layout-grid.narrow{grid-template-columns:1fr}.footer .shell{flex-wrap:wrap}.status-grid{grid-template-columns:1fr}}
@media(max-width:600px){.brand{font-size:22px}.top-inner{gap:12px}.nav-right .btn.sm{display:none}.langselect{max-width:82px}.hero-grid{gap:40px}.intro h1{font-size:clamp(54px,11vw,75px)}.hero-points{gap:13px}.hero-points b{font-size:14px}.milestones .shell{grid-template-columns:repeat(2,1fr);gap:16px}.milestones .step:nth-child(2){border:0}.player-grid{grid-template-columns:1fr 1fr}.dash-head{align-items:flex-start;flex-direction:column}.form-grid,.task-grid,.dash-grid{grid-template-columns:1fr}.full{grid-column:auto}.profile-panel .cover{height:160px}.profile-header{padding:0 16px 20px}.profile-identity{flex-wrap:wrap;gap:8px}.profile-top-right{margin-left:0;width:100%;margin-top:8px}.profile-name{font-size:22px}.profile-stats{flex-wrap:wrap;gap:18px}.profile-tabs{overflow-x:auto}.section-block{padding:17px}.gear-list{grid-template-columns:1fr 1fr;gap:8px}.setting-cards{grid-template-columns:repeat(2,1fr)}.gear-picker{grid-template-columns:1fr}.decal{font-size:52px}.decal img{max-width:130px;max-height:130px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:after,*:before{transition:none!important}}

/* Keep the game tagline to two deliberate lines on desktop. */
@media(min-width:851px){.intro h1{font-size:clamp(58px,5.45vw,82px);letter-spacing:-.088em}.intro h1 span{white-space:nowrap}}

.profile-stage.wall-grid,.profile-stage.wall-dots{border-radius:14px;padding:17px;background-color:color-mix(in srgb,var(--bg) 90%,var(--accent))}.profile-stage.wall-grid{background-image:linear-gradient(color-mix(in srgb,var(--accent) 16%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent) 16%,transparent) 1px,transparent 1px);background-size:30px 30px}.profile-stage.wall-dots{background-image:radial-gradient(color-mix(in srgb,var(--accent) 29%,transparent) 1px,transparent 2px);background-size:24px 24px}

@media(max-width:1050px){.nav-right .loginbtn{display:none}}

/* V4 profile and appearance editor */
.dash-main.dash-appearance{padding:30px clamp(16px,2.8vw,50px) 80px;max-width:none;min-width:0}
.appearance-layout{display:grid;grid-template-columns:minmax(320px,385px) minmax(0,1fr);gap:24px;align-items:start;max-width:1680px}
.editor-controls{min-width:0}.editor-toolbar{display:flex;gap:8px;margin-bottom:15px}.editor-toolbar .btn{font-size:12px}
.presets-v4{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;background:var(--surface);padding:14px;border:1px solid var(--line);border-radius:12px}
.preset-v4{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:9px;text-align:left;min-width:0;padding:7px 7px 10px}.preset-v4.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.preset-v4 strong{display:block;margin-top:8px;font-size:12px}.preset-v4 small{display:block;color:var(--soft);font-size:10px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preset-art{display:block;height:72px;position:relative;background:var(--preset-bg);border:1px solid #41414a;border-radius:7px;padding:9px}.preset-art:before{content:'';display:block;width:40%;height:8px;background:var(--preset-accent);border-radius:4px;opacity:.8}.preset-art i,.preset-art em,.preset-art b{position:absolute;border:1px solid var(--preset-accent);background:color-mix(in srgb,var(--preset-accent) 12%,var(--preset-bg));border-radius:5px}.preset-art i{left:9px;bottom:9px;width:52%;height:32px}.preset-art em{right:9px;top:9px;width:33%;height:25px}.preset-art b{right:9px;bottom:9px;width:33%;height:17px}
.saved-title{display:flex;justify-content:space-between;align-items:center;margin:16px 0 9px;font-weight:700;font-size:12px}.saved-title small{color:var(--soft)}.saved-looks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.saved-looks .choice{padding:10px 5px;font-size:10px}.editor-save{display:flex;align-items:center;gap:11px;margin:13px 0 25px}.editor-save span{color:var(--soft);font-size:11px;max-width:150px}
.editor-group{border-top:1px solid var(--line);padding:10px 0}.editor-group:last-child{border-bottom:1px solid var(--line)}.editor-group>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:8px 0 11px}.editor-group>summary::-webkit-details-marker{display:none}.editor-group>summary b{display:block;font-size:14px}.editor-group>summary small{display:block;color:var(--soft);font-size:11px;margin-top:4px}.editor-group>summary .disclosure{font-size:20px;color:var(--soft)}.editor-group[open]>summary .disclosure{transform:rotate(180deg)}.editor-group-body{padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-bottom:10px}.edit-label{display:block;font-size:11px;color:var(--muted);margin:13px 0 9px}.edit-label:first-child{margin-top:0}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.choice{background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:7px;padding:10px 8px;font-size:11px;min-width:0;overflow-wrap:anywhere}.choice.selected{border-color:var(--accent);color:var(--text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 22%,transparent)}.choice:disabled{opacity:.4;cursor:not-allowed}.choice:hover:not(:disabled){border-color:var(--accent)}.swatches{display:flex;gap:7px;flex-wrap:wrap}.swatch{width:25px;height:25px;border-radius:50%;border:2px solid transparent;outline:1px solid transparent}.swatch.selected{outline:2px solid var(--text);outline-offset:2px}.two-palettes{display:grid;gap:13px}.editor-section-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:9px 0}.editor-section-row b{font-size:12px}.editor-section-row>div{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.mini-control{background:var(--panel);border:1px solid var(--line);border-radius:5px;color:var(--text);width:27px;height:27px}.upload-line{display:block;background:var(--panel);border:1px dashed var(--line);padding:10px 12px;border-radius:7px;color:var(--text);font-size:11px;cursor:pointer}.quiet{font-size:11px;color:var(--soft);line-height:1.65;margin:10px 0 4px}
.editor-preview-wrap{min-width:0;position:sticky;top:85px;max-height:calc(100vh - 94px);overflow-y:auto;scrollbar-width:thin}.preview-caption{display:flex;justify-content:space-between;align-items:center;gap:9px;color:var(--muted);font-size:12px;margin:0 0 11px}.preview-caption a{color:var(--accent)}
.profile-stage{--p-bg:var(--panel);--p-text:var(--text);--p-line:var(--line);--p-muted:var(--muted);--p-card:var(--panel);--profile-grad-1:#607aa8;--profile-grad-2:#a27fb9;background:var(--p-bg);border:1px solid var(--p-line);border-radius:14px;padding:14px;max-width:1170px;min-height:420px;color:var(--p-text);isolation:isolate;overflow:hidden}.profile-stage.profile-embedded{width:100%;margin:0;min-height:600px;padding:13px}.profile-stage.profile-mode-dark{--p-bg:#0c0d12;--p-text:#f5f6fa;--p-muted:#b0b4c3;--p-card:#181a24;--p-line:#343643}.profile-stage.profile-mode-light{--p-bg:#f5f4f2;--p-text:#151721;--p-muted:#535760;--p-card:#fff;--p-line:#d8d7db}.profile-stage.profile-bg-gradient{background:radial-gradient(ellipse at 35% 60%,color-mix(in srgb,var(--profile-grad-1) 25%,transparent),transparent 64%),radial-gradient(ellipse at 75% 18%,color-mix(in srgb,var(--profile-grad-2) 24%,transparent),transparent 65%),var(--p-bg)}.profile-stage.profile-bg-aurora{background:linear-gradient(125deg,color-mix(in srgb,var(--profile-grad-1) 39%,var(--p-bg)),var(--p-bg) 60%,color-mix(in srgb,var(--profile-grad-2) 40%,var(--p-bg)))}.profile-stage.profile-bg-mesh{background:radial-gradient(circle at 20% 10%,color-mix(in srgb,var(--profile-grad-1) 31%,transparent),transparent 51%),radial-gradient(circle at 85% 77%,color-mix(in srgb,var(--profile-grad-2) 32%,transparent),transparent 55%),var(--p-bg)}.profile-stage.profile-bg-grid{background-image:linear-gradient(color-mix(in srgb,var(--accent) 17%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent) 17%,transparent) 1px,transparent 1px);background-size:28px 28px;background-color:var(--p-bg)}.profile-stage.profile-bg-dots{background-image:radial-gradient(color-mix(in srgb,var(--accent) 32%,transparent) 1px,transparent 2px);background-size:20px 20px;background-color:var(--p-bg)}.profile-stage.motion-breathe{animation:profileBreathe 7s ease-in-out infinite}.profile-stage.motion-wave{animation:profileWave 11s ease-in-out infinite}@keyframes profileBreathe{50%{background-position:30px 10px}}@keyframes profileWave{50%{filter:hue-rotate(17deg)}}
.profile-stage .profile-canvas{position:relative}.profile-stage .profile-panel,.profile-stage .section-block,.profile-stage .profile-aside{background:var(--p-card);border:1px solid var(--p-line);color:var(--p-text)}.profile-stage .profile-panel{border-radius:10px}.profile-stage .cover{height:176px}.profile-stage .profile-header{padding:0 22px 22px}.profile-stage .profile-stats{border-color:var(--p-line)}.profile-stage .handle,.profile-stage .profile-desc,.profile-stage .profile-meta,.profile-stage .section-empty,.profile-stage .profile-stats small{color:var(--p-muted)}.profile-stage .profile-name{color:var(--accent)}.profile-stage .avatar{border-color:var(--p-card)}.profile-stage.ring-none .avatar{box-shadow:none}.profile-stage.ring-accent .avatar{box-shadow:0 0 0 2px var(--accent)}.profile-stage.ring-dual .avatar{box-shadow:0 0 0 2px var(--accent),0 0 0 4px var(--profile-grad-2)}.profile-stage.ring-glow .avatar{box-shadow:0 0 19px 3px var(--accent)}.profile-content{display:flex;flex-direction:column;gap:14px;margin-top:16px}.profile-content.two-column{display:grid;grid-template-columns:minmax(150px,.30fr) minmax(0,.70fr);align-items:start}.profile-aside{padding:20px;border-radius:10px}.profile-aside-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;margin-bottom:12px}.profile-aside p{color:var(--p-muted);font-size:12px;line-height:1.65}.profile-quickstat{border-top:1px solid var(--p-line);padding:11px 0;font-size:11px;display:flex;justify-content:space-between;gap:5px}.profile-quickstat span{color:var(--p-muted)}.profile-stage .section-stack{margin-top:0;gap:14px}.profile-stage .section-block{padding:20px}.profile-stage .setting-card{background:color-mix(in srgb,var(--p-card) 83%,var(--profile-grad-1));border:1px solid var(--p-line);color:var(--p-text)}.profile-stage.cards-glass .section-block,.profile-stage.cards-glass .profile-panel,.profile-stage.cards-glass .profile-aside{background:color-mix(in srgb,var(--p-card) 76%,transparent);backdrop-filter:blur(12px)}.profile-stage.cards-outline .section-block,.profile-stage.cards-outline .profile-panel,.profile-stage.cards-outline .profile-aside{background:color-mix(in srgb,var(--p-bg) 89%,transparent);border-color:var(--accent)}.profile-stage.corners-square .section-block,.profile-stage.corners-square .profile-panel,.profile-stage.corners-square .profile-aside{border-radius:2px}.profile-stage.font-mono{font-family:Consolas,'Courier New',monospace}.profile-stage.font-space{font-family:'Trebuchet MS','Segoe UI',sans-serif}.profile-stage.font-serif{font-family:Georgia,serif}.profile-stage.textcase-upper .profile-name,.profile-stage.textcase-upper .profile-meta{text-transform:uppercase}.profile-stage.textcase-lower .profile-name,.profile-stage.textcase-lower .profile-meta{text-transform:lowercase}.profile-stage.headings-upper .section-block h2{text-transform:uppercase}.profile-stage.headings-lower .section-block h2{text-transform:lowercase}.profile-stage.headings-snake .section-block h2{text-transform:lowercase;letter-spacing:.075em}.profile-stage .namefx-gradient{background:linear-gradient(90deg,var(--accent),var(--profile-grad-2));-webkit-background-clip:text;background-clip:text;color:transparent}.profile-stage .namefx-glow{text-shadow:0 0 12px var(--accent)}.profile-stage .namefx-shimmer{background:linear-gradient(110deg,var(--accent),#fff,var(--accent));background-size:180% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 2s linear infinite}.profile-stage .namefx-rainbow{background:linear-gradient(90deg,#fb6b93,#ffbe66,#72d4b2,#79afff,#bf84f8);-webkit-background-clip:text;background-clip:text;color:transparent}.profile-stage .namefx-typewriter{border-right:2px solid var(--accent);width:fit-content;padding-right:3px;animation:caret .8s step-end infinite}@keyframes shimmer{to{background-position:180% 0}}@keyframes caret{50%{border-color:transparent}}
.dlpvp-click-spark{pointer-events:none;position:fixed;width:0;height:0;z-index:999;animation:spark-out .49s ease-out forwards}.dlpvp-click-spark i{position:absolute;display:block;width:2px;height:12px;left:-1px;top:-22px;border-radius:4px;background:var(--spark);transform-origin:1px 22px}.dlpvp-click-spark i:nth-child(2){transform:rotate(45deg)}.dlpvp-click-spark i:nth-child(3){transform:rotate(90deg)}.dlpvp-click-spark i:nth-child(4){transform:rotate(135deg)}.dlpvp-click-spark i:nth-child(5){transform:rotate(180deg)}.dlpvp-click-spark i:nth-child(6){transform:rotate(225deg)}.dlpvp-click-spark i:nth-child(7){transform:rotate(270deg)}.dlpvp-click-spark i:nth-child(8){transform:rotate(315deg)}.dlpvp-click-spark.spark-bright i{height:18px;top:-27px;box-shadow:0 0 9px var(--spark)}@keyframes spark-out{0%{opacity:1;scale:.4}70%{opacity:.8;scale:1.25}100%{opacity:0;scale:1.5}}
@media(max-width:1180px){.appearance-layout{grid-template-columns:1fr}.editor-preview-wrap{position:static;max-height:none}.editor-controls{max-width:100%}.editor-preview-wrap .profile-stage{max-width:none}}
@media(max-width:600px){.presets-v4{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px}.appearance-layout{gap:18px}.editor-preview-wrap .profile-stage{padding:7px}.profile-content.two-column{display:flex;flex-direction:column}.profile-stage .profile-header{padding:0 12px 17px}.profile-stage .profile-identity{gap:8px}.profile-stage .profile-desc{line-height:1.4}.profile-stage .profile-stats{gap:11px}.profile-stage .profile-panel .cover{height:125px}}
@media(prefers-reduced-motion:reduce){.profile-stage.motion-breathe,.profile-stage.motion-wave,.profile-stage .namefx-shimmer,.profile-stage .namefx-typewriter,.dlpvp-click-spark{animation:none!important}}
/* V5: Lightweight community pages. Shared CSS tokens support dark and light modes. */
.language-field{display:flex;gap:7px;align-items:center;padding-left:10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);min-width:118px}
.language-field .langselect{border:0;background:transparent;min-width:84px;padding:10px 4px;color:var(--text);font-size:12px;cursor:pointer}
.notif-link{display:flex;align-items:center;gap:4px;justify-content:center;border:1px solid var(--line);background:var(--panel);border-radius:9px;min-width:38px;height:37px;font-size:24px;line-height:1}
.notif-link:hover{border-color:var(--accent)}.notif-count{border-radius:9px;background:var(--accent);color:#fff;padding:2px 5px;font-size:10px;font-weight:800}
.community-shell{max-width:820px;margin-inline:auto;display:flex;flex-direction:column;gap:16px;min-height:50vh}.community-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.community-head h1{font-size:38px;letter-spacing:-.06em;margin:9px 0}.community-head .muted{font-size:12px}
.compose{display:flex;flex-direction:column;gap:12px}.compose b{font-size:16px}.compose textarea,.compose input,.comment-form input{min-width:0;width:100%;border:1px solid var(--line);background:var(--input);color:var(--text);border-radius:10px;padding:12px 14px;resize:vertical}.compose textarea{min-height:96px}.compose button{align-self:flex-end}
.post-list{display:flex;flex-direction:column;gap:16px}.community-post{padding:20px!important}.post-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-compact{display:flex;align-items:center;gap:9px;min-width:0;font-weight:750}.user-compact img{width:39px;height:39px;border-radius:50%;object-fit:cover;background:var(--panel2)}.user-compact span{display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}.user-compact small{font-weight:400;color:var(--muted)}.user-compact:hover{color:var(--accent)}
.post-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:16px 0;font-size:13px}.post-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.video-consent{aspect-ratio:16/9;border-radius:12px;background:linear-gradient(130deg,#151923,#2d2026);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;margin-top:16px}.video-consent iframe{width:100%;height:100%;border:0}.video-play{background:#181a1f;color:#fff;border:1px solid #61636a;border-radius:12px;padding:14px 24px;font-weight:750;display:flex;gap:12px;align-items:center}.video-play span{color:#ed3c49;font-size:24px}.video-play:hover{border-color:#ed3c49}
.comment-list{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.comment{padding:8px 10px;border:1px solid var(--line);border-radius:9px;display:flex;flex-wrap:wrap;gap:10px;overflow-wrap:anywhere}.comment a{font-weight:750;color:var(--text)}.comment span{color:var(--muted)}.comment-form{display:flex;gap:7px}.comment-form .btn{flex-shrink:0}
.social-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:13px 0}.social-row:first-of-type{border-top:0}.social-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.notification-list .muted{font-size:12px}.community-shell>.panel h2{font-size:17px;margin-bottom:14px}.center{text-align:center}.community-head a{flex-shrink:0}
/* Avoid expensive permanent filters and animations for lower-end clients. */
.profile-stage.cards-glass .section-block,.profile-stage.cards-glass .profile-panel,.profile-stage.cards-glass .profile-aside{backdrop-filter:none}
@media(max-width:1050px){.top-inner{gap:12px}.navlinks{gap:12px}.searchbox{display:none}.nav-right{gap:5px}}
@media(max-width:650px){.community-shell{padding-bottom:22px}.community-head h1{font-size:30px}.social-row{align-items:flex-start;flex-direction:column}.comment-form{flex-direction:column}.language-field{min-width:0}.notif-link{min-width:35px}.community-post{padding:13px!important}.nav-right .loginbtn{font-size:10px}.nav-right .langselect{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* V6: Site-native language selector and searchable country picker */
.language-picker,.country-picker{position:relative;isolation:isolate}
.language-trigger,.country-trigger{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:9px;background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:10px;padding:10px 12px;min-height:38px;font-weight:650;font-size:12px;cursor:pointer}
.language-trigger:hover,.country-trigger:hover{border-color:var(--accent)}.language-chevron{font-size:15px;opacity:.65;margin-left:auto}.language-globe{opacity:.65}
.language-menu{position:absolute;z-index:90;right:0;top:calc(100% + 9px);width:195px;max-height:280px;overflow:auto;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:6px;box-shadow:0 15px 35px #0006}
.language-choice{appearance:none;border:0;background:transparent;color:var(--text);width:100%;display:flex;align-items:center;gap:12px;text-align:left;border-radius:8px;padding:11px 9px;font-size:12px}.language-choice:hover,.language-choice:focus-visible,.language-choice.selected{background:var(--panel2)}.language-choice.selected{color:var(--accent)}.language-code{color:var(--muted);font-weight:800;font-size:10px;min-width:22px}.language-tick{margin-left:auto}
.country-trigger{width:100%;font-weight:500;text-align:left}.country-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:210px;z-index:70;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 45px #0007}
.country-search{width:100%;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:11px;margin-bottom:7px;outline-offset:2px}.country-options{max-height:270px;overflow:auto;overscroll-behavior:contain}.country-row{appearance:none;display:flex;gap:11px;align-items:center;width:100%;border:0;border-radius:7px;background:transparent;color:var(--text);padding:9px 7px;text-align:left;font-size:12px}.country-row:hover,.country-row:focus-visible,.country-row.selected{background:var(--panel2)}.country-row small{color:var(--muted);margin-left:auto}.country-flag{display:inline-block;width:24px;height:16px;object-fit:cover;border-radius:2px;flex-shrink:0}.country-flag-placeholder{width:24px;text-align:center}.cover-image{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
@media(max-width:750px){.language-name{max-width:75px;overflow:hidden;text-overflow:ellipsis}.language-trigger{padding:8px}.language-menu{right:0}}

.country-flag-wrap{position:relative;flex:0 0 24px;width:24px;height:17px;display:inline-flex;align-items:center;justify-content:center}.country-flag-wrap .country-flag{position:absolute;inset:0;z-index:2}.flag-fallback{font-size:16px;line-height:1}
