/* The language welcome supplies its own crossfade into the localized homepage. */
@view-transition {
  navigation: none;
}

html:has(.hbh-language-landing[open]:not(.hbh-language-landing--exit)) {
  overflow: hidden;
  scrollbar-gutter: auto;
}

.hbh-language-landing[open] {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 36px 17px;
  overflow: auto;
  border: 0;
  color: #fff0df;
  background: #131910 url('/images/grass.png') repeat;
  font: 400 16px/1.4 system-ui, sans-serif;
}

.hbh-language-landing::backdrop {
  background: transparent;
}

.hbh-language-landing--exit[open] {
  opacity: 1;
  pointer-events: none;
  transition: opacity 440ms ease-in-out;
}

.hbh-language-landing--leaving[open] {
  opacity: 0;
}

.hbh-language-landing__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  box-sizing: border-box;
  margin: 0;
  padding: 24px 30px;
  text-align: center;
  background: #201914 url('/images/members-forged-preview-texture.png');
  border: 1px solid #7c5132;
  border-radius: 6px;
  box-shadow: 0 28px 70px #020302c9, inset 0 0 0 3px #14100d, inset 0 0 0 4px #7e593957;
}

.hbh-language-landing__panel h2 {
  margin: 0;
  color: #fff0df;
  font: 600 clamp(21px, 3.2vw, 32px)/1.05 Georgia, serif;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hbh-language-landing__panel p {
  margin: 6px 0 17px;
  color: #dbc3a9;
  font-size: 15px;
}

.hbh-language-landing__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 320px;
  margin-inline: auto;
}

.hbh-language-landing__choices button {
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid #a76b43;
  border-radius: 5px;
  color: #ffddba;
  background: linear-gradient(180deg, #4b3223, #2a2019);
  box-shadow: inset 0 1px #e3a67637, 0 5px 13px #08050390;
  font: 700 clamp(16px, 3vw, 18px)/1.25 Georgia, serif;
  cursor: pointer;
}

.hbh-language-landing__choices button:hover:not(:disabled) {
  background: linear-gradient(180deg, #6c4227, #3b271b);
  border-color: #ecae78;
}

.hbh-language-landing__choices button:focus-visible {
  outline: 2px solid #f3b37a;
  outline-offset: 4px;
}

.hbh-language-landing__choices button:disabled {
  color: #ffddba;
  cursor: default;
}

@media (max-width: 600px) {
  .hbh-language-landing__panel {
    width: min(100%, 320px);
    padding: 21px 14px;
  }

  .hbh-language-landing__choices {
    gap: 9px;
  }

  .hbh-language-landing__choices button {
    min-height: 46px;
    padding: 9px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbh-language-landing--exit[open] {
    transition: none;
  }
}
