:root{--bg:#06102e;--panel:rgba(11,29,83,.86);--panel2:rgba(18,47,120,.76);--line:rgba(158,211,255,.20);--text:#f7f9ff;--muted:#bccaf1;--blue:#4abfff;--violet:#8b69ff;--pink:#ff67d3;--green:#76f58c;--gold:#ffc247;--danger:#ff7f8c;--shadow:0 22px 70px rgba(0,0,0,.28);--radius:24px}
@media(min-width:901px){.map-options,.map-quick-switch{grid-template-columns:repeat(4,minmax(0,1fr))}}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 15% 5%,#153b9d 0,transparent 28%),radial-gradient(circle at 88% 0,#4b2d93 0,transparent 22%),linear-gradient(180deg,#08133d,#06102e 68%)}button{font:inherit}.hidden{display:none!important}.app-shell{min-height:100vh;padding:14px}.topbar{max-width:1760px;margin:0 auto 14px;height:68px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#45e6ef,#796bff,#ff67ca);position:relative;box-shadow:0 10px 28px rgba(105,113,255,.25)}.brand-mark i{position:absolute;top:12px;width:5px;border-radius:99px;background:white}.brand-mark i:first-child{left:12px;height:18px}.brand-mark i:last-child{right:12px;height:24px;top:9px}.brand strong{display:block;font-size:18px}.brand small{display:block;color:#aebee7;margin-top:2px}.top-resources{display:flex;justify-content:center;gap:10px;min-width:0}.resource{display:flex;gap:8px;align-items:center;padding:9px 13px;border:1px solid var(--line);border-radius:14px;background:rgba(19,49,121,.72);font-weight:800}.top-actions{display:flex;gap:9px}.language-btn,.icon-btn,.avatar-btn{height:44px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:white;display:grid;place-items:center;cursor:pointer}.language-btn{min-width:52px;padding:0 11px;background:linear-gradient(135deg,rgba(62,144,243,.68),rgba(108,92,241,.68));font-size:12px;font-weight:900}.icon-btn,.avatar-btn{width:44px}.avatar-btn{padding:3px;overflow:hidden}.avatar-btn img{width:100%;height:100%;object-fit:cover;border-radius:11px}
.layout{max-width:1760px;margin:0 auto;display:grid;grid-template-columns:280px minmax(620px,1fr) 320px;gap:14px;align-items:start}.left-rail,.right-rail{display:grid;gap:12px}.glass-card{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);backdrop-filter:blur(16px)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.card-head h2{font-size:18px;margin:0}.card-head span{font-size:11px;color:#b9c9ed}.stats-card p{font-size:12px;line-height:1.55;color:var(--muted);margin:0 0 14px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{padding:11px 8px;border-radius:15px;background:rgba(255,255,255,.055);text-align:center}.stat strong{display:block;font-size:20px}.stat span{font-size:10px;color:#b8c8eb}.segment{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:4px;border-radius:13px;background:rgba(255,255,255,.04);margin-bottom:12px}.segment button{border:0;border-radius:10px;background:transparent;color:#aebee5;padding:8px 4px;font-size:11px;cursor:pointer}.segment button.active{background:linear-gradient(135deg,#3e90f3,#6c5cf1);color:white}.mission-list{display:grid;gap:12px}.mission-row{display:grid;gap:6px}.mission-top{display:flex;justify-content:space-between;font-size:12px}.mission-top b{font-weight:800}.mission-reward{color:#cfff72}.progress{height:7px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}.progress i{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#42c8ff,#b77cff,#ff6dce)}.mission-sub{font-size:10px;color:#9fb0d8}.yield-row{display:flex;align-items:end;justify-content:space-between;gap:10px}.yield-row span{display:block;color:#b9c9ed;font-size:11px}.yield-row strong{font-size:34px}.yield-delta{color:#78f89a;font-size:11px}.earnings-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.earnings-grid>div{padding:10px;border-radius:14px;background:rgba(255,255,255,.05)}.earnings-grid span{display:block;font-size:9px;color:#aebfe7}.earnings-grid strong{font-size:16px}.primary,.secondary{border:0;color:white;cursor:pointer;font-weight:800}.primary{background:linear-gradient(135deg,#ff8b58,#9765ff);padding:12px 16px;border-radius:14px}.wide{width:100%}.fine-print{font-size:9px;line-height:1.5;color:#8999bf;margin:9px 0 0}
.center-column{min-width:0}.scene-toolbar{min-height:68px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.digital-self-chip{display:flex;align-items:center;gap:10px;background:rgba(10,33,87,.8);border:1px solid var(--line);border-radius:18px;padding:8px 13px;min-width:300px}.digital-self-chip img{width:46px;height:46px;border-radius:13px;object-fit:cover}.digital-self-chip strong{display:block;font-size:14px}.digital-self-chip span{display:block;color:#79ff9a;font-size:11px;font-weight:800}.digital-self-chip span b{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:5px}.digital-self-chip small{display:block;color:#9eb0d8;font-size:9px;margin-top:2px}.scene-actions{display:flex;gap:8px}.secondary{background:rgba(16,52,126,.88);border:1px solid rgba(126,193,255,.22);padding:11px 15px;border-radius:14px}.scene-wrap{position:relative;width:100%;aspect-ratio:1672/941;border-radius:30px;overflow:hidden;border:1px solid rgba(161,216,255,.18);box-shadow:var(--shadow);background:#3559be}.vector-scene{position:absolute;inset:0}.vector-scene .map-background{width:100%;height:100%;display:block;object-fit:cover}.plot-grid{position:absolute;left:18.4%;right:15.8%;bottom:20.4%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(3px,.55vw,10px);z-index:5}.plot-card{position:relative;min-width:0;aspect-ratio:1.38;border-radius:16px;background:linear-gradient(180deg,rgba(43,23,7,.08),rgba(43,23,7,.28));border:2px solid rgba(84,220,255,.34);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 8px 18px rgba(0,0,0,.16);padding:5px;cursor:pointer;overflow:hidden;transition:border-color .18s,box-shadow .18s,transform .18s}.plot-card:hover{border-color:rgba(130,241,255,.72);transform:translateY(-2px)}.plot-card.ready{border-color:#4de7b9;box-shadow:0 0 0 2px rgba(77,231,185,.18),0 0 22px rgba(77,231,185,.36)}.plot-visual{position:absolute;left:0;right:0;top:18%;height:45%;display:grid;place-items:center;font-size:clamp(20px,2.35vw,38px);filter:drop-shadow(0 7px 10px rgba(0,0,0,.34))}.plot-visual.growing{animation:grow 1.1s ease-in-out infinite alternate}.plot-meta{position:absolute;left:6px;right:6px;top:4px;display:grid;grid-template-columns:1fr auto;gap:4px;align-items:center}.plot-meta strong{font-size:clamp(7px,.62vw,10px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.9)}.plot-meta span{display:none}.plot-button{position:absolute;left:5px;right:5px;bottom:4px;height:21px;border:0;border-radius:8px;background:rgba(35,19,7,.78);color:white;font-size:clamp(7px,.58vw,9px);font-weight:800;cursor:pointer;backdrop-filter:blur(4px)}.character{position:absolute;z-index:7;left:45%;top:41%;width:15%;transition:left .8s ease-in-out,top .8s ease-in-out;pointer-events:none}.character img{width:240%;margin-left:-70%;display:block;filter:drop-shadow(0 18px 22px rgba(0,0,0,.25));animation:idle 2.8s ease-in-out infinite}.character.walking{animation:walk .22s infinite alternate}.character.watering img{animation:pour .5s ease-in-out infinite alternate}.character-shadow{position:absolute;left:16%;right:16%;bottom:-2%;height:9%;border-radius:50%;background:radial-gradient(ellipse,rgba(0,0,0,.32),transparent 70%)}.speech{position:absolute;left:50%;bottom:96%;transform:translateX(-50%);padding:6px 9px;border-radius:11px;background:rgba(8,28,76,.9);border:1px solid rgba(161,216,255,.2);white-space:nowrap;font-size:10px;font-weight:800;opacity:0}.speech.show{opacity:1}.tool{position:absolute;left:2%;bottom:20%;font-size:28px}.water-stream{position:absolute;height:10px;border-radius:99px;background:linear-gradient(90deg,#5cdbff,rgba(92,219,255,0));box-shadow:0 0 12px #65dfff;transform-origin:left center;display:none;z-index:8}.water-stream.show{display:block}.fx-layer{position:absolute;inset:0;pointer-events:none;z-index:9}.float-fx{position:absolute;padding:5px 8px;border-radius:999px;background:rgba(8,27,72,.9);font-size:10px;font-weight:800;animation:fx 1s ease-out forwards}.scene-status{position:absolute;left:28%;right:23%;bottom:2%;z-index:8;padding:8px 12px;border-radius:14px;background:rgba(12,59,43,.82);border:1px solid rgba(138,255,184,.16);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.action-dock{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px auto 9px;max-width:760px}.farm-action{border:0;border-radius:18px;color:white;padding:13px 10px;font-weight:900;cursor:pointer}.farm-action span:first-child{margin-right:6px}.farm-action.plant{background:linear-gradient(180deg,#80e84c,#4cb72b)}.farm-action.water{background:linear-gradient(180deg,#4ac5ff,#2f83f3)}.farm-action.harvest{background:linear-gradient(180deg,#ffd15d,#ef941b)}.farm-action.visit{background:linear-gradient(180deg,#ad74ff,#7f4be8)}.farm-action:disabled{opacity:.45;cursor:not-allowed}.main-nav{display:grid;grid-template-columns:repeat(6,1fr);max-width:760px;margin:0 auto;border:1px solid var(--line);border-radius:18px;background:rgba(12,37,98,.75);overflow:hidden}.main-nav button{border:0;background:transparent;color:#9fb1da;padding:9px 5px;cursor:pointer}.main-nav button span{display:block;font-size:8px;margin-top:2px}.main-nav button.active{background:rgba(78,125,247,.32);color:white}
.market-list,.inventory-list,.audit-list{display:grid;gap:8px}.market-row,.inventory-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:8px;padding:8px;border-radius:13px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.item-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.06);font-size:21px}.market-row strong,.inventory-row strong{display:block;font-size:11px}.market-row span,.inventory-row span{display:block;font-size:9px;color:#aebfe5}.price{text-align:right;font-size:11px;font-weight:800}.buy-btn,.sell-btn{margin-top:3px;border:0;border-radius:8px;background:#385ff1;color:white;font-size:9px;padding:4px 7px;cursor:pointer}.buy-btn{background:linear-gradient(135deg,#27b978,#3b8ff4)}.buy-btn:disabled,.sell-btn:disabled{opacity:.45;cursor:not-allowed}.market-empty{padding:20px 10px;text-align:center;color:#9fb1da;font-size:10px;border:1px dashed rgba(158,211,255,.18);border-radius:13px}.market-order{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px;border-radius:13px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.market-order strong{display:block;font-size:10px}.market-order span{display:block;margin-top:3px;font-size:8px;color:#9fb1da}.market-order .buy{color:#ffba75}.market-order .sell{color:#77f0a4}.audit{padding:8px 9px;border-radius:12px;background:rgba(255,255,255,.04)}.audit strong{display:block;font-size:10px}.audit span{display:block;font-size:9px;color:#9fb1da;margin-top:2px;line-height:1.4}.audit-list{max-height:160px;overflow:auto}
.mobile-nav,.mobile-drawer,.drawer-backdrop{display:none}.fatal-state{position:fixed;inset:0;z-index:50;background:rgba(5,13,41,.94);display:grid;place-items:center;text-align:center}.fatal-state>div{max-width:440px;padding:26px}.fatal-state h1{font-size:28px}.fatal-state p{color:#b7c6e9;line-height:1.6}
.scene-wrap{cursor:grab;touch-action:none;outline:none}.scene-wrap.dragging{cursor:grabbing}.scene-wrap:focus-visible{box-shadow:0 0 0 3px rgba(74,191,255,.48),var(--shadow)}.scene-camera{position:absolute;inset:0;transform-origin:0 0;will-change:transform}.scene-camera.zooming{transition:transform .18s ease-out}.scene-camera .map-background{pointer-events:none;user-select:none;-webkit-user-drag:none}.camera-controls{position:absolute;z-index:20;right:12px;top:12px;display:flex;align-items:center;padding:4px;border:1px solid rgba(161,216,255,.24);border-radius:15px;background:rgba(8,28,76,.82);box-shadow:0 8px 24px rgba(0,0,0,.22);backdrop-filter:blur(10px)}.camera-controls button{height:34px;min-width:36px;border:0;border-radius:11px;background:transparent;color:white;font-weight:900;cursor:pointer;touch-action:manipulation}.camera-controls button:hover{background:rgba(255,255,255,.12)}.camera-controls #zoomResetBtn{min-width:58px;color:#bfe8ff;font-size:10px}.map-hint{position:absolute;z-index:18;left:12px;top:12px;padding:8px 11px;border:1px solid rgba(161,216,255,.18);border-radius:13px;background:rgba(8,28,76,.72);color:#dcecff;font-size:9px;font-weight:800;pointer-events:none;backdrop-filter:blur(8px)}.scene-status{pointer-events:none}
@keyframes grow{from{transform:translateY(2px) scale(.95)}to{transform:translateY(-3px) scale(1.04)}}@keyframes idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes walk{from{transform:translateY(-2px)}to{transform:translateY(2px)}}@keyframes pour{from{transform:rotate(0)}to{transform:rotate(-7deg)}}@keyframes fx{0%{opacity:0;transform:translateY(4px) scale(.8)}25%{opacity:1}100%{opacity:0;transform:translateY(-28px) scale(1)}}
@media(max-width:1240px){.layout{grid-template-columns:240px minmax(560px,1fr) 280px}.stats-grid{grid-template-columns:1fr 1fr}.stats-grid .stat:last-child{grid-column:1/-1}.topbar{grid-template-columns:auto 1fr auto}.resource{padding:8px 9px;font-size:12px}.plot-grid{left:18.4%;right:15.8%}}
@media(max-width:900px){.app-shell{padding:8px 8px 76px}.topbar{height:auto;grid-template-columns:1fr auto;gap:8px}.brand small{display:none}.top-resources{grid-column:1/-1;justify-content:flex-start;overflow:auto}.resource{flex:0 0 auto}.desktop-panel{display:none}.layout{display:block}.scene-toolbar{min-height:58px}.digital-self-chip{min-width:0;flex:1;padding:6px 8px}.digital-self-chip img{width:40px;height:40px}.digital-self-chip small{display:none}.scene-actions{display:flex}.scene-actions .secondary{padding:9px 11px;font-size:10px}.scene-wrap{border-radius:22px;aspect-ratio:1.35}.plot-grid{left:10%;right:6%;bottom:20.5%;gap:3px}.plot-card{aspect-ratio:1.3;border-radius:8px;padding:2px}.plot-visual{top:16%;height:58%;font-size:18px}.plot-meta,.plot-button{display:none}.character{width:19%;left:40%;top:38%}.scene-status{left:8%;right:8%;bottom:1%;font-size:9px}.action-dock{gap:6px;margin-top:8px}.farm-action{padding:11px 4px;font-size:11px}.main-nav{display:none}.mobile-nav{position:fixed;z-index:30;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));height:60px;border-radius:19px;background:rgba(9,28,76,.94);border:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);box-shadow:var(--shadow);overflow:hidden}.mobile-nav button{border:0;background:transparent;color:#9fb2db}.mobile-nav button span{display:block;font-size:9px}.mobile-nav button.active{color:white;background:rgba(69,116,234,.22)}.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:38}.drawer-backdrop.show{display:block}.mobile-drawer{display:block;position:fixed;left:8px;right:8px;bottom:-90vh;max-height:74vh;z-index:40;border-radius:24px 24px 0 0;background:#0a2059;border:1px solid var(--line);box-shadow:var(--shadow);padding:14px;transition:bottom .25s ease;overflow:auto}.mobile-drawer.open{bottom:0}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.drawer-head strong{font-size:17px}.drawer-head button{border:0;background:rgba(255,255,255,.08);color:white;width:36px;height:36px;border-radius:12px;font-size:22px}.drawer-copy .glass-card{box-shadow:none;background:rgba(255,255,255,.04);margin-bottom:10px}}
@media(max-width:900px){.map-hint{display:none}.camera-controls{right:7px;top:7px;padding:3px}.camera-controls button{height:30px;min-width:32px}.camera-controls #zoomResetBtn{min-width:50px;font-size:9px}}
.scene-wrap{perspective:1100px;perspective-origin:50% 42%;isolation:isolate}.scene-wrap::after{content:"";position:absolute;inset:0;z-index:14;pointer-events:none;background:linear-gradient(120deg,rgba(151,222,255,.11),transparent 32%,transparent 69%,rgba(48,20,116,.12)),radial-gradient(ellipse at 50% 112%,rgba(0,0,28,.42),transparent 44%);mix-blend-mode:soft-light}.scene-camera{transform-style:preserve-3d}.scene-depth{--scene-pitch:2.2deg;--scene-yaw:0deg;position:absolute;inset:-1.5%;width:103%;height:103%;transform-style:preserve-3d;transform:rotateX(var(--scene-pitch)) rotateY(var(--scene-yaw));transform-origin:50% 48%;will-change:transform}.scene-depth.settling{transition:transform .26s ease-out}.vector-scene{transform:translateZ(-34px) scale(1.035);transform-origin:center;filter:saturate(1.06) contrast(1.025)}.plot-grid{transform:translateZ(20px)}.plot-grid::before{content:"";position:absolute;inset:6% -2% -9%;z-index:-1;border-radius:28px;background:rgba(5,17,42,.2);filter:blur(14px);transform:translateZ(-16px)}.character{transform:translateZ(54px);transform-style:preserve-3d}.character.walking{animation:walk3d .22s infinite alternate}.character-shadow{transform:translateZ(-40px) scale(1.16);filter:blur(2px)}.water-stream,.fx-layer{transform:translateZ(48px)}.map-hint,.map-depth-badge{position:absolute;z-index:18;left:12px;padding:8px 11px;border:1px solid rgba(161,216,255,.18);border-radius:13px;background:rgba(8,28,76,.72);color:#dcecff;font-size:9px;font-weight:800;pointer-events:none;backdrop-filter:blur(8px)}.map-hint{top:12px}.map-depth-badge{top:50px;display:flex;align-items:center;gap:6px;color:#9ff8ff;background:linear-gradient(135deg,rgba(8,28,76,.78),rgba(63,42,133,.72))}.map-depth-badge span:first-child{color:#61e8ff;text-shadow:0 0 10px #61e8ff}
.modal-open{overflow:hidden}.avatar-picker-backdrop{position:fixed;inset:0;z-index:70;background:rgba(3,8,28,.72);backdrop-filter:blur(8px)}.avatar-picker{position:fixed;z-index:71;left:50%;top:50%;width:min(760px,calc(100vw - 28px));transform:translate(-50%,-50%);padding:22px;border:1px solid rgba(157,220,255,.28);border-radius:26px;background:linear-gradient(145deg,rgba(10,31,82,.98),rgba(20,22,70,.98));box-shadow:0 36px 100px rgba(0,0,0,.58)}.avatar-picker-head{display:flex;align-items:start;justify-content:space-between;gap:18px}.avatar-picker-head span{display:block;color:#75eaff;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.avatar-picker-head h2{margin:4px 0 0;font-size:24px}.avatar-picker-head button{width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.07);color:white;font-size:25px;cursor:pointer}.avatar-picker>p{margin:9px 0 18px;color:#adbee7;font-size:12px}.avatar-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.avatar-option{position:relative;min-width:0;padding:8px 8px 12px;border:2px solid transparent;border-radius:19px;background:rgba(255,255,255,.055);color:white;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}.avatar-option:hover{transform:translateY(-3px);background:rgba(255,255,255,.09)}.avatar-option.selected{border-color:#57e8ff;background:linear-gradient(180deg,rgba(87,232,255,.16),rgba(124,91,255,.13));box-shadow:0 0 24px rgba(87,232,255,.16)}.avatar-option img{display:block;width:100%;aspect-ratio:1.15;object-fit:contain;border-radius:14px;background:radial-gradient(circle at 50% 42%,rgba(142,190,255,.24),rgba(12,27,73,.58));filter:drop-shadow(0 12px 13px rgba(0,0,0,.28))}.avatar-option span{display:block;margin-top:7px;font-size:12px;font-weight:900}.avatar-option b{display:none;margin-top:3px;color:#80f3ff;font-size:9px}.avatar-option.selected b{display:block}.avatar-account-actions{display:flex;justify-content:flex-end;margin-top:18px;padding-top:16px;border-top:1px solid rgba(157,220,255,.16)}.logout-button{min-height:42px;padding:0 18px;border:1px solid rgba(255,119,139,.45);border-radius:12px;background:rgba(152,34,66,.18);color:#ffbdc8;font-weight:900;cursor:pointer}.logout-button:hover{background:rgba(190,43,78,.3);border-color:rgba(255,139,157,.7)}.logout-button:disabled{opacity:.55;cursor:wait}@keyframes walk3d{from{transform:translateZ(54px) translateY(-2px)}to{transform:translateZ(54px) translateY(2px)}}
.neighbor-picker-backdrop{position:fixed;inset:0;z-index:72;background:rgba(3,8,28,.76);backdrop-filter:blur(10px)}.neighbor-picker{position:fixed;z-index:73;left:50%;top:50%;width:min(680px,calc(100vw - 28px));max-height:min(720px,calc(100vh - 28px));overflow:auto;transform:translate(-50%,-50%);padding:22px;border:1px solid rgba(93,231,255,.32);border-radius:26px;background:linear-gradient(145deg,rgba(8,30,78,.99),rgba(31,21,83,.99));box-shadow:0 36px 110px rgba(0,0,0,.62)}.neighbor-picker-head{display:flex;align-items:start;justify-content:space-between;gap:18px}.neighbor-picker-head span{display:block;color:#70efff;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.neighbor-picker-head h2{margin:4px 0 0;font-size:24px}.neighbor-picker-head button{width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.07);color:white;font-size:25px;cursor:pointer}.neighbor-picker>p{margin:9px 0 18px;color:#adbee7;font-size:12px}.neighbor-list{display:grid;gap:11px}.neighbor-loading,.neighbor-empty{padding:28px;text-align:center;color:#a9bce6;border:1px dashed rgba(150,216,255,.2);border-radius:18px}.neighbor-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid rgba(143,212,255,.18);border-radius:19px;background:rgba(255,255,255,.055)}.neighbor-card img{width:72px;height:72px;object-fit:contain;border-radius:16px;background:radial-gradient(circle at 50% 42%,rgba(142,190,255,.25),rgba(12,27,73,.62))}.neighbor-card strong{display:block;font-size:15px}.neighbor-card small{display:block;margin-top:3px;color:#a9bce6}.neighbor-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.neighbor-meta span{padding:4px 7px;border-radius:999px;background:rgba(89,150,255,.13);color:#bce7ff;font-size:9px;font-weight:800}.neighbor-status{color:#79ff9a!important}.neighbor-status.away{color:#ffd783!important}.neighbor-visit-btn{min-width:94px;padding:10px 12px;border:0;border-radius:12px;background:linear-gradient(135deg,#51dffc,#8d61ff);color:#fff;font-weight:900;cursor:pointer}.neighbor-visit-btn:disabled{background:rgba(117,135,179,.25);color:#9cacd0;cursor:not-allowed}@media(max-width:620px){.neighbor-card{grid-template-columns:58px minmax(0,1fr)}.neighbor-card img{width:58px;height:58px}.neighbor-visit-btn{grid-column:1/-1;width:100%}}
@media(max-width:900px){.scene-actions{gap:4px}.avatar-picker-trigger{width:38px;padding:8px!important;font-size:0!important}.avatar-picker-trigger::before{content:"👤";font-size:15px}.map-depth-badge{left:7px;top:7px;padding:6px 8px;font-size:8px}.avatar-picker{max-height:calc(100vh - 24px);overflow:auto;padding:16px;border-radius:22px}.avatar-picker-head h2{font-size:20px}.avatar-options{grid-template-columns:repeat(2,1fr);gap:9px}.avatar-option{padding:6px 6px 9px}.avatar-option span{font-size:10px}}.scene-status{z-index:18}
.scene-wrap:not(.webgl-ready) .map-depth-badge{display:none}.webgl-ready{background:linear-gradient(180deg,#83c7ff,#c5e8ff 62%,#d9c9ff)}.webgl-ready .scene-camera{transform:none!important;transform-style:flat;transition:none}.webgl-ready .scene-depth{inset:0;width:100%;height:100%;transform:none!important;transform-style:flat}.webgl-ready .vector-scene{inset:0;transform:none;filter:none}.three-map-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;cursor:grab;outline:none}.three-map-canvas.dragging{cursor:grabbing}.webgl-ready .character{display:none}.webgl-ready .water-stream{display:none!important}.webgl-ready .fx-layer{transform:none;z-index:17}.webgl-ready .plot-grid{transform:none;z-index:16}.webgl-ready .plot-grid::before{transform:none;background:rgba(4,15,38,.34);filter:blur(11px)}.webgl-ready .plot-card{background:linear-gradient(180deg,rgba(63,31,9,.58),rgba(35,17,5,.84));backdrop-filter:blur(5px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 12px 24px rgba(0,0,0,.28)}.webgl-ready .map-depth-badge{display:flex;color:#b9fbff;border-color:rgba(91,235,255,.38);box-shadow:0 0 20px rgba(41,200,255,.2)}
.character-name{position:absolute;z-index:4;left:50%;bottom:101%;max-width:220px;transform:translateX(-50%);padding:5px 10px;border:1px solid rgba(116,233,255,.48);border-radius:999px;background:linear-gradient(135deg,rgba(6,20,60,.92),rgba(42,28,96,.9));box-shadow:0 7px 20px rgba(0,0,0,.3),0 0 16px rgba(67,211,255,.18);color:#fff;font-size:10px;font-weight:950;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.8);pointer-events:none}.map-picker-backdrop{position:fixed;inset:0;z-index:74;background:rgba(3,8,28,.78);backdrop-filter:blur(9px)}.map-picker{position:fixed;z-index:75;left:50%;top:50%;width:min(980px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;transform:translate(-50%,-50%);padding:22px;border:1px solid rgba(116,227,255,.3);border-radius:27px;background:linear-gradient(145deg,rgba(8,29,77,.99),rgba(30,19,79,.99));box-shadow:0 38px 115px rgba(0,0,0,.64)}.map-picker-head{display:flex;align-items:start;justify-content:space-between;gap:18px}.map-picker-head span{display:block;color:#71ecff;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.map-picker-head h2{margin:4px 0 0;font-size:25px}.map-picker-head button{width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.07);color:white;font-size:25px;cursor:pointer}.map-picker>p{margin:9px 0 18px;color:#adbee7;font-size:12px}.map-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.map-option{position:relative;min-width:0;padding:8px 8px 13px;border:2px solid transparent;border-radius:20px;background:rgba(255,255,255,.055);color:#fff;text-align:left;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}.map-option:hover{transform:translateY(-3px);background:rgba(255,255,255,.09)}.map-option.selected{border-color:#56e7ff;background:linear-gradient(180deg,rgba(73,221,255,.16),rgba(123,81,255,.13));box-shadow:0 0 28px rgba(76,218,255,.18)}.map-option img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;background:#10275d}.map-option span{display:block;padding:9px 4px 0}.map-option b{display:block;font-size:14px}.map-option small{display:block;margin-top:4px;color:#9fb2dc;font-size:10px;line-height:1.4}.map-option em{display:none;position:absolute;right:14px;top:14px;padding:5px 8px;border-radius:999px;background:rgba(8,25,69,.9);color:#79f7ff;font-size:9px;font-style:normal;font-weight:900}.map-option.selected em{display:block}.map-store-callout{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 15px;border:1px solid rgba(255,205,102,.2);border-radius:17px;background:linear-gradient(135deg,rgba(255,183,68,.1),rgba(127,79,255,.1))}.map-store-callout strong,.map-store-callout span{display:block}.map-store-callout strong{font-size:13px}.map-store-callout span{margin-top:3px;color:#aebfe4;font-size:10px}.map-store-callout button{flex:0 0 auto;padding:10px 14px;border:0;border-radius:11px;background:linear-gradient(135deg,#e89a35,#8e5bf4);color:#fff;font-weight:900;cursor:pointer}.market-map-note{grid-column:1/-1;padding:11px 12px;border:1px solid rgba(97,221,255,.18);border-radius:13px;background:linear-gradient(135deg,rgba(59,194,255,.1),rgba(125,83,244,.1))}.market-map-note strong,.market-map-note span{display:block}.market-map-note strong{font-size:11px}.market-map-note span{margin-top:4px;color:#9fb2dc;font-size:9px;line-height:1.45}@media(max-width:900px){.map-picker-trigger{width:38px;padding:8px!important;font-size:0!important}.map-picker-trigger::before{content:"🗺️";font-size:15px}.map-picker{padding:16px;border-radius:22px}.map-options{grid-template-columns:1fr}.map-option{display:grid;grid-template-columns:42% minmax(0,1fr);align-items:center;padding:7px}.map-option span{padding:0 8px}.map-option em{right:auto;left:12px;top:12px}.map-store-callout{align-items:stretch;flex-direction:column}.map-store-callout button{width:100%}}

.map-quick-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px;padding:7px;border:1px solid rgba(112,216,255,.2);border-radius:18px;background:rgba(7,25,72,.76);box-shadow:0 10px 28px rgba(1,8,31,.24)}.map-quick-switch button{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:9px;min-width:0;height:58px;padding:5px;border:2px solid transparent;border-radius:13px;background:rgba(255,255,255,.055);color:#fff;text-align:left;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}.map-quick-switch button:hover{transform:translateY(-2px);background:rgba(255,255,255,.1)}.map-quick-switch button.selected{border-color:#59e9ff;background:linear-gradient(135deg,rgba(62,213,255,.2),rgba(119,75,247,.18));box-shadow:0 0 21px rgba(60,216,255,.18)}.map-quick-switch button:disabled{opacity:.56;cursor:wait}.map-quick-switch img{width:70px;height:44px;border-radius:9px;object-fit:cover}.map-quick-switch span,.map-quick-switch small,.map-quick-switch b{display:block;min-width:0}.map-quick-switch small{margin-bottom:2px;color:#79efff;font-size:8px;font-weight:900}.map-quick-switch b{overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.three-character-name{position:absolute;z-index:22;left:0;top:0;max-width:min(260px,70vw);transform:translate(-50%,-100%);padding:7px 13px;border:2px solid rgba(106,237,255,.88);border-radius:999px;background:linear-gradient(135deg,rgba(3,18,57,.97),rgba(56,25,112,.96));box-shadow:0 8px 24px rgba(0,0,0,.5),0 0 20px rgba(63,220,255,.34);color:#fff;font-size:12px;font-weight:950;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 5px rgba(0,0,0,.9);pointer-events:none;will-change:left,top}.three-character-name::before{content:"●";margin-right:6px;color:#6cffb0;font-size:8px;vertical-align:1px}@media(max-width:900px){.scene-actions{flex-wrap:wrap;justify-content:flex-end}.map-picker-trigger{width:auto!important;min-width:82px;padding:8px 10px!important;font-size:10px!important}.map-picker-trigger::before{content:"🗺️ ";font-size:13px}.map-quick-switch{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.map-quick-switch button{flex:0 0 150px;grid-template-columns:54px minmax(0,1fr);height:52px;scroll-snap-align:start}.map-quick-switch img{width:54px;height:38px}.map-picker{padding:16px;border-radius:22px}.map-options{grid-template-columns:1fr}.map-option{display:grid;grid-template-columns:42% minmax(0,1fr);align-items:center;padding:7px}.map-option span{padding:0 8px}.map-option em{right:auto;left:12px;top:12px}.map-store-callout{align-items:stretch;flex-direction:column}.map-store-callout button{width:100%}.three-character-name{padding:6px 10px;font-size:10px}}

.top-actions{align-items:center}.top-logout-button{min-width:104px;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border:1px solid rgba(255,132,155,.42);border-radius:14px;background:linear-gradient(135deg,rgba(178,48,91,.72),rgba(117,62,195,.72));box-shadow:0 8px 24px rgba(47,8,41,.18);color:#fff;font-weight:900;cursor:pointer}.top-logout-button span{font-size:17px}.top-logout-button b{font-size:12px}.top-logout-button:hover{border-color:rgba(255,182,194,.75);filter:brightness(1.1)}.top-logout-button:disabled{opacity:.5;cursor:wait}@media(max-width:900px){.top-logout-button{width:44px;min-width:44px;padding:0}.top-logout-button b{display:none}}

.plot-context{position:absolute;z-index:24;right:14px;bottom:52px;width:min(220px,44%);display:grid;gap:5px;padding:13px;border:1px solid rgba(92,232,255,.48);border-radius:16px;background:linear-gradient(145deg,rgba(5,24,67,.94),rgba(42,25,93,.94));box-shadow:0 16px 38px rgba(0,0,0,.38),0 0 22px rgba(66,220,255,.14);backdrop-filter:blur(12px)}.plot-context.hidden{display:none}.plot-context small{color:#73efff;font-size:8px;font-weight:950;letter-spacing:.14em}.plot-context strong{padding-right:24px;font-size:13px}.plot-context>span{color:#b4c8ef;font-size:10px}.plot-context-close{position:absolute;right:7px;top:7px;width:25px;height:25px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:17px;cursor:pointer}.plot-context-action{margin-top:3px;padding:8px 10px;border:0;border-radius:10px;background:linear-gradient(135deg,#38c9e8,#7258f4);color:#fff;font-size:10px;font-weight:900;cursor:pointer}.plot-context-action:disabled{opacity:.45;cursor:not-allowed}
.responsibility-event{padding:0;overflow:hidden;border:1px solid rgba(105,210,255,.13);border-radius:12px;background:rgba(255,255,255,.04)}.responsibility-event summary{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:8px 9px;cursor:pointer;list-style:none}.responsibility-event summary::-webkit-details-marker{display:none}.responsibility-event summary time{grid-row:1/3;color:#73e6ff;font-size:8px;font-weight:850}.responsibility-event summary strong{font-size:10px}.responsibility-event summary span{grid-column:2;color:#9fb1da;font-size:9px;line-height:1.35}.responsibility-details{display:grid;gap:7px;padding:9px;border-top:1px solid rgba(105,210,255,.12);background:rgba(2,15,48,.35)}.responsibility-details section b{display:block;color:#72ebff;font-size:8px;letter-spacing:.1em}.responsibility-details section p{margin:2px 0 0;color:#dce8ff;font-size:9px;line-height:1.45;overflow-wrap:anywhere}.audit-list{max-height:290px}
@media(max-width:900px){.plot-context{left:8px;right:8px;bottom:8px;width:auto;padding:12px 14px 14px;border-radius:18px 18px 10px 10px}.plot-context-action{padding:9px}.responsibility-event summary time{display:none}.responsibility-event summary{grid-template-columns:1fr}.responsibility-event summary span{grid-column:1}}
@media(min-width:901px){.layout{grid-template-areas:"left center right"}.left-rail{grid-area:left}.center-column{grid-area:center;position:relative}.right-rail{grid-area:right}.layout.left-rail-collapsed{grid-template-areas:"center right";grid-template-columns:minmax(620px,1fr) 320px}.layout.right-rail-collapsed{grid-template-areas:"left center";grid-template-columns:280px minmax(620px,1fr)}.layout.left-rail-collapsed.right-rail-collapsed{grid-template-areas:"center";grid-template-columns:minmax(620px,1fr)}.layout.left-rail-collapsed .left-rail,.layout.right-rail-collapsed .right-rail{display:none}.rail-toggle{position:absolute;z-index:29;top:50%;width:30px;height:68px;padding:0;border:1px solid rgba(102,231,255,.62);border-radius:15px;background:linear-gradient(180deg,rgba(11,43,105,.96),rgba(42,31,111,.96));box-shadow:0 10px 30px rgba(0,0,0,.38),0 0 18px rgba(73,222,255,.18);color:#dffaff;display:grid;place-items:center;font-size:28px;font-weight:900;line-height:1;cursor:pointer;transform:translateY(-50%);transition:filter .18s,box-shadow .18s,transform .18s}.rail-toggle:hover{filter:brightness(1.18);box-shadow:0 12px 34px rgba(0,0,0,.42),0 0 24px rgba(73,222,255,.32)}.rail-toggle:focus-visible{outline:3px solid rgba(102,231,255,.55);outline-offset:2px}.rail-toggle-left{left:-15px}.rail-toggle-right{right:-15px}.layout.left-rail-collapsed .rail-toggle-left,.layout.right-rail-collapsed .rail-toggle-right{background:linear-gradient(180deg,rgba(36,126,196,.98),rgba(92,57,191,.98));box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 24px rgba(73,222,255,.35)}}
@media(min-width:901px) and (max-width:1240px){.layout.left-rail-collapsed{grid-template-columns:minmax(560px,1fr) 280px}.layout.right-rail-collapsed{grid-template-columns:240px minmax(560px,1fr)}.layout.left-rail-collapsed.right-rail-collapsed{grid-template-columns:minmax(560px,1fr)}}
@media(max-width:900px){.rail-toggle{display:none}}
@media(min-width:901px){.map-options,.map-quick-switch{grid-template-columns:repeat(5,minmax(0,1fr))}}

.share-dialog-open{overflow:hidden}.share-dialog-backdrop{position:fixed;inset:0;z-index:190;background:rgba(2,7,29,.78);backdrop-filter:blur(9px)}.share-dialog{position:fixed;z-index:191;left:50%;top:50%;width:min(650px,calc(100vw - 28px));max-height:calc(100svh - 28px);overflow:auto;transform:translate(-50%,-50%);padding:22px;border:1px solid rgba(125,226,255,.34);border-radius:26px;background:linear-gradient(145deg,rgba(8,28,76,.99),rgba(32,22,83,.99));box-shadow:0 36px 110px rgba(0,0,0,.62),0 0 45px rgba(84,218,255,.14);color:#fff}.share-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.share-dialog-head span{display:block;color:#71ecff;font-size:10px;font-weight:950;letter-spacing:.14em}.share-dialog-head h2{margin:5px 0 0;font-size:24px}.share-dialog-head>button{width:38px;height:38px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.07);color:#fff;font-size:25px;cursor:pointer}.share-preview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;align-items:center;margin:18px 0;padding:12px;border:1px solid rgba(129,215,255,.18);border-radius:18px;background:rgba(255,255,255,.055)}.share-preview img{width:180px;height:105px;border-radius:13px;object-fit:cover;background:#101d50}.share-preview strong{display:block;color:#74edff;font-size:11px;letter-spacing:.08em}.share-preview p{margin:7px 0 0;color:#d9e3ff;font-size:13px;line-height:1.55}.share-platforms{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.share-platforms a,.share-platforms button{min-width:0;min-height:78px;padding:9px 4px;border:1px solid rgba(255,255,255,.12);border-radius:15px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none;text-align:center;cursor:pointer}.share-platforms a:hover,.share-platforms button:hover{transform:translateY(-2px);background:rgba(255,255,255,.11)}.share-platforms b,.share-platforms button:first-letter{display:block;font-size:25px;line-height:32px}.share-platforms span{display:block;overflow:hidden;margin-top:5px;font-size:9px;font-weight:850;text-overflow:ellipsis}.share-platforms .facebook b{color:#77a7ff}.share-platforms .whatsapp b{color:#65f095}.share-platforms .telegram b{color:#68d7ff}.share-platforms .weibo b{color:#ffb04c}.facebook-share-help{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding:11px 12px;border:1px solid rgba(119,167,255,.25);border-radius:14px;background:rgba(24,76,166,.16)}.facebook-share-help strong{display:block;color:#9fc0ff;font-size:11px}.facebook-share-help p{margin:4px 0 0;color:#bdcae5;font-size:10px;line-height:1.45}.facebook-share-actions{display:flex;flex:0 0 auto;gap:7px}.facebook-share-actions a,.facebook-share-actions button{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid rgba(119,167,255,.32);border-radius:10px;background:rgba(255,255,255,.07);color:#dce8ff;font:inherit;font-size:9px;font-weight:850;text-decoration:none;white-space:nowrap;cursor:pointer}.facebook-share-actions a:hover,.facebook-share-actions button:hover{background:rgba(119,167,255,.18)}.share-link-row{display:flex;gap:8px;margin-top:15px}.share-link-row input{min-width:0;flex:1;height:43px;padding:0 12px;border:1px solid rgba(140,216,255,.2);border-radius:12px;background:rgba(0,0,0,.22);color:#d6e6ff;font-size:11px}.share-link-row button,.share-self-button{min-height:43px;padding:0 17px;border:1px solid rgba(94,227,255,.4);border-radius:12px;background:linear-gradient(135deg,rgba(33,164,209,.78),rgba(104,63,218,.86));color:#fff;font-weight:900;cursor:pointer}.share-feedback{display:none;margin:9px 2px 0;color:#75f4c4;font-size:11px;font-weight:850}.share-feedback.show{display:block}.share-access-note{margin:10px 2px 0;color:#9eb4da;font-size:10px;line-height:1.5}.avatar-account-actions{gap:10px}.share-farm-trigger{border-color:rgba(96,235,203,.34);background:linear-gradient(135deg,rgba(21,119,121,.88),rgba(67,75,179,.88))}.share-farm-trigger:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.share-dialog{padding:17px;border-radius:22px}.share-preview{grid-template-columns:110px minmax(0,1fr);gap:11px}.share-preview img{width:110px;height:82px}.share-platforms{grid-template-columns:repeat(4,minmax(0,1fr))}.share-platforms a,.share-platforms button{min-height:68px}.facebook-share-help{display:block}.facebook-share-actions{flex-wrap:wrap;margin-top:9px}.share-link-row{align-items:stretch}.share-link-row button{padding:0 12px}.share-farm-trigger{width:38px!important;padding:8px!important;font-size:0!important}.share-farm-trigger::before{content:"↗";font-size:16px}.avatar-account-actions{justify-content:space-between}}

/* Shared links are a focused play surface: map first, actions immediately below. */
body.shared-play-mode{overflow:hidden;background:#06102e}
.shared-play-mode .app-shell{min-height:100svh;padding:12px}
.shared-play-mode .topbar,.shared-play-mode .left-rail,.shared-play-mode .right-rail,.shared-play-mode .rail-toggle,.shared-play-mode .scene-toolbar,.shared-play-mode .visit-world-bar,.shared-play-mode .map-quick-switch,.shared-play-mode .main-nav,.shared-play-mode .mobile-nav,.shared-play-mode .mobile-drawer,.shared-play-mode .drawer-backdrop{display:none!important}
.shared-play-mode .layout,.shared-play-mode .layout.left-rail-collapsed,.shared-play-mode .layout.right-rail-collapsed,.shared-play-mode .layout.left-rail-collapsed.right-rail-collapsed{display:block;max-width:none;min-height:calc(100svh - 24px);margin:0}
.shared-play-mode .center-column{display:flex;min-height:calc(100svh - 24px);flex-direction:column;justify-content:center}
.shared-play-mode .scene-wrap{height:calc(100svh - 102px);min-height:300px;aspect-ratio:auto;border-radius:26px}
.shared-play-mode .action-dock{width:min(760px,100%);min-height:58px;margin:10px auto 0}
@media(max-width:900px){.shared-play-mode .app-shell{padding:8px}.shared-play-mode .layout,.shared-play-mode .layout.left-rail-collapsed,.shared-play-mode .layout.right-rail-collapsed,.shared-play-mode .layout.left-rail-collapsed.right-rail-collapsed,.shared-play-mode .center-column{min-height:calc(100svh - 16px)}.shared-play-mode .scene-wrap{height:calc(100svh - 78px);min-height:240px;border-radius:20px}.shared-play-mode .action-dock{min-height:54px;margin-top:8px}.shared-play-mode .farm-action{min-height:54px}}

.avatar-picker{max-height:calc(100dvh - 24px);overflow:auto}
.avatar-options{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.avatar-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

#assetStore{width:min(820px,calc(100vw - 28px));height:min(760px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);max-width:none;padding:0;border:1px solid #5bcfff;border-radius:24px;background:linear-gradient(145deg,#082765,#182563 65%,#241658);box-shadow:0 18px 70px #0008;color:#eff7ff;overflow:hidden;font-family:inherit}
#assetStore[open]{display:flex;flex-direction:column}#assetStore::backdrop{background:#031031bc;backdrop-filter:blur(8px)}
#assetStore button{font:inherit;cursor:pointer;color:#fff;border:1px solid #67b4f966;border-radius:12px;background:#254786;min-height:40px;padding:7px 14px}#assetStore button:disabled{opacity:.55;cursor:default}#assetStore button:focus-visible{outline:2px solid #8efbff;outline-offset:2px}
.store-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 12px;gap:12px}.store-head small{font-size:10px;letter-spacing:1.5px;color:#85ceff}.store-head h2{margin:4px 0 0;font-size:24px}.store-head button{width:40px;padding:0!important;font-size:25px!important;flex-shrink:0}
.store-wallet{margin:0 22px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:#0b57a05c;font-size:12px}.store-wallet strong{display:inline-block;font-size:19px;margin-left:5px;color:#ffdf79}.store-wallet button{font-size:11px!important;white-space:nowrap;background:transparent!important}
.store-tabs{display:flex;gap:6px;margin:0 22px}.store-tabs button{flex:1;font-size:13px!important;background:#132858!important}.store-tabs button[aria-pressed=true]{background:linear-gradient(110deg,#078cf4,#7235f5)!important;border-color:#80caff!important}
.store-message{margin:10px 22px;min-height:18px;font-size:11px;color:#b8d7f5;line-height:1.5}.store-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 22px 22px;scrollbar-width:thin;scrollbar-color:#659cef66 transparent}.store-content::-webkit-scrollbar{width:5px}.store-content::-webkit-scrollbar-thumb{background:#659cef66;border-radius:5px}
.store-intro{color:#afcce8;font-size:12px;margin:0 0 12px}.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.store-card{border:1px solid #5688d66b;border-radius:17px;padding:11px;background:#0c286ba8;min-width:0}.store-card.selected{border-color:#33eec3}.store-art{position:relative;height:126px;border-radius:12px;background:radial-gradient(ellipse,#2776b48c,transparent 70%);display:grid;place-items:center}.store-art img{width:100%;height:100%;max-height:126px;object-fit:contain}.store-art span{position:absolute;left:0;top:0;font-size:10px;background:#075889e8;border:1px solid #59cef466;border-radius:8px;padding:3px 6px}.store-card.selected .store-art span{background:#096b5b}.store-card h3{margin:10px 0 4px;font-size:15px}.store-card p{font-size:11px;line-height:1.5;color:#b6cbe7;min-height:32px;margin:0 0 10px}.store-card-bottom{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.store-card-bottom strong{font-size:12px;color:#ffe082}.store-card-bottom button{font-size:12px!important;background:linear-gradient(115deg,#168bec,#6943ed)!important}
.store-confirm{max-width:390px;margin:0 auto;text-align:center}.store-confirm>img{height:130px;width:180px;object-fit:contain}.store-confirm h3{font-size:20px;margin:8px}.store-confirm p{font-size:12px;color:#c3d5ee}.store-confirm dl{border:1px solid #5d91d260;border-radius:16px;padding:12px}.store-confirm dl>div{display:flex;justify-content:space-between;gap:12px;padding:6px;font-size:13px}.store-confirm dd{margin:0;font-weight:700;color:#ffdd7d}.store-confirm-actions{display:flex;gap:10px}.store-confirm-actions button{flex:1}.store-confirm-actions [data-purchase]{background:linear-gradient(110deg,#168bec,#6943ed)!important}
.store-totals{display:flex;gap:12px;justify-content:space-between;padding:12px;background:#17498166;border-radius:12px;font-size:12px;margin-bottom:12px}.store-order{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #638bd340;padding:12px 0;font-size:12px}.store-order small{display:block;margin-top:5px;color:#a9c7e9;font-size:10px;overflow-wrap:anywhere}.store-order>span{white-space:nowrap;text-align:right;color:#ffdd7d}.store-order b{display:block;margin-top:8px;color:#38ebc0;font-size:10px}.store-empty{padding:28px 0;text-align:center;color:#b6cbe7;font-size:13px}
@media(max-width:600px){.store-head{padding:14px 14px 10px}.store-head h2{font-size:21px}.store-wallet{margin:0 14px 10px;padding:7px 9px;flex-wrap:wrap}.store-wallet strong{font-size:17px}.store-tabs{margin:0 14px}.store-message{margin:8px 14px}.store-content{padding:0 14px 16px}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.store-card{padding:9px}.store-art,.store-art img{height:98px}.store-card h3{font-size:13px}.store-card p{font-size:10px}.store-card-bottom{gap:5px}.store-card-bottom strong{font-size:10px}}
.fm-rotated #assetStore{position:fixed;inset:auto;left:50%;top:50%;margin:0;width:min(820px,calc(var(--fm-width) - 24px));height:calc(var(--fm-height) - 24px);max-height:calc(var(--fm-height) - 24px);transform:translate(-50%,-50%) rotate(var(--fm-angle))}
.fm-landscape #assetStore{height:calc(var(--fm-height) - 20px);max-height:calc(var(--fm-height) - 20px)}.fm-landscape .store-head{padding:8px 16px;min-height:44px}.fm-landscape .store-head h2{font-size:18px;display:inline}.fm-landscape .store-head small{display:none}.fm-landscape .store-wallet{position:absolute;top:8px;left:180px;right:66px;margin:0;padding:0 8px;min-height:38px}.fm-landscape .store-wallet strong{font-size:16px}.fm-landscape .store-wallet button{min-height:30px!important}.fm-landscape .store-tabs{margin:0 16px}.fm-landscape .store-tabs button{min-height:32px!important;padding:4px 12px!important}.fm-landscape .store-message{margin:6px 16px}.fm-landscape .store-content{padding:0 16px 12px}.fm-landscape .store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fm-landscape .store-confirm>img{display:none}.fm-landscape .store-confirm h3{font-size:16px;margin:2px}.fm-landscape .store-confirm p{margin:4px}.fm-landscape .store-confirm dl{margin:7px 0;padding:4px}.fm-landscape .store-confirm dl>div{padding:3px 8px}
.hp-store-links{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 10px}.hp-store-links button{min-width:0;text-align:left;border:1px solid #549cec88;border-radius:14px;background:linear-gradient(120deg,#13447e,#382783);color:white;padding:12px 14px;font:inherit;font-size:14px;cursor:pointer}.hp-store-links small{display:block;margin-top:5px;color:#b9d8ff;font-size:11px}
.fm-landscape .store-art,.fm-landscape .store-art img{height:76px;max-height:76px}.fm-landscape .store-card{padding:8px}.fm-landscape .store-card h3{margin:6px 0 4px;font-size:13px}.fm-landscape .store-card p{min-height:16px;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fm-landscape .store-card-bottom button{min-height:34px!important;padding:5px 12px!important}
[data-map-select][data-requires-purchase=true],.map-option[data-requires-purchase=true],[data-map-quick][data-requires-purchase=true]{position:relative}
[data-map-select][data-requires-purchase=true]::after,.map-option[data-requires-purchase=true]::after,[data-map-quick][data-requires-purchase=true]::after{content:'🔒';position:absolute;right:4px;top:3px;font-size:10px}
@media(max-width:600px){.hp-store-links{gap:6px}.hp-store-links button{padding:10px 7px;font-size:11px}.hp-store-links small{font-size:9px}}
.store-tabs button {min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.store-tabs b,.store-bag-filters b {font-size:10px;min-width:17px;padding:2px 4px;border-radius:7px;background:#80beff24;color:#cef0ff}
.store-bag-filters {display:flex;gap:7px;margin:0 0 12px}
#assetStore .store-bag-filters button {display:flex;align-items:center;gap:6px;padding:7px 12px;font-size:12px;background:#0b2356}
#assetStore .store-bag-filters button[aria-pressed=true] {border-color:#65dfd0;background:#12576c}
.store-backpack .store-card-bottom>strong {color:#b7d8f2}
.hp-store-entry {width:100%;display:flex;align-items:center;gap:12px;padding:9px 14px;border:1px solid #72bcff66;border-radius:13px;background:linear-gradient(115deg,#154886,#24367c);color:#eef9ff;text-align:left;font:inherit;cursor:pointer}
.hp-store-entry>.hp-icon:first-child {width:30px;height:30px;flex-shrink:0;color:#9adbff}
.hp-store-entry>span {flex:1;min-width:0}.hp-store-entry strong {display:block;font-size:16px}.hp-store-entry small {display:block;margin-top:4px;color:#c0d5f2;font-size:11px}
.hp-store-entry em {font-style:normal;font-size:12px;color:#bed7f7;max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-store-entry>.hp-icon:last-child {width:14px;height:20px;flex-shrink:0}
#hpMaps {align-items:center}#hpMaps .hp-store-entry {min-height:52px}
#mapQuickSwitch {grid-template-columns:minmax(0,1fr)}#mapQuickStore {min-height:44px}
@media(max-width:600px){#assetStore .store-tabs button{padding:7px 5px;font-size:12px!important;min-height:44px}.store-tabs{gap:4px}.store-tabs b{font-size:9px;min-width:14px;padding:2px 3px}.hp-store-entry{gap:8px;padding:9px}.hp-store-entry strong{font-size:14px}.hp-store-entry em{font-size:10px}}

.webgl-ready::after {
  display: none;
}

#autoBtn[aria-pressed="true"] {
  border-color: rgba(89, 235, 255, .72);
  box-shadow: 0 0 0 2px rgba(60, 216, 255, .12), 0 0 20px rgba(60, 216, 255, .16);
}

#autoBtn[aria-busy="true"] {
  opacity: .76;
  cursor: wait;
}

.plot-grid {
  left: 18.5%;
  right: 15.5%;
  bottom: 11%;
  align-items: end;
}

.webgl-ready .plot-card {
  height: clamp(42px, 4.2vw, 58px);
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: clamp(19px, 1.7vw, 25px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 19px;
  column-gap: 4px;
  padding: 4px 5px;
  border-width: 1px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(21, 30, 35, .4), rgba(20, 13, 7, .62));
  border-color: rgba(88, 225, 255, .48);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 5px 12px rgba(0, 0, 0, .2);
}

.webgl-ready .plot-grid::before {
  display: none;
}

.webgl-ready .plot-visual {
  position: static;
  grid-column: 1;
  grid-row: 1 / -1;
  width: 100%;
  height: auto;
  align-self: center;
  font-size: clamp(14px, 1.25vw, 20px);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
}

.webgl-ready .plot-meta {
  position: static;
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  align-self: center;
}

.webgl-ready .plot-meta strong {
  display: block;
  font-size: clamp(7px, .58vw, 9px);
}

.webgl-ready .plot-button {
  position: static;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 18px;
  border-radius: 6px;
  align-self: end;
  font-size: clamp(7px, .52vw, 8px);
  background: rgba(24, 17, 9, .66);
  backdrop-filter: none;
}

.webgl-ready .plot-card.ready {
  border-color: #55f0c2;
}

@media (max-width: 900px) {
  .plot-grid {
    left: 6%;
    right: 5%;
    bottom: 10%;
  }

  .webgl-ready .plot-card {
    height: 28px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 2px;
    border-radius: 9px;
  }

  .webgl-ready .plot-visual {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }
}
.three-world-load-notice{position:absolute;z-index:12;top:12px;left:12px;max-width:calc(100% - 104px);border:1px solid #70c9f4aa;border-radius:12px;padding:10px 12px;background:#102c6ee8;color:#eaf7ff;font:600 12px/1.4 system-ui,sans-serif;box-shadow:0 3px 15px #06133640;cursor:pointer}
.three-world-load-notice[hidden]{display:none!important}
.three-world-load-notice:disabled{cursor:progress}
.fm-landscape .three-world-load-notice{top:64px;left:50%;transform:translateX(-50%);max-width:calc(100% - 360px)}

.visit-world-bar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(180px, auto) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 233, 255, .38);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(9, 42, 99, .96), rgba(47, 27, 105, .94));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 24px rgba(61, 222, 255, .1);
}
.visit-world-bar button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(116, 228, 255, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.social-actions { display: flex; gap: 6px; }
.social-actions .social-action { min-width: 74px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.social-actions .social-action:hover:not(:disabled) { transform: translateY(-2px); }
.social-actions .greeting:hover:not(:disabled) { border-color: #59ebff; box-shadow: 0 0 18px rgba(70,226,255,.36); }
.social-actions .hug:hover:not(:disabled) { border-color: #ff86d7; box-shadow: 0 0 18px rgba(255,93,198,.38); }
.social-actions .handshake:hover:not(:disabled) { border-color: #ffd86a; box-shadow: 0 0 18px rgba(255,204,73,.36); }
.visit-world-owner small,.visit-world-owner strong,.visit-world-owner span,.visit-world-online small { display: block; }
.visit-world-owner small,.visit-world-online small { color: #79efff; font-size: 9px; font-weight: 900; }
.visit-world-owner strong { margin-top: 2px; font-size: 14px; }
.visit-world-owner span { margin-top: 2px; color: #c8d7f7; font-size: 10px; }
.visit-world-online { min-width: 0; }
#worldRoster { display: flex; gap: 5px; margin-top: 4px; overflow: hidden; }
.world-roster-chip {
  max-width: 112px;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(85, 235, 255, .12);
  color: #e9fbff;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.visiting-world .map-quick-switch,.visiting-world #mapPickerBtn { display: none; }
.visiting-world .farm-action.plant { opacity: .32; }
.plot-card.social-help { border-color: rgba(86, 201, 255, .72); }
.plot-card.social-steal { border-color: #bf7dff; box-shadow: 0 0 0 2px rgba(174, 93, 255, .17), 0 0 22px rgba(157, 73, 255, .32); }
.world-settings { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid rgba(99, 220, 255, .18); border-radius: 15px; background: rgba(255, 255, 255, .04); }
.world-settings label>span { display: block; margin-bottom: 5px; color: #b7c8ec; font-size: 9px; font-weight: 800; }
.world-settings select,.world-settings button { min-height: 38px; border: 1px solid rgba(114, 220, 255, .2); border-radius: 10px; background: #102c6d; color: #fff; padding: 7px 10px; font-weight: 800; }
.world-settings button { cursor: pointer; background: linear-gradient(135deg,#2b9edc,#6f55e9); }
.world-settings-toggle { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.world-settings-toggle>span { margin: 0!important; }
.social-autonomy { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: center; gap: 9px; margin-top: 12px; padding: 12px; border: 1px solid rgba(134,120,255,.28); border-radius: 15px; background: rgba(52,35,113,.18); }
.social-autonomy legend { padding: 0 7px; color: #7deeff; font-size: 11px; font-weight: 900; }
.social-autonomy p { grid-column: 1/-1; margin: 0 0 3px; color: #9fb3df; font-size: 9px; }
.social-autonomy label { display: flex; align-items: center; gap: 6px; color: #e6efff; font-size: 9px; font-weight: 800; }
.social-autonomy label.danger { color: #ffd0df; }
.social-autonomy button,.notification-tools button { min-height: 34px; border: 1px solid rgba(99,226,255,.3); border-radius: 10px; padding: 7px 11px; background: linear-gradient(135deg,#2b9edc,#6f55e9); color: #fff; font-weight: 900; cursor: pointer; }
.notification-trigger { position: relative; }
.notification-trigger span { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #07143e; border-radius: 999px; background: #ff4d9c; color: #fff; font-size: 9px; line-height: 14px; text-align: center; }
.notification-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(2,7,29,.72); backdrop-filter: blur(5px); }
.notification-center { position: fixed; top: max(72px,8vh); right: max(16px,3vw); z-index: 111; width: min(440px,calc(100vw - 32px)); max-height: min(720px,82vh); overflow: hidden; border: 1px solid rgba(93,227,255,.38); border-radius: 22px; padding: 17px; background: linear-gradient(155deg,rgba(10,34,86,.98),rgba(43,24,96,.98)); box-shadow: 0 25px 80px rgba(0,0,0,.48); }
.notification-head,.notification-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-head span { color: #64e8ff; font-size: 9px; font-weight: 900; }
.notification-head h2 { margin: 2px 0 0; font-size: 18px; }
.notification-head>button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; }
.notification-tools { margin: 13px 0 9px; color: #afc3ed; font-size: 10px; }
.notification-list { display: grid; gap: 8px; max-height: calc(min(720px,82vh) - 135px); overflow: auto; }
.notification-item { display: grid; grid-template-columns: 9px 1fr; gap: 10px; padding: 12px; border: 1px solid rgba(130,184,255,.14); border-radius: 14px; background: rgba(255,255,255,.045); cursor: pointer; }
.notification-item.unread { border-color: rgba(82,232,255,.36); background: rgba(56,188,235,.1); }
.notification-item>i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #4de8ff; box-shadow: 0 0 12px #4de8ff; }
.notification-item:not(.unread)>i { background: #50628d; box-shadow: none; }
.notification-item strong,.notification-item span,.notification-item time { display: block; }
.notification-item strong { font-size: 11px; }
.notification-item span { margin-top: 4px; color: #c2d0ee; font-size: 9px; line-height: 1.45; }
.notification-item time { margin-top: 5px; color: #7186b2; font-size: 8px; }
.notification-empty { padding: 28px; color: #91a7d3; text-align: center; }

@media(max-width:900px) {
  .visit-world-bar { grid-template-columns: auto 1fr auto; gap: 7px; padding: 8px; }
  .visit-world-online { grid-column: 1/-1; grid-row: 2; }
  .visit-world-bar button { min-height: 36px; padding: 7px 9px; font-size: 9px; }
  .visit-world-owner strong { font-size: 11px; }
  .social-actions { grid-column: 3; grid-row: 1/3; flex-direction: column; }
  .social-actions .social-action { min-width: 64px; }
  .world-settings { grid-template-columns: 1fr; }
  .social-autonomy { grid-template-columns: 1fr 1fr; }
  .social-autonomy button { grid-column: 1/-1; }
}

:root {
  --portal-purple: #7138ed;
  --portal-violet: #9a45f7;
  --portal-ink: #111426;
  --portal-muted: #5d6880;
  --portal-glass: rgba(250, 252, 255, .82);
  --portal-border: rgba(255, 255, 255, .82);
  --portal-shadow: 0 22px 55px rgba(39, 73, 128, .18);
}

body.portal-mode {
  min-height: 100vh;
  overflow-x: hidden;
  background: #c9ecff url("../assets/digital-self-home-bg-v2.468dd125c861.webp") center / cover no-repeat fixed;
  color: var(--portal-ink);
}

.portal-app-hidden { display: none !important; }
.portal-shell[hidden], .portal-guest[hidden], .portal-member[hidden], .portal-world-browser[hidden], .portal-create-browser[hidden], .portal-loading[hidden],
.portal-guest-actions[hidden], .portal-member-actions[hidden] { display: none !important; }

.portal-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--portal-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* World discovery: full-screen glass layout calibrated to the 1536 × 1024 reference. */
.portal-world-browser, .portal-world-browser * { box-sizing: border-box; }
.portal-world-browser button, .portal-world-browser input { font: inherit; }
.portal-world-browser button { cursor: pointer; }
.portal-authenticated.portal-world-view .portal-backdrop {
  background-image: url("../assets/portal-world-backdrop-v1.39d0c5b6a73e.webp");
  background-position: center;
  filter: saturate(.9) brightness(1.05) blur(2px);
  transform: scale(1.012);
}
.portal-shell.portal-authenticated.portal-world-view::before {
  background: linear-gradient(180deg, rgba(225,246,255,.18), rgba(235,248,255,.29) 56%, rgba(58,117,72,.2));
}
.glass-world-panel {
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(248,252,255,.76);
  box-shadow: 0 1.17cqw 2.6cqw rgba(39,78,113,.13);
  backdrop-filter: blur(1.3cqw);
}
.glass-world-panel > header { display: flex; align-items: center; justify-content: space-between; }
.glass-world-panel > header h2 { margin: 0; color: #121922; font-weight: 900; }
.glass-world-panel > header button { border: 0; background: transparent; color: #596778; }
.portal-world-heading h1, .portal-world-heading p { margin: 0; }
.portal-world-heading h1 { color: #4a1bc1; font-weight: 950; letter-spacing: -.04em; }
.portal-world-heading h1 span { margin-left: .6cqw; font-size: .75em; }
.portal-world-heading p { color: #2f4051; }
.portal-world-tools { display: flex; align-items: center; gap: 1cqw; }
.portal-world-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  background: rgba(249,252,255,.68);
  box-shadow: inset 0 0 0 1px rgba(101,130,161,.08);
  backdrop-filter: blur(1cqw);
}
.portal-world-search span { color: #4a5967; font-weight: 900; }
.portal-world-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #1f2935; }
.portal-world-search input::placeholder { color: #738093; }
.portal-world-filters { min-width: 0; display: flex; align-items: center; gap: .48cqw; }
.portal-world-filters button {
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  background: rgba(247,251,255,.67);
  color: #34404d;
  box-shadow: 0 .25cqw .7cqw rgba(53,83,118,.07);
}
.portal-world-filters button.active {
  border-color: transparent;
  background: linear-gradient(135deg,#6d2de8,#9442f1);
  color: #fff;
  box-shadow: 0 .45cqw 1.1cqw rgba(104,45,222,.25);
}
.portal-world-feature {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  background: #abd9fb;
  box-shadow: 0 1.1cqw 2.8cqw rgba(42,86,120,.15);
}
.portal-world-feature > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 62% 51%; }
.portal-world-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(170,220,252,.97) 0%, rgba(184,225,252,.88) 28%, rgba(207,235,251,.25) 57%, transparent 78%);
}
.portal-world-feature-copy { position: absolute; z-index: 2; color: #142334; }
.portal-world-feature-copy > span { display: inline-flex; align-items: center; border-radius: 999px; background: #38c783; color: #fff; font-weight: 800; }
.portal-world-feature-copy h2 { margin: 0; color: #0f1720; font-weight: 950; letter-spacing: -.025em; }
.portal-world-feature-copy > div { display: flex; gap: .55cqw; }
.portal-world-feature-copy > div b, .portal-world-card-grid article span b, .portal-world-list article div > span b {
  border-radius: 999px;
  background: rgba(230,236,255,.8);
  color: #7264c8;
  font-weight: 500;
}
.portal-world-feature-copy p { color: #40566b; line-height: 1.58; }
.portal-world-feature-copy small { display: flex; align-items: center; color: #5f7384; }
.portal-mini-faces { display: inline-flex; }
.portal-mini-faces img, .portal-world-list article small i img { object-fit: cover; border: 1px solid rgba(255,255,255,.95); border-radius: 50%; background: #e8e8ff; }
.portal-world-feature-copy > button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg,#7b32ea,#9d43f1);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 .65cqw 1.4cqw rgba(99,41,210,.25);
}
.portal-world-feature-copy > button b { display: grid; place-items: center; border-radius: 50%; background: #fff; color: #6330d8; }
.portal-world-card-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.portal-world-card-grid article { min-width: 0; overflow: hidden; border-radius: .95cqw; background: rgba(251,253,255,.72); }
.portal-world-card-grid article[hidden] { display: none !important; }
.portal-world-card-grid article > button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 0; background: transparent; color: #121922; text-align: left; }
.portal-world-card-grid article img { width: 100%; display: block; object-fit: cover; }
.portal-world-card-grid article strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-world-card-grid article span { display: flex; gap: .35cqw; }
.portal-world-card-grid article span b { white-space: nowrap; }
.portal-world-card-grid article small { margin-top: auto; color: #667586; }
.portal-world-list { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); }
.portal-world-list article { min-height: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
.portal-world-list article > img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: .75cqw; }
.portal-world-list article > div { min-width: 0; display: grid; }
.portal-world-list article strong { overflow: hidden; color: #111821; text-overflow: ellipsis; white-space: nowrap; }
.portal-world-list article div > span { display: flex; gap: .35cqw; }
.portal-world-list article small { display: flex; align-items: center; color: #637180; }
.portal-world-list article small i { display: inline-flex; }
.portal-world-list article > button, .portal-world-hot li > button {
  border: 1px solid #8b43ee;
  border-radius: 999px;
  background: rgba(252,253,255,.7);
  color: #7133df;
  font-weight: 800;
}
.portal-world-hot ol { display: grid; grid-template-rows: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.portal-world-hot li { min-height: 0; display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; }
.portal-world-hot li > b { display: grid; place-items: center; color: #5f6270; }
.portal-world-hot li:nth-child(-n+3) > b { border-radius: 50%; color: #fff; background: linear-gradient(#ffc637,#ee8a12); text-shadow: 0 1px 1px rgba(85,45,0,.25); }
.portal-world-hot li:nth-child(2) > b { background: linear-gradient(#c9c9e5,#817aa8); }
.portal-world-hot li:nth-child(3) > b { background: linear-gradient(#ffb36a,#d96511); }
.portal-world-hot li > img { display: block; object-fit: cover; border-radius: .5cqw; }
.portal-world-hot li > div { min-width: 0; display: grid; }
.portal-world-hot li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-world-hot li span { color: #7867cb; }
.portal-world-hot li small { color: #667483; }
.portal-world-recent > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.portal-world-recent article { min-width: 0; display: flex; align-items: center; }
.portal-world-recent article > img { object-fit: cover; border-radius: 50%; background: #e4e7ff; }
.portal-world-recent article p { min-width: 0; margin: 0; color: #1d2530; }
.portal-world-recent article strong { margin-right: .2cqw; }
.portal-world-recent article small { display: block; overflow: hidden; color: #718091; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 901px) {
  .portal-authenticated .portal-world-browser {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100vw, 150svh);
    height: min(100svh, 66.6667vw);
    min-height: 0;
    transform: translate(-50%, -50%);
    container-type: size;
  }
  .portal-world-heading { position: absolute; left: 3.35%; top: 13.85%; }
  .portal-world-heading h1 { font-size: 3.05cqw; line-height: 1; }
  .portal-world-heading p { margin-top: .72cqw; font-size: 1.16cqw; }
  .portal-world-tools { position: absolute; left: 28.55%; top: 14.72%; width: 59.3%; height: 4.4%; }
  .portal-world-search { width: 16.95cqw; height: 3.05cqw; gap: .65cqw; padding: 0 1cqw; }
  .portal-world-search span { font-size: 1.5cqw; }
  .portal-world-search input { font-size: .82cqw; }
  .portal-world-filters { flex: 1; }
  .portal-world-filters button { min-width: 4.82cqw; height: 2.54cqw; padding: 0 .78cqw; font-size: .78cqw; }
  .portal-world-feature { position: absolute; left: 3.35%; top: 22.72%; width: 62%; height: 29.75%; border-radius: 1.45cqw; }
  .portal-world-feature-copy { left: 2cqw; top: 1.55cqw; width: 22.4cqw; }
  .portal-world-feature-copy > span { padding: .4cqw .8cqw; font-size: .78cqw; }
  .portal-world-feature-copy h2 { margin-top: .65cqw; font-size: 2.05cqw; }
  .portal-world-feature-copy > div { margin-top: .55cqw; }
  .portal-world-feature-copy > div b { padding: .25cqw .65cqw; font-size: .72cqw; }
  .portal-world-feature-copy p { width: 20.8cqw; margin: .72cqw 0 .35cqw; font-size: .81cqw; }
  .portal-world-feature-copy small { height: 1.55cqw; font-size: .76cqw; }
  .portal-mini-faces { margin: 0 .45cqw; }
  .portal-mini-faces img { width: 1.3cqw; height: 1.3cqw; margin-left: -.25cqw; }
  .portal-world-feature-copy > button { width: 12cqw; height: 3.15cqw; margin-top: .6cqw; padding: 0 .75cqw 0 2.55cqw; font-size: 1.02cqw; }
  .portal-world-feature-copy > button b { width: 2.25cqw; height: 2.25cqw; font-size: 1.2cqw; }
  .portal-world-recommend { position: absolute; left: 3.25%; top: 53.72%; width: 62.4%; height: 23.35%; padding: .9cqw 1.15cqw .7cqw; border-radius: 1.35cqw; }
  .portal-world-recommend > header { height: 1.85cqw; }
  .portal-world-recommend > header h2 { font-size: 1.12cqw; }
  .portal-world-recommend > header button { font-size: .78cqw; }
  .portal-world-card-grid { height: calc(100% - 1.85cqw); gap: .78cqw; padding-top: .45cqw; }
  .portal-world-card-grid article img { height: 6.9cqw; }
  .portal-world-card-grid article strong { padding: .52cqw .52cqw 0; font-size: .86cqw; }
  .portal-world-card-grid article span { padding: .35cqw .52cqw 0; }
  .portal-world-card-grid article span b { padding: .13cqw .3cqw; font-size: .62cqw; }
  .portal-world-card-grid article small { padding: .3cqw .52cqw .48cqw; font-size: .62cqw; }
  .portal-world-friends { position: absolute; left: 67.05%; top: 21.05%; width: 29.4%; height: 32.05%; padding: 1.2cqw 1.4cqw 1.05cqw; border-radius: 1.5cqw; }
  .portal-world-friends > header, .portal-world-hot > header { height: 2cqw; }
  .portal-world-friends > header h2, .portal-world-hot > header h2 { font-size: 1.12cqw; }
  .portal-world-friends > header button, .portal-world-hot > header button { font-size: .78cqw; }
  .portal-world-list { height: calc(100% - 2cqw); gap: .65cqw; padding-top: .45cqw; }
  .portal-world-list article { grid-template-columns: 4.35cqw minmax(0,1fr) 5.3cqw; gap: .85cqw; }
  .portal-world-list article > div { gap: .28cqw; }
  .portal-world-list article strong { font-size: .92cqw; }
  .portal-world-list article div > span b { padding: .12cqw .3cqw; font-size: .62cqw; }
  .portal-world-list article small { gap: .35cqw; font-size: .67cqw; }
  .portal-world-list article small i img { width: 1.15cqw; height: 1.15cqw; margin-left: -.18cqw; }
  .portal-world-list article > button { width: 5.25cqw; height: 2.55cqw; font-size: .88cqw; }
  .portal-world-hot { position: absolute; left: 67.05%; top: 54.25%; width: 29.4%; height: 31.7%; padding: 1cqw 1.4cqw 1.05cqw; border-radius: 1.5cqw; }
  .portal-world-hot ol { height: calc(100% - 2cqw); gap: .35cqw; padding-top: .35cqw; }
  .portal-world-hot li { grid-template-columns: 2cqw 4.35cqw minmax(0,1fr) 4.65cqw; gap: .72cqw; }
  .portal-world-hot li > b { width: 1.5cqw; height: 1.5cqw; font-size: .9cqw; }
  .portal-world-hot li > img { width: 4.35cqw; height: 3.25cqw; }
  .portal-world-hot li > div { gap: .12cqw; }
  .portal-world-hot li strong { font-size: .78cqw; }
  .portal-world-hot li span, .portal-world-hot li small { font-size: .59cqw; }
  .portal-world-hot li > button { width: 4.65cqw; height: 2.05cqw; font-size: .72cqw; }
  .portal-world-recent { position: absolute; left: 3.25%; top: 78.05%; width: 62.4%; height: 10.15%; padding: .6cqw 1.25cqw .65cqw; border-radius: 1.25cqw; }
  .portal-world-recent > header { height: 1.45cqw; }
  .portal-world-recent > header h2 { font-size: .82cqw; }
  .portal-world-recent > header button { font-size: .68cqw; }
  .portal-world-recent > div { height: calc(100% - 1.45cqw); gap: 1.1cqw; }
  .portal-world-recent article { gap: .62cqw; }
  .portal-world-recent article > img { width: 2.55cqw; height: 2.55cqw; }
  .portal-world-recent article p { font-size: .67cqw; }
  .portal-world-recent article small { margin-top: .35cqw; font-size: .57cqw; }
}

@media (max-width: 900px) {
  .portal-shell.portal-authenticated.portal-world-view { height: auto; min-height: 100svh; overflow: auto; }
  .portal-authenticated .portal-world-browser { position: relative; display: grid; gap: 15px; padding: 28px 16px 108px; }
  .portal-world-heading h1 { font-size: 38px; }
  .portal-world-heading p { margin-top: 8px; font-size: 14px; }
  .portal-world-tools { align-items: stretch; flex-direction: column; gap: 10px; }
  .portal-world-search { width: 100%; min-height: 48px; gap: 10px; padding: 0 16px; }
  .portal-world-filters { overflow-x: auto; padding-bottom: 4px; }
  .portal-world-filters button { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .portal-world-feature { position: relative; height: 330px; border-radius: 22px; }
  .portal-world-feature-copy { left: 22px; top: 22px; width: min(330px,70%); }
  .portal-world-feature-copy > span { padding: 6px 12px; font-size: 11px; }
  .portal-world-feature-copy h2 { margin-top: 9px; font-size: 28px; }
  .portal-world-feature-copy > div { margin-top: 8px; }
  .portal-world-feature-copy > div b { padding: 3px 8px; font-size: 10px; }
  .portal-world-feature-copy p { margin: 10px 0 5px; font-size: 12px; }
  .portal-mini-faces img { width: 20px; height: 20px; margin-left: -4px; }
  .portal-world-feature-copy > button { width: 180px; height: 46px; margin-top: 10px; padding: 0 9px 0 33px; }
  .portal-world-feature-copy > button b { width: 34px; height: 34px; }
  .glass-world-panel { padding: 16px; border-radius: 20px; box-shadow: 0 15px 34px rgba(39,78,113,.13); backdrop-filter: blur(18px); }
  .glass-world-panel > header { min-height: 34px; }
  .glass-world-panel > header h2 { font-size: 17px; }
  .portal-world-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 8px; }
  .portal-world-card-grid article { border-radius: 14px; }
  .portal-world-card-grid article img { height: 145px; }
  .portal-world-card-grid article strong { padding: 9px 10px 0; }
  .portal-world-card-grid article span { padding: 6px 10px 0; }
  .portal-world-card-grid article span b { padding: 2px 5px; font-size: 10px; }
  .portal-world-card-grid article small { padding: 6px 10px 10px; font-size: 10px; }
  .portal-world-list { gap: 12px; margin-top: 8px; }
  .portal-world-list article { min-height: 76px; grid-template-columns: 76px minmax(0,1fr) 66px; gap: 12px; }
  .portal-world-list article > div { gap: 4px; }
  .portal-world-list article div > span b { padding: 2px 5px; font-size: 10px; }
  .portal-world-list article small { font-size: 10px; }
  .portal-world-list article small i img { width: 18px; height: 18px; }
  .portal-world-list article > button { height: 36px; }
  .portal-world-hot ol { gap: 10px; margin-top: 8px; }
  .portal-world-hot li { min-height: 64px; grid-template-columns: 28px 76px minmax(0,1fr) 58px; gap: 10px; }
  .portal-world-hot li > b { width: 24px; height: 24px; }
  .portal-world-hot li > img { width: 76px; height: 58px; }
  .portal-world-hot li > div { gap: 2px; }
  .portal-world-hot li span, .portal-world-hot li small { font-size: 10px; }
  .portal-world-hot li > button { height: 34px; }
  .portal-world-recent > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 9px; }
  .portal-world-recent article { gap: 8px; }
  .portal-world-recent article > img { width: 40px; height: 40px; }
  .portal-world-recent article p { font-size: 11px; }
  .portal-world-recent article small { margin-top: 3px; font-size: 9px; }
}

@media (max-width: 520px) {
  .portal-world-heading h1 { font-size: 32px; }
  .portal-world-feature { height: 340px; }
  .portal-world-feature::after { background: linear-gradient(90deg,rgba(174,220,249,.97),rgba(195,228,249,.73) 70%,transparent); }
  .portal-world-feature-copy { width: 74%; }
  .portal-world-card-grid { grid-template-columns: 1fr; }
  .portal-world-card-grid article img { height: 180px; }
  .portal-world-list article { grid-template-columns: 64px minmax(0,1fr) 54px; gap: 8px; }
  .portal-world-hot li { grid-template-columns: 24px 62px minmax(0,1fr) 50px; gap: 7px; }
  .portal-world-hot li > img { width: 62px; height: 52px; }
  .portal-world-recent > div { grid-template-columns: 1fr; }
}

.portal-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #c8ecff url("../assets/digital-self-home-bg-v2.468dd125c861.webp") center / cover no-repeat;
  transform: scale(1.006);
}

.portal-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250, 253, 255, .94) 0%, rgba(250, 253, 255, .76) 25%, rgba(246, 251, 255, .13) 53%, rgba(238, 249, 255, .05) 100%),
    linear-gradient(0deg, rgba(224, 241, 252, .9) 0%, transparent 35%);
}

.portal-shell.portal-authenticated::before {
  background: linear-gradient(180deg, rgba(220, 244, 255, .08), rgba(222, 240, 248, .14) 55%, rgba(23, 65, 60, .25));
}

.portal-header {
  position: relative;
  z-index: 5;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 22px clamp(24px, 3.2vw, 58px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: #070a12;
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.035em;
}

.portal-brand-copy { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.portal-brand-copy strong { font-size: 1.08em; letter-spacing: .04em; }
.portal-brand-copy small { color: #4b556b; font-size: .47em; font-weight: 800; letter-spacing: .075em; white-space: nowrap; }

.portal-brand-orbit {
  position: relative;
  width: 50px;
  height: 42px;
  display: block;
  transform: rotate(-12deg);
}

.portal-brand-orbit::before {
  content: "";
  position: absolute;
  inset: 3px 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ebcff, #6d35ec 62%, #a240ee);
  box-shadow: inset 8px -7px 16px rgba(29, 19, 148, .2), 0 7px 18px rgba(83, 54, 225, .25);
}

.portal-brand-orbit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 13px;
  border: 3px solid #7651f0;
  border-top-color: rgba(137, 228, 255, .85);
  border-radius: 50%;
}

.portal-brand-orbit i {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  right: 3px;
  top: 10px;
  border-radius: 50%;
  background: #9df5ff;
  box-shadow: 0 0 12px #5fefff;
}

.portal-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 62px);
}

.portal-desktop-nav a {
  color: #11182b;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.portal-desktop-nav a:hover { color: var(--portal-purple); }

.portal-guest-actions, .portal-member-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-login-link, .portal-primary-link {
  min-width: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  color: #171b28;
  text-decoration: none;
  font-weight: 850;
}

.portal-login-link {
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(249,252,255,.7);
  backdrop-filter: blur(16px);
}

.portal-primary-link, .portal-cta {
  color: white;
  background: linear-gradient(135deg, #7050f7, #8e2ee7);
  box-shadow: 0 14px 34px rgba(103, 47, 225, .26);
}

.portal-primary-link { min-width: 148px; }
.portal-primary-link:hover, .portal-cta:hover { transform: translateY(-2px); }

.portal-resource-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(246,252,255,.62);
  box-shadow: 0 10px 25px rgba(50,89,134,.12);
  backdrop-filter: blur(16px);
  font-size: 15px;
}

.portal-resource-pill strong { font-size: 18px; }
.portal-icon-button, .portal-avatar-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(246,252,255,.65);
  color: #121725;
  cursor: pointer;
}
.portal-icon-button { font-size: 10px; }
.portal-avatar-button { padding: 0; overflow: hidden; }
.portal-avatar-button img { width: 100%; height: 100%; object-fit: cover; }

.portal-loading {
  min-height: calc(100svh - 96px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: #303a50;
}

.portal-loader {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(108, 57, 231, .18);
  border-top-color: var(--portal-purple);
  border-radius: 50%;
  animation: portal-spin .8s linear infinite;
}

@keyframes portal-spin { to { transform: rotate(360deg); } }

.portal-guest {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-rows: minmax(500px, 1fr) auto auto;
  align-content: stretch;
  gap: 22px;
  padding: 18px clamp(34px, 5.6vw, 90px) clamp(34px, 6vh, 66px);
}

.portal-hero {
  width: min(610px, 47vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 18px;
}

.portal-kicker {
  margin: 0 0 18px;
  color: #6740d9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.portal-hero h1 {
  margin: 0;
  color: #080a11;
  font-size: clamp(42px, 3.8vw, 60px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: -.045em;
}

.portal-hero h1 .portal-title-prefix {
  display: inline-block;
  color: #0b0e17;
  font-size: .82em;
  letter-spacing: -.025em;
}

.portal-hero h1 .portal-title-highlight {
  position: relative;
  display: inline-block;
  padding: .04em .05em .08em 0;
  color: transparent;
  background: linear-gradient(90deg, #356cf3, #8535e6);
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
}

.portal-hero h1 .portal-title-highlight::after {
  content: "";
  position: absolute;
  left: .03em;
  right: .08em;
  bottom: 0;
  height: .07em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(53,108,243,.28), rgba(133,53,230,.16));
}

.portal-lead {
  margin: 18px 0 0;
  color: #333b4c;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.75;
}

.portal-hero-actions { display: flex; gap: 18px; margin-top: 28px; }
.portal-cta, .portal-secondary-cta {
  min-width: 184px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.portal-cta b { margin-left: 8px; font-size: 22px; }
.portal-secondary-cta {
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(244,249,252,.64);
  color: #2c3340;
  backdrop-filter: blur(15px);
}
.portal-powered { margin: 16px 0 0; color: #667087; font-size: 12px; font-weight: 750; letter-spacing: .045em; }
.portal-powered strong { color: #5140b8; font-weight: 950; }
.portal-social-proof { display: flex; align-items: center; gap: 16px; margin-top: 28px; color: #30394c; font-size: 14px; }
.portal-face-stack { display: flex; }
.portal-face-stack img { width: 38px; height: 38px; margin-right: -9px; border: 3px solid rgba(247,252,255,.95); border-radius: 50%; object-fit: cover; background: #dcecff; }

.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.portal-feature-grid article {
  min-height: 134px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px clamp(18px, 2vw, 30px);
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: var(--portal-glass);
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(18px);
}
.portal-feature-icon { font-size: 43px; font-weight: 900; line-height: 1; }
.portal-feature-icon.purple { color: #7437ed; }.portal-feature-icon.green { color: #27b878; }.portal-feature-icon.orange { color: #ff722e; }.portal-feature-icon.blue { color: #4168f4; }
.portal-feature-grid h2 { margin: 0 0 7px; font-size: 18px; color: #5f2ee7; }
.portal-feature-grid article:nth-child(2) h2 { color: #1c9f71; }.portal-feature-grid article:nth-child(3) h2 { color: #fa6b26; }.portal-feature-grid article:nth-child(4) h2 { color: #3860eb; }
.portal-feature-grid p { margin: 0; color: #3e4656; font-size: 13px; line-height: 1.65; }

.portal-stats {
  min-height: 108px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: rgba(249,252,255,.85);
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(18px);
}
.portal-stats > div { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; padding: 14px 20px; border-right: 1px solid rgba(77,102,134,.15); }
.portal-stats > div:last-child { border-right: 0; }
.portal-stats > div > span { color: #7440ea; font-size: 28px; }
.portal-stats strong { color: #111522; font-size: clamp(17px, 1.45vw, 24px); white-space: nowrap; }
.portal-stats small { display: block; margin-top: 4px; color: #4c5565; font-size: 11px; font-weight: 500; }

.portal-member {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(430px, .88fr);
  grid-template-areas:
    "intro actions"
    "self actions"
    "activity today"
    "dock today"
    "bottom bottom";
  grid-template-rows: auto minmax(280px, 1fr) minmax(190px, auto) auto auto;
  gap: 16px clamp(28px, 4vw, 62px);
  align-content: center;
  padding: 22px clamp(34px, 4vw, 70px) 24px;
}
.portal-member-intro { grid-area: intro; align-self: end; }
.portal-member-intro p { margin: 0; font-size: clamp(32px, 3vw, 48px); font-weight: 950; letter-spacing: -.045em; }
.portal-member-intro p::first-line { color: #5224c9; }
.portal-member-intro span { display: block; margin-top: 10px; color: #465063; font-size: 16px; }

.portal-self-card, .portal-activity-card, .portal-today-card {
  border: 1px solid var(--portal-border);
  background: rgba(249,252,255,.82);
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(20px);
}
.portal-self-card {
  grid-area: self;
  position: relative;
  min-height: 278px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39%;
  border-radius: 26px;
  padding: 25px 22px 20px 28px;
}
.portal-self-card::after { content: ""; position: absolute; right: -10%; bottom: -40%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(133,70,238,.17), transparent 65%); }
.portal-self-copy { position: relative; z-index: 2; min-width: 0; }
.portal-self-copy > p { margin: 0; font-size: 18px; font-weight: 800; }
.portal-self-copy > p strong { font-size: 22px; }
.portal-self-copy > span { display: block; margin: 8px 0 23px; color: #3e4654; font-size: 12px; }
.portal-self-copy > span i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22d962; }
.portal-self-copy > span b { color: #272d38; }
.portal-meter { margin-bottom: 14px; }
.portal-meter label { display: flex; justify-content: space-between; color: #455064; font-size: 11px; }
.portal-meter > i { display: block; width: 100%; height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #dbe6ef; }
.portal-meter > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7543e9,#9d48ee); }
.portal-self-copy > button { width: 100%; min-height: 45px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#7336e9,#9041e8); color: white; font-weight: 850; cursor: pointer; }
.portal-self-card > img { position: relative; z-index: 1; width: 165%; max-width: none; align-self: end; justify-self: center; transform: translateX(-15%); filter: drop-shadow(0 14px 16px rgba(31,49,83,.22)); }

.portal-activity-card { grid-area: activity; border-radius: 24px; padding: 18px 20px; }
.portal-activity-card header, .portal-today-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.portal-activity-card header strong, .portal-today-card header strong { font-size: 15px; }
.portal-activity-card header button, .portal-today-card header button { border: 0; background: transparent; color: #687285; cursor: pointer; }
#portalActivityList { display: grid; gap: 7px; }
.portal-activity-item { min-height: 45px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 13px; background: rgba(255,255,255,.65); color: #242a35; font-size: 12px; }
.portal-activity-item time { color: #8992a0; }

.portal-member-actions-grid { grid-area: actions; display: grid; grid-template-rows: repeat(4, minmax(88px, 1fr)); gap: 13px; }
.portal-member-actions-grid button {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) 42px;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  color: white;
  text-align: left;
  box-shadow: 0 17px 35px rgba(37, 82, 126, .16);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.portal-member-actions-grid button:hover { transform: translateY(-2px); filter: saturate(1.1); }
.portal-member-actions-grid .world { background: linear-gradient(135deg,#742be5,#a845ee); }
.portal-member-actions-grid .create { background: linear-gradient(135deg,#6bbd49,#8bd45c); }
.portal-member-actions-grid .friends { background: linear-gradient(135deg,#3687e9,#62a9f7); }
.portal-member-actions-grid .market { background: linear-gradient(135deg,#f1a41e,#f7bf48); }
.portal-member-actions-grid button > span { font-size: 42px; text-align: center; }
.portal-member-actions-grid strong { font-size: 21px; }
.portal-member-actions-grid small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; }
.portal-member-actions-grid button > b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: #202636; font-size: 20px; }

.portal-today-card { grid-area: today; align-self: end; border-radius: 24px; padding: 18px 20px; }
.portal-today-card > div { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 15px; background: rgba(255,255,255,.6); }
.portal-event-art { width: 62px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg,#66c4ee,#8d5ae8); font-size: 27px; }
.portal-today-card strong { font-size: 13px; }.portal-today-card small { display: block; margin-top: 4px; font-weight: 500; }.portal-today-card time { padding: 8px 11px; border-radius: 999px; background: #dfd0ff; color: #6a39dc; font-size: 11px; font-weight: 800; }

.portal-quick-dock { grid-area: dock; justify-self: end; display: flex; align-items: center; gap: 9px; padding: 9px 18px; border: 1px solid var(--portal-border); border-radius: 999px; background: rgba(249,252,255,.82); box-shadow: var(--portal-shadow); backdrop-filter: blur(18px); }
.portal-quick-dock button { width: 64px; display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: #2f3642; font-size: 22px; cursor: pointer; }.portal-quick-dock span { font-size: 10px; }

.portal-bottom-nav { grid-area: bottom; justify-self: center; width: min(840px, 75vw); min-height: 72px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; padding: 7px; border: 1px solid var(--portal-border); border-radius: 999px; background: rgba(248,249,243,.83); box-shadow: 0 20px 50px rgba(32,60,74,.24); backdrop-filter: blur(20px); }
.portal-bottom-nav button { min-height: 56px; border: 0; border-radius: 999px; background: transparent; color: #30353e; font-size: 24px; cursor: pointer; }.portal-bottom-nav button span { margin-left: 8px; font-size: 15px; }.portal-bottom-nav .active { border: 2px solid #8e50ed; background: rgba(255,255,255,.75); color: #6630dc; }.portal-bottom-nav .add { justify-self: center; width: 58px; color: white; background: linear-gradient(135deg,#7442ed,#8e3beb); box-shadow: 0 9px 22px rgba(105,51,222,.32); font-size: 34px; }

.portal-notice { position: fixed; z-index: 20; left: 50%; bottom: 26px; max-width: min(520px, calc(100vw - 34px)); padding: 12px 18px; border-radius: 999px; background: rgba(21,27,46,.9); color: white; box-shadow: 0 14px 38px rgba(0,0,0,.24); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.portal-notice.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1100px) {
  .portal-header { grid-template-columns: 1fr auto; }
  .portal-desktop-nav { display: none; }
  .portal-hero { width: min(570px, 58vw); }
  .portal-feature-grid { grid-template-columns: repeat(2,1fr); }
  .portal-stats { grid-template-columns: repeat(3,1fr); }
  .portal-stats > div:nth-child(3) { border-right: 0; }
  .portal-member { grid-template-columns: minmax(340px,1fr) minmax(350px,.9fr); gap: 15px 22px; }
}

@media (max-width: 820px) {
  .portal-shell { overflow: auto; }
  .portal-header { position: relative; min-height: 78px; padding: 15px 18px; }
  .portal-brand { font-size: 16px; }.portal-brand-orbit { width: 42px; height: 36px; }
  .portal-primary-link { min-width: 105px; }.portal-login-link { min-width: 76px; }
  .portal-member-actions .portal-resource-pill { display: none; }
  .portal-guest { min-height: auto; grid-template-rows: auto; padding: 54px 18px 30px; }
  .portal-hero { width: 100%; min-height: 620px; justify-content: flex-start; padding-top: 40px; }
  .portal-shell::before { background: linear-gradient(180deg,rgba(249,253,255,.9),rgba(249,253,255,.38) 58%,rgba(226,241,250,.82)); }
  .portal-backdrop { background-position: 61% center; }
  .portal-hero h1 { font-size: clamp(34px,10vw,48px); }.portal-lead br { display: none; }
  .portal-feature-grid { grid-template-columns: 1fr; }.portal-feature-grid article { min-height: 108px; }
  .portal-stats { grid-template-columns: repeat(2,1fr); }.portal-stats > div { border-bottom: 1px solid rgba(77,102,134,.12); }.portal-stats > div:nth-child(even) { border-right: 0; }.portal-stats > div:last-child { grid-column: 1/-1; }
  .portal-member { min-height: auto; grid-template-columns: 1fr; grid-template-areas: "intro" "self" "actions" "activity" "today" "dock" "bottom"; grid-template-rows: auto; padding: 46px 18px 110px; }
  .portal-member-intro p { font-size: 34px; }.portal-member-actions-grid { grid-template-rows: repeat(4,110px); }
  .portal-quick-dock { justify-self: stretch; justify-content: space-around; }
  .portal-bottom-nav { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: 12px; width: auto; min-height: 66px; }.portal-bottom-nav button { font-size: 20px; }.portal-bottom-nav button span { display: block; margin: 2px 0 0; font-size: 9px; }.portal-bottom-nav .add { width: 50px; height: 50px; min-height: 50px; }
}

@media (max-width: 520px) {
  .portal-guest-actions { gap: 7px; }.portal-login-link, .portal-primary-link { min-height: 40px; font-size: 12px; }.portal-primary-link { min-width: 84px; }.portal-login-link { min-width: 56px; }
  .portal-member-actions { gap: 6px; }.portal-icon-button, .portal-avatar-button { width: 40px; height: 40px; }
  .portal-kicker { display: none; }.portal-hero { min-height: 560px; padding-top: 24px; }.portal-hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }.portal-cta, .portal-secondary-cta { min-height: 52px; }.portal-social-proof { align-items: flex-start; flex-direction: column; }
  .portal-self-card { grid-template-columns: minmax(0,1fr) 32%; padding-left: 20px; }.portal-self-card > img { width: 210%; transform: translateX(-28%); }
  .portal-member-actions-grid button { grid-template-columns: 50px minmax(0,1fr) 36px; padding: 12px 15px; gap: 10px; border-radius: 20px; }.portal-member-actions-grid button > span { font-size: 31px; }.portal-member-actions-grid strong { font-size: 17px; }.portal-member-actions-grid button > b { width: 34px; height: 34px; }
  .portal-quick-dock { padding: 8px 5px; }.portal-quick-dock button { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-loader { animation-duration: 1.8s; }
  .portal-primary-link, .portal-cta, .portal-member-actions-grid button { transition: none; }
}

/* Authenticated home: calibrated against the 1536 × 1024 product reference. */
.portal-member-profile[hidden], .portal-account-menu[hidden] { display: none !important; }
.portal-member-profile {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #10151e;
}
.portal-member-profile > img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: linear-gradient(145deg,#283574,#8d45ed);
  box-shadow: 0 12px 28px rgba(36,77,118,.2);
}
.portal-member-profile > span { display: grid; gap: 8px; }
.portal-profile-name { display: flex; align-items: center; gap: 11px; }
.portal-profile-name strong { font-size: 28px; line-height: 1; letter-spacing: -.035em; }
.portal-profile-name b { padding: 5px 9px; border-radius: 999px; background: linear-gradient(135deg,#7138ed,#a64cf3); color: #fff; font-size: 12px; }
.portal-member-profile small { display: flex; align-items: center; gap: 7px; color: #263447; font-size: 14px; }
.portal-member-profile small i { width: 11px; height: 11px; border-radius: 50%; background: #27d75f; box-shadow: 0 0 12px rgba(39,215,95,.4); }

.portal-social-pill {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(236,247,255,.58);
  box-shadow: 0 10px 30px rgba(38,76,121,.12);
  backdrop-filter: blur(18px);
}
.portal-social-pill .portal-icon-button, .portal-social-pill .portal-avatar-button {
  width: 50px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #0d1420;
  font-size: 23px;
}
.portal-social-pill .portal-avatar-button { position: relative; overflow: visible; font-size: 27px; }
.portal-social-pill .portal-avatar-button i { position: absolute; right: 1px; top: 0; width: 11px; height: 11px; border: 2px solid #e8f6ff; border-radius: 50%; background: #fa2739; }

.portal-account-menu {
  position: fixed;
  z-index: 40;
  top: 98px;
  right: 38px;
  width: 220px;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px;
  background: rgba(248,252,255,.92);
  box-shadow: 0 22px 55px rgba(28,55,94,.24);
  color: #151a24;
  backdrop-filter: blur(24px);
}
.portal-account-menu strong { font-size: 17px; }
.portal-account-menu span { color: #707b8d; font-size: 11px; }
.portal-account-menu button { min-height: 42px; margin-top: 6px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#7138ed,#9241ec); color: #fff; font-weight: 850; cursor: pointer; }

@media (min-width: 901px) {
  .portal-shell.portal-authenticated { height: 100svh; min-height: 700px; overflow: hidden; border-radius: 24px; }
  .portal-authenticated .portal-backdrop { position: absolute; background-position: 91% center; transform: none; }
  .portal-authenticated::before { background: linear-gradient(180deg,rgba(205,237,255,.18),rgba(255,255,255,.03) 42%,rgba(56,106,57,.13)); }
  .portal-authenticated .portal-header {
    position: absolute;
    z-index: 15;
    inset: 0 0 auto;
    height: 112px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 38px 14px;
  }
  .portal-authenticated .portal-brand, .portal-authenticated .portal-desktop-nav { display: none; }
  .portal-authenticated .portal-member-actions { justify-self: auto; gap: 20px; }
  .portal-authenticated .portal-resource-pill {
    width: 172px;
    min-height: 56px;
    justify-content: flex-start;
    gap: 11px;
    padding: 0 15px;
    border-color: rgba(255,255,255,.62);
    background: rgba(236,247,255,.59);
    color: #101621;
  }
  .portal-authenticated .portal-resource-pill i { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.52); font-size: 25px; font-style: normal; }
  .portal-authenticated .portal-resource-pill strong { flex: 1; font-size: 21px; letter-spacing: .01em; }
  .portal-authenticated .portal-resource-pill > b { font-size: 24px; font-weight: 500; }

  .portal-authenticated .portal-member {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 700px;
    display: block;
    padding: 0;
  }
  .portal-authenticated .portal-member-intro {
    position: absolute;
    left: 3.35vw;
    top: 14.35vh;
  }
  .portal-authenticated .portal-member-intro p { font-size: clamp(31px,3.02vw,47px); line-height: 1.08; color: #12171e; }
  .portal-authenticated .portal-member-intro p span { display: inline; margin: 0; color: #5224c9; }
  .portal-authenticated .portal-member-intro > span { margin-top: 17px; color: #394554; font-size: clamp(13px,1.15vw,18px); }

  .portal-authenticated .portal-self-card {
    position: absolute;
    left: 3.25vw;
    top: 26.1vh;
    width: 29.82vw;
    height: 32vh;
    min-height: 238px;
    display: block;
    padding: clamp(18px,1.8vw,28px) clamp(16px,1.8vw,28px);
    border-radius: 28px;
    background: rgba(250,253,255,.72);
    box-shadow: 0 20px 48px rgba(45,85,117,.18);
  }
  .portal-authenticated .portal-self-card::after { right: -4%; bottom: -36%; width: 52%; background: radial-gradient(circle,rgba(255,255,255,.82),transparent 66%); }
  .portal-authenticated .portal-self-copy { width: 62%; height: 100%; display: flex; flex-direction: column; }
  .portal-authenticated .portal-self-copy > p { display: flex; align-items: center; gap: 8px; font-size: clamp(14px,1.2vw,19px); }
  .portal-authenticated .portal-self-copy > p strong { font-size: inherit; }
  .portal-authenticated .portal-self-copy > p button { border: 0; background: transparent; color: #8b929c; font-size: 17px; cursor: pointer; }
  .portal-authenticated .portal-self-copy > span { margin: 12px 0 21px; font-size: clamp(10px,.9vw,14px); white-space: nowrap; }
  .portal-authenticated .portal-meter { margin-bottom: clamp(10px,1.3vh,14px); }
  .portal-authenticated .portal-meter label { font-size: clamp(9px,.8vw,12px); }
  .portal-authenticated .portal-meter > i { height: 5px; margin-top: 8px; }
  .portal-authenticated .portal-meter:nth-of-type(2) > i b { background: linear-gradient(90deg,#438cf4,#6b89f5); }
  .portal-authenticated .portal-meter:nth-of-type(3) > i b { background: linear-gradient(90deg,#552ad1,#8d38e7); }
  .portal-authenticated .portal-self-copy > button { min-height: clamp(40px,4.8vh,50px); margin-top: auto; font-size: clamp(11px,1vw,15px); }
  .portal-authenticated .portal-self-card > img { position: absolute; z-index: 2; right: -1%; bottom: 6%; width: 44%; height: 77%; object-fit: contain; transform: none; }

  .portal-authenticated .portal-activity-card {
    position: absolute;
    left: 3.25vw;
    top: 59.6vh;
    width: 27.87vw;
    height: 24.2vh;
    min-height: 176px;
    padding: clamp(14px,1.3vw,20px);
    border-radius: 24px;
    background: rgba(250,253,255,.76);
  }
  .portal-authenticated .portal-activity-card header { margin-bottom: 12px; }
  .portal-authenticated .portal-activity-card header strong { font-size: clamp(12px,1vw,16px); }
  .portal-authenticated #portalActivityList { height: calc(100% - 31px); grid-template-rows: repeat(3,1fr); gap: 7px; }
  .portal-authenticated .portal-activity-item { min-height: 0; padding: 7px 11px; border-radius: 12px; background: rgba(255,255,255,.62); font-size: clamp(9px,.82vw,13px); }

  .portal-authenticated .portal-member-actions-grid {
    position: absolute;
    top: 14.25vh;
    right: 3.05vw;
    width: 28.42vw;
    height: 52.8vh;
    display: grid;
    grid-template-rows: repeat(4,1fr);
    gap: 12px;
  }
  .portal-authenticated .portal-member-actions-grid button {
    grid-template-columns: clamp(56px,5.2vw,80px) minmax(0,1fr) 44px;
    gap: clamp(12px,1.5vw,23px);
    padding: 14px clamp(20px,2vw,31px);
    border-radius: 25px;
    box-shadow: 0 18px 38px rgba(40,79,108,.16);
  }
  .portal-authenticated .portal-member-actions-grid .world { background: linear-gradient(135deg,#7424e8,#a83df2); }
  .portal-authenticated .portal-member-actions-grid .create { background: linear-gradient(135deg,#77c644,#62c554); }
  .portal-authenticated .portal-member-actions-grid .friends { background: linear-gradient(135deg,#398bea,#66a9f5); }
  .portal-authenticated .portal-member-actions-grid .market { background: linear-gradient(135deg,#eda52d,#f6ba32); }
  .portal-authenticated .portal-member-actions-grid button > span { font-size: clamp(38px,4vw,61px); filter: drop-shadow(0 7px 7px rgba(53,42,71,.2)); }
  .portal-authenticated .portal-member-actions-grid strong { font-size: clamp(15px,1.5vw,23px); }
  .portal-authenticated .portal-member-actions-grid small { margin-top: 6px; font-size: clamp(10px,1vw,16px); }
  .portal-authenticated .portal-member-actions-grid button > b { width: 43px; height: 43px; font-size: 23px; }

  .portal-authenticated .portal-today-card {
    position: absolute;
    top: 68.35vh;
    right: 3.05vw;
    width: 28.42vw;
    height: 16.2vh;
    min-height: 120px;
    padding: clamp(14px,1.4vw,21px) clamp(17px,1.7vw,26px);
    border-radius: 25px;
    background: rgba(250,253,255,.78);
  }
  .portal-authenticated .portal-today-card header { margin-bottom: 11px; }
  .portal-authenticated .portal-today-card header strong { font-size: clamp(12px,1.05vw,16px); }
  .portal-authenticated .portal-today-card > div { height: calc(100% - 29px); grid-template-columns: clamp(54px,4.8vw,74px) minmax(0,1fr) auto; padding: 0; background: transparent; }
  .portal-authenticated .portal-event-art { width: clamp(54px,4.8vw,74px); height: 100%; max-height: 74px; object-fit: cover; border-radius: 12px; }
  .portal-authenticated .portal-today-card strong { font-size: clamp(11px,.95vw,15px); }
  .portal-authenticated .portal-today-card time { font-size: clamp(9px,.85vw,13px); }

  .portal-authenticated .portal-quick-dock {
    position: absolute;
    left: 32.8vw;
    top: 76.7vh;
    width: 29.82vw;
    height: 11.2vh;
    min-height: 82px;
    justify-content: space-around;
    gap: 0;
    padding: 10px 23px;
    border-radius: 999px;
    background: rgba(250,250,244,.8);
  }
  .portal-authenticated .portal-quick-dock button { width: 70px; gap: 6px; color: #242b34; font-size: clamp(22px,2.2vw,34px); }
  .portal-authenticated .portal-quick-dock button b { width: clamp(38px,3.2vw,49px); height: clamp(38px,3.2vw,49px); display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.76); box-shadow: 0 6px 15px rgba(54,72,91,.08); font-size: clamp(19px,1.8vw,28px); }
  .portal-authenticated .portal-quick-dock span { font-size: clamp(10px,.9vw,14px); }

  .portal-authenticated .portal-bottom-nav {
    position: absolute;
    z-index: 12;
    left: 16.4vw;
    bottom: 1.8vh;
    width: 67.32vw;
    height: 8.9vh;
    min-height: 66px;
    display: grid;
    grid-template-columns: 1.12fr 1fr .72fr 1fr 1fr;
    padding: 7px;
    border-radius: 999px;
    background: rgba(244,244,226,.84);
  }
  .portal-authenticated .portal-bottom-nav button { height: 100%; min-height: 0; font-size: clamp(20px,2vw,31px); }
  .portal-authenticated .portal-bottom-nav button b { font-size: inherit; }
  .portal-authenticated .portal-bottom-nav button span { margin-left: 11px; font-size: clamp(13px,1.25vw,19px); }
  .portal-authenticated .portal-bottom-nav .active { border-color: #8b47ed; color: #682ade; box-shadow: 0 0 22px rgba(117,49,224,.2); }
  .portal-authenticated .portal-bottom-nav .add { width: clamp(55px,5vw,74px); height: clamp(55px,6.5vh,70px); font-size: 42px; }
}

@media (max-width: 900px) {
  .portal-shell.portal-authenticated { height: auto; min-height: 100svh; overflow: auto; border-radius: 0; }
  .portal-authenticated .portal-backdrop { background-position: 68% center; }
  .portal-authenticated .portal-header { position: relative; min-height: 78px; display: flex; justify-content: space-between; padding: 13px 16px; }
  .portal-authenticated .portal-brand, .portal-authenticated .portal-desktop-nav { display: none; }
  .portal-member-profile { gap: 9px; }.portal-member-profile > img { width: 50px; height: 50px; }.portal-profile-name strong { font-size: 18px; }.portal-profile-name b { padding: 3px 6px; font-size: 9px; }.portal-member-profile small { font-size: 10px; }
  .portal-authenticated .portal-member-actions { gap: 7px; }.portal-authenticated .portal-member-actions .portal-resource-pill { display: none; }.portal-social-pill { height: 48px; padding: 2px 4px; }.portal-social-pill .portal-icon-button, .portal-social-pill .portal-avatar-button { width: 38px; height: 42px; font-size: 18px; }
  .portal-account-menu { top: 72px; right: 14px; }
  .portal-authenticated .portal-member { min-height: auto; height: auto; display: grid; grid-template-columns: 1fr; grid-template-areas: "intro" "self" "actions" "activity" "today" "dock" "bottom"; gap: 15px; padding: 32px 16px 105px; }
  .portal-authenticated .portal-member-intro, .portal-authenticated .portal-self-card, .portal-authenticated .portal-activity-card, .portal-authenticated .portal-member-actions-grid, .portal-authenticated .portal-today-card, .portal-authenticated .portal-quick-dock, .portal-authenticated .portal-bottom-nav { position: static; width: auto; height: auto; min-height: 0; }
  .portal-authenticated .portal-member-intro { grid-area: intro; }.portal-authenticated .portal-member-intro p { font-size: 34px; }.portal-authenticated .portal-member-intro > span { font-size: 13px; }
  .portal-authenticated .portal-self-card { grid-area: self; min-height: 310px; }.portal-authenticated .portal-self-copy { width: 68%; }.portal-authenticated .portal-self-card > img { width: 44%; }
  .portal-authenticated .portal-member-actions-grid { grid-area: actions; grid-template-rows: repeat(4,106px); }.portal-authenticated .portal-member-actions-grid button { grid-template-columns: 52px minmax(0,1fr) 38px; }
  .portal-authenticated .portal-activity-card { grid-area: activity; min-height: 230px; }.portal-authenticated #portalActivityList { height: auto; }
  .portal-authenticated .portal-today-card { grid-area: today; min-height: 145px; }
  .portal-authenticated .portal-quick-dock { grid-area: dock; min-height: 88px; justify-self: stretch; }
  .portal-authenticated .portal-bottom-nav { position: fixed; grid-area: bottom; left: 12px; right: 12px; bottom: 12px; width: auto; min-height: 68px; }
}

@media (max-width: 520px) {
  .portal-authenticated .portal-member { padding-inline: 12px; }
  .portal-member-profile > span { gap: 5px; }.portal-profile-name { gap: 5px; }.portal-member-profile > img { width: 44px; height: 44px; }
  .portal-social-pill .portal-icon-button:first-child { display: none; }
  .portal-authenticated .portal-self-copy { width: 72%; }.portal-authenticated .portal-self-card > img { right: -8%; width: 50%; }
  .portal-authenticated .portal-bottom-nav button span { font-size: 10px; }
}

/* Aspect-fit correction: every desktop measurement uses one 3:2 canvas scale. */
@media (min-width: 901px) {
  .portal-shell.portal-authenticated { min-height: 0; }
  .portal-authenticated .portal-header {
    top: calc(50svh - min(50svh, 33.33335vw));
    left: 50%;
    right: auto;
    width: min(100vw, 150svh);
    height: min(10.94svh, 7.293vw);
    padding: min(2.34svh, 1.56vw) min(2.47vw, 3.705svh) 0;
    transform: translateX(-50%);
  }
  .portal-authenticated .portal-member-profile { gap: min(1.11vw, 1.66svh); }
  .portal-authenticated .portal-member-profile > img { width: min(4.82vw, 7.23svh); height: min(4.82vw, 7.23svh); border-width: min(.2vw, .3svh); }
  .portal-authenticated .portal-member-profile > span { gap: min(.52vw, .78svh); }
  .portal-authenticated .portal-profile-name { gap: min(.72vw, 1.08svh); }
  .portal-authenticated .portal-profile-name strong { font-size: min(1.82vw, 2.73svh); }
  .portal-authenticated .portal-profile-name b { padding: min(.33vw, .49svh) min(.59vw, .88svh); font-size: min(.78vw, 1.17svh); }
  .portal-authenticated .portal-member-profile small { gap: min(.46vw, .68svh); font-size: min(.91vw, 1.37svh); }
  .portal-authenticated .portal-member-profile small i { width: min(.72vw, 1.08svh); height: min(.72vw, 1.08svh); }
  .portal-authenticated .portal-member-actions { gap: min(1.3vw, 1.95svh); }
  .portal-authenticated .portal-resource-pill {
    width: min(11.2vw, 16.8svh);
    min-height: min(3.65vw, 5.47svh);
    gap: min(.72vw, 1.08svh);
    padding: 0 min(.98vw, 1.46svh);
  }
  .portal-authenticated .portal-resource-pill i { width: min(2.41vw, 3.61svh); height: min(2.41vw, 3.61svh); font-size: min(1.63vw, 2.44svh); }
  .portal-authenticated .portal-resource-pill strong { font-size: min(1.37vw, 2.05svh); }
  .portal-authenticated .portal-resource-pill > b { font-size: min(1.56vw, 2.34svh); }
  .portal-authenticated .portal-social-pill { height: min(3.65vw, 5.47svh); padding: min(.26vw, .39svh) min(.52vw, .78svh); }
  .portal-authenticated .portal-social-pill .portal-icon-button, .portal-authenticated .portal-social-pill .portal-avatar-button { width: min(3.26vw, 4.88svh); height: min(3.13vw, 4.69svh); font-size: min(1.5vw, 2.25svh); }
  .portal-authenticated .portal-social-pill .portal-avatar-button { font-size: min(1.76vw, 2.64svh); }

  .portal-authenticated .portal-member {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100vw, 150svh);
    height: min(100svh, 66.6667vw);
    min-height: 0;
    transform: translate(-50%, -50%);
    container-type: size;
  }
  .portal-authenticated .portal-member-intro { left: 3.35%; top: 14.35%; }
  .portal-authenticated .portal-member-intro p { font-size: 3.02cqw; }
  .portal-authenticated .portal-member-intro > span { margin-top: 1.1cqw; font-size: 1.15cqw; }

  .portal-authenticated .portal-self-card { left: 3.25%; top: 26.1%; width: 29.82%; height: 32%; min-height: 0; padding: 1.82cqw; border-radius: 1.82cqw; }
  .portal-authenticated .portal-self-copy > p { gap: .52cqw; font-size: 1.2cqw; }
  .portal-authenticated .portal-self-copy > p button { font-size: 1.1cqw; }
  .portal-authenticated .portal-self-copy > span { margin: .78cqw 0 1.37cqw; font-size: .9cqw; }
  .portal-authenticated .portal-meter { margin-bottom: .85cqw; }
  .portal-authenticated .portal-meter label { font-size: .76cqw; }
  .portal-authenticated .portal-meter > i { height: .33cqw; margin-top: .52cqw; }
  .portal-authenticated .portal-self-copy > button { min-height: 3.05cqw; font-size: .98cqw; }

  .portal-authenticated .portal-activity-card { left: 3.25%; top: 59.6%; width: 27.87%; height: 24.2%; min-height: 0; padding: 1.3cqw; border-radius: 1.56cqw; }
  .portal-authenticated .portal-activity-card header { margin-bottom: .78cqw; }
  .portal-authenticated .portal-activity-card header strong { font-size: 1.02cqw; }
  .portal-authenticated #portalActivityList { height: calc(100% - 2.02cqw); gap: .46cqw; }
  .portal-authenticated .portal-activity-item { padding: .46cqw .72cqw; border-radius: .78cqw; font-size: .82cqw; }

  .portal-authenticated .portal-member-actions-grid { top: 14.25%; right: 3.05%; width: 28.42%; height: 52.8%; gap: .78cqw; }
  .portal-authenticated .portal-member-actions-grid button { grid-template-columns: 5.2cqw minmax(0,1fr) 2.87cqw; gap: 1.5cqw; padding: .91cqw 2.02cqw; border-radius: 1.63cqw; }
  .portal-authenticated .portal-member-actions-grid button > span { font-size: 4cqw; }
  .portal-authenticated .portal-member-actions-grid strong { font-size: 1.5cqw; }
  .portal-authenticated .portal-member-actions-grid small { margin-top: .39cqw; font-size: 1cqw; }
  .portal-authenticated .portal-member-actions-grid button > b { width: 2.8cqw; height: 2.8cqw; font-size: 1.5cqw; }

  .portal-authenticated .portal-today-card { top: 68.35%; right: 3.05%; width: 28.42%; height: 16.2%; min-height: 0; padding: 1.37cqw 1.69cqw; border-radius: 1.63cqw; }
  .portal-authenticated .portal-today-card header { margin-bottom: .72cqw; }
  .portal-authenticated .portal-today-card header strong { font-size: 1.05cqw; }
  .portal-authenticated .portal-today-card > div { height: calc(100% - 1.89cqw); grid-template-columns: 4.8cqw minmax(0,1fr) auto; gap: .78cqw; }
  .portal-authenticated .portal-event-art { width: 4.8cqw; max-height: 4.8cqw; border-radius: .78cqw; }
  .portal-authenticated .portal-today-card strong { font-size: .95cqw; }
  .portal-authenticated .portal-today-card small { margin-top: .26cqw; }
  .portal-authenticated .portal-today-card time { padding: .52cqw .72cqw; font-size: .85cqw; }

  .portal-authenticated .portal-quick-dock { left: 32.8%; top: 76.7%; width: 29.82%; height: 11.2%; min-height: 0; padding: .65cqw 1.5cqw; }
  .portal-authenticated .portal-quick-dock button { width: 4.56cqw; gap: .39cqw; font-size: 2.2cqw; }
  .portal-authenticated .portal-quick-dock button b { width: 3.2cqw; height: 3.2cqw; border-radius: .91cqw; font-size: 1.8cqw; }
  .portal-authenticated .portal-quick-dock span { font-size: .9cqw; }

  .portal-authenticated .portal-bottom-nav { left: 16.4%; bottom: 1.8%; width: 67.32%; height: 8.9%; min-height: 0; padding: .46cqw; }
  .portal-authenticated .portal-bottom-nav button { font-size: 2cqw; }
  .portal-authenticated .portal-bottom-nav button span { margin-left: .72cqw; font-size: 1.25cqw; }
  .portal-authenticated .portal-bottom-nav .add { width: 5cqw; height: 4.55cqw; font-size: 2.73cqw; }
}

/* Public home: preserve the complete 1536 x 1024 reference composition. */
@media (min-width: 821px) {
  .portal-shell:not(.portal-authenticated) .portal-backdrop { transform: none; }
  .portal-shell:not(.portal-authenticated) {
    position: relative;
    left: auto;
    top: auto;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    container-type: normal;
    transform: none;
  }
  .portal-shell:not(.portal-authenticated) .portal-backdrop,
  .portal-shell:not(.portal-authenticated)::before { position: fixed; }

  .portal-shell:not(.portal-authenticated) .portal-header {
    position: absolute;
    inset: auto;
    left: 50%;
    top: calc(50svh - min(50svh, 33.33335vw));
    width: min(100vw, 150svh);
    height: min(9.375svh, 6.25vw);
    min-height: 0;
    grid-template-columns: minmax(14.32cqw, 1fr) auto minmax(14.32cqw, 1fr);
    gap: 1.82cqw;
    padding: 0 2.54cqw 0 2.08cqw;
    container-type: inline-size;
    transform: translateX(-50%);
  }
  .portal-shell:not(.portal-authenticated) .portal-brand { gap: .65cqw; font-size: 1.37cqw; }
  .portal-shell:not(.portal-authenticated) .portal-brand-orbit { width: 3.26cqw; height: 2.73cqw; }
  .portal-shell:not(.portal-authenticated) .portal-brand-orbit::before { inset: .2cqw .46cqw; }
  .portal-shell:not(.portal-authenticated) .portal-brand-orbit::after { top: 1.04cqw; height: .85cqw; border-width: .2cqw; }
  .portal-shell:not(.portal-authenticated) .portal-brand-orbit i { width: .52cqw; height: .52cqw; right: .2cqw; top: .65cqw; }
  .portal-shell:not(.portal-authenticated) .portal-desktop-nav { gap: 4.04cqw; }
  .portal-shell:not(.portal-authenticated) .portal-desktop-nav a { font-size: .98cqw; }
  .portal-shell:not(.portal-authenticated) .portal-guest-actions { gap: .78cqw; }
  .portal-shell:not(.portal-authenticated) .portal-login-link,
  .portal-shell:not(.portal-authenticated) .portal-primary-link { min-height: 3.13cqw; font-size: 1.04cqw; }
  .portal-shell:not(.portal-authenticated) .portal-login-link { min-width: 7.29cqw; }
  .portal-shell:not(.portal-authenticated) .portal-primary-link { min-width: 9.64cqw; }

  .portal-shell:not(.portal-authenticated) .portal-loading { position: absolute; inset: 0; min-height: 0; }
  .portal-shell:not(.portal-authenticated) .portal-guest {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(100vw, 150svh);
    height: min(100svh, 66.6667vw);
    min-height: 0;
    display: block;
    padding: 0;
    container-type: size;
    transform: translate(-50%, -50%);
  }
  .portal-shell:not(.portal-authenticated) .portal-hero {
    position: absolute;
    left: 5.66%;
    top: 14.26%;
    width: 38.2%;
    min-height: 0;
    display: block;
    padding: 0;
  }
  .portal-shell:not(.portal-authenticated) .portal-kicker { display: none; }
  .portal-shell:not(.portal-authenticated) .portal-hero h1 { font-size: 3.72cqw; line-height: 1.14; }
  .portal-shell:not(.portal-authenticated) .portal-lead { max-width: 36.5cqw; margin-top: 1.5cqw; font-size: 1.08cqw; line-height: 1.75; }
  .portal-shell:not(.portal-authenticated) .portal-hero-actions { gap: 1.56cqw; margin-top: 2.47cqw; }
  .portal-shell:not(.portal-authenticated) .portal-cta,
  .portal-shell:not(.portal-authenticated) .portal-secondary-cta { min-height: 4.17cqw; font-size: 1.04cqw; }
  .portal-shell:not(.portal-authenticated) .portal-cta { min-width: 16.93cqw; }
  .portal-shell:not(.portal-authenticated) .portal-secondary-cta { min-width: 11.59cqw; }
  .portal-shell:not(.portal-authenticated) .portal-cta b { margin-left: .52cqw; font-size: 1.43cqw; }
  .portal-shell:not(.portal-authenticated) .portal-powered { margin-top: 1.04cqw; font-size: .78cqw; }
  .portal-shell:not(.portal-authenticated) .portal-social-proof { gap: 1.04cqw; margin-top: 2.08cqw; font-size: .91cqw; }
  .portal-shell:not(.portal-authenticated) .portal-face-stack img { width: 2.47cqw; height: 2.47cqw; margin-right: -.59cqw; border-width: .2cqw; }

  .portal-shell:not(.portal-authenticated) .portal-feature-grid {
    position: absolute;
    left: 5.6%;
    top: 66.31%;
    width: 88.54%;
    height: 13.87%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.17cqw;
  }
  .portal-shell:not(.portal-authenticated) .portal-feature-grid article { min-height: 0; gap: 1.3cqw; padding: 1.5cqw 1.95cqw; border-radius: 1.56cqw; }
  .portal-shell:not(.portal-authenticated) .portal-feature-icon { font-size: 2.8cqw; }
  .portal-shell:not(.portal-authenticated) .portal-feature-grid h2 { margin-bottom: .46cqw; font-size: 1.17cqw; }
  .portal-shell:not(.portal-authenticated) .portal-feature-grid p { font-size: .85cqw; }

  .portal-shell:not(.portal-authenticated) .portal-stats {
    position: absolute;
    left: 5.6%;
    top: 82.71%;
    width: 88.54%;
    height: 10.94%;
    min-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: 1.56cqw;
  }
  .portal-shell:not(.portal-authenticated) .portal-stats > div { gap: 1.17cqw; padding: .91cqw 1.3cqw; border-bottom: 0; }
  .portal-shell:not(.portal-authenticated) .portal-stats > div:nth-child(3) { border-right: 1px solid rgba(77,102,134,.15); }
  .portal-shell:not(.portal-authenticated) .portal-stats > div > span { font-size: 1.82cqw; }
  .portal-shell:not(.portal-authenticated) .portal-stats strong { font-size: 1.56cqw; }
  .portal-shell:not(.portal-authenticated) .portal-stats small { margin-top: .26cqw; font-size: .72cqw; }
}

/* Creation center: calibrated to the 1536 × 1024 product reference. */
.portal-create-browser, .portal-create-browser * { box-sizing: border-box; }
.portal-create-browser button { border: 0; font: inherit; cursor: pointer; }
.portal-authenticated.portal-create-view .portal-backdrop {
  background-image: url("../assets/portal-world-creator-v1.35ebf0a5adff.webp");
  background-position: center;
  filter: saturate(.88) brightness(1.08) blur(1px);
  transform: scale(1.008);
}
.portal-shell.portal-authenticated.portal-create-view::before {
  background:
    linear-gradient(180deg, rgba(224,245,255,.12), rgba(233,247,255,.22) 52%, rgba(238,247,252,.64) 86%, rgba(229,242,250,.88)),
    linear-gradient(90deg, rgba(225,246,255,.18), transparent 52%);
}
.portal-create-heading h1, .portal-create-heading p { margin: 0; }
.portal-create-heading h1 { color: #111923; font-weight: 950; letter-spacing: -.045em; }
.portal-create-heading h1 span { color: #7e39ed; text-shadow: .5cqw -.2cqw 0 #f6eb60; }
.portal-create-heading p { color: #314352; }
.portal-create-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.portal-create-actions > button {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.82);
  color: #fff;
  text-align: left;
  box-shadow: 0 1cqw 2.2cqw rgba(43,76,112,.15);
}
.portal-create-actions > button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg,rgba(255,255,255,.2),transparent 55%); }
.portal-create-actions .green { background: linear-gradient(145deg,rgba(124,210,93,.83),rgba(68,184,81,.78)); }
.portal-create-actions .purple { background: linear-gradient(145deg,rgba(113,61,238,.88),rgba(77,57,222,.82)); }
.portal-create-actions .blue { background: linear-gradient(145deg,rgba(79,157,248,.86),rgba(58,123,232,.82)); }
.portal-create-actions .orange { background: linear-gradient(145deg,rgba(255,181,62,.89),rgba(239,139,26,.86)); }
.portal-create-actions .pink { background: linear-gradient(145deg,rgba(242,119,188,.88),rgba(220,73,159,.84)); }
.portal-create-actions .cyan { background: linear-gradient(145deg,rgba(94,206,216,.86),rgba(56,169,194,.84)); }
.portal-create-actions > button > span { position: absolute; z-index: 1; font-style: normal; filter: drop-shadow(0 .5cqw .7cqw rgba(54,55,98,.18)); }
.portal-create-actions > button > span.avatar { overflow: hidden; border-radius: 50%; background: rgba(255,255,255,.2); }
.portal-create-actions > button > span.avatar img { width: 100%; height: 100%; display: block; object-fit: contain; }
.portal-create-actions strong { position: relative; z-index: 1; display: grid; color: #fff; font-weight: 900; }
.portal-create-actions small { font-weight: 500; opacity: .96; }
.portal-create-actions > button > b { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: #2c3340; }
.portal-create-panel {
  border: 1px solid rgba(255,255,255,.83);
  background: rgba(248,252,255,.78);
  box-shadow: 0 1.1cqw 2.5cqw rgba(38,75,110,.13);
  backdrop-filter: blur(1.3cqw);
}
.portal-create-panel > header { display: flex; align-items: center; justify-content: space-between; }
.portal-create-panel > header h2 { margin: 0; color: #111923; font-weight: 900; }
.portal-create-panel > header button { background: transparent; color: #627080; }
.portal-create-templates > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.portal-create-templates article { min-width: 0; overflow: hidden; background: rgba(255,255,255,.7); }
.portal-create-templates article > button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 0; background: transparent; color: #17202a; text-align: left; }
.portal-create-templates img { width: 100%; display: block; object-fit: cover; }
.portal-create-templates strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-create-templates small { display: flex; align-items: center; justify-content: space-between; color: #687687; }
.portal-create-templates small b { display: grid; place-items: center; border-radius: 50%; background: #7136e8; color: #fff; }
.portal-create-drafts > div, .portal-create-guides > div { display: grid; }
.portal-create-drafts > div > button, .portal-create-guides > div > button { min-width: 0; display: grid; align-items: center; background: rgba(255,255,255,.64); color: #18212b; text-align: left; }
.portal-create-drafts img { width: 100%; height: 100%; display: block; object-fit: cover; }
.portal-create-drafts strong, .portal-create-guides strong { min-width: 0; display: grid; font-weight: 850; }
.portal-create-drafts small, .portal-create-guides small { color: #6b7886; font-weight: 500; }
.portal-create-drafts button > b, .portal-create-guides button > b { justify-self: end; color: #313b46; }
.portal-create-guides button > span { display: grid; place-items: center; border-radius: .7cqw; color: #fff; }
.portal-create-guides button > span.green { background: linear-gradient(145deg,#76d360,#3db455); }
.portal-create-guides button > span.blue { background: linear-gradient(145deg,#79baf7,#4389ed); }
.portal-create-guides button > span.purple { background: linear-gradient(145deg,#a778f2,#7444df); }
.portal-create-guides button > span.orange { background: linear-gradient(145deg,#ffc05a,#ed8e20); }
.portal-creator-banner {
  overflow: hidden;
  display: grid;
  align-items: center;
  border: 1px solid rgba(255,255,255,.56);
  background: linear-gradient(105deg,rgba(92,70,238,.9),rgba(138,63,232,.88) 56%,rgba(166,83,238,.86));
  box-shadow: 0 .9cqw 2.2cqw rgba(87,47,204,.23);
  color: #fff;
}
.portal-creator-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 54% 40%,rgba(124,247,255,.35),transparent 12%), linear-gradient(160deg,transparent 55%,rgba(255,255,255,.14)); }
.portal-creator-banner > img { position: relative; z-index: 1; align-self: end; object-fit: contain; }
.portal-creator-banner > div { position: relative; z-index: 1; }
.portal-creator-banner h2, .portal-creator-banner p { margin: 0; }
.portal-creator-banner > span { position: relative; z-index: 1; text-align: center; }
.portal-creator-banner > button { position: relative; z-index: 1; border-radius: 999px; background: rgba(255,255,255,.92); color: #6730d8; font-weight: 900; }
.portal-create-browser .portal-bottom-nav .add.active { border: 0; color: #fff; }

@media (min-width: 901px) {
  .portal-authenticated .portal-create-browser {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100vw, 150svh);
    height: min(100svh, 66.6667vw);
    min-height: 0;
    transform: translate(-50%, -50%);
    container-type: size;
  }
  .portal-create-heading { position: absolute; left: 3.42%; top: 14.9%; }
  .portal-create-heading h1 { font-size: 3.15cqw; line-height: 1; }
  .portal-create-heading p { margin-top: 1.15cqw; font-size: 1.12cqw; }
  .portal-create-actions { position: absolute; left: 53.05%; top: 13.55%; width: 44.05%; height: 36.75%; gap: .72cqw; }
  .portal-create-actions > button { padding: 1.05cqw 1.2cqw; border-radius: 1.48cqw; }
  .portal-create-actions > button > span { left: 1.8cqw; top: 1.45cqw; font-size: 3.6cqw; }
  .portal-create-actions > button > span.avatar { left: 1.15cqw; top: .45cqw; width: 5.7cqw; height: 5.7cqw; }
  .portal-create-actions strong { gap: .35cqw; font-size: 1.22cqw; }
  .portal-create-actions small { font-size: .86cqw; }
  .portal-create-actions > button > b { right: .85cqw; bottom: .85cqw; width: 2.15cqw; height: 2.15cqw; font-size: 1.1cqw; }
  .portal-create-panel { padding: 1.1cqw 1.25cqw; border-radius: 1.48cqw; }
  .portal-create-panel > header { height: 2cqw; }
  .portal-create-panel > header h2 { font-size: 1.08cqw; }
  .portal-create-panel > header button { font-size: .76cqw; }
  .portal-create-templates { position: absolute; left: 2.92%; top: 51.78%; width: 40.57%; height: 28.82%; }
  .portal-create-templates > div { height: calc(100% - 2cqw); gap: .85cqw; padding-top: .5cqw; }
  .portal-create-templates article { border-radius: .78cqw; }
  .portal-create-templates img { height: 9.6cqw; }
  .portal-create-templates strong { padding: .55cqw .55cqw 0; font-size: .82cqw; }
  .portal-create-templates small { margin-top: auto; padding: .3cqw .55cqw .55cqw; font-size: .7cqw; }
  .portal-create-templates small b { width: 1.55cqw; height: 1.55cqw; font-size: .7cqw; }
  .portal-create-drafts { position: absolute; left: 44.2%; top: 51.78%; width: 25.52%; height: 28.82%; }
  .portal-create-drafts > div { height: calc(100% - 2cqw); grid-template-rows: repeat(3,minmax(0,1fr)); gap: .52cqw; padding-top: .5cqw; }
  .portal-create-drafts > div > button { grid-template-columns: 4.85cqw minmax(0,1fr) 1.2cqw; gap: .85cqw; padding: .3cqw .7cqw .3cqw 0; border-radius: .78cqw; }
  .portal-create-drafts img { border-radius: .7cqw; }
  .portal-create-drafts strong { gap: .28cqw; font-size: .8cqw; }
  .portal-create-drafts small { font-size: .68cqw; }
  .portal-create-drafts button > b { font-size: .9cqw; }
  .portal-create-guides { position: absolute; left: 70.43%; top: 51.78%; width: 26.64%; height: 28.82%; }
  .portal-create-guides > div { height: calc(100% - 2cqw); grid-template-rows: repeat(4,minmax(0,1fr)); gap: .42cqw; padding-top: .5cqw; }
  .portal-create-guides > div > button { grid-template-columns: 2.9cqw minmax(0,1fr) 1cqw; gap: .85cqw; padding: .25cqw .7cqw .25cqw .25cqw; border-radius: .75cqw; }
  .portal-create-guides button > span { width: 2.8cqw; height: 2.8cqw; font-size: 1.4cqw; }
  .portal-create-guides strong { gap: .22cqw; font-size: .78cqw; }
  .portal-create-guides small { font-size: .65cqw; }
  .portal-create-guides button > b { font-size: 1.1cqw; }
  .portal-creator-banner { position: absolute; left: 3.08%; top: 82.08%; width: 93.9%; height: 8.05%; grid-template-columns: 11cqw minmax(0,1.35fr) 1fr 12.8cqw; padding: 0 1.3cqw; border-radius: 1.28cqw; }
  .portal-creator-banner > img { width: 8.5cqw; height: 7.7cqw; transform: translateY(.65cqw); }
  .portal-creator-banner h2 { font-size: 1.18cqw; }
  .portal-creator-banner p { margin-top: .5cqw; font-size: .78cqw; }
  .portal-creator-banner > span { font-size: 2.2cqw; }
  .portal-creator-banner > button { width: 12.5cqw; height: 3.35cqw; font-size: 1.05cqw; }
  .portal-create-browser .portal-bottom-nav { left: 16.3%; bottom: 1.8%; width: 67.4%; height: 7.4%; min-height: 0; padding: .4cqw; }
}

@media (max-width: 900px) {
  .portal-shell.portal-authenticated.portal-create-view { height: auto; min-height: 100svh; overflow: auto; }
  .portal-authenticated .portal-create-browser { position: relative; display: grid; gap: 15px; padding: 28px 16px 108px; }
  .portal-create-heading h1 { font-size: 38px; }
  .portal-create-heading p { margin-top: 8px; font-size: 14px; }
  .portal-create-actions { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 170px; gap: 12px; }
  .portal-create-actions > button { min-height: 170px; padding: 18px; border-radius: 22px; }
  .portal-create-actions > button > span { left: 20px; top: 16px; font-size: 48px; }
  .portal-create-actions > button > span.avatar { width: 78px; height: 78px; }
  .portal-create-actions strong { gap: 4px; font-size: 18px; }
  .portal-create-actions small { font-size: 12px; }
  .portal-create-actions > button > b { right: 14px; bottom: 14px; width: 34px; height: 34px; }
  .portal-create-panel { padding: 16px; border-radius: 20px; box-shadow: 0 15px 34px rgba(38,75,110,.13); backdrop-filter: blur(18px); }
  .portal-create-panel > header { min-height: 34px; }
  .portal-create-panel > header h2 { font-size: 17px; }
  .portal-create-templates > div { gap: 10px; margin-top: 8px; }
  .portal-create-templates article { border-radius: 12px; }
  .portal-create-templates img { height: 130px; }
  .portal-create-templates strong { padding: 8px 8px 0; font-size: 12px; }
  .portal-create-templates small { padding: 6px 8px 9px; font-size: 10px; }
  .portal-create-templates small b { width: 24px; height: 24px; }
  .portal-create-drafts > div, .portal-create-guides > div { gap: 8px; margin-top: 8px; }
  .portal-create-drafts > div > button { min-height: 74px; grid-template-columns: 78px minmax(0,1fr) 28px; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 12px; }
  .portal-create-drafts img { border-radius: 10px; }
  .portal-create-drafts strong, .portal-create-guides strong { gap: 3px; font-size: 12px; }
  .portal-create-drafts small, .portal-create-guides small { font-size: 10px; }
  .portal-create-guides > div > button { min-height: 64px; grid-template-columns: 48px minmax(0,1fr) 24px; gap: 10px; padding: 7px; border-radius: 12px; }
  .portal-create-guides button > span { width: 46px; height: 46px; font-size: 22px; }
  .portal-creator-banner { position: relative; grid-template-columns: 80px minmax(0,1fr) 120px; gap: 12px; min-height: 120px; padding: 10px 16px; border-radius: 20px; }
  .portal-creator-banner > img { width: 80px; height: 105px; }
  .portal-creator-banner h2 { font-size: 17px; }
  .portal-creator-banner p { margin-top: 5px; font-size: 11px; }
  .portal-creator-banner > span { display: none; }
  .portal-creator-banner > button { height: 44px; }
}

@media (max-width: 520px) {
  .portal-create-heading h1 { font-size: 32px; }
  .portal-create-actions { grid-template-columns: 1fr; }
  .portal-create-templates > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-create-templates img { height: 145px; }
  .portal-creator-banner { grid-template-columns: 72px minmax(0,1fr); padding-bottom: 62px; }
  .portal-creator-banner > button { position: absolute; left: 16px; right: 16px; bottom: 12px; width: auto; }
}

/* Restored lobby: keep long account names readable on the existing glass cards. */
.portal-authenticated .portal-member-intro p::first-line {color:inherit}
.portal-authenticated .portal-member-intro p>span {display:inline;margin:0;color:#5224c9;font:inherit}
.portal-authenticated .portal-self-copy>p {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.portal-authenticated .portal-self-copy>p>span {flex-basis:100%;font-size:12px;color:#465063}
.portal-authenticated .portal-self-copy>p>strong {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}
.portal-authenticated .portal-self-copy>p>button {flex:none;border:0;border-radius:8px;background:#e0e9f4;color:#575876;min-width:30px;min-height:30px;cursor:pointer}
.portal-authenticated .portal-self-copy>span {white-space:normal;overflow-wrap:anywhere}
.portal-authenticated .portal-self-copy>button {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:901px){
 .portal-creator-banner {grid-template-rows:minmax(0,1fr)}
 .portal-creator-banner>img {height:100%;max-height:100%;transform:none;align-self:center}
 .portal-creator-banner>div {min-height:0}
}
@media(max-width:900px){
 .portal-authenticated .portal-member {grid-template-rows:auto; padding-bottom:calc(116px + env(safe-area-inset-bottom,0px))}
 .portal-authenticated .portal-self-card {display:block;padding:20px;min-height:310px}
 .portal-authenticated .portal-self-copy {width:66%;display:flex;flex-direction:column;min-height:270px}
 .portal-authenticated .portal-self-copy>p>strong {font-size:16px}
 .portal-authenticated .portal-self-copy>p>button {min-width:36px;min-height:36px}
 .portal-authenticated .portal-self-copy>span {margin:10px 0 20px}
 .portal-authenticated .portal-self-copy>button {margin-top:auto;font-size:12px}
 .portal-authenticated .portal-self-card>img {position:absolute;right:-3%;bottom:10%;width:42%;height:70%;object-fit:contain;transform:none}
 .portal-authenticated .portal-bottom-nav {left:12px;right:12px;width:calc(100% - 24px);box-sizing:border-box;justify-self:stretch;bottom:max(12px,env(safe-area-inset-bottom,0px));z-index:30}
 .portal-authenticated .portal-bottom-nav button {min-width:44px;min-height:48px}
}

/* PepLive reference UI: 1–4 desktop, 5–8 mobile. Business values stay server-owned. */
body.peplive-home {
  margin:0;
  min-width:320px;
  min-height:100dvh;
  color:#f5f7ff;
  font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  background:#05226c url('../assets/homepage/sky.webp') center top/cover fixed no-repeat;
  overflow-x:hidden;
  font-size:14px
}
.peplive-home::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,#00124488 0%,#0734ad22 50%,#477bff15);
  z-index:-1
}
.peplive-home #portalShell,.peplive-home #app {
  display:none!important
}
.hp-shell * {
  box-sizing:border-box
}
/* Shared dialogs mount outside .hp-shell, so theme the complete home surface. */
.peplive-home * {
  scrollbar-width:thin;
  scrollbar-color:#628fe0 #0b286333
}
.peplive-home ::-webkit-scrollbar {
  width:6px;
  height:6px
}
.peplive-home ::-webkit-scrollbar-track {
  background:#0b286333;
  border-radius:8px
}
.peplive-home ::-webkit-scrollbar-thumb {
  background:#628fe0;
  border-radius:8px
}
.peplive-home ::-webkit-scrollbar-thumb:hover {
  background:#8dcfff
}
.peplive-home ::-webkit-scrollbar-button {
  display:none;
  width:0;
  height:0
}
.peplive-home ::-webkit-scrollbar-corner {
  background:transparent
}
@supports selector(::-webkit-scrollbar) {
  .peplive-home :is(dialog,[role="dialog"]),
  .peplive-home :is(dialog,[role="dialog"]) * {
    scrollbar-width:auto;
    scrollbar-color:auto
  }
}
body.peplive-home .notification-center {
  display:flex;
  flex-direction:column;
  max-height:min(720px,calc(100dvh - max(72px,8vh) - 16px))
}
.peplive-home .notification-head,.peplive-home .notification-tools {
  flex-shrink:0
}
.peplive-home .notification-list {
  min-height:0;
  max-height:none;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-gutter:stable;
  padding-right:8px
}
.peplive-home .notification-item>div {
  min-width:0;
  overflow-wrap:anywhere
}
.hp-shell [hidden] {
  display:none!important
}
.hp-shell button,.hp-shell input,.hp-shell select {
  font:inherit;
  color:inherit
}
.hp-shell button {
  cursor:pointer
}
.hp-shell button:disabled {
  cursor:default;
  opacity:.53
}
.hp-shell button:focus-visible,.hp-shell a:focus-visible,.hp-shell input:focus-visible,.hp-shell select:focus-visible {
  outline:2px solid #83fbff;
  outline-offset:4px
}
.hp-shell a {
  color:inherit;
  text-decoration:none
}
.hp-shell h1,.hp-shell h2,.hp-shell h3,.hp-shell p {
  margin:0
}
.hp-shell h2 {
  font-size:clamp(17px,1.35vw,23px);
  font-weight:750
}
.hp-shell h3 {
  font-size:16px
}
.hp-shell small {
  font-size:12px
}
.hp-icon {
  width:24px;
  height:24px;
  flex-shrink:0;
  vertical-align:middle
}
.hp-header {
  height:96px;
  max-width:1920px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:26px;
  padding:16px 22px
}
.hp-brand {
  display:flex;
  align-items:center;
  gap:16px;
  min-width:330px
}
.hp-brand strong {
  font-size:27px;
  letter-spacing:.5px;
  display:block
}
.hp-brand small {
  display:block;
  font-size:14px;
  color:#b2c7f7;
  margin-top:3px
}
.hp-logo {
  width:52px;
  height:52px;
  flex-shrink:0;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border-radius:15px;
  background:linear-gradient(135deg,#0ce8ff,#635aff 62%,#ec5cfd);
  box-shadow:0 0 20px #258dff,inset 0 0 8px #ffffff70
}
.hp-logo i {
  width:6px;
  height:25px;
  border-radius:6px;
  background:#fff;
  box-shadow:0 0 9px #dcecff
}
.hp-logo i:first-child {
  height:21px;
  transform:translateY(2px)
}
.hp-resources {
  display:flex;
  justify-content:center;
  gap:14px;
  flex:1
}
.hp-resource {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  min-width:116px;
  padding:11px 18px;
  border:1px solid #3878e69c;
  border-radius:16px;
  background:linear-gradient(140deg,#143c9bde,#061963de);
  box-shadow:inset 0 1px 10px #476bfd19;
  white-space:nowrap
}
.hp-resource i {
  font-style:normal;
  font-size:26px;
  filter:drop-shadow(0 2px 3px #02104c)
}
.hp-resource strong {
  font-size:20px
}
.hp-resource small {
  display:block;
  color:#a8bce8;
  font-weight:400;
  margin-top:4px
}
.hp-header-actions {
  display:flex;
  align-items:center;
  gap:14px
}
.hp-icon-button,.hp-avatar-button {
  height:44px;
  min-width:46px;
  border-radius:14px;
  border:1px solid #4279df80;
  background:linear-gradient(130deg,#094696,#2428af);
  display:grid;
  place-items:center
}
.hp-avatar-button img {
  height:48px;
  width:48px;
  object-fit:contain
}
.hp-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 19px;
  border-radius:13px;
  border:1px solid #83acff;
  box-shadow:inset 0 0 9px #ffffff4a,0 0 13px #2963ff5c;
  background:linear-gradient(115deg,#12c7fa 0%,#244cff 47%,#843afd);
  color:white;
  font-weight:700;
  white-space:nowrap;
  transition:filter .15s,transform .15s
}
.hp-primary:hover:not(:disabled) {
  filter:brightness(1.17);
  transform:translateY(-1px)
}
.hp-primary .hp-icon {
  width:18px;
  height:18px
}
.hp-logout {
  min-width:142px;
  background:linear-gradient(115deg,#d251ac,#6e36f6 60%,#3839f3)
}
.hp-layout {
  max-width:1920px;
  margin:0 auto;
  padding:6px 20px 14px;
  display:grid;
  grid-template-columns:254px minmax(0,1fr);
  gap:16px;
  min-height:calc(100dvh - 146px);
  align-items:start
}
.hp-panel {
  border:1px solid #458cffe0;
  border-radius:19px;
  background:linear-gradient(120deg,#03205dea,#073287dc 50%,#12176be8);
  box-shadow:inset 0 1px 3px #b2f8ff18,0 4px 22px #02296b24;
  min-width:0;
  overflow:hidden
}
.hp-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:14px
}
.hp-panel-head h2 small {
  font-size:12px;
  vertical-align:middle;
  font-weight:500
}
.hp-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border:0;
  background:transparent;
  color:#b5caf7!important;
  font-size:12px!important;
  white-space:nowrap;
  padding:3px 0
}
.hp-link .hp-icon {
  width:13px;
  height:13px
}
.hp-sidebar {
  display:flex;
  flex-direction:column;
  gap:15px;
  align-self:stretch
}
.hp-self {
  width:100%;
  display:flex;
  align-items:center;
  gap:6px;
  padding:11px 10px;
  text-align:left;
  border-color:#50b8ff;
  background:linear-gradient(120deg,#13639dcc,#092476 60%,#2934bc)
}
.hp-self>img {
  width:82px;
  height:110px;
  object-fit:contain;
  flex-shrink:0
}
.hp-self>span {
  min-width:0;
  flex:1
}
.hp-self strong {
  display:block;
  font-size:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.hp-self b {
  display:block;
  margin:9px 0 5px;
  font-size:13px
}
.hp-self small {
  color:#b5cafa;
  font-size:11px;
  display:block;
  white-space:nowrap
}
.hp-self small.hp-online {
  color:#02ffb8;
  margin-top:6px;
  font-weight:700
}
.hp-self>.hp-icon {
  width:16px
}
.hp-side-nav {
  padding:12px 6px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  min-height:335px
}
.hp-side-nav button {
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 21px;
  border:1px solid transparent;
  border-radius:13px;
  color:#bed5ff;
  background:transparent;
  text-align:left;
  font-size:16px
}
.hp-side-nav .hp-icon {
  width:28px;
  height:28px;
  color:#b3ddff;
  filter:drop-shadow(0 0 5px #66d9ff60)
}
.hp-side-nav button.active {
  color:#fff;
  font-weight:750;
  border-color:#6ce2ff;
  background:linear-gradient(110deg,#00c8ffbb,#2242ff,#722fff);
  box-shadow:inset 0 0 12px #9edaff80,0 0 13px #2d8dff9c
}
.hp-invite {
  position:relative;
  display:flex;
  align-items:center;
  min-height:160px;
  background:linear-gradient(115deg,#3332b9cc,#141270e8);
  padding:10px 10px 10px 0;
  border-color:#7a85ff;
  box-shadow:inset 0 0 20px #7961ff5c,0 0 15px #5164ff32
}
.hp-invite>img {
  width:48%;
  height:155px;
  object-fit:contain;
  filter:drop-shadow(0 0 10px #785cff66);
  margin-left:-8px
}
.hp-invite>div {
  flex:1;
  z-index:1
}
.hp-invite h2 {
  white-space:nowrap
}
.hp-invite p {
  font-size:11px;
  margin:5px 0 12px;
  color:#e0dbff;
  white-space:nowrap
}
.hp-invite .hp-primary {
  font-size:12px;
  border-radius:22px;
  padding:8px 12px
}
.hp-side-invite {
  margin-top:auto
}
.hp-studio-link {
  text-align:center;
  font-size:12px;
  color:#c8daff!important
}
.hp-page {
  min-width:0
}
.hp-farm-page {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  grid-template-rows:132px minmax(380px,1fr) 85px;
  gap:14px;
  min-height:calc(100dvh - 166px)
}
.hp-maps {
  grid-column:1;
  grid-row:1;
  display:flex;
  padding:9px;
  gap:9px;
  background:#11267c9c;
  overflow-x:auto;
  scrollbar-width:thin;
  align-items:stretch
}
.hp-map {
  flex:1 0 103px;
  min-width:0;
  position:relative;
  border:1px solid #4474d5a6;
  border-radius:13px;
  background:linear-gradient(#254f9ec2,#09267c);
  padding:7px 5px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  text-align:center;
  overflow:hidden
}
.hp-map img {
  width:88px;
  height:55px;
  object-fit:cover;
  border-radius:8px;
  mix-blend-mode:screen
}
.hp-map strong {
  font-size:13px;
  display:block;
  white-space:nowrap
}
.hp-map small {
  font-size:10px;
  color:#adc3ec;
  display:block;
  margin-top:3px;
  white-space:nowrap
}
.hp-map em {
  position:absolute;
  top:0;
  right:0;
  font-size:9px;
  padding:3px 5px;
  border-radius:0 10px 0 10px;
  background:#00d1b8;
  font-style:normal;
  box-shadow:0 0 10px #00eeff
}
.hp-map.selected {
  border:2px solid #77fcff;
  background:linear-gradient(120deg,#0c8ee4,#264aff);
  box-shadow:inset 0 0 16px #47e9ff,0 0 12px #33beff
}
.hp-farm-stage {
  grid-column:1;
  grid-row:2;
  position:relative;
  min-width:0;
  min-height:380px
}
.hp-farm-stage #sceneWrap {
  position:relative!important;
  inset:auto;
  width:100%;
  height:100%;
  min-height:380px;
  aspect-ratio:auto!important;
  border:0;
  border-radius:24px;
  background:transparent;
  box-shadow:none;
  overflow:hidden
}
.hp-farm-stage #sceneWrap::before {
  display:none
}
.hp-farm-stage .scene-camera,.hp-farm-stage .scene-depth,.hp-farm-stage .vector-scene {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:none!important;
  overflow:hidden
}
.hp-farm-stage canvas {
  width:100%!important;
  height:100%!important
}
.hp-farm-stage .scene-status {
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:85%;
  text-align:center;
  font-size:11px;
  border-radius:22px;
  background:#05256da8;
  border:1px solid #75b1fb60;
  padding:8px 16px
}
.hp-farm-stage .camera-help {
  display:none
}
.hp-farm-stage .camera-controls {
  top:12px;
  right:12px;
  bottom:auto;
  background:#052373d9;
  border-color:#5e94ff
}
.hp-farm-stage #visitWorldBar {
  position:absolute;
  left:0;
  top:0;
  right:0;
  z-index:8
}
.hp-farm-actions {
  grid-row:3;
  grid-column:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px;
  padding:0 8px 8px
}
.hp-farm-action {
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:23px;
  border:1px solid #d9ffff;
  background:linear-gradient(130deg,#00eaa0,#00a86d);
  box-shadow:inset 0 0 12px #b8fffaa8,0 0 23px #23ffc979;
  transition:transform .15s
}
.hp-farm-action:hover {
  transform:translateY(-3px)
}
.hp-farm-action .hp-icon {
  width:35px;
  height:35px;
  filter:drop-shadow(0 3px 3px #07574766);
  fill:#ffffff35
}
.hp-farm-action strong {
  display:block;
  font-size:20px;
  white-space:nowrap
}
.hp-farm-action small {
  display:block;
  margin-top:4px;
  color:#edffff;
  font-size:11px
}
.hp-farm-action.water {
  background:linear-gradient(130deg,#00ceff,#1358ff,#5733f9);
  box-shadow:inset 0 0 12px #acfcffa8,0 0 23px #00d4ff99
}
.hp-farm-action.harvest {
  background:linear-gradient(130deg,#ffdf4d,#ffa228,#fb6d41);
  box-shadow:inset 0 0 12px #fff8c4a8,0 0 23px #ffc94899
}
.hp-farm-action.visit {
  background:linear-gradient(130deg,#b16bff,#7538ff,#4520e9);
  box-shadow:inset 0 0 12px #e3b9ffa8,0 0 23px #9753ff99
}
.hp-farm-market {
  grid-column:2;
  grid-row:1;
  align-self:start;
  padding:16px;
  margin-top:35px;
  position:relative;
  z-index:2
}
.hp-farm-inventory {
  grid-column:2;
  grid-row:2;
  align-self:start;
  padding:16px;
  margin-top:132px
}
.hp-farm-logs {
  grid-column:2;
  grid-row:2 / 4;
  align-self:end;
  padding:16px;
  max-height:320px;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden
}
.hp-farm-logs>.hp-panel-head,.hp-farm-logs>.hp-log-tabs {
  flex-shrink:0
}
#hpFarmLogs {
  flex:1;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-gutter:stable;
  padding-right:6px
}
@supports selector(::-webkit-scrollbar) {
  #hpFarmLogs {
    scrollbar-width:auto;
    scrollbar-color:auto
  }
}
.hp-inventory-value {
  display:none
}
.hp-tip {
  display:none
}
.hp-farm-mission-panel {
  padding:16px;
  display:none
}
.hp-shell[data-page="farm"] .hp-side-nav {
  display:none
}
.hp-shell[data-page="farm"] .hp-farm-mission-panel {
  display:block
}
.hp-shell[data-page="farm"] .hp-layout {
  grid-template-columns:300px minmax(0,1fr)
}
.hp-mission {
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 96px 90px;
  align-items:center;
  gap:14px;
  border:1px solid #3968c580;
  background:linear-gradient(100deg,#123d8370,#17297c66);
  border-radius:14px;
  padding:12px;
  margin-top:7px;
  min-height:82px
}
.hp-item-icon {
  font-size:37px;
  width:54px;
  height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #437adb91;
  background:linear-gradient(125deg,#0c4f8b86,#10358d66);
  border-radius:14px;
  filter:drop-shadow(0 3px 3px #061a6550);
  flex-shrink:0
}
.hp-mission strong {
  font-size:16px
}
.hp-mission-copy {
  min-width:0
}
.hp-mission p {
  font-size:12px;
  color:#abc7f8;
  margin:6px 0
}
.hp-progress-row {
  display:flex;
  align-items:center;
  gap:10px
}
.hp-progress {
  height:8px;
  background:#254e997d;
  border:1px solid #4778d06b;
  flex:1;
  border-radius:8px;
  overflow:hidden
}
.hp-progress i {
  display:block;
  height:100%;
  border-radius:8px;
  background:linear-gradient(90deg,#41fff1,#02d9f7)
}
.hp-progress-row small {
  font-size:12px;
  min-width:26px
}
.hp-reward {
  font-weight:750;
  white-space:nowrap
}
.hp-mission .hp-primary {
  padding:9px 12px;
  font-size:13px
}
.hp-farm-mission-panel .hp-mission {
  grid-template-columns:44px minmax(0,1fr) 64px;
  gap:7px;
  padding:9px 6px;
  min-height:72px;
  position:relative
}
.hp-farm-mission-panel .hp-mission .hp-item-icon {
  width:42px;
  height:44px;
  font-size:27px
}
.hp-farm-mission-panel .hp-mission strong {
  font-size:12px
}
.hp-farm-mission-panel .hp-mission p {
  display:none
}
.hp-farm-mission-panel .hp-reward {
  position:absolute;
  right:82px;
  bottom:11px;
  font-size:10px
}
.hp-farm-mission-panel .hp-progress-row {
  max-width:76%;
  margin-top:8px;
  gap:4px
}
.hp-farm-mission-panel .hp-progress-row small {
  font-size:10px
}
.hp-farm-mission-panel .hp-primary {
  font-size:10px;
  padding:8px
}
.hp-farm-mission-panel .hp-panel-head {
  gap:3px
}
.hp-farm-mission-panel h2 {
  font-size:19px
}
.hp-tabs {
  display:flex;
  padding:3px;
  border-radius:14px;
  background:#27459266;
  border:1px solid #315ec141;
  gap:4px
}
.hp-tabs button {
  flex:1;
  background:transparent;
  border:1px solid transparent;
  border-radius:11px;
  padding:9px 6px;
  color:#c9d9ff;
  white-space:nowrap
}
.hp-tabs button.active,.hp-categories button.active {
  color:white;
  background:linear-gradient(110deg,#05d2ff,#3048ff 65%,#8045fb);
  border-color:#738fff;
  box-shadow:inset 0 0 9px #bdedff75,0 0 12px #3579ff70;
  font-weight:700
}
.hp-quick-sale {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  border-radius:12px;
  border:1px solid #5371d17d;
  padding:9px;
  background:#1435786e
}
.hp-quick-sale .hp-item-icon {
  font-size:31px;
  width:42px;
  height:45px;
  border:0;
  background:none
}
.hp-quick-sale>div {
  flex:1;
  min-width:0
}
.hp-quick-sale>div:last-child {
  flex:0 0 auto;
  text-align:right
}
.hp-quick-sale strong {
  display:block;
  font-size:13px
}
.hp-quick-sale p {
  font-size:12px;
  color:#bed0f8;
  margin-top:7px
}
.hp-quick-sale button {
  font-size:10px;
  padding:4px 12px;
  margin-top:6px
}
.hp-inventory-grid {
  display:flex;
  gap:10px;
  overflow:auto;
  scrollbar-width:thin
}
.hp-inventory-grid button {
  flex:1 0 49px;
  min-width:0;
  text-align:center;
  background:none;
  border:0;
  padding:0
}
.hp-inventory-grid .hp-item-icon {
  width:100%;
  height:51px;
  font-size:31px;
  border-radius:13px
}
.hp-inventory-grid strong,.hp-inventory-grid small {
  display:block;
  margin-top:5px;
  font-size:11px;
  white-space:nowrap
}
.hp-inventory-grid small {
  color:#bacffc
}
.hp-audits details {
  border-bottom:1px solid #4263b951;
  padding:7px 0
}
.hp-audits summary {
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer
}
.hp-audits summary::-webkit-details-marker {
  display:none
}
.hp-audits .hp-item-icon {
  width:35px;
  height:36px;
  font-size:23px;
  border-radius:10px
}
.hp-audits summary>div {
  flex:1;
  min-width:0
}
.hp-audits strong {
  font-size:12px;
  display:block
}
.hp-audits p {
  font-size:10px;
  color:#c4d0f3;
  margin-top:4px;
  overflow-wrap:anywhere;
  line-height:1.45
}
.hp-audits time {
  color:#78e2fc;
  font-size:9px;
  max-width:93px
}
.hp-audits summary>.hp-icon {
  width:11px;
  height:11px
}
.hp-audit-detail {
  padding:8px 10px;
  background:#02164188;
  border-radius:9px;
  margin-top:5px
}
.hp-audit-detail p {
  overflow-wrap:anywhere
}
.hp-farm-logs .hp-audits summary {
  display:grid;
  grid-template-columns:35px minmax(0,1fr) 11px;
  gap:4px 10px
}
.hp-farm-logs .hp-audits summary>.hp-item-icon {
  grid-column:1;
  grid-row:1 / 3
}
.hp-farm-logs .hp-audits summary>div {
  grid-column:2;
  grid-row:1
}
.hp-farm-logs .hp-audits summary p {
  margin-bottom:0
}
.hp-farm-logs .hp-audits time {
  grid-column:2;
  grid-row:2;
  max-width:none
}
.hp-farm-logs .hp-audits summary>.hp-icon {
  grid-column:3;
  grid-row:1 / 3
}
.hp-log-tabs {
  font-size:11px;
  margin-bottom:8px
}
.hp-empty {
  padding:23px 12px;
  text-align:center;
  line-height:1.8;
  color:#acbfe6;
  font-size:13px
}
.hp-mobile-intro,.hp-bottom-nav {
  display:none
}
.hp-muted {
  color:#aec4ed;
  font-size:12px
}
.hp-green {
  color:#03edb1!important
}
.hp-red {
  color:#ff5d85!important
}
.hp-tag,.hp-level {
  display:inline-block;
  background:#173d956b;
  border:1px solid #4578d14f;
  border-radius:14px;
  padding:5px 12px;
  color:#d7e5ff;
  font-size:11px;
  white-space:nowrap
}
.hp-task-page {
  display:grid;
  grid-template-columns:minmax(0,1fr) 350px;
  gap:17px
}
.hp-task-main,.hp-task-aside {
  min-width:0
}
.hp-task-main {
  display:flex;
  flex-direction:column;
  gap:12px
}
.hp-task-hero {
  height:115px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:15px 10px
}
.hp-task-hero h1 {
  font-size:34px
}
.hp-task-hero p {
  color:#c5dcff;
  font-size:14px;
  margin-top:7px
}
.hp-task-hero>div {
  position:relative;
  z-index:1
}
.hp-task-hero>img {
  position:absolute;
  width:45%;
  right:0;
  top:0;
  height:140px;
  object-fit:cover;
  mask-image:linear-gradient(to right,transparent,#000 50%);
  opacity:.9
}
.hp-hero-caption {
  position:absolute;
  right:20px;
  bottom:12px;
  font-style:italic;
  font-size:13px;
  color:#b1c2ff
}
.hp-task-tabs {
  max-width:570px;
  background:#09226999;
  padding:4px;
  gap:6px
}
.hp-task-tabs button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:11px;
  font-size:18px
}
.hp-task-tabs b {
  font-size:23px
}
.hp-task-tabs small {
  display:none
}
.hp-today,.hp-milestone-panel,.hp-challenges {
  padding:16px
}
.hp-task-checkin {
  display:none
}
.hp-milestones {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  position:relative
}
.hp-milestones::before {
  content:"";
  height:9px;
  border:1px solid #366cd0;
  background:#173e8f;
  position:absolute;
  top:33px;
  left:20px;
  right:20px;
  border-radius:12px
}
.hp-milestones>div {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:8px;
  position:relative;
  flex:1
}
.hp-milestones b {
  font-size:37px;
  filter:drop-shadow(0 0 7px #9e59ff)
}
.hp-milestones strong {
  font-size:11px
}
.hp-milestones span {
  font-size:10px;
  border:1px solid #3660b2;
  border-radius:15px;
  padding:5px 15px;
  color:#b8c9ed
}
.hp-milestones .done span {
  color:#08e9b6;
  background:#00c48929
}
.hp-challenges>div {
  display:flex;
  gap:12px
}
.hp-challenges button {
  display:flex;
  align-items:center;
  flex:1;
  min-width:0;
  gap:6px;
  border:1px solid #2784df;
  border-radius:15px;
  background:linear-gradient(110deg,#044b9477,#132686);
  padding:5px;
  text-align:left
}
.hp-challenges button>img {
  width:30%;
  height:82px;
  object-fit:cover;
  border-radius:12px
}
.hp-challenges button:nth-child(2)>img {
  object-fit:contain
}
.hp-challenges strong {
  display:block;
  font-size:17px;
  margin:5px 0
}
.hp-challenges small {
  color:#27f5c7;
  font-size:11px
}
.hp-challenges p {
  font-size:10px;
  color:#c0d2f5
}
.hp-challenges .hp-icon {
  width:15px;
  margin-left:auto
}
.hp-task-aside {
  display:flex;
  flex-direction:column;
  gap:13px;
  padding-top:44px
}
.hp-farm-preview {
  padding:0;
  background:linear-gradient(#124488,#182a79);
  text-align:left;
  width:100%
}
.hp-farm-preview header {
  padding:15px 15px 0
}
.hp-farm-preview header>span {
  font-size:11px
}
.hp-farm-preview>img {
  display:block;
  width:100%;
  height:245px;
  object-fit:cover
}
.hp-task-aside>section {
  padding:16px
}
.hp-checkin-days {
  display:flex;
  gap:5px;
  margin-top:12px
}
.hp-checkin-days>div {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:8px;
  border-radius:9px;
  border:1px solid #416cc866;
  background:#0c2a6f88;
  padding:9px 2px
}
.hp-checkin-days small {
  font-size:9px;
  white-space:nowrap
}
.hp-checkin-days b {
  font-size:25px
}
.hp-checkin-days .done {
  border-color:#37ebc1;
  background:#008b6b77;
  box-shadow:inset 0 0 13px #3dfde455
}
.hp-checkin-days .done b {
  color:#24ffc1
}
.hp-recommend>div {
  display:flex;
  gap:10px
}
.hp-recommend button {
  flex:1;
  border-radius:12px;
  border:1px solid #426cce;
  background:#10358180;
  padding:10px;
  font-size:30px
}
.hp-recommend strong,.hp-recommend small {
  display:block;
  font-size:12px;
  margin:7px 0
}
.hp-recommend small {
  font-size:10px;
  color:#b5c9f0
}
.hp-recommend .hp-primary {
  display:block;
  font-size:11px;
  padding:7px
}
.hp-market-page {
  display:grid;
  grid-template-columns:minmax(0,1fr) 355px;
  gap:13px
}
.hp-market-hero {
  grid-column:1/-1;
  position:relative;
  height:112px;
  display:flex;
  align-items:center;
  padding:0 22px;
  overflow:visible
}
.hp-market-hero h1 {
  font-size:40px
}
.hp-market-hero h2 {
  font-size:18px;
  margin-top:5px;
  color:#d2e0ff;
  font-weight:500
}
.hp-market-hero p {
  color:#a5c6f7;
  font-size:12px;
  margin-top:5px
}
.hp-market-hero>div {
  z-index:1
}
.hp-market-hero>img {
  position:absolute;
  right:11%;
  top:-22px;
  width:43%;
  height:156px;
  object-fit:cover;
  object-position:center 27%;
  mask-image:linear-gradient(90deg,transparent,#000 18%,#000 78%,transparent)
}
.hp-market-topbar {
  grid-column:1;
  display:flex;
  align-items:center;
  gap:22px
}
.hp-market-tabs {
  flex:1;
  background:transparent;
  border:0;
  padding:0;
  gap:8px
}
.hp-market-tabs button {
  font-size:18px;
  font-weight:700;
  border:1px solid #4179de80;
  background:#08236aba;
  padding:12px
}
.hp-search {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #4779c6;
  border-radius:13px;
  padding:7px 12px;
  background:#061f69;
  max-width:220px
}
.hp-search input {
  width:100%;
  min-width:0;
  background:none;
  border:none;
  outline:0;
  font-size:12px;
  padding:5px
}
.hp-search input::placeholder {
  color:#aac4ee
}
.hp-search span {
  font-size:25px
}
.hp-catalogue {
  grid-column:1;
  padding:15px
}
.hp-catalogue-head {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:15px
}
.hp-catalogue-head h2 {
  font-size:19px;
  white-space:nowrap
}
.hp-categories {
  display:flex;
  gap:5px;
  overflow-x:auto;
  scrollbar-width:none;
  flex:1
}
.hp-categories button {
  white-space:nowrap;
  font-size:11px;
  background:#0a2c72;
  border:1px solid #2762b0;
  border-radius:10px;
  padding:8px 11px
}
.hp-catalogue-head select {
  background:#0a2c72;
  border:1px solid #3266b7;
  border-radius:9px;
  font-size:11px;
  padding:8px;
  max-width:100px
}
.hp-product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px
}
.hp-product {
  padding:12px;
  border:1px solid #4381d985;
  background:linear-gradient(135deg,#16488b77,#082269a8);
  border-radius:14px;
  min-width:0
}
.hp-product-top {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:16px
}
.hp-product-top .hp-item-icon {
  width:61px;
  height:67px;
  font-size:46px
}
.hp-product h3 {
  font-size:14px;
  white-space:nowrap
}
.hp-product-top small {
  display:inline-block;
  font-size:9px;
  border-radius:9px;
  padding:3px 6px;
  background:#1554a6;
  margin-top:5px;
  white-space:nowrap
}
.hp-product-price {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:4px;
  margin-bottom:14px
}
.hp-product-price small {
  font-size:10px;
  color:#bed3fc
}
.hp-product-price strong {
  font-size:14px;
  white-space:nowrap
}
.hp-product-stock {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px
}
.hp-product-stock>span {
  font-size:11px;
  color:#c5d9ff;
  white-space:nowrap
}
.hp-product-stock button {
  font-size:11px;
  padding:6px 15px;
  border-radius:11px
}
.hp-mobile-price {
  display:none
}
.hp-market-aside {
  grid-column:2;
  grid-row:2/4;
  display:flex;
  flex-direction:column;
  gap:13px
}
.hp-market-aside>.hp-panel {
  padding:16px
}
.hp-asset-grid {
  display:flex;
  gap:9px
}
.hp-asset-grid .hp-resource {
  flex:1;
  min-width:0;
  gap:6px;
  padding:14px 8px
}
.hp-asset-grid .hp-resource i {
  font-size:24px
}
.hp-asset-grid .hp-resource strong {
  font-size:16px
}
.hp-market-inventory .hp-muted {
  margin-top:-8px;
  margin-bottom:13px
}
.hp-fast-sale {
  display:flex;
  align-items:center;
  gap:5px
}
.hp-fast-sale>img {
  width:30%;
  height:95px;
  object-fit:contain
}
.hp-fast-sale p {
  font-size:10px;
  color:#c5d3f7;
  margin:6px 0 13px
}
.hp-fast-sale .hp-primary {
  font-size:12px;
  padding:8px 14px
}
.hp-price-panel {
  grid-column:1;
  padding:16px
}
.hp-quotes {
  display:flex;
  gap:10px
}
.hp-quotes>div {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  border-radius:12px;
  border:1px solid #386cc374;
  background:#0b2e797d;
  padding:12px
}
.hp-quotes span {
  font-size:30px
}
.hp-quotes strong {
  font-size:12px
}
.hp-quotes small {
  color:#b3c7ef;
  font-size:10px
}
.hp-quotes b {
  font-size:12px;
  color:#19f2ce
}
.hp-order-panel {
  grid-column:2;
  padding:16px
}
.hp-orders article {
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #4870b354
}
.hp-orders article:last-child {
  border-bottom:0
}
.hp-orders .hp-item-icon {
  width:33px;
  height:36px;
  font-size:25px;
  border:0;
  background:none
}
.hp-orders article>div {
  flex:1;
  min-width:0
}
.hp-orders strong {
  font-size:12px;
  display:block
}
.hp-orders time {
  display:block;
  font-size:10px;
  color:#b8c9ee;
  margin-top:3px
}
.hp-orders article>span:not(.hp-item-icon) {
  font-size:11px
}
.hp-orders article>b {
  font-size:12px;
  white-space:nowrap
}
.hp-completed {
  background:#00af8054;
  color:#00ffd4;
  border-radius:15px;
  padding:5px 9px;
  font-size:9px!important;
  white-space:nowrap
}
.hp-market-page .hp-order-panel {
  grid-column:1/-1
}
.hp-market-page .hp-price-panel {
  grid-column:1/-1
}
.hp-market-page .hp-orders {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:30px
}
.hp-profile-page {
  display:grid;
  grid-template-columns:1fr 1fr 1.2fr;
  grid-template-rows:repeat(2,minmax(150px,auto)) auto auto;
  gap:12px
}
.hp-profile-page>.hp-panel {
  padding:16px
}
.hp-profile-identity {
  grid-column:1;
  grid-row:1/3
}
.hp-profile-self {
  grid-column:2;
  grid-row:1/3
}
.hp-profile-earnings {
  grid-column:3;
  grid-row:1
}
.hp-profile-assets {
  grid-column:3;
  grid-row:2
}
.hp-profile-growth {
  grid-column:1;
  grid-row:3
}
.hp-profile-auto {
  grid-column:2;
  grid-row:3
}
.hp-profile-worlds {
  grid-column:3;
  grid-row:3
}
.hp-profile-activity {
  grid-column:1;
  grid-row:4
}
.hp-profile-logs {
  grid-column:2;
  grid-row:4
}
.hp-profile-settings {
  grid-column:3;
  grid-row:4
}
.hp-profile-person {
  display:flex;
  align-items:center;
  gap:15px;
  margin:16px 0 30px
}
.hp-profile-person>img {
  width:115px;
  height:125px;
  object-fit:contain;
  background:radial-gradient(ellipse,#2ae6ff65,#7d63ff87 65%,#59c9ff);
  border-radius:50%;
  border:2px solid #68a4ff
}
.hp-profile-person>div {
  flex:1;
  min-width:0
}
.hp-profile-person h2 {
  font-size:19px;
  overflow-wrap:anywhere
}
.hp-level {
  background:linear-gradient(110deg,#0ccbff,#653bff);
  font-size:12px;
  font-weight:700;
  margin-top:6px
}
.hp-profile-person p {
  font-size:12px;
  color:#c0d5ff;
  line-height:1.6;
  margin-top:14px
}
.hp-profile-stats {
  display:flex;
  gap:10px;
  justify-content:space-between
}
.hp-profile-stats>div {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:#15408466;
  border:1px solid #3463b761;
  border-radius:13px;
  padding:14px 5px
}
.hp-profile-stats b {
  font-size:21px
}
.hp-profile-stats small {
  font-size:11px;
  white-space:nowrap;
  color:#b7cdf5
}
.hp-profile-stats span {
  font-size:25px
}
.hp-profile-stage {
  position:relative;
  height:220px;
  background:radial-gradient(ellipse at center bottom,#02befe72,#1c3db600 70%);
  border-radius:15px;
  display:flex;
  justify-content:center;
  overflow:hidden
}
.hp-profile-stage>img {
  height:225px;
  max-width:65%;
  object-fit:contain;
  filter:drop-shadow(0 0 17px #1caaff);
  z-index:1
}
.hp-profile-stage::after {
  content:"";
  position:absolute;
  bottom:0;
  left:12%;
  right:12%;
  height:40px;
  border:2px solid #75f9ff;
  border-radius:50%;
  box-shadow:0 0 20px #32adff,inset 0 0 25px #3d94ff
}
.hp-promise {
  position:absolute;
  left:0;
  top:6px;
  background:linear-gradient(#04bef8,#2844d9);
  border:1px solid #c0ffff;
  border-radius:12px;
  box-shadow:0 0 13px #18c4ff;
  padding:9px;
  font-size:11px;
  z-index:2;
  text-align:center
}
.hp-self-controls {
  position:absolute;
  right:0;
  top:6px;
  display:flex;
  flex-direction:column;
  gap:9px;
  z-index:2
}
.hp-self-controls button {
  font-size:10px;
  display:flex;
  align-items:center;
  gap:5px;
  border:1px solid #72b3ff8c;
  border-radius:12px;
  background:#1b56b6b3;
  padding:9px
}
.hp-self-controls .hp-icon {
  width:19px;
  height:19px
}
.hp-self-status {
  position:relative;
  margin-top:11px;
  background:#092674c9;
  border-radius:12px;
  padding:11px;
  font-size:13px
}
.hp-self-status span {
  display:block;
  color:#9dbbe7;
  margin-top:5px;
  font-size:11px
}
.hp-earnings-main {
  margin:17px 0
}
.hp-earnings-main>strong {
  font-size:36px;
  letter-spacing:1px
}
.hp-earnings-main p {
  color:#a4bfea;
  font-size:12px;
  margin-top:5px
}
.hp-earnings-bottom {
  display:flex;
  gap:10px;
  align-items:center
}
.hp-earnings-bottom>div {
  flex:1;
  background:#1b3d9166;
  border:1px solid #4262b34d;
  border-radius:12px;
  padding:11px
}
.hp-earnings-bottom strong {
  font-size:17px;
  white-space:nowrap
}
.hp-earnings-bottom small {
  display:block;
  color:#c1d0f5;
  font-size:11px;
  margin-top:5px
}
.hp-earnings-bottom button {
  font-size:12px;
  padding:11px
}
.hp-auto-grid {
  display:flex;
  gap:8px;
  margin-top:9px
}
.hp-auto-grid>div {
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  align-items:center;
  background:#173a876e;
  border:1px solid #3b61b666;
  border-radius:12px;
  padding:8px 4px;
  gap:6px
}
.hp-auto-grid b {
  font-size:24px
}
.hp-auto-grid span,.hp-auto-grid small {
  font-size:10px;
  white-space:nowrap
}
.hp-worlds-mini {
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:thin
}
.hp-worlds-mini .hp-map {
  flex:0 0 100px
}
.hp-profile-settings>div {
  display:grid;
  gap:7px
}
.hp-profile-settings button {
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  background:#173b8670;
  border:1px solid #416bc34f;
  border-radius:11px;
  padding:9px
}
.hp-profile-settings .hp-icon {
  width:25px;
  height:25px;
  color:#8eddff;
  filter:drop-shadow(0 0 5px #2895fa)
}
.hp-profile-settings strong {
  display:block;
  font-size:12px
}
.hp-profile-settings small {
  display:block;
  font-size:10px;
  color:#a9bfe9;
  margin-top:3px
}
.hp-profile-activity .hp-audits,.hp-profile-logs .hp-audits {
  max-height:205px;
  overflow:auto;
  scrollbar-width:thin
}
.hp-profile-assets .hp-asset-grid {
  flex-wrap:wrap
}
.hp-profile-assets .hp-resource {
  padding:10px 7px
}
.hp-profile-assets .hp-resource strong {
  font-size:14px
}
.hp-footer {
  min-height:50px;
  padding:9px 28px;
  background:#04194a99;
  border-top:1px solid #315aac;
  display:flex;
  align-items:center;
  gap:28px;
  font-size:11px;
  color:#a1b5e4
}
.hp-footer>strong {
  display:flex;
  align-items:center;
  gap:9px;
  color:#fff;
  font-size:12px
}
.hp-footer .hp-logo {
  width:26px;
  height:28px;
  border-radius:7px;
  gap:4px;
  box-shadow:0 0 8px #376bff
}
.hp-footer .hp-logo i {
  height:15px;
  width:3px
}
.hp-footer>button {
  margin-left:auto;
  background:none;
  border:0;
  color:#a1b5e4;
  font-size:11px
}
.hp-footer>small {
  border:1px solid #2854b7;
  padding:7px 20px;
  border-radius:18px;
  font-size:10px
}
.hp-toast {
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translate(-50%,15px);
  background:#081e64f2;
  color:#fff;
  border:1px solid #6ab6ff;
  box-shadow:0 8px 35px #0005;
  border-radius:14px;
  padding:14px 24px;
  z-index:250;
  max-width:90vw;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s
}
.hp-toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
.hp-dialog {
  color:#f1f7ff;
  background:linear-gradient(130deg,#062867,#152276);
  border:1px solid #66bbff;
  border-radius:22px;
  padding:22px;
  width:min(600px,90vw);
  max-height:85dvh;
  box-shadow:0 0 40px #396dff77
}
.hp-dialog::backdrop {
  background:#010a29a8;
  backdrop-filter:blur(5px)
}
.hp-dialog header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px
}
.hp-dialog header>button {
  border:0;
  background:#23499c;
  border-radius:50%;
  font-size:23px;
  width:34px;
  height:34px
}
.hp-dialog p {
  line-height:1.8;
  margin-bottom:14px;
  font-size:14px
}
.hp-dialog .hp-audits p {
  font-size:12px;
  margin-bottom:0
}
.hp-dialog .hp-inventory-grid {
  flex-wrap:wrap
}
.hp-dialog .hp-inventory-grid button {
  flex:0 0 90px
}
.hp-shell button {
  touch-action:manipulation
}
@media(min-width:1600px) {
  .hp-farm-page {
  grid-template-columns:minmax(0,1fr) 360px
}
.hp-farm-inventory {
  margin-top:132px
}
.hp-farm-logs {
  max-height:380px
}
.hp-farm-mission-panel .hp-mission {
  min-height:84px
}
.hp-task-page {
  grid-template-columns:minmax(0,1fr) 410px
}
.hp-task-hero {
  height:120px
}
.hp-task-aside .hp-farm-preview>img {
  height:270px
}
.hp-task-main .hp-mission {
  min-height:83px
}
.hp-profile-page {
  grid-template-rows:160px 165px auto auto
}
.hp-profile-stage {
  height:225px
}
}
@media(min-width:901px) and (max-width:1300px) {
  .hp-layout,.hp-shell[data-page="farm"] .hp-layout {
  grid-template-columns:215px minmax(0,1fr);
  gap:12px;
  padding:5px 12px 14px
}
.hp-header {
  padding:12px;
  gap:12px;
  height:86px
}
.hp-brand {
  min-width:270px;
  gap:10px
}
.hp-brand strong {
  font-size:22px
}
.hp-brand small {
  font-size:11px
}
.hp-resource {
  min-width:85px;
  padding:8px 11px;
  gap:7px
}
.hp-resource strong {
  font-size:16px
}
.hp-header-actions {
  gap:8px
}
.hp-logout {
  min-width:100px;
  font-size:12px;
  padding:9px
}
.hp-farm-page {
  grid-template-columns:minmax(0,1fr) 250px;
  grid-template-rows:120px minmax(425px,1fr) 75px;
  gap:10px
}
.hp-farm-inventory {
  margin-top:145px
}
.hp-farm-logs {
  max-height:295px
}
.hp-map {
  flex-basis:94px
}
.hp-self>img {
  width:65px;
  height:95px
}
.hp-self strong {
  font-size:12px
}
.hp-self small {
  font-size:9px
}
.hp-invite h2 {
  font-size:17px
}
.hp-invite p {
  font-size:9px
}
.hp-farm-mission-panel {
  padding:10px
}
.hp-farm-mission-panel .hp-mission {
  grid-template-columns:33px minmax(0,1fr) 48px;
  gap:4px
}
.hp-farm-mission-panel .hp-mission .hp-item-icon {
  width:31px;
  height:38px;
  font-size:22px
}
.hp-farm-mission-panel .hp-mission strong {
  font-size:10px
}
.hp-farm-mission-panel .hp-reward {
  right:64px;
  font-size:9px
}
.hp-farm-mission-panel .hp-primary {
  font-size:9px;
  padding:6px
}
.hp-farm-action {
  gap:6px;
  padding:7px;
  border-radius:18px
}
.hp-farm-action .hp-icon {
  width:26px
}
.hp-farm-action strong {
  font-size:16px
}
.hp-farm-action small {
  font-size:9px
}
.hp-farm-actions {
  gap:8px;
  padding:0 0 8px
}
.hp-task-page {
  grid-template-columns:minmax(0,1fr) 260px;
  gap:10px
}
.hp-task-aside>section {
  padding:12px
}
.hp-task-aside h2 {
  font-size:16px
}
.hp-task-aside .hp-primary {
  padding:8px;
  font-size:10px
}
.hp-mission {
  grid-template-columns:40px minmax(0,1fr) 62px 62px;
  gap:8px;
  padding:9px
}
.hp-mission .hp-item-icon {
  width:40px;
  height:45px;
  font-size:27px
}
.hp-mission strong {
  font-size:13px
}
.hp-mission .hp-primary {
  padding:9px 5px;
  font-size:11px
}
.hp-reward {
  font-size:12px
}
.hp-market-page {
  grid-template-columns:minmax(0,1fr) 250px
}
.hp-catalogue-head h2 {
  display:none
}
.hp-product-grid {
  gap:8px
}
.hp-product {
  padding:8px
}
.hp-product-top {
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
  margin-bottom:10px
}
.hp-product-top .hp-item-icon {
  width:48px;
  height:50px;
  font-size:36px
}
.hp-product h3 {
  font-size:12px
}
.hp-product-price strong {
  font-size:12px
}
.hp-product-price small {
  display:none
}
.hp-product-stock {
  flex-wrap:wrap;
  gap:8px
}
.hp-profile-person {
  flex-direction:column;
  text-align:center;
  margin-bottom:15px
}
.hp-profile-person>img {
  width:90px;
  height:95px
}
.hp-profile-person h2 {
  font-size:16px
}
.hp-profile-page>.hp-panel {
  padding:12px
}
.hp-earnings-bottom {
  flex-wrap:wrap
}
.hp-earnings-bottom button {
  width:100%
}
.hp-profile-stats {
  gap:5px
}
.hp-profile-stats small {
  font-size:9px
}
.hp-profile-stats b {
  font-size:18px
}
.hp-self-controls {
  top:auto;
  bottom:0;
  flex-direction:row
}
.hp-self-controls button {
  font-size:9px;
  padding:6px
}
.hp-self-controls .hp-icon {
  display:none
}
.hp-profile-stage {
  height:235px
}
.hp-profile-stage>img {
  height:220px;
  max-width:90%
}
.hp-promise {
  font-size:9px;
  padding:6px
}
}
@media(max-width:900px) {
  body.peplive-home {
  background-size:auto 100dvh;
  font-size:14px
}
.hp-shell {
  padding-bottom:84px
}
.hp-header {
  height:94px;
  padding:15px 16px;
  gap:10px;
  flex-wrap:wrap;
  align-content:center;
  position:relative
}
.hp-brand {
  min-width:0;
  gap:10px;
  flex:1
}
.hp-brand strong {
  font-size:19px;
  white-space:nowrap
}
.hp-brand small {
  font-size:10px;
  white-space:nowrap
}
.hp-logo {
  width:40px;
  height:42px;
  border-radius:12px;
  gap:6px
}
.hp-logo i {
  width:5px;
  height:23px
}
.hp-logo i:first-child {
  height:19px
}
.hp-resources {
  flex:0 0 auto;
  gap:7px
}
.hp-resource {
  min-width:0;
  padding:8px 11px;
  gap:7px;
  border-radius:12px
}
.hp-resource i {
  font-size:18px
}
.hp-resource strong {
  font-size:14px
}
.hp-header-actions {
  gap:8px
}
.hp-header-actions .hp-icon-button:first-child,.hp-header-actions .hp-logout {
  display:none
}
.hp-icon-button {
  height:40px;
  min-width:39px;
  border-radius:12px
}
.hp-icon-button .hp-icon {
  width:23px
}
.hp-avatar-button {
  display:none
}
.hp-layout,.hp-shell[data-page="farm"] .hp-layout {
  display:block;
  padding:0 16px 12px;
  min-height:0
}
.hp-sidebar {
  display:none
}
.hp-panel {
  border-radius:17px
}
.hp-panel-head {
  margin-bottom:12px
}
.hp-panel-head h2 {
  font-size:20px
}
.hp-panel-head h2 small {
  font-size:11px
}
.hp-link {
  font-size:12px!important
}
.hp-farm-page {
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:0
}
.hp-mobile-intro {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.hp-self {
  height:107px;
  padding:7px;
  gap:3px;
  border-radius:17px
}
.hp-self>img {
  width:63px;
  height:87px
}
.hp-self strong {
  font-size:13px
}
.hp-self b {
  font-size:12px;
  margin:6px 0 4px
}
.hp-self small {
  font-size:9px
}
.hp-self>span {
  min-width:0
}
.hp-self>.hp-icon {
  width:13px
}
.hp-invite {
  height:107px;
  min-height:0;
  border-radius:17px;
  padding:5px
}
.hp-invite>img {
  width:43%;
  height:93px;
  margin-left:-5px
}
.hp-invite h2 {
  font-size:17px
}
.hp-invite p {
  font-size:9px;
  white-space:normal;
  margin:5px 0 7px
}
.hp-invite .hp-primary {
  padding:6px 10px;
  font-size:10px
}
.hp-invite .hp-primary svg {
  display:none
}
.hp-maps {
  height:88px;
  flex:0 0 auto;
  border:0;
  background:none;
  box-shadow:none;
  overflow:auto;
  margin-right:-16px;
  border-radius:0;
  padding:0 16px 0 0;
  gap:8px
}
.hp-map {
  flex:0 0 160px;
  flex-direction:row;
  padding:5px;
  gap:4px;
  border-radius:12px;
  align-items:center;
  text-align:left
}
.hp-map img {
  width:69px;
  height:60px
}
.hp-map strong {
  font-size:13px
}
.hp-map small {
  font-size:10px
}
.hp-map em {
  font-size:8px
}
.hp-farm-stage {
  min-height:0;
  height:430px;
  margin:-7px -16px -14px;
  flex-shrink:0
}
.hp-farm-stage #sceneWrap {
  height:430px;
  min-height:0;
  border-radius:0
}
.hp-farm-stage .camera-controls {
  display:flex;
  flex-direction:column;
  top:12px;
  right:15px;
  border-radius:25px;
  padding:6px
}
.hp-farm-stage .camera-controls button {
  width:33px;
  height:30px;
  min-width:0
}
.hp-farm-stage .scene-status {
  font-size:9px;
  padding:5px 10px;
  bottom:12px
}
.hp-farm-actions {
  display:grid;
  gap:9px;
  padding:0;
  min-height:72px;
  z-index:2
}
.hp-farm-action {
  border-radius:18px;
  padding:8px 5px;
  gap:7px
}
.hp-farm-action .hp-icon {
  width:26px;
  height:29px
}
.hp-farm-action strong {
  font-size:17px
}
.hp-farm-action small {
  font-size:10px;
  margin-top:4px
}
.hp-farm-market {
  margin-top:0;
  padding:15px;
  align-self:stretch
}
.hp-farm-market .hp-mini-tabs {
  display:none
}
.hp-farm-market .hp-quick-sale {
  max-width:65%;
  margin-top:0
}
.hp-farm-market .hp-item-icon {
  width:42px;
  height:44px
}
.hp-farm-market .hp-quick-sale strong {
  font-size:14px
}
.hp-farm-market .hp-quick-sale p {
  font-size:12px
}
.hp-farm-market .hp-quick-sale button {
  font-size:10px
}
.hp-farm-market .hp-panel-head {
  margin-bottom:10px
}
.hp-farm-market {
  position:relative
}
.hp-inventory-value {
  display:flex;
  position:absolute;
  right:15px;
  top:57px;
  bottom:15px;
  width:29%;
  border:1px solid #466dc9;
  border-radius:13px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:7px;
  font-size:10px;
  color:#b5c9ef;
  background:#16358666
}
.hp-inventory-value strong {
  font-size:13px;
  color:white
}
.hp-farm-inventory,.hp-farm-logs {
  display:none
}
.hp-tip {
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 15px;
  text-align:left
}
.hp-tip>span {
  font-size:35px
}
.hp-tip>div {
  flex:1
}
.hp-tip strong {
  font-size:14px;
  display:block;
  margin-bottom:6px
}
.hp-tip p {
  font-size:11px;
  line-height:1.6;
  color:#b7cff8
}
.hp-tip .hp-icon {
  width:18px
}
.hp-footer {
  display:none
}
.hp-bottom-nav {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  position:fixed;
  z-index:70;
  bottom:0;
  left:0;
  right:0;
  height:80px;
  padding:7px 12px max(7px,env(safe-area-inset-bottom));
  background:linear-gradient(100deg,#081c59f5,#0c2f84fa,#09256cfa);
  border:1px solid #5478cc82;
  border-radius:27px 27px 0 0;
  backdrop-filter:blur(18px);
  box-shadow:0 -4px 30px #1e42b22f
}
.hp-bottom-nav button {
  background:none;
  border:1px solid transparent;
  border-radius:20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  color:#a8c3f7;
  font-size:13px;
  position:relative
}
.hp-bottom-nav .hp-icon {
  width:28px;
  height:28px
}
.hp-bottom-nav button.active {
  color:#fff;
  background:linear-gradient(120deg,#164bff,#7542f8);
  border-color:#8cbdff;
  box-shadow:inset 0 0 10px #789eff,0 0 18px #397cfc85;
  font-weight:700
}
.hp-bottom-nav button.active .hp-icon {
  filter:drop-shadow(0 0 7px #daa7ff)
}
.hp-task-page {
  display:block
}
.hp-task-main {
  gap:12px
}
.hp-task-hero {
  height:145px;
  padding:10px 4px;
  overflow:visible
}
.hp-task-hero h1 {
  font-size:34px;
  margin-top:24px
}
.hp-task-hero p {
  font-size:13px;
  max-width:280px;
  line-height:1.6
}
.hp-task-hero>img {
  height:165px;
  width:60%;
  right:-16px;
  top:-10px;
  object-position:center;
  mask-image:linear-gradient(90deg,transparent,#000 40%);
  opacity:.8
}
.hp-hero-caption {
  display:none
}
.hp-task-tabs {
  width:100%;
  max-width:none;
  border:1px solid #588eff;
  border-radius:21px;
  background:#062368cc;
  gap:0;
  padding:0;
  z-index:1
}
.hp-task-tabs button {
  padding:13px 8px;
  border-radius:19px;
  gap:10px;
  font-size:18px
}
.hp-task-tabs small {
  display:block;
  color:#c7d8fd;
  font-size:10px;
  font-weight:400;
  margin-top:4px
}
.hp-task-tabs b {
  font-size:27px
}
.hp-task-checkin {
  display:block;
  padding:15px
}
.hp-task-checkin .hp-primary {
  font-size:11px;
  padding:8px 15px;
  border-radius:20px
}
.hp-checkin-days {
  gap:7px;
  margin-top:13px
}
.hp-checkin-days>div {
  padding:10px 3px;
  gap:9px;
  border-radius:11px
}
.hp-checkin-days b {
  font-size:28px
}
.hp-checkin-days small {
  font-size:10px
}
.hp-task-aside {
  display:none
}
.hp-today {
  padding:15px
}
.hp-today .hp-panel-head {
  gap:5px
}
.hp-today h2 {
  font-size:21px
}
.hp-countdown {
  font-size:10px
}
.hp-mission {
  grid-template-columns:49px minmax(0,1fr) 65px 65px;
  gap:10px;
  padding:10px;
  margin-top:7px;
  min-height:82px;
  border-radius:14px
}
.hp-mission .hp-item-icon {
  width:46px;
  height:51px;
  font-size:34px;
  border-radius:12px
}
.hp-mission strong {
  font-size:14px
}
.hp-mission p {
  font-size:10px;
  margin:5px 0 7px
}
.hp-mission .hp-primary {
  padding:9px 5px;
  font-size:12px
}
.hp-mission .hp-reward {
  font-size:14px
}
.hp-progress-row small {
  font-size:10px;
  min-width:22px
}
.hp-progress {
  height:7px
}
.hp-milestone-panel {
  display:none
}
.hp-challenges {
  padding:15px
}
.hp-challenges button>img {
  height:77px;
  width:33%
}
.hp-challenges strong {
  font-size:16px
}
.hp-challenges p {
  font-size:10px;
  line-height:1.5
}
.hp-challenges small {
  font-size:10px
}
.hp-challenges .hp-icon {
  width:11px
}
.hp-market-page {
  display:flex;
  flex-direction:column;
  gap:12px
}
.hp-market-hero {
  height:133px;
  border:1px solid #4195ffc7;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(100deg,#08226a80,#0e56bb80);
  padding:17px 20px
}
.hp-market-hero h1 {
  font-size:33px;
  text-shadow:0 0 12px #02ccff
}
.hp-market-hero h2 {
  font-size:15px;
  margin-top:7px
}
.hp-market-hero p {
  font-size:11px;
  margin-top:6px
}
.hp-market-hero>img {
  right:-40px;
  top:-20px;
  width:60%;
  height:180px;
  opacity:.95;
  mask-image:linear-gradient(90deg,transparent,#000 35%)
}
.hp-market-topbar {
  display:block
}
.hp-market-tabs {
  padding:8px;
  border:1px solid #5184ce;
  background:#041b54e6;
  border-radius:18px;
  gap:7px
}
.hp-market-tabs button {
  padding:12px;
  font-size:20px;
  border-radius:13px
}
.hp-search {
  display:none
}
.hp-catalogue {
  padding:9px
}
.hp-catalogue-head {
  margin-bottom:9px;
  gap:0
}
.hp-catalogue-head h2,.hp-catalogue-head select {
  display:none
}
.hp-categories {
  gap:7px
}
.hp-categories button {
  padding:9px 12px;
  font-size:12px;
  border-radius:13px;
  flex:1
}
.hp-product-grid {
  gap:8px;
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.hp-product {
  padding:9px 7px 7px;
  min-width:0;
  border-radius:13px
}
.hp-product-top {
  flex-direction:column;
  gap:5px;
  text-align:center;
  align-items:center;
  margin:0
}
.hp-product-top .hp-item-icon {
  width:52px;
  height:51px;
  border:0;
  background:none;
  font-size:44px
}
.hp-product h3 {
  font-size:14px
}
.hp-product-top small {
  display:none
}
.hp-product-price {
  display:none
}
.hp-product-stock {
  flex-direction:column;
  gap:7px;
  margin-top:5px
}
.hp-product-stock>span {
  font-size:11px;
  color:#bed0f1
}
.hp-product-stock .hp-primary {
  width:100%;
  font-size:0;
  padding:7px 1px;
  border-radius:10px;
  box-shadow:none;
  border-color:#548be5;
  gap:0
}
.hp-product-stock .hp-mobile-price {
  font-size:12px;
  display:inline
}
.hp-market-aside {
  display:contents
}
.hp-market-aside #hpMarketAssets {
  display:none
}
.hp-fast-sale {
  order:4;
  padding:8px 12px!important
}
.hp-fast-sale>img {
  height:70px;
  width:24%
}
.hp-fast-sale>div {
  flex:1;
  position:relative
}
.hp-fast-sale h2 {
  font-size:19px
}
.hp-fast-sale p {
  font-size:11px;
  max-width:52%;
  margin:6px 0
}
.hp-fast-sale .hp-primary {
  position:absolute;
  right:0;
  top:11px;
  padding:11px 15px;
  font-size:13px;
  border-radius:23px
}
.hp-market-inventory {
  order:5;
  padding:14px!important
}
.hp-inventory-grid {
  gap:8px
}
.hp-inventory-grid button {
  border:1px solid #426cd28f;
  border-radius:11px;
  padding:6px;
  background:#12387470;
  flex:1 0 62px
}
.hp-inventory-grid .hp-item-icon {
  border:0;
  background:none;
  height:41px;
  font-size:32px
}
.hp-inventory-grid strong,.hp-inventory-grid small {
  font-size:11px;
  margin-top:3px
}
.hp-market-inventory #hpMarketInventoryCount {
  text-align:right;
  margin-top:-31px;
  margin-right:54px;
  font-size:10px;
  margin-bottom:17px
}
.hp-price-panel {
  display:none
}
.hp-order-panel {
  order:6;
  padding:14px
}
.hp-market-page .hp-orders {
  display:block
}
.hp-orders article {
  border:1px solid #3f63b78a;
  border-radius:13px;
  background:#15357470;
  padding:8px;
  margin-top:6px;
  gap:10px
}
.hp-orders .hp-item-icon {
  font-size:29px;
  width:36px
}
.hp-orders strong {
  font-size:13px
}
.hp-orders time {
  font-size:10px
}
.hp-orders article>b {
  font-size:13px
}
.hp-orders article>span {
  font-size:12px!important
}
.hp-completed {
  padding:5px 11px;
  font-size:10px!important
}
.hp-profile-page {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.hp-profile-page>.hp-panel {
  grid-column:auto;
  grid-row:auto;
  padding:14px
}
.hp-profile-page .hp-profile-identity {
  grid-column:1/-1;
  order:0;
  border:0;
  background:none;
  box-shadow:none;
  padding:5px 0 8px
}
.hp-profile-identity>.hp-panel-head {
  display:none
}
.hp-profile-person {
  flex-direction:row;
  text-align:left;
  margin:0;
  gap:16px
}
.hp-profile-person>img {
  width:110px;
  height:118px
}
.hp-profile-person>div {
  padding-right:0
}
.hp-profile-person h2 {
  font-size:22px
}
.hp-profile-person p {
  font-size:12px;
  margin-top:9px
}
.hp-profile-person .hp-level {
  font-size:12px
}
.hp-profile-identity .hp-profile-stats {
  display:none
}
.hp-profile-page .hp-profile-earnings {
  grid-column:1/-1;
  order:1
}
.hp-profile-earnings .hp-panel-head {
  margin-bottom:8px
}
.hp-earnings-main {
  margin:4px 0 13px
}
.hp-earnings-main>strong {
  font-size:36px
}
.hp-earnings-main p {
  font-size:12px
}
.hp-earnings-bottom {
  gap:10px;
  flex-wrap:nowrap
}
.hp-earnings-bottom>div {
  padding:8px
}
.hp-earnings-bottom strong {
  font-size:17px
}
.hp-earnings-bottom small {
  font-size:10px
}
.hp-earnings-bottom button {
  width:auto;
  font-size:14px;
  padding:12px 18px
}
.hp-profile-page .hp-profile-assets {
  grid-column:1/-1;
  order:2
}
.hp-profile-assets .hp-asset-grid {
  flex-wrap:nowrap;
  overflow:auto
}
.hp-profile-assets .hp-resource {
  flex:1 0 96px;
  padding:14px 8px;
  gap:8px;
  border-radius:13px
}
.hp-profile-assets .hp-resource strong {
  font-size:16px
}
.hp-profile-assets .hp-resource i {
  font-size:28px
}
.hp-profile-page .hp-profile-self {
  order:3
}
.hp-profile-page .hp-profile-auto {
  order:4
}
.hp-profile-self .hp-panel-head {
  margin-bottom:4px
}
.hp-profile-self .hp-panel-head h2,.hp-profile-auto .hp-panel-head h2 {
  font-size:17px;
  white-space:nowrap
}
.hp-profile-self .hp-panel-head>.hp-link {
  font-size:10px!important
}
.hp-profile-stage {
  height:154px
}
.hp-profile-stage>img {
  height:154px;
  max-width:90%
}
.hp-promise {
  font-size:9px;
  padding:6px
}
.hp-self-controls {
  display:none
}
.hp-self-status {
  padding:6px 8px;
  margin-top:5px
}
.hp-self-status strong {
  font-size:11px
}
.hp-self-status span {
  font-size:10px;
  line-height:1.5
}
.hp-profile-auto .hp-panel-head {
  flex-wrap:wrap;
  gap:4px
}
.hp-profile-auto>.hp-muted {
  font-size:10px;
  line-height:1.6
}
.hp-auto-grid {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px
}
.hp-auto-grid>div {
  flex-direction:row;
  justify-content:space-between;
  gap:5px;
  padding:6px;
  background:none;
  border:0
}
.hp-auto-grid b {
  font-size:17px
}
.hp-auto-grid span {
  font-size:12px
}
.hp-auto-grid small {
  font-size:10px
}
.hp-profile-page .hp-profile-logs {
  order:5;
  grid-column:1/-1
}
.hp-profile-logs .hp-audits {
  max-height:none
}
.hp-profile-logs .hp-audits details {
  border:1px solid #426bc095;
  border-radius:13px;
  background:#16357973;
  margin-top:7px;
  padding:9px
}
.hp-profile-logs .hp-audits .hp-item-icon {
  width:45px;
  height:45px;
  font-size:31px
}
.hp-profile-logs .hp-audits strong {
  font-size:14px
}
.hp-profile-logs .hp-audits p {
  font-size:11px;
  line-height:1.5
}
.hp-profile-logs .hp-audits time {
  font-size:10px;
  color:#adc8f7;
  max-width:120px
}
.hp-profile-logs .hp-audits details:nth-child(n+4) {
  display:none
}
.hp-profile-page .hp-profile-settings {
  order:6;
  grid-column:1/-1;
  padding:0;
  background:none;
  border:0;
  box-shadow:none
}
.hp-profile-settings>.hp-panel-head {
  display:none
}
.hp-profile-settings>div {
  grid-template-columns:repeat(4,1fr);
  gap:8px
}
.hp-profile-settings button {
  border-color:#477dec;
  background:linear-gradient(120deg,#044785d9,#141b78e3);
  padding:11px 7px;
  gap:6px;
  flex-direction:column;
  text-align:center;
  border-radius:14px
}
.hp-profile-settings .hp-icon {
  width:27px;
  height:27px
}
.hp-profile-settings strong {
  font-size:12px
}
.hp-profile-settings small {
  font-size:9px
}
.hp-profile-growth,.hp-profile-worlds,.hp-profile-activity {
  display:none
}
.hp-toast {
  bottom:94px;
  font-size:12px;
  padding:12px 17px
}
.peplive-home .avatar-picker,.peplive-home .map-picker,.peplive-home .neighbor-picker,.peplive-home .notification-center {
  max-height:82dvh
}
.hp-dialog {
  padding:18px
}
}
@media(max-width:600px) {
  .hp-header {
  height:105px;
  padding:13px 14px;
  align-content:flex-start;
  gap:10px
}
.hp-brand {
  flex:1 0 auto;
  max-width:calc(100% - 47px)
}
.hp-header-actions {
  position:absolute;
  right:14px;
  top:16px
}
.hp-resources {
  justify-content:flex-end;
  margin-left:auto;
  width:100%;
  gap:7px;
  margin-top:-2px
}
.hp-resources .hp-resource {
  padding:5px 10px;
  border-radius:10px;
  gap:6px
}
.hp-resources .hp-resource i {
  font-size:16px
}
.hp-resources .hp-resource strong {
  font-size:12px
}
.hp-layout,.hp-shell[data-page="farm"] .hp-layout {
  padding-left:12px;
  padding-right:12px
}
.hp-mobile-intro {
  gap:8px
}
.hp-self {
  height:101px;
  padding:4px
}
.hp-self>img {
  width:47px;
  height:75px
}
.hp-self strong {
  font-size:10px
}
.hp-self b {
  font-size:10px
}
.hp-self small {
  font-size:8px;
  white-space:normal;
  line-height:1.4
}
.hp-self>.hp-icon {
  display:none
}
.hp-invite {
  height:101px;
  gap:0
}
.hp-invite h2 {
  font-size:15px
}
.hp-invite p {
  font-size:8px
}
.hp-invite>img {
  height:82px;
  width:44%
}
.hp-invite .hp-primary {
  font-size:9px;
  padding:6px 10px
}
.hp-farm-page {
  gap:12px
}
.hp-maps {
  height:74px
}
.hp-map {
  flex-basis:142px
}
.hp-map img {
  width:60px;
  height:54px
}
.hp-map strong {
  font-size:12px
}
.hp-map small {
  font-size:9px
}
.hp-farm-stage {
  height:335px;
  margin-left:-12px;
  margin-right:-12px
}
.hp-farm-stage #sceneWrap {
  height:335px
}
.hp-farm-stage .camera-controls {
  right:9px
}
.hp-farm-actions {
  gap:6px;
  min-height:65px
}
.hp-farm-action {
  gap:5px;
  padding:8px 3px;
  border-radius:16px
}
.hp-farm-action .hp-icon {
  width:21px;
  height:25px
}
.hp-farm-action strong {
  font-size:14px
}
.hp-farm-action small {
  font-size:8px
}
.hp-panel-head h2 {
  font-size:18px
}
.hp-farm-market {
  padding:12px
}
.hp-farm-market .hp-quick-sale {
  max-width:69%;
  padding:7px 5px;
  gap:4px
}
.hp-farm-market .hp-quick-sale .hp-item-icon {
  width:31px;
  font-size:27px
}
.hp-farm-market .hp-quick-sale strong {
  font-size:12px
}
.hp-farm-market .hp-quick-sale p {
  font-size:10px
}
.hp-farm-market .hp-quick-sale button {
  font-size:9px;
  padding:4px 8px
}
.hp-inventory-value {
  width:25%;
  right:12px;
  top:52px;
  bottom:12px;
  font-size:8px
}
.hp-inventory-value strong {
  font-size:10px
}
.hp-tip {
  padding:12px;
  gap:10px
}
.hp-tip>span {
  font-size:29px
}
.hp-tip p {
  font-size:10px
}
.hp-task-hero {
  height:132px;
  padding-left:3px
}
.hp-task-hero h1 {
  font-size:29px
}
.hp-task-hero p {
  font-size:11px;
  max-width:230px
}
.hp-task-hero>img {
  height:160px;
  width:65%;
  top:-15px
}
.hp-task-tabs button {
  font-size:16px;
  gap:7px;
  padding:12px 6px
}
.hp-task-tabs b {
  font-size:22px
}
.hp-task-tabs small {
  font-size:9px
}
.hp-task-checkin,.hp-today,.hp-challenges {
  padding:12px
}
.hp-checkin-days {
  gap:5px
}
.hp-checkin-days>div {
  padding:8px 1px
}
.hp-checkin-days b {
  font-size:23px
}
.hp-checkin-days small {
  font-size:8px
}
.hp-checkin-days {
  margin-top:10px
}
.hp-task-checkin>.hp-muted {
  font-size:10px
}
.hp-mission {
  grid-template-columns:39px minmax(0,1fr) 50px 53px;
  gap:7px;
  min-height:77px;
  padding:8px 7px
}
.hp-mission .hp-item-icon {
  width:37px;
  height:43px;
  font-size:27px
}
.hp-mission strong {
  font-size:12px
}
.hp-mission p {
  font-size:9px;
  line-height:1.4
}
.hp-mission .hp-reward {
  font-size:11px
}
.hp-mission .hp-primary {
  font-size:10px;
  padding:9px 5px
}
.hp-progress-row {
  gap:5px
}
.hp-progress-row small {
  font-size:9px
}
.hp-countdown {
  font-size:9px
}
.hp-challenges>div {
  gap:7px
}
.hp-challenges button>img {
  width:32%;
  height:64px
}
.hp-challenges strong {
  font-size:12px
}
.hp-challenges p {
  font-size:8px
}
.hp-challenges small {
  font-size:8px
}
.hp-market-hero {
  height:121px;
  padding:13px 14px
}
.hp-market-hero h1 {
  font-size:29px
}
.hp-market-hero h2 {
  font-size:13px
}
.hp-market-hero p {
  font-size:10px
}
.hp-market-tabs button {
  font-size:17px;
  padding:10px
}
.hp-categories {
  gap:6px
}
.hp-categories button {
  font-size:11px;
  padding:8px 10px
}
.hp-product-grid {
  gap:6px
}
.hp-product {
  padding:7px 4px 5px
}
.hp-product-top .hp-item-icon {
  width:42px;
  height:46px;
  font-size:37px
}
.hp-product h3 {
  font-size:12px
}
.hp-product-stock>span {
  font-size:9px
}
.hp-product-stock .hp-mobile-price {
  font-size:10px
}
.hp-product-stock .hp-primary {
  padding:7px 0
}
.hp-fast-sale>img {
  width:25%;
  height:65px
}
.hp-fast-sale h2 {
  font-size:17px
}
.hp-fast-sale p {
  font-size:9px;
  max-width:47%;
  line-height:1.5
}
.hp-fast-sale .hp-primary {
  font-size:10px;
  padding:9px 10px
}
.hp-inventory-grid {
  gap:6px
}
.hp-inventory-grid button {
  flex-basis:48px;
  padding:5px 3px
}
.hp-inventory-grid .hp-item-icon {
  font-size:29px;
  height:35px
}
.hp-inventory-grid strong,.hp-inventory-grid small {
  font-size:9px
}
.hp-market-inventory #hpMarketInventoryCount {
  font-size:9px;
  margin-top:-29px;
  margin-right:48px
}
.hp-orders article {
  gap:7px;
  padding:7px
}
.hp-orders .hp-item-icon {
  width:27px;
  font-size:25px
}
.hp-orders strong {
  font-size:11px
}
.hp-orders time {
  font-size:8px
}
.hp-orders article>b {
  font-size:11px
}
.hp-orders article>span:not(.hp-item-icon) {
  font-size:10px!important
}
.hp-completed {
  font-size:8px!important;
  padding:5px 7px
}
.hp-profile-person>img {
  width:88px;
  height:101px
}
.hp-profile-person h2 {
  font-size:20px
}
.hp-profile-person p {
  font-size:11px
}
.hp-profile-page>.hp-panel {
  padding:12px
}
.hp-earnings-main>strong {
  font-size:34px
}
.hp-earnings-bottom strong {
  font-size:14px
}
.hp-earnings-bottom small {
  font-size:9px
}
.hp-earnings-bottom button {
  font-size:11px;
  padding:12px 9px
}
.hp-earnings-bottom {
  gap:7px
}
.hp-profile-assets .hp-resource {
  flex-basis:83px;
  padding:11px 7px;
  gap:6px
}
.hp-profile-assets .hp-resource strong {
  font-size:13px
}
.hp-profile-assets .hp-resource i {
  font-size:24px
}
.hp-profile-self .hp-panel-head h2,.hp-profile-auto .hp-panel-head h2 {
  font-size:14px
}
.hp-profile-self .hp-panel-head>.hp-link {
  font-size:8px!important
}
.hp-profile-self .hp-panel-head {
  gap:1px
}
.hp-profile-stage {
  height:135px
}
.hp-profile-stage>img {
  height:138px
}
.hp-promise {
  font-size:8px;
  padding:5px
}
.hp-self-status span {
  font-size:8px
}
.hp-self-status strong {
  font-size:10px
}
.hp-profile-auto .hp-panel-head .hp-link {
  font-size:10px!important
}
.hp-auto-grid span {
  font-size:10px
}
.hp-auto-grid small {
  font-size:8px
}
.hp-auto-grid b {
  font-size:16px
}
.hp-auto-grid>div {
  gap:3px;
  padding:5px 0
}
.hp-profile-auto>.hp-muted {
  font-size:9px
}
.hp-profile-logs .hp-audits strong {
  font-size:12px
}
.hp-profile-logs .hp-audits p {
  font-size:10px
}
.hp-profile-logs .hp-audits time {
  font-size:8px;
  max-width:76px
}
.hp-profile-logs .hp-audits .hp-item-icon {
  width:37px;
  height:41px;
  font-size:27px
}
.hp-profile-settings>div {
  gap:6px
}
.hp-profile-settings button {
  padding:10px 4px
}
.hp-profile-settings strong {
  font-size:10px
}
.hp-profile-settings small {
  font-size:8px
}
.hp-profile-settings .hp-icon {
  width:24px;
  height:24px
}
}
.hp-map img {
  mix-blend-mode:normal
}
.hp-farm-right {
  grid-column:2;
  grid-row:1/4;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:36px
}
.hp-farm-right>.hp-panel {
  margin:0;
  align-self:stretch
}
.hp-farm-right .hp-farm-logs {
  flex:1;
  max-height:400px
}
.hp-farm-mission-panel .hp-mission:nth-child(n+5) {
  display:none
}
.hp-farm-stage .three-map-help {
  display:none
}
.hp-farm-preview>img {
  object-fit:contain;
  background:radial-gradient(ellipse,#2d88ff88,#00236a00)
}
.hp-task-hero>img,.hp-market-hero>img {
  object-fit:contain;
  mask-image:none
}
.hp-profile-stage>img {
  object-fit:cover;
  object-position:center
}
.hp-self>img {
  object-fit:cover
}
.hp-profile-person>img {
  object-fit:cover
}
.hp-header .hp-avatar-button img {
  object-fit:cover
}
.hp-checkin-days .hp-primary {
  box-shadow:none
}
@media(min-width:901px) {
  .hp-challenges {
  display:none
}
.hp-task-page {
  min-height:calc(100dvh - 170px)
}
.hp-task-hero {
  height:96px
}
.hp-task-main {
  gap:10px
}
.hp-task-main .hp-mission {
  min-height:72px;
  padding:10px
}
.hp-task-main .hp-mission p {
  margin:4px 0
}
.hp-task-main .hp-today {
  padding:14px
}
.hp-task-main .hp-milestone-panel {
  padding:12px 16px
}
.hp-task-aside {
  padding-top:32px;
  gap:11px
}
.hp-task-aside .hp-farm-preview>img {
  height:250px
}
.hp-task-aside>.hp-panel {
  flex-shrink:0
}
.hp-task-aside .hp-recommend {
  flex:1
}
.hp-profile-page {
  grid-template-rows:236px 111px 160px 222px
}
.hp-profile-page>.hp-panel {
  padding:13px
}
.hp-profile-stage {
  height:213px
}
.hp-profile-stage>img {
  height:213px
}
.hp-profile-person {
  margin:15px 0 28px
}
.hp-profile-earnings .hp-panel-head {
  margin-bottom:7px
}
.hp-earnings-main {
  margin:11px 0
}
.hp-earnings-main>strong {
  font-size:32px
}
.hp-profile-assets .hp-panel-head {
  margin-bottom:8px
}
.hp-profile-assets .hp-resource {
  padding:8px 5px;
  gap:5px
}
.hp-profile-assets .hp-resource i {
  font-size:22px
}
.hp-profile-assets .hp-resource strong {
  font-size:12px
}
.hp-profile-activity .hp-audits,.hp-profile-logs .hp-audits {
  max-height:172px
}
.hp-profile-settings button {
  padding:7px
}
.hp-profile-settings .hp-panel-head {
  margin-bottom:9px
}
.hp-market-page {
  grid-template-columns:minmax(0,1fr) 340px;
  gap:11px
}
.hp-market-hero {
  height:98px
}
.hp-product-top {
  margin-bottom:11px
}
.hp-product-top .hp-item-icon {
  width:54px;
  height:56px;
  font-size:39px
}
.hp-market-page .hp-order-panel {
  grid-column:2;
  grid-row:4
}
.hp-market-page .hp-price-panel {
  grid-column:1;
  grid-row:4
}
.hp-market-page .hp-orders {
  display:block
}
.hp-market-page .hp-orders article:nth-child(n+4) {
  display:none
}
.hp-market-page .hp-catalogue .hp-orders article:nth-child(n+4) {
  display:flex
}
.hp-market-aside>.hp-panel {
  padding:13px
}
.hp-market-aside .hp-fast-sale {
  padding:9px
}
.hp-market-hero>img {
  right:8%;
  width:44%;
  height:170px;
  top:-35px
}
.hp-quotes>div {
  padding:8px
}
.hp-price-panel,.hp-order-panel {
  padding:14px
}
.hp-footer {
  height:49px
}
.hp-farm-mission-panel .hp-mission {
  min-height:72px
}
}
@media(max-width:900px) {
  .hp-farm-right {
  display:contents
}
.hp-farm-right .hp-farm-market {
  order:5
}
.hp-farm-page .hp-tip {
  order:6
}
.hp-farm-right .hp-farm-inventory,.hp-farm-right .hp-farm-logs {
  display:none
}
.hp-task-hero>img {
  width:65%;
  height:190px;
  top:-35px;
  right:-10px
}
.hp-market-hero>img {
  right:-20px;
  width:58%;
  height:175px;
  top:-22px
}
.hp-farm-stage .scene-status {
  display:none
}
.hp-farm-stage .camera-controls {
  transform:scale(.87);
  transform-origin:right top
}
.hp-profile-stage>img {
  object-fit:cover
}
.hp-profile-person>img {
  object-fit:cover
}
.hp-mobile-intro .hp-self img {
  object-fit:cover
}
.hp-shell {
  overflow-x:clip
}
.hp-maps {
  margin-right:0;
  padding-right:0
}
.hp-task-hero {
  overflow:hidden
}
.hp-profile-self .hp-self-status span {
  max-height:27px;
  overflow:hidden
}
}
@media(prefers-reduced-motion:reduce) {
  .hp-shell * {
  transition:none!important;
  scroll-behavior:auto!important
}
}
/* Fit the supplied 16:9 desktop compositions without clipping card content. */
@media(min-width:1400px) {
 .hp-task-main .hp-mission {
  min-height:66px;
  height:66px;
  grid-template-columns:48px minmax(0,1fr) 100px 96px;
  padding:7px 12px
}
 .hp-task-main .hp-mission .hp-item-icon {
  width:46px;
  height:47px;
  font-size:32px
}
 .hp-task-main .hp-mission p {
  margin:3px 0;
  font-size:11px
}
 .hp-task-main .hp-mission strong {
  font-size:15px
}
 .hp-task-hero {
  height:86px
}
.hp-task-tabs {
  height:60px
}
.hp-task-tabs button {
  padding:8px
}
 .hp-task-main .hp-panel-head {
  margin-bottom:9px
}
.hp-task-main .hp-today {
  padding:13px
}
 .hp-task-main .hp-milestone-panel {
  padding:12px
}
.hp-milestones {
  padding:3px 0
}
.hp-milestones b {
  font-size:32px
}
 .hp-task-aside .hp-farm-preview>img {
  height:220px
}
.hp-task-aside>section {
  padding:13px
}
.hp-task-aside .hp-recommend {
  flex:0 0 auto
}
 .hp-task-main .hp-mission .hp-progress-row {
  max-width:70%
}
.hp-task-main .hp-mission {
  margin-top:6px
}
 .hp-farm-page {
  grid-template-rows:132px minmax(370px,1fr) 85px;
  height:calc(100dvh - 164px);
  min-height:710px
}
 .hp-farm-right .hp-farm-logs {
  min-height:0;
  max-height:none
}
 .hp-farm-right .hp-farm-market {
  flex-shrink:0
}
.hp-farm-right .hp-farm-inventory {
  flex-shrink:0;
  padding:13px
}
 .hp-farm-stage {
  min-height:0
}
.hp-farm-stage #sceneWrap {
  min-height:0
}
 .hp-market-page .hp-orders article {
  padding:7px 0
}
.hp-market-page .hp-orders article:nth-child(n+4) {
  display:none
}
 .hp-market-hero {
  height:85px
}
.hp-product {
  padding:10px
}
.hp-product-price {
  margin-bottom:10px
}
.hp-market-page .hp-quotes {
  gap:8px
}
}
@media(max-width:600px) {
 .hp-header {
  height:92px;
  padding-top:11px
}
.hp-brand strong {
  font-size:18px
}
.hp-brand small {
  font-size:9px
}
 .hp-mobile-intro .hp-self,.hp-mobile-intro .hp-invite {
  height:88px
}
.hp-mobile-intro .hp-self>img {
  height:78px;
  width:48px
}
 .hp-farm-stage,.hp-farm-stage #sceneWrap {
  height:300px
}
.hp-farm-actions {
  min-height:58px
}
.hp-farm-page {
  gap:10px
}
 .hp-bottom-nav {
  height:73px
}
.hp-shell {
  padding-bottom:78px
}
.hp-farm-stage {
  margin-bottom:-7px
}
 .hp-profile-logs .hp-audits details {
  padding:7px
}
.hp-profile-person>img {
  height:94px
}
}
/* Keep all dashboard controls visible at desktop reference dimensions. */
@media(min-width:901px){
  .hp-profile-growth .hp-profile-stats>div{padding:8px 3px;gap:4px}
  .hp-profile-growth .hp-profile-stats span{font-size:22px}
  .hp-profile-growth .hp-profile-stats b{font-size:18px}
  .hp-profile-settings>div{gap:5px}
  .hp-profile-settings button{padding:5px 7px;height:36px}
  .hp-profile-settings button>span{display:flex;gap:18px;align-items:center}
  .hp-profile-settings small{margin:0}
  .hp-profile-auto .hp-auto-grid>div{padding:7px 3px;gap:4px}
  .hp-profile-auto .hp-auto-grid b{font-size:23px}
  .hp-profile-worlds .hp-map{padding:2px 3px}
  .hp-profile-worlds .hp-map img{height:44px}
  .hp-market-hero{overflow:hidden}
  .hp-market-hero>img{top:-8px;height:120px;pointer-events:none}
  .hp-farm-stage .map-hint{top:auto;bottom:5px;left:50%;transform:translateX(-50%);white-space:nowrap}
  .hp-farm-stage .scene-status{display:none}
}
@media(max-width:900px){.hp-farm-stage .map-hint{display:none}}
.hp-art{display:inline-block;width:1.7em;height:1.7em;flex:0 0 auto;vertical-align:middle;background-image:url('../assets/homepage/icons.webp');background-size:400% 400%;background-position:var(--art-x) var(--art-y);background-repeat:no-repeat}
.hp-item-icon .hp-art{width:90%;height:90%;max-width:64px;max-height:64px;aspect-ratio:1}
.hp-resource .hp-art{width:29px;height:29px}
.hp-product-top .hp-item-icon{background:none;border-color:#416cce70}
.hp-product-price .hp-art,.hp-reward .hp-art{width:23px;height:23px}
.hp-farm-action>.hp-art{width:44px;height:44px}
.hp-quotes .hp-art{width:45px;height:45px}
@media(max-width:600px){.hp-resource .hp-art{width:19px;height:19px}.hp-farm-action>.hp-art{width:28px;height:28px}.hp-reward .hp-art{width:18px;height:18px}}
.hp-item-icon .hp-art{width:min(90%,60px);height:auto;aspect-ratio:1}
@media(min-width:901px){.hp-market-hero p{display:none}}

.hp-loading-state{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:10;padding:9px 16px;border-radius:20px;background:#fffef0ec;color:#37452c;font-size:13px;white-space:nowrap;box-shadow:0 2px 10px #16392718}

/* Phone and tablet refinements. Desktop composition stays in home.css. */
@media (max-width:900px) {
  body.peplive-home { background-color:#071e60; -webkit-text-size-adjust:100%; }
  .hp-shell { padding-bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
  .hp-header {
    display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto;
    height:auto; min-height:120px; padding:16px 16px 18px; gap:14px 12px; align-content:start;
  }
  .hp-brand { grid-column:1; grid-row:1; max-width:none; min-width:0; gap:10px; }
  .hp-brand>span:last-child { min-width:0; }
  .hp-brand strong { font-size:19px; letter-spacing:0; }
  .hp-brand small { font-size:10px; letter-spacing:0; margin-top:4px; color:#b5caee; }
  .hp-logo { width:42px; height:44px; box-shadow:0 0 16px #267efe70,inset 0 0 8px #ffffff50; }
  .hp-header-actions { position:static; grid-column:2; grid-row:1; align-self:center; }
  .hp-header-actions .hp-icon-button { min-width:44px; height:44px; background:#123776c9; border-color:#78aaff50; }
  .hp-resources {
    grid-column:1/-1; grid-row:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%; margin:0; gap:8px;
  }
  .hp-resources .hp-resource { min-width:0; height:36px; padding:6px 8px; gap:7px; border-radius:11px; background:#0b2869c9; box-shadow:none; border-color:#5485d861; }
  .hp-resources .hp-resource strong { font-size:13px; font-variant-numeric:tabular-nums; }
  .hp-resources .hp-art { width:20px; height:20px; }
  .hp-layout,.hp-shell[data-page="farm"] .hp-layout { padding:0 16px 16px; }
  .hp-panel { border-radius:20px; border-color:#6499e969; background:linear-gradient(135deg,#0b2c72ee,#112568ed); box-shadow:inset 0 1px 0 #c7e5ff0a; }
  .hp-panel-head { gap:10px; margin-bottom:14px; }
  .hp-panel-head h2 { font-size:19px; line-height:1.3; letter-spacing:.2px; }
  .hp-panel-head .hp-link { min-height:36px; }
  .hp-primary { box-shadow:inset 0 1px 0 #ffffff40,0 3px 10px #06195640; }
  .hp-link { font-size:12px!important; }

  /* Two compact introduction cards leave the island as the main visual. */
  .hp-farm-page { gap:14px; }
  .hp-mobile-intro { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
  .hp-mobile-intro .hp-self,.hp-mobile-intro .hp-invite { height:88px; padding:8px; border-radius:17px; }
  .hp-mobile-intro .hp-self { gap:6px; text-align:left; }
  .hp-mobile-intro .hp-self>img { width:44px; height:66px; object-fit:contain; flex-shrink:0; }
  .hp-mobile-intro .hp-self strong { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .hp-mobile-intro .hp-self b { font-size:12px; margin:7px 0 0; }
  .hp-mobile-intro .hp-self .hp-online { font-size:10px; margin-top:4px; }
  .hp-mobile-intro .hp-self small:last-child { display:none; }
  .hp-mobile-intro .hp-invite { gap:4px; background:linear-gradient(120deg,#22257cdd,#242077e8); }
  .hp-mobile-intro .hp-invite>img { width:48px; height:64px; margin:0; object-fit:contain; }
  .hp-mobile-intro .hp-invite>div { min-width:0; }
  .hp-mobile-intro .hp-invite h2 { font-size:14px; white-space:nowrap; }
  .hp-mobile-intro .hp-invite p { display:none; }
  .hp-mobile-intro .hp-invite .hp-primary { min-height:36px; padding:6px 9px; margin-top:7px; font-size:11px; border-radius:11px; }
  .hp-maps { height:78px; gap:9px; padding:2px; margin:0; scroll-snap-type:x proximity; scrollbar-width:none; }
  .hp-maps::-webkit-scrollbar { display:none; }
  .hp-map { flex:0 0 156px; gap:6px; padding:7px; scroll-snap-align:start; background:#0c2a6ed9; border-color:#628feb60; }
  .hp-map img { width:56px; height:54px; object-fit:contain; flex-shrink:0; }
  .hp-map strong { font-size:12px; }
  .hp-map small { font-size:10px; margin-top:5px; }
  .hp-map.selected { border:1px solid #67efff; background:linear-gradient(120deg,#056ba8,#204bbc); box-shadow:inset 0 0 12px #45d9ff39,0 0 8px #33beff26; }
  .hp-map em { font-size:8px; box-shadow:none; }
  .hp-farm-stage { height:clamp(286px,80vw,420px); margin:-3px -16px -5px; }
  .hp-farm-stage #sceneWrap { height:100%; min-height:0; }
  .hp-farm-stage .camera-controls { top:10px; right:12px; padding:3px; border-radius:18px; background:#092762cf; border-color:#8ab8ff55; }
  .hp-farm-stage .camera-controls button { width:38px; height:38px; }
  .hp-farm-stage .camera-controls span { font-size:10px; }
  .hp-farm-actions { min-height:78px; gap:8px; }
  .hp-farm-action { padding:9px 3px; gap:6px; border-radius:17px; flex-direction:column; text-align:center; border-color:#c6eeff80; }
  .hp-farm-action>.hp-art { width:27px; height:27px; }
  .hp-farm-action strong { font-size:14px; line-height:1.3; white-space:nowrap; }
  .hp-farm-action small { display:none; }
  .hp-farm-action.plant { box-shadow:inset 0 0 10px #ffffff28,0 5px 15px #02be8a22; }
  .hp-farm-action.water { box-shadow:inset 0 0 10px #ffffff28,0 5px 15px #3989ff22; }
  .hp-farm-action.harvest { box-shadow:inset 0 0 10px #ffffff28,0 5px 15px #ffc44b22; }
  .hp-farm-action.visit { box-shadow:inset 0 0 10px #ffffff28,0 5px 15px #9057ff22; }
  .hp-farm-market { padding:16px; }
  .hp-farm-market .hp-quick-sale { max-width:none; gap:10px; padding:10px; }
  .hp-farm-market .hp-quick-sale strong { font-size:14px; }
  .hp-farm-market .hp-quick-sale p { font-size:11px; }
  .hp-farm-market .hp-quick-sale button { min-height:36px; font-size:11px; padding:7px 12px; }
  .hp-inventory-value { position:static; width:auto; flex-direction:row; justify-content:space-between; margin-top:12px; padding-top:10px; border:0; border-top:1px solid #83acff26; border-radius:0; background:none; font-size:11px; }
  .hp-inventory-value strong { font-size:14px; }
  .hp-tip { padding:14px; gap:10px; }
  .hp-tip p { font-size:12px; line-height:1.65; }

  /* Keep rewards, progress and the next action distinct on a narrow screen. */
  .hp-task-main { gap:14px; }
  .hp-task-hero { height:124px; padding:14px 2px; border-radius:16px; }
  .hp-task-hero>div { position:relative; z-index:1; max-width:66%; }
  .hp-task-hero h1 { display:flex; align-items:center; gap:9px; margin:10px 0 9px; font-size:27px; line-height:1.3; }
  .hp-task-hero h1 .hp-icon { width:25px; height:27px; color:#a7e5ff; }
  .hp-task-hero p { max-width:210px; font-size:12px; line-height:1.7; color:#c2d6f5; }
  .hp-task-hero>img { top:0; right:-22px; width:54%; height:138px; opacity:.9; mask-image:linear-gradient(90deg,transparent,#000 30%); }
  .hp-task-tabs { border-radius:17px; padding:4px; gap:4px; background:#092561e8; border-color:#6797df6b; }
  .hp-task-tabs button { min-height:62px; padding:8px 4px; gap:6px; border-radius:13px; font-size:15px; }
  .hp-task-tabs button b { display:flex; font-size:20px; }
  .hp-task-tabs button .hp-icon { width:21px; height:23px; }
  .hp-task-tabs small { font-size:10px; margin-top:5px; }
  .hp-task-tabs button.active { box-shadow:inset 0 1px 0 #ffffff50,0 2px 9px #09184955; }
  .hp-task-checkin,.hp-today,.hp-challenges { padding:16px; }
  .hp-task-checkin .hp-panel-head { margin-bottom:9px; }
  .hp-task-checkin .hp-primary { min-height:44px; font-size:12px; padding:8px 12px; border-radius:12px; }
  .hp-task-checkin>.hp-muted { font-size:11px; line-height:1.6; }
  .hp-task-checkin .hp-primary:disabled { opacity:1; color:#76efd1; border-color:#4ddbb14d; background:#16495280; box-shadow:none; }
  .hp-checkin-days { gap:5px; margin-top:14px; }
  .hp-checkin-days>div { min-width:0; gap:8px; padding:9px 1px; border-radius:11px; background:#10336e9c; }
  .hp-checkin-days b { display:flex; justify-content:center; align-items:center; height:25px; font-size:24px; }
  .hp-checkin-days .hp-art { width:24px; height:24px; }
  .hp-checkin-days small { font-size:10px; }
  .hp-checkin-days>div.done { background:#095b6599; box-shadow:inset 0 0 12px #17dcb52b; border-color:#39d6bf; }
  .hp-today .hp-panel-head { flex-wrap:wrap; gap:7px; }
  .hp-countdown { font-size:11px; font-variant-numeric:tabular-nums; }
  .hp-mission { grid-template-columns:40px minmax(0,1fr) 78px; grid-template-areas:"icon copy reward" "icon copy action"; gap:8px 10px; min-height:112px; padding:13px 12px; margin-top:10px; border-radius:16px; background:#12367299; }
  .hp-mission>.hp-item-icon { grid-area:icon; width:40px; height:44px; border-radius:12px; align-self:center; }
  .hp-mission-copy { grid-area:copy; min-width:0; }
  .hp-mission strong { font-size:14px; line-height:1.45; }
  .hp-mission p { font-size:11px; line-height:1.55; margin:3px 0 9px; }
  .hp-mission>.hp-reward { grid-area:reward; font-size:13px; align-self:center; justify-self:center; }
  .hp-mission>.hp-primary { grid-area:action; min-height:44px; min-width:78px; padding:8px 10px; font-size:12px; border-radius:11px; }
  .hp-mission>.hp-primary:disabled { opacity:1; background:#0b4d5975; color:#8ae5ce; border-color:#59d4b530; box-shadow:none; }
  .hp-progress-row { gap:9px; }
  .hp-progress-row small { font-size:11px; font-variant-numeric:tabular-nums; }
  .hp-progress { height:6px; background:#32528b; }
  .hp-challenges>div { gap:10px; }
  .hp-challenges button { padding:10px; min-height:104px; }
  .hp-challenges button>img { width:45px; height:58px; }
  .hp-challenges strong { font-size:13px; line-height:1.5; }
  .hp-challenges p { font-size:10px; line-height:1.6; }
  .hp-challenges small { font-size:10px; }
  .hp-challenges button>.hp-icon { display:none; }

  .hp-market-page,.hp-profile-page { gap:14px; }
  .hp-profile-page { grid-template-rows:none; grid-auto-rows:auto; }
  .hp-profile-person>div { min-width:0; }
  .hp-profile-person h2 { overflow-wrap:anywhere; }
  .hp-market-tabs button { min-height:44px; font-size:16px; }
  .hp-categories { overflow-x:auto; scrollbar-width:none; padding-bottom:3px; }
  .hp-categories button { flex:0 0 auto; min-height:40px; padding:8px 14px; font-size:12px; }
  .hp-categories::-webkit-scrollbar { display:none; }
  .hp-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .hp-product { padding:12px; }
  .hp-product-top .hp-item-icon { width:58px; height:60px; }
  .hp-product h3 { font-size:14px; }
  .hp-product-stock { gap:9px; }
  .hp-product-stock>span { font-size:11px; }
  .hp-product-stock .hp-primary { min-height:40px; }
  .hp-product-stock .hp-mobile-price { font-size:13px; }
  .hp-market-inventory .hp-inventory-grid { overflow-x:auto; flex-wrap:nowrap; }
  .hp-market-inventory .hp-inventory-grid button { flex:0 0 70px; }
  .hp-profile-settings>div { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .hp-profile-settings button { flex-direction:row; text-align:left; gap:10px; padding:12px; }
  .hp-profile-settings strong { font-size:12px; }
  .hp-profile-settings small { font-size:10px; line-height:1.5; }
  .hp-profile-logs .hp-audits p { font-size:12px; }

  /* Reserve safe-area space so Safari's controls never cover the final card. */
  .hp-bottom-nav {
    height:calc(66px + env(safe-area-inset-bottom,0px)); padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));
    gap:10px; border-radius:22px 22px 0 0; background:#081f5aed; border:1px solid #759eee50;
    box-shadow:0 -6px 24px #03133444; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  }
  .hp-bottom-nav button { min-height:52px; font-size:11px; gap:3px; border-radius:14px; }
  .hp-bottom-nav .hp-icon { width:24px; height:24px; }
  .hp-bottom-nav button.active { background:linear-gradient(135deg,#2476e74d,#6441d878); border-color:#7dadff66; box-shadow:inset 0 1px 0 #b8e1ff33; color:#fff; }
  .hp-bottom-nav button.active .hp-icon { filter:drop-shadow(0 0 4px #9fcfff70); }
  .hp-toast { bottom:calc(80px + env(safe-area-inset-bottom,0px)); max-width:calc(100vw - 32px); }
  .peplive-home .notification-center { padding:16px; border-radius:20px; }
  .peplive-home .notification-head>button { width:44px; height:44px; flex-shrink:0; }
  .peplive-home .notification-tools { font-size:12px; }
  .peplive-home .notification-tools button { min-height:44px; font-size:12px; }
  .peplive-home .notification-list { gap:10px; }
  .peplive-home .notification-item { padding:13px 12px; }
  .peplive-home .notification-item strong { font-size:13px; }
  .peplive-home .notification-item span { font-size:12px; line-height:1.6; }
  .peplive-home .notification-item time { font-size:10px; }
}
@media (max-width:360px) {
  .hp-header { padding-left:12px; padding-right:12px; gap:12px 8px; }
  .hp-brand { gap:8px; }
  .hp-brand strong { font-size:16px; }
  .hp-brand small { font-size:8px; }
  .hp-logo { width:37px; height:40px; }
  .hp-layout,.hp-shell[data-page="farm"] .hp-layout { padding-left:12px; padding-right:12px; }
  .hp-mobile-intro { gap:8px; }
  .hp-mobile-intro .hp-self,.hp-mobile-intro .hp-invite { padding:6px; gap:3px; }
  .hp-mobile-intro .hp-self>img { width:35px; }
  .hp-mobile-intro .hp-invite>img { width:35px; }
  .hp-mobile-intro .hp-invite h2 { font-size:13px; }
  .hp-farm-actions { gap:6px; }
  .hp-farm-action strong { font-size:12px; }
  .hp-task-hero h1 { font-size:24px; }
  .hp-task-hero p { font-size:11px; }
  .hp-task-tabs small { font-size:9px; }
  .hp-task-tabs button { gap:4px; font-size:14px; }
  .hp-task-tabs button .hp-icon { width:18px; }
  .hp-task-checkin,.hp-today,.hp-challenges { padding:12px; }
  .hp-mission { grid-template-columns:40px minmax(0,1fr) auto; grid-template-areas:"icon copy copy" ". reward action"; gap:8px; padding:11px 10px; }
  .hp-checkin-days small { font-size:9px; }
  .hp-challenges>div { grid-template-columns:1fr; }
}
@media (min-width:601px) and (max-width:900px) {
  .hp-header,.hp-layout { max-width:760px; margin:auto; }
  .hp-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .hp-farm-stage { height:420px; }
  .hp-bottom-nav { padding-left:max(12px,calc((100vw - 720px)/2)); padding-right:max(12px,calc((100vw - 720px)/2)); }
}

/* October reference: a framed portrait farm and a full-height landscape cockpit. */
body { --fm-safe-top:env(safe-area-inset-top,0px);--fm-safe-right:env(safe-area-inset-right,0px);--fm-safe-bottom:env(safe-area-inset-bottom,0px);--fm-safe-left:env(safe-area-inset-left,0px) }
body[data-farm-rotation="90"] {--fm-safe-top:env(safe-area-inset-right,0px);--fm-safe-right:env(safe-area-inset-bottom,0px);--fm-safe-bottom:env(safe-area-inset-left,0px);--fm-safe-left:env(safe-area-inset-top,0px)}
body[data-farm-rotation="-90"] {--fm-safe-top:env(safe-area-inset-left,0px);--fm-safe-right:env(safe-area-inset-top,0px);--fm-safe-bottom:env(safe-area-inset-right,0px);--fm-safe-left:env(safe-area-inset-bottom,0px)}
.fm-viewport {display:contents}
body.fm-rotated {overflow:hidden;overscroll-behavior:none}
.fm-rotated .fm-viewport {display:block;position:fixed;left:50%;top:50%;width:var(--fm-width);height:var(--fm-height);transform:translate(-50%,-50%) rotate(var(--fm-angle));overflow:hidden;background:#06236e url('../assets/homepage/sky.webp') center top/cover no-repeat}
.fm-rotated .fm-viewport>.hp-shell {width:100%;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.fm-rotated.fm-landscape .fm-viewport>.hp-shell {overflow:hidden}
/* Native dialogs enter the top layer; shared dialogs are mounted on body. */
.fm-rotated :is(#hpDialog,#avatarPicker,#mapPicker,#neighborPicker,#notificationCenter,#shareDialog) {position:fixed;inset:auto;left:50%;top:50%;margin:0;width:min(600px,calc(var(--fm-width) - 32px));max-width:calc(var(--fm-width) - 32px);max-height:calc(var(--fm-height) - 24px);transform:translate(-50%,-50%) rotate(var(--fm-angle));transform-origin:center}
.fm-wallet,.fm-header-mode,.fm-worlds,.fm-stage-ui,.fm-status,.fm-dock-tools,.fm-nav-rail,.fm-action-copy {display:none}
.fm-dock {display:contents}
.fm-auto {display:none}
.fm-mobile .fm-auto {display:flex;align-items:center;gap:8px;width:100%;min-height:38px;margin-bottom:8px;padding:5px 10px;border:1px solid #699cff99;border-radius:12px;background:linear-gradient(115deg,#0e3f89,#173885);color:#fff;text-align:left;cursor:pointer}
.fm-auto>.hp-icon {width:23px;height:23px;color:#8fbbff}
.fm-auto>span {display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.fm-auto strong {font-size:13px;white-space:nowrap}
.fm-auto small {font-size:10px;color:#c2d6ff;white-space:nowrap}
.fm-auto i {width:30px;height:17px;flex-shrink:0;border-radius:14px;background:#345585;padding:2px}
.fm-auto i::after {content:"";display:block;width:13px;height:13px;border-radius:50%;background:#d7e9ff;transition:transform .16s ease}
.fm-auto[aria-pressed="true"] {border-color:#26f5bd;background:linear-gradient(115deg,#08576f,#123c81)}
.fm-auto[aria-pressed="true"]>.hp-icon,.fm-auto[aria-pressed="true"] small {color:#36ffca}
.fm-auto[aria-pressed="true"] i {background:#00af86}
.fm-auto[aria-pressed="true"] i::after {transform:translateX(13px);background:#fff}
.fm-auto:disabled {cursor:default;opacity:.65}
.fm-map-picker {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fm-map-picker button {display:flex;align-items:center;gap:8px;min-width:0;min-height:65px;padding:8px;border:1px solid #679bde77;border-radius:13px;color:#fff;background:#103174;text-align:left;cursor:pointer}
.fm-map-picker button.selected {border-color:#75fff1;background:#1253ac}
.fm-map-picker button:disabled {opacity:.55;cursor:default}
.fm-map-picker img {width:40px;height:44px;object-fit:contain;flex-shrink:0}
.fm-map-picker span {min-width:0;flex:1}
.fm-map-picker strong {display:block;font-size:12px}
.fm-map-picker small {display:block;margin-top:5px;font-size:10px;color:#bedaff}
.fm-map-picker .hp-icon {display:none}
.fm-worlds .fm-all-maps>.hp-icon:first-child {width:25px;height:25px;display:block;flex-shrink:0;color:#9fcaff;margin:0 3px}
.fm-worlds button:disabled {opacity:.6;cursor:default}
.hp-farm-action>.fm-count {display:none}
.fm-count[hidden] {display:none!important}
.fm-count {display:inline-grid;place-items:center;min-width:19px;height:21px;padding:0 4px;border-radius:20px;background:#ff3c76;border:1px solid #ff9cba;color:white;font-size:13px;font-weight:800;line-height:1;box-shadow:0 2px 9px #ff29766b}
.fm-inventory {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fm-inventory button {border:1px solid #598be077;border-radius:14px;background:#123276;padding:14px 8px;color:#fff;display:grid;gap:7px;justify-items:center;cursor:pointer}
.fm-inventory .hp-art {width:45px;height:45px}
.fm-inventory small {color:#c0d6ff;font-size:12px}
.fm-inventory .hp-empty {grid-column:1/-1}
body.fm-mobile {background:#06236e url('../assets/homepage/sky.webp') center top/cover fixed no-repeat}
.fm-mobile::before {background:radial-gradient(ellipse at 75% 5%,#2444ca35,transparent 40%),linear-gradient(#00144788,transparent 32%,#244aa400);z-index:-1}
.fm-mobile .hp-shell {padding-bottom:calc(92px + var(--fm-safe-bottom));background-image:radial-gradient(circle at 12% 5%,#e5ffffb3 0 1px,transparent 1.6px),radial-gradient(circle at 68% 18%,#98caff 0 .7px,transparent 1.4px),radial-gradient(circle at 42% 65%,#bdbdff 0 .8px,transparent 1.5px);background-size:173px 151px,113px 191px,211px 127px}
.fm-mobile .hp-header {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 38px;gap:12px 8px;padding:max(12px,var(--fm-safe-top)) 14px 10px;min-height:0;height:auto;position:relative}
.fm-mobile .hp-brand {max-width:calc(100% - 30px);gap:8px;grid-column:1;grid-row:1}
.fm-mobile .hp-brand strong {font-size:clamp(16px,calc(var(--fm-vw, 1vw) * 4.7),21px);white-space:nowrap;letter-spacing:0}
.fm-mobile .hp-brand small {font-size:clamp(8px,calc(var(--fm-vw, 1vw) * 2.35),11px);white-space:nowrap}
.fm-mobile .hp-logo {width:36px;height:38px;border-radius:11px;gap:6px;box-shadow:0 0 15px #306bfe,inset 0 0 7px #c8feff}
.fm-mobile .hp-logo i {height:22px;width:5px}
.fm-mobile .hp-logo i:first-child {height:18px}
.fm-mobile .hp-header-actions {grid-row:1;grid-column:2;z-index:2}
.fm-mobile .hp-header-actions>[data-command="help"],.fm-mobile .hp-header-actions>.hp-avatar-button,.fm-mobile .hp-header-actions>.hp-logout {display:none}
.fm-mobile .hp-header-actions .hp-icon-button {min-width:38px;height:38px;border-radius:11px;background:linear-gradient(130deg,#064284bb,#152c9de8);box-shadow:inset 0 0 10px #609aff21}
.fm-mobile .hp-header-actions .hp-icon-button .hp-icon {width:25px;height:25px}
.fm-mobile .hp-header #hpResources {display:none}
.fm-mobile .fm-wallet {display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:minmax(108px,1.8fr) repeat(3,minmax(0,1fr));gap:6px;min-width:0}
.fm-wallet button {min-width:0;border:1px solid #598cee90;border-radius:12px;background:linear-gradient(120deg,#0c3d96bf,#122d8ce6);box-shadow:inset 0 1px 7px #689aff29;color:#fff;cursor:pointer}
.fm-owner {display:flex;align-items:center;padding:3px 5px;gap:5px;text-align:left}
.fm-owner img {width:27px;height:29px;object-fit:cover;border-radius:50%;background:radial-gradient(circle,#459cff,#36278f);border:1px solid #84b7ff}
.fm-owner>span {min-width:0;flex:1}
.fm-owner strong {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.5}
.fm-owner small {display:block;color:#00f2b5;font-size:9px}
.fm-owner>.hp-icon {width:10px;height:13px;color:#a4cdff}
.fm-balance {display:flex;justify-content:center;align-items:center;padding:3px;gap:3px;font-variant-numeric:tabular-nums}
.fm-balance .hp-art {width:19px;height:19px}
.fm-balance strong {font-size:clamp(10px,calc(var(--fm-vw, 1vw) * 2.8),13px);white-space:nowrap}
.fm-balance>.hp-icon {width:7px;height:12px;color:#afd9ff}
.fm-mobile .hp-layout,.fm-mobile .hp-shell[data-page="farm"] .hp-layout {display:block;padding:0 13px 12px;max-width:none;width:100%}
.fm-mobile .hp-farm-page {display:flex;flex-direction:column;gap:10px;min-height:0;height:auto}
.fm-mobile .hp-mobile-intro,.fm-mobile #hpMaps,.fm-mobile .hp-farm-right,.fm-mobile .hp-tip,.fm-mobile .hp-sidebar {display:none}
.fm-mobile .fm-worlds {display:grid;grid-template-columns:1.18fr 1fr 1fr;gap:6px;height:54px;min-width:0;margin:0 1px}
.fm-worlds button {min-width:0;padding:4px;display:flex;align-items:center;gap:3px;text-align:left;color:#fff;border:1px solid #689cf080;border-radius:13px;background:linear-gradient(125deg,#144796e6,#142b84e6);cursor:pointer}
.fm-worlds img {width:38%;height:43px;object-fit:contain;flex-shrink:0}
.fm-worlds span {min-width:0;flex:1}
.fm-worlds strong {display:block;font-size:clamp(9px,calc(var(--fm-vw, 1vw) * 2.7),13px);white-space:nowrap;letter-spacing:0;overflow:hidden;text-overflow:ellipsis}
.fm-worlds small {display:block;margin-top:4px;font-size:clamp(8px,calc(var(--fm-vw, 1vw) * 2.2),10px);color:#c8d9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fm-worlds .hp-icon {width:10px;height:14px;flex-shrink:0}
.fm-worlds button.selected {border-color:#a7ffff;background:linear-gradient(120deg,#13baf4d9,#134dffe8);box-shadow:inset 0 0 12px #55efffbd,0 0 7px #18ceffc2}
.fm-mobile .hp-farm-stage {height:clamp(326px,calc(var(--fm-height, 100dvh) - 468px - var(--fm-safe-top) - var(--fm-safe-bottom)),740px);min-height:0;margin:0 -1px;position:relative;overflow:visible;border:1px solid #a8eaff;border-radius:23px;background:linear-gradient(160deg,#086bef42,#487aff19 65%,#9ed5ff00);box-shadow:inset 0 2px 13px #96ddff5c,0 0 13px #488aff66}
.fm-mobile .hp-farm-stage #sceneWrap {position:absolute!important;inset:0!important;width:100%;height:100%;min-height:0;border-radius:23px;overflow:hidden;touch-action:none}
.fm-mobile .hp-farm-stage .camera-controls,.fm-mobile .three-character-name,.fm-mobile .hp-farm-stage .scene-status,.fm-mobile .hp-farm-stage .map-hint {display:none}
.fm-mobile .fm-stage-ui {display:block;position:absolute;inset:0;pointer-events:none;z-index:10}
.fm-stage-tools {position:absolute;right:8px;top:9px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:auto}
.fm-stage-tools button,.fm-header-mode button {color:#fff;border:1px solid #6c9ceeaa;background:linear-gradient(120deg,#08438bcc,#14318cdd);border-radius:13px;box-shadow:inset 0 0 12px #4c8bdf2e;cursor:pointer}
.fm-stage-tools .fm-orientation {width:62px;min-height:47px;padding:6px 2px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:10px}
.fm-orientation .hp-icon {width:25px;height:20px}
.fm-stage-tools .fm-orientation small {display:none}
.fm-zoom {width:45px;padding:4px;border:1px solid #6899ef80;border-radius:15px;background:linear-gradient(135deg,#084ca2e8,#102c7fe8)}
.fm-zoom button {border:0;border-radius:0;background:none;box-shadow:none;display:block;width:100%;min-height:37px;font-size:26px;line-height:1;padding:0}
.fm-zoom .fm-zoom-value {font-size:11px;min-height:32px;border-top:1px solid #86aaff44;border-bottom:1px solid #86aaff44}
.fm-rotate {width:45px;min-height:46px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px}
.fm-rotate .hp-icon {width:23px;height:21px}
.fm-mobile .fm-status {display:grid;grid-template-columns:1.04fr 1fr;gap:14px;z-index:12;margin:-22px 6px 0;position:relative}
.fm-status button {display:flex;align-items:center;gap:7px;min-width:0;min-height:48px;padding:7px 9px;text-align:left;border:1px solid #a0cfff;border-radius:17px;background:linear-gradient(120deg,#0f65bce8,#203999ed);box-shadow:inset 0 0 10px #71a3f62e;color:#fff;cursor:pointer}
.fm-status .hp-art {width:30px;height:30px}
.fm-status button>span:not(.hp-art) {min-width:0;flex:1}
.fm-status strong {display:flex;align-items:center;gap:3px;font-size:12px;white-space:nowrap}
.fm-status small {display:block;margin-top:4px;font-size:10px;color:#deedff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-status button>.hp-icon {width:12px;height:16px}
.fm-status .fm-count {height:17px;min-width:17px;font-size:11px}
.fm-mobile .fm-dock {display:block}
.fm-mobile .hp-farm-actions {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-height:0;height:85px;padding:0;margin:0}
.fm-mobile .hp-farm-action {position:relative;display:flex;min-height:0;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:7px 2px;border:1px solid #e6ffff;border-radius:20px;box-shadow:inset 0 0 12px #bcefff94,0 0 12px #448fff75}
.fm-mobile .hp-farm-action>span:not(.hp-art):not(.fm-action-copy) {display:none}
.fm-mobile .hp-farm-action>.fm-action-copy {display:block;text-align:center}
.fm-mobile .hp-farm-action>.hp-art {width:30px;height:30px}
.fm-mobile .hp-farm-action strong {font-size:16px;line-height:1.1}
.fm-mobile .hp-farm-action small {display:block;font-size:10px;margin-top:5px;white-space:nowrap;font-weight:400}
.fm-mobile .hp-farm-action>.fm-count {display:inline-grid;position:absolute;top:3px;right:5px}
.fm-mobile .hp-farm-action.plant {background:linear-gradient(135deg,#36ffc1,#00b783 64%,#039fbb)}
.fm-mobile .hp-farm-action.water {background:linear-gradient(135deg,#12dfff,#0871fe 58%,#1927e7)}
.fm-mobile .hp-farm-action.harvest {background:linear-gradient(135deg,#fff16a,#ffb320 58%,#ff8421)}
.fm-mobile .hp-farm-action.visit {background:linear-gradient(135deg,#da89ff,#8b32fa 58%,#4d22df)}
.fm-mobile .hp-bottom-nav {height:calc(76px + var(--fm-safe-bottom));padding:6px 16px calc(8px + var(--fm-safe-bottom));border-radius:27px 27px 0 0;border-color:#709efa8c;background:linear-gradient(110deg,#063977f5,#072578f5 50%,#091e67f5);box-shadow:inset 0 1px 8px #74a4ff20}
.fm-mobile .hp-bottom-nav button {font-size:13px;gap:4px;border-radius:17px;position:relative}
.fm-mobile .hp-bottom-nav .hp-icon {width:25px;height:25px}
.fm-mobile .hp-bottom-nav button.active {background:linear-gradient(130deg,#1b7aff,#4827f9);box-shadow:inset 0 0 11px #84a9ff,0 0 12px #6270ffa0;border-color:#8ab7ff}
.fm-unread {position:relative}
.fm-unread::after,.fm-has-tasks .hp-bottom-nav [data-view="tasks"]::after,.fm-has-tasks .fm-nav-rail [data-view="tasks"]::after {content:"";position:absolute;right:3px;top:1px;width:9px;height:9px;border-radius:50%;background:#ff4382;box-shadow:0 0 5px #f473bb}
.fm-has-tasks .hp-bottom-nav [data-view="tasks"]::after {right:calc(50% - 19px);top:1px}
.fm-mobile .hp-footer {display:none}
body.fm-landscape {overflow:hidden}
.fm-landscape .hp-shell {position:relative;height:var(--fm-height, 100dvh);min-height:0;padding:0;overflow:hidden}
.fm-landscape .hp-header {position:absolute;inset:0 0 auto;z-index:30;background:linear-gradient(#06216abd,transparent);height:52px;min-height:0;padding:7px max(10px,var(--fm-safe-right)) 5px max(10px,var(--fm-safe-left));display:flex;flex-wrap:nowrap;gap:10px;align-items:center;max-width:none}
.fm-landscape .hp-brand {flex:0 0 25%;max-width:none;gap:8px;min-width:0}
.fm-landscape .hp-brand strong {font-size:clamp(13px,calc(var(--fm-vw, 1vw) * 1.8),22px)}
.fm-landscape .hp-brand small {font-size:clamp(7px,calc(var(--fm-vw, 1vw) * .92),11px)}
.fm-landscape .hp-logo {width:33px;height:37px;flex-shrink:0}
.fm-landscape .fm-wallet {display:flex;gap:6px;flex:1;height:35px;min-width:0}
.fm-landscape .fm-balance {flex:1;gap:5px;padding:4px;order:0}
.fm-landscape .fm-balance strong {font-size:clamp(10px,calc(var(--fm-vw, 1vw) * 1.55),17px)}
.fm-landscape .fm-balance .hp-art {width:22px;height:22px}
.fm-landscape .fm-owner {order:1;flex:1.35;margin-left:4px}
.fm-landscape .fm-owner strong {font-size:9px}
.fm-landscape .fm-owner .hp-icon {display:none}
.fm-landscape .hp-header-actions {order:2;flex:0 0 auto}
.fm-landscape .fm-header-mode {display:block;order:3;flex:0 0 auto}
.fm-header-mode .fm-orientation {display:flex;align-items:center;gap:7px;padding:6px 8px;font-size:10px;min-height:36px;background:linear-gradient(130deg,#064da0,#4f2bf4)}
.fm-header-mode .fm-orientation small {display:block;color:#d0dfff;font-size:8px;margin-top:2px}
.fm-landscape .hp-layout,.fm-landscape .hp-shell[data-page="farm"] .hp-layout {padding:0;position:relative;height:var(--fm-height, 100dvh)}
.fm-landscape .hp-farm-page {position:relative;display:block;height:100%;margin:0}
.fm-landscape .fm-worlds {position:absolute;left:max(12px,var(--fm-safe-left));width:clamp(116px,calc(var(--fm-vw) * 17),160px);top:66px;height:auto;grid-template-columns:minmax(0,1fr);grid-auto-rows:43px;z-index:15;gap:7px}
.fm-landscape .fm-worlds button {border-radius:12px;padding:4px}
.fm-landscape .fm-worlds img {height:37px}
.fm-landscape .fm-worlds strong {font-size:clamp(9px,calc(var(--fm-vw, 1vw) * 1.2),14px)}
.fm-landscape .fm-worlds small {font-size:clamp(8px,calc(var(--fm-vw, 1vw) * 1),11px);margin-top:3px}
.fm-landscape .hp-farm-stage {position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;box-shadow:none;background:none;border-radius:0}
.fm-landscape .hp-farm-stage #sceneWrap {border-radius:0}
.fm-landscape .plot-context {left:50%;right:auto;bottom:max(12px,var(--fm-safe-bottom));width:clamp(180px,calc(var(--fm-vw) * 28),280px);transform:translateX(-50%);padding:10px 12px;border-radius:16px}
.fm-landscape .plot-context-close {top:0;right:0;width:40px;height:40px;background:transparent}
.fm-landscape .fm-stage-tools {display:none}
.fm-landscape .fm-dock {position:absolute;right:max(10px,var(--fm-safe-right));top:auto;bottom:max(12px,var(--fm-safe-bottom));width:clamp(148px,calc(var(--fm-vw) * 20.5),190px);height:min(286px,calc(var(--fm-height) - 90px));display:flex;flex-direction:column;gap:10px;z-index:20;padding:10px;border:1px solid #8ee9ff;border-radius:20px;background:linear-gradient(130deg,#0b78cbe0,#06368cea);box-shadow:inset 0 0 13px #58caff7d,0 0 14px #458dff99}
.fm-landscape .hp-farm-actions {height:auto;min-height:0;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}
.fm-landscape .hp-farm-action {border-radius:17px;gap:3px;padding:5px 1px}
.fm-landscape .hp-farm-action>.hp-art {width:clamp(23px,calc(var(--fm-vw, 1vw) * 4),43px);height:clamp(23px,calc(var(--fm-vw, 1vw) * 4),43px)}
.fm-landscape .hp-farm-action strong {font-size:clamp(13px,calc(var(--fm-vw, 1vw) * 1.9),21px)}
.fm-landscape .hp-farm-action small {font-size:clamp(8px,calc(var(--fm-vw, 1vw) * 1.1),12px);margin-top:3px}
.fm-landscape .fm-dock-tools {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);min-height:0;gap:5px;flex:0 0 48px}
.fm-landscape .fm-dock-tools button {min-height:0;font-size:8px;gap:3px;white-space:nowrap;line-height:1.2}
.fm-landscape .hp-farm-action>.hp-art {width:28px;height:28px;flex-shrink:0}
.fm-landscape .hp-farm-action strong {font-size:16px}
.fm-landscape .hp-farm-action small {font-size:9px}
.fm-landscape-zoom {display:none}
.fm-landscape .fm-landscape-zoom {display:flex;position:absolute;bottom:68px;left:8px;right:8px;border:1px solid #96ceff;border-radius:14px;background:#08266df5;box-shadow:0 4px 15px #001134aa;z-index:2;padding:4px}
.fm-landscape-zoom button {flex:1;min-height:40px;border:0;border-radius:10px;background:transparent;color:#fff;font-size:20px}
.fm-landscape-zoom .fm-zoom-value {font-size:13px}
.fm-dock-tools button {min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;background:none;border:0;color:#d9e8ff;font-size:9px;padding:0;cursor:pointer}
.fm-dock-tools .hp-icon {width:29px;height:29px;border:1px solid #81aaff60;border-radius:9px;padding:5px;box-sizing:content-box;background:#082b82aa}
.fm-landscape .fm-dock-tools .hp-icon {width:25px;height:25px;padding:4px}
.fm-landscape .fm-status {position:absolute;left:max(66px,calc(var(--fm-safe-left) + 56px));bottom:max(12px,var(--fm-safe-bottom));display:flex;margin:0;width:min(215px,24%);z-index:15}
.fm-landscape .fm-status .fm-storage-status {display:none}
.fm-landscape .fm-status .fm-harvest-status {width:100%;min-height:45px;padding:6px 10px}
.fm-landscape .fm-status strong {font-size:11px}
.fm-landscape .fm-status small {font-size:10px}
.fm-landscape .fm-nav-rail {position:absolute;left:max(12px,var(--fm-safe-left));bottom:max(12px,var(--fm-safe-bottom));display:grid;gap:7px;z-index:20}
.fm-nav-rail button {display:grid;justify-items:center;gap:3px;width:43px;min-height:45px;position:relative;padding:6px 3px;border:1px solid #82b4ef;border-radius:12px;background:linear-gradient(120deg,#194b9f,#18308ddd);color:white;font-size:10px;cursor:pointer}
.fm-nav-rail .hp-icon {width:21px;height:21px}
.fm-landscape .hp-bottom-nav {display:none}
.fm-landscape .hp-toast {bottom:15px;z-index:160;font-size:12px;max-width:calc(var(--fm-vw, 1vw) * 60)}
.fm-small-portrait .hp-header {padding-left:10px;padding-right:10px}
.fm-small-portrait .hp-brand {max-width:none}
.fm-small-portrait .fm-wallet {grid-template-columns:minmax(97px,1.6fr) repeat(3,minmax(0,1fr));gap:4px}
.fm-small-portrait .fm-wallet .fm-balance>.hp-icon {display:none}
.fm-small-portrait .fm-owner img {width:24px;height:26px}
.fm-small-portrait .fm-owner strong {font-size:8px}
.fm-small-portrait .hp-layout,.fm-small-portrait .hp-shell[data-page="farm"] .hp-layout {padding-left:10px;padding-right:10px}
.fm-small-portrait .fm-worlds .hp-icon {display:none}
.fm-small-portrait .fm-worlds strong {font-size:9px}
.fm-small-portrait .fm-worlds small {font-size:8px}
.fm-small-portrait .hp-farm-stage {height:326px}
.fm-small-portrait .fm-status .hp-art {width:24px;height:26px}
.fm-small-portrait .fm-status button {gap:4px;padding:6px}
.fm-small-portrait .fm-status strong {font-size:11px}
.fm-small-portrait .hp-farm-action small {font-size:9px}
.fm-short-landscape .hp-header {height:49px;padding-top:5px;gap:7px}
.fm-short-landscape .hp-layout,.fm-short-landscape .hp-shell[data-page="farm"] .hp-layout {height:var(--fm-height, 100dvh)}
.fm-short-landscape .fm-dock {bottom:max(9px,var(--fm-safe-bottom));padding:8px;gap:7px}
.fm-short-landscape .fm-dock-tools {flex-basis:36px;gap:3px}
.fm-short-landscape .fm-dock-tools .hp-icon {width:22px;height:22px;padding:4px}
.fm-short-landscape .hp-farm-action>.hp-art {width:23px;height:23px}
.fm-short-landscape .hp-farm-action small {font-size:8px;margin-top:2px}
.fm-compact-landscape .hp-brand {flex-basis:23%;gap:5px}
.fm-compact-landscape .hp-brand strong {font-size:10px}
.fm-compact-landscape .hp-brand small {font-size:6px}
.fm-compact-landscape .hp-logo {width:26px;height:30px}
.fm-short-landscape .fm-worlds {top:58px;grid-auto-rows:39px;gap:6px}
.fm-compact-landscape .fm-worlds img {width:34%}
.fm-compact-landscape .fm-worlds .hp-icon {display:none}

.fm-landscape .fm-auto {flex:0 0 36px;min-height:36px;margin:0;padding:4px 6px;gap:5px}
.fm-landscape .fm-auto>span {display:block}
.fm-landscape .fm-auto strong {font-size:11px}
.fm-landscape .fm-auto small {display:block;font-size:8px;margin-top:2px}
.fm-landscape .fm-auto>.hp-icon {width:19px;height:19px}
.fm-landscape .fm-auto i {width:28px}
.fm-landscape .fm-auto[aria-pressed="true"] i::after {transform:translateX(11px)}

/* Visiting controls live outside the playable canvas. */
#visitDetailsBtn {display:none}
.visit-world-details {display:contents}
.fm-mobile #visitWorldBar {position:static;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin:0;padding:7px 9px;border-radius:14px;min-height:48px;z-index:15}
.fm-mobile #visitWorldBar.hidden {display:none}
.fm-mobile .visit-world-owner {order:0;min-width:0}
.fm-mobile .visit-world-owner small {font-size:9px}
.fm-mobile .visit-world-owner strong {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.4}
.fm-mobile .visit-world-owner>span {display:none}
.fm-mobile #visitWorldBar button {min-height:34px;padding:5px 8px;font-size:11px}
.fm-mobile #returnHomeBtn {order:1;font-size:0!important}
.fm-mobile #returnHomeBtn::after {content:'← 返回';font-size:11px}
.fm-mobile #visitDetailsBtn {display:block;order:2}
.fm-mobile .visit-world-details {display:none}
.fm-mobile #visitWorldBar.expanded .visit-world-details {display:grid;grid-column:1/-1;order:3;gap:7px;padding-top:5px;border-top:1px solid #689cff40}
.fm-mobile .visit-world-online {min-width:0;grid-column:auto;grid-row:auto}
.fm-mobile .visit-world-online small {font-size:10px}
.fm-mobile #worldRoster {display:flex;gap:5px;flex-wrap:wrap}
.fm-mobile #visitWorldBar .social-actions {display:flex}
.fm-mobile #visitWorldBar .social-action {min-width:0;flex:1;font-size:10px;padding:6px 3px}
.fm-landscape.fm-visiting .fm-worlds {display:none}
.fm-landscape #visitWorldBar {position:absolute;top:66px;left:max(12px,var(--fm-safe-left));width:clamp(116px,calc(var(--fm-vw) * 17),160px);grid-template-columns:1fr 1fr;max-height:calc(var(--fm-height) - 205px);overflow:auto;scrollbar-width:thin;scrollbar-color:#649ce666 transparent}
.fm-landscape .visit-world-owner {grid-column:1/-1}
.fm-landscape #visitWorldBar .social-actions {flex-direction:column}
.fm-short-landscape #visitWorldBar {top:58px}

/* Portrait: one compact console outside the playable canvas. */
.fm-utility,.fm-plot-slot,.fm-feedback,.fm-camera-toggle {display:none}
.fm-portrait .hp-header {grid-template-rows:40px 36px;gap:9px 8px;padding-top:max(10px,var(--fm-safe-top));padding-bottom:9px}
.fm-portrait .hp-farm-page {gap:9px}
.fm-portrait .fm-worlds {height:50px}
.fm-portrait .hp-farm-stage {height:clamp(286px,calc(var(--fm-height,100dvh) - 395px - var(--fm-safe-top) - var(--fm-safe-bottom)),740px)}
.fm-portrait .fm-stage-tools {display:grid;grid-template-columns:44px 44px;gap:6px;right:8px;top:8px;align-items:start}
.fm-portrait .fm-stage-tools .fm-orientation,.fm-portrait .fm-camera-toggle {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;width:44px;padding:5px 0;font-size:9px;border-radius:13px;background:#103984dc}
.fm-portrait .fm-stage-tools .fm-orientation>span {font-size:0}
.fm-portrait .fm-stage-tools .fm-orientation>span::before {content:'横屏';font-size:9px}
.fm-portrait .fm-camera-toggle .hp-icon,.fm-portrait .fm-stage-tools .fm-orientation .hp-icon {width:21px;height:19px}
.fm-portrait .fm-stage-tools .fm-zoom,.fm-portrait .fm-stage-tools .fm-rotate {display:none}
.fm-portrait .fm-tools-open .fm-zoom {display:flex;grid-column:1/-1;width:100%;padding:2px;flex-wrap:wrap;border-radius:13px}
.fm-portrait .fm-tools-open .fm-zoom button {width:50%;min-height:44px}
.fm-portrait .fm-tools-open .fm-zoom .fm-zoom-value {width:100%;order:-1;min-height:34px;border:0;border-bottom:1px solid #86aaff44}
.fm-portrait .fm-tools-open .fm-rotate {display:flex;grid-column:1/-1;width:100%;min-height:44px;flex-direction:row;gap:7px}
.fm-portrait .fm-camera-toggle[aria-expanded="true"] {background:#2753c2;border-color:#8ddbff}
.fm-portrait .three-world-load-notice {max-width:calc(100% - 126px)}
.fm-portrait .fm-dock {display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:7px 8px 5px;border:1px solid #669bea99;border-radius:19px;background:linear-gradient(125deg,#0b326fea,#112864f5);box-shadow:0 8px 22px #00144735}
.fm-portrait .fm-utility {display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:center;gap:7px;min-height:44px}
.fm-portrait .fm-status {display:grid;grid-template-columns:1.12fr 1fr;position:static;gap:5px;margin:0;z-index:auto}
.fm-portrait .fm-status button {min-height:44px;gap:4px;padding:3px;border:0;border-radius:9px;background:transparent;box-shadow:none}
.fm-portrait .fm-status .hp-art {width:20px;height:23px;flex-shrink:0}
.fm-portrait .fm-status strong {font-size:12px;line-height:1.5;white-space:nowrap}
.fm-portrait .fm-status small {font-size:10px;margin-top:1px;color:#b9d1f4}
.fm-portrait .fm-status button>.hp-icon,.fm-portrait .fm-harvest-status small {display:none}
.fm-portrait .fm-status .fm-count {min-width:14px;height:15px;padding:0 3px;font-size:9px}
.fm-portrait .fm-auto {min-height:44px;height:44px;min-width:0;margin:0;padding:5px;gap:4px;border-radius:10px;background:#214c9766;border-color:#7baafa38}
.fm-portrait .fm-auto>.hp-icon {display:none}
.fm-portrait .fm-auto strong {font-size:11px}
.fm-portrait .fm-auto small {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fm-portrait .fm-auto i {width:25px;height:16px;padding:2px}
.fm-portrait .fm-auto i::after {width:12px;height:12px}
.fm-portrait .fm-auto[aria-pressed="true"] i::after {transform:translateX(9px)}
.fm-portrait .hp-farm-actions {grid-area:auto;height:56px;gap:6px}
.fm-portrait .hp-farm-action {min-height:44px;gap:4px;padding:6px 2px;border-radius:13px;border-color:#c6e4ff80;box-shadow:inset 0 1px 6px #c8eaff44;flex-direction:row}
.fm-portrait .hp-farm-action>.hp-art {width:23px;height:25px;flex-shrink:0}
.fm-portrait .hp-farm-action strong {font-size:13px}
.fm-portrait .hp-farm-action small {display:none}
.fm-portrait .hp-farm-action>.fm-count {top:-3px;right:0;min-width:15px;height:17px;font-size:10px}
.fm-portrait .hp-farm-action.plant {background:linear-gradient(135deg,#13b786,#07805e)}
.fm-portrait .hp-farm-action.water {background:linear-gradient(135deg,#148ade,#2152be)}
.fm-portrait .hp-farm-action.harvest {background:linear-gradient(135deg,#efa939,#d07719)}
.fm-portrait .hp-farm-action.visit {background:linear-gradient(135deg,#a351e5,#6534bd)}
.fm-portrait .fm-plot-selected .hp-farm-actions {display:none}
.fm-portrait .fm-plot-selected .fm-plot-slot {display:block}
.fm-portrait .fm-plot-slot .plot-context {position:static;inset:auto;transform:none;width:100%;min-height:56px;display:grid;grid-template-columns:minmax(0,1fr) 86px 44px;grid-template-rows:22px 20px;align-content:center;align-items:center;gap:0 6px;margin:0;padding:5px 0 5px 7px;border:1px solid #7aaeff66;border-radius:12px;background:#1a408355;box-shadow:none;backdrop-filter:none}
.fm-portrait .fm-plot-slot .plot-context.hidden {display:none}
.fm-portrait #plotContextEyebrow {grid-column:1;grid-row:1;align-self:center;font-size:9px;letter-spacing:0;line-height:1.2}
.fm-portrait #plotContextTitle {grid-column:1;grid-row:1;padding:0 0 0 46px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-portrait #plotContextState {grid-column:1;grid-row:2;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-portrait #plotContextAction {grid-column:2;grid-row:1/3;min-height:44px;max-height:48px;margin:0;padding:6px;font-size:11px;line-height:1.3;border:1px solid #8abaff66;background:linear-gradient(135deg,#237ccc,#5554d6)}
.fm-portrait #plotContextClose {position:static;grid-column:3;grid-row:1/3;width:44px;height:44px;border:0;border-radius:9px;background:transparent;color:#c4daff;font-size:23px}
.fm-portrait .fm-feedback {display:block;height:17px;min-width:0;text-align:center}
.fm-portrait #hpToast {position:static;inset:auto;transform:none;width:auto;max-width:100%;height:17px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#c4ddff;font-size:10px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.fm-portrait .hp-bottom-nav {height:calc(64px + var(--fm-safe-bottom));padding-top:4px;padding-bottom:calc(5px + var(--fm-safe-bottom));border-radius:22px 22px 0 0}
.fm-portrait .hp-bottom-nav button {font-size:11px;gap:2px;border-radius:13px}
.fm-portrait .hp-bottom-nav .hp-icon {width:23px;height:23px}
.fm-portrait .hp-shell {padding-bottom:calc(78px + var(--fm-safe-bottom))}
.fm-small-portrait .fm-utility {grid-template-columns:minmax(0,1fr) 80px;gap:3px}
.fm-small-portrait .fm-status .hp-art {width:17px;height:20px}
.fm-small-portrait .fm-status strong {font-size:11px}
.fm-small-portrait .hp-farm-action {gap:2px}
.fm-small-portrait .hp-farm-action strong {font-size:12px}
.fm-small-portrait .hp-farm-action>.hp-art {width:20px;height:22px}
.fm-small-portrait .fm-plot-slot .plot-context {grid-template-columns:minmax(0,1fr) 74px 44px;gap:0 3px}

/* Map browsing and ownership now share the store entrance. */
.fm-mobile .fm-store-entry {grid-template-columns:minmax(0,1fr);height:44px;grid-auto-rows:auto}
.fm-store-entry button {padding:6px 10px;gap:9px;min-height:44px;background:linear-gradient(110deg,#124184ce,#182d78e6)}
.fm-store-entry button>.hp-icon:first-child {width:25px;height:25px;display:block;color:#99d8ff}
.fm-store-entry strong {font-size:13px}
.fm-store-entry small {font-size:10px;margin-top:2px}
.fm-store-entry .fm-current-map {max-width:43%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c3d7f7;font-size:10px;font-style:normal}
.fm-landscape .fm-store-entry .fm-current-map {display:none}
.fm-landscape .fm-store-entry button {padding:5px 7px;gap:6px}
.fm-landscape .fm-store-entry strong {font-size:12px}
.fm-landscape .fm-store-entry small {font-size:9px}
.fm-small-portrait .fm-store-entry button>.hp-icon:first-child {display:block;width:22px;height:22px}
.fm-small-portrait .fm-store-entry strong {font-size:12px}
.fm-small-portrait .fm-store-entry small {font-size:9px}
