/* Guess The Parkrun Styles */
/* Set Montserrat for all text on this page */
body.guess-parkrun-page,
.member-page-wrapper {
  font-family: 'Montserrat', sans-serif;
}

/* Animated 3D Title */
.bounce-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  position: relative;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .bounce-title {
    font-size: 50px;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .bounce-title {
    font-size: 36px;
    flex-direction: column;
    gap: 6px;
  }
}

.bounce-title span {
  position: relative;
  display: inline-block;
}

.bounce-title .static-text {
  color: #000;
  animation: none;
  text-shadow: none;
  white-space: nowrap;
}

.bounce-title .bounce-word {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.bounce-title .bounce-letter {
  animation: bounceTitle 0.8s ease infinite alternate;
  /* Darker brand shade (#b86e3d) multi-layer shadow, no glow */
  text-shadow: 0 1px #b86e3d,
               0 2px #b86e3d,
               0 3px #b86e3d,
               0 4px #b86e3d,
               0 5px #b86e3d,
               0 6px #b86e3d,
               0 7px #b86e3d,
               0 8px #b86e3d,
               0 9px #b86e3d,
               0 10px 10px rgba(184, 110, 61, 0.4);
}

.bounce-title .bounce-letter[data-delay="0"] { animation-delay: 0s; }
.bounce-title .bounce-letter[data-delay="0.1"] { animation-delay: 0.15s; }
.bounce-title .bounce-letter[data-delay="0.2"] { animation-delay: 0.3s; }
.bounce-title .bounce-letter[data-delay="0.3"] { animation-delay: 0.45s; }
.bounce-title .bounce-letter[data-delay="0.4"] { animation-delay: 0.6s; }
.bounce-title .bounce-letter[data-delay="0.5"] { animation-delay: 0.75s; }
.bounce-title .bounce-letter[data-delay="0.6"] { animation-delay: 0.9s; }



@keyframes bounceTitle {
  100% {
    transform: translateY(-20px);
    /* Darker brand shade during bounce (no glow) */
    text-shadow: 0 1px #b86e3d,
                 0 2px #b86e3d,
                 0 3px #b86e3d,
                 0 4px #b86e3d,
                 0 5px #b86e3d,
                 0 6px #b86e3d,
                 0 7px #b86e3d,
                 0 8px #b86e3d,
                 0 9px #b86e3d,
                 0 50px 25px rgba(184, 110, 61, 0.3);
  }
}

/* Stats Bar */
.streak-stats {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin: 10px auto 24px;
  padding: 0 16px;
}

.streak-item {
  text-align: center;
}

.streak-card {
  position: relative;
  background: var(--background);
  border-radius: 20px;
  padding: 20px 22px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--primary-color-rgb), 0.20);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.streak-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color) 0%, var(--color-alt) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.streak-card:hover::before {
  opacity: 0.05;
}

.streak-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 162, 92, 0.18);
  border-color: var(--color);
}

.streak-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 162, 92, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(255, 162, 92, 0.20);
}

.streak-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--color);
}

@media (max-width: 768px) {
  .streak-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 8px;
  }
  
  .streak-item {
    width: 100%;
  }
  
  .streak-card {
    min-width: unset;
    width: 100%;
  }
  
  .streak-value { font-size: 42px; }
}

@media (max-width: 480px) {
  .streak-value { font-size: 34px; }
}

.streak-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Tab badges row */
.tab-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 4px auto 14px;
}

.header-badges {
  margin: 0;
}

.tab-badge,
.tab-badge[href] {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tab-badge .route-status-badge {
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.20) 0%, rgba(var(--primary-color-rgb), 0.10) 100%);
  color: var(--text-color);
  border: 1px solid rgba(var(--primary-color-rgb), 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 14px;
  line-height: 1;
}

.tab-badge .route-status-badge i {
  font-size: 16px;
  line-height: 1;
}

.tab-badge.active .route-status-badge {
  background: #000;
  color: #fff;
  border-color: #000;
}

.tab-header { text-align: center; margin: 6px 0 12px; }
.tab-header h3 { margin: 0; font-weight: 700; }

.tab-contents { max-width: 1000px; margin: 0 auto 18px; padding: 0 16px; }
.tab-pane[hidden] { display: none !important; }
.tab-pane .muted { color: var(--text-muted); }

/* Solo filters */
.solo-filters { margin-top: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.filters-title { margin: 0 0 10px; text-align: center; font-weight: 700; }
.solo-filters .next-hint-btn { margin-top: 10px; }
.country-filters {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  width: 50%;
  gap: 10px;
  justify-content: center;
  justify-items: center;
}
.flag-chip {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0;
  background: var(--background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.flag-chip img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; }
.flag-chip:not(.active) img { filter: grayscale(100%) brightness(0.7); }
.flag-chip.active { border-color: var(--color); box-shadow: 0 6px 20px rgba(255,162,92,0.18); }
.flag-chip:hover { transform: translateY(-2px); }

#startSoloBtn { align-self: center; }

.solo-actions { margin-top: 12px; }
.solo-actions .button.full-width,
#soloResultContent .button.full-width {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.solo-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.score-chip { background: rgba(var(--primary-color-rgb), 0.1); border: 1px solid rgba(var(--primary-color-rgb), 0.3); padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.solo-controls { display: flex; gap: 8px; }
.highscore-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  margin-left: 12px;
  color: var(--accent-color);
}
.highscore-chip i {
  font-size: 1em;
}

/* Quantity selector styling */
.quantity-wrap {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 12px;
}
.quantity-wrap label { color: var(--text-color); }
.quantity-wrap input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  background: rgba(var(--primary-color-rgb), 0.06);
  border: 1px solid rgba(var(--primary-color-rgb), 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quantity-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25);
}
.quantity-wrap input[type="number"]::-webkit-outer-spin-button,
.quantity-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px auto;
  padding: 0 20px;
  max-width: 1200px;
}

.stat-card {
  background: var(--foreground);
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 25px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Hide old stats bar in Guess The Parkrun */
.stats-bar { display: none !important; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color);
  transition: all 0.3s ease;
}

.stat-card.streak::before { background: var(--success-color); }
.stat-card.longest-streak::before { background: var(--question-color); }
.stat-card.daily-stats::before { background: var(--color); }
.stat-card.total-today::before { background: var(--text-muted); }

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--black-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Game Container */
.game-container {
  position: relative;
  min-height: 600px;
  padding: 0 20px;
}

/* Cards wrapper - similar to route checker */
.cards-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stabilize scrollbar to avoid layout shifts when content grows */
html {
  scrollbar-gutter: stable both-edges;
}

/* Route Card - matching route checker style */
.route-card {
  width: 100%;
  background: var(--foreground);
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 25px;
  /* overflow: hidden; */
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.route-card.active {
  opacity: 1;
  transform: translateX(0);
}

.route-card-header {
  gap: 2rem;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 25px 25px 0 0;
}

@media (max-width: 768px) {
  .route-card-header {
    flex-direction: column-reverse;
  }
}

.route-info h3 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: var(--black-color);
  font-weight: 700;
}

.route-location {
  font-size: 1rem;
  color: var(--black-color);
  margin: 5px 0;
  font-weight: 500;
}

.route-country {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.route-status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--white-color);
}

.route-card-body {
  padding: 25px;
}

/* Inner layout for side-by-side content */
.game-layout-inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.route-svg-column {
  width: 100%;
}

.game-content-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .game-layout-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
  }
  
  .route-svg-column {
    flex: 1;
    min-width: 0;
  }
  
  .game-content-column {
    flex: 1;
    min-width: 0;
  }
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 25px;
}

.loading-overlay .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--text-muted);
  border-top-color: var(--color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* SVG Preview - matching route checker style */
.svg-preview {
  background: rgba(var(--accent-color-rgb), 0.03);
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 25px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.svg-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative; /* allow decorations to position within */
}

.svg-container svg {
  max-width: 100%;
  max-height: 400px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  width: 100%;
  height: auto;
}

/* Route set dressing decorations */
.route-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* above svg but below overlays */
}
.route-decor img {
  position: absolute;
  display: block;
  transform-origin: center;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

@media (min-width: 1024px) {
  .svg-container svg {
    max-height: 500px;
  }
}

.svg-error {
  text-align: center;
  color: var(--error-color);
  padding: 40px;
}

/* Hints Section */
.hints-section {
  padding: 0;
  margin-bottom: 0;
}

.hints-section h3 {
  margin-bottom: 20px;
  color: var(--black-color);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Next Hint Button - Yellow style like landing page */
.next-hint-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #f1c40f;
  border: 3px solid #000;
  border-radius: 50px;
  color: var(--black-color);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.next-hint-btn:hover:not(:disabled) {
  transform: scale(1.025);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.next-hint-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.next-hint-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hints-display {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Hint Card - Orange/peach style like image */
.hint-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #ffc996;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hint-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hint-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hint-text {
  font-size: 1rem;
  color: var(--black-color);
  font-weight: 500;
  line-height: 1.5;
}

.hint-filter-notice {
  font-size: 0.85rem;
  color: var(--success-color);
  font-weight: 600;
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(0, 204, 102, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 204, 102, 0.2);
}

.hint-flag-wrapper {
  flex-shrink: 0;
}

.hint-flag-wrapper .hint-flag {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Smooth stroke color transitions for SVG routes */
.svg-container svg path,
.svg-container svg line,
.svg-container svg polyline,
.svg-container svg polygon,
.svg-container svg circle,
.svg-container svg ellipse,
.svg-container svg rect {
  transition: stroke 300ms ease;
  fill: none;
}

/* Button state modifiers and animations */
.button.error {
  background: var(--danger-color, #dc3545) !important;
  border-color: #000 !important;
  color: #fff !important;
}

.button.success {
  background: var(--success-color, #28a745) !important;
  border-color: #000 !important;
  color: #fff !important;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.shake {
  animation: shake 500ms ease;
}

/* Stats Grid for Hint 2 */
.hint-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.stat-chip:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-chip i {
  font-size: 1rem;
  color: var(--color);
  flex-shrink: 0;
}

.stat-chip-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.stat-chip-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.stat-chip-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black-color);
  line-height: 1.1;
}

@media (max-width: 768px) {
  .hint-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
  }
  
  .stat-chip {
    padding: 6px 8px;
  }
  
  .stat-chip i {
    font-size: 0.9rem;
  }
  
  .stat-chip-label {
    font-size: 0.6rem;
  }
  
  .stat-chip-value {
    font-size: 0.8rem;
  }
}

/* Guess Section */
.guess-section {
  padding: 0;
  margin-bottom: 0;
}

.guess-section h3 {
  margin-bottom: 20px;
  color: var(--black-color);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guesses-counter {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color);
  background: rgba(var(--accent-color-rgb), 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.guess-input-container {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

/* Choices.js Styling */
.guess-parkrun-choices {
  flex: 1;
  width: 100% !important;
  max-width: 290px !important;
}

.guess-parkrun-inner {
  height: 60px !important;
  min-height: 60px !important;
  line-height: 60px !important;
  border: 3px solid #000 !important;
  border-radius: 50px !important;
  background: #fff !important;
  padding: 0 20px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  font-size: 1rem !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.guess-parkrun-choices .choices__input {
  font-size: 1rem !important;
  color: var(--black-color) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.guess-parkrun-choices .choices__placeholder {
  opacity: 0.5;
  color: var(--text-muted) !important;
}

.guess-parkrun-choices.is-focused .guess-parkrun-inner {
  border-color: var(--color) !important;
  box-shadow: 0 0 15px rgba(var(--color-rgb), 0.2) !important;
}

.guess-parkrun-choices.is-disabled .guess-parkrun-inner {
  opacity: 0.5;
  cursor: not-allowed !important;
}

.guess-parkrun-choices .choices__list--dropdown {
  border: 3px solid #000 !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  margin-top: 5px !important;
}

.guess-parkrun-choices .choices__item--selectable.is-highlighted {
  background: var(--color) !important;
  color: white !important;
}

.guess-parkrun-choices .choices__list--single {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  display: block !important;
}

.guess-parkrun-choices .choices__list--single .choices__item {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 60px !important;
}

/* Native select styling */
.guess-input-container select {
  height: 60px !important;
  line-height: 60px !important;
  border: 3px solid #000 !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  background: #fff !important;
  color: var(--black-color) !important;
  padding: 0 20px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
  min-height: 60px !important;
}

/* Native select fallback styling to match Select2 */
.native-select-fallback {
  height: 60px !important;
  border: 3px solid #000 !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  background: #fff !important;
  color: var(--black-color) !important;
  padding: 0 20px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 12px !important;
  padding-right: 45px !important;
  cursor: pointer !important;
}

.guess-input-container select:disabled,
.guess-input-container .select2-selection--single[aria-disabled="true"],
.native-select-fallback:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#submitGuess {
  padding: 0 30px;
  height: 60px;
  white-space: nowrap;
  background: var(--foreground);
  border: 3px solid #000;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#submitGuess:hover:not(:disabled) {
  transform: scale(1.025);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

#submitGuess:active:not(:disabled) {
  transform: scale(0.98);
}

#submitGuess:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Result Display */
.result-display {
  padding: 25px;
  margin-bottom: 0;
  text-align: center;
  animation: slideIn 0.5s ease;
  background: rgba(var(--accent-color-rgb), 0.03);
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 15px;
}

.result-display.correct {
  background: linear-gradient(135deg, rgba(0, 204, 102, 0.1) 0%, rgba(0, 204, 102, 0.05) 100%);
  border: 2px solid var(--success-color);
}

.result-display.incorrect {
  background: linear-gradient(135deg, rgba(255, 51, 51, 0.1) 0%, rgba(255, 51, 51, 0.05) 100%);
  border: 2px solid var(--error-color);
}

.result-display.celebrate {
  animation: celebrate 0.8s ease;
}

.result-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.result-icon.correct {
  color: var(--success-color);
  animation: bounce 0.6s ease;
}

.result-icon.incorrect {
  color: var(--error-color);
}

.result-content h2 {
  margin-bottom: 10px;
  color: var(--black-color);
}

.result-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Next actions and countdown */
.next-actions {
  align-items: center;
  text-align: center;
}
.next-actions .next-title {
  font-weight: 800;
  color: var(--black-color);
  font-size: 1rem;
}
.next-actions .next-countdown-text {
  font-weight: 700;
  color: var(--black-color);
  font-size: 0.95rem;
}
#dailyCountdown {
  color: var(--color);
  font-weight: 800;
}
.next-actions .full-width {
  width: 100%;
}

/* Progress UI under result */
.progress-wrap {
  margin-top: 15px;
  text-align: left;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--black-color);
}
.progress-bar-outer {
  display: flex;
  width: 100%;
  height: 14px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-correct {
  background: var(--success-color);
}
.progress-bar-incorrect {
  background: var(--error-color);
}
.progress-percent {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--black-color);
  font-weight: 700;
}

/* Answer Reveal */
.answer-reveal {
  padding: 25px;
  margin-bottom: 0;
  animation: slideIn 0.5s ease 0.3s both;
  background: rgba(var(--accent-color-rgb), 0.03);
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 15px;
}

.answer-reveal h3 {
  margin-bottom: 20px;
  color: var(--black-color);
}

.answer-details {
  text-align: left;
}

.answer-details h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black-color);
}

.answer-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.country-flag {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
}

.answer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.stat-item {
  padding: 15px;
  background: rgba(var(--accent-color-rgb), 0.05);
  border-radius: 10px;
  color: var(--black-color);
}

.stat-item strong {
  color: var(--color);
  margin-right: 8px;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes celebrate {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05) rotate(-2deg);
  }
  75% {
    transform: scale(1.05) rotate(2deg);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  background: var(--error-color);
  color: white;
  padding: 30px;
  border-radius: 25px;
  text-align: center;
  margin: 30px auto;
  max-width: 1200px;
}

/* Error Display - smaller, full width, above content */
.error-display {
  width: 100%;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.error-content {
  padding: 12px 20px;
  background: rgba(255, 51, 51, 0.1);
  border: 2px solid var(--error-color);
  border-radius: 12px;
  color: var(--error-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* Guesses Remaining */
.guesses-remaining {
  margin-bottom: 15px;
  padding: 10px 15px;
  background: rgba(var(--accent-color-rgb), 0.05);
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.guesses-remaining strong {
  color: var(--color);
  font-size: 1.1rem;
  margin-left: 5px;
}

/* SVG Customization Controls */
.svg-customization-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: rgba(var(--accent-color-rgb), 0.03);
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
  border-radius: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  min-height: 64px; /* reserve space to avoid layout jump */
  opacity: 1;
  transition: opacity 0.2s ease;
}

.svg-customization-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.control-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stroke-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(var(--accent-color-rgb), 0.1);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.stroke-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color);
  cursor: pointer;
  border: 2px solid var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.stroke-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--color-alt);
}

.stroke-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color);
  cursor: pointer;
  border: 2px solid var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.stroke-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  background: var(--color-alt);
}

.reset-svg-btn {
  padding: 12px 20px;
  height: auto;
}

/* Select2 Customization */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 50px;
  border: 2px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: 15px;
  background: var(--foreground);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px;
  padding-left: 15px;
  color: var(--black-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
}

.select2-dropdown {
  border: 2px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: 15px;
  background: var(--foreground);
}

.select2-results__option {
  padding: 10px 15px;
  color: var(--black-color);
}

.select2-results__option--highlighted {
  background: var(--color);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hints-container {
    flex-direction: column;
  }
  
  .hint-btn {
    width: 100%;
  }
  
  .guess-input-container {
    flex-direction: column;
  }
  
  #submitGuess {
    width: 100%;
  }
  
  .answer-stats {
    grid-template-columns: 1fr;
  }
}

/* How to Play Section */
.how-to-play-content {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.how-to-intro {
  text-align: center;
  margin-bottom: 40px;
}

.how-to-intro h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 12px;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.how-to-section {
  margin-bottom: 40px;
}

.how-to-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-to-section h3 i {
  color: var(--color);
  font-size: 1.4rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(var(--primary-color-rgb), 0.05);
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.rule-card:hover {
  background: rgba(var(--primary-color-rgb), 0.08);
  border-color: rgba(var(--primary-color-rgb), 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rule-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-rgb), 0.1);
  border-radius: 10px;
  color: var(--color);
  font-size: 1.5rem;
}

.rule-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 4px;
}

.rule-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.hints-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hint-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hint-guide-card:hover {
  border-color: var(--color);
  box-shadow: 0 4px 12px rgba(var(--color-rgb), 0.15);
  transform: translateX(4px);
}

.hint-guide-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--color-rgb), 0.15) 0%, rgba(var(--color-rgb), 0.08) 100%);
  border: 2px solid var(--color);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color);
}

.hint-guide-content {
  flex: 1;
}

.hint-guide-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 8px;
}

.hint-guide-content > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hint-guide-example {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(var(--color-rgb), 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hint-guide-example i {
  color: var(--color);
  font-size: 1rem;
}

.hint-guide-example strong {
  color: var(--color);
  font-weight: 700;
}

.scoring-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scoring-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.scoring-card:hover {
  border-color: var(--color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.scoring-card i {
  flex-shrink: 0;
  font-size: 1.8rem;
  margin-top: 2px;
}

.scoring-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 6px;
}

.scoring-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .how-to-play-content {
    padding: 16px;
  }

  .how-to-intro h2 {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
  }

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

  .rule-card {
    padding: 16px;
  }

  .hint-guide-card {
    padding: 16px;
  }

  .scoring-card {
    padding: 16px;
  }
}