@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background: #faf8f5;
  background: #faf8f5;
  background-attachment: fixed;
  color: #1a202c;
  display: flex;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* Display font for headings */
h1, h2, h3, .btn, .badge, .lobby-code-label,
.category-pill, .player-tag, .timer-ring,
.q-label, .play-btn {
  font-family: 'Lilita One', 'Nunito', sans-serif;
}

.screen {
  display: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.screen.active {
  display: block;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.container { padding: 10px 0; }

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px 18px;
  border-radius: 50px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.15s;
}

.back-link:hover {
  background: #f0f0f0;
  color: #1a202c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Logo */
.logo-section {
  background: linear-gradient(165deg, #f472b6, #e8437a, #db2777);
  border-radius: 24px;
  padding: 40px 24px 36px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 2.8rem;
  font-family: 'Lilita One', sans-serif;
  border-radius: 22px;
  margin-bottom: 14px;
  border: none;
  box-shadow: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.logo {
  font-family: 'Lilita One', sans-serif;
  font-size: 2.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  line-height: 1.1;
}

.logo span {
  color: rgba(255, 255, 255, 0.85);
}

/* Main card panel */
.home-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 30px 26px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

/* Inputs */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 15px 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  color: #1a202c;
  font-size: 1.05rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  outline: none;
  transition: all 0.15s;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #e8437a;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(232,67,122,0.15);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

textarea { resize: vertical; }
.full-width { width: 100%; }

/* Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  padding: 16px 30px;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-family: 'Lilita One', sans-serif;
  cursor: pointer;
  transition: all 0.12s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
}

.btn-green {
  background: #22c55e;
  color: white;
box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}

.btn-green:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(34,197,94,0.2);
}

.btn-purple {
  background: #8b6eb0;
  box-shadow: 0 2px 8px rgba(139,110,176,0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139,110,176,0.4);
}

.btn-purple:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(139,110,176,0.2);
}

.btn-orange {
  background: #e8437a;
  box-shadow: 0 2px 8px rgba(232,67,122,0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,67,122,0.4);
}

.btn-orange:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(232,67,122,0.2);
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.12);
}

.divider span {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}

/* Join row */
.join-custom-row {
  display: flex;
  gap: 10px;
}

.join-custom-row input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.join-custom-row .btn {
  flex-shrink: 0;
  padding: 16px 28px;
}

/* Error / Status */
.error-msg {
  color: #ef4444;
  text-align: center;
  margin-top: 14px;
  min-height: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-msg {
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.status-pill {
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.9rem;
  font-family: 'Lilita One', sans-serif;
  letter-spacing: 1px;
  padding: 10px 24px;
  background: #ffffff;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto 18px;
  width: fit-content;
}

/* How to play */
.how-to-play {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.how-to-play h3 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.2rem;
  color: #e8437a;
  margin-bottom: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(232,67,122,0.2);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #e8437a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(232,67,122,0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.step p {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.4;
}

.step strong {
  color: #e8437a;
  font-weight: 700;
}

/* Screen header */
.screen-header {
  text-align: center;
  margin-bottom: 24px;
}

.screen-header h2 {
  font-family: 'Lilita One', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.screen-sub {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Lobby code */
.lobby-code-box {
  background: linear-gradient(165deg, #f472b6, #e8437a, #db2777);
  border: none;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.lobby-code-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
}

.lobby-code-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

#lobby-code {
  font-family: 'Lilita One', sans-serif;
  letter-spacing: 5px;
  color: white;
  font-size: 2.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-copy {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Section title */
.section-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
  text-align: center;
  width: 100%;
}

/* Lobby Players */
.lobby-players {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.lobby-player-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  animation: cardSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.lobby-player-card.is-you {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-20px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.player-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.player-avatar span {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.3rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-card-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.player-badges {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.badge-host {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.65rem;
  padding: 2px 10px;
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 50px;
  letter-spacing: 1px;
}

.badge-you {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.65rem;
  padding: 2px 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 50px;
  letter-spacing: 1px;
}

.player-score-display {
  font-family: 'Lilita One', sans-serif;
  font-size: 1rem;
  color: #0ea5e9;
  letter-spacing: 1px;
}

.lobby-code-hint { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; font-weight: 700; margin-top: 10px; }

/* Timer */
.timer-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 4px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #1a202c;
  margin-bottom: 18px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 0 rgba(0,0,0,0.12), inset 0 2px 10px rgba(0,0,0,0.1);
}

.timer-ring.urgent {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: shake 0.35s ease infinite;
  box-shadow: 0 2px 0 rgba(220,38,38,0.3);
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-4px) rotate(-2deg); }
  75% { transform: translateX(4px) rotate(2deg); }
}

/* Category pill */
.category-pill {
  padding: 10px 28px;
  background: #8b6eb0;
  color: white;
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
  box-shadow: 0 2px 0 #5a4590, 0 6px 15px rgba(139,110,176,0.3);
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(0, 0, 0, 0.08);
}

/* Question bubble */
.question-bubble {
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 32px 26px;
  margin-bottom: 28px;
  text-align: center;
  width: 100%;
  position: relative;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}

.question-bubble::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 16px solid rgba(0, 0, 0, 0.1);
}

.question-bubble p {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ===== REVEAL TWO-COLUMN LAYOUT ===== */
#screen-reveal {
  max-width: 1100px;
}

.reveal-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  margin-bottom: 16px;
}

.reveal-top-bar .timer-small {
  width: 52px;
  height: 52px;
  min-width: 52px;
  font-size: 1.4rem;
  margin-bottom: 0;
  border-width: 3px;
}

.reveal-top-info {
  min-width: 0;
}

.reveal-top-info h2 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: left;
  margin-bottom: 0;
}

.reveal-top-info .screen-sub {
  margin-top: 2px;
  font-size: 0.82rem;
  text-align: left;
}

.reveal-layout {
  display: flex;
  gap: 16px;
  min-height: 0;
}

.reveal-left {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
  padding-right: 4px;
}

.reveal-left::-webkit-scrollbar { width: 5px; }
.reveal-left::-webkit-scrollbar-track { background: transparent; }
.reveal-left::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 3px; }

.reveal-right {
  width: 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 160px);
}

.reveal-right .chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.reveal-right .chat-messages {
  flex: 1;
  height: auto;
  min-height: 200px;
}

.reveal-bottom-section {
  flex-shrink: 0;
}

/* Reveal question */
.reveal-question-box {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, rgba(232, 67, 122, 0.12), rgba(232, 67, 122, 0.08));
  border: 2px solid rgba(232, 67, 122, 0.25);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: left;
  margin-left: auto;
  box-shadow: 0 0 20px rgba(232, 67, 122, 0.08);
}

.reveal-question-label {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e8437a;
  display: block;
  margin-bottom: 4px;
}

.reveal-question-box p {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a202c;
}

/* Answers grid */
.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.answer-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.answer-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.answer-reveal {
  animation: answerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes answerPop {
  0% { opacity: 0; transform: translateY(30px) scale(0.9); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.answer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.answer-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}

.answer-avatar span {
  font-family: 'Lilita One', sans-serif;
  font-size: 1rem;
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.answer-player-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.answer-text {
  line-height: 1.6;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a202c;
  padding-left: 50px;
}

/* ===== CHAT ===== */
.chat-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.08); border-radius: 3px; }

/* Chat bubbles */
.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78%;
}

.chat-bubble-wrap.chat-you {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-author-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  padding: 0 12px;
}

.chat-bubble {
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(0, 0, 0, 0.08);
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a202c;
  box-shadow: 0 3px 0 rgba(0,0,0,0.06);
}

.chat-bubble-wrap.chat-you .chat-bubble {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.15);
  border-radius: 20px 20px 6px 20px;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-input-row input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.04);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #1a202c;
  font-weight: 700;
}

.chat-input-row input:focus {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.chat-input-row input::placeholder { color: rgba(0, 0, 0, 0.35); }

.btn-send {
  padding: 14px 24px;
  background: #22c55e;
  color: white;
  border: none;
  font-family: 'Lilita One', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
  text-transform: uppercase;
}

.btn-send:hover {
  background: #16a34a;
}

/* Vote grid */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  width: 100%;
}

.vote-card {
  padding: 24px 16px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: voteCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes voteCardIn {
  from { opacity: 0; transform: scale(0.8) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.vote-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
  transition: all 0.15s;
}

.vote-avatar span {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.vote-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.vote-card:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 0 rgba(0,0,0,0.06), 0 16px 30px rgba(0,0,0,0.1);
}

.vote-card:hover .vote-avatar {
  transform: scale(1.1);
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}

.vote-card:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.vote-card.voted {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 2px 0 rgba(220,38,38,0.15);
}

.vote-card.voted .vote-avatar {
  box-shadow: 0 2px 0 rgba(220,38,38,0.2);
  border-color: #ef4444;
}

.vote-card.voted .vote-name {
  color: #ef4444;
  }

.vote-card.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
  transform: scale(0.95);
}

/* Results */
.verdict {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 26px;
  border-radius: 24px;
  width: 100%;
  border: 2px solid;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}

.verdict h2 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;

}

.verdict p {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.65);
}

.verdict.caught {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.verdict.caught h2 {
  color: #22c55e;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
}

.verdict.escaped {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.verdict.escaped h2 {
  color: #ef4444;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
}

.results-section {
  margin-bottom: 26px;
  width: 100%;
}

.results-section h3 {
  font-family: 'Lilita One', sans-serif;
  margin-bottom: 14px;
  color: #d97706;
  text-align: center;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.12);

}

.question-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.q-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.q-card .q-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}

.q-normal .q-label {
  color: #22c55e;
  }

.q-imposter .q-label {
  color: #ef4444;
  }

.q-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

#vote-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.vote-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.vote-chip-voter {
  padding: 6px 12px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.5);
}

.vote-chip-target {
  padding: 6px 12px;
  background: rgba(232,67,122,0.2);
  color: var(--orange);
}

#scoreboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.score-row .score-points {
  color: #0ea5e9;
  }

.score-row.imposter-row {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}

.imposter-badge {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.65rem;
  padding: 2px 10px;
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 50px;
  letter-spacing: 1px;
  vertical-align: middle;
  margin-left: 6px;
}

.chat-bubble-you {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.15);
  border-radius: 20px 20px 6px 20px;
}

/* Responsive */
@media (max-width: 800px) {
  #screen-reveal { max-width: 560px; }

  .reveal-top-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .reveal-top-info h2 { text-align: center; }
  .reveal-top-info .screen-sub { text-align: center; }

  .reveal-question-box {
    text-align: center;
    margin-left: 0;
  }

  .reveal-layout {
    flex-direction: column;
  }

  .reveal-left {
    max-height: none;
    overflow-y: visible;
  }

  .reveal-right {
    width: 100%;
    min-width: 0;
    max-height: none;
  }

  .reveal-right .chat-messages {
    height: 250px;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .logo {
  font-family: 'Lilita One', sans-serif;
  font-size: 2.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  line-height: 1.1;
}
  .question-comparison { grid-template-columns: 1fr; }
  .vote-grid { grid-template-columns: 1fr; }
  .home-card { padding: 24px 20px; }
  #lobby-code {
  font-family: 'Lilita One', sans-serif;
  letter-spacing: 5px;
  color: white;
  font-size: 2.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
  .screen-header h2 { font-size: 1.5rem; }
}

h2 {
  text-align: center;
  margin-bottom: 0;
}

/* Reveal Splash Overlay */
.reveal-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #f472b6, #e8437a, #db2777);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reveal-splash.active {
  opacity: 1;
}

.reveal-splash.fade-out {
  opacity: 0;
}

.splash-content {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.splash-label {
  font-family: 'Lilita One', cursive;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: splashSlideUp 0.5s ease forwards 0.3s;
}

.splash-question {
  font-family: 'Nunito', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: splashSlideUp 0.6s ease forwards 1.6s;
}

@keyframes splashSlideUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .splash-label { font-size: 1.2rem; }
  .splash-question { font-size: 1.6rem; }
}
