.portrait-options{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--accent) 5%,transparent)}.portrait-options .ship-check{display:flex;align-items:center;gap:10px;line-height:1.5}.portrait-options input[type=checkbox]{width:20px;flex:0 0 20px}.portrait-options p{font-size:12px;line-height:1.6}.king-portrait-choice[hidden]{display:none!important}.profile-title.portrait-breakout>.avatar,.profile-upload-preview.avatar.portrait-breakout{position:relative;overflow:visible!important;isolation:isolate}.profile-title.portrait-breakout>.avatar>img,.profile-upload-preview.avatar.portrait-breakout>img{position:absolute;left:-8%;bottom:-1px;width:116%!important;height:116%!important;max-width:none!important;object-fit:contain!important;border-radius:0!important;filter:drop-shadow(0 4px 5px #0004);z-index:2}.portrait-breakout .profile-motion-frame{overflow:visible;border-radius:0;transform:scale(1.12);transform-origin:center bottom}.editor-glass-studio{display:block;width:100%;margin:16px 0;min-height:44px}.profile-title>.prism-launch{display:none!important}
/* A viewport-level backdrop is independent of document scroll and header geometry. */
#kingWorldBackdrop{display:none}body.king-profile-mode{isolation:isolate;--accent:#ffad50;--geo-action:#ffad50;--geo-aura:#ff7f28;--geo-glass:#100a13dd;--geo-ink:#fff2df;--geo-muted:#d7bfce;--geo-edge:#f69b4d80;--geo-shadow:0 7px 26px #ff720014;--text:#fff2df;--secondary:#d7bfce;--line:#f69b4d80;--panel:#110a14;--bg:#09050c;background:#09050c!important;color:#fff2df}body.king-profile-mode:before,body.king-profile-mode:after{display:none!important}body.king-profile-mode #kingWorldBackdrop{display:block!important;position:fixed;inset:0;width:100%;height:100vh;height:100lvh;z-index:0;overflow:hidden;pointer-events:none;transform:none!important;animation:none!important}#kingWorldBackdrop>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 35%;transform:none;animation:none;filter:none}#kingWorldBackdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(#08030c10,#08030c12 40%,#08030c66);pointer-events:none}body.king-profile-mode #geoEnvironment{visibility:hidden}body.king-profile-mode .shell{position:relative;z-index:1;display:block;max-width:none;padding:28px 4% 150px;background:transparent!important}body.king-profile-mode .shell>.side,body.king-profile-mode .shell>.right{display:none}body.king-profile-mode #content{max-width:760px;margin:0 auto;position:relative;background:transparent!important}.king-profile-world{background:transparent!important;color:#fff2df!important;padding:0!important;margin:0!important}
/* An ID raises specificity above the shared Geo glass :is() rule, which contains IDs. */
body.king-profile-mode #content .world-page>.card.king-profile-hero{position:relative!important;isolation:isolate;overflow:visible!important;padding:24px 6% 0!important;margin:0 0 16px!important;aspect-ratio:auto!important;min-height:0!important;height:auto!important;border:0!important;border-radius:24px!important;background:linear-gradient(#09061000,#09061075 40%,#090610d9 72%)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:#fff2df!important}.king-profile-hero:before,.king-profile-hero:after,.king-profile-hero>.profile-cover,.king-profile-hero .geo-panel-ornament{display:none!important}.king-profile-hero .profile-title{position:relative!important;inset:auto!important;width:100%;height:auto!important;display:flex!important;flex-direction:column;align-items:center;gap:0;margin:0!important;padding:0!important;text-align:center;background:none!important;color:#fff2df!important}.king-profile-hero .profile-title>.row{display:contents!important}.king-profile-hero .profile-title>.king-portrait{order:0;position:relative!important;left:auto!important;top:auto!important;display:block!important;width:clamp(180px,55vw,300px)!important;height:auto!important;aspect-ratio:1!important;flex:none;margin:0 auto 14px!important;padding:0!important;border:0!important;outline:0!important;border-radius:50%!important;background:transparent!important;overflow:visible!important;box-shadow:0 0 32px #ff6e002a!important;opacity:1!important}.king-profile-hero .king-portrait>img{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;aspect-ratio:1;max-width:100%!important;object-fit:contain!important;border-radius:50%!important;opacity:1!important;visibility:visible!important;filter:drop-shadow(0 3px 9px #ff660044)}.king-profile-hero h1.king-name{order:1;position:relative!important;inset:auto!important;width:auto!important;height:auto!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;font:900 clamp(42px,9vw,74px)/1.1 Georgia,serif!important;letter-spacing:-.05em;margin:0 0 10px!important;padding:0!important;color:#ffc55a!important;background:none!important;text-shadow:0 2px #552108,0 -1px #fff0b7,0 0 16px #ff6c0066;overflow-wrap:anywhere}.king-name .post-identity-badges{display:inline-flex;gap:5px}.king-name .post-identity-badges img{width:clamp(23px,4vw,34px)!important;height:clamp(23px,4vw,34px)!important}.king-profile-hero .king-handle{order:2;position:static!important;width:auto!important;height:auto!important;font:500 14px system-ui;color:#e5d9e2!important;background:none!important;margin:0 0 8px}.king-profile-hero .king-identity-role{order:3;position:static!important;width:auto!important;height:auto!important;font:650 9px/1.6 system-ui!important;letter-spacing:.2em;color:#dbcbda!important;margin:0 0 15px!important;background:none!important}.king-profile-hero .profile-title>p:not(.king-identity-role){order:4;position:static!important;width:100%!important;height:auto!important;font:400 14px/1.6 system-ui!important;color:#fff0dc!important;margin:0 0 18px!important;padding:12px 16px!important;border-block:1px solid #ffad4a55;background:#0c0811a3!important;border-radius:10px}.king-profile-hero .social-stats{order:5;position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%!important;height:auto!important;gap:3px!important;margin:0 0 18px!important;padding:10px 0!important;border:0!important;background:#090610a8!important;border-radius:12px}.king-profile-hero :is(.social-stat,.king-live-stat){position:static!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:0!important;gap:5px;padding:6px 0!important;margin:0!important;background:none!important;border:0!important;color:#fff4e7!important;line-height:1.3!important}.king-profile-hero :is(.social-stat,.king-live-stat)>strong{font:800 clamp(11px,2.8vw,22px)/1.2 system-ui!important;letter-spacing:-.04em;color:#fff4e7!important}.king-profile-hero :is(.social-stat,.king-live-stat)>span{font:500 10px/1.4 system-ui!important;color:#e0cfdf!important}.king-profile-hero #editProfile{order:6;position:static!important;width:100%!important;height:auto!important;min-height:46px;margin:0 0 12px!important;background:linear-gradient(130deg,#ffe3a6,#ffae48 50%,#f26b24)!important;color:#21100b!important;border:1px solid #fff2bc!important;border-radius:28px;box-shadow:inset 0 1px #ffffff8a,0 0 18px #ff6b0038!important;font:800 14px system-ui!important}.king-profile-nav{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(4,1fr);width:100%!important;height:auto!important;margin:16px 0 0!important;gap:0!important;padding:0!important;background:#09070fd9!important;border-block:1px solid #f59a4c77}.king-profile-nav button{min-width:0;min-height:44px;padding:12px 4px;font:650 12px system-ui;color:#e8dbe7;border-bottom:2px solid transparent}.king-profile-nav button:first-child{border-bottom-color:#ff9b40;color:#ffe8bc}.king-profile-utility{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:14px;margin:0 0 14px;background:#110a16c9;border:1px solid #ff9b4038;border-radius:16px}.king-profile-utility .social-manage{display:flex;gap:8px;flex-wrap:wrap}.king-profile-utility :is(.social-manage button,[data-manage-content]){position:static!important;padding:10px 14px!important;border:1px solid #ff9b4050!important;background:#160c1cc9!important;color:#ffe1bd!important;font-size:11px}.king-profile-utility .social-preview-note{display:block;width:100%;font-size:10px;color:#c6b7c4;text-align:center}.king-studio{width:100%;margin:0;color:#e2b888}.king-studio>summary{cursor:pointer;min-height:36px;display:grid;place-items:center;font:600 11px system-ui}.king-studio .profile-studio-shortcuts{padding:10px!important;margin:0!important;background:none!important;box-shadow:none!important}.king-studio .profile-studio-shortcuts>span{display:none}.king-studio .profile-studio-shortcuts>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.king-studio .profile-studio-shortcuts button{padding:10px!important;min-height:36px;font-size:11px!important}.king-studio .profile-studio-shortcuts button small{display:none}.king-profile-world .world-sections{position:relative;margin:16px 0 0;background:none!important}.king-profile-world .world-sections:before{display:none!important}body.king-profile-mode #content .king-profile-world .world-sections :is(.card,.module){background:#100914cf!important;border-color:#f59a4c55!important;color:#fff2df!important;box-shadow:inset 0 1px #fff4db20!important;backdrop-filter:blur(12px)}

.king-profile-hero .profile-title>.label{display:none}.king-profile-hero .social-stats{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))!important}

/* The stationary scene and scrolling portrait share the same ring projection. */
body.king-profile-mode .shell{padding-top:0!important}
body.king-profile-mode #kingWorldBackdrop>img{position:absolute;top:0;max-width:none!important;object-fit:fill;object-position:center;}
body.king-profile-mode #content .world-page>.card.king-profile-hero{padding-top:var(--king-top-gap,100px)!important}
body.king-profile-mode #content .king-profile-hero .profile-title>.king-portrait{width:var(--king-portrait-size,260px)!important;min-width:var(--king-portrait-size,260px)!important;max-width:none!important;height:var(--king-portrait-size,260px)!important;min-height:var(--king-portrait-size,260px)!important;max-height:var(--king-portrait-size,260px)!important;--avatar-size:var(--king-portrait-size,260px);flex:0 0 auto!important;clip-path:circle(50% at 50% 50%);transform:none!important;overflow:hidden!important;box-shadow:none!important;border:0!important;outline:0!important;margin-bottom:18px!important;}
body.king-profile-mode #content .king-profile-hero .king-portrait[data-king-portrait=independent]>img{position:absolute!important;inset:-21% auto auto -21%!important;width:142%!important;height:142%!important;max-width:none!important;object-fit:cover!important;border-radius:0!important;filter:none!important;transform:none!important;}
body.king-profile-mode #content .king-profile-hero h1.king-name{width:100%!important;max-width:570px!important;text-shadow:none!important;line-height:1!important;}
body.king-profile-mode #content h1.king-name>img.king-name-art{display:block!important;width:82%!important;max-width:426px!important;height:auto!important;aspect-ratio:3!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;filter:none!important;}

/* Preserve the supplied scene pixels; separation lives on the foreground only. */
body.king-profile-mode #kingWorldBackdrop:after{background:none!important}
body.king-profile-mode #content .world-page>.card.king-profile-hero{background:transparent!important}
body.king-profile-mode #content h1.king-name>img.king-name-art{filter:drop-shadow(0 2px 4px #09020bc0)!important}
body.king-profile-mode #content .king-profile-hero :is(.king-handle,.king-identity-role){text-shadow:0 1px 3px #050108,0 2px 7px #050108b3}
body.king-profile-mode #content .king-profile-hero :is(.social-stats,.profile-title>p:not(.king-identity-role)){box-shadow:0 3px 12px #07020b38!important}

/* A fine warm rim echoes the stationary artwork without changing the crop. */
body.king-profile-mode #content .king-profile-hero .profile-title>.king-portrait{border:3px solid #c9500c!important;box-shadow:inset 0 0 0 1px #ef7c245c,0 0 5px #ff6500a0,0 0 13px #f35b004d!important;clip-path:none;isolation:isolate;}
body.king-profile-mode #content .king-profile-hero .king-portrait:after{content:'';position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px #f2792866,inset 0 0 8px #d94b0038;pointer-events:none;z-index:3;}
.king-profile-tools{order:7;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%;margin:4px 0 0;text-align:left;}
.king-tool{min-width:0;border:1px solid #ffad5055;border-radius:12px;background:#120a18b8;box-shadow:0 2px 7px #07020b22;}
.king-tool>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;padding:9px 6px;font:650 11px/1.3 system-ui;color:#ffe1ba;text-align:center;}
.king-tool>summary::-webkit-details-marker{display:none}.king-tool>summary:after{content:'⌄';opacity:.65}.king-tool[open]>summary:after{content:'⌃'}
.king-tool>summary:focus-visible{outline:2px solid #ffbd69;outline-offset:2px;border-radius:10px}
.king-tool[open]{grid-column:1/-1}.king-tool[open]>summary{justify-content:space-between;padding-inline:14px;border-bottom:1px solid #ffad5038}
body.king-profile-mode #content .king-tool>:is(.card,.module){margin:0!important;padding:14px!important;border:0!important;border-radius:0 0 12px 12px!important;background:transparent!important;box-shadow:none!important;}
.king-tool :is(h2,h3){font-size:18px;margin:5px 0 10px}.king-tool .label{font-size:9px}.king-tool .media-tabs{gap:5px}.king-tool .media-tabs button{padding:8px 10px;font-size:11px}.king-tool .top-friends-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:360px){.king-profile-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Only the portrait ornament travels with the normal-flow identity header. */
body.king-profile-mode #content .king-profile-hero .profile-title{isolation:isolate}
.king-scrolling-frame{position:absolute!important;pointer-events:none;z-index:0;left:50%;top:var(--king-scene-top);width:var(--king-scene-width);height:var(--king-scene-height);transform:translateX(-50%);background:url('/assets/pumpkin-king/stationary-world-hd.png') center top/100% 100% no-repeat;mask-image:radial-gradient(ellipse var(--king-frame-rx) var(--king-frame-ry) at 50% var(--king-frame-center),#000 79%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse var(--king-frame-rx) var(--king-frame-ry) at 50% var(--king-frame-center),#000 79%,transparent 100%);}
.king-profile-hero .profile-title>:not(.king-scrolling-frame){z-index:1}
