/* MuNewSouls — conta (cadastro, entrar, regras, download). Carregado depois de styles.css. */

/* ---- cabeçalho: botões de conta à direita ---- */
.header__inner { display: flex; align-items: center; }
.header__inner > .nav { flex: 1 1 auto; }

.hauth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55em 0.95em;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-100);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(20 15 6 / 34%), rgb(6 9 18 / 62%));
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.hbtn:hover, .hbtn:focus-visible { color: #fff; border-color: var(--gold-300); }
.hbtn--gold {
  color: #1a1206;
  border-color: var(--gold-300);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
  box-shadow: 0 0 0 1px rgb(226 190 124 / 18%), 0 8px 26px -12px rgb(189 145 71 / 65%);
}
.hbtn--gold:hover, .hbtn--gold:focus-visible { color: #000; box-shadow: 0 0 0 1px rgb(226 190 124 / 40%), 0 10px 32px -10px rgb(189 145 71 / 80%); }

.navtoggle { margin-left: 0.5rem; }
/* Com os botões de conta, a placa só cabe em telas bem largas. */
@media (max-width: 111.999em) { .chip { display: none !important; } }

@media (max-width: 35.999em) {
  .brand__text { display: none !important; }
  .brand__mark { width: 3.1rem; }
  .hauth { gap: 0.35rem; }
  .hbtn { padding: 0.5em 0.7em; font-size: 0.64rem; letter-spacing: 0.1em; }
}

/* Entre 62em e 85em o trilho completo + botões não cabe: o menu continua no botão. */
@media (min-width: 62em) and (max-width: 84.999em) {
  .navtoggle { display: grid; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    margin: 0;
    background: rgb(4 6 13 / 97%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(120%);
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav__list { display: grid; overflow: hidden; min-height: 0; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.95rem clamp(1.25rem, 5vw, 2.5rem); font-size: var(--step--1); border-top: 1px solid rgb(189 145 71 / 12%); opacity: 1; }
  .nav__list > li:first-child .nav__link { border-top: 0; }
  .nav__link::after { display: none; }
  .header.is-open .nav { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--dur) var(--ease-out), visibility 0s linear; }
}

@media (min-width: 85em) {
  .hbtn { font-size: 0.74rem; padding: 0.6em 1.15em; }
}

/* ---- páginas de conta ---- */
.pagina {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)) 0 var(--space-xl);
}

.pagina__topo { text-align: center; margin-bottom: var(--space-l); }
.pagina__crest { width: clamp(9rem, 22vw, 13rem); margin: 0 auto var(--space-s); filter: drop-shadow(0 0 24px rgb(90 163 251 / 30%)); }
.pagina__titulo {
  font-size: var(--step-4);
  background: var(--metal-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: var(--engrave);
}
.pagina__sub { margin-top: var(--space-xs); color: var(--text-soft); font-size: var(--step-0); }

.painel {
  position: relative;
  width: min(100%, 34rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, rgb(13 20 40 / 86%), rgb(5 8 16 / 94%));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 90%), inset 0 1px 0 rgb(247 232 196 / 6%);
}
.painel--largo { width: min(100%, 52rem); }
.painel::before {
  content: '';
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background:
    linear-gradient(var(--gold-400), var(--gold-400)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--gold-400), var(--gold-400)) 100% 100% / 1px 14px no-repeat;
}

.form { display: grid; gap: 1.05rem; }
.campo { display: grid; gap: 0.35rem; }
.campo label, .campo__rot {
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.campo input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgb(3 5 12 / 80%);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.campo input:focus { outline: none; border-color: var(--gold-300); box-shadow: 0 0 0 3px rgb(226 190 124 / 18%); }
.campo input[aria-invalid='true'] { border-color: #d9654f; }
.campo__dica { font-size: var(--step--2); color: var(--text-muted); }

.form .btn { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ouro {
  color: #1a1206;
  border-color: var(--gold-300);
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
}
.btn--ouro:hover, .btn--ouro:focus-visible { color: #000; }

.captcha { min-height: 65px; display: flex; justify-content: center; }

.aviso {
  padding: 0.75rem 0.95rem;
  font-size: var(--step--1);
  border: 1px solid var(--line);
  background: rgb(3 5 12 / 70%);
  color: var(--text-soft);
}
.aviso:empty { display: none; }
.aviso--erro { border-color: rgb(217 101 79 / 60%); color: #ffb8a8; }
.aviso--ok { border-color: rgb(79 211 155 / 55%); color: #b8f3d8; }

.form__rodape { text-align: center; font-size: var(--step--1); color: var(--text-muted); }
.form__rodape a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- regulamento ---- */
.termos-caixa {
  max-height: min(26rem, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.1rem;
  background: rgb(3 5 12 / 82%);
  border: 1px solid var(--line-strong);
  scrollbar-color: var(--gold-500) rgb(255 255 255 / 4%);
  scrollbar-width: thin;
}
.termos-caixa:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.termos-guia { font-size: var(--step--2); color: var(--gold-300); text-align: center; }
.termos-guia.is-ok { color: #9be6c4; }

.regulamento { color: var(--text-soft); font-size: var(--step--1); line-height: 1.65; }
.regulamento h2 {
  font-size: var(--step-1);
  color: var(--gold-200);
  margin: 0 0 0.6rem;
}
.regulamento h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: var(--step-0);
  letter-spacing: 0.04em;
  color: var(--gold-100);
}
.regulamento p + p { margin-top: 0.5rem; }
.regulamento ul { margin: 0.4rem 0 0 1.1rem; list-style: disc; }
.regulamento li + li { margin-top: 0.25rem; }
.regulamento strong { color: var(--gold-100); }
.regulamento .complemento {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  background: rgb(74 55 23 / 18%);
}
.regulamento .fim { margin-top: 1.2rem; text-align: center; color: var(--gold-300); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; }
.regulamento--pagina { font-size: var(--step-0); }

.aceite {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: rgb(3 5 12 / 60%);
  cursor: pointer;
}
.aceite input { width: 1.3rem; height: 1.3rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--gold-400); cursor: pointer; }
.aceite input:disabled { cursor: not-allowed; }
.aceite.is-off { opacity: 0.55; cursor: not-allowed; }
.aceite span { font-size: var(--step--1); color: var(--text); }

/* ---- conta e download ---- */
.dados { display: grid; gap: 0.6rem; margin-bottom: var(--space-m); }
.dados div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.dados dt { color: var(--text-muted); }
.dados dd { margin: 0; color: var(--gold-100); font-weight: 600; text-align: right; }

.embreve { text-align: center; }
.embreve__selo {
  display: inline-block;
  margin-bottom: var(--space-s);
  padding: 0.5em 1.3em;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
}
.embreve p + p { margin-top: 0.6rem; }
.embreve .btn { margin-top: var(--space-m); }

.rodape-mini { padding-block: var(--space-l); border-top: 1px solid var(--line); text-align: center; font-size: var(--step--2); color: var(--text-muted); }
.rodape-mini nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-bottom: 0.7rem; }
.rodape-mini a { color: var(--gold-300); }

.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-top: 0.9rem; font-size: var(--step--1); }
.footer__links a { color: var(--gold-300); }
.excluir { margin-top: 2rem; }
.excluir summary { cursor: pointer; text-align: center; font-size: var(--step--1); color: var(--text-muted); }
.excluir .form { margin-top: 1rem; }
.regulamento ul.letras { list-style: none; margin-left: 0.4rem; }

/* enfeites largos da home (chefão do palco, brilho final) não fazem a página rolar para o lado no celular */
html { overflow-x: clip; }
