body[data-auth-state="checking"] > :not(#app):not(script),
body[data-auth-state="signed-out"] > :not(#app):not(script),
body[data-auth-state="starting"] > :not(#app):not(script) {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #ebebeb;
  color: #24262a;
  font-family: "Noto Sans KR", sans-serif;
  opacity: 1;
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), visibility 560ms ease;
}

.auth-gate.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.ready-brand__logo {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1640ms cubic-bezier(0.4, 0, 0.2, 1), transform 1840ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ready-brand__logo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ready-brand__logo.is-resetting {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}

.ready-brand .ready-brand__title {
  display: inline-flex;
  min-height: 1em;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.ready-brand__character {
  display: inline-grid;
  width: 0.68em;
  height: 1em;
  place-items: start center;
  overflow: visible;
  contain: layout;
  clip-path: inset(0 -0.16em);
  opacity: 0;
  vertical-align: top;
}

.ready-brand__character--space {
  width: 0.46em;
}

.ready-brand__character.is-resolved {
  opacity: 1;
}

.ready-brand__character-strip {
  display: flex;
  width: 100%;
  min-width: 0;
  grid-area: 1 / 1;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.ready-brand__character-glyph {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 1em;
  flex: 0 0 1em;
  place-items: center;
  line-height: 1;
  text-align: center;
}

.ready-brand:is([data-entrance="cycling"], [data-entrance="complete"])
  .ready-brand__character:not(.ready-brand__character--space) {
  animation: brand-character-reveal 50ms ease
    calc(var(--brand-typography-start-delay) + var(--brand-character-delay)) both;
}

.ready-brand:is([data-entrance="cycling"], [data-entrance="complete"])
  .ready-brand__character-strip {
  animation: brand-character-cycle var(--brand-cycle-duration) steps(24, end)
    calc(var(--brand-typography-start-delay) + var(--brand-character-delay)) both;
}

@keyframes brand-character-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes brand-character-cycle {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -24em, 0); }
}

.auth-gate__terminal {
  position: absolute;
  top: clamp(28px, 5vh, 58px);
  left: clamp(22px, 5vw, 72px);
  width: 360px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1), transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.auth-gate__terminal.is-active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--terminal-start-delay, 0ms);
}

.auth-gate__label {
  margin: 0 0 18px;
  color: #777b80;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.auth-gate__log {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.auth-gate__log-line {
  display: grid;
  width: 100%;
  height: 20px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: baseline;
  min-height: 20px;
  color: #24262a;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  visibility: hidden;
}

.auth-gate__log.is-running .auth-gate__log-line {
  animation: auth-terminal-line-reveal 10ms step-start
    calc(var(--terminal-sequence-delay) + var(--terminal-row-delay)) both;
}

.auth-gate__log-index {
  color: #8d9094;
  font-size: 10px;
}

.auth-gate__log-content {
  display: inline-flex;
  height: 18px;
  align-self: baseline;
  align-items: baseline;
  line-height: 18px;
  white-space: nowrap;
}

.auth-gate__log-copy {
  display: inline-flex;
  height: 18px;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.015em;
  padding-right: 0.015em;
  color: #666b70;
  letter-spacing: 0;
  line-height: 18px;
}

.auth-gate__log-character {
  position: relative;
  display: inline-block;
  height: 18px;
  flex: 0 0 auto;
  letter-spacing: 0;
  line-height: 18px;
  visibility: hidden;
}

.auth-gate__log.is-running .auth-gate__log-character {
  animation: auth-terminal-character-reveal 10ms step-start
    calc(
      var(--terminal-sequence-delay)
      + var(--terminal-row-delay)
      + var(--terminal-character-delay)
    ) both;
}

.auth-gate__log-character::after {
  position: absolute;
  z-index: 1;
  top: 0.16em;
  left: 100%;
  width: 7px;
  height: 1em;
  background: #24262a;
  opacity: 0;
  content: "";
  pointer-events: none;
}

.auth-gate__log.is-running .auth-gate__log-character::after {
  animation: auth-terminal-cursor-pass 20ms linear
    calc(
      var(--terminal-sequence-delay)
      + var(--terminal-row-delay)
      + var(--terminal-character-delay)
    ) both;
}

.auth-gate__log-status {
  box-sizing: border-box;
  display: inline-flex;
  width: 54px;
  min-width: 54px;
  height: 18px;
  flex: 0 0 54px;
  align-items: baseline;
  padding-left: 2px;
  color: #2d86b7;
  line-height: 18px;
  white-space: nowrap;
}

.auth-gate__log-dots {
  display: inline-block;
  height: 18px;
  flex: 0 0 auto;
  line-height: 18px;
  visibility: hidden;
}

.auth-gate__log.is-running .auth-gate__log-line[data-state="waiting"] .auth-gate__log-dots {
  animation: auth-terminal-spinner-reveal 10ms step-start
    calc(var(--terminal-sequence-delay) + var(--terminal-spinner-delay)) both;
}

.auth-gate__log-dots > span {
  visibility: hidden;
}

.auth-gate__log-dots > span:first-child {
  visibility: inherit;
}

.auth-gate__log.is-running .auth-gate__log-line[data-state="waiting"]
  .auth-gate__log-dots > span:nth-child(2) {
  animation: auth-terminal-dot-second 1080ms step-end
    calc(var(--terminal-sequence-delay) + var(--terminal-spinner-delay)) infinite;
}

.auth-gate__log.is-running .auth-gate__log-line[data-state="waiting"]
  .auth-gate__log-dots > span:nth-child(3) {
  animation: auth-terminal-dot-third 1080ms step-end
    calc(var(--terminal-sequence-delay) + var(--terminal-spinner-delay)) infinite;
}

.auth-gate__log-result {
  display: inline-block;
  width: 38px;
  height: 18px;
  flex: 0 0 38px;
  margin-left: 3px;
  align-self: baseline;
  line-height: 18px;
  visibility: hidden;
}

.auth-gate__log-line[data-state="ready"] .auth-gate__log-dots,
.auth-gate__log-line[data-state="error"] .auth-gate__log-dots {
  color: currentColor;
  visibility: visible;
}

.auth-gate__log-line[data-state="ready"] .auth-gate__log-dots > span,
.auth-gate__log-line[data-state="error"] .auth-gate__log-dots > span {
  visibility: visible;
  animation: none;
}

.auth-gate__log-line[data-state="ready"] .auth-gate__log-result,
.auth-gate__log-line[data-state="error"] .auth-gate__log-result {
  visibility: visible;
}

.auth-gate__log-line[data-state="ready"] {
  color: #666b70;
}

.auth-gate__log-line[data-state="ready"] .auth-gate__log-status {
  color: #287d58;
}

.auth-gate__log-line[data-state="ready"] .auth-gate__log-result {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-gate__verification {
  position: fixed;
  z-index: 3;
  top: var(--preflight-primary-top, 75%);
  left: 50%;
  width: 60px;
  height: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 320ms ease, visibility 0ms linear 320ms;
  pointer-events: none;
}

.auth-gate[data-primary-state="verifying"] .auth-gate__verification,
.auth-gate[data-primary-state="session-loading"] .auth-gate__verification {
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}

.auth-gate[data-primary-state="handoff"] .auth-gate__verification {
  opacity: 0;
  visibility: visible;
  transition-delay: 0ms;
}

.auth-gate__loader-track {
  position: relative;
  display: block;
  width: 60px;
  height: 6px;
  contain: layout paint;
}

.auth-gate__loader-circle,
.auth-gate__loader-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #000;
  backface-visibility: hidden;
  will-change: transform;
}

.auth-gate__loader-circle {
  z-index: 2;
  border-radius: 50%;
}

.auth-gate__loader-body {
  z-index: 1;
  left: 3px;
  width: 60px;
  transform: translate3d(0, 0, 0) scaleX(0.001);
  transform-origin: left center;
}

.auth-gate:is(
  [data-primary-state="verifying"],
  [data-primary-state="session-loading"],
  [data-primary-state="handoff"]
)
  .auth-gate__loader-circle--left {
  animation: auth-loader-move-left-circle 1.6s cubic-bezier(.65, 0, .35, 1) infinite;
}

.auth-gate:is(
  [data-primary-state="verifying"],
  [data-primary-state="session-loading"],
  [data-primary-state="handoff"]
)
  .auth-gate__loader-circle--right {
  animation: auth-loader-move-right-circle 1.6s cubic-bezier(.65, 0, .35, 1) infinite;
}

.auth-gate:is(
  [data-primary-state="verifying"],
  [data-primary-state="session-loading"],
  [data-primary-state="handoff"]
)
  .auth-gate__loader-body {
  animation: auth-loader-scale-body 1.6s cubic-bezier(.65, 0, .35, 1) infinite;
}

.auth-gate__log-line[data-state="error"] {
  color: #666b70;
}

.auth-gate__log-line[data-state="error"] .auth-gate__log-status {
  color: #a85252;
}

.auth-gate__log-line[data-state="error"] .auth-gate__log-result {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-gate__action[hidden] {
  display: none;
}

.auth-gate__action {
  position: fixed;
  z-index: 3;
  top: var(--preflight-primary-top, 75%);
  left: 50%;
  width: var(--preflight-primary-width, min(420px, calc(100vw - 40px)));
  height: var(--preflight-primary-height, clamp(72px, 9.8vmin, 88px));
  margin: 0;
  transform: translate(-50%, -50%);
  animation: auth-action-in 1520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-gate__button-slot {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  place-items: center;
}

.auth-gate__button-slot > .auth-gate__button {
  grid-area: 1 / 1;
}

.auth-gate__button {
  box-sizing: content-box;
  display: inline-flex;
  width: calc(100% - 64px);
  min-width: 180px;
  height: calc(100% - 72px);
  align-items: center;
  justify-content: center;
  padding: 0;
  border-style: solid;
  border-width: 32px;
  border-image-source: url("./rss/svg/9slice-box_m2.svg?release=1ab06ec4ffb09b19942a9b7c");
  border-image-slice: 16 fill;
  border-image-width: 16px;
  border-image-repeat: stretch;
  border-radius: 0;
  background: transparent;
  color: #24262a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.auth-gate__button--sizer {
  visibility: hidden;
  pointer-events: none;
}

.auth-gate__button--live:active:not(:disabled) {
  border-width: 30px;
  border-image-width: 16px;
  background: transparent;
}

.auth-gate__button:focus-visible,
.auth-session button:focus-visible {
  outline: 2px solid #2d86b7 !important;
  outline-offset: 3px !important;
}

.auth-gate__button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.auth-gate[data-state="complete"] .auth-gate__terminal {
  opacity: 0;
  transform: translateY(-10px);
  transition-delay: 0ms;
}

@keyframes auth-terminal-line-reveal {
  to { visibility: visible; }
}

@keyframes auth-terminal-character-reveal {
  to { visibility: visible; }
}

@keyframes auth-terminal-cursor-pass {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes auth-terminal-spinner-reveal {
  to { visibility: visible; }
}

@keyframes auth-terminal-dot-second {
  0%, 33.333% { visibility: hidden; }
  33.334%, 100% { visibility: visible; }
}

@keyframes auth-terminal-dot-third {
  0%, 66.666% { visibility: hidden; }
  66.667%, 100% { visibility: visible; }
}

@keyframes auth-loader-move-left-circle {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(4px, 0, 0); }
  50% { transform: translate3d(54px, 0, 0); }
  75% { transform: translate3d(12px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes auth-loader-move-right-circle {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(42px, 0, 0); }
  50% { transform: translate3d(54px, 0, 0); }
  75% { transform: translate3d(50px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes auth-loader-scale-body {
  0% { transform: translate3d(0, 0, 0) scaleX(0.001); }
  25% { transform: translate3d(4px, 0, 0) scaleX(0.6333333333); }
  50% { transform: translate3d(54px, 0, 0) scaleX(0.001); }
  75% { transform: translate3d(12px, 0, 0) scaleX(0.6333333333); }
  100% { transform: translate3d(0, 0, 0) scaleX(0.001); }
}

@keyframes auth-action-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.auth-session {
  position: fixed;
  z-index: 120;
  top: 16px;
  right: 16px;
  color: #dcebf4;
  font-family: "Noto Sans KR", sans-serif;
}

.auth-session__trigger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(122, 175, 207, 0.5);
  border-radius: 50%;
  background: transparent;
  color: #dcebf4;
}

.auth-session__avatar,
.auth-session__avatar img {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.auth-session__avatar {
  font-size: 13px;
  font-weight: 800;
}

.auth-session__avatar img {
  object-fit: cover;
}

.auth-session__menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 240px;
  overflow: hidden;
  border: 1px solid rgba(122, 175, 207, 0.34);
  border-radius: 0;
  background: #101923;
  box-shadow: none;
}

.auth-session__identity {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid rgba(122, 175, 207, 0.2);
}

.auth-session__identity strong,
.auth-session__identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-session__identity strong {
  color: #f4f7fb;
  font-size: 14px;
}

.auth-session__identity span {
  color: #8fa4b3;
  font-size: 12px;
}

.auth-session__sign-out,
.auth-session__withdraw {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dcebf4;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.auth-session__withdraw {
  border-top: 1px solid rgba(122, 175, 207, 0.14);
  color: #e5a7a7;
}

.auth-session__sign-out:active:not(:disabled),
.auth-session__withdraw:active:not(:disabled) {
  clip-path: inset(1px);
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate,
  .auth-gate__terminal {
    transition-duration: 0ms;
  }

  .auth-gate__action {
    animation-duration: 0ms;
  }

  .auth-gate__verification {
    transition-duration: 0ms;
  }

  .auth-gate__loader-circle,
  .auth-gate__loader-body {
    animation: none !important;
  }

  .auth-gate__loader-circle--left {
    transform: translate3d(0, 0, 0);
  }

  .auth-gate__loader-circle--right {
    transform: translate3d(54px, 0, 0);
  }

  .auth-gate__loader-body {
    transform: translate3d(0, 0, 0) scaleX(0.9);
  }

  .auth-gate__log-line,
  .auth-gate__log-character {
    visibility: visible;
    animation: none !important;
  }

  .auth-gate__log-character::after {
    display: none;
  }

  .auth-gate__log-dots {
    visibility: visible;
    animation: none !important;
  }

  .auth-gate__log-dots > span {
    visibility: visible;
    animation: none !important;
  }

  .ready-brand__logo,
  .ready-brand__character {
    transition-duration: 0ms;
  }

  .ready-brand__character,
  .ready-brand__character-strip {
    animation: none !important;
  }
}
