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

body {
  font-family: 'Inter', sans-serif;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background-color: #ffde59;
  background-image: radial-gradient(rgba(0, 0, 0, .13) 1px, transparent 1px);
  background-size: 12px 12px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.burst {
  position: absolute;
  top: -14px;
  right: 4px;
  background: #ff2b2b;
  color: #fff;
  font-family: 'Bangers', cursive;
  padding: 8px 12px;
  transform: rotate(10deg);
  border: 3px solid #000;
  border-radius: 4px;
  font-size: clamp(.8rem, 3vw, 1.05rem);
  pointer-events: none;
}

.title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  color: #ff2b2b;
  -webkit-text-stroke: 2px #000;
  transform: rotate(-3deg);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}



.comic-bubble {
  position: relative;
  background: #fff;
  border: 4px solid #000;
  border-radius: 24px;
  padding: 28px 24px;
  margin: 0 auto 44px;
  max-width: 400px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .15);
}

.comic-bubble::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 60px;
  border-width: 20px 14px 0 0;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.comic-bubble::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 65px;
  border-width: 15px 9px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

#jokeText {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: #111;
  line-height: 1.35;
  letter-spacing: .5px;
  transition: opacity .2s ease;
}

#jokeText.fading {
  opacity: 0;
}

.comic-button {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  letter-spacing: 1px;
  background: #2b6bff;
  color: #fff;
  border: 3px solid #000;
  padding: 14px 36px;
  border-radius: 8px;
  min-height: 48px;
  box-shadow: 4px 4px 0 #000;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
}

.comic-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.comic-button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.comic-button:disabled {
  opacity: .6;
  transform: none;
  box-shadow: 4px 4px 0 #000;
  cursor: default;
}

@media (max-width: 380px) {
  .comic-bubble {
    padding: 22px 18px;
  }
  .comic-button {
    width: 100%;
    padding: 13px 0;
  }
}

@media (min-width: 700px) {
  .card {
    max-width: 560px;
  }
  .comic-bubble {
    max-width: 460px;
    padding: 34px 30px;
  }
}
