:root {
  --cream: #FFF8EE;
  --brown: #7B3F00;
  --tan:   #D4956A;
  --rust:  #C1440E;
  --pink:  #F2A7C3;
  --dark:  #2C1A0E;
  --spot:  #4A2C0A;
}

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

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='26' font-size='26'%3E🐾%3C/text%3E%3C/svg%3E") 16 16, auto;
}

/* Paw print background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='10' y='50' font-size='28' opacity='0.07'%3E🐾%3C/text%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Scrolling dog parade banner ── */
.parade-wrap {
  width: 100%;
  background: var(--brown);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 2;
}
.parade {
  display: flex;
  gap: 32px;
  animation: march 18s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.parade span { font-size: 2rem; }
@keyframes march {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Main layout ── */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 60px;
  text-align: center;
}

/* ── Hero dog scene ── */
.dog-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  position: relative;
}

.dog-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Speech bubbles ── */
.bubble {
  position: absolute;
  background: white;
  border: 2.5px solid var(--brown);
  border-radius: 14px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  animation: pop-in 0.4s ease both;
  z-index: 10;
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.03em;
}
.bubble::after {
  content: '';
  position: absolute;
  border: 6px solid transparent;
}

/* Chihuahua bubble — tail points down */
.chi-bubble {
  color: var(--rust);
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-60%);
  animation-delay: 0.4s;
}
.chi-bubble::after {
  top: 100%; left: 60%;
  border-top-color: var(--brown);
  transform: translateX(-50%);
}

/* Wiener bubble — tail points down */
.wiener-bubble {
  color: var(--brown);
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-40%);
  animation-delay: 0.8s;
}
.wiener-bubble::after {
  top: 100%; left: 38%;
  border-top-color: var(--brown);
  transform: translateX(-50%);
}

@keyframes pop-in {
  0%   { transform: translateX(-60%) scale(0); opacity: 0; }
  100% { transform: translateX(-60%) scale(1); opacity: 1; }
}
@keyframes pop-in-right {
  0%   { transform: translateX(-40%) scale(0); opacity: 0; }
  100% { transform: translateX(-40%) scale(1); opacity: 1; }
}
.wiener-bubble { animation-name: pop-in-right; }

/* ── SVG dog animations ── */
.chi-svg {
  animation: shake 0.55s ease-in-out infinite alternate;
  transform-origin: bottom center;
  filter: drop-shadow(2px 4px 6px rgba(100,50,0,0.18));
}
@keyframes shake {
  0%   { transform: rotate(-5deg) translateY(0); }
  100% { transform: rotate(5deg) translateY(-2px); }
}

.wiener-svg {
  animation: trot 1.1s ease-in-out infinite alternate;
  transform-origin: bottom center;
  filter: drop-shadow(2px 4px 6px rgba(100,50,0,0.18));
}
@keyframes trot {
  0%   { transform: translateY(0) rotate(1.5deg); }
  100% { transform: translateY(-6px) rotate(-1.5deg); }
}

.ground {
  width: 380px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tan), transparent);
  margin-bottom: 32px;
}

/* ── Heading ── */
h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 7vw, 4.2rem);
  color: var(--brown);
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 3px 3px 0 var(--pink);
  letter-spacing: 0.02em;
}
.subtitle {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: #6B4226;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-style: italic;
}

/* ── Status cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 640px;
  width: 100%;
  margin-bottom: 36px;
}
.card {
  background: white;
  border: 2.5px solid var(--tan);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 4px 6px 0 var(--tan);
}
.card-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 4px;
}
.card-body { font-size: 0.8rem; color: #7B5533; line-height: 1.5; }
.card-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
}
.status-done { background: #D4F4D4; color: #2D7A2D; }
.status-wip  { background: #FFF0C0; color: #9A6E00; }
.status-nope { background: #FFE0E0; color: var(--rust); }

/* ── Dog signup boxes ── */
.signup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  width: 100%;
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .signup-row { grid-template-columns: 1fr; }
}
.treat-box {
  background: white;
  border: 2.5px solid var(--tan);
  border-radius: 20px;
  padding: 22px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.treat-box:hover { box-shadow: 4px 6px 0 var(--tan); }
.treat-box.chi-box { border-color: var(--rust); }
.treat-box.chi-box:hover { box-shadow: 4px 6px 0 var(--rust); }
.treat-box h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 4px;
}
.treat-box.chi-box h2 { color: var(--rust); }
.treat-box .dog-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tan);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.treat-box.chi-box .dog-label { color: var(--rust); opacity: 0.7; }
.treat-box p.desc {
  font-size: 0.76rem;
  color: #8B5E3C;
  margin-bottom: 12px;
  line-height: 1.5;
  font-style: italic;
}
.input-row { display: flex; width: 100%; }
.input-row input {
  flex: 1;
  border: 2.5px solid var(--tan);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 9px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.chi-box .input-row input { border-color: #e8a0a0; }
.input-row input:focus { border-color: var(--brown); }
.chi-box .input-row input:focus { border-color: var(--rust); }
.input-row button {
  background: var(--brown);
  color: white;
  border: 2.5px solid var(--brown);
  border-radius: 0 10px 10px 0;
  padding: 9px 12px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.chi-box .input-row button { background: var(--rust); border-color: var(--rust); }
.input-row button:hover { background: var(--spot); border-color: var(--spot); }

/* ── Chihuahua takeover ── */
.chi-takeover {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--rust);
  border-radius: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.chi-takeover.active { display: flex; animation: pop-in 0.3s ease; }
.chi-takeover .big-chi { font-size: 3.2rem; animation: shake 0.4s ease-in-out infinite alternate; display: block; }
.chi-takeover p {
  font-family: 'Fredoka One', cursive;
  font-size: 0.88rem;
  color: white;
  margin-top: 10px;
  line-height: 1.5;
  font-style: normal;
}

/* ── Wiener dog progress ── */
.wiener-result {
  display: none;
  margin-top: 12px;
}
.wiener-result.active { display: block; animation: pop-in 0.3s ease; }
.progress-track {
  width: 100%;
  height: 16px;
  background: #f0e0cc;
  border: 2px solid var(--tan);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #A0622A, #D4956A);
  border-radius: 20px;
  animation: fill-then-stop 4s ease-out forwards;
}
@keyframes fill-then-stop {
  0%   { width: 0%; }
  85%  { width: 94%; }
  100% { width: 94%; }
}
.wiener-result p {
  font-size: 0.76rem;
  color: #8B5E3C;
  font-style: italic;
  margin-bottom: 0;
}

/* ── Footer ── */
footer {
  font-size: 0.72rem;
  color: var(--tan);
  padding: 20px;
  text-align: center;
  letter-spacing: 0.06em;
}
