/* Conta do Discord no cabeçalho do lobby (v0.90): nome da conta e sair. Tela de entrada (v0.94): cobre o jogo até a conta
   estar ligada. */

.account-box {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.account-box[hidden] {
  display: none;
}

.account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  overflow-y: auto;
  background: var(--bg);
}

.entry-gate[hidden] {
  display: none;
}

.entry-gate-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  width: 100%;
  max-width: 400px;
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-1);
  text-align: center;
}

.entry-gate-logo {
  display: block;
  height: 44px;
  width: auto;
  image-rendering: pixelated;
}

.entry-gate-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
}

.entry-gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 700;
  color: var(--text);
}

.entry-gate-loading {
  font-size: var(--fs-16);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-2);
}

.entry-gate-text {
  margin: 0;
  color: var(--text-2);
  line-height: 1.5;
}

.entry-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
  margin-top: var(--s-2);
}

.entry-gate-action {
  width: 100%;
  min-height: 48px;
  font-size: var(--fs-16);
  text-decoration: none;
}

.entry-gate-note {
  margin: 0;
  font-size: var(--fs-13);
  color: var(--text-2);
  line-height: 1.5;
}

/* v0.292: contagem para o lançamento (entry-gate.js, showLaunchCountdown). Quatro casas lado a lado, também no celular. */
.launch-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  width: 100%;
  margin-top: var(--s-2);
}

.launch-countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-2);
}

.launch-countdown-value {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.launch-countdown-label {
  font-size: var(--fs-12);
  color: var(--text-2);
}

/* v0.292: vídeo de apresentação. Capa no painel; o vídeo abre por cima de tudo, em pé, do tamanho que couber na tela. */
.launch-video-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.launch-video-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.launch-video-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.launch-video-thumb {
  position: relative;
  flex: none;
  width: 72px;
  height: 128px;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--bg);
}

.launch-video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  padding: 6px 5px 6px 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(14, 16, 21, 0.75);
  fill: var(--text);
}

.launch-video-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.launch-video-title {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 700;
}

.launch-video-meta {
  font-size: var(--fs-13);
  color: var(--text-2);
}

.launch-video {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background: rgba(14, 16, 21, 0.92);
}

.launch-video-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

.launch-video-player {
  display: block;
  width: auto;
  height: min(1280px, calc(100dvh - 2 * var(--s-4) - 44px - var(--s-3)));
  max-width: calc(100vw - 2 * var(--s-4));
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--radius-m);
  background: #000;
}

.launch-video-close {
  min-width: 160px;
  min-height: 44px;
}

@media (max-width: 900px) {
  /* A .wallet vira display: contents; a conta (com o botão de online, v0.125) fica na primeira linha, à direita do logo e antes do Som. O logo ganha
     lugar fixo para não ser empurrado para baixo pela conta, que divide a mesma célula alinhada à direita. */
  .brand-name {
    grid-column: 1;
    grid-row: 1;
  }

  .account-cluster {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .account-name {
    max-width: 110px;
  }
}
