/* The authentication gate shares the approved common91 boot identity and
   lobby typography. Keep this independent of the scaled table viewport. */
body[data-view=auth] {
  background:#0c0c0e;
  color:#ededf0;
}
body[data-view=auth] > .app-header { display:none; }
body[data-view=auth] > #app { overflow-y:auto; overscroll-behavior:contain; }
#auth-view.auth-view {
  display:flex;
  flex:1 0 auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
  max-width:none;
  min-height:100%;
  margin:0;
  padding:calc(56px + var(--safe-top,0px)) 24px calc(72px + var(--safe-bottom,0px));
  box-sizing:border-box;
  background:radial-gradient(ellipse at 50% 40%,#ffffff05,transparent 60%),#0c0c0e;
  text-align:center;
  font-family:NastyLobbyUI,'Noto Sans KR','Malgun Gothic',sans-serif;
  font-synthesis:none;
}
#auth-view .auth-brand {
  display:block;
  flex:none;
  width:min(82vw,380px);
  height:auto;
  margin:0 0 48px;
  object-fit:contain;
}
#auth-view .auth-content { width:min(100%,336px); }
#auth-view h1 {
  margin:0;
  color:#ededf0;
  font-size:22px;
  font-weight:600;
  line-height:1.5;
  letter-spacing:-.4px;
  word-break:keep-all;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
#auth-view #auth-copy {
  margin:14px 0 28px;
  color:#a9aaaf;
  font-size:14px;
  font-weight:400;
  line-height:1.8;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
#auth-view :is(button,.button) {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:50px;
  margin:0;
  padding:12px 16px;
  border:1px solid #66666b;
  border-radius:2px;
  background:linear-gradient(#55555b,#414146);
  box-shadow:inset 0 1px #ffffff09;
  color:#f2f2f4;
  font:500 16px/1.5 NastyLobbyUI,'Noto Sans KR','Malgun Gothic',sans-serif;
  text-decoration:none;
  box-sizing:border-box;
  touch-action:manipulation;
}
#auth-view :is(button,.button):hover { background:linear-gradient(#606066,#4b4b50); }
#auth-view :is(button,.button):active { background:#353539; }
#auth-view :is(button,a,input):focus-visible { outline:2px solid #e8e9ec; outline-offset:4px; }
#auth-view #auth-normal-lobby {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:10px 0 0;
  padding:6px 10px;
  border:0;
  background:none;
  color:#a9aaaf;
  font-size:14px;
  font-weight:400;
  text-decoration:underline;
  text-underline-offset:4px;
}
#auth-view form { display:grid; gap:12px; margin:0; text-align:left; }
#auth-view form label { color:#c8c8cd; font-size:14px; font-weight:400; }
#auth-view form input {
  width:100%;
  min-width:0;
  min-height:48px;
  padding:11px 13px;
  border:1px solid #49494f;
  border-radius:2px;
  background:#1b1b1f;
  color:#ededf0;
  font:400 16px/1.5 NastyLobbyUI,'Noto Sans KR','Malgun Gothic',sans-serif;
  box-sizing:border-box;
}
#auth-view form small { color:#7f8086; font-size:12px; }
#auth-view form:not([hidden]) ~ #auth-retry { margin-top:14px; }
#auth-view .auth-content:has(#auth-retry[data-device-continue=true]:not([hidden])) #telegram-open { display:none; }
@media(min-width:900px) {
  #auth-view.auth-view { padding-top:64px; padding-bottom:100px; }
  #auth-view .auth-brand { width:min(50vw,460px); margin-bottom:56px; }
  #auth-view .auth-content { width:360px; max-width:100%; }
  #auth-view h1 { font-size:24px; }
  #auth-view #auth-copy { font-size:15px; }
}
@media(max-width:350px) {
  #auth-view.auth-view { padding-left:20px; padding-right:20px; }
  #auth-view h1 { font-size:20px; }
}
/* Let the page scroll when a keyboard or a short landscape window opens. */
@media(max-height:560px) {
  #auth-view.auth-view { justify-content:flex-start; padding-top:calc(28px + var(--safe-top,0px)); padding-bottom:calc(28px + var(--safe-bottom,0px)); }
  #auth-view .auth-brand { width:min(60vw,280px); margin-bottom:28px; }
}
