@font-face {
  font-family: VolterPx;
  src: url('/assets/ciudad/VolterPx-Regular-v1.woff2') format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: VolterPx;
  src: url('/assets/ciudad/VolterPx-Bold-v1.woff2') format('woff2');
  font-weight: 700;
  font-display: block;
}

:root {
  --pixel: VolterPx, system-ui, sans-serif;
  background: #73b1d2;
  scrollbar-gutter: stable;
}
body[data-district] {
  --ink: #163443;
  --frame: #163f54;
  --wall: #d6e3de;
  --paper: #fbfcf2;
  --inset: #e5ece2;
  --border: #9fb8b6;
  --muted: #48616c;
  --room: #226780;
  --room-light: #33849a;
  min-height: 100vh;
  color: var(--ink);
  font: 400 .83rem/1.65 var(--pixel);
  background:
    repeating-linear-gradient(0deg, #c6e7ff13 0 1px, transparent 1px 5px),
    linear-gradient(#81b9d9, #649dbc 72%, #5688a6);
}
body[data-district="noticias"] { --room: #75532e; --room-light: #936d3d; }
body[data-district="comunidad"] { --room: #356346; --room-light: #497b59; }
body[data-district="chat"] { --room: #405784; --room-light: #607aa4; }
body[data-district="cuenta"] { --room: #385a79; --room-light: #4b779a; }
body[data-district="taller"] { --room: #526337; --room-light: #697e46; }

.site-frame {
  position: relative;
  z-index: 1;
  width: min(1050px, calc(100% - 120px));
  margin: 16px auto 34px;
  padding-bottom: 1px;
  border: 2px solid #204650;
  border-radius: 8px;
  background: var(--wall);
  box-shadow: 0 0 0 1px #cee6e0aa, 0 8px 25px #102f4680;
}
.wrap { width: calc(100% - 32px); }
main.wrap { padding-block: 12px 18px; min-height: 0; }
h1, h2, h3, .eyebrow, .site-footer strong { font-family: var(--pixel); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.55rem, 3.5vw, 2.35rem); line-height: 1.22; }
.description, .integration-docs p { font-family: system-ui, sans-serif; font-size: .94rem; }
.eyebrow { color: var(--room); font-size: .77rem; }
.eyebrow:empty { display: none; }

.city-header { border: 0; border-radius: 6px 6px 0 0; background: #173e55; }
.site-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 91px;
  padding: 1px 18px;
  border-radius: inherit;
  background: linear-gradient(100deg, #214b63, #28637d);
}
.mast-identity { display: flex; align-items: center; gap: 14px; }
.site-mast .brand { width: 226px; height: auto; }
.site-mast .brand img { display: block; width: 100%; height: auto; }
.mast-wallet {
  flex: 0 1 295px;
  padding: 6px 8px;
  border: 1px solid #173b4e;
  border-radius: 4px;
  background: #1b4359;
  box-shadow: inset 0 1px #a8d4dc48, 0 2px #173b4e75;
  color: #fff1ce;
}
.mast-wallet dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 0 0 4px; text-align: center; }
.mast-wallet dl > div { display: flex; flex-direction: column; align-items: center; }
.mast-wallet dl > div + div { border-inline-start: 1px solid #9ad0db49; }
.mast-wallet dt { color: #d7ebef; font-size: .65rem; line-height: 1.3; }
.mast-wallet dd { order: -1; margin: 0; line-height: 1.05; font-size: 1.15rem; font-weight: 700; }
.mast-wallet .credit-claim { text-align: center; }
.mast-wallet .credit-claim button { min-width: 155px; padding: 3px 8px; font-size: .7rem; }
.credit-claim button:disabled { cursor: default; background: #e1e8e4; border-color: #82969c; color: #284653; box-shadow: inset 0 1px #fff8; }
.scene-location {
  padding: 1px 7px 2px;
  border-radius: 3px;
  border: 1px solid #163c4f;
  background: #1f4c62;
  color: #fff2d4;
  font-size: .7rem;
}
.city-world {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(#83bddd, #7cb0c5 43%, #5a8068);
}
.scene-stage {
  position: absolute;
  left: 50%;
  top: 0;
  width: max(1480px, 100vw + 150px, 214vh);
  aspect-ratio: 1256 / 990;
  transform: translate(-50%, -40%);
}
.scene-map, .scene-animation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.scene-stage:has(.scene-animation:not([hidden])) .scene-map { visibility: hidden; }
.city-world::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(#15374108, transparent 12%, transparent 91%, #214d5640);
}

.city-navbar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 15px;
  min-height: 55px;
  padding: 7px 12px 8px;
  background: linear-gradient(#27556b 49%, #1f465b 50%);
  border-top: 1px solid #f6c55b;
  border-bottom: 2px solid #143e53;
  box-shadow: inset 0 1px #96bac66e;
}
.city-navbar nav { justify-content: flex-start; flex-wrap: wrap; gap: 5px; padding: 0; }
.city-navbar nav a {
  --glyph-bg: #f6cd7e;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px 8px;
  color: #fff3cc;
  border: 1px solid #102d40;
  border-radius: 4px;
  background: linear-gradient(#467d95 49%, #34637d 50%);
  box-shadow: inset 0 1px #badce47d, inset 0 -3px #20465f;
  text-decoration: none;
  font-size: .76rem;
}
.city-navbar nav a:is([aria-current], :hover, :focus-visible) {
  --glyph-bg: #593505;
  color: #382500;
  background: linear-gradient(#ffdc79 49%, #f4b546 50%);
  box-shadow: inset 0 1px #fff5ca, inset 0 -3px #b47827;
}
.city-navbar nav a[data-tab="inicio"] { --glyph: polygon(0 45%, 50% 0, 100% 45%, 84% 45%, 84% 100%, 60% 100%, 60% 69%, 40% 69%, 40% 100%, 16% 100%, 16% 45%); }
.city-navbar nav a[data-tab="hoteles"] { --glyph: polygon(8% 22%, 39% 22%, 39% 0, 91% 0, 91% 100%, 8% 100%, 8% 83%, 25% 83%, 25% 54%, 8% 54%); }
.city-navbar nav a[data-tab="noticias"] { --glyph: polygon(0 8%, 83% 8%, 83% 28%, 100% 28%, 100% 92%, 0 92%, 0 67%, 66% 67%, 66% 52%, 0 52%, 0 38%, 66% 38%, 66% 24%, 0 24%); }
.city-navbar nav a[data-tab="comunidad"] { --glyph: polygon(17% 0, 50% 0, 50% 42%, 66% 42%, 66% 14%, 90% 14%, 90% 46%, 100% 58%, 100% 91%, 62% 91%, 62% 100%, 0 100%, 0 60%, 17% 39%); }
.city-navbar nav a[data-tab="chat"] { --glyph: polygon(0 8%, 100% 8%, 100% 72%, 47% 72%, 20% 100%, 20% 72%, 0 72%); }
.city-navbar nav a[data-tab="publicar"] { --glyph: polygon(0 38%, 38% 38%, 38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%); }
.publish-menu { position: relative; display: flex; align-items: stretch; }
.city-navbar nav .publish-menu > a { border-start-end-radius: 0; border-end-end-radius: 0; }
.publish-menu > details { display: flex; padding: 0; border: 0; }
.publish-menu summary { display: grid; place-items: center; height: 100%; min-width: 26px; padding: 0 4px; list-style: none; color: #fff3cc; border: 1px solid #102d40; border-inline-start: 0; border-radius: 0 4px 4px 0; background: linear-gradient(#467d95 49%, #34637d 50%); box-shadow: inset 0 1px #badce47d, inset 0 -3px #20465f; }
.publish-menu summary::-webkit-details-marker { display: none; }
.publish-menu summary:hover, .publish-menu details[open] summary { background: #f4b546; color: #382500; }
.publish-menu-panel { position: absolute; z-index: 2; inset: calc(100% + 4px) auto auto 0; min-width: 230px; padding: 5px; border: 1px solid var(--frame); border-radius: 4px; background: #20465f; box-shadow: 0 3px #132e4180; }
.city-navbar nav .publish-menu-panel a { display: flex; margin: 2px 0; }
.site-tools { color: #fff4d5; gap: 8px; justify-content: flex-end; }
.city-header .site-tools input { padding: 4px 8px; max-width: 156px; min-height: 32px; font-size: .77rem; }
.city-header .auth-link { color: #fff4d5; }
.city-header .user-menu img { width: 27px; height: 27px; object-fit: contain; image-rendering: pixelated; }
.city-header .user-menu > .panel { color: var(--ink); margin: 5px 0 0; }

.district-strip {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 11px;
  padding: 2px 9px;
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: .73rem;
}
.account-layout .district-strip { margin-bottom: 0; }
.page-head, .plaza-welcome, .directory-hero {
  margin: 0 0 14px;
  border: 1px solid var(--frame);
  border-top: 4px solid var(--room);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 1px #fff7, 0 2px #173e542c;
  padding: 16px 19px;
}
.plaza-welcome {
  display: grid;
  grid-template-columns: minmax(215px, .65fr) minmax(0, 1.35fr);
  align-items: stretch;
  min-height: 155px;
  overflow: hidden;
  padding: 0;
  color: #fff2d4;
  border-top-color: #bc8b48;
  background: linear-gradient(105deg, #1d3942, #20262c);
}
.welcome-copy { align-self: center; padding: 17px 10px 18px 23px; min-width: 0; }
.welcome-copy .button { margin-top: 11px; }
.welcome-sign {
  padding: 12px 14px;
  border: 4px double #bd8c55;
  border-radius: 3px;
  background: linear-gradient(#70462a, #5c3823);
  color: #fff0c9;
  text-shadow: 1px 1px #412719;
  box-shadow: 3px 4px #181613, inset 0 0 0 1px #41241c;
  font-size: clamp(1.32rem, 2.6vw, 2.12rem);
}
.welcome-sign span {
  display: block;
  color: #edbc71;
  font-size: .49em;
  line-height: 1.3;
  margin-top: 4px;
}
.plaza-welcome .welcome-copy p { margin-top: 13px; }
.welcome-reception {
  align-self: center;
  position: relative;
  margin: 7px 10px 8px 0;
  aspect-ratio: 742 / 415;
}
.welcome-reception img { display: block; height: auto; image-rendering: pixelated; }
.reception-room { width: 100%; }
.reception-person { position: absolute; width: 4.45%; transform: translate(-50%, -100%); }
.reception-lia { left: 57%; top: 60.2%; }
.reception-nico { left: 61.2%; top: 59.3%; }
.reception-guest { left: 44.5%; top: 56.4%; }
.reception-guest img { width: 100%; }
.reception-guest-walking { position: absolute; inset: 0; visibility: hidden; }
.reception-bubble {
  position: absolute;
  z-index: 1;
  left: 57%;
  top: 46.5%;
  transform: translate(-50%, -100%);
  max-width: min(220px, 78%);
  padding: 2px 6px 3px;
  border: 1px solid #77797a;
  border-radius: 6px;
  box-shadow: 0 1px #1e191e85;
  background: #fff;
  color: #1e2324;
  font: 400 .68rem/1.16 var(--pixel);
  width: max-content;
  overflow-wrap: anywhere;
}
.reception-bubble[data-speaker="nico"] { left: 61.2%; top: 45.6%; }
.reception-bubble::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: #fff;
  border-right: 1px solid #77797a;
  border-bottom: 1px solid #77797a;
}
.plaza-welcome h1, .page-head h1, .directory-hero h1 { margin-bottom: 5px; }
.plaza-welcome p, .page-head p, .directory-hero p { margin: 0; color: var(--muted); }
.plaza-welcome p { color: #dbeff4; }
.directory-hero .actions { margin-top: 14px; }
.directory-hero .directory-stats div {
  justify-content: flex-end;
  background: var(--inset);
  border: 1px solid var(--border);
}
.directory-hero .directory-stats dt { color: var(--muted); }
.season-caption { display: block; margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
.season-picker { position: relative; padding: 0; border: 0; }
.season-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  padding: 8px 12px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: inset 0 1px #14364722;
}
.season-picker > summary::-webkit-details-marker { display: none; }
.season-picker > summary::after {
  content: "";
  box-sizing: border-box;
  flex: 0 0 13px;
  height: 13px;
  border: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat;
}
.season-picker[open] > summary, .season-picker > summary:hover { border-color: var(--room); }
.season-panel {
  position: absolute;
  z-index: 4;
  inset: calc(100% + 5px) auto auto 0;
  width: min(280px, calc(100vw - 54px));
  padding: 10px;
  border: 1px solid var(--frame);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 3px #173e544d;
}
.season-year {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: #fff4d9;
  text-align: center;
  border-radius: 3px;
  background: linear-gradient(var(--room-light) 48%, var(--room) 49%);
}
.season-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 9px 0; }
.season-panel .season-month { width: 100%; padding-inline: 4px; }
.season-panel .season-month[aria-pressed="true"] { background: linear-gradient(#ffe8a0 49%, #f6c463 50%); border-color: #966521; color: #392c13; }
.season-panel :is(.season-month, [data-season-step])::before { content: none; }
.season-panel button:disabled { opacity: .48; cursor: default; }

.panel {
  border: 1px solid var(--frame);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: inset 0 1px #ffffff94, 0 2px #173e542b;
}
.listing[data-tier="gold"] { --rank-edge: #ae7c28; --rank-paper: #f8e0a6; --rank-ink: #513204; }
.listing[data-tier="silver"] { --rank-edge: #678294; --rank-paper: #dce8ef; --rank-ink: #254052; }
.listing[data-tier="bronze"] { --rank-edge: #a46a4b; --rank-paper: #efd1bc; --rank-ink: #593422; }
.listing[data-tier]:not([data-tier="standard"]) {
  border-color: var(--rank-edge);
  box-shadow: 0 2px var(--rank-edge);
}
.listing[data-tier]:not([data-tier="standard"]) .listing-body {
  background: color-mix(in srgb, var(--paper) 88%, var(--rank-paper));
}
.listing[data-tier]:not([data-tier="standard"]) .position {
  color: var(--rank-ink);
  background: var(--rank-paper);
  box-shadow: inset 0 1px #fff8, 0 1px var(--rank-edge);
}
.directory-row[data-tier="gold"] .listing .position { font-size: 1.15rem; }
.listing-art { border-bottom: 1px solid var(--rank-edge, var(--frame)); }
.listing-meta { color: var(--muted); }
.panel > .split, .account-menu > h2 {
  margin: -24px -24px 14px;
  padding: 7px 12px;
  color: #fff;
  background: linear-gradient(var(--room-light) 48%, var(--room) 49%);
  border-bottom: 1px solid var(--frame);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 1px #fff5, inset 0 -2px #10283b4a;
}
.panel > .split a { color: #fff; }
.account-menu > h2 { margin: -14px -14px 11px; font-size: 1rem; }
input, textarea, select { border-radius: 3px; border-color: #77979c; box-shadow: inset 0 2px #22464d1c; }
.account-menu nav a { border: 1px solid transparent; border-radius: 3px; }
.account-menu nav a:is(:hover, [aria-current]) { color: var(--ink); background: var(--inset); border-color: var(--border); }
.badge { background: var(--inset); color: var(--ink); }

.button, button {
  --button-fill: linear-gradient(#4d9f55 0 12%, #358844 12% 49%, #287740 49%);
  padding: 7px 12px;
  border: 1px solid #183e2d;
  border-radius: 5px;
  color: #fffef0;
  text-shadow: 0 1px #173728;
  background: var(--button-fill);
  box-shadow: inset 1px 1px #a8d7a3, inset -1px 0 #206235, inset 0 -3px #18502f, 0 2px #162f4538;
  transition: box-shadow .14s ease, filter .14s ease, transform .14s ease;
  font: 700 .78rem/1.25 var(--pixel);
}
.button:hover, button:not(:disabled):hover { background: var(--button-fill); color: #fffef0; filter: brightness(1.12); }
.button:active, button:not(:disabled):active { transform: translateY(1px); box-shadow: inset 0 2px #142c3760; }
.button.secondary, button.secondary {
  --button-fill: linear-gradient(#fbffff 0 12%, #ecf3f3 12% 49%, #d2e1e6 49%);
  color: #213b50;
  text-shadow: 0 1px #fff;
  background: var(--button-fill);
  border-color: #526e7b;
  box-shadow: inset 1px 1px #fff, inset -1px 0 #a4bac6, inset 0 -3px #99b1bd, 0 2px #162f4528;
}
button:disabled { opacity: .55; cursor: default; }

.city-plaza {
  display: grid;
  grid-template: "tools main social" / minmax(168px, .75fr) minmax(0, 2.25fr) minmax(185px, .9fr);
  align-items: start;
  gap: 12px;
}
.plaza-main { grid-area: main; min-width: 0; }
.plaza-map { grid-area: tools; --room: #71522e; --room-light: #916b3b; }
.plaza-social { grid-area: social; --room: #3e654e; --room-light: #527f60; }
.city-plaza .panel { padding: 11px; margin-bottom: 12px; }
.city-plaza .panel > .split { margin: -11px -11px 11px; min-height: 35px; padding: 5px 9px; gap: 5px; }
.city-plaza .panel h2 { font-size: .88rem; }
.city-plaza .hint { font-size: .76rem; }
.advertising-slides article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 224px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.advertising-slides article[hidden] { display: none; }
.advertising-poster {
  gap: 7px;
  background: radial-gradient(ellipse at 99% 15%, #3b778e 0, transparent 55%), linear-gradient(#224c60, #142c40);
  color: #f7edcf;
  box-shadow: inset 0 1px #a6cbd27d;
}
.advertising-poster .advertising-brand { color: #ffda80; font-size: .74rem; font-weight: 700; }
.advertising-slides article h3, .advertising-slides article p { margin: 0; }
.advertising-slides article h3 { font-size: .98rem; line-height: 1.3; }
.advertising-slides article a { margin-top: auto; }
.advertising-poster strong { padding: 0 5px; border: 1px solid #a97930; border-radius: 2px; background: #ffdb83; color: #3d2b0c; }
.advertising-hotel { gap: 6px; background: var(--inset); }
.advertising-hotel img { display: block; width: 100%; height: 52px; object-fit: contain; background: #15354b; border: 1px solid var(--frame); border-radius: 2px; }
.advertising-hotel p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.advertising-controls:not([hidden]) { display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin-top: 7px; text-align: center; }
.advertising-controls button { padding: 2px 8px; }
.advertising-controls button::before { content: none; }
.store-advertising-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.store-advertising-form label { flex: 1 1 210px; margin: 0; }

.city-places { list-style: none; margin: 0; padding: 0; }
.city-places li { border-top: 1px solid var(--border); }
.city-places a { display: block; padding: 7px 1px; color: var(--ink); }
.owner-publish { margin-bottom: 10px; }
.city-toggle { display: flex; gap: 4px; }
.city-toggle a {
  padding: 4px 6px;
  border: 1px solid #194b60;
  border-radius: 3px;
  background: #24546b;
  text-decoration: none;
  font: 700 .67rem/1.3 var(--pixel);
}
.city-toggle a:is([aria-current], :hover, :focus-visible) { color: #2e230c; background: #ffdc85; }
.top-vacant { margin-bottom: 10px; padding: 12px; background: var(--inset); border: 1px solid var(--border); }
.top-vacant h3, .top-vacant p { margin: 0; }
.top-vacant h3 { font-size: .97rem; }
.top-preview { margin: 0 0 11px; padding-inline-start: 29px; }
.top-preview li { padding: 6px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.top-preview li > div { display: inline-block; vertical-align: middle; }
.top-count { float: right; padding: 2px 5px; background: var(--inset); }
.home-stats { gap: 5px; }
.home-stats div { background: var(--inset); border: 1px solid var(--border); border-radius: 3px; padding: 6px; }
.home-stats dt { color: var(--muted); font-size: .72rem; }
.home-stats dd { font-size: 1.22rem; }
.member-profile { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.member-portrait {
  display: grid;
  place-items: center;
  width: 82px;
  height: 104px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(var(--inset) 74%, var(--border) 74%, var(--inset) 76%);
  box-shadow: inset 0 1px #ffffff75;
}
.member-portrait img { width: 72px; height: 92px; object-fit: contain; image-rendering: pixelated; }
.member-details { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.member-details .actions { gap: 8px; margin: 10px 0 0; }
.staff-plates { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.staff-plates li { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 2px; border: 1px solid var(--border); border-radius: 4px; background: var(--inset); }
.achievement-group { min-width: 0; margin: 0 0 16px; padding: 10px; border: 1px solid var(--border); }
.achievement-group legend { padding: 0 6px; font-weight: 700; }
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 8px; }
.achievement-card, .profile-achievements li { display: flex; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--border); border-radius: 4px; background: var(--inset); }
.achievement-card { margin: 0; flex-direction: row; }
.achievement-card > span:nth-child(2) { flex: 1; }
.achievement-card > span:nth-child(2) > * { display: block; }
.achievement-card input { flex: none; width: 18px; height: 18px; }
.achievement-card:has(input:checked) { border-color: var(--frame); box-shadow: inset 0 0 0 1px var(--frame); }
.achievement-card:has(input:disabled) .achievement { filter: grayscale(.9); opacity: .7; }
.profile-achievements { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.achievement {
  --medal: #947650;
  --symbol: #fff0bf;
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  color: #fff7df;
  background: linear-gradient(145deg, #fff4c2, var(--medal) 28%, #21374b 80%);
  clip-path: polygon(8% 0,92% 0,92% 8%,100% 8%,100% 76%,92% 76%,92% 88%,75% 88%,75% 100%,25% 100%,25% 88%,8% 88%,8% 76%,0 76%,0 8%,8% 8%);
}
.achievement i { width: 23px; height: 19px; margin-top: -5px; background: var(--symbol); }
.achievement b { position: absolute; right: 6px; bottom: 2px; font-size: 11px; line-height: 1; }
.achievement-published { --medal: #b58530; }
.achievement-published i { clip-path: polygon(0 100%,0 42%,30% 42%,30% 5%,72% 5%,72% 42%,100% 42%,100% 100%,57% 100%,57% 72%,43% 72%,43% 100%); }
.achievement-cast { --medal: #367e73; }
.achievement-cast i { clip-path: polygon(5% 20%,25% 20%,25% 45%,42% 45%,42% 30%,58% 30%,58% 15%,74% 15%,74% 0,96% 0,96% 25%,80% 25%,80% 42%,64% 42%,64% 60%,48% 60%,48% 80%,24% 80%,24% 65%,5% 65%); }
.achievement-received { --medal: #a34b5b; }
.achievement-received i { --symbol: #ffd6c9; clip-path: polygon(0 19%,13% 19%,13% 4%,38% 4%,38% 19%,62% 19%,62% 4%,87% 4%,87% 19%,100% 19%,100% 51%,87% 51%,87% 67%,70% 67%,70% 83%,56% 83%,56% 100%,44% 100%,44% 83%,30% 83%,30% 67%,13% 67%,13% 51%,0 51%); }
.achievement-tenure { --medal: #5b6fa3; }
.achievement-tenure i { clip-path: polygon(5% 0,95% 0,95% 16%,80% 16%,80% 32%,65% 32%,65% 44%,55% 44%,55% 56%,65% 56%,65% 68%,80% 68%,80% 84%,95% 84%,95% 100%,5% 100%,5% 84%,20% 84%,20% 68%,35% 68%,35% 56%,45% 56%,45% 44%,35% 44%,35% 32%,20% 32%,20% 16%,5% 16%); }
.achievement-legacy i { clip-path: polygon(50% 0,61% 34%,100% 38%,73% 62%,81% 100%,50% 80%,19% 100%,27% 62%,0 38%,39% 34%); }
.staff-plates img { flex: none; image-rendering: pixelated; }
.news-editor-label { margin-bottom: 5px; }
.news-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.news-toolbar button { padding: 4px 7px; }
.news-preview { padding: 12px; margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--inset); }
.news-copy { overflow-wrap: anywhere; }
.news-copy :is(h2,h3) { margin: 16px 0 5px; }
.news-copy figure { margin: 14px auto; }
.news-copy figure img { display: block; max-width: 100%; max-height: 500px; height: auto; object-fit: contain; margin: 0 auto; border-radius: 3px; }
.news-copy blockquote { margin: 10px 0; padding: 6px 12px; border-inline-start: 3px solid var(--room-light); background: var(--inset); }
.news-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0;
  padding: 4px 14px 4px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--inset);
}
.news-signature img { flex: none; width: 56px; height: 80px; object-fit: contain; image-rendering: pixelated; }
.news-signature strong { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.news-signature .button { margin-top: 5px; }
.chat-dialog.hotel-preview-dialog { width: min(860px, calc(100% - 24px)); max-width: none; }
.hotel-preview-dialog .panel h2 { margin: 0 0 12px; padding: 0; background: none; color: var(--ink); }
.hotel-preview-dialog > form { margin-bottom: 10px; }
.admin-directory { list-style: none; margin: 0; padding: 0; }
.admin-directory > li > details { padding: 0 0 0 10px; }
.admin-directory > li > details > summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 6px 12px;
  padding: 8px 4px 8px 0;
}
.admin-directory > li > details > summary > strong::before { content: '▸'; margin-inline-end: 5px; }
.admin-directory > li > details[open] > summary > strong::before { content: '▾'; }
.admin-directory > li > details > summary > :is(strong, span) { overflow-wrap: anywhere; }
.admin-directory > li > details[open] { border-inline-start: 2px solid var(--border); padding-inline-start: 8px; }
.admin-directory > li > details > :last-child { margin-bottom: 9px; }
.admin-directory > li > details > summary:last-child { margin-bottom: 0; }
.admin-list-search { align-items: flex-end; }
.admin-list-search label { flex: 1; min-width: min(100%, 210px); margin: 0; }
.admin-list-pages { align-items: center; margin-top: 12px; }
@media (max-width: 540px) {
  .admin-directory > li > details > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-directory > li > details > summary > .hint { grid-column: 1 / -1; padding-inline-start: 13px; }
}
.presentation { aspect-ratio: 728 / 90; object-fit: contain; background: var(--inset); }
.changelog-entry .split time { font-size: .76rem; }
.chat-people { position: relative; padding: 0; border: 0; }
.chat-people summary { padding: 2px 8px; border: 1px solid #abc1d6; border-radius: 3px; background: #293f61; color: #fff4d9; }
.chat-people summary:is(:hover, :focus-visible) { background: #365781; }
[data-chat-count] { margin-inline-start: 5px; color: #ffdc88; }
.chat-people-panel {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 5px) 0 auto auto;
  width: min(300px, 75vw);
  max-height: min(320px, 45vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--frame);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px #153b5260;
}
.chat-people-panel ul { margin: 0; padding: 0; list-style: none; }
.chat-people-panel li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px; overflow-wrap: anywhere; }
.chat-people-panel li + li { border-top: 1px solid var(--border); }
.chat-people-panel p { margin: 4px; }
.chat-people-panel p:empty { display: none; }
.chat-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: repeating-linear-gradient(27deg, transparent 0 18px, #49929d1c 19px 20px),
    repeating-linear-gradient(-27deg, transparent 0 18px, #49929d1c 19px 20px), var(--inset);
}
/* Infobus interior capture by Laura, https://habboxwiki.com/File:Infobus_Interior.png */
.chat-stage::before {
  content: "";
  position: absolute;
  inset: 8px 0 0 auto;
  width: min(80%, 680px);
  background: url('./infobus-interior.png') right bottom / contain no-repeat;
  image-rendering: pixelated;
  opacity: .52;
  mask-image: linear-gradient(to right, transparent, #000 28% 94%, transparent),
    linear-gradient(to bottom, transparent, #000 14% 88%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.chat-feed {
  position: relative;
  min-height: 230px;
  height: min(52vh, 540px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
}
.chat-feed:focus-visible { outline-offset: -3px; }
.chat-feed ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chat-message { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 9px; }
.chat-message > img { background: var(--paper); border: 1px solid var(--border); border-radius: 3px; }
.chat-bubble { width: fit-content; max-width: 100%; padding: 4px 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); box-shadow: 0 2px #102c3928; }
.chat-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.chat-byline time, .chat-guest { font-size: .73rem; color: var(--muted); }
.chat-byline .chat-remove-message { color: #8a2929; font-size: .73rem; }
[data-chat-moderation] [hidden] { display: none; }
.chat-guest { padding: 0 4px; border: 1px solid var(--border); border-radius: 3px; background: var(--inset); }
.chat-body { margin: 1px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-controls { margin-top: 12px; }
.chat-compose, .chat-nickname { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.chat-compose label { flex: 1 1 220px; }
.chat-nickname label { flex: 0 1 220px; }
:is(.chat-compose, .chat-nickname) label { margin: 0; }
.chat-controls > p { margin-bottom: 8px; }
[data-chat-feedback] { min-height: 1.4em; margin: 8px 0 0; }
body[data-district="chat"] button.chat-text-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  box-shadow: none;
  text-align: start;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
body[data-district="chat"] button.chat-text-button::before { content: none; }
.chat-blocked-link { padding: 0 4px; border: 1px solid var(--border); border-radius: 2px; color: var(--muted); }
.chat-dialog { width: min(480px, calc(100% - 24px)); padding: 16px; border: 2px solid var(--frame); border-radius: 5px; background: var(--paper); color: var(--ink); box-shadow: 0 4px #1435478c; }
.chat-dialog::backdrop { background: #102837af; }
.chat-dialog h2 { margin: -16px -16px 12px; padding: 8px 16px; background: linear-gradient(var(--room-light) 49%, var(--room) 50%); color: #fff4d9; }
.chat-dialog .actions { margin-bottom: 0; }
.chat-link-address { overflow-wrap: anywhere; }
button.chat-danger { background: linear-gradient(#a43930 45%, #8e2d28 46%); border-color: #632322; color: #fff3ec; }
button.chat-danger:is(:hover, :focus-visible) { background: #79231e; color: #fff; }
[data-profile-summary] { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; overflow-wrap: anywhere; }
.chat-profile-actions { display: grid; justify-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.chat-profile-actions [hidden] { display: none; }
.chat-profile-avatar { width: 56px; height: 86px; object-fit: contain; image-rendering: pixelated; }
.chat-modal-badge { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 4px 0; }
.chat-modal-badge img { image-rendering: pixelated; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px 18px;
  margin: 0 auto 13px;
  padding: 11px 14px;
  border: 1px solid var(--frame);
  border-radius: 4px;
  background: #204d65;
  color: #d5eaf3;
  font-size: .73rem;
}
.site-footer strong, .site-footer a { color: #fff1c7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 15px; }

:is(.city-navbar nav a, .button, button, .city-toggle a, .city-places a):not(:has(img, canvas))::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 6px;
  background: var(--glyph-bg, currentColor);
  clip-path: var(--glyph, polygon(0 33%, 44% 33%, 44% 0, 67% 0, 67% 22%, 84% 22%, 84% 40%, 100% 40%, 100% 60%, 84% 60%, 84% 78%, 67% 78%, 67% 100%, 44% 100%, 44% 67%, 0 67%));
  transition: transform .16s ease, filter .16s ease;
}
:is(.city-navbar nav a, .button, button:not(:disabled), .city-toggle a, .city-places a):is(:hover, :focus-visible)::before,
:is(.button, button:not(:disabled), .user-menu summary):is(:hover, :focus-visible) :is(img, canvas) {
  transform: translate(2px, -2px);
  filter: brightness(1.32) saturate(1.2);
}
:is(.button, button, .user-menu summary) :is(img, canvas) { transition: transform .16s ease, filter .16s ease; }

body[data-theme="dark"] {
  --ink: #e3f1f4;
  --wall: #203747;
  --paper: #264455;
  --inset: #203b4a;
  --border: #608193;
  --muted: #c0d6dd;
  background: linear-gradient(#335873, #213547);
}
body[data-theme="dark"] .city-world { filter: brightness(.68) saturate(.8); }
body[data-theme="dark"] .panel { background: var(--paper); }

@media (max-width: 935px) {
  .city-plaza { grid-template: "main social" "tools social" / minmax(0, 1fr) minmax(175px, .36fr); }
}
@media (max-width: 800px) {
  .panel > .split { margin: -20px -20px 12px; }
  .account-menu > h2 { margin: -14px -14px 10px; }
}
@media (max-width: 640px) {
  .site-frame { width: calc(100% - 26px); margin-block: 9px 20px; }
  .scene-stage { width: max(1170px, 190vh); }
  .wrap { width: calc(100% - 18px); }
  .site-mast { min-height: 67px; padding: 2px 9px; }
  .site-mast .brand { width: 163px; }
  .mast-identity { gap: 8px; }
  .site-mast { flex-wrap: wrap; }
  .mast-wallet { flex: 1 1 245px; margin-bottom: 6px; }
  .city-navbar { padding-inline: 7px; justify-content: center; }
  .city-navbar nav { flex-basis: 100%; justify-content: center; }
  .city-navbar nav a { padding: 5px 6px 6px; font-size: .64rem; }
  .city-navbar nav a::before { width: 8px; height: 8px; margin-inline-end: 4px; }
  .publish-menu { position: static; }
  .publish-menu-panel { inset: calc(100% - 3px) 10px auto; min-width: 0; }
  .city-header .site-tools input { max-width: 129px; }
  .city-plaza { grid-template: "main" "tools" "social" / minmax(0, 1fr); }
  .plaza-welcome { grid-template-columns: minmax(0, 1fr); }
  .welcome-copy { padding: 13px; }
  .welcome-reception { margin: 4px 10px 9px; }
  .reception-bubble { max-width: 70%; }
  .panel > .split { margin: -18px -18px 12px; }
  .account-menu > h2 { margin: -14px -14px 10px; }
}

.city-travel {
  position: fixed;
  z-index: 5;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  color: #fff3d3;
  background: #234c61;
  border: 1px solid #173445;
  border-radius: 4px;
  box-shadow: inset 0 1px #efc26e, 0 3px #132d43a0;
  font-weight: 700;
  pointer-events: none;
}
.city-travel:not([hidden]) { display: flex; }
.city-travel-floor {
  position: relative;
  flex: none;
  width: 64px;
  height: 38px;
  overflow: hidden;
  border: 1px solid #173445;
  border-radius: 2px;
  background: repeating-linear-gradient(28deg, transparent 0 7px, #72a29f 7px 8px),
    repeating-linear-gradient(-28deg, transparent 0 7px, #72a29f 7px 8px), #365e66;
}
.city-travel-floor i {
  position: absolute;
  inset: 2px auto auto 1px;
  width: 21px;
  height: 32px;
  image-rendering: pixelated;
  background: center / auto 32px no-repeat url('./paseante-0.png');
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .city-travel-floor i {
    background-image: url('./paseante-0.png'), url('./paseante-1.png'), url('./paseante-2.png'), url('./paseante-3.png');
    animation: travel-stride 320ms steps(1) infinite, travel-cross 560ms linear infinite;
  }
  .reception-guest { animation: reception-arrival 21s linear infinite; }
  .reception-guest-still { animation: reception-rest 21s steps(1) infinite; }
  .reception-guest-walking { animation: reception-walk 21s steps(1) infinite; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 120ms ease-out both page-out; }
  ::view-transition-new(root) { animation: 190ms ease-out both page-in; }
}
@keyframes travel-stride {
  0% { background-position: center, -32px center, -32px center, -32px center; }
  25% { background-position: -32px center, center, -32px center, -32px center; }
  50% { background-position: -32px center, -32px center, center, -32px center; }
  75% { background-position: -32px center, -32px center, -32px center, center; }
}
@keyframes travel-cross { to { transform: translateX(43px); } }
@keyframes reception-arrival {
  0% { left: 38.3%; top: 41.7%; opacity: 0; }
  5% { opacity: 1; }
  13% { left: 40%; top: 45.3%; }
  28%, 89% { left: 44.5%; top: 56.4%; opacity: 1; }
  94%, 100% { left: 44.5%; top: 56.4%; opacity: 0; }
}
@keyframes reception-rest { 0% { visibility: hidden; } 28%, 100% { visibility: visible; } }
@keyframes reception-walk { 0% { visibility: visible; } 28%, 100% { visibility: hidden; } }
@keyframes page-out { to { opacity: .35; } }
@keyframes page-in { from { opacity: .4; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  :is(.button, button) { transition: none; }
  :is(.city-navbar nav a, .button, button, .city-toggle a, .city-places a)::before,
  :is(.button, button, .user-menu summary) :is(img, canvas) { transition: none; }
  :is(.city-navbar nav a, .button, button, .city-toggle a, .city-places a):is(:hover, :focus-visible)::before,
  :is(.button, button, .user-menu summary):is(:hover, :focus-visible) :is(img, canvas) { transform: none; }
}
