/* /play and the account pages share the public site look: the homepage hero, serif headings and a framed card. */
@font-face {
  font-family: 'Libre Baskerville';
  src: url("/fonts/libre-baskerville-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.guest-entry-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guest-entry-page {
  --guest-entry-gutter: clamp(1.5rem, 6vw, 8rem);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
  --entry-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --entry-parchment: #ecd6aa;
  --entry-gold: #c9a463;
  --entry-frame: #8d6a37;
  background: #0d0a0b;
}

.guest-entry {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: max(1.5rem, env(safe-area-inset-top))
    max(var(--guest-entry-gutter), env(safe-area-inset-right)) 0
    max(var(--guest-entry-gutter), env(safe-area-inset-left));
}

.guest-entry-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0d0a0bf2 0%, #0d0a0bcc max(25%, 30rem), #0d0a0b40 max(55%, 42rem), transparent 80%),
    linear-gradient(0deg, #0d0a0b 0%, transparent 35%),
    url("/media/content/public/ab36d713eedb301bb017ce36ad0115507d91d69159e4786a443247f6b4c52574") 70% center / cover;
  pointer-events: none;
}

.guest-entry-brand .wordmark {
  width: fit-content;
  max-width: 100%;
  font-size: 2rem;
}

.guest-entry-brand .wordmark-type {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guest-entry-brand .wordmark-emblem {
  width: 2.75rem;
  height: 2.75rem;
}
.guest-entry-brand .wordmark-type {
  color: var(--entry-parchment);
}
.guest-entry-card {
  width: min(100%, 30rem);
  margin-block: clamp(1.5rem, 6vh, 4rem);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid var(--entry-frame);
  background: linear-gradient(180deg, #1a1314eb, #110d0ef2);
  box-shadow: inset 0 0 0 4px #0b0809, inset 0 0 0 5px #8d6a3750, 0 14px 40px #000a;
}
.guest-entry-card h1 {
  margin: 0 0 1.25rem;
  font: 700 clamp(1.7rem, 3vw, 2.2rem)/1.2 var(--entry-heading);
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--entry-parchment);
}
.guest-entry-card h2 {
  font: 700 1.15rem/1.3 var(--entry-heading);
  color: var(--entry-parchment);
}
.guest-entry-card p {
  color: #d3c9bc;
}
.guest-entry-card a:not(.button) {
  color: var(--entry-gold);
}
.guest-entry-card a:not(.button):hover {
  color: #fff3df;
}
.guest-entry-card form {
  max-width: none;
}
.guest-entry-card input:not([type="checkbox"]) {
  border-color: #8d6a3780;
  background: #0b0809;
}
.guest-entry-card input:not([type="checkbox"]):focus-visible {
  border-color: var(--entry-gold);
}
.guest-entry-card p {
  margin-top: 0;
}
.guest-entry-intro {
  max-width: 34ch;
  color: #c7beb3;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.guest-entry-card form {
  width: 100%;
}
.guest-entry-card .cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-block: .25rem 1rem;
}
/* Shown by entry-check.js only when the check fails or expires. */
.guest-entry-card .entry-check-reload {
  margin: -.75rem 0 .5rem;
}
.guest-entry-card .entry-check-reload a {
  display: inline-flex;
  align-items: center;
  min-height: var(--sq-target-min);
}
/* Browser autofill would otherwise paint the dark fields pale yellow or blue. */
.guest-entry-card input:-webkit-autofill,
.guest-entry-card input:-webkit-autofill:hover,
.guest-entry-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--sq-text);
  caret-color: var(--sq-text);
  box-shadow: 0 0 0 100px #0b0809 inset;
}
.guest-entry-card .account-divider {
  margin-top: 1.25rem;
}
.guest-entry-card > :last-child {
  margin-bottom: 0;
}
.guest-entry-card form button, .guest-entry-card > .button, .guest-entry-login .button {
  width: 100%;
  min-height: 3.25rem;
}
/* Actions match the homepage buttons: red with a gold edge, or dark with a gold edge for the quieter choice. */
.guest-entry-card .button:not(.discord-button),
.guest-entry-card form button:not(.discord-button) {
  border: 2px solid #d8ad62;
  border-radius: 6px;
  font: 700 1.05rem/1.2 var(--entry-heading);
}
.guest-entry-card .button:not(.discord-button):not(.quiet),
.guest-entry-card form button:not(.discord-button):not(.quiet) {
  color: #fff3df;
  background: linear-gradient(180deg, #b0362c, #6d1915);
  box-shadow: inset 0 0 0 2px #3a0b09, 0 0 18px #c2382d40, 0 6px 18px #0008;
}
.guest-entry-card .button:not(.discord-button):not(.quiet):hover,
.guest-entry-card form button:not(.discord-button):not(.quiet):hover {
  background: linear-gradient(180deg, #c33d31, #7c1d18);
}
.guest-entry-card form button:disabled {
  opacity: .6;
}
.guest-entry-card .account-terms {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: #c4bbae;
}
.guest-entry-card .account-terms input[type="checkbox"] {
  flex-basis: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
}
.guest-entry-login {
  margin-top: .75rem;
}
.guest-entry-card .button.quiet,
.guest-entry-card button.quiet {
  border-color: #d8ad62;
  background: #120e0dcc;
  color: var(--entry-parchment);
  box-shadow: inset 0 0 0 2px #00000080;
}
.guest-entry-card .button.quiet:hover,
.guest-entry-card button.quiet:hover {
  border-color: #f0c77c;
  background: #1c1415;
  color: #fff3df;
}
.guest-entry-create {
  text-align: center;
  margin: .5rem 0 1.25rem;
  font-size: .9rem;
}
.guest-entry-card .guest-entry-create a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--entry-gold);
}
.guest-entry-card .guest-entry-memory {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #a68a5730;
  color: #a99f93;
  font-size: .8rem;
  line-height: 1.6;
  max-width: 42ch;
}
/* /guest-continue.js carries a new guest on; the note and button show only without it or if it stalls. */
.guest-entry-card .guest-entry-opening {
  display: none;
  font-size: 1.05rem;
}
.guest-entry-continuing .guest-entry-card .guest-entry-opening {
  display: block;
}
.guest-entry-continuing .guest-entry-card .guest-entry-ready,
.guest-entry-continuing .guest-entry-card form[data-guest-continue] {
  display: none;
}
.guest-entry-card .guest-entry-account-label {
  margin: 1.5rem 0 0;
  color: #c4bbae;
  font-size: .85rem;
}
.guest-entry-card .account-links {
  margin: .25rem 0 .75rem;
}
.guest-entry-footer {
  display: block;
  width: 100%;
  max-width: none;
  border: 0;
  padding: 1rem max(var(--guest-entry-gutter), env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(var(--guest-entry-gutter), env(safe-area-inset-left));
  margin: 0;
}
.guest-entry-footer nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}
.guest-entry-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a99f93;
  font-size: .8rem;
  text-decoration: none;
}
.guest-entry-footer a:hover {
  color: #e7d6b4;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .guest-entry-page {
    --guest-entry-gutter: clamp(1rem, 5vw, 2rem);
  }
  /* The art stays behind the whole screen while the page scrolls, instead of ending part-way down. */
  .guest-entry-page::before {
    position: fixed;
    /* A fixed full-screen height, so the art doesn't rescale when the browser toolbar hides. */
    bottom: auto;
    height: 100vh;
    background: linear-gradient(180deg, #0d0a0b40 0, #0d0a0bb3 12rem, #0d0a0be0 70%),
      url("/media/content/public/ab36d713eedb301bb017ce36ad0115507d91d69159e4786a443247f6b4c52574") 62% top / cover no-repeat;
  }
  .guest-entry-brand .wordmark {
    font-size: 1.75rem;
    text-shadow: 0 2px 12px #000;
  }
  .guest-entry-brand .wordmark-emblem {
    width: 2.25rem;
    height: 2.25rem;
  }
  .guest-entry-card {
    margin-block: 1.5rem;
  }
  .guest-entry-card h1 {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }
  .guest-entry-intro {
    font-size: .95rem;
  }
  .guest-entry-footer nav {
    gap: .25rem 1.1rem;
  }
}

/* Phones: give the card most of the width so the fields and the 300px check have room. */
@media (max-width: 480px) {
  .guest-entry-page {
    --guest-entry-gutter: .75rem;
  }
  .guest-entry {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  .guest-entry-card {
    margin-block: 1rem;
    padding: 1.25rem 1.1rem;
  }
  .guest-entry-card .account-links {
    gap: 0 1.25rem;
    margin-top: 1rem;
    font-size: .9rem;
  }
  .guest-entry-card .guest-entry-account-label + .account-links {
    margin-top: .25rem;
  }
}

@media (max-width: 360px) {
  .guest-entry .cf-turnstile {
    margin-inline: -.5rem;
  }
}

/* The "Invited by" line on sign-up. The invitation page itself is styled by invite.css. */
.invite-notice {
  overflow-wrap: anywhere;
}
