* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f8f1;
  color: #35462e;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
main {
  max-width: 520px;
  margin: auto;
  padding: 30px 22px calc(30px + env(safe-area-inset-bottom));
}
.brand {
  font-size: 16px;
  letter-spacing: 4px;
}
.eyebrow {
  margin-top: 35px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #586c5a;
}
h1 {
  font-size: 29px;
  line-height: 1.5;
  font-weight: 500;
}
h2 {
  font-size: 20px;
  font-weight: 500;
}
.card {
  background: #fff;
  border: 1px solid #e7ecdf;
  border-radius: 26px;
  padding: 25px;
  margin: 22px 0;
  box-shadow: 0 10px 30px #52644506;
}
#card {
  text-align: center;
}
#card img,
.hero {
  width: 190px;
  height: 190px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.caption {
  font-size: 23px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.muted,
footer {
  color: #586c5a;
  font-size: 13px;
}
.tag {
  font-size: 10px;
  color: #586c5a;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  border-radius: 13px;
  background: #4e705e;
  color: #fff;
  padding: 15px 18px;
  font: inherit;
  line-height: 1.5;
  min-height: 48px;
  cursor: pointer;
  white-space: normal;
}
button:disabled {
  opacity: 0.5;
}
button.secondary,
.choices button {
  background: #eaf0e2;
  color: #526b43;
}
button#make-card {
  width: 100%;
}
a {
  color: #577944;
  overflow-wrap: anywhere;
}
label {
  display: block;
  margin: 18px 0;
}
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #dce5d4;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  margin-top: 8px;
  background: white;
  color: #35462e;
}
textarea {
  min-height: 110px;
}
.consent {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent input {
  margin-top: 8px;
  min-width: 20px;
  min-height: 20px;
}
.hidden {
  display: none !important;
}
#share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#share-actions p {
  width: 100%;
}
#status {
  color: #956a4f;
  font-size: 13px;
}
footer {
  margin-top: 38px;
  text-align: center;
  font-size: 11px;
}
#handoff {
  white-space: pre-wrap;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
@media (max-width: 350px) {
  main {
    padding: 22px 15px;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 18px;
    line-height: 1.6;
  }
  .card {
    padding: 20px;
  }
}

.trial-cta {
  width: 100%;
  box-shadow: 0 5px 24px #52644528;
}
#cat {
  cursor: pointer;
}
.companion-portrait[data-action='happy'] {
  animation: cat-greet 1.3s ease-in-out 2;
}
.companion-portrait.greet {
  animation: cat-greet 1s ease-in-out;
}
.companion-portrait[data-action='tired'],
.companion-portrait[data-action='quiet'] {
  transform: rotate(-2deg);
}
@keyframes cat-greet {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px) rotate(2deg);
  }
}

.companion-portrait {
  position: relative;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}
#card .companion-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.companion-portrait .equipment-layer {
  pointer-events: none;
}

.league-frame {
  border: 2px solid #b3964d;
}
.competition-summary {
  padding: 12px 0;
  text-align: center;
  color: #705d2e;
  font-size: 13px;
  line-height: 1.8;
}
.competition-summary p {
  margin: 4px 0;
}
