/* Combobox de idioma: um botão com o idioma atual e uma lista suspensa. */
.aethel-language-menu { position: relative; display: inline-flex; flex: 0 0 auto; }
.aethel-language-menu .aethel-country-flag { display: block; width: 18px; height: 12px; flex: 0 0 auto; border-radius: 2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.aethel-language-trigger {
  display: inline-flex; height: 30px; align-items: center; gap: 6px; padding: 0 8px;
  border: 1px solid var(--ui-border-strong); border-radius: 7px; color: var(--ui-gold-bright, #f3dfaa);
  background: rgba(8, 13, 23, .9); cursor: pointer; font: inherit; transition: background .16s ease, border-color .16s ease;
}
.aethel-language-trigger small { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.aethel-language-trigger svg { opacity: .7; transition: transform .16s ease; }
.aethel-language-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.aethel-language-trigger:hover, .aethel-language-trigger:focus-visible, .aethel-language-trigger[aria-expanded="true"] {
  background: var(--ui-gold-soft); outline: none;
}
.aethel-language-list {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: grid; min-width: 184px; gap: 2px; padding: 5px;
  border: 1px solid var(--ui-border-strong); border-radius: 10px; background: #0a101c; box-shadow: 0 16px 38px rgba(0, 0, 0, .6);
}
/* Na tela de entrada o combobox fica junto à borda direita. */
.aethel-auth-topbar .aethel-language-list { right: 0; left: auto; }
.aethel-language-list button {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; align-items: center; gap: 9px; min-height: 32px; padding: 0 9px;
  border: 0; border-radius: 6px; color: #c9d0dc; background: transparent; cursor: pointer; font: 600 11px/1 "DM Sans", sans-serif; text-align: left; white-space: nowrap;
}
.aethel-language-list button:hover, .aethel-language-list button:focus-visible { color: var(--ui-gold-bright); background: var(--ui-gold-soft); outline: none; }
.aethel-language-list button[aria-selected="true"] { color: var(--ui-gold-bright); }
/* Fundo de página inteira + topo ("hero") sem moldura. Modelo: docs/site/referencia/3-acabamento-final.webp. */

/* ---------- Arte de fundo ---------- */
.portal-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #070c18;
  pointer-events: none;
}
.portal-backdrop picture { display: contents; }
/* A arte é 16:9 (1920×1080): cobre a tela e, quando sobra largura ou altura, corta mantendo o herói (≈40% da
   largura) e o portal dourado (≈76%) à vista. max-width: none anula o limite global de <img>. */
.portal-backdrop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 42% 32%;
}
.portal-backdrop-glow {
  /* Brilho dourado discreto sobre o portal da arte. */
  position: absolute; top: 2%; right: 8%; width: 32%; height: 52%;
  background: radial-gradient(ellipse, rgba(240, 196, 102, .14), transparent 65%);
  mix-blend-mode: screen;
  animation: portal-backdrop-glow 7s ease-in-out infinite alternate;
}
@keyframes portal-backdrop-glow { to { opacity: .45; } }
.portal-backdrop-veil {
  /* Véu azul-escuro só onde há texto: à esquerda (topo), à direita (cartão) e embaixo (rodapé). O herói, no meio,
     fica quase limpo. */
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 24, .86) 0, rgba(5, 10, 24, .6) 24%, rgba(5, 10, 24, .12) 46%, rgba(5, 10, 24, .2) 62%, rgba(5, 10, 24, .62) 82%, rgba(5, 10, 24, .78) 100%),
    linear-gradient(180deg, rgba(5, 10, 24, .55) 0, rgba(5, 10, 24, 0) 16%, rgba(5, 10, 24, 0) 62%, rgba(5, 10, 24, .85) 100%),
    linear-gradient(rgba(14, 28, 64, .18), rgba(14, 28, 64, .18));
}
/* Páginas com tabela e cartões de texto: véu mais forte. */
.portal-root[data-route="ranking"] .portal-backdrop-veil,
.portal-root[data-route="banidos"] .portal-backdrop-veil,
.portal-root[data-route="noticias"] .portal-backdrop-veil,
.portal-root[data-route="download"] .portal-backdrop-veil,
.portal-root[data-route="nao-encontrada"] .portal-backdrop-veil {
  background:
    linear-gradient(90deg, rgba(5, 10, 24, .9) 0, rgba(5, 10, 24, .58) 34%, rgba(5, 10, 24, .3) 55%, rgba(5, 10, 24, .55) 100%),
    linear-gradient(180deg, rgba(5, 10, 24, .55) 0, rgba(5, 10, 24, .12) 16%, rgba(5, 10, 24, .58) 42%, rgba(5, 10, 24, .92) 70%);
}

/* ---------- Topo (hero) ---------- */
.portal-hero { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: clamp(8px, 1.2vw, 14px); }
.portal-hero-logo {
  display: block;
  width: clamp(220px, 24vw, 380px);
  height: auto;
  aspect-ratio: 640 / 320;
  margin-left: -8px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .6));
}
.portal-hero-copy { max-width: 560px; }
.portal-hero-eyebrow { margin: 0; color: var(--ui-gold-bright); font: 700 12px/1.3 "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.portal-hero-title {
  margin: 8px 0 0;
  color: #f4f0e6;
  font: 600 clamp(30px, 3.4vw, 50px)/1.06 "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
  text-wrap: balance;
}
.portal-hero-title em { color: var(--ui-gold-bright); font-style: normal; }
.portal-hero-text { max-width: 460px; margin: 12px 0 0; color: #d3d8e0; font-size: 16px; line-height: 1.55; text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }

/* Início: letreiro grande, frase em duas linhas com serifa (a segunda dourada e itálica), tudo centralizado na
   coluna da esquerda, com fios dourados no sobretítulo e um losango embaixo. */
.portal-hero:not(.is-centered) { align-items: center; text-align: center; }
.portal-hero:not(.is-centered) .portal-hero-logo { width: clamp(280px, 30vw, 500px); margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 22px rgba(240, 196, 102, .18)); }
.portal-hero:not(.is-centered) .portal-hero-copy { display: grid; max-width: 600px; justify-items: center; }
.portal-hero:not(.is-centered) .portal-hero-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .2em; }
.portal-hero:not(.is-centered) .portal-hero-eyebrow::before,
.portal-hero:not(.is-centered) .portal-hero-eyebrow::after { width: clamp(28px, 4vw, 64px); height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--ui-gold)); }
.portal-hero:not(.is-centered) .portal-hero-eyebrow::after { background: linear-gradient(90deg, var(--ui-gold), transparent); }
.portal-hero:not(.is-centered) .portal-hero-title {
  margin-top: 10px;
  font: 700 clamp(38px, 4.3vw, 72px)/1 "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: -.005em;
}
.portal-hero:not(.is-centered) .portal-hero-title em {
  display: block;
  margin-top: .04em;
  padding: 0 .08em .06em;
  background: linear-gradient(180deg, #fff1bf 8%, #f3cf72 45%, #c8912f 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .7));
}
.portal-hero:not(.is-centered) .portal-hero-text { max-width: 440px; margin: 16px auto 0; font-size: clamp(15px, 1.15vw, 18px); color: #e3e7ef; }
.portal-hero-divider {
  position: relative; display: block; width: min(340px, 80%); height: 14px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--ui-gold) 30%, var(--ui-gold-bright) 50%, var(--ui-gold) 70%, transparent) center / 100% 1px no-repeat;
}
.portal-hero-divider i {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  border: 1px solid var(--ui-gold-bright); background: linear-gradient(135deg, #fff0bd, #c8912f);
  box-shadow: 0 0 10px rgba(240, 196, 102, .55);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Ranking, Download e demais páginas: letreiro centralizado no topo e o título centralizado embaixo. */
.portal-hero.is-centered { align-items: center; gap: 2px; text-align: center; }
.portal-hero.is-centered .portal-hero-logo { width: clamp(220px, 17vw, 260px); margin: 0 auto; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .7)); }
.portal-hero.is-centered .portal-hero-copy { max-width: 720px; }
.portal-hero.is-centered .portal-hero-title { margin-top: 2px; font-size: clamp(20px, 1.9vw, 28px); }
.portal-hero.is-centered .portal-hero-text { margin-top: 6px; font-size: 15px; }
.portal-hero.is-centered .portal-hero-text { max-width: 620px; margin-right: auto; margin-left: auto; }

/* Telas baixas (1366×768, 1280×720 e zoom alto): letreiro e frase menores para caber sem rolar. */
@media (min-width: 980px) and (max-height: 820px) {
  .portal-hero:not(.is-centered) .portal-hero-logo { width: clamp(240px, 25vw, 380px); }
  .portal-hero:not(.is-centered) .portal-hero-title { font-size: clamp(34px, 3.6vw, 54px); }
  .portal-hero:not(.is-centered) .portal-hero-text { margin-top: 10px; }
  .portal-hero-divider { margin-top: 12px; }
}

/* ---------- Tablet e celular: a arte fica só no alto da página e se dissolve no azul-escuro ---------- */
@media (max-width: 979px) {
  /* Sem fixed no celular e no tablet (pesa e falha no iOS): a arte rola junto, cobrindo a primeira tela. */
  .portal-backdrop { position: absolute; bottom: auto; height: max(100svh, 640px); }
  .portal-backdrop img { object-position: 40% 0; }
  .portal-backdrop-glow { display: none; }
  .portal-backdrop-veil,
  .portal-root[data-route] .portal-backdrop-veil {
    background:
      linear-gradient(180deg, rgba(5, 10, 24, .62) 0, rgba(5, 10, 24, .22) 22%, rgba(5, 10, 24, .3) 44%, rgba(5, 10, 24, .88) 74%, #070c18 100%),
      linear-gradient(rgba(14, 28, 64, .2), rgba(14, 28, 64, .2));
  }
  .portal-hero:not(.is-centered) .portal-hero-logo { width: clamp(220px, 40vw, 320px); }
  .portal-hero:not(.is-centered) .portal-hero-copy { max-width: 620px; }
  .portal-hero:not(.is-centered) .portal-hero-title { margin-top: 6px; font-size: clamp(30px, 5.4vw, 44px); }
  .portal-hero:not(.is-centered) .portal-hero-text { margin-top: 8px; font-size: 15px; }
  .portal-hero-divider { margin-top: 10px; }
}
@media (max-width: 560px) {
  /* Recorte em retrato (760×1080): o herói fica no centro, atrás do letreiro. */
  .portal-backdrop img { object-position: 60% 0; }
  .portal-hero .portal-hero-logo,
  .portal-hero:not(.is-centered) .portal-hero-logo { width: clamp(180px, 56vw, 230px); margin: 0 auto; }
  .portal-hero .portal-hero-copy { max-width: 100%; }
  .portal-hero .portal-hero-eyebrow,
  .portal-hero:not(.is-centered) .portal-hero-eyebrow { font-size: 11px; letter-spacing: .14em; }
  .portal-hero .portal-hero-title { margin-top: 4px; font-size: clamp(18px, 5.2vw, 21px); line-height: 1.12; }
  .portal-hero:not(.is-centered) .portal-hero-title { font-size: clamp(27px, 8vw, 34px); line-height: 1.02; }
  .portal-hero .portal-hero-text,
  .portal-hero-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-backdrop-glow { animation: none; }
}

/* Ranking: o título aparece dentro da moldura do ranking; no topo fica só o letreiro (o H1 continua para leitores de tela). */
.portal-stage-ranking .portal-hero-copy, .portal-stage-banidos .portal-hero-copy, .portal-stage-noticias .portal-hero-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/*
 * Moldura dourada do site (mesmo desenho do cartão de entrar): filete duplo, quatro cantos em esquadro, o emblema do
 * site no topo com brilho dourado sutil e um losango no pé. Usada no Download e no Ranking Geral (portal e jogo).
 * Azul-escuro com dourado (tokens --ui-*); nada de roxo.
 */
/* Cantoneiras finas (filete duplo dourado com losango), uma por canto: usadas pela moldura dourada e pelo cartão de entrar. */
:root {
  --gold-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cg transform=''%3E%3Cpath d='M1.5 33V1.5H33' fill='none' stroke='%23efcf7d' stroke-width='1.2'/%3E%3Cpath d='M5.5 25V5.5H25' fill='none' stroke='%23efcf7d' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M10 6.8L13.2 10L10 13.2L6.8 10Z' fill='%23f3cf72' stroke='%23fff0bd' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E");
  --gold-corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cg transform='translate(34 0) scale(-1 1)'%3E%3Cpath d='M1.5 33V1.5H33' fill='none' stroke='%23efcf7d' stroke-width='1.2'/%3E%3Cpath d='M5.5 25V5.5H25' fill='none' stroke='%23efcf7d' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M10 6.8L13.2 10L10 13.2L6.8 10Z' fill='%23f3cf72' stroke='%23fff0bd' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E");
  --gold-corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cg transform='translate(0 34) scale(1 -1)'%3E%3Cpath d='M1.5 33V1.5H33' fill='none' stroke='%23efcf7d' stroke-width='1.2'/%3E%3Cpath d='M5.5 25V5.5H25' fill='none' stroke='%23efcf7d' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M10 6.8L13.2 10L10 13.2L6.8 10Z' fill='%23f3cf72' stroke='%23fff0bd' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E");
  --gold-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cg transform='translate(34 34) scale(-1 -1)'%3E%3Cpath d='M1.5 33V1.5H33' fill='none' stroke='%23efcf7d' stroke-width='1.2'/%3E%3Cpath d='M5.5 25V5.5H25' fill='none' stroke='%23efcf7d' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M10 6.8L13.2 10L10 13.2L6.8 10Z' fill='%23f3cf72' stroke='%23fff0bd' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E");
  /* As quatro cantoneiras como camadas de fundo, a 7 px da borda. */
  --gold-corners:
    var(--gold-corner-tl) 7px 7px / 34px 34px no-repeat, var(--gold-corner-tr) calc(100% - 7px) 7px / 34px 34px no-repeat,
    var(--gold-corner-bl) 7px calc(100% - 7px) / 34px 34px no-repeat, var(--gold-corner-br) calc(100% - 7px) calc(100% - 7px) / 34px 34px no-repeat;
  /* Emblema do site encaixado na moldura (metade para fora), sobre um disco escuro que esconde o filete e um halo dourado. */
  --gold-emblem:
    url("/assets/brand/etherion-idle-emblema-256.webp") center / 78% no-repeat,
    radial-gradient(circle, rgba(6, 11, 24, .96) 0 40%, rgba(240, 196, 102, .16) 48%, transparent 66%);
}
.gold-frame {
  --gold-frame-surface: linear-gradient(165deg, rgba(10, 18, 36, .92), rgba(5, 10, 22, .94));
  position: relative;
  margin-top: 48px;
  padding: 56px clamp(16px, 2.6vw, 32px) 32px;
  border: 1px solid rgba(236, 200, 112, .72);
  border-radius: 12px;
  background: var(--gold-corners), var(--gold-frame-surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(5, 10, 24, .85), 0 0 0 2px rgba(236, 200, 112, .26), 0 0 36px rgba(240, 196, 102, .14), 0 24px 56px rgba(0, 0, 0, .55),
    inset 0 0 0 5px rgba(5, 10, 24, .55), inset 0 0 0 6px rgba(236, 200, 112, .2);
}
/* Emblema do site no alto da moldura. */
.gold-frame::before {
  position: absolute; z-index: 2; top: -44px; left: 50%; width: 88px; height: 88px; content: "";
  background: var(--gold-emblem); border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(240, 196, 102, .35)) drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
  transform: translateX(-50%); pointer-events: none;
}
.gold-frame::after {
  position: absolute; z-index: 2; bottom: -7px; left: 50%; width: 12px; height: 12px; content: "";
  border: 1px solid #fff0bd; background: linear-gradient(135deg, #fff0bd, #c8912f);
  box-shadow: 0 0 12px rgba(240, 196, 102, .6); transform: translateX(-50%) rotate(45deg); pointer-events: none;
}
/* Sobretítulo com fios dourados dos dois lados ("— HALL DA GLÓRIA —"). */
.gold-frame-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0;
  color: var(--ui-gold-bright, #ead28a); font: 700 12px/1.3 "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase;
}
.gold-frame-eyebrow::before, .gold-frame-eyebrow::after { width: clamp(22px, 5vw, 64px); height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--ui-gold, #d4b76e)); }
.gold-frame-eyebrow::after { background: linear-gradient(90deg, var(--ui-gold, #d4b76e), transparent); }
/* Fio com losango no centro, para separar o título do conteúdo. */
.gold-frame-divider {
  display: block; height: 12px; margin: 10px auto 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0L12 6L6 12L0 6Z' fill='%23f3cf72' stroke='%23fff0bd' stroke-width='1'/%3E%3C/svg%3E") center / 11px 11px no-repeat,
    linear-gradient(90deg, transparent 8%, rgba(236, 200, 112, .55) 40%, rgba(236, 200, 112, .55) 60%, transparent 92%) center / 100% 1px no-repeat;
}
/* Botão principal dourado (igual ao "Entrar no jogo"): chanfro curto, gradiente refinado e borda interna clara. */
.gold-frame-button, .portal-root .aethel-auth-root .aethel-auth-submit {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 32px;
  border: 0; border-radius: 3px; color: #241805;
  background: linear-gradient(180deg, #fbe6a2 0%, #efcd74 38%, #d9a845 72%, #c08f33 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 205, .65), inset 0 -2px 0 rgba(120, 78, 18, .35), 0 6px 18px rgba(240, 180, 70, .22);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  font: 700 16px/1 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: .02em; text-decoration: none; text-shadow: 0 1px 0 rgba(255, 240, 200, .55);
  cursor: pointer; transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
.gold-frame-button:hover, .portal-root .aethel-auth-root .aethel-auth-submit:not(:disabled):hover { filter: brightness(1.07) saturate(1.05); transform: none; box-shadow: inset 0 0 0 1px rgba(255, 244, 205, .8), inset 0 -2px 0 rgba(120, 78, 18, .35), 0 8px 24px rgba(240, 180, 70, .32); }
.gold-frame-button:active, .portal-root .aethel-auth-root .aethel-auth-submit:not(:disabled):active { filter: brightness(.95); transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(255, 244, 205, .5), inset 0 2px 4px rgba(120, 78, 18, .35); }
.gold-frame-button:focus-visible, .portal-root .aethel-auth-root .aethel-auth-submit:focus-visible { outline: 2px solid #fff0bd; outline-offset: 3px; }
.gold-frame-button.is-disabled, .portal-root .aethel-auth-root .aethel-auth-submit:disabled { cursor: default; filter: grayscale(.5) brightness(.85); opacity: .7; }
.portal-root .aethel-auth-root .aethel-auth-submit[aria-busy="true"], .portal-root .aethel-auth-root .aethel-auth-submit:has(.aethel-auth-spinner) { cursor: progress; filter: none; opacity: 1; }
@media (max-width: 560px) {
  .gold-frame { margin-top: 40px; padding-top: 48px; }
  .gold-frame::before { top: -38px; width: 76px; height: 76px; }
}

/* Cabeçalho do painel ornamentado (OrnatePanel): sobretítulo, título em serifa e fio com losango. */
.ornate-panel__head, .ranking-frame-head { display: grid; justify-items: center; margin: 0 0 4px; text-align: center; }
.ornate-panel__title {
  margin: 4px 0 0; color: #f4f0e6; font: 700 clamp(26px, 3vw, 38px)/1.05 "Cormorant Garamond", Georgia, serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
/* Dentro do painel, a superfície dos painéis antigos some (a moldura já é a superfície). */
.gold-frame .ranking-panel { padding: 14px 0 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Portal público: cabeçalho → conteúdo → rodapé. Azul-escuro com dourado (tokens --ui-*), turquesa só como detalhe. */
.portal-root {
  --portal-arcane: #6fd8cc;
  --portal-max: 1200px;
  --portal-gutter: clamp(12px, 3vw, 32px);
  /* Superfície única do portal (vidro azul-escuro com borda dourada): cabeçalho, submenu, cartão de login, cartões
     do Download, painéis do Ranking, Banidos e Notícias e rodapé usam estes tokens, nunca valores copiados. */
  --portal-surface: linear-gradient(160deg, rgba(14, 22, 36, .88), rgba(8, 13, 23, .9));
  --portal-surface-border: var(--ui-border-strong);
  --portal-surface-blur: blur(8px);
  --portal-surface-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .04);
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 320px;
  min-height: 100dvh;
  flex-direction: column;
  color: var(--ui-text);
  background: #080d17; /* A arte de fundo (PortalBackdrop) fica por cima desta cor. */
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: clip;
}

.portal-root[hidden] { display: none !important; }
/* Início: o carregamento só aparece enquanto a tela de entrar ainda não chegou. */
.portal-inicio-slot > .portal-loading:not(:only-child) { display: none; }

/* Cápsula comum das utilidades do cabeçalho (idioma e som): mesmo vidro, borda, raio, altura e letra,
   tirados dos tokens de superfície do portal. */
.portal-utilities .portal-pill {
  display: inline-flex; box-sizing: border-box; height: 36px; min-height: 36px; align-items: center; justify-content: center; gap: 7px;
  padding: 0 10px; border: 1px solid var(--portal-surface-border); border-radius: 8px;
  background: var(--portal-surface); -webkit-backdrop-filter: var(--portal-surface-blur); backdrop-filter: var(--portal-surface-blur);
  font: 600 12px/1 "Space Grotesk", "Segoe UI", sans-serif; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}
.portal-utilities .portal-pill small { font: inherit; letter-spacing: .06em; }
.portal-utilities button.portal-pill { cursor: pointer; }
.portal-utilities button.portal-pill:hover, .portal-utilities button.portal-pill[aria-expanded="true"] { border-color: var(--ui-gold); background: var(--ui-gold-soft); }

.portal-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.portal-skip {
  position: absolute; z-index: 50; top: 8px; left: 8px;
  padding: 10px 14px; border: 1px solid var(--ui-gold); border-radius: 8px;
  color: #17150d; background: var(--ui-gold-bright); font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.portal-skip:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; }

/* Cabeçalho */
.portal-header {
  position: relative; z-index: 20;
  border-bottom: 1px solid var(--portal-surface-border);
  background: var(--portal-surface); -webkit-backdrop-filter: var(--portal-surface-blur); backdrop-filter: var(--portal-surface-blur);
}
/* Fio dourado com losango no centro: embaixo do cabeçalho e em cima do rodapé (como no modelo final). */
.portal-header, .portal-footer { border-color: rgba(236, 200, 112, .42); }
.portal-header::after, .portal-footer::before {
  position: absolute; left: 50%; width: 9px; height: 9px; content: "";
  border: 1px solid #fff0bd; background: linear-gradient(135deg, #fff0bd, #c8912f);
  box-shadow: 0 0 10px rgba(240, 196, 102, .55); transform: translateX(-50%) rotate(45deg); pointer-events: none;
}
.portal-header::after { bottom: -5px; }
.portal-footer::before { top: -5px; }
.portal-header-inner {
  display: grid;
  width: min(var(--portal-max), 100%);
  margin: 0 auto;
  padding: 8px var(--portal-gutter);
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav utils";
  align-items: center;
  gap: 8px 20px;
}
.portal-brand { grid-area: brand; display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px; border-radius: 8px; color: #efe6cf; font: 700 17px/1 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); white-space: nowrap; }
.portal-brand b { color: var(--ui-gold-bright); font-weight: 700; }
.portal-brand { gap: 8px; }
.portal-brand-icon { display: block; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 7px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.portal-brand:hover { color: #fff; }

.portal-nav { grid-area: nav; min-width: 0; }
.portal-nav > ul { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.portal-nav > ul > li > a, .portal-nav-trigger {
  position: relative; display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 6px;
  padding: 0 14px; border: 1px solid transparent; border-radius: 8px;
  color: var(--ui-muted); background: transparent; font: 600 15px/1.2 "Space Grotesk", "Segoe UI", sans-serif; text-align: center; text-decoration: none;
  cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.portal-nav > ul > li > a:hover, .portal-nav-trigger:hover, .portal-nav-group.is-open .portal-nav-trigger { color: var(--ui-text); background: rgba(255, 255, 255, .04); border-color: var(--ui-border); }
.portal-nav > ul > li > a[aria-current="page"], .portal-nav-trigger.is-active { color: var(--ui-gold-bright); background: var(--ui-gold-soft); border-color: var(--ui-border-strong); }
.portal-nav > ul > li > a[aria-current="page"]::after, .portal-nav-trigger.is-active::after {
  position: absolute; right: 22%; bottom: 5px; left: 22%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ui-gold-bright), transparent); content: "";
}
/* Ícones do cabeçalho: uma família só (react-icons/gi), dourados, alinhados ao texto. */
.portal-nav-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ui-gold); }
.portal-nav-caret { width: 0; height: 0; flex: 0 0 auto; border-top: 5px solid currentColor; border-right: 4px solid transparent; border-left: 4px solid transparent; opacity: .75; transition: transform .16s ease; }
.portal-nav-group.is-open .portal-nav-caret { transform: rotate(180deg); }

/* Submenu "Jogo": painel azul-escuro com borda dourada fina, dentro da largura da tela. */
.portal-nav-group { position: relative; }
.portal-submenu {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 50%;
  display: grid; width: min(320px, calc(100vw - 24px)); gap: 2px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--portal-surface-border); border-radius: 14px;
  background: var(--portal-surface); -webkit-backdrop-filter: var(--portal-surface-blur); backdrop-filter: var(--portal-surface-blur);
  box-shadow: var(--portal-surface-shadow);
  transform: translateX(-50%);
  animation: portal-submenu-in .16s ease-out;
}
.portal-submenu[hidden] { display: none; }
@keyframes portal-submenu-in { from { opacity: 0; transform: translate(-50%, -6px); } }
/* Ponta apontando para o "Jogo" e ponte invisível no vão (o submenu não fecha no caminho do mouse). */
.portal-submenu::before { position: absolute; top: -12px; right: 0; left: 0; height: 12px; content: ""; }
.portal-submenu::after {
  position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; content: "";
  border-top: 1px solid var(--portal-surface-border); border-left: 1px solid var(--portal-surface-border);
  background: rgb(14, 22, 36); transform: translateX(-50%) rotate(45deg);
}
.portal-submenu a {
  display: flex; width: 100%; min-width: 0; min-height: 52px; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; color: #d7dce5; text-align: left; text-decoration: none;
}
.portal-submenu-icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ui-gold); }
.portal-submenu a > span { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.portal-submenu a b { font: 600 15px/1.2 "Space Grotesk", "Segoe UI", sans-serif; white-space: nowrap; }
.portal-submenu a small { color: var(--ui-muted); font-size: 12px; line-height: 1.3; }
.portal-submenu a:hover, .portal-submenu a:focus-visible { color: var(--ui-gold-bright); background: var(--ui-gold-soft); }
.portal-submenu a[aria-current="page"] { color: var(--ui-gold-bright); background: rgba(212, 183, 110, .08); box-shadow: inset 3px 0 0 var(--ui-gold); }
.portal-nav-trigger span { white-space: nowrap; }

.portal-utilities { grid-area: utils; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.portal-utilities .aethel-language-list { right: 0; left: auto; }
/* Fundo, borda, altura e letra do som e do idioma vêm da cápsula comum `.portal-pill` (acima). */
.portal-sound { min-width: 36px; color: var(--ui-gold-bright); }
.portal-sound[aria-pressed="false"] { color: var(--ui-muted); }

.portal-root a:focus-visible, .portal-root button:focus-visible, .portal-root [tabindex]:focus-visible,
.portal-root input:focus-visible, .portal-root select:focus-visible {
  outline: 2px solid var(--ui-gold-bright); outline-offset: 2px;
}
.portal-main:focus { outline: none; }

/* Conteúdo */
.portal-main { position: relative; z-index: 1; display: flex; min-width: 0; flex: 1 0 auto; flex-direction: column; }
.portal-continue {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 16px;
  padding: 10px 14px; border: 1px solid var(--ui-border-strong); border-radius: 12px;
  background: var(--portal-surface); -webkit-backdrop-filter: var(--portal-surface-blur); backdrop-filter: var(--portal-surface-blur); color: var(--ui-text); font-size: 15px;
}

.portal-button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; border: 1px solid var(--ui-border-strong); border-radius: 10px;
  color: var(--ui-gold-bright); background: rgba(8, 13, 23, .7);
  font: 700 15px/1.2 "Space Grotesk", "Segoe UI", sans-serif; text-align: center; text-decoration: none; cursor: pointer;
  transition: filter .16s ease, background .16s ease, border-color .16s ease;
}
.portal-button:hover { background: var(--ui-gold-soft); border-color: var(--ui-gold); }
.portal-button-primary { border-color: rgba(245, 220, 151, .7); color: #17150d; background: linear-gradient(105deg, #c9b172, #e0ca87 49%, #c6ad6b); }
.portal-button-primary:hover { filter: brightness(1.08); background: linear-gradient(105deg, #c9b172, #e0ca87 49%, #c6ad6b); }

.portal-loading { display: flex; flex: 1; min-height: 40vh; align-items: center; justify-content: center; gap: 10px; color: var(--ui-muted); font-size: 15px; }
.portal-spinner { width: 18px; height: 18px; border: 2px solid var(--ui-border); border-top-color: var(--ui-gold); border-radius: 50%; animation: portal-spin .8s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }

/* Página não encontrada */
.portal-notfound { display: grid; flex: 1; place-content: center; justify-items: center; gap: 14px; padding: 48px var(--portal-gutter); text-align: center; }
.portal-notfound h1 { margin: 0; color: var(--ui-text); font: 700 clamp(24px, 4vw, 34px)/1.15 "Space Grotesk", sans-serif; }
.portal-notfound p { max-width: 460px; margin: 0; color: var(--ui-muted); }

/* Rodapé */
.portal-footer {
  position: relative; z-index: 2; border-top: 1px solid rgba(236, 200, 112, .42);
  background: var(--portal-surface); -webkit-backdrop-filter: var(--portal-surface-blur); backdrop-filter: var(--portal-surface-blur);
}
.portal-footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px;
  width: min(var(--portal-max), 100%); margin: 0 auto; padding: 12px var(--portal-gutter);
  color: var(--ui-muted); font-size: 13px;
}
.portal-footer a { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; border-radius: 6px; color: var(--ui-gold-bright); font-weight: 600; text-decoration: none; }
.portal-footer a svg { color: #8ea1e8; }
.portal-footer a:hover { text-decoration: underline; }

/* Palco: topo (letreiro e frase) + conteúdo da página, por cima da arte de fundo. */
.portal-stage {
  display: grid;
  width: min(var(--portal-max), calc(100% - 2 * var(--portal-gutter)));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 64px) 0 clamp(28px, 4vw, 56px);
  gap: clamp(20px, 3vw, 36px);
  align-content: start;
}
.portal-stage-content { min-width: 0; }
/* Fora do Início: topo baixo, para o título e o começo do conteúdo aparecerem sem rolar (1366×768). */
.portal-stage:not(.portal-stage-inicio) { padding-top: clamp(10px, 1.6vw, 20px); gap: clamp(10px, 1.4vw, 18px); }
/* Início no desktop: texto à esquerda, cartão à direita (o herói da arte fica no meio). */
@media (min-width: 980px) {
  .portal-stage-inicio { min-height: calc(100svh - 140px); grid-template-columns: minmax(0, 1fr) minmax(400px, 480px); align-items: center; column-gap: clamp(28px, 6vw, 120px); }
}
/* Telas largas (modelo final): letreiro e frase numa coluna à esquerda, o herói da arte livre no meio e o cartão à
   direita, usando quase a largura toda da tela. */
@media (min-width: 1200px) {
  .portal-stage-inicio {
    width: min(1720px, calc(100% - 2 * clamp(24px, 5.2vw, 112px)));
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr) minmax(400px, 470px);
    column-gap: clamp(16px, 2vw, 40px);
  }
  .portal-stage-inicio > .portal-stage-content { grid-column: 3; }
}
/* Ranking, Banidos e Notícias têm os próprios painéis (ranking.css e board.css usam os mesmos tokens);
   a página não encontrada ganha um painel aqui. */
.portal-notfound .gold-frame { display: grid; width: min(560px, 100%); justify-items: center; gap: 12px; margin-right: auto; margin-left: auto; text-align: center; }
.portal-notfound h1 { font-family: "Cormorant Garamond", Georgia, serif !important; font-size: clamp(30px, 3vw, 40px) !important; }
.portal-notfound .gold-frame-divider { width: 220px; margin: 0; }

/* Início: a tela de entrar fica dentro do layout, sem repetir idioma/som, marca nem rodapé. */
.portal-root .aethel-auth-root { display: block; min-width: 0; min-height: 0; padding: 0; overflow: visible; background: transparent; }
/* Cartão numa coluna só (a arte lateral saiu), semitransparente sobre a arte de fundo. */
.portal-root .aethel-auth-root .aethel-auth-shell {
  display: block; width: min(500px, 100%); min-height: 0; margin: 0 auto;
  border-color: var(--portal-surface-border); border-radius: 16px; background: var(--portal-surface);
  -webkit-backdrop-filter: var(--portal-surface-blur); backdrop-filter: var(--portal-surface-blur);
  box-shadow: var(--portal-surface-shadow);
}
/* Tela estreita: o Início usa o mesmo respiro das outras páginas e o cartão ocupa a largura toda, como os cartões delas. */
@media (max-width: 979px) {
  .portal-stage.portal-stage-inicio { padding-top: clamp(10px, 1.6vw, 20px); gap: clamp(10px, 1.4vw, 18px); }
  .portal-root .aethel-auth-root .aethel-auth-shell { width: 100%; }
}
.portal-root .aethel-auth-root .aethel-auth-form-side { padding: clamp(20px, 3.4vw, 34px) clamp(18px, 3.6vw, 36px); }

/* Cartão de entrar no modelo final (docs/site/referencia/3-acabamento-final.webp), também no cadastro e na recuperação
   de senha: moldura dourada com cantoneiras finas (goldFrame.css), emblema do site encaixado no alto, sobretítulo com
   fios, título em serifa, losango embaixo do título e no pé, campos discretos e o botão dourado (goldFrame.css).
   Espaçamentos na escala 4/8/12/16/24/32. Só a interface muda de cor: azul-escuro com dourado. */
.portal-root .aethel-auth-root .aethel-auth-shell {
  position: relative; overflow: visible; margin-top: 48px;
  border: 1px solid rgba(236, 200, 112, .72); border-radius: 12px;
  background: var(--gold-corners), linear-gradient(165deg, rgba(10, 18, 36, .92), rgba(5, 10, 22, .94));
  box-shadow: 0 0 0 1px rgba(5, 10, 24, .85), 0 0 0 2px rgba(236, 200, 112, .26), 0 0 36px rgba(240, 196, 102, .14), 0 24px 56px rgba(0, 0, 0, .55),
    inset 0 0 0 5px rgba(5, 10, 24, .55), inset 0 0 0 6px rgba(236, 200, 112, .2);
}
.portal-root .aethel-auth-root .aethel-auth-shell::before {
  /* Emblema do site encaixado na moldura: metade para fora, metade para dentro, sobre um disco escuro com halo. */
  position: absolute; z-index: 2; top: -44px; left: 50%; width: 88px; height: 88px; content: "";
  background: var(--gold-emblem); border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(240, 196, 102, .35)) drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
  transform: translateX(-50%); pointer-events: none;
}
.portal-root .aethel-auth-root .aethel-auth-shell::after {
  position: absolute; z-index: 2; bottom: -7px; left: 50%; width: 12px; height: 12px; content: "";
  border: 1px solid #fff0bd; background: linear-gradient(135deg, #fff0bd, #c8912f);
  box-shadow: 0 0 12px rgba(240, 196, 102, .6); transform: translateX(-50%) rotate(45deg); pointer-events: none;
}
/* Respiro proporcional: o emblema ocupa 44 px dentro do cartão; o sobretítulo começa 16 px abaixo dele. */
.portal-root .aethel-auth-root .aethel-auth-form-side { padding: 60px 32px 24px; border-radius: 12px; background: none; }
.portal-root .aethel-auth-root .aethel-auth-heading { margin-bottom: 16px; text-align: center; }
.portal-root .aethel-auth-root .aethel-auth-heading .aethel-auth-eyebrow { justify-content: center; gap: 12px; color: var(--ui-gold-bright); font-size: 11px; letter-spacing: .2em; }
.portal-root .aethel-auth-root .aethel-auth-heading .aethel-auth-eyebrow::before,
.portal-root .aethel-auth-root .aethel-auth-heading .aethel-auth-eyebrow::after { width: clamp(24px, 4vw, 48px); height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--ui-gold)); }
.portal-root .aethel-auth-root .aethel-auth-heading .aethel-auth-eyebrow::after { background: linear-gradient(90deg, var(--ui-gold), transparent); }
.portal-root .aethel-auth-root .aethel-auth-heading h2 {
  margin: 12px 0 4px; color: #f6f1e4; font: 700 clamp(30px, 2.5vw, 36px)/1.05 "Cormorant Garamond", Georgia, serif; letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.portal-root .aethel-auth-root .aethel-auth-heading > p:last-child { color: #aab3c3; font-size: 14px; font-weight: 400; }
.portal-root .aethel-auth-root .aethel-auth-heading::after {
  display: block; height: 12px; margin: 16px auto 0; content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0L12 6L6 12L0 6Z' fill='%23f3cf72' stroke='%23fff0bd' stroke-width='1'/%3E%3C/svg%3E") center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent 8%, rgba(236, 200, 112, .5) 40%, rgba(236, 200, 112, .5) 60%, transparent 92%) center / 100% 1px no-repeat;
}
/* Abas Entrar / Criar conta: sublinhado dourado definido e com brilho; a inativa clareia ao passar o mouse. */
.portal-root .aethel-auth-root .aethel-auth-tabs { margin-bottom: 16px; border-bottom-color: rgba(236, 200, 112, .18); }
.portal-root .aethel-auth-root .aethel-auth-tabs button { min-height: 40px; color: #8f9aab; font-size: 14px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.portal-root .aethel-auth-root .aethel-auth-tabs button:not(.selected):hover { color: #d9dee8; }
.portal-root .aethel-auth-root .aethel-auth-tabs button.selected { color: var(--ui-gold-bright); }
.portal-root .aethel-auth-root .aethel-auth-tabs button::after { right: 22%; left: 22%; bottom: -1px; height: 2px; border-radius: 2px; }
.portal-root .aethel-auth-root .aethel-auth-tabs button.selected::after { background: linear-gradient(90deg, transparent, #f3cf72 20%, #fff0bd 50%, #f3cf72 80%, transparent); box-shadow: 0 0 8px rgba(240, 196, 102, .7); }
/* Campos: rótulo leve, ícone e texto de exemplo apagados no mesmo tom; foco com borda dourada suave e brilho interno. */
.portal-root .aethel-auth-root .aethel-auth-form { gap: 12px; }
.portal-root .aethel-auth-root .aethel-auth-field { gap: 8px; color: #c3cad6; font-size: 13px; font-weight: 600; }
.portal-root .aethel-auth-root .aethel-auth-input-wrap { min-height: 46px; gap: 12px; padding: 0 12px; border-color: rgba(150, 166, 196, .2); border-radius: 8px; background: rgba(4, 9, 22, .62); color: #6f7b90; }
.portal-root .aethel-auth-root .aethel-auth-input-wrap svg { color: #6f7b90; }
.portal-root .aethel-auth-root .aethel-auth-input-wrap input { color: #eef0f4; font-weight: 400; }
.portal-root .aethel-auth-root .aethel-auth-input-wrap input::placeholder { color: #5f6b80; font-weight: 400; opacity: 1; }
.portal-root .aethel-auth-root .aethel-auth-input-wrap:focus-within { border-color: rgba(236, 200, 112, .62); background: rgba(8, 14, 30, .8); box-shadow: 0 0 0 3px rgba(240, 196, 102, .08), inset 0 0 12px rgba(240, 196, 102, .07); }
.portal-root .aethel-auth-root .aethel-auth-input-wrap:focus-within svg { color: var(--ui-gold); }
/* "Esqueci a senha": pequeno, à direita, logo abaixo do campo de senha. */
.portal-root .aethel-auth-root .aethel-auth-form .reg-verify-link { justify-self: end; align-self: flex-end; width: auto; margin: -4px 0 4px; padding: 2px 0; border: 0; color: #c9b27a; background: none; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.portal-root .aethel-auth-root .aethel-auth-form .reg-verify-link:hover { color: var(--ui-gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.portal-root .aethel-auth-root .aethel-auth-submit { width: 100%; margin-top: 4px; }
/* Aviso de segurança do pé: pequeno, discreto e centralizado. */
.portal-root .aethel-auth-root .aethel-auth-form-footer { justify-content: center; gap: 6px; margin-top: 24px; color: #788398; font-size: 11.5px; text-align: center; }
.portal-root .aethel-auth-root .aethel-auth-form-footer svg { width: 12px; height: 12px; color: rgba(236, 200, 112, .7); }
.portal-root .aethel-auth-root .aethel-auth-server { margin-bottom: 18px; }
.portal-root .aethel-auth-root .aethel-auth-heading { margin-bottom: 16px; }
/* Leitura confortável no portal (texto 13–16 px; campos com 16 px no celular para o iPhone não aproximar a tela). */
.portal-root .aethel-auth-root .aethel-auth-server > span { font-size: 13px; }
.portal-root .aethel-auth-root .aethel-auth-server small { font-size: 12px; }
.portal-root .aethel-auth-root .aethel-auth-heading > p:last-child { font-size: 14px; }
.portal-root .aethel-auth-root .aethel-auth-heading .aethel-auth-eyebrow { font-size: 11px; }
.portal-root .aethel-auth-root .aethel-auth-tabs button { font-size: 14px; }
.portal-root .aethel-auth-root .aethel-auth-field { font-size: 13px; }
.portal-root .aethel-auth-root .aethel-auth-input-wrap input { font-size: 15px; }
.portal-root .aethel-auth-root .aethel-auth-submit { font-size: 14px; }
.portal-root .aethel-auth-root .aethel-auth-error,
.portal-root .aethel-auth-root .aethel-auth-register-note,
.portal-root .aethel-auth-root .aethel-auth-referral { font-size: 13px; }
.portal-root .aethel-auth-root .aethel-auth-form-footer { font-size: 12px; }
.portal-root .aethel-auth-root .aethel-auth-description { font-size: 14px; }
.portal-root .aethel-auth-root .aethel-auth-world-footer { font-size: 12px; }

/* Tablet e celular: marca e utilidades numa linha, os três destinos na outra (todos visíveis). */
@media (max-width: 860px) {
  .portal-header-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand utils" "nav nav"; padding-top: 6px; padding-bottom: 6px; }
  .portal-brand { font-size: 15px; letter-spacing: .12em; }
  .portal-brand-icon { width: 26px; height: 26px; }
  .portal-nav > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .portal-nav > ul > li > a, .portal-nav-trigger { min-height: 44px; padding: 0 6px; font-size: 14px; }
}
@media (max-width: 720px) {
  .portal-root .aethel-auth-root .aethel-auth-input-wrap input,
  .portal-root .aethel-auth-root select,
  .portal-root .aethel-auth-root input { font-size: 16px; }
}
@media (max-width: 420px) {
  .portal-sound span { display: none; }
  .portal-utilities { gap: 4px; }
  .portal-utilities .portal-pill { padding: 0 7px; gap: 5px; }
  .portal-utilities .aethel-language-trigger.portal-pill > svg:not(.aethel-country-flag) { display: none; }
  .portal-footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .portal-nav > ul > li > a, .portal-nav-trigger { font-size: 13px; padding: 0 4px; }
  .portal-brand { gap: 6px; padding: 0; font-size: 13px; letter-spacing: .04em; }
  .portal-header-inner { column-gap: 6px; }
  .portal-utilities { gap: 4px; }
  .portal-utilities .portal-pill { padding: 0 6px; }
  .portal-brand-icon { width: 24px; height: 24px; }
}
@media (min-width: 1600px) {
  .portal-root { --portal-max: 1360px; }
}
@media (min-width: 2200px) {
  .portal-root { --portal-max: 1680px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-root *, .portal-root *::before, .portal-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Início em tela larga: cabeçalho e rodapé acompanham a largura do palco (marca à esquerda, idioma e som à direita). */
@media (min-width: 1200px) {
  .portal-root[data-route="inicio"] .portal-header-inner,
  .portal-root[data-route="inicio"] .portal-footer-inner { width: min(1720px, calc(100% - 2 * clamp(24px, 5.2vw, 112px))); padding-right: 0; padding-left: 0; }
}
/* Telas baixas (1366×768, 1280×720, zoom de 125%): menos respiro, para o cartão caber sem rolar. */
@media (min-width: 980px) and (max-height: 820px) {
  .portal-stage.portal-stage-inicio { min-height: 0; padding-top: 14px; padding-bottom: 18px; }
  .portal-root .aethel-auth-root .aethel-auth-shell { margin-top: 46px; }
  .portal-root .aethel-auth-root .aethel-auth-form-side { padding-top: 56px; padding-bottom: 20px; }
  .portal-root .aethel-auth-root .aethel-auth-heading { margin-bottom: 12px; }
  .portal-root .aethel-auth-root .aethel-auth-heading h2 { margin-top: 8px; font-size: 30px; }
  .portal-root .aethel-auth-root .aethel-auth-heading::after { margin-top: 12px; }
  .portal-root .aethel-auth-root .aethel-auth-form-footer { margin-top: 16px; }
}

@media (max-width: 560px) {
  .portal-root .aethel-auth-root .aethel-auth-form-side { padding: 52px 16px 20px; }
  .portal-root .aethel-auth-root .aethel-auth-shell::before { top: -38px; width: 76px; height: 76px; }
}

/* Mensagem de erro do cartão: uma só, logo acima do botão, com ícone e cor de alerta. */
.portal-root .aethel-auth-root .aethel-auth-error { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-color: rgba(233, 120, 112, .55); border-radius: 8px; color: #f6c0ba; background: #2b1313; font-size: 13px; }
.portal-root .aethel-auth-root .aethel-auth-error svg { flex: 0 0 auto; margin-top: 2px; color: #f08a80; }
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "DM Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-amber-100: oklch(96.2% .059 95.617);
    --color-amber-200: oklch(92.4% .12 95.746);
    --color-amber-300: oklch(87.9% .169 91.605);
    --color-amber-500: oklch(76.9% .188 70.08);
    --color-slate-100: oklch(96.8% .007 247.896);
    --color-slate-300: oklch(86.9% .022 252.894);
    --color-slate-950: oklch(12.9% .042 264.695);
    --spacing: .25rem;
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --blur-md: 12px;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --font-display: "Space Grotesk", sans-serif;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .isolate {
    isolation: isolate;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .mt-0\.5 {
    margin-top: calc(var(--spacing) * .5);
  }

  .mt-auto {
    margin-top: auto;
  }

  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .table {
    display: table;
  }

  .min-h-dvh {
    min-height: 100dvh;
  }

  .min-w-0 {
    min-width: 0;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .grid-cols-\[repeat\(auto-fit\,minmax\(min\(100\%\,15rem\)\,1fr\)\)\] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }

  .flex-col {
    flex-direction: column;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .place-items-center {
    place-items: center;
  }

  .items-start {
    align-items: flex-start;
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-md {
    border-radius: var(--radius-md);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .border-amber-500\/20 {
    border-color: #f99c0033;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-amber-500\/20 {
      border-color: color-mix(in oklab, var(--color-amber-500) 20%, transparent);
    }
  }

  .border-amber-500\/30 {
    border-color: #f99c004d;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-amber-500\/30 {
      border-color: color-mix(in oklab, var(--color-amber-500) 30%, transparent);
    }
  }

  .border-amber-500\/40 {
    border-color: #f99c0066;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-amber-500\/40 {
      border-color: color-mix(in oklab, var(--color-amber-500) 40%, transparent);
    }
  }

  .bg-slate-950\/80 {
    background-color: #020618cc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-slate-950\/80 {
      background-color: color-mix(in oklab, var(--color-slate-950) 80%, transparent);
    }
  }

  .p-1 {
    padding: var(--spacing);
  }

  .p-2 {
    padding: calc(var(--spacing) * 2);
  }

  .p-3 {
    padding: calc(var(--spacing) * 3);
  }

  .p-6 {
    padding: calc(var(--spacing) * 6);
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .text-amber-100 {
    color: var(--color-amber-100);
  }

  .text-amber-200 {
    color: var(--color-amber-200);
  }

  .text-amber-300 {
    color: var(--color-amber-300);
  }

  .text-slate-100 {
    color: var(--color-slate-100);
  }

  .text-slate-300 {
    color: var(--color-slate-300);
  }

  .ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .sepia {
    --tw-sepia: sepia(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .backdrop-blur-md {
    --tw-backdrop-blur: blur(var(--blur-md));
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }

  @media (hover: hover) {
    .hover\:bg-amber-500\/10:hover {
      background-color: #f99c001a;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-amber-500\/10:hover {
        background-color: color-mix(in oklab, var(--color-amber-500) 10%, transparent);
      }
    }
  }

  .focus-visible\:outline-2:focus-visible {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }

  .focus-visible\:outline-offset-2:focus-visible {
    outline-offset: 2px;
  }

  .focus-visible\:outline-amber-300:focus-visible {
    outline-color: var(--color-amber-300);
  }
}

:root {
  --ui-bg: #080d17;
  --ui-surface: #101827;
  --ui-surface-raised: #151f30;
  --ui-surface-soft: #0c1420;
  --ui-border: #a9b6ca24;
  --ui-border-strong: #d6ba6f57;
  --ui-text: #ece9e1;
  --ui-muted: #98a4b5;
  --ui-gold: #d4b76e;
  --ui-gold-bright: #ead28a;
  --ui-gold-soft: #d4b76e1f;
  --ui-hp: #e86f7b;
  --ui-mp: #65b6e8;
  --ui-success: #78c99e;
  --ui-danger: #e98888;
  color: var(--ui-text);
  background: var(--ui-bg);
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-family: DM Sans, sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
}

html, * {
  scrollbar-width: thin;
  scrollbar-color: #d4b76e6b #080d1759;
}

html {
  overflow-x: hidden;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    background: none;
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #080d1759;
  }

  ::-webkit-scrollbar-thumb {
    background: #d4b76e6b padding-box padding-box;
    border: 2px solid #0000;
    border-radius: 8px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #ead28a99 padding-box padding-box;
  }

  ::-webkit-scrollbar-button {
    background: none;
    width: 0;
    height: 0;
    display: none;
  }

  ::-webkit-scrollbar-corner {
    background: none;
    width: 0;
    height: 0;
    display: none;
  }
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.selection-shell {
  background: radial-gradient(at 14% 63%, #273f5c2e, #0000 34%), radial-gradient(at 84% 7%, #8666341a, #0000 30%), linear-gradient(145deg, #0b111d 0%, #101827 45%, #080d17 100%);
  position: relative;
}

.selection-shell:before {
  content: "";
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(#ddd4b106 1px, #0000 1px), linear-gradient(90deg, #ddd4b106 1px, #0000 1px);
  background-size: 54px 54px;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#000, #0000 80%);
  mask-image: linear-gradient(#000, #0000 80%);
}

.selection-glow {
  filter: blur(90px);
  pointer-events: none;
  border-radius: 999px;
  position: absolute;
}

.selection-glow-one {
  background: #3758871c;
  width: 230px;
  height: 230px;
  top: 33%;
  left: 3%;
}

.selection-glow-two {
  background: #b4853a14;
  width: 180px;
  height: 180px;
  top: 18%;
  right: 8%;
}

.brand-emblem {
  color: #d6bd7d;
  background: linear-gradient(145deg, #d6bd7d24, #141d19b3);
  border: 1px solid #d0b77752;
  border-radius: 13px;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  box-shadow: inset 0 1px #ffffff0f, 0 7px 24px #0003;
}

.brand-emblem-small {
  border-radius: 11px;
  width: 36px;
  height: 36px;
}

.brand-name {
  letter-spacing: .16em;
  color: #e8e2d0;
  font-family: Space Grotesk, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.brand-name span {
  color: #a99767;
}

.brand-subtitle {
  letter-spacing: .22em;
  color: #e2dbc659;
  margin-top: 3px;
  font-size: 10px;
}

.status-pulse {
  background: #85b49a;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  display: inline-block;
  box-shadow: 0 0 10px #85b49a;
}

.eyebrow {
  color: #d9c284cc;
  letter-spacing: .2em;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.eyebrow > span:first-child:not(.eyebrow-rule) {
  background: #ad9661;
  width: 17px;
  height: 1px;
  display: inline-block;
}

.eyebrow-rule {
  background: #c8ae6e7a;
  width: 25px;
  height: 1px;
  display: inline-block;
}

.hero-title {
  color: #f3efdf;
  font-family: Space Grotesk, sans-serif;
}

.hero-title span {
  color: #baa36d;
}

.origin-card, .start-panel {
  background: linear-gradient(120deg, #141e2ff0, #0a0f19e6);
  border: 1px solid #cab78329;
  position: relative;
  box-shadow: 0 16px 55px #0000002e, inset 0 1px #ffffff06;
}

.origin-card-grain {
  pointer-events: none;
  opacity: .2;
  background: radial-gradient(at 90% 15%, #59749d26, #0000 35%);
  position: absolute;
  inset: 0;
}

.class-seal {
  color: #dcc37e;
  background: linear-gradient(145deg, #cfb57224, #182721b3);
  border: 1px solid #ccb47445;
  border-radius: 17px;
  flex: none;
  place-items: center;
  width: 58px;
  height: 58px;
  display: grid;
  box-shadow: 0 0 30px #ccb47412;
}

.stat-track, .xp-track {
  background: #f2ebd417;
  border-radius: 9px;
  height: 4px;
  overflow: hidden;
}

.stat-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #a98f52, #e0c77d);
  height: 100%;
  box-shadow: 0 0 10px #c3ab6759;
}

.class-choice {
  color: #e8e2d0;
  text-align: left;
  background: linear-gradient(125deg, #141d2ce0, #0b111ce0);
  border: 1px solid #efe4c114;
  border-radius: 13px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px;
  transition: border-color .18s, background .18s, transform .18s;
  display: flex;
  position: relative;
}

.class-choice:hover {
  background: #1a2537f5;
  border-color: #c8b1734d;
  transform: translateY(-1px);
}

.class-choice-active {
  background: linear-gradient(125deg, #3a311f94, #111b2bf5);
  border-color: #c9ae6b8c;
  box-shadow: inset 0 0 22px #c2a7630f, 0 0 22px #a98e510f;
}

.class-choice-icon {
  color: #c3ad78;
  background: #080d0b5c;
  border: 1px solid #d8c59124;
  border-radius: 11px;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.class-choice-active .class-choice-icon {
  color: #e4ce94;
  background: #cdb06c1a;
  border-color: #ddc27b59;
}

.choice-indicator {
  border: 1px solid #ede2c545;
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}

.choice-indicator-active {
  background: #d9c47f;
  border-color: #d9c47f;
  box-shadow: 0 0 9px #d9c47fa6;
}

.name-input-wrap {
  background: #080c0a7a;
  border: 1px solid #e3dbc121;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  transition: border-color .15s;
  display: flex;
}

.name-input-wrap:focus-within {
  border-color: #d2b9777a;
}

.name-input-wrap input {
  color: #f0ebdc;
  background: none;
  outline: none;
  width: 100%;
  height: 43px;
  font-size: 12px;
}

.name-input-wrap input::placeholder {
  color: #e4dcc64a;
}

.name-input-error {
  border-color: #e4848480;
}

.journey-button {
  color: #161813;
  letter-spacing: .17em;
  background: linear-gradient(100deg, #d5c082, #bca46b 56%, #d2bd80);
  border: 1px solid #ead3937d;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  height: 47px;
  font-size: 10px;
  font-weight: 800;
  transition: filter .16s, transform .16s;
  display: flex;
  box-shadow: 0 8px 28px #b69a5721, inset 0 1px #ffffff54;
}

.journey-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.journey-arrow {
  border: 1px solid #23241b33;
  border-radius: 50%;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 14px;
  display: grid;
}

.game-shell {
  background: radial-gradient(ellipse at 50% 0, #31496f1f, transparent 48%), var(--ui-bg);
}

.game-header {
  border-bottom: 1px solid #e8dfc312;
}

.resource-pill {
  color: #ead8a7;
  background: #28221652;
  border: 1px solid #d6be7c29;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  font-family: Space Grotesk, sans-serif;
  font-size: 11px;
  display: flex;
}

.resource-pill span:last-child {
  letter-spacing: .15em;
  font-family: DM Sans, sans-serif;
  font-size: 10px;
}

.resource-pill-gem {
  color: #a9dcd0;
  background: #23595229;
  border-color: #6fbfb233;
}

.sound-button {
  color: #e6e0ceb3;
  background: #ffffff06;
  border: 1px solid #e4dcc51a;
  border-radius: 10px;
  place-items: center;
  width: 36px;
  height: 36px;
  transition: all .15s;
  display: grid;
}

.sound-button:hover {
  color: #e3cf8e;
  border-color: #d3ba7759;
}

.character-hud {
  background: linear-gradient(110deg, #141d19f0, #0f1513e0);
  border: 1px solid #e1d6b61a;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 22px;
  display: grid;
  box-shadow: 0 14px 44px #0000001f;
}

.hud-identity {
  align-items: center;
  gap: 13px;
  min-width: 0;
  display: flex;
}

.hud-level {
  background: #b1944f1a;
  border: 1px solid #d5bc7742;
  border-radius: 13px;
  flex: none;
  align-content: center;
  justify-items: center;
  width: 54px;
  height: 54px;
  display: grid;
}

.hud-level span, .hud-rank span {
  color: #e6ddc666;
  letter-spacing: .15em;
  font-size: 10px;
  font-weight: 700;
}

.hud-level b {
  color: #f2dda0;
  font-family: Space Grotesk, sans-serif;
  font-size: 21px;
  line-height: 1.1;
}

.hud-rank {
  color: #d8c17b;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 4px;
  display: grid;
}

.hud-rank span {
  grid-area: 1 / 2;
}

.hud-rank b {
  color: #e9d591;
  grid-area: 2 / 2;
  font-family: Space Grotesk, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.hud-rank svg {
  grid-area: 1 / 1 / 3;
}

.hud-name {
  color: #efe9d9ba;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 10px;
  display: flex;
}

.hud-avatar {
  color: #d9c17e;
  background: #b5995a17;
  border: 1px solid #cdb3752b;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  display: grid;
}

.hud-bars {
  gap: 7px;
  display: grid;
}

.hud-bar-row {
  grid-template-columns: 49px minmax(55px, 1fr) 104px;
  align-items: center;
  gap: 10px;
  display: grid;
}

.hud-bar-label {
  letter-spacing: .1em;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.hp-label {
  color: #d48a7c;
}

.mana-label {
  color: #85b7d6;
}

.xp-label {
  color: #c7b77f;
}

.hud-track {
  background: #f2ebd414;
  border-radius: 9px;
  height: 7px;
  overflow: hidden;
}

.hud-fill {
  border-radius: inherit;
  height: 100%;
  display: block;
}

.hp-fill {
  background: linear-gradient(90deg, #963e49, #d98077);
  box-shadow: 0 0 9px #d9616840;
}

.mana-fill {
  background: linear-gradient(90deg, #3e6c9a, #76b7d0);
  box-shadow: 0 0 9px #5aa0d040;
}

.hud-bar-value {
  color: #e5e1d278;
  text-align: right;
  white-space: nowrap;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
}

.map-panel, .character-panel, .hunt-panel, .guide-panel {
  background: linear-gradient(145deg, #141d19eb, #0f1513eb);
  border: 1px solid #e1d6b617;
  box-shadow: 0 14px 44px #0000001f;
}

.map-heading {
  border-bottom: 1px solid #dfd5bd12;
  min-height: 58px;
}

.location-icon {
  color: #9ebe8e;
  background: #5c7e501a;
  border: 1px solid #87ae8233;
  border-radius: 9px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}

.hunting-label {
  color: #b2d1ae9e;
  letter-spacing: .12em;
  white-space: nowrap;
  background: #4f7b5312;
  border: 1px solid #81b08b26;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.map-view {
  background-color: #142521;
  height: min(56vw, 610px);
  min-height: 400px;
  max-height: calc(100vh - 185px);
  position: relative;
  overflow: hidden;
}

.phaser-mount {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.phaser-mount canvas {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  display: block;
}

.origin-hero-stage canvas, .origin-class canvas, .city-equipped-hero canvas, .ci-doll-sprite, .class-picker-sprite, .city-wardrobe-hero, .pph-hero-image {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.map-overlay {
  pointer-events: none;
  color: #e6e4ca99;
  position: absolute;
}

.map-overlay-top-left {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #090f0d9c;
  border: 1px solid #dfd6b61f;
  border-radius: 8px;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  display: flex;
  top: 14px;
  left: 14px;
}

.map-coordinate {
  letter-spacing: .15em;
  font-size: 10px;
  font-weight: 700;
}

.map-coordinate-sub {
  letter-spacing: .12em;
  color: #dadac075;
  font-size: 10px;
}

.map-coordinate-sub b {
  color: #d4c180;
  margin-left: 4px;
}

.map-overlay-bottom-left {
  color: #e8e6d191;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #090f0d87;
  border: 1px solid #e6ddc017;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-size: 10px;
  display: flex;
  bottom: 13px;
  left: 14px;
}

.map-hint-key {
  color: #e0c982;
  letter-spacing: .1em;
  border: 1px solid #d1bf8259;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 700;
}

.map-overlay-bottom-right {
  color: #e7e2cc80;
  letter-spacing: .16em;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  bottom: 17px;
  right: 14px;
}

.map-ping, .tiny-dot {
  background: #b6c58b;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  display: inline-block;
  box-shadow: 0 0 8px #b7ca89b3;
}

.map-footer {
  border-top: 1px solid #dfd5bd0f;
  min-height: 37px;
}

.tiny-dot {
  background: #9aaf81;
  width: 5px;
  height: 5px;
}

.rank-badge {
  color: #d8c17b;
  letter-spacing: .1em;
  background: #977e4314;
  border: 1px solid #cfb56e30;
  border-radius: 6px;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.character-avatar {
  color: #d8c184;
  background: linear-gradient(140deg, #b5995a26, #24352bb3);
  border: 1px solid #cdb37542;
  border-radius: 14px;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
}

.xp-track {
  background: #e4e0ca14;
  height: 5px;
}

.xp-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #7d9871, #d3bb78);
  height: 100%;
  box-shadow: 0 0 9px #bfaf7445;
}

.mini-stat {
  color: #91b99a;
  background: #38674a14;
  border: 1px solid #86b2911a;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  display: flex;
}

.mini-stat-rose {
  color: #d69a86;
  background: #703d3414;
  border-color: #c284771c;
}

.mini-stat div {
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  display: flex;
}

.mini-stat span {
  letter-spacing: .1em;
  opacity: .6;
  font-size: 10px;
}

.mini-stat b {
  color: #ebe6d6;
  font-family: Space Grotesk, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.hunt-live {
  color: #98c197a6;
  letter-spacing: .12em;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.hunt-live i {
  background: #88b38d;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  display: inline-block;
  box-shadow: 0 0 8px #88b38d;
}

.quest-icon, .guide-spark {
  color: #d2bd7b;
  background: #bb9d511a;
  border-radius: 7px;
  place-items: center;
  width: 24px;
  height: 24px;
  display: grid;
}

.guide-panel {
  background: linear-gradient(135deg, #1e271dc7, #111714e6);
}

.skills-panel, .progression-panel {
  background: linear-gradient(145deg, #141d19eb, #0f1513f0);
  border: 1px solid #e1d6b617;
  box-shadow: 0 14px 44px #0000001f;
}

.skill-point-count, .points-available {
  color: #b1d0b9a6;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
}

.skill-card {
  background: #080d0b59;
  border: 1px solid #dad1b714;
  border-radius: 10px;
  flex-direction: column;
  gap: 7px;
  min-height: 101px;
  padding: 10px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.skill-card-ready {
  border-color: #c1ab7024;
}

.skill-card-locked {
  opacity: .52;
}

.skill-number {
  color: #e5d39a;
  background: #bb9d5114;
  border: 1px solid #dfd3af29;
  border-radius: 7px;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.skill-school-rift {
  color: #dda4d8;
  background: #894c831a;
  border-color: #dda4d833;
}

.skill-school-arcane {
  color: #ef9998;
  background: #98484a1a;
  border-color: #ef999833;
}

.skill-school-ward {
  color: #a8d0d7;
  background: #48747e1a;
  border-color: #a8d0d733;
}

.skill-school-spirit {
  color: #9bd2c9;
  background: #437f761a;
  border-color: #9bd2c933;
}

.skill-meta {
  color: #d7c6918f;
  letter-spacing: .09em;
  margin-top: auto;
  font-size: 10px;
  font-weight: 700;
}

.progression-tabs {
  border-bottom: 1px solid #e0d6bb14;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding-bottom: 10px;
  display: grid;
}

.progression-tab {
  color: #e0dbcb73;
  letter-spacing: .08em;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 5px;
  font-size: 10px;
  font-weight: 700;
  transition: all .15s;
  display: flex;
}

.progression-tab span {
  color: #d8c17b;
  background: #bfa4631f;
  border-radius: 6px;
  place-items: center;
  min-width: 17px;
  height: 17px;
  font-size: 10px;
  display: grid;
}

.progression-tab:hover, .progression-tab-active {
  color: #ead89d;
  background: #a58a4814;
  border-color: #cfb56e2b;
}

.progression-tab-active span {
  color: #181911;
  background: #c9b271;
}

.attribute-row {
  background: #050a0833;
  border: 1px solid #e4dbc00e;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 5px 7px;
  display: flex;
}

.attribute-icon {
  color: #cdbb81;
  background: #bb9d510f;
  border: 1px solid #cfb56e21;
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  display: grid;
}

.attribute-row b {
  color: #f0ecddcc;
  font-size: 10px;
  font-weight: 600;
}

.attribute-row small {
  color: #dcd7c759;
  margin-top: 2px;
  font-size: 10px;
  display: block;
}

.attribute-value {
  color: #ead89d;
  font-family: Space Grotesk, sans-serif;
  font-size: 11px;
}

.attribute-add {
  color: #e2ce8a;
  background: #a58a481a;
  border: 1px solid #c5ae7040;
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 17px;
  line-height: 1;
  transition: all .15s;
  display: grid;
}

.attribute-add:hover:not(:disabled) {
  color: #fff0b7;
  background: #a58a483d;
  border-color: #e8cd848c;
}

.attribute-add:disabled {
  cursor: not-allowed;
  opacity: .26;
}

.derived-stats > div {
  background: #738d6712;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 7px;
  display: flex;
}

.derived-stats span {
  color: #d1dcc066;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 700;
}

.derived-stats b {
  color: #d9d0b2;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.talent-branches {
  gap: 9px;
  display: grid;
}

.talent-branch {
  background: #050a082e;
  border: 1px solid #d8ccae13;
  border-radius: 9px;
  padding: 8px;
}

.talent-branch-heading {
  color: #d9c17b;
  letter-spacing: .06em;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  display: flex;
}

.talent-branch-icon {
  color: #d9c17b;
  background: #bb9d511a;
  border-radius: 7px;
  place-items: center;
  width: 23px;
  height: 23px;
  display: grid;
}

.talent-branch-violet .talent-branch-heading, .talent-branch-violet .talent-branch-icon {
  color: #c1a4e5;
}

.talent-branch-violet .talent-branch-icon {
  background: #7b52a524;
}

.talent-branch-green .talent-branch-heading, .talent-branch-green .talent-branch-icon {
  color: #9ac7a3;
}

.talent-branch-green .talent-branch-icon {
  background: #4e855824;
}

.talent-nodes {
  margin-top: 6px;
}

.talent-node-wrap {
  position: relative;
}

.talent-connector {
  background: #ddd0ae1f;
  width: 1px;
  height: 8px;
  margin-left: 12px;
  display: block;
}

.talent-connector-active {
  background: #dac27b99;
  box-shadow: 0 0 6px #dac27b33;
}

.talent-node {
  color: #e6e0cd59;
  text-align: left;
  background: #ffffff03;
  border: 1px solid #ded3b80f;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 43px;
  padding: 5px 6px;
  display: flex;
}

.talent-node:disabled {
  cursor: not-allowed;
}

.talent-node-available {
  color: #e6e0cdbf;
  background: #a98d470d;
  border-color: #d5be7c33;
  cursor: pointer !important;
}

.talent-node-available:hover {
  background: #a98d471f;
  border-color: #e0c78273;
}

.talent-node-unlocked {
  color: #e6eedacc;
  background: #53825812;
  border-color: #78ae8236;
}

.talent-node-mark {
  color: #c9b478;
  border: 1px solid #dcd1b521;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.talent-node-unlocked .talent-node-mark {
  color: #a8d7ac;
  border-color: #84c39059;
}

.talent-node-copy {
  flex: 1;
  min-width: 0;
  display: block;
}

.talent-node-copy b {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.talent-node-copy small {
  color: #dedac95c;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  display: block;
  overflow: hidden;
}

.talent-node-cost {
  color: #d3c18773;
  letter-spacing: .07em;
  flex: none;
  font-size: 10px;
  font-weight: 700;
}

.talent-node-unlocked .talent-node-cost {
  color: #8eb998;
}

.city-service-notice-layer {
  z-index: 2147482000;
  box-sizing: border-box;
  pointer-events: none;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.city-service-notice {
  box-sizing: border-box;
  color: #c5f0d8;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
  pointer-events: none;
  background: linear-gradient(135deg, #0e2720f7, #091416f5);
  border: 1px solid #80daae57;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: min(520px, 100%);
  max-height: min(70dvh, 360px);
  padding: 12px 17px;
  font: 700 12px / 1.45 Space Grotesk, sans-serif;
  display: flex;
  overflow: auto;
  box-shadow: 0 12px 36px #0000007a, 0 0 24px #54cc9124;
}

.city-service-notice svg {
  color: #86dfaa;
  flex: none;
}

.city-service-notice span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.city-donation-card {
  background: radial-gradient(at 5% 0, #c8a65126, #0000 44%), linear-gradient(145deg, #11151dbd, #0b1016cc);
  border: 1px solid #dbc6923d;
  border-radius: 10px;
  gap: 11px;
  margin: 10px 0 13px;
  padding: 13px;
  display: grid;
}

.city-economy-tabs {
  border-bottom: 1px solid #b7c1d129;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 2px 0 12px;
  padding-bottom: 6px;
  display: grid;
}

.city-economy-tabs button {
  color: #9596a5;
  letter-spacing: .08em;
  background: #ffffff06;
  border: 1px solid #0000;
  border-radius: 5px;
  min-height: 32px;
  font: 800 10px Space Grotesk, sans-serif;
}

.city-economy-tabs button.selected {
  color: #f0ece2;
  background: #c8a65129;
  border-color: #dac59052;
  box-shadow: inset 0 -2px #dac48c;
}

.city-donation-card > header {
  align-items: center;
  gap: 9px;
  display: flex;
}

.city-donation-card > header > span {
  color: #e4dcc7;
  background: #c8a65126;
  border: 1px solid #dbc7944d;
  border-radius: 8px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.city-donation-card > header > div {
  flex: 1;
  gap: 2px;
  display: grid;
}

.city-donation-card > header small {
  color: #afb9c6;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
}

.city-donation-card h3 {
  color: #f7f5ef;
  margin: 0;
  font-size: 14px;
}

.city-donation-card > header > b {
  color: #f1d180;
  font: 700 10px Space Grotesk, sans-serif;
}

.city-donation-card > p {
  color: #b2b2bf;
  margin: 0;
  font-size: 11px;
}

.city-donation-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.city-donation-presets button {
  color: #f2efe5;
  background: #ffffff09;
  border: 1px solid #bbc5d429;
  border-radius: 6px;
  justify-items: center;
  gap: 3px;
  padding: 7px 3px;
  font: 700 10px Space Grotesk, sans-serif;
  display: grid;
}

.city-donation-presets button:hover {
  background: #c8a6511f;
  border-color: #dbc79480;
}

.city-donation-presets small {
  color: #a7ceba;
  font-size: 10px;
}

.city-donation-amount {
  color: #a9a4b5;
  gap: 5px;
  font-size: 10px;
  display: grid;
}

.city-donation-amount > div {
  background: #00000038;
  border: 1px solid #bbc5d433;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 10px;
  display: flex;
}

.city-donation-amount b {
  color: #e7d39c;
  font: 700 11px Space Grotesk, sans-serif;
}

.city-donation-amount input {
  color: #f4eddf;
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  font: 700 12px Space Grotesk, sans-serif;
}

.city-donation-total {
  color: #9e9da9;
  border-top: 1px solid #ffffff12;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding-top: 8px;
  font-size: 10px;
  display: grid;
}

.city-donation-total > b {
  color: #8bd7bd;
  font-size: 10px;
}

.city-donation-total > small {
  color: #787f88;
  grid-column: 1 / -1;
  font-size: 10px;
}

.city-pix-start {
  color: #fff3ff;
  letter-spacing: .08em;
  background: linear-gradient(105deg, #8e7235, #735c2a);
  border: 1px solid #dbc6916b;
  border-radius: 6px;
  min-height: 37px;
  font: 800 10px Space Grotesk, sans-serif;
  box-shadow: 0 5px 18px #c8a6512e;
}

.city-pix-start:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.city-pix-checkout {
  background: #03080f52;
  border: 1px solid #dbc79433;
  border-radius: 8px;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  display: grid;
}

.city-pix-qr {
  color: #e6dfcc;
  background: repeating-linear-gradient(45deg, #cdaf6206 0 5px, #0000 5px 10px);
  border: 1px dashed #adb9cb52;
  border-radius: 6px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 126px;
  display: grid;
}

.city-pix-qr > b {
  color: #f0ece1;
  letter-spacing: .12em;
  font: 800 10px Space Grotesk, sans-serif;
}

.city-pix-qr > small {
  color: #9292a0;
  text-align: center;
  max-width: 95px;
  font-size: 10px;
}

.city-pix-copy {
  align-content: center;
  gap: 6px;
  display: grid;
}

.city-pix-copy > strong {
  color: #f2e8d3;
  font-size: 11px;
}

.city-pix-copy > p {
  color: #9fa6a8;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.city-pix-copy > button {
  color: #9da0aa;
  background: #ffffff06;
  border: 1px solid #ffffff17;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  font: 800 11px Space Grotesk, sans-serif;
  display: flex;
}

.city-pix-copy > button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.city-pix-copy > small {
  color: #767f87;
  font-size: 11px;
  line-height: 1.4;
}

.city-topbar {
  grid-template-columns: 38px minmax(320px, 1fr) auto;
}

@media (max-width: 1280px) {
  .city-topbar {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .city-topbar {
    grid-template-columns: 32px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .city-service-notice-layer {
    padding: 12px;
  }

  .city-service-notice {
    white-space: normal;
    max-width: 100%;
    padding: 10px 13px;
    font-size: 11px;
  }
}

@media (min-width: 1024px) {
  .game-shell {
    min-height: 100vh;
  }

  .side-panel {
    min-height: calc(100vh - 86px);
  }
}

@media (max-width: 1023px) {
  .character-hud {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hud-identity {
    justify-content: space-between;
  }

  .map-view {
    height: 60vw;
    min-height: 380px;
    max-height: 68vh;
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .guide-panel, .side-panel > p {
    grid-column: 1 / -1;
  }

  .side-panel > p {
    margin-top: 0;
  }
}

@media (max-width: 639px) {
  .brand-name {
    font-size: 12px;
  }

  .game-header {
    align-items: flex-start;
  }

  .game-header > div:last-child {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .resource-pill {
    gap: 5px;
    padding: 7px 8px;
  }

  .resource-pill span:last-child {
    display: none;
  }

  .hud-identity {
    gap: 8px;
  }

  .hud-level {
    width: 48px;
    height: 48px;
  }

  .hud-name {
    max-width: 100px;
  }

  .hud-bar-row {
    grid-template-columns: 44px minmax(40px, 1fr) 84px;
    gap: 6px;
  }

  .hud-bar-value {
    font-size: 10px;
  }

  .map-view {
    height: 65vh;
    min-height: 385px;
    max-height: 590px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .guide-panel, .side-panel > p {
    grid-column: auto;
  }

  .map-overlay-bottom-left {
    max-width: calc(100% - 130px);
    font-size: 10px;
  }

  .map-overlay-top-left {
    padding: 7px 8px;
    top: 8px;
    left: 8px;
  }

  .map-overlay-bottom-right {
    font-size: 10px;
    bottom: 13px;
    right: 8px;
  }
}

.reference-game-shell {
  background: radial-gradient(at 50% 40%, #2f486f21, #0000 55%), #080d17;
  flex-direction: column;
  height: 100vh;
  min-height: 680px;
  display: flex;
  overflow: hidden;
}

.reference-header {
  border-bottom: 1px solid #e8dfc314;
  flex: none;
  width: 100%;
  max-width: 1600px;
  min-height: 49px;
}

.reference-toolbar {
  align-items: center;
  gap: 5px;
  display: flex;
}

.toolbar-button {
  color: #e1dbca70;
  letter-spacing: .1em;
  background: #ffffff05;
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  font-size: 10px;
  font-weight: 700;
  transition: all .15s;
  display: flex;
}

.toolbar-button:hover, .toolbar-button-active {
  color: #e1cd91;
  background: #ad924e1a;
  border-color: #cdb47030;
}

.reference-stage {
  flex: 1;
  grid-template-columns: 264px minmax(0, 1fr) 252px;
  grid-template-areas: "left center right";
  gap: 9px;
  width: 100%;
  min-height: 0;
  padding-top: 9px;
  display: grid;
}

.reference-column {
  scrollbar-color: #c2b17f2e transparent;
  scrollbar-width: thin;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  display: flex;
  overflow: hidden auto;
}

.reference-left {
  grid-area: left;
}

.reference-center {
  flex-direction: column;
  grid-area: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.reference-right {
  grid-area: right;
}

.reference-character, .reference-progression, .reference-info-card, .reference-combat-card, .reference-party-card {
  background: linear-gradient(145deg, #131c18f2, #0c1210f0);
  border: 1px solid #e1d6b617;
  box-shadow: 0 14px 40px #0000002e, inset 0 1px #ffffff05;
}

.reference-character {
  flex: none;
}

.reference-level {
  background: #a68c4914;
  border: 1px solid #cdb5752e;
  border-radius: 8px;
  justify-items: center;
  min-width: 42px;
  padding: 4px 5px;
  display: grid;
}

.reference-level span {
  color: #e1d8c066;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
}

.reference-level b {
  color: #e6d294;
  font-family: Space Grotesk, sans-serif;
  font-size: 14px;
  line-height: 1.1;
}

.combat-power {
  border-top: 1px solid #e1d6b60f;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding-top: 8px;
  display: flex;
}

.combat-power span {
  color: #d9c99d7a;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 700;
}

.combat-power b {
  color: #e5c97c;
  font-family: Space Grotesk, sans-serif;
  font-size: 16px;
}

.reference-resource-row {
  grid-template-columns: 42px minmax(35px, 1fr) 81px;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  display: grid;
}

.reference-resource-label {
  letter-spacing: .08em;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.reference-resource-label.health {
  color: #d9847d;
}

.reference-resource-label.mana {
  color: #7eb5d5;
}

.reference-resource-track {
  background: #efe6cf1a;
  border-radius: 7px;
  height: 7px;
  overflow: hidden;
}

.reference-resource-fill {
  border-radius: inherit;
  height: 100%;
}

.reference-resource-fill.health {
  background: linear-gradient(90deg, #873b42, #d87b72);
  box-shadow: 0 0 8px #d9616847;
}

.reference-resource-fill.mana {
  background: linear-gradient(90deg, #315d89, #75b6d4);
  box-shadow: 0 0 8px #5aa0d047;
}

.reference-resource-value {
  color: #e2dcca7a;
  text-align: right;
  white-space: nowrap;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
}

.reference-character-meta {
  color: #dad1b670;
  letter-spacing: .07em;
  border-top: 1px solid #e1d6b60f;
  justify-content: space-between;
  gap: 4px;
  margin-top: 12px;
  padding-top: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.reference-character-meta span {
  align-items: center;
  gap: 4px;
  display: flex;
}

.reference-character-meta svg {
  color: #bda86f;
}

.reference-progression {
  flex: none;
}

.reference-progression .talent-branches {
  gap: 6px;
}

.reference-progression .talent-branch {
  padding: 6px;
}

.reference-progression .talent-node {
  min-height: 38px;
}

.save-status {
  color: #d6cfbb42;
  letter-spacing: .14em;
  text-align: center;
  margin-top: auto;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 700;
}

.reference-map-panel {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
}

.reference-map-panel .map-heading {
  flex: none;
}

.reference-map-view {
  flex: auto;
  height: auto;
  min-height: 320px;
  max-height: none;
}

.reference-target-label {
  color: #e6e0cb96;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  letter-spacing: .14em;
  white-space: nowrap;
  background: #090f0dab;
  border: 1px solid #ded5b81f;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.reference-target-label .status-pulse {
  width: 5px;
  height: 5px;
}

.reference-skill-dock {
  flex: none;
}

.reference-dock-heading {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 1px 7px;
  display: flex;
}

.reference-skill-dock .skill-card {
  gap: 5px;
  min-height: 75px;
  padding: 7px;
}

.reference-skill-dock .skill-number {
  width: 21px;
  height: 21px;
}

.reference-skill-dock .skill-meta {
  font-size: 10px;
}

.reference-info-card {
  flex: none;
}

.reference-kill-count {
  background: #00000029;
  border: 1px solid #e0d7bc0f;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 9px;
  display: flex;
}

.reference-kill-count span {
  color: #ded7c36e;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 700;
}

.reference-kill-count b {
  color: #dfca88;
  font-family: Space Grotesk, sans-serif;
  font-size: 12px;
}

.reference-combat-card, .reference-party-card {
  border-radius: 14px;
  flex: none;
  padding: 14px;
}

.reference-card-heading {
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  display: flex;
}

.reference-combat-stat, .reference-progress-row {
  border-top: 1px solid #e1d6b60e;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 8px 1px;
  display: flex;
}

.reference-combat-stat span, .reference-progress-row span {
  color: #ded7c36e;
  font-size: 10px;
}

.reference-combat-stat b, .reference-progress-row b {
  color: #e8ddb7cc;
  text-align: right;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.reference-footer-note {
  color: #d6cfbb3b;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  margin-top: auto;
  padding: 8px 4px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .reference-stage {
    grid-template-columns: 245px minmax(0, 1fr);
    grid-template-areas: "left center"
                         "right center";
  }

  .reference-center {
    grid-row: 1 / span 2;
  }

  .reference-right {
    grid-template-columns: 1fr;
    align-content: start;
    display: grid;
  }
}

@media (max-width: 820px) {
  .reference-game-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .reference-header {
    flex-wrap: wrap;
    padding-bottom: 9px;
  }

  .reference-toolbar {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .reference-stage {
    flex-direction: column;
    display: flex;
  }

  .reference-center {
    order: 1;
  }

  .reference-left {
    order: 2;
    overflow: visible;
  }

  .reference-right {
    order: 3;
    display: flex;
    overflow: visible;
  }

  .reference-map-panel {
    min-height: 0;
  }

  .reference-map-view {
    flex: none;
    height: 60vh;
    min-height: 390px;
  }

  .reference-column {
    overflow: visible;
  }

  .reference-progression .talent-branches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .reference-toolbar {
    flex-wrap: wrap;
  }

  .reference-toolbar .hunting-label {
    font-size: 10px;
  }

  .toolbar-button {
    padding: 7px 5px;
    font-size: 10px;
  }

  .reference-header > div:last-child {
    flex: 1;
    justify-content: flex-end;
  }

  .reference-map-view {
    height: 58vh;
    min-height: 360px;
  }

  .reference-target-label {
    font-size: 10px;
    inset: auto 8px 48px auto;
    transform: none;
  }

  .reference-progression .talent-branches {
    grid-template-columns: 1fr;
  }
}

.city-shell {
  color: #edf0ec;
  background: #111722;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  font-family: DM Sans, sans-serif;
  position: relative;
  overflow: hidden;
}

.city-shell .phaser-mount {
  z-index: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.city-shell .phaser-mount canvas {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  display: block;
}

.city-ui {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.city-player-card, .city-topbar, .city-events button, .city-buff-list, .city-chat, .city-skill-dock, .city-journey {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: linear-gradient(145deg, #0a0e15f0, #0c1218e0);
  border: 1px solid #d1bf8a36;
  box-shadow: 0 10px 32px #0000005c, inset 0 1px #ffffff09;
}

.city-player-card {
  pointer-events: auto;
  border-radius: 10px;
  width: 316px;
  padding: 13px 14px 11px;
  position: absolute;
  top: 12px;
  left: 12px;
}

.city-player-top, .city-identity, .city-xp-line, .city-currencies, .city-power, .city-resource {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.city-kicker, .city-xp-line, .city-power, .city-skill-heading, .city-journey-top, .city-events b {
  letter-spacing: .11em;
  font-family: Space Grotesk, sans-serif;
}

.city-kicker {
  color: #89bcb0;
  font-size: 10px;
  font-weight: 700;
}

.city-rank {
  color: #dec77f;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-rank svg {
  width: 14px;
  height: 14px;
}

.city-identity {
  justify-content: flex-start;
  gap: 10px;
  margin: 10px 0 12px;
}

.city-avatar {
  color: #e1c782;
  background: linear-gradient(145deg, #ba995133, #1d2828bf);
  border: 1px solid #d7bf774d;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
}

.city-name {
  flex: 1;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.city-name b {
  color: #f4eddb;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.city-name small, .city-level small {
  color: #e2e0cf78;
  letter-spacing: .11em;
  font-size: 10px;
  font-weight: 700;
}

.city-level {
  border: 1px solid #d2be8333;
  border-radius: 6px;
  justify-items: center;
  padding: 4px 9px;
  display: grid;
}

.city-level b {
  color: #e7ce88;
  font-family: Space Grotesk, sans-serif;
  font-size: 19px;
  line-height: 1;
}

.city-xp-line {
  color: #eee7d38c;
  margin-bottom: 4px;
  font-size: 10px;
}

.city-xp-line b {
  color: #d3cba9;
  font-size: 10px;
}

.city-meter, .city-resource-track {
  background: #f5efde1a;
  border-radius: 9px;
  overflow: hidden;
}

.city-meter {
  height: 6px;
  margin-bottom: 10px;
}

.city-meter i, .city-resource-track i {
  border-radius: inherit;
  height: 100%;
  display: block;
}

.city-xp-fill {
  background: linear-gradient(90deg, #647e69, #d5b96f);
  box-shadow: 0 0 10px #d2bc6f59;
}

.city-resource {
  color: #d3d5d0;
  gap: 8px;
  margin: 6px 0;
  font-size: 10px;
}

.city-resource-label {
  align-items: center;
  gap: 4px;
  width: 34px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-resource-label svg {
  width: 12px;
  height: 12px;
}

.city-resource-track {
  flex: 1;
  height: 9px;
}

.city-resource-track i.hp {
  background: linear-gradient(90deg, #9d424d, #e17a78);
}

.city-resource-track i.mp {
  background: linear-gradient(90deg, #3670aa, #7dc1e4);
}

.city-resource-label.hp {
  color: #e3867f;
}

.city-resource-label.mp {
  color: #8bc5e7;
}

.city-resource > span:last-child {
  text-align: right;
  min-width: 89px;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
}

.city-currencies {
  border-top: 1px solid #ffffff12;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding-top: 9px;
}

.city-currencies > span {
  color: #e4c974;
  align-items: center;
  gap: 5px;
  font-family: Space Grotesk, sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.city-currencies > span:nth-child(2) {
  color: #89d5d4;
}

.city-currencies svg {
  width: 15px;
  height: 15px;
}

.city-currencies small {
  color: #e5e1cc75;
  letter-spacing: .08em;
  font-family: DM Sans, sans-serif;
  font-size: 10px;
}

.city-power {
  color: #dfd9c37a;
  margin-top: 9px;
  font-size: 10px;
}

.city-power b {
  color: #ded5bb;
  font-family: Space Grotesk, sans-serif;
  font-size: 17px;
}

.city-topbar {
  pointer-events: auto;
  border-radius: 10px;
  grid-template-columns: 38px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 77px;
  padding: 8px 10px;
  display: grid;
  position: absolute;
  top: 12px;
  left: 344px;
  right: 12px;
}

.city-brand {
  align-items: center;
  gap: 8px;
  display: flex;
}

.city-brand-mark {
  color: #e7ce88;
  background: #af8e4a1a;
  border: 1px solid #d1b77659;
  border-radius: 8px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.city-brand-mark svg {
  width: 20px;
  height: 20px;
}

.city-brand > span:last-child {
  gap: 3px;
  display: grid;
}

.city-brand b {
  color: #efe5c9;
  letter-spacing: .07em;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
}

.city-brand small {
  color: #89bdb2;
  letter-spacing: .18em;
  font-size: 10px;
}

.city-nav {
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: 4px;
  display: grid;
}

.city-nav-button {
  color: #c0c6c6;
  background: #ffffff06;
  border: 1px solid #0000;
  border-radius: 7px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 52px;
  transition: all .15s;
  display: grid;
}

.city-nav-button svg {
  color: #c1a76a;
}

.city-nav-button span {
  letter-spacing: .08em;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.city-nav-button:hover, .city-nav-active {
  color: #f4e6bb;
  background: #c0a0541c;
  border-color: #d3b97454;
}

.city-connect-row {
  align-items: center;
  gap: 7px;
  display: flex;
}

.city-local-status {
  color: #9cc9bc;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-family: Space Grotesk, sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.city-local-status i {
  background: #6bd4a4;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px #6bd4a499;
}

.city-sound-button {
  color: #d9d1bd;
  white-space: nowrap;
  background: #ffffff0b;
  border: 1px solid #d7c28a2e;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-signal {
  color: #60d5b0;
  font-size: 12px;
}

.city-sound-button {
  color: #dfca89;
  width: 33px;
  padding: 0;
}

.city-sound-button svg {
  width: 17px;
  height: 17px;
}

.city-channel-picker {
  gap: 8px;
  margin-top: 12px;
  display: grid;
}

.city-channel-picker > header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  display: flex;
}

.city-channel-picker > header strong {
  color: #ddca91;
  letter-spacing: .13em;
  font-size: 10px;
}

.city-channel-picker > header span {
  color: #e3e0d4;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.city-channel-picker > div {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 5px;
  display: grid;
}

.city-channel-picker button {
  color: #cfd0c8;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff09;
  border: 1px solid #ffffff12;
  border-radius: 5px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 10px;
  display: flex;
}

.city-channel-picker button:hover, .city-channel-picker button:focus-visible {
  border-color: #d7c28a61;
}

.city-channel-picker button.selected {
  color: #a8e4ca;
  border-color: #75d5b066;
}

.city-channel-picker button > span {
  color: #79d9ae;
  flex: none;
  width: 13px;
  height: 13px;
  display: grid;
}

.city-channel-picker button b {
  color: #9bd6b6;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font: 800 10px Space Grotesk, sans-serif;
  display: flex;
}

.city-channel-picker button b small {
  color: #8d9a99;
  font-size: 10px;
}

.city-channel-picker > p {
  color: #929d9b;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.city-channel-picker > p.unavailable {
  color: #f0a39a;
}

.city-events {
  pointer-events: auto;
  gap: 5px;
  width: 249px;
  display: grid;
  position: absolute;
  top: 101px;
  right: 12px;
}

.city-events button {
  text-align: left;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 8px;
  display: flex;
}

.city-events svg {
  color: #d8bd72;
  flex: none;
  width: 14px;
  height: 14px;
}

.city-events span {
  color: #e8e3d2;
  flex: 1;
  font-size: 10px;
  font-weight: 800;
}

.city-events b {
  color: #141716;
  background: #d6bd78;
  border-radius: 4px;
  padding: 4px 5px;
  font-size: 10px;
}

.city-buff-list {
  border-radius: 8px;
  gap: 1px;
  width: 316px;
  padding: 5px 9px;
  display: grid;
  position: absolute;
  bottom: 164px;
  left: 12px;
}

.city-buff-list > div {
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  display: flex;
}

.buff-glyph {
  color: #e3cc90;
  font-size: 19px;
}

.buff-glyph.buff-green {
  color: #7ac895;
}

.city-buff-list > div > span:last-child {
  gap: 2px;
  display: grid;
}

.city-buff-list b {
  color: #d9c783;
  font-size: 10px;
}

.city-buff-list small {
  color: #dbddd08c;
  font-size: 10px;
}

.city-chat {
  box-sizing: border-box;
  pointer-events: auto;
  border-radius: 8px;
  width: 316px;
  max-width: 100%;
  padding: 9px 11px;
  position: relative;
  inset: auto;
}

.city-chat-heading {
  color: #d8c583;
  letter-spacing: .08em;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-chat-heading span {
  color: #86cfab;
  margin-left: auto;
  font-size: 10px;
}

.city-chat p {
  color: #c6c9c0;
  margin: 8px 0;
  font-size: 11px;
}

.city-chat p b {
  color: #8ccead;
}

.city-chat > button {
  color: #99c2dc;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  display: flex;
}

.city-chat > button svg {
  transform: rotate(180deg);
}

.city-skill-dock {
  border-radius: 8px;
  width: min(720px, 100vw - 650px);
  padding: 8px;
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
}

.city-skill-heading {
  color: #ddcc91;
  justify-content: space-between;
  align-items: center;
  margin: 0 2px 7px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-skill-heading small {
  color: #8ac4b5;
  font-size: 10px;
}

.city-skills {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  display: grid;
}

.city-skill {
  background: #ffffff08;
  border: 1px solid #ddcc991f;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  min-height: 49px;
  padding: 6px;
  display: flex;
}

.city-skill.ready {
  background: #c8a65129;
  border-color: #dbc7943d;
}

.city-skill.locked {
  opacity: .5;
}

.city-skill-key {
  color: #e7d18f;
  border: 1px solid #dcc98f38;
  border-radius: 5px;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
}

.city-skill > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.city-skill b {
  color: #ece6d8;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.city-skill small {
  color: #a9b1b0;
  font-size: 10px;
}

.city-journey {
  pointer-events: auto;
  border-radius: 8px;
  width: 249px;
  padding: 11px;
  position: absolute;
  bottom: 13px;
  right: 12px;
}

.city-journey-top {
  color: #c9b578;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-journey-top b {
  color: #dcc487;
  border: 1px solid #cbab6840;
  border-radius: 4px;
  padding: 2px 5px;
}

.city-journey > strong {
  color: #f1eee3;
  margin-top: 7px;
  font-size: 11px;
  display: block;
}

.city-journey p {
  color: #9ba4a5;
  margin: 5px 0 9px;
  font-size: 11px;
  line-height: 1.5;
}

.city-journey > button, .city-primary-action {
  color: #151815;
  letter-spacing: .11em;
  background: linear-gradient(100deg, #e0c77f, #b7a064);
  border: 1px solid #dec37c73;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
}

.city-session-stamp {
  color: #e2e0d073;
  letter-spacing: .14em;
  text-shadow: 0 1px 3px #10151d;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  bottom: 99px;
  right: 12px;
}

.city-modal-scrim {
  z-index: 50;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  background: #04070bab;
  place-items: center;
  padding: 18px;
  display: grid;
  position: fixed;
  inset: 0;
}

.city-modal {
  background: linear-gradient(145deg, #151c23, #0d1219 78%);
  border: 1px solid #d3be8247;
  border-radius: 12px;
  flex-direction: column;
  width: min(900px, 96vw);
  max-height: min(82dvh, 780px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 28px 90px #0000009e;
}

.city-modal-header {
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  padding: 15px 19px;
  display: flex;
}

.city-modal-header small {
  color: #82bcae;
  letter-spacing: .19em;
  font-size: 10px;
  font-weight: 800;
}

.city-modal-header h2 {
  color: #f0e7d0;
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.city-modal-header > button {
  color: #c9c9bd;
  background: #ffffff09;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.city-modal-body {
  padding: 17px 19px 21px;
  overflow: auto;
}

.city-progression-tabs {
  gap: 6px;
  margin-bottom: 14px;
  display: flex;
}

.city-progression-tabs button {
  color: #adb4b1;
  background: #ffffff09;
  border: 1px solid #ffffff17;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-progression-tabs button svg {
  color: #c9b36f;
  width: 14px;
  height: 14px;
}

.city-progression-tabs button b {
  color: #d8c783;
  background: #d3b76e1f;
  border-radius: 4px;
  padding: 2px 5px;
}

.city-progression-tabs button.selected {
  color: #e8dfca;
  background: #b6974f1c;
  border-color: #d7be7b66;
}

.city-panel-intro {
  background: #d3b8690b;
  border: 1px solid #d4be8321;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  padding: 11px 13px;
  display: flex;
}

.city-panel-intro > div {
  gap: 3px;
  display: grid;
}

.city-panel-intro small {
  color: #a9c9b9;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
}

.city-panel-intro strong {
  color: #e8ddc4;
  font-size: 14px;
}

.city-panel-intro p {
  color: #a7acab;
  max-width: 430px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.city-attribute-list, .city-feature-list {
  gap: 5px;
  display: grid;
}

.city-attribute-row {
  background: #ffffff06;
  border: 1px solid #fff1;
  border-radius: 6px;
  grid-template-columns: 34px 1fr 42px 31px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  display: grid;
}

.city-attribute-icon {
  color: #cdb773;
  border: 1px solid #c8b1732b;
  border-radius: 6px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.city-attribute-icon svg {
  width: 16px;
  height: 16px;
}

.city-attribute-row > div, .city-feature-row > div {
  gap: 3px;
  display: grid;
}

.city-attribute-row > div b, .city-feature-row > div b {
  color: #e7e2d4;
  font-size: 10px;
}

.city-attribute-row > div small, .city-feature-row > div small {
  color: #989f9e;
  font-size: 10px;
}

.city-attribute-row > strong {
  color: #e3d197;
  text-align: center;
  font-family: Space Grotesk, sans-serif;
  font-size: 13px;
}

.city-attribute-row > button {
  color: #ead798;
  background: #d2b9731a;
  border: 1px solid #d2b97354;
  border-radius: 5px;
  width: 29px;
  height: 29px;
  font-size: 16px;
}

.city-attribute-row > button:disabled {
  opacity: .35;
}

.city-derived-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  display: grid;
}

.city-derived-grid > div {
  background: #ffffff06;
  border: 1px solid #fff1;
  border-radius: 6px;
  gap: 4px;
  padding: 8px;
  display: grid;
}

.city-derived-grid small {
  color: #929b9b;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 800;
}

.city-derived-grid b {
  color: #e0ce8f;
  font-family: Space Grotesk, sans-serif;
  font-size: 12px;
}

.city-talent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.city-talent-branch {
  background: #ffffff06;
  border: 1px solid #c8b17326;
  border-radius: 8px;
  padding: 10px;
}

.city-talent-branch > header {
  border-bottom: 1px solid #ffffff12;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  display: flex;
}

.city-talent-branch > header > span {
  color: #d4bc79;
  border: 1px solid #dcc37738;
  border-radius: 6px;
  place-items: center;
  width: 27px;
  height: 27px;
  display: grid;
}

.city-talent-branch > header svg {
  width: 15px;
  height: 15px;
}

.city-talent-branch > header > div {
  gap: 2px;
  display: grid;
}

.city-talent-branch > header b {
  color: #e5dece;
  font-size: 10px;
}

.city-talent-branch > header small {
  color: #8faeaa;
  letter-spacing: .1em;
  font-size: 10px;
}

.city-talent-nodes {
  gap: 5px;
  padding-top: 8px;
  display: grid;
}

.city-talent-node-wrap:not(:first-child) {
  padding-top: 5px;
  position: relative;
}

.city-talent-node-wrap:not(:first-child):before {
  content: "";
  background: #ceb87640;
  width: 1px;
  height: 7px;
  position: absolute;
  top: -1px;
  left: 13px;
}

.city-talent-node {
  text-align: left;
  background: #00000021;
  border: 1px solid #ffffff12;
  border-radius: 5px;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px;
  display: grid;
}

.city-talent-node > span {
  color: #c9b778;
  border: 1px solid #d4bf8038;
  border-radius: 50%;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  display: grid;
}

.city-talent-node > div {
  gap: 3px;
  display: grid;
}

.city-talent-node b {
  color: #dcd9ce;
  font-size: 10px;
}

.city-talent-node small {
  color: #899291;
  font-size: 10px;
  line-height: 1.35;
}

.city-talent-node em {
  color: #9aa5a2;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.city-talent-node.unlocked {
  background: #498e6517;
  border-color: #7ccfa352;
}

.city-talent-node.unlocked > span {
  color: #8fd9aa;
  border-color: #7ccfa380;
}

.city-talent-node.available {
  border-color: #d5bb7066;
}

.city-feature-hero {
  background: linear-gradient(110deg, #c1a05614, #466e5f0f);
  border: 1px solid #d2b97329;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  display: flex;
}

.city-feature-hero > span {
  color: #d6c17e;
  border: 1px solid #d0b9793b;
  border-radius: 8px;
  place-items: center;
  width: 39px;
  height: 39px;
  display: grid;
}

.city-feature-hero > span svg {
  width: 20px;
  height: 20px;
}

.city-feature-hero small {
  color: #86b8a9;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
}

.city-feature-hero h3 {
  color: #ece4d2;
  margin: 3px 0 0;
  font-size: 15px;
}

.city-feature-body {
  color: #a8b0ad;
  margin: 12px 1px;
  font-size: 11px;
  line-height: 1.7;
}

.city-feature-body b {
  color: #e3cf8b;
}

.city-feature-row {
  background: #ffffff06;
  border: 1px solid #fff1;
  border-radius: 6px;
  align-items: center;
  gap: 9px;
  min-height: 37px;
  padding: 7px 9px;
  display: flex;
}

.city-feature-row > span {
  color: #a2b9ad;
  background: #81ae911a;
  border-radius: 5px;
  flex: none;
  place-items: center;
  width: 23px;
  height: 23px;
  display: grid;
}

.city-feature-row > span svg {
  width: 14px;
  height: 14px;
}

.city-feature-row > span.open {
  color: #91d9ad;
}

.city-feature-row > div {
  flex: 1;
}

.city-feature-row > strong {
  color: #d4bd7b;
  letter-spacing: .08em;
  font-size: 10px;
}

.city-primary-action {
  width: auto;
  margin: 12px 0 0 auto;
  padding: 0 15px;
}

.city-currency-summary, .city-referral-preview {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  display: grid;
}

.city-currency-summary > div {
  background: #ffffff08;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  display: flex;
}

.city-currency-summary svg {
  color: #d6bd79;
  width: 19px;
  height: 19px;
}

.city-currency-summary > div:nth-child(2) svg {
  color: #81cecb;
}

.city-currency-summary span, .city-referral-preview > div {
  gap: 4px;
  display: grid;
}

.city-currency-summary small, .city-referral-preview small {
  color: #929b99;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 800;
}

.city-currency-summary b {
  color: #e6ddc6;
  font-family: Space Grotesk, sans-serif;
  font-size: 12px;
}

.city-referral-preview > div {
  background: #00000029;
  border: 1px solid #ffffff12;
  border-radius: 5px;
  gap: 5px;
  padding: 7px;
  display: grid;
}

.city-referral-preview b {
  color: #c5cbca;
  font-size: 10px;
}

.city-server-note {
  color: #849092;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.5;
  display: block;
}

.city-disabled-action {
  color: #788180;
  background: #ffffff06;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-chat-mini {
  color: #9ca8aa;
  background: #ffffff08;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  font-size: 10px;
  display: flex;
}

.city-chat-mini svg {
  color: #9dbcc9;
  width: 14px;
  height: 14px;
}

.city-setting-row {
  border-bottom: 1px solid #ffffff12;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  display: flex;
}

.city-setting-row.city-settings-audio-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
}

.city-setting-row.city-settings-audio-row:hover {
  background: var(--ui-gold-soft);
}

.city-setting-row > span:first-child {
  color: #c6af72;
  background: #c4a9661a;
  border-radius: 6px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.city-setting-row > span:first-child svg {
  width: 16px;
  height: 16px;
}

.city-setting-row > div {
  flex: 1;
  gap: 3px;
  display: grid;
}

.city-setting-row > div b {
  color: #e3e0d4;
  font-size: 10px;
}

.city-setting-row > div small, .city-setting-state {
  color: #929d9b;
  font-size: 10px;
}

.city-toggle {
  background: #ffffff0f;
  border: 1px solid #ffffff21;
  border-radius: 10px;
  width: 35px;
  height: 19px;
  padding: 2px;
}

.city-toggle i {
  background: #788281;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  transition: transform .15s;
  display: block;
}

.city-toggle.on {
  background: #57ab8140;
  border-color: #7cd2a76b;
}

.city-toggle.on i {
  background: #8cdeb2;
  transform: translateX(15px);
}

.sr-only {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

@media (max-width: 1280px) {
  .city-topbar {
    grid-template-columns: 130px minmax(0, 1fr);
    left: 338px;
  }

  .city-brand b {
    font-size: 10px;
  }

  .city-connect-row {
    position: absolute;
    top: 7px;
    right: 8px;
  }

  .city-nav {
    padding-top: 31px;
  }

  .city-nav-button {
    min-height: 42px;
  }

  .city-nav-button span {
    font-size: 10px;
  }

  .city-events {
    top: 103px;
  }
}

@media (max-width: 900px) {
  .city-shell {
    min-height: 640px;
  }

  .city-player-card {
    width: 265px;
    padding: 9px;
    top: 8px;
    left: 8px;
  }

  .city-topbar {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6px;
    top: 8px;
    left: 282px;
    right: 8px;
  }

  .city-brand {
    display: none;
  }

  .city-connect-row {
    top: 6px;
    right: 6px;
  }

  .city-nav {
    grid-template-columns: repeat(4, minmax(40px, 1fr));
    padding: 0 0 34px;
  }

  .city-nav-button {
    gap: 2px;
    min-height: 33px;
  }

  .city-nav-button svg {
    width: 14px;
    height: 14px;
  }

  .city-events {
    width: 210px;
    top: 238px;
    right: 8px;
  }

  .city-buff-list {
    width: 265px;
    bottom: 147px;
    left: 8px;
  }

  .city-chat {
    width: 265px;
    bottom: 8px;
    left: 8px;
  }

  .city-skill-dock {
    width: calc(100vw - 560px);
    min-width: 290px;
    bottom: 8px;
    left: 50%;
  }

  .city-journey {
    width: 210px;
    bottom: 8px;
    right: 8px;
  }

  .city-session-stamp {
    display: none;
  }
}

@media (max-width: 620px) {
  .city-player-card {
    width: 194px;
  }

  .city-name small, .city-currencies small, .city-power span {
    display: none;
  }

  .city-identity {
    gap: 6px;
  }

  .city-avatar {
    width: 34px;
    height: 34px;
  }

  .city-resource > span:last-child {
    min-width: 61px;
    font-size: 10px;
  }

  .city-topbar {
    left: 209px;
  }

  .city-connect-row {
    top: -39px;
    right: 0;
  }

  .city-local-status {
    display: none;
  }

  .city-sound-button {
    height: 28px;
  }

  .city-nav {
    grid-template-columns: repeat(4, minmax(35px, 1fr));
  }

  .city-nav-button span {
    font-size: 10px;
  }

  .city-events {
    width: 160px;
    top: 167px;
  }

  .city-events span {
    font-size: 10px;
  }

  .city-events button {
    gap: 4px;
    min-height: 27px;
    padding: 4px;
  }

  .city-events b {
    font-size: 10px;
  }

  .city-buff-list {
    width: 194px;
    bottom: 204px;
  }

  .city-chat {
    width: 194px;
  }

  .city-skill-dock {
    width: auto;
    min-width: 0;
    bottom: 101px;
    left: 8px;
    right: 8px;
    transform: none;
  }

  .city-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-skill {
    min-height: 39px;
  }

  .city-journey {
    width: calc(100% - 218px);
    bottom: 8px;
    right: 8px;
  }

  .city-modal {
    width: 100%;
    max-height: 90dvh;
  }

  .city-modal-body {
    padding: 12px;
  }

  .city-talent-grid {
    grid-template-columns: 1fr;
  }

  .city-panel-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .city-derived-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.city-mode-switch {
  border: 1px solid var(--hud-line);
  background: #0509108c;
  border-radius: 7px;
  gap: 2px;
  padding: 2px;
  display: inline-flex;
}

.city-mode-switch button {
  color: #8f9bad;
  letter-spacing: .04em;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 5px;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  font: 800 10px / 1 Space Grotesk, sans-serif;
  transition: color .15s, background-color .15s, border-color .15s;
  display: inline-flex;
}

.city-mode-switch button svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.city-mode-switch button:hover:not(.selected) {
  color: #d7dde6;
  background: #ffffff0d;
}

.city-mode-switch button:focus-visible {
  outline-offset: 1px;
  outline: 2px solid #e2c878;
}

.city-mode-switch button.selected {
  color: #f3dc98;
  background: linear-gradient(#d6b05638, #d6b05614);
  border-color: #e2c46e80;
  box-shadow: inset 0 -2px #7fdcab;
}

.city-mode-switch button.selected.semiautomatic {
  box-shadow: inset 0 -2px #9dc8ff;
}

.city-mode-switch button.selected.manual {
  box-shadow: inset 0 -2px #efc676;
}

.city-auto-potion {
  border: 1px solid var(--hud-line);
  color: #a3adbb;
  letter-spacing: .04em;
  cursor: pointer;
  background: #0509108c;
  border-radius: 7px;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px 0 7px;
  font: 800 10px / 1 Space Grotesk, sans-serif;
  display: inline-flex;
}

.city-auto-potion svg {
  color: #6f7888;
  width: 15px;
  height: 15px;
  transition: color .15s;
}

.city-auto-potion.on {
  color: #e9eef5;
  border-color: #e2c46e66;
}

.city-auto-potion.on svg {
  color: #f0707c;
  filter: drop-shadow(0 0 4px #f0707c8c);
}

.city-auto-potion:focus-visible {
  outline-offset: 1px;
  outline: 2px solid #e2c878;
}

.city-switch {
  background: #ffffff1f;
  border-radius: 999px;
  width: 26px;
  height: 14px;
  transition: background-color .15s;
  position: relative;
  box-shadow: inset 0 0 0 1px #ffffff1f;
}

.city-switch b {
  background: #8f9bad;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: transform .15s, background-color .15s;
  position: absolute;
  top: 2px;
  left: 2px;
}

.city-auto-potion.on .city-switch {
  background: #7fdcab52;
  box-shadow: inset 0 0 0 1px #7fdcab8c;
}

.city-auto-potion.on .city-switch b {
  background: #9ff0c4;
  transform: translateX(12px);
}

@media (prefers-reduced-motion: reduce) {
  .city-mode-switch button, .city-switch, .city-switch b, .city-auto-potion svg {
    transition: none;
  }
}

@media (max-width: 600px) {
  .city-mode-switch button span {
    display: none;
  }

  .city-mode-switch button {
    padding: 0 7px;
  }
}

.city-basic-attack {
  color: #f3d897;
  letter-spacing: .1em;
  background: linear-gradient(100deg, #91612c3d, #6745232b);
  border: 1px solid #e8c17759;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
}

.city-basic-attack span {
  color: #d5c7a4;
  background: #00000047;
  border-radius: 3px;
  margin-left: auto;
  padding: 2px 4px;
  font-size: 10px;
}

button.city-skill {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: default;
}

button.city-skill:disabled {
  opacity: .72;
}

button.city-skill.locked:disabled {
  opacity: .48;
}

button.city-skill.usable {
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}

button.city-skill.usable:hover {
  background: #c8a65142;
  border-color: #dbc7949e;
  transform: translateY(-1px);
}

.city-control-hint {
  color: #e9e1c9c2;
  letter-spacing: .1em;
  white-space: nowrap;
  pointer-events: none;
  background: #080c109e;
  border: 1px solid #d3c39129;
  border-radius: 4px;
  padding: 5px 8px;
  font-family: Space Grotesk, sans-serif;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  bottom: 91px;
  left: 50%;
  transform: translateX(-50%);
}

.city-virtual-stick {
  z-index: 6;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  width: 122px;
  height: 122px;
  display: none;
  position: absolute;
  bottom: 18px;
  left: 18px;
}

.city-stick-orbit {
  pointer-events: none;
  background: radial-gradient(circle, #18202380, #080d11ba);
  border: 1px solid #e8dec133;
  border-radius: 50%;
  position: absolute;
  inset: 7px;
  box-shadow: inset 0 0 22px #d4c0890e, 0 9px 24px #00000047;
}

.city-stick-label {
  color: #e6dec985;
  letter-spacing: .16em;
  pointer-events: none;
  font-family: Space Grotesk, sans-serif;
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  bottom: 15px;
}

.city-stick-thumb {
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 34% 28%, #ddca9757, #5d544233 56%, #0e1417d1);
  border: 1px solid #e8d29b78;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  box-shadow: 0 4px 15px #0000006b, inset 0 1px #ffffff24;
}

.city-stick-touch-zone {
  z-index: 2;
  pointer-events: auto;
  touch-action: none;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

@media (max-width: 620px) {
  body {
    min-width: 320px;
    min-height: 100svh;
    overflow: hidden;
  }

  .city-shell {
    height: 100dvh;
    min-height: 0;
  }

  .city-player-card {
    top: max(7px,env(safe-area-inset-top));
    width: min(194px, 54vw);
    padding: 8px;
    left: 7px;
  }

  .city-player-top {
    font-size: 10px;
  }

  .city-identity {
    gap: 6px;
  }

  .city-avatar {
    width: 34px;
    height: 34px;
  }

  .city-name b {
    font-size: 10px;
  }

  .city-level {
    width: 38px;
    height: 38px;
  }

  .city-level b {
    font-size: 14px;
  }

  .city-xp-line {
    margin-top: 8px;
    font-size: 10px;
  }

  .city-resource {
    gap: 5px;
    margin-top: 5px;
  }

  .city-resource-label {
    min-width: 25px;
    font-size: 10px;
  }

  .city-resource > span:last-child {
    min-width: 62px;
    font-size: 10px;
  }

  .city-currencies {
    margin-top: 7px;
    font-size: 10px;
  }

  .city-power {
    margin-top: 7px;
    padding-top: 5px;
    font-size: 10px;
  }

  .city-topbar {
    top: max(7px,env(safe-area-inset-top));
    width: calc(100vw - min(194px, 54vw) - 22px);
    min-height: 0;
    padding: 5px;
    left: auto;
    right: 7px;
  }

  .city-brand {
    display: none;
  }

  .city-connect-row {
    gap: 4px;
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .city-local-status {
    display: none;
  }

  .city-sound-button {
    width: 25px;
    height: 25px;
  }

  .city-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 31px 0 0;
  }

  .city-nav-button {
    gap: 0;
    min-width: 0;
    min-height: 31px;
  }

  .city-nav-button svg {
    width: 16px;
    height: 16px;
  }

  .city-nav-button span, .city-events, .city-buff-list, .city-chat, .city-session-stamp {
    display: none;
  }

  .city-skill-dock {
    right: 7px;
    bottom: max(7px,env(safe-area-inset-bottom));
    width: 158px;
    min-width: 0;
    padding: 6px;
    left: auto;
    transform: none;
  }

  .city-skill-heading {
    gap: 5px;
    margin-bottom: 5px;
    font-size: 10px;
  }

  .city-skill-heading small {
    font-size: 10px;
  }

  .city-basic-attack {
    min-height: 33px;
    font-size: 10px;
  }

  .city-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .city-skill {
    gap: 4px;
    min-height: 45px;
    padding: 4px;
  }

  .city-skill-key {
    width: 17px;
    height: 19px;
    font-size: 10px;
  }

  .city-skill b, .city-skill small {
    font-size: 10px;
  }

  .city-journey {
    width: 158px;
    padding: 8px;
    bottom: 190px;
    right: 7px;
  }

  .city-journey > strong {
    font-size: 10px;
  }

  .city-journey p {
    font-size: 11px;
  }

  .city-journey > button {
    min-height: 30px;
    font-size: 10px;
  }

  .city-virtual-stick {
    bottom: max(12px,env(safe-area-inset-bottom));
    width: 116px;
    height: 116px;
    display: flex;
    left: 8px;
  }

  .city-control-hint {
    display: none;
  }

  .city-modal-scrim {
    padding: 8px;
  }

  .city-modal {
    border-radius: 9px;
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .city-modal-header {
    padding: 12px;
  }

  .city-modal-header h2 {
    font-size: 17px;
  }

  .city-modal-body {
    padding: 10px;
  }

  .city-talent-grid {
    grid-template-columns: 1fr;
  }
}

.city-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.city-player-card, .city-topbar, .city-events button, .city-buff-list, .city-chat, .city-skill-dock, .city-journey {
  -webkit-backdrop-filter: blur(15px) saturate(128%);
  background: linear-gradient(145deg, #0f121dd4, #0a0f17b8);
  border-color: #c0c9d633;
  box-shadow: 0 12px 36px #0006, inset 0 1px #ffffff0e;
}

.city-player-card {
  z-index: 8;
  transition: width .2s, height .2s, padding .2s;
}

.city-player-card.collapsed {
  align-items: center;
  gap: 9px;
  width: min(218px, 100vw - 16px);
  height: 56px;
  padding: 6px 8px;
  display: flex;
}

.city-player-card.collapsed .city-avatar {
  width: 40px;
  height: 40px;
}

.city-compact-level {
  gap: 1px;
  min-width: 57px;
  display: grid;
}

.city-compact-level small {
  color: #99aaa9;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 800;
}

.city-compact-level b {
  color: #ebd18e;
  font: 700 16px / 1 Space Grotesk, sans-serif;
}

.city-profile-toggle {
  color: #d7c686;
  background: #ffffff0b;
  border: 1px solid #d8c79438;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.city-profile-toggle.expanded {
  width: 23px;
  height: 23px;
  position: absolute;
  bottom: 7px;
  right: 8px;
}

.city-player-card:not(.collapsed) .city-power {
  padding-right: 29px;
}

.city-topbar {
  z-index: 9;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.city-menu-toggle {
  color: #d8c587;
  background: #ffffff0b;
  border: 1px solid #d9c69133;
  border-radius: 6px;
  grid-area: 1 / 1;
  justify-self: center;
  place-items: center;
  width: 30px;
  height: 36px;
  display: grid;
}

.city-topbar.menu-collapsed {
  transform: translateX(calc(100% - 46px));
}

.city-topbar.menu-collapsed .city-brand, .city-topbar.menu-collapsed .city-nav, .city-topbar.menu-collapsed .city-connect-row {
  visibility: hidden;
  pointer-events: none;
}

.city-topbar.menu-collapsed .city-menu-toggle {
  visibility: visible;
  pointer-events: auto;
  transform: rotate(180deg);
}

.city-events {
  transition: opacity .12s, visibility .12s;
}

.city-chat {
  background: linear-gradient(145deg, #10151de8, #0c0f16d6);
  border-color: #dbc79447;
  border-radius: 10px;
  flex-direction: column;
  gap: 0;
  width: 340px;
  height: min(318px, 38dvh);
  padding: 0;
  display: flex;
  overflow: hidden;
}

.city-chat-heading {
  color: #efebdf;
  letter-spacing: .025em;
  border-bottom: 1px solid #dbc79438;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 10px;
}

.city-chat-heading > strong {
  font-size: 10px;
}

.city-chat-heading > span {
  color: #a6b1c0;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  display: flex;
}

.city-chat-heading > span i {
  background: #dfb96f;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.city-chat-heading > span.connected i {
  background: #5ed4a6;
  box-shadow: 0 0 8px #53ce9c;
}

.city-chat-heading > button {
  color: #b1bbc8;
  background: #ffffff09;
  border-radius: 5px;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-left: 3px;
  display: grid;
}

.city-chat-tabs {
  scrollbar-width: none;
  border-bottom: 1px solid #ffffff12;
  align-items: stretch;
  gap: 2px;
  min-height: 34px;
  padding: 0 7px;
  display: flex;
  overflow-x: auto;
}

.city-chat-tabs::-webkit-scrollbar {
  display: none;
}

.city-chat-tabs button {
  color: #a9a9b2;
  white-space: nowrap;
  flex: none;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  position: relative;
}

.city-chat-tabs button.selected:after {
  content: "";
  background: #dfc279;
  border-radius: 2px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 5px;
  right: 5px;
}

.city-chat-feed {
  scrollbar-color: #b28f4294 transparent;
  scrollbar-width: thin;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-height: 0;
  padding: 10px 11px;
  display: flex;
  overflow-y: auto;
}

.city-chat-message {
  color: #d3d2d6;
  overflow-wrap: anywhere;
  grid-template-columns: 35px 1fr;
  align-items: baseline;
  gap: 2px 5px;
  font-size: 10px;
  line-height: 1.35;
  display: grid;
}

.city-chat-message time {
  color: #8c9cad;
  font: 700 11px Space Grotesk, sans-serif;
}

.city-chat-message b {
  color: #e8d5a6;
  font-size: 11px;
}

.city-chat-message span {
  grid-column: 2;
}

.city-chat-message.system {
  color: #9bd0bc;
  border-left: 2px solid #7eb6ab;
  padding-left: 7px;
  display: block;
}

.city-chat-empty {
  color: #8c9aa5;
  text-align: center;
  flex: 1;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  display: grid;
}

.city-chat-empty svg {
  color: #909db0;
}

.city-chat-empty b {
  color: #e3dbc5;
  font-size: 11px;
}

.city-chat-empty span {
  max-width: 230px;
  font-size: 11px;
  line-height: 1.5;
}

.city-chat-composer {
  border-top: 1px solid #ffffff14;
  align-items: center;
  gap: 4px;
  min-height: 43px;
  padding: 5px 7px;
  display: flex;
}

.city-chat-composer > button {
  color: #a8bac4;
  border-radius: 5px;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  display: grid;
}

.city-chat-composer > button:disabled {
  opacity: .46;
}

.city-chat-composer input {
  color: #ece8ef;
  background: #00000040;
  border: 1px solid #ffffff17;
  border-radius: 7px;
  outline: none;
  flex: 1;
  width: 0;
  min-width: 0;
  height: 31px;
  padding: 0 9px;
  font-size: 10px;
}

.city-chat-composer input::placeholder {
  color: #75838e;
}

.city-chat-composer .city-chat-send {
  color: #f6f3ec;
  background: linear-gradient(145deg, #8e7235, #685326);
  width: 35px;
  height: 32px;
}

.city-chat-composer .city-chat-send:disabled {
  color: #8b8294;
  background: #2b2631;
}

.city-chat-note {
  color: #a7a0b0;
  border-top: 1px solid #ffffff0d;
  padding: 4px 10px;
  font-size: 11px;
}

.city-chat-reopen {
  color: #ebe6d7;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #11161ed9;
  border: 1px solid #dbc79345;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  position: relative;
  inset: auto;
}

.city-modal-hunt {
  background: linear-gradient(145deg, #121b2bf7, #0a0e16f5 62%);
  border-color: #d9c38d5c;
  width: min(1240px, 97vw);
  height: min(850px, 90dvh);
  max-height: 90dvh;
}

.city-modal-hunt .city-modal-header {
  background: linear-gradient(110deg, #2c436c4a, #0000);
  border-bottom-color: #dac48f3b;
}

.city-modal-hunt .city-modal-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 14px;
  overflow: hidden;
}

.city-hunt-panel {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
}

.city-hunt-subtitle {
  color: #9fb0c2;
  margin: 0 0 8px;
  font-size: 12px;
}

.city-hunt-tabs {
  border-bottom: 1px solid #dbc69233;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 6px;
  display: grid;
}

.city-hunt-tabs button {
  color: #8c9eb0;
  letter-spacing: .12em;
  white-space: nowrap;
  white-space: normal;
  border-bottom: 2px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 6px;
  font: 700 10px Space Grotesk, sans-serif;
  display: flex;
}

.city-hunt-tabs button svg {
  color: #8896aa;
  flex-shrink: 0;
}

.city-hunt-tabs button.selected {
  color: #f4f2ea;
  background: linear-gradient(0deg, #c8a6511f, #0000);
  border-color: #d7c087;
}

.city-hunt-tabs button.selected svg {
  color: #e6d19d;
}

.city-hunt-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  display: flex;
}

.city-hunt-toolbar > div {
  align-items: center;
  gap: 7px;
  display: flex;
}

.city-hunt-level {
  color: #c7d4df;
  border: 1px solid #dbc79429;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.city-hunt-level svg {
  color: #88bfff;
}

.city-hunt-recommend, .city-hunt-help {
  color: #80e0bd;
  background: #2b876814;
  border: 1px solid #6fd4ae47;
  border-radius: 5px;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.city-hunt-help {
  color: #b1bbc8;
  background: #ffffff09;
  border-color: #a2b0c42e;
}

.city-hunt-help-text {
  color: #aab4c2;
  background: #c8a65114;
  border-left: 2px solid #8899b3;
  margin: 0 0 8px;
  padding: 5px 8px;
  font-size: 11px;
}

.city-hunt-difficulties {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
  display: grid;
}

.city-hunt-difficulties button {
  text-align: left;
  background: #080c135c;
  border: 1px solid #c4cdda21;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 6px 9px;
  display: flex;
}

.city-hunt-difficulties button.selected {
  background: linear-gradient(115deg, #277acc2b, #08142066);
  border-color: #69baff;
  box-shadow: inset 0 0 16px #4194da14;
}

.city-hunt-difficulties button.locked {
  filter: saturate(.3);
  opacity: .48;
}

.city-tier-sigil {
  color: #98a4b5;
  background: radial-gradient(circle, #7b819333, #0c101799);
  border: 1px solid #8f96ab2e;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.city-hunt-difficulties button.selected .city-tier-sigil {
  color: #91d0ff;
  background: radial-gradient(circle, #2c8be166, #0c192ac7);
  border-color: #6dbcf673;
}

.city-tier-sigil svg {
  width: 17px;
  height: 17px;
}

.city-hunt-difficulties button > span:last-child {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.city-hunt-difficulties b {
  color: #dce3e9;
  font-size: 11px;
}

.city-hunt-difficulties small {
  color: #8799a9;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 10px Space Grotesk, sans-serif;
  overflow: hidden;
}

.city-hunt-layout {
  flex: 1;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr);
  gap: 12px;
  min-height: 0;
  display: grid;
}

.city-hunt-portals {
  scrollbar-color: #7293b573 transparent;
  scrollbar-width: thin;
  background: linear-gradient(130deg, #0c1d25ad, #10121bb8), repeating-linear-gradient(0deg, #b1c9c206 0 1px, #0000 1px 34px), repeating-linear-gradient(90deg, #b1c9c206 0 1px, #0000 1px 34px);
  border: 1px solid #73a8d038;
  border-radius: 11px;
  align-content: start;
  gap: 9px;
  padding: 9px;
  display: grid;
  overflow: auto;
}

.city-hunt-portal {
  background: linear-gradient(115deg, #0f1920de, #12191e8c);
  border: 1px solid #85a7c12e;
  border-radius: 9px;
  padding: 9px;
  position: relative;
}

.city-hunt-portal.locked {
  opacity: .62;
}

.city-hunt-portal > header {
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  display: flex;
}

.city-portal-glyph {
  color: #76c8ff;
  background: radial-gradient(circle, #258ce08a, #0b213be6 58%, #0a0f18f2);
  border: 1px solid #69afed59;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  box-shadow: 0 0 22px #3590e62b, inset 0 0 12px #57b3ff38;
}

.city-portal-glyph svg {
  width: 24px;
  height: 24px;
}

.city-hunt-portal > header > div {
  gap: 4px;
  display: grid;
}

.city-hunt-portal > header b {
  color: #edf0e9;
  font-size: 11px;
}

.city-hunt-portal > header small {
  color: #8798a2;
  font-size: 10px;
}

.city-hunt-portal > header em {
  color: #d3c18b;
  background: #ccaf6721;
  border-radius: 4px;
  margin-left: auto;
  padding: 4px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.city-hunt-foes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.city-hunt-foe {
  background: #040b1121;
  border: 1px solid #0000;
  border-radius: 7px;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 3px 3px 6px;
  display: grid;
  position: relative;
}

.city-hunt-foe:disabled {
  opacity: .35;
  filter: grayscale(.8);
}

.city-foe-art {
  color: #e2d9c2;
  background: radial-gradient(circle at 50% 44%, #57767bcc, #142027f2 58%, #060c12fa);
  border: 2px solid #7eb9e38f;
  border-radius: 50%;
  place-items: center;
  width: 54px;
  height: 54px;
  display: grid;
  box-shadow: 0 0 13px #448bc629;
}

.city-hunt-foe.moss .city-foe-art {
  color: #9fd08e;
  background: radial-gradient(circle, #386e4b94, #11221ef2 62%);
}

.city-hunt-foe.violet .city-foe-art {
  color: #cda8ef;
  background: radial-gradient(circle, #69488c8a, #1c1328f2 62%);
}

.city-hunt-foe.ember .city-foe-art {
  color: #ecb584;
  background: radial-gradient(circle, #8d4e348f, #271715f2 62%);
}

.city-hunt-foe.bone .city-foe-art {
  color: #e2d8ae;
  background: radial-gradient(circle, #7b775c94, #22201af2 62%);
}

.city-foe-art svg {
  filter: drop-shadow(0 3px 2px #000000a6);
  width: 27px;
  height: 27px;
}

.city-foe-link {
  pointer-events: none;
  border-top: 1px dashed #7aafd44f;
  width: calc(100% - 36px);
  position: absolute;
  top: 31px;
  left: calc(50% + 30px);
}

.city-hunt-foe:nth-child(4n) .city-foe-link {
  display: none;
}

.city-hunt-foe > b {
  color: #d7edff;
  background: #101c28;
  border: 1px solid #65afe866;
  border-radius: 3px;
  margin-top: -10px;
  padding: 2px 5px;
  font: 700 10px Space Grotesk, sans-serif;
  position: relative;
}

.city-hunt-foe > small {
  color: #bac6c6;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 10px;
  overflow: hidden;
}

.city-hunt-details {
  background: linear-gradient(145deg, #0e1420f5, #0b0d16fa);
  border: 1px solid #6595c942;
  border-radius: 11px;
  flex-direction: column;
  min-height: 0;
  display: flex;
  overflow: auto;
}

.city-hunt-art {
  color: #ebe6d7;
  background: radial-gradient(at 72% 24%, #369ce66b, #0000 31%), radial-gradient(at 27% 75%, #82443261, #0000 39%), linear-gradient(128deg, #171d24, #21252c 45%, #101723);
  flex: 1;
  place-items: center;
  min-height: 150px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.city-hunt-art:before {
  content: "";
  background: repeating-linear-gradient(155deg, #bca89029 0 2px, #0000 2px 34px), linear-gradient(0deg, #0b0f17b3, #0000);
  height: 85%;
  position: absolute;
  bottom: -45%;
  left: -18%;
  right: -18%;
  transform: rotate(-5deg);
}

.city-hunt-art > svg {
  z-index: 1;
  filter: drop-shadow(0 12px 8px #00000080);
  width: 76px;
  height: 76px;
}

.city-hunt-art.moss {
  color: #b7df91;
  background: radial-gradient(at 72% 24%, #4ab59666, #0000 32%), radial-gradient(at 20% 80%, #4672486b, #0000 40%), linear-gradient(128deg, #172423, #233526 48%, #111c20);
}

.city-hunt-art.violet {
  color: #d8bcff;
  background: radial-gradient(at 70% 30%, #6e53a77a, #0000 36%), linear-gradient(130deg, #201a34, #282237 47%, #111823);
}

.city-hunt-art.ember {
  color: #ffc394;
  background: radial-gradient(at 70% 25%, #ff764d5c, #0000 34%), linear-gradient(130deg, #29202a, #392b2b 48%, #171923);
}

.city-hunt-art.bone {
  color: #ece0b3;
  background: radial-gradient(at 72% 24%, #cac4974f, #0000 34%), linear-gradient(130deg, #292a2d, #33302b 50%, #171a21);
}

.city-art-orbit {
  border: 1px solid #80bce33b;
  border-radius: 50%;
  width: 115px;
  height: 115px;
  position: absolute;
}

.orbit-one {
  transform: scaleX(1.6) rotate(-23deg);
}

.orbit-two {
  transform: scaleX(1.3) rotate(36deg);
}

.city-hunt-art > b {
  z-index: 2;
  color: #ffb4a3;
  background: #2d1216c2;
  border: 1px solid #f1836f70;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  position: absolute;
  bottom: 9px;
  right: 10px;
}

.city-hunt-detail-body {
  padding: 11px;
}

.city-hunt-tags {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}

.city-hunt-tags span {
  color: #91cfff;
  background: #2671b821;
  border: 1px solid #5ca0da59;
  border-radius: 4px;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  font: 800 10px Space Grotesk, sans-serif;
  display: flex;
}

.city-hunt-tags span + span {
  color: #eacb66;
  background: #a37d251c;
  border-color: #dab65657;
}

.city-hunt-detail-body h3 {
  color: #f0f1f5;
  margin: 8px 0 3px;
  font-size: 19px;
}

.city-hunt-detail-body > p {
  color: #8fa6b6;
  gap: 3px;
  margin: 0 0 10px;
  font-size: 10px;
  display: grid;
}

.city-hunt-detail-body > p span {
  color: #9a9eaa;
  font-size: 11px;
}

.city-hunt-enter {
  color: #f1f8ff;
  background: linear-gradient(100deg, #2469a8, #324e8c);
  border: 1px solid #5bb2f7b3;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  box-shadow: inset 0 1px #ffffff2e, 0 8px 22px #24669f29;
}

.city-hunt-enter:disabled {
  color: #8c9298;
  box-shadow: none;
  background: #262930;
  border-color: #ffffff1a;
}

.city-hunt-enter svg {
  width: 19px;
  height: 19px;
}

.city-hunt-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  display: grid;
}

.city-hunt-stats > div {
  background: #ffffff09;
  border: 1px solid #d2dbe21c;
  border-radius: 7px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 48px;
  display: grid;
}

.city-hunt-stats b {
  color: #a2dec1;
  font: 700 11px Space Grotesk, sans-serif;
}

.city-hunt-stats small {
  color: #899aa8;
  font-size: 10px;
}

.city-hunt-encounters {
  border-top: 1px solid #ffffff14;
  margin-top: 10px;
  padding-top: 9px;
}

.city-hunt-encounters > b {
  color: #80b9ed;
  letter-spacing: .1em;
  font: 800 10px Space Grotesk, sans-serif;
}

.city-hunt-encounters > div {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
  display: flex;
}

.city-hunt-encounters span {
  color: #aebbc0;
  background: #ffffff09;
  border: 1px solid #ffffff17;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
}

.city-hunt-locked-mode {
  color: #aeb5c0;
  text-align: center;
  background: radial-gradient(at 50% 10%, #c8a65130, #0000 65%), #ffffff05;
  border: 1px solid #d6be832e;
  border-radius: 9px;
  flex: 1;
  align-content: center;
  justify-items: center;
  gap: 9px;
  display: grid;
}

.city-hunt-locked-mode > span {
  color: #ddd4bb;
  background: #c8a65121;
  border: 1px solid #dbc7944d;
  border-radius: 16px;
  place-items: center;
  width: 58px;
  height: 58px;
  display: grid;
}

.city-hunt-locked-mode svg {
  width: 27px;
  height: 27px;
}

.city-hunt-locked-mode > b {
  color: #ebe6d9;
  font-size: 14px;
}

.city-hunt-locked-mode p, .city-hunt-locked-mode small {
  color: #a0a7b2;
  max-width: 380px;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1280px) {
  .city-topbar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

@media (max-width: 900px) {
  .city-shell {
    height: 100dvh;
    min-height: 0;
  }

  .city-topbar {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .city-menu-toggle {
    grid-column: 1;
  }

  .city-nav {
    grid-column: 2;
  }

  .city-player-card.collapsed {
    width: 190px;
  }

  .city-hunt-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .86fr);
  }

  .city-hunt-tabs button {
    letter-spacing: .07em;
    gap: 5px;
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .city-shell {
    height: 100dvh;
    min-height: 0;
  }

  .city-player-card.collapsed {
    width: 180px;
    height: 50px;
  }

  .city-player-card.collapsed .city-avatar {
    width: 36px;
    height: 36px;
  }

  .city-profile-toggle {
    width: 25px;
    height: 25px;
  }

  .city-topbar {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .city-menu-toggle {
    width: 25px;
    height: 28px;
  }

  .city-nav {
    grid-column: 2;
    padding: 31px 0 0;
  }

  .city-topbar.menu-collapsed {
    transform: translateX(calc(100% - 39px));
  }

  .city-chat {
    width: 100%;
  }

  .city-chat-heading {
    min-height: 34px;
  }

  .city-chat-tabs {
    min-height: 30px;
  }

  .city-chat-tabs button {
    padding: 0 7px;
    font-size: 10px;
  }

  .city-chat-feed {
    padding: 7px 9px;
  }

  .city-chat-message {
    font-size: 11px;
  }

  .city-chat-composer {
    min-height: 39px;
  }

  .city-modal-hunt {
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .city-modal-hunt .city-modal-header {
    flex: none;
  }

  .city-modal-hunt .city-modal-body {
    padding: 8px;
    overflow: auto;
  }

  .city-hunt-panel {
    height: auto;
    min-height: 100%;
  }

  .city-hunt-subtitle {
    font-size: 10px;
  }

  .city-hunt-tabs {
    width: 100%;
  }

  .city-hunt-toolbar {
    min-height: 45px;
  }

  .city-hunt-level {
    padding: 6px 7px;
    font-size: 10px;
  }

  .city-hunt-recommend, .city-hunt-help {
    gap: 4px;
    min-height: 29px;
    padding: 0 6px;
    font-size: 11px;
  }

  .city-hunt-difficulties {
    grid-template-columns: repeat(5, minmax(95px, 1fr));
    padding-bottom: 3px;
    overflow-x: auto;
  }

  .city-hunt-difficulties button {
    gap: 5px;
    min-height: 44px;
    padding: 5px;
  }

  .city-tier-sigil {
    width: 25px;
    height: 25px;
  }

  .city-hunt-difficulties b, .city-hunt-difficulties small {
    font-size: 10px;
  }

  .city-hunt-layout {
    flex-direction: column;
    gap: 8px;
    display: flex;
  }

  .city-hunt-portals {
    flex: none;
    max-height: 36dvh;
    padding: 6px;
  }

  .city-hunt-portal {
    padding: 7px;
  }

  .city-portal-glyph {
    width: 34px;
    height: 34px;
  }

  .city-portal-glyph svg {
    width: 20px;
    height: 20px;
  }

  .city-hunt-foes {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 3px;
  }

  .city-foe-art {
    width: 43px;
    height: 43px;
  }

  .city-foe-art svg {
    width: 22px;
    height: 22px;
  }

  .city-hunt-foe > small {
    font-size: 10px;
  }

  .city-foe-link {
    top: 25px;
  }

  .city-hunt-details {
    flex: none;
  }

  .city-hunt-art {
    flex: none;
    min-height: 108px;
  }

  .city-hunt-art > svg {
    width: 58px;
    height: 58px;
  }

  .city-hunt-detail-body {
    padding: 8px;
  }

  .city-hunt-detail-body h3 {
    font-size: 16px;
  }

  .city-hunt-enter {
    min-height: 40px;
    font-size: 11px;
  }

  .city-hunt-stats > div {
    min-height: 39px;
  }

  .city-hunt-locked-mode {
    min-height: 240px;
    padding: 20px;
  }
}

@media (max-height: 640px) and (min-width: 621px) {
  .city-player-card {
    transform-origin: 0 0;
    transform: scale(.86);
  }

  .city-hunt-difficulties button {
    min-height: 40px;
  }

  .city-hunt-portal {
    padding: 6px;
  }

  .city-foe-art {
    width: 45px;
    height: 45px;
  }

  .city-hunt-art {
    min-height: 110px;
  }
}

.city-left-stack {
  z-index: 8;
  pointer-events: none;
  align-content: start;
  gap: 7px;
  width: 316px;
  max-height: calc(100dvh - 24px);
  display: grid;
  position: absolute;
  top: 12px;
  left: 12px;
}

.city-left-stack > * {
  pointer-events: auto;
  min-width: 0;
}

.city-player-card {
  width: auto;
  position: relative;
  top: auto;
  left: auto;
}

.city-benefits {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.city-buffs-toggle {
  color: #c5b894;
  letter-spacing: .09em;
  background: #0b1018d4;
  border: 1px solid #c0c9d633;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.city-buffs-toggle small {
  color: #889399;
  margin-left: auto;
  font-size: 10px;
}

.city-benefits.collapsed .city-buffs-toggle {
  justify-content: center;
  width: 40px;
  min-height: 31px;
  padding: 0;
}

.city-benefits.collapsed .city-buffs-toggle span, .city-benefits.collapsed .city-buffs-toggle small {
  display: none;
}

.city-buff-list {
  border-radius: 8px;
  gap: 2px;
  width: auto;
  padding: 6px 10px;
  position: relative;
  bottom: auto;
  left: auto;
}

.city-buff-list > div {
  gap: 8px;
  min-height: 34px;
  padding: 4px 1px;
}

.city-buff-list .buff-glyph {
  text-align: center;
  flex: none;
  width: 19px;
}

.city-buff-list > div > span:last-child {
  flex: 1;
  min-width: 0;
}

.city-buff-list b, .city-buff-list small {
  font-size: 10px;
}

.city-buff-list em {
  color: #8f9aa3;
  letter-spacing: .07em;
  flex: none;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.city-donation-open {
  color: #ede7d9;
  letter-spacing: .06em;
  white-space: nowrap;
  background: linear-gradient(110deg, #c8a65154, #27354e59);
  border: 1px solid #dbc79452;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
}

.city-donation-open:hover {
  background: #c8a6514d;
  border-color: #dbc7949e;
}

.city-potion-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
  display: grid;
}

.city-potion-slot {
  color: #dbd9e5;
  background: #ffffff0b;
  border: 1px solid #c1cad829;
  border-radius: 6px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 42px;
  padding: 5px 7px 5px 25px;
  display: grid;
  position: relative;
}

.city-potion-slot > svg {
  color: #e9d5a5;
}

.city-potion-slot.health > svg {
  color: #e58583;
}

.city-potion-slot.mana > svg {
  color: #82c8ee;
}

.city-potion-slot.legion > svg {
  color: #9bd9bc;
}

.city-potion-slot > b {
  color: #e8e5db;
  text-overflow: ellipsis;
  font-size: 10px;
  overflow: hidden;
}

.city-potion-slot > small {
  color: #e6cd91;
  font: 800 10px Space Grotesk, sans-serif;
}

.city-potion-slot:disabled {
  cursor: default;
  opacity: .46;
}

.city-potion-key {
  color: #e3d39d;
  background: #070b10cc;
  border: 1px solid #dfcd973b;
  border-radius: 4px;
  place-items: center;
  width: 16px;
  height: 16px;
  font: 800 10px Space Grotesk, sans-serif;
  display: grid;
  position: absolute;
  top: 3px;
  left: 4px;
}

.city-potion-shop {
  gap: 9px;
  display: grid;
}

.city-shop-wallet {
  color: #ddc476;
  background: #c0994014;
  border: 1px solid #d6bb7033;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  padding: 9px;
  display: flex;
}

.city-shop-wallet span {
  color: #a9a5a0;
  flex: 1;
  font-size: 10px;
  font-weight: 800;
}

.city-shop-wallet b {
  font: 800 13px Space Grotesk, sans-serif;
}

.city-shop-potions {
  gap: 7px;
  display: grid;
}

.city-shop-potion {
  background: #ffffff06;
  border: 1px solid #cdbea421;
  border-radius: 7px;
  grid-template-columns: 36px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  display: grid;
}

.city-shop-potion-icon {
  color: #d9c282;
  background: #cda84e17;
  border: 1px solid #d6c19233;
  border-radius: 7px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.city-shop-potion-copy {
  gap: 3px;
  display: grid;
}

.city-shop-potion-copy b {
  color: #eee5d7;
  font-size: 11px;
}

.city-shop-potion-copy small, .city-shop-potion-copy em {
  color: #9ba5a5;
  font-size: 11px;
  font-style: normal;
}

.city-shop-potion label {
  color: #939da1;
  gap: 3px;
  font-size: 10px;
  display: grid;
}

.city-shop-potion input {
  color: #f3e9d4;
  background: #10161e;
  border: 1px solid #dccaa329;
  border-radius: 5px;
  width: 100%;
  height: 27px;
  padding: 0 5px;
  font: 700 10px Space Grotesk, sans-serif;
}

.city-shop-potion > button {
  color: #e9d698;
  background: #c299441f;
  border: 1px solid #c7a76447;
  border-radius: 5px;
  grid-column: 2 / 4;
  min-height: 29px;
  font-size: 10px;
  font-weight: 900;
}

.city-shop-potion > button:disabled {
  opacity: .5;
}

.city-shop-message, .city-payment-error {
  color: #e6c990;
  margin: 0;
  font-size: 11px;
}

.city-rank-trial {
  gap: 10px;
  display: grid;
}

.city-rank-trial-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.city-rank-trial-stats span {
  color: #9ea4a2;
  border: 1px solid #d7c3911f;
  border-radius: 6px;
  gap: 5px;
  padding: 8px;
  font-size: 10px;
  display: grid;
}

.city-rank-trial-stats b {
  color: #e5d08e;
  font: 800 10px Space Grotesk, sans-serif;
}

.city-server-note {
  color: #919aa0;
  font-size: 11px;
  line-height: 1.5;
}

.city-pix-qr img {
  object-fit: contain;
  background: #fff;
  width: 96px;
  height: 96px;
}

.city-donation-email {
  color: #a9a4b5;
  gap: 5px;
  font-size: 10px;
  display: grid;
}

.city-donation-email input {
  color: #f4eddf;
  background: #00000038;
  border: 1px solid #bbc5d433;
  border-radius: 6px;
  height: 34px;
  padding: 0 9px;
}

.city-mp-link {
  color: #b8dbed;
  text-align: center;
  border: 1px solid #78afd640;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  min-height: 29px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
}

.city-donation-approved {
  color: #9ce0bf;
  text-align: center;
  justify-items: center;
  gap: 7px;
  padding: 16px;
  display: grid;
}

.city-donation-approved > span {
  color: #e7cb82;
  font-size: 30px;
}

.city-donation-approved h3 {
  color: #e8f0e8;
  margin: 0;
  font-size: 15px;
}

.city-donation-approved strong {
  color: #ddc27f;
  letter-spacing: .1em;
  font-size: 10px;
}

.city-ui .city-topbar {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

@media (max-width: 1280px) {
  .city-ui .city-topbar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

@media (max-width: 900px) {
  .city-left-stack {
    width: min(265px, 34vw);
    top: 8px;
    left: 8px;
  }

  .city-ui .city-topbar {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    left: calc(min(265px, 34vw) + 16px);
    right: 8px;
  }

  .city-shop-potion {
    grid-template-columns: 34px minmax(0, 1fr) 70px;
  }
}

@media (max-width: 620px) {
  .city-left-stack {
    top: max(7px,env(safe-area-inset-top));
    gap: 5px;
    width: min(194px, 54vw);
    left: 7px;
  }

  .city-player-card {
    width: auto;
    padding: 8px;
  }

  .city-player-card.collapsed {
    width: auto;
  }

  .city-player-top {
    font-size: 10px;
  }

  .city-identity {
    gap: 6px;
  }

  .city-avatar {
    width: 34px;
    height: 34px;
  }

  .city-name b {
    font-size: 10px;
  }

  .city-level {
    width: 38px;
    height: 38px;
  }

  .city-level b {
    font-size: 14px;
  }

  .city-buffs-toggle {
    min-height: 25px;
  }

  .city-buff-list {
    max-height: 24dvh;
    padding: 4px 7px;
    overflow: auto;
  }

  .city-buff-list > div {
    gap: 5px;
    min-height: 29px;
  }

  .city-buff-list b, .city-buff-list small {
    font-size: 10px;
  }

  .city-buff-list em {
    display: none;
  }

  .city-topbar {
    grid-template-columns: 28px minmax(0, 1fr);
    width: calc(100vw - min(194px, 54vw) - 22px);
    left: auto;
    right: 7px;
  }

  .city-shop-potion {
    grid-template-columns: 30px minmax(0, 1fr) 64px;
    gap: 6px;
    padding: 6px;
  }

  .city-shop-potion > button {
    grid-column: 1 / 4;
  }

  .city-potion-row {
    gap: 3px;
  }

  .city-potion-slot {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 3px;
    min-height: 37px;
    padding: 4px 4px 4px 21px;
  }

  .city-potion-slot > svg {
    width: 15px;
    height: 15px;
  }

  .city-potion-slot > b, .city-potion-slot > small {
    font-size: 10px;
  }

  .city-potion-key {
    width: 14px;
    height: 14px;
    font-size: 10px;
    top: 2px;
    left: 3px;
  }

  .city-rank-trial-stats {
    grid-template-columns: 1fr;
  }
}

.city-ui {
  --hud-edge: 12px;
  --profile-width: min(316px, 34vw);
  --hud-line: #c2cbd838;
  --hud-surface: linear-gradient(148deg, #141626eb, #0a111ad4);
}

.city-left-stack {
  top: var(--hud-edge);
  left: var(--hud-edge);
  width: var(--profile-width);
  gap: 6px;
}

.city-player-card {
  transform: none;
}

.city-player-card.collapsed {
  justify-self: start;
  gap: 10px;
  width: min(210px, 100%);
  padding-inline: 9px;
}

.city-player-card.collapsed .city-profile-toggle {
  margin-inline-start: auto;
}

.city-avatar {
  background: radial-gradient(at 50% 60%, #303751, #141a29 76%);
  overflow: hidden;
}

.city-avatar-face {
  width: 92%;
  height: 92%;
  display: block;
}

.city-name b {
  font-size: 14px;
  font-weight: 650;
}

.city-compact-level small {
  font-size: 10px;
  font-weight: 600;
}

.city-benefits {
  gap: 4px;
}

.city-buffs-toggle {
  border-color: var(--hud-line);
  color: #e9e3d3;
  background: var(--hud-surface);
  letter-spacing: .025em;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
}

.city-benefits.collapsed .city-buffs-toggle {
  width: 34px;
}

.city-buff-list {
  border-color: var(--hud-line);
  background: var(--hud-surface);
  gap: 3px;
  max-height: 34dvh;
  padding: 4px;
  display: grid;
  overflow-y: auto;
}

.city-buff-list > .city-benefit {
  --buff-color: #e4ca88;
  background: linear-gradient(90deg, var(--buff-color), #00000029);
  border: 1px solid #c4c3db1c;
  border-radius: 6px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 4px 7px 4px 5px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .city-buff-list > .city-benefit {
    background: linear-gradient(90deg, color-mix(in srgb,var(--buff-color) 9%, transparent), #00000029);
  }
}

.city-buff-list > .city-benefit.convergence {
  --buff-color: #8cceb8;
}

.city-buff-list > .city-benefit.daily {
  --buff-color: #e9d5a5;
}

.city-buff-list > .city-benefit.blessing {
  --buff-color: #e6dfcc;
}

.city-buff-list > .city-benefit.vip {
  --buff-color: #ddd7c5;
}

.city-benefit-icon {
  width: 27px;
  height: 27px;
  color: var(--buff-color);
  background: var(--buff-color);
  border-radius: 5px;
  place-items: center;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .city-benefit-icon {
    background: color-mix(in srgb,var(--buff-color) 12%, transparent);
  }
}

.city-benefit-icon svg {
  width: 17px;
  height: 17px;
}

.city-benefit-copy {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.city-benefit-copy b {
  color: #f0eaf4;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
}

.city-benefit-copy small {
  color: #b3bbc8;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}

.city-benefit strong {
  color: var(--buff-color);
  white-space: nowrap;
  font: 600 10px / 1.2 DM Sans, sans-serif;
}

.city-right-stack {
  z-index: 9;
  top: var(--hud-edge);
  right: var(--hud-edge);
  width: min(660px,calc(100% - var(--profile-width) - var(--hud-edge) * 2 - 10px));
  justify-items: end;
  gap: 5px;
  display: grid;
  position: absolute;
}

.city-status-strip {
  z-index: 2;
  border: 1px solid var(--hud-line);
  white-space: nowrap;
  background: var(--hud-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  border-radius: 11px;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  padding: 4px;
  display: flex;
  position: relative;
}

.city-status-strip .city-local-status {
  color: #b5bac8;
  background: #ffffff09;
  border-radius: 7px;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.city-status-strip .city-local-status i {
  box-shadow: none;
  background: #aeb3c3;
}

.city-status-strip .city-local-status.connected {
  color: #a9e8cb;
}

.city-status-strip .city-local-status.connected i {
  background: #6bd4a4;
  box-shadow: 0 0 7px #69ce9c8a;
}

.city-status-strip .city-local-status[data-connection="connecting"] {
  color: #e4cb83;
}

.city-status-strip .city-local-status[data-connection="connecting"] i {
  background: #e4cb83;
  box-shadow: 0 0 7px #e4cb8380;
}

.city-status-strip .city-sound-button, .city-status-strip .city-donation-open {
  letter-spacing: .025em;
  cursor: pointer;
  border-radius: 7px;
  gap: 6px;
  height: 30px;
  min-height: 30px;
  font-size: 10px;
  font-weight: 700;
}

.city-status-strip .city-donation-open {
  padding-inline: 11px;
}

.city-status-strip .city-sound-button {
  flex: none;
  width: 30px;
}

.city-status-strip .city-sound-button:hover, .city-status-strip .city-sound-button:focus-visible {
  border-color: var(--ui-border-strong);
  background: var(--ui-gold-soft);
  outline: none;
}

.city-status-strip .city-admin-open {
  border: 1px solid var(--ui-border-strong);
  background: var(--ui-gold-soft);
  height: 30px;
  min-height: 30px;
  color: var(--ui-gold-bright);
  letter-spacing: .025em;
  border-radius: 7px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.city-status-strip .city-admin-open svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.city-status-strip .city-admin-open:hover, .city-status-strip .city-admin-open:focus-visible {
  border-color: var(--ui-gold);
  background: #d4b76e33;
  outline: none;
}

.city-right-stack .city-topbar {
  z-index: 1;
  border-color: var(--hud-line);
  background: var(--hud-surface);
  border-radius: 8px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 3px;
  width: 100%;
  min-height: 0;
  padding: 4px;
  position: relative;
  inset: auto;
}

.city-right-stack .city-topbar.menu-collapsed {
  width: auto;
  display: block;
  transform: none;
}

.city-right-stack .city-menu-toggle {
  width: 27px;
  height: 31px;
}

.city-right-stack .city-nav {
  grid-column: 2;
  grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  padding: 0;
}

.city-right-stack .city-nav-button {
  gap: 3px;
  min-height: 39px;
  padding-inline: 2px;
}

.city-right-stack .city-nav-button span {
  letter-spacing: 0;
  max-width: 100%;
  font-size: 10px;
  font-weight: 650;
}

.city-right-stack .city-events {
  width: min(235px, 100%);
  position: static;
}

.city-combat-dock {
  z-index: 7;
  bottom: max(var(--hud-edge),env(safe-area-inset-bottom));
  pointer-events: none;
  justify-items: center;
  gap: 5px;
  display: grid;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.city-combat-toolbar, .city-action-bar {
  border: 1px solid var(--hud-line);
  background: var(--hud-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 5px;
  display: flex;
  box-shadow: 0 6px 20px #05050ca1, inset 0 1px #ffffff10;
}

.city-combat-toolbar {
  padding: 3px;
}

.city-combat-toolbar button {
  min-height: 26px;
  font-size: 10px;
  font-weight: 650;
}

.city-combat-return {
  color: #ddcfaa;
  background: #cdb1651f;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-inline: 7px;
  display: flex;
}

.city-combat-return svg {
  width: 13px;
  height: 13px;
}

.city-action-group {
  align-items: center;
  gap: 4px;
  display: flex;
}

.city-action-group.potions {
  border-inline-start: 1px solid var(--hud-line);
  padding-inline-start: 7px;
}

.city-action-slot {
  --slot-color: #f0ce85;
  border: 1px solid var(--slot-color);
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .city-action-slot {
    border: 1px solid color-mix(in srgb,var(--slot-color) 35%,#26263a);
  }
}

.city-action-slot {
  color: var(--slot-color);
  background: radial-gradient(ellipse at 50% 75%,var(--slot-color),#111626 75%);
  border-radius: 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .city-action-slot {
    background: radial-gradient(ellipse at 50% 75%,color-mix(in srgb,var(--slot-color) 20%,#111626),#111626 75%);
  }
}

.city-action-slot {
  box-shadow: inset 0 1px #ffffff14, inset 0 -2px #080b13a8;
}

.city-action-slot.rift, .city-action-slot.legion {
  --slot-color: #dfd6be;
}

.city-action-slot.arcane, .city-action-slot.health {
  --slot-color: #ffa099;
}

.city-action-slot.ward, .city-action-slot.mana {
  --slot-color: #93cafc;
}

.city-action-slot.spirit {
  --slot-color: #90dec9;
}

.city-action-icon {
  filter: drop-shadow(0 1px 5px);
  width: 27px;
  height: 27px;
}

.city-action-slot kbd, .city-action-counter {
  color: #ede9de;
  background: #080c14d9;
  border-radius: 3px;
  align-items: center;
  gap: 2px;
  padding: 1px 3px;
  font: 600 10px / 1.2 Space Grotesk, sans-serif;
  display: flex;
  position: absolute;
}

.city-action-slot kbd {
  top: 2px;
  left: 2px;
}

.city-action-counter {
  bottom: 2px;
  right: 2px;
}

.city-action-recharge {
  box-shadow: 0 -1px var(--slot-color);
  background: #080b18c2;
  border-radius: 0 0 4px 4px;
  position: absolute;
  inset: auto 1px 1px;
}

@supports (color: color-mix(in lab, red, red)) {
  .city-action-recharge {
    box-shadow: 0 -1px color-mix(in srgb,var(--slot-color) 60%,transparent);
  }
}

.city-action-recharge {
  pointer-events: none;
  transition: height 70ms linear;
}

.city-action-timer {
  color: #fff4d5;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px #080c12, 0 0 5px #080c12;
  pointer-events: none;
  grid-auto-flow: column;
  place-content: center;
  align-items: baseline;
  gap: 1px;
  font: 700 14px / 1 Space Grotesk, sans-serif;
  display: grid;
  position: absolute;
  inset: 0;
}

.city-action-timer small {
  font-size: 10px;
}

.city-action-slot:disabled {
  cursor: default;
}

.city-action-slot.locked, .city-action-slot.empty {
  opacity: .58;
}

.city-action-slot:not(:disabled):hover {
  border-color: currentColor;
  transform: translateY(-1px);
}

.city-pets {
  gap: 14px;
  display: grid;
}

.city-pet-active {
  color: #f7e9c9;
  background: linear-gradient(110deg, #273045, #191e2e);
  border: 1px solid #d4b87866;
  border-radius: 9px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.city-pet-active > svg {
  color: #efcf88;
  flex: none;
}

.city-pet-active > span {
  flex: 1;
  gap: 2px;
  display: grid;
}

.city-pet-active small, .city-pet-card small {
  color: #bbc4d8;
  font-size: 11px;
}

.city-pet-active button, .city-pet-tabs button, .city-pet-card button, .city-pet-filters select {
  color: #efeef6;
  background: #161e2d;
  border: 1px solid #67718c66;
  border-radius: 6px;
  min-height: 36px;
  padding: 5px 10px;
  font-size: 12px;
}

.city-pet-filters, .city-pet-tabs {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.city-pet-filters {
  justify-content: space-between;
}

.city-pet-tabs button[aria-pressed="true"] {
  color: #f4d797;
  background: #282f3a;
  border-color: #d4b878a8;
}

.city-pet-tabs b {
  font-variant-numeric: tabular-nums;
  margin-inline-start: 4px;
}

.city-pet-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-content: start;
  gap: 8px;
  min-width: 0;
  display: grid;
}

.city-pet-card {
  --pet-rarity: #bfc9dd;
  background: #131b2b;
  border: 1px solid #444d68;
  border-radius: 8px;
  grid-template-rows: 1fr auto;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 6px 9px;
  padding: 9px;
  display: grid;
}

.city-pet-card[data-rarity="Raro"] {
  --pet-rarity: #94caf7;
}

.city-pet-card[data-rarity="Épico"] {
  --pet-rarity: #d9b3f5;
}

.city-pet-card[data-rarity="Lendário"] {
  --pet-rarity: #ecc886;
}

.city-pet-card[data-rarity="Mítico"] {
  --pet-rarity: #ffaeb5;
}

.city-pet-card[data-active="true"] {
  background: #202536;
  border-color: #d8bd85;
}

.city-pet-art {
  background: radial-gradient(#36405e, #171e2d 72%);
  border-radius: 5px;
  place-items: center;
  height: 72px;
  display: grid;
  overflow: hidden;
}

.city-pet-art > span {
  background-repeat: no-repeat;
}

.city-pet-card-info {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.city-pet-card-info strong {
  font-size: 13px;
}

.city-pet-card-info small:first-of-type {
  color: var(--pet-rarity);
}

.city-pet-card button, .city-pet-tag {
  grid-column: 1 / -1;
}

.city-pet-card button {
  color: #f6ddab;
  background: #283140;
}

.city-pet-tag {
  color: #b8c4d5;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  font-size: 12px;
  display: flex;
}

.city-pet-card[data-active="true"] .city-pet-tag {
  color: #f6dca2;
}

.city-pet-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  align-items: start;
  gap: 12px;
  display: grid;
}

.city-pet-card {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.city-pet-card[aria-pressed="true"] {
  outline: 1px solid #d6be83;
  box-shadow: 0 0 16px #c8a65122;
}

.city-pet-art-render {
  width: 100%;
  height: 100%;
  display: block;
}

.city-pet-art-render > svg {
  filter: drop-shadow(0 4px 5px #090d18);
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.city-pet-detail {
  color: #e8e5f0;
  background: linear-gradient(150deg, #111a2aee, #121822f5);
  border: 1px solid #8e9eb755;
  border-radius: 10px;
  align-content: start;
  gap: 10px;
  min-width: 0;
  max-height: min(68vh, 700px);
  padding: 12px;
  display: grid;
  overflow: auto;
}

.city-pet-detail > header {
  border-bottom: 1px solid #ffffff12;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  display: flex;
}

.city-pet-detail > header small, .city-pet-level span, .city-pet-fragments span, .city-pet-evolution small, .city-pet-evolve-requirements {
  color: #9da9bd;
  font-size: 11px;
}

.city-pet-detail > header h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.city-pet-detail-art {
  background: radial-gradient(#36405e, #171e2d 72%);
  border-radius: 8px;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  display: block;
}

.city-pet-detail-art > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.city-pet-level, .city-pet-fragments, .city-pet-talent-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.city-pet-level b, .city-pet-fragments b {
  color: #f0d38b;
  font-size: 12px;
}

.city-pet-xp {
  background: #070b14;
  border: 1px solid #64708844;
  border-radius: 8px;
  height: 7px;
  overflow: hidden;
}

.city-pet-xp i {
  background: linear-gradient(90deg, #60969a, #afcfad);
  height: 100%;
  transition: width .25s;
  display: block;
}

.city-pet-xp i.fragments {
  background: linear-gradient(90deg, #b99444, #e1be73);
}

.city-pet-evolution {
  background: #080d17a6;
  border: 1px solid #fff1;
  border-radius: 7px;
  grid-template-columns: 1fr 26px 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px;
  display: grid;
}

.city-pet-evolution div:not(.city-pet-evolution-arrow) {
  gap: 3px;
  display: grid;
}

.city-pet-evolution strong {
  color: #e9d194;
  font-size: 12px;
}

.city-pet-evolution-arrow {
  color: #97a4b6;
  place-items: center;
  display: grid;
}

.city-pet-evolve-requirements {
  margin-top: -7px;
}

.city-pet-evolve, .city-pet-equip {
  color: #251d25;
  background: linear-gradient(100deg, #d8bd78, #f0d999);
  border: 1px solid #d4b87888;
  border-radius: 6px;
  min-height: 37px;
  font-weight: 700;
}

.city-pet-equip {
  color: #f2dfb7;
  background: #242e40;
}

.city-pet-evolve:disabled, .city-pet-equip:disabled {
  opacity: .48;
  cursor: default;
}

.city-pet-skin-select {
  background: linear-gradient(135deg, #171b2a, #111521);
  border: 1px solid #7c8fac44;
  border-radius: 7px;
  gap: 5px;
  padding: 9px;
  display: grid;
}

.city-pet-skin-select label {
  color: #ecdcae;
  font-size: 11px;
  font-weight: 700;
}

.city-pet-skin-select select {
  color: #eeeaf6;
  background: #111725;
  border: 1px solid #7589a655;
  border-radius: 5px;
  min-height: 34px;
  padding: 6px 9px;
  font: 600 11px Space Grotesk, sans-serif;
}

.city-pet-skin-select select:disabled {
  opacity: .56;
}

.city-pet-skin-select small {
  color: #99a8ba;
  font-size: 10px;
}

.city-pet-passives {
  background: #0b111d;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  gap: 7px;
  padding: 8px;
  font-size: 11px;
  display: grid;
}

.city-pet-passives > div {
  grid-template-columns: 1fr 1fr;
  gap: 5px 9px;
  display: grid;
}

.city-pet-passives span {
  color: #aab6c8;
  justify-content: space-between;
  display: flex;
}

.city-pet-passives strong {
  color: #82d1b7;
}

.city-pet-talent-head {
  color: #ead59e;
  font-size: 12px;
}

.city-pet-talent-head span {
  color: #a3aebe;
}

.city-pet-talent-tree {
  gap: 5px;
  display: grid;
}

.city-pet-talent-node {
  text-align: left;
  color: #efebdf;
  background: #111827;
  border: 1px solid #576b8866;
  border-radius: 6px;
  gap: 3px;
  padding: 7px 8px;
  display: grid;
}

.city-pet-talent-node:disabled {
  opacity: .55;
}

.city-pet-talent-node[data-unlocked="true"] {
  color: #a6e2c3;
  border-color: #75c4a3;
}

.city-pet-talent-node small {
  color: #a5afc0;
  font-size: 10px;
}

.city-pet-hunt-state {
  color: #9fe1c4;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  display: flex;
}

@media (max-width: 760px) {
  .city-pet-layout {
    grid-template-columns: 1fr;
  }

  .city-pet-detail {
    max-height: 48vh;
  }
}

.city-zoom-controls {
  z-index: 6;
  right: var(--hud-edge);
  bottom: calc(var(--hud-edge) + 16px);
  border: 1px solid var(--hud-line);
  color: #ece7d8;
  background: var(--hud-surface);
  pointer-events: auto;
  border-radius: 7px;
  justify-items: stretch;
  width: 36px;
  padding: 3px;
  display: grid;
  position: absolute;
}

.city-zoom-controls button {
  border-radius: 4px;
  min-height: 25px;
  font-size: 17px;
  line-height: 1;
}

.city-zoom-controls button:hover {
  background: #dac48b26;
}

.city-zoom-controls output {
  text-align: center;
  color: #b9bbc9;
  font: 600 10px / 1.6 Space Grotesk, sans-serif;
}

@media (max-width: 900px) {
  .city-ui {
    --hud-edge: 8px;
    --profile-width: min(265px,34vw);
  }

  .city-right-stack .city-nav-button span {
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .city-ui {
    --hud-edge: 7px;
    --profile-width: min(194px,52vw);
  }

  .city-right-stack, .city-left-stack {
    top: max(var(--hud-edge),env(safe-area-inset-top));
  }

  .city-status-strip {
    gap: 3px;
  }

  .city-status-strip .city-donation-open {
    width: 26px;
    padding: 0;
  }

  .city-status-strip .city-donation-open span, .city-status-strip .city-local-status span, .city-status-strip .city-admin-open span {
    display: none;
  }

  .city-status-strip .city-admin-open {
    justify-content: center;
    width: 26px;
    padding: 0;
  }

  .city-status-strip .city-local-status {
    padding-inline: 1px;
  }

  .city-right-stack .city-nav {
    grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  }

  .city-right-stack .city-nav-button {
    min-height: 30px;
  }

  .city-buff-list > .city-benefit {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 5px;
  }

  .city-benefit-icon {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
  }

  .city-benefit-icon svg {
    width: 15px;
    height: 15px;
  }

  .city-benefit-copy b, .city-benefit-copy small, .city-benefit strong {
    font-size: 11px;
  }

  .city-benefit strong {
    grid-column: 2;
  }

  .city-player-card.collapsed {
    width: 100%;
  }

  .city-combat-dock {
    max-width: calc(100% - 10px);
  }

  .city-action-bar {
    gap: 4px;
    max-width: 100%;
    padding: 4px;
  }

  .city-action-group {
    gap: 3px;
  }

  .city-action-group.potions {
    padding-inline-start: 4px;
  }

  .city-action-slot {
    width: clamp(38px, 10.5vw, 45px);
    height: 43px;
  }

  .city-action-icon {
    width: 24px;
    height: 24px;
  }

  .city-virtual-stick {
    bottom: calc(67px + env(safe-area-inset-bottom));
  }

  .city-zoom-controls {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

.city-left-stack {
  min-height: 0;
  bottom: max(calc(var(--hud-edge) + 92px),env(safe-area-inset-bottom));
  max-height: calc(100cqh - var(--hud-edge) - var(--hud-edge) - 92px);
  overscroll-behavior: contain;
  scrollbar-color: #bfae8461 transparent;
  scrollbar-width: thin;
  flex-direction: column;
  display: flex;
  overflow: hidden auto;
}

.city-left-stack .city-player-card {
  flex: none;
}

.city-left-stack .city-player-card.collapsed {
  align-self: flex-start;
}

.city-compact-level {
  background: #04081061;
  border: 1px solid #d0bf902b;
  border-radius: 5px;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding: 5px 7px;
  display: flex;
}

.city-compact-level b {
  font-size: 15px;
}

.city-left-stack .city-benefits {
  flex-direction: column;
  flex: 0 auto;
  min-height: 30px;
  display: flex;
}

.city-left-stack .city-buffs-toggle {
  flex: none;
}

.city-left-stack .city-buff-list {
  min-height: 0;
}

.city-chat-anchor .city-chat, .city-chat-anchor .city-chat-reopen {
  box-sizing: border-box;
  pointer-events: auto;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  inset: auto;
}

.city-chat-anchor .city-chat {
  flex-direction: column;
  flex: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
}

.city-chat-anchor .city-chat-reopen {
  flex: none;
}

.city-modal-account {
  width: min(435px, 100%);
}

.city-modal-donation {
  width: min(635px, 100%);
}

.city-account-open {
  color: #ead7a5;
  background: #a98f4317;
  border: 1px solid #d6c38736;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 0 10px;
  font-size: 12px;
  display: flex;
}

.city-account-open > svg:last-child, .city-account-open kbd {
  margin-inline-start: auto;
}

.city-account-form {
  gap: 12px;
  display: grid;
}

.city-account-form label {
  color: #e0dcd2;
  gap: 5px;
  font-size: 12px;
  display: grid;
}

.city-account-form input {
  color: #f5f2ea;
  background: #0d131d;
  border: 1px solid #aab6c844;
  border-radius: 6px;
  width: 100%;
  height: 39px;
  padding: 0 10px;
}

.city-account-form > small {
  color: #a6abbd;
  font-size: 10px;
}

.city-account-tabs, .city-inventory-tabs {
  align-items: center;
  gap: 6px;
  display: flex;
}

.city-account-tabs button, .city-inventory-tabs button {
  color: #d6d1c3;
  background: #0f151f;
  border: 1px solid #a7b3c633;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 550;
  display: flex;
}

.city-account-tabs button[aria-pressed="true"], .city-inventory-tabs button[aria-pressed="true"] {
  color: #f6dfab;
  background: #57492a60;
  border-color: #ddc07c88;
}

.city-account-summary {
  color: #b2dcca;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.city-account-connected {
  justify-items: start;
  gap: 12px;
  display: grid;
}

.city-account-logout {
  color: #f0b2aa;
  background: #8f34371f;
  border: 1px solid #db7a7147;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.city-account-logout:hover {
  background: #8f343733;
  border-color: #db7a7180;
}

.city-settings-logout {
  margin-top: 16px;
}

.city-market, .city-inventory {
  gap: 12px;
  display: grid;
}

.city-market > header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.city-market > header h3 {
  color: #eee9df;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.city-market > header span, .city-market-total strong {
  color: #edcf83;
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
}

.city-market-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(265px, .82fr);
  gap: 12px;
  display: grid;
}

.city-market-catalog {
  align-content: start;
  gap: 7px;
  display: grid;
}

.city-market-item {
  color: #e9e7ef;
  text-align: left;
  background: #141e2a;
  border: 1px solid #cacee12d;
  border-radius: 8px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  padding: 7px 10px;
  display: grid;
}

.city-market-item[aria-pressed="true"] {
  background: linear-gradient(110deg, #463725, #1d2631 68%);
  border-color: #dec17b9c;
}

.city-market-item > span:nth-child(2) {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.city-market-item strong {
  font-size: 13px;
  font-weight: 650;
}

.city-market-item small {
  color: #bcc1ce;
  font-size: 11px;
}

.city-market-item b {
  color: #edcf83;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  display: flex;
}

.city-shop-potion-icon.health {
  color: #ff9e98;
  background: #772b3659;
}

.city-shop-potion-icon.mana {
  color: #91d5ff;
  background: #244c7859;
}

.city-shop-potion-icon.legion {
  color: #d7b1fa;
  background: #59357b59;
}

.city-market-order {
  background: radial-gradient(at 70% 10%, #85613138, #0000 65%), #101824;
  border: 1px solid #d5bb7140;
  border-radius: 10px;
  gap: 7px;
  padding: 12px;
  display: grid;
}

.city-market-order .city-shop-potion-icon {
  width: 47px;
  height: 47px;
}

.city-market-order .city-shop-potion-icon svg {
  width: 29px;
  height: 29px;
}

.city-market-order h4 {
  color: #f2eae1;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.city-market-order p {
  color: #bbc2d0;
  margin: 0;
  font-size: 12px;
}

.city-market-order label {
  color: #e5e1d7;
  margin-top: 5px;
  font-size: 11px;
}

.city-market-stepper, .city-market-presets {
  grid-template-columns: 34px minmax(45px, 1fr) 34px auto;
  gap: 5px;
  display: grid;
}

.city-market-presets {
  grid-template-columns: repeat(4, 1fr);
}

.city-market-stepper input, .city-market-stepper button, .city-market-presets button {
  color: #efe9ee;
  text-align: center;
  background: #161d2b;
  border: 1px solid #b8c2d23a;
  border-radius: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 0 5px;
  font-size: 12px;
}

.city-market-presets button {
  min-height: 26px;
  font-size: 10px;
}

.city-market-presets button[aria-pressed="true"] {
  color: #f7dba6;
  background: #604f2d;
  border-color: #e1c5808c;
}

.city-market-stepper button:disabled, .city-primary-action:disabled {
  opacity: .48;
  cursor: default;
}

.city-market-total {
  color: #d5d1c6;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  font-size: 12px;
  display: flex;
}

.city-market-order .city-primary-action, .city-inventory .city-primary-action {
  font: 650 12px DM Sans, sans-serif;
}

.city-modal-shop, .city-modal-inventory {
  width: min(810px, 100%);
}

.city-inventory-layout {
  grid-template-columns: minmax(175px, .73fr) minmax(0, 1.27fr);
  gap: 12px;
  display: grid;
}

.city-equipment-worn, .city-inventory-stash {
  background: #131c28;
  border: 1px solid #bac4d32d;
  border-radius: 10px;
  min-width: 0;
  padding: 10px;
}

.city-equipped-hero {
  color: #f4e7cb;
  background: radial-gradient(at 50% 68%, #d9b47329, #0000 72%);
  justify-items: center;
  gap: 3px;
  padding: 4px 8px 9px;
  font-size: 13px;
  display: grid;
}

.city-equipped-hero canvas {
  width: min(100%, 127px);
  height: auto;
}

.city-equipment-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  display: grid;
}

.city-equipment-slots button {
  color: #ece3d1;
  text-align: left;
  background: #0c1420;
  border: 1px solid #b5c3dd31;
  border-radius: 6px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 36px;
  padding: 4px;
  font-size: 10px;
  display: flex;
}

.city-equipment-slots button:disabled {
  opacity: .6;
}

.city-equipment-slots svg {
  color: #dcca8e;
  flex: none;
  width: 15px;
  height: 15px;
}

.city-equipment-slots button span {
  min-width: 0;
}

.city-equipment-slots small {
  color: #bec3d1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  display: block;
  overflow: hidden;
}

.city-inventory-stash h3 {
  color: #f0e8dc;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 7px;
  font-size: 14px;
  display: flex;
}

.city-inventory-stash h3 small {
  color: #b5bfce;
  font-size: 10px;
  font-weight: 500;
}

.city-inventory-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.city-inventory-items button {
  color: #e8dfcd;
  text-align: center;
  background: radial-gradient(at 50% 30%, #8e9eb728, #141b29 75%);
  border: 1px solid #b9c3d338;
  border-radius: 6px;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 73px;
  padding: 5px;
  font-size: 10px;
  display: grid;
}

.city-inventory-items button.uncommon {
  color: #c2f3d9;
  background: radial-gradient(at 50% 30%, #56c29a30, #14202b 75%);
  border-color: #8bddb151;
}

.city-inventory-items button[aria-pressed="true"] {
  border-color: #ddbf78;
  box-shadow: inset 0 0 0 1px #e6cb831f;
}

.city-inventory-items button svg {
  width: 24px;
  height: 24px;
}

.city-inventory-items button small {
  color: #88d9ae;
  font-size: 10px;
}

.city-inventory-detail {
  border: 1px solid #b9c3d32e;
  border-radius: 7px;
  gap: 7px;
  margin-top: 8px;
  padding: 8px;
  display: grid;
}

.city-inventory-detail h4 {
  color: #f3ebd9;
  margin: 0;
  font-size: 13px;
}

.city-inventory-detail small, .city-inventory-detail li {
  color: #b8c9c8;
  font-size: 10px;
}

.city-inventory-detail ul {
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.city-inventory-consumables {
  gap: 7px;
  display: grid;
}

.city-inventory-consumables > div {
  color: #e6e1ed;
  border: 1px solid #bcbcd42e;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
}

.city-inventory-consumables b {
  flex: 1;
}

.city-inventory-consumables svg {
  width: 20px;
  height: 20px;
}

.city-inventory .city-payment-error, .city-market .city-payment-error, .city-shop-message {
  font-size: 12px;
}

@media (max-width: 820px) {
  .city-left-stack {
    bottom: calc(69px + env(safe-area-inset-bottom));
  }

  .city-chat-anchor .city-chat {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .city-compact-level {
    gap: 4px;
    padding: 5px;
  }

  .city-compact-level small {
    font-size: 10px;
  }

  .city-player-card.collapsed {
    gap: 6px;
  }

  .city-market-layout, .city-inventory-layout {
    grid-template-columns: 1fr;
  }

  .city-equipped-hero canvas {
    width: 79px;
  }

  .city-equipment-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.origin-screen {
  background: linear-gradient(120deg, #090e18ba, #080d16f2), url("/assets/world/sanctuary-panorama.png") center / cover;
  min-height: 100dvh;
  max-height: 100dvh;
  padding: 20px clamp(12px, 4vw, 52px) 25px;
  overflow: auto;
}

.origin-brand {
  align-items: center;
  gap: 11px;
  max-width: 1050px;
  margin: 0 auto 16px;
  display: flex;
}

.origin-brand p {
  margin: 0;
}

.origin-layout {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  max-width: 1050px;
  margin: auto;
  display: grid;
}

.origin-controls, .origin-hero {
  background: linear-gradient(140deg, #1a1c2eeb, #0c131de6);
  border: 1px solid #aab6c944;
  border-radius: 13px;
  min-width: 0;
  padding: clamp(13px, 2.5vw, 25px);
  box-shadow: 0 12px 44px #0608118a;
}

.origin-hero {
  align-content: center;
  gap: 10px;
  display: grid;
}

.origin-hero-stage {
  background: radial-gradient(at 50% 83%, #b49c6e40, #0000 66%), #0b1424b5;
  border-radius: 10px;
  place-items: center;
  min-height: 180px;
  display: grid;
}

.origin-hero-stage canvas {
  width: auto;
  height: min(28dvh, 260px);
  min-height: 150px;
  display: block;
}

.origin-hero-profile h2 {
  color: #efdcb0;
  margin: 4px 0;
  font: 650 clamp(17px, 2.25vw, 26px) / 1.1 Space Grotesk, sans-serif;
}

.origin-hero-profile p, .origin-form label {
  color: #b9bdce;
  margin: 0;
  font-size: 12px;
}

.origin-hero-profile p:first-child {
  color: #90c4b8;
  letter-spacing: .09em;
  font-size: 11px;
  font-weight: 650;
}

.origin-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  display: grid;
}

.origin-stats > div {
  color: #d8dbdf;
  grid-template-columns: 1fr auto;
  gap: 4px;
  font-size: 10px;
  display: grid;
}

.origin-stats dt {
  align-items: center;
  gap: 5px;
  display: flex;
}

.origin-stats dt svg {
  color: #ddc58e;
  width: 12px;
  height: 12px;
}

.origin-stats .stat-track {
  grid-column: 1 / -1;
}

.origin-stats .stat-fill {
  height: 100%;
  display: block;
}

.origin-controls h1 {
  color: #f3ecde;
  margin: 0 0 12px;
  font: 650 clamp(21px, 3vw, 34px) / 1.1 Space Grotesk, sans-serif;
}

.origin-class-list {
  gap: 5px;
  display: grid;
}

.origin-class {
  color: #efe7ed;
  text-align: left;
  background: #111a29;
  border: 1px solid #b5c0d02e;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 8px;
  display: flex;
}

.origin-class[aria-pressed="true"] {
  background: linear-gradient(100deg, #473a28, #20273b 74%);
  border-color: #dcc183b0;
}

.origin-class canvas {
  background: #0c111f;
  border-radius: 5px;
  flex: none;
  width: 39px;
  height: 39px;
}

.origin-class span {
  gap: 2px;
  display: grid;
}

.origin-class strong {
  font-size: 13px;
  font-weight: 650;
}

.origin-class small {
  color: #bac1d6;
  font-size: 10px;
}

.origin-form {
  gap: 7px;
  margin-top: 13px;
  display: grid;
}

.origin-form .name-input-wrap {
  min-height: 40px;
}

.origin-form .name-input-wrap > span {
  color: #b3b6c8;
  font-size: 10px;
}

.origin-form .journey-button {
  text-transform: none;
  width: 100%;
  min-height: 39px;
  font-size: 12px;
}

.origin-form p {
  color: #fca9a6;
  margin: 0;
  font-size: 11px;
}

@media (max-width: 680px) {
  .origin-layout {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .origin-brand {
    margin-bottom: 8px;
  }

  .origin-controls, .origin-hero {
    padding: 10px;
  }

  .origin-hero {
    grid-template-columns: minmax(90px, .6fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 9px;
  }

  .origin-hero-stage {
    min-height: 115px;
  }

  .origin-hero-stage canvas {
    height: 112px;
    min-height: 0;
  }

  .origin-hero-profile p {
    font-size: 10px;
  }

  .origin-stats {
    gap: 4px;
  }

  .origin-class {
    min-height: 40px;
  }

  .origin-class canvas {
    width: 32px;
    height: 32px;
  }
}

.city-ui {
  container: game-ui / size;
}

.city-foe-sprite {
  display: block;
}

.city-hunt-monster-portrait {
  z-index: 1;
  filter: drop-shadow(0 12px 8px #0000007a);
  width: min(35%, 176px);
  max-width: 176px;
  height: min(78%, 176px);
  max-height: 176px;
  display: block;
  position: relative;
}

.city-hunt-monster-portrait > img {
  object-fit: contain;
  image-rendering: auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

.city-hunt-family-note {
  color: #9eb3ae;
  background: linear-gradient(90deg, #448f771f, #0000);
  border-left: 2px solid #69bea499;
  gap: 3px;
  margin: 0 0 10px;
  padding: 7px 8px;
  display: grid;
}

.city-hunt-family-note span {
  color: #83c2a8;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 900;
}

.city-hunt-family-note strong {
  color: #e3eadf;
  font-size: 10px;
}

.city-hunt-family-note small {
  color: #98a6a7;
  font-size: 11px;
}

.city-hunt-foe-visual {
  aspect-ratio: 16 / 9;
  background: #17232a;
  border: 1px solid #bb98576b;
  border-radius: 5px;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #04080d7a;
}

.city-hunt-foe-map, .city-hunt-selected-map {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.city-hunt-foe-map canvas, .city-hunt-selected-map canvas {
  object-fit: cover;
  image-rendering: auto;
  width: 100%;
  height: 100%;
  display: block;
}

.city-hunt-foe-visual:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, #05090e8f, #0000);
  position: absolute;
  inset: 45% 0 0;
}

.city-foe-art {
  z-index: 1;
  background: linear-gradient(145deg, #0c1319bd, #0a0d13e0);
  border: 1px solid #d3b269ad;
  border-radius: 4px;
  width: clamp(32px, 36%, 48px);
  height: clamp(34px, 84%, 54px);
  display: block;
  position: absolute;
  bottom: 3px;
  right: 5px;
  overflow: hidden;
  box-shadow: 0 3px 8px #0009;
}

.city-foe-art .city-foe-sprite {
  object-fit: contain;
  image-rendering: auto;
  width: 100%;
  height: 100%;
}

.city-foe-link {
  display: none;
}

.city-hunt-foe > b {
  margin-top: 0;
}

.city-hunt-foe > em {
  color: #8fbfae;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
}

.city-hunt-foe {
  align-content: start;
}

.city-hunt-art {
  isolation: isolate;
}

.city-hunt-selected-map {
  z-index: -1;
  opacity: .96;
}

.city-hunt-art:before {
  z-index: 0;
  background: linear-gradient(#070d1429, #070d1426 48%, #070d14c7);
  height: auto;
  inset: 0;
  transform: none;
}

.city-hunt-monster-portrait {
  filter: drop-shadow(0 9px 7px #000000bf);
  width: min(35%, 176px);
  max-width: 176px;
  height: min(78%, 176px);
  max-height: 176px;
}

.city-hunt-art > b {
  color: #d8edff;
  background: #091622db;
  border-color: #8ac3e67a;
}

.city-hunt-foe.selected {
  background: #a37d2521;
  border-color: #dab656cc;
  box-shadow: inset 0 0 15px #dab65614;
}

.city-portal-glyph {
  color: #d7b66e;
  background: radial-gradient(circle, #9b773054, #0b1922eb 58%, #0a0f18f5);
  border-color: #cdab6361;
}

.city-hunt-encounters span.current {
  color: #f0d48a;
  border-color: #dab6566b;
}

.city-hunt-boss-info {
  background: #4d2b222e;
  border: 1px solid #e08f5b3b;
  border-radius: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  margin-top: 3px;
  padding: 6px 7px;
  display: grid;
}

.city-hunt-boss-info > span {
  color: #e6b578;
  letter-spacing: .08em;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
}

.city-hunt-boss-info > b {
  color: #f2d4aa;
  text-align: right;
  font-size: 11px;
}

.city-hunt-boss-info > small {
  color: #c5a88e;
  grid-column: 1 / -1;
  font-size: 11px;
}

.city-hunt-encounters span.boss {
  color: #f0b69b;
  background: #762f2624;
  border-color: #e1825e66;
}

.city-room-portal-block {
  background: #050c1342;
  border: 1px solid #73a8d026;
  border-radius: 8px;
  gap: 6px;
  padding: 7px;
  display: grid;
}

.city-room-portal-block > header {
  border-bottom: 1px solid #ffffff0f;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  padding: 0 2px 6px;
  display: flex;
}

.city-room-portal-block > header b {
  color: #dce8ee;
  font-size: 10px;
}

.city-room-portal-block > header small {
  color: #91a6b4;
  font-size: 10px;
}

.city-hunt-mix-note {
  color: #9aadb3;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.city-hunt-reward-list {
  background: #d4b76e0f;
  border-left: 2px solid #d4b76e7a;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 8px;
  display: grid;
}

.city-hunt-reward-list b {
  color: #d8c27f;
  letter-spacing: .08em;
  font-size: 10px;
}

.city-hunt-reward-list span {
  color: #bdc3c7;
  font-size: 10px;
  line-height: 1.4;
}

.city-hunt-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .city-hunt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.city-hunt-stats > div:last-child {
  grid-column: span 2;
}

@container game-ui (max-width: 1100px) {
  .city-modal-hunt {
    width: min(980px, 100cqw - 20px);
  }

  .city-hunt-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .84fr);
    gap: 8px;
  }

  .city-hunt-foes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-hunt-foe-visual {
    max-height: 72px;
  }
}

@container game-ui (max-width: 740px) {
  .city-modal-hunt {
    width: calc(100cqw - 10px);
    height: calc(100cqh - 10px);
    max-height: calc(100cqh - 10px);
  }

  .city-modal-hunt .city-modal-body {
    overflow: auto;
  }

  .city-hunt-layout {
    flex-direction: column;
    gap: 8px;
    display: flex;
  }

  .city-hunt-portals {
    flex: none;
    max-height: 38cqh;
  }

  .city-hunt-foes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .city-hunt-foe {
    grid-template-rows: auto auto auto auto;
    padding: 4px;
  }

  .city-hunt-foe-visual {
    max-height: 78px;
  }

  .city-foe-art {
    width: clamp(36px, 28%, 52px);
    height: 84%;
  }

  .city-hunt-details {
    flex: none;
    max-height: none;
  }

  .city-hunt-art {
    flex: none;
    min-height: clamp(120px, 31cqh, 190px);
  }

  .city-hunt-monster-portrait {
    width: min(40%, 156px);
    max-width: 156px;
    height: min(76%, 156px);
    max-height: 156px;
  }

  .city-hunt-family-note {
    overflow-wrap: anywhere;
  }

  .city-hunt-boss-info > b {
    text-align: left;
  }
}

@container game-ui (max-width: 420px) {
  .city-hunt-foe-visual {
    max-height: 62px;
  }

  .city-hunt-foe > small, .city-hunt-foe > em, .city-hunt-foe > b {
    font-size: 10px;
  }

  .city-hunt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container game-ui (max-width: 1200px) and (min-width: 741px) {
  .city-ui > * {
    --hud-edge: 9px;
  }

  .city-left-stack {
    width: var(--profile-width);
  }

  .city-right-stack {
    width: min(660px,calc(100cqw - var(--profile-width) - var(--hud-edge) - var(--hud-edge) - 10px));
  }

  .city-action-slot {
    width: 42px;
    height: 42px;
  }

  .city-action-icon {
    width: 24px;
    height: 24px;
  }

  .city-combat-toolbar, .city-action-bar {
    gap: 4px;
  }

  .city-action-group {
    gap: 3px;
  }

  .city-action-group.potions {
    padding-inline-start: 5px;
  }
}

@container game-ui (max-height: 900px) {
  .city-left-stack {
    bottom: calc(var(--hud-edge) + 92px);
    max-height: calc(100cqh - var(--hud-edge) - var(--hud-edge) - 92px);
    overscroll-behavior: contain;
    scrollbar-color: #bfae8461 transparent;
    scrollbar-width: thin;
    overflow: hidden auto;
  }

  .city-left-stack .pph {
    border-radius: 13px;
    width: 100%;
    min-height: 0;
  }

  .city-left-stack .pph-header {
    grid-template-columns: 66px minmax(0, 1fr) auto 25px;
    gap: 7px;
    min-height: 64px;
    padding: 7px 8px;
  }

  .city-left-stack .pph-hero-avatar {
    width: 66px;
    height: 66px;
  }

  .city-left-stack .pph-identity {
    gap: 3px;
  }

  .city-left-stack .pph-player-name strong {
    font-size: 13px;
  }

  .city-left-stack .pph-level {
    min-width: 42px;
    padding: 5px;
  }

  .city-left-stack .pph-level b {
    font-size: 17px;
  }

  .city-left-stack .pph-collapse {
    width: 25px;
    height: 27px;
  }

  .city-left-stack .pph-content {
    gap: 7px;
    padding: 7px 8px 8px;
  }

  .city-left-stack .pph-xp {
    gap: 3px;
  }

  .city-left-stack .pph-xp-track {
    height: 15px;
  }

  .city-left-stack .pph-power {
    min-height: 27px;
  }

  .city-left-stack .pph-power strong {
    font-size: 20px;
  }

  .city-left-stack .pph-vitals {
    gap: 5px;
  }

  .city-left-stack .pph-pet-card {
    border-radius: 9px;
    gap: 6px;
    padding: 7px;
  }

  .city-left-stack .pph-pet-portrait.equipped {
    width: 44px;
    height: 44px;
  }

  .city-left-stack .pph-pet-switcher {
    gap: 4px;
    padding-top: 5px;
  }

  .city-left-stack .pph-pet-quick-slot {
    width: 34px;
    height: 34px;
  }

  .city-left-stack .pph-pet-quick-slot .pph-pet-portrait {
    width: 26px;
    height: 26px;
  }

  .city-left-stack .pph-footer {
    gap: 5px;
    padding-top: 5px;
  }

  .city-left-stack .pph-inventory {
    min-height: 31px;
  }

  .city-left-stack .city-buff-list {
    max-height: min(16cqh, 136px);
    overflow: auto;
  }

  .city-left-stack .city-buff-list > .city-benefit {
    gap: 6px;
    min-height: 34px;
    padding-block: 3px;
  }

  .city-left-stack .city-benefit-icon {
    width: 24px;
    height: 24px;
  }

  .city-left-stack .city-benefit-copy b {
    font-size: 10px;
  }

  .city-left-stack .city-benefit-copy small {
    font-size: 11px;
  }
}

@container game-ui (max-width: 740px) {
  .city-ui > * {
    --hud-edge: 7px;
  }

  .city-left-stack {
    top: max(var(--hud-edge),env(safe-area-inset-top));
    left: var(--hud-edge);
    width: var(--profile-width);
    bottom: calc(var(--hud-edge) + 96px);
    max-height: calc(100cqh - var(--hud-edge) - var(--hud-edge) - 96px);
  }

  .city-right-stack {
    top: max(var(--hud-edge),env(safe-area-inset-top));
    right: var(--hud-edge);
    width: calc(100cqw - var(--profile-width) - var(--hud-edge) - var(--hud-edge) - var(--hud-edge));
  }

  .city-right-stack .city-nav {
    grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  }

  .city-right-stack .city-nav-button {
    min-height: 31px;
  }

  .city-status-strip {
    min-height: 30px;
  }

  .city-status-strip .city-sound-button, .city-status-strip .city-donation-open, .city-status-strip .city-admin-open {
    height: 25px;
    min-height: 25px;
  }

  .city-left-stack .pph-header {
    grid-template-columns: 66px minmax(0, 1fr) auto 23px;
    gap: 5px;
    min-height: 57px;
    padding: 6px;
  }

  .city-left-stack .pph-hero-avatar {
    width: 66px;
    height: 66px;
  }

  .city-left-stack .pph-class, .city-left-stack .pph-rank-link {
    font-size: 10px;
  }

  .city-left-stack .pph-level {
    min-width: 36px;
  }

  .city-left-stack .pph-level b {
    font-size: 15px;
  }

  .city-left-stack .pph-content {
    gap: 6px;
    padding: 6px;
  }

  .city-left-stack .pph-pet-card {
    gap: 5px;
    padding: 6px;
  }

  .city-left-stack .pph-pet-portrait.equipped {
    width: 37px;
    height: 37px;
  }

  .city-left-stack .pph-pet-title strong {
    font-size: 10px;
  }

  .city-left-stack .pph-pet-switcher-label small {
    display: none;
  }

  .city-left-stack .pph-wallet {
    gap: 8px;
  }

  .city-left-stack .pph-wallet b {
    font-size: 10px;
  }

  .city-left-stack .city-buff-list {
    max-height: min(12cqh, 92px);
    overflow: auto;
  }

  .city-left-stack .city-buff-list > .city-benefit {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 3px 5px;
  }

  .city-left-stack .city-benefit-icon {
    grid-row: 1 / 3;
    width: 20px;
    height: 20px;
  }

  .city-left-stack .city-benefit-copy b, .city-left-stack .city-benefit-copy small {
    font-size: 11px;
  }

  .city-left-stack .city-benefit strong {
    grid-column: 2;
    font-size: 10px;
  }

  .city-chat-anchor .city-chat {
    width: 100%;
  }

  .city-left-stack .pph {
    max-height: min(500px,calc(100cqh - var(--hud-edge) - var(--hud-edge) - 96px - 164px));
    flex-direction: column;
    flex: 0 auto;
    display: flex;
    overflow: hidden;
  }

  .city-left-stack .pph-header {
    flex: none;
  }

  .city-left-stack .pph-content {
    overscroll-behavior: contain;
    flex: auto;
    min-height: 0;
    overflow-y: auto;
  }

  .city-combat-dock {
    bottom: max(6px,env(safe-area-inset-bottom));
    max-width: calc(100cqw - 10px);
  }

  .city-action-slot {
    width: clamp(30px, 9cqw, 42px);
    height: clamp(34px, 9cqw, 42px);
  }

  .city-action-icon {
    width: 22px;
    height: 22px;
  }

  .city-combat-toolbar, .city-action-bar {
    gap: 3px;
    padding: 3px;
  }

  .city-action-group {
    gap: 2px;
  }

  .city-action-group.potions {
    padding-inline-start: 3px;
  }
}

@container game-ui (min-width: 741px) and (max-width: 1200px) {
  .city-right-stack.in-town {
    width: clamp(300px, 50cqw - 112px, 500px);
  }

  .city-right-stack.in-town .city-nav-button span {
    letter-spacing: 0;
    font-size: 10px;
  }
}

@container game-ui (min-width: 741px) and (max-width: 1039px) {
  .city-right-stack.in-town .city-nav {
    grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  }

  .city-right-stack.in-town .city-nav-button {
    min-height: 34px;
  }
}

.city-topbar {
  overflow: visible;
}

.city-hub-dropdown {
  z-index: 15;
  color: #e9e5da;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: linear-gradient(145deg, #0d111afa, #0e151df5);
  border: 1px solid #c7af7452;
  border-radius: 10px;
  width: min(410px, 100vw - 24px);
  max-height: min(72vh, 620px);
  padding: 12px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  overflow: auto;
  box-shadow: 0 18px 48px #00000094, inset 0 1px #ffffff0b;
}

.city-hub-heading {
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 1px 1px 10px;
  display: flex;
}

.city-hub-heading > div {
  gap: 3px;
  display: grid;
}

.city-hub-heading small, .city-hub-section h3 {
  color: #c6ad70;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 800;
}

.city-hub-heading strong {
  color: #f1ead8;
  font: 650 14px / 1.2 Space Grotesk, sans-serif;
}

.city-hub-heading > button {
  color: #c5c7ca;
  background: #ffffff09;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}

.city-hub-section {
  margin-top: 10px;
}

.city-hub-section h3 {
  color: #d7cfb894;
  margin: 0 0 6px 2px;
  font-size: 10px;
}

.city-hub-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.city-hub-card {
  color: #e6e4dd;
  text-align: left;
  background: #ffffff07;
  border: 1px solid #ffffff13;
  border-radius: 7px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 7px;
  transition: border-color .14s, background .14s, transform .14s;
  display: grid;
}

.city-hub-card:hover, .city-hub-card:focus-visible {
  background: #b6974f17;
  border-color: #cfb57061;
  outline: 0;
  transform: translateY(-1px);
}

.city-hub-card-icon {
  color: #d7bd78;
  background: #b6974f16;
  border: 1px solid #cfb57033;
  border-radius: 7px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.city-hub-card-copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.city-hub-card-copy b {
  color: #eee9da;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  overflow: hidden;
}

.city-hub-card-copy small {
  color: #ccd0d0a3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.city-hub-card kbd, .city-hub-points {
  color: #ddcb91;
  text-align: center;
  background: #c2a3591a;
  border: 1px solid #d7be7b3b;
  border-radius: 4px;
  min-width: 20px;
  padding: 3px 5px;
  font: 700 10px Space Grotesk, sans-serif;
}

.city-hub-points {
  color: #8ad6bc;
  background: #4da6891a;
  border-color: #75d4b333;
  font-style: normal;
}

.city-wardrobe-panel {
  gap: 13px;
  display: grid;
}

.city-wardrobe-preview {
  background: linear-gradient(110deg, #b2965014, #ffffff06);
  border: 1px solid #d1bf8a2e;
  border-radius: 8px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 10px 14px;
  display: flex;
}

.city-wardrobe-hero {
  object-fit: contain;
  width: 58px;
  height: 82px;
}

.city-wardrobe-preview > div {
  gap: 4px;
  display: grid;
}

.city-wardrobe-preview small {
  color: #cab87e;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
}

.city-wardrobe-preview h3 {
  color: #f0eadb;
  margin: 0;
  font: 650 15px Space Grotesk, sans-serif;
}

.city-wardrobe-preview span {
  color: #aab4b3;
  font-size: 10px;
}

.city-wardrobe-preview > b {
  color: #83d4ac;
  letter-spacing: .08em;
  border: 1px solid #70cda333;
  border-radius: 4px;
  margin-left: auto;
  padding: 4px 6px;
  font-size: 10px;
}

@media (max-width: 560px) {
  .city-hub-dropdown {
    width: min(380px, 100vw - 14px);
    max-height: min(67vh, 560px);
    padding: 10px;
    right: -4px;
  }

  .city-hub-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-hub-card {
    min-height: 52px;
  }
}

.city-ui {
  --chat-dock-clearance: 0px;
  --chat-height: min(318px,42cqh,calc(100cqh - var(--hud-edge) - var(--hud-edge) - var(--chat-dock-clearance) - 20px));
}

.city-left-stack {
  top: max(var(--hud-edge),env(safe-area-inset-top));
  bottom: calc(var(--hud-edge) + 78px + env(safe-area-inset-bottom));
  max-height: calc(100cqh - var(--hud-edge) - var(--hud-edge) - 78px - env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-color: #bfae8461 transparent;
  scrollbar-width: thin;
  flex-direction: column;
  gap: 8px;
  display: flex;
  overflow: hidden auto;
}

.city-left-stack > .city-player-card {
  flex: none;
}

.city-left-stack .city-player-card {
  min-height: 0;
}

.city-left-stack .city-benefits {
  flex: 0 auto;
  min-width: 0;
  min-height: 0;
}

.city-left-stack .city-buff-list {
  overscroll-behavior: contain;
  min-height: 0;
  max-height: min(22cqh, 180px);
  overflow: hidden auto;
}

.city-ui.chat-open .city-left-stack {
  bottom: calc(var(--hud-edge) + var(--chat-dock) + var(--chat-height) + 12px + env(safe-area-inset-bottom));
  max-height: calc(100cqh - var(--hud-edge) - var(--hud-edge) - var(--chat-dock) - var(--chat-height) - 12px - env(safe-area-inset-bottom));
}

.city-ui.chat-open .city-left-stack .pph {
  flex: none;
  max-height: none;
}

.city-ui.chat-open .city-left-stack .city-benefits {
  flex: 0 auto;
}

.city-ui.chat-open .city-left-stack .city-buff-list {
  max-height: min(15cqh, 110px);
}

.city-ui > .city-chat-anchor {
  z-index: 11;
  left: var(--hud-edge);
  bottom: calc(max(var(--hud-edge),env(safe-area-inset-bottom)) + var(--chat-dock));
  width: max-content;
  max-width: calc(100cqw - var(--hud-edge) - var(--hud-edge));
  max-height: var(--chat-height);
  pointer-events: none;
  align-items: flex-end;
  display: flex;
  position: absolute;
}

.city-ui > .city-chat-anchor.open {
  width: min(380px,calc(100cqw - var(--hud-edge) - var(--hud-edge)));
  height: var(--chat-height);
  min-height: 0;
  overflow: hidden;
}

.city-ui > .city-chat-anchor > * {
  pointer-events: auto;
}

.city-ui > .city-chat-anchor .city-chat, .city-ui > .city-chat-anchor .city-chat-reopen {
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  inset: auto;
}

.city-ui > .city-chat-anchor .city-chat {
  flex: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.city-ui > .city-chat-anchor .city-chat-reopen {
  width: max-content;
}

.city-ui > .city-chat-anchor:not(.open) {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.city-discord-link {
  box-sizing: border-box;
  border: 1px solid var(--ui-border-strong);
  width: 40px;
  height: 40px;
  color: var(--ui-gold-bright);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  background: #0a101bf0;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
  display: inline-flex;
}

.city-discord-link:hover, .city-discord-link:focus-visible {
  color: #fff3c8;
  border-color: var(--ui-gold);
  background: #161e2ef5;
}

.city-discord-link:focus-visible {
  outline: 2px solid var(--ui-gold);
  outline-offset: 2px;
}

.city-ui:not(.chat-open) .city-left-stack {
  bottom: calc(var(--hud-edge) + var(--chat-dock) + 100px + env(safe-area-inset-bottom));
  max-height: calc(100cqh - var(--hud-edge) - var(--hud-edge) - var(--chat-dock) - 100px - env(safe-area-inset-bottom));
}

@media (pointer: coarse), (max-width: 760px) {
  .city-discord-link {
    width: 44px;
    height: 44px;
  }
}

.city-ui > * {
  --chat-dock: var(--chat-dock-clearance);
}

@container game-ui (max-height: 560px) {
  .city-ui.chat-open > * {
    --chat-dock: max(var(--chat-dock-clearance), 64px);
    --chat-height: min(250px,40cqh,calc(100cqh - var(--hud-edge) - var(--hud-edge) - var(--chat-dock) - 20px));
  }
}

@media (max-width: 620px) {
  .city-ui > *, .city-ui.chat-open > * {
    --chat-dock: max(var(--chat-dock-clearance), 186px);
    --chat-height: min(318px,42cqh,calc(100cqh - var(--hud-edge) - var(--hud-edge) - var(--chat-dock) - 20px));
  }
}

@container game-ui (max-width: 740px) {
  .city-ui {
    --chat-dock-clearance: 74px;
  }

  .city-left-stack {
    bottom: calc(var(--hud-edge) + 78px + env(safe-area-inset-bottom));
  }

  .city-ui.chat-open .city-left-stack {
    bottom: calc(var(--hud-edge) + var(--chat-dock) + var(--chat-height) + 12px + env(safe-area-inset-bottom));
  }

  .city-ui.chat-open .city-left-stack .city-benefits {
    flex: 0 auto;
  }
}

@container game-ui (max-height: 560px) {
  .city-ui {
    --chat-dock-clearance: 64px;
    --chat-height: min(250px,40cqh,calc(100cqh - var(--hud-edge) - var(--hud-edge) - 64px - 20px));
  }

  .city-left-stack .city-buff-list {
    max-height: min(17cqh, 84px);
  }
}

.city-player-card, .city-topbar, .city-events button, .city-buff-list, .city-chat, .city-skill-dock, .city-journey {
  border-color: var(--ui-border);
  background: linear-gradient(145deg, #0e1522f5, #080d17f0);
}

.city-chat {
  border-color: var(--ui-border-strong);
}

.city-chat-heading {
  border-color: var(--ui-border);
  color: var(--ui-gold-bright);
}

.city-chat-tabs {
  border-color: var(--ui-border);
}

.city-chat-tabs button.selected {
  color: var(--ui-gold-bright);
  background: var(--ui-gold-soft);
}

.city-chat-tabs button.selected:after {
  background: var(--ui-gold);
}

.city-chat-feed {
  scrollbar-color: #d4b76e80 transparent;
}

.city-chat-message b, .city-chat-empty svg, .city-chat-empty b {
  color: var(--ui-gold-bright);
}

.city-chat-message.system {
  border-color: var(--ui-gold);
  color: #e7d7aa;
}

.city-chat-composer input:focus {
  border-color: var(--ui-border-strong);
}

.city-chat-composer .city-chat-send {
  color: #17130a;
  background: linear-gradient(145deg, #e5ce88, #b99a52);
}

.city-chat-reopen {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold-bright);
  background: #0a101bf0;
}

.city-benefit {
  --buff-color: var(--ui-gold-bright);
}

.city-benefit-icon {
  color: var(--ui-gold);
}

.city-modal-hunt {
  border-color: var(--ui-border-strong);
  background: linear-gradient(145deg, #111a29, #090f19 68%);
}

.city-modal-hunt .city-modal-header {
  border-bottom-color: var(--ui-border);
  background: linear-gradient(110deg, #d4b76e17, #0000 56%);
}

.city-modal-hunt .city-modal-header small {
  color: var(--ui-gold);
}

.city-hunt-tabs {
  border-bottom-color: var(--ui-border);
}

.city-hunt-tabs button.selected {
  border-bottom-color: var(--ui-gold);
  color: var(--ui-gold-bright);
  background: linear-gradient(0deg,var(--ui-gold-soft),transparent);
}

.city-hunt-tabs button.selected svg, .city-hunt-level svg {
  color: var(--ui-gold);
}

.city-hunt-level {
  border-color: var(--ui-border);
  background: #080d177a;
}

.city-hunt-recommend {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold-bright);
  background: var(--ui-gold-soft);
}

.city-hunt-help {
  border-color: var(--ui-border);
  color: var(--ui-text);
  background: #080d1780;
}

.city-hunt-help-text {
  border-left-color: var(--ui-gold);
  color: var(--ui-text);
  background: var(--ui-gold-soft);
}

.city-hunt-difficulties button.selected {
  border-color: var(--ui-gold);
  background: linear-gradient(115deg, #d4b76e29, #0814207a);
  box-shadow: inset 0 0 16px #d4b76e12;
}

.city-hunt-difficulties button.selected .city-tier-sigil {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold-bright);
  background: radial-gradient(circle, #d4b76e3d, #0c192ad1);
}

.city-hunt-portals {
  border-color: var(--ui-border);
  scrollbar-color: #d4b76e6b transparent;
}

.city-portal-glyph {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold);
  background: radial-gradient(circle, #d4b76e3d, #0b192ae6 58%, #0a0f18f2);
  box-shadow: 0 0 18px #d4b76e1a, inset 0 0 12px #d4b76e1a;
}

.city-hunt-foe.selected {
  background: #d4b76e1a;
  border-color: #d4b76ecc;
}

.city-hunt-foe > b {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold-bright);
  background: #101827;
}

.city-hunt-details {
  border-color: var(--ui-border);
  background: linear-gradient(145deg, #101827, #090f19);
}

.city-hunt-detail-body h3 {
  color: var(--ui-text);
}

.city-hunt-enter {
  color: #17130a;
  background: linear-gradient(100deg, #b99b51, #e1ca86);
  border-color: #dfc47d;
  box-shadow: inset 0 1px #ffffff4d, 0 8px 22px #70541d29;
}

.city-hunt-enter:disabled {
  border-color: var(--ui-border);
  color: #8c9298;
  background: #202a38;
}

.city-hunt-encounters > b {
  color: var(--ui-gold);
}

.city-hunt-encounters span.current {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold-bright);
}

.city-hunt-locked-mode {
  border-color: var(--ui-border);
  background: radial-gradient(ellipse at 50% 10%,var(--ui-gold-soft),transparent 65%),#ffffff05;
}

.city-hunt-locked-mode > span {
  border-color: var(--ui-border-strong);
  color: var(--ui-gold-bright);
  background: var(--ui-gold-soft);
}

.city-hunt-locked-mode > b {
  color: var(--ui-text);
}

.grimoire-panel {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.grimoire-summary {
  color: #d9cfb4;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  display: flex;
}

.grimoire-summary span {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.grimoire-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 8px;
  display: grid;
}

.grimoire-entry {
  background: #0c1018b8;
  border: 1px solid #d4b77b38;
  border-radius: 9px;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  display: grid;
}

.grimoire-entry.is-locked {
  opacity: .55;
}

.grimoire-entry-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.grimoire-entry-head b {
  color: #efe6cd;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.grimoire-entry-head small, .grimoire-next {
  color: #989f9e;
  flex: none;
  font-size: 10px;
}

.grimoire-entry-stats {
  color: #cfd3d6;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 10px;
  display: flex;
}

.grimoire-entry-stats span {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.grimoire-meter {
  background: #ffffff14;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.grimoire-meter i {
  border-radius: inherit;
  background: linear-gradient(90deg, #9c804d, #ead395);
  height: 100%;
  display: block;
}

.city-rank-trial-boss {
  background: #0a0e16b3;
  border: 1px solid #d4b77b40;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px 10px;
  display: flex;
}

.city-rank-trial-boss img {
  object-fit: contain;
  flex: none;
  width: 96px;
  height: 96px;
}

.city-rank-trial-boss figcaption {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.city-rank-trial-boss small {
  color: #b9a06a;
  letter-spacing: .08em;
  font-size: 10px;
}

.city-rank-trial-boss b {
  color: #efe6cd;
  font-size: 13px;
}

.player-market {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.player-market-head {
  align-items: center;
  gap: 10px;
  display: flex;
}

.player-market-head h3 {
  color: #efe6cd;
  flex: 1;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  display: flex;
}

.player-market-head span {
  color: #e8c86f;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  display: inline-flex;
}

.player-market-head button, .player-market-list button, .player-market-form button {
  color: #efe6cd;
  cursor: pointer;
  background: #141822e6;
  border: 1px solid #d4b77b59;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
}

.player-market-list button:disabled, .player-market-form button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.player-market-tabs {
  gap: 6px;
  display: flex;
}

.player-market-tabs button {
  color: #cfc6ae;
  background: #0c1018b3;
  border: 1px solid #d4b77b40;
  border-radius: 7px;
  flex: 1;
  padding: 7px;
  font-size: 11px;
}

.player-market-tabs button[aria-pressed="true"] {
  color: #fff3cf;
  background: #d4b77b33;
}

.player-market-list {
  gap: 6px;
  display: grid;
}

.player-market-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.player-market-filters input, .player-market-filters select {
  color: #efe6cd;
  background: #0a0e16d9;
  border: 1px solid #d4b77b40;
  border-radius: 7px;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
}

.player-market-filters input[type="search"] {
  grid-column: span 3;
}

.player-market-filters button {
  color: #efe6cd;
  cursor: pointer;
  background: #141822e6;
  border: 1px solid #d4b77b59;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
}

.player-market-pages {
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: flex;
}

.player-market-list button svg, .player-market-head span svg, .market-fees svg, .market-gem-form svg {
  vertical-align: -2px;
  width: 14px;
  height: 14px;
}

.player-market-list button.confirming {
  color: #15181f;
  background: #d8bd77;
  border-color: #f1dfa4;
}

.player-market .market-gem-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.market-gem-form label {
  color: #9aa0a0;
  gap: 4px;
  font-size: 10px;
  display: grid;
}

.market-gem-form input {
  color: #efe6cd;
  background: #0a0e16d9;
  border: 1px solid #d4b77b40;
  border-radius: 7px;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.market-gems {
  gap: 8px;
  display: grid;
}

.market-fees {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  margin: 0;
  display: grid;
}

.market-fees > div {
  background: #d4b77b0d;
  border: 1px solid #d4b77b33;
  border-radius: 7px;
  gap: 2px;
  padding: 6px 8px;
  display: grid;
}

.market-fees dt {
  color: #9aa0a0;
  font-size: 10px;
}

.market-fees dd {
  color: #efe6cd;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.market-note {
  color: #9aa0a0;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.market-lot-icon {
  background: radial-gradient(circle, #50beff38, #090d16f2 72%);
  border: 1px solid #8fe9ff59;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
}

.player-market-list article > .market-lot-icon + span {
  flex: 1;
}

@media (max-width: 720px) {
  .player-market .market-gem-form, .player-market-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .player-market-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-market-filters input[type="search"] {
    grid-column: span 1;
  }
}

.player-market-list > small {
  color: #989f9e;
  font-size: 10px;
}

.player-market-list article {
  background: #0a0e16a6;
  border: 1px solid #d4b77b2e;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  display: flex;
}

.player-market-list article > span {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.player-market-list b {
  color: #efe6cd;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.player-market-list small {
  color: #9aa0a0;
  font-size: 10px;
}

.player-market-actions {
  flex: none;
  gap: 6px;
  display: flex;
}

.player-market-form {
  grid-template-columns: 1fr 130px auto;
  gap: 6px;
  display: grid;
}

.player-market-form.trade {
  grid-template-columns: 1fr 1fr;
}

.player-market-form select, .player-market-form input {
  color: #efe6cd;
  background: #0d121b;
  border: 1px solid #d4b77b40;
  border-radius: 7px;
  min-width: 0;
  padding: 7px;
  font-size: 11px;
}

.player-market-error {
  color: #f0a39a;
  margin: 0;
  font-size: 11px;
}

.player-market-notice {
  color: #9ee9cf;
  margin: 0;
  font-size: 11px;
}

.player-market-empty {
  color: #8d9393;
  margin: 0;
  font-size: 11px;
}

@media (max-width: 560px) {
  .player-market-form, .player-market-form.trade {
    grid-template-columns: 1fr;
  }
}

.city-room-rank-tabs {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.city-room-rank-tabs button {
  color: #c9d3d8;
  background: #081016b3;
  border: 1px solid #85a7c138;
  border-radius: 6px;
  min-width: 30px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 800;
}

.city-room-rank-tabs button.selected {
  color: #fff;
  background: #2b81c740;
  border-color: #5bb4f5d9;
}

.city-room-rank-tabs button.locked {
  opacity: .5;
}

.city-room-search {
  gap: 6px;
  display: flex;
}

.city-room-search input {
  color: #edf0e9;
  background: #040b11b3;
  border: 1px solid #85a7c147;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  font-size: 11px;
}

.city-room-search button {
  color: #d3c18b;
  background: #ccaf671f;
  border: 1px solid #ccaf6766;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
}

.city-room-rank-note {
  color: #8798a2;
  margin: 0;
  font-size: 11px;
}

.city-room-grid {
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 5px;
  display: grid;
}

.city-room-cell {
  color: #edf0e9;
  background: #040b1166;
  border: 1px solid #85a7c12e;
  border-radius: 7px;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 3px;
  display: grid;
}

.city-room-cell b {
  font-size: 12px;
}

.city-room-cell small {
  color: #8798a2;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 10px;
  overflow: hidden;
}

.city-room-cell.selected {
  background: #2b81c72e;
  border-color: #5bb4f5d9;
}

.city-room-cell:disabled {
  opacity: .35;
  filter: grayscale(.8);
}

.city-room-empty {
  color: #8798a2;
  text-align: center;
  grid-column: 1 / -1;
  margin: 0;
  font-size: 10px;
}

.city-trial-list {
  gap: 7px;
  margin-top: 10px;
  display: grid;
}

.city-trial-card {
  background: #08101699;
  border: 1px solid #85a7c133;
  border-radius: 9px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  display: grid;
}

.city-trial-card img {
  object-fit: contain;
  image-rendering: auto;
  width: 54px;
  height: 54px;
}

.city-trial-card div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.city-trial-card small {
  color: #8798a2;
  font-size: 10px;
}

.city-trial-card b {
  color: #edf0e9;
  font-size: 12px;
}

.city-trial-card em {
  color: #d3c18b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.city-trial-card button {
  color: #f1dfa4;
  background: #ccaf6724;
  border: 1px solid #ccaf6773;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
}

.city-trial-card button:disabled {
  opacity: .4;
}

.city-trial-card.locked {
  opacity: .7;
}

.city-trial-card.done {
  border-color: #78be8c59;
}

.promotion-trial-banner {
  pointer-events: auto;
  z-index: 90;
  text-align: center;
  color: #f5ecd0;
  background: radial-gradient(circle at 50% 40%, #2c436be6, #05060cf5);
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.promotion-trial-banner.failed {
  background: radial-gradient(circle at 50% 40%, #5a191ee6, #05060cf5);
}

.promotion-trial-icon {
  color: #e8c76b;
  font-size: 64px;
}

.promotion-trial-banner h2 {
  letter-spacing: .06em;
  margin: 0;
  font-size: 34px;
}

.promotion-trial-banner p {
  margin: 0;
  font-size: 16px;
}

.promotion-trial-loot {
  color: #e8c76b;
  font-weight: 800;
}

.promotion-trial-banner button {
  color: #f1dfa4;
  background: #ccaf6729;
  border: 1px solid #ccaf6799;
  border-radius: 8px;
  margin-top: 10px;
  padding: 10px 22px;
  font-weight: 800;
}

.city-room-cards {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.city-room-cards .city-room-cell {
  padding: 8px 4px 6px;
  position: relative;
}

.city-room-portrait {
  place-items: center;
  width: 56px;
  height: 56px;
  display: grid;
}

.city-room-portrait img {
  image-rendering: auto;
  max-width: 100%;
  max-height: 100%;
}

.city-room-badge {
  background: #ccaf6724;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 800;
  color: #d3c18b !important;
  font-size: 10px !important;
}

.city-room-state {
  color: #d3c18b;
  font-style: normal;
  display: grid;
  position: absolute;
  top: 5px;
  right: 5px;
}

.city-room-cell.cleared {
  border-color: #e8c76b8c;
}

.city-room-portal-block {
  background: linear-gradient(145deg, #0d1620e6, #080d14db);
  border-color: #9db5c538;
  border-radius: 12px;
  gap: 10px;
  padding: 10px;
  box-shadow: inset 0 1px #ffffff09, 0 10px 28px #00000029;
}

.city-room-portal-block > header {
  align-items: center;
  padding: 2px 2px 8px;
}

.city-room-portal-block > header b {
  color: #f1e6c7;
  letter-spacing: .035em;
  font-size: 11px;
}

.city-room-portal-block > header small {
  color: #c9b988;
  background: #8d6c3514;
  border: 1px solid #caaa682e;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 750;
}

.city-room-family-list {
  gap: 8px;
  display: grid;
}

.city-room-family-row {
  background: linear-gradient(115deg, #131f29bd, #0910178f);
  border: 1px solid #829fb32e;
  border-radius: 10px;
  padding: 7px;
  overflow: hidden;
}

.city-room-family-heading {
  border-bottom: 1px solid #ffffff0e;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 7px;
  padding: 0 1px 7px;
  display: grid;
}

.city-room-family-heading > img {
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 2px 4px #0006);
  width: 32px;
  height: 32px;
}

.city-room-family-rank {
  color: #e5ce98;
  letter-spacing: .06em;
  white-space: nowrap;
  background: #9975361f;
  border: 1px solid #d6b87547;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 900;
}

.city-room-family-copy {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.city-room-family-copy > b {
  color: #e7edf0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.city-room-family-copy > small {
  color: #93a3ad;
  font-size: 11px;
}

.city-room-family-level {
  color: #8d9fa9;
  white-space: nowrap;
  border-left: 1px solid #b8c9d01f;
  padding-left: 7px;
  font-size: 10px;
}

.city-room-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.city-room-cards .city-room-cell {
  background: linear-gradient(160deg, #101b25e0, #060c13c7);
  border-color: #86a3b533;
  border-radius: 8px;
  grid-template-rows: 46px auto auto;
  align-content: center;
  gap: 3px;
  min-height: 91px;
  padding: 6px 3px;
  transition: border-color .14s, background .14s, transform .14s, box-shadow .14s;
}

.city-room-cards .city-room-cell:hover {
  z-index: 1;
  background: linear-gradient(160deg, #1b2b36f2, #0a1119e6);
  border-color: #aec4d070;
  transform: translateY(-1px);
}

.city-room-cards .city-room-cell.selected {
  background: linear-gradient(160deg, #805d264d, #27221bc7);
  border-color: #e2be70e6;
  box-shadow: inset 0 0 0 1px #e2be7026, 0 0 13px #e2be701a;
}

.city-room-cards .city-room-cell.locked {
  background: #080d1394;
  border-style: dashed;
  border-color: #8c97a133;
}

.city-room-cards .city-room-cell.locked .city-room-portrait {
  opacity: .58;
  filter: grayscale(.68);
}

.city-room-cards .city-room-cell[aria-disabled="true"] {
  color: #a4adb1;
}

.city-room-cards .city-room-cell.cleared:not(.selected) {
  border-color: #dab9646b;
}

.city-room-cards .city-room-cell > b {
  color: #e8edf0;
  font-size: 10px;
  line-height: 1.1;
}

.city-room-cards .city-room-portrait {
  width: 46px;
  height: 46px;
}

.city-room-cards .city-room-badge {
  letter-spacing: .025em;
  padding: 2px 6px;
  font-size: 10px !important;
}

.city-room-cards .city-room-state {
  color: #dbbe77;
  top: 5px;
  right: 5px;
}

.city-room-cards .city-room-cell.locked .city-room-state {
  color: #aab5bb;
}

.city-room-cards .city-room-cell.selected .city-room-state {
  color: #ffe1a0;
}

.city-hunt-monster-large img {
  max-height: 150px;
}

.city-hunt-who {
  gap: 7px;
  display: grid;
}

.city-hunt-who-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.city-hunt-who-row figure {
  background: #040b1166;
  border: 1px solid #85a7c129;
  border-radius: 8px;
  justify-items: center;
  gap: 3px;
  margin: 0;
  padding: 6px 3px;
  display: grid;
}

.city-hunt-who-row figure.boss {
  border-color: #e8c76b73;
}

.city-hunt-who-row img {
  object-fit: contain;
  image-rendering: auto;
  width: 48px;
  height: 48px;
}

.city-hunt-who-row figcaption {
  text-align: center;
  justify-items: center;
  gap: 1px;
  display: grid;
}

.city-hunt-who-row figcaption small {
  color: #d3c18b;
  font-size: 10px;
  font-weight: 800;
}

.city-hunt-who-row figcaption span {
  color: #c9d3d8;
  font-size: 10px;
}

.city-hunt-error {
  color: #ff9b9b;
  margin: 6px 0 0;
  font-size: 11px;
}

.city-room-rank-tabs button small {
  color: #8798a2;
  margin-left: 4px;
  font-size: 10px;
}

@container game-ui (max-width: 740px) {
  .city-room-portal-block {
    gap: 8px;
    padding: 7px;
  }

  .city-room-family-list {
    gap: 6px;
  }

  .city-room-family-row {
    padding: 5px;
  }

  .city-room-family-heading {
    grid-template-columns: auto 28px minmax(0, 1fr) auto;
    gap: 5px;
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  .city-room-family-heading > img {
    width: 26px;
    height: 26px;
  }

  .city-room-family-rank {
    padding: 3px 4px;
    font-size: 10px;
  }

  .city-room-family-copy > b, .city-room-family-copy > small, .city-room-family-level {
    font-size: 11px;
  }

  .city-room-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .city-room-cards .city-room-cell {
    grid-template-rows: 36px auto auto;
    min-height: 78px;
    padding: 4px 2px;
  }

  .city-room-cards .city-room-portrait {
    width: 36px;
    height: 36px;
  }

  .city-room-cards .city-room-cell > b {
    font-size: 10px;
  }

  .city-room-cards .city-room-badge {
    padding: 1px 4px;
    font-size: 10px !important;
  }
}

@container game-ui (max-width: 430px) {
  .city-room-family-heading {
    grid-template-columns: auto 24px minmax(0, 1fr);
  }

  .city-room-family-heading > img {
    width: 23px;
    height: 23px;
  }

  .city-room-family-level {
    display: none;
  }

  .city-room-cards .city-room-cell {
    grid-template-rows: 31px auto auto;
    min-height: 70px;
  }

  .city-room-cards .city-room-portrait {
    width: 31px;
    height: 31px;
  }
}

.grimoire-portrait {
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  display: inline-grid;
}

.grimoire-portrait img {
  image-rendering: auto;
  max-width: 100%;
  max-height: 100%;
}

.city-modal, .city-modal * {
  scrollbar-width: thin;
  scrollbar-color: #d4b76e73 transparent;
}

.ci-inventory [role="tab"], .grimoire-panel [role="tab"], .vip-tabs [role="tab"], .city-modal [role="tab"] {
  justify-content: center;
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.city-hub-card-icon svg {
  width: 26px;
  height: 26px;
}

.city-hunt-tabs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr));
}

.city-channel-picker header strong {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.city-account-open svg:first-child {
  flex: none;
}

.city-world-loading {
  color: #c9bd98;
  letter-spacing: .08em;
  background: #111722;
  place-items: center;
  font: 600 13px Space Grotesk, sans-serif;
  display: grid;
  position: absolute;
  inset: 0;
}

.city-dungeon-tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-dungeon-active {
  color: #d7e2ea;
  background: #8d6c351f;
  border: 1px solid #ccaf6759;
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 7px 10px;
  font-size: 11px;
  display: flex;
}

.city-room-cards .city-room-portrait {
  overflow: hidden;
}

.city-room-cards .city-room-portrait img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.city-hunt-difficulties small {
  white-space: normal;
  text-overflow: clip;
  line-height: 1.25;
  overflow: visible;
}

@media (max-width: 900px) {
  .city-hunt-difficulties {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    overflow-x: visible;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-ordinal {
  syntax: "*";
  inherits: false
}

@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false
}
.aethel-server-lock { position:fixed; z-index:100000; inset:0; display:grid; place-items:center; overflow:auto; padding:24px; color:#f1ead9; background:rgba(7,11,18,.96); }
.aethel-server-lock-card { display:grid; width:min(340px,100%); justify-items:center; gap:14px; text-align:center; }
.aethel-server-lock-icon { color:#e4c878; opacity:.9; }
.aethel-server-lock-card h1 { margin:0; color:#f2e8d2; font:700 22px/1.2 "Space Grotesk",system-ui,sans-serif; }
.aethel-server-lock-card p { display:flex; min-height:20px; align-items:center; justify-content:center; gap:9px; margin:0; color:#9aa6b4; font-size:13px; line-height:1.5; }
.aethel-server-lock-spinner { width:13px; height:13px; flex:0 0 auto; border:2px solid rgba(228,200,120,.22); border-top-color:#e4c878; border-radius:50%; animation:aethel-lock-spin .9s linear infinite; }
.aethel-server-lock-card button { min-width:180px; min-height:42px; margin-top:6px; border:0; border-radius:9px; padding:0 22px; color:#17150d; background:#d9bd74; font:700 13px/1 "Space Grotesk",system-ui,sans-serif; cursor:pointer; transition:filter .15s ease; }
.aethel-server-lock-card button:hover { filter:brightness(1.08); }
.aethel-server-lock-card button:focus-visible { outline:2px solid #f2e3b3; outline-offset:3px; }
.aethel-server-lock-card button:disabled { opacity:.6; cursor:wait; }
@keyframes aethel-lock-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .aethel-server-lock-spinner { animation:none; } }
.aethel-runtime-feedback {
  position: fixed;
  z-index: 2147483000;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  width: min(660px, calc(100vw - 28px));
  grid-template-columns: 34px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(206, 174, 91, .45);
  border-radius: 13px;
  padding: 13px 12px;
  color: #eee9dd;
  background: linear-gradient(145deg, rgba(20, 31, 48, .98), rgba(9, 15, 25, .98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .035);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}
.aethel-runtime-feedback-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(212, 174, 91, .35); border-radius: 9px; color: #e0bd67; background: rgba(198, 158, 70, .1); }
.aethel-runtime-feedback-copy { min-width: 0; }
.aethel-runtime-feedback-copy b { color: #f1e6c8; font-size: 12px; }
.aethel-runtime-feedback-copy p { margin: 3px 0 0; color: #c0cad7; font-size: 11px; line-height: 1.4; }
.aethel-runtime-feedback-copy small { display: block; margin-top: 4px; color: #8290a2; font-size: 11px; line-height: 1.35; }
.aethel-runtime-feedback-retry, .aethel-runtime-feedback-close { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(216, 187, 107, .4); border-radius: 8px; padding: 0 10px; color: #e2ca88; background: rgba(195, 160, 82, .09); font-size: 10px; font-weight: 750; white-space: nowrap; }
.aethel-runtime-feedback-retry:hover, .aethel-runtime-feedback-close:hover { border-color: #d8bb6b; background: rgba(195, 160, 82, .16); }
.aethel-runtime-feedback-retry:disabled { cursor: wait; opacity: .65; }
.aethel-runtime-feedback-close { width: 28px; min-height: 28px; padding: 0; border-color: transparent; color: #8995a4; }
.aethel-runtime-feedback.is-restored { border-color: rgba(206, 174, 91, .32); }
.aethel-runtime-feedback.is-restored .aethel-runtime-feedback-icon { color: #d9c27e; }
/* Mesmo desenho da tela de conexão perdida: ícone, título, uma frase e um botão. */
.aethel-fatal-error { display: grid; min-height: 100dvh; place-items: center; padding: 24px; color: #f1ead9; background: #070b12; font-family: "DM Sans", system-ui, sans-serif; }
.aethel-fatal-error-card { display: grid; width: min(340px, 100%); justify-items: center; gap: 14px; text-align: center; }
.aethel-fatal-error-card > svg { color: #e4c878; }
.aethel-fatal-error-card h1 { margin: 0; color: #f2e8d2; font: 700 22px/1.2 "Space Grotesk", system-ui, sans-serif; }
.aethel-fatal-error-card p { margin: 0; color: #9aa6b4; font-size: 13px; line-height: 1.5; }
.aethel-fatal-error-card button { min-width: 180px; min-height: 42px; margin-top: 6px; border: 0; border-radius: 9px; padding: 0 22px; color: #17150d; background: #d9bd74; font: 700 13px/1 "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
.aethel-fatal-error-card button:hover { filter: brightness(1.08); }
.aethel-fatal-error-card button:focus-visible { outline: 2px solid #f2e3b3; outline-offset: 3px; }
.is-spinning { animation: aethel-runtime-spin .9s linear infinite; }
@keyframes aethel-runtime-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .aethel-runtime-feedback { grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 9px; padding: 11px; }
  .aethel-runtime-feedback-icon { width: 29px; height: 29px; }
  .aethel-runtime-feedback-retry { grid-column: 2; justify-self: start; }
  .aethel-runtime-feedback-close { grid-column: 3; grid-row: 1; }
  .aethel-runtime-feedback-copy small { font-size: 11px; }
}

/* Navy surfaces with clear success/error severity; retry and focus remain gold. */
.aethel-runtime-feedback { border-color: var(--ui-border-strong); color: var(--ui-text); background: linear-gradient(145deg, rgba(16, 24, 39, .98), rgba(8, 13, 23, .98)); }
.aethel-runtime-feedback-icon { border-color: var(--ui-border-strong); color: var(--ui-gold-bright); background: var(--ui-gold-soft); }
.aethel-runtime-feedback.is-restored { border-color: rgba(120, 201, 158, .42); background: linear-gradient(145deg, rgba(16, 35, 34, .97), rgba(8, 15, 24, .98)); }
.aethel-runtime-feedback.is-restored .aethel-runtime-feedback-icon { border-color: rgba(120, 201, 158, .4); color: var(--ui-success); background: rgba(120, 201, 158, .1); }
.aethel-runtime-feedback-retry,.aethel-runtime-feedback-close { border-color: var(--ui-border-strong); color: var(--ui-gold-bright); background: var(--ui-gold-soft); }
.aethel-runtime-feedback-retry:hover,.aethel-runtime-feedback-close:hover { border-color: var(--ui-gold); background: rgba(212, 183, 110, .2); }

/* Aviso curto no topo: título, uma frase e o botão. */
.aethel-runtime-feedback { width: min(460px, calc(100vw - 28px)); grid-template-columns: 28px minmax(0, 1fr) auto 28px; gap: 10px; padding: 9px 10px; }
.aethel-runtime-feedback-icon { width: 26px; height: 26px; border: 0; background: transparent; }
.aethel-runtime-feedback-copy p { margin-top: 1px; }
.aethel-security-lock {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #eee7d5;
  background: radial-gradient(ellipse at 50% 22%, rgba(38, 53, 77, .9), rgba(5, 9, 16, .985) 72%);
  backdrop-filter: blur(14px);
}
.aethel-security-lock-card {
  width: min(520px, 100%);
  box-sizing: border-box;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(212, 183, 110, .48);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 25, 39, .98), rgba(8, 13, 22, .98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 255, 255, .04);
  text-align: center;
}
.aethel-security-lock-seal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(212, 183, 110, .45);
  border-radius: 14px;
  color: #e7cd83;
  background: rgba(212, 183, 110, .1);
  font-size: 24px;
}
.aethel-security-lock-kicker { margin: 0 0 10px; color: #d5bd7b; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.aethel-security-lock-card h1 { margin: 0; color: #f1ead9; font-size: clamp(22px, 5vw, 30px); line-height: 1.2; }
.aethel-security-lock-card p:not(.aethel-security-lock-kicker) { margin: 14px 0 0; color: #c4c6cc; line-height: 1.55; }
.aethel-security-lock-card small { display: block; margin-top: 20px; color: #8e9aa9; font-size: 11px; line-height: 1.5; }
/* Telas de entrada do /admin (login, "Validando sessão", "Carregando…", bloqueio): mesmo visual do portal público.
   - Fundo: a mesma arte do portal (PortalBackdrop em src/portal/PortalBanner.tsx/.css), com o mesmo véu escuro do Início.
     Fica em pseudo-elementos para valer em todas as telas que usam .admin-login-page sem mexer no JSX de cada uma.
   - Cartão: os mesmos tokens de superfície do portal (.portal-root em src/portal/PortalLayout.css).
   - Campos e botão: iguais ao cartão de entrar do jogo no portal (src/auth/AuthGate.css + ajustes do portal).
   Este arquivo também carrega antes do painel (tela "Carregando…"); por isso os seletores começam por main.admin-login-page,
   para vencer as regras antigas de AdminDashboard.css, que chegam depois. Azul-escuro com dourado; nada de roxo. */

main.admin-login-page {
  --portal-surface: linear-gradient(160deg, rgba(14, 22, 36, .88), rgba(8, 13, 23, .9));
  --portal-surface-border: var(--ui-border-strong);
  --portal-surface-blur: blur(8px);
  --portal-surface-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .04);
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 320px;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  padding: 72px 16px 32px;
  color: var(--ui-text);
  background: #080d17;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: clip;
}

/* Arte de fundo do site (mesmos arquivos e enquadramento do PortalBackdrop: herói e portal dourado à vista). */
main.admin-login-page::before,
main.admin-login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
main.admin-login-page::before {
  z-index: -2;
  background: #070c18 url("/assets/site/etherion-fundo-1920.webp") 42% 32% / cover no-repeat;
}
@media (max-width: 1280px) {
  main.admin-login-page::before { background-image: url("/assets/site/etherion-fundo-1280.webp"); }
}
/* Véu azul-escuro: o cartão fica no centro, então o meio escurece um pouco mais que no Início do portal. */
main.admin-login-page::after {
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 60% at 50% 52%, rgba(5, 10, 24, .5), transparent 100%),
    linear-gradient(90deg, rgba(5, 10, 24, .78) 0, rgba(5, 10, 24, .3) 30%, rgba(5, 10, 24, .2) 70%, rgba(5, 10, 24, .7) 100%),
    linear-gradient(180deg, rgba(5, 10, 24, .5) 0, rgba(5, 10, 24, 0) 16%, rgba(5, 10, 24, 0) 60%, rgba(5, 10, 24, .85) 100%),
    linear-gradient(rgba(14, 28, 64, .18), rgba(14, 28, 64, .18));
}

/* Cartão central: vidro azul-escuro com borda dourada, igual aos cartões do portal. */
main.admin-login-page .admin-login-card {
  width: min(460px, 100%);
  padding: clamp(20px, 3.4vw, 34px) clamp(18px, 3.6vw, 36px);
  border: 1px solid rgba(236, 200, 112, .72);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(10, 18, 36, .9), rgba(5, 10, 22, .93));
  -webkit-backdrop-filter: var(--portal-surface-blur);
  backdrop-filter: var(--portal-surface-blur);
  /* Moldura dourada dupla, como o cartão de entrar do site. */
  box-shadow: 0 0 0 1px rgba(5, 10, 24, .85), 0 0 0 2px rgba(236, 200, 112, .26), 0 0 36px rgba(240, 196, 102, .14), 0 24px 56px rgba(0, 0, 0, .55),
    inset 0 0 0 5px rgba(5, 10, 24, .55), inset 0 0 0 6px rgba(236, 200, 112, .2);
  text-align: center;
}
/* Emblema do site no alto da moldura, como no cartão de entrar do portal. */
main.admin-login-page .admin-login-card { position: relative; margin-top: 48px; }
main.admin-login-page .admin-login-card::before {
  position: absolute; z-index: 2; top: -44px; left: 50%; width: 88px; height: 88px; content: "";
  background: var(--gold-emblem); border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(240, 196, 102, .35)) drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
  transform: translateX(-50%); pointer-events: none;
}
main.admin-login-page .admin-login-card { padding-top: 56px; background: var(--gold-corners), linear-gradient(165deg, rgba(10, 18, 36, .92), rgba(5, 10, 22, .94)); }
main.admin-login-page .admin-login-logo {
  width: min(260px, 82%);
  margin: -6px auto 6px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .6));
}
main.admin-login-page .admin-eyebrow {
  margin: 0 0 6px;
  color: var(--ui-gold-bright);
  font: 700 12px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
main.admin-login-page .admin-login-card h1 {
  margin: 0;
  color: #f4f0e6;
  font: 700 clamp(28px, 2.6vw, 34px)/1.08 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}
main.admin-login-page .admin-login-card > .admin-muted {
  margin: 6px 0 24px;
  color: var(--ui-muted);
  font: 600 12px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Formulário: campos e botão no padrão do cartão de entrar do jogo, levemente translúcidos sobre o vidro. */
main.admin-login-page .admin-login-form { display: grid; gap: 16px; text-align: left; }
main.admin-login-page .admin-login-field { display: grid; gap: 7px; }
main.admin-login-page .admin-login-field label { color: #d6d9de; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
main.admin-login-page .admin-input-icon {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 12px;
  border: 1px solid rgba(190, 198, 204, .2);
  border-radius: 8px;
  color: #8fa6a5;
  background: rgba(3, 8, 12, .45);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
main.admin-login-page .admin-input-icon:hover { border-color: rgba(214, 186, 111, .4); }
main.admin-login-page .admin-input-icon:focus-within {
  border-color: rgba(236, 200, 112, .62);
  color: var(--ui-gold-bright);
  background: rgba(8, 14, 30, .8);
  box-shadow: 0 0 0 3px rgba(240, 196, 102, .08), inset 0 0 12px rgba(240, 196, 102, .07);
}
main.admin-login-page .admin-input-icon:has(input[aria-invalid="true"]) { border-color: rgba(233, 136, 136, .6); }
main.admin-login-page .admin-input-icon input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #eee9dd;
  background: transparent;
  font-size: 15px;
}
main.admin-login-page .admin-input-icon input:focus-visible { outline: none; }
main.admin-login-page .admin-input-icon input:-webkit-autofill,
main.admin-login-page .admin-input-icon input:-webkit-autofill:hover,
main.admin-login-page .admin-input-icon input:-webkit-autofill:focus { -webkit-text-fill-color: #eee9dd; caret-color: #eee9dd; box-shadow: 0 0 0 1000px #0d1520 inset; transition: background-color 9999s; }
/* Olho de mostrar/esconder a senha. */
main.admin-login-page .admin-login-eye {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #a9b4c2;
  background: transparent;
  transition: color .16s ease, background .16s ease;
}
main.admin-login-page .admin-login-eye:hover { color: var(--ui-gold-bright); background: var(--ui-gold-soft); }
main.admin-login-page .admin-login-eye:focus-visible { outline: 2px solid var(--ui-gold); outline-offset: 0; }
main.admin-login-page .admin-primary-button.full {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  /* Mesmo botão dourado do "Entrar no jogo" (goldFrame.css): chanfro curto e borda interna clara. */
  border: 0;
  border-radius: 3px;
  color: #241805;
  background: linear-gradient(180deg, #fbe6a2 0%, #efcd74 38%, #d9a845 72%, #c08f33 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 205, .65), inset 0 -2px 0 rgba(120, 78, 18, .35), 0 6px 18px rgba(240, 180, 70, .22);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  font: 700 15px/1.2 "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: .12em;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .55);
}
main.admin-login-page .admin-primary-button.full:hover:not(:disabled) { transform: none; filter: brightness(1.1); box-shadow: 0 10px 28px rgba(174, 146, 82, .28), inset 0 1px rgba(255, 255, 255, .4); }
main.admin-login-page .admin-primary-button.full:active:not(:disabled) { filter: brightness(.96); }
main.admin-login-page .admin-primary-button.full:focus-visible { outline: 2px solid var(--ui-gold-bright); outline-offset: 3px; }
/* Erro dentro do cartão, bem visível. */
main.admin-login-page .admin-alert.error {
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(233, 136, 136, .55);
  border-radius: 8px;
  color: #ffd2d5;
  background: rgba(120, 32, 44, .42);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
main.admin-login-page .admin-alert.error svg { margin-top: 0; color: #ff9aa2; }
/* Anti-robô (Cloudflare, 300 px): centralizado e sem estourar o cartão em telas estreitas. */
main.admin-login-page .reg-verify-turnstile { display: flex; max-width: 100%; justify-content: center; overflow: hidden; }

/* "← Voltar ao site": cápsula discreta no canto, igual às utilidades do cabeçalho do portal. */
main.admin-login-page .admin-login-back {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--portal-surface-border);
  border-radius: 8px;
  color: #d3d8e0;
  background: var(--portal-surface);
  -webkit-backdrop-filter: var(--portal-surface-blur);
  backdrop-filter: var(--portal-surface-blur);
  font: 600 13px/1 "DM Sans", "Segoe UI", sans-serif;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
main.admin-login-page .admin-login-back:hover { color: var(--ui-gold-bright); border-color: var(--ui-gold); background: var(--ui-gold-soft); }
main.admin-login-page .admin-login-back:focus-visible { outline: 2px solid var(--ui-gold); outline-offset: 2px; }

/* "Carregando…" enquanto o código do painel chega. */
main.admin-login-page .admin-login-loading { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; color: var(--ui-muted); font-size: 15px; }
main.admin-login-page .admin-login-spinner { width: 18px; height: 18px; border: 2px solid var(--ui-border); border-top-color: var(--ui-gold); border-radius: 50%; animation: admin-login-spin .8s linear infinite; }
@keyframes admin-login-spin { to { transform: rotate(360deg); } }

/* Tablet e celular: como no portal, a arte fica presa no alto à esquerda e se dissolve no azul-escuro. */
@media (max-width: 979px) {
  main.admin-login-page::before { background-position: 40% 0; }
  main.admin-login-page::after {
    background:
      linear-gradient(180deg, rgba(5, 10, 24, .6) 0, rgba(5, 10, 24, .3) 22%, rgba(5, 10, 24, .45) 50%, rgba(5, 10, 24, .88) 80%, #070c18 100%),
      linear-gradient(rgba(14, 28, 64, .2), rgba(14, 28, 64, .2));
  }
}
@media (max-width: 560px) {
  /* Mesmo recorte em retrato (760×1080) que o portal usa no celular. */
  main.admin-login-page::before { background-image: url("/assets/site/etherion-fundo-celular.webp"); background-position: 60% 0; }
  main.admin-login-page { padding: 64px 12px 24px; }
  main.admin-login-page .admin-login-back { top: 12px; left: 12px; }
  main.admin-login-page .admin-login-card { padding: 20px 16px; }
  main.admin-login-page .admin-login-logo { width: min(200px, 70%); }
  main.admin-login-page .admin-input-icon input { font-size: 16px; } /* 16 px: o iPhone não aproxima a tela ao tocar. */
}

@media (prefers-reduced-motion: reduce) {
  main.admin-login-page .admin-login-spinner { animation-duration: 2.4s; }
}
/* Tela "Acesso bloqueado": usa o fundo e o cartão do login do /admin (src/admin/AdminLogin.css, classes
   admin-login-page e admin-login-card). Aqui só o que é próprio dela: cobrir a tela inteira por cima de tudo. */
main.admin-login-page.aethel-access-blocked {
  position: fixed;
  z-index: 2147483600;
  inset: 0;
  overflow-y: auto;
  padding: 32px 16px;
}
main.admin-login-page .aethel-access-blocked-card { display: grid; justify-items: center; gap: 12px; }
main.admin-login-page .aethel-access-blocked-card .admin-login-logo { margin-bottom: 0; }
.aethel-access-blocked-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--ui-border-strong, rgba(214, 186, 111, .34));
  border-radius: 50%;
  color: var(--ui-gold-bright, #ead28a);
  background: var(--ui-gold-soft, rgba(212, 183, 110, .12));
}
main.admin-login-page .aethel-access-blocked-card p { margin: 0; color: var(--ui-muted, #98a4b5); font-size: 15px; line-height: 1.55; }
main.admin-login-page .aethel-access-blocked-card .aethel-access-blocked-when { color: var(--ui-text, #ece9e1); }
.aethel-access-blocked-when strong { color: var(--ui-gold-bright, #ead28a); white-space: nowrap; }
main.admin-login-page .aethel-access-blocked-card small { color: #8b97a8; font-size: 13px; line-height: 1.45; }
main.admin-login-page .aethel-access-blocked-card .admin-primary-button.full { margin-top: 8px; cursor: pointer; }
main.admin-login-page .aethel-access-blocked-card .admin-primary-button.full:disabled { cursor: wait; opacity: .7; }
