body:has(#welcome:not([hidden])) .top { display: none; }
body:has(#welcome:not([hidden])) main {
  display: grid;
  align-content: center;
  width: min(69rem, calc(100% - 2rem));
  padding-block: clamp(1.2rem,4vw,4rem);
}
#welcome.welcome {
  grid-template-columns: minmax(0,1.16fr) minmax(0,1fr);
  align-items: stretch;
  gap: 0;
  min-height: 37rem;
  border: 1px solid #8f775342;
  border-radius: 1.45rem;
  background: #111f1a;
  box-shadow: 0 1.5rem 4.5rem #060e0b85;
}
.casino-entrance {
  position: relative;
  display: grid;
  align-content: end;
  padding: clamp(1.5rem,4vw,3rem);
  border-radius: 1.4rem 0 0 1.4rem;
  background: linear-gradient(0deg,#0a100dec 1%,#0a100d00 49%),
    #171d15 url("/assets/casino-entrance.webp") center 57% / cover no-repeat;
}
.casino-wordmark { padding-inline-end: 3rem; }
.casino-wordmark h1 { color: #fff2d9; font-size: clamp(2.65rem,5.4vw,4.7rem); letter-spacing: -.02em; }
.house-chip { position: absolute; inset-inline-end: 1.15rem; bottom: 1.15rem; }
.house-chip summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 2px dashed #f6d396;
  border-radius: 50%;
  background: #773132;
  color: #fff0cd;
  font-size: 1.15rem;
  cursor: pointer;
}
.house-chip summary::-webkit-details-marker { display: none; }
.house-chip[open] summary, .house-chip summary:hover { background: #9b4844; }
.house-chip p {
  position: absolute;
  z-index: 1;
  bottom: calc(100% + .45rem);
  inset-inline-end: 0;
  width: max-content;
  max-width: min(13rem, 60vw);
  margin: 0;
  padding: .55rem .75rem;
  border: 1px solid #ac8c58;
  border-radius: .7rem;
  background: #211b16;
  color: #fff1d6;
  font-size: .84rem;
}
#welcome.welcome .auth {
  align-self: center;
  width: min(100%, 32rem);
  justify-self: center;
  padding: clamp(1.5rem,4.4vw,3.65rem);
  border: 0;
  background: transparent;
}
#welcome #auth-title { margin-bottom: 1.65rem; color: #fff4df; font-size: clamp(2.1rem,4vw,3.3rem); }
#welcome :is(#auth-form,#reset-form) { gap: .95rem; }
#welcome .auth label { color: #f3e7d1; font-size: .87rem; font-weight: 650; }
#welcome .auth input {
  min-height: 2.9rem;
  border-color: #61776d;
  background: #0b1713;
  font-size: 1rem;
}
#welcome .auth-password { display: grid; gap: .6rem; }
#welcome .auth-password > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; }
#welcome .auth-password button { width: 5.6rem; margin: 0; padding-inline: .5rem; font-size: .82rem; }
#welcome :is(#password-help,#reset-help) { color: #c0c9bb; }
#welcome .auth button[type="submit"] {
  min-height: 3.05rem;
  background: #e8c482;
  color: #211a0d;
  font-weight: 800;
}
#welcome .auth button[type="submit"]:hover { background: #f5d69d; }
#welcome .auth button[type="submit"]:disabled { opacity: .8; }
#auth-help { margin-top: .85rem; color: #c0c9bb; font-size: .86rem; }
#auth-help summary { width: fit-content; color: #e8ca91; cursor: pointer; }
#auth-help p { margin: .4rem 0 0; }
#welcome .access-tabs { margin-top: 1.2rem; padding-top: .85rem; border-top: 1px solid #788e7844; }
#welcome .access-tabs button {
  width: auto;
  max-width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: .3rem 0;
  border: none;
  color: #e8ca91;
  font-size: .88rem;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .24em;
}
#welcome .access-tabs button:hover { color: #fff2d9; }
#welcome :is(.auth-notice,#invite-target) {
  margin: 0;
  padding: .6rem .75rem;
  border: 1px solid #b08b554f;
  border-radius: .6rem;
  background: #2b251b;
  color: #ffe2a8;
  font-size: .85rem;
}
#welcome #invite-target { margin-bottom: .9rem; }
@media (max-width: 48rem) {
  body:has(#welcome:not([hidden])) main { align-content: start; width: min(30rem, calc(100% - 1.5rem)); }
  #welcome.welcome { grid-template-columns: 1fr; min-height: 0; }
  .casino-entrance { min-height: 8.75rem; padding: 1rem 1.15rem; border-radius: 1.4rem 1.4rem 0 0; background-position: center 58%; }
  .casino-wordmark h1 { font-size: clamp(2.15rem,9vw,3.2rem); }
  .house-chip { bottom: .8rem; inset-inline-end: .8rem; }
  #welcome #auth-title { margin-bottom: 1.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  #club.auth-enter:not([hidden]) { animation: auth-arrival .26s ease-out; }
  @keyframes auth-arrival { from { opacity: 0; } }
}
.wallet-summary { display: grid; gap: .2rem; }
.wallet-summary small { color: var(--subtle); }
.next-step { padding: .65rem .85rem; min-height: 2.6rem; border: 1px solid #718b70; border-radius: .45rem; font-weight: 700; background: #1b3428; color: #f8edcc; }
.quick-rules { margin: .6rem 0 .8rem; }
.quick-rules summary { cursor: pointer; color: var(--gold); }
.quick-rules ol { list-style: decimal; padding-inline-start: 1.5rem; color: var(--subtle); }
.quick-rules li { padding: .15rem 0; }
.first-help, .game-status { margin: .45rem 0 .85rem; padding: .5rem .7rem; border-left: 2px solid var(--gold); color: var(--subtle); }
.field-placed:not(:empty) { display: block; color: #daffe5; font-size: .72rem; margin-top: .15rem; }
.field-chips:not(:empty) { z-index: 1; min-width: 1rem; outline: 1px solid #392713; }
.result-explanation { display: block; margin-top: .45rem; }
@media (max-width: 58rem) {
  #poker-actions, #blackjack-actions { gap: .55rem; }
  #poker-actions button, #blackjack-actions button { min-height: 2.75rem; }
  #poker-actions button:first-child, #blackjack-actions button:first-child { margin-inline-end: .3rem; }
  .next-step { padding: .55rem .7rem; }
}
#poker-actions .all-in-action { margin-inline-start: .5rem; border-color: #ad7470; background: #653737; color: #fff0df; }
.field-key { margin: .2rem 0 .5rem; font-size: .9rem; }
#roulette-next-bet { margin-bottom: .55rem; }
.poker-board-label { display: block; font-size: .78rem; margin: .35rem 0 0; color: #f5ead1; }
.mobile-actions .game-status { margin: .35rem 0; }
