/* Solaris Brasil — interface presa a .jogo-solaris (não mexe no resto do painel). */
/* Fontes do jogo (SIL Open Font License; só o alfabeto latino, que tem os acentos do português) */
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fontes/press-start-2p.woff2") format("woff2"); }
@font-face { font-family: "Silkscreen"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fontes/silkscreen.woff2") format("woff2"); }

.jogo-raiz.jogo-solaris {
  --solaris-fundo: #140c1c;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  background: var(--solaris-fundo);
  border-radius: 12px;
  overflow: hidden;
}
.jogo-solaris .solaris-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
}
.jogo-solaris .solaris-dica { flex: 1; min-width: 0; font-size: 12px; color: #a8c8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jogo-solaris .solaris-botao {
  flex: none;
  min-width: 40px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid #5a4a7a;
  border-radius: 8px;
  background: #21152b;
  color: #fff;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.jogo-solaris .solaris-botao:hover { background: #3a1c3c; }
.jogo-solaris .solaris-botao:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.jogo-solaris .solaris-area:focus { outline: none; } /* o foco vai para a área para o teclado funcionar; sem moldura sobre o jogo */
.jogo-solaris .solaris-area {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: calc(100dvh - 190px);
  min-height: 260px;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #3a1c3c, var(--solaris-fundo) 70%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* com a altura limitada, a largura acompanha (3:4) em vez de esticar */
@supports (aspect-ratio: 3 / 4) {
  .jogo-solaris .solaris-area { width: min(100%, calc((100dvh - 190px) * 3 / 4)); }
}
.jogo-solaris .solaris-carregando {
  position: absolute;
  z-index: 2;
  inset: 45% 8px auto;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 16px;
  pointer-events: none;
}
.jogo-solaris .solaris-pausa {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  border: 0;
  background: rgb(20 12 28 / 82%);
  color: #fff;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.jogo-solaris .solaris-pausa[hidden] { display: none; }
.jogo-solaris .solaris-area canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.jogo-solaris .solaris-erro { position: absolute; inset: 40% 0 auto; margin: 0; padding: 24px; color: #fff; font-size: 16px; text-align: center; }

/* Tela cheia (botão ⛶/✕ do site na barra; no celular já abre assim): a barra fica no alto e a área ocupa o resto */
.jogo-raiz.jogo-solaris.is-cheia {
  display: flex;
  flex-direction: column;
  max-width: none;
  border-radius: 0;
  background: var(--solaris-fundo);
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.jogo-raiz.jogo-solaris.is-cheia .solaris-area {
  flex: 1 1 auto;
  width: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  background: var(--solaris-fundo);
}
.jogo-solaris .jogo-btn-cheia { font-size: 18px; }

@media (max-width: 575.98px) {
  .jogo-raiz.jogo-solaris:not(.is-cheia) { margin-inline: -16px; width: calc(100% + 32px); max-width: none; border-radius: 0; }
  .jogo-solaris .solaris-dica { font-size: 11px; }
}
