/*
	Site das regras: so a moldura que no jogo vem do css.css do wnEsc
	(titulo, hub-moldura) + cabecalho do site + ajustes para celular.
	O resto do visual vem de nui/paineis.css, igual ao jogo.
*/

:root {
  --cor-principal: #e11d2f;
  --cor-principal60: rgba(225, 29, 47, .6);
  --fundo: #0b0b0d;
  --texto: #fff;
  --texto-suave: rgba(255, 255, 255, .55);
  --linha: rgba(255, 255, 255, .08);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 40% at 15% -10%, rgba(225, 29, 47, .18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 110%, rgba(225, 29, 47, .10), transparent 70%),
    var(--fundo);
  color: var(--texto);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- cabecalho do site ------------------------------------------------- */

.web-topo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--linha);
  background: rgba(11, 11, 13, .7);
  backdrop-filter: blur(8px);
}

.web-marca {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.web-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.web-logo b { color: var(--cor-principal); }

.web-sep {
  width: 1px;
  height: 22px;
  background: var(--linha);
}

.web-sub {
  color: var(--texto-suave);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.web-discord {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease;
}

.web-discord:hover { background: #4752c4; }

/* ---- area das regras (mesma estrutura do jogo) -------------------------- */

.hub.web {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 26px 28px 28px;
}

.hub.web .container-regras { height: 100%; }

.titulo-container-caixas {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
}

.icone-titulo-container-caixas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border: 1px solid var(--cor-principal);
  border-radius: 10px;
  background: var(--cor-principal60);
  color: #fff;
  font-size: 20px;
  text-shadow: 0 0 5px #fff;
}

.titulo-titulo-container-caixas {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  white-space: nowrap;
}

.separador-titulo {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .2);
}

.hub-moldura {
  position: relative;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

/* no navegador nao ha login: some o que so funciona dentro do jogo */
.web [data-acao="sugerir"],
.web [data-tp-acao="novo"] {
  display: none !important;
}

/* Topicos: abas pessoais nao existem no site (sem login) */
.web [data-tp-aba="pendentes"],
.web [data-tp-aba="minhas"] {
  display: none !important;
}

/* Topicos: so visualizacao. No lugar dos botoes de voto: "Vote em game" */
.web .tp-votar .tp-voto,
.web .tp-dica { display: none !important; }

.web .tp-votar {
  justify-content: center;
  padding: 12px 14px;
  border: 1px dashed rgba(225, 29, 47, .45);
  border-radius: 10px;
  background: rgba(225, 29, 47, .07);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.web .tp-votar::before {
  content: "11b";
  margin-right: 10px;
  color: var(--cor-principal);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.web .tp-votar::after {
  content: "Vote em game · ESC › Configurações › Regras da Cidade › Tópicos";
}

/* conteudo das regras nunca passa da largura da tela */
.rg-conteudo img { max-width: 100%; height: auto; }
.rg-conteudo table { display: block; max-width: 100%; overflow-x: auto; }
.rg-conteudo { overflow-wrap: anywhere; }

/* ---- telas medias ------------------------------------------------------- */

@media (max-width: 1280px) {
  .titulo-container-caixas { flex-wrap: wrap; row-gap: 14px; }
  .separador-titulo { display: none; }
  .titulo-titulo-container-caixas { font-size: 24px; margin-right: auto; }
  .rg-busca { order: 5; width: 100%; }
}

/* ---- celular ------------------------------------------------------------ */

@media (max-width: 820px) {
  html, body { height: auto; }

  .web-topo { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .web-sep, .web-sub { display: none; }
  .web-discord span { display: none; }

  .hub.web { padding: 16px; }

  .icone-titulo-container-caixas { width: 40px; height: 40px; font-size: 16px; margin-right: 4px; }
  .titulo-titulo-container-caixas { font-size: 19px; }

  .rg-modos { order: 4; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .rg-modos::-webkit-scrollbar { display: none; }
  .rg-modo { padding: 8px 12px; font-size: 13px; }

  .rg-corpo { display: flex; flex-direction: column; }
  .rg-lateral { max-height: 260px; }
  .rg-leitor { height: auto; min-height: 60vh; overflow: visible; padding: 20px 18px 24px; }
  .rg-pagina-titulo { font-size: 21px; }

  .tp-card, .atu-card { padding: 14px; }
  .tp-tempo, .atu-hora { margin-left: 0; }
}
