.app-container {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px 108px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 18px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1;
  color: var(--text-main);
}

.logo span {
  color: var(--pastel-blue-accent);
}

.demo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--pastel-blue);
  color: #1e3a8a;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

/* Gerenciamento de Telas */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.22s ease;
}

.screen.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bento Grid 2 Colunas */
.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bento-blue { background: var(--pastel-blue); }
.bento-purple { background: var(--pastel-purple); }
.bento-green { background: var(--pastel-green); }
.bento-orange { background: var(--pastel-orange); }
.bento-pink { background: var(--pastel-pink); }
.bento-coral { background: var(--pastel-coral); }

.bento-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(18, 21, 28, 0.75);
}

.bento-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 4px 0 10px;
  line-height: 1;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.stepper button:active { transform: scale(0.92); }

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.section-header-row .section-title { margin-bottom: 0; }

.btn-text-clear {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pastel-blue-accent);
  cursor: pointer;
  padding: 2px 6px;
}

/* Lista de Inputs de Nomes dos Jogadores */
.player-names-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.player-name-field {
  background: var(--bg-surface);
  border: 1.5px solid var(--bg-muted);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.player-name-field:focus-within {
  border-color: var(--pastel-blue-accent);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.14);
}

.player-name-field input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  user-select: text;
}

.player-name-field input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

/* Pílulas de Tempo */
.time-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.time-pill {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.time-pill.active {
  background: var(--pastel-blue-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Categorias Modulares */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cat-card {
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  border: 2.5px solid transparent;
  opacity: 0.55;
  transition: all 0.2s;
}

.cat-card.selected {
  opacity: 1;
  border-color: var(--dark-action);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.cat-icon { font-size: 1.65rem; margin-bottom: 4px; }
.cat-name { font-weight: 700; font-size: 0.95rem; }
.cat-count { font-size: 0.75rem; color: rgba(18, 21, 28, 0.65); margin-top: 2px; }

/* Botões */
.btn-primary {
  background: var(--dark-action);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: auto;
  box-shadow: 0 8px 20px rgba(18, 21, 28, 0.18);
  transition: transform 0.12s, opacity 0.2s;
}

.btn-primary:active { transform: scale(0.98); }

/* Tela 2: Revelação */
.reveal-header { text-align: center; margin-bottom: 8px; }

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 10px 0 16px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--dark-action);
  width: 25%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.secret-card {
  flex: 1;
  min-height: 240px;
  background: #e2e7ef;
  border: 2.5px dashed #9aa5b6;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.secret-card.revealed {
  border-style: solid;
  border-color: var(--pastel-green-accent);
  background: var(--pastel-green);
}

.secret-card.revealed.impostor {
  border-color: var(--danger);
  background: var(--pastel-coral);
}

.fingerprint-icon { font-size: 3.4rem; margin-bottom: 12px; opacity: 0.85; }
.role-title { font-size: 1.75rem; font-weight: 900; margin: 10px 0; }

.helper-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Tela 3: Debate com Anel Circular */
.starter-banner {
  background: var(--pastel-orange);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.timer-ring-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 6px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring-svg { transform: rotate(-90deg); width: 200px; height: 200px; }
.timer-ring-bg { fill: none; stroke: var(--bg-muted); stroke-width: 14; }
.timer-ring-progress {
  fill: none;
  stroke: var(--pastel-blue-accent);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s linear, stroke 0.3s;
}

.timer-center-text { position: absolute; text-align: center; }
.timer-digits { font-size: 2.25rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.timer-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

/* Votação / Jogadores na Mesa */
.players-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.player-tag-card {
  background: var(--bg-surface);
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.15s;
}

.player-tag-card.voted {
  border-color: var(--danger);
  background: #fef2f2;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-left span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vote-badge {
  font-size: 0.7rem;
  background: var(--danger);
  color: white;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: none;
  flex-shrink: 0;
}
.player-tag-card.voted .vote-badge { display: inline-block; }

/* Tela 4: Resultado */
.result-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 14px;
}

.result-card h1 { font-size: 1.75rem; font-weight: 900; margin-top: 4px; word-break: break-word; }

.vote-summary-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  line-height: 1.45;
}

/* Tela Regras */
.rules-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  line-height: 1.65;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.rules-box li { margin-left: 18px; margin-bottom: 10px; }

/* Barra de Navegação Flutuante */
.floating-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 420px;
  background: var(--dark-action);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 12px 28px rgba(18, 21, 28, 0.28);
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: #9ca3af;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-item.active {
  background: #ffffff;
  color: var(--dark-action);
  transform: scale(1.06);
}

.nav-item svg { width: 22px; height: 22px; stroke-width: 2.2; }
#btn-start-game{background:var(--pastel-green);color:#123b2a;box-shadow:none;border:1px solid #83c9a1;margin-bottom:20px;flex-shrink:0}
