/* ==========================================================================
   FREE CASINO ONLINE · Blackjack
   ========================================================================== */

.bj-app {
  min-height: 100vh;
  min-height: 100dvh;
}

.bj-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: calc(100vh - var(--fc-header-h) - 2px);
  min-height: calc(100dvh - var(--fc-header-h) - 2px);
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* --------------------------------------------------------------------------
   Panel de apuestas
   -------------------------------------------------------------------------- */
.bj-panel {
  order: 0;
  flex: 0 0 372px;
  width: 372px;
  max-height: calc(100vh - var(--fc-header-h) - 36px);
  max-height: calc(100dvh - var(--fc-header-h) - 36px);
  margin: 18px 0 18px 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border: 1px solid var(--fc-line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 100% 32% at 50% 0%, rgba(232, 191, 98, 0.08), transparent 68%),
    linear-gradient(158deg, rgba(9, 35, 21, 0.96) 0%, rgba(4, 18, 11, 0.95) 58%, rgba(3, 14, 9, 0.97) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 230, 162, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 191, 98, 0.28) transparent;
}

.bj-panel::-webkit-scrollbar {
  width: 6px;
}

.bj-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(232, 191, 98, 0.26);
}

.bj-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(246, 216, 128, 0.12);
}

.bj-panel-title {
  min-width: 0;
}

.bj-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bj-stake {
  font-family: var(--fc-display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--fc-gold);
  white-space: nowrap;
}

.bj-bet-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bj-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bj-chip-row .fc-chip {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  font-size: 17px;
}

.bj-bet-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(246, 216, 128, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 130% at 50% 0%, rgba(232, 191, 98, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.18);
}

.bj-bet-display > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--fc-muted-soft);
}

.bj-bet-display strong {
  font-family: var(--fc-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--fc-gold-bright);
  font-variant-numeric: tabular-nums;
}

.bj-bet-display strong small {
  font-family: var(--fc-body);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--fc-muted-soft);
}

.bj-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bj-actions[hidden] {
  display: none !important;
}

.bj-actions--bet {
  grid-template-columns: 1.5fr 1fr;
}

.bj-actions--play {
  grid-template-columns: 1fr 1fr;
}

.bj-actions--insurance {
  grid-template-columns: 1fr 1fr;
  padding: 12px;
  border: 1px solid rgba(232, 191, 98, 0.22);
  border-radius: 14px;
  background: rgba(232, 191, 98, 0.04);
}

.bj-insurance-copy {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 10px;
  line-height: 1.5;
  color: #c9c1ae;
}

.bj-insurance-copy strong {
  color: var(--fc-gold-bright);
}

.bj-btn {
  min-height: 46px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 216, 128, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 90% 140% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.025);
  color: #f5edda;
  font-family: var(--fc-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.22s var(--fc-ease),
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease;
}

.bj-btn:hover:not(:disabled) {
  border-color: rgba(255, 230, 162, 0.55);
  background:
    radial-gradient(ellipse 90% 140% at 50% 0%, rgba(232, 191, 98, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.bj-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.995);
}

.bj-btn:disabled {
  opacity: 0.36;
  cursor: default;
}

.bj-btn--primary {
  border-color: rgba(255, 240, 184, 0.55);
  background: linear-gradient(135deg, #ffe9a3 0%, #e3b454 48%, #bd8626 100%);
  color: #1d1304;
  box-shadow:
    0 14px 30px rgba(198, 146, 43, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bj-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fff0b8 0%, #ecc05f 48%, #c78f2b 100%);
  color: #1d1304;
  border-color: rgba(255, 245, 205, 0.8);
}

.bj-btn--ghost {
  color: var(--fc-muted);
  border-color: rgba(246, 216, 128, 0.14);
  background: transparent;
}

.bj-btn--wide {
  grid-column: 1 / -1;
}

.bj-message {
  min-height: 18px;
  margin: -2px 2px 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #b9b19d;
}

.bj-hands {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bj-hand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(246, 216, 128, 0.1);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 9.5px;
  color: #b7ae99;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.bj-hand.is-active {
  border-color: rgba(232, 191, 98, 0.5);
  background: rgba(232, 191, 98, 0.07);
}

.bj-hand-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--fc-muted-soft);
}

.bj-hand.is-active .bj-hand-label {
  color: var(--fc-gold-bright);
}

.bj-hand-cards {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--fc-body);
  font-size: 9px;
  color: #d9d0bb;
}

.bj-hand-total {
  flex: 0 0 auto;
  font-family: var(--fc-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--fc-gold-bright);
}

.bj-hand.is-bust .bj-hand-total {
  color: #ff9a8f;
}

.bj-rules {
  margin-top: 2px;
  border-top: 1px solid rgba(246, 216, 128, 0.1);
  padding-top: 11px;
  font-size: 9px;
  line-height: 1.55;
  color: #8d8677;
}

.bj-rules summary {
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--fc-gold);
  opacity: 0.8;
  list-style: none;
}

.bj-rules summary::-webkit-details-marker {
  display: none;
}

.bj-rules summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  font-size: 13px;
  line-height: 1;
  color: var(--fc-gold);
}

.bj-rules[open] summary::before {
  content: "−";
}

.bj-rules ul {
  margin: 9px 0 0;
  padding: 0 0 0 16px;
}

.bj-rules li {
  margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   Mesa 3D
   -------------------------------------------------------------------------- */
.bj-stage {
  order: 1;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 18px 18px 8px;
  display: flex;
}

.bj-table {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(246, 216, 128, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 66% 58% at 50% 48%, rgba(18, 105, 61, 0.24), transparent 72%),
    linear-gradient(180deg, #05160d 0%, #04110a 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(0, 0, 0, 0.48);
}

.bj-table::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 70% at 50% 46%, transparent 48%, rgba(1, 7, 4, 0.34) 100%),
    linear-gradient(180deg, rgba(1, 7, 4, 0.34) 0%, transparent 16%, transparent 82%, rgba(1, 7, 4, 0.34) 100%);
}

#bj-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: pan-y;
}

.bj-head {
  position: absolute;
  top: clamp(14px, 2.2vh, 24px);
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.bj-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 5;
  padding: 6px 10px 5px;
  border: 1px solid rgba(246, 216, 128, 0.2);
  border-radius: 999px;
  background: rgba(4, 18, 11, 0.62);
  color: var(--fc-muted);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  white-space: nowrap;
  pointer-events: none;
}

.bj-scores {
  position: absolute;
  inset: 82px 24px 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.bj-score {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  padding: 10px 16px 9px;
  border: 1px solid rgba(246, 216, 128, 0.2);
  border-radius: 16px;
  background: rgba(4, 18, 11, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.bj-score span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--fc-muted-soft);
}

.bj-score strong {
  font-family: var(--fc-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--fc-gold-bright);
  font-variant-numeric: tabular-nums;
}

.bj-score--player {
  align-self: flex-end;
  margin-bottom: 6px;
}

.bj-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  transform: translate(-50%, -50%) translateY(10px) scale(0.96);
  max-width: min(84%, 520px);
  padding: 14px 24px 13px;
  border: 1px solid rgba(255, 230, 162, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(232, 191, 98, 0.18), transparent 70%),
    rgba(4, 18, 11, 0.88);
  color: var(--fc-gold-bright);
  font-family: var(--fc-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    opacity 0.25s ease,
    transform 0.4s var(--fc-ease),
    visibility 0s linear 0.25s;
}

.bj-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0) scale(1);
  transition:
    opacity 0.2s ease,
    transform 0.4s var(--fc-ease),
    visibility 0s linear 0s;
}

.bj-toast[data-tone="win"] {
  color: #fff0bb;
  border-color: rgba(255, 230, 162, 0.62);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.48),
    0 0 50px rgba(232, 191, 98, 0.16);
}

.bj-toast[data-tone="loss"] {
  color: #ffc2b6;
  border-color: rgba(214, 59, 59, 0.45);
}

.bj-toast[data-tone="push"] {
  color: #cfd8d0;
  border-color: rgba(200, 214, 205, 0.3);
}

.bj-loading {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(4, 16, 10, 0.88);
  color: var(--fc-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.24em;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.bj-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.bj-loading-ring {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(232, 191, 98, 0.16);
  border-top-color: var(--fc-gold);
  border-radius: 50%;
  animation: bj-spin 0.9s linear infinite;
}

@keyframes bj-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .bj-panel {
    flex-basis: 338px;
    width: 338px;
    padding: 17px;
  }

  .bj-chip-row .fc-chip {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .bj-main {
    flex-direction: column;
    min-height: 0;
  }

  .bj-stage {
    order: 1;
    flex: 0 0 auto;
    height: clamp(330px, 53vh, 520px);
    padding: 8px 10px 0;
  }

  .bj-table {
    min-height: 0;
    border-radius: 22px;
  }

  .bj-panel {
    order: 2;
    flex: 0 0 auto;
    width: calc(100% - 20px);
    max-height: none;
    margin: 10px auto 24px;
    padding: 18px;
    border-radius: 20px;
    overflow: visible;
    animation: fc-fade-in 0.5s var(--fc-ease) both;
  }

  .bj-head {
    top: 14px;
    left: 50%;
  }

  .bj-badge {
    top: 16px;
    right: 16px;
    font-size: 6.5px;
  }

  .bj-scores {
    inset: 68px 16px 14px;
  }

  .bj-score {
    padding: 7px 11px 6px;
  }

  .bj-score span {
    font-size: 7px;
  }

  .bj-score strong {
    font-size: 32px;
  }

  .bj-score--player {
    margin-bottom: 0;
  }

  .bj-toast {
    padding: 10px 16px 9px;
    font-size: clamp(20px, 6vw, 28px);
  }
}

@media (max-width: 700px) {
  .bj-stage {
    height: clamp(310px, 50vh, 460px);
  }

  .bj-panel {
    width: calc(100% - 20px);
    margin-top: 8px;
    padding: 16px 14px;
    gap: 12px;
  }

  .bj-panel-head {
    padding-bottom: 11px;
  }

  .bj-chip-row .fc-chip {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    min-width: 0;
    aspect-ratio: 1 / 1;
  }

  .bj-btn {
    min-height: 44px;
    font-size: 17px;
  }

  .bj-badge {
    display: none;
  }
}

@media (max-width: 390px) {
  .bj-panel {
    padding: 14px 12px;
  }

  .bj-chip-row .fc-chip {
    width: 39px;
    height: 39px;
    min-width: 0;
    aspect-ratio: 1 / 1;
    font-size: 14px;
  }

  .bj-btn {
    font-size: 16px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-loading-ring {
    animation-duration: 2s;
  }
}

.bj-hand-status {
  flex: 0 0 auto;
  padding: 3px 6px 2px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--fc-muted);
  background: rgba(255, 255, 255, 0.05);
}

.bj-hand-status[data-result="win"],
.bj-hand-status[data-result="blackjack"] {
  color: #1b1305;
  background: linear-gradient(135deg, #ffe9a3, #d8ad55);
}

.bj-hand-status[data-result="lose"] {
  color: #ffc0b7;
  background: rgba(182, 43, 56, 0.22);
}

.bj-hand-status[data-result="push"] {
  color: #d5cfbf;
  background: rgba(255, 255, 255, 0.07);
}

.bj-hand-status[data-result="surrender"] {
  color: #c7bda8;
  background: rgba(232, 191, 98, 0.08);
}

.bj-chip-row .fc-chip:disabled {
  opacity: 0.34;
  filter: grayscale(0.35);
  cursor: default;
}

.bj-chip-row .fc-chip:disabled:hover {
  transform: none;
  filter: grayscale(0.35);
}

/* Cámara ------------------------------------------------------------------ */
.bj-cam {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 9;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(246, 216, 128, 0.28);
  border-radius: 50%;
  background: rgba(3, 20, 12, 0.78);
  color: var(--fc-gold);
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 240, 184, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--fc-ease);
}

.bj-cam svg {
  width: 22px;
  height: 22px;
}

.bj-cam:hover {
  border-color: rgba(246, 216, 128, 0.58);
  background: rgba(10, 36, 22, 0.9);
  transform: translateY(-1px);
}

.bj-cam:active {
  transform: translateY(0) scale(0.97);
}

.bj-cam:focus-visible {
  outline: 2px solid rgba(246, 216, 128, 0.6);
  outline-offset: 2px;
}

/* La mesa no tiene bote flotante que ocultar; el marcador se mantiene. */


/* Móvil: acciones fijas, sin scroll y cámara junto a la mesa ---------------- */
@media (max-width: 900px) {
  .bj-panel {
    animation: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    padding-bottom: 94px;
  }

  .bj-panel .fc-bet-title {
    font-size: 23px;
  }

  .bj-bet-block.is-locked {
    display: none;
  }

  .bj-actions--bet,
  .bj-actions--play,
  .bj-actions--insurance,
  .bj-actions--result {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    gap: 6px;
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(246, 216, 128, 0.18);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(4, 18, 10, 0.94), rgba(2, 10, 6, 0.99));
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .bj-actions[hidden] {
    display: none !important;
  }

  .bj-actions--bet {
    grid-template-columns: 1.5fr 1fr;
  }

  .bj-actions--play {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bj-actions--play .bj-btn--wide {
    grid-column: auto;
  }

  .bj-actions--insurance {
    grid-template-columns: 1fr 1fr;
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
  }

  .bj-actions--result {
    grid-template-columns: 1fr;
  }

  .bj-actions .bj-btn {
    min-height: 44px;
    padding: 0 4px;
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .bj-insurance-copy {
    font-size: 8px;
    line-height: 1.35;
    margin: 0 0 1px;
  }

  .bj-cam {
    left: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
  }

  .bj-cam svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 700px) {
  .bj-panel .fc-bet-title {
    font-size: 21px;
  }

  .bj-cam {
    left: 8px;
    bottom: 8px;
    width: 40px;
    height: 40px;
  }

  .bj-cam svg {
    width: 19px;
    height: 19px;
  }

  .bj-actions .bj-btn {
    min-height: 42px;
  }
}

/* Cartas del crupier y de la mano en el panel ------------------------------ */
.bj-panel [hidden] {
  display: none !important;
}

.bj-cards-panel {
  --bj-card-w: 54px;
  display: flex;
  flex-direction: column;
}

.bj-card-section {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(246, 216, 128, 0.11);
}

.bj-card-section:last-child {
  border-bottom: 0;
}

.bj-cards-panel .fc-bet-title {
  margin: 0 0 7px;
  font-size: 27px;
  line-height: 0.9;
}

.bj-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  min-height: 0;
}

.bj-card-label {
  flex: 0 0 var(--bj-card-w);
  width: var(--bj-card-w);
  height: calc(var(--bj-card-w) * 1.5);
  min-width: 0;
  padding: 4px 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 240, 184, 0.46);
  border-radius: 8px;
  background: linear-gradient(160deg, #fffdf6, #f1e7d2);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.26);
  color: #171a17;
  font-family: var(--fc-display);
  font-size: 26px;
  line-height: 1;
}

.bj-card-label i {
  font-style: normal;
  font-family: var(--fc-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.bj-card-label.is-red,
.bj-card-label.is-red i {
  color: #b3263b;
}

.bj-card-label.is-back {
  position: relative;
  overflow: hidden;
  border-color: rgba(246, 216, 128, 0.28);
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 216, 128, 0.12), transparent 44%),
    repeating-linear-gradient(45deg, rgba(246, 216, 128, 0.07) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, #0b3a22, #03130a);
  color: transparent;
  box-shadow:
    inset 0 0 0 3px rgba(246, 216, 128, 0.06),
    0 5px 12px rgba(0, 0, 0, 0.26);
}

.bj-card-label.is-back::after {
  content: "♠";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fc-gold);
  font-family: var(--fc-body);
  font-size: 20px;
  opacity: 0.55;
}

.bj-player-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bj-panel-hand {
  min-width: 0;
}

.bj-panel-hand + .bj-panel-hand {
  padding-top: 8px;
  border-top: 1px solid rgba(246, 216, 128, 0.1);
}

.bj-panel-hand-label {
  display: block;
  margin-bottom: 4px;
  color: var(--fc-gold);
  font-family: var(--fc-body);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

@media (max-width: 700px) {
  .bj-cards-panel {
    --bj-card-w: 42px;
  }

  .bj-cards-panel .fc-bet-title {
    margin-bottom: 6px;
    font-size: 21px;
  }

  .bj-card-section {
    padding: 9px 0;
  }

  .bj-card-row {
    gap: 5px;
  }

  .bj-card-label {
    padding: 3px 2px;
    border-radius: 7px;
    font-size: 23px;
  }

  .bj-card-label i {
    font-size: 12px;
  }

  .bj-player-cards {
    gap: 6px;
  }

  .bj-panel-hand + .bj-panel-hand {
    padding-top: 6px;
  }
}

@media (max-width: 700px) {
  .bj-card-section {
    padding: 6px 0;
  }

  .bj-cards-panel .fc-bet-title {
    margin-bottom: 4px;
  }

  .bj-rules {
    margin-top: 0;
    padding-top: 7px;
  }
}

@media (max-width: 700px) {
  .bj-stage {
    height: clamp(300px, 46vh, 430px);
  }
}

/* Botón NUEVA MANO grande y legible */
#bj-new-hand {
  min-height: 58px;
  font-size: clamp(22px, 4.5vw, 30px);
  letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  #bj-new-hand {
    min-height: 54px;
    font-size: 22px;
  }
}

/* Botones de acción grandes */
.bj-actions .bj-btn {
  min-height: 52px;
  padding: 0 10px;
  font-size: clamp(16px, 2.2vw, 21px);
  letter-spacing: 0.05em;
}
@media (max-width: 900px) {
  .bj-actions .bj-btn {
    min-height: 50px;
    font-size: 16px;
    padding: 0 7px;
  }
}
@media (max-width: 600px) {
  .bj-actions .bj-btn {
    min-height: 48px;
    font-size: 15px;
    padding: 0 5px;
  }
}
@media (max-width: 380px) {
  .bj-actions .bj-btn { font-size: 13px; }
}

/* Acciones: 18 px en móvil y tamaño proporcional en escritorio */
.bj-actions .bj-btn {
  font-size: clamp(18px, 2.3vw, 24px);
}
@media (max-width: 900px) {
  .bj-actions .bj-btn { font-size: 18px; }
}
@media (max-width: 600px) {
  .bj-actions .bj-btn { font-size: 18px; }
}
@media (max-width: 380px) {
  .bj-actions .bj-btn { font-size: 18px; padding: 0 3px; }
}

/* Apuesta manual al lado de las fichas */
.bj-bet-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 7px;
}
.bj-bet-inline .bj-chip-row {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 0;
}
.bj-bet-inline .fc-chip {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.bj-manual-bet {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.bj-manual-bet label {
  color: var(--fc-gold-bright);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.bj-manual-row {
  display: grid;
  gap: 4px;
}
.bj-manual-row input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(246, 216, 128, 0.25);
  border-radius: 7px;
  background: #06180f;
  color: #fff;
  font: inherit;
  font-size: 11px;
}
.bj-manual-row input:focus {
  outline: none;
  border-color: rgba(255, 230, 162, 0.7);
}
.bj-manual-row button {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(246, 216, 128, 0.45);
  border-radius: 7px;
  background: #183523;
  color: var(--fc-gold-bright);
  font: inherit;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.bj-manual-row button:hover { background: #214c32; }
@media (max-width: 390px) {
  .bj-bet-inline { gap: 7px; }
  .bj-bet-inline .fc-chip { width: 32px; height: 32px; font-size: 13px; }
}

/* Formulario manual con el mismo aspecto que la ruleta */
.bj-manual-bet {
  padding-top: 5px;
  border-top: 1px solid rgba(246, 216, 128, 0.14);
}
.bj-manual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.bj-manual-head #bj-stake {
  margin: 0;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.bj-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
}
.bj-manual-row input {
  height: 34px;
  font-size: 12px;
}
.bj-manual-row button {
  width: auto;
  height: 34px;
  padding: 0 9px;
  font-size: 8px;
  white-space: nowrap;
}
@media (max-width: 390px) {
  .bj-manual-head label { font-size: 6.5px; }
  .bj-manual-head #bj-stake { font-size: 7px; }
  .bj-manual-row button { padding: 0 7px; font-size: 7px; }
}

/* REPARTIR y LIMPIAR con el mismo tamaño de botón */
.bj-actions--bet {
  grid-template-columns: 1fr 1fr;
}
#bj-deal,
#bj-clear {
  font-family: var(--fc-display);
  font-size: 18px;
  letter-spacing: 0.05em;
}
@media (min-width: 901px) {
  #bj-deal,
  #bj-clear { font-size: 24px; }
}

/* Misma tipografía y tamaño en todos los botones de juego */
.bj-actions--play .bj-btn,
.bj-actions--insurance .bj-btn {
  font-family: var(--fc-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
@media (min-width: 901px) {
  .bj-actions--play .bj-btn,
  .bj-actions--insurance .bj-btn {
    font-size: 24px;
  }
}
