/* ============================================================
   ZUG v2.5 — Tela de entrada repaginada (visível de longe!)
   Cada botão do menu tem cor e ícone próprios; modal com
   cabeçalho de faixa rosa. Carrega DEPOIS de auth.css.
   ============================================================ */

/* ---------- Menu principal: um cartão de vidro segura os botões ---------- */
.ks-main-menu {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  padding: 18px 16px !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px rgba(30, 10, 40, 0.35);
}

/* Botões: cores e ícones próprios */
.ks-menu-btn {
  border: 3px solid #ffffff;
  border-radius: 22px;
  min-height: 60px;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 2px 3px rgba(60, 10, 40, 0.35);
}
.ks-menu-btn::before {
  font-size: 1.25em;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

/* Continuar = dourado (ação principal) */
.ks-menu-btn[data-panel='login'] {
  background: linear-gradient(180deg, #ffe082 0%, #ffb83d 55%, #f29a18 100%);
  box-shadow: 0 6px 0 #c47a10, 0 10px 22px rgba(120, 70, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}
.ks-menu-btn[data-panel='login']::before { content: '▶'; font-size: 0.95em; }

/* Novo jogo = rosa */
.ks-menu-btn[data-panel='register'] {
  background: linear-gradient(180deg, #ff9ec0 0%, #f06292 55%, #d8487e 100%);
  box-shadow: 0 6px 0 #b73a68, 0 10px 22px rgba(120, 30, 70, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.ks-menu-btn[data-panel='register']::before { content: '✨'; }

/* Visitante = azul céu */
.ks-menu-btn[data-panel='guest'] {
  background: linear-gradient(180deg, #7fc4f8 0%, #429ce8 55%, #2f7fc4 100%);
  box-shadow: 0 6px 0 #25649c, 0 10px 22px rgba(20, 70, 120, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.ks-menu-btn[data-panel='guest']::before { content: '🐾'; }

/* Opções = lilás */
.ks-menu-btn[data-panel='settings'] {
  background: linear-gradient(180deg, #c5a3f7 0%, #9a6ee0 55%, #7e54c4 100%);
  box-shadow: 0 6px 0 #5f3d99, 0 10px 22px rgba(70, 30, 120, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.ks-menu-btn[data-panel='settings']::before { content: '⚙️'; font-size: 1em; }

.ks-menu-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.02);
}
.ks-menu-btn:active {
  transform: translateY(4px) scale(0.99);
  filter: brightness(0.96);
}
.ks-menu-btn.is-selected {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
  transform: scale(1.04);
}

/* ---------- Modal: cabeçalho de faixa rosa ---------- */
.ks-modal-sheet {
  border: 3px solid #f08bb4;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff7fa 0%, #fff1e6 100%);
  box-shadow: 0 20px 50px rgba(80, 25, 50, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.ks-modal-sheet > h2,
.ks-modal-sheet h2:first-of-type {
  background: linear-gradient(180deg, #ff9ec0, #ee5f93);
  color: #fff !important;
  margin: -1px -1px 14px;
  padding: 14px 20px;
  border-radius: 0 0 18px 18px;
  text-shadow: 0 2px 3px rgba(120, 20, 60, 0.4);
  letter-spacing: 0.02em;
}
.ks-modal-close {
  background: #fff;
  border: 2px solid #f08bb4;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #d8487e;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(120, 30, 70, 0.3);
  transition: transform 0.12s ease;
}
.ks-modal-close:hover { transform: rotate(90deg); }

/* Inputs fofos */
.ks-modal-sheet input[type='text'],
.ks-modal-sheet input[type='email'],
.ks-modal-sheet input[type='password'] {
  border: 2.5px solid #f3c3d6 !important;
  border-radius: 16px !important;
  background: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ks-modal-sheet input:focus {
  border-color: #ee5f93 !important;
  box-shadow: 0 0 0 4px rgba(244, 143, 181, 0.3) !important;
  outline: none;
}

/* CTA dourado 3D */
.gbtn-primary {
  background: linear-gradient(180deg, #ffe082 0%, #ffb83d 60%, #f29a18 100%) !important;
  border: 3px solid #fff !important;
  border-radius: 18px !important;
  color: #6b4500 !important;
  font-weight: 900 !important;
  font-size: 1.05em !important;
  min-height: 52px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 0 #c47a10, 0 9px 18px rgba(120, 70, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.65) !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.12s ease !important;
}
.gbtn-primary:hover { filter: brightness(1.06); }
.gbtn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c47a10, 0 3px 6px rgba(120, 70, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.65) !important;
}
.gbtn-outline {
  border: 2.5px solid #f08bb4 !important;
  border-radius: 16px !important;
  color: #c23f6d !important;
  background: #fff !important;
  font-weight: 800 !important;
}
.gbtn-outline:active { transform: scale(0.96); }

/* Erros amigáveis */
.auth-form-error,
.auth-error {
  border-radius: 14px;
  font-weight: 700;
}

/* Esqueci minha senha */
.auth-forgot-link {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  background: none;
  border: 0;
  color: #c23f6d;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}
.auth-forgot-link:hover { color: #ee5f93; }
.auth-forgot-hint {
  font-size: 0.85rem;
  color: #9c5f77;
  line-height: 1.45;
  margin: 0 0 6px;
}
.auth-forgot-ok {
  background: #e8f7ec;
  border: 1.5px solid #9fd9ad;
  color: #2f8f4d;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Login compacto: mantém o cenário visível e um único fluxo por vez. */
.ks-modal-sheet:has(.auth-login-panel.is-active) {
  width: min(390px, calc(100% - 20px));
  max-height: min(82dvh, 680px);
  padding: 16px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.auth-panel-hero {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  margin: -16px -18px 16px;
  padding: 12px 56px 12px 18px;
  background: linear-gradient(180deg, #ff9ec0 0%, #ee5f93 100%);
  border-radius: 0 0 20px 20px;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(158, 39, 88, .18);
}
.auth-panel-paw {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  font-size: 21px;
}
.auth-panel-copy { min-width: 0; }
.auth-panel-hero .panel-title {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 1.25rem;
  line-height: 1.1;
}
.auth-panel-hero p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.9);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}
.auth-login-panel .game-form { gap: 11px; }
.auth-login-panel .game-form input { min-height: 48px; }
.auth-login-panel .gbtn-primary { min-height: 48px; }
.auth-social { margin-top: 10px; }
.auth-social[hidden],
.auth-forgot-form[hidden],
.auth-provider[hidden],
.auth-google-official[hidden] { display: none !important; }
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 9px;
  color: #a47b8b;
  font-size: 11px;
}
.auth-social-divider span { flex: 1; height: 1px; background: #ecc8d6; }
.auth-social-divider b { font-weight: 800; }
.auth-google-official {
  display: flex;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 8px;
  overflow: hidden;
}
.auth-provider {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(55,45,65,.18);
}
.auth-provider:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(55,45,65,.18); }
.auth-provider-google { background: #fff; border: 2px solid #ded6dc; color: #493b43; }
.auth-provider-google-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font: 900 18px/1 Arial,sans-serif;
}
.auth-provider-facebook { background: linear-gradient(180deg,#3188f5,#1877f2); color: #fff; }
.auth-forgot-form { gap: 11px !important; }

@media (max-width: 480px) {
  .ks-modal { padding: 10px; }
  .ks-modal-sheet:has(.auth-login-panel.is-active) { max-height: 84dvh; }
  .auth-panel-hero { min-height: 62px; }
}
