/* Layout fixes for the crepe.life clone */

/* Original logo.png 404s; logo.jpg is a 32px favicon that gets misplaced (desktop top-right / mobile hero) */
.p-index__visual__logo,
.p-index__visual__logo img {
  display: none !important;
}

@media screen and (max-width: 768px) {
  /* CREPE title: keep brand readable without overlapping the character as hard */
  .p-index__visual__title {
    margin-top: -28vw;
    width: 86vw;
    text-align: center;
  }

  .logoo {
    font-size: 1.45em !important;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .p-index__visualLink.crepe-hero-ctas,
  .crepe-hero-ctas {
    display: flex !important;
    flex-direction: column;
    width: 88vw !important;
    margin: 6vw auto 4vw !important;
    gap: 10px;
  }

  .crepe-hero-ctas .crepe-cta,
  .crepe-hero-ctas .connect-button.crepe-cta {
    width: 100%;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
  }

  .p-index__visualLink a:after,
  .crepe-hero-ctas a:after {
    content: none !important;
    display: none !important;
  }

  .crepe-verify {
    width: 88vw;
    margin: 0 auto 5vw;
    padding: 10px;
  }

  .crepe-verify__auth {
    flex-wrap: wrap;
    gap: 10px;
  }

  .crepe-verify__auth-cta {
    width: 100%;
    text-align: center;
  }

  .crepe-verify__row {
    gap: 8px;
  }

  .crepe-verify__ca {
    width: 100%;
    justify-content: center;
  }

  /* Tokenomics / contract block */
  .p-index__tokenomics {
    width: 88vw;
    margin: 0 auto 6vw;
    text-align: center;
    font-size: 1em;
    line-height: 1.55;
    word-wrap: break-word;
  }

  .p-index__tokenomics__ca {
    margin: 0.9em auto;
    padding: 0.65em 0.75em;
    max-width: 100%;
    font-size: 0.78em;
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
  }

  .p-index__tokenomics__stats {
    margin: 0;
  }

  /* Animated section titles were clipped to one line */
  .p-index__title {
    height: auto;
    min-height: 1.5em;
    line-height: 1.25;
    overflow: visible;
  }

  .p-index__title span {
    position: static;
    display: block;
  }

  /* Featured partners: keep a balanced two-up row */
  .p-index__cast__main {
    align-items: center;
    justify-content: center;
    gap: 4vw;
    flex-wrap: wrap;
  }

  .p-index__cast__main__item {
    width: 40vw;
    margin-bottom: 0;
  }

  .p-index__cast__main__item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 22vw;
    object-fit: contain;
    margin: 0 auto;
  }

  .p-index__cast__list__item img {
    width: 100%;
    height: auto;
    max-height: 28vw;
    object-fit: contain;
  }

  /* How-to-buy: give copy room inside the dotted frame */
  .p-index__music__inner {
    padding-left: 4.5vw;
    padding-right: 4.5vw;
  }

  .p-index__music__comment {
    font-size: 12px;
    line-height: 1.55;
    word-break: break-word;
  }

  .p-index__music__comment p {
    margin: 0;
  }

  /* FAQ questions wrap more cleanly */
  .p-index__staff__item__name {
    font-size: 18px;
    line-height: 1.35;
    padding: 0 2vw;
  }

  /* Keep fixed menu above content, not colliding with section tops */
  .menu {
    top: 16px;
    right: 16px;
  }
}

@media screen and (min-width: 769px) {
  .p-index__visualLink.crepe-hero-ctas {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
  }

  .p-index__visualLink a {
    margin: 0;
  }

  .p-index__visualLink a:after {
    content: none !important;
    display: none !important;
  }

  .p-index__tokenomics {
    margin: 24px auto 40px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
  }

  .p-index__tokenomics__ca {
    margin: 12px auto;
    word-break: break-all;
  }
}
