@font-face { font-family:City Inter; src:url('./assets/viceberg-city/InterVariable.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-display:swap; }
.city-home { position:relative; isolation:isolate; width:100%; height:100svh; min-height:640px; overflow:hidden; background:#030b16; color:#f7f4ff; font-family:City Inter,Inter,system-ui,sans-serif; }
body:has(.city-home)::before,body:has(.city-home)::after { display:none; }
.city-home *,.city-home *::before,.city-home *::after { box-sizing:border-box; }
.city-home [hidden] { display:none!important; }
.city-home a { color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.city-home button { font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.city-home :focus-visible { outline:2px solid #f2cbff; outline-offset:5px; }
.city-home img { display:block; }
.city-header { position:absolute; z-index:8; top:15px; left:3.4%; pointer-events:none; }
.city-brand { display:block; position:relative; width:170px; pointer-events:auto; }
.city-brand>img { width:100%; height:auto; }
.city-brand-tagline { display:block; margin:-4px 0 0 4px; color:#d3cadc; font-size:11px; line-height:1.4; white-space:nowrap; }
.city-scene { position:absolute; inset:0; overflow:hidden; cursor:grab; touch-action:none; }
.city-scene.is-dragging { cursor:grabbing; }
.city-world:not([data-ready]) .city-marker { visibility:hidden; }
.city-world { position:absolute; left:0; top:0; transform-origin:0 0; will-change:transform; user-select:none; }
.city-map-picture { position:absolute; inset:0; display:block; pointer-events:none; }
.city-map-image { width:100%; height:100%; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.city-copy { position:absolute; z-index:3; bottom:37px; left:4.4%; pointer-events:none; }
.city-home .city-copy h2 { margin:0; color:#faf8ff; font-size:25px; font-weight:450; line-height:1.25; letter-spacing:-.035em; }
.city-copy p { margin:5px 0 0; color:#c6c4d4; font-size:14px; letter-spacing:.005em; }
.city-marker { position:absolute; z-index:2; display:block; width:max-content; max-width:235px; transform-origin:0 0; }
.city-marker-label { display:flex; align-items:center; gap:11px; min-height:42px; padding:6px 16px 6px 9px; border:1px solid #dbbdd97a; border-radius:99px; background:#080e1de6; box-shadow:0 5px 20px #0005; backdrop-filter:blur(14px); transition:background .18s,border-color .18s,box-shadow .18s; }
.city-marker-label>img { width:26px; height:26px; padding:2px; filter:invert(96%); }
.city-marker-label strong { display:block; color:#f9f5ff; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:14px; line-height:1.25; font-weight:450; letter-spacing:.025em; white-space:nowrap; }
.city-marker-label small { display:none; }
.city-marker[data-city-destination=market] .city-marker-label small { display:block; margin-top:2px; color:#cfc1da; font-size:10px; }
.city-marker-leader { position:absolute; top:40px; left:13px; display:block; width:28px; height:44px; pointer-events:none; }
.city-home[data-city-filter=all] .city-marker { max-width:var(--city-label-width,176px); min-height:36px; transform:none; }
.city-home[data-city-filter=all] .city-marker-label { min-height:30px; gap:6px; padding:4px 10px 4px 6px; }
.city-home[data-city-filter=all] .city-marker-label>img { width:20px; height:20px; flex:none; }
.city-home[data-city-filter=all] .city-marker-label>span { min-width:0; }
.city-home[data-city-filter=all] .city-marker-label strong { font-size:12px; overflow:hidden; text-overflow:ellipsis; }
.city-home[data-city-filter=all] .city-marker-label small { display:none; }
.city-home[data-city-filter=all] .city-marker .city-marker-leader { top:28px; height:8px; width:14px; left:calc(50% - 7px); }
.city-marker:hover,.city-marker:focus-visible { z-index:6; }
.city-marker:hover .city-marker-label,.city-marker:focus-visible .city-marker-label { background:#25142ce8; border-color:#f3b6eb; box-shadow:0 0 24px #ed64c32d; }
/* Five readable, directly linked landmarks retain a 44px touch target. */
.city-home[data-city-pins=true] .city-marker { --pin-color:#c9b4ec; display:flex; align-items:center; width:max-content; height:44px; min-height:44px; max-width:160px; transform:none; border-radius:20px; text-decoration:none; }
.city-home[data-city-pins=true] .city-marker[data-city-category=market] { --pin-color:#f5a2cf; }
.city-home[data-city-pins=true] .city-marker[data-city-category=tools] { --pin-color:#9cded5; }
.city-home[data-city-pins=true] .city-marker::after { content:""; position:absolute; bottom:0; left:calc(50% - 1.5px); width:3px; height:3px; border-radius:50%; background:var(--pin-color); box-shadow:0 0 7px var(--pin-color); pointer-events:none; }
.city-home[data-city-pins=true] .city-marker-label { display:flex; align-items:center; gap:7px; width:auto; min-height:34px; padding:7px 11px 7px 9px; border:1px solid #d8d4eb80; border-radius:18px; background:linear-gradient(145deg,#283447ed,#0b1423f2 70%); box-shadow:inset 0 1px 0 #ffffff20,0 3px 12px #0006; backdrop-filter:blur(12px); }
.city-home[data-city-pins=true] .city-marker-label>img { width:19px; height:19px; padding:0; opacity:1; flex:none; }
.city-home[data-city-pins=true] .city-marker .city-marker-leader { display:none; }
.city-home[data-city-pins=true] .city-marker-label>span { display:block; min-width:0; }
.city-home[data-city-pins=true] .city-marker-label strong { color:#fbf8ff; font-family:City Inter,Inter,system-ui,sans-serif; font-size:12px; line-height:1.2; font-weight:550; letter-spacing:-.015em; white-space:nowrap; }
.city-home[data-city-pins=true] .city-marker-label small { display:none; }
.city-home[data-city-pins=true] .city-marker:focus-visible { z-index:7; outline:2px solid #edcdfc; outline-offset:3px; }
.city-home[data-city-pins=true] .city-marker:is(:focus-visible,:hover) .city-marker-label { border-color:var(--pin-color); background:linear-gradient(145deg,#4b405ff2,#1d2539f5); }
@media(max-width:650px) {
 .city-home[data-city-pins=true] .city-marker { max-width:140px; }
 .city-home[data-city-pins=true] .city-marker-label { gap:6px; padding:7px 9px; }
 .city-home[data-city-pins=true] .city-marker-label>img { width:17px; height:17px; }
 .city-home[data-city-pins=true] .city-marker-label strong { font-size:11px; }
}
.city-map-footer { position:absolute; z-index:5; bottom:32px; left:0; right:0; display:flex; justify-content:center; pointer-events:none; }
.city-filters { pointer-events:auto; display:flex; gap:0; padding:6px; border:1px solid #b9a8d082; border-radius:99px; background:#0a1221c9; backdrop-filter:blur(20px); box-shadow:0 8px 32px #0005; }
.city-filters :is(button,a) { position:relative; display:block; text-align:center; min-width:90px; padding:9px 20px; border:1px solid transparent; border-radius:99px; background:transparent; color:#dfdbe6; font-size:14px; line-height:1.3; }
.city-filters :is(button,a)+:is(button,a):not(.is-active)::before { position:absolute; content:""; left:0; top:10px; height:18px; border-left:1px solid #9283a060; }
.city-filters :is(button,a).is-active { border-color:#d4afed; background:#9e75be70; box-shadow:inset 0 0 12px #dfb9f82f,0 0 12px #ce9aef26; color:white; }
.city-filters :is(button,a):hover { background:#b787d32b; }
.city-map-controls { position:fixed; right:3%; bottom:97px; display:flex; align-items:center; gap:12px; }
.city-drag-hint { display:none; }
.city-zoom { pointer-events:auto; display:flex; align-items:center; border:1px solid #bda5ce69; border-radius:99px; background:#091321bc; backdrop-filter:blur(14px); }
.city-zoom button { display:grid; place-items:center; width:37px; height:31px; padding:0; border:0; background:transparent; border-radius:99px; }
.city-zoom img,.city-chat-launcher img { filter:invert(96%); }
.city-zoom button:hover { background:#ca90ec30; }
.city-zoom button:disabled { opacity:.4; cursor:default; }
.city-chat-launcher { position:absolute; right:3.1%; bottom:38px; z-index:6; display:flex; align-items:center; gap:9px; padding:10px 17px; border:1px solid #e4b5efab; border-radius:99px; background:#111323d9; backdrop-filter:blur(14px); font-size:14px; }
.city-chat-launcher:hover { background:#442343d9; }
.city-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.city-skip-map:focus { clip-path:none; width:auto; height:auto; left:20px; top:140px; z-index:50; padding:12px; background:#e1bdff; color:#1c0f29; }
body:has(#command.is-active .city-home) .platform-shell { grid-template-columns:minmax(0,1fr); }
body:has(#command.is-active .city-home) .platform-sidebar,body:has(#command.is-active .city-home) .sidebar-scrim,body:has(#command.is-active .city-home) .platform-main>.market-ticker { display:none; }
body:has(#command.is-active .city-home) .platform-main { position:relative; width:100%; max-width:none; margin:0; padding:0; }
body:has(#command.is-active .city-home) .platform-topbar { position:absolute; z-index:12; top:28px; right:3%; left:auto; width:auto; min-height:0; margin:0; padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; }
body:has(#command.is-active .city-home) .platform-topbar .mobile-sidebar-button { display:none; }
body:has(#command.is-active .city-home) .platform-topbar .topbar-actions { margin:0; }
body:has(#command.is-active .city-home) .platform-topbar #zealz-connect-root:empty { display:none; }
body:has(#command.is-active .city-home) #command { margin:0; padding:0; width:100%; }
.city-chat-toolbar { position:fixed; z-index:31; top:94px; right:24px; display:flex; align-items:center; justify-content:space-between; width:390px; height:59px; padding:10px 13px; border:1px solid #9972be77; border-bottom-color:#5e46765c; border-radius:17px 17px 0 0; background:#111326f2; box-shadow:0 15px 60px #0005; backdrop-filter:blur(22px); }
.city-chat-tabs { display:flex; align-items:center; gap:5px; }
.city-chat-tabs a { padding:9px 12px; border:1px solid transparent; border-radius:8px; color:#bda9d0; font-size:12px; }
.city-chat-tabs a.is-active { background:#b482e22b; border-color:#bf91e54f; color:#f1ddff; }
.city-chat-tabs a:hover { background:#b482e21c; }
.city-chat-close { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; }
.city-chat-close:hover { background:#b482e21c; }
.city-chat-close img { filter:invert(94%); }
.view-panel.is-city-chat.is-active { position:fixed; z-index:30; top:153px; right:24px; bottom:22px; display:block; width:390px; margin:0; padding:0; overflow:hidden; border:1px solid #9972be77; border-top:0; border-radius:0 0 17px 17px; background:#0a1020f5; box-shadow:0 20px 70px #0006; backdrop-filter:blur(22px); }
.view-panel.is-city-chat .viceberg-chat { height:100%; min-height:0; padding:16px 14px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.view-panel.is-city-chat .viceberg-chat-header { padding:0 8px 14px; }
.view-panel.is-city-chat .viceberg-chat-header h1 { font-size:20px; letter-spacing:-.04em; }
.view-panel.is-city-chat .viceberg-chat-header .eyebrow { display:none; }
.view-panel.is-city-chat .viceberg-chat-status { font-size:11px; }
.view-panel.is-city-chat .viceberg-chat-gate,.view-panel.is-city-chat .viceberg-chat-wallet { margin:12px 6px; padding:20px 16px; }
.view-panel.is-city-chat .viceberg-chat-empty { padding-top:12vh; }

@media(max-width:1100px) { .city-copy { bottom:104px; left:25px; } .city-home .city-copy h2 { font-size:21px; } .city-marker { transform:scale(.88); } .city-map-footer { bottom:25px; } .city-chat-launcher { bottom:30px; } }
@media(max-width:650px) {
 html:not(.city-map-open) { overflow-y:auto; }
 /* Keep the city inside the visible browser area, including Safari chrome. */
 html.city-map-open,html.city-map-open body { height:100%; overflow:hidden; overscroll-behavior:none; }
 html.city-map-open .platform-shell { position:fixed; inset:0; height:100%; height:100dvh; min-height:0; overflow:hidden; }
 html.city-map-open .platform-main,html.city-map-open #command { height:100%; min-height:0; }
 .city-home { height:100%; min-height:0; }

 .city-header { top:12px; left:17px; }
 .city-brand { width:130px; }
 .city-brand-tagline { font-size:9px; }
 .city-scene { top:96px; bottom:136px; }
 .city-marker { transform:scale(.76); }
 .city-copy { left:20px; bottom:83px; max-width:calc(100% - 130px); }
 .city-home .city-copy h2 { font-size:clamp(16px,4.6vw,20px); }
 .city-copy p { font-size:11px; }
 .city-map-footer { bottom:max(12px,env(safe-area-inset-bottom)); left:16px; right:16px; width:auto; }
 .city-filters { justify-content:space-between; width:100%; padding:5px; }
 .city-filters :is(button,a) { min-width:0; flex:1 1 auto; padding:11px 5px; font-size:11px; white-space:nowrap; }
 .city-chat-launcher { bottom:78px; right:19px; font-size:12px; padding:10px 13px; }
 .city-map-controls { right:20px; bottom:139px; }
 body:has(#command.is-active .city-home) .platform-topbar { top:24px; right:17px; }
 body:has(#command.is-active .city-home) .zealz-launcher-signin { font-size:11px; padding:9px 12px; }
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .platform-topbar { top:20px; right:12px; }
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .city-scene { top:96px; }
 .city-chat-toolbar { top:105px; right:12px; width:calc(100vw - 24px); }
 .view-panel.is-city-chat.is-active { top:164px; right:12px; width:calc(100vw - 24px); bottom:max(72px,env(safe-area-inset-bottom)); min-height:0; }
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .city-chat-toolbar { top:92px; }
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .view-panel.is-city-chat.is-active { top:151px; }
}
@media(prefers-reduced-motion:reduce) { .city-home * { transition:none!important; animation:none!important; } }

@media(max-width:650px) {
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .city-header { left:12px; }
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .city-brand { width:clamp(80px,22vw,110px); }
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .city-brand-tagline { font-size:8px; }
 body:has(#command.is-active):has(#zealzBar[data-ready=true]) .account-zealz { gap:6px; }
 body:has(#command.is-active):has(#zealzBar[data-ready=true]) .account-alert-button { width:24px; height:30px; }
 body:has(#command.is-active):has(#zealzBar[data-ready=true]) .platform-topbar { top:20px; left:calc(clamp(80px,22vw,110px) + 22px); right:12px; display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-end; gap:6px; }
 body:has(#command.is-active):has(#zealzBar[data-ready=true]) .zealz-bar { margin-left:0; max-width:calc(100% - 64px); }
 body:has(#command.is-active):has(#zealzBar[data-ready=true]) .zealz-bar + .topbar-actions { margin-left:0; }
}

/* Short landscape phones need two rows of named destinations. Keep the
   account controls and direct menu, and let gestures own the compact map. */
@media(max-width:650px) and (max-height:500px) and (orientation:landscape) {
 .city-header .city-brand { width:92px; }
 .city-brand-tagline,.city-copy,.city-chat-launcher,.city-map-controls { display:none; }
 .city-scene,
 body:has(#command.is-active):has(#zealzBar:not([hidden])) .city-scene { top:76px; bottom:68px; }
}

/* A compact glass frame protects account controls without covering the city. */
body:has(#command.is-active .city-home) .platform-topbar::before {
 content:""; position:absolute; inset:-8px -10px; z-index:-1; pointer-events:none;
 border:1px solid #d6b7f04d; border-radius:18px;
 background:linear-gradient(135deg,#151321c9,#07101bcc);
 box-shadow:0 8px 28px #0004,inset 0 1px 0 #ffffff12;
 backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
body:has(#command.is-active .city-home) .platform-topbar::after { display:none; }

/* The exchange keeps its cyan/pink identity on both island renderers. */
.city-home[data-city-pins=true] .city-marker-vicedaq { --pin-color:#65edf1; }
.city-home[data-city-pins=true] .city-marker-vicedaq .city-marker-label { border-color:#61e1e599; background:linear-gradient(120deg,#25152cf2,#071d2af5); box-shadow:inset 0 1px 0 #ffffff20,0 0 18px #36c9dc22; }
.city-marker-vicedaq .city-marker-label>img { filter:none; border-radius:4px; }
