/* ==========================================================================================================
   Eosaur — sistema de design da interface ("Madeira, couro e âmbar")
   ----------------------------------------------------------------------------------------------------------
   Conceito: interface de jogo de sobrevivência. Painéis com corpo (moldura escura + filete de couro claro +
   veio sutil de madeira), cantos firmes, grades de espaços grandes como protagonistas, botões com relevo e
   estado claro (pressionado, desligado), números grandes e de alto contraste, cores com significado.
   Detalhe sob demanda: a dica flutua junto do cursor (Shift expande); cada janela tem um "?" com os atalhos.
   Não depende da estética de pixel: ícones de interface são SVG próprios e a arte do jogo entra só como
   conteúdo (ícones de item, retratos). Escala: o <html> recebe font-size em client/ui/base.js (≈12,5 px em
   1100×650, 14,5 px em 1280×720, 18 px em 1720×900, 29 px em 2560×1440; × Pequena 0,88 / Média 1 / Grande 1,14).

   TOKENS
     Moldura .... --f0 (contorno quase preto) --f1 (couro escuro) --f2 (filete claro) --f3 (brilho)
     Corpo ...... --b0…--b3 (placas) --well (fundo de espaço) · --panel-bg (corpo de painel com veio)
     Texto ...... --tx --tx2 --tx3 --tx4 · âmbar --gold --gold2 --gold-ink
     Semânticas . --good --warn --bad --info --cold --hot --ether · vitais --v-hp --v-st --v-food --v-water --v-weight --v-xp --v-tor
     Relevo ..... --frame (moldura de painel) --raised (botão) --pressed (botão apertado) --outline-text
     Espaço ..... --s1…--s8 · raio --r1 --r2 · --slot (tamanho do espaço)
     Tipo ....... --f-text (Barlow) --f-title (Cinzel) · tamanhos --fs-2xs…--fs-3xl
     Movimento .. --t-fast 120 ms, --t-med 180 ms (respeita prefers-reduced-motion e a opção "Reduzir animações")

   COMPONENTES
     .win/.modal (painel) · .whead (cabeçalho: título, "?" e ×) · .tab (aba) · .ctab (aba de ícone/filtro) ·
     .slot (espaço) · .btn (+ .go primário, .danger, .sm, .big, .on, .off) · .ibtn2 (botão de ícone) · .sbtn (−/+) ·
     .msearch (busca discreta) · .seg (segmentado) · .switch · .inp/.field · .vrow/.bar (barra com número) ·
     kbd (tecla desenhada) · .tip (dica flutuante) · .helppop (balão de ajuda) · .ctx (menu de contexto) ·
     .toast · .alert/.hint · .empty-state · .gh (cabeçalho de grade) · .firebtn (fogo da estação)
   ========================================================================================================== */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/cinzel-latin-wght-normal.woff2') format('woff2'); }

:root {
  --f0: #0c0805; --f1: #3a2a1b; --f2: #7a5a38; --f3: #b48a55;
  --b0: #241a12; --b1: #2f2318; --b2: #3a2b1d; --b3: #4a3725; --well: #140e09;
  --tx: #f7ecd6; --tx2: #dcc8a4; --tx3: #a68f6c; --tx4: #6f5e47;
  --gold: #f5bd4a; --gold2: #ffd98a; --gold-ink: #2a1803;
  --good: #8ee06f; --warn: #f8c84a; --bad: #ff6a52; --info: #7cc4f6; --cold: #94d6ff; --hot: #ffa060; --ether: #cfa4ff;
  --v-hp: #e8413f; --v-st: #f4cd3c; --v-food: #f28a32; --v-water: #3aa3f2; --v-weight: #b9ab92; --v-xp: #5fdcae; --v-tor: #a96cf2;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;
  --r1: 0.25rem; --r2: 0.4rem;
  --f-text: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-title: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Palatino, Georgia, serif;
  --fs-2xs: 0.7rem; --fs-xs: 0.78rem; --fs-sm: 0.88rem; --fs-md: 1rem; --fs-lg: 1.15rem; --fs-xl: 1.4rem; --fs-2xl: 1.85rem; --fs-3xl: 2.6rem;
  --t-fast: 120ms; --t-med: 180ms; --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --slot: 3.6rem;
  --panel-bg: radial-gradient(ellipse at 50% -10%, rgba(255, 205, 140, 0.08), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 230, 190, 0.018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2b2016, #20170f);
  --frame: 0 0 0 2px var(--f0), inset 0 0 0 2px var(--f2), inset 0 0 0 3px var(--f0), inset 0 4px 10px rgba(0, 0, 0, 0.35);
  --raised: inset 0 1px 0 rgba(255, 225, 170, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  --pressed: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  --outline-text: 0 1px 0 #000, 1px 0 0 #000, 0 -1px 0 #000, -1px 0 0 #000, 0 2px 3px rgba(0, 0, 0, 0.6);
  --btn-bg: linear-gradient(#5e4530, #3f2d1d);
  --btn-go: linear-gradient(#ffd77a, #e59f2c);
  --btn-go-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 60, 0, 0.45);
  --tab-bg: linear-gradient(#3e2e1f, #2a1f15);
  --tab-on: linear-gradient(#6a4c2c, #4a3420);
}

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0d0b09; }
body { font-family: var(--f-text); color: var(--tx); font-size: 1rem; line-height: 1.3; user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
#game { position: absolute; left: 0; top: 0; display: block; image-rendering: crisp-edges; image-rendering: pixelated; cursor: crosshair; }

#ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
#ui * { box-sizing: border-box; }
#ui .hidden { display: none !important; }
#ui img.ico, #ui .thumb, #ui canvas { image-rendering: crisp-edges; image-rendering: pixelated; }
#ui .dim { color: var(--tx3); }
#ui .gold { color: var(--gold2); }
#ui .good { color: var(--good); }
#ui .warn { color: var(--warn); }
#ui .bad { color: var(--bad); }
#ui .c-cold { color: var(--cold); }
#ui .c-hot { color: var(--hot); }
#ui .small { font-size: var(--fs-xs); }
#ui .center { text-align: center; }
#ui b { font-weight: 700; }
#ui .sp { flex: 1; }
#ui h1, #ui h2, #ui h3, #ui h4 { margin: 0; font-weight: 700; }
#ui small { font-size: 0.8em; }
#ui mark { background: rgba(245, 189, 74, 0.25); color: var(--gold2); border-radius: 2px; padding: 0 1px; }
#ui button, #ui input, #ui select, #ui summary, #ui label.switch, #ui label.field, #ui label.msearch, #ui [data-act], #ui [data-tip], #ui [data-tip-item], #ui [data-inv] { pointer-events: auto; }
#ui ::selection { background: rgba(245, 189, 74, 0.35); }
#ui :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

/* ---------- teclas ---------- */
#ui kbd { display: inline-flex; align-items: center; justify-content: center; gap: 0.2em; min-width: 1.75em; height: 1.65em; padding: 0 0.42em;
  font: 700 0.7em/1 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--tx);
  background: linear-gradient(#5a4430, #3a2b1d); border: 1px solid var(--f0); border-bottom-width: 2px; border-radius: 0.3em;
  box-shadow: inset 0 1px 0 rgba(255, 225, 170, 0.25); white-space: nowrap; vertical-align: 0.05em; }
#ui kbd.mouse { padding: 0 0.35em 0 0.25em; }
#ui kbd.mouse .i { width: 1.2em; height: 1.2em; }
#ui .kp, #ui .kd { margin: 0 0.15em; color: var(--tx4); font-size: 0.8em; }
#ui .ks { display: inline-block; width: 0.2em; }
#ui .ko { margin: 0 0.35em; color: var(--tx4); font-size: 0.75em; }

/* ---------- botões ---------- */
#ui .btn, #ui .seg button, #ui .tab, #ui .ctab, #ui .ibtn2, #ui .sbtn, #ui .hbtn, #ui .xbtn2, #ui .chip {
  font: inherit; color: inherit; cursor: pointer; margin: 0;
  transition: background var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
#ui .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; flex-shrink: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--tx);
  background: var(--btn-bg); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); padding: 0.45em 0.95em; min-height: 2.4rem; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
#ui .btn:hover { filter: brightness(1.15); }
#ui .btn:active { transform: translateY(1px); box-shadow: var(--pressed); }
#ui .btn .bk { display: inline-flex; gap: 0.15em; margin-left: 0.2em; }
#ui .btn kbd { font-size: 0.66em; }
#ui .btn.go { color: var(--gold-ink); text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4); background: var(--btn-go); box-shadow: var(--btn-go-shadow), 0 2px 10px rgba(229, 159, 44, 0.25); }
#ui .btn.go kbd { color: var(--gold-ink); background: rgba(255, 255, 255, 0.4); border-color: rgba(70, 40, 0, 0.5); box-shadow: none; }
#ui .btn.danger { color: #fff; background: linear-gradient(#b3432f, #7e2a1d); }
#ui .btn.ghost { background: linear-gradient(#3a2b1d, #2a1f15); color: var(--tx2); }
#ui .btn.on { color: var(--gold2); background: linear-gradient(#2a1f14, #3a2a1a); box-shadow: var(--pressed), inset 0 0 0 1px var(--gold); }
#ui .btn.off { opacity: 0.45; filter: grayscale(0.7); cursor: default; }
#ui .btn.off:hover { filter: grayscale(0.7); }
#ui .btn.sm { font-size: var(--fs-xs); padding: 0.3em 0.7em; min-height: 1.95rem; }
#ui .btn.xs { font-size: var(--fs-2xs); padding: 0.15em 0.45em; min-height: 1.5rem; }
#ui .btn.lg, #ui .btn.big { font-size: var(--fs-lg); padding: 0.55em 1.4em; min-height: 3rem; }
#ui .btn.icon { padding: 0; width: 2.4rem; min-width: 2.4rem; }
#ui .btn.icon.sm { width: 1.95rem; min-width: 1.95rem; }
#ui .btn.icon.xs { width: 1.5rem; min-width: 1.5rem; }
#ui .btnrow { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
#ui .btnrow.end { justify-content: flex-end; }
#ui .btnrow.center { justify-content: center; }
#ui .ibtn2, #ui .sbtn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; flex: none; color: var(--tx2); background: linear-gradient(#4a3725, #31241a); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); }
#ui .ibtn2 .i, #ui .sbtn .i { width: 1.25rem; height: 1.25rem; }
#ui .ibtn2:hover, #ui .sbtn:hover { color: var(--gold2); filter: brightness(1.15); }
#ui .ibtn2:active, #ui .sbtn:active { box-shadow: var(--pressed); transform: translateY(1px); }
#ui .ibtn2.on { color: var(--gold2); box-shadow: var(--pressed), inset 0 0 0 1px var(--gold); background: linear-gradient(#2a1f14, #3a2a1a); }
#ui .sbtn { width: 1.95rem; height: 1.95rem; }
#ui .hbtn { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; font-family: var(--f-title); font-weight: 900; font-size: 1.15rem; color: var(--gold2); background: linear-gradient(#4a3725, #31241a); border: 2px solid var(--f0); border-radius: 50%; box-shadow: var(--raised); padding: 0; flex: none; }
#ui .hbtn:hover { filter: brightness(1.2); }
#ui .xbtn2 { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; padding: 0; flex: none; color: #ffd8cf; background: linear-gradient(#8c3324, #5c2016); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); }
#ui .xbtn2 .i { width: 1.2rem; height: 1.2rem; }
#ui .xbtn2:hover { filter: brightness(1.2); }
/* abas de ícone (filtros) */
#ui .ctabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
#ui .ctabs.vert { flex-direction: column; flex-wrap: nowrap; }
#ui .ctab { position: relative; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding: 0; color: var(--tx2); background: var(--tab-bg); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); }
#ui .ctab .ico { width: 2rem; height: 2rem; }
#ui .ctab .i { width: 1.35rem; height: 1.35rem; }
#ui .ctab:hover { filter: brightness(1.2); }
#ui .ctab.on { background: var(--tab-on); color: var(--gold2); box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(245, 189, 74, 0.35); }
#ui .ctab.tog.on { color: var(--gold-ink); background: var(--btn-go); }
#ui .csep { display: block; height: 2px; margin: 0.15rem 0.3rem; background: var(--f0); box-shadow: 0 1px 0 var(--f1); }
/* buscas */
#ui .msearch { position: relative; display: flex; align-items: center; }
#ui .msearch > .i { position: absolute; left: 0.6rem; color: var(--tx3); pointer-events: none; }
#ui .msearch .sinp { width: 2.4rem; cursor: pointer; height: 2.4rem; font: inherit; font-size: var(--fs-sm); color: var(--tx); background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1), inset 0 2px 4px rgba(0, 0, 0, 0.6); border-radius: var(--r2); padding: 0 0.6rem 0 2rem; outline: none; user-select: text; -webkit-user-select: text; transition: width var(--t-med) var(--ease), box-shadow var(--t-fast); }
#ui .msearch .sinp:focus, #ui .msearch.has .sinp { width: 12rem; cursor: text; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 2px rgba(245, 189, 74, 0.25); }
#ui .msearch .sinp::placeholder { color: transparent; }
#ui .msearch .sinp:focus::placeholder { color: var(--tx4); }
#ui .search { position: relative; display: flex; align-items: center; flex: 1; min-width: 10rem; }
#ui .search > .i { position: absolute; left: 0.65rem; color: var(--tx3); pointer-events: none; }
#ui .search .sinp { width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--tx); background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1), inset 0 2px 4px rgba(0, 0, 0, 0.6); border-radius: var(--r2); padding: 0.45em 2.4em 0.45em 2.2em; outline: none; min-height: 2.4rem; user-select: text; -webkit-user-select: text; }
#ui .search .sinp:focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 2px rgba(245, 189, 74, 0.25); }
#ui .search .sinp::placeholder { color: var(--tx4); }
#ui .search .shk { position: absolute; right: 0.55rem; pointer-events: none; }
#ui .search .sclr { display: none; position: absolute; right: 0.35rem; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: transparent; color: var(--tx3); cursor: pointer; align-items: center; justify-content: center; }
#ui .search.has .sclr { display: inline-flex; }
#ui .search.has .shk, #ui .search:focus-within .shk { display: none; }
#ui .search.wide { max-width: 26rem; }
/* segmentado, chips (menus), interruptor, campos */
#ui .seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--well); border: 2px solid var(--f0); border-radius: var(--r2); }
#ui .seg button { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.35em 0.75em; font-size: var(--fs-xs); font-weight: 700; color: var(--tx3); background: transparent; border: 0; border-radius: var(--r1); min-height: 1.9rem; }
#ui .seg button:hover { color: var(--tx); }
#ui .seg button.on { color: var(--gold-ink); background: var(--btn-go); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
#ui .seg.sm button { padding: 0.2em 0.45em; min-height: 1.6rem; }
#ui .seg button .i { width: 1.1em; height: 1.1em; }
#ui .chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
#ui .chip { display: inline-flex; align-items: center; gap: 0.38em; padding: 0.35em 0.75em; font-size: var(--fs-xs); font-weight: 700; color: var(--tx2); background: var(--tab-bg); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); }
#ui .chip:hover { filter: brightness(1.2); }
#ui .chip.on { color: var(--gold2); background: var(--tab-on); box-shadow: inset 0 0 0 1px var(--gold); }
#ui .chip .i { width: 1.05em; height: 1.05em; }
#ui .switch { position: relative; display: inline-block; width: 2.8rem; height: 1.55rem; flex: none; cursor: pointer; }
#ui .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
#ui .switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); transition: background var(--t-med); }
#ui .switch i::after { content: ''; position: absolute; left: 0.15rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; border-radius: 50%; background: #b9a585; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); transition: transform var(--t-med) var(--ease); }
#ui .switch input:checked + i { background: var(--btn-go); }
#ui .switch input:checked + i::after { transform: translateX(1.2rem); background: #fff; }
#ui .switch.lock { opacity: 0.6; cursor: default; }
#ui .inp { font: inherit; font-size: var(--fs-sm); color: var(--tx); background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1), inset 0 2px 4px rgba(0, 0, 0, 0.6); border-radius: var(--r2); padding: 0.45em 0.7em; outline: none; min-width: 0; min-height: 2.4rem; user-select: text; -webkit-user-select: text; }
#ui .inp:focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 2px rgba(245, 189, 74, 0.25); }
#ui .inp::placeholder { color: var(--tx4); }
#ui .inp.invalid { box-shadow: inset 0 0 0 1px var(--bad); }
#ui .inp.sm { min-height: 2rem; padding: 0.25em 0.55em; font-size: var(--fs-xs); }
#ui select.inp.sm { padding-right: 1.9em; }
#ui .inp.num { width: 4.4rem; text-align: center; }
#ui select.inp { cursor: pointer; padding-right: 1.7em; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: calc(100% - 0.95em) 55%, calc(100% - 0.65em) 55%; background-size: 0.3em 0.3em; background-repeat: no-repeat; background-color: var(--well); }
#ui select.inp option { background: var(--b1); color: var(--tx); }
#ui .field { display: flex; flex-direction: column; gap: 0.3rem; }
#ui .field .fl { font-size: var(--fs-xs); font-weight: 700; color: var(--tx2); }
#ui .field .fh { font-size: var(--fs-2xs); color: var(--tx3); }
#ui .field.row { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3); background: rgba(0, 0, 0, 0.2); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); }
#ui .field.row > div { display: flex; flex-direction: column; gap: 0.2rem; }
#ui input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 0.5rem; border-radius: 999px; cursor: pointer; background: linear-gradient(90deg, var(--gold) var(--v, 50%), var(--well) var(--v, 50%)); box-shadow: 0 0 0 2px var(--f0); outline: none; }
#ui input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff3dc; border: 2px solid var(--f0); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }

/* ---------- textos de apoio ---------- */
#ui .pill { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.15em 0.55em; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.03em; border-radius: var(--r1); background: rgba(0, 0, 0, 0.35); color: var(--tx2); border: 1px solid var(--f0); white-space: nowrap; text-transform: uppercase; }
#ui .pill .i { width: 1em; height: 1em; }
#ui .pill.good, #ui .pill.t-good, #ui .pill.d-easy { background: #2c4a1f; color: #c4f3ac; }
#ui .pill.warn, #ui .pill.t-warn { background: #5a4410; color: #ffe39a; }
#ui .pill.t-bad { background: #5c2016; color: #ffbcaf; }
#ui .pill.d-normal { background: #1f3b56; color: #c6e6ff; }
#ui .pill.d-creative { background: #3e2a5c; color: #e6d4ff; }
#ui .tag { display: inline-flex; align-items: center; gap: 0.25em; font-size: var(--fs-2xs); font-weight: 700; padding: 0.15em 0.5em; border-radius: var(--r1); background: rgba(0, 0, 0, 0.3); color: var(--tx3); white-space: nowrap; }
#ui .gh { display: flex; align-items: center; gap: 0.5rem; min-height: 2.4rem; }
#ui .gh > b { font-family: var(--f-title); font-size: var(--fs-md); font-weight: 800; color: var(--tx2); letter-spacing: 0.04em; white-space: nowrap; }
#ui .sec-h { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-xs); font-weight: 800; color: var(--tx2); letter-spacing: 0.07em; text-transform: uppercase; padding: 0.15rem 0 0.4rem; border-bottom: 2px solid var(--f0); box-shadow: 0 1px 0 var(--f1); margin-bottom: 0.25rem; }
#ui .sec-h .i { color: var(--gold); }
#ui .sec-h .dim, #ui .sec-h small, #ui .sec-h .dyn, #ui .sec-h .btn { text-transform: none; letter-spacing: 0; font-weight: 600; }
#ui .sec-h > * { white-space: nowrap; }
#ui .card { background: rgba(0, 0, 0, 0.22); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); padding: var(--s3); }
#ui .hint { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--tx2); background: rgba(124, 196, 246, 0.08); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px rgba(124, 196, 246, 0.3); border-radius: var(--r2); padding: 0.55rem 0.7rem; }
#ui .hint .i { color: var(--info); margin-top: 0.05em; }
#ui .alert { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--tx2); background: rgba(0, 0, 0, 0.3); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); padding: 0.6rem 0.8rem; }
#ui .alert > span { display: flex; flex-direction: column; gap: 0.15rem; }
#ui .alert > span > span { font-size: var(--fs-xs); color: var(--tx3); }
#ui .alert.bad { background: #3a130d; box-shadow: inset 0 0 0 1px #8c3324; color: #ffd6cd; }
#ui .alert.bad .i { color: var(--bad); }
#ui .alert.warn { background: #3a2c0b; box-shadow: inset 0 0 0 1px #8a6a1c; color: #ffe8b4; }
#ui .alert.warn .i { color: var(--warn); }
#ui .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; padding: 1.4rem 1rem; text-align: center; color: var(--tx3); grid-column: 1 / -1; }
#ui .empty-state .i { width: 2.2rem; height: 2.2rem; color: var(--tx4); }
#ui .empty-state b { color: var(--tx2); font-size: var(--fs-md); }
#ui .empty-state span { font-size: var(--fs-xs); max-width: 26rem; }
#ui .kv { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); font-size: var(--fs-sm); padding: 0.2rem 0; }
#ui .kv > span { display: inline-flex; align-items: center; gap: 0.45em; color: var(--tx3); }
#ui .kv > b { display: inline-flex; align-items: center; gap: 0.3em; text-align: right; }
#ui .kvs { display: flex; flex-direction: column; }
#ui .spin { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(245, 189, 74, 0.25); border-top-color: var(--gold); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- espaços ---------- */
#ui .slot { position: relative; width: var(--slot); height: var(--slot); flex: none;
  background: radial-gradient(ellipse at 50% 35%, #21180f, var(--well) 75%); border: 2px solid var(--f0); border-radius: var(--r2);
  box-shadow: inset 0 0 0 1px #3e2d1d, inset 0 3px 6px rgba(0, 0, 0, 0.6);
  transition: box-shadow var(--t-fast) var(--ease), opacity var(--t-med) var(--ease), transform var(--t-fast) var(--ease); }
#ui .slot.full { background: radial-gradient(ellipse at 50% 40%, #33261a, #1a120b 80%); box-shadow: inset 0 0 0 1px #5a432c, inset 0 3px 6px rgba(0, 0, 0, 0.45); }
#ui .win .slot:hover, #ui .slot.kb { box-shadow: inset 0 0 0 2px var(--gold2), inset 0 0 14px rgba(245, 189, 74, 0.25); cursor: pointer; }
#ui .slot.sel { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 1px var(--gold), 0 0 14px rgba(245, 189, 74, 0.45); }
#ui .slot.picked > .ico { opacity: 0.2; }
#ui .slot.dim { opacity: 0.2; filter: grayscale(1); }
#ui .slot.eq:not(.full) { background: radial-gradient(ellipse at 50% 35%, #1d150e, #0f0a06 75%); }
#ui .slot .ico { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
#ui .ico { display: inline-block; vertical-align: middle; }
#ui .ico.ph { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; border-radius: var(--r1); overflow: hidden; }
#ui .ico.sm { width: 1.25rem; height: 1.25rem; font-size: 0.45rem; position: static; vertical-align: -0.3em; }
#ui .slot .q, #ui .slot .am { position: absolute; right: 0.2rem; bottom: 0.08rem; font-size: 0.85rem; font-weight: 700; line-height: 1; color: #fff; text-shadow: var(--outline-text); }
#ui .slot .am { top: 0.15rem; bottom: auto; color: #ffe08a; }
#ui .slot .q.q4 { font-size: 0.74rem; right: 0.14rem; letter-spacing: -0.02em; }
#ui .slot .am.none { color: var(--bad); }
#ui .slot .ami { position: absolute; right: 1.1rem; top: 0.05rem; }
#ui .slot .ami .ico.sm { width: 0.9rem; height: 0.9rem; }
#ui .slot .k { position: absolute; left: 0.25rem; top: 0.1rem; font-size: 0.7rem; font-weight: 800; line-height: 1; color: var(--tx3); text-decoration: none; text-shadow: var(--outline-text); }
#ui .slot.sel .k { color: var(--gold2); }
#ui .slot .el { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #5a442c; text-decoration: none; }
#ui .slot .el .i { width: 50%; height: 50%; }
#ui .slot .dur { position: absolute; left: 12%; right: 12%; bottom: 0.2rem; height: 0.24rem; background: #000; border-radius: 2px; overflow: hidden; }
#ui .slot .dur > i { display: block; height: 100%; }
#ui .slot .fresh { position: absolute; right: 0.22rem; top: 0.22rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: conic-gradient(var(--c) var(--f), #000 0); box-shadow: 0 0 0 1.5px #000; }
#ui .slot .fresh.low { animation: pulse 1.2s ease-in-out infinite; }
#ui .slot .cook { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: linear-gradient(0deg, rgba(255, 140, 40, 0.6), rgba(255, 190, 80, 0.12)); border-radius: 0 0 0.25rem 0.25rem; pointer-events: none; }
#ui .slot.gain { animation: gain 0.55s var(--ease); }
@keyframes gain { 0% { box-shadow: inset 0 0 0 2px var(--good), 0 0 16px rgba(142, 224, 111, 0.9); transform: scale(1.06); } 100% { transform: none; } }
#ui .grid { display: grid; grid-template-columns: repeat(var(--cols, 8), var(--slot)); gap: 0.3rem; }
#held { position: absolute; left: 0; top: 0; z-index: 70; pointer-events: none; border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
#held .ico { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.7)); }

/* ---------- barras ---------- */
#ui .bar { position: relative; flex: 1; height: 0.7rem; background: #0b0704; border: 2px solid var(--f0); border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px #3a2a1a; }
#ui .bar > i { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c, #888) 100%, #fff 25%) 0, var(--c, #888) 45%, color-mix(in srgb, var(--c, #888) 100%, #000 25%) 100%); transform-origin: left center; transition: transform 220ms var(--ease); }
#ui .brow { display: grid; grid-template-columns: 6.2rem 1fr 4.6rem; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); }
#ui .brow .bl { display: inline-flex; align-items: center; gap: 0.4em; color: var(--tx2); }
#ui .brow > b { text-align: right; }

/* ==========================================================================================================
   HUD
   ========================================================================================================== */
#hud { position: absolute; inset: 0; pointer-events: none; }
#ui .hpanel { background: rgba(18, 12, 7, 0.9); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2), 0 4px 12px rgba(0, 0, 0, 0.5); border-radius: var(--r2); }
.hud-tl { position: absolute; left: var(--s4); top: var(--s4); width: 15rem; display: flex; flex-direction: column; gap: 0.4rem; }
.vitals { display: flex; flex-direction: column; gap: 0.25rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.lvrow { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.15rem; }
.lvb { position: relative; width: 2.3rem; height: 2.3rem; flex: none; display: grid; place-items: center; }
.lvb.bump { animation: lvbump 0.6s var(--ease); }
@keyframes lvbump { 30% { transform: scale(1.25); } }
.lvring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lvring circle, .lvbig svg circle { fill: #140d07; stroke: #000; stroke-width: 4; }
.lvring .lvp, .lvbig svg .lvp { fill: none; stroke: var(--v-xp); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 300ms var(--ease); }
.lvn { position: relative; font-family: var(--f-title); font-weight: 900; font-size: 1.05rem; color: var(--gold2); text-shadow: var(--outline-text); }
.lvc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.lvt { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: max(var(--fs-md), 12px); text-shadow: var(--outline-text); }
.lvt b { color: #fff; }
.xpt { color: #d8e9df; font-size: max(var(--fs-xs), 11px); font-weight: 700; }
.xpb { position: relative; height: 0.45rem; background: #0b0704; border: 2px solid var(--f0); border-radius: 3px; overflow: hidden; }
.xpb > i { position: absolute; inset: 0; background: var(--v-xp); transform-origin: left; transform: scaleX(0); transition: transform 300ms var(--ease); }
.vrow { display: grid; grid-template-columns: 1.7rem 1fr; align-items: center; gap: 0.35rem; }
.vrow .vi { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; color: var(--c); background: #140d07; border: 2px solid var(--f0); border-radius: 50%; box-shadow: inset 0 0 0 1px #3a2a1a; }
.vrow .vi .i { width: 1.05rem; height: 1.05rem; }
#ui .vrow .bar { height: 1.3rem; border-radius: 4px; }
.vrow .vn { position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%); display: flex; align-items: baseline; font-size: max(0.9rem, 12px); line-height: 1; text-shadow: var(--outline-text); }
.vrow .vn b { color: #fff; font-weight: 700; }
.vrow .vn small { color: #f1e6cf; font-weight: 700; font-size: 0.82em; }
.v-hp, .v-mhp { --c: var(--v-hp); }
.v-stamina, .v-mst { --c: var(--v-st); }
.v-food { --c: var(--v-food); }
.v-water { --c: var(--v-water); }
.v-weight { --c: var(--v-weight); }
#ui .v-weight .bar { height: 1.05rem; }
.v-weight .vn { font-size: max(0.84rem, 11px); }
.v-weight.over { --c: var(--warn); }
#ui .vrow.low .bar { box-shadow: inset 0 0 0 1px var(--c), 0 0 12px var(--c); animation: lowpulse 1s ease-in-out infinite; }
.vrow.low .vi { animation: pulse 1s ease-in-out infinite; border-color: var(--c); }
@keyframes lowpulse { 50% { box-shadow: inset 0 0 0 1px var(--c), 0 0 2px var(--c); } }
.mountp { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 0.2rem; }
.mh2 { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); color: var(--good); text-shadow: var(--outline-text); }
.status, .buffs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.status:empty, .buffs:empty, .points:empty, .guide:empty, .pin:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-xs); font-weight: 800; padding: 0.24rem 0.55rem 0.24rem 0.42rem; border-radius: var(--r1); background: #1a120b; border: 2px solid var(--f0); color: var(--tx); cursor: help; text-shadow: 0 1px 0 #000; }
.badge .i { width: 1.05rem; height: 1.05rem; }
.badge.t-bad { background: #4c1a12; color: #ffd6cd; box-shadow: inset 0 0 0 1px #a83a28; }
.badge.t-bad .i { color: #ff8c75; }
.badge.t-warn { background: #4a370c; color: #ffeab5; box-shadow: inset 0 0 0 1px #a8801c; }
.badge.t-warn .i { color: var(--warn); }
.badge.t-good { background: #1e3c18; color: #d3f6c5; box-shadow: inset 0 0 0 1px #4f8a3a; }
.badge.t-good .i { color: var(--good); }
.badge.t-cold { background: #13314c; color: #d9efff; box-shadow: inset 0 0 0 1px #3f7cad; }
.badge.t-cold .i { color: var(--cold); }
.badge.t-hot { background: #4c2610; color: #ffe1cc; box-shadow: inset 0 0 0 1px #b06030; }
.badge.t-hot .i { color: var(--hot); }
.badge.crit { animation: crit 1.1s ease-in-out infinite; }
@keyframes crit { 50% { box-shadow: inset 0 0 0 1px #ff6a52, 0 0 12px rgba(255, 106, 82, 0.7); } }
.buff { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-xs); padding: 0.24rem 0.55rem 0.24rem 0.42rem; border-radius: var(--r1); background: #2a1b3e; border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px #6b4c9a; color: #efe2ff; overflow: hidden; cursor: help; }
.buff::before { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--f); background: var(--ether); }
.buff .i { color: var(--ether); width: 1rem; height: 1rem; }
.buff span { color: #c9b6e2; font-weight: 700; }
.buff.ending { animation: pulse 1s ease-in-out infinite; }
.ptsbtn { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; font: inherit; font-size: var(--fs-xs); font-weight: 800; color: var(--gold-ink); background: var(--btn-go); border: 2px solid var(--f0); border-radius: var(--r1); padding: 0.28rem 0.4rem 0.28rem 0.55rem; cursor: pointer; box-shadow: var(--btn-go-shadow); animation: ptsglow 2s ease-in-out infinite; }
.ptsbtn kbd { color: var(--gold-ink) !important; background: rgba(255, 255, 255, 0.4) !important; }
@keyframes ptsglow { 50% { box-shadow: var(--btn-go-shadow), 0 0 14px rgba(245, 189, 74, 0.8); } }
/* objetivo: uma linha; a dica em balão; clique abre */
#ui .gline { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.38rem 0.55rem; font: inherit; font-size: var(--fs-sm); text-align: left; color: var(--tx); background: rgba(18, 12, 7, 0.88); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2); border-radius: var(--r2); cursor: pointer; text-shadow: 0 1px 0 #000; }
#ui .gline > .i:first-child { color: var(--gold); }
#ui .gline b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .gline .gc { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 700; }
#ui .gline > .i:last-child { color: var(--tx3); width: 0.95rem; }
#ui .gline:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.gbox { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0 0.5rem; background: rgba(18, 12, 7, 0.88); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2); border-radius: var(--r2); }
#ui .gbox .gline { background: transparent; border: 0; box-shadow: none; border-bottom: 2px solid var(--f0); border-radius: 0; }
.ghint { padding: 0 0.65rem; font-size: var(--fs-xs); color: var(--tx2); line-height: 1.4; }
.gnext { padding: 0 0.65rem; font-size: var(--fs-2xs); color: var(--tx3); }
.gprog { position: relative; height: 0.3rem; background: #0b0704; border-radius: 2px; overflow: hidden; }
.gprog > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); }
.gprog.big { height: 1.5rem; display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 800; border: 2px solid var(--f0); }
.gprog.big span { position: relative; text-shadow: var(--outline-text); }
/* receita fixada */
.pinbox { padding: 0.45rem 0.55rem 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--fs-xs); }
.pin-h { display: flex; align-items: center; gap: 0.35rem; color: var(--tx3); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.pin-h .i { color: var(--gold); }
.pin-h .btn { margin-left: auto; }
.pin-b { cursor: pointer; display: flex; flex-direction: column; gap: 0.22rem; }
.pinh { display: flex; align-items: center; gap: 0.5rem; }
.pinh > .ico { width: 2rem; height: 2rem; flex: none; }
.pinh b { font-size: var(--fs-sm); color: #fff; }
.pinh .small .i { width: 0.95em; height: 0.95em; }
.pm { display: grid; grid-template-columns: 1.25rem 1fr auto 1rem; gap: 0.35rem; align-items: center; }
.pm > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx2); }
.pm.got b, .pm.got .i { color: var(--good); }
.pm.lack b { color: #ffa797; }
/* direita */
.hud-tr { position: absolute; right: var(--s4); top: var(--s4); width: 12.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
#ui .mm { position: relative; padding: 0; cursor: pointer; border: 3px solid var(--f0); box-shadow: inset 0 0 0 2px var(--f2), 0 4px 12px rgba(0, 0, 0, 0.5); border-radius: var(--r2); overflow: hidden; }
.mm canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: #0b1826; image-rendering: pixelated; }
.mmn { position: absolute; top: 0.35rem; left: 50%; transform: translateX(-50%); font-size: var(--fs-xs); font-weight: 900; color: var(--gold2); text-shadow: var(--outline-text); }
.mmc { position: absolute; right: 0.45rem; bottom: 0.35rem; font-size: var(--fs-2xs); font-weight: 800; color: #fff; text-shadow: var(--outline-text); }
.env { padding: 0.4rem 0.6rem 0.45rem; display: flex; flex-direction: column; gap: 0.12rem; }
.clock { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-md); }
.clk-i { display: grid; color: var(--gold2); }
.clk-i.night { color: #c9d4ff; }
.clk-i.cave { color: var(--tx3); }
.clk-t { font-weight: 800; color: #fff; }
.clk-d { margin-left: auto; font-size: var(--fs-sm); color: var(--tx2); font-weight: 700; }
.where { font-family: var(--f-title); font-weight: 800; font-size: var(--fs-sm); color: var(--gold2); line-height: 1.2; }
.where:empty, .envl:empty { display: none; }
.envl { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; font-size: var(--fs-xs); color: var(--tx2); }
.envl .i { width: 1em; height: 1em; margin-right: 0.2em; }
.envl .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--tx4); }
.plist { padding: 0.4rem 0.6rem; font-size: var(--fs-xs); display: flex; flex-direction: column; gap: 0.18rem; }
.plh { display: flex; align-items: center; gap: 0.35rem; color: var(--tx2); }
.plh .i { color: var(--gold); }
.plh .ping { margin-left: auto; display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 800; }
.pl { display: flex; align-items: center; gap: 0.4rem; overflow: hidden; white-space: nowrap; color: var(--tx2); }
.pl > span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.pl.me { color: #fff; }
.pl small, .pl b { color: var(--tx3); }
/* topo */
.hud-tc { position: absolute; left: 50%; top: var(--s4); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: min(36rem, calc(100vw - 34rem)); }
.netwarn { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem; font-size: var(--fs-sm); color: #ffd6cd; background: #3a130d; border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px #a83a28; border-radius: var(--r2); white-space: nowrap; }
.netwarn > .i { color: var(--bad); }
.boss { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.bossh { display: flex; align-items: center; gap: 0.5rem; color: #ffc3b3; }
.bossh .i { color: var(--bad); width: 1.4rem; height: 1.4rem; filter: drop-shadow(0 1px 1px #000); }
.bossn { font-family: var(--f-title); font-weight: 900; font-size: var(--fs-xl); letter-spacing: 0.05em; text-shadow: var(--outline-text), 0 0 14px rgba(200, 40, 30, 0.7); }
#ui .bossb { --c: #d63a2a; width: 100%; height: 1.3rem; flex: none; border-width: 3px; }
.bossb > span { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); font-weight: 800; text-shadow: var(--outline-text); }
.bossp { font-size: var(--fs-xs); color: #f6dcd4; text-shadow: var(--outline-text); }
.bossp:empty { display: none; }
/* faixas */
.banner { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; white-space: nowrap; transition: opacity 0.5s var(--ease); animation: bannerin 0.45s var(--ease); }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -0.6rem) scale(0.96); } }
.banner .bi { color: var(--gold); display: grid; }
.banner .bi .i { width: 2.3rem; height: 2.3rem; filter: drop-shadow(0 0 10px rgba(245, 189, 74, 0.7)); }
.banner .bt { font-family: var(--f-title); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--gold2); letter-spacing: 0.05em; text-shadow: 0 3px 0 #4a2a06, var(--outline-text), 0 6px 20px rgba(0, 0, 0, 0.8); }
.banner .bsub { font-size: var(--fs-md); font-weight: 700; color: #fff; text-shadow: var(--outline-text); }
.banner.k-world .bt { font-size: 2.4rem; color: #f8eedb; }
.banner.k-region { top: var(--s4); gap: 0.1rem; }
.banner.k-region .bi { display: none; }
.banner.k-region .bt { font-size: 1.6rem; color: #f8eedb; }
.banner.k-region .bsub { font-size: var(--fs-xs); color: var(--tx2); letter-spacing: 0.1em; text-transform: uppercase; }
#ui.win-open .banner.k-region { display: none; }
.banner.fade { opacity: 0; }
/* barra rápida */
.hud-b { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.hotbar { display: flex; gap: 0.3rem; padding: 0.35rem; pointer-events: auto; background: rgba(18, 12, 7, 0.88); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2), 0 6px 16px rgba(0, 0, 0, 0.5); border-radius: var(--r2); }
#ui .hotbar .slot { --slot: 3.7rem; cursor: pointer; }
#ui .hotbar .slot:hover { box-shadow: inset 0 0 0 2px var(--gold2); }
#ui .hotbar .slot.sel { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 1px var(--gold), 0 0 14px rgba(245, 189, 74, 0.45); }
.heldname { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.15rem 0.6rem; font-size: var(--fs-sm); font-weight: 600; border-radius: 999px; background: rgba(10, 7, 4, 0.55); text-shadow: 0 1px 1px #000; opacity: 0; transform: translateY(4px); transition: opacity var(--t-med), transform var(--t-med); white-space: nowrap; }
.heldname:empty { display: none; }
.heldname.show { opacity: 0.92; transform: none; }
.hn-d { font-size: var(--fs-xs); color: var(--c, var(--tx3)); font-weight: 700; }
/* aviso de interação: tecla + verbo; anel de "segurar" na tecla; some ao andar */
.prompt { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 0.12rem; pointer-events: none; will-change: transform, opacity; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.prompt.show { opacity: 1; }
.prompt.show.moving { opacity: 0.4; }
.pmain { display: flex; align-items: center; gap: 0.35rem; padding: 0.14rem 0.5rem 0.14rem 0.16rem; background: rgba(14, 9, 5, 0.72); border: 1px solid rgba(255, 214, 140, 0.28); border-radius: 0.3rem; font-size: max(var(--fs-xs), 11px); font-weight: 700; color: #fff4e0; white-space: nowrap; text-shadow: 0 1px 1px #000; }
.pk { position: relative; display: grid; place-items: center; }
#ui .pk kbd { position: relative; z-index: 1; font-size: max(0.7rem, 10px); min-width: 1.5em; height: 1.5em; padding: 0; color: var(--gold-ink); background: linear-gradient(#ffe2a0, #e8aa3c); border: 1px solid #3a2208; border-bottom-width: 2px; box-shadow: none; }
.pring { position: absolute; inset: -3px; border-radius: 0.35rem; background: conic-gradient(var(--gold) var(--hold, 0%), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 74%); mask: radial-gradient(closest-side, transparent 72%, #000 74%); opacity: 0; }
.prompt.hold .pring { opacity: 1; background: conic-gradient(var(--gold) var(--hold, 0%), rgba(255, 214, 140, 0.25) 0); }
.pv { letter-spacing: 0.01em; }
.pfuel { display: block; width: 1.6rem; height: 0.22rem; background: rgba(0, 0, 0, 0.6); border-radius: 1px; overflow: hidden; }
.pfuel > i { display: block; height: 100%; background: linear-gradient(90deg, #c2410c, #f59e0b); }
.palt { font-size: max(0.62rem, 9px); font-weight: 600; color: rgba(255, 240, 210, 0.6); text-shadow: 0 1px 1px #000; opacity: 0; transition: opacity var(--t-med); white-space: nowrap; }
.prompt.alt .palt { opacity: 1; }
/* fila de criação */
.cq { position: absolute; right: var(--s4); bottom: var(--s4); width: 14rem; padding: 0.45rem 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--fs-xs); }
.cq-h { display: flex; align-items: center; gap: 0.35rem; color: var(--tx3); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.cq-h .i { color: var(--gold); }
.qe { display: flex; align-items: center; gap: 0.5rem; }
.qe.wait { opacity: 0.6; }
.qe > .ico { width: 1.9rem; height: 1.9rem; flex: none; }
.qn { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.qn > span { display: flex; gap: 0.3rem; overflow: hidden; white-space: nowrap; }
.qn > span b { overflow: hidden; text-overflow: ellipsis; }
.qn small { margin-left: auto; color: var(--tx3); }
#ui .pb { height: 0.4rem; background: #0b0704; border: 1px solid var(--f0); border-radius: 2px; overflow: hidden; }
#ui .pb > i { display: block; height: 100%; background: var(--v-xp); transition: width 200ms linear; }
/* avisos */
.toasts { position: absolute; right: var(--s4); top: 1rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; pointer-events: none; width: 16rem; }
.toast { display: flex; align-items: center; gap: 0.45rem; max-width: 16rem; padding: 0.32rem 0.6rem 0.32rem 0.45rem; font-size: var(--fs-xs); font-weight: 600; line-height: 1.25; background: rgba(20, 13, 8, 0.9); border: 1px solid var(--f0); box-shadow: inset 2px 0 0 var(--k, var(--tx3)), 0 4px 12px rgba(0, 0, 0, 0.45); border-radius: var(--r1); animation: toastin var(--t-med) var(--ease); transition: opacity 0.3s, transform 0.3s; }
.toast > .i { color: var(--k, var(--tx3)); width: 1rem; height: 1rem; flex: none; }
.toast .tb { display: flex; flex-direction: column; min-width: 0; }
.toast .tt { text-shadow: 0 1px 0 #000; }
.toast .ts { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .ts:empty { display: none; }
.toast .tc { color: var(--k, var(--tx3)); font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; margin-left: auto; }
.toast .tc:empty { display: none; }
.toast.out { opacity: 0; transform: translateX(1rem); }
.toast.bump { animation: tbump 0.3s var(--ease); }
@keyframes toastin { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes tbump { 40% { transform: scale(1.04); } }
.toast.k-good { --k: var(--good); }
.toast.k-bad { --k: var(--bad); color: #ffe0d9; }
.toast.k-level { --k: var(--gold); color: var(--gold2); }
.toast.k-info { --k: var(--info); }
#ui.win-open .toasts { top: auto !important; bottom: 1rem; }
/* chat: fundo discreto, some sozinho; canais com cor (várias tribos) */
.chat { position: absolute; left: var(--s4); bottom: var(--s4); width: min(27rem, calc(50vw - 17rem)); display: flex; flex-direction: column; gap: 0.3rem; --ch-g: #e9dcc0; --ch-t: #8ee06f; --ch-l: #7cc4f6; }
.chatlog { display: flex; flex-direction: column; gap: 0.08rem; font-size: var(--fs-xs); font-weight: 500; overflow: hidden; padding: 0.35rem 0.55rem; border-radius: var(--r2); background: linear-gradient(90deg, rgba(14, 9, 5, 0.62), rgba(14, 9, 5, 0.38) 70%, rgba(14, 9, 5, 0)); transition: opacity 0.6s; }
.chat.empty:not(.open) .chatlog { opacity: 0; }
.chat.open .chatlog { max-height: 15rem; overflow-y: auto; background: rgba(18, 12, 7, 0.9); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); padding: 0.5rem 0.6rem; pointer-events: auto; }
.cl { color: #f2e8d4; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9); word-break: break-word; transition: opacity 1s; line-height: 1.35; }
.cl b { color: var(--gold2); margin-right: 0.35em; font-weight: 700; }
.cl .cch { font-style: normal; font-size: 0.82em; font-weight: 800; margin-right: 0.4em; color: var(--chc, var(--tx3)); letter-spacing: 0.02em; }
.cl .ctg { font-style: normal; font-size: 0.8em; font-weight: 800; margin-right: 0.3em; padding: 0 0.3em; border-radius: 3px; color: #120c06; background: var(--tc); }
.cl.ch-g { --chc: var(--ch-g); }
.cl.ch-t { --chc: var(--ch-t); }
.cl.ch-t > span { color: #d6f5c9; }
.cl.ch-l { --chc: var(--ch-l); }
.cl.ch-l > span { color: #d9eefc; }
.cl.k-me b { color: var(--good); }
.cl.k-sys { color: #cfe4c0; font-style: italic; }
.cl.k-err { color: #ffc6ba; }
.cl.fade { opacity: 0.45; }
.chatin { display: flex; flex-direction: column; gap: 0.3rem; pointer-events: auto; }
.chtabs { display: flex; align-items: center; gap: 0.25rem; }
.chtabs:empty { display: none; }
#ui .chtab { display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: var(--fs-2xs); font-weight: 800; padding: 0.2rem 0.55rem; color: var(--tx3); background: rgba(18, 12, 7, 0.85); border: 1px solid var(--f0); border-radius: var(--r1); cursor: pointer; }
#ui .chtab .i { width: 0.9rem; height: 0.9rem; }
#ui .chtab.on { color: var(--chc); box-shadow: inset 0 -2px 0 var(--chc); background: rgba(30, 20, 12, 0.95); }
.chtab.ch-g, .chch.ch-g { --chc: var(--ch-g); }
.chtab.ch-t, .chch.ch-t { --chc: var(--ch-t); }
.chtab.ch-l, .chch.ch-l { --chc: var(--ch-l); }
.chk { margin-left: 0.3rem; font-size: var(--fs-2xs); color: var(--tx4); }
.chrow { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem; font-size: var(--fs-sm); background: rgba(18, 12, 7, 0.95); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--gold); border-radius: var(--r2); }
#ui .chch { display: inline-flex; align-items: center; gap: 0.25rem; font: inherit; font-size: var(--fs-2xs); font-weight: 800; padding: 0.1rem 0.45rem; color: var(--chc); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--chc); border-radius: 999px; cursor: pointer; }
#ui .chch .i { width: 0.85rem; height: 0.85rem; }
#ui .chatinput { flex: 1; font: inherit; color: #fff; background: transparent; border: none; outline: none; min-width: 0; user-select: text; -webkit-user-select: text; }
#ui .chatinput::placeholder { color: var(--tx4); }
/* feed de ganhos ao lado da barra rápida */
.gains { position: absolute; right: calc(100% + 0.6rem); bottom: 0.2rem; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0.2rem; pointer-events: none; }
.gn { display: flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.3rem 0.1rem 0.5rem; border-radius: 999px; background: rgba(14, 9, 5, 0.6); animation: gainin 0.3s var(--ease); transition: opacity 0.5s, transform 0.5s; }
.gn b { font-size: var(--fs-sm); font-weight: 800; color: #d6f7c4; text-shadow: 0 1px 1px #000; }
#ui .gn .ico { width: 1.6rem; height: 1.6rem; position: static; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)); }
.gn.out { opacity: 0; transform: translateY(-0.4rem); }
@keyframes gainin { from { opacity: 0; transform: translateX(0.6rem); } }
/* estado que acabou de mudar (no lugar do aviso) */
.badge.ping { animation: bping 0.7s var(--ease) 2; }
@keyframes bping { 40% { transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(245, 189, 74, 0.8); } }
/* etiquetas sobre criaturas e jogadores (client/ui/tags.js) */
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transition: opacity var(--t-med); }
.tags.dim { opacity: 0.12; }
.tagx { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.22rem; white-space: nowrap; font-size: max(0.7rem, 10px); line-height: 1.1; font-weight: 700; padding: 0.05rem 0.32rem; border-radius: 0.25rem; will-change: transform; transition: opacity var(--t-fast); }
.tagx b { font-weight: 700; }
.tagx small { font-size: 0.85em; font-weight: 700; opacity: 0.8; }
.tagx small::before { content: '· '; opacity: 0.6; }
.tagx .ttg { font-style: normal; font-size: 0.82em; font-weight: 800; padding: 0 0.25em; border-radius: 2px; color: #120c06; background: var(--tc); }
.tagx .tz { display: grid; color: #c9b6ff; }
.tagx .tz .i { width: 0.9em; height: 0.9em; }
.tagx .tpf, .mh2 .tpf { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; font-style: normal; font-weight: 900; font-size: 0.85em; line-height: 1; color: var(--gold-ink); background: var(--gold); border-radius: 50%; box-shadow: 0 0 6px rgba(245, 189, 74, 0.6); }
.tagx .ttm { display: block; width: 2.2rem; height: 0.22rem; background: rgba(0, 0, 0, 0.7); border-radius: 1px; overflow: hidden; }
.tagx .ttm > i { display: block; height: 100%; background: #e8d14a; }
.ct { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.7); }
.ct.k-own { color: #a8f592; opacity: 0.82; background: rgba(6, 14, 4, 0.32); }
.ct.k-other { color: #ece2cc; opacity: 0.82; background: rgba(10, 7, 4, 0.32); }
.ct.k-enemy { color: #ff9a8a; opacity: 0.88; background: rgba(30, 6, 4, 0.38); }
.ct.k-wild { color: #f2eee6; background: rgba(10, 7, 4, 0.5); }
.ct.k-own.mid, .ct.k-other.mid, .ct.k-enemy.mid { opacity: 0.5; }
.ct.k-own.far, .ct.k-other.far, .ct.k-enemy.far { opacity: 0.18; }
.ct.focus { opacity: 1 !important; background: rgba(10, 7, 4, 0.6); }
.ct.ko { background: rgba(10, 7, 4, 0.55); opacity: 1; }
.pt { padding: 0.04rem 0.3rem; gap: 0.22rem; font-size: max(0.66rem, 9.5px); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.7); background: rgba(10, 7, 4, 0.34); }
.pt b { font-weight: 700; letter-spacing: 0.01em; }
.pt.r-solo, .pt.r-other { color: #f4ecd8; }
.pt.r-ally { color: #b6f0a0; }
.pt.r-enemy { color: #ff9c8a; background: rgba(34, 6, 4, 0.42); }
.pt.dead { color: #a49c8e; opacity: 0.75; }
.pt .ttg { font-size: max(0.66rem, 9px); padding: 0.05em 0.35em; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8); }
.pt.r-ally .ttg { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--good); }
.pt.r-enemy .ttg { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bad); }
.pt .tsh { display: grid; color: #9fd8ff; filter: drop-shadow(0 1px 1px #000); }
.pt .tsh .i { width: 0.95rem; height: 0.95rem; }

/* ==========================================================================================================
   Janelas e modais
   ========================================================================================================== */
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.overlay.shade { background: radial-gradient(ellipse at center, rgba(8, 5, 2, 0.4), rgba(8, 5, 2, 0.7)); animation: fadein var(--t-med) var(--ease); }
@keyframes fadein { from { opacity: 0; } }
#wwrap { z-index: 20; padding: 0.75rem; }
#wwrap:has(.w-main) { align-items: flex-start; padding-top: max(0.75rem, 6vh); }
#map { z-index: 22; }
#admin { z-index: 23; }
#death { z-index: 25; background: radial-gradient(ellipse at center, rgba(70, 8, 4, 0.55), rgba(20, 2, 2, 0.9)); animation: fadein 0.6s; }
#pause { z-index: 30; }
#menu { z-index: 35; }
#sheet { z-index: 40; }
#confirm { z-index: 45; }
.ctx, .helppop { z-index: 80; }
.tip { z-index: 90; }
#ui .win, #ui .modal, #ui .mpanel, #ui .pause-box, #ui .death-box {
  position: relative; display: flex; flex-direction: column;
  max-width: calc(100vw - 1.5rem); max-height: calc(100vh - 1.5rem);
  background: var(--panel-bg); border-radius: var(--r2);
  box-shadow: var(--frame), 0 20px 60px rgba(0, 0, 0, 0.65); }
#ui .win, #ui .modal { overflow: hidden; }
#ui .pop { animation: pop var(--t-med) var(--ease); }
#ui .swap .wbody > * { animation: swap var(--t-fast) var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(0.5rem) scale(0.985); } }
@keyframes swap { from { opacity: 0.2; transform: translateY(0.2rem); } }
.win.w-main, .win.w-container, .win.w-creature { width: auto; }
.win.w-teleport { width: min(34rem, calc(100vw - 2rem)); }
.win.w-note { width: min(40rem, calc(100vw - 2rem)); }
.whead { position: relative; display: flex; align-items: center; gap: var(--s3); padding: 0.55rem 0.65rem 0.55rem 0.85rem; flex: none;
  background: linear-gradient(#3b2b1c, #2a1f14); border-bottom: 2px solid var(--f0); box-shadow: 0 1px 0 var(--f2), inset 0 1px 0 rgba(255, 225, 170, 0.12); margin: 3px 3px 0; border-radius: 0.2rem 0.2rem 0 0; }
.whead .wt { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.whead .whi { width: 2.8rem; height: 2.8rem; flex: none; display: grid; place-items: center; border-radius: var(--r2); background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2); color: var(--gold); overflow: hidden; }
.whead .whi .i { width: 1.5rem; height: 1.5rem; }
.whead .whi .ico { width: 2.4rem; height: 2.4rem; }
.whead .whi.portrait { width: 3.6rem; height: 3.6rem; }
#ui .whead .whi.portrait .thumb { width: 3.3rem; height: 3.3rem; background: transparent; }
.whead .wtt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.whead .wtt h2 { font-family: var(--f-title); font-weight: 900; font-size: var(--fs-xl); color: var(--gold2); letter-spacing: 0.03em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 #000; }
.whead .wtt > span { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 600; color: var(--tx3); }
.tabs-head { padding: 0.45rem 0.6rem 0; align-items: flex-end; }
.tabs-head .hbtn, .tabs-head .xbtn2 { align-self: center; margin-bottom: 0.4rem; }
.tabs { display: flex; gap: 0.25rem; }
#ui .tab { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem 0.6rem; font-size: var(--fs-md); font-weight: 700; color: var(--tx3); background: linear-gradient(#2c2116, #22190f); border: 2px solid var(--f0); border-bottom: 0; border-radius: var(--r2) var(--r2) 0 0; box-shadow: inset 0 1px 0 rgba(255, 225, 170, 0.1); bottom: -2px; }
#ui .tab .i { width: 1.25rem; height: 1.25rem; }
#ui .tab:hover { color: var(--tx); }
#ui .tab.on { color: var(--gold2); background: linear-gradient(#4a3624, #2b2016); box-shadow: inset 0 2px 0 var(--gold), inset 0 1px 0 rgba(255, 225, 170, 0.2); padding-bottom: 0.75rem; z-index: 1; }
#ui .tab.on .i { color: var(--gold); }
#ui .tab .tk kbd { font-size: 0.6em; }
#ui .tab .tn { display: none; }
#ui .tdot { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.25rem; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; color: var(--gold-ink); background: var(--gold); border: 1px solid var(--f0); border-radius: 999px; }
.wbody { padding: var(--s4) var(--s5) var(--s5); overflow: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; gap: var(--s3); margin: 0 3px 3px; }
#ui .toolbar, #ui .invbar { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }

/* ---------- Inventário ---------- */
.inv-tab { display: grid; grid-template-columns: auto auto; justify-content: start; gap: var(--s5); align-items: start; }
.inv-char { display: flex; flex-direction: column; gap: var(--s2); padding-top: 3.1rem; }
.inv-main { display: flex; flex-direction: column; gap: 0.45rem; width: calc(var(--slot) * 8 + 2.1rem); }
.paper { display: grid; grid-template-columns: auto 6rem auto; gap: 0.5rem; align-items: center; padding: 0.7rem; background: radial-gradient(ellipse at center 45%, rgba(245, 189, 74, 0.12), rgba(0, 0, 0, 0.35) 70%); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); }
.eqcol { display: flex; flex-direction: column; gap: 0.6rem; }
.dollw { display: grid; place-items: center; }
.dollc { width: 5.4rem; height: 8.1rem; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.cstats { display: flex; gap: 0.35rem; justify-content: space-between; }
.cstats > span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.35rem 0.2rem; font-size: var(--fs-md); background: rgba(0, 0, 0, 0.3); border: 2px solid var(--f0); border-radius: var(--r2); cursor: help; }
.cstats .i { width: 1.15rem; height: 1.15rem; }
.wtag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 700; color: var(--tx2); cursor: help; }
.wtag small { color: var(--tx3); font-weight: 600; }
.wtag .wbar { width: 4rem; height: 0.55rem; background: #0b0704; border: 2px solid var(--f0); border-radius: 2px; overflow: hidden; }
.wtag .wbar > i { display: block; height: 100%; background: var(--v-weight); }
.wtag.warn { color: var(--warn); }
.wtag.warn .wbar > i { background: var(--warn); }
.wtag.bad { color: var(--bad); }
.wtag.bad .wbar > i { background: var(--bad); }

/* ---------- dica flutuante ---------- */
.tip { position: absolute; left: 0; top: 0; max-width: 21rem; min-width: 12rem; padding: 0.6rem 0.75rem 0.55rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--fs-sm); pointer-events: none;
  background: linear-gradient(#24190f, #170f09); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f3), 0 12px 30px rgba(0, 0, 0, 0.7); border-radius: var(--r2); will-change: transform; }
.tip > .td:only-child { color: var(--tx); font-weight: 600; font-size: var(--fs-sm); }
.tt-h { display: flex; align-items: center; gap: 0.6rem; }
.tt-i { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; background: var(--well); border: 2px solid var(--f0); border-radius: var(--r2); }
.tt-i .ico { width: 2.2rem; height: 2.2rem; }
.tt-h > div { display: flex; flex-direction: column; gap: 0.05rem; }
.tt-h b { font-size: var(--fs-lg); color: #fff; line-height: 1.1; }
.tt-h b small { color: var(--tx3); }
.tt-c { font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
#ui .td { color: var(--tx2); line-height: 1.35; font-size: var(--fs-xs); }
#ui .stats { display: flex; flex-direction: column; }
#ui .tl { display: flex; justify-content: space-between; gap: 1rem; padding: 0.14rem 0; font-size: var(--fs-sm); }
#ui .tl > span { color: var(--tx3); flex: none; }
#ui .tl > b { text-align: right; color: #fff; }
#ui .tl.live > b { color: var(--warn); }
#ui .tnote { font-size: var(--fs-xs); line-height: 1.35; color: #f0dca8; padding: 0.4rem 0.5rem; background: rgba(248, 200, 74, 0.08); border-left: 3px solid var(--warn); }
.tsec { display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx3); margin-top: 0.1rem; }
.tsec .i { color: var(--gold); }
.tsrc { font-size: var(--fs-xs); color: var(--tx2); }
.tuses { display: flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; }
.ting { display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; font-size: var(--fs-sm); }
.ting span { display: inline-flex; align-items: center; gap: 0.25rem; }
.ting .ok b { color: var(--good); }
.ting .lack b { color: #ffa797; }
.cmp { display: flex; flex-direction: column; gap: 0.08rem; padding: 0.35rem 0.5rem; background: rgba(0, 0, 0, 0.3); border-radius: var(--r1); }
.cmp-h { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 700; margin-bottom: 0.1rem; }
.cmp .cr { display: grid; grid-template-columns: 1fr 2rem 3.4rem; font-size: var(--fs-xs); }
.cmp .cr span { color: var(--tx3); }
.cmp .cr b { text-align: right; }
.cmp .cr i { font-style: normal; text-align: right; color: var(--tx4); font-weight: 800; }
.cmp .cr i.up { color: var(--good); }
.cmp .cr i.down { color: var(--bad); }
.cmp.same { flex-direction: row; align-items: center; gap: 0.35rem; color: var(--good); font-size: var(--fs-xs); }
.th { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; padding-top: 0.35rem; border-top: 2px solid var(--f0); box-shadow: 0 -1px 0 var(--f1); color: var(--tx2); font-size: var(--fs-xs); font-weight: 600; }
.tmore { font-size: var(--fs-2xs); color: var(--tx4); opacity: 0.7; align-self: flex-end; }
/* balão de ajuda */
.helppop { position: absolute; width: min(27rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.15rem; pointer-events: auto;
  background: linear-gradient(#24190f, #170f09); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f3), 0 14px 36px rgba(0, 0, 0, 0.7); border-radius: var(--r2); animation: pop var(--t-fast) var(--ease); }
.helppop h4 { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold2); margin: 0.3rem 0 0.2rem; }
.helppop .kr { grid-template-columns: 9.5rem 1fr; }
.hfoot { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 2px solid var(--f0); font-size: var(--fs-2xs); color: var(--tx3); }

/* ---------- Criar ---------- */
.craft-tab { display: grid; grid-template-columns: auto auto; justify-content: start; gap: var(--s4); }
.cr-main { display: flex; flex-direction: column; gap: 0.5rem; width: calc(var(--slot) * 10 + 3.6rem); }
.crt { font-family: var(--f-title); font-size: var(--fs-md); font-weight: 800; color: var(--tx2); white-space: nowrap; }
.crt small { font-family: var(--f-text); color: var(--tx3); font-weight: 600; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, var(--slot)); gap: 0.3rem; align-content: start; overflow-y: auto; max-height: calc(var(--slot) * 4.6 + 2rem); min-height: calc(var(--slot) * 2 + 1rem); padding: 0.15rem 0.4rem 0.15rem 0.15rem; }
.lvh { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-2xs); font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.3rem 0.1rem 0.05rem; }
.lvh.locked { color: var(--tx4); }
#ui .rtile { position: relative; width: var(--slot); height: var(--slot); padding: 0; cursor: pointer;
  background: radial-gradient(ellipse at 50% 40%, #33261a, #1a120b 80%); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: inset 0 0 0 1px #5a432c, inset 0 3px 6px rgba(0, 0, 0, 0.45); }
#ui .rtile .ico { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
#ui .rtile.ok { box-shadow: inset 0 0 0 1px #6fb84f, inset 0 0 12px rgba(142, 224, 111, 0.25); }
#ui .rtile.no .ico { opacity: 0.42; filter: grayscale(0.85); }
#ui .rtile.lk { background: var(--well); }
#ui .rtile.lk .ico { opacity: 0.22; filter: grayscale(1) brightness(0.6); }
#ui .rtile:hover { box-shadow: inset 0 0 0 2px var(--gold2); }
#ui .rtile.on { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 1px var(--gold), 0 0 14px rgba(245, 189, 74, 0.5); }
#ui .rtile .q { position: absolute; right: 0.2rem; bottom: 0.08rem; font-size: 0.75rem; font-weight: 800; color: #fff; text-shadow: var(--outline-text); }
#ui .rtile .lkb, #ui .rtile .stb { position: absolute; right: 0.15rem; top: 0.15rem; color: var(--tx3); }
#ui .rtile .lvn2 { position: absolute; left: 0; right: 0; bottom: 0.15rem; font-size: 0.68rem; font-weight: 800; color: var(--tx3); text-align: center; text-shadow: var(--outline-text); }
#ui .rtile .lkb .i, #ui .rtile .stb .i { width: 0.95rem; height: 0.95rem; filter: drop-shadow(0 1px 0 #000); }
#ui .rtile .stb { color: var(--warn); }
#ui .rtile .nb { position: absolute; left: 0.25rem; top: 0.25rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--f0), 0 0 6px var(--gold); }
#ui .rtile .fb { position: absolute; left: 0.12rem; bottom: 0.05rem; color: var(--gold); }
#ui .rtile .fb .i { width: 0.85rem; height: 0.85rem; filter: drop-shadow(0 1px 0 #000); }
.cr-sel { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l l" "ing a"; gap: 0.55rem 1rem; padding: 0.7rem 0.8rem; background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); }
.cr-sel:empty { display: none; }
.sel-l { grid-area: l; display: flex; align-items: center; gap: 0.7rem; }
.sel-i { width: 3.4rem; height: 3.4rem; flex: none; display: grid; place-items: center; background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2); border-radius: var(--r2); }
.sel-i .ico { width: 2.9rem; height: 2.9rem; }
.sel-n { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.sel-n > b { font-size: var(--fs-lg); color: #fff; }
.sel-n > b small { color: var(--tx3); }
.sel-m { display: flex; gap: 0.9rem; font-size: var(--fs-xs); color: var(--tx2); font-weight: 600; }
.sel-m span { display: inline-flex; align-items: center; gap: 0.3rem; }
.sel-m .i { color: var(--tx3); }
.sel-x { display: flex; gap: 0.3rem; }
.sel-ing { grid-area: ing; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; align-content: center; }
.sel-ing .ing { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem 0.2rem 0.25rem; background: var(--well); border: 2px solid var(--f0); border-radius: var(--r2); cursor: help; }
.sel-ing .ing .ico { width: 2rem; height: 2rem; }
.sel-ing .ing b { font-size: var(--fs-md); }
.sel-ing .ing small { color: var(--tx3); font-weight: 700; }
.sel-ing .ing.ok { box-shadow: inset 0 0 0 1px #4f8a3a; }
.sel-ing .ing.ok b { color: var(--good); }
.sel-ing .ing.lack { box-shadow: inset 0 0 0 1px #a83a28; }
.sel-ing .ing.lack b { color: #ffa797; }
.sel-a { grid-area: a; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.4rem; }
.craftbox { display: flex; align-items: center; gap: 0.4rem; }
.stepper { display: inline-flex; align-items: center; gap: 0.3rem; }
.stepper b { min-width: 2rem; text-align: center; font-size: var(--fs-lg); }
.crmsg { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); color: var(--tx2); max-width: 20rem; text-align: right; }
.crmsg .i { color: var(--warn); }
.qmini { display: flex; align-items: center; gap: 0.25rem; }
.qm { position: relative; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--well); border: 2px solid var(--f0); border-radius: var(--r1); cursor: pointer; overflow: hidden; }
.qm .ico.sm { width: 1.5rem; height: 1.5rem; }
.qm > i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--v-xp); }
.rlist { display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; padding-right: 0.3rem; }
.rlist.short { max-height: min(15rem, calc(100vh - 30rem)); min-height: 4rem; }
.rrow { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 0.6rem; padding: 0.25rem 0.4rem; background: rgba(0, 0, 0, 0.22); border: 2px solid var(--f0); border-radius: var(--r2); }
.rrow.lk { opacity: 0.5; }
.rrow .ri { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--well); border-radius: var(--r1); }
.rrow.ok .ri { box-shadow: inset 0 0 0 1px #6fb84f; }
.rrow.no .ri .ico { opacity: 0.5; filter: grayscale(0.8); }
.rrow .ri .ico { width: 2.2rem; height: 2.2rem; }
.rrow .rn { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.rrow .rn > b { font-size: var(--fs-sm); }
.mats { display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; font-size: var(--fs-xs); color: var(--tx2); }
.mat { display: inline-flex; align-items: center; gap: 0.2rem; white-space: nowrap; }
.mat.lack { color: #ffa797; }
.rrow .rb { display: flex; gap: 0.25rem; }

/* ---------- Atributos ---------- */
.attr-tab { display: flex; flex-direction: column; gap: 0.6rem; min-width: min(40rem, calc(100vw - 4rem)); }
.attr-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4); }
.lvbig { position: relative; width: 4rem; height: 4rem; display: grid; place-items: center; cursor: help; }
.lvbig svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lvbig b { position: relative; font-family: var(--f-title); font-size: 1.55rem; font-weight: 900; color: var(--gold2); text-shadow: 0 2px 0 #000; }
.xpinfo { display: flex; flex-direction: column; }
.xpinfo b { font-size: var(--fs-xl); font-family: var(--f-title); }
.xpinfo span { color: var(--tx2); font-weight: 600; }
.ptsbig { display: flex; flex-direction: column; align-items: center; padding: 0.4rem 1.1rem; border-radius: var(--r2); background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); cursor: help; }
.ptsbig b { font-family: var(--f-title); font-size: 2rem; line-height: 1; color: var(--tx3); }
.ptsbig span { font-size: var(--fs-2xs); color: var(--tx3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.ptsbig.has { background: linear-gradient(#5a4012, #3a2a0b); box-shadow: inset 0 0 0 1px var(--gold), 0 0 14px rgba(245, 189, 74, 0.35); }
.ptsbig.has b, .ptsbig.has span { color: var(--gold2); }
.alist { display: flex; flex-direction: column; gap: 0.3rem; }
.arow { display: grid; grid-template-columns: 2.4rem 1fr auto 3rem 7.6rem; align-items: center; gap: 0.7rem; padding: 0.35rem 0.5rem 0.35rem 0.4rem; background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px var(--f1); border-radius: var(--r2); cursor: help; }
.arow.pend { background: rgba(245, 189, 74, 0.1); box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px var(--gold); }
.arow .ai { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; color: var(--c); background: #140d07; border: 2px solid var(--f0); border-radius: 50%; }
.arow .ai .i { width: 1.2rem; height: 1.2rem; }
.arow .an { font-size: var(--fs-md); }
.arow .av { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xl); }
.arow .av b { color: #fff; }
.arow .av s { color: var(--tx3); font-size: var(--fs-md); text-decoration: none; }
.arow .av .i { color: var(--gold); width: 1rem; height: 1rem; }
.arow .av .i + b { color: var(--gold2); }
.arow .ag { font-size: var(--fs-xs); color: var(--tx3); font-weight: 700; text-align: right; }
.arow .ab { display: flex; align-items: center; justify-content: flex-end; gap: 0.3rem; }
.arow .pn { color: var(--gold2); min-width: 1.6rem; text-align: center; }
#ui .pbtn2 { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; padding: 0; color: var(--gold-ink); background: var(--btn-go); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--btn-go-shadow); cursor: pointer; }
#ui .pbtn2 .i { width: 1.3rem; height: 1.3rem; }
#ui .pbtn2:hover { filter: brightness(1.12); }
#ui .pbtn2:active { transform: translateY(1px); box-shadow: var(--pressed); }
#ui .pbtn2.off { background: var(--tab-bg); color: var(--tx4); box-shadow: none; cursor: default; }
.attr-act { display: flex; align-items: center; gap: var(--s2); padding: 0.5rem 0.6rem; border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(245, 189, 74, 0.08); border-radius: var(--r2); }
.attr-tip { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); color: var(--tx2); }
.attr-tip .i { color: var(--info); }
/* Redistribuir pontos (jogador e domada): botão discreto; ao pedir, confirmação no próprio painel */
.attr-reset { display: flex; justify-content: flex-end; margin-top: 0.15rem; }
.attr-reset.ask { align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px #8a6a1c; background: #3a2c0b; border-radius: var(--r2); color: #ffe8b4; font-size: var(--fs-sm); flex-wrap: wrap; }
.attr-reset.ask > .i { color: var(--warn); flex: none; }
.attr-reset.ask > span:not(.sp) { display: flex; flex-direction: column; gap: 0.1rem; min-width: 10rem; flex: 1 1 12rem; }
.attr-reset.ask > span > span { font-size: var(--fs-xs); color: var(--tx2); }
.attr-reset.ask .sp { display: none; }

/* ---------- Tribo ---------- */
.tribe-tab { display: grid; grid-template-columns: minmax(0, 46rem) 15rem; gap: var(--s4); }
.tr-main { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.whistle { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; padding: 0.5rem 0.6rem; }
.whistle .wl { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 0.3rem; font-size: var(--fs-sm); }
.whistle .wl .i { color: var(--gold); }
.whistle .wl .dim { font-size: var(--fs-2xs); }
.tlist, .tplist { display: flex; flex-direction: column; gap: 0.3rem; max-height: min(26rem, calc(100vh - 20rem)); overflow-y: auto; padding-right: 0.25rem; }
.trow { display: grid; grid-template-columns: 3rem minmax(7rem, 1fr) minmax(7rem, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.35rem 0.55rem 0.35rem 0.35rem; background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); font-size: var(--fs-sm); }
.trow.near { box-shadow: inset 0 0 0 1px #4f8a3a; }
#ui .thumb { width: 3rem; height: 3rem; object-fit: contain; border-radius: var(--r1); background: var(--well); display: grid; place-items: center; color: var(--tx4); }
#ui .thumb.ph .i { width: 1.4rem; height: 1.4rem; }
.trow .tn { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.trow .tn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tn > span { font-size: var(--fs-xs); color: var(--tx3); }
.hpb { height: 0.32rem; border-radius: 2px; background: #0b0704; overflow: hidden; margin-top: 0.15rem; max-width: 7rem; }
.hpb > i { display: block; height: 100%; background: var(--v-hp); }
.trow .tw { display: flex; align-items: flex-start; gap: 0.35rem; font-size: var(--fs-xs); color: var(--tx2); }
.trow .tw .i { color: var(--tx3); margin-top: 0.1em; }
.trow .tw span { display: flex; flex-direction: column; }
.trow .tw small { color: var(--tx3); }
.trow .tb { display: flex; gap: 0.3rem; align-items: center; justify-content: flex-end; }
.tr-side { display: flex; flex-direction: column; gap: 0.4rem; align-self: start; font-size: var(--fs-sm); }
.tr-side .pl { padding: 0.25rem 0; }

/* ---------- Diário ---------- */
.diary-tab { display: grid; grid-template-columns: 12rem minmax(0, 44rem); gap: var(--s4); min-height: 0; }
#ui .vnav { display: flex; flex-direction: column; gap: 0.3rem; }
#ui .vnav button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--tx2); background: var(--tab-bg); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); cursor: pointer; text-align: left; }
#ui .vnav button:hover { filter: brightness(1.15); }
#ui .vnav button.on { color: var(--gold2); background: var(--tab-on); box-shadow: inset 0 0 0 1px var(--gold); }
#ui .vnav button small { margin-left: auto; color: var(--tx3); }
.diary-body { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; max-height: min(34rem, calc(100vh - 9rem)); overflow-y: auto; padding-right: 0.3rem; }
.diary-body > *, .cr-side > *, .mapside > .search, .mapside > .mapfilters { flex-shrink: 0; }
.dh { display: flex; align-items: flex-start; gap: var(--s3); }
.dh > div { display: flex; flex-direction: column; gap: 0.15rem; }
.dh h3 { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; color: var(--gold2); }
.dh .dim { font-size: var(--fs-xs); }
.glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.glist > .gi { display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.5rem; align-items: start; padding: 0.4rem 0.5rem; border-radius: var(--r2); font-size: var(--fs-sm); color: var(--tx2); }
.glist .gk { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--f0); background: var(--well); color: var(--tx4); }
.glist .gk .i { width: 0.9rem; height: 0.9rem; }
.glist .gi.done { color: var(--tx3); }
.glist .gi.done .gk { background: #2c4a1f; color: var(--good); }
.glist .gi.done b { text-decoration: line-through; text-decoration-color: rgba(142, 224, 111, 0.6); font-weight: 500; }
.glist .gi.cur { color: #fff; background: rgba(245, 189, 74, 0.1); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--gold); }
.glist .gi.cur .gk { color: var(--gold-ink); background: var(--gold); }
.glist .gi p { margin: 0.25rem 0 0; font-size: var(--fs-xs); color: var(--tx2); line-height: 1.4; }
.notes-cols { display: grid; grid-template-columns: 13rem 1fr; gap: var(--s3); }
.ncards { display: flex; flex-direction: column; gap: 0.2rem; }
#ui .ncard { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.55rem; font: inherit; font-size: var(--fs-xs); text-align: left; color: var(--tx2); background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); border-radius: var(--r1); cursor: pointer; }
#ui .ncard small { color: var(--tx4); font-weight: 800; }
#ui .ncard span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .ncard.on { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold2); }
#ui .ncard.lk { opacity: 0.5; cursor: default; }
.notepage { position: relative; background: linear-gradient(#efe2c4, #dcc9a2); color: #2c2316; padding: 1.1rem 1.3rem; border: 2px solid var(--f0); border-radius: var(--r1); box-shadow: inset 0 0 40px rgba(120, 80, 30, 0.3), 0 6px 16px rgba(0, 0, 0, 0.45); font-size: var(--fs-sm); line-height: 1.55; white-space: pre-line; min-height: 12rem; }
.notepage.big { font-size: var(--fs-md); }
.notepage .ntitle { font-family: var(--f-title); font-weight: 800; color: #6a3c0c; font-size: var(--fs-lg); margin-bottom: 0.6rem; white-space: normal; }
.nempty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; color: #6a5a40; min-height: 10rem; white-space: normal; }
.nempty .i { width: 2rem; height: 2rem; }
.rglist { display: flex; flex-direction: column; gap: 0.2rem; }
.rgrow { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.6rem; border-radius: var(--r1); background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); font-size: var(--fs-sm); }
.rgrow > .i { color: var(--gold); }
.rgrow.lk, .rgrow.lk > .i { color: var(--tx4); }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.4rem; }
.bcard { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.5rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); font-size: var(--fs-sm); }
#ui .bcard .thumb { width: 100%; height: 4.2rem; }
.bcard.lk { opacity: 0.6; }
.bcard.tamed { box-shadow: inset 0 0 0 1px #4f8a3a; }
.btags { display: flex; flex-wrap: wrap; gap: 0.2rem; }

/* ---------- contêiner, estação, criatura ---------- */
.cont-body { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: var(--s4); align-items: start; }
.w-creature .cont-o .grid { max-height: calc(var(--slot) * 3.6 + 1rem); overflow-y: auto; padding-right: 0.3rem; }
.cont-p, .cont-o { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.cont-o { width: calc(var(--slot) * 4 + 1.2rem); min-width: 15rem; }
.cont-o:has(.grid[style*="--cols:5"]) { width: calc(var(--slot) * 5 + 1.5rem); }
.cont-o:has(.grid[style*="--cols:6"]) { width: calc(var(--slot) * 6 + 1.8rem); }
.w-creature .cont-o { width: calc(var(--slot) * 6 + 1.8rem); }
.xfer { display: flex; flex-direction: column; gap: 0.5rem; align-self: center; }
#ui .xbtn { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; width: 4.6rem; padding: 0.5rem 0.2rem 0.45rem; font: inherit; font-size: var(--fs-xs); font-weight: 800; line-height: 1.1; color: var(--tx); background: var(--btn-bg); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); cursor: pointer; text-align: center; }
#ui .xbtn .i { width: 1.4rem; height: 1.4rem; color: var(--gold2); }
#ui .xbtn:hover { filter: brightness(1.15); }
#ui .xbtn:active { transform: translateY(1px); box-shadow: var(--pressed); }
#ui .xbtn kbd { font-size: 0.62rem; }
.cinfo, .crinfo { display: flex; flex-direction: column; gap: 0.45rem; font-size: var(--fs-sm); }
.firebox { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; padding: 0.6rem; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); }
.firebox.lit { background: radial-gradient(ellipse at 15% 50%, rgba(255, 130, 40, 0.22), rgba(0, 0, 0, 0.3) 60%); box-shadow: inset 0 0 0 1px #b06030; }
#ui .firebtn { position: relative; width: 5.6rem; height: 5.6rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; padding: 0; font: inherit; cursor: pointer;
  color: #9a8a74; background: radial-gradient(circle at 50% 40%, #3a2d22, #1a130d 70%); border: 3px solid var(--f0); box-shadow: inset 0 0 0 2px #4a3a2a, inset 0 -6px 12px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5); }
#ui .firebtn .fl { width: 2.4rem; height: 2.4rem; }
#ui .firebtn b { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--tx); }
#ui .firebtn kbd { font-size: 0.55rem; }
#ui .firebtn:hover { box-shadow: inset 0 0 0 2px var(--gold2), inset 0 -6px 12px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 150, 60, 0.4); }
#ui .firebtn:active { transform: translateY(1px) scale(0.98); }
#ui .firebtn.lit { color: #ffb347; background: radial-gradient(circle at 50% 55%, #7a2e0e, #2a1208 72%); box-shadow: inset 0 0 0 2px #e8822a, inset 0 -6px 14px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 130, 40, 0.65); }
#ui .firebtn.lit .fl { animation: flicker 0.9s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(255, 170, 60, 0.9)); }
#ui .firebtn.gen.lit { color: #ffe066; background: radial-gradient(circle at 50% 55%, #6a5210, #221a06 72%); box-shadow: inset 0 0 0 2px #e8c42a, 0 0 22px rgba(255, 220, 60, 0.55); }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 33% { transform: scale(1.08, 0.94) rotate(2deg); } 66% { transform: scale(0.96, 1.06) rotate(-1deg); } }
.fire-i { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; font-size: var(--fs-xs); color: var(--tx2); }
.fire-i .fst { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; color: var(--tx); }
.firebox.lit .fire-i .fst { color: #ffb347; }
.fuel { height: 0.6rem; background: #0b0704; border: 2px solid var(--f0); border-radius: 2px; overflow: hidden; }
.fuel > i { display: block; height: 100%; background: linear-gradient(90deg, #c2410c, #f59e0b); }
.cooking { display: flex; align-items: center; gap: 0.3rem; font-weight: 700; color: #ffcf8a; }
.cooking.paused { color: var(--tx3); }
.cooking .i { width: 0.9rem; height: 0.9rem; }
.procs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: var(--fs-xs); color: var(--tx2); cursor: help; }
.procs > span { display: inline-flex; align-items: center; gap: 0.15rem; }
.procs .i { width: 0.85rem; height: 0.85rem; color: var(--tx3); }
.procs small { color: var(--tx3); margin-left: 0.25rem; }
/* fila de fabricação da estação (o resultado fica guardado nela) */
.sq { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.45rem 0.55rem; font-size: var(--fs-xs); background: rgba(255, 207, 138, 0.05); border: 2px solid var(--f0); border-radius: var(--r2); }
.sq .cq-h { color: #ffcf8a; }
.sq.paused .cq-h { color: var(--tx3); }
.sq.paused .pb > i { background: var(--tx3); }
.sq-why { display: flex; align-items: center; gap: 0.35rem; font-weight: 700; color: #ffb38a; }
.sq-why .i { width: 0.9rem; height: 0.9rem; flex: none; }
.sq-hint { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-2xs); color: var(--tx3); }
.sq-hint .i { width: 0.9rem; height: 0.9rem; flex: none; }
#ui .proc .pb { height: 0.55rem; }
.proc .pb > i { background: var(--v-food); }
.cbtns { display: flex; flex-direction: column; gap: 0.45rem; }
.crow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.crow > .cl { width: 4.2rem; font-size: var(--fs-xs); color: var(--tx3); font-weight: 700; }
/* pontos de atributo da domada (painel da criatura) */
.cpts { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.15rem; }
.cpts-h { display: flex; align-items: center; gap: 0.4rem; }
.cpts-h > b { font-family: var(--f-title); font-size: var(--fs-md); color: var(--tx2); }
.cpts-h .sp { flex: 1; }
.cpts-n { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.55rem; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tx3); background: var(--well); border: 2px solid var(--f0); border-radius: 999px; cursor: help; }
.cpts-n b { font-size: var(--fs-sm); color: var(--tx2); }
.cpts-n.has { color: var(--gold2); background: linear-gradient(#5a4012, #3a2a0b); box-shadow: inset 0 0 0 1px var(--gold), 0 0 10px rgba(245, 189, 74, 0.3); }
.cpts-n.has b { color: var(--gold2); }
.cpts-n .i { width: 0.85rem; height: 0.85rem; color: var(--gold); }
.cpr { display: grid; grid-template-columns: 1.8rem 1fr auto 2.4rem 1.9rem; align-items: center; gap: 0.45rem; padding: 0.18rem 0.3rem 0.18rem 0.25rem; background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px var(--f1); border-radius: var(--r2); cursor: help; }
.cpr .ai { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; color: var(--c); background: #140d07; border: 2px solid var(--f0); border-radius: 50%; }
.cpr .ai .i { width: 0.9rem; height: 0.9rem; }
.cpr .an { font-size: var(--fs-sm); }
.cpr .av { font-size: var(--fs-md); font-weight: 800; color: #fff; text-align: right; }
.cpr .ag { font-size: var(--fs-2xs); color: var(--gold2); font-weight: 800; text-align: right; }
#ui .pbtn2.sm { width: 1.9rem; height: 1.9rem; }
#ui .pbtn2.sm .i { width: 1rem; height: 1rem; }
.rename-w { display: flex; align-items: center; gap: 0.3rem; }
#ui input.rename { font-family: var(--f-title); font-weight: 900; font-size: var(--fs-xl); color: var(--gold2); background: transparent; border: 2px solid transparent; border-radius: var(--r1); padding: 0 0.3rem; width: 14rem; outline: none; user-select: text; -webkit-user-select: text; }
#ui input.rename:hover { border-color: var(--f1); }
#ui input.rename:focus { border-color: var(--gold); background: var(--well); }

/* ---------- menu de contexto ---------- */
.ctx { position: absolute; min-width: 15rem; padding: 0.3rem; display: flex; flex-direction: column; gap: 1px; background: linear-gradient(#24190f, #170f09); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f3), 0 14px 36px rgba(0, 0, 0, 0.7); border-radius: var(--r2); pointer-events: auto; animation: pop var(--t-fast) var(--ease); }
.ctx-h { display: flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.5rem 0.4rem; margin-bottom: 0.15rem; border-bottom: 2px solid var(--f0); font-size: var(--fs-sm); font-weight: 800; color: var(--gold2); }
.ctx-sep { height: 2px; background: var(--f0); margin: 0.2rem 0.3rem; }
#ui .ctx-i { display: grid; grid-template-columns: 1.3rem 1fr auto; align-items: center; gap: 0.55rem; width: 100%; padding: 0.42rem 0.55rem; font: inherit; font-size: var(--fs-sm); font-weight: 600; text-align: left; color: var(--tx); background: transparent; border: 0; border-radius: var(--r1); cursor: pointer; }
#ui .ctx-i .i { color: var(--tx3); }
#ui .ctx-i:hover, #ui .ctx-i.kb { background: rgba(245, 189, 74, 0.16); color: var(--gold2); }
#ui .ctx-i:hover .i, #ui .ctx-i.kb .i { color: var(--gold); }
#ui .ctx-i.strong .cl { font-weight: 800; }
#ui .ctx-i.danger { color: #ffb3a6; }
#ui .ctx-i.off { opacity: 0.4; cursor: default; }
#ui .ctx-i .ck { display: inline-flex; gap: 0.15em; opacity: 0.85; }

/* ---------- mapa ---------- */
.mapwin { width: calc(100vw - 2rem); height: calc(100vh - 2rem); }
.mapinfo { font-size: var(--fs-xs); color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maptools { display: flex; gap: 0.35rem; align-items: center; }
.mapcols { flex: 1; min-height: 0; display: grid; grid-template-columns: 17rem 1fr; margin: 0 3px 3px; }
.mapside { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3); border-right: 2px solid var(--f0); background: rgba(0, 0, 0, 0.2); min-height: 0; overflow: hidden; }
#ui .mapside .search { flex: none; }
.mfl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; }
#ui .mfb { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem; font: inherit; font-size: var(--fs-2xs); font-weight: 700; text-align: left; color: var(--tx4); background: transparent; border: 2px solid transparent; border-radius: var(--r1); cursor: pointer; }
#ui .mfb span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .mfb small { color: var(--tx4); }
#ui .mfb.on { color: var(--tx2); background: rgba(0, 0, 0, 0.3); border-color: var(--f0); }
#ui .mfb:not(.on) .sw { opacity: 0.3; }
.sw { width: 0.75rem; height: 0.75rem; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #000; display: inline-block; font-style: normal; }
.sw.sq { border-radius: 2px; }
.sw.dia { border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.sw.xx { border-radius: 2px; background: transparent; box-shadow: none; position: relative; }
.sw.xx::before, .sw.xx::after { content: ''; position: absolute; left: 45%; top: -10%; width: 2px; height: 120%; background: var(--c); transform: rotate(45deg); }
.sw.xx::after { transform: rotate(-45deg); }
.sw.tx { width: auto; height: auto; background: transparent; box-shadow: none; font-family: var(--f-title); font-weight: 900; font-size: 0.7rem; color: var(--tx2); }
.maplist { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.15rem; }
#ui .mres { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.45rem; font: inherit; text-align: left; color: var(--tx); background: transparent; border: 2px solid transparent; border-radius: var(--r1); cursor: pointer; }
#ui .mres:hover { background: rgba(245, 189, 74, 0.12); border-color: var(--f0); }
#ui .mres span { display: flex; flex-direction: column; min-width: 0; }
#ui .mres b { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .mres small { color: var(--tx3); font-size: var(--fs-2xs); }
.maphelp { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 0.3rem 0.4rem; align-items: center; font-size: var(--fs-2xs); color: var(--tx3); padding-top: var(--s2); border-top: 2px solid var(--f0); }
.mapview { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.mapc { display: block; background: #0b1826; cursor: grab; }
.mapc:active { cursor: grabbing; }
.pad { padding: 0.5rem; }

/* ==========================================================================================================
   Tela inicial e menus
   ========================================================================================================== */
#menu { background: transparent; align-items: stretch; justify-content: stretch; }
.title-screen { position: relative; flex: 1; display: flex; align-items: center; padding: 0 0 0 max(3rem, 7vw); }
.ts-col { display: flex; flex-direction: column; gap: 2rem; width: 27rem; max-width: calc(100vw - 4rem); animation: slidein 0.6s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(-1.5rem); } }
.logo { display: flex; flex-direction: column; gap: 0.4rem; }
.logo-k { color: var(--gold); }
.logo-k .i { width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 0 12px rgba(245, 189, 74, 0.55)); }
.logo-t { font-family: var(--f-title); font-weight: 900; font-size: 5.2rem; line-height: 0.92; letter-spacing: 0.04em; color: #f8e3b4;
  background: linear-gradient(180deg, #fff3d4 0%, #f6cf7c 45%, #d4861f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #3e2204) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75)); }
.logo-sub { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 800; color: var(--gold2); letter-spacing: 0.12em; text-shadow: 0 2px 4px #000; margin-top: -0.2rem; }
.logo-s { font-size: var(--fs-sm); font-weight: 700; color: var(--tx2); letter-spacing: 0.22em; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.ts-actions { display: flex; flex-direction: column; gap: 0.55rem; }
#ui .cont { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.1rem; font: inherit; text-align: left; color: var(--gold-ink); cursor: pointer;
  background: linear-gradient(#ffd77a, #e09a2a); border: 3px solid var(--f0); border-radius: var(--r2); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(120, 60, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform var(--t-fast), filter var(--t-fast); }
#ui .cont:hover { transform: translateY(-2px); filter: brightness(1.06); }
#ui .cont:active { transform: translateY(1px); }
.cont-play { width: 3.2rem; height: 3.2rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: #2a1803; color: var(--gold2); border: 2px solid var(--f0); }
.cont-play .i { width: 1.4rem; height: 1.4rem; margin-left: 0.15rem; }
.cont-b { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cont-l { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
#ui .cont-l kbd { color: var(--gold-ink); background: rgba(255, 255, 255, 0.4); }
.cont-n { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-m { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.8rem; font-size: var(--fs-xs); font-weight: 700; }
.cont-m > span { display: inline-flex; align-items: center; gap: 0.25rem; }
#ui .mbtn { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.7rem 1rem; font: inherit; font-size: var(--fs-md); font-weight: 700; text-align: left; color: var(--tx); cursor: pointer;
  background: linear-gradient(rgba(70, 52, 34, 0.96), rgba(40, 29, 19, 0.96)); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised), 0 4px 12px rgba(0, 0, 0, 0.35); transition: transform var(--t-fast), filter var(--t-fast); }
#ui .mbtn:hover { filter: brightness(1.18); transform: translateX(3px); }
#ui .mbtn > .i { color: var(--gold); width: 1.3rem; height: 1.3rem; }
#ui .mbtn .bl { flex: 1; }
#ui .mbtn .count { font-size: var(--fs-xs); padding: 0.05rem 0.5rem; border-radius: var(--r1); background: rgba(0, 0, 0, 0.4); color: var(--tx2); }
#ui .mbtn.off { opacity: 0.5; cursor: default; transform: none; filter: none; }
.ts-foot { display: flex; align-items: center; gap: 0.5rem; }
#ui .ibtn { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; padding: 0; color: var(--tx2); background: linear-gradient(rgba(70, 52, 34, 0.96), rgba(40, 29, 19, 0.96)); border: 2px solid var(--f0); border-radius: 50%; cursor: pointer; box-shadow: var(--raised); }
#ui .ibtn:hover { color: var(--gold2); filter: brightness(1.18); }
#ui .ibtn .i { width: 1.25rem; height: 1.25rem; }
.ts-note { margin-left: 0.4rem; font-size: var(--fs-xs); color: var(--tx2); text-shadow: 0 1px 2px #000; max-width: 18rem; line-height: 1.35; }
.ts-ver { position: absolute; right: 1.2rem; bottom: 1rem; font-size: var(--fs-2xs); color: rgba(255, 240, 210, 0.35); }
.title-screen .mstatus:empty { display: none; }
.mscreen { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1rem 1rem 1.5rem; background: radial-gradient(ellipse at center, rgba(8, 6, 4, 0.35), rgba(8, 6, 4, 0.7)); overflow: auto; }
.mtop { align-self: stretch; display: flex; align-items: center; gap: 1rem; margin-bottom: auto; }
.mini-logo { font-family: var(--f-title); font-weight: 900; font-size: var(--fs-xl); letter-spacing: 0.06em; color: var(--gold2); text-shadow: 0 2px 6px #000; }
.mscreen .mpanel { margin-bottom: auto; }
#ui .mpanel { gap: var(--s4); padding: var(--s5) var(--s6); max-height: calc(100vh - 6rem); }
.mp-h { display: flex; align-items: flex-start; gap: var(--s3); }
.mp-h > div:first-child { display: flex; flex-direction: column; gap: 0.2rem; }
.mp-h h2 { font-family: var(--f-title); font-weight: 900; font-size: var(--fs-2xl); color: var(--gold2); line-height: 1.05; text-shadow: 0 2px 0 #000; }
.mp-h .dim { font-size: var(--fs-sm); }
.mp-f { display: flex; align-items: center; gap: var(--s2); padding-top: var(--s3); border-top: 2px solid var(--f0); box-shadow: 0 -1px 0 var(--f1); }
.mp-f .mstatus { flex: 1; }
.worlds { width: 52rem; }
.wcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); overflow-y: auto; min-height: 6rem; max-height: calc(100vh - 20rem); padding: 0.2rem; }
.wcard { position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem 0.9rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); cursor: pointer; }
.wcard:hover { box-shadow: inset 0 0 0 1px var(--f3); }
.wcard.on { background: rgba(245, 189, 74, 0.1); box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px rgba(245, 189, 74, 0.25); }
.wc-top { display: flex; align-items: center; gap: 0.6rem; }
.wc-n { flex: 1; font-family: var(--f-title); font-size: var(--fs-lg); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: var(--fs-xs); font-weight: 600; color: var(--tx2); }
.wc-meta span, .cont-m span { display: inline-flex; align-items: center; gap: 0.3rem; }
.wc-meta .i { color: var(--tx3); }
.wc-sub { display: flex; align-items: center; gap: 0.3rem; font-size: var(--fs-2xs); }
.wc-act { display: flex; align-items: center; gap: 0.3rem; justify-content: flex-end; }
.steps { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--tx3); font-weight: 700; }
.steps span { display: inline-flex; align-items: center; gap: 0.4rem; }
.steps b { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--f0); background: var(--well); font-size: var(--fs-2xs); }
.steps .on { color: var(--gold2); }
.steps .on b { background: var(--gold); color: var(--gold-ink); }
.steps .done b { background: #2c4a1f; color: var(--good); }
.steps i { width: 2rem; height: 2px; background: var(--f0); }
.newworld { width: 62rem; }
.newworld.step2 { width: 40rem; }
.dcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.dcard { position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); cursor: pointer; transition: transform var(--t-fast); }
.dcard:hover { transform: translateY(-2px); }
.dcard.on { background: color-mix(in srgb, var(--dc) 12%, rgba(0, 0, 0, 0.3)); box-shadow: inset 0 0 0 2px var(--dc), 0 0 16px color-mix(in srgb, var(--dc) 35%, transparent); }
.dcard.d-easy { --dc: #8ee06f; }
.dcard.d-normal { --dc: #7cc4f6; }
.dcard.d-creative { --dc: #cfa4ff; }
.dc-h { display: flex; align-items: center; gap: 0.7rem; }
.dc-i { width: 2.9rem; height: 2.9rem; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--dc); background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dc) 55%, transparent); }
.dc-i .i { width: 1.45rem; height: 1.45rem; }
.dc-h > div { display: flex; flex-direction: column; gap: 0.1rem; }
.dc-h b { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; }
.dc-h span { font-size: var(--fs-xs); color: var(--tx3); }
.dc-t { margin: 0; display: flex; flex-direction: column; }
.dc-t > div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.4); font-size: var(--fs-xs); }
.dc-t > div:last-child { border-bottom: 0; }
.dc-t dt { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--tx3); }
.dc-t dd { margin: 0; font-weight: 800; text-align: right; }
.dc-sel { position: absolute; top: 0.8rem; right: 0.8rem; display: none; align-items: center; gap: 0.25rem; font-size: var(--fs-2xs); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dc); }
.dcard.on .dc-sel { display: inline-flex; }
.nw-sum { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); font-size: var(--fs-xs); }
.nw-sum .dim { flex: 1; }
#ui .form { display: flex; flex-direction: column; gap: var(--s3); }
.online { width: 58rem; }
.on-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.srvs { display: flex; flex-direction: column; gap: 0.35rem; }
.srv { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); cursor: pointer; }
.srv:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.srv-i { width: 2.2rem; height: 2.2rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--well); color: var(--tx3); }
.srv-i.ok { color: var(--good); }
.srv-i.err { color: var(--bad); }
.srv-b { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.srv-b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-b .dim { font-size: var(--fs-2xs); }
#ui .adv summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); font-weight: 700; color: var(--tx3); cursor: pointer; }
#ui .adv summary::-webkit-details-marker { display: none; }
#ui .adv[open] summary .i { transform: rotate(90deg); }
#ui .adv[open] summary { margin-bottom: 0.5rem; color: var(--tx2); }
.status-line { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); }
.status-line > span:nth-child(2) { flex: 1; }
.mh { display: flex; align-items: center; gap: var(--s3); padding: 0.65rem 0.7rem 0.65rem 1.1rem; flex: none; background: linear-gradient(#3b2b1c, #2a1f14); border-bottom: 2px solid var(--f0); box-shadow: 0 1px 0 var(--f2); margin: 3px 3px 0; }
.mh h2 { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--f-title); font-weight: 900; font-size: var(--fs-xl); color: var(--gold2); text-shadow: 0 2px 0 #000; }
.mh h2 .i { color: var(--gold); }
#ui .mh [data-act="sheet-close"].icon, #ui .mh [data-act="a-close"].icon { color: #ffd8cf; background: linear-gradient(#8c3324, #5c2016); }
.mf { display: flex; align-items: center; gap: var(--s2); padding: 0.65rem 1rem 0.65rem 1.1rem; border-top: 2px solid var(--f0); background: rgba(0, 0, 0, 0.2); flex: none; margin: 0 3px 3px; }
.optbox { width: min(50rem, calc(100vw - 2rem)); }
.opt-cols { display: grid; grid-template-columns: 12rem 1fr; min-height: 0; flex: 1; margin: 0 3px; }
.opt-cols .vnav { padding: var(--s3); border-right: 2px solid var(--f0); }
.opt-body { padding: var(--s3) var(--s5); display: flex; flex-direction: column; gap: 0.2rem; overflow-y: auto; min-height: 18rem; }
.orow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s5); padding: 0.8rem 0; border-bottom: 2px solid rgba(0, 0, 0, 0.35); }
.orow:last-child { border-bottom: 0; }
.ol { display: flex; flex-direction: column; gap: 0.2rem; }
.ol b { font-size: var(--fs-md); }
.ol span { font-size: var(--fs-xs); color: var(--tx3); line-height: 1.35; }
.oc { display: flex; justify-content: flex-end; }
.oc .inp { width: 13rem; }
.slider { display: flex; align-items: center; gap: 0.7rem; width: 15rem; }
.slider .ov { width: 2.8rem; text-align: right; font-weight: 800; color: var(--gold2); }
.zv { min-width: 2.2rem; text-align: center; font-size: var(--fs-lg); color: var(--gold2); }
.ohint { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; margin: 0.4rem 0; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); font-size: var(--fs-xs); color: var(--tx2); }
.ohint > .i { color: var(--info); }
.kmini { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.2rem; margin: 0.4rem 0 0.8rem; }
.kr { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; gap: 0.7rem; align-items: center; font-size: var(--fs-xs); color: var(--tx2); padding: 0.2rem 0; }
.kk { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.1rem; }
.hold { font-size: var(--fs-2xs); color: var(--tx3); margin-right: 0.3em; font-style: italic; }
.ctrlbox { width: min(66rem, calc(100vw - 2rem)); max-height: min(46rem, calc(100vh - 2rem)); }
.ctrlbox > .chips { padding: 0.7rem 1.1rem 0; flex: none; }
.kgroups { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s3) var(--s5) var(--s5); columns: 2 24rem; column-gap: var(--s6); }
.kgroups .empty-state { column-span: all; }
.kgroup { break-inside: avoid; margin-bottom: var(--s4); padding: 0.75rem 0.9rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); }
.kgroup h3 { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold2); margin-bottom: 0.4rem; }
.kgroup h3 .i { color: var(--gold); }
.kgroup .kr { grid-template-columns: 11.5rem 1fr; font-size: var(--fs-sm); padding: 0.3rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.4); }
.kgroup .kr:last-child { border-bottom: 0; }
.cbox { width: min(28rem, calc(100vw - 2rem)); padding: 1.4rem 1.4rem 1.1rem; gap: 0.8rem; align-items: center; text-align: center; }
.cicon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--well); border: 2px solid var(--f0); color: var(--gold); }
.cicon.danger { color: var(--bad); }
.cicon .i { width: 1.4rem; height: 1.4rem; }
.ctitle { font-family: var(--f-title); font-size: var(--fs-xl); color: var(--gold2); }
.ctext { font-size: var(--fs-sm); color: var(--tx2); line-height: 1.45; }
.cbox .btnrow { align-self: stretch; justify-content: center; margin-top: 0.4rem; }
.qtybox { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.4rem 0; }
#ui .qtyin { width: 6rem; text-align: center; font-size: var(--fs-xl); font-weight: 800; }
.qtyr { width: 100%; margin: 0.4rem 0 0.2rem; }
/* pausa */
.pause-box { width: min(25rem, calc(100vw - 2rem)); align-items: stretch; gap: 0.7rem; padding: 1.6rem 1.5rem 1.5rem; text-align: center; }
.ph-t { font-family: var(--f-title); font-weight: 900; font-size: var(--fs-3xl); letter-spacing: 0.08em; color: var(--gold2); line-height: 1; text-shadow: 0 3px 0 #000; }
.ph-w { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: var(--fs-md); font-weight: 700; }
.ph-m { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.9rem; font-size: var(--fs-xs); color: var(--tx3); margin-bottom: 0.4rem; }
.ph-m span { display: inline-flex; align-items: center; gap: 0.3rem; }
.pbtns { display: flex; flex-direction: column; gap: 0.45rem; }
#ui .pbtn { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem 0.9rem; font: inherit; font-size: var(--fs-md); font-weight: 700; text-align: left; color: var(--tx); background: var(--btn-bg); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); cursor: pointer; }
#ui .pbtn:hover { filter: brightness(1.15); }
#ui .pbtn:active { transform: translateY(1px); box-shadow: var(--pressed); }
#ui .pbtn > .i { color: var(--gold); }
#ui .pbtn .bl { flex: 1; }
#ui .pbtn.go { color: var(--gold-ink); background: var(--btn-go); box-shadow: var(--btn-go-shadow); }
#ui .pbtn.go > .i { color: var(--gold-ink); }
#ui .pbtn.go kbd { color: var(--gold-ink); background: rgba(255, 255, 255, 0.4); }
#ui .pbtn.quiet { background: linear-gradient(#3a2b1d, #2a1f15); color: var(--tx2); }
/* morte */
.death-box { width: min(46rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; align-items: center; gap: 0.6rem; padding: 1.6rem 1.8rem; text-align: center; }
.death-box.waiting { opacity: 0.55; pointer-events: none; }
.dskull { color: var(--bad); }
.dskull .i { width: 3rem; height: 3rem; filter: drop-shadow(0 0 16px rgba(255, 106, 82, 0.5)); }
.death-box h1 { font-family: var(--f-title); font-weight: 900; font-size: 3.4rem; letter-spacing: 0.06em; color: #ffd0c6; text-shadow: 0 3px 0 #4a0c06, 0 8px 30px rgba(0, 0, 0, 0.8); line-height: 1; }
.death-box .cause { font-size: var(--fs-lg); font-weight: 700; color: #ffe2db; }
.dmeta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1rem; font-size: var(--fs-xs); color: var(--tx2); margin-bottom: 0.6rem; }
.dmeta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.dcols { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); text-align: left; }
.dcols section { display: flex; flex-direction: column; gap: 0.4rem; }
.rlist2 { display: flex; flex-direction: column; gap: 0.35rem; max-height: 14rem; overflow-y: auto; }
#ui .rcard { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem 0.8rem; font: inherit; text-align: left; color: var(--tx); background: linear-gradient(#4a3624, #31241a); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: var(--raised); cursor: pointer; }
#ui .rcard:hover { filter: brightness(1.15); transform: translateX(2px); }
#ui .rcard > .i:first-child { width: 1.5rem; height: 1.5rem; color: var(--gold); }
#ui .rcard > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#ui .rcard b { font-size: var(--fs-md); }
#ui .rcard small { color: var(--tx3); font-size: var(--fs-xs); }
#ui .rcard > .i:last-child { color: var(--tx3); }
#ui .rcard.zone.t-good > .i:first-child { color: var(--good); }
#ui .rcard.zone.t-warn > .i:first-child { color: var(--warn); }
#ui .rcard.zone.t-bad > .i:first-child { color: var(--bad); }
.dnote { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--tx2); }
.dnote .i { color: var(--bad); }
/* administração */
.adminbox { width: min(64rem, calc(100vw - 2rem)); height: min(44rem, calc(100vh - 2rem)); }
.admin-body { gap: var(--s3) !important; }
.aitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 0.35rem; overflow-y: auto; align-content: start; flex: 1; min-height: 8rem; padding-right: 0.2rem; }
#ui .aitem { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.45rem 0.25rem 0.35rem; font: inherit; color: var(--tx2); background: radial-gradient(ellipse at 50% 35%, #33261a, #1a120b 80%); border: 2px solid var(--f0); border-radius: var(--r2); cursor: pointer; }
#ui .aitem:hover { box-shadow: inset 0 0 0 2px var(--gold2); color: var(--tx); }
#ui .aitem .ico { width: 2.4rem; height: 2.4rem; }
#ui .aitem span { font-size: 0.68rem; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aspecies { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.35rem; overflow-y: auto; max-height: 20rem; }
#ui .aspc { display: grid; grid-template-columns: 2.8rem 1fr; grid-template-rows: auto auto; column-gap: 0.55rem; align-items: center; padding: 0.35rem; font: inherit; text-align: left; color: var(--tx); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); border-radius: var(--r2); cursor: pointer; }
#ui .aspc:hover { box-shadow: inset 0 0 0 2px var(--gold2); }
#ui .aspc .thumb { grid-row: span 2; width: 2.8rem; height: 2.8rem; }
#ui .aspc b { font-size: var(--fs-xs); }
#ui .aspc small { font-size: var(--fs-2xs); color: var(--tx3); }
.abosses { display: flex; flex-direction: column; gap: 0.3rem; }
#ui .abosses .arow { display: flex; cursor: default; box-shadow: inset 0 0 0 1px var(--f1); }
.astatus { font-size: var(--fs-sm); }
.astatus span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ckl { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); color: var(--tx2); }

/* ---------- online: escolha, conta, servidores (client/ui/online.js) ---------- */
.chooser { width: 46rem; }
.pcards { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s3); }
#ui .pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 1.2rem 1.2rem 1rem; text-align: left; font: inherit; color: var(--tx); cursor: pointer; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); transition: transform var(--t-fast), box-shadow var(--t-fast); }
#ui .pcard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--f3); }
#ui .pcard.main { background: linear-gradient(160deg, rgba(245, 189, 74, 0.14), rgba(0, 0, 0, 0.3) 60%); box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(245, 189, 74, 0.18); }
.pc-i { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--well); border: 2px solid var(--f0); color: var(--gold2); }
.pc-i .i { width: 1.5rem; height: 1.5rem; }
.pcard b { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; }
.pcard > span:not(.pc-i):not(.pc-go) { font-size: var(--fs-sm); color: var(--tx2); }
.pc-go { margin-top: auto; padding-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-sm); font-weight: 800; color: var(--gold2); }
.legal { font-size: var(--fs-2xs); color: var(--tx3); white-space: nowrap; }
#ui .legal a { color: var(--tx2); pointer-events: auto; }
#ui .legal a:hover { color: var(--gold2); }
#ui .accchip { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-size: var(--fs-xs); color: var(--tx); padding: 0.3rem 0.65rem 0.3rem 0.45rem; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2); cursor: pointer; }
#ui .accchip .i { color: var(--gold); }
#ui .accchip:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.auth { width: 30rem; }
.auth-b { display: flex; flex-direction: column; gap: var(--s3); }
#ui .auth .seg.big button { font-size: var(--fs-sm); padding: 0.4em 1em; }
#ui .btn.google { width: 100%; background: linear-gradient(#f8f2e6, #ddd2bf); color: #2a1d10; text-shadow: none; }
#ui .btn.google .i { color: #3a7bd5; }
.or { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-2xs); color: var(--tx3); text-transform: uppercase; letter-spacing: 0.08em; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--f0); box-shadow: 0 1px 0 var(--f1); }
#ui .field .fe { font-size: var(--fs-2xs); color: #ffb1a2; font-weight: 700; }
#ui .inp.code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
#ui .linkbtn { align-self: flex-start; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--tx2); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; pointer-events: auto; }
#ui .linkbtn:hover { color: var(--gold2); }
#ui .hint.forgot a { color: var(--gold2); pointer-events: auto; }
#ui .field.err .inp { box-shadow: inset 0 0 0 1px var(--bad); }
#ui .field .fh.good { color: var(--good); }
#ui .field .fh.bad { color: #ffb1a2; }
#ui .inp.valid { box-shadow: inset 0 0 0 1px rgba(142, 224, 111, 0.6); }
.servers { width: min(64rem, calc(100vw - 2rem)); }
.srv-tools { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
#ui .srv-tools .ctab.m-pve.on { color: var(--good); }
#ui .srv-tools .ctab.m-pvp.on { color: var(--bad); }
#ui .srv-tools .ctab.fav.on { color: var(--gold2); }
.srv-list { display: flex; flex-direction: column; gap: 0.35rem; overflow-y: auto; min-height: 8rem; max-height: calc(100vh - 19rem); padding: 0.15rem; }
.srv-sec { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx3); }
.srv-sec .i { color: var(--gold); width: 0.95rem; height: 0.95rem; }
.srow { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 7.5rem 5.6rem 2rem 7rem; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); cursor: pointer; }
.srow:hover { box-shadow: inset 0 0 0 1px var(--f3); }
.srow.sel { background: rgba(245, 189, 74, 0.08); box-shadow: inset 0 0 0 2px var(--gold); }
.srow.hero { background: linear-gradient(90deg, rgba(245, 189, 74, 0.14), rgba(0, 0, 0, 0.28) 55%); }
.srow.off { opacity: 0.62; }
.s-mode { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; height: 3.2rem; border-radius: var(--r2); background: var(--well); border: 2px solid var(--f0); font-size: var(--fs-2xs); font-weight: 900; letter-spacing: 0.06em; }
.s-mode .i { width: 1.35rem; height: 1.35rem; }
.m-pve .s-mode { color: var(--good); box-shadow: inset 0 0 0 1px rgba(142, 224, 111, 0.45); }
.m-pvp .s-mode { color: #ff8a74; box-shadow: inset 0 0 0 1px rgba(255, 106, 82, 0.55); background: #241009; }
.s-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.s-n { display: flex; align-items: center; gap: 0.45rem; }
.s-n b { font-family: var(--f-title); font-size: var(--fs-lg); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-lock { color: var(--tx3); display: grid; }
.s-d { font-size: var(--fs-xs); color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-tags { display: flex; gap: 0.3rem; }
.s-pl { display: flex; flex-direction: column; gap: 0.3rem; }
.s-plt { display: inline-flex; align-items: baseline; gap: 0.25rem; font-size: var(--fs-sm); }
.s-plt .i { color: var(--tx3); align-self: center; }
.s-plt small { color: var(--tx3); }
.s-bar { height: 0.35rem; background: #0b0704; border: 1px solid var(--f0); border-radius: 2px; overflow: hidden; }
.s-bar > i { display: block; height: 100%; background: var(--good); }
.s-bar.full > i { background: var(--bad); }
.s-st { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.s-st span { display: inline-flex; align-items: center; gap: 0.25rem; }
.s-st .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
#ui .s-fav { width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0; font: inherit; background: none; border: 0; color: var(--tx4); cursor: pointer; }
#ui .s-fav:hover { color: var(--gold2); }
#ui .s-fav.on { color: var(--gold); filter: drop-shadow(0 0 6px rgba(245, 189, 74, 0.6)); }
#ui .srow .btn { width: 100%; }
.rules { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.rules > div { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--fs-sm); }
.rules > div > .i { flex: none; width: 1.3rem; height: 1.3rem; color: var(--gold); margin-top: 0.05rem; }
.account { width: min(62rem, calc(100vw - 2rem)); }
.acc-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s3); align-items: start; }
.acc-cols .card { display: flex; flex-direction: column; gap: var(--s2); }
.acc-id { align-items: flex-start; }
.acc-av { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--well); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f3); color: var(--gold2); }
.acc-av .i { width: 1.6rem; height: 1.6rem; }
.acc-id > div:nth-child(2) { display: flex; flex-direction: column; gap: 0.2rem; }
.acc-n { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; }
.acc-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.2rem; }
#ui .sec-h.danger .i { color: var(--bad); }
#ui .card p { margin: 0; }
#ui a.btn { text-decoration: none; }
@media (max-width: 1200px), (max-height: 700px) {
  .acc-cols { grid-template-columns: 1fr 1fr; }
  .acc-id { grid-column: 1 / -1; flex-direction: row !important; align-items: center !important; }
  .acc-id .hint { flex: 1; }
  .srow { grid-template-columns: 3rem minmax(0, 1fr) 6rem 4.8rem 1.8rem 6rem; gap: 0.55rem; padding: 0.4rem 0.55rem; }
  .s-mode { height: 2.7rem; }
  .s-d { display: none; }
}

/* ---------- aparência e onde começar (client/ui/look.js) ---------- */
.lookbox { width: min(calc(100vw - 1.5rem), max(66rem, 920px)); max-height: calc(100vh - 1.5rem); }
.lk-cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); padding: var(--s3) var(--s4) var(--s3); min-height: 0; overflow-y: auto; }
.lk-prev { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
/* palco claro (areia ao sol): o sobrevivente lê em qualquer tom de pele; o canvas tem tamanho em px inteiros (look.js) */
.lk-stage { display: grid; place-items: center; padding: 0.4rem; border-radius: var(--r2); background: radial-gradient(ellipse at 50% 38%, #f6e7c2 0%, #e2c792 48%, #b8935c 100%); border: 2px solid var(--f0); box-shadow: inset 0 0 0 2px var(--f2), inset 0 0 0 3px var(--f0), inset 0 -10px 18px rgba(90, 55, 20, 0.35); }
#ui .lkc { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.lk-rot { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
#ui .lk-walk.on { color: var(--gold2); box-shadow: inset 0 0 0 2px var(--gold); }
.lk-name { max-width: 100%; font-family: var(--f-title); font-weight: 900; font-size: var(--fs-lg); color: var(--gold2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.lk-opts { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.lk-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.35rem 0.4rem; }
.lk-grp { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.lk-l { font-size: var(--fs-2xs, 0.68rem); font-weight: 800; color: var(--tx3); text-transform: uppercase; letter-spacing: 0.06em; }
.lk-g { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: flex-end; }
.lk-sep { align-self: stretch; width: 2px; background: var(--f1); margin: 0.9rem 0.25rem 0; }
/* miniatura: poço claro, imagem em ampliação inteira (o tamanho vem dos atributos width/height) */
#ui .lkp { padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; background: radial-gradient(ellipse at 50% 40%, #f0dcae, #c4a068 92%); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.5), inset 0 -3px 0 rgba(90, 55, 20, 0.25); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
#ui .lkp img { display: block; max-width: none; image-rendering: pixelated; image-rendering: crisp-edges; }
#ui .lkp small { font-size: 0.62rem; line-height: 1; font-weight: 800; color: #4a2f14; }
#ui .lkp:hover { border-color: var(--f3); transform: translateY(-1px); }
#ui .lkp.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(245, 189, 74, 0.45), inset 0 0 0 1px rgba(255, 245, 210, 0.8); background: radial-gradient(ellipse at 50% 40%, #fff1cc, #d9b77a 92%); }
#ui .lkp.on small { color: #2a1803; }
#ui .lks { padding: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sw); border: 2px solid var(--f0); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); cursor: pointer; }
#ui .lks.on { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(245, 189, 74, 0.5); transform: scale(1.12); }
@media (max-height: 720px) { .lookbox .mh { padding-top: 0.55rem; padding-bottom: 0.55rem; } .lk-opts { gap: 0.35rem; } }
.spawnbox { width: min(34rem, calc(100vw - 2rem)); }
.sp-b { padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.sp-b p { margin: 0; font-size: var(--fs-sm); }
#ui .lkbtn { align-self: center; margin-top: 0.3rem; }
/* ---------- tribos (client/ui/tribe.js) ---------- */
.tribe-tab2 { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s4); min-height: 0; }
.trbody { min-width: 0; }
.trbody .tribe-tab { grid-template-columns: minmax(0, 1fr); }
.trbody .tr-side { display: none; }
.tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); align-items: start; }
.tr-cols.wide { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); }
.tr-cols .card { display: flex; flex-direction: column; gap: var(--s2); }
.tr-cols p { margin: 0; }
.tr-row2 { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s3); }
#ui .tr-tag { text-transform: uppercase; text-align: center; }
.tr-colors { display: flex; flex-wrap: wrap; gap: 0.3rem; }
#ui .tcs { padding: 0; width: 1.6rem; height: 1.6rem; border-radius: var(--r1); background: var(--sw); border: 2px solid var(--f0); cursor: pointer; }
#ui .tcs.on { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.12); }
.tr-prev { display: flex; align-items: center; gap: 0.5rem; min-height: 1.8rem; }
.tr-prev:empty { display: none; }
#ui .tchip { font-style: normal; display: inline-block; font-size: 0.78em; font-weight: 900; padding: 0.05em 0.4em; border-radius: 3px; color: #120c06; background: var(--tc); letter-spacing: 0.04em; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7); vertical-align: 0.08em; margin-right: 0.35em; }
#ui .tchip.big { font-size: var(--fs-md); padding: 0.2em 0.55em; }
.tinvrow { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.25); border: 2px solid var(--f0); }
.tinvrow > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tinvrow small { font-size: var(--fs-2xs); color: var(--tx3); }
.tr-main2 { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.tr-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.28); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); }
.trh-t { display: flex; flex-direction: column; min-width: 0; }
.trh-t b { font-family: var(--f-title); font-size: var(--fs-xl); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trh-t .dim { font-size: var(--fs-xs); }
.tmembers { display: flex; flex-direction: column; gap: 0.25rem; max-height: min(24rem, calc(100vh - 22rem)); overflow-y: auto; }
.tmrow { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr) 1.95rem; align-items: center; gap: 0.6rem; padding: 0.35rem 0.5rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.22); border: 2px solid var(--f0); font-size: var(--fs-sm); }
.tmrow.me { box-shadow: inset 0 0 0 1px var(--f3); }
.tmrow.off { opacity: 0.6; }
.tm-r { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--well); color: var(--tx3); }
.tm-r.rl-leader, .pill.rl-leader { color: var(--gold2); }
.tm-r.rl-officer, .pill.rl-officer { color: var(--info); }
.tm-n { display: flex; flex-direction: column; min-width: 0; }
.tm-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-n small, .tm-w small { font-size: var(--fs-2xs); color: var(--tx3); }
.tm-w { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); }
.tm-w > span { display: flex; flex-direction: column; min-width: 0; }
.tm-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--tx4); flex: none; }
.tm-dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
.tr-side2 { display: flex; flex-direction: column; gap: var(--s3); }
.tr-invf { display: flex; gap: 0.35rem; }
.tr-invf .inp { flex: 1; }
.tr-invf .tr-tag { flex: 0 0 4rem; }
.tnear { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tr-ilist { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.4rem; }
.tilist { display: flex; flex-direction: column; gap: 0.25rem; }
.tirow { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.35rem 0.3rem 0.55rem; border-radius: var(--r2); background: rgba(0, 0, 0, 0.22); border: 2px solid var(--f0); font-size: var(--fs-sm); }
.tir-n { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tir-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tir-n small { font-size: var(--fs-2xs); color: var(--tx3); }
.tirow .pill { flex: none; }
.tr-pg { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--tx3); font-weight: 700; }
.tinvrow { border-left: 4px solid var(--tc, var(--f0)); }
.tr-leave { justify-content: flex-end; }
.tinvcard { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem 0.45rem 0.5rem; pointer-events: auto; background: rgba(20, 13, 8, 0.95); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--gold), 0 6px 18px rgba(0, 0, 0, 0.5); border-radius: var(--r2); animation: toastin var(--t-med) var(--ease); }
.tinvcard { border-left: 5px solid var(--tc, var(--gold)); }
.ti-i { color: var(--gold); display: grid; }
.ti-t { display: flex; flex-direction: column; font-size: var(--fs-sm); }
.ti-t .small { font-size: var(--fs-2xs); }
.ti-m { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 600; }
.ti-left { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 700; }
.pown { font-style: normal; display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.85em; color: #ffcf9a; opacity: 0.85; }
.pown .i { width: 0.85em; height: 0.85em; }
.banner.k-zone { top: calc(var(--s4) + 2.4rem); gap: 0.05rem; flex-direction: row; gap: 0.45rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(14, 9, 5, 0.6); }
.banner.k-zone .bi .i { width: 1.1rem; height: 1.1rem; color: var(--info); filter: none; }
.banner.k-zone .bt { font-family: var(--f-text); font-size: var(--fs-sm); font-weight: 800; color: #e4f2ff; text-shadow: 0 1px 1px #000; }
.banner.k-zone .bsub { font-size: var(--fs-xs); color: var(--tx2); }
.banner.k-world.m-pvp .bsub { color: #ffb4a6; }
#ui .aout { margin: 0; max-height: 12rem; overflow: auto; white-space: pre-wrap; font: inherit; font-size: var(--fs-xs); color: var(--tx2); background: var(--well); border: 2px solid var(--f0); border-radius: var(--r2); padding: 0.5rem 0.7rem; user-select: text; }
.srv-tools .ctabs + .ctabs { padding-left: var(--s2); border-left: 2px solid var(--f0); }
.srv-tools .msearch .sinp { width: 12rem; cursor: text; }
#ui .auth .seg button { white-space: nowrap; }

/* ---------- rolagem ---------- */
#ui ::-webkit-scrollbar { width: 0.6rem; height: 0.6rem; }
#ui ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); border-radius: 4px; }
#ui ::-webkit-scrollbar-thumb { background: #5a4029; border: 2px solid #1a120b; border-radius: 4px; }
#ui ::-webkit-scrollbar-thumb:hover { background: #7a5a38; }
#ui * { scrollbar-color: #5a4029 rgba(0, 0, 0, 0.3); scrollbar-width: thin; }

/* ---------- telas menores ---------- */
@media (max-width: 1200px), (max-height: 700px) {
  .hud-tc { width: min(26rem, calc(100vw - 30rem)); }
  .chat { width: min(24rem, calc(100vw - 2rem)); bottom: 6.5rem; }
  #ui .tab .tk { display: none; }
  .wcards, .dcards, .on-cols, .dcols { grid-template-columns: 1fr; }
  .tribe-tab { grid-template-columns: minmax(0, 46rem); }
  .tr-side { display: none; }
}
@media (max-height: 760px) {
  .logo-t { font-size: 3.8rem; }
  .ts-col { gap: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  #ui *, #ui *::before, #ui *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
html.reduce-motion #ui *, html.reduce-motion #ui *::before, html.reduce-motion #ui *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }

/* ==========================================================================================================
   Almanaque (client/ui/wiki.js): aba L da janela principal e folha da tela inicial. Lista à esquerda, ficha à direita.
   ========================================================================================================== */
#ui .alm { display: flex; flex-direction: column; gap: var(--s3); width: min(68rem, calc(100vw - 4rem)); min-height: 0; }
#ui .alm-top { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
#ui .alm-secs button small { font-weight: 800; opacity: 0.65; margin-left: 0.1em; }
#ui .alm-q { max-width: 22rem; }
#ui .alm-main { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s3); height: min(36rem, calc(100vh - 12.5rem)); min-height: 0; }
#ui .alm-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; padding-right: 0.3rem; }
#ui .alm-lg { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx4); padding: 0.55rem 0.4rem 0.2rem; }
#ui .alm-lg:first-child { padding-top: 0.1rem; }
#ui .alm-li { display: flex; align-items: center; gap: 0.55rem; width: 100%; padding: 0.25rem 0.45rem; font: inherit; color: var(--tx2); text-align: left; cursor: pointer; background: transparent; border: 2px solid transparent; border-radius: var(--r2); flex: none; }
#ui .alm-li:hover { background: rgba(255, 225, 170, 0.06); color: var(--tx); }
#ui .alm-li.on { color: var(--gold2); background: var(--tab-on); border-color: var(--f0); box-shadow: inset 0 0 0 1px var(--gold); }
#ui .alm-li .ico, #ui .alm .thumb.sm { width: 2rem; height: 2rem; flex: none; }
#ui .alm-li-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
#ui .alm-li-t b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui .alm-li-t small { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 600; }
#ui .alm-li-i { width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; background: var(--well); border-radius: var(--r1); color: var(--gold); }
#ui .alm-body { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; min-height: 0; overflow-y: auto; padding: var(--s3) var(--s4) var(--s4);
  background: rgba(0, 0, 0, 0.18); border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f1); border-radius: var(--r2); }
#ui .alm-body > * { flex-shrink: 0; }
#ui .alm-back { align-self: flex-start; margin-bottom: -0.4rem; }
#ui .alm-h { display: flex; align-items: center; gap: var(--s4); }
#ui .alm-big, #ui .alm-port { flex: none; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, rgba(245, 189, 74, 0.14), rgba(0, 0, 0, 0.35) 70%), var(--well);
  border: 2px solid var(--f0); box-shadow: inset 0 0 0 1px var(--f2); border-radius: var(--r2); overflow: hidden; }
#ui .alm-big { width: 3.8rem; height: 3.8rem; }
#ui .alm-big .ico { width: 3.2rem; height: 3.2rem; }
#ui .alm-big.alm-icon .i { width: 2rem; height: 2rem; color: var(--gold); }
#ui .alm-port { width: 7.2rem; height: 7.2rem; }
#ui .alm-porti { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
#ui .alm-port .ph { display: grid; place-items: center; color: var(--tx4); }
#ui .alm-ht { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
#ui .alm-ht h3 { font-family: var(--f-title); font-size: var(--fs-2xl); font-weight: 900; color: var(--gold2); letter-spacing: 0.02em; line-height: 1.05; text-shadow: 0 2px 0 #000; }
#ui .alm-ht > .dim { font-size: var(--fs-sm); }
#ui .alm-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin-top: 0.15rem; }
#ui .alm-stats { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.3rem; font-size: var(--fs-sm); font-weight: 700; color: var(--tx2); }
#ui .alm-stats > span { display: inline-flex; align-items: center; gap: 0.35em; cursor: help; }
#ui .alm-stats .i { color: var(--tx3); }
#ui .alm-desc { margin: -0.4rem 0 0; font-size: var(--fs-sm); color: var(--tx2); max-width: 46rem; }
#ui .alm-sec { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
#ui .alm-sec > .sec-h { margin-bottom: 0.1rem; }
#ui .alm-sub { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-size: var(--fs-xs); font-weight: 700; color: var(--tx3); }
#ui .alm-sub .i { color: var(--gold); }
/* ranking com barra */
#ui .alm-rks { display: flex; flex-direction: column; gap: 3px; }
#ui .alm-rk { display: grid; grid-template-columns: 1.1rem 2rem minmax(0, 1fr) minmax(3rem, 8rem) 3.6rem; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.2rem 0.45rem; font: inherit; color: inherit; text-align: left; background: rgba(0, 0, 0, 0.2); border: 0; border-radius: var(--r1); }
#ui .alm-rk.link { cursor: pointer; }
#ui .alm-rk.link:hover { background: rgba(255, 225, 170, 0.08); }
#ui .alm-rk .rn { font-size: var(--fs-xs); font-weight: 800; color: var(--tx4); text-align: center; }
#ui .alm-rk:first-child .rn { color: var(--gold); }
#ui .alm-rk .ico, #ui .alm-rk .thumb { width: 2rem; height: 2rem; }
#ui .alm-rk .rt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
#ui .alm-rk .rt b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui .alm-rk .rt small { font-size: var(--fs-2xs); color: var(--tx3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui .alm-rk .rb { height: 0.6rem; background: #0b0704; border: 2px solid var(--f0); border-radius: 2px; overflow: hidden; }
#ui .alm-rk .rb > i { display: block; height: 100%; background: linear-gradient(90deg, #a8701f, #e2a53c); }
#ui .alm-rk:first-child .rb > i { background: linear-gradient(90deg, #d79a33, var(--gold2)); }
#ui .alm-rk .rm { text-align: right; font-size: var(--fs-md); font-weight: 800; color: var(--gold2); }
#ui .alm-hand { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--well) !important; border-radius: var(--r1); color: var(--tx2); }
/* fichas e chips */
#ui .alm-rows { display: flex; flex-direction: column; gap: 0.45rem; }
#ui .alm-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.6rem; align-items: center; }
#ui .alm-rl { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 700; color: var(--tx3); line-height: 1.15; }
#ui .alm-rl .i { color: var(--gold); }
#ui .alm-rl .ico { width: 1.8rem; height: 1.8rem; flex: none; }
#ui .alm .chips { gap: 0.3rem; }
#ui .alm-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0.1rem 0.55rem 0.1rem 0.2rem; font: inherit; font-size: var(--fs-xs); font-weight: 700; color: var(--tx2);
  background: rgba(0, 0, 0, 0.3); border: 2px solid var(--f0); border-radius: var(--r2); white-space: nowrap; }
#ui .alm-chip > .i { width: 1.1rem; height: 1.1rem; margin-left: 0.25rem; color: var(--tx3); }
#ui .alm-chip .ico, #ui .alm-chip .thumb, #ui .alm-chip .thumb.sm { width: 1.6rem; height: 1.6rem; background: transparent; }
#ui .alm-chip b { color: var(--gold2); font-weight: 800; }
#ui .alm-chip.link { cursor: pointer; background: var(--tab-bg); box-shadow: var(--raised); }
#ui .alm-chip.link:hover { filter: brightness(1.2); color: var(--tx); }
#ui .alm-chip.fav { box-shadow: var(--raised), inset 0 0 0 1px var(--gold); }
#ui .alm-chip.aggr { box-shadow: var(--raised), inset 0 0 0 1px #a8402e; }
#ui .alm-dot { width: 0.75rem; height: 0.75rem; margin-left: 0.3rem; border-radius: 50%; border: 1px solid var(--f0); flex: none; }
#ui .alm-arrow { display: inline-flex; color: var(--tx3); }
#ui .alm-note { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; font-size: var(--fs-sm); color: var(--tx2); }
#ui .alm-note > .i { color: var(--info); margin-top: 0.1em; }
#ui .alm-note b { color: var(--tx); }
#ui .alm-fine { margin: 0; font-size: var(--fs-xs); color: var(--tx3); }
#ui .alm-more { align-self: flex-start; padding: 0.1rem 0; font: inherit; font-size: var(--fs-xs); font-weight: 700; color: var(--info); background: none; border: 0; cursor: pointer; }
#ui .alm-more:hover { text-decoration: underline; }
#ui .alm-inl { padding: 0; font: inherit; font-weight: 700; color: var(--gold2); background: none; border: 0; cursor: pointer; text-decoration: underline dotted; }
#ui .alm-list-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
#ui .alm-list-ul li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: var(--fs-sm); color: var(--tx2); }
#ui .alm-list-ul li > .i { color: var(--gold); margin-top: 0.12em; }
#ui .alm-list-ul li b { color: var(--tx); }
#ui .alm-list-ul .alm-chip { vertical-align: middle; margin-left: 0.2rem; }
/* de onde vem: nós */
#ui .alm-split { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; gap: var(--s4); align-items: start; }
#ui .alm-nodes { display: flex; flex-direction: column; gap: 3px; }
#ui .alm-node { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.15rem 0.6rem; align-items: center; padding: 0.3rem 0.45rem; background: rgba(0, 0, 0, 0.2); border-radius: var(--r1); }
#ui .alm-node > div:nth-child(2) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.55rem; font-size: var(--fs-sm); }
#ui .alm-node small { font-size: var(--fs-2xs); font-weight: 700; }
#ui .alm-nodei { width: 2.6rem; height: 2.6rem; object-fit: contain; image-rendering: pixelated; grid-row: span 2; }
#ui .alm-nodei.sm { width: 1.6rem; height: 1.6rem; }
#ui .alm-hows { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.3rem; }
#ui .alm-how { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.1em 0.5em; font-size: var(--fs-2xs); font-weight: 700; color: var(--tx2); background: rgba(0, 0, 0, 0.4); border-radius: var(--r1); cursor: help; }
#ui .alm-how .i { width: 1em; height: 1em; color: var(--gold); }
#ui .alm-how b { color: var(--gold2); }
/* mapas */
#ui .alm-fig { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
#ui img.alm-map { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: auto; background: var(--well); border: 2px solid var(--f0); border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--f2), 0 4px 14px rgba(0, 0, 0, 0.45); }
#ui img.alm-map.wide { aspect-ratio: 4 / 3; image-rendering: pixelated; }
#ui .alm-fig figcaption { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.35rem 0.4rem; font-size: var(--fs-xs); color: var(--tx3); }
#ui .alm-fig figcaption > .i { color: var(--gold); flex: none; margin-top: 0.05em; }
#ui .alm-fig figcaption > span { flex: 1; min-width: 0; }
#ui .alm-fig figcaption .btn { flex: none; }
#ui .alm-leg { display: inline-flex !important; align-items: center; gap: 0.3rem; flex: none !important; margin-right: 0.6rem; }
#ui .alm-leg > i { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1px solid var(--f0); }
#ui .alm-cols2 { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: var(--s4); align-items: start; }
#ui .alm-c { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
#ui .alm-rgs { display: flex; flex-direction: column; gap: 2px; }
#ui .alm-rg { display: flex; align-items: center; gap: 0.45rem; min-height: 2rem; font-size: var(--fs-sm); color: var(--tx2); }
#ui .alm-rg > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui .alm-rg .pill { min-width: 4.6rem; justify-content: center; cursor: help; }
/* folha da tela inicial */
#ui .alm-sheet { width: min(72rem, calc(100vw - 2rem)); }
#ui .alm-sheet .mh > .dim { margin-top: 0.3rem; }
#ui .alm-sheet .alm { width: auto; padding: var(--s3) var(--s4) var(--s4); }
#ui .alm-sheet .alm-main { height: min(38rem, calc(100vh - 10rem)); }
@media (max-width: 1180px) {
  #ui .alm-main { grid-template-columns: 12.5rem minmax(0, 1fr); }
  #ui .alm-cols2 { grid-template-columns: minmax(0, 1fr) 13rem; }
  #ui .alm-split { grid-template-columns: minmax(0, 1fr) 11.5rem; }
  #ui .alm-row { grid-template-columns: 7.8rem minmax(0, 1fr); }
  #ui .alm-rk { grid-template-columns: 1.1rem 2rem minmax(0, 1fr) minmax(2rem, 5rem) 3.4rem; }
}
