/* ========================================
   layout.css — estructura general
   ======================================== */

/* --- pantallas --- */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.screen.active {
  display: flex;
}

/* --- nav superior --- */
#game-nav {
  display: flex;
  gap: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.game-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: lowercase;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
}

.game-tab:hover {
  color: var(--text-primary);
}

.game-tab.active {
  border-bottom-color: currentColor;
}

/* --- hero area (pantalla principal) --- */
#hero-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px 16px;
}

#hero-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  perspective: 800px;
}

#equiv-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 16px;
}

#game-info-card {
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-info__cards {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.game-info__desc {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --- full deck toggle --- */
#full-deck-area {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#btn-toggle-deck {
  font-size: 0.75rem;
  opacity: 0.5;
  text-decoration: underline;
  padding: 4px 8px;
  font-family: var(--font-ui);
}

#btn-toggle-deck:hover {
  opacity: 0.8;
}

#full-deck-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  justify-content: center;
}

/* --- setup (config del juego) --- */
#game-setup {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

#setup-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

#setup-options label {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

#setup-options input,
#setup-options select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--text-secondary);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
}

#btn-play {
  padding: 16px 56px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: lowercase;
  letter-spacing: 1px;
  border-radius: var(--radius-lg);
  background: var(--btn-bg);
  color: var(--accent);
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
}

#btn-play:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.05);
}

/* --- footer --- */
#main-footer {
  text-align: center;
  padding: 12px;
  opacity: 0.3;
  font-size: 0.7rem;
  font-family: var(--font-ui);
}

/* --- responsive --- */
@media (max-width: 600px) {
  .game-tab {
    font-size: 0.68rem;
    padding: 12px 4px;
  }

  #hero-area {
    padding: 20px 12px 12px;
  }

  #hero-cards {
    gap: 8px;
  }

  #btn-play {
    padding: 14px 40px;
    font-size: 1rem;
  }

  #equiv-strip {
    gap: 10px;
    font-size: 0.7rem;
  }
}
