* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.ps-kingdom-splash {
  background: #163846;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.ps-splash-hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.ps-splash-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 31, 44, 0.82) 0%, rgba(15, 31, 44, 0.45) 48%, rgba(15, 31, 44, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 31, 44, 0.25), rgba(15, 31, 44, 0.55));
  content: "";
  inset: 0;
  position: absolute;
}

.ps-kingdom-splash-island .ps-splash-hero {
  background-image: url("/assets/img/kingdom/island-background-v2.png");
}

.ps-kingdom-splash-quest .ps-splash-hero {
  background-image: url("/assets/img/kingdom/quest-map-background-v1.png");
}

.ps-splash-brand,
.ps-splash-copy,
.ps-splash-island-preview,
.ps-splash-chest-row,
.ps-splash-strip {
  position: relative;
  z-index: 2;
}

.ps-splash-brand {
  align-items: center;
  display: inline-flex;
  width: fit-content;
}

.ps-splash-brand img {
  background: rgba(36, 51, 68, 0.94);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  height: 42px;
  padding: 7px 10px;
}

.ps-splash-copy {
  max-width: 680px;
  padding: 7vh 0 10vh;
}

.ps-splash-kicker {
  color: #facc15;
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ps-splash-copy h1 {
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: 760px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.ps-splash-copy p {
  color: #e8f0f2;
  font-size: 21px;
  line-height: 1.38;
  margin: 18px 0 26px;
  max-width: 620px;
}

.ps-splash-cta {
  align-items: center;
  background: #facc15;
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(105, 79, 13, 0.28);
  color: #243344;
  display: inline-flex;
  font-size: 21px;
  font-weight: 900;
  gap: 10px;
  padding: 15px 22px;
  text-decoration: none;
}

.ps-splash-cta:hover,
.ps-splash-cta:focus {
  background: #ffe57a;
  color: #243344;
  text-decoration: none;
}

.ps-splash-island-preview {
  bottom: 128px;
  height: 340px;
  pointer-events: none;
  position: absolute;
  right: 5%;
  width: min(46vw, 620px);
}

.ps-splash-building {
  filter: drop-shadow(0 18px 14px rgba(16, 36, 47, 0.3));
  object-fit: contain;
  position: absolute;
}

.ps-splash-building-hut {
  bottom: 20px;
  left: 4%;
  width: 168px;
}

.ps-splash-building-wheel {
  bottom: 84px;
  left: 36%;
  width: 152px;
}

.ps-splash-building-vault {
  bottom: 34px;
  right: 4%;
  width: 162px;
}

.ps-splash-building-tower {
  right: 24%;
  top: 0;
  width: 172px;
}

.ps-splash-chest-row {
  align-items: stretch;
  bottom: 124px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  position: absolute;
  right: 5%;
  width: 42vw;
}

.ps-splash-chest-row div {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  color: #243344;
  padding: 12px;
  text-align: center;
}

.ps-splash-chest-row img {
  height: 68px;
  object-fit: contain;
  width: 84px;
}

.ps-splash-chest-row strong,
.ps-splash-chest-row span {
  display: block;
}

.ps-splash-chest-row strong {
  font-size: 15px;
  font-weight: 900;
  margin-top: 7px;
}

.ps-splash-chest-row span {
  color: #187467;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
  text-transform: uppercase;
}

.ps-splash-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
}

.ps-splash-strip div {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #243344;
  min-height: 84px;
  padding: 14px 16px;
}

.ps-splash-strip strong,
.ps-splash-strip span {
  display: block;
}

.ps-splash-strip strong {
  color: #187467;
  font-size: 22px;
  font-weight: 900;
}

.ps-splash-strip span {
  color: #4b5b6b;
  font-size: 14px;
  font-weight: 800;
  margin-top: 5px;
}

@media (max-width: 900px) {
  .ps-splash-hero {
    padding: 16px;
  }

  .ps-splash-copy {
    padding: 7vh 0 4vh;
  }

  .ps-splash-copy h1 {
    font-size: 42px;
  }

  .ps-splash-copy p {
    font-size: 18px;
  }

  .ps-splash-island-preview,
  .ps-splash-chest-row {
    bottom: auto;
    margin: 0 0 18px;
    max-width: none;
    position: relative;
    right: auto;
    width: 100%;
  }

  .ps-splash-island-preview {
    height: 230px;
  }

  .ps-splash-building-hut {
    width: 128px;
  }

  .ps-splash-building-wheel {
    width: 118px;
  }

  .ps-splash-building-vault {
    width: 130px;
  }

  .ps-splash-building-tower {
    width: 132px;
  }
}

@media (max-width: 640px) {
  .ps-splash-copy h1 {
    font-size: 34px;
  }

  .ps-splash-copy p,
  .ps-splash-cta {
    font-size: 16px;
  }

  .ps-splash-strip,
  .ps-splash-chest-row {
    grid-template-columns: 1fr;
  }

  .ps-splash-island-preview {
    display: none;
  }
}
