:root {
  color-scheme: light;
  --forest: #153c2d;
  --leaf: #2e6d43;
  --lime: #bfe36a;
  --sand: #fff6d9;
  --orange: #f59e48;
  --ink: #153327;
  --muted: #63766b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(#b9e7df 0 28%, #edf3c3 55%, #d6e0a2);
  color: var(--ink);
  font:
    16px/1.45 ui-rounded,
    'SF Pro Rounded',
    system-ui,
    sans-serif;
}
.sun {
  position: fixed;
  top: 70px;
  right: 10%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffec8c;
  box-shadow: 0 0 80px #fff1a9;
}
.leaf {
  position: fixed;
  z-index: 0;
  font-size: 150px;
  filter: saturate(0.7);
  opacity: 0.55;
}
.leaf-a {
  bottom: -30px;
  left: -35px;
  transform: rotate(25deg);
}
.leaf-b {
  right: -30px;
  bottom: 10px;
  transform: rotate(-24deg);
}
.app {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: auto;
  padding: 18px clamp(16px, 4vw, 32px) 50px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
header > a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffffb8;
  color: var(--forest);
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 6px 20px #16482c20;
}
.brand {
  text-align: center;
  text-transform: uppercase;
}
.brand span {
  display: block;
  color: var(--leaf);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.brand b {
  font-size: 17px;
  letter-spacing: 0.06em;
}
header select {
  width: 72px;
  padding: 10px 8px;
  border: 0;
  border-radius: 14px;
  background: #ffffffb8;
  color: var(--forest);
  font-weight: 800;
}
.card {
  border: 2px solid #fff9;
  border-radius: 32px;
  background: #fffaf0dd;
  box-shadow: 0 24px 70px #16482c25;
  backdrop-filter: blur(12px);
}
.start {
  padding: clamp(24px, 7vw, 55px);
  text-align: center;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 150px;
  margin: -10px auto 10px;
  font-size: clamp(64px, 16vw, 105px);
  filter: drop-shadow(0 12px 8px #31502f33);
}
.hero span:first-child,
.hero span:last-child {
  font-size: 0.7em;
}
.hero span:first-child {
  transform: rotate(-8deg) translateX(15px);
}
.hero span:last-child {
  transform: rotate(8deg) translateX(-15px);
}
.eyebrow {
  margin: 8px;
  color: var(--leaf);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.start h1 {
  margin: 4px;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1;
}
.start > p:not(.eyebrow) {
  margin: 12px;
  color: var(--muted);
  font-size: 18px;
}
label {
  display: block;
  max-width: 470px;
  margin: 28px auto 18px;
  text-align: left;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
label select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 2px solid #cee1c6;
  border-radius: 15px;
  background: white;
  color: var(--ink);
  font-size: 16px;
}
.primary {
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9c557, var(--orange));
  color: #342208;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 8px 0 #c8752d;
  cursor: pointer;
}
.primary:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #c8752d;
}
.start small {
  display: block;
  max-width: 450px;
  margin: 22px auto 0;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.stats div {
  padding: 12px;
  border: 2px solid #ffffff80;
  border-radius: 18px;
  background: #ffffffad;
  text-align: center;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.stats b {
  color: var(--forest);
  font-size: 20px;
}
.sighting {
  padding: 24px;
  text-align: center;
}
.binocular {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  height: 270px;
  margin: auto;
  overflow: hidden;
  border: 14px solid var(--forest);
  border-radius: 48% 48% 38% 38% / 50%;
  background: radial-gradient(
    circle at 50% 60%,
    #f8e6a9,
    #aad28f 48%,
    #6aa173 70%
  );
}
.binocular:before,
.binocular:after {
  content: '';
  position: absolute;
  top: -15px;
  width: 52%;
  height: 110%;
  border: 12px solid var(--forest);
  border-radius: 50%;
}
.binocular:before {
  left: -7%;
}
.binocular:after {
  right: -7%;
}
.binocular span {
  z-index: 1;
  font-size: clamp(105px, 28vw, 170px);
  filter: drop-shadow(0 12px 10px #34593d44);
  animation: arrive 0.45s ease-out;
}
@keyframes arrive {
  from {
    transform: scale(0.55);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.sighting p {
  margin: 18px 0 0;
  color: var(--leaf);
  font-weight: 750;
}
h2 {
  text-align: center;
  font-size: clamp(24px, 5vw, 34px);
}
.answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.answers button {
  min-height: 66px;
  padding: 10px;
  border: 2px solid #d3e0c1;
  border-radius: 18px;
  background: #fffdf3;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 6px 0 #b4c795;
  cursor: pointer;
}
.answers button:hover:not(:disabled) {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.answers .correct {
  border-color: #2c9f55;
  background: #dff4d8;
  box-shadow: 0 6px 0 #6fac78;
}
.answers .wrong {
  border-color: #e66b5b;
  background: #ffe1d8;
  box-shadow: 0 6px 0 #cb8777;
}
.feedback {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0 12px;
  padding: 17px;
  border-radius: 18px;
  background: #fff9d9;
  text-align: center;
}
.feedback strong {
  color: var(--leaf);
  font-size: 18px;
}
.feedback span {
  color: var(--muted);
}
.next {
  display: block;
  margin: 18px auto;
}
.end {
  padding: 45px;
  text-align: center;
}
.badge {
  font-size: 80px;
}
.end h2 {
  font-size: 38px;
}
.result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.result div {
  padding: 18px;
  border-radius: 18px;
  background: #edf4da;
}
.result b {
  display: block;
  color: var(--leaf);
  font-size: 30px;
}
.result span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.share {
  display: block;
  margin: 22px auto 0;
  border: 0;
  background: transparent;
  color: var(--leaf);
  font-weight: 850;
  text-decoration: underline;
}
body[data-mode='ANIMAL_CHILD'] .answers button,
body[data-mode='ANIMAL_SENIOR'] .answers button {
  min-height: 78px;
  font-size: 22px;
}
body[data-mode='ANIMAL_CHALLENGE'] .binocular span {
  filter: grayscale(0.45) drop-shadow(0 12px 10px #34593d44);
}
@media (max-width: 520px) {
  .app {
    padding-top: 12px;
  }
  .start {
    padding: 25px 18px;
  }
  .hero {
    height: 105px;
  }
  .binocular {
    height: 210px;
    border-width: 10px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .answers button {
    min-height: 56px;
  }
  .sighting {
    padding: 14px;
  }
  .end {
    padding: 30px 20px;
  }
}
