.baccarat-view {
  --bac-felt: #0b523b;
  --bac-felt-dark: #063326;
  --bac-line: rgba(250, 220, 139, .25);
  --bac-gold: #e9c765;
  --bac-player: #43a8ff;
  --bac-banker: #e85058;
  --bac-tie: #54d597;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  overflow-x: clip;
}

.baccarat-view,
.baccarat-view button {
  -webkit-user-select: none;
  user-select: none;
}

.baccarat-view .game-topline {
  position: relative;
  z-index: 8;
}

.baccarat-view .balance-chip {
  min-width: 44px;
  max-width: 82px;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(245, 211, 117, .32);
  border-radius: 999px;
  color: #fff1b2;
  background: rgba(4, 27, 20, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 7px 20px rgba(0, 0, 0, .22);
  font: 800 .67rem/1 Oswald, sans-serif;
}

.baccarat-view .balance-chip i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #3b2503;
  background: radial-gradient(circle at 35% 28%, #fff3a7 0 10%, #e4b33e 42%, #9a6510 74%, #f0cb67 76% 84%, #764a08 86%);
  font-style: normal;
  font-size: .58rem;
}

.baccarat-view .balance-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baccarat-shell {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding-bottom: calc(10px + var(--safe-bottom));
}

.baccarat-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 204, 111, .24);
  border-radius: 21px;
  background: #061d16;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .05);
  isolation: isolate;
}

.baccarat-host {
  position: relative;
  height: 64px;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(236, 198, 94, .22), transparent 34%),
    linear-gradient(135deg, #153e30, #071b15 68%);
}

.baccarat-host::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 22, 17, .92), transparent 34% 66%, rgba(4, 22, 17, .9)),
    linear-gradient(0deg, #06261c 0, transparent 48%);
}

.baccarat-host img {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -35px;
  width: 190px;
  height: 144px;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  transform: translateX(-50%);
  filter: saturate(.96) drop-shadow(0 7px 8px rgba(0, 0, 0, .36));
  animation: baccarat-host-idle 5.5s ease-in-out infinite;
}

.baccarat-host figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  pointer-events: none;
}

.baccarat-host figcaption span,
.baccarat-host figcaption small {
  padding: 5px 8px;
  border: 1px solid rgba(247, 218, 133, .2);
  border-radius: 999px;
  color: #f9e49e;
  background: rgba(3, 20, 15, .74);
  backdrop-filter: blur(5px);
  font: 700 .48rem/1 Oswald, sans-serif;
  letter-spacing: .11em;
  white-space: nowrap;
}

.baccarat-host figcaption small {
  color: #b9d1c7;
  letter-spacing: .06em;
}

.baccarat-felt {
  position: relative;
  min-height: 156px;
  padding: 8px 9px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 3px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(50, 153, 107, .28), transparent 51%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, var(--bac-felt), var(--bac-felt-dark));
  box-shadow: inset 0 10px 25px rgba(0, 0, 0, .2), inset 0 0 0 2px rgba(244, 213, 125, .06);
}

.baccarat-felt::before {
  content: "PUNTO  •  BANCO";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(246, 221, 147, .07);
  font: 700 1.15rem/1 Oswald, sans-serif;
  letter-spacing: .15em;
  white-space: nowrap;
  pointer-events: none;
}

.baccarat-felt::after {
  content: "NATURAL";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  padding: 4px 8px;
  border: 1px solid rgba(255, 230, 152, .55);
  border-radius: 999px;
  color: #332006;
  background: linear-gradient(135deg, #fff1a5, #c78f28);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .35);
  font: 800 .5rem/1 Oswald, sans-serif;
  letter-spacing: .12em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .2s ease, transform .25s ease;
  pointer-events: none;
}

.baccarat-felt.is-natural::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.baccarat-table-divider {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 133, .34), transparent);
}

.baccarat-hand-zone {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 1px 4px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  transition: background .25s ease, box-shadow .25s ease;
}

.baccarat-hand-zone > header {
  min-width: 0;
}

.baccarat-hand-zone > header small {
  display: block;
  color: #a9c5b9;
  font: 700 .42rem/1 Oswald, sans-serif;
  letter-spacing: .1em;
}

.baccarat-hand-zone > header b {
  display: block;
  margin-top: 3px;
  color: #fff4ca;
  font: 700 .7rem/1 Oswald, sans-serif;
  letter-spacing: .04em;
}

.baccarat-hand-zone[data-hand="player"] > header b { color: #b9ddff; }
.baccarat-hand-zone[data-hand="banker"] > header b { color: #ffb9bd; }

.baccarat-hand {
  min-width: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 7px;
  overflow: visible;
}

.baccarat-card {
  --card-tilt: calc((var(--deal-order, 0) - 2) * 1.1deg);
  width: 42px;
  height: 58px;
  margin-left: -8px;
  padding: 4px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  flex: 0 0 auto;
  border: 1px solid rgba(35, 27, 15, .22);
  border-radius: 7px;
  color: #121814;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), transparent 40%),
    #fffdf2;
  box-shadow: 0 5px 9px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 255, 255, .75);
  font-family: Georgia, serif;
  transform: rotate(var(--card-tilt));
  animation: baccarat-card-deal .34s cubic-bezier(.2, .8, .25, 1.18) both;
  transform-origin: 50% 100%;
}

.baccarat-card:first-child { margin-left: 0; }
.baccarat-card.is-third {
  margin-left: -5px;
  border-color: rgba(226, 177, 55, .7);
  box-shadow: 0 6px 13px rgba(0, 0, 0, .4), 0 0 0 2px rgba(231, 190, 77, .17);
}

.baccarat-card.is-red { color: #c32631; }
.baccarat-card b { font-size: .72rem; line-height: 1; }
.baccarat-card b:last-child { justify-self: end; align-self: end; transform: rotate(180deg); }
.baccarat-card i { place-self: center; font: normal 1.22rem/1 Georgia, serif; }

.baccarat-score {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 219, 141, .34);
  border-radius: 50%;
  color: #fff2b4;
  background: rgba(2, 22, 16, .76);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  font: 800 .82rem/1 Oswald, sans-serif;
}

.baccarat-shoe {
  position: absolute;
  z-index: 4;
  right: 5px;
  top: 50%;
  width: 23px;
  height: 31px;
  border: 1px solid #cda74d;
  border-radius: 4px 4px 7px 7px;
  background: linear-gradient(145deg, #26170c, #83561d);
  box-shadow: 0 5px 10px rgba(0, 0, 0, .36);
  transform: translateY(-50%) rotate(-4deg);
  pointer-events: none;
}

.baccarat-shoe::before,
.baccarat-shoe::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  border-radius: 2px;
  background: #f9e7b0;
}
.baccarat-shoe::before { top: 4px; box-shadow: 0 3px #f9e7b0, 0 6px #f9e7b0; }
.baccarat-shoe::after { bottom: 5px; background: #c7343c; }

.baccarat-felt.is-player .baccarat-hand-zone[data-hand="player"] {
  background: rgba(46, 139, 218, .13);
  box-shadow: inset 0 0 0 1px rgba(90, 176, 247, .24), 0 0 24px rgba(58, 145, 215, .11);
}
.baccarat-felt.is-banker .baccarat-hand-zone[data-hand="banker"] {
  background: rgba(210, 52, 63, .13);
  box-shadow: inset 0 0 0 1px rgba(238, 91, 100, .24), 0 0 24px rgba(220, 59, 70, .1);
}
.baccarat-felt.is-tie .baccarat-hand-zone {
  background: rgba(45, 186, 119, .09);
  box-shadow: inset 0 0 0 1px rgba(84, 213, 151, .18);
}

.baccarat-control-stack {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.baccarat-statusbar {
  min-width: 0;
  min-height: 39px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(235, 204, 117, .16);
  border-radius: 13px;
  background: rgba(5, 28, 21, .86);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.baccarat-statusbar span {
  flex: 0 0 auto;
  color: #f5d77f;
  font: 800 .63rem/1 Oswald, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
}

.baccarat-statusbar small {
  min-width: 0;
  overflow: hidden;
  color: #aec3bb;
  font-size: .56rem;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baccarat-statusbar[data-state="win"] { border-color: rgba(88, 218, 153, .42); background: rgba(8, 58, 40, .88); }
.baccarat-statusbar[data-state="win"] span { color: #8ff0bb; }
.baccarat-statusbar[data-state="loss"] { border-color: rgba(234, 88, 97, .38); background: rgba(65, 17, 23, .82); }
.baccarat-statusbar[data-state="loss"] span { color: #ff9ca3; }
.baccarat-statusbar[data-state="push"] { border-color: rgba(87, 168, 238, .4); background: rgba(13, 45, 70, .84); }
.baccarat-statusbar[data-state="push"] span { color: #a8d9ff; }
.baccarat-statusbar[data-state="dealing"] span { animation: baccarat-status-pulse .8s ease-in-out infinite alternate; }
.baccarat-statusbar[data-state="error"] span { color: #ff9ca3; }

.baccarat-side-selector {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr .92fr 1fr;
  gap: 5px;
}

.baccarat-side-selector button {
  min-width: 0;
  min-height: 49px;
  padding: 5px 3px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid rgba(237, 205, 118, .16);
  border-radius: 13px;
  color: #b6c8c0;
  background: linear-gradient(160deg, rgba(15, 58, 44, .88), rgba(5, 27, 20, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  touch-action: manipulation;
  transition: transform .14s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.baccarat-side-selector button:active:not(:disabled) { transform: scale(.97); }
.baccarat-side-selector button b { font: 800 .68rem/1 Oswald, sans-serif; letter-spacing: .04em; }
.baccarat-side-selector button small { color: #829d91; font: 700 .48rem/1 Oswald, sans-serif; }
.baccarat-side-selector button[data-baccarat-side="player"].is-selected { border-color: rgba(91, 179, 255, .7); color: #d6ecff; background: linear-gradient(145deg, #164f78, #0a2e47); box-shadow: 0 6px 18px rgba(40, 124, 192, .2), inset 0 0 0 1px rgba(145, 207, 255, .15); }
.baccarat-side-selector button[data-baccarat-side="banker"].is-selected { border-color: rgba(238, 95, 104, .72); color: #ffe0e2; background: linear-gradient(145deg, #7a252d, #43141a); box-shadow: 0 6px 18px rgba(171, 39, 50, .2), inset 0 0 0 1px rgba(255, 163, 169, .13); }
.baccarat-side-selector button[data-baccarat-side="tie"].is-selected { border-color: rgba(88, 221, 157, .68); color: #d8ffea; background: linear-gradient(145deg, #196644, #0d3a29); box-shadow: 0 6px 18px rgba(39, 155, 98, .2), inset 0 0 0 1px rgba(149, 255, 199, .12); }
.baccarat-side-selector button.is-selected small { color: currentColor; opacity: .72; }

.baccarat-bet-panel {
  min-width: 0;
  min-height: 48px;
  padding: 4px;
  display: grid;
  grid-template-columns: 42px 67px 42px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(235, 204, 117, .16);
  border-radius: 14px;
  background: rgba(4, 25, 19, .88);
}

.baccarat-bet-panel > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 207, 119, .2);
  border-radius: 11px;
  color: #f5dfa0;
  background: rgba(18, 67, 50, .76);
  font: 800 1rem/1 Manrope, sans-serif;
  touch-action: manipulation;
}

.baccarat-bet-value {
  min-width: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}

.baccarat-bet-value small {
  color: #859d93;
  font: 700 .42rem/1 Oswald, sans-serif;
  letter-spacing: .08em;
}

.baccarat-bet-value strong {
  max-width: 100%;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #fff0ad;
  font: 800 .78rem/1 Oswald, sans-serif;
}

.baccarat-bet-value i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #3a2403;
  background: #e6b846;
  font: 800 .48rem/1 Oswald, sans-serif;
  font-style: normal;
}

.baccarat-quick-bets {
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.baccarat-quick-bets::-webkit-scrollbar { display: none; }

.baccarat-quick-bets button {
  min-width: 42px;
  height: 40px;
  padding: 0 5px;
  flex: 0 0 auto;
  border: 1px solid rgba(235, 204, 117, .15);
  border-radius: 10px;
  color: #9eb4ab;
  background: rgba(11, 48, 36, .72);
  font: 800 .58rem/1 Oswald, sans-serif;
  scroll-snap-align: start;
  touch-action: manipulation;
}

.baccarat-quick-bets button.is-selected {
  border-color: #e6c35e;
  color: #332006;
  background: linear-gradient(135deg, #fff0a0, #ce9328);
}

.baccarat-deal-button {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ffe798;
  border-radius: 15px;
  color: #291a03;
  background: linear-gradient(135deg, #fff1a5, #d1972c 70%, #b97616);
  box-shadow: 0 9px 24px rgba(179, 111, 17, .23), inset 0 1px rgba(255, 255, 255, .8);
  font: 800 .74rem/1 Oswald, sans-serif;
  letter-spacing: .08em;
  touch-action: manipulation;
  transition: transform .14s ease, filter .14s ease;
}

.baccarat-deal-button:active:not(:disabled) { transform: translateY(1px) scale(.988); }
.baccarat-deal-button:disabled { filter: grayscale(.3); }

@keyframes baccarat-card-deal {
  0% { opacity: 0; transform: translate(82px, -78px) rotate(16deg) scale(.82); }
  68% { opacity: 1; transform: translate(-2px, 2px) rotate(-2deg) scale(1.035); }
  100% { opacity: 1; transform: translate(0, 0) rotate(var(--card-tilt)) scale(1); }
}

@keyframes baccarat-host-idle {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(2px) scale(1.012); }
}

@keyframes baccarat-status-pulse {
  from { opacity: .62; }
  to { opacity: 1; }
}

@media (max-width: 359px) {
  .baccarat-host figcaption small { display: none; }
  .baccarat-hand-zone { grid-template-columns: 45px minmax(0, 1fr) 29px; gap: 2px; padding-inline: 1px; }
  .baccarat-card { width: 39px; height: 55px; margin-left: -9px; }
  .baccarat-card.is-third { margin-left: -7px; }
  .baccarat-score { width: 29px; height: 29px; }
  .baccarat-bet-panel { grid-template-columns: 40px 63px 40px minmax(0, 1fr); gap: 3px; }
  .baccarat-bet-panel > button { width: 40px; }
  .baccarat-statusbar small { font-size: .51rem; }
}

@media (max-width: 699px) and (max-height: 620px) {
  .baccarat-shell { gap: 6px; }
  .baccarat-host { height: 52px; }
  .baccarat-host img { top: -42px; height: 136px; }
  .baccarat-felt { min-height: 145px; padding-block: 5px; }
  .baccarat-hand { min-height: 55px; }
  .baccarat-card { width: 39px; height: 54px; }
  .baccarat-statusbar { min-height: 35px; padding-block: 4px; }
  .baccarat-side-selector button { min-height: 45px; }
  .baccarat-deal-button { min-height: 46px; }
}

@media (min-width: 700px) {
  .baccarat-shell {
    grid-template-columns: minmax(390px, 1.35fr) minmax(260px, .65fr);
    align-items: stretch;
    gap: 14px;
    padding: 8px 0 28px;
  }
  .baccarat-stage { min-height: 430px; }
  .baccarat-host { height: 136px; }
  .baccarat-host img { top: -66px; width: 360px; height: 265px; }
  .baccarat-host figcaption { padding: 16px 18px; }
  .baccarat-host figcaption span,
  .baccarat-host figcaption small { padding: 7px 11px; font-size: .58rem; }
  .baccarat-felt { min-height: 294px; padding: 17px 24px; gap: 8px; }
  .baccarat-hand-zone { grid-template-columns: 78px minmax(0, 1fr) 43px; padding: 5px 11px; }
  .baccarat-hand-zone > header small { font-size: .5rem; }
  .baccarat-hand-zone > header b { font-size: .92rem; }
  .baccarat-hand { min-height: 112px; }
  .baccarat-card { width: 66px; height: 92px; margin-left: -12px; padding: 7px; border-radius: 9px; }
  .baccarat-card.is-third { margin-left: -8px; }
  .baccarat-card b { font-size: 1rem; }
  .baccarat-card i { font-size: 1.9rem; }
  .baccarat-score { width: 43px; height: 43px; font-size: 1.1rem; }
  .baccarat-control-stack {
    align-content: center;
    gap: 11px;
    padding: 16px;
    border: 1px solid rgba(235, 204, 117, .16);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(13, 49, 37, .92), rgba(4, 22, 17, .94));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .04);
  }
  .baccarat-statusbar { min-height: 52px; display: grid; justify-content: stretch; text-align: center; }
  .baccarat-statusbar span { font-size: .76rem; }
  .baccarat-statusbar small { font-size: .62rem; text-align: center; }
  .baccarat-side-selector button { min-height: 68px; }
  .baccarat-side-selector button b { font-size: .8rem; }
  .baccarat-bet-panel { grid-template-columns: 46px 82px 46px; }
  .baccarat-bet-panel > button { width: 46px; }
  .baccarat-quick-bets { grid-column: 1 / -1; padding-top: 4px; }
  .baccarat-quick-bets button { flex: 1 0 43px; }
  .baccarat-deal-button { min-height: 58px; font-size: .83rem; }
}

@media (prefers-reduced-motion: reduce) {
  .baccarat-host img,
  .baccarat-card,
  .baccarat-statusbar[data-state="dealing"] span {
    animation: none !important;
  }
  .baccarat-felt::after,
  .baccarat-hand-zone,
  .baccarat-side-selector button,
  .baccarat-deal-button {
    transition: none !important;
  }
}

/* Baccarat-tegel in de centrale Game Hub */
.tile-baccarat {
  background: radial-gradient(circle at 78% 12%, rgba(250, 220, 139, .25), transparent 34%), linear-gradient(145deg, #14563f, #072a21 68%);
  border-color: rgba(233, 199, 101, .26);
}
.tile-baccarat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.035) 14px 15px);
}
.baccarat-art { display: flex; align-items: center; justify-content: center; gap: 5px; }
.baccarat-art i {
  width: 36px; height: 49px; display: grid; place-items: center; border-radius: 6px;
  background: #fff9e9; color: #102d25; border: 2px solid #e9c765; box-shadow: 0 7px 14px rgba(0,0,0,.28);
  font: 900 1rem/1 Oswald, sans-serif; transform: rotate(-9deg);
}
.baccarat-art i:last-child { color: #b5333e; transform: rotate(9deg); }
.baccarat-art b {
  width: 42px; height: 42px; display: grid; place-items: center; z-index: 2; border-radius: 50%;
  color: #1d302b; background: #e9c765; border: 4px dashed rgba(38,52,46,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.32); font: 900 1.25rem/1 Oswald, sans-serif;
}
