* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #061a29;
  color: #ecf7ff;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
main {
  width: min(1040px, 100%);
  margin: auto;
  padding: 82px 28px 34px;
}
header {
  padding-right: 110px;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 12px 0;
}
p {
  color: #a9c0d0;
  margin: 12px 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: #64dedc;
}
.info {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 12px;
  font-size: 13px;
  color: #7dedc0;
}
#gate-state[data-open='false'] {
  color: #ffbf94;
}
#garden {
  height: 380px;
  border: 1px solid #356371;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, #376f65 0%, transparent 35%),
    linear-gradient(145deg, #184442, #102d39);
}
#garden:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#80c6a008 1px, transparent 1px),
    linear-gradient(90deg, #80c6a008 1px, transparent 1px);
  background-size: 32px 32px;
}
.path {
  position: absolute;
  background: #c7c39930;
  width: 65%;
  height: 18%;
  left: 18%;
  top: 45%;
  transform: rotate(-13deg);
  border-radius: 50%;
}
.pond {
  position: absolute;
  left: 9%;
  top: 17%;
  width: 22%;
  height: 30%;
  border-radius: 50%;
  border: 8px solid #c2d7b52b;
  background: radial-gradient(ellipse, #279ca4, #126372);
  box-shadow: 0 0 0 6px #091f291f;
}
.tree {
  position: absolute;
  font-size: 100px;
  color: #56b180;
  filter: drop-shadow(5px 14px 0 #05272755);
}
.t1 {
  left: 38%;
  top: 3%;
}
.t2 {
  left: 15%;
  bottom: 0;
}
.portal-art {
  position: absolute;
  right: 10%;
  top: 16%;
  width: 115px;
  height: 148px;
  border: 5px solid #bba6ff;
  border-radius: 60px 60px 16px 16px;
  background: linear-gradient(150deg, #401d73, #446be1);
  box-shadow: 0 0 38px #ac64ef99;
  display: grid;
  place-content: center;
  text-align: center;
}
.portal-art span {
  font-size: 40px;
}
.portal-art small {
  font-size: 10px;
  letter-spacing: 3px;
}
.player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  transition:
    left 0.1s linear,
    top 0.1s linear;
  z-index: 2;
}
.player span {
  font-size: 42px;
  text-shadow: 0 7px 0 #091d2980;
}
.player small {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background: #06202beb;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player.me small {
  outline: 1px solid #a4edff;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
button {
  border: 1px solid #7079cb;
  border-radius: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #595bcc, #8d52c9);
  color: white;
  font: 600 15px system-ui;
  cursor: pointer;
  touch-action: none;
}
button:hover {
  filter: brightness(1.15);
}
button:focus-visible {
  outline: 3px solid #66e5ff;
  outline-offset: 3px;
}
.secondary,
.pad button {
  background: #143447;
  border-color: #376171;
}
.pad {
  display: flex;
  gap: 5px;
  margin-right: auto;
}
.pad button {
  padding: 10px 15px;
}
.hint {
  font-size: 13px;
  max-width: 720px;
}
#error {
  color: #ffd3b7;
}
@media (max-width: 650px) {
  main {
    padding: 92px 16px 100px;
  }
  header {
    padding-right: 95px;
  }
  #garden {
    height: 330px;
  }
  .portal-art {
    width: 80px;
    height: 110px;
    right: 9%;
  }
  .portal-art span {
    font-size: 30px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .pad {
    width: 100%;
    justify-content: center;
  }
  .pad button {
    width: 54px;
    height: 48px;
  }
  .actions > button {
    flex: 1;
    padding: 12px 8px;
  }
  .tree {
    font-size: 70px;
  }
  .player span {
    font-size: 32px;
  }
  h1 {
    font-size: 32px;
  }
}
