:root {
  --pink: #ff6b9d;
  --pink-dark: #e0457f;
  --bg: #fff5f8;
  --text: #333;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hero {
  display: block;
  width: 100%;
  background: #ffe3ee;
}

.hero-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.hero-banner {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Climate Crisis", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pink-dark);
  -webkit-text-stroke: 2px white;
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 white, 2px -2px 0 white, -2px 2px 0 white, 2px 2px 0 white,
    0 2px 10px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pink);
  padding: 0.75rem 1.5rem;
  color: white;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}

.nav-links a:last-child { margin-right: 0; }

.nav-links-account a { margin-right: 0; margin-left: 1rem; }

.nav-links a:hover { text-decoration: underline; }

.greeting { margin-left: 1rem; font-style: italic; }

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

h1 { text-align: center; color: var(--pink-dark); }

.hint { text-align: center; color: #666; }

.matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.matchup-card {
  flex: 1 1 320px;
  max-width: 380px;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.matchup-card .cat-photo { max-height: 320px; }

.matchup-card form { margin-top: 1rem; }

.matchup-vs {
  font-family: "Climate Crisis", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-dark);
  flex: 0 0 auto;
}

.cat-photo {
  max-width: 100%;
  max-height: 420px;
  border-radius: 12px;
  object-fit: cover;
}

.cat-label { margin: 0.75rem 0; color: var(--pink-dark); }

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
}

.btn-paw { background: #ffd166; }
.btn-primary { background: var(--pink); color: white; display: inline-block; text-decoration: none; }
.btn:hover { filter: brightness(0.95); }

.form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field label { font-weight: 600; }
.field input[type="text"], .field input[type="password"], .field input[type="file"] {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.error { color: #d32f2f; font-size: 0.85rem; }

.flashes { list-style: none; padding: 0; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-danger { background: #f8d7da; color: #721c24; }
.flash-warning { background: #fff3cd; color: #856404; }
.flash-info { background: #d1ecf1; color: #0c5460; }

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

.card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cat-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.score { font-weight: bold; color: var(--pink-dark); }
.votes, .owner { font-size: 0.85rem; color: #666; }

footer {
  text-align: center;
  color: #999;
  padding: 1.5rem;
  font-size: 0.85rem;
}
