/* Device-specific layout refinements layered on top of the base design. */
.home-copy h1 {
  font-size: 132px;
}

.screen-heading h2,
.result-heading h2 {
  letter-spacing: 0;
}

.brand,
.back-button,
.ghost-button {
  min-height: 44px;
  align-items: center;
}

.back-button {
  padding-inline: 10px;
}

.ghost-button {
  display: inline-flex;
  padding-inline: 4px;
}

@media (min-width: 961px) {
  .home-art {
    top: 50%;
    transform: translateY(-45%);
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .home-copy h1 {
    font-size: 108px;
  }

  .home-art {
    right: 0;
    width: 450px;
    height: 450px;
  }

  .orbit--outer {
    width: 370px;
    height: 370px;
  }

  .orbit--inner {
    width: 255px;
    height: 255px;
  }

  .home-badge {
    top: 28px;
    right: 18px;
  }

  .floating-chip--one {
    left: 0;
    top: 145px;
  }
}

@media (max-width: 960px) {
  .screen--home {
    padding-top: 18px;
  }

  .home-copy {
    width: 100%;
    max-width: 620px;
    padding-top: 30px;
  }

  .home-copy h1 {
    font-size: 100px;
  }

  .home-art {
    position: relative;
    top: auto;
    right: auto;
    width: 500px;
    height: 350px;
    max-width: 100%;
    margin: 18px auto 0;
    transform: none;
  }

  .orbit--outer {
    width: 310px;
    height: 310px;
  }

  .orbit--inner {
    width: 215px;
    height: 215px;
  }

  .word-cloud {
    width: 190px;
    height: 190px;
  }

  .word-cloud::after {
    width: 132px;
    height: 132px;
  }

  .cloud-word--a {
    font-size: 28px;
  }

  .home-badge {
    top: 4px;
    right: 11%;
  }

  .floating-chip--one {
    left: 9%;
    top: 92px;
  }

  .floating-chip--two {
    right: 6%;
    bottom: 28px;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .app-shell {
    width: min(100% - 56px, 860px);
  }

  .screen {
    padding-top: 28px;
  }

  .home-copy {
    padding-top: 26px;
  }

  .home-copy .lead {
    margin-bottom: 28px;
  }

  .level-grid {
    gap: 13px;
  }

  .game-board {
    margin-top: 38px;
  }
}

@media (max-width: 760px) {
  .home-copy h1 {
    font-size: 78px;
    line-height: 0.9;
  }

  .screen-heading h2,
  .result-heading h2 {
    font-size: 34px;
  }

  .input-row input {
    min-height: 49px;
    font-size: 16px;
  }

  .primary-button,
  .level-card {
    touch-action: manipulation;
  }
}

@media (max-width: 390px) {
  .app-shell {
    width: calc(100% - 28px);
  }

  .home-copy {
    padding-top: 25px;
  }

  .home-copy h1 {
    font-size: 70px;
  }

  .lead {
    margin-bottom: 28px;
  }

  .home-art {
    height: 280px;
  }

  .orbit--outer {
    width: 250px;
    height: 250px;
  }

  .mystery-card {
    height: 195px;
  }

  .game-meta {
    gap: 8px;
  }

  .difficulty-pill {
    padding-inline: 10px;
  }

  .game-footer {
    align-items: flex-start;
    gap: 10px;
  }
}

@media (min-width: 961px) and (max-height: 700px) {
  .screen {
    padding-top: 22px;
  }

  .home-copy {
    padding-top: 24px;
  }

  .home-copy h1 {
    margin-bottom: 22px;
  }

  .home-copy .lead {
    margin-bottom: 24px;
  }

  .home-art {
    width: 420px;
    height: 420px;
  }
}

@media (hover: none) {
  .primary-button:hover,
  .level-card:hover {
    transform: none;
  }
}
