:root {
  color-scheme: dark;
  font: 100%/1.4 system-ui, sans-serif;
  color: #fff6dc;
  background: #152d28;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: linear-gradient(145deg, #2f5347 0%, #1f3f35 45%, #122d28 100%);
}
.gate {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: .92fr 1fr;
  overflow: hidden;
  border: 2px solid #798a68;
  border-radius: 8px;
  background: #233f34;
  box-shadow: 0 5px 0 #10251f, 0 16px 42px #0c241c64;
}
.valley {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  background: linear-gradient(#79b3ba, #b3d8bb 61%, #dbe4ad);
}
.valley > div, .frame > div, .bell > span { position: absolute; }
.cloud {
  width: 20%;
  height: 6%;
  background: #e6edd1;
  clip-path: polygon(0 58%,20% 58%,20% 24%,44% 24%,44% 0,74% 0,74% 38%,100% 38%,100% 100%,0 100%);
}
.cloud-left { top: 16%; left: 3%; }
.cloud-right { top: 28%; right: 4%; transform: scale(.75); }
.ridge {
  inset: 31% -6% 8%;
  background: linear-gradient(115deg, #80aca2, #64988e);
  clip-path: polygon(0 46%,9% 46%,9% 32%,17% 32%,17% 22%,28% 22%,28% 12%,38% 12%,38% 28%,46% 28%,46% 42%,55% 42%,55% 32%,64% 32%,64% 22%,74% 22%,74% 31%,84% 31%,84% 48%,100% 48%,100% 100%,0 100%);
}
.woods {
  inset: 48% -4% 0;
  background: linear-gradient(125deg, #508b66 0%, #58916b 52%, #367758 52%);
  clip-path: polygon(0 20%,8% 20%,8% 9%,17% 9%,17% 22%,23% 22%,23% 34%,34% 34%,34% 48%,44% 48%,44% 54%,58% 54%,58% 39%,66% 39%,66% 24%,74% 24%,74% 14%,83% 14%,83% 28%,93% 28%,93% 20%,100% 20%,100% 100%,0 100%);
}
.meadow {
  inset: 73% -2% 0;
  background: linear-gradient(#8eb76c 14%, #7ba865 14% 57%, #699c5f 57%);
  clip-path: polygon(0 0,15% 0,15% 13%,29% 13%,29% 24%,53% 24%,53% 19%,68% 19%,68% 13%,80% 13%,80% 3%,100% 3%,100% 100%,0 100%);
}
.frame { width: 65%; height: 64%; max-height: 250px; left: 17.5%; bottom: 9%; }
.post { width: 10%; top: 7%; bottom: 0; background: linear-gradient(90deg,#835339 0 30%,#6a472f 30% 77%,#563c2b 77%); }
.post-left { left: 6%; }
.post-right { right: 6%; }
.brace { width: 27%; height: 23%; top: 7%; background: #805738; }
.brace-left { left: 13%; clip-path: polygon(0 0,100% 0,0 100%); }
.brace-right { right: 13%; clip-path: polygon(0 0,100% 0,100% 100%); }
.crossbeam { top: 0; width: 100%; height: 12%; background: linear-gradient(#c08a52 0 26%,#a16d43 26% 78%,#735237 78%); }
.rope { top: 10%; left: 48%; width: 4%; height: 19%; background: repeating-linear-gradient(160deg,#755634 0 4px,#b8985e 4px 7px); }
.bell { width: 50%; height: 45%; top: 26%; left: 25%; }
.clapper { bottom: 0; left: 39%; width: 22%; height: 18%; background: linear-gradient(90deg,#aa702c 50%,#805027 50%); }
.brass {
  inset: 0 0 8%;
  background: linear-gradient(90deg,#e6a33c 0 18%,#ffe399 18% 31%,#ffd05d 31% 62%,#efb044 62% 78%,#d08b38 78%);
  clip-path: polygon(36% 0,64% 0,64% 9%,75% 9%,75% 17%,83% 17%,83% 56%,88% 56%,88% 69%,94% 69%,94% 78%,100% 78%,100% 96%,91% 96%,91% 100%,9% 100%,9% 96%,0 96%,0 78%,6% 78%,6% 69%,12% 69%,12% 56%,17% 56%,17% 17%,25% 17%,25% 9%,36% 9%);
}
.brass::after { content: ""; position: absolute; inset: 83% 0 0; background: linear-gradient(#ffdd80 0 30%,#d4933c 30%); }
.earth { bottom: 0; left: 0; right: 0; height: 11%; background: linear-gradient(#abc572 0 20%,#6c934d 20% 36%,#986c46 36% 52%,#79543e 52%); }
.entry { padding: clamp(27px, 5.5vw, 58px); align-self: center; }
.brand { margin: 0 0 13px; color: #d8e2c7; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand span, h1 em { color: #ffd067; }
h1 { margin: 0; font-size: clamp(2.45rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.063em; line-height: .98; }
h1 em { font-style: normal; }
.intro { margin: 18px 0 24px; color: #e2e8d6; }
label { display: block; font-weight: 700; margin: 0 0 6px; }
input, button { width: 100%; min-height: 48px; font: inherit; border-radius: 4px; }
input { border: 2px solid #849a83; padding: 9px 12px; background: #162f28; color: #fff9e7; }
button { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 9px 16px; margin-top: 16px; cursor: pointer; background: #ffca49; font-weight: 750; color: #263426; border: 2px solid #ffdd7f; box-shadow: 0 4px 0 #a77731; }
button:hover { background: #ffd971; }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #a77731; }
:focus-visible { outline: 3px solid #fff8de; outline-offset: 3px; }
.play-icon { width: 12px; height: 14px; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.error { margin: 9px 0 0; color: #ffbda9; font-size: .93rem; }
.error:empty { display: none; }
@media (max-width: 580px) {
  body { padding: 14px; }
  .gate { max-width: 390px; grid-template-columns: 1fr; }
  .valley { height: clamp(104px, 25svh, 162px); min-height: 0; }
  .frame { width: 40%; height: 80%; left: 30%; bottom: 8%; }
  .entry { padding: 24px; }
  .intro { margin: 12px 0 17px; }
}
@media (orientation: landscape) and (max-height: 480px) and (min-width: 581px) {
  body { padding: 10px; }
  .entry { padding: 17px 26px 22px; }
  .brand { margin-bottom: 6px; }
  h1 { font-size: 2.15rem; }
  .intro { margin: 9px 0 12px; }
  button { margin-top: 10px; }
}
@media (forced-colors: active) {
  .valley { display: none; }
  .gate { grid-template-columns: 1fr; }
}
