:root {
  --cream: #ebe4fa;
  --butter: #ffd98a;
  --sunrise: #ff9f58;
  --barn: #c04e2a;
  --leaf: #5c9a4d;
  --leaf-dark: #3e6b36;
  --sky: #a9dcf0;
  --sky-deep: #7cc0d9;
  --ink: #3b2a1e;
  --paper: #f4efff;
  --shadow: 0 10px 24px rgba(59, 42, 30, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: 1.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 0.8em; }
a { color: var(--barn); text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px dashed var(--butter);
}
.logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}
.logo:hover { transform: rotate(-2deg); }
.logo:hover .logo-mark { transform: rotate(10deg) scale(1.05); }
.logo-mark {
  width: 62px; height: 62px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-text { display: flex; flex-direction: column; }
.brand {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  gap: 6px;
}
.brand-saddle { color: var(--butter); }
.brand-stories {
  color: #ffe6a8;
  font-style: italic;
  font-family: 'Patrick Hand', cursive;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 0.9;
  margin-top: -4px;
}
.logo .tagline {
  font-family: 'Patrick Hand', cursive;
  color: #ffe6a8;
  font-size: 0.9rem;
  margin: 2px 0 0;
  opacity: 0.85;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  max-width: 70%;
}
nav a {
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s;
}
nav a:nth-child(1) { color: #e63946; }
nav a:nth-child(2) { color: #ff7a2b; }
nav a:nth-child(3) { color: #e8a52b; }
nav a:nth-child(4) { color: #9bc945; }
nav a:nth-child(5) { color: #3c9d48; }
nav a:nth-child(6) { color: #2ea69c; }
nav a:nth-child(7) { color: #3a91c9; }
nav a:nth-child(8) { color: #5a5fd4; }
nav a:nth-child(9) { color: #9a4dd4; }
nav a:hover {
  background: var(--butter);
  transform: translateY(-2px) rotate(-2deg);
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding: clamp(30px, 6vw, 80px) clamp(20px, 5vw, 60px);
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%);
  align-items: center;
}
.hero-text h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
  background: linear-gradient(90deg, #ff5b5b 0%, #ff9f58 18%, #ffd15c 36%, #6ac96a 54%, #4aa6e0 72%, #9a6fd9 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbow-shift 8s linear infinite;
}
@keyframes rainbow-shift {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.hero-text p { font-size: 1.1rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 12px; margin: 20px 0 28px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-weight: 600;
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--sunrise); color: white; }
.btn.ghost { background: white; color: var(--barn); border-color: var(--barn); }
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.stat-box {
  background: white;
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 130px;
  font-family: 'Patrick Hand', cursive;
}
.stat-num {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--barn);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--leaf-dark);
}
.stat-hint {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sunrise);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat-box-clickable {
  padding: 0;
  background: linear-gradient(135deg, #fff 0%, #ffeeb8 100%);
  border: 3px dashed var(--sunrise);
  transition: transform 0.15s, box-shadow 0.2s;
}
.stat-box-clickable:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 14px 28px rgba(255, 122, 43, 0.25);
}
.stat-box-clickable:active { transform: translateY(-1px) scale(0.97); }
.stat-btn {
  display: block;
  width: 100%;
  padding: 14px 22px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 15px;
}
.stat-btn:focus-visible { outline: 2px solid var(--barn); outline-offset: 2px; }
.stat-btn:hover .stat-num { color: var(--sunrise); }
.stat-btn.bumped .stat-num {
  animation: carrot-bump 0.45s ease-out;
}
@keyframes carrot-bump {
  0%   { transform: scale(1); color: var(--barn); }
  40%  { transform: scale(1.6) rotate(-8deg); color: #ff7a2b; }
  100% { transform: scale(1); color: var(--barn); }
}
.carrot-fly {
  position: absolute;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 1000;
  animation: carrot-float 1s forwards ease-out;
}
@keyframes carrot-float {
  0%   { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(10px, -130px) rotate(540deg) scale(0.4); opacity: 0; }
}
.carrot-plus {
  position: absolute;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sunrise);
  pointer-events: none;
  z-index: 1000;
  text-shadow: 0 2px 6px rgba(255, 122, 43, 0.35);
  animation: plus-float 0.9s forwards ease-out;
}
@keyframes plus-float {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-70px); opacity: 0; }
}

/* ---------- HORSE OF THE DAY ---------- */
.hero-horse {
  background: white;
  border-radius: var(--radius);
  padding: 58px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s;
  border: 3px dashed var(--butter);
}
.hero-horse:hover { transform: rotate(0deg) scale(1.01); }
.hero-horse-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--sunrise);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(255, 122, 43, 0.35);
}
.hero-horse-stage {
  position: relative;
  height: 380px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: radial-gradient(circle at 50% 70%, #fff2c2 0%, #fff8ec 70%);
  border-radius: 14px;
  overflow: hidden;
}
.hero-horse-emoji {
  font-size: 11rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
  display: inline-block;
  transition: opacity 0.3s ease;
}
.hero-horse-img {
  display: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 8px;
  grid-column: 1; grid-row: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-horse-stage.has-img .hero-horse-img {
  display: block;
  opacity: 1;
}
.hero-horse-stage.has-img .hero-horse-emoji {
  display: none;
}
.hero-horse-emoji.neighing,
.hero-horse-img.neighing {
  animation: neigh-bob 1.2s ease-in-out;
}
@keyframes neigh-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  15%      { transform: translateY(-22px) rotate(-10deg); }
  30%      { transform: translateY(-6px) rotate(8deg); }
  45%      { transform: translateY(-18px) rotate(-6deg); }
  60%      { transform: translateY(-2px) rotate(4deg); }
  75%      { transform: translateY(-10px) rotate(-3deg); }
}
.hero-horse-bubble {
  position: absolute;
  top: 18%;
  right: 12%;
  background: white;
  color: var(--barn);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 18px;
  border-radius: 18px;
  border: 3px solid var(--barn);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
  white-space: nowrap;
}
.hero-horse-bubble::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -12px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--barn);
}
.hero-horse-bubble::before {
  content: '';
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid white;
  z-index: 1;
}
.hero-horse-bubble.show {
  animation: bubble-pop 1.6s ease-out forwards;
}
@keyframes bubble-pop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-8deg); }
  15%  { opacity: 1; transform: scale(1.15) rotate(2deg); }
  30%  { transform: scale(1) rotate(-2deg); }
  75%  { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.7) rotate(4deg); }
}
.hero-horse-info {
  text-align: center;
}
.hero-horse-name {
  font-size: 1.7rem;
  color: var(--barn);
  margin: 0 0 2px;
}
.hero-horse-origin {
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.hero-horse-desc {
  font-size: 0.95rem;
  margin: 0 0 14px;
  line-height: 1.5;
}
.hero-horse-cta {
  display: inline-block;
  background: var(--butter);
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero-horse-cta:hover {
  background: var(--sunrise);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink);
}
.hero-horse-cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--ink);
}

/* ---------- HORSE FACTS PAGE ---------- */
.facts-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px clamp(30px, 4vw, 50px);
  background: linear-gradient(180deg, #ffe6a8 0%, #fff8ec 100%);
}
.facts-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
  margin-bottom: 14px;
}
.facts-rainbow {
  background: linear-gradient(90deg, #e63946, #ff7a2b, #e8a52b, #3c9d48, #3a91c9, #9a4dd4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbow-shift 8s linear infinite;
  font-weight: 700;
}
.facts-lede {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--leaf-dark);
  max-width: 640px;
  margin: 0 auto;
}
.facts-group-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--barn);
  max-width: 1100px;
  margin: 30px auto 18px;
}
.facts-group-title:first-of-type { margin-top: 0; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.fact-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--butter);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s, border-left-color 0.2s;
}
.fact-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--sunrise);
}
.fact-num {
  flex-shrink: 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--barn);
  background: var(--paper);
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 64px;
  text-align: center;
  line-height: 1.1;
}
.fact-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.facts-cta {
  text-align: center;
  margin: 40px auto 0;
  max-width: 640px;
  background: var(--butter);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 3px dashed var(--sunrise);
}
.facts-cta p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
}
.facts-cta a { color: var(--barn); text-decoration: underline; }

/* ---------- MY HORSES PAGE ---------- */
.my-horses-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px clamp(30px, 4vw, 50px);
  background: linear-gradient(180deg, #ffe6a8 0%, #fff8ec 100%);
}
.my-horses-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
  margin-bottom: 14px;
}
.i-ride {
  background: linear-gradient(90deg, #e63946, #ff7a2b, #e8a52b, #3c9d48, #3a91c9, #9a4dd4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbow-shift 8s linear infinite;
  font-weight: 700;
  font-style: italic;
}
.my-horses-lede {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--leaf-dark);
  max-width: 620px;
  margin: 0 auto;
}
.my-horse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.my-horse-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.my-horse-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.my-horse-photo {
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
}
.my-horse-emoji {
  font-size: 5.5rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
.my-horse-ribbon {
  position: absolute;
  top: 16px;
  right: -6px;
  background: var(--sunrise);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px 6px 12px;
  border-radius: 4px 0 0 4px;
  box-shadow: var(--shadow);
  letter-spacing: 0.02em;
}
.my-horse-info { padding: 22px 24px 24px; }
.my-horse-info h3 {
  color: var(--barn);
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.my-horse-breed {
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 1rem;
  margin-bottom: 12px;
}
.my-horse-bio {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.my-horse-quote {
  font-family: 'Patrick Hand', cursive;
  background: var(--paper);
  border-left: 4px solid var(--butter);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 14px;
  font-style: italic;
}
.my-horse-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.my-horse-tags li {
  background: var(--butter);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.my-horses-footnote {
  max-width: 600px;
  margin: 50px auto 0;
  text-align: center;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 3px dashed var(--butter);
}
.my-horses-footnote p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: var(--leaf-dark);
  margin-bottom: 16px;
}

/* ---------- ABOUT ME PAGE ---------- */
.about-hero {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 20px;
  background: linear-gradient(180deg, #ffe6a8 0%, #fff8ec 100%);
}
.about-wave {
  font-size: 4rem;
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30%      { transform: rotate(18deg); }
  20%, 40%      { transform: rotate(-12deg); }
}
.about-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 10px 0 20px;
  color: var(--ink);
}
.about-name {
  background: linear-gradient(90deg, #e63946, #ff7a2b, #e8a52b, #3c9d48, #3a91c9, #9a4dd4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbow-shift 8s linear infinite;
  font-weight: 700;
}
.about-age {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: white;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 3px dashed var(--butter);
  margin-bottom: 20px;
}
.about-age-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--barn);
  line-height: 1;
}
.about-age-word {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.4rem;
  color: var(--leaf-dark);
}
.about-lede {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 10px auto;
}
.about-sub {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: var(--leaf-dark);
  max-width: 600px;
  margin: 6px auto 0;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.about-card {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--butter);
  transition: transform 0.2s, border-color 0.2s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--sunrise);
}
.about-card-icon { font-size: 2.2rem; margin-bottom: 8px; }
.about-card h3 { color: var(--barn); margin-bottom: 6px; }
.about-card p { font-size: 0.95rem; margin: 0; }
.about-cta {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 3px solid var(--butter);
}
.about-cta h3 {
  color: var(--barn);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.about-cta p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--leaf-dark);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
}
.section.alt { background: var(--paper); }
.section-title {
  text-align: center;
  color: var(--barn);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--leaf-dark);
}

/* ---------- CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--butter); transform: translateY(-4px); }
.card-icon { font-size: 2.5rem; margin-bottom: 8px; }
.card h3 { color: var(--barn); }
.boom-card {
  background: linear-gradient(135deg, #ff9f58, #ffd15c);
  color: var(--ink);
  position: relative;
  animation: boom-wiggle 3s ease-in-out infinite;
}
.boom-card h3 {
  color: var(--barn);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
}
.boom-card .card-icon { font-size: 3rem; }
.boom-card:hover { transform: translateY(-4px) scale(1.03) rotate(1deg); }
@keyframes boom-wiggle {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(1.5deg); }
}

/* ---------- SAFETY ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.safety-item {
  background: var(--paper);
  border: 3px solid var(--butter);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.safety-icon { font-size: 2.5rem; margin-bottom: 8px; }
.safety-item h4 { color: var(--barn); margin-bottom: 6px; font-size: 1.15rem; }
.safety-item p { font-size: 0.95rem; margin: 0; }

/* ---------- BREED GROUPS ---------- */
.breed-group {
  max-width: 1100px;
  margin: 0 auto 40px;
}
.breed-group:last-child { margin-bottom: 0; }
.group-title {
  color: var(--barn);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.group-desc {
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.breed-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--butter);
}
.breed-card h4 {
  color: var(--barn);
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.breed-meta {
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.breed-card p:last-child {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- BREED DIRECTORY ---------- */
.breed-toolbar {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.breed-toolbar input, .breed-toolbar select {
  padding: 10px 14px;
  border: 2px solid #eadfc4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  transition: border-color 0.2s;
}
.breed-toolbar input {
  flex: 1 1 240px;
  min-width: 200px;
}
.breed-toolbar input:focus,
.breed-toolbar select:focus {
  outline: none;
  border-color: var(--sunrise);
}
.breed-count {
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 1rem;
  margin-left: auto;
}
.breed-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.breed-item {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--butter);
  transition: transform 0.15s;
}
.breed-item:hover { transform: translateY(-2px); }
.breed-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.breed-item h4 {
  color: var(--barn);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.2;
}
.breed-type {
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.breed-origin {
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 0.9rem;
  margin: 0 0 6px;
}
.breed-desc {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}
.breed-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  color: var(--leaf-dark);
  font-size: 1.2rem;
  padding: 40px;
}
.breed-source {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--leaf-dark);
  opacity: 0.7;
}

/* ---------- HORSE PARTS ---------- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto 24px;
}
.part {
  background: white;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--sunrise);
}
.part strong {
  color: var(--barn);
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.part p { font-size: 0.9rem; margin: 0; }
.fun-fact {
  max-width: 700px;
  margin: 20px auto 0;
  background: var(--butter);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  font-size: 1rem;
}

/* ---------- JOURNAL ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.journal-entry {
  background: var(--paper);
  border: 3px dashed var(--butter);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.journal-date {
  display: inline-block;
  background: var(--sunrise);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.journal-entry h4 {
  color: var(--barn);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.journal-entry p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: #f1e5d1;
  padding: 50px clamp(20px, 5vw, 60px) 24px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 30px;
}
footer h4 { color: var(--butter); margin-bottom: 8px; }
footer p { font-size: 0.95rem; margin: 0; }
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #5a4532;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }
  nav { justify-content: center; gap: 4px 10px; }
  nav a { font-size: 0.92rem; padding: 6px 10px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 20px 50px;
    gap: 28px;
  }
  .hero-horse { order: -1; }
  .hero-horse-stage { height: 170px; }
  .hero-horse-emoji { font-size: 6rem; }
}

/* Phone */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  body { -webkit-tap-highlight-color: rgba(255, 122, 43, 0.2); }

  .site-header { padding: 12px 14px; }
  .logo { gap: 10px; }
  .logo-mark { width: 50px; height: 50px; }
  .brand { font-size: 1.35rem; gap: 4px; }
  .brand-stories { font-size: 1.55rem; }
  .logo .tagline { font-size: 0.8rem; }

  nav { gap: 4px 6px; max-width: 100%; }
  nav a { font-size: 0.85rem; padding: 5px 9px; }

  .hero { padding: 24px 16px 40px; gap: 22px; }
  .hero-text h2 { font-size: clamp(1.8rem, 7.5vw, 2.5rem); }
  .hero-text p  { font-size: 1rem; }
  .hero-buttons { gap: 8px; margin: 16px 0 20px; }
  .btn { padding: 12px 18px; font-size: 0.95rem; }

  .hero-stats { gap: 10px; }
  .stat-box {
    padding: 12px 16px;
    min-width: 0;
    flex: 1 1 140px;
  }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: 0.9rem; }
  .stat-btn { padding: 12px 16px; }

  .hero-horse { padding: 48px 18px 22px; }
  .hero-horse-badge {
    font-size: 0.75rem;
    padding: 5px 11px;
    top: 12px; left: 12px;
  }
  .hero-horse-stage { height: 150px; }
  .hero-horse-emoji { font-size: 5rem; }
  .hero-horse-bubble { font-size: 0.95rem; padding: 7px 12px; right: 6%; }
  .hero-horse-name { font-size: 1.4rem; }
  .hero-horse-origin { font-size: 1rem; }

  .section { padding: 36px 16px; }
  .section-title { font-size: 1.55rem; }
  .section-intro { font-size: 0.98rem; margin-bottom: 28px; }

  .card-grid,
  .breed-grid,
  .breed-directory,
  .safety-grid,
  .parts-grid,
  .journal-grid,
  .my-horse-grid,
  .about-grid,
  .foot-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card { padding: 20px; }
  .my-horse-photo { height: 170px; }
  .my-horse-emoji { font-size: 4.5rem; }
  .my-horse-ribbon { font-size: 0.72rem; padding: 5px 11px 5px 9px; }

  .breed-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .breed-toolbar input,
  .breed-toolbar select { width: 100%; min-width: 0; }
  .breed-count { margin-left: 0; text-align: center; }

  .about-hero { padding: 40px 16px; }
  .about-title { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
  .about-age { padding: 10px 22px; }
  .about-age-num { font-size: 2.6rem; }
  .about-age-word { font-size: 1.1rem; }
  .about-lede, .about-sub { font-size: 1.1rem; }

  .my-horses-hero { padding: 40px 16px 30px; }

  footer { padding: 36px 18px 20px; }

  .boom-card h3 { font-size: 1.5rem; }
}

/* Very small phone */
@media (max-width: 360px) {
  nav a { font-size: 0.8rem; padding: 4px 8px; }
  .hero-text h2 { font-size: 1.6rem; }
  .brand { font-size: 1.15rem; }
  .brand-stories { font-size: 1.35rem; }
  .stat-num { font-size: 1.5rem; }
}

/* ---------- QUIZ PAGE ---------- */
.quiz-hero {
  text-align: center;
  padding: 56px clamp(20px, 5vw, 60px) 30px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.quiz-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 0.3em; }
.quiz-rainbow {
  background: linear-gradient(90deg, var(--barn), var(--sunrise), var(--leaf), var(--sky-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.quiz-lede {
  max-width: 640px; margin: 0 auto;
  font-size: 1.05rem;
  font-family: 'Patrick Hand', cursive;
}

.quiz-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px clamp(20px, 4vw, 40px) 32px;
  box-shadow: var(--shadow);
  border: 3px solid var(--butter);
}
.quiz-progress {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.quiz-progress-bar {
  flex: 1;
  height: 12px;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--ink);
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sunrise), var(--barn));
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quiz-progress-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.75;
}
.quiz-question {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin: 0 0 22px;
  color: var(--ink);
  line-height: 1.35;
}
.quiz-options {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.quiz-option {
  width: 100%;
  text-align: left;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.quiz-option:hover:not(:disabled) {
  background: #ffe6a8;
  border-color: var(--butter);
  transform: translateX(4px);
}
.quiz-option:disabled { cursor: default; opacity: 0.85; }
.quiz-option.correct {
  background: #d8f0c8;
  border-color: var(--leaf);
  color: var(--leaf-dark);
  font-weight: 600;
}
.quiz-option.wrong {
  background: #ffd5d5;
  border-color: #d44;
  color: #8a1f1f;
  font-weight: 600;
}
.quiz-feedback {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  min-height: 1.5em;
  padding: 0 4px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.quiz-feedback.right { color: var(--leaf-dark); }
.quiz-feedback.wrong { color: #8a1f1f; }
.quiz-next {
  margin-left: auto;
  display: block;
}

.quiz-result {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow);
  border: 3px dashed var(--barn);
}
.quiz-result-emoji {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: quizPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes quizPop {
  0%   { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1)   rotate(0);      opacity: 1; }
}
.quiz-result-rank {
  font-size: 2rem;
  margin: 0 0 6px;
  color: var(--barn);
}
.quiz-result-score {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.quiz-result-msg {
  font-size: 1.05rem;
  margin: 0 0 24px;
  color: var(--ink);
}
.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.quiz-result-actions .btn {
  border: none;
  font-family: 'Fredoka', sans-serif;
  cursor: pointer;
}

@media (max-width: 600px) {
  .quiz-card { padding: 22px 16px 24px; }
  .quiz-result { padding: 32px 18px; }
  .quiz-result-emoji { font-size: 3.5rem; }
  .quiz-result-rank { font-size: 1.6rem; }
  .quiz-progress-text { font-size: 0.85rem; }
}

/* ---------- ADD YOUR HORSE (My Horses page) ---------- */
.my-horses-add {
  margin: 30px auto 10px;
  max-width: 720px;
  text-align: center;
}

/* Inline "+ Add your horse here!" tile that sits in Ella's grid next to Coconut */
.add-card-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 360px;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 4px dashed var(--barn);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  color: var(--barn);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.add-card-tile:hover {
  background: var(--butter);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: var(--shadow);
}
.add-card-icon {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}
.add-card-label {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.add-card-hint {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.75;
}

.my-horse-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
  border: 3px dashed var(--barn);
  text-align: left;
  display: grid;
  gap: 14px;
}
.my-horse-form h3 {
  margin: 0 0 4px;
  text-align: center;
  color: var(--barn);
}
.my-horse-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: var(--ink);
}
.my-horse-form input,
.my-horse-form select,
.my-horse-form textarea {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.my-horse-form input:focus,
.my-horse-form select:focus,
.my-horse-form textarea:focus {
  border-color: var(--sunrise);
  background: #fff;
}
.my-horse-form textarea { resize: vertical; min-height: 70px; }
.my-horse-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.my-horse-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}
.my-horse-form-actions .btn {
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
}

.user-grid {
  margin-top: 24px;
}
.user-grid:empty {
  display: none;
}
.user-horse-card {
  position: relative;
}
.user-horse-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}
.user-horse-delete:hover {
  background: #ffd5d5;
  transform: rotate(90deg);
}

@media (max-width: 500px) {
  .my-horse-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- RIDER JOURNAL — ADD YOUR STORY TILE ---------- */
.add-story-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 4px dashed var(--barn);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.add-story-tile:hover {
  background: var(--butter);
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.add-story-tile h4 {
  color: var(--barn);
  margin: 0 0 6px;
}
.add-story-tile p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink);
}
.add-story-icon {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--barn);
  line-height: 1;
  margin-bottom: 6px;
}

.user-stories-grid {
  margin-top: 20px;
}
.user-stories-grid:empty {
  display: none;
}
.user-story-entry {
  position: relative;
}
.user-story-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.user-story-delete:hover {
  background: #ffd5d5;
  transform: rotate(90deg);
}

/* ---------- ADD STORY PAGE ---------- */
.add-story-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.add-story-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
  animation: addHorseBounce 2.4s ease-in-out infinite;
}
.add-story-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 0.3em;
}
.add-story-your {
  background: linear-gradient(90deg, var(--barn), var(--sunrise));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.add-story-lede {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-family: 'Patrick Hand', cursive;
}
.add-story-form {
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- ABOUT ME — TELL US ABOUT YOURSELF TILE ---------- */
.about-tell-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 4px dashed var(--barn);
  border-radius: var(--radius);
  padding: 26px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.about-tell-tile:hover {
  background: var(--butter);
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.about-tell-tile h3 {
  color: var(--barn);
  margin: 0 0 6px;
}
.about-tell-tile p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink);
}
.about-tell-icon {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--barn);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- ABOUT YOU PAGE ---------- */
.about-you-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.about-you-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: aboutYouWave 1.6s ease-in-out infinite;
  display: inline-block;
  transform-origin: 70% 70%;
}
@keyframes aboutYouWave {
  0%, 100% { transform: rotate(-15deg); }
  50%      { transform: rotate(15deg); }
}
.about-you-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 0.3em;
}
.about-you-yourself {
  background: linear-gradient(90deg, var(--barn), var(--sunrise), var(--leaf));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.about-you-lede {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-family: 'Patrick Hand', cursive;
}
.about-you-form {
  max-width: 640px;
  margin: 0 auto;
}

.about-you-thanks {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow);
  border: 3px dashed var(--barn);
}
.about-you-thanks-emoji {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: quizPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.about-you-thanks-title {
  font-size: 2rem;
  color: var(--barn);
  margin: 0 0 8px;
}
.about-you-thanks-msg {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 18px;
}
.about-you-thanks-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 20px 18px 8px;
  margin: 0 auto 22px;
  text-align: left;
  border: 2px solid var(--butter);
}
.about-you-thanks-card .thanks-card-emoji {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 8px;
}
.about-you-thanks-card h4 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 12px;
}
.about-you-thanks-card p {
  margin: 0 0 6px;
  font-size: 0.98rem;
}
.about-you-thanks-card .thanks-why {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: var(--barn);
  margin-top: 10px;
}
.about-you-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- ADD HORSE PAGE ---------- */
.add-horse-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.add-horse-hero-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: addHorseBounce 2.4s ease-in-out infinite;
}
@keyframes addHorseBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
.add-horse-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 0.3em;
}
.add-horse-your {
  background: linear-gradient(90deg, var(--barn), var(--sunrise));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.add-horse-lede {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-family: 'Patrick Hand', cursive;
}
.add-horse-form {
  max-width: 640px;
  margin: 0 auto;
}
.required {
  color: var(--barn);
  font-weight: 700;
}

/* ---------- DREAM HORSE DESIGNER ---------- */
.dream-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 20px clamp(30px, 4vw, 50px);
  background: linear-gradient(180deg, #ffe6a8 0%, #fff8ec 100%);
}
.dream-hero-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: dream-float 3s ease-in-out infinite;
}
@keyframes dream-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.dream-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
  margin-bottom: 14px;
}
.dream-rainbow {
  background: linear-gradient(90deg, #e63946, #ff7a2b, #e8a52b, #3c9d48, #3a91c9, #9a4dd4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbow-shift 8s linear infinite;
  font-weight: 700;
}
.dream-lede {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--ink);
}

.dream-studio {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .dream-studio { grid-template-columns: 1fr; }
}

.dream-stage {
  background: white;
  border-radius: var(--radius);
  border: 3px dashed var(--butter);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 110px;
  align-self: start;
}
.dream-horse-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  background: radial-gradient(circle at 50% 78%, #fff2c2 0%, #fff8ec 70%);
  border-radius: 14px;
}
.dream-stage-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--barn);
  margin: 14px 0 0;
  text-align: center;
}

/* hide all markings by default; toggled on by class on the svg root */
.dream-horse-svg .dh-mark { display: none; }
.dream-horse-svg.marking-star  .dh-mark-star  { display: block; }
.dream-horse-svg.marking-blaze .dh-mark-blaze { display: block; }
.dream-horse-svg.marking-snip  .dh-mark-snip  { display: block; }
.dream-horse-svg.marking-socks .dh-mark-socks { display: block; }
.dream-horse-svg.marking-spots .dh-mark-spots { display: block; }

.dream-controls {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 3px solid var(--butter);
}
.dream-control-block h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--ink);
}
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active {
  border-color: var(--barn);
  box-shadow: 0 0 0 3px var(--butter), 0 4px 10px rgba(0,0,0,0.2);
  transform: scale(1.1);
}
.swatch-rainbow {
  background: linear-gradient(135deg, #e63946, #ff7a2b 20%, #e8a52b 40%, #3c9d48 60%, #3a91c9 80%, #9a4dd4) !important;
}
.swatch-fantasy { position: relative; }
.swatch-fantasy::after {
  content: '✨';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.8rem;
}

.marking-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.marking-btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff8ec;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 0.1s ease, background 0.1s ease;
}
.marking-btn:hover { background: var(--butter); transform: translateY(-1px); }
.marking-btn.active {
  background: var(--sunrise);
  color: #fff;
  border-color: var(--barn);
  box-shadow: 0 2px 0 var(--barn);
}

.dream-name-input {
  width: 100%;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fff8ec;
  color: var(--ink);
  margin-bottom: 8px;
}
.dream-name-input:focus {
  outline: none;
  border-color: var(--barn);
  box-shadow: 0 0 0 3px var(--butter);
}
.dream-random-btn {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.dream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.dream-saved-msg {
  margin: 6px 0 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  min-height: 1.4em;
}
.dream-saved-msg.success { color: var(--leaf-dark); }
.dream-saved-msg.warn { color: var(--barn); }

/* ---------- DREAM STABLE GALLERY ---------- */
.dream-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.dream-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: var(--leaf-dark);
  padding: 40px 20px;
}
.dream-card {
  background: white;
  border-radius: var(--radius);
  border: 3px solid var(--butter);
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
  text-align: center;
  transition: transform 0.2s ease;
}
.dream-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.dream-mini-svg {
  width: 100%;
  height: auto;
  background: radial-gradient(circle at 50% 78%, #fff2c2 0%, #fff8ec 70%);
  border-radius: 12px;
}
.dream-card-name {
  margin: 10px 0 2px;
  font-size: 1.2rem;
  color: var(--barn);
}
.dream-card-meta {
  margin: 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: var(--leaf-dark);
}
.dream-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  z-index: 2;
  transition: background 0.15s ease;
}
.dream-card-delete:hover { background: var(--barn); color: #fff; }

