:root {
  --cream: #f2ece2;
  --teal: #1f5560;
  --green: #7ea363;
  --olive: #8fa66b;
  --orange: #e8a13a;
  --blush: #f0a98f;
  --tan: #e7d3b8;
  --text-dark: #2b3a3e;
}

* { box-sizing: border-box; }

html {
  background: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  padding: 16px 0;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__top {
  position: relative;
  background: var(--cream);
}

.card-top-img {
  display: block;
  width: 100%;
  height: auto;
}

.dino-eyelid {
  position: absolute;
  left: 52.8%;
  top: 20.8%;
  width: 5%;
  aspect-ratio: 1 / 1;
  background: #d5d784;
  border-radius: 50%;
  transform: translate(-50%, -50%) scaleY(0);
  transform-origin: center;
  pointer-events: none;
  animation: dino-blink 3.5s ease-in-out infinite;
}

@keyframes dino-blink {
  0%, 88%, 100% { transform: translate(-50%, -50%) scaleY(0); }
  91% { transform: translate(-50%, -50%) scaleY(1); }
  94% { transform: translate(-50%, -50%) scaleY(1); }
  97% { transform: translate(-50%, -50%) scaleY(0); }
}

/* Mobile: fill the full viewport width and height */
@media (max-width: 899px) {
  body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
  }

  .card {
    max-width: none;
    height: 100%;
    border-radius: 0;
  }

  .card__top {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .card-top-img {
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    margin: -100px;
    object-fit: contain;
    object-position: center center;
  }
}

.card__bottom {
  background: var(--teal);
  color: #f2ede7;
  padding: 44px 28px 52px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.contact-item a {
  color: #f2ede7;
  text-decoration: none;
}
.contact-item:hover a {
  text-decoration: none;
  color: var(--orange);
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: #f2ede7;
  transition: fill 0.15s, stroke 0.15s;
}

.icon--line {
  fill: none;
  stroke: #f2ede7;
}

.contact-item:hover .icon {
  fill: var(--orange);
}

.contact-item:hover .icon--line {
  fill: none;
  stroke: var(--orange);
}

.contact-item--address {
  margin-top: 8px;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Desktop layout: horizontal card like the wide design */
@media (min-width: 900px) {
  .card {
    max-width: 780px;
    flex-direction: column;
  }

  .card__bottom {
    padding: 22px 40px 30px;
  }

  .contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
  }

  .contact-item {
    font-size: 1rem;
  }

  .contact-item:not(:last-child):not(:nth-last-child(2))::after {
    content: '|';
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.5);
  }

  .address-break {
    display: none;
  }

  .contact-item--address {
    flex-basis: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 4px;
  }
  .contact-item--address::after { content: none; }
}
