@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,
.meme-label, .play-btn, .caption-card-tag,
.stag-name, .vote-name-full {
  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;
}

.screen-fullwidth {
  max-width: 100%;
}

.screen-fullwidth.active {
  display: flex;
}

@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 - teal/cyan theme */
.logo-section {
  background: linear-gradient(165deg, #06b6d4, #0891b2, #0e7490);
  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;
}

.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: #0891b2;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(8,145,178,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;
  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); }

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

.btn-orange {
  background: #0891b2;
  box-shadow: 0 2px 8px rgba(8,145,178,0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(8,145,178,0.4); }
.btn-orange:active { transform: translateY(1px); }

.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: #0891b2;
  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: #0891b2; 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(8,145,178,0.25);
}
.step p { font-size: 0.92rem; font-weight: 700; color: rgba(0,0,0,0.45); line-height: 1.4; }
.step strong { color: #0891b2; }

/* 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;
}
.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, #06b6d4, #0891b2, #0e7490);
  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; }
.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 {
  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);
}
.player-avatar span { font-family: 'Lilita One', sans-serif; font-size: 1.3rem; color: white; }
.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; }

/* 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;
  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;
}
.timer-small {
  width: 52px; height: 52px; min-width: 52px;
  font-size: 1.4rem; margin-bottom: 0; border-width: 3px;
}

@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: #0891b2; color: white; border-radius: 50px;
  font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 18px;
  box-shadow: 0 2px 0 #065a73, 0 6px 15px rgba(8,145,178,0.3);
  text-transform: uppercase; font-family: 'Lilita One', sans-serif;
  border: 2px solid rgba(0,0,0,0.08);
}

/* Meme video (captioning screen) */
.meme-video-wrap {
  width: 100%; margin-bottom: 20px; border-radius: 20px;
  overflow: hidden; border: 3px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); background: #000;
}
.meme-video-wrap video {
  width: 100%; display: block; max-height: 360px;
  object-fit: contain; background: #000;
}

/* Mode toggle */
.mode-toggle {
  width: 100%;
  margin-bottom: 18px;
}

.mode-options {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mode-btn {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  background: #ffffff;
  font-family: 'Lilita One', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  color: rgba(0,0,0,0.4);
}

.mode-btn:hover {
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.04);
}

.mode-btn.active {
  border-color: #0891b2;
  background: rgba(8,145,178,0.1);
  color: #0891b2;
}

.mode-desc {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(0,0,0,0.35);
}

/* Choices grid */
.choices-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.choice-btn {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  color: #1a202c;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.choice-btn:hover {
  border-color: #0891b2;
  background: rgba(8,145,178,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.choice-btn.selected {
  border-color: #22c55e;
  background: rgba(34,197,94,0.12);
  color: #16a34a;
}

.choice-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.choice-label {
  font-family: 'Lilita One', sans-serif;
  color: #0891b2;
  margin-right: 10px;
}

/* Caption buttons row */
.caption-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.caption-buttons .btn {
  flex: 1;
}

/* Rewatch overlay */
.rewatch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rewatch-content {
  max-width: 500px;
  width: 100%;
  padding: 20px;
}

.rewatch-video-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rewatch-video-wrap video {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

/* ===== SLIDESHOW REVEAL ===== */
.slideshow-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 40px);
  padding: 20px;
}

.slideshow-counter {
  font-family: 'Lilita One', sans-serif;
  font-size: 1rem;
  color: rgba(0,0,0,0.35);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.slideshow-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 480px;
}

.slideshow-card.slide-in {
  animation: slideCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.slide-in-text {
  animation: slideTextIn 0.4s ease forwards;
}

@keyframes slideTextIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.slideshow-caption {
  padding: 20px 24px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
  color: #1a202c;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-player-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.stag-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(0,0,0,0.1);
}
.stag-avatar span {
  font-family: 'Lilita One', sans-serif;
  font-size: 0.95rem; color: white;
}
.stag-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tag-color, #1a202c);
}

/* ===== DISCUSSION SCREEN ===== */
.discuss-layout {
  width: 100%;
  display: flex;
  gap: 20px;
  min-height: calc(100vh - 40px);
}

.discuss-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.discuss-header {
  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;
}

.discuss-header h2 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
  margin-bottom: 0;
}

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

/* Caption grid - full width */
.caption-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex: 1;
  align-content: start;
}

.caption-card {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  overflow: hidden;
  animation: captionCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  display: flex;
  flex-direction: column;
}

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

.caption-card-tag {
  padding: 8px 16px;
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

.caption-card-text {
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a202c;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Chat (discussion right panel) */
.discuss-right {
  width: 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.discuss-bottom {
  flex-shrink: 0;
}

.chat-box {
  width: 100%;
  background: rgba(0,0,0,0.04);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  overflow: hidden;
}

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

.chat-bubble-you {
  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; text-transform: uppercase;
  transition: background 0.15s;
}
.btn-send:hover { background: #16a34a; }

/* ===== VOTING SCREEN (full-width grid) ===== */
.vote-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 40px);
  padding: 20px 40px;
}

.vote-header {
  text-align: center;
  margin-bottom: 30px;
}

.vote-header h2 {
  font-family: 'Lilita One', sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0;
}

.vote-header .timer-ring {
  margin: 0 auto 16px;
}

.vote-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

.vote-card-full {
  padding: 32px 20px;
  background: #ffffff;
  border: 3px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  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-full {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(0,0,0,0.1);
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  transition: all 0.15s;
}
.vote-avatar-full span {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.8rem; color: white;
}
.vote-name-full {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.vote-card-full: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-full:hover .vote-avatar-full {
  transform: scale(1.1);
}
.vote-card-full:active {
  transform: translateY(1px);
}
.vote-card-full.voted {
  border-color: #ef4444;
  background: rgba(239,68,68,0.15);
}
.vote-card-full.voted .vote-avatar-full {
  border-color: #ef4444;
}
.vote-card-full.voted .vote-name-full {
  color: #ef4444;
}
.vote-card-full.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
  transform: scale(0.95);
}

/* ===== RESULTS ===== */
.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;
}

/* Score breakdown */
.score-breakdown {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.4);
  font-weight: 700;
  margin-left: 8px;
}

#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(8,145,178,0.2); color: #0891b2; }

#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; font-size: 0.95rem;
}
.score-row .score-points { color: #0ea5e9; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .discuss-layout {
    flex-direction: column;
  }
  .discuss-right {
    width: 100%;
    min-width: 0;
  }
  .discuss-right .chat-messages {
    height: 250px;
    min-height: 0;
  }
  .discuss-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .discuss-header h2 { text-align: center; }
  .discuss-header .screen-sub { text-align: center; }

  .vote-layout {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .caption-grid { grid-template-columns: 1fr; }
  .vote-grid-full { grid-template-columns: 1fr; }
  .home-card { padding: 24px 20px; }
  .screen-header h2 { font-size: 1.5rem; }
}


/* Lobby Chat */
#lobby-chat-box {
  margin-top: 18px;
}

#lobby-chat-box .chat-messages {
  height: 200px;
}
