/* IconyX — mobile
   Base de projeto 390px, fluida de 320 a 640px. Fluxo vertical, sem posicionamento
   absoluto de página. Artes e cores vêm do mesmo PSD (layers-desktop.json). */

.page-mobile {
  overflow-x: hidden;
  background: var(--c-body) url('/assets/img/mobile/textura-pedra.webp') center top / 256px 256px repeat;
}
@supports not (background-image: url('a.webp')) {
  .page-mobile { background-image: url('/assets/img/mobile/textura-pedra.jpg'); }
}
.page-mobile > * { max-width: 640px; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--c-gold); color: #000; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ============ BARRA FIXA ============ */
.barra-topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 8px 0 16px;
  background: rgba(14, 14, 14, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1f1f1f;
}
.logo a { display: block; height: 48px; }
.logo img { height: 48px; width: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px;
  color: var(--c-text); font-family: var(--ff-display); font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  border-radius: 6px;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn:hover { background: rgba(255, 255, 255, .06); }

/* ============ HERO ============ */
.hero { position: relative; }
.hero__img img { width: 100%; height: auto; mask-image: linear-gradient(#000 72%, transparent 100%); -webkit-mask-image: linear-gradient(#000 72%, transparent 100%); }
.hero__marca {
  position: absolute; left: 12px; top: 35%; width: min(36%, 160px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .85));
}
.hero__marca img { width: 100%; height: auto; }

/* ============ BOTÕES DE FOGO ============ */
.acoes {
  display: flex; justify-content: center; gap: 0;
  margin-top: -40px; position: relative; z-index: 2;
}
.btn-fogo {
  width: clamp(140px, 42vw, 180px); height: clamp(140px, 42vw, 180px);
  overflow: hidden; border-radius: 50%;
  mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  opacity: .82;
  filter: brightness(.9);
  transition: opacity .25s ease, filter .25s ease;
}
.btn-fogo img { width: 100%; height: 100%; object-fit: cover; }
.btn-fogo picture { display: block; width: 100%; height: 100%; }
.btn-fogo:hover, .btn-fogo:focus-visible { opacity: 1; filter: brightness(1.3) saturate(1.15); }
.btn-fogo:active { filter: brightness(1.05) saturate(1.05); }
@media (prefers-reduced-motion: reduce) { .btn-fogo { transition: none; } }

/* ============ BLOCOS ============ */
.conteudo { padding: 8px 16px 24px; }
.bloco { margin-top: 28px; }
.bloco__titulo { font-size: 24px; margin-bottom: 14px; }

/* Vídeo */
.video__tela {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid #2a2a2a; box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
}

/* Sobre */
.sobre__box {
  position: relative; padding: 14px 16px 16px;
  background: rgba(30, 32, 34, .85) url('/assets/img/shared/textura-sobre.webp') center / cover no-repeat;
  border: 1px solid #2a2a2a; box-shadow: inset 0 0 18px rgba(0, 0, 0, .6);
}
.sobre__ativos-label { font-size: 13px; letter-spacing: .04em; margin-bottom: 6px; }
.barra {
  position: relative; height: 28px;
  background: var(--c-bar-empty); border: 1px solid #0a0a0a;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .05);
}
.barra__fill { position: absolute; left: 1px; top: 2px; bottom: 2px; background: linear-gradient(90deg, var(--c-bar-fill-l), var(--c-bar-fill-r)); }
.barra__num { position: absolute; right: 8px; top: 0; line-height: 26px; font-size: 13px; }
.sobre__lista { margin-top: 12px; font-size: 15px; line-height: 28px; letter-spacing: .06em; }
.sobre__lista b { font-weight: 400; color: var(--c-gold); }
.c-blue { color: var(--c-blue-soft); font-weight: 400; }
.c-red { color: var(--c-red-soft); font-weight: 400; }
.c-green { color: var(--c-green-soft); font-weight: 400; }

/* Login */
.login__form { display: grid; gap: 10px; }
.login .input-dark { height: 44px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.login__btn { height: 46px; font-size: 18px; font-weight: 400; }
/* Erro do login e estado logado ("minha conta"). Claude Code 26/10/2026. */
.login__erro { font-size: 14px; line-height: 1.4; color: #ff8a7a; text-align: center; }
.login__conta { display: grid; gap: 12px; text-align: center; }
.login__ola { font-size: 16px; letter-spacing: .06em; overflow-wrap: anywhere; }
.login__ola b { font-weight: 400; color: var(--c-gold); }
.login__vip { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-faint); }
.login__acao { height: 46px; font-family: var(--ff-display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.login__sair {
  background: none; border: 0; padding: 8px 0; cursor: pointer; width: 100%;
  font: inherit; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-faint); text-decoration: underline; text-underline-offset: 4px;
}
.login__sair:hover, .login__sair:focus-visible { color: var(--c-text); }
/* "Esqueci a senha". Claude Code 29/10/2026. */
.login__esqueci {
  display: block; width: 100%; margin-top: 4px; padding: 10px 0;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-faint); text-decoration: underline; text-underline-offset: 4px;
}
.login__esqueci:hover, .login__esqueci:focus-visible { color: var(--c-gold); }

/* Anúncios */
.anuncios .bloco__titulo a { color: inherit; }  /* leva a /noticias (Claude Code 29/10/2026) */
.anuncios__vazio { padding: 12px 2px; font-size: 14px; color: var(--c-text-faint); }
.noticia {
  position: relative; padding: 8px 56px 10px 2px; min-height: 52px;
  border-bottom: 1px solid var(--c-line-2); box-shadow: 0 1px 0 var(--c-line);
}
.noticia__cat { font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.noticia__tag { color: var(--c-teal); }
.noticia__fecha { color: var(--c-red-hot); }
.noticia__resumo { font-size: 14px; line-height: 1.3; margin-top: 2px; }
.noticia__data { display: block; margin-top: 2px; font-size: 12px; color: var(--c-orange); font-weight: 400; }
.noticia__mais {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; font-size: 24px; font-weight: 400; line-height: 1;
  background: var(--c-plus); border-color: #1a0d0c;
}

/* IXFC */
.ixfc__top { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.ixfc__top-titulo { font-size: 14px; text-shadow: 0 0 6px rgba(255, 255, 255, .45); margin-bottom: 4px; }
.card { display: flex; flex-direction: column; align-items: center; }
.card img { width: 100%; height: auto; max-width: 115px; }
.card__nome {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 87px; height: 20px; margin-top: -6px;
  font-size: 10.5px; font-weight: 300; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(#8d2f21, var(--c-namebar)); border: 1px solid #3a120c; text-shadow: 0 1px 1px #000;
}
.card--top img { max-width: 182px; }
.card--top .card__nome {
  max-width: 120px; height: 25px; font-size: 14.5px; margin-top: -14px;
  background: linear-gradient(#b8843f, var(--c-namebar-top) 60%, #7e5324); border-color: #4d3110;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 10px rgba(255, 190, 90, .25);
}
.ixfc__lista { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; }
.ixfc__lista .card { flex: 0 0 auto; width: min(115px, calc((100% - 12px) / 3)); }
@media (min-width: 360px) { .ixfc__lista .card { width: min(115px, calc((100% - 18px) / 4)); } }

/* Ranking */
.ranking__abas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 480px) { .ranking__abas { grid-template-columns: repeat(4, 1fr); } }
.aba {
  height: 44px; padding: 0 8px; color: #fff;
  font-size: 14.4px; letter-spacing: .04em;
  background: linear-gradient(var(--c-tab-top), var(--c-tab-bot));
  border: 1px solid var(--c-tab-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 3px rgba(0, 0, 0, .6);
}
.aba[aria-selected="true"] { filter: brightness(1.15) saturate(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 8px rgba(220, 80, 50, .5); }
.ranking__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .ranking__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ranking__lista[hidden] { display: none; }
.rank {
  padding: 4px 4px 8px; text-align: center;
  background: rgba(46, 47, 47, .24); border: 1px solid #3a3b3b; box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}
.rank__img { display: block; width: 100%; aspect-ratio: 94 / 93; overflow: hidden; background: #180f10; border: 1px solid #454646; margin-bottom: 6px; }
.rank__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rank__img--emblema { position: relative; } /* emblema da guild no card (Claude Code 15/11/2026) */
.rank__nome { display: block; font-size: 12px; font-weight: 700; color: var(--c-orange); }
.rank__meta { display: block; font-size: 11px; letter-spacing: .15em; color: var(--c-text-muted); }
.rank__rr { display: block; font-size: 11px; letter-spacing: .15em; color: var(--c-violet); }

/* Castle Siege */
.castle__cena { position: relative; width: min(455px, 100%); margin: 0 auto; aspect-ratio: 455 / 733; }
.castle__estatua, .castle__estatua img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.castle__emblema {
  position: absolute; left: 50%; top: 32.3%; width: max(20.4%, 80px); aspect-ratio: 1; transform: translateX(-50%);
  background: #0d0d0d; border: 1px solid #4c4c4c; box-shadow: 0 0 10px rgba(255, 255, 255, .15);
}
/* emblema da guild dona, como no jogo: brilho atras (mascara pintada) e a imagem na cor (Claude Code 15/11/2026) */
.castle__emblema-img, .rank__img .rank__emblema-img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.castle__brilho, .rank__brilho {
  position: absolute; inset: calc(6% - 3.5%); opacity: .5; background: var(--brilho-cor);
  -webkit-mask: var(--brilho-img) center / contain no-repeat; mask: var(--brilho-img) center / contain no-repeat;
}
.castle__donos {
  position: absolute; left: 50%; top: 45.3%; width: max(19.3%, 88px); transform: translateX(-50%);
  background: #171717; border: 1px solid #2c2c2c; text-align: center; padding: 10px 2px 8px;
}
.castle__donos dt { font-size: 10px; line-height: 1; margin-bottom: 12px; }
.castle__guild { font-size: 10px; font-weight: 700; color: var(--c-orange); line-height: 1; }
.castle__sub { font-size: 10px; line-height: 1; margin: 5px 0 6px; }
.castle__proximo { position: absolute; left: 50%; width: 200px; top: calc(45.3% + 122px); transform: translateX(-50%); text-align: center; }
.castle__proximo .t-glyphic { display: block; font-size: 10px; line-height: 1; }
.castle__quando { display: block; font-size: 10px; font-weight: 700; color: var(--c-orange); margin-top: 3px; }

/* Discord */
.discord__widget { display: block; width: 100%; height: 420px; border: 0; }

/* ============ RODAPÉ ============ */
.rodape {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  background: url('/assets/img/mobile/rodape-mobile.webp') center bottom / cover no-repeat;
}
.redes ul { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.redes a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #8a8a8a; border-radius: 50%; }
.redes svg { width: 24px; height: 24px; fill: currentColor; }
.redes a:hover, .redes a:focus-visible { color: var(--c-gold); }
.rodape__texto { font-size: 10px; line-height: 1.4; letter-spacing: .12em; color: var(--c-text-dim); }
.rodape__texto b { font-weight: 400; }
.rodape__credito { margin-top: 4px; font-size: 9px; letter-spacing: .15em; color: var(--c-text-faint); }
.rodape__credito b { font-weight: 400; }
.rodape__versao { margin-top: 16px; font-size: 14px; }
.rodape__versao a { display: inline-block; padding: 12px 8px; color: var(--c-text-faint); text-decoration: underline; text-underline-offset: 3px; }

/* ============ MODAL MENU ============ */
.modal--menu .links__lista { display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; padding: 2px; }
.modal--menu .btn-red {
  height: 46px; width: 100%;
  font-family: var(--ff-display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
}
.modal .badges a { min-height: 44px; display: flex; align-items: center; }

/* link "Ranking" do menu: não parar embaixo da barra do topo (sticky, 56px). Claude Code 29/10/2026. */
#ranking { scroll-margin-top: 64px; }

/* ---------- idioma (Claude Code 04/11/2026) ---------- */
.idiomas { display: flex; gap: 2px; margin-left: auto; margin-right: 6px; }
.idiomas a {
  display: block; min-width: 30px; padding: 4px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #8a8a8a; border: 1px solid #333;
}
.idiomas a[aria-current="true"] { color: #0e0e0e; background: var(--c-gold); border-color: var(--c-gold); }
.btn-fogo { position: relative; }
.btn-fogo__rotulo {
  position: absolute; left: 44%; top: 37%; transform: translate(-50%, -50%);
  font-family: var(--ff-display); font-size: clamp(10.5px, 3.15vw, 13.5px); font-weight: 700; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
