/*
 * Responsive layer for the React migration. It intentionally applies only
 * below the original desktop threshold; desktop continues to use style.css
 * without overrides.
 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.sakura,
.sakura-falling {
  pointer-events: none;
}

@media (max-width: 900px) {
  .wrap {
    width: 100%;
  }

  .title {
    margin-bottom: 1.75rem;
    padding-inline: 1rem;
  }

  .title h1 {
    font-size: clamp(2.4rem, 11.5vw, 3.75rem);
    line-height: 1;
    margin-block: 1.25rem;
    overflow-wrap: anywhere;
  }

  .title h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .title h3 {
    font-size: clamp(0.9rem, 3.8vw, 1.5rem);
    letter-spacing: clamp(0.16rem, 1vw, 0.3125rem);
    line-height: 1.25;
    margin-inline: auto;
    max-width: 22rem;
  }

  .title p {
    font-size: clamp(0.72rem, 3.1vw, 1rem);
    letter-spacing: clamp(0.06rem, 0.65vw, 0.1875rem);
    line-height: 1.45;
    margin: 1.4rem auto 1rem;
    max-width: 26rem;
  }

  #time {
    box-sizing: border-box;
    line-height: 1.4;
    margin-inline: 1rem;
    max-width: calc(100% - 2rem);
    padding: 1rem;
    text-align: center;
  }

  .dance-med {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.15;
    margin: 1rem;
  }

  .actions {
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: 1rem;
    max-width: calc(100% - 2rem);
  }

  .venue {
    margin-right: 0;
  }

  .footer {
    box-sizing: border-box;
    line-height: 1.45;
    margin: 1.5rem 1rem;
    max-width: calc(100% - 2rem);
  }

  .happiness {
    font-size: clamp(1.4rem, 6vw, 1.5rem);
    line-height: 1.3;
    margin: 0 1rem 1.5rem;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  .top-left-decoration,
  .top-right-decoration {
    max-width: 30%;
  }

  .actions {
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .actions > a {
    max-width: 18rem;
    width: 100%;
  }

  .venue {
    font-size: 0.72rem;
    padding: 0.65rem;
  }
}
