/* Five-world homepage layout and Academy entry. */

.hero {
  min-height: 650px;
  height: 86vh;
  max-height: 760px;
  padding-top: 105px;
  padding-bottom: 58px;
}

.worlds.section {
  padding-top: 104px;
  padding-bottom: 110px;
}

.worlds .section-intro {
  margin-bottom: 36px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  align-items: stretch;
}

.world-card {
  min-width: 0;
  min-height: 528px;
  padding: 15px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.world-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 255, 50, 0.72);
  box-shadow: 0 20px 50px rgba(2, 8, 18, 0.28);
}

.card-top {
  min-height: 27px;
  font-size: 8px;
}

.status {
  padding: 4px 6px;
  font-size: 7px;
}

.chess-art,
.tank-art,
.guitar-art,
.trade-art {
  height: 132px;
}

.checker {
  width: 115px;
  height: 115px;
  top: 15px;
  background-size: 24px 24px;
}

.knight {
  top: 8px;
  left: calc(50% - 38px);
  font-size: 106px;
}

.tank-icon {
  top: 33px;
  left: 31%;
  font-size: 66px;
}

.target {
  width: 62px;
  height: 62px;
}

.t1 {
  top: 8px;
}

.t2 {
  width: 34px;
  height: 34px;
}

.projectile {
  width: 75px;
  top: 58px;
}

.wave {
  width: 195px;
  height: 120px;
  top: 9px;
}

.w2 {
  top: 31px;
}

.pick {
  top: 10px;
  font-size: 95px;
}

.trade-ring {
  width: 96px;
  height: 96px;
  top: 15px;
}

.ring-c {
  width: 49px;
  height: 49px;
  top: -2px;
}

.trade-arrow {
  font-size: 40px;
}

.a1 {
  top: 24px;
}

.card-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.06;
}

.card-copy p:last-child {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-kicker {
  margin-bottom: 9px;
  font-size: 9px;
}

.card-link {
  min-height: 43px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(200, 255, 50, 0);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  background: #e0ff86;
  box-shadow: 0 0 24px rgba(200, 255, 50, 0.25);
  transform: translateY(-1px);
}

.card-link span {
  margin-left: auto;
  color: var(--ink);
  font-size: 15px;
}

.academy-card {
  grid-column: auto;
  min-height: 528px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 38%, #77a8ff24, transparent 35%),
    radial-gradient(circle at 83% 18%, #c8ff3217, transparent 27%),
    #101d31;
}

.academy-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.academy-art {
  min-height: 132px;
}

.academy-glow {
  width: 190px;
  height: 190px;
  left: 3%;
  top: -54px;
}

.academy-formula-card {
  padding: 8px 11px;
  font-size: 13px;
}

.formula-a {
  left: 1%;
  top: 27px;
}

.formula-b {
  left: 34%;
  top: 72px;
  font-size: 12px;
}

.formula-c {
  left: 12%;
  bottom: 3px;
  font-size: 9px;
}

.academy-orbit {
  width: 140px;
  height: 140px;
  right: -5%;
  top: 13px;
}

.academy-orbit.orbit-b {
  width: 105px;
  height: 105px;
  right: 1%;
  top: 34px;
}

.academy-copy {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.academy-copy h3 {
  margin-bottom: 11px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.06;
}

.academy-copy > p:not(.card-kicker) {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 10px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.academy-copy .card-link {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1180px) {
  .world-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 28vw);
    gap: 10px;
    padding-bottom: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 255, 50, 0.5) rgba(255, 255, 255, 0.06);
  }

  .world-card,
  .academy-card {
    min-height: 510px;
    scroll-snap-align: start;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: 640px;
    height: auto;
    max-height: none;
    padding-top: 128px;
    padding-bottom: 72px;
  }

  .worlds.section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .world-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
  }

  .world-card,
  .academy-card {
    min-height: 510px;
  }

  .academy-body {
    display: flex;
  }

  .academy-art {
    min-height: 132px;
  }

  .academy-copy h3 {
    font-size: 28px;
  }
}
