/* ==========================================================================
   Armor Sandbox Workshop
   A mesma cara do armorsandbox.com (site/style.css), que copia a do aplicativo
   (src/app/styles.css): fundo quase preto azulado, o âmbar do fogo e o
   cinza-aço. O workshop é uma vitrine de desenhos de metal e fogo, e eles
   perdem força em cima de qualquer coisa clara.

   Nada aqui vem de fora: as fontes saem de /static/fonts (build.mjs), e a CSP
   não deixa estilo inline, então todo estilo mora neste arquivo.
   ========================================================================== */

:root {
  --bg:        #07090d;
  --bg-2:      #0b0e13;
  --panel:     #12161f;
  --panel-2:   #191f2b;
  --line:      #232b3a;
  --line-2:    #2f394b;
  --text:      #e9edf4;
  --dim:       #aeb7c6;
  --muted:     #7b8598;
  --amber:     #f59e0b;
  --amber-2:   #fb923c;
  --hot:       #ffd9a0;
  --sky:       #38bdf8;

  /* A Roboto Condensed só tem o cirílico aqui: é ela que escreve os títulos em russo. */
  --f-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body:    "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1220px;
  /* 16 px de margem no celular, nunca menos: nada encosta na borda da tela. */
  --pad: clamp(1rem, 4vw, 2.75rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  /* Rede de segurança (pedido do dono, 10/10/2026): no celular, nada pode deixar a página deslizar para o
     lado. As causas de verdade são consertadas onde nascem (a grade da busca, as abas); isto só garante
     que um descuido futuro não volte a criar a rolagem. `clip` não cria barra nem quebra o `sticky`. */
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  /* A prancheta: uma grade fina de 24 px e uma grossa de 120 px, em azul-desenho bem apagado, sobre o
     fundo do site. É o que diz "isto é uma oficina" sem ocupar a frente de nada. */
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(56, 189, 248, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .055) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
.muted { color: var(--muted); }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--amber); color: #0b0e13; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------ tipografia */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.3rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }

p { margin: 0 0 1.15rem; color: var(--dim); }

/* ---------------------------------------------------------------- botões */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.6rem;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-2) 55%, var(--amber) 100%);
  color: #0b0e13;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 10px 28px -12px rgba(245, 158, 11, .85);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 16px 38px -12px rgba(245,158,11,.95); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }

/* ------------------------------------------------------------- cabeçalho */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--pad);
  /* Sem backdrop-filter: ele faz o navegador prender o menu lateral (position: fixed) dentro do
     cabeçalho, e o painel saía com 89 px de altura. Um fundo quase opaco faz o mesmo papel. */
  background: rgba(7, 9, 13, .95);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; text-decoration: none; }
/* O símbolo é bem mais largo que alto: altura fixa e largura livre, ou o monograma achata. */
.brand img { height: 30px; width: auto; flex: none; }
.brand-name {
  font-family: var(--f-display);
  font-size: 1.32rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  white-space: nowrap;
}
.brand-name b { font-weight: 800; color: var(--text); }
.brand-tag {
  padding: .12rem .45rem;
  border: 1px solid var(--amber);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.head-right { display: flex; align-items: center; gap: .85rem; flex: none; }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(18, 22, 31, .6);
}
.lang a {
  padding: .38rem .6rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.lang a:hover { color: var(--text); }
.lang a.on { background: var(--amber); color: #0b0e13; }

/* No celular, o nome por extenso e o botão do jogo não cabem ao lado do seletor: fica o símbolo,
   a etiqueta "Workshop" e os idiomas. O botão do jogo continua no rodapé. */
@media (max-width: 640px) {
  .brand-name { display: none; }
  .head-right .btn-sm { display: none; }
}

/* ------------------------------------------------------------------ início */

.hero { padding-block: clamp(3rem, 10vh, 6.5rem) clamp(2rem, 6vh, 3.5rem); }

/* A faixa de projeto do início: a grade mais forte, um brilho âmbar de um lado e azul do outro, e as
   marcas de canto de uma prancha técnica. */
.blueprint {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(56, 189, 248, .10), transparent 70%),
    radial-gradient(50% 70% at 10% 10%, rgba(245, 158, 11, .10), transparent 70%),
    linear-gradient(rgba(56, 189, 248, .09) 1px, transparent 1px) -1px -1px / 120px 120px,
    linear-gradient(90deg, rgba(56, 189, 248, .09) 1px, transparent 1px) -1px -1px / 120px 120px,
    linear-gradient(rgba(56, 189, 248, .04) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(56, 189, 248, .04) 1px, transparent 1px) -1px -1px / 24px 24px,
    var(--bg-2);
}
.blueprint::before, .blueprint::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(56, 189, 248, .45);
  pointer-events: none;
}
.blueprint::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.blueprint::after { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--amber) 0%, var(--hot) 45%, var(--amber-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: middle;
  animation: dot-pulse 2.6s infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); }
  70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin: 2rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px dashed rgba(56, 189, 248, .25); }
.hero-stats li { display: grid; }
.hero-stats b { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; line-height: 1; color: var(--text); }
.hero-stats span { margin-top: .25rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.btn-ghost-lg { padding: .78rem 1.4rem; font-family: var(--f-display); font-size: 1.02rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }

/* O desenho técnico. */
.hero-figure { margin: 0; padding: 1rem; border: 1px solid rgba(56, 189, 248, .22); border-radius: 10px; background: rgba(7, 9, 13, .55); box-shadow: inset 0 0 60px rgba(56, 189, 248, .05); }
.hero-figure figcaption { margin-top: .5rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(56, 189, 248, .75); }
.bp { display: block; width: 100%; height: auto; }
.bp text { font-family: var(--f-mono); font-size: 11px; fill: rgba(56, 189, 248, .85); }
.bp-center { stroke: rgba(56, 189, 248, .18); stroke-width: 1; stroke-dasharray: 14 4 2 4; }
.bp-solid { fill: rgba(56, 189, 248, .10); stroke: rgba(125, 211, 252, .95); stroke-width: 1.5; }
.bp-core { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.bp-edge { stroke: rgba(125, 211, 252, .6); stroke-width: 1; }
.bp-dim line { stroke: rgba(56, 189, 248, .7); stroke-width: 1; }
.bp-dim .bp-ext, .bp-ext { stroke: rgba(56, 189, 248, .35); stroke-width: 1; }
.bp-arrowhead { fill: none; stroke: rgba(56, 189, 248, .8); stroke-width: 1.2; }
.bp-traj { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 8 7; animation: bp-flow 1.1s linear infinite; }
@keyframes bp-flow { to { stroke-dashoffset: -30; } }
.bp .bp-label { fill: var(--hot); }
.bp-hatch-line { stroke: rgba(125, 211, 252, .55); stroke-width: 1.2; }
.bp-plate-body { stroke: rgba(125, 211, 252, .95); stroke-width: 1.5; }
.bp-arc { fill: none; stroke: rgba(56, 189, 248, .7); }
.bp-leader { stroke: rgba(255, 217, 160, .5); stroke-width: 1; }
.bp-pulse { fill: rgba(245, 158, 11, .35); stroke: var(--amber); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: bp-pulse 2.2s ease-out infinite; }
@keyframes bp-pulse { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
.bp-flash { fill: none; stroke: var(--hot); stroke-width: 1.5; stroke-linecap: round; }
.bp-spall path { fill: var(--amber-2); opacity: .9; animation: bp-spall 2.2s ease-out infinite; }
.bp-spall path:nth-child(2n) { animation-delay: .15s; fill: var(--hot); }
.bp-spall path:nth-child(3n) { animation-delay: .3s; }
@keyframes bp-spall { 0% { opacity: 0; transform: translateX(-14px); } 25% { opacity: 1; } 100% { opacity: .15; transform: translateX(6px); } }
.bp-cone { stroke: rgba(251, 146, 60, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.bp-title rect { fill: rgba(7, 9, 13, .6); stroke: rgba(56, 189, 248, .45); }
.hero-short { padding-block: clamp(3rem, 12vh, 7rem); }
.kicker {
  margin: 0 0 1rem;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}
.lead { margin-top: 1.4rem; max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.soon {
  display: inline-block;
  margin: .4rem 0 0;
  padding: .3rem .7rem;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  padding-bottom: clamp(3rem, 10vh, 6rem);
}
.card {
  padding: 1.4rem 1.3rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.card h2 { color: var(--text); margin-bottom: .7rem; }
.card p { margin: 0; font-size: .95rem; }

/* -------------------------------------------------------- conta no topo */

.head-link {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--dim);
  text-decoration: none;
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.head-link:hover { color: var(--amber); }
@media (max-width: 640px) {
  .head-game { display: none; }
}
/* No celular estreito, o símbolo, os idiomas e o nome da conta disputam 340 px: a etiqueta "Workshop"
   sai (o título da página já diz onde se está) e o nome encurta com reticências. */
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .head-right { gap: .55rem; }
  .head-link { max-width: 10ch; }
}

/* O aviso de uma linha depois de uma ação (?m=...). */
.flash {
  border-bottom: 1px solid rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .1);
  color: var(--hot);
  padding-block: .7rem;
  font-size: .95rem;
}
.flash-err { border-bottom-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .1); color: #fecaca; }

/* ------------------------------------------------------------ formulários */

.page-narrow { max-width: 620px; padding-block: clamp(2.2rem, 7vh, 4rem) clamp(3rem, 9vh, 5rem); }
.page-narrow h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.page-narrow .lead { margin-top: 1rem; }

.form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field input {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.field-bad input { border-color: #f87171; }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
.error { margin: 0; font-size: .85rem; color: #fca5a5; }
.form-error {
  margin: 0;
  padding: .7rem .85rem;
  border: 1px solid rgba(248, 113, 113, .45);
  border-radius: 4px;
  background: rgba(248, 113, 113, .08);
  color: #fecaca;
  font-size: .92rem;
}
.check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; align-items: start; font-size: .92rem; }
.check input { margin-top: .3rem; accent-color: var(--amber); width: 1.05rem; height: 1.05rem; }
.check label { color: var(--dim); }
.check a { color: var(--amber); }
.check .error { grid-column: 2; }
.form .btn { justify-self: start; }
.btn:disabled { opacity: .45; cursor: wait; transform: none; }
.form-alt { margin: 1.2rem 0 0; font-size: .92rem; color: var(--muted); }
.form-alt a { color: var(--amber); }

.btn-ghost {
  padding: .45rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--dim);
  font-size: .85rem;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f87171); box-shadow: none; }

.notice { padding: .9rem 1rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--dim); }
.notice-err { border-color: rgba(248, 113, 113, .45); color: #fecaca; background: rgba(248, 113, 113, .08); }

/* ------------------------------------------------------------- Minha conta */

.account-who { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; margin: .8rem 0 1.4rem; }
.account-who strong { font-family: var(--f-mono); font-size: 1.05rem; color: var(--text); }
.account-who span { font-size: .88rem; color: var(--muted); }
.panel { padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.panel.form { margin-top: .8rem; }
.panel-danger { border-color: rgba(248, 113, 113, .35); }
.kv { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: 0 0 .7rem; }
.kv span:first-child { color: var(--muted); font-size: .88rem; }
.kv span:last-child { color: var(--text); overflow-wrap: anywhere; }
.badge-ok { display: inline-block; margin: 0 0 .8rem; padding: .2rem .55rem; border-radius: 3px; background: rgba(52, 211, 153, .12); color: #6ee7b7; font-size: .8rem; }
.inline-form { margin-top: .9rem; }
.section-title { margin: 2.2rem 0 0; font-size: clamp(1.3rem, 3vw, 1.6rem); }
.section-title.danger { color: #fca5a5; }
.section-title.section-first { margin-top: 1.4rem; }
.section-title + .hint { margin-top: .6rem; }
.section-title + .panel, .section-title + .notice { margin-top: .8rem; }
.account-upload { margin: 1rem 0 0; }
.panel + .notice { margin-top: 1rem; }

/* ---------------------------------------------------------- textos legais */

.legal > .hint { margin-top: .8rem; }
.legal h2 { margin: 2rem 0 .7rem; font-size: clamp(1.25rem, 3vw, 1.55rem); color: var(--text); }
.legal p, .legal li { color: var(--dim); }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal-link { margin-right: 1.2rem; }


/* ------------------------------------------------------------ menu lateral */

.menu { position: relative; }
.menu-button {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .45rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(18, 22, 31, .8);
  cursor: pointer;
  list-style: none;
}
.menu-button::-webkit-details-marker { display: none; }
.menu-button:hover, .menu[open] .menu-button { border-color: var(--amber); }
.burger { display: grid; gap: 3px; width: 18px; padding: 0 .1rem; }
.burger i { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s; }
.menu[open] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
/* Aberto, o botão ganha um fundo que cobre a tela: tocar fora do painel é tocar no botão, que fecha. */
.menu[open] > .menu-button::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 9, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: default;
}
.menu-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(18, 22, 31, .9);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.menu-close:hover { border-color: var(--amber); color: var(--amber); }
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(340px, 88vw);
  overflow-y: auto;
  padding: 4.2rem 1.1rem 1.4rem;
  border-left: 1px solid var(--line-2);
  background:
    linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(56, 189, 248, .05) 1px, transparent 1px) -1px -1px / 24px 24px,
    var(--bg-2);
  box-shadow: -30px 0 60px -20px #000;
  animation: menu-in .25s var(--ease);
}
@keyframes menu-in { from { transform: translateX(30px); opacity: 0; } }
.menu-account { padding-bottom: 1rem; border-bottom: 1px dashed var(--line-2); }
.menu-me { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.menu-me > span:not(.avatar) { display: grid; justify-items: start; gap: .1rem; min-width: 0; }
.menu-me small { color: var(--amber); font-size: .8rem; }
.menu-me .user-tag { font-family: var(--f-mono); font-size: .92rem; flex-wrap: wrap; row-gap: .3rem; min-width: 0; }
/* O nome quebra só se não couber de jeito nenhum; o selo nunca se parte no meio (pedido do dono, 10/10/2026). */
.menu-me .user-tag-name { overflow-wrap: anywhere; min-width: 0; }
.menu-me .badge-official { flex: none; }
.menu-guest { display: flex; gap: .6rem; align-items: center; margin: 0; }
.menu-links { display: grid; gap: .15rem; padding: .9rem 0; border-bottom: 1px dashed var(--line-2); }
.menu-links a, .menu-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .98rem; }
.menu-links a:hover { background: rgba(245, 158, 11, .1); color: var(--hot); }
.menu-ico { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--f-mono); font-size: .85rem; color: var(--amber); }
.menu-small a { font-size: .88rem; color: var(--dim); padding-block: .4rem; }
.menu-small .menu-ico { color: var(--muted); }
.menu-lang { margin: 1rem 0 0; width: 100%; }
.menu-lang a { flex: 1; text-align: center; font-family: var(--f-body); font-size: .82rem; letter-spacing: 0; padding: .5rem .3rem; }
.menu-logout { margin-top: 1rem; }
.menu-logout .btn-ghost { width: 100%; padding: .6rem; }

/* O cabeçalho agora é só logo, subir, jogo e o menu: cabe em qualquer celular. */
@media (max-width: 640px) {
  .head-game { display: none; }
}
@media (max-width: 330px) {
  .head-upload { display: none; }
}

/* ------------------------------------------------------------ avatar */

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .95rem;
  color: #0b0e13;
}
.avatar-lg { width: 3.2rem; height: 3.2rem; font-size: 1.6rem; }
.avatar-c0 { background: #f59e0b; } .avatar-c1 { background: #38bdf8; } .avatar-c2 { background: #34d399; }
.avatar-c3 { background: #fb923c; } .avatar-c4 { background: #a78bfa; } .avatar-c5 { background: #f472b6; }
.avatar-c6 { background: #facc15; } .avatar-c7 { background: #2dd4bf; }

/* ------------------------------------------------------------ perfil */

.profile { padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 9vh, 5rem); }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding: 1.3rem 1.4rem; }
.profile-head .avatar-lg { width: 4.4rem; height: 4.4rem; font-size: 2.2rem; }
.profile-who { flex: 1; min-width: 220px; }
.profile-who h1 { font-family: var(--f-mono); font-size: clamp(1.3rem, 4vw, 1.8rem); text-transform: none; letter-spacing: 0; }
.profile-who > p { margin: .3rem 0 0; }
.profile-rank { display: flex; align-items: center; gap: .7rem; margin-top: .7rem !important; }
.profile-rank strong { font-family: var(--f-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hot); }
.profile-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.rank-badge { flex: none; width: 2.6rem; height: 2.6rem; padding: .3rem; border: 1px solid rgba(245, 158, 11, .5); border-radius: 8px; background: rgba(245, 158, 11, .1); }
.rank-line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rank-fill { fill: var(--amber); }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin: 1rem 0 .4rem; padding: 0; list-style: none; }
.profile-stats li { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(18, 22, 31, .75); }
.profile-stats b { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--text); }
.profile-stats span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.profile .section-title { margin-top: 2rem; }

/* ------------------------------------------------------------ subir no topo */

.head-upload {
  padding: .32rem .7rem;
  border: 1px solid var(--amber);
  border-radius: 3px;
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  white-space: nowrap;
}
.head-upload:hover { background: rgba(245, 158, 11, .12); }
@media (max-width: 480px) {
  .lang a { padding: .38rem .45rem; }
  .head-upload { padding: .28rem .5rem; font-size: .82rem; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.6rem; }

/* ------------------------------------------------------------- explorar */

.browse { padding-block: 2.4rem 2rem; scroll-margin-top: 70px; }
.browse-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.search-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .35rem .35rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(11, 14, 19, .9);
  transition: border-color .2s, box-shadow .2s;
}
.search-row:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.search-icon { flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-row input { flex: 1; min-width: 0; padding: .6rem 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; outline: none; }
.search-row .btn { flex: none; }
.kind-tabs { display: flex; gap: .3rem; padding: .25rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(18, 22, 31, .7); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.kind-tabs::-webkit-scrollbar { display: none; }
.kind-tabs a { padding: .5rem 1rem; border-radius: 6px; font-family: var(--f-display); font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-decoration: none; white-space: nowrap; }
.kind-tabs a span { margin-left: .35rem; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.kind-tabs a:hover { color: var(--text); }
.kind-tabs a.on { background: var(--amber); color: #0b0e13; }
.kind-tabs a.on span { color: rgba(11, 14, 19, .7); }
/* Os chips quebram linha no computador; no celular deslizam para o lado, sem barra de rolagem à mostra
   (a barra do navegador ficava feia no computador, pedido do dono, 10/10/2026). */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
@media (max-width: 719px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
}
.chip-link { flex: none; padding: .35rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; color: var(--dim); text-decoration: none; white-space: nowrap; background: rgba(18, 22, 31, .6); }
.chip-link span { margin-left: .3rem; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.chip-link:hover { border-color: var(--amber); color: var(--text); }
.chip-link.on { border-color: var(--amber); background: rgba(245, 158, 11, .14); color: var(--hot); }
.chip-link.empty { opacity: .45; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.select-box { display: grid; gap: .25rem; min-width: 0; flex: 1 1 150px; }
.select-box span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.select-box select { width: 100%; min-width: 0; text-overflow: ellipsis; padding: .55rem .65rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: var(--text); font: inherit; font-size: .92rem; }
.select-box select:focus { outline: none; border-color: var(--amber); }
.toggle { display: flex; align-items: center; gap: .5rem; padding: .55rem .2rem; font-size: .9rem; color: var(--dim); cursor: pointer; flex: 1 1 220px; }
.toggle input { width: 1.05rem; height: 1.05rem; accent-color: var(--amber); }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-top: 1.4rem; }
.results-head p { margin: 0; font-size: .88rem; }
.clear-link { font-size: .88rem; color: var(--amber); }
.empty-state { margin-top: 1rem; padding: 2.4rem 1.4rem; border: 1px dashed var(--line-2); border-radius: 10px; text-align: center; background: rgba(11, 14, 19, .7); }
.empty-title { margin: 0 0 .4rem; font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--text); }
.empty-state .hero-actions { justify-content: center; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin-top: 2rem; }
.page-numbers { display: flex; gap: .3rem; }
.page-num, .page-step { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .7rem; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--f-mono); font-size: .85rem; color: var(--dim); text-decoration: none; background: rgba(18, 22, 31, .7); }
.page-num:hover, .page-step:hover { border-color: var(--amber); color: var(--text); }
.page-num.on { border-color: var(--amber); background: var(--amber); color: #0b0e13; }
.page-step.off { opacity: .35; }
.page-gap { align-self: center; color: var(--muted); }
.how { padding-block: 1.5rem clamp(3rem, 9vh, 5rem); }
.how .cards { padding-bottom: 0; margin-top: 1rem; }
.card-step { display: block; margin-bottom: .6rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .2em; color: var(--sky); }
.card h3 { margin: 0 0 .6rem; font-size: 1.4rem; color: var(--text); }

/* --------------------------------------------------------------- cartões */

.item-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: .9rem;
}
.item-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.item-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.item-card-media { position: relative; display: block; border-bottom: 1px solid var(--line); }
.item-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; image-rendering: pixelated; background: var(--panel); }
.item-card-kind { position: absolute; top: .5rem; left: .5rem; padding: .15rem .45rem; border-radius: 3px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(7, 9, 13, .82); }
.item-card-kind.kind-projectile { color: var(--amber); border: 1px solid rgba(245, 158, 11, .5); }
.item-card-kind.kind-target { color: var(--sky); border: 1px solid rgba(56, 189, 248, .5); }
/*
 * A coluna do texto nunca passa da largura do cartão (`minmax(0, 1fr)`). Sem isso, a linha mais larga que
 * não quebra, o "@armorsandbox OFICIAL" num cartão estreito do celular, alargava a coluna para fora do
 * cartão, e o título quebrava nessa largura falsa e saía cortado à direita (visto em 11/10/2026, com a
 * letra maior do Android).
 */
.item-card-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: .7rem .8rem .8rem; min-width: 0; }
/* No cartão, o selo desce para a linha de baixo quando não cabe ao lado do nome, o nome longo acaba em
   reticências (em vez de quebrar uma letra para a linha seguinte) e o próprio selo encolhe com a letra
   muito grande. Medido no celular de 375 px até com a letra no dobro do tamanho. */
.item-card-author .user-tag { flex-wrap: wrap; row-gap: .2rem; max-width: 100%; }
.item-card-author .user-tag-name { min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.item-card-author .badge-official { min-width: 0; max-width: 100%; overflow: hidden; }
.item-card-cat { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.item-card-title { color: var(--text); font-size: 1rem; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.item-card-author { font-size: .8rem; color: var(--dim); }
.item-card-stats { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .2rem; font-size: .78rem; color: var(--dim); }
.item-card-rating { display: inline-flex; align-items: center; gap: .3rem; }
.item-card-dl { font-family: var(--f-mono); color: var(--muted); }
/*
 * No celular, duas colunas (pedido do dono, 10/10/2026): uma só desperdiçava a tela. Este bloco vem depois
 * das regras do cartão: antes delas, as regras de cima ganhavam, e a letra menor do celular nunca valia
 * (o título ficava com 16 px; achado em 11/10/2026).
 */
@media (max-width: 639px) {
  .item-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .item-card-body { padding: .55rem .6rem .65rem; gap: .15rem; }
  .item-card-title { font-size: .86rem; }
  .item-card-cat { font-size: .58rem; }
  .item-card-author { font-size: .72rem; }
  .item-card-author .badge-official { letter-spacing: .04em; }
  .item-card-stats { flex-wrap: wrap; gap: .1rem .4rem; font-size: .7rem; }
  .item-card-kind { top: .35rem; left: .35rem; font-size: .54rem; padding: .1rem .35rem; }
}

/* As estrelas: cinco apagadas e, por cima, cinco cheias cortadas na largura da nota (de meia em meia). */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: .05em; white-space: nowrap; }
.stars-empty { color: rgba(123, 133, 152, .45); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--amber); width: 0; }
.stars-1 .stars-fill { width: 10%; } .stars-2 .stars-fill { width: 20%; } .stars-3 .stars-fill { width: 30%; }
.stars-4 .stars-fill { width: 40%; } .stars-5 .stars-fill { width: 50%; } .stars-6 .stars-fill { width: 60%; }
.stars-7 .stars-fill { width: 70%; } .stars-8 .stars-fill { width: 80%; } .stars-9 .stars-fill { width: 90%; }
.stars-10 .stars-fill { width: 100%; }

/* O selo da conta oficial. */
.user-tag { display: inline-flex; align-items: center; gap: .35rem; }
.badge-official {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .08rem .4rem .08rem .3rem;
  border: 1px solid rgba(245, 158, 11, .6);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .22), rgba(251, 146, 60, .12));
  font-family: var(--f-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hot);
  white-space: nowrap;
}
.badge-shield { fill: var(--amber); }
.badge-check { fill: none; stroke: #0b0e13; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* A nota na página do item. */
.rating { margin-top: .4rem; }
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .6rem; }
.rating-summary .stars { font-size: 1.25rem; }
.rating-summary strong { font-family: var(--f-mono); font-size: 1.05rem; color: var(--text); }
.rate-form .hint { margin-bottom: .5rem; }
.rate-buttons { display: flex; align-items: center; gap: .6rem; }
.rate-zero { min-width: 2rem; height: 2rem; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--dim); font-family: var(--f-mono); cursor: pointer; }
.rate-zero:hover, .rate-zero.on { border-color: var(--amber); color: var(--amber); }
/* Ao contrário no HTML (5 a 1) e virado pelo CSS: assim o hover acende a estrela e as de antes dela. */
.rate-stars { display: inline-flex; flex-direction: row-reverse; }
.rate-stars button { padding: 0 .12rem; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: rgba(123, 133, 152, .5); cursor: pointer; transition: color .12s, transform .12s; }
.rate-stars button.on { color: var(--amber); }
.rate-stars:hover button { color: rgba(123, 133, 152, .5); }
.rate-stars button:hover, .rate-stars button:hover ~ button { color: var(--hot); }
.rate-stars button:hover { transform: scale(1.12); }

/* ------------------------------------------------------------- subir um item */

.page-mid { max-width: 980px; padding-block: clamp(2.2rem, 7vh, 4rem) clamp(3rem, 9vh, 5rem); }
.page-mid h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.page-mid .lead { margin-top: 1rem; }
.field select, .field textarea {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.field input[type="file"] { padding: .6rem; cursor: pointer; }
.form-error ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.pick { margin: 0; padding: .9rem 1rem; border: 1px solid var(--line-2); border-radius: 6px; }
.pick legend { padding: 0 .3rem; font-weight: 600; color: var(--text); }
.pick-option { display: block; padding: .35rem 0; color: var(--dim); cursor: pointer; }
.pick-option input { accent-color: var(--amber); }
.upload-details { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .upload-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
  .upload-preview { position: sticky; top: 80px; }
}
.upload-details[hidden], [data-only][hidden] { display: none; }
.upload-preview { margin: 0; }
.upload-preview canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); image-rendering: pixelated; }
.upload-preview figcaption { margin-top: .4rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.upload-fields { display: grid; gap: 1.1rem; }
.field .error:empty, .check .error:empty { display: none; }

/* ---------------------------------------------------------- página do item */

.item-page { padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 9vh, 5rem); }
.item-head h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.item-byline { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.item-byline span:first-child { color: var(--dim); font-family: var(--f-mono); }
.item-main { display: grid; gap: 1.4rem; margin-top: 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .item-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }
.item-figure { margin: 0; }
.item-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); image-rendering: pixelated; }
.item-side { padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.item-download { width: 100%; font-size: 1.2rem; padding-block: 1rem; }
/* "Ainda não tem o jogo?" (GetGame, bits.tsx): as lojas logo abaixo do Baixar. A aberta leva a moldura
   âmbar dos botões de armorsandbox.com; a que ainda não abriu fica apagada e não é link. */
.get-game { margin-top: .95rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.get-game-title { margin: 0 0 .6rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.get-game-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.store-btn { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); text-decoration: none; }
.store-btn svg { flex: none; }
.store-btn .ico-fill { fill: currentColor; }
.store-btn.store-live { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(245, 158, 11, .2), 0 14px 30px -22px rgba(245, 158, 11, .9); transition: transform .2s ease, box-shadow .2s ease; }
.store-btn.store-live:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(245, 158, 11, .35), 0 18px 34px -20px rgba(245, 158, 11, .95); }
.store-btn.store-soon { opacity: .55; cursor: default; }
.store-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.store-txt small { font-family: var(--f-mono); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-txt b { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
/* Tela bem estreita (até 340px): um botão por linha, para o nome da loja não espremer. */
@media (max-width: 340px) { .get-game-row { grid-template-columns: minmax(0, 1fr); } }
.badge-premium { margin: .9rem 0 0; padding: .45rem .6rem; border: 1px solid rgba(245, 158, 11, .45); border-radius: 4px; background: rgba(245, 158, 11, .08); color: var(--hot); font-size: .82rem; }
.side-title { margin: 1.3rem 0 .6rem; font-size: 1.15rem; color: var(--text); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); text-align: right; font-family: var(--f-mono); font-size: .85rem; }
.materials { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.materials li { display: flex; justify-content: space-between; gap: 1rem; color: var(--dim); }
.materials li span:last-child { font-family: var(--f-mono); font-size: .82rem; color: var(--text); }
.item-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 0; }
.chip { padding: .2rem .5rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .76rem; color: var(--dim); }
.item-desc { max-width: 72ch; margin-top: 2rem; }
.item-desc p { color: var(--text); white-space: pre-line; }
.howto { margin-top: 2rem; }
.howto h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); color: var(--text); margin-bottom: .8rem; }
.howto ol { margin: 0 0 .8rem; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--dim); }
.item-delete { margin-top: 2rem; }
.item-delete .section-title { margin: 0; }

/* ----------------------------------------------------------------- rodapé */

.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding-block: 1.8rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.foot-brand { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .84rem; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .bp-spall path { opacity: .8; }
  .bp-pulse { opacity: .6; }
}

/* ------------------------------------------------------------ tutorial */

.tutorial h1 { margin-top: .2rem; }
.tut-tabs { margin: 1.6rem 0 1.4rem; }
.tut-soon { margin-left: .45rem; padding: .05rem .35rem; border-radius: 3px; background: rgba(56, 189, 248, .18); color: var(--sky); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; vertical-align: middle; }
.tut-steps { display: grid; gap: 1.2rem; margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: tut; }
.tut-step { display: grid; gap: 1rem 1.6rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
@media (min-width: 820px) {
  .tut-step { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
  .tut-step.tut-tall { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .tut-step.tut-text { grid-template-columns: 1fr; }
}
.tut-num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.tut-copy h2 { margin: .35rem 0 .5rem; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--text); }
.tut-copy p { margin: 0; }
.tut-shot { margin: 0; }
.tut-shot img { width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); box-shadow: 0 18px 40px -24px #000; }
/* A foto do workshop é de um celular em pé: fica estreita, com moldura de aparelho. */
.tut-phone { max-width: 230px; justify-self: center; padding: .5rem; border: 1px solid var(--line-2); border-radius: 28px; background: #05070a; }
.tut-phone img { border-radius: 20px; border: 0; }
.tut-landscape { padding: .45rem; border: 1px solid var(--line-2); border-radius: 22px; background: #05070a; }
.tut-landscape img { border-radius: 16px; border: 0; }
.tut-steam { margin-bottom: 1.6rem; }

/* ------------------------------------------------------------ redes */

.menu-link { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.menu-link:hover { background: rgba(245, 158, 11, .1); color: var(--hot); }
.social { display: flex; gap: .5rem; align-items: center; }
.social a, .social button {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(18, 22, 31, .7);
  color: var(--dim);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.social a:hover, .social button:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.ico-line { fill: none; stroke: currentColor; stroke-width: 1.9; }
.ico-fill { fill: currentColor; }
.menu-social { padding: 1rem 0 0; }
.foot-social { margin-left: auto; }
@media (max-width: 640px) { .foot-social { margin-left: 0; } }

.soon-pop {
  width: min(360px, calc(100vw - 2rem));
  margin: auto;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid var(--amber);
  border-radius: 12px;
  background:
    linear-gradient(rgba(56, 189, 248, .06) 1px, transparent 1px) -1px -1px / 22px 22px,
    linear-gradient(90deg, rgba(56, 189, 248, .06) 1px, transparent 1px) -1px -1px / 22px 22px,
    var(--panel);
  color: var(--text);
  box-shadow: 0 30px 80px -20px #000;
  text-align: center;
}
.soon-pop::backdrop { background: rgba(4, 6, 9, .65); backdrop-filter: blur(3px); }
.soon-title { margin: 0 0 .4rem; font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--hot); }
.soon-pop p { margin: 0 0 1rem; color: var(--dim); }

/* ------------------------------------------------------------ painel de métricas */

.admin { padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 9vh, 5rem); }
.btn-admin { background: linear-gradient(135deg, var(--sky), #0ea5e9); }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1.4rem 0 .6rem; padding: 0; list-style: none; }
.admin-kpis li { position: relative; display: grid; gap: .2rem; padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.admin-kpis b { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.admin-kpis span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.admin-kpis small { font-size: .74rem; color: var(--muted); }
.kpi-live { border-color: rgba(52, 211, 153, .55) !important; }
.kpi-live b { color: #34d399; }
.kpi-dot { position: absolute; top: .9rem; right: .9rem; width: .6rem; height: .6rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: kpi-pulse 1.8s infinite; }
@keyframes kpi-pulse { 70% { box-shadow: 0 0 0 .6rem rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.admin-card { margin-top: 1.1rem; }
.admin-card .section-title { margin: 0 0 .8rem; font-size: 1.15rem; }
.admin-card .section-title:not(:first-child) { margin-top: 1.2rem; }
.admin-card .hint + svg, .admin-card .hint + .heat-scroll { margin-top: .6rem; }
.admin-grid { display: grid; gap: 0 1.1rem; }
@media (min-width: 860px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.chart { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-family: var(--f-mono); font-size: 10px; }
.chart-area { fill: rgba(245, 158, 11, .14); }
.chart-visitors { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart-views { fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .8; }
.chart-dot { fill: var(--bg); stroke: var(--amber); stroke-width: 1.6; }
.chart-dot:hover { fill: var(--amber); }
.admin-legend { display: flex; gap: 1.2rem; margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: .9rem; height: 3px; margin-right: .4rem; vertical-align: middle; border-radius: 2px; }
.lg-visitors::before { background: var(--amber); }
.lg-views::before { background: var(--sky); }
.admin-bars3 { display: grid; gap: 1rem; }
@media (min-width: 760px) { .admin-bars3 { grid-template-columns: repeat(3, 1fr); } }
.mini-bars { margin: 0; }
.mini-bars figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini-bars figcaption b { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0; color: var(--text); }
.bar-uploads .bar { fill: var(--amber); }
.bar-signups .bar { fill: #34d399; }
.bar-downloads .bar { fill: var(--sky); }
.bar:hover { opacity: .75; }
.heat-scroll { overflow-x: auto; }
.chart-heat { min-width: 560px; }
.heat-cell { fill: var(--amber); }
.heat-zero { fill: var(--panel-2); }
.share-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.share-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; font-size: .9rem; }
.share-n { font-family: var(--f-mono); color: var(--muted); font-size: .8rem; }
.share-bar { grid-column: 1 / -1; width: 100%; height: 6px; }
.share-bar rect { fill: var(--amber); }
.admin-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.admin-totals li { display: grid; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(7, 9, 13, .5); }
.admin-totals b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.admin-totals span { font-size: .78rem; color: var(--muted); }
.admin-list { display: grid; gap: .45rem; margin: 0; padding-left: 1.2rem; }
.admin-list li { font-size: .9rem; }
.admin-list b { float: right; font-family: var(--f-mono); font-weight: 500; color: var(--hot); }

/* ------------------------------------------------------------ foto de perfil */

.avatar-img { object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avatar-panel { margin-bottom: 1rem; }
.avatar-panel h3 { margin: 0 0 .8rem; font-size: 1.05rem; }
.avatar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.avatar-row .avatar-lg { width: 4rem; height: 4rem; font-size: 2rem; }
.avatar-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.avatar-form .hint { flex-basis: 100%; }
.avatar-preview { width: 4rem; height: 4rem; border: 2px solid var(--amber); }
.avatar-pick { position: relative; cursor: pointer; }
.avatar-pick:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.admin-remove { margin: .6rem 0 0; }
.avatar-preview[hidden] { display: none; }

.backup-ok { border-color: rgba(52, 211, 153, .45); }
.backup-ok .section-title { color: #34d399; }
.backup-warn { border-color: rgba(245, 158, 11, .55); }
.backup-warn .section-title { color: var(--amber); }
.admin-card > p { margin: 0 0 .4rem; }

/* A foto no próprio perfil leva à troca. */
.avatar-edit { position: relative; display: inline-grid; justify-items: center; gap: .3rem; text-decoration: none; color: var(--amber); font-size: .72rem; }
.avatar-edit:hover .avatar { outline: 2px solid var(--amber); outline-offset: 2px; }
.avatar-edit span { font-family: var(--f-mono); letter-spacing: .06em; }

/* Como funcionam as patentes. */
.rank-how { margin-top: .6rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(18, 22, 31, .6); }
.rank-how summary { cursor: pointer; color: var(--amber); font-size: .9rem; }
.rank-how p { margin: .7rem 0 .4rem; color: var(--dim); font-size: .9rem; }
.rank-how ul { margin: 0 0 .5rem; padding-left: 1.2rem; color: var(--dim); font-size: .9rem; display: grid; gap: .25rem; }
.rank-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: .8rem 0 .2rem; padding: 0; list-style: none; }
.rank-ladder li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; }
.rank-ladder li .rank-badge { grid-row: 1 / 3; width: 2.1rem; height: 2.1rem; }
.rank-ladder li b { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.rank-ladder li span { font-size: .74rem; color: var(--muted); }
.rank-ladder li.on { border-color: var(--amber); background: rgba(245, 158, 11, .1); }

/* Celular estreito (360 px e menos): as abas Todos / Projéteis / Alvos cabem sem deslizar. */
@media (max-width: 420px) {
  .kind-tabs a { padding: .45rem .6rem; font-size: .92rem; letter-spacing: .03em; }
  .kind-tabs a span { margin-left: .25rem; }
}

/* ------------------------------------------------------------ moderação */

/* O selo da equipe: o mesmo escudo do oficial, em roxo (pedido do dono, 10/10/2026). */
.badge-moderator {
  border-color: rgba(167, 139, 250, .65);
  background: linear-gradient(135deg, rgba(167, 139, 250, .25), rgba(139, 92, 246, .12));
  color: #ddd6fe;
}
.badge-moderator .badge-shield { fill: #a78bfa; }
.badge-featured { display: inline-block; margin: .4rem 0 0; padding: .15rem .55rem; border: 1px solid rgba(245, 158, 11, .6); border-radius: 999px; background: rgba(245, 158, 11, .12); color: var(--hot); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.mod-notice { margin: 1rem 0 0; }
.mod-box { margin-top: 1.4rem; border-color: rgba(167, 139, 250, .5); background: linear-gradient(180deg, rgba(139, 92, 246, .08), var(--bg-2)); }
.mod-box .section-title { margin: 0 0 .4rem; font-size: 1.15rem; color: #c4b5fd; }
.mod-controls { display: grid; gap: .8rem; margin-top: .6rem; }
.mod-reason-form { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.mod-reason-form .select-box { flex: 1 1 220px; }
.mod-reason-form .hint { flex-basis: 100%; margin: 0; }
.mod-row-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.mod-inline { display: inline; margin: 0; }
.mod-danger { border-color: rgba(248, 113, 113, .6) !important; color: #fca5a5 !important; }
.report-box { margin-top: 1.4rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; }
.report-box summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.report-box .form { margin-top: .8rem; display: grid; gap: .7rem; }
.report-box textarea { width: 100%; padding: .55rem .65rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: var(--text); font: inherit; resize: vertical; }
.report-login { margin-top: 1.4rem; }
.moderation { padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 9vh, 5rem); }
.moderation .count { margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(167, 139, 250, .2); color: #ddd6fe; font-family: var(--f-mono); font-size: .8rem; vertical-align: middle; }
.mod-list { display: grid; gap: .6rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.mod-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(18, 22, 31, .7); }
.mod-what { display: grid; gap: .2rem; min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.mod-what small { color: var(--muted); }
.mod-notes { color: var(--dim); font-size: .85rem; }
.mod-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.mod-log { display: grid; gap: .35rem; margin: .8rem 0 0; padding-left: 0; list-style: none; font-size: .88rem; }
.mod-log li { padding: .35rem 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.mod-log time { margin-right: .5rem; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }

/* ------------------------------------------------------------ compartilhar */

.share-box { margin-top: 1rem; }
.share-row { display: flex; gap: .4rem; }
.share-row input { flex: 1; min-width: 0; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--dim); font-family: var(--f-mono); font-size: .78rem; }
.share-row input:focus { outline: none; border-color: var(--amber); color: var(--text); }
.share-row .btn-ghost { flex: none; }
.share-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.share-links .btn-ghost { font-size: .82rem; padding: .35rem .7rem; }
.share-status { min-height: 1.1em; margin-top: .3rem; color: #34d399; }

/* O aviso de denúncias da equipe: a bolinha no botão do menu e o número na aba. */
.menu-button { position: relative; }
.notify-dot {
  position: absolute;
  top: -.35rem;
  right: -.35rem;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .25rem;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-family: var(--f-mono);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}
.notify-count { margin-left: auto; padding: .05rem .5rem; border-radius: 999px; background: #ef4444; color: #fff; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; }
.count-alert { background: #ef4444 !important; color: #fff !important; }
.mod-row-alert { border-color: rgba(239, 68, 68, .55); }

/* O autor na página do item é um link para o perfil (11/10/2026). */
.item-author { color: inherit; text-decoration: none; border-radius: 4px; }
.item-author:hover .user-tag-name, .item-author:focus-visible .user-tag-name { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
/* As abas de tipo e os botões de ordem do perfil. */
.profile-filters { display: grid; gap: .6rem; margin: .4rem 0 .2rem; }
