body.auth-pending,
body.auth-locked {
  min-height: 100vh;
}

body.auth-pending .page-shell,
body.auth-locked .page-shell {
  display: none;
}

.auth-gate {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(251, 247, 241, 0.92), rgba(255, 253, 249, 0.86)),
    radial-gradient(circle at 20% 18%, rgba(197, 111, 69, 0.16), transparent 32%),
    radial-gradient(circle at 82% 74%, rgba(80, 125, 114, 0.14), transparent 30%);
}

body.auth-pending .auth-gate,
body.auth-locked .auth-gate {
  display: grid;
}

.auth-panel {
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid rgba(146, 123, 101, 0.22);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 24px 70px rgba(74, 54, 32, 0.14);
}

.auth-kicker {
  margin: 0 0 14px;
  color: #ae5d36;
  font-size: 14px;
  font-weight: 800;
}

.auth-panel h1 {
  margin: 0;
  color: #2c241d;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
}

.auth-copy {
  margin: 14px 0 0;
  color: #746456;
  font-size: 16px;
  line-height: 1.65;
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.auth-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
}

.auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-button.is-kakao {
  background: #fee500;
  color: #191600;
}

.auth-button.is-apple {
  background: #111111;
  color: #ffffff;
}

.auth-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #746456;
  font-size: 14px;
  line-height: 1.55;
}

.auth-message.is-error {
  color: #a34d35;
}

.auth-session {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 36px);
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(146, 123, 101, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 12px 30px rgba(74, 54, 32, 0.1);
  color: #746456;
  font-size: 13px;
  font-weight: 700;
}

.auth-session button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f4e5d8;
  color: #8b4f32;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .auth-gate {
    padding: 18px;
  }

  .auth-panel {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .auth-panel h1 {
    font-size: 28px;
  }

  .auth-session {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
  }
}
