:root {
  --bg: #f2c14e; /* richer gold base */
  --panel: #fff1c2;
  --accent-dark: #5a3e1b;
  --shadow: #b77a1f;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;

  display: flex;
  justify-content: center;

  min-height: 100vh;
  min-height: -webkit-fill-available;

  padding: calc(env(safe-area-inset-top) + 48px)
    calc(env(safe-area-inset-right) + 16px)
    calc(env(safe-area-inset-bottom) + 40px)
    calc(env(safe-area-inset-left) + 16px);

  box-sizing: border-box;

  font-family: Inter, system-ui, sans-serif;
  color: var(--accent-dark);

  background: radial-gradient(
    circle at top,
    #ffe08a 0%,
    var(--bg) 55%,
    #d6a437 100%
  );
  background-color: var(--bg);
  background-size: cover;
  background-repeat: no-repeat;

  overflow-x: hidden;
}

/* MAIN WRAPPER */
.wrap {
  width: 100%;
  max-width: 720px;
}

/* SCREEN PANEL */
.screen {
  background: rgba(255, 241, 194, 0.92);

  border: 4px solid var(--accent-dark);

  border-radius: 14px;

  padding: 28px 20px;

  position: relative;

  box-shadow:
    8px 8px 0 var(--shadow),
    inset 2px 2px 0 rgba(255, 255, 255, 0.5),
    inset -2px -2px 0 rgba(0, 0, 0, 0.1);
}

/* BRAND */
.brand {
  text-align: center;
  margin-bottom: 8px;
}

.brand h1 {
  margin: 0;

  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  letter-spacing: 2px;

  line-height: 1.6;

  text-shadow:
    2px 2px 0 rgba(90, 62, 27, 0.3),
    4px 4px 0 rgba(90, 62, 27, 0.1);
}

.brand img {
  width: 48px;
  height: 48px;

  margin-bottom: 12px;

  image-rendering: pixelated;

  filter: drop-shadow(2px 2px 0 rgba(90, 62, 27, 0.3));
}

/* DIVIDER */
.divider {
  height: 3px;

  margin: 20px 0;

  background: repeating-linear-gradient(
    to right,
    var(--accent-dark) 0 12px,
    transparent 12px 16px
  );

  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* SECTIONS */
.section {
  text-align: center;
  margin-bottom: 8px;
}

.section h2 {
  margin-bottom: 12px;

  font-family: "Press Start 2P", monospace;
  font-size: 12px;

  letter-spacing: 1px;
  text-transform: uppercase;

  line-height: 1.6;

  text-shadow: 1px 1px 0 rgba(90, 62, 27, 0.2);
}

.section p {
  margin: 8px 0;

  font-size: 14px;
  line-height: 1.7;
}

/* CHARACTER ROW */
.character-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;

  margin: 16px 0;
}

/* SHARED IMAGE STYLING */
.frog img,
.cheesecake img {
  width: 64px;
  height: auto;

  display: block;

  image-rendering: pixelated;

  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
}

/* FROG BOUNCE */
.frog img {
  animation: frogBounce 0.7s ease-in-out infinite;
}

/* CHEESECAKE BOUNCE */
.cheesecake img {
  animation: cheesecakeBounce 0.7s ease-in-out infinite;
}

/* OPPOSITE BOUNCES */
@keyframes frogBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes cheesecakeBounce {
  0%,
  100% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(0);
  }
}

/* CONTACT */
.contact-row {
  text-align: center;
  margin-top: 20px;
}

.contact-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border: 3px solid var(--accent-dark);
  border-radius: 12px;

  background: rgba(255, 241, 194, 0.98);

  color: var(--accent-dark);

  font-family: "Press Start 2P", monospace;
  font-size: 11px;

  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: 6px 6px 0 rgba(87, 58, 17, 0.25);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.contact-button:hover,
.contact-button:focus {
  transform: translateY(-2px);

  box-shadow: 8px 8px 0 rgba(87, 58, 17, 0.25);
}

/* FOOTER */
footer {
  margin-top: 24px;
  padding: 20px 10px;

  text-align: center;

  font-size: 10px;
  letter-spacing: 1px;

  opacity: 0.7;

  font-family: "Press Start 2P", monospace;
}

/* TABLET */
@media (max-width: 768px) {
  body {
    padding-top: calc(env(safe-area-inset-top) + 40px);
  }

  .screen {
    padding: 24px 18px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .character-row {
    gap: 22px;
  }

  .frog img,
  .cheesecake img {
    width: 56px;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  body {
    padding: calc(env(safe-area-inset-top) + 28px)
      calc(env(safe-area-inset-right) + 12px)
      calc(env(safe-area-inset-bottom) + 24px)
      calc(env(safe-area-inset-left) + 12px);
  }

  .screen {
    padding: 18px 14px;

    border: 3px solid var(--accent-dark);

    box-shadow:
      4px 4px 0 var(--shadow),
      inset 1px 1px 0 rgba(255, 255, 255, 0.5),
      inset -1px -1px 0 rgba(0, 0, 0, 0.1);
  }

  .brand h1 {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .brand img {
    width: 40px;
    height: 40px;

    margin-bottom: 10px;
  }

  .divider {
    height: 2px;
    margin: 16px 0;
  }

  .section {
    margin-bottom: 6px;
  }

  .section h2 {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .section p {
    font-size: 12px;
    line-height: 1.6;
    margin: 6px 0;
  }

  .character-row {
    gap: 18px;
    margin: 14px 0;
  }

  .frog img,
  .cheesecake img {
    width: 48px;
  }

  footer {
    font-size: 9px;
    margin-top: 18px;
    padding: 16px 8px;
  }
}
