#game-stage #app header .brand {
  display: grid;
  place-items: center;
  flex: 0 0 124px;
  width: 124px;
  height: 58px;
  margin: 0;
  overflow: visible;
  transform: none;
}
#game-stage #app header .brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#game-stage #app header .header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-width: 107px;
  min-height: 46px;
  padding: 8px 12px;
  overflow: visible;
  border: 1px solid #7f935c;
  border-radius: 25px;
  color: #234726;
  background: #fff7ddeb;
  box-shadow: 0 2px 0 #355b3029;
  cursor: pointer;
}
#game-stage #app header .header-action::before {
  content: '';
  position: absolute;
  inset: -9px -3px;
}
#game-stage #app header .header-action svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
#game-stage #app header .header-action-label {
  display: block;
  color: inherit;
  font: 500 14px/1.3 var(--kv-label, 'PingFang SC', sans-serif);
  white-space: nowrap;
}
#game-stage #app header .header-action:focus-visible {
  outline: 2px solid #4d6b41;
  outline-offset: 3px;
}

#game-stage #app .gm-auth {
  position: absolute;
  inset: 90px 25px 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  color: var(--kv-ink, #245234);
}
#game-stage #app .gm-auth-scene {
  position: relative;
  flex: 0 0 118px;
  width: min(100%, 266px);
  pointer-events: none;
}
#game-stage #app .gm-auth-scene::before {
  content: '';
  position: absolute;
  inset: auto 11px 4px;
  height: 14px;
  border-radius: 48%;
  background: radial-gradient(ellipse, #6b8a4d61, transparent 72%);
}
#game-stage #app .gm-auth-mailbox,
#game-stage #app .gm-auth-companion {
  position: absolute;
  display: block;
}
#game-stage #app .gm-auth-mailbox { left: 40px; bottom: 2px; width: 91px; height: 108px; }
#game-stage #app .gm-auth-companion { right: 37px; bottom: -1px; width: 96px; height: 102px; }
#game-stage #app .gm-auth-scene svg { position: static; display: block; width: 100%; height: 100%; }
#game-stage #app .gm-auth h1 {
  flex: 0 0 auto;
  margin: 12px 0 13px;
  color: var(--kv-forest, #214216);
  font: 400 36px/1.12 var(--kv-writing, 'Kaiti SC', serif);
  letter-spacing: .04em;
}
#game-stage #app .gm-auth-card {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 9px;
  padding: 13px 15px 12px;
  border: 1px solid #9ca673;
  border-top: 4px solid #8da06b;
  border-radius: 13px 11px 14px 12px;
  background: var(--kv-paper, #fff8e9);
  box-shadow: 2px 4px 0 #4d694137;
}
#game-stage #app .gm-auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #c5cca3;
  border-radius: 9px;
  background: #ecedd3;
}
#game-stage #app .gm-auth-switch button {
  min-width: 0;
  min-height: 43px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #526944;
  background: transparent;
  font: 500 15px/1.25 var(--kv-label, 'PingFang SC', sans-serif);
  cursor: pointer;
}
#game-stage #app .gm-auth-switch button[aria-pressed='true'] {
  border-color: #829957;
  color: #274529;
  background: #e1e9b5;
  box-shadow: 0 1px 0 #718a462e;
  font-weight: 700;
}

#game-stage #app .gm-auth #auth-form {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin: 0;
  padding: 14px 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#game-stage #app .gm-auth-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}
#game-stage #app .gm-auth-field label {
  margin: 0;
  color: #335231;
  font: 600 14px/1.2 var(--kv-label, 'PingFang SC', sans-serif);
}
#game-stage #app .gm-auth #auth-form input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #9ca972;
  border-radius: 8px;
  color: #294931;
  background: #fffaf0;
  font: 400 16px/1.2 var(--kv-label, 'PingFang SC', sans-serif);
}
#game-stage #app .gm-auth :is(input,button):focus-visible {
  outline: 2px solid #608649;
  outline-offset: 2px;
}
#game-stage #app .gm-auth #auth-form input[aria-invalid='true'] { border-color: #a45139; }
#game-stage #app .gm-auth-hint {
  margin: 0;
  color: #576b49;
  font: 400 12px/1.42 var(--kv-label, 'PingFang SC', sans-serif);
}
#game-stage #app .gm-auth-error {
  margin: 0;
  color: #923b2f;
  font: 500 13px/1.4 var(--kv-label, 'PingFang SC', sans-serif);
}
#game-stage #app .gm-auth-error:empty { display: none; }
#game-stage #app .gm-auth #auth-form button[type='submit'] {
  min-height: 47px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid #2b512d;
  border-radius: 9px 8px 10px 8px;
  color: #fff9e8;
  background: #416d40;
  box-shadow: 0 3px 0 #284b2d;
  font: 400 19px/1.2 var(--kv-writing, 'Kaiti SC', serif);
  cursor: pointer;
}
#game-stage #app .gm-auth button:disabled { opacity: .75; cursor: wait; }
