/* Player phone view — KGTS themed: dark, red accents, cream text. */
.player { min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.screen.center { justify-content: center; align-items: center; }

.name-card { max-width: 380px; width: 100%; text-align: center; }
.name-card h1 { font-size: 1.8rem; margin: 0 0 4px; }
.name-card input { margin-top: 10px; text-align: center; font-size: 1.2rem; }

.p-top { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pill.score { color: var(--accent); font-weight: 800; filter: drop-shadow(0 0 4px rgba(220,38,38,0.2)); }
.pill.countdown { min-width: 46px; text-align: center; }

.p-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.spinner {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border: 4px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#pPrompt { font-size: 1.5rem; margin: 0 0 22px; text-align: center; }

.input-area { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.big-number { font-size: 2rem; text-align: center; padding: 22px; }

/* option buttons */
.opt-btn {
  width: 100%; text-align: left; padding: 20px; font-size: 1.15rem;
  display: flex; align-items: center; gap: 12px;
}
.opt-btn.selected {
  background: linear-gradient(180deg, #dc2626, #8B0000);
  color: #fffde0;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(220,38,38,0.3);
}
.opt-key {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
}
.opt-btn.selected .opt-key { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.15); }

/* alignment toggle */
.align-row { display: flex; gap: 12px; margin-bottom: 8px; }
.align-btn { flex: 1; padding: 22px; font-size: 1.3rem; font-weight: 800; }
.align-btn.good.selected { background: linear-gradient(180deg, var(--green), #2ea55f); color: #05201b; border-color: transparent; }
.align-btn.evil.selected { background: linear-gradient(180deg, var(--pink), #c2356e); color: #fff; border-color: transparent; }

.ge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ge-cell { padding: 16px 10px; text-align: left; font-size: 0.95rem; line-height: 1.25; }
.ge-cell.selected {
  background: linear-gradient(180deg, #dc2626, #8B0000);
  color: #fffde0;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(220,38,38,0.25);
}
.ge-cell .n { font-weight: 800; display: block; font-size: 1.1rem; margin-bottom: 3px; }
.ge-hint { text-align: center; margin: 4px 0 12px; }

.submit-btn { width: 100%; font-size: 1.25rem; padding: 20px; }
.submit-btn.done {
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #05201b;
  border-color: transparent;
}

.result-card { max-width: 380px; margin: 0 auto; padding: 30px; }
.result-pts { font-size: 4rem; font-weight: 900; color: var(--accent); line-height: 1; margin: 8px 0; filter: drop-shadow(0 0 10px rgba(220,38,38,0.3)); }

#submitNote { margin-top: 12px; }

/* final leaderboard for player (KGTS themed) */
.final-player-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(139, 0, 0, 0.3);
}
.final-player-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: #fffde0;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}
.your-rank {
  font-size: 1.3rem;
  color: rgba(255,253,224,0.5);
  margin-bottom: 4px;
}
.your-final-score {
  font-size: 3rem;
  font-weight: 900;
  color: #ff4444;
  margin-bottom: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,0,0,0.3));
}
.player-final-divider {
  width: 60px;
  height: 2px;
  background: #8B0000;
  margin: 0 auto 16px;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(139,0,0,0.4);
}
.player-final-board {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.player-final-board li {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 4px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 0, 0, 0.2);
  font-weight: 600;
  font-size: 1rem;
  color: #fffde0;
}
.player-final-board li.you {
  background: linear-gradient(135deg, rgba(139,0,0,0.2), rgba(255,0,0,0.06));
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 12px rgba(139,0,0,0.2);
}
.player-final-board .pfb-rank { margin-right: 10px; min-width: 28px; }
.player-final-board .pfb-name { flex: 1; }
.player-final-board .pfb-score { color: #ff4444; font-weight: 800; filter: drop-shadow(0 0 4px rgba(255,0,0,0.2)); }

/* info links */
.info-btn {
  display: block; width: 100%; text-decoration: none; text-align: center;
  font-weight: 700; color: var(--fg); font-size: 1.1rem;
  background: rgba(139, 0, 0, 0.15); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
}
.info-btn:active { background: rgba(139, 0, 0, 0.3); }
.primary-btn {
  background: linear-gradient(180deg, #dc2626, #8B0000);
  border-color: transparent;
  color: #fffde0;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.3);
}
.primary-btn:active { background: linear-gradient(180deg, #b91c1c, #600000); }
