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

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  background: #f0e6d6;
  font-family: "Quicksand", sans-serif;
  padding: 24px 16px;
}

.card {
  width: clamp(320px, 90vw, 720px);
  background: #fffaf3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f4845f, #f9a870, #f4845f);
}

.header {
  background: linear-gradient(135deg, #fce4c7 0%, #fdd6a8 50%, #f9c88a 100%);
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 30px;
  background: #fffaf3;
  border-radius: 50% 50% 0 0;
}

.paw-prints {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  opacity: 0.3;
  transform: rotate(-15deg);
}

.paw-prints-left {
  position: absolute;
  top: 18px;
  left: 16px;
  font-size: 18px;
  opacity: 0.25;
  transform: rotate(20deg);
}

.badge {
  display: inline-block;
  background: #f4845f;
  color: white;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.title {
  font-family: "Fredoka", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #3d2c1e;
  line-height: 1.2;
  margin-bottom: 6px;
}

.title span,
p > strong {
  color: #f4845f;
}

.subtitle {
  font-size: 15px;
  color: #7a6352;
  font-weight: 500;
}

.cat-photo-header {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 18px;
  border: 4px solid white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.body {
  padding: 20px 28px 28px;
}

.cause-box {
  background: linear-gradient(135deg, #fff5eb, #fff0e0);
  border-left: 4px solid #f4845f;
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.cause-box .cause-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #f4845f;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cause-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cause-box p {
  font-size: 14px;
  color: #5a4636;
  line-height: 1.6;
  text-align: justify;
}

.cause-photos {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 4px;
  justify-content: space-evenly;
}

.cat-photo-cause {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #f4845f;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.info-item {
  background: #faf5ee;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  border: 1.5px solid #f0e4d4;
  transition: transform 0.2s;
}

.info-item:hover {
  transform: translateY(-2px);
}

.info-item .icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.info-item .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a08a74;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-item .value {
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #3d2c1e;
}

.info-item .value.highlight {
  color: #f4845f;
}

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

.how-to-title {
  font-size: 12px;
  color: #a08a74;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-to-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf5ee;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1.5px solid #f0e4d4;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4845f, #f9a870);
  color: white;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  color: #5a4636;
  line-height: 1.4;
}

.step-text strong {
  color: #f4845f;
}

.prize-box {
  background: linear-gradient(135deg, #3d2c1e, #5a4030);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prize-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prize-gallery {
  overflow: hidden;
  border-radius: 10px;
}

.prize-gallery:hover .prize-gallery-track {
  animation-play-state: paused;
}

.prize-gallery-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: prize-scroll linear infinite;
}

@keyframes prize-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.prize-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(249, 200, 138, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.prize-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.prize-info .prize-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f9c88a;
  font-weight: 600;
  margin-bottom: 4px;
}

.prize-info .prize-name {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fffaf3;
  line-height: 1.3;
}

.prize-info .prize-name.small {
  font-size: smaller;
  opacity: 0.75;
}

.numbers-section {
  margin-bottom: 20px;
}

.numbers-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #f4845f;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.numbers-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #7a6352;
}

.legend-item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.legend-available::before {
  background: #faf5ee;
  border: 1.5px solid #f0e4d4;
}

.legend-selected::before {
  background: linear-gradient(135deg, #f4845f, #f9a870);
  border: 1.5px solid #f4845f;
}

.legend-sold::before {
  background: #e8c9b0;
  border: 1.5px solid #d4b090;
}

#numbers-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  user-select: none;
}

.number-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  background: #faf5ee;
  color: #3d2c1e;
  border: 1.5px solid #f0e4d4;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.number-cell:not(.sold) {
  cursor: pointer;
}

.number-cell:not(.sold):hover {
  transform: translateY(-1px);
  border-color: #f4845f;
  color: #f4845f;
}

.number-cell.selected {
  background: linear-gradient(135deg, #f4845f, #f9a870);
  color: white;
  border-color: #f4845f;
  box-shadow: 0 2px 8px rgba(244, 132, 95, 0.4);
}

.number-cell.selected:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 132, 95, 0.55);
}

.number-cell.sold {
  background: #e8c9b0;
  color: #b08060;
  text-decoration: line-through;
  border-color: #d4b090;
  cursor: not-allowed;
}

.selection-counter {
  margin-top: 12px;
  background: linear-gradient(135deg, #fff5eb, #fff0e0);
  border: 2px solid #f4845f;
  border-radius: 14px;
  padding: 12px 16px;
  flex-direction: column;
  gap: 6px;
}

.selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.selection-label {
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #f4845f;
}

.selection-numbers-list {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #3d2c1e;
  word-break: break-all;
  line-height: 1.4;
}

.selection-total {
  font-size: 13px;
  font-weight: 600;
  color: #7a6352;
}

.selection-clear-btn {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid #f4845f;
  border-radius: 20px;
  padding: 4px 12px;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #f4845f;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.selection-clear-btn:hover {
  background: #f4845f;
  color: white;
}

.draw-section {
  background: linear-gradient(135deg, #fff5eb, #fff0e0);
  border-left: 4px solid #f4845f;
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.draw-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #f4845f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.draw-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.draw-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.draw-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a08a74;
  font-weight: 600;
}

.draw-value {
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #3d2c1e;
}

.draw-tbd {
  color: #a08a74;
  font-style: italic;
}

.draw-divider {
  height: 1px;
  background: #f0e4d4;
}

.draw-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.draw-rules li {
  font-size: 13px;
  color: #5a4636;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.draw-rules li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #f4845f;
  font-weight: 700;
}

.contact-section {
  text-align: center;
  padding-top: 4px;
}

.contact-section .contact-label {
  font-size: 12px;
  color: #a08a74;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-section .contact-info {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  color: #3d2c1e;
  font-weight: 600;
}

.contact-section .contact-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  background: linear-gradient(135deg, #25d366, #128c50);
  color: white;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 5px 22px rgba(37, 211, 102, 0.75);
  }
}

.contact-section .contact-note.has-selection {
  animation: pulseGlow 2s ease-in-out infinite;
}

.contact-section .contact-note:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(37, 211, 102, 0.5);
}

.contact-section .contact-note:active {
  transform: translateY(0);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.share-btn {
  margin-top: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 22px;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.35);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(102, 126, 234, 0.45);
}

.share-btn:active {
  transform: translateY(0);
}

.pix-copy-btn {
  margin-top: 0;
  background: linear-gradient(135deg, #f4845f, #f9a870);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 22px;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(244, 132, 95, 0.35);
}

.pix-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(244, 132, 95, 0.45);
}

.pix-copy-btn:active {
  transform: translateY(0);
}

.footer-strip {
  background: linear-gradient(90deg, #f4845f, #f9a870);
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.heart {
  color: #e85d4a;
}

.footer-credit {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
}

.footer-credit-link {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition:
    text-decoration-color 0.15s,
    opacity 0.15s;
}

.footer-credit-link:hover {
  text-decoration-color: white;
  opacity: 1;
}

@media (max-width: 550px) {
  #numbers-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .numbers-legend {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .cause-photos {
    flex-direction: column;
  }

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

@media (min-width: 600px) {
  .header {
    padding: 40px 36px 28px;
  }

  .title {
    font-size: 40px;
  }

  .cat-photo-header {
    width: 180px;
    height: 180px;
  }

  .body {
    padding: 24px 36px 36px;
  }

  .cat-photo-cause {
    max-width: 200px;
  }

  .info-item .value {
    font-size: 24px;
  }

  .prize-info .prize-name {
    font-size: 20px;
  }

  #numbers-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
  }

  .number-cell {
    font-size: 16px;
    border-radius: 10px;
  }
}
