/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #556B2F;
  --secondary-color: #8B9D83;
  --accent-color: #D4AF37;
  --dark-color: #3D4F3D;
  --sage-green: #4A5D4E;
  --cream: #FAF5E9;
  --light-cream: #FFFEF7;
  --shadow: 0 4px 6px rgba(74, 93, 78, 0.15);
  --shadow-lg: 0 10px 25px rgba(74, 93, 78, 0.2);
  --font-sans: "Sora", "Trebuchet MS", sans-serif;
  --font-serif: "Fraunces", "Georgia", serif;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--sage-green);
  background: var(--cream);
  min-height: 100vh;
  padding: 12px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid rgba(139, 157, 131, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--cream);
}

.hero-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-cream);
  text-align: center;
  padding: 32px 20px;
}

.paw-print {
  font-size: 80px;
  animation: bounce 2s infinite;
  display: inline-block;
}

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

.hero h1 {
  font-size: 2em;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
  font-size: 1.1em;
  opacity: 0.95;
}

/* Intro Section */
.intro-section {
  padding: 50px 40px;
}

.intro-box {
  background: var(--cream);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  border-left: 5px solid var(--secondary-color);
}

.intro-box h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 2em;
}

.intro-box p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: var(--light-cream);
  border: 2px solid var(--cream);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3em;
}

.feature-card p {
  color: #666;
  font-size: 0.95em;
}

/* Start Section */
.start-section {
  text-align: center;
  padding: 50px 40px;
  background: var(--cream);
}

.start-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-cream);
  text-decoration: none;
  padding: 20px 50px;
  font-size: 1.5em;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.encouragement {
  margin-top: 20px;
  font-size: 1.2em;
  color: var(--dark-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: var(--sage-green);
  color: var(--light-cream);
}

footer p {
  opacity: 0.8;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 100px 40px;
}

.error-page h1 {
  font-size: 4em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.error-page p {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.error-page a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
}

.error-page a:hover {
  text-decoration: underline;
}

/* Tiles Section */
.tiles-section {
  padding: 35px 20px;
  background: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tiles-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}

.tiles-container.single-tile {
  max-width: 800px;
  width: 100%;
}

.tile-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  display: flex;
  justify-content: center;
}

.tile {
  background: var(--cream);
  border: 3px solid var(--secondary-color);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  min-height: 240px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tile:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tile-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.tile h2 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.tile p {
  color: var(--sage-green);
  font-size: 1em;
  line-height: 1.6;
}

.tile-with-image {
  padding: 0;
  overflow: hidden;
  min-height: 240px;
  height: 100%;
  justify-content: flex-start;
}

.tile-thumbnail {
  width: 100%;
  height: auto;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.tile-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  vertical-align: top;
}
}

.tile-with-image:hover .tile-thumbnail img {
  transform: scale(1.1);
}

.tile-content {
  padding: 22px;
}

.tile-with-image h2,
.tile-with-image p {
  margin: 0;
}

.tile-with-image h2 {
  margin-bottom: 10px;
}

/* Story Page */
.story-header {
  padding: 30px 20px 15px 20px;
  text-align: center;
  position: relative;
}

.back-button {
  position: static;
  display: block;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.back-button:hover {
  color: var(--secondary-color);
}

.story-header h1 {
  color: var(--primary-color);
  font-size: 2em;
  margin-bottom: 10px;
}

.story-subtitle {
  color: var(--sage-green);
  font-size: 1.2em;
  font-style: italic;
}

.story-gallery {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.story-image-container {
  background: var(--cream);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-image-container:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.story-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.story-content-layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: flex-start;
  flex-direction: column;
}

.story-text {
  flex: 1;
  color: var(--sage-green);
}

.story-text h2 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin: 30px 0 15px 0;
}

.story-text h2:first-child {
  margin-top: 0;
}

.story-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-images-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story-images-stack .story-image-container {
  width: 100%;
}

.story-images-stack .story-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.no-images {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--sage-green);
  font-size: 1.2em;
}

/* Waiting Page */
.waiting-header {
  padding: 30px 40px 20px 40px;
}

.waiting-content {
  padding: 20px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.waiting-icon {
  font-size: 4em;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.waiting-content h1 {
  color: var(--primary-color);
  font-size: 2em;
  margin-bottom: 10px;
}

.waiting-content h2 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 30px;
  font-weight: normal;
}

.waiting-box {
  background: var(--cream);
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  text-align: left;
  border-left: 5px solid var(--secondary-color);
}

.waiting-box p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--sage-green);
}

.waiting-meta {
  margin-top: 10px;
  font-size: 1.05em;
}

.waiting-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.waiting-features li {
  font-size: 1.1em;
  padding: 10px 0;
  color: var(--sage-green);
}

.waiting-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.waiting-cta p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: var(--sage-green);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-cream);
  text-decoration: none;
  padding: 18px 45px;
  font-size: 1.3em;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.cta-button:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(74, 93, 78, 0.3);
}

.cta-button.disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: var(--shadow);
}

.cta-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: var(--shadow);
}

.cta-button.highlight {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.cta-button.highlight:hover:not(.disabled) {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  transform: scale(1.05);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 10px rgba(255, 152, 0, 0);
  }
}

.secondary-button {
  background: var(--secondary-color);
  box-shadow: var(--shadow);
}

.secondary-button:hover {
  background: var(--sage-green);
  box-shadow: 0 15px 35px rgba(74, 93, 78, 0.25);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px 0 10px 0;
  text-align: left;
}

.results-card {
  background: var(--light-cream);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(139, 157, 131, 0.2);
}

.results-card.full-width {
  grid-column: 1 / -1;
}

.results-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3em;
}

.tie-notice {
  margin-top: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.25) 100%);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  color: var(--dark-color);
  font-weight: 600;
  text-align: center;
  font-size: 1.05em;
}

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

.answer-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(139, 157, 131, 0.3);
  color: var(--sage-green);
}

.answer-list li:last-child {
  border-bottom: none;
}

.answer-name {
  font-weight: 600;
}

.answer-percentage {
  color: var(--primary-color);
  font-weight: 600;
}

.score-table {
  display: grid;
  gap: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 10px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 10px;
  color: var(--sage-green);
  font-size: 0.98em;
}

.score-header {
  background: rgba(139, 157, 131, 0.2);
  font-weight: bold;
  color: var(--primary-color);
}

.empty-state {
  color: var(--sage-green);
  margin: 0;
}

/* Responsive Updates */
@media (min-width: 769px) {
  body {
    padding: 20px;
  }

  .container {
    border-radius: 20px;
  }

  .action-button {
    width: auto;
  }

  .hero-image-container {
    height: 600px;
  }
  
  .hero-text {
    padding: 50px 30px;
  }
  
  .hero h1 {
    font-size: 3em;
  }
  
  .tagline {
    font-size: 1.3em;
  }

  .tiles-section {
    padding: 60px 40px;
  }
  
  .tiles-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    max-width: 1200px;
  }
  
  .tile {
    min-height: 300px;
    padding: 50px 30px;
  }

  .tile-with-image {
    min-height: 300px;
  }
  
  .tile-content {
    padding: 30px;
  }
  
  .tile-icon {
    font-size: 5em;
  }
  
  .tile h2 {
    font-size: 2em;
  }

  .tile p {
    font-size: 1.1em;
  }
  
  .story-gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 40px;
  }
  
  .story-header {
    padding: 40px 40px 20px 40px;
  }
  
  .back-button {
    position: absolute;
    left: 30px;
    top: 30px;
    margin-bottom: 0;
  }
  
  .story-header h1 {
    font-size: 2.5em;
  }
  
  .waiting-content {
    padding: 40px;
  }
  
  .waiting-icon {
    font-size: 6em;
  }
  
  .waiting-content h1 {
    font-size: 2.5em;
  }
  
  .waiting-content h2 {
    font-size: 2em;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  
  .story-content-layout {
    flex-direction: row;
    padding: 40px;
    gap: 40px;
  }
  
  .story-text {
    flex: 0 0 40%;
  }
}

/* Quiz Styles */
.quiz-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

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

.quiz-header h2 {
  font-size: 2em;
  color: var(--sage-green);
  margin-bottom: 10px;
}

.quiz-instructions {
  font-size: 1.1em;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

.quiz-score-board {
  background: var(--light-cream);
  border: 3px solid var(--sage-green);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: column;
}

.score-section {
  flex: 1;
}

.score-primary {
  font-size: 2em;
  font-weight: bold;
  color: var(--sage-green);
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.score-number {
  color: var(--accent-color);
}

.score-label {
  color: var(--sage-green);
  font-size: 0.8em;
}

.score-subtitle {
  display: block;
  font-size: 0.35em;
  color: var(--secondary-color);
  font-weight: normal;
  margin-top: 5px;
}

.attempts-section {
  flex: 1;
  border-left: none;
  border-top: 2px solid var(--secondary-color);
  padding-left: 0;
  padding-top: 20px;
}

.attempts-count {
  font-size: 2em;
  font-weight: bold;
  color: var(--sage-green);
}

.attempts-label {
  font-size: 1em;
  color: var(--secondary-color);
  margin-top: 5px;
}

.completion-banner {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 3px solid #28a745;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #155724;
  margin-bottom: 30px;
  animation: celebrationPulse 1s ease-in-out;
}

@keyframes celebrationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.score-percentage {
  font-size: 1.5em;
  color: var(--secondary-color);
}

.quiz-input-form {
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-direction: column;
}

.breed-input {
  flex: 1;
  padding: 15px 20px;
  font-size: 1.1em;
  border: 3px solid var(--sage-green);
  border-radius: 10px;
  background: white;
  color: var(--sage-green);
  transition: all 0.3s ease;
}

.breed-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.breed-input.has-suggestions {
  border-radius: 10px 10px 0 0;
  border-bottom-color: transparent;
}

.submit-button {
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  background: var(--sage-green);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.submit-button:active {
  transform: translateY(0);
}

.feedback {
  padding: 15px 25px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.feedback.correct {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.feedback.incorrect {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

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

.quiz-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-direction: column;
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

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

.image-modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-content img {
  max-width: 600px;
  max-height: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sage-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.modal-breed-name {
  text-align: center;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--sage-green);
  margin-top: 15px;
}

.action-button {
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.action-button.secondary {
  background: var(--secondary-color);
  color: white;
}

.action-button.secondary:hover {
  background: var(--sage-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.guessed-breeds {
  margin-top: 30px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  border: 2px solid var(--secondary-color);
}

.guessed-breeds h3 {
  color: var(--sage-green);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.breed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breed-tag {
  display: inline-block;
  padding: 8px 15px;
  background: var(--light-cream);
  color: var(--sage-green);
  border: 2px solid var(--sage-green);
  border-radius: 20px;
  font-size: 0.95em;
  font-weight: 500;
}

.breed-tag.found {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
  font-weight: 600;
}

.quiz-footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}

.back-link {
  color: var(--sage-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--accent-color);
}

.page-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--sage-green) 0%, var(--secondary-color) 100%);
  color: white;
}

.page-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1em;
  opacity: 0.95;
}

.loading {
  text-align: center;
  padding: 60px;
  font-size: 1.5em;
  color: var(--secondary-color);
}

.waiting-activation {
  text-align: center;
  padding: 60px 40px;
  background: rgba(139, 157, 131, 0.05);
  border-radius: 12px;
  border: 2px solid var(--sage-green);
}

.waiting-activation .waiting-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.waiting-activation h2 {
  color: var(--sage-green);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.waiting-activation p {
  color: #555;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.waiting-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

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

/* Suggestions Dropdown Styles */
.input-group-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 3px solid var(--sage-green);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  margin-top: -10px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(139, 157, 131, 0.2);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background-color: var(--light-cream);
}

.suggestion-image {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--secondary-color);
}

.suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  font-size: 2em;
  color: var(--secondary-color);
}

.suggestion-name {
  font-size: 1em;
  font-weight: 600;
  color: var(--sage-green);
  flex: 1;
}

/* Multi-Select Quiz Styles */
.selection-counter {
  background: var(--light-cream);
  border: 3px solid var(--sage-green);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.counter-number {
  font-size: 2em;
  font-weight: bold;
  color: var(--accent-color);
}

.counter-divider {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--sage-green);
}

.counter-max {
  font-size: 2em;
  font-weight: bold;
  color: var(--sage-green);
}

.counter-label {
  font-size: 1em;
  color: var(--sage-green);
}

.counter-complete {
  font-size: 2em;
  color: #28a745;
  font-weight: bold;
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.breed-images-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.breed-card {
  background: white;
  border: 3px solid var(--sage-green);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}

.breed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.breed-card.selected {
  background: var(--light-cream);
  border-color: var(--accent-color);
  border-width: 4px;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.breed-card-image {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.breed-card-image:hover {
  opacity: 0.9;
}

.breed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breed-card-image .no-image {
  font-size: 3em;
  color: var(--secondary-color);
}

.breed-card-name {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--sage-green);
  text-align: center;
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breed-card-checkbox {
  position: absolute;
  bottom: 45px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 3px solid var(--sage-green);
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: var(--accent-color);
  font-weight: bold;
  z-index: 2;
  cursor: pointer;
}

.breed-card.selected .breed-card-checkbox {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.breed-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.breed-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.breed-card.correct {
  background: #d4edda;
  border-color: #28a745;
  border-width: 4px;
  cursor: default;
}

.breed-card.correct:hover {
  transform: none;
}

.breed-card.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
  border-width: 4px;
  cursor: default;
}

.breed-card.incorrect:hover {
  transform: none;
}

.breed-card.missed {
  background: #fff3cd;
  border-color: #ffc107;
  border-width: 4px;
  opacity: 0.8;
  cursor: default;
}

.breed-card.missed:hover {
  transform: none;
}

.breed-card-result {
  position: absolute;
  top: 8px;
  right: 8px;
}

.result-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px;
  border-radius: 8px;
  font-weight: bold;
}

.result-badge.correct {
  background: #28a745;
  color: white;
}

.result-badge.incorrect {
  background: #dc3545;
  color: white;
}

.result-badge.missed {
  background: #ffc107;
  color: #333;
}

.badge-icon {
  font-size: 1.5em;
  line-height: 1;
}

.badge-percentage {
  font-size: 0.85em;
  margin-top: 2px;
}

.score-display {
  background: linear-gradient(135deg, var(--accent-color) 0%, #c29d2f 100%);
  border: 4px solid var(--accent-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
}

.score-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.score-points {
  font-size: 2.5em;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.score-out-of {
  font-size: 1.5em;
  color: white;
  opacity: 0.9;
}

.score-label-text {
  font-size: 1em;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.action-button.primary {
  background: var(--accent-color);
  color: var(--sage-green);
  font-weight: bold;
}

.action-button.primary:hover:not(:disabled) {
  background: #c29d2f;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.action-button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Quiz Styles */
@media (min-width: 769px) {
  .quiz-container {
    padding: 40px;
  }
  
  .quiz-header h2 {
    font-size: 2.5em;
  }
  
  .quiz-score-board {
    flex-direction: row;
    gap: 30px;
    justify-content: space-around;
  }
  
  .attempts-section {
    border-left: 2px solid var(--secondary-color);
    border-top: none;
    padding-left: 20px;
    padding-top: 0;
  }
  
  .score-primary {
    font-size: 3em;
  }
  
  .attempts-count {
    font-size: 2.5em;
  }
  
  .completion-banner {
    font-size: 1.3em;
    padding: 20px;
  }
  
  .input-group {
    flex-direction: row;
  }
  
  .quiz-actions {
    flex-direction: row;
  }
  
  .action-button {
    width: auto;
  }
  
  .image-modal-content {
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
  }
  
  .image-modal-content img {
    max-height: 600px;
  }
  
  .modal-breed-name {
    font-size: 1.5em;
  }
  
  .page-header h1 {
    font-size: 3em;
  }
  
  .subtitle {
    font-size: 1.3em;
  }
  
  .suggestion-image {
    width: 60px;
    height: 60px;
  }
  
  .suggestion-name {
    font-size: 1.1em;
  }
  
  .suggestions-dropdown {
    max-height: 400px;
  }
  
  .breed-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .breed-card {
    min-height: 200px;
    padding: 12px;
  }
  
  .breed-card-image {
    height: 120px;
  }
  
  .breed-card-name {
    font-size: 0.95em;
  }
  
  .counter-number {
    font-size: 3em;
  }
  
  .counter-label {
    font-size: 1.2em;
  }
  
  .score-points {
    font-size: 4em;
  }
  
  .score-out-of {
    font-size: 2em;
  }
  
  .score-label-text {
    font-size: 1.3em;
  }
  
  .result-badge {
    min-width: 50px;
    padding: 6px;
  }
  
  .badge-icon {
    font-size: 1.2em;
  }
  
  .badge-percentage {
    font-size: 0.75em;
  }
}

/* Admin Area Styles */
.admin-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.admin-tile {
  background: white;
  border: 3px solid var(--sage-green);
  border-radius: 15px;
  padding: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.admin-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.admin-tile.secondary {
  border-color: var(--secondary-color);
}

.admin-tile-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.admin-tile h2 {
  color: var(--sage-green);
  margin-bottom: 10px;
  font-size: 1.5em;
}

.admin-tile p {
  color: var(--secondary-color);
  font-size: 1em;
  line-height: 1.5;
}

.admin-header {
  background: linear-gradient(135deg, #8B9D83 0%, var(--sage-green) 100%);
}

.subtitle-note {
  font-size: 1em;
  opacity: 1;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
}

.admin-content {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-footer {
  text-align: center;
  padding: 30px;
}

/* Breed Selector Styles */
.selector-header {
  margin-bottom: 30px;
}

.selector-info {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
  flex-direction: column;
}

.info-card {
  background: var(--light-cream);
  border: 3px solid var(--sage-green);
  border-radius: 12px;
  padding: 20px 30px;
  text-align: center;
  min-width: 150px;
}

.info-number {
  font-size: 2em;
  font-weight: bold;
  color: var(--accent-color);
  line-height: 1;
}

.info-label {
  font-size: 1em;
  color: var(--sage-green);
  margin-top: 8px;
  font-weight: 600;
}

.save-message {
  padding: 15px 25px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.save-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.save-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.selector-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  flex-direction: column;
}

.search-box {
  max-width: 500px;
  margin: 0 auto 30px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1em;
  border: 3px solid var(--sage-green);
  border-radius: 10px;
  background: white;
  color: var(--sage-green);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.breed-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.selector-card {
  background: white;
  border: 3px solid var(--sage-green);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 160px;
}

.selector-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-color);
}

.selector-card.selected {
  background: var(--light-cream);
  border-color: var(--accent-color);
  border-width: 4px;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.selector-card.target {
  border-color: #28a745;
}

.selector-card.target.selected {
  background: #d4edda;
  border-color: #28a745;
}

.selector-card-image {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.selector-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selector-card-name {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--sage-green);
  text-align: center;
  line-height: 1.2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.selector-card-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 3px solid var(--sage-green);
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: var(--accent-color);
  font-weight: bold;
}

.selector-card.selected .selector-card-checkbox {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.target-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #28a745;
  color: white;
  font-size: 0.7em;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Admin Responsive Styles */
@media (min-width: 769px) {
  .admin-container {
    padding: 40px;
  }
  
  .admin-content {
    padding: 20px 40px 40px;
  }
  
  .admin-tiles {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .selector-info {
    flex-direction: row;
    gap: 20px;
  }
  
  .selector-actions {
    flex-direction: row;
  }
  
  .breed-selector-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .selector-card {
    min-height: 180px;
  }
  
  .selector-card-image {
    height: 100px;
  }
  
  .info-number {
    font-size: 2.5em;
  }
}

/* Quiz Activation Styles */
.quiz-activation-container {
  max-width: 1000px;
  margin: 0 auto;
}

.activation-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.activation-info {
  margin-bottom: 25px;
  font-size: 1.1em;
  color: var(--sage-green);
}

.large-button {
  font-size: 1.2em;
  padding: 15px 40px;
}

.submissions-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.submissions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--cream);
  flex-direction: column;
  gap: 15px;
}

.submissions-header h2 {
  color: var(--sage-green);
  margin: 0;
}

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

.submission-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 20px;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.submission-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-direction: column;
  gap: 5px;
}

.submission-name {
  font-size: 1.2em;
  color: var(--sage-green);
}

.submission-time {
  color: #666;
  font-size: 0.9em;
}

.submission-breeds {
  margin-bottom: 10px;
}

.submission-breeds strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sage-green);
}

.submission-score {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--secondary-color);
  color: var(--sage-green);
  font-size: 1.1em;
}

/* Name Input Styles */
.name-input-container {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 0 20px;
}

.name-input {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border: 3px solid var(--sage-green);
  border-radius: 10px;
  background: white;
  font-family: inherit;
  text-align: center;
  transition: all 0.3s ease;
}

.name-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.participant-badge {
  background: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  display: inline-block;
}

/* Waiting Message Styles */
.waiting-message {
  text-align: center;
  padding: 40px 20px;
  background: var(--light-cream);
  border-radius: 15px;
  border: 3px solid var(--accent-color);
  margin-bottom: 30px;
}

.waiting-icon {
  font-size: 4em;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.waiting-message h3 {
  color: var(--sage-green);
  font-size: 2em;
  margin-bottom: 10px;
}

.waiting-message p {
  color: var(--sage-green);
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Tie-Breaker Styles */
.ranking-container {
  max-width: 600px;
  margin: 30px auto;
  background: var(--light-cream);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 12px;
  cursor: move;
  transition: all 0.3s ease;
  user-select: none;
}

.ranking-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ranking-item:active {
  cursor: grabbing;
  opacity: 0.7;
}

.ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 50%;
}

.ranking-breed-name {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--sage-green);
}

.ranking-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-button {
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 28px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-button:hover:not(:disabled) {
  background: var(--primary-color);
  transform: scale(1.1);
}

.rank-button:disabled {
  background: #d3d3d3;
  cursor: not-allowed;
  opacity: 0.5;
}

.ranking-hint {
  text-align: center;
  color: var(--sage-green);
  font-size: 0.95em;
  margin-top: 15px;
  padding: 12px;
  background: rgba(139, 157, 131, 0.1);
  border-radius: 8px;
}

/* Tie-breaker and winner ribbons */
.tie-breaker-ribbon,
.winner-ribbon {
  margin: 1.5rem 0;
  text-align: center;
}

.ribbon {
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ribbon-pending {
  background: rgba(255, 193, 7, 0.15);
  border: 2px solid #ffc107;
  color: #856404;
}

.ribbon-active {
  background: rgba(23, 162, 184, 0.15);
  border: 2px solid #17a2b8;
  color: #0c5460;
}

.winner-ribbon {
  background: rgba(40, 167, 69, 0.15);
  border: 2px solid #28a745;
  color: #155724;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ribbon-subtitle {
  font-size: 0.9rem;
  font-weight: normal;
  opacity: 0.85;
}

.tie-breaker-results {
  margin: 30px auto;
  max-width: 800px;
}

.ranking-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.ranking-column {
  background: var(--light-cream);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.ranking-column h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3em;
  text-align: center;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ranking-counter;
}

.ranking-list li {
  counter-increment: ranking-counter;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: white;
  border-radius: 10px;
  border: 2px solid rgba(139, 157, 131, 0.2);
  position: relative;
  padding-left: 50px;
}

.ranking-list li::before {
  content: counter(ranking-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.ranking-list li.correct-position {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
  font-weight: 600;
}

.ranking-list li.correct-position::before {
  background: #28a745;
}

.ranking-list li.incorrect-position {
  background: rgba(220, 53, 69, 0.05);
  border-color: rgba(220, 53, 69, 0.3);
}

.waiting-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.tie-breaker-alert {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
  border: 2px solid #ffc107;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.tie-breaker-alert button {
  display: block;
  margin: 0 auto 15px;
  width: 100%;
  max-width: 400px;
}

.alert-text {
  color: #856404;
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .ranking-comparison {
    grid-template-columns: 1fr;
  }
  
  .ranking-item {
    padding: 12px 15px;
  }
  
  .ranking-breed-name {
    font-size: 1em;
  }
  
  .ranking-number {
    min-width: 35px;
    height: 35px;
    font-size: 1em;
  }
}


.submission-details {
  background: white;
  padding: 15px;
  border-radius: 10px;
  color: var(--sage-green);
  font-weight: 600;
  margin-top: 20px;
}

@media (min-width: 769px) {
  .submissions-header {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  
  .submissions-header .action-button {
    width: auto;
  }
  
  .submission-header {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  
  .name-input-container {
    padding: 0;
  }
}

