#save-warning {
  position: fixed;
  z-index: 600;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(410px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  background: var(--parchment);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--ledge);
  font: 14px/1.5 var(--read);
  text-shadow: none;
}
#save-warning[hidden] {
  display: none;
}
@media (max-width: 760px), (pointer: coarse) {
  #save-warning {
    top: calc(max(8px, env(safe-area-inset-top)) + 160px);
    bottom: auto;
    width: min(360px, calc(100vw - 24px));
  }
}
@media (pointer: coarse) and (max-height: 500px) {
  #save-warning {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 240px));
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.4;
  }
}
#save-warning p {
  margin: 6px 0 0;
}
#idle-warning {
  position: fixed;
  z-index: 500;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 16px 20px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  corner-shape: bevel;
  background: var(--parchment);
  color: var(--ink);
  box-shadow: var(--bevel), var(--ledge);
  text-shadow: none;
  text-align: center;
}
#idle-warning strong {
  font: 16px/1.4 var(--blocks);
  color: var(--leaf-deep);
}
#idle-stay {
  padding: 9px 18px;
  background: var(--evergreen);
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  color: var(--paper);
  font: 800 14px var(--read);
  cursor: pointer;
  box-shadow: var(--ledge);
}
#idle-stay:hover {
  filter: brightness(1.1);
}
#idle-stay:active {
  transform: translateY(2px);
  box-shadow: none;
}
#idle-warning[hidden] {
  display: none;
}
#idle-warning p {
  margin: 8px 0 12px;
  line-height: 1.45;
  font-size: 14px;
}
.session-note {
  font-size: 12px;
  line-height: 1.5;
  opacity: .85;
}
#login {
  position: absolute;
  inset: 0;
  z-index: 50;
  overflow: hidden auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #9fd2e8 url(../art/frontier.svg) center bottom / cover no-repeat;
  color: var(--ink);
  text-shadow: none;
}
#login::before {
  content: "";
  position: fixed;
  inset: -3%;
  z-index: -1;
  background: url(../art/login-town.jpg) 62% 40% / cover no-repeat;
  animation: login-drift 60s ease-in-out infinite alternate;
}
#login::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(43, 29, 14, 0.34),
      rgba(43, 29, 14, 0.06) 48%,
      rgba(255, 236, 190, 0.08));
}
@keyframes login-drift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.07) translate(-1.5%, 0.8%);
  }
}
@media (min-width: 1100px) {
  #login {
    justify-content: flex-start;
    padding-left: max(5vw, 32px);
  }
}
.login-box {
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  margin: auto 0;
  padding: 18px 26px 14px;
  text-align: center;
  background: var(--parchment);
  border: 3px solid var(--ink);
  border-radius: 14px;
  corner-shape: bevel;
  box-shadow:
    var(--bevel),
    0 6px 0 rgba(43, 29, 14, 0.45),
    0 18px 40px rgba(20, 30, 20, 0.35);
  scrollbar-width: thin;
  scrollbar-color: #c9a25a transparent;
}
@media (min-width: 1100px) {
  .login-box {
    margin: auto 0;
  }
}
.login-box h1 {
  margin: 2px 0 4px;
  line-height: 0;
}
#login .login-box h1 .logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 3px 0 rgba(90, 60, 20, 0.16));
  animation: logo-float 4.5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@media (max-height: 800px) {
  #login .login-box h1 .logo {
    max-width: 290px;
  }
}
@media (max-height: 800px) {
  #login .tagline {
    margin: 2px auto 8px;
  }
  #login .login-fields {
    gap: 6px;
    margin: 8px 0 10px;
  }
  #login .login-fields input {
    height: 34px;
  }
  #login .buttons button {
    min-height: 34px;
  }
  #login .buttons button.primary {
    min-height: 40px;
  }
  #login .footer {
    margin-top: 8px;
  }
  #login #login-hint {
    display: none;
  }
}
@media (max-height: 860px) and (min-width: 500px) {
  #login .login-form .login-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-height: 680px) {
  #login .login-box h1 .logo {
    max-width: 190px;
  }
  #login .login-box {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  #login .tagline {
    margin: 0 auto 6px;
  }
}
.tagline {
  margin: 6px auto 12px;
  max-width: 340px;
  color: #6a5030;
  font: 700 13.5px/1.5 var(--read);
}
@media (max-height: 720px) {
  #login .tagline {
    display: none;
  }
}
#login-error {
  margin: 0 auto 8px;
  color: #fff6de;
  font: 800 12.5px/1.35 var(--read);
}
#login-error:empty {
  display: none;
}
#login-error:not(:empty) {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(#e0574a, #b93a2f);
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow: 0 2px 0 rgba(43, 29, 14, 0.4);
}
.login-fields {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
  text-align: left;
}
.login-fields label {
  display: grid;
  gap: 4px;
  font: 16px/1 var(--blocks);
  color: var(--brown);
  letter-spacing: 0.04em;
}
.login-fields input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: var(--ink);
  font: 800 15px var(--read);
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow: inset 0 3px 0 rgba(160, 110, 40, 0.16);
}
.login-fields input:focus {
  outline: 0;
  border-color: var(--leaf-deep);
  box-shadow: inset 0 3px 0 rgba(160, 110, 40, 0.16), 0 0 0 3px var(--honey);
}
#login .login-remember {
  grid-column: 1 / -1;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  cursor: pointer;
  font: 700 12px/1.4 var(--read);
  letter-spacing: 0;
}
#login .login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--leaf-deep);
  box-shadow: none;
  cursor: pointer;
}
#login .login-remember input:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}
#login .login-remember strong {
  display: block;
  color: var(--ink);
}
#login .login-remember small {
  display: block;
  color: #6a5030;
  font: 600 11px/1.4 var(--read);
}
.pass-wrap {
  position: relative;
  display: block;
}
.pass-wrap input {
  padding-right: 64px;
}
.pass-show {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  min-width: 50px;
  padding: 0 8px;
  cursor: pointer;
  color: var(--ink);
  font: 800 11px var(--read);
  letter-spacing: 0;
  background: #fff3cf;
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
}
.pass-show[aria-pressed=true] {
  background: linear-gradient(#fff6c8, #ffe28a);
}
.pass-help.low {
  color: #a23a2c;
  opacity: 1;
  font-weight: 800;
}
.pass-help.good {
  color: #3d7a2c;
  opacity: 1;
  font-weight: 800;
}
.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.buttons button {
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--ink);
  font: 800 13px var(--read);
  background: linear-gradient(#ffe27a, #f0b93a);
  border: 2px solid var(--ink);
  border-radius: 9px;
  corner-shape: bevel;
  box-shadow: inset 0 -3px 0 rgba(150, 90, 10, 0.3), 0 3px 0 rgba(43, 29, 14, 0.35);
}
.buttons button:hover {
  background: linear-gradient(#fff0a8, #f6c531);
}
.buttons button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 0 rgba(150, 90, 10, 0.32);
}
.buttons button.primary {
  grid-column: 1 / -1;
  min-height: 44px;
  color: var(--paper);
  font: 16px/1 var(--blocks);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 0 var(--ink);
  background: var(--evergreen);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 rgba(43, 29, 14, 0.35);
}
.buttons button.primary:hover {
  background:
    linear-gradient(
      #78c07e 0 3px,
      #4f9d5c 3px calc(100% - 4px),
      #347a45 calc(100% - 4px));
}
.buttons button.quiet {
  background: var(--raised);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  color: #8a7a60;
  font: 700 11px var(--read);
}
#login #login-status::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -2px;
  background: #b8a778;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}
#login #login-status.ok::before {
  background: var(--honey);
}
#login .footer .about {
  margin-left: 12px;
  color: var(--leaf-deep);
  font-weight: 800;
  text-decoration: none;
}
#login .footer .about:hover {
  text-decoration: underline;
}
#login.creating .login-box {
  width: 700px;
}
#login.creating .login-box h1 .logo {
  max-width: 200px;
}
#login.creating .tagline {
  display: none;
}
#create h2 {
  margin: 0 0 8px;
  font: 16px/1 var(--blocks);
  letter-spacing: 0.05em;
  color: var(--leaf-deep);
}
.design {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 14px;
  align-items: start;
  text-align: left;
}
.design-stage {
  display: grid;
  justify-items: center;
}
.design-side {
  display: grid;
  gap: 8px;
}
#create .buttons.surprise {
  grid-template-columns: 1fr;
  margin: 0;
}
.buttons.surprise button {
  min-height: 0;
  height: 100%;
}
#design-preview {
  width: 180px;
  height: 240px;
  display: block;
  background:
    radial-gradient(
      ellipse 70% 16% at 50% 88%,
      rgba(120, 170, 70, 0.55),
      transparent 70%),
    linear-gradient(
      #bfe4f5 0%,
      #e6f5ea 62%,
      #b7d98a 62.5%,
      #9cc86a 100%);
  border: 3px solid var(--ink);
  border-radius: 12px;
  corner-shape: bevel;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.6), 0 3px 0 rgba(43, 29, 14, 0.35);
}
.design-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}
.pick {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  min-height: 40px;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow: 0 2px 0 rgba(43, 29, 14, 0.25);
}
.pick .what {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  text-align: center;
  font: 8px/1 var(--blocks);
  letter-spacing: 0.06em;
  color: var(--brown);
  text-transform: uppercase;
  padding-top: 4px;
}
.pick .val {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 4px;
  font: 800 13px/1.2 var(--read);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.pick .val .n {
  color: #9a8460;
  font-size: 11px;
}
.pick .sw {
  width: 18px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.45), inset -1px -2px 0 rgba(0, 0, 0, 0.18);
}
.pick .swatches {
  display: flex;
  gap: 2px;
  width: 100%;
  justify-content: center;
  padding: 0 4px;
}
.pick .swatches .sw {
  display: block;
  grid-row: auto;
  flex: 1 1 0;
  min-width: 8px;
  max-width: 18px;
  height: 14px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.pick .swatches .sw::before {
  content: none;
}
.pick .swatches .sw.on {
  border-width: 2px;
  outline: 2px solid var(--honey);
  outline-offset: 0;
  transform: translateY(-2px);
}
.pick .swatches .sw:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.pick button {
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  cursor: pointer;
  border: 0;
  font-size: 0;
  background: linear-gradient(#ffe27a, #f0b93a);
}
.pick button::before {
  content: "";
  width: 8px;
  height: 12px;
  background: var(--ink);
}
.pick .prev::before {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.pick .next::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pick .prev {
  grid-column: 1;
  border-right: 2px solid var(--ink);
  border-radius: 6px 0 0 6px;
}
.pick .next {
  grid-column: 3;
  border-left: 2px solid var(--ink);
  border-radius: 0 6px 6px 0;
}
.pick button:hover {
  background: linear-gradient(#fff0a8, #f6c531);
}
.pick button:active {
  background: linear-gradient(#f0b93a, #ffe27a);
}
.vocations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 8px;
  text-align: left;
}
.vocations .voc {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 8px;
  align-content: start;
  padding: 7px 8px;
  cursor: pointer;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 9px;
  corner-shape: bevel;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.25);
}
.vocations .voc:hover {
  background: #fff3cf;
}
.vocations .voc.active {
  background: linear-gradient(#fff6c8, #ffe28a);
  box-shadow: 0 0 0 3px var(--honey), 0 3px 0 rgba(43, 29, 14, 0.35);
}
.vocations .voc .vi {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}
.vocations .voc .vt {
  font: 16px/1 var(--blocks);
  letter-spacing: 0.04em;
  color: var(--ink);
  align-self: end;
}
.vocations .voc .vs {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 800 11px var(--read);
  color: #6a5030;
}
.vocations .voc .vs img {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
}
.vocations .voc .d {
  grid-column: 1 / -1;
  margin-top: 3px;
  font: 700 11px/1.3 var(--read);
  color: #6a5030;
}
.oath-choice {
  display: grid;
  grid-template-columns: auto 26px 1fr;
  gap: 6px 10px;
  align-items: center;
  margin: 2px 0 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 9px;
  corner-shape: bevel;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.25);
}
.oath-choice:hover {
  background: #fff3cf;
}
.oath-choice:has(input:checked) {
  background: linear-gradient(#fbe7dc, #f3c9b6);
  box-shadow: 0 0 0 3px #a5402f, 0 3px 0 rgba(43, 29, 14, 0.35);
}
.oath-choice input,
.oath-quick input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #8e3226;
  cursor: pointer;
}
.oath-choice .oath-seal,
.oath-quick .oath-seal {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}
.oath-choice .oath-seal .oath-ring,
.oath-quick .oath-seal .oath-ring {
  width: 26px;
  height: 26px;
  vertical-align: 0;
}
.oath-choice .oath-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.oath-choice .oath-title {
  font: 16px/1.1 var(--blocks);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.oath-choice .oath-sum {
  font: 700 12px/1.35 var(--read);
  color: #5c3a22;
}
.oath-choice .oath-copy {
  display: none;
  grid-column: 2 / -1;
}
.oath-choice:has(input:checked) .oath-copy {
  display: block;
}
.oath-choice .oath-lead {
  display: block;
  font: 700 12px/1.35 var(--read);
  color: #5c3a22;
}
.oath-choice .oath-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 14px;
  margin: 6px 0;
}
.oath-choice .oath-rules span {
  position: relative;
  padding-left: 14px;
  font: 800 11.5px/1.3 var(--read);
  color: #4a2618;
}
.oath-choice .oath-rules span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 6px;
  height: 6px;
  background: #8e3226;
  transform: rotate(45deg);
}
.oath-choice .oath-open {
  display: block;
  font: 700 11px/1.35 var(--read);
  color: #6a5030;
}
.oath-more {
  color: var(--leaf-deep);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.oath-more:hover,
.oath-more:focus-visible {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .oath-choice .oath-copy {
    grid-column: 1 / -1;
  }
  .oath-choice .oath-rules {
    grid-template-columns: 1fr;
  }
}
.oath-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -2px 0 8px;
  font: 700 12px/1.35 var(--read);
  color: #5c513b;
}
.oath-quick-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 8px 2px 5px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  corner-shape: bevel;
}
.oath-quick-choice:hover {
  background: #fff3cf;
  border-color: #d9c49a;
}
.oath-quick-choice:has(input:checked) {
  background: linear-gradient(#fbe7dc, #f3c9b6);
  border-color: #a5402f;
  color: #6d241a;
}
.oath-quick input {
  width: 16px;
  height: 16px;
  flex: none;
}
.oath-quick .oath-seal {
  flex: none;
  width: 20px;
  height: 20px;
  font-size: 12px;
  box-shadow: 0 1px 0 rgba(43, 29, 14, 0.35);
}
.oath-quick strong {
  color: var(--ink);
}
.oath-what {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--ink);
  font: 800 12px/1 var(--read);
  text-decoration: none;
}
.oath-what:hover,
.oath-what:focus-visible {
  background: #fff3cf;
}
.oath-quick .oath-play {
  margin-right: 0.3em;
}
html:lang(zh-CN) .oath-quick .oath-play {
  margin-right: 0;
}
@media (max-width: 420px) {
  .oath-quick .oath-play {
    display: none;
  }
}
.create-fields:not(:empty) {
  margin: 2px 0 10px;
}
.create-fields .login-fields {
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.create-fields .login-fields::after {
  content: "A name and password keep your character. Or play as a guest.";
  grid-column: 1 / -1;
  font: 700 11px var(--read);
  color: #8a7a60;
}
#create .buttons {
  grid-template-columns: 1.4fr 1fr 0.7fr;
}
#create .buttons button.primary {
  grid-column: auto;
}
#create > .buttons {
  position: sticky;
  bottom: -14px;
  z-index: 1;
  margin: 0 -26px -14px;
  padding: 10px 26px 14px;
  background: linear-gradient(rgba(246, 229, 188, 0), #f6e5bc 10px);
}
@media (max-height: 760px) {
  .pick {
    min-height: 34px;
  }
  .pick .what {
    padding-top: 3px;
  }
  .pick .val {
    padding-bottom: 3px;
  }
  .vocations {
    margin: 8px 0 6px;
  }
}
@media (max-height: 680px) {
  #create > .buttons {
    bottom: -10px;
    margin-bottom: -10px;
    padding-bottom: 10px;
  }
}
@media (max-height: 640px) {
  #create > .session-note:first-of-type {
    display: none;
  }
  .create-fields .login-fields::after {
    content: none;
  }
  .vocations .voc {
    padding: 5px 8px;
  }
}
@media (max-width: 760px) {
  #login.creating .login-box {
    width: 460px;
  }
  .design {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .design-buttons {
    width: 100%;
  }
  .vocations {
    grid-template-columns: 1fr;
  }
  .create-fields .login-fields,
  #create .buttons {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 800px) {
  #login.creating .footer {
    display: none;
  }
}
@media (max-height: 700px) {
  #login.creating .login-box h1 {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #login::before,
  #login .login-box h1 .logo {
    animation: none;
  }
}
body.demo #login {
  display: none !important;
}
.quickplay-note {
  grid-column: 1/-1;
  text-align: center;
  font: 600 12px/1.4 var(--read);
  color: #5c513b;
}
#login .name-field {
  position: relative;
}
#login .name-rules {
  display: none;
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: calc(100% + 4px);
  width: 380px;
  max-width: calc(100vw - 72px);
  box-sizing: border-box;
  padding: 6px 10px 7px;
  background: #fffaee;
  border: 2px solid var(--ink);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.38);
  color: #5c513b;
  font: 600 12px/1.4 var(--read);
  letter-spacing: 0;
  text-align: left;
  pointer-events: none;
}
#login .name-field:has(#login-name:focus) .name-rules {
  display: block;
}
@media (max-height: 860px) and (min-width: 500px) {
  #login .login-form .name-rules {
    bottom: auto;
    top: calc(100% + 4px);
  }
}
@media (min-width: 761px) {
  #login .create-fields .name-rules {
    bottom: auto;
    top: calc(100% + 4px);
  }
}
#quick-calling-wrap[hidden] {
  display: none;
}
.quick-calling {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 4px;
}
.quick-calling button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding: 4px 8px;
  cursor: pointer;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow: 0 2px 0 rgba(43, 29, 14, 0.25);
  font: 14px/1 var(--blocks);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.quick-calling button img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.quick-calling button:hover {
  background: #fff3cf;
}
.quick-calling button[aria-pressed=true] {
  background: linear-gradient(#fff6c8, #ffe28a);
  box-shadow: 0 0 0 3px var(--honey), 0 2px 0 rgba(43, 29, 14, 0.35);
}
.quick-calling-note {
  margin: 0 0 8px;
  text-align: center;
  font: 700 12px/1.35 var(--read);
  color: #5c513b;
}
@media (max-width: 420px) {
  .quick-calling {
    gap: 4px;
  }
  .quick-calling button {
    gap: 3px;
    padding: 4px 3px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .quick-calling button img {
    width: 16px;
    height: 16px;
  }
}
.pioneer-note {
  grid-column: 1/-1;
  justify-self: center;
  max-width: 34em;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid #d9a93f;
  border-radius: 8px;
  corner-shape: bevel;
  background:
    linear-gradient(
      180deg,
      #fff3c4,
      #f7d77f);
  color: #4a3410;
  font: 700 12px/1.4 var(--read);
  text-align: center;
}
.pioneer-note[hidden] {
  display: none;
}
#pioneer-note + .buttons {
  margin-top: 8px;
}
@media (min-width: 761px) and (max-height: 800px) {
  #login:not(.creating) .login-box {
    width: 540px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
  }
  #login:not(.creating) .login-box > * {
    grid-column: 1 / -1;
  }
  #login:not(.creating) .login-box > .language-choice {
    grid-column: 1;
    margin: 0;
  }
  #login:not(.creating) .login-box > .setting-note:has(#login-classic) {
    grid-column: 2;
    align-self: center;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
  }
}
.oath-quick {
  flex-wrap: wrap;
}
.oath-quick .oath-hardcore-choice,
.oath-quick .setting-note {
  flex-basis: 100%;
  justify-content: center;
  margin: 2px 0;
}
.oath-hardcore-choice input {
  width: 18px;
  height: 18px;
  flex: none;
}
@media (min-width: 761px) and (max-height: 800px) {
  #login:not(.creating) .login-box {
    width: 620px;
  }
  #login #quick-oath-row .oath-hardcore-choice {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 6px;
  }
  #quick-oath-row:not(:has(#quick-oath:checked)) > .setting-note {
    display: none;
  }
}
