@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Lexend+Mega&display=swap');

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

body {
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Lexend', sans-serif;
  color: #111827;
  display: flex;
  justify-content: center;
  padding: 28px 16px 52px;
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1440px;
  height: 1440px;
  background-image: url('427-4271167_clip-art-mundo-terra-dos-animados-transparent-background.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.game-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header */
header {
  text-align: center;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 6px;
}

h1 {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #111827;
}

.header-actions {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-btn,
.save-btn {
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #6b7280;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.stats-btn:hover,
.save-btn:hover {
  border-color: #111827;
  color: #111827;
}

.save-btn-active {
  border-color: #111827;
  color: #111827;
}

.fab-group {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 50;
}

.site-footer {
  text-align: center;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer p {
  font-size: 0.7rem;
  color: #d1d5db;
  font-weight: 400;
  line-height: 1.6;
}

.lb-fab {
  position: static;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111827;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

.lb-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

.lb-loading {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 16px 0;
}

.lb-empty {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 16px 0;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: #f8f8fa;
}

.lb-row-me {
  background: #111827;
}

.lb-row-me .lb-rank,
.lb-row-me .lb-name,
.lb-row-me .lb-score {
  color: #ffffff;
}

.lb-your-rank {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 8px;
}

.emoji-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-opt {
  width: 38px;
  height: 38px;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  background: #f8f8fa;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  padding: 0;
}

.emoji-opt:hover {
  border-color: #111827;
  background: #ffffff;
  transform: scale(1.1);
}

.emoji-opt.selected {
  border-color: #111827;
  background: #111827;
}

.save-description {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 4px;
}

.stats-username {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.change-name-btn {
  background: none;
  border: none;
  font-family: 'Lexend', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  margin-top: 4px;
}

.change-name-btn:hover { color: #111827; }

.date {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.user-bar {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

.logout-btn {
  background: none;
  border: none;
  font-family: 'Lexend', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d1d5db;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.logout-btn:hover { color: #111827; }

.intro-text {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

/* Cards */
.city-card,
.guess-section,
.result-card,
.game-card {
  background: #f8f8fa;
  border: 1px solid #e8e8ec;
  border-radius: 22px;
}

/* City card */
.city-card {
  padding: 32px 24px;
  text-align: center;
}

.loading {
  color: #9ca3af;
  font-size: 0.95rem;
  padding: 16px 0;
}

/* Auth card */
.auth-card {
  background: #f8f8fa;
  border: 1px solid #e8e8ec;
  border-radius: 22px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-tabs {
  display: flex;
  background: #ebebed;
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 9px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #9ca3af;
  background: transparent;
  transition: all 0.15s;
}

.auth-tab.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.auth-form {
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.auth-input:focus { border-color: #111827; }

.auth-error {
  font-size: 0.78rem;
  color: #991b1b;
  text-align: center;
  min-height: 1em;
}

/* Sparkles */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: sparkle-fly linear forwards;
  line-height: 1;
}

@keyframes sparkle-fly {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 1; }
  20%  { opacity: 1; }
  70%  { opacity: 0.8; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.1) rotate(540deg); opacity: 0; }
}

/* End card */
.end-card {
  background: #f8f8fa;
  border: 1px solid #e8e8ec;
  border-radius: 22px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.end-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.end-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.end-score {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.04em;
  line-height: 1;
}

.end-out-of {
  font-size: 1rem;
  font-weight: 400;
  color: #9ca3af;
}

.end-pct {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #9ca3af;
  letter-spacing: -0.02em;
}

.end-message {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 8px 0 16px;
}

.already-date {
  font-size: 0.82rem;
  color: #9ca3af;
  font-weight: 500;
}

/* End screen city cards */
.end-cities {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.end-cities-loading {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
  padding: 12px 0;
}

.end-city-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
}

.end-city-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.end-city-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.end-city-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.end-city-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.end-city-name {
  flex: 1;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

.end-city-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  background: #f8f8fa;
  border: 1px solid #e8e8ec;
  border-radius: 20px;
  padding: 3px 10px;
}

.end-city-extract {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Scoring guide */
.scoring-guide {
  margin-top: 20px;
  border-top: 1px solid #e8e8ec;
  padding-top: 20px;
}

.scoring-guide-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.scoring-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scoring-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
}

.tier-range {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  color: #111827;
  min-width: 36px;
}

.tier-label {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
  text-align: left;
}

.tier-pts {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
}

.great-pts { background: #dcfce7; color: #166534; }
.good-pts  { background: #fef9c3; color: #854d0e; }
.off-pts   { background: #fee2e2; color: #991b1b; }

.city-flag {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 14px;
}

.city-card h2 {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.city-country {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.city-time {
  font-size: 0.82rem;
  color: #9ca3af;
  font-weight: 400;
  margin-bottom: 16px;
}

.prompt {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 400;
}

/* Guess section */
.guess-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.unit-toggle {
  display: flex;
  background: #ebebed;
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.unit-btn {
  padding: 6px 20px;
  border: none;
  border-radius: 9px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #9ca3af;
  background: transparent;
  transition: all 0.15s;
}

.unit-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adj-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
  touch-action: manipulation;
}

.adj-btn:hover {
  border-color: #111827;
  color: #111827;
}

.adj-btn:active {
  transform: scale(0.93);
}

.temp-display {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

#tempInput {
  width: 95px;
  text-align: center;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  color: #111827;
  border: none;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
  letter-spacing: -0.03em;
}

#tempInput::-webkit-inner-spin-button,
#tempInput::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.unit-label {
  font-family: 'Lexend', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: #d1d5db;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  touch-action: manipulation;
}

.submit-btn:hover {
  background: #374151;
}

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

/* Result card */
.result-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.city-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.result-condition {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.result-temps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8e8ec;
}

.result-row .label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-row strong {
  font-size: 1rem;
  color: #111827;
  font-weight: 600;
}

.diff-badge {
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.diff-badge.great {
  background: #dcfce7;
  color: #166534;
}

.diff-badge.good {
  background: #fef9c3;
  color: #854d0e;
}

.diff-badge.off {
  background: #fee2e2;
  color: #991b1b;
}

.scores {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8e8ec;
  overflow: hidden;
}

.score-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  gap: 2px;
}

.score-box span {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.score-box strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}

.score-divider {
  width: 1px;
  height: 40px;
  background: #e8e8ec;
}

.share-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #111827;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.share-btn:hover {
  border-color: #111827;
  background: #f8f8fa;
}

.action-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.save-score-btn {
  width: 100%;
  padding: 12px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.save-score-btn:hover {
  background: #374151;
}

.comeback {
  font-size: 0.78rem;
  color: #d1d5db;
  text-align: center;
  font-weight: 400;
}

/* Climate section */
.climate-section {
  width: 100%;
  border-top: 1px solid #e8e8ec;
  padding-top: 18px;
}

.climate-loading {
  text-align: center;
  font-size: 0.82rem;
  color: #d1d5db;
  padding: 8px 0;
}

.climate-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.climate-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.climate-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.climate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
}

.climate-label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.climate-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
}

.climate-vs {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
}

/* Home card */
.home-card {
  background: #f8f8fa;
  border: 1px solid #e8e8ec;
  border-radius: 22px;
  padding: 28px 24px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.home-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
}

.home-divider {
  width: 1px;
  background: #e8e8ec;
  flex-shrink: 0;
}

.home-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 24px;
  justify-content: center;
}

.home-wiki-photo {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.home-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.home-flag {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.home-city-name {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.home-city-country {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-mode-btn {
  width: 100%;
  padding: 13px 14px;
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
  border-radius: 14px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  letter-spacing: 0.02em;
}

.home-mode-btn:hover {
  background: #374151;
  border-color: #374151;
}

.home-mode-btn.secondary {
  background: #ffffff;
  color: #111827;
  border-color: #e0e0e0;
}

.home-mode-btn.secondary:hover {
  border-color: #111827;
  background: #f4f4f6;
}

/* Multiplayer — mode select */
.game-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.mode-buttons {
  display: flex;
  gap: 12px;
}

.mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 16px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mode-btn:hover {
  border-color: #111827;
  background: #f4f4f6;
}

.mode-icon {
  font-size: 2rem;
  line-height: 1;
}

/* Multiplayer — player setup */
.player-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.player-name-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.player-name-input:focus {
  border-color: #111827;
}

.remove-player-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e8e8ec;
  border-radius: 50%;
  background: white;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.remove-player-btn:hover {
  border-color: #111827;
  color: #111827;
}

.add-player-btn {
  background: transparent;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}

.add-player-btn:hover {
  border-color: #111827;
  color: #111827;
}

/* Multiplayer — current player label */
.mp-player-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Pass overlay */
.pass-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
}

.pass-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  width: 100%;
}

.pass-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pass-name {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Round results */
.round-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  margin-bottom: 6px;
}

.round-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.round-guess {
  font-size: 0.85rem;
  color: #6b7280;
}

.round-pts {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #111827;
  min-width: 48px;
  text-align: right;
}

/* Leaderboard */
.leaderboard {
  background: #f8f8fa;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  min-width: 24px;
}

.lb-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.lb-score {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
}

.round-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Final leaderboard */
.final-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 14px;
  margin-bottom: 8px;
}

.final-row.winner {
  border-color: #111827;
  background: #f8f8fa;
}

.final-medal {
  font-size: 1.4rem;
  min-width: 32px;
  text-align: center;
}

.final-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.final-score {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #111827;
}

/* Stats modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-content {
  background: #ffffff;
  border: 1px solid #e8e8ec;
  border-radius: 22px;
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.modal-content h2 {
  font-family: 'Lexend Mega', sans-serif;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #111827;
  margin-bottom: 24px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.close-btn:hover {
  color: #111827;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  background: #f8f8fa;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-rank {
  grid-column: 1 / -1;
}

.stat strong {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
