/* ==========================================================================
   ANAEROBIC ARCADE - start-screen.css
   Tela inicial: cabeçalho UCS, título, protagonistas, menu e créditos.
   Autores: Henrique e Daniel
   ========================================================================== */

/* Tamanhos centralizados (fáceis de ajustar) */
:root {
  --sprite-w: 160px;   /* sprites têm 80x160 px nativos -> 2x no desktop */
  --sprite-h: 320px;
  --mascot-size: 72px;
}

.start-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 50;
}

/* ---------- Cabeçalho institucional UCS ---------- */
.ucs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ucs-logo-plate {
  background: #ffffff;           /* fundo claro: o logotipo oficial tem texto cinza escuro */
  border: 2px solid var(--neon-cyan);
  border-radius: 4px;
  padding: 4px 6px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35), 0 3px 0 #000;
  line-height: 0;
}

.ucs-logo {
  height: 54px;
  width: auto;                   /* mantém a proporção original */
  display: block;
}

.ucs-logo-placeholder {
  height: 54px;
  width: 30px;
  border: 2px dashed #94a3b8;
  color: #64748b;
  font: 7px var(--font-pixel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ucs-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 1px;
  color: #e9d5ff;
  text-align: left;
}

/* ---------- Título ---------- */
.game-title {
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.title-text { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.title-line-1,
.title-line-2 {
  font-family: var(--font-pixel);
  line-height: 1;
  text-transform: uppercase;
}

.title-line-1 {
  font-size: clamp(22px, 4.6vw, 40px);
  color: #ffffff;
  text-shadow: 3px 3px 0 var(--neon-purple), 6px 6px 0 #000, 0 0 18px rgba(157, 78, 221, 0.8);
}

.title-line-2 {
  font-size: clamp(28px, 6vw, 54px);
  color: var(--neon-pink);
  text-shadow: 3px 3px 0 #7a003d, 6px 6px 0 #000, 0 0 22px rgba(255, 0, 127, 0.8);
}

.title-subtitle {
  margin-top: 6px;
  padding: 5px 12px;
  font-family: var(--font-pixel);
  font-size: clamp(7px, 1.5vw, 10px);
  letter-spacing: 1px;
  line-height: 1.6;
  text-align: center;
  color: var(--neon-cyan);
  background: rgba(10, 4, 24, 0.85);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 3px 0 #000, 0 0 12px rgba(0, 240, 255, 0.35);
}

.title-mascot {
  width: var(--mascot-size);
  height: auto;
  image-rendering: pixelated;
  flex-shrink: 0;
  animation: floatBact 3s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.7));
}
.title-mascot.fusobacterium { filter: drop-shadow(0 0 8px rgba(190, 255, 0, 0.7)); animation-delay: 1s; }

/* ---------- Palco: Daniel | menu | Henrique ---------- */
.stage {
  display: grid;
  grid-template-columns: var(--sprite-w) minmax(0, 300px) var(--sprite-w);
  grid-template-areas: "daniel menu henrique";
  justify-content: center;
  align-items: end;
  gap: 28px;
  width: 100%;
}

.stage-daniel   { grid-area: daniel; }
.stage-menu     { grid-area: menu; align-self: center; }
.stage-henrique { grid-area: henrique; }

.character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.character-sprite {
  width: var(--sprite-w);
  height: var(--sprite-h);
  object-fit: contain;          /* sem esticar nem cortar */
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.6));
}

.character-plate {
  padding: 5px 14px;
  font-family: var(--font-pixel);
  font-size: 10px;
  background: #0b0418;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 3px 0 #000;
}
.character-plate.magenta { border-color: var(--neon-magenta); color: var(--neon-pink); }

/* ---------- Menu ---------- */
.menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.menu-btn {
  font-family: var(--font-pixel);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.menu-btn svg { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }

.menu-btn-primary {
  padding: 18px 14px;
  font-size: 14px;
  background: linear-gradient(180deg, #ff3d94 0%, #d4005f 100%);
  border: 4px solid var(--neon-yellow);
  box-shadow: 0 6px 0 #7a003d, 0 9px 0 #000, 0 0 22px rgba(255, 0, 127, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  animation: pulseStartSoft 2s infinite ease-in-out;
}
.menu-btn-primary svg { width: 18px; height: 18px; color: var(--neon-yellow); }

.menu-btn-secondary {
  padding: 11px 12px;
  font-size: 10px;
  background: rgba(20, 9, 38, 0.95);
  border: 2px solid var(--neon-magenta);
  box-shadow: 0 4px 0 #000, 0 0 10px rgba(255, 0, 127, 0.25);
}

.menu-btn:hover  { transform: translateY(2px); }
.menu-btn-primary:hover {
  background: linear-gradient(180deg, #ff5aa5 0%, #e60068 100%);
  box-shadow: 0 4px 0 #7a003d, 0 7px 0 #000, 0 0 32px rgba(255, 230, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.menu-btn-secondary:hover {
  background: rgba(45, 18, 90, 0.95);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 2px 0 #000, 0 0 16px rgba(0, 240, 255, 0.45);
}
.menu-btn:active { transform: translateY(5px); box-shadow: 0 0 0 #000; animation: none; }
.menu-btn:focus-visible { outline: 3px solid var(--neon-yellow); outline-offset: 3px; }

@keyframes pulseStartSoft {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}

/* ---------- Créditos ---------- */
.credits-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed rgba(157, 78, 221, 0.4);
}

.credits-bar .credits-text {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
  color: #cbd5e1;
  text-align: center;
}
.credits-bar .credits-text span { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

.hazard-stripes {
  width: 70px;
  height: 10px;
  background: repeating-linear-gradient(-45deg, #ffe600, #ffe600 7px, #000 7px, #000 14px);
  border: 1px solid var(--neon-purple);
  flex-shrink: 0;
}

/* ---------- Telas médias ---------- */
@media (max-width: 900px) {
  :root { --sprite-w: 120px; --sprite-h: 240px; --mascot-size: 56px; }
  .stage { gap: 16px; }
}

/* ---------- Celular: personagens lado a lado, menu embaixo ---------- */
@media (max-width: 680px) {
  :root { --sprite-w: 100px; --sprite-h: 200px; --mascot-size: 40px; }

  .ucs-logo, .ucs-logo-placeholder { height: 44px; }
  .ucs-name { font-size: 8px; }
  .game-title { gap: 8px; }

  .stage {
    grid-template-columns: var(--sprite-w) var(--sprite-w);
    grid-template-areas:
      "daniel henrique"
      "menu   menu";
    gap: 14px 24px;
    align-items: start;
  }
  .stage-menu { width: 100%; max-width: 320px; justify-self: center; }
  .character-plate { font-size: 8px; padding: 4px 10px; }
  .menu-btn-primary { padding: 16px 12px; font-size: 13px; }

  .credits-bar .hazard-stripes { display: none; }
  .credits-bar { justify-content: center; }
  .credits-bar .credits-text { font-size: 8px; }
}

@media (max-width: 420px) {
  .title-mascot { display: none; }
}

/* Projetor / telas grandes: gabinete e sprites maiores (sprites 80x160 em 2,5x) */
@media (min-width: 1600px) and (min-height: 1000px) {
  :root { --sprite-w: 200px; --sprite-h: 400px; --mascot-size: 88px; }
  .arcade-container { max-width: 1240px; }
}
