/* Game-board layout helpers that are not covered by Basecoat / Tailwind utilities. */

.bj-table {
  min-height: 70vh;
  background:
    radial-gradient(ellipse at center, rgba(18, 122, 79, 0.55), transparent 60%),
    linear-gradient(180deg, #0a3d28 0%, #062418 100%);
}

.bj-hand,
.hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-end;
  justify-content: center;
}

.bj-hand img,
.bj-hand svg,
.hand-playing-card,
.player-playing-card,
.dealer-playing-card {
  width: 4.25rem;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .bj-hand img,
  .bj-hand svg,
  .hand-playing-card,
  .player-playing-card,
  .dealer-playing-card {
    width: 5rem;
  }
}

.bj-controls,
.bj-rail {
  backdrop-filter: blur(8px);
  background: rgba(6, 36, 24, 0.72);
}

.logo-font {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
}

/* Legacy game overlay shells (formerly Cody modal/drawer), restyled lightly */
.td-drawer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  transform: translateY(110%);
  transition: transform 0.25s ease;
  background: rgba(6, 36, 24, 0.96);
  color: #fff;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  max-height: 85vh;
  overflow: auto;
}
.td-drawer--is-visible { transform: translateY(0); }
.td-drawer__body { padding: 1rem; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem;
}
.modal.modal--is-visible,
.modal.js-modal.modal--is-visible { display: flex; }
.modal__content,
.modal [class*="modal__content"] {
  background: #fff;
  color: #111;
  border-radius: 0.75rem;
  max-width: 36rem;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1rem;
}

.profile-picture {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.375rem;
}
