/* ==========================================================================
   AVISO DE FASE DE CONSTRUÇÃO
   Módulo independente: some do site inteiro removendo notice.css e notice.js
   do index.html. Não depende de nenhuma classe do resto da interface — só das
   variáveis de tema, com valores de reserva caso elas não existam.
   ========================================================================== */

.notice {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 3, 7, .82);
  backdrop-filter: blur(6px);
  animation: notice-in .35s cubic-bezier(.2, .8, .25, 1) both;
}
.notice.is-out {
  animation: notice-out .25s ease-in both;
  pointer-events: none;
}

@keyframes notice-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes notice-out {
  to { opacity: 0; }
}

.notice__box {
  position: relative;
  width: min(520px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  border: 1px solid var(--line-strong, rgba(168, 85, 247, .55));
  background: linear-gradient(180deg, rgba(24, 18, 36, .97), rgba(12, 9, 18, .97));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  animation: notice-box .4s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes notice-box {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Cantos táticos, no mesmo idioma visual da moldura do site */
.notice__box::before,
.notice__box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent, #a855f7);
}
.notice__box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.notice__box::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.notice__tag {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .24em;
  padding: 3px 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line, rgba(168, 85, 247, .22));
  background: rgba(168, 85, 247, .16);
  color: var(--accent-hot, #d8b4fe);
}

.notice__title {
  margin: 0 0 12px;
  font-family: var(--display, sans-serif);
  font-size: clamp(19px, 3.4vw, 26px);
  font-weight: 800;
  letter-spacing: .16em;
  color: #fff;
}

.notice__text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted, #8b839f);
}

.notice__ok {
  min-width: 180px;
  padding: 12px 28px;
  font: inherit;
  font-family: var(--display, sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .24em;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--accent, #a855f7);
  background: rgba(168, 85, 247, .14);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.notice__ok::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent-2, #7c3aed), var(--accent, #a855f7));
  transform: translateX(-101%);
  transition: transform .3s cubic-bezier(.2, .8, .25, 1);
}
.notice__ok:hover::before { transform: none; }
.notice__ok:focus-visible { outline: 2px solid var(--accent-hot, #d8b4fe); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .notice, .notice__box, .notice.is-out {
    animation-duration: .001ms !important;
  }
}
