body.join.join-theme-minimal,
body.gm-choice.join-theme-minimal {
  --max-width: 340px;
  display: grid;
  grid-template-rows: auto auto;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  min-height: 100vh;
  padding: 2rem;
}

body.join.join-theme-minimal #main-background,
body.gm-choice.join-theme-minimal #main-background {
  inset: -12px;
  width: auto;
  height: auto;
  opacity: 1;
  background-position: center;
  background-size: cover;
  filter: blur(7px) brightness(.37) saturate(.88);
  transform: none;
}

body.join.join-theme-minimal::before,
body.gm-choice.join-theme-minimal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(30, 14, 10, .08), rgba(2, 3, 6, .7));
  pointer-events: none;
}

body.join.join-theme-minimal::after,
body.join.join-theme-minimal #watermark,
body.gm-choice.join-theme-minimal::after,
body.gm-choice.join-theme-minimal #watermark {
  display: none;
}

body.join.join-theme-minimal #main-header,
body.gm-choice.join-theme-minimal #main-header {
  width: min(92vw, 680px);
  height: auto;
  margin: 0;
  background: none;
}

body.join.join-theme-minimal #main-header h1,
body.gm-choice.join-theme-minimal #main-header h1 {
  margin: 0;
  color: #f5ede4;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1;
  letter-spacing: .015em;
  text-shadow: 0 2px 5px #000, 0 0 24px rgba(0, 0, 0, .85);
  text-align: center;
}

body.join.join-theme-minimal #join-game {
  display: block;
  width: min(88vw, var(--max-width));
  max-width: none;
  margin: 0;
}

/* Player join page: only the login form. Stock 14.366 still ships details/world/setup
   parts (Next Session / Current Players / Return to Setup); hide them on play.jinx.gg. */
body.join.join-theme-minimal #join-game [data-application-part="details"],
body.join.join-theme-minimal #join-game [data-application-part="world"],
body.join.join-theme-minimal #join-game [data-application-part="setup"] {
  display: none !important;
}

body.join.join-theme-minimal #join-game .application,
body.join.join-theme-minimal #join-game .application.framed {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.join.join-theme-minimal #join-game form.jinx-login-form {
  display: grid;
  gap: .72rem;
  width: min(82vw, 300px);
  margin-inline: auto;
}

body.join.join-theme-minimal #join-game form.jinx-register-form {
  width: min(86vw, 340px);
}

body.join.join-theme-minimal #join-game .jinx-register-message {
  margin: 0 0 .3rem;
  color: #ffd8c0;
  text-align: center;
  text-shadow: 0 1px 4px #000;
}

body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .72) 18%, rgba(255, 255, 255, .72) 82%, transparent 100%);
  opacity: .78;
  transition: opacity .16s ease, filter .16s ease;
  pointer-events: none;
}

body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember):focus-within::after {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .35));
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:hover,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:focus,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:focus-visible,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:active,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:valid,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:invalid {
  width: 100%;
  height: 2.15rem;
  min-height: 0;
  margin: 0;
  padding: .2rem .15rem .38rem;
  color: #fff !important;
  caret-color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #fff !important;
  font: inherit;
  line-height: 1.35;
  transition: background-color 999999s 0s, color .16s ease;
}

html body.join.join-theme-minimal #join-game form.jinx-login-form label.jinx-username-field > input {
  padding-right: 1.85rem !important;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-show-users {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.7rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f6eee7;
  opacity: 0.2;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: none;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-show-users:hover,
body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-show-users:focus-visible {
  opacity: 0.48;
  outline: none;
}

html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:autofill {
  color: #fff !important;
  caret-color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #fff !important;
}

html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:-webkit-autofill,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:-webkit-autofill:hover,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:-webkit-autofill:focus,
html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:-webkit-autofill:active {
  color: #fff !important;
  caret-color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 999999s 0s, color .16s ease;
}

html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input:-moz-autofill {
  color: #fff !important;
  caret-color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

html body.join.join-theme-minimal #join-game form.jinx-login-form label:not(.jinx-remember) > input::placeholder {
  color: rgba(255, 255, 255, .46) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .46) !important;
  opacity: 1;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  margin-top: .2rem;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  letter-spacing: .02em;
  cursor: pointer;
  user-select: none;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-remember input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-remember > span {
  color: rgba(245, 237, 228, .38);
  text-shadow: 0 1px 3px #000;
  transition: color .16s ease, opacity .16s ease, text-shadow .16s ease;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-remember input:checked + span {
  color: rgba(255, 246, 235, .94);
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(255, 246, 235, .2);
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-remember input:focus-visible + span {
  outline: 1px solid rgba(255, 246, 235, .65);
  outline-offset: 3px;
}

body.join.join-theme-minimal #join-game form.jinx-login-form button[type="submit"] {
  justify-self: center;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-width: 9rem;
  min-height: 2.25rem;
  margin-top: .35rem;
  padding: .2rem .9rem;
  color: #f6eee7;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  font-weight: 700;
  letter-spacing: .035em;
  text-shadow: 0 1px 4px #000;
  transition: color .16s ease, text-shadow .16s ease;
}

body.join.join-theme-minimal #join-game form.jinx-login-form button[type="submit"]:hover,
body.join.join-theme-minimal #join-game form.jinx-login-form button[type="submit"]:focus-visible {
  color: #ffd4ad;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 1px 4px #000, 0 0 9px rgba(229, 144, 77, .38);
}

body.join.join-theme-minimal #join-game form.jinx-login-form button[type="submit"]:focus-visible {
  outline: 1px solid rgba(242, 172, 113, .5);
  outline-offset: 3px;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-login-actions button[type="submit"] {
  justify-self: unset;
  margin-top: 0;
  min-width: 0;
  padding-inline: .35rem .15rem;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-forgot-password,
body.join.join-theme-minimal #join-game .jinx-forgot-password {
  display: block;
  width: 100%;
  margin: .15rem 0 0;
  padding: 0;
  color: rgba(245, 237, 228, .38);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
  font: inherit;
  font-size: .82rem;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 3px #000;
  cursor: pointer;
  transition: color .16s ease;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-forgot-password:hover,
body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-forgot-password:focus-visible,
body.join.join-theme-minimal #join-game .jinx-forgot-password:hover,
body.join.join-theme-minimal #join-game .jinx-forgot-password:focus-visible {
  color: rgba(255, 212, 173, .72);
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-forgot-password:focus-visible,
body.join.join-theme-minimal #join-game .jinx-forgot-password:focus-visible {
  outline: 1px solid rgba(242, 172, 113, .35);
  outline-offset: 3px;
}

body.join.join-theme-minimal #join-game form.jinx-login-form .jinx-forgot-password:disabled {
  opacity: .55;
  cursor: wait;
}

body.join.join-theme-minimal #join-game .jinx-forgot-wrap {
  margin: .45rem 0 0;
  text-align: center;
}

body.join.join-theme-minimal #join-game .jinx-forgot-status {
  margin: .35rem 0 0;
  color: rgba(245, 237, 228, .7);
  font-size: .8rem;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}

body.join.join-theme-minimal #join-game .jinx-forgot-status-error,
body.join.join-theme-minimal #join-game .jinx-register-message:not(.jinx-register-message-ok) {
  color: #ffd8c0;
}

body.join.join-theme-minimal #join-game .jinx-register-message-ok {
  color: #d8f0c8;
}

@media (max-height: 520px) {
  body.join.join-theme-minimal,
  body.gm-choice.join-theme-minimal {
    align-content: start;
    padding-top: 2.5rem;
  }
}

/* —— GM choice interstitial (post-login for Game Masters) —— */
body.gm-choice.join-theme-minimal #gm-choice.jinx-gm-choice {
  display: grid;
  gap: 1.1rem;
  width: min(88vw, var(--max-width));
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-hint {
  margin: 0;
  color: rgba(245, 237, 228, .72);
  text-align: center;
  font-size: .95rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px #000;
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-actions {
  display: grid;
  gap: .55rem;
  justify-items: center;
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-form {
  display: contents;
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  min-height: 2.35rem;
  margin: 0;
  padding: .25rem 1rem;
  color: #f6eee7;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-shadow: 0 1px 4px #000;
  cursor: pointer;
  transition: color .16s ease, text-shadow .16s ease;
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-primary {
  color: #ffd4ad;
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-link:hover,
body.gm-choice.join-theme-minimal .jinx-gm-choice-link:focus-visible {
  color: #ffd4ad;
  text-shadow: 0 1px 4px #000, 0 0 9px rgba(229, 144, 77, .38);
}

body.gm-choice.join-theme-minimal .jinx-gm-choice-link:focus-visible {
  outline: 1px solid rgba(242, 172, 113, .5);
  outline-offset: 3px;
}

/* The username roster stays closed until the person button asks for it. */
#autocomplete {
  display: none !important;
}

body.jinx-show-user-list #autocomplete:popover-open {
  display: flex !important;
}

