@media (max-width: 1100px) {
  .app-shell {
    width: min(100% - 24px, 920px);
  }

  .play-layout {
    grid-template-columns: minmax(470px, 1fr) 320px;
    gap: 12px;
  }

  .project-card {
    min-height: 117px;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .project-card .building-art {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 20px, 700px);
    padding-top: 12px;
  }

  .start-screen {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 64px 12px 28px;
    text-align: center;
  }

  .start-copy,
  .hero-island {
    min-width: 0;
    width: 100%;
  }

  .start-tagline {
    margin-inline: auto;
  }

  .start-actions {
    justify-content: center;
  }

  .start-copy > small {
    text-align: center;
  }

  .hero-island {
    min-height: 410px;
  }

  .hero-island__top {
    width: min(520px, 88vw);
  }

  .play-layout {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .island-stage {
    height: min(590px, 68vh);
    min-height: 440px;
  }

  .island-top {
    width: min(570px, 86vw);
  }

  .build-dock {
    padding: 13px 14px 17px;
  }

  .dock-heading {
    margin-bottom: 7px;
  }

  .project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .project-card {
    min-height: 151px;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0;
    padding: 5px 7px 9px;
    text-align: center;
  }

  .project-card .building-art {
    width: 78px;
    height: 78px;
  }

  .project-info {
    width: 100%;
    gap: 4px;
  }

  .project-title {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .project-title strong {
    font-size: 0.88rem;
    text-align: left;
  }

  .project-cost {
    padding: 3px 5px;
    font-size: 0.57rem;
  }

  .project-stats {
    justify-content: center;
  }

  .stat-dot {
    min-width: 29px;
    padding: 3px 4px;
    font-size: 0.51rem;
  }

  .rest-button {
    right: 10px;
    bottom: -23px;
    width: 59px;
    height: 59px;
  }

  .goal-dock {
    margin-top: 27px;
  }
}

@media (max-width: 600px) {
  .home-link {
    top: 8px;
    left: 8px;
    width: 44px;
    height: 44px;
  }

  .app-shell {
    width: calc(100% - 12px);
    padding: 7px 0 20px;
  }

  .start-screen {
    padding: 56px 5px 20px;
  }

  .start-copy > p {
    margin-top: 24px;
  }

  h1 {
    font-size: clamp(4.8rem, 25vw, 7rem);
  }

  .start-tagline {
    margin-top: 19px;
    font-size: 1.25rem;
  }

  .start-actions {
    margin-top: 21px;
  }

  .play-button {
    min-width: 165px;
    min-height: 54px;
  }

  .start-actions .play-button + .play-button {
    min-width: 115px;
  }

  .hero-island {
    min-height: 330px;
  }

  .hero-island__top {
    width: min(375px, 92vw);
  }

  .hero-island .building-art {
    width: 62px;
    height: 62px;
  }

  .hero-island__base {
    top: 52%;
  }

  .topbar {
    min-height: 46px;
    margin-left: 49px;
  }

  .game-brand > span {
    display: none;
  }

  .game-brand strong {
    font-size: 0.94rem;
  }

  .round-button {
    width: 42px;
    height: 42px;
  }

  .hud {
    width: 100%;
    justify-content: center;
    gap: 3px;
    margin-block: 5px;
    padding: 4px;
    border-radius: 16px;
  }

  .hud-item {
    min-width: 0;
    flex: 1;
    gap: 4px;
    padding: 4px;
  }

  .hud-item span {
    width: 22px;
    height: 22px;
    font-size: 0.61rem;
  }

  .hud-item strong {
    font-size: 0.9rem;
  }

  .island-stage {
    height: min(390px, 48vh);
    min-height: 335px;
  }

  .island-top {
    width: min(370px, 94vw);
    border-width: 3px;
  }

  .district-board {
    width: 87%;
    gap: 3px;
    padding: 5%;
  }

  .plot {
    border-radius: 28%;
  }

  .plot .building-art {
    width: 100%;
    height: 100%;
  }

  .plot__bonus {
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    border-width: 1.5px;
    font-size: 0.43rem;
  }

  .islanders i {
    width: 17px;
    height: 17px;
    border-width: 1.5px;
    font-size: 0.28rem;
  }

  .action-bubble {
    bottom: 0;
    min-height: 33px;
    padding-right: 10px;
    font-size: 0.57rem;
  }

  .action-bubble span {
    width: 23px;
    height: 23px;
  }

  .build-dock {
    padding: 9px 9px 13px;
    border-radius: 21px;
  }

  .dock-heading {
    min-height: 28px;
    margin: 0 2px 6px;
  }

  .dock-heading h2 {
    font-size: 1.25rem;
  }

  .policy-charm {
    width: 24px;
    height: 24px;
    font-size: 0.53rem;
  }

  .project-card {
    min-height: 128px;
    border-radius: 16px;
  }

  .project-card .building-art {
    width: 68px;
    height: 68px;
  }

  .project-title strong {
    font-size: 0.72rem;
  }

  .project-stats .stat-dot:nth-child(n + 4) {
    display: none;
  }

  .rest-button {
    right: 4px;
    width: 52px;
    height: 52px;
    border-width: 2px;
  }

  .goal-dock {
    width: calc(100% - 48px);
    gap: 4px;
  }

  .goal {
    grid-template-columns: 25px 1fr;
    gap: 5px;
    padding: 4px 5px;
  }

  .goal > span {
    width: 24px;
    height: 24px;
  }

  .goal > strong {
    display: none;
  }

  .choice-dialog,
  .result-dialog {
    margin-inline: 7px;
    padding: 28px 19px 22px;
    border-radius: 24px;
  }
}

@media (max-width: 360px) {
  .game-brand strong {
    display: none;
  }

  .project-list {
    gap: 4px;
  }

  .project-card {
    min-height: 116px;
    padding-inline: 4px;
  }

  .project-card .building-art {
    width: 60px;
    height: 60px;
  }

  .project-title {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-title strong {
    text-align: center;
  }

  .project-cost {
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .stat-dot {
    min-width: 25px;
    font-size: 0.47rem;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .app-shell {
    padding-block: 10px 18px;
  }

  .hud {
    margin-block: 3px 5px;
  }

  .island-stage {
    height: calc(100vh - 155px);
    min-height: 520px;
  }

  .island-top {
    width: min(575px, calc(100vh - 190px), 92%);
  }

  .project-card {
    min-height: 112px;
  }

  .project-card .building-art {
    width: 86px;
    height: 86px;
  }

  .goal-dock {
    position: absolute;
    left: 50%;
    bottom: 9px;
    translate: -50% 0;
  }
}
