/* PHOENIX ROYAL — AUTHENTIC CASINO TABLE */

/* Warm walnut room background */
html,
body {
  background:
    radial-gradient(ellipse at 50% 10%, #70533e 0%, transparent 52%),
    linear-gradient(145deg, #392a22, #211a17 58%, #30221d) !important;
}

/* Thick wooden rail with green casino cloth */
.casino-table {
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  border: 18px solid transparent !important;
  border-radius: 48px !important;

  background:
    radial-gradient(ellipse at 50% 38%,
      #147653 0%,
      #0d6948 45%,
      #09573c 100%) padding-box,
    linear-gradient(145deg,
      #b18a58 0%,
      #553722 13%,
      #2e211a 38%,
      #795334 66%,
      #3a261b 100%) border-box !important;

  box-shadow:
    0 22px 45px #090605aa,
    0 5px 12px #08050499,
    inset 0 0 0 2px #d1af70,
    inset 0 0 0 5px #453020,
    inset 0 0 38px #002d1c77 !important;
}

/* Fine, subtle felt texture */
.casino-table::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .16 !important;
  background-image:
    radial-gradient(#ffffff55 .45px, transparent .8px) !important;
  background-size: 4px 4px !important;
}

/* One understated inner rail seam */
.casino-table::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 1 !important;
  inset: 5px !important;
  border: 1px solid #d8bd8580 !important;
  border-radius: 30px !important;
  box-shadow: inset 0 0 12px #001c1260 !important;
  pointer-events: none !important;
}

.casino-table > * {
  position: relative;
  z-index: 2;
}

/* Keep only useful information on the table */
.casino-table .table-copy {
  display: none !important;
}

.casino-table b[data-i18n="SHOE"] {
  display: none !important;
}

.casino-table .zone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 5px !important;
  color: #e5d7bd !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
}

.casino-table .zone-title b {
  color: #fff0ca !important;
  font-size: 21px !important;
  text-shadow: 0 1px 3px #003723;
}

.casino-table .round-chip {
  color: #d6c7a9 !important;
}

.casino-table .status-message {
  color: #fff0c9 !important;
  text-shadow: 0 2px 5px #003522 !important;
}

/* Player hand and betting station side-by-side */
.player-bet-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin: 14px auto 0;
}

.player-bet-layout .player-zone {
  min-width: 0;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.player-bet-layout .player-hands {
  min-width: 0;
}

.player-bet-layout .player-hand {
  min-width: 0;
}

/* Proper casino betting spot */
.casino-table .bet-spot {
  box-sizing: border-box !important;
  position: relative !important;
  inset: auto !important;
  align-self: center;
  justify-self: center;

  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  width: 166px !important;
  height: 166px !important;
  min-height: 166px !important;
  padding: 12px !important;
  margin: 0 !important;

  border: 2px solid #e0c58c !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 42%,
      #145c40,
      #0c4933 72%,
      #093d2c) !important;

  color: #e8d8b7 !important;
  box-shadow:
    inset 0 0 0 4px #ffffff0c,
    inset 0 0 0 5px #bb986144,
    inset 0 0 18px #001e1466,
    0 5px 12px #00271966 !important;
}

.casino-table .bet-spot > span {
  color: #d8c39e !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 2px !important;
}

.casino-table .bet-spot > b {
  color: #ffe3a2 !important;
  font-size: 18px !important;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 1px 3px #001e13;
}

/* Same chip artwork in the betting spot */
.casino-table .bet-chips {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: flex-end;
  gap: 1px;
  min-height: 28px;
  max-width: 125px;
  overflow: visible;
}

.casino-table .bet-chip-stack {
  position: relative;
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 31px;
  margin-left: -2px;
}

.casino-table .bet-chip-stack:first-child {
  margin-left: 0;
}

.casino-table .chip-mini {
  position: absolute;
  left: 0;
  bottom: calc(var(--i, 0) * 2px);
  display: block;
  width: 19px;
  height: 19px;
  border: 0 !important;
  border-radius: 50%;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  font-size: 0 !important;
  color: transparent !important;
  box-shadow: 0 1px 2px #0007;
}

.casino-table .chip-mini.c1 {
  background-image: url("./assets/chips/chip-1.svg") !important;
}
.casino-table .chip-mini.c5 {
  background-image: url("./assets/chips/chip-5.svg") !important;
}
.casino-table .chip-mini.c25 {
  background-image: url("./assets/chips/chip-25.svg") !important;
}
.casino-table .chip-mini.c100 {
  background-image: url("./assets/chips/chip-100.svg") !important;
}
.casino-table .chip-mini.c500 {
  background-image: url("./assets/chips/chip-500.svg") !important;
}

.casino-table .chip-more {
  align-self: flex-start;
  color: #fff0ca;
  font-size: 9px;
}

/* Mobile: keep betting field beside the player's cards */
@media (max-width: 700px) {
  .casino-table {
    border-width: 10px !important;
    border-radius: 30px !important;
    padding: 29px 8px 19px !important;
    min-height: 620px;
  }

  .casino-table::before {
    inset: 3px !important;
    border-radius: 20px !important;
  }

  .player-bet-layout {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 5px;
    margin-top: 10px;
    align-items: center;
  }

  .player-bet-layout .player-zone .zone-title {
    padding: 0 4px 4px !important;
  }

  .player-bet-layout .player-zone .player-hands {
    gap: 3px;
  }

  .player-bet-layout .player-zone .player-hand {
    padding-left: 1px;
    padding-right: 1px;
  }

  .casino-table .bet-spot {
    width: 91px !important;
    height: 91px !important;
    min-height: 91px !important;
    padding: 5px !important;
    gap: 3px;
    border-width: 1.5px !important;
  }

  .casino-table .bet-spot > span {
    font-size: 7px !important;
    letter-spacing: 1px !important;
  }

  .casino-table .bet-spot > b {
    font-size: 12px !important;
  }

  .casino-table .bet-chips {
    min-height: 18px;
    max-width: 78px;
  }

  .casino-table .bet-chip-stack {
    flex-basis: 14px;
    width: 14px;
    height: 19px;
    margin-left: -3px;
  }

  .casino-table .chip-mini {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .player-bet-layout {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 3px;
  }

  .casino-table .bet-spot {
    width: 78px !important;
    height: 78px !important;
    min-height: 78px !important;
  }
}


/* PHOENIX ROYAL — REAL CASINO ATMOSPHERE V2 */

/* Warm walnut casino interior */
html, body {
  background-color: #171511 !important;
  background-image:
    radial-gradient(ellipse at 50% 0%, #76563b44 0%, transparent 58%),
    repeating-linear-gradient(
      90deg,
      transparent 0 2px,
      #ffffff05 3px,
      transparent 4px 96px,
      #00000025 97px 99px
    ),
    linear-gradient(
      180deg,
      #33271f 0%,
      #241d18 48%,
      #171713 100%
    ) !important;
  background-attachment: fixed !important;
}

/* Authentic green casino felt and walnut rail */
.casino-table {
  box-sizing: border-box !important;
  border: 22px solid transparent !important;
  border-radius: 44px !important;

  background:
    radial-gradient(
      ellipse at 48% 38%,
      #197650 0%,
      #116642 48%,
      #0a5338 100%
    ) padding-box,
    linear-gradient(
      135deg,
      #bd9867 0%,
      #634329 12%,
      #302016 35%,
      #8a623d 60%,
      #38241a 82%,
      #211812 100%
    ) border-box !important;

  box-shadow:
    0 24px 55px #000b,
    0 5px 12px #0008,
    inset 0 0 0 2px #c5a16c,
    inset 0 0 24px #002d1d55 !important;

  /* Reserve a dedicated rail for the deck on the right */
  padding-right: 132px !important;
}

/* Subtle fabric grain — no decorative stripes */
.casino-table::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .17 !important;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 2px,
      #ffffff0a 2.5px,
      transparent 3px 5px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 3px,
      #0000000a 3.5px,
      transparent 4px 7px
    ) !important;
}

/* One subtle seam inside the wooden rail */
.casino-table::before {
  display: block !important;
  content: "" !important;
  inset: 5px !important;
  border: 1px solid #d5b98265 !important;
  border-radius: 25px !important;
  box-shadow: inset 0 0 12px #001c1250 !important;
  pointer-events: none !important;
}

/* Keep all game content above the felt texture */
.casino-table > * {
  position: relative;
  z-index: 2;
}

/* Deck: smaller and moved into its own reserved right-side area */
.casino-table .shoe-deck {
  position: absolute !important;
  z-index: 5 !important;
  top: 56% !important;
  right: 12px !important;
  left: auto !important;
  width: 84px !important;
  padding: 5px 3px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  text-align: center !important;
  filter: drop-shadow(0 8px 9px #0008) !important;
}

.casino-table .deck-cards {
  width: 72px !important;
  height: 100px !important;
  margin: 0 auto 7px !important;
}

.casino-table .deck-back {
  border-radius: 6px !important;
  border: 1px solid #d8bd85 !important;
  box-shadow: 0 5px 12px #0008 !important;
}

.casino-table .shoe-deck b {
  display: block !important;
  color: #ead5a4 !important;
  font-size: 8px !important;
  letter-spacing: 1.5px !important;
  text-shadow: 0 1px 3px #000 !important;
}

/* Medium screens */
@media (min-width: 701px) and (max-width: 1099px) {
  .casino-table {
    padding-right: 108px !important;
  }

  .casino-table .shoe-deck {
    top: 54% !important;
    right: 9px !important;
    width: 70px !important;
  }

  .casino-table .deck-cards {
    width: 58px !important;
    height: 81px !important;
  }
}

/* Large PC screens: deck sits lower and farther right */
@media (min-width: 1100px) {
  .casino-table {
    padding-right: 132px !important;
  }

  .casino-table .shoe-deck {
    top: 58% !important;
    right: 9px !important;
    width: 82px !important;
  }

  .casino-table .deck-cards {
    width: 70px !important;
    height: 97px !important;
  }
}

/* Mobile: preserve a dedicated narrow rail */
@media (max-width: 700px) {
  .casino-table {
    border-width: 10px !important;
    border-radius: 27px !important;
    padding: 29px 69px 19px 8px !important;
  }

  .casino-table::before {
    inset: 3px !important;
    border-radius: 19px !important;
  }

  .casino-table .shoe-deck {
    top: 54% !important;
    right: 3px !important;
    width: 57px !important;
    padding: 2px 0 !important;
  }

  .casino-table .deck-cards {
    width: 47px !important;
    height: 66px !important;
    margin-bottom: 4px !important;
  }

  .casino-table .shoe-deck b {
    font-size: 6px !important;
    letter-spacing: .8px !important;
  }

  .casino-table .shoe-deck small {
    font-size: 6px !important;
  }
}

/* Narrow phones */
@media (max-width: 360px) {
  .casino-table {
    padding-right: 63px !important;
  }

  .casino-table .shoe-deck {
    right: 2px !important;
    width: 52px !important;
  }

  .casino-table .deck-cards {
    width: 43px !important;
    height: 60px !important;
  }
}

/* PHOENIX ROYAL — COMPACT MOBILE TABLE */

/* Mobile layout */
@media (max-width: 700px) {

  /* Table height follows its content */
  .casino-table {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 22px !important;
    padding-bottom: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
  }

  /* Less empty space around dealer */
  .casino-table .dealer-zone {
    margin-top: 8px !important;
  }

  .casino-table .dealer-zone .card-row {
    min-height: 88px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  /* Compact round status */
  .casino-table .table-center-message {
    height: 37px !important;
    margin: 3px 0 !important;
  }

  .casino-table .status-message {
    margin-top: 2px !important;
    font-size: 13px !important;
  }

  /* Player cards and bet area become vertical */
  .casino-table .player-bet-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 5px auto 0 !important;
  }

  .casino-table .player-bet-layout .player-zone {
    order: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .casino-table .player-zone .zone-title {
    height: 19px !important;
    padding: 0 5px 2px !important;
  }

  .casino-table .player-hands {
    min-height: 84px !important;
    gap: 4px !important;
  }

  .casino-table .player-hand {
    min-width: 0 !important;
    padding: 0 2px !important;
  }

  .casino-table .player-hand .hand-head {
    height: 18px !important;
  }

  .casino-table .player-hand .card-row {
    min-height: 76px !important;
    padding: 3px !important;
  }

  /* Betting field at the bottom of the table */
  .casino-table .player-bet-layout .bet-spot {
    order: 2;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    max-width: none !important;
    margin: 3px 0 0 !important;
    padding: 6px 11px !important;

    border: 1px solid #c6a46d !important;
    border-radius: 11px !important;

    background: linear-gradient(
      100deg,
      #08442f,
      #105c3e 50%,
      #08442f
    ) !important;

    box-shadow:
      inset 0 1px #ffffff17,
      0 3px 8px #00271955 !important;
  }

  .casino-table .bet-spot > span {
    flex: 0 0 auto;
    font-size: 8px !important;
    letter-spacing: 1.2px !important;
  }

  .casino-table .bet-spot > b {
    flex: 0 0 auto;
    margin: 0 !important;
    font-size: 14px !important;
  }

  .casino-table .bet-chips {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 125px !important;
    min-height: 25px !important;
    overflow: hidden;
  }

  .casino-table .bet-chip-stack {
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 23px !important;
    margin-left: -2px !important;
  }

  .casino-table .chip-mini {
    width: 15px !important;
    height: 15px !important;
  }

  /* Deck stays in its own right-side rail */
  .casino-table .shoe-deck {
    top: 43% !important;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .casino-table {
    padding-left: 7px !important;
    padding-right: 63px !important;
  }

  .casino-table .player-hands {
    min-height: 78px !important;
  }

  .casino-table .player-hand .card-row {
    min-height: 70px !important;
  }

  .casino-table .bet-spot > b {
    font-size: 12px !important;
  }

  .casino-table .bet-chips {
    max-width: 95px !important;
  }
}
