html.ui-portal[data-layout="adventure"]:has(.app:not(.app-solo)){--layout-purple:#6a34b0;--layout-blue:#2c64b8;--layout-purple-ink:var(--layout-purple);--bg:#eef2f6;--paper:#ffffff;--paper-2:#f4f7fb;--hair:#dfe5ec;--line:#c3d2e4;--ink:#333333;--muted:#5c6875;--link:var(--layout-blue);--blue:var(--layout-blue);--layout-active:var(--layout-purple);--layout-on-active:#ffffff;--layout-tint:#f1eafa;--layout-action-tint:#eef5ff;--layout-scene:#f1f5f8;--layout-grass:#e4ebe4;--layout-gold:#8a671f;--layout-gold-bg:#fffbe8;--layout-hp:#c85d52;--layout-mp:var(--layout-blue);--layout-xp:#bd902f}
html.ui-portal[data-layout="adventure"][data-scheme="dark"]:has(.app:not(.app-solo)){--layout-purple-ink:#d1b5f4;--bg:#101923;--paper:#182432;--paper-2:#1e2d3e;--hair:#2e4055;--line:#41566f;--ink:#e1e7ef;--muted:#abb9c9;--link:#9fc9ff;--blue:#8dbbfa;--live:#9ed6a7;--live-bg:#1c332c;--bad:#ffaaa0;--bad-bg:#412927;--warn:#e6cb88;--warn-bg:#3b341e;--layout-tint:#302f4c;--layout-action-tint:#263d58;--layout-scene:#20303d;--layout-grass:#34453a;--layout-gold:#edc16a;--layout-gold-bg:#3b341e;--layout-hp:#ed8276;--layout-mp:#85b7f0;--layout-xp:#edc078}
@media (prefers-color-scheme:dark){
  html.ui-portal[data-layout="adventure"][data-scheme="auto"]:has(.app:not(.app-solo)){--layout-purple-ink:#d1b5f4;--bg:#101923;--paper:#182432;--paper-2:#1e2d3e;--hair:#2e4055;--line:#41566f;--ink:#e1e7ef;--muted:#abb9c9;--link:#9fc9ff;--blue:#8dbbfa;--live:#9ed6a7;--live-bg:#1c332c;--bad:#ffaaa0;--bad-bg:#412927;--warn:#e6cb88;--warn-bg:#3b341e;--layout-tint:#302f4c;--layout-action-tint:#263d58;--layout-scene:#20303d;--layout-grass:#34453a;--layout-gold:#edc16a;--layout-gold-bg:#3b341e;--layout-hp:#ed8276;--layout-mp:#85b7f0;--layout-xp:#edc078}
  html.ui-portal[data-layout="adventure"][data-scheme="auto"] .layout-place-art{opacity:.8}
}
html.ui-portal[data-layout="adventure"] body:has(.app:not(.app-solo)){--layout-pattern-wash:rgba(238,242,246,.4);background-color:var(--bg);background-image:linear-gradient(var(--layout-pattern-wash),var(--layout-pattern-wash)),url('/img/layout/time-money.svg');background-size:auto,320px 256px;color:var(--ink)}
html.ui-portal[data-layout="adventure"][data-scheme="dark"] body:has(.app:not(.app-solo)){--layout-pattern-wash:rgba(16,25,35,.95)}
@media (prefers-color-scheme:dark){
  html.ui-portal[data-layout="adventure"][data-scheme="auto"] body:has(.app:not(.app-solo)){--layout-pattern-wash:rgba(16,25,35,.95)}
}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo){--layout-width:1400px;--layout-gap:12px;--layout-nav:72px;--layout-chat:290px;--layout-radius:0;font-size:13px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) ::selection{background:var(--layout-tint);color:var(--link)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) :focus-visible{outline:2px solid var(--blue);outline-offset:3px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar{display:grid;width:calc(min(100%,var(--layout-width)) - 24px);margin:12px auto;padding:10px 16px;min-height:76px;grid-template-columns:110px minmax(130px,180px) minmax(240px,340px) minmax(max-content,1fr) auto;grid-template-areas:"brand identity gauges wallet tools";gap:4px 16px;border:1px solid var(--line);border-radius:var(--layout-radius);background:var(--paper);box-shadow:0 1px 0 var(--hair);align-items:center}
html.ui-portal[data-layout="adventure"] .topbar > .brand{grid-area:brand;min-height:44px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar .esoruh-mark{width:108px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar .brand-tx > i{display:none}
html.ui-portal[data-layout="adventure"] .layout-shortcuts{grid-area:shortcuts;display:flex;justify-content:flex-end;gap:5px;align-items:center;min-width:0;min-height:32px;width:100%}
html.ui-portal[data-layout="adventure"] .layout-shortcuts a{display:flex;align-items:center;gap:5px;min-height:28px;padding:4px 8px;color:var(--ink);border:1px solid var(--line);border-radius:3px;background:linear-gradient(var(--paper),var(--paper-2));box-shadow:0 1px 0 var(--hair);font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap}
html.ui-portal[data-layout="adventure"] .layout-shortcuts .spr{display:block;width:16px;height:16px}
html.ui-portal[data-layout="adventure"] .layout-shortcuts a:hover,
html.ui-portal[data-layout="adventure"] .layout-shortcuts a[aria-current="page"]{background:var(--layout-tint);color:var(--layout-purple-ink)}
html.ui-portal[data-layout="adventure"] .layout-tools{grid-area:tools;display:flex;justify-content:flex-end;gap:4px;align-items:center}
html.ui-portal[data-layout="adventure"] .layout-tool{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid transparent;border-radius:3px;background:none;box-shadow:none;color:var(--muted);text-decoration:none}
html.ui-portal[data-layout="adventure"] .layout-tool > .spr{display:block;width:23px;height:23px}
html.ui-portal[data-layout="adventure"] .layout-tool .badge{position:absolute;top:0;right:0;background:var(--bad);color:var(--paper)}
html.ui-portal[data-layout="adventure"] .layout-tool:hover,
html.ui-portal[data-layout="adventure"] .layout-tool[aria-current="page"]{background:var(--layout-tint);color:var(--layout-purple-ink)}
html.ui-portal[data-layout="adventure"] .layout-identity{grid-area:identity;display:flex;align-items:center;gap:10px;min-width:0;color:var(--ink);text-decoration:none}
html.ui-portal[data-layout="adventure"] .layout-identity > .la{flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:3px;background:var(--paper-2);box-shadow:none}
html.ui-portal[data-layout="adventure"] .layout-identity > span{min-width:0}
html.ui-portal[data-layout="adventure"] .layout-identity b{display:block;font-size:15px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
html.ui-portal[data-layout="adventure"] .layout-identity small{display:block;font-size:11px;color:var(--muted);white-space:normal}
html.ui-portal[data-layout="adventure"] .layout-identity .tag{display:inline-block;margin-top:3px;padding:1px 4px;border-color:var(--line);background:var(--layout-gold-bg);color:var(--layout-gold);font-size:11px;line-height:1.4}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar .hero-mini{grid-area:gauges;display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0;padding-left:16px;border-left:1px solid var(--hair)}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .stat-line{display:grid;grid-template-columns:max-content minmax(50px,1fr) auto;align-items:center;gap:8px;line-height:1.2;font-size:11px}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .stat-line > span:first-child{display:contents;color:var(--muted);white-space:nowrap}
html.ui-portal[data-layout="adventure"] .layout-stat-name{grid-column:1;grid-row:1;min-width:3em}
html.ui-portal[data-layout="adventure"] .layout-stat-value{grid-column:3;grid-row:1;min-width:80px;text-align:right;color:var(--ink)}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .stat-line b{color:var(--ink);font-weight:700}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .stat-line.solo{display:none}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .bar{grid-column:2;grid-row:1;position:relative;height:9px;margin:0;border:1px solid var(--hair);border-radius:0;background:var(--paper-2);overflow:hidden;box-shadow:none}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .bar > *{box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .hp{background:var(--layout-hp)}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .mp{background:var(--layout-mp)}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini .xp{background:var(--layout-xp)}
html.ui-portal[data-layout="adventure"] .topbar .hero-mini{font-variant-numeric:tabular-nums}
html.ui-portal[data-layout="adventure"] .topbar .top-actions{grid-area:wallet;flex-wrap:nowrap;justify-content:flex-end;justify-self:end;gap:4px;max-width:none}
html.ui-portal[data-layout="adventure"] .topbar .chip,
html.ui-portal[data-layout="adventure"] .topbar .chip:visited{min-height:36px;padding:0 8px;border:1px solid transparent;border-radius:3px;background:none;color:var(--ink);box-shadow:none;transform:none}
html.ui-portal[data-layout="adventure"] .topbar .chip b{font-size:14px;color:inherit}
html.ui-portal[data-layout="adventure"] .topbar .chip > .spr{width:22px;height:22px}
html.ui-portal[data-layout="adventure"] .topbar .chip[href="/market"]{color:var(--layout-gold)}
html.ui-portal[data-layout="adventure"] .topbar .chip-buy,
html.ui-portal[data-layout="adventure"] .topbar .chip-buy:visited{background:none;color:var(--layout-purple-ink)}
html.ui-portal[data-layout="adventure"] .topbar .chip-buy > b:last-child{margin-left:3px;font-size:16px;font-weight:500}
html.ui-portal[data-layout="adventure"] .topbar .chip:hover{background:var(--paper-2);border-color:var(--line);color:var(--link)}
html.ui-portal[data-layout="adventure"] .topbar .chip-live,
html.ui-portal[data-layout="adventure"] .topbar .chip-live:visited{padding-right:0;border-color:transparent;background:none;box-shadow:none;color:var(--muted)}
html.ui-portal[data-layout="adventure"] .topbar .chip-live b{font-size:11px}
html.ui-portal[data-layout="adventure"] .topbar .chip-notice{width:36px;min-width:36px;height:36px;padding:0;background:none;border-color:transparent;box-shadow:none}
html.ui-portal[data-layout="adventure"] .topbar .chip-notice[aria-expanded="true"]{background:var(--layout-tint);border-color:var(--blue)}
html.ui-portal[data-layout="adventure"] .topbar .chip-notice b{background:var(--bad);color:var(--paper);box-shadow:0 0 0 2px var(--paper);font-size:11px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main{width:min(100%,var(--layout-width));margin:0 auto;padding:0 12px 24px;grid-template-columns:var(--layout-nav) minmax(0,1fr) max-content var(--layout-chat);grid-template-rows:auto 1fr;grid-template-areas:"nav sub shortcuts side" "nav page page side";gap:var(--layout-gap);align-items:start}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main > .page{min-width:0;columns:1}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main > .page .self-top,
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main > .page .self-more{grid-template-columns:minmax(0,1fr)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .footer{width:min(100%,var(--layout-width));margin:0 auto;padding:16px 12px}
html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff) > .profile-grid,
html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff) > .stat-line,
html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff) > .kv{display:none}
html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff):not(:has(.being-stage,.side-tier)){display:none}
html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff){padding:10px}
html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff) > .being-stage{margin:0}
html.ui-portal[data-layout="adventure"] .main > .rail,
html.ui-portal[data-layout="adventure"] .main > .rail-me{display:none}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel{border:1px solid var(--line);border-radius:var(--layout-radius);box-shadow:0 1px 0 var(--hair)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel:not(.scene){background:var(--paper)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-h{min-height:36px;padding:8px 12px;background:linear-gradient(var(--paper),var(--paper-2));border-bottom:1px solid var(--hair);box-shadow:none;color:var(--link)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-h > span{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:700}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-h > span > .spr{display:inline-block;width:20px;height:20px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-h > a{font-size:11px;font-weight:500;color:var(--link)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-b{padding:12px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-h > span::before{display:none}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .page > .panel{margin-bottom:12px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .world:not(.hunt-page) > .scene{min-height:160px;background:var(--layout-scene);border-color:var(--line);box-shadow:0 1px 0 var(--hair)}
html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-copy{left:24px;top:24px;max-width:calc(100% - 280px);padding:0;background:none;border:0;box-shadow:none}
html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-copy strong{color:var(--ink);font-size:22px;line-height:1.4;letter-spacing:-.02em;text-shadow:none}
html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-copy div{color:var(--muted);line-height:1.7}
html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-town{right:24px;bottom:12px;opacity:1}
html.ui-portal[data-layout="adventure"] .layout-place-art{display:block;width:240px;height:120px;max-width:100%;object-fit:contain}
html.ui-portal[data-layout="adventure"][data-scheme="dark"] .layout-place-art{opacity:.8}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .home-now:not(.growth){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 12px 12px;overflow:hidden}
html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .panel-h{grid-column:1 / -1;margin:0 -12px 4px}
html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .hn-go{display:contents}
html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .hn-go .act{width:100%;min-height:76px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:12px;font-size:14px;font-weight:700;border-radius:3px}
html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .hn-go .act i{font-size:12px;font-weight:500}
html.ui-portal[data-layout="adventure"] .home-now .hn-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}
html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .hn-grid{display:contents}
html.ui-portal[data-layout="adventure"] .home-now:not(:has(.hn-go)) > .hn-grid{grid-column:1 / -1}
html.ui-portal[data-layout="adventure"] .home-now > .hn-new{grid-column:1 / -1;margin:4px -12px -12px;padding:12px;border-top:1px solid var(--hair);background:var(--paper-2)}
html.ui-portal[data-layout="adventure"] .home-now.growth > .hn-new{margin:0}
html.ui-portal[data-layout="adventure"] .home-now .hn,
html.ui-portal[data-layout="adventure"] .home-now .hn:visited{min-height:76px;padding:10px 12px;gap:10px;background:linear-gradient(var(--paper),var(--paper-2));border:1px solid var(--line);border-radius:3px;box-shadow:0 1px 0 var(--hair)}
html.ui-portal[data-layout="adventure"] .home-now .hn b{font-size:12px;color:var(--link)}
html.ui-portal[data-layout="adventure"] .home-now .hn i{font-size:13px;line-height:1.5;color:var(--ink);font-weight:600}
html.ui-portal[data-layout="adventure"] .home-now .hn.warn{background:var(--bad-bg)}
html.ui-portal[data-layout="adventure"] .home-now .hn.warn i{color:var(--bad)}
html.ui-portal[data-layout="adventure"] .home-now .hn.on{background:var(--warn-bg)}
html.ui-portal[data-layout="adventure"] .home-now .hn.on i{color:var(--warn)}
html.ui-portal[data-layout="adventure"] .home-now .hn > .spr,
html.ui-portal[data-layout="adventure"] .door > .spr{width:28px;height:28px;flex-shrink:0;stroke-width:1.6}
html.ui-portal[data-layout="adventure"] .door-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html.ui-portal[data-layout="adventure"] .door,
html.ui-portal[data-layout="adventure"] .door:visited{min-height:72px;grid-template-columns:28px minmax(0,1fr);gap:4px 12px;padding:12px;border-color:var(--line);border-radius:3px;background:linear-gradient(var(--paper),var(--paper-2));box-shadow:0 1px 0 var(--hair)}
html.ui-portal[data-layout="adventure"] .door i{font-size:12px;line-height:1.5;color:var(--muted)}
html.ui-portal[data-layout="adventure"] .door:hover,
html.ui-portal[data-layout="adventure"] .home-now .hn:hover{background:var(--paper-2);border-color:var(--blue)}
html.ui-portal[data-layout="adventure"] .door.on{background:var(--layout-tint);border-color:var(--layout-purple-ink);color:var(--layout-purple-ink);box-shadow:none}
html.ui-portal[data-layout="adventure"] .door-h{margin-top:16px;background:var(--paper-2);border-color:var(--hair);color:var(--link)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .todo.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px;gap:0 16px}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .todo.cards > a{padding:12px 0;border:0;border-bottom:1px solid var(--hair);border-radius:0;background:none;box-shadow:none}
html.ui-portal[data-layout="adventure"] .todo.cards .tx b{font-size:13px;color:var(--ink)}
html.ui-portal[data-layout="adventure"] .todo.cards .tx > span{color:var(--muted);line-height:1.6}
html.ui-portal[data-layout="adventure"] .side > .chat .chat-head,
html.ui-portal[data-layout="adventure"] .lchat-h{min-height:40px;background:linear-gradient(var(--paper),var(--paper-2));border-color:var(--hair);box-shadow:none;color:var(--link)}
html.ui-portal[data-layout="adventure"] .side > .lchat:not(.big):not(.open){border-color:var(--line);border-radius:var(--layout-radius);box-shadow:0 1px 0 var(--hair);overflow:hidden}
html.ui-portal[data-layout="adventure"] .side > .chat{border-color:var(--hair);border-radius:var(--layout-radius);background:var(--paper)}
html.ui-portal[data-layout="adventure"] .lchat-h .lchat-title{font-size:14px}
html.ui-portal[data-layout="adventure"] .side > .chat .chat-head{padding:8px 12px}
html.ui-portal[data-layout="adventure"] .side > .chat .chat-more{background:none;border-top:1px solid var(--hair);padding:10px 16px;color:var(--link)}
html.ui-portal[data-layout="adventure"] .layout-icon-fill{fill:var(--layout-tint)}
html.ui-portal[data-layout="adventure"] .side > .chat .chat-line{padding-top:10px;padding-bottom:10px;line-height:1.5}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) :is(.act-go,.act-auto:not(.on)):not([disabled]):not([aria-disabled="true"]),
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) :is(.act-go,.act-auto:not(.on)):not([disabled]):not([aria-disabled="true"]):visited{background:linear-gradient(var(--layout-blue),#22549c);border:1px solid #214b88;border-radius:3px;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 1px var(--hair);text-shadow:0 -1px 0 rgba(0,0,0,.2)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) :is(.act-go,.act-auto:not(.on)):not([disabled]):not([aria-disabled="true"]):hover{background:linear-gradient(#3974c7,var(--layout-blue));border-color:#214b88;color:#fff}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) :is(.act-go,.act-auto:not(.on)):not([disabled]):not([aria-disabled="true"]):active{box-shadow:inset 0 1px 2px rgba(0,0,0,.2);transform:translateY(1px)}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) :is(.act-go,.act-auto:not(.on)):not([disabled]):not([aria-disabled="true"]) i{color:inherit}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main > .layout-home{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
html.ui-portal[data-layout="adventure"] .layout-home > *{grid-column:1 / -1;min-width:0;margin-top:0;margin-bottom:0}
html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .layout-home > .panel{margin-bottom:0}
html.ui-portal[data-layout="adventure"] .layout-more{display:none}
html.ui-portal[data-layout="adventure"] .nav > .nav-facilities{display:none}
html.ui-portal[data-layout="adventure"] .nav-rest > .nav-title{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1 / -1}
html.ui-portal[data-layout="adventure"] .layout-menu-close{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:3px;background:var(--paper-2);color:var(--ink);font:inherit;cursor:pointer}
html.ui-portal[data-layout="adventure"] .layout-menu-close:hover{background:var(--layout-tint);color:var(--layout-purple-ink)}

@media (min-width:1200px){
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main > .layout-home{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.ui-portal[data-layout="adventure"] .layout-home > .home-location,
  html.ui-portal[data-layout="adventure"] .layout-home > .home-nation{grid-column:auto}
}

@media (min-width:761px){
  html.ui-portal[data-layout="adventure"] .mkt-page .mkt-table{overflow-x:auto}
  html.ui-portal[data-layout="adventure"] .mkt-page .mkt-row{min-width:752px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main:has(> .nav > .nav-facilities){grid-template-rows:auto auto 1fr;grid-template-areas:"nav sub shortcuts side" "nav facilities facilities side" "nav page page side"}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts{padding-top:4px;width:auto}
  html.ui-portal[data-layout="adventure"] .main:not(.solo) > .nav{display:contents}
  html.ui-portal[data-layout="adventure"] .main:not(.solo) > .nav > .nav-main{grid-area:nav;position:sticky;top:calc(12px + var(--ah-stick,0px));display:flex;flex-direction:column;align-items:stretch;gap:2px;height:auto;margin:0;padding:4px 0;border:1px solid var(--hair);border-image:none;background:var(--paper);box-shadow:none}
  html.ui-portal[data-layout="adventure"] .nav-main > a,
  html.ui-portal[data-layout="adventure"] .nav-main > a:visited,
  html.ui-portal[data-layout="adventure"] .layout-more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:64px;height:auto;margin:0;padding:8px 2px;border:1px solid transparent;border-radius:0;background:none;color:var(--muted);font-size:12px;font-weight:600;line-height:1.25;text-align:center;white-space:normal;cursor:pointer}
  html.ui-portal[data-layout="adventure"] .nav-main > a.gnb-m{display:none}
  html.ui-portal[data-layout="adventure"] .nav-main > a > span{max-width:100%;overflow-wrap:anywhere}
  html.ui-portal[data-layout="adventure"] .nav-main > a:hover{background:var(--paper-2);color:var(--link)}
  html.ui-portal[data-layout="adventure"] .nav-main > a.active,
  html.ui-portal[data-layout="adventure"] .layout-more.active,
  html.ui-portal[data-layout="adventure"] .nav:has(.nav-t:checked) .layout-more{border-color:transparent;background:var(--layout-tint);color:var(--layout-purple-ink);box-shadow:none}
  html.ui-portal[data-layout="adventure"] .nav-main > a .spr,
  html.ui-portal[data-layout="adventure"] .layout-more .spr{width:24px;height:24px;stroke:currentColor}
  html.ui-portal[data-layout="adventure"] .nav > .nav-t{display:block;position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  html.ui-portal[data-layout="adventure"] .nav:has(.nav-t:focus-visible) .layout-more{outline:2px solid var(--blue);outline-offset:-3px}
  html.ui-portal[data-layout="adventure"] .nav > .nav-t:checked ~ .nav-veil{display:block;position:fixed;inset:0;background:rgba(4,10,18,.6);z-index:41}
  html.ui-portal[data-layout="adventure"] .nav > .nav-t:checked ~ .nav-rest{display:grid;position:fixed;left:50%;top:10vh;bottom:auto;transform:translateX(-50%);width:min(720px,calc(100vw - 48px));max-height:80dvh;overflow:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;z-index:42;background:var(--paper);margin:0;padding:16px;border:1px solid var(--line);box-shadow:0 8px 32px rgba(0,0,0,.22)}
  html.ui-portal[data-layout="adventure"] .nav-rest > :is(.nav-title,.nav-group){display:block;grid-column:1/-1;margin:8px 0 4px;padding:8px 0;border-bottom:1px solid var(--hair);color:var(--link)}
  html.ui-portal[data-layout="adventure"] .nav-rest > .nav-title{display:flex;position:sticky;top:-16px;z-index:1;margin:-16px -16px 4px;padding:10px 16px;background:var(--paper)}
  html.ui-portal[data-layout="adventure"] .nav-rest > a,
  html.ui-portal[data-layout="adventure"] .nav-rest > a:visited{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;height:auto;padding:8px;color:var(--ink);background:var(--paper);border:0;font-size:12px}
  html.ui-portal[data-layout="adventure"] .nav-rest > a:hover{background:var(--paper-2)}
  html.ui-portal[data-layout="adventure"] .nav-rest > a.active{background:var(--layout-tint);color:var(--layout-purple-ink)}
  html.ui-portal[data-layout="adventure"] .nav-rest > a > .spr{display:block;width:22px;height:22px}
  html.ui-portal[data-layout="adventure"] .nav-rest > a > .nav-d{display:block;width:100%;padding-left:30px;color:var(--muted);font-size:11px}
  html.ui-portal[data-layout="adventure"] .nav-main > a .spr .layout-icon-fill{fill:var(--layout-tint)}
  html.ui-portal[data-layout="adventure"] .nav-main > a.active .spr .layout-icon-fill{fill:var(--paper)}
  html.ui-portal[data-layout="adventure"] .main:not(.solo) > .nav > .nav-sub{grid-area:sub;min-width:0;min-height:40px;margin:0;padding:0 0 6px;border:0;border-bottom:1px solid var(--line);border-image:none;background:none;gap:4px}
  html.ui-portal[data-layout="adventure"] .nav-sub > a,
  html.ui-portal[data-layout="adventure"] .nav-sub > a:visited,
  html.ui-portal[data-layout="adventure"] .nav-util > a,
  html.ui-portal[data-layout="adventure"] .nav-util > a:visited{height:auto;min-height:36px;padding:8px 12px;border-radius:4px;color:var(--muted);font-size:12px}
  html.ui-portal[data-layout="adventure"] .nav-util > a[href="/settings"]{display:none}
  html.ui-portal[data-layout="adventure"] .nav-sub > a:hover,
  html.ui-portal[data-layout="adventure"] .nav-util > a:hover{background:var(--paper-2);color:var(--link)}
  html.ui-portal[data-layout="adventure"] .nav-sub > a.on,
  html.ui-portal[data-layout="adventure"] .nav-util > a.on{background:var(--paper);color:var(--layout-purple-ink);font-weight:700;box-shadow:0 2px 0 var(--hair)}
  html.ui-portal[data-layout="adventure"] .nav-sub > a + a::before,
  html.ui-portal[data-layout="adventure"] .nav-util > a + a::before,
  html.ui-portal[data-layout="adventure"] .nav-rest > a + a::before,
  html.ui-portal[data-layout="adventure"] .nav-rest > .nav-group + a::before{display:none}
  html.ui-portal[data-layout="adventure"] .nav-facilities{padding:8px 0;gap:4px;border-color:var(--hair)}
  html.ui-portal[data-layout="adventure"] .nav > .nav-facilities{display:grid;grid-area:facilities;min-width:0;margin:0;padding:4px 0 8px;border-top:0;border-bottom:1px solid var(--line)}
  html.ui-portal[data-layout="adventure"] .nav-facility-label{flex-basis:5.5em;color:var(--link)}
  html.ui-portal[data-layout="adventure"] .nav-facility a,
  html.ui-portal[data-layout="adventure"] .nav-facility a:visited{padding:6px 8px;font-size:12px;color:var(--muted)}
  html.ui-portal[data-layout="adventure"] .nav-facility a.on{background:var(--layout-tint);color:var(--layout-purple-ink);font-weight:700;box-shadow:none}
  html.ui-portal[data-layout="adventure"] .main > .side{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;min-width:0;position:sticky;top:calc(12px + var(--ah-stick,0px));padding:0}
}

@media (min-width:901px){
  html.ui-portal[data-layout="adventure"] .side > .lchat:not(.big){order:-1;height:clamp(360px,calc(100dvh - 280px),460px);min-height:360px;max-height:none}
}

@media (min-width:761px) and (max-width:1100px){
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo){--layout-chat:250px;--layout-nav:64px;--layout-gap:12px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar{grid-template-columns:150px minmax(220px,1fr) max-content auto;grid-template-areas:"identity gauges wallet tools";gap:4px 12px;padding:10px 12px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar > .brand{display:none}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar .hero-mini{gap:5px;padding-left:12px}
  html.ui-portal[data-layout="adventure"] .topbar .chip-live{flex-basis:auto;justify-content:flex-end;min-height:20px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .home-now:not(.growth){grid-template-columns:repeat(2,minmax(0,1fr))}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main{grid-template-columns:var(--layout-nav) minmax(0,1fr) var(--layout-chat);grid-template-rows:auto auto 1fr;grid-template-areas:"nav sub side" "nav shortcuts side" "nav page side"}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main:has(> .nav > .nav-facilities){grid-template-rows:auto auto auto 1fr;grid-template-areas:"nav sub side" "nav shortcuts side" "nav facilities side" "nav page side"}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts{justify-content:flex-start;padding-top:0}
}

@media (min-width:761px) and (max-width:900px){
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar{grid-template-columns:minmax(140px,1fr) minmax(200px,1.4fr) auto;grid-template-areas:"identity gauges tools" "wallet gauges tools";gap:4px 12px}
  html.ui-portal[data-layout="adventure"] .topbar .top-actions{justify-self:start}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main{grid-template-columns:var(--layout-nav) minmax(0,1fr);grid-template-areas:"nav sub" "nav shortcuts" "nav page" "nav side"}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main:has(> .nav > .nav-facilities){grid-template-rows:auto auto auto auto auto;grid-template-areas:"nav sub" "nav shortcuts" "nav facilities" "nav page" "nav side"}
  html.ui-portal[data-layout="adventure"] .main > .side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}

@media (max-width:760px){
  html.ui-portal[data-layout="adventure"] .nav > .nav-rest{background:var(--paper);border-color:var(--line)}
  html.ui-portal[data-layout="adventure"] .nav-rest > .nav-title{position:sticky;top:-12px;z-index:1;margin:-12px -12px 4px;padding:8px 12px;background:var(--paper);border-bottom:1px solid var(--line);color:var(--ink)}
  html.ui-portal[data-layout="adventure"] .nav-rest > .nav-group{color:var(--link)}
  html.ui-portal[data-layout="adventure"] .nav-rest > a,
  html.ui-portal[data-layout="adventure"] .nav-rest > a:visited{background:var(--paper-2);border-color:var(--line);border-radius:3px;color:var(--ink)}
  html.ui-portal[data-layout="adventure"] .nav-rest > a.active{background:var(--layout-tint);border-color:var(--layout-purple-ink);color:var(--layout-purple-ink)}
  html.ui-portal[data-layout="adventure"] .nav-rest > a .nav-d{color:var(--muted)}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar{width:100%;margin:0 0 10px;padding:8px 10px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity tools" "gauges wallet";gap:6px 10px;border-width:0 0 1px;border-radius:0;box-shadow:none}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar > .brand{display:none}
  html.ui-portal[data-layout="adventure"] .layout-identity{grid-area:identity;gap:10px;min-height:44px}
  html.ui-portal[data-layout="adventure"] .layout-identity > .la{width:36px;height:36px}
  html.ui-portal[data-layout="adventure"] .layout-identity b{font-size:13px}
  html.ui-portal[data-layout="adventure"] .topbar .top-actions{max-width:128px;flex-wrap:wrap;justify-self:end;justify-content:flex-end;gap:2px}
  html.ui-portal[data-layout="adventure"] .topbar .chip{min-height:32px;padding:0 6px}
  html.ui-portal[data-layout="adventure"] .topbar .chip b{font-size:11px}
  html.ui-portal[data-layout="adventure"] .topbar .chip > .spr{display:block;width:18px;height:18px}
  html.ui-portal[data-layout="adventure"] .topbar .chip-notice{min-width:44px;width:44px;height:44px;padding:0}
  html.ui-portal[data-layout="adventure"] .topbar .chip-live{flex-basis:100%;justify-content:flex-end;min-height:20px}
  html.ui-portal[data-layout="adventure"] .layout-tools{gap:4px}
  html.ui-portal[data-layout="adventure"] .layout-tool{width:44px;height:44px}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:44px;gap:4px}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts a{flex-direction:column;justify-content:center;min-width:0;min-height:52px;padding:6px 4px;gap:3px;font-size:11px;white-space:normal;text-align:center;word-break:normal}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts a span{min-width:0}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts .spr{flex:none;width:18px;height:18px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar .hero-mini{grid-area:gauges;grid-template-columns:minmax(0,1fr);gap:5px;padding-left:0;border-left:0}
  html.ui-portal[data-layout="adventure"] .topbar .hero-mini .stat-line{grid-template-columns:max-content minmax(50px,1fr) auto;gap:8px}
  html.ui-portal[data-layout="adventure"] .topbar .hero-mini .stat-line.solo{display:none}
  html.ui-portal[data-layout="adventure"] .topbar .hero-mini .bar{height:8px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main{width:100%;padding:0 10px 20px;display:flex;flex-direction:column;gap:12px}
  html.ui-portal[data-layout="adventure"] .main > .page{width:100%;order:0}
  html.ui-portal[data-layout="adventure"] .main > .side{display:contents}
  html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff){order:1;display:block;width:100%;grid-template-columns:minmax(0,1fr);margin:0}
  html.ui-portal[data-layout="adventure"] .side > .profile:not(.buff):not(:has(.being-stage,.side-tier)){display:none}
  html.ui-portal[data-layout="adventure"] .side > .chat,
  html.ui-portal[data-layout="adventure"] .side > .buff{order:2;width:100%}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .footer{width:100%;padding:16px 12px}
  html.ui-portal[data-layout="adventure"] .home-now .hn-grid,
  html.ui-portal[data-layout="adventure"] .door-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
  html.ui-portal[data-layout="adventure"] .home-now .hn-grid{gap:6px;padding-top:0}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .home-now:not(.growth){grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 10px 10px}
  html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .panel-h{margin:0 -10px 4px}
  html.ui-portal[data-layout="adventure"] .home-now:not(.growth) > .hn-go .act{min-height:64px;padding:10px 8px;gap:6px;font-size:13px}
  html.ui-portal[data-layout="adventure"] .home-now > .hn-new{margin:4px -10px -10px}
  html.ui-portal[data-layout="adventure"] .home-now .hn,
  html.ui-portal[data-layout="adventure"] .home-now .hn:nth-child(n+4){grid-column:auto;min-height:64px;padding:10px 8px;gap:8px}
  html.ui-portal[data-layout="adventure"] .home-now .hn > .spr{display:block;width:24px;height:24px}
  html.ui-portal[data-layout="adventure"] .home-now .hn i{font-size:12px;line-height:1.5}
  html.ui-portal[data-layout="adventure"] .door{min-height:64px;padding:10px 8px;gap:4px 8px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-h{padding:8px 12px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .panel-b{padding:12px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) .todo.cards{grid-template-columns:minmax(0,1fr);padding:0 16px 12px}
  html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-copy{position:relative;left:auto;top:auto;max-width:none;z-index:2}
  html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-copy strong{font-size:18px}
  html.ui-portal[data-layout="adventure"] .world:not(.hunt-page) > .scene .scene-town{right:12px;bottom:8px}
  html.ui-portal[data-layout="adventure"] .layout-place-art{width:160px;height:80px}
  html.ui-portal[data-layout="adventure"] .nav > .nav-main > a,
  html.ui-portal[data-layout="adventure"] .nav > .nav-main > a:visited,
  html.ui-portal[data-layout="adventure"] .nav-l{background:var(--paper);color:var(--muted)}
  html.ui-portal[data-layout="adventure"] .nav > .nav-main > a.active,
  html.ui-portal[data-layout="adventure"] .nav-l.active{background:var(--layout-tint);color:var(--layout-purple-ink)}
  html.ui-portal[data-layout="adventure"] .nav > .nav-main > a .spr{stroke:currentColor}
}

@media (pointer:coarse){
  html.ui-portal[data-layout="adventure"] .layout-menu-close{min-height:44px}
  html.ui-portal[data-layout="adventure"] .layout-tool,
  html.ui-portal[data-layout="adventure"] .topbar .chip-notice{min-width:44px;min-height:44px}
  html.ui-portal[data-layout="adventure"] .layout-shortcuts a{min-height:44px}
  html.ui-portal[data-layout="adventure"] .topbar .chip,
  html.ui-portal[data-layout="adventure"] .nav-sub > a,
  html.ui-portal[data-layout="adventure"] .nav-util > a{min-height:44px}
}

@media (max-width:380px){
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .topbar{grid-template-areas:"identity tools" "wallet wallet" "gauges gauges"}
  html.ui-portal[data-layout="adventure"] .topbar .top-actions{max-width:none;justify-self:stretch;justify-content:flex-start}
  html.ui-portal[data-layout="adventure"] .topbar .chip-live{flex-basis:auto;margin-left:auto}
}

@media (min-width:1860px){
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo){--layout-width:1860px}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main{grid-template-columns:212px var(--layout-nav) minmax(0,1fr) max-content var(--layout-chat) 212px;grid-template-areas:"rank nav sub shortcuts side live" "rank nav page page side live"}
  html.ui-portal[data-layout="adventure"] .app:not(.app-solo) > .main:has(> .nav > .nav-facilities){grid-template-areas:"rank nav sub shortcuts side live" "rank nav facilities facilities side live" "rank nav page page side live"}
  html.ui-portal[data-layout="adventure"] .main > .rail{display:block;grid-area:rank;width:100%;margin:0;justify-self:stretch}
  html.ui-portal[data-layout="adventure"] .main > .rail-me{display:flex;grid-area:live;width:100%;margin:0;justify-self:stretch}
}
