:root {
  color-scheme: dark;
  --page: #071a12;
  --panel: #10291d;
  --gold: #d9a923;
  --green: #20b66a;
  --cream: #fff4dd;
  --muted: #e0d4bd;
  --line: rgba(238, 174, 24, .65);
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #030d08;
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 22px;
  overflow: hidden;
  border-right: 1px solid rgba(91, 171, 111, .4);
  border-left: 1px solid rgba(91, 171, 111, .4);
  background-color: var(--page);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d9a923' stroke-opacity='.2' stroke-width='1.2'%3E%3Cpath d='M24 9l9 9-9 9-9-9 9-9zm0 0v18m-9-9h18M72 57l9 9-9 9-9-9 9-9zm0 0v18m-9-9h18'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgba(3, 23, 14, .7), rgba(4, 19, 12, .84)),
    url("assets/fantasy-background.png");
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: center top, center top, center top;
  background-size: 96px 96px, auto, cover;
}

.topbar {
  position: relative;
  z-index: 5;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 52px;
  border-bottom: 1px solid rgba(211, 166, 55, .5);
  background: linear-gradient(90deg, #12452d, #092419);
}

.back-button {
  position: absolute;
  left: 15px;
  color: var(--green);
  font-size: 31px;
  line-height: 1;
}

.brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.brand__wordmark {
  display: block;
  color: #f5ca64;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(30px, 8.5vw, 46px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  text-shadow: 0 2px 0 #6c3706, 0 0 8px rgba(255, 195, 55, .8), 0 0 20px rgba(255, 170, 30, .45);
  -webkit-text-stroke: 1px #ffe3a0;
  animation: wordmark-float 3s ease-in-out infinite;
  will-change: transform;
}

.brand__official {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 214, 113, .65);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 56, 33, .5), rgba(35, 102, 57, .8), rgba(10, 56, 33, .5));
  color: #ffe39a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 210, 91, .45);
}

.brand__official::before,
.brand__official::after {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  background: #f4ca68;
  content: "";
  transform: rotate(45deg);
}

@keyframes wordmark-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.menu-toggle {
  position: absolute;
  right: 13px;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 178, 40, .13);
  border-radius: 50%;
  background: #123923;
  cursor: pointer;
}

.menu-toggle span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  position: absolute;
  top: calc(100% + 5px);
  right: 12px;
  display: none;
  min-width: 180px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1d13;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .6);
}

.main-nav.is-open {
  display: grid;
}

.main-nav a {
  padding: 11px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--cream);
  font-size: 12px;
}

.main-nav a:last-child {
  border-bottom: 0;
}

.promo-banner {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 10px;
  padding: 13px 12px 11px;
  overflow: hidden;
  border: 1px solid #a66d00;
  border-radius: 17px;
  background-color: #092217;
  box-shadow: inset 0 0 28px rgba(32, 182, 106, .18), 0 0 22px rgba(32, 182, 106, .16);
  isolation: isolate;
}

.promo-banner::before {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(3, 25, 14, .16), rgba(3, 25, 14, .42)),
    url("assets/tile-art.jpg");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  animation: banner-sway 4.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes banner-sway {
  from {
    transform: translateX(-5px) scale(1.025);
  }

  to {
    transform: translateX(5px) scale(1.025);
  }
}

.neon-grid {
  position: absolute;
  z-index: 0;
  inset: 20px 0 42px;
  opacity: .22;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(76, 219, 133, .3) 22px 24px, transparent 25px 37px),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(76, 219, 133, .14) 29px 31px, transparent 32px 45px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 77%, transparent);
}

.promo-copy {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 20px;
  left: 12px;
  padding: 16px 10px 13px;
  border: 1px solid rgba(255, 224, 194, .55);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(4, 25, 15, .92), rgba(8, 48, 29, .86), rgba(4, 25, 15, .92));
  box-shadow: 0 7px 25px rgba(0, 0, 0, .45), 0 0 20px rgba(32, 182, 106, .16);
  text-align: center;
}

.promo-copy__eyebrow {
  margin: 0 0 3px;
  color: #ffe2d4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-shadow: 0 1px 4px #000;
}

.promo-copy h1 {
  margin: 0;
  color: #fff9f3;
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
  text-shadow: 0 3px 0 #073b24, 0 0 12px rgba(32, 182, 106, .7), 0 0 25px rgba(255, 170, 71, .55);
  -webkit-text-stroke: .5px #ffc3a6;
}

.promo-copy h1 span {
  color: #ffdd87;
}

.promo-copy__subtitle {
  margin: 6px 0 0;
  color: #fff2e6;
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
}

.highlight {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 11px 10px 9px;
  padding: 8px;
  border: 1px solid #a8780c;
  border-radius: 11px;
  background: linear-gradient(100deg, #103a26, #175235, #103622);
  box-shadow: inset 0 0 16px rgba(74, 196, 113, .16);
  text-align: center;
}

.highlight p {
  margin: 0;
  color: #ffe7a0;
  font-size: clamp(13px, 4vw, 17px);
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.4;
  text-shadow: 0 1px 2px #4b2b05, 0 0 9px rgba(255, 194, 55, .38);
}

.highlight strong {
  color: #ffd24a;
}

.highlight__icon {
  color: #ffd24a;
  font-size: 20px;
}

.action-buttons {
  display: grid;
  gap: 9px;
  margin: 0 10px;
}

.action-button {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  font-size: clamp(12px, 4vw, 16px);
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  transition: transform .18s ease, filter .18s ease;
}

.action-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.action-button--register {
  border: 1px solid #82e5a1;
  background: linear-gradient(105deg, #08783c, #16a653 70%, #39c76d);
  box-shadow: 0 3px 0 #064c2a, 0 0 15px rgba(32, 182, 106, .24);
  color: #fff;
  text-shadow: 0 1px 2px rgba(4, 54, 27, .8);
}

.action-button--login {
  border: 2px solid #238b51;
  background: linear-gradient(100deg, #0b2116, #102c1d);
  color: #9ce5b4;
  box-shadow: inset 0 0 15px rgba(53, 175, 98, .08);
}

.info-cards {
  display: grid;
  gap: 9px;
  margin: 19px 10px 0;
}

.info-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 9px;
  padding: 11px 10px;
  border: 1px solid rgba(83, 159, 103, .56);
  border-radius: 14px;
  background: linear-gradient(105deg, #123b27, #0e2d1d);
}

.info-card--reply {
  border-color: rgba(192, 153, 70, .48);
  background: linear-gradient(105deg, #103522, #0c291b);
}

.info-card__avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 174, 86, .48);
  border-radius: 50%;
  background: #14552f;
  color: #ffd990;
  font-size: 13px;
  font-weight: 800;
}

.info-card__avatar--gold {
  background: #3c290d;
  color: #f4cd6c;
}

.info-card__title {
  margin: 1px 0 4px;
  color: #fff2da;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.info-card p:not(.info-card__title) {
  margin: 0;
  color: #fffaf0;
  font-size: 11px;
  line-height: 1.6;
}

.info-card__time {
  padding-top: 3px;
  color: #ffd38a;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 19px 10px 0;
  padding: 12px 3px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #d7ccb7;
  font-size: 9px;
}

.site-footer p {
  margin: 0;
}

.site-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f0dfb2;
  white-space: nowrap;
}

.footer-brand {
  width: 78px;
  height: auto;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 3px;
  background: #000;
  vertical-align: middle;
}

:focus-visible {
  outline: 2px solid #ffe17b;
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .page-shell {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(226, 178, 63, .4);
    border-radius: 12px;
    box-shadow: 0 18px 80px rgba(0, 0, 0, .55);
  }

  .promo-banner {
    min-height: 430px;
    margin-right: 14px;
    margin-left: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    will-change: auto !important;
  }
}
