* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #151820;
  color: #fff;
  font-family: system-ui, sans-serif;
}

.scene {
  position: relative;
  width: min(100%, calc(100vh * 800 / 791));
  width: min(100%, calc(100svh * 800 / 791));
  container-type: inline-size;
}

.art {
  display: block;
  width: 100%;
  height: auto;
}

.scene h1 {
  position: absolute;
  left: 50%;
  top: 86%;
  transform: translate(-50%, -50%);
  margin: 0;
  white-space: nowrap;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(20px, 5.5cqw, 72px);
  font-weight: 900;
  line-height: 1.05;
  paint-order: stroke fill;
  -webkit-text-stroke: .11em #17141a;
  text-shadow: 0 .07em #17141a;
}

.castle {
  position: absolute;
  top: 8%;
  width: 36%;
  height: 23%;
  display: flex;
  align-items: end;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sunny {
  left: 6.5%;
  --ink: #392612;
  --face: #ffe294;
  --rim: #fff1bd;
}

.stormy {
  left: 58%;
  --ink: #f6e9ff;
  --face: #382c49;
  --rim: #c5a4e9;
}

.castle span {
  padding: .24em .8em .3em;
  border: 2px solid #201b22;
  border-radius: .42em;
  box-shadow: inset 0 0 0 2px var(--rim), 0 .14em 0 #201b22;
  background: var(--face);
  color: var(--ink);
  font-size: clamp(16px, 3.6cqw, 48px);
  font-weight: 800;
  line-height: 1.2;
}

.castle:hover span,
.castle:focus-visible span {
  transform: translateY(-.1em);
  box-shadow: inset 0 0 0 2px var(--rim), 0 .24em 0 #201b22;
}

.castle:focus-visible {
  outline: none;
}

.castle:focus-visible span,
.back:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 8px #201b22;
}

.placeholder {
  text-align: center;
  color: #f6e9ff;
}

.placeholder h1 {
  margin: 0 0 .65em;
  font-size: clamp(2rem, 6vw, 4rem);
}

.back {
  display: inline-block;
  padding: .5em;
  color: #d9c2f1;
  text-underline-offset: .25em;
}
