/* Sala secreta e aviso de cookies — extraídos do design anterior */
/* Secret room — retro console */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.secret-chat {
  width: min(960px, calc(100% - 32px));
  height: min(680px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid #2f8dcc;
  background: #07111b;
  color: #dcefff;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.35);
}
.secret-chat::backdrop {
  background: rgba(2, 6, 10, 0.84);
}
.chat-window {
  height: 100%;
  display: grid;
  grid-template-rows: 48px 1fr 30px;
  border: 3px solid #0d2638;
  font-family: var(--mono);
}
.chat-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid #2f8dcc;
  background: #0b1b28;
}
.chat-titlebar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-titlebar strong {
  font-size: 11px;
}
.chat-titlebar small {
  color: #6991aa;
  font-size: 8px;
}
.chat-titlebar button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #31566d;
  background: #102838;
  color: #dcefff;
  cursor: pointer;
  font-size: 19px;
}
.chat-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49d794;
  box-shadow: 0 0 8px rgba(73, 215, 148, 0.6);
}
.chat-gate,
.chat-identity {
  align-self: center;
  width: min(520px, calc(100% - 40px));
  margin: auto;
}
.chat-kicker {
  margin: 0 0 18px !important;
  color: #49aeea !important;
  font-size: 9px !important;
}
.chat-gate h2 {
  margin: 0 0 22px;
  font: 700 clamp(32px, 5vw, 58px) / 0.95 var(--sans);
  text-wrap: balance;
}
.chat-gate > p {
  max-width: 470px;
  color: #8eabba;
  font: 12px/1.7 var(--mono);
}
.chat-privacy {
  padding: 12px;
  border-left: 2px solid #2f8dcc;
  background: #0a1924;
  font-size: 9px !important;
}
.chat-turnstile {
  min-height: 70px;
  margin-top: 20px;
}
.chat-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #ff7880;
  font: 10px var(--mono);
}
.chat-identity {
  display: flex;
  flex-direction: column;
}
.chat-identity[hidden],
.chat-room[hidden],
.chat-gate[hidden] {
  display: none;
}
.chat-identity label {
  margin-bottom: 15px;
  font: 600 clamp(20px, 3vw, 34px) var(--sans);
}
.chat-identity input,
.chat-compose input {
  min-width: 0;
  border: 1px solid #31566d;
  background: #06101a;
  color: #e8f6ff;
  font: 13px var(--mono);
  outline: none;
}
.chat-identity input {
  height: 54px;
  padding: 0 16px;
}
.chat-identity input:focus,
.chat-compose input:focus {
  border-color: #49aeea;
}
.chat-identity small {
  margin: 9px 0 24px;
  color: #6991aa;
  font-size: 8px;
}
.chat-identity button,
.chat-compose button {
  border: 1px solid #2f8dcc;
  background: #113b55;
  color: #e8f6ff;
  font: 600 9px var(--mono);
  cursor: pointer;
}
.chat-identity > button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.chat-room {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
}
.chat-feed-wrap {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 52px;
}
.chat-feed {
  overflow-y: auto;
  padding: 18px;
  scrollbar-color: #31566d #07111b;
}
.chat-line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.55;
}
.chat-line time {
  color: #51758b;
  font-size: 8px;
  padding-top: 3px;
}
.chat-line p {
  margin: 0;
  overflow-wrap: anywhere;
}
.chat-line b {
  color: #49aeea;
  font-weight: 600;
}
.chat-line.is-system p {
  color: #6991aa;
  font-style: italic;
}
.chat-compose {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 76px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #244356;
  background: #081722;
}
.chat-compose > span {
  color: #49aeea;
}
.chat-compose input {
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}
.chat-compose button {
  height: 34px;
}
.chat-roster {
  min-width: 0;
  border-left: 1px solid #244356;
  background: #081722;
}
.chat-roster header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #244356;
  color: #6991aa;
  font-size: 8px;
}
.chat-roster header b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid #31566d;
  color: #49aeea;
}
.chat-roster ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  overflow: auto;
}
.chat-roster li {
  padding: 8px;
  border-bottom: 1px solid #142d3d;
  color: #aac8d8;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-roster li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: #49d794;
}
.chat-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid #244356;
  background: #0b1b28;
  color: #51758b;
  font-size: 7px;
}
.chat-statusbar [data-chat-status] {
  color: #49aeea;
}
@media (max-width: 650px) {
  .secret-chat {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
  }
  .chat-window {
    border: 0;
  }
  .chat-titlebar small {
    display: none;
  }
  .chat-room {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-roster {
    position: absolute;
    right: 0;
    top: 48px;
    bottom: 30px;
    width: 170px;
    display: none;
  }
  .chat-roster.is-open {
    display: block;
  }
  .chat-feed {
    padding: 14px;
  }
  .chat-line {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 7px;
  }
  .chat-compose {
    grid-template-columns: 14px minmax(0, 1fr) 62px;
    padding-inline: 8px;
  }
  .chat-statusbar span:last-child {
    display: none;
  }
  .chat-gate,
  .chat-identity {
    width: calc(100% - 32px);
  }
}
.chat-window-actions {
  display: flex;
  gap: 6px;
}
.chat-users-toggle {
  display: none !important;
}
@media (max-width: 650px) {
  .chat-users-toggle {
    display: grid !important;
  }
}

/* One-time cookie notice */
.cookie-notice {
  position: fixed;
  z-index: var(--z-header);
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 40px));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(83, 183, 255, 0.35);
  background: #0b1119;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cookie-copy p {
  margin: 0;
  color: #aebac7;
  font-size: 10px;
  line-height: 1.65;
  text-wrap: pretty;
}
.cookie-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 15px;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.cookie-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: #aebac7;
  font: 500 8px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.cookie-actions button:hover {
  border-color: var(--blue);
  color: var(--text);
}
.cookie-actions .cookie-confirm {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-notice {
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: calc(100% - 36px);
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .cookie-actions button {
    padding-inline: 11px;
  }
}
.legal-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(84svh, 850px);
  padding: 0;
  border: 1px solid rgba(83, 183, 255, 0.3);
  background: #0b1017;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out,
    overlay 0.25s allow-discrete,
    display 0.25s allow-discrete;
}
.legal-modal[open] {
  opacity: 1;
  transform: none;
}
@starting-style {
  .legal-modal[open] {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}
.legal-modal::backdrop {
  background: rgba(2, 5, 9, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition:
    opacity 0.25s ease-out,
    overlay 0.25s allow-discrete,
    display 0.25s allow-discrete;
}
.legal-modal[open]::backdrop {
  opacity: 1;
}
@starting-style {
  .legal-modal[open]::backdrop {
    opacity: 0;
  }
}
.legal-shell > header {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 23, 0.96);
  font: 10px var(--mono);
  color: var(--blue);
}
.legal-shell > header button {
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  padding: 9px 12px;
  font: 10px var(--mono);
  cursor: pointer;
}
.legal-copy {
  padding: clamp(28px, 6vw, 70px);
  max-width: 780px;
}
.legal-copy h2 {
  margin: 0 0 50px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.legal-copy h3 {
  margin: 38px 0 10px;
  font: 600 14px var(--mono);
  color: var(--blue);
}
.legal-copy p {
  color: #b7c0cb;
  line-height: 1.8;
  text-wrap: pretty;
}
.legal-modal:focus-visible {
  outline: none;
}
@media (max-width: 800px) {
  .brand img {
@media (max-width: 800px) {
  .legal-copy { padding: 30px 22px; }
  .legal-copy p { font-size: 14px; }
  .legal-shell > header { padding: 0 16px; }
}
