@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-attachment: fixed;
  color: #1a202c;
  display: flex;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

h1, h2, h3, .btn, .badge, .lobby-code-label,
.category-pill, .player-tag, .timer-ring,
.q-label, .play-btn, .prompt-word, .round-pill {
  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, #fcd34d, #f59e0b, #d97706);
  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 4px 20px rgba(0, 0, 0, 0.04);
}

/* 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: #e8a317;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(232,163,23,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;
  position: relative;
}

.btn-green {
  background: #22c55e;
  color: white;
  box-shadow: 0 4px 16px rgba(34,197,94,0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,197,94,0.35); }
.btn-green:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(34,197,94,0.2); }

.btn-purple {
  background: #8b6eb0;
  box-shadow: 0 4px 16px rgba(139,110,176,0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139,110,176,0.35); }
.btn-purple:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(139,110,176,0.2); }

.btn-orange {
  background: #c98a6b;
  box-shadow: 0 4px 16px rgba(201,138,107,0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,138,107,0.35); }
.btn-orange:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(201,138,107,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 4px 20px rgba(0,0,0,0.1);
}

.how-to-play h3 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.2rem;
  color: #e8a317;
  margin-bottom: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.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: #e8a317;
  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 10px rgba(232,163,23,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.1);
  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: #e8a317; 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;
  color: #1a202c;
  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, #fcd34d, #f59e0b, #d97706);
  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);
}

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

/* Section title */
.section-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e8a317;
  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 2px 10px rgba(0,0,0,0.08);
  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 1px 2px rgba(0,0,0,0.08), 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 0 rgba(0, 0, 0, 0.04); }

.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;
  color: #1a202c;
}

.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(232, 163, 23, 0.15);
  color: #e8a317;
  border: 1px solid rgba(232, 163, 23, 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: #e8a317;
  letter-spacing: 1px;
}

/* 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.timer-small {
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
  margin-bottom: 0;
}

.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); }
}

/* ===== DRAWING SCREEN ===== */
.draw-layout {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.draw-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.draw-right {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.draw-right .chat-box {
  flex: 1;
}

.draw-right .chat-messages {
  height: 340px;
}

#screen-drawing {
  max-width: 1100px;
}

.draw-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.round-pill {
  padding: 8px 22px;
  background: rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.6);
}

/* Turn banner */
.turn-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(0, 0, 0, 0.04);
  border-radius: 50px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.turn-banner.my-turn {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 25px rgba(34,197,94,0.2);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(34,197,94,0.15); }
  50% { box-shadow: 0 0 30px rgba(34,197,94,0.3); }
}

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

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

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

.turn-banner.my-turn .turn-text {
  color: #22c55e;
}

/* Prompt */
.prompt-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
  width: 100%;
}

.prompt-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prompt-word {
  font-size: 1.4rem;
  color: #e8a317;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.04);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Canvas */
.canvas-wrapper {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 20px;
  border: 4px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.04), 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
  touch-action: none;
  position: relative;
}

.canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Lock overlay when not your turn */
.canvas-lock {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  pointer-events: none;
}

.canvas-lock span {
  background: rgba(0,0,0,0.4);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Ink bar */
.ink-bar-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ink-bar-bg {
  flex: 1;
  height: 16px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.ink-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 50px;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(34,197,94,0.3);
}

.ink-bar-fill.ink-low {
  background: linear-gradient(90deg, #e8a317, #cc8c0e);
  box-shadow: 0 0 10px rgba(232,163,23,0.3);
}

.ink-bar-fill.ink-empty {
  background: linear-gradient(90deg, #ef4444, #ef4444);
  box-shadow: 0 0 10px rgba(239,68,68,0.3);
}

.ink-label {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  min-width: 70px;
  text-align: right;
}

/* Bottom section */
.draw-bottom-section {
  width: 100%;
}

/* ===== 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: 200px;
  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-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: 1.15rem; color: rgba(0, 0, 0, 0.8); }

.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: #e8a317;
  text-align: center;
  font-size: 1.4rem;
  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: 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.q-card .q-label {
  font-size: 0.88rem;
  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: 1.1rem; line-height: 1.5; color: rgba(0, 0, 0, 0.8); 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(201,138,107,0.2); color: #c98a6b; }

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

.score-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.04);
  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: 1.05rem;
}

.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;
}

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

/* Responsive */
@media (max-width: 800px) {
  .draw-layout {
    flex-direction: column;
    align-items: center;
  }

  .draw-right {
    width: 100%;
  }

  .draw-right .chat-messages {
    height: 160px;
  }

  #screen-drawing {
    max-width: 560px;
  }
}

@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; }
  .prompt-word { font-size: 1.2rem; }
  .draw-top-bar { flex-wrap: wrap; }
}
