/* Hot Hands Casino account UI
   Loaded by index.html with: <link rel="stylesheet" href="auth.css">
   These selectors match the elements injected by auth.js.
*/

.hdr-r {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.hdr-r .bank { white-space: nowrap; }

#guestBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
  padding: 10px 12px;
  color: var(--muted, #cdb9a0);
  background: rgba(0, 0, 0, .48);
  border: 1px solid var(--gold-d, #a9792a);
  border-radius: 12px;
  font-size: 13px;
}
#guestBar[hidden] { display: none; }
#guestBar button {
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
}

#authModal,
#impModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(5, 2, 5, .82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
#authModal[hidden],
#impModal[hidden] { display: none; }

.abox {
  position: relative;
  width: min(100%, 440px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 28px 24px 22px;
  color: var(--ink, #f6efe0);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 194, 75, .13), transparent 55%),
    linear-gradient(145deg, #48121f, #21080f 72%);
  border: 2px solid var(--gold-d, #a9792a);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .72), 0 0 28px rgba(240, 194, 75, .12);
}
.abox h2 {
  margin: 0 34px 14px 0;
  color: var(--gold, #f0c24b);
  font: 700 26px/1.15 Georgia, "Times New Roman", serif;
}
.abox p {
  margin: 12px 0 4px;
  color: var(--muted, #cdb9a0);
  font-size: 13px;
}
.abox .x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  color: var(--ink, #f6efe0);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: none;
  font-size: 23px;
  line-height: 1;
}

.atabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 36px 20px 0;
  padding: 4px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(240, 194, 75, .22);
  border-radius: 13px;
}
.atabs button {
  min-width: 0;
  padding: 10px 8px;
  color: var(--muted, #cdb9a0);
  background: transparent;
  border-radius: 9px;
  box-shadow: none;
  font-size: 14px;
}
.atabs button.on {
  color: #2a1a05;
  background: var(--gold, #f0c24b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

#authModal form {
  display: grid;
  gap: 8px;
}
#authModal form[hidden] { display: none; }
#authModal label {
  margin-top: 7px;
  color: var(--gold, #f0c24b);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
#authModal input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--ink, #f6efe0);
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(240, 194, 75, .55);
  border-radius: 10px;
  outline: none;
  font: inherit;
}
#authModal input:focus {
  border-color: var(--gold, #f0c24b);
  box-shadow: 0 0 0 3px rgba(240, 194, 75, .18);
}
#authModal form button[type="submit"] {
  width: 100%;
  margin-top: 12px;
}
#authModal .hint {
  min-height: 17px;
  margin-top: -3px;
  color: var(--muted, #cdb9a0);
  font-size: 12px;
}
#authModal .hint.good { color: #8ee6a0; }
#authModal .hint.bad { color: #ff9b9b; }

#aMsg {
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  color: #ffaaaa;
  font-size: 13px;
  line-height: 1.45;
}
#aMsg:not(:empty) {
  padding: 10px 12px;
  background: rgba(130, 20, 30, .25);
  border: 1px solid rgba(255, 130, 130, .3);
  border-radius: 9px;
}
#aMsg.ok {
  color: #a5f0b2;
  background: rgba(30, 120, 60, .18);
  border-color: rgba(130, 230, 150, .3);
}

#impModal .abox { width: min(100%, 480px); }
#impModal .abox h2 { margin-right: 0; }
#impModal .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  border: 0;
}
#impModal .row button {
  flex: 1 1 150px;
  min-width: 0;
}
#impModal .row button.alt {
  color: var(--ink, #f6efe0);
  background: rgba(255, 255, 255, .13);
}

#authModal button:focus-visible,
#impModal button:focus-visible,
#guestBar button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .hdr-r { gap: 6px; }
  .hdr-r .bank { padding: 5px 9px; font-size: 13px; }
  .hdr-r #acctBtn { min-width: 0; padding: 9px 11px; font-size: 13px; }
  #guestBar { align-items: stretch; }
  #guestBar button { width: 100%; }
  .abox { padding: 24px 18px 18px; border-radius: 18px; }
  .atabs { margin-right: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  #authModal *, #impModal *, #guestBar * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
