@font-face {
  font-family: Pixel;
  src: url("/assets/Jersey25-Regular.ttf");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/Inter-Regular.woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #231d27;
  --cream: #f5e4c6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 36%, #53395030, transparent 62%), var(--bg);
  color: var(--cream);
  font:
    14px/1.5 Inter,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px solid #e4c49a;
  outline-offset: 5px;
}
a:hover {
  color: #fff5e5;
}
[hidden] {
  display: none !important;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 24px;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}
.invitation {
  text-align: center;
  position: relative;
  z-index: 1;
}
h1 {
  margin: 0;
  font-size: 0;
}
.logo {
  display: block;
  width: 260px;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}
.status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #c3b1c6;
  font:
    22px/1 Pixel,
    serif;
  margin: 12px 0 23px;
}
.status > span {
  width: 5px;
  height: 5px;
  background: #c5a56d;
  box-shadow: 0 0 0 3px #c5a56d15;
}
.actions {
  width: 290px;
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 52px;
  background: #ecd5aa;
  border: 1px solid #d4ae81;
  border-bottom: 4px solid #997250;
  border-radius: 3px;
  color: #483233;
  font: 27px/1.1 Pixel;
  padding: 10px 20px;
  box-shadow: 0 3px 0 #160f1b3d;
}
.discord > span {
  font: 17px Inter;
}
.discord:hover {
  background: #f6e2bc;
  color: #483233;
}
.discord:active {
  transform: translateY(1px);
}
.inn {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #b992633c;
  border-radius: 3px;
  color: #e0c5a0;
  text-align: left;
  background: #b4864f08;
  font: 21px/1.15 Pixel;
  min-height: 65px;
}
.inn:hover {
  background: #c1976314;
  border-color: #b9926370;
}
.inn small {
  display: block;
  font: 10px/1.4 Inter;
  margin-top: 4px;
  color: #b7a5b4;
}
.lantern {
  font: 20px Pixel;
  color: #d8b876;
}
.arrow {
  font: 16px Inter;
  margin-left: auto;
}
.wood-frame {
  position: relative;
  max-width: 100%;
  width: 590px;
  border: 10px solid transparent;
  border-image: url("/assets/basic_wooden_frame.png") 10 / 10px / 0 stretch;
  padding: 30px 70px 80px;
  background:
    radial-gradient(ellipse at 50% 30%, #59405530, transparent 80%), #29212d;
  box-shadow: 0 8px 0 #110d161f;
  isolation: isolate;
}
/* Four shallow rows pass behind the lower rail. Both layers ignore pointer input. */
.sidewalk,
.frame-friends {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 92px;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 2;
}
.frame-friends {
  background: url("/assets/crowd-guests-still-v2.png") center bottom / 840px 84px
    no-repeat;
}
.wood-frame::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 10px solid transparent;
  border-image: url("/assets/basic_wooden_frame.png") 10 / 10px / 0 stretch;
  pointer-events: none;
  z-index: 3;
}
.crowd-ready .frame-friends {
  display: none;
}
.crowd-toggle {
  position: absolute;
  right: 0;
  bottom: -36px;
  padding: 7px 4px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #aa94b1;
  font:
    10px/1.3 Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
  z-index: 4;
  min-height: 30px;
}
.crowd-toggle:hover {
  color: #f3ddc5;
}
.crowd-toggle:focus-visible {
  outline: 2px solid #dfbf96;
  outline-offset: 2px;
}
footer {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 21px 0 22px;
  text-align: center;
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.partner > span {
  font-size: 10px;
  color: #9f8ba5;
}
.partner img {
  display: block;
  width: 100px;
  height: 33px;
  opacity: 0.78;
}
.partner a:hover img {
  opacity: 1;
}
nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 11px;
  color: #c6b3cc;
  margin-top: 18px;
}
nav a {
  padding: 5px 0;
}
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copyright {
  display: block;
  color: #927e99;
  font-size: 9px;
  margin-top: 12px;
}
@media (max-width: 760px) {
  main {
    padding: 57px 27px 62px;
  }
  .wood-frame {
    padding: 25px 17px 65px;
    width: 440px;
  }
  .logo {
    width: 235px;
  }
  .actions {
    width: 270px;
  }
  .status {
    font-size: 21px;
    margin: 15px 0 23px;
  }
  .discord {
    font-size: 25px;
    gap: 15px;
  }
  .inn {
    font-size: 19px;
    gap: 8px;
    padding-inline: 9px;
  }
  .inn small {
    font-size: 9px;
  }
  .sidewalk,
  .frame-friends {
    height: 65px;
  }
  .frame-friends {
    background-size: 560px 56px;
  }
  .crowd-toggle {
    font-size: 9px;
    bottom: -35px;
  }
  footer {
    width: calc(100% - 40px);
    padding-block: 17px 20px;
  }
  .partner > span {
    font-size: 9px;
  }
  .partner img {
    width: 94px;
    height: 30px;
  }
  nav {
    margin-top: 13px;
    gap: 23px;
  }
  .copyright {
    margin-top: 9px;
  }
}
@media (max-width: 370px) {
  main {
    padding-inline: 23px;
  }
  .wood-frame {
    padding-inline: 12px;
  }
  .discord {
    font-size: 22px;
    padding-inline: 12px;
    gap: 12px;
  }
  .inn {
    font-size: 17px;
  }
  .lantern {
    display: none;
  }
  .logo {
    width: 205px;
  }
  nav {
    gap: 21px;
  }
}
