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

:root {
  --background: rgba(20, 30, 48, 0.95);
  --foreground: #e8e9f3;
  --sidebar-bg: rgba(25, 35, 55, 0.9);
  --border-color: rgba(100, 130, 180, 0.3);
  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-gold: #fbbf24;
  --accent-gold-light: #fde68a;
  --green-correct: #066e4d;
  --yellow-partial: #ad610a;
  --red-incorrect: #8d0808;
  --gray-200: rgba(55, 70, 100, 0.5);
  --gray-600: #9ca3af;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: rgba(15, 25, 40, 0.95);
    --foreground: #e8e9f3;
    --sidebar-bg: rgba(20, 30, 50, 0.9);
    --border-color: rgba(100, 130, 180, 0.3);
    --gray-200: rgba(45, 60, 90, 0.5);
    --gray-600: #9ca3af;
    --green-correct: #066e4d;
    --yellow-partial: #ad610a;
    --red-incorrect: #8d0808;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0f1e;
  color: var(--foreground);
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Background image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #0a0f1e !important; /* Fallback color */
  background-attachment: fixed !important;
  z-index: -1;
  opacity: 0.4 !important;
  filter: none !important;
}

/* Sidebar with glassmorphism */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem 1rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sidebar-date {
  text-align: center;
  font-size: 0.875rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.sidebar-date.replay-mode {
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 0.375rem;
  transition: background 0.2s;
  margin: 0;
  box-shadow: none;
}

.burger-menu:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: none;
  box-shadow: none;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-only {
  display: none !important;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  border-radius: 0.5rem;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  position: relative;
}

.tab-indicator {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--gray-200);
}

.tab-indicator.complete {
  background: var(--green-correct);
  color: white;
}

.tab-indicator.incomplete {
  background: var(--yellow-partial);
  color: white;
}

.tab-indicator.failed {
  background: var(--red-incorrect);
  color: white;
}

.sidebar nav a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}

.sidebar nav a.disabled:hover {
  background: transparent;
  transform: none;
}

.nav-section-label {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.1rem 0.50rem;
  margin-top: 0.5rem;
}

.nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.75rem 0;
}

.sidebar nav a.coming-soon {
  opacity: 0.4;
}

.sidebar nav a.coming-soon:hover {
  background: transparent;
  transform: none;
  opacity: 0.3;
}

.custom-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 1rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar nav a:hover .custom-tooltip {
  opacity: 1;
}

.sidebar-countdown {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.nav-icon {
  font-size: 1.25rem;
  min-width: 24px;
  text-align: center;
}

.sidebar nav a:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.sidebar nav a.active {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

/* Main content */
main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  margin-left: 250px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;
  text-shadow: none;
  letter-spacing: 1px;
  word-wrap: break-word;
}

/* Guess counter */
.guess-counter {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Input section at top */
.input-section {
  margin-bottom: 2rem;
}

.input-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

input {
  width: 100%;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  color: var(--foreground);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
  border-color: var(--accent-secondary);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Suggestions dropdown */
.suggestions {
  position: absolute;
  z-index: 10;
  width: 100%;
  background: var(--background);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.suggestion-item {
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.suggestion-item:hover {
  background: rgba(59, 130, 246, 0.3);
}

.suggestion-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
}

.suggestion-name {
  font-weight: 500;
}

/* Attribute headers */
.attribute-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.attribute-header {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: help;
  position: relative;
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--background);
  backdrop-filter: blur(10px);
  color: var(--foreground);
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  white-space: normal;
  width: 200px;
  font-size: 0.75rem;
  text-align: left;
  z-index: 100;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: none;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1.4;
}

/* Guesses */
.guesses-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.guess-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.guess-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: white;
  text-align: center;
  padding: 0.5rem;
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: rotateX(-90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Arrow indicators for age/debut */
.guess-cell::after {
  content: attr(data-arrow);
  position: absolute;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.guess-cell > * {
  position: relative;
  z-index: 1;
}

/* Animation only for new guesses */
.guess-row.new-guess .guess-cell {
  animation: flipIn 0.8s ease forwards;
}

.guess-row.new-guess .guess-cell:nth-child(1) { animation-delay: 0s; }
.guess-row.new-guess .guess-cell:nth-child(2) { animation-delay: 0.4s; }
.guess-row.new-guess .guess-cell:nth-child(3) { animation-delay: 0.8s; }
.guess-row.new-guess .guess-cell:nth-child(4) { animation-delay: 1.2s; }
.guess-row.new-guess .guess-cell:nth-child(5) { animation-delay: 1.6s; }
.guess-row.new-guess .guess-cell:nth-child(6) { animation-delay: 2s; }
.guess-row.new-guess .guess-cell:nth-child(7) { animation-delay: 2.4s; }

/* Existing guesses should be visible immediately */
.guess-row:not(.new-guess) .guess-cell {
  opacity: 1;
  transform: rotateX(0deg);
}

@keyframes flipIn {
  0% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

.guess-cell.correct {
  background: var(--green-correct);
}

.guess-cell.partial {
  background: var(--yellow-partial);
}

.guess-cell.incorrect {
  background: var(--red-incorrect);
}

.age-range-text {
  font-size: 0.65rem;
  font-weight: normal;
  opacity: 0.9;
  margin-top: 0.15rem;
}

/* Character image in cell */
.guess-cell.image-cell {
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--gray-200) !important;
}

.guess-cell.image-cell:hover {
  transform: scale(1.05);
}

.character-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Submit button */
button {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.5px;
}

button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Give Up button - small and subtle in top right */
.give-up-button {
  background: rgba(220, 38, 38, 0.9) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.7rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s !important;
  position: absolute;
  top: -1.75rem;
  right: 0;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: inline-block !important;
}

.give-up-button:hover:not(:disabled) {
  background: rgba(185, 28, 28, 1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  transform: scale(1.05) !important;
}

.give-up-button:disabled {
  opacity: 1 !important;
  background: rgba(220, 38, 38, 0.9) !important;
  cursor: not-allowed !important;
}

/* Give Up Confirmation Modal */
.give-up-modal-body {
  padding: 1.5rem;
  text-align: center;
}

.give-up-modal-body p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.give-up-modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.give-up-modal-buttons button {
  flex: 1;
  max-width: 150px;
}

.give-up-confirm-btn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.give-up-confirm-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.give-up-cancel-btn {
  background: var(--gray-200);
  border: 1px solid var(--border-color);
}

.give-up-cancel-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
}

/* Result messages */
.result-message {
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
  font-size: 1.125rem;
  text-shadow: none;
}

.result-message.success {
  color: var(--green-correct);
}

.result-message.failure {
  color: var(--red-incorrect);
}

.failure-character-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid var(--red-incorrect);
}

.answer-display-correct {
  background: var(--background);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--green-correct);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideDown 0.5s ease forwards;
}

.answer-display-incorrect {
  background: var(--background);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--red-incorrect);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.answer-character-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid var(--accent-primary);
}

.answer-card-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.answer-card-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  width: auto;
  max-width: none;
  background: var(--background);
  backdrop-filter: blur(10px);
  color: var(--foreground);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: inherit;
}

.answer-card-btn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.answer-stats-box {
  background: var(--background);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.5rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-stats-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--foreground);
}

.answer-stats-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.game-stats-display {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 1rem 0 0.5rem 0;
  font-weight: 500;
}

.music-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.music-link-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  width: auto;
  max-width: none;
  background: var(--background);
  backdrop-filter: blur(10px);
  color: var(--foreground);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.music-link-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Quote page */
.quote-container {
  background: var(--gray-200);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-primary);
}

.quote-text {
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.quote-character-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.quote-character-name {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-primary);
}

.hint-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hint-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-height: 60px;
  justify-content: center;
}

.hint-displays .hint-button-container {
  flex-direction: column;
  gap: 0.25rem;
  min-height: 60px;
  justify-content: center;
}

.hint-availability {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  min-height: 18px;
  text-align: center;
}

.hint-button {
  padding: 0.5rem 1rem;
  background: var(--accent-secondary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: none;
}

.hint-button:hover:not(:disabled) {
  background: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: none;
}

.hint-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hint-displays {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.hint-display {
  padding: 0.5rem 0.75rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  min-height: 60px;
}

.hint-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 2px solid var(--accent-primary);
}

.quote-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quote-guess-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
}

.quote-guess-item.correct-guess {
  border-color: var(--green-correct);
}

.quote-guess-item.incorrect-guess {
  border-color: var(--red-incorrect);
}

.quote-guess-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.quote-guess-name {
  font-weight: 600;
  flex: 1;
}

/* Loading state */
.loading {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.25rem;
}

/* Music Quiz */
.music-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.music-player {
  width: 100%;
  max-width: 500px;
}

.volume-control {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-section .volume-control {
  justify-content: space-between;
  max-width: 100%;
  padding: 0.5rem 0;
}

.volume-slider-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-section .volume-slider-group .volume-slider {
  width: 150px;
  flex: none;
}

.settings-section .volume-value {
  min-width: 40px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--foreground);
}

.volume-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--accent-secondary);
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
  background: var(--accent-secondary);
  transform: scale(1.2);
}

.volume-label {
  font-size: 0.875rem;
  color: var(--foreground);
  min-width: 60px;
}

.play-button {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.play-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: translateY(-2px);
}

.play-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.music-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.music-guess-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
}

.music-guess-item.correct-guess {
  border-color: var(--green-correct);
}

.music-guess-item.incorrect-guess {
  border-color: var(--red-incorrect);
}

.music-album-art {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Results Page */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.result-item {
  background: var(--background);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.result-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.result-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.result-header label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
}

.result-icon {
  font-size: 1.5rem;
}

.result-content {
  padding: 1rem;
}

.result-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.result-stats-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.result-stats-compact .stat-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-stats-compact .stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.result-stats-compact .stat-score-box.won::before {
  background: #48c774;
}

.result-stats-compact .stat-score-box.lost::before {
  background: #ff6b6b;
}

.result-stats-compact .stat-streak-box::before {
  background: #ff8c00;
}

.result-stats-compact .stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.result-stats-compact .result-score {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0;
  background: transparent;
  border: none !important;
  color: var(--text-primary) !important;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-stats-compact .streak {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-score {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--gray-200);
}

.result-score.won {
  color: var(--green-correct);
  border: 2px solid var(--green-correct);
}

.result-score.lost {
  color: var(--red-incorrect);
  border: 2px solid var(--red-incorrect);
}

.streak {
  font-size: 1rem;
  font-weight: 600;
  color: #f97316;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.not-played {
  color: var(--gray-600);
  font-style: italic;
}

.solve-count {
  font-size: 0.9em;
  color: var(--foreground);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.share-btn {
  width: auto;
  max-width: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin: 0;
}

.share-all-btn {
  width: 100%;
  max-width: 600px;
  padding: 1rem;
  font-size: 1.125rem;
}

.sticky-share-btn {
  position: fixed !important;
  bottom: 1rem !important;
  left: calc(50% + 125px) !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important;
  width: auto !important;
  max-width: 300px !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid var(--accent-color) !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .sticky-share-btn {
    left: 50% !important;
    max-width: calc(100% - 2rem) !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.25rem !important;
  }
}

/* Notification Bell - Fixed Top Right */
.notification-bell {
  position: fixed;
  top: 1rem;
  right: 4rem;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 999;
  margin: 0;
  max-width: none;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.notification-bell:hover {
  transform: scale(1.1);
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.notification-bell:focus,
.notification-bell:focus-visible,
.notification-bell:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.bell-icon,
.notification-icon {
  width: 28px;
  height: 28px;
  filter: none;
  box-shadow: none;
  outline: none;
  border: none;
}

/* Settings Button - Fixed Top Right */
.settings-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 999;
  margin: 0;
  max-width: none;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.settings-button:hover {
  transform: scale(1.1);
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.settings-button:focus,
.settings-button:focus-visible,
.settings-button:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.settings-icon {
  width: 28px;
  height: 28px;
  filter: none;
  box-shadow: none;
  outline: none;
  border: none;
}

/* Notification Center - Bubble Dropdown */
.notification-center {
  position: fixed;
  top: 5.5rem;
  right: 4rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 500px;
  background: var(--background);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 998;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s ease;
}

.notification-center::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: var(--background);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.notification-center-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--foreground);
}

.notification-clear-all {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  width: auto;
  max-width: none;
  margin: 0;
  box-shadow: none;
  text-shadow: none;
  filter: none;
  outline: none;
}

.notification-clear-all:hover {
  text-decoration: underline;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: #ffffff;
  text-shadow: none !important;
  filter: none !important;
}

.notification-clear-all:focus {
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.notification-settings {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--gray-100);
}

.notification-setting-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.notification-setting-toggle input[type="checkbox"] {
  margin-right: 0.75rem;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.notification-setting-toggle span {
  font-size: 0.875rem;
  color: var(--foreground);
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.no-notifications {
  text-align: center;
  color: var(--gray-600);
  padding: 2rem 1rem;
}

.notification-item {
  background: var(--gray-200);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  animation: fadeIn 0.3s ease;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-timestamp {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

/* Toast Notification - slides from bell */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--background);
  backdrop-filter: blur(20px);
  color: var(--foreground);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  z-index: 998;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 380px;
  width: auto;
  opacity: 0;
  transform: translateX(450px);
  transform-origin: right center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-120px);
}

/* Toast unlock notification styles */
.toast-unlock {
  text-align: center;
}

.toast-unlock-title {
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-unlock-name {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.toast-unlock-link {
  display: inline-block;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.toast-unlock-link:hover {
  border-bottom-color: var(--accent-primary);
}

.toast-unlock-double {
  padding: 1.25rem;
}

.toast-unlock-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.toast-unlock-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.375rem;
}

.toast-unlock-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-unlock-text {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
}

/* Sidebar Footer */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(25, 35, 55, 0.6);
  color: var(--foreground);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  box-shadow: none;
  outline: none;
}

.sidebar-button:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid rgba(100, 130, 180, 0.2);
}

.sidebar-button:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(100, 130, 180, 0.2) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.sidebar-button:active {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(100, 130, 180, 0.2) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.patch-notes-btn {
  position: relative;
}

.patch-notes-notification {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.6), 0 0 4px rgba(255, 152, 0, 0.4);
  animation: pulse-notification 2s ease-in-out infinite;
}

@keyframes pulse-notification {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.kofi-icon {
  font-size: 1.125rem;
}

.service-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.modal-subtitle {
  font-size: 0.875rem;
  font-weight: normal;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* Profile/Stats Page */
.profile-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-header h1 {
  margin: 0;
  text-align: center;
}

.data-management-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.data-management-buttons .btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
  box-shadow: none;
  backdrop-filter: none;
  filter: none;
}

.data-management-buttons .btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--border-color);
  transform: none;
  box-shadow: none;
}

.data-management-buttons .btn-secondary:active {
  transform: none;
}

@media (max-width: 768px) {
  .profile-header {
    justify-content: center;
  }

  .profile-header h1 {
    width: 100%;
    text-align: center;
  }
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-category {
  background: var(--background);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.stat-category.overall-stats {
  border: 2px solid rgba(255, 215, 0, 0.3);
  background: var(--background);
}

.stat-category h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--gray-200);
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
}

.collection-notice {
  background: var(--gray-200);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px dashed var(--border-color);
  text-align: center;
}

.collection-notice p {
  margin: 0.25rem 0;
}

.collection-notice p:first-child {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

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

.modal-content {
  background: var(--background);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: none;
}

.modal-close {
  background: var(--background);
  border: 1px solid var(--border-color);
  font-size: 1.5rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: none;
  line-height: 0;
  margin: 0;
  box-shadow: none;
  font-family: Arial, sans-serif;
  backdrop-filter: none;
  filter: none;
}

.modal-close:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--border-color);
  color: var(--foreground);
  box-shadow: none;
  transform: none;
}

/* Feedback Form */
#feedback-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--gray-200);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: translateY(-2px);
}

/* Import Modal */
.import-modal-content {
  max-width: 600px;
}

.import-modal-body {
  padding: 1.5rem;
}

.import-description {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.import-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.import-option:last-of-type {
  margin-bottom: 0;
}

.import-option h3 {
  color: #ffffff;
  text-shadow: none;
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
}

.import-option p {
  color: var(--gray-400);
  margin: 0 0 0.75rem 0;
}

.import-option ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.import-option li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--foreground);
  font-size: 0.9rem;
}

.import-option li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.import-mode-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-primary.import-mode-btn {
  background: var(--background);
  color: white;
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: none;
  transform: none;
}

.btn-primary.import-mode-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: none;
  box-shadow: none;
}

.btn-danger.import-mode-btn {
  background: var(--background);
  color: white;
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: none;
  transform: none;
}

.btn-danger.import-mode-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: none;
  box-shadow: none;
}

/* Settings Modal */
.settings-modal-content {
  max-width: 600px;
}

.settings-modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.settings-section h3 {
  color: #ffffff;
  text-shadow: none;
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-buttons {
  display: flex;
  gap: 1rem;
}

.settings-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
  box-shadow: none;
  backdrop-filter: none;
  filter: none;
}

.settings-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--border-color);
  transform: none;
  box-shadow: none;
}

.settings-toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: var(--foreground);
  padding: 0.5rem 0;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  display: inline-block;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-600);
  transition: all 0.3s ease;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.settings-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.coming-soon-badge {
  font-size: 0.75rem;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: var(--foreground);
}

.language-option input[type="radio"] {
  margin-right: 0.75rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Patch Notes */
.patch-notes-content {
  max-width: 700px;
}

.patch-notes-body {
  padding: 1.5rem;
}

.patch-note {
  margin-bottom: 2rem;
  background: rgba(25, 35, 55, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.patch-note:last-child {
  margin-bottom: 0;
}

.patch-note-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.patch-note h3 {
  color: #ffffff;
  text-shadow: none;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.patch-date {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0;
  font-style: italic;
}

.patch-section {
  margin-bottom: 1.5rem;
}

.patch-section:last-child {
  margin-bottom: 0;
}

.patch-section h4 {
  color: var(--accent-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.feature-content h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-content p {
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.patch-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.patch-note li {
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--accent-primary);
  margin-bottom: 0.5rem;
  color: var(--foreground);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.patch-character-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.age-indicator {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.age-indicator.correct {
  background: var(--green-correct);
  color: white;
}

.age-indicator.partial {
  background: var(--yellow-partial);
  color: white;
}

.age-indicator.incorrect {
  background: var(--red-incorrect);
  color: white;
}

/* Collection Section */
.collection-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.collection-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collection-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.collection-category {
  margin-bottom: 3rem;
}

.collection-category-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--foreground);
}

.collection-arc {
  margin-bottom: 2rem;
}

.arc-title {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--accent-gold);
}

.collection-game {
  margin-bottom: 1.5rem;
}

.game-title {
  font-size: 1rem;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  font-weight: 600;
}

.arc-title .collection-count,
.game-title .collection-count {
  font-size: 0.75em;
  font-weight: normal;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-left: 0.5rem;
}

.collection-grid {
  display: grid;
  gap: 1rem;
  padding: 0.5rem;
}

.character-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.quote-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.music-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.location-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.collection-item {
  background: var(--gray-200);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.collection-item.unlocked {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.25);
}

.collection-item.unlocked:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.collection-item.guessed {
  background: rgba(100, 100, 120, 0.3);
  border-color: var(--gray-600);
}

.collection-item.unknown {
  background: rgba(30, 40, 60, 0.7);
  border-style: dashed;
  border-color: var(--gray-600);
}

/* Collection highlight animation for newly unlocked items */
.collection-item.collection-highlight {
  animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    border-color: var(--accent-primary);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(59, 130, 246, 0.6);
    border-color: var(--accent-secondary);
  }
}

.collection-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.collection-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.375rem;
}

.collection-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
}

.collection-obscured {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.collection-obscured .collection-image {
  filter: brightness(0.5) blur(4px);
}

.collection-unknown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.unknown-icon {
  font-size: 3rem;
  color: var(--gray-600);
  opacity: 0.5;
}

.unknown-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Quote Collection Specific */
.quote-item {
  min-height: 150px;
}

.quote-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-item .quote-character-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  align-self: center;
}

.quote-item .quote-text {
  font-style: italic;
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.quote-attribution {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 0.875rem;
  text-align: right;
}

.quote-link-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  text-align: center;
  transition: background 0.2s;
}

.quote-link-btn:hover {
  background: var(--accent-secondary);
}

.quote-obscured, .quote-unknown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.obscured-text {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 600;
}

.obscured-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* Music Collection Specific */
.music-item {
  min-height: 180px;
}

.music-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.collection-item .music-album-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.375rem;
}

.collection-item .music-album-art.obscured {
  filter: brightness(0.3) blur(4px);
}

.collection-item .music-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
  line-height: 1.3;
}

.collection-item .music-meta {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.collection-item .music-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.collection-item .music-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.collection-item .music-link-icon:hover {
  transform: scale(1.1);
}

.service-logo-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.music-obscured, .music-unknown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* Collection item clickable state */
.collection-item.clickable {
  cursor: pointer;
}

.collection-stats {
  font-size: 0.75rem;
  color: var(--accent-secondary);
  text-align: center;
  margin-top: 0.25rem;
}

/* Music play indicator in collection */
.play-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  text-align: center;
  padding-left: 3px;
  padding-bottom: 2px;
}

.collection-item.music-item.clickable:hover .play-indicator {
  background: var(--accent-primary);
  transform: scale(1.1);
}

/* Location Collection Specific */
.location-item {
  padding: 0.5rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.location-item.clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.location-item.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.location-item .nation-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.375rem;
}

.location-item .nation-image.obscured {
  filter: brightness(0.4) blur(3px);
}

.location-item .location-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

.location-item .location-name.obscured-text {
  color: var(--gray-600);
}

.location-item .location-name.unknown-label {
  color: var(--gray-600);
  font-size: 0.7rem;
}

.location-unknown-icon {
  font-size: 2.5rem;
  color: var(--gray-600);
  opacity: 0.5;
}

/* Character Detail Modal */
.character-modal-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.character-modal-body {
  padding: 1.5rem;
}

.character-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.character-detail-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  align-self: center;
  border: 3px solid var(--accent-primary);
}

.character-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.character-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--gray-200);
  border-radius: 0.375rem;
  border-left: 3px solid var(--accent-primary);
}

.detail-label {
  font-weight: 600;
  color: var(--accent-secondary);
}

.detail-value {
  color: var(--foreground);
}

.character-usage-stats {
  background: var(--background);
  border: 2px solid var(--accent-primary);
  border-radius: 0.5rem;
  padding: 1rem;
}

.character-usage-stats h3 {
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.usage-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.usage-stat:last-child {
  border-bottom: none;
}

.usage-stat .stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.usage-stat .stat-value {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1rem;
}

.character-wiki-link {
  display: block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s;
}

.character-wiki-link:hover {
  background: var(--accent-secondary);
}

/* Game Analytics Widget */
.game-analytics-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease-in;
}

/* Difficulty Widget */
.difficulty-widget {
  background: var(--background);
  border: 2px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.difficulty-widget[data-difficulty="easy"] {
  border-color: #4ade80;
  background: var(--background);
}

.difficulty-widget[data-difficulty="medium"] {
  border-color: #fbbf24;
  background: var(--background);
}

.difficulty-widget[data-difficulty="hard"] {
  border-color: #fb923c;
  background: var(--background);
}

.difficulty-widget[data-difficulty="extreme"] {
  border-color: #ef4444;
  background: var(--background);
}

.difficulty-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.difficulty-emoji {
  font-size: 2rem;
  line-height: 1;
}

.difficulty-info {
  flex: 1;
}

.difficulty-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.difficulty-rate {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.difficulty-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  display: none; /* Hide description for compactness */
}

/* Answer Tooltip */
.analytics-answer-tooltip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.analytics-answer-tooltip:hover {
  background: rgba(74, 222, 128, 0.25);
  border-color: rgba(74, 222, 128, 0.6);
  transform: scale(1.02);
}

.analytics-answer-tooltip .tooltip-icon {
  font-size: 1rem;
}

.analytics-answer-tooltip .tooltip-text {
  font-size: 0.85rem;
  color: var(--text);
}

.analytics-answer-tooltip .tooltip-text strong {
  color: #4ade80;
  font-weight: 700;
}

/* Trends Widget */
.trends-widget {
  background: var(--background);
  border: 2px solid rgba(230, 57, 57, 0.4);
  border-radius: 0.75rem;
  padding: 1rem;
}

.trends-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--accent-secondary);
}

.trends-icon {
  font-size: 1.2rem;
}

.trends-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Trend Graph */
.trend-graph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  height: 175px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.5rem 0.5rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  position: relative;
}

.trend-bar-container {
  flex: 1;
  display: block;
  position: relative;
  height: 125px; /* Fixed height so percentage calculations work */
}

.trend-bar {
  width: 100%;
  min-height: 5px;
  /* Background set inline based on difficulty color */
  border-radius: 0.25rem 0.25rem 0 0;
  position: absolute;
  bottom: 1.75rem; /* Position above the label - fixed 28px space */
  left: 0;
  transition: all 0.3s ease;
}

.trend-bar:hover {
  filter: brightness(1.2);
  transform: scaleY(1.05);
  cursor: pointer;
}

/* Percentage label - hidden, included in answer tooltip instead */
.trend-value {
  display: none;
}

/* Answer tooltip on bars */
.trend-answer {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.trend-answer::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.95);
}

.trend-bar:hover .trend-answer {
  opacity: 1;
}

.trend-label {
  position: absolute;
  bottom: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.trend-bar-container.today .trend-label {
  color: #4ade80;
  font-weight: 700;
}

.trend-graph-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Trends Summary */
.trends-summary {
  display: flex;
  justify-content: space-around;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--accent-secondary);
}

.trend-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.trend-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.trend-stat-value {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .game-analytics-widget {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .difficulty-widget {
    padding: 0.75rem;
  }

  .difficulty-emoji {
    font-size: 1.5rem;
  }

  .difficulty-label {
    font-size: 1rem;
  }

  .difficulty-rate {
    font-size: 0.8rem;
  }

  .analytics-answer-tooltip {
    padding: 0.4rem 0.6rem;
    margin-top: 0.5rem;
  }

  .analytics-answer-tooltip .tooltip-text {
    font-size: 0.8rem;
  }

  .trends-widget {
    padding: 0.75rem;
  }

  .trends-title {
    font-size: 0.85rem;
  }

  .trend-graph {
    height: 130px;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  }

  .trend-bar-container {
    height: 105px;
  }

  .trend-bar {
    bottom: 1.5rem;
  }

  /* .trend-value already hidden above */

  .trend-answer {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    top: -2.5rem;
  }

  .trend-label {
    font-size: 0.6rem;
  }

  .trends-summary {
    gap: 0.5rem;
  }

  .trend-stat-label {
    font-size: 0.7rem;
  }

  .trend-stat-value {
    font-size: 0.85rem;
  }
}

/* Historical Analytics Section */
.historical-analytics-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent-secondary);
}

.analytics-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.analytics-item {
  margin-bottom: 1.5rem;
}

.analytics-game-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--accent-secondary);
}

@media (max-width: 768px) {
  .historical-analytics-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .analytics-section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .analytics-item {
    margin-bottom: 1rem;
  }

  .analytics-game-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    overflow-x: hidden;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    position: relative;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .sidebar-header {
    flex-direction: row;
    margin-bottom: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .logo {
    max-width: 180px;
    height: auto;
    margin-top: 0.5rem;
  }

  .burger-menu {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 0.25rem;
  }

  .sidebar-date {
    display: none;
  }

  /* Mobile notification bell - position next to burger menu */
  .notification-bell {
    position: absolute;
    top: 0.5rem;
    right: 6.5rem;
    width: 40px;
    height: 40px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .notification-bell:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  .notification-bell:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .notification-bell:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .notification-bell:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .bell-icon,
  .notification-icon {
    width: 24px;
    height: 24px;
  }

  /* Mobile settings button - position next to notification bell */
  .settings-button {
    position: absolute;
    top: 0.5rem;
    right: 3rem;
    width: 40px;
    height: 40px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .settings-button:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  .settings-button:focus,
  .settings-button:active,
  .settings-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .settings-icon {
    width: 24px;
    height: 24px;
  }

  .sidebar nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--border-color);
    overflow-x: visible;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
  }

  .sidebar nav.active {
    max-height: 2500px;
    opacity: 1;
  }

  .sidebar nav a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
  }

  .sidebar nav a span:not(.nav-icon) {
    display: inline;
  }

  .mobile-only {
    display: flex !important;
  }

  .sidebar-countdown {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .sidebar-countdown:not(.mobile-only) {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar nav .nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
  }

  .sidebar nav .sidebar-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(25, 35, 55, 0.6);
    color: var(--foreground);
    border: 1px solid rgba(100, 130, 180, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    box-shadow: none;
    outline: none;
    margin-bottom: 0.25rem;
    box-sizing: border-box;
  }

  .sidebar nav .sidebar-button:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(100, 130, 180, 0.2) !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
  }

  .sidebar nav .sidebar-button:last-child {
    margin-bottom: 0;
  }

  .sidebar nav .sidebar-button span {
    display: inline-block;
  }

  main {
    margin-left: 0;
    padding: 1rem;
    overflow-x: hidden;
  }

  .container {
    padding: 0.5rem;
  }

  .sidebar h2 {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .guess-row,
  .attribute-headers {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
  }

  .guess-cell {
    font-size: 0.65rem;
    padding: 0.25rem;
  }

  .attribute-header {
    font-size: 0.65rem;
  }

  .tooltip-icon {
    width: 14px;
    height: 14px;
    font-size: 0.65rem;
  }

  .input-container {
    max-width: 100%;
  }

  input {
    font-size: 16px;
  }

  button {
    font-size: 1rem;
  }

  .modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .sidebar-footer {
    gap: 0.5rem;
  }

  .custom-tooltip {
    display: none;
  }

  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .collection-title {
    font-size: 1.5rem;
  }

  .collection-category-title {
    font-size: 1.25rem;
  }

  .arc-title {
    font-size: 1.1rem;
  }

  .character-detail-image {
    width: 150px;
    height: 150px;
  }

  .character-modal-content {
    max-width: 95%;
    margin: 0.5rem;
  }

  .result-item {
    font-size: 0.875rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-text {
    font-size: 1.5rem;
  }

  .sidebar-countdown {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .guess-counter {
    font-size: 1rem;
  }

  .age-range-text {
    font-size: 0.55rem;
  }

  .guess-cell::after {
    font-size: 4rem;
  }

  /* Firebase stats on mobile */
  .solve-count div[style*="flex-direction: column"] {
    font-size: 0.8rem !important;
  }

  .solve-count div[style*="flex-direction: column"] > div {
    flex-wrap: wrap;
  }
}

/* Confetti Animation */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  opacity: 0;
  animation: confettiFall 3s linear forwards;
}

.confetti:nth-child(2n) {
  background: var(--accent-primary);
}

.confetti:nth-child(3n) {
  background: var(--green-correct);
}

.confetti:nth-child(4n) {
  background: var(--accent-secondary);
}

.confetti:nth-child(5n) {
  background: var(--accent-gold-light);
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-10vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

.emoji-confetti {
  background: none !important;
  width: auto !important;
  height: auto !important;
  font-size: 24px;
}

/* Day Replay Styles */
.replay-mode-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.replay-mode-header > div {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(25, 35, 55, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-radius: 12px;
}

.back-to-day-select {
  /* Override global button styles */
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  margin: 0 !important;

  /* Match sidebar button styling */
  padding: 0.75rem 1rem;
  background: rgba(25, 35, 55, 0.6) !important;
  color: var(--foreground);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  font-size: 0.875rem;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  letter-spacing: normal;
}

.back-to-day-select:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(100, 130, 180, 0.2) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.back-to-day-select:active {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(100, 130, 180, 0.2) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.back-to-day-select:focus {
  outline: none;
  box-shadow: none !important;
  border: 1px solid rgba(100, 130, 180, 0.2);
}

.replay-date-badge {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.day-select-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.day-select-container h1 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.day-select-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  /* Enable CSS containment for better scroll performance */
  contain: layout style paint;
}

.day-card {
  background: rgba(25, 35, 55, 0.95);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  /* Use transform3d to enable GPU acceleration */
  transform: translate3d(0, 0, 0);
  /* Enable containment for isolated rendering */
  contain: layout style paint;
}

.day-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.day-card.today {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(230, 57, 57, 0.3);
}

.day-card.all-complete {
  background: rgba(25, 35, 55, 0.95);
  border-color: rgba(76, 175, 80, 0.6);
}

.day-card.all-failed {
  background: rgba(25, 35, 55, 0.95);
  border-color: rgba(244, 67, 54, 0.6);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.day-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}

.today-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.day-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.day-completion {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-top: 0.75rem;
}

.day-completion .complete {
  filter: none;
}

.day-completion .attempted {
  filter: none;
  position: relative;
}

.day-completion .attempted::after {
  content: '✗';
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.6em;
  color: #ef4444;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  width: 0.9em;
  height: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.day-completion .incomplete {
  opacity: 0.3;
  filter: grayscale(100%);
}

.complete-checkmark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #4caf50;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1;
}

.failure-mark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #f44336;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1;
}

.view-stats-btn {
  margin-top: 0.75rem;
  margin-bottom: -0.25rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: rgba(15, 25, 45, 0.6);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(100, 130, 180, 0.15);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-family: inherit;
  box-shadow: none;
  outline: none;
  z-index: 2;
  position: relative;
}

.view-stats-btn:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid rgba(100, 130, 180, 0.15);
}

.view-stats-btn:hover:not(.disabled) {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(100, 130, 180, 0.25) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.view-stats-btn:active:not(.disabled) {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(100, 130, 180, 0.25) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.view-stats-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(15, 25, 45, 0.4);
  color: rgba(255, 255, 255, 0.5);
}

.historical-stats-content {
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
}

.historical-stats-body {
  padding: 1.5rem;
}

.historical-stats-body .analytics-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.historical-stats-body .analytics-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.historical-stats-body .analytics-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.answer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.answer-card-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(76, 175, 80, 0.5);
}

.answer-card-image.music-art {
  border-radius: 4px;
}

.answer-card-info {
  flex: 1;
}

.answer-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(76, 175, 80, 0.8);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.answer-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .day-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .day-select-container {
    padding: 1rem;
  }

  .replay-mode-header {
    flex-direction: column;
    text-align: center;
  }

  .replay-date-badge {
    font-size: 0.9rem;
  }
}

/* Hide old solve count display (except for stats placeholder) */
.solve-count:not(:has(.stats-placeholder)) {
  display: none !important;
}

.stats-placeholder {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 0.5rem;
  font-style: italic;
}

/* Guess Analytics Styles */
.analytics-section {
  background: var(--background);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.analytics-section h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
  text-align: center;
  font-weight: 600;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
}

.stat-players::before {
  background: #4a9eff;
}

.stat-success::before {
  background: #48c774;
}

.stat-attempts::before {
  background: #ffb347;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-primary);
}

.stat-players .stat-value {
  color: #4a9eff;
}

.stat-success .stat-value {
  color: #48c774;
}

.stat-attempts .stat-value {
  color: #ffb347;
}

.wrong-guesses {
  margin-top: 1rem;
}

.wrong-guesses h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.wrong-guesses-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wrong-guess-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.wrong-guess-item.rank-1 {
  border-left: 3px solid #ffe680;
}

.wrong-guess-item.rank-2 {
  border-left: 3px solid #d9d9d9;
}

.wrong-guess-item.rank-3 {
  border-left: 3px solid #e6b088;
}

.wrong-guess-item:last-child {
  margin-bottom: 0;
}

.guess-rank {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-width: 1.5rem;
}

.rank-1 .guess-rank {
  color: #ffe680;
}

.rank-2 .guess-rank {
  color: #d9d9d9;
}

.rank-3 .guess-rank {
  color: #e6b088;
}

.guess-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.guess-avatar.music-art {
  border-radius: 4px;
}

.guess-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.guess-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guess-count {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.guess-bar-container {
  height: 4px;
  background: rgba(128, 128, 128, 0.15);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  margin-top: 0.25rem;
}

.guess-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ee5a6f);
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 4px rgba(255, 107, 107, 0.5);
}

@media (max-width: 768px) {
  .analytics-section {
    padding: 1rem;
  }

  .analytics-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-box {
    padding: 0.75rem 0.5rem;
  }

  .stat-icon {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .wrong-guess-item {
    grid-template-columns: auto auto 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .guess-avatar {
    width: 32px;
    height: 32px;
  }

  .guess-bar-container {
    display: none;
  }

  .guess-name {
    font-size: 0.9rem;
  }

  .guess-count {
    font-size: 0.75rem;
  }
}

/* Analytics Loading Skeleton */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.analytics-loading {
  min-height: 300px;
}

.skeleton-icon {
  opacity: 0.3;
  animation: skeleton-pulse 1.5s infinite;
}

.skeleton-value {
  background: linear-gradient(90deg, rgba(128, 128, 128, 0.1) 25%, rgba(128, 128, 128, 0.2) 50%, rgba(128, 128, 128, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  display: inline-block;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-item {
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
}

.skeleton-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: skeleton-slide 1.5s infinite;
}

@keyframes skeleton-slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Roadmap Section Styles */
.roadmap-intro {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.roadmap-item {
  margin-bottom: 1rem;
}

.roadmap-item:last-child {
  margin-bottom: 0;
}

.roadmap-item h5 {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.roadmap-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}


/* Admin Mode Banner */
.admin-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

@media (max-width: 768px) {
  .admin-mode-banner {
    font-size: 12px;
    padding: 10px 15px;
  }
}

/* Location Mode Styles */

/* Single Image Display - Centered at Top */
.location-single-image-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 500px;
}

.location-single-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
}

/* Image Controls - Selector Buttons + Skip */
.location-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 1.5rem;
  max-width: 500px;
}

.image-selectors {
  display: flex;
  gap: 0.5rem;
}

.image-selector-btn {
  width: 45px;
  height: 45px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--background);
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: none;
  outline: none;
  transition: none;
  transform: none;
}

.image-selector-btn:hover:not(:disabled):not(.active) {
  background: rgba(59, 130, 246, 0.2);
  transform: none;
  box-shadow: none;
}

.image-selector-btn.active {
  background: var(--accent-primary) !important;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
  outline: none;
  transform: none;
}

.image-selector-btn.active:hover {
  background: var(--accent-primary) !important;
  transform: none !important;
  box-shadow: none !important;
}

.image-selector-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.skip-btn-inline {
  padding: 0.5rem 0.75rem;
  height: 45px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
  transition: none;
  transform: none;
}

.skip-btn-inline:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: none;
  box-shadow: none;
}

/* Location Guess History */
.location-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.location-guess-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
}

.location-guess-item.correct-guess {
  border-color: var(--green-correct);
}

.location-guess-item.incorrect-guess {
  border-color: var(--red-incorrect);
}

.location-guess-item.skipped-guess {
  border-color: var(--red-incorrect);
}

.location-guess-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.guess-text {
  font-weight: 500;
  color: var(--foreground);
  flex: 1;
}

.skip-text {
  font-weight: 500;
  color: var(--gray-600);
  font-style: italic;
}

/* Suggestion Nation Label */
.suggestion-nation {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-left: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .location-single-image-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .location-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .image-selectors {
    width: 100%;
    justify-content: center;
  }

  .skip-btn-inline {
    width: 100%;
  }

  .answer-nation-image {
    width: 150px;
  }
}

/* Trivia Page Styles */
.trivia-intro {
  background: rgba(25, 35, 55, 0.9);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.trivia-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.trivia-suggestion-form {
  background: rgba(25, 35, 55, 0.9);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.trivia-suggestion-form h2 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.trivia-suggestion-form > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

#trivia-suggestion-form .form-group {
  margin-bottom: 1.5rem;
}

#trivia-suggestion-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

#trivia-suggestion-form select,
#trivia-suggestion-form textarea,
#trivia-suggestion-form input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 25, 45, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

#trivia-suggestion-form select:focus,
#trivia-suggestion-form textarea:focus,
#trivia-suggestion-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(100, 130, 180, 0.4);
  background: rgba(15, 25, 45, 1);
}

#trivia-suggestion-form textarea {
  resize: vertical;
  min-height: 80px;
}

#trivia-suggestion-form .submit-btn {
  width: auto;
  padding: 0.75rem 2rem;
  background: rgba(25, 35, 55, 0.9);
  color: var(--foreground);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-family: inherit;
  box-shadow: none;
  outline: none;
  transition: background 0.2s;
  margin: 0 auto;
}

#trivia-suggestion-form .submit-btn:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid rgba(100, 130, 180, 0.2);
}

#trivia-suggestion-form .submit-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(100, 130, 180, 0.2);
  box-shadow: none;
  outline: none;
  transform: none;
}

#trivia-suggestion-form .submit-btn:active {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(100, 130, 180, 0.2);
  box-shadow: none;
  outline: none;
  transform: none;
}

.trivia-question-types {
  margin-bottom: 2rem;
}

.trivia-question-types h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.trivia-question-types > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.question-type-card {
  background: rgba(25, 35, 55, 0.9);
  border: 1px solid rgba(100, 130, 180, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.question-type-card h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.question-type-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.question-example {
  background: rgba(25, 35, 55, 0.9);
  border-left: 3px solid rgba(100, 130, 180, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.question-example strong {
  color: var(--text-primary);
}

/* Mobile Responsive for Trivia */
@media (max-width: 768px) {
  .trivia-question-types h2 {
    font-size: 1.3rem;
  }

  .question-type-card {
    padding: 1rem;
  }

  .question-type-card h3 {
    font-size: 1.1rem;
  }

  .trivia-suggestion-form {
    padding: 1.5rem;
  }

  .trivia-suggestion-form h2 {
    font-size: 1.3rem;
  }
}

