/* PROXIMA // Silver Coast Casino (js/casino.js) */
.cas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 12px;
  align-items: start;
}
.cas-table {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.cas-felt {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 220px;
  padding: 18px 16px;
  border: 1px solid #ffffff1c;
  background: radial-gradient(ellipse at 50% 30%, #12493a, #082a22 70%);
  box-shadow: inset 0 0 40px #0008;
}
.cas-hint {
  margin: auto;
  color: #cfe9de;
  font-size: 13px;
  text-align: center;
}
.cas-result {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #ffd36b66;
  background: #0008;
  color: #ffd36b;
  font: 700 13px var(--head);
  letter-spacing: 0.08em;
  text-align: center;
}
.cas-hand {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.cas-hand > small {
  color: #cfe9de;
  font: 700 11px var(--head);
  letter-spacing: 0.14em;
}
.cas-hand > div {
  display: flex;
  gap: 6px;
}
.cas-hand.active > div {
  padding: 4px;
  outline: 2px solid #ffd36b;
}
.cas-card {
  display: grid;
  place-items: center;
  width: 46px;
  height: 66px;
  border-radius: 5px;
  background: #f4f1ea;
  color: #15171c;
  box-shadow: 0 2px 6px #0007;
  font-family: var(--head);
  line-height: 1;
}
.cas-card b {
  font-size: 19px;
}
.cas-card i {
  font-style: normal;
  font-size: 18px;
}
.cas-card.red {
  color: #c4262e;
}
.cas-card.back {
  background: repeating-linear-gradient(45deg, #1f3c6b 0 6px, #18304f 6px 12px);
  border: 2px solid #f4f1ea;
}
.cas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cas-betbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-right: auto;
}
.cas-betbar small {
  color: var(--dim);
  font: 700 10px var(--head);
  letter-spacing: 0.14em;
}
.cas-chipbtn {
  width: 40px;
  height: 40px;
  border: 3px dashed #ffffff55;
  border-radius: 50%;
  background: #2b2f38;
  color: #fff;
  font: 700 11px var(--head);
  cursor: pointer;
}
.cas-chipbtn.on {
  border-color: #ffd36b;
  background: #6b4e12;
}
.cas-chipbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cas-betbar input {
  width: 90px;
}
/* roulette */
.cas-wheel-strip {
  display: flex;
  gap: 3px;
  min-height: 24px;
}
.cas-wheel-strip span,
.cas-num {
  display: grid;
  place-items: center;
  min-width: 24px;
  font: 700 12px var(--head);
  color: #fff;
}
.cas-wheel-strip .red,
.cas-num.red {
  background: #b0262c;
}
.cas-wheel-strip .black,
.cas-num.black {
  background: #15171c;
}
.cas-wheel-strip .green,
.cas-num.green {
  background: #1f8a4c;
}
.cas-board {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 620px;
}
.cas-zero .cas-num {
  height: 100%;
}
.cas-nums {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2px;
}
.cas-num {
  position: relative;
  height: 38px;
  border: 1px solid #ffffff33;
  cursor: pointer;
}
.cas-num.hit {
  outline: 2px solid #ffd36b;
  z-index: 1;
}
.cas-chip {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 0 3px;
  border-radius: 8px;
  background: #ffd36b;
  color: #111;
  font: 800 9px var(--font);
}
.cas-outside {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  max-width: 620px;
}
.cas-outside button {
  position: relative;
  padding: 8px 2px;
  border: 1px solid #ffffff33;
  background: #0a3a2d;
  color: #fff;
  font: 700 11px var(--head);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.cas-outside .red {
  background: #7d1b20;
}
.cas-outside .black {
  background: #15171c;
}
/* slots */
.cas-reels {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 3px solid #b8892b;
  background: #0b0d12;
}
.cas-reels.win {
  box-shadow: 0 0 24px #ffd36b88;
}
.cas-sym {
  width: 76px;
  height: 76px;
  padding: 10px;
  border: 1px solid #ffffff22;
  background: #151821;
  fill: none;
  stroke: #e8eaee;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cas-sym.relay {
  stroke: #ffd36b;
}
.cas-sym.eezo {
  stroke: #7fb4ff;
}
.cas-sym.nova {
  stroke: #ff8a3d;
}
.cas-sym.clip {
  stroke: #9be0b8;
}
.cas-sym.gel {
  stroke: #ff6f76;
}
.cas-sym.blank {
  stroke: #555a66;
}
/* video poker */
.cas-vp-row {
  display: flex;
  gap: 8px;
}
.cas-vp {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 4px;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.cas-vp.held {
  border-color: #ffd36b;
}
.cas-vp small {
  min-height: 12px;
  color: #ffd36b;
  font: 700 10px var(--head);
  letter-spacing: 0.14em;
}
/* craps */
.cas-dice {
  display: flex;
  gap: 10px;
  min-height: 56px;
  align-items: center;
}
.cas-die {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f4f1ea;
  color: #b0262c;
  font: 800 26px var(--head);
}
.cas-point {
  margin: 0;
  color: #cfe9de;
  font: 700 12px var(--head);
  letter-spacing: 0.14em;
}
.cas-bets {
  display: flex;
  gap: 8px;
}
.cas-bets div {
  display: grid;
  min-width: 100px;
  padding: 6px 10px;
  border: 1px solid #ffffff33;
  background: #0006;
  text-align: center;
}
.cas-bets small {
  color: #cfe9de;
  font: 700 10px var(--head);
  letter-spacing: 0.12em;
}
.cas-bets b {
  color: #fff;
  font: 700 15px var(--head);
}
.cas-sides {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* guide and log */
.cas-guide {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #ffffff1c;
  background: #0b0e13;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sub);
}
.cas-guide h4 {
  margin: 4px 0 0;
  color: var(--blue);
  font: 700 12px var(--head);
  letter-spacing: 0.14em;
}
.cas-guide ol,
.cas-guide ul {
  margin: 0;
  padding-left: 18px;
}
.cas-pays {
  width: 100%;
  border-collapse: collapse;
}
.cas-pays td {
  padding: 3px 4px;
  border-bottom: 1px solid #ffffff12;
}
.cas-pays td:last-child {
  color: #ffd36b;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.cas-fine {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 11px;
}
.cas-log {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #ffffff14;
  background: #0b0e13;
  list-style: none;
  font-size: 12px;
  color: var(--sub);
}
.cas-log b {
  color: #e8eaee;
}
.cas-log .win {
  color: var(--green);
}
.cas-log .loss {
  color: #ff6f76;
}
.cas-log span {
  float: right;
}
@media (max-width: 1000px) {
  .cas-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .cas-card {
    width: 38px;
    height: 56px;
  }
  .cas-sym {
    width: 60px;
    height: 60px;
  }
  .cas-num {
    height: 30px;
    font-size: 10px;
  }
  .cas-outside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cas-chipbtn {
    width: 34px;
    height: 34px;
  }
}

/* ------------------------------------------------------------ animations
   Transform and opacity only (compositor-friendly); each plays once on a
   fresh element (pxCasFresh) and is switched off for reduced motion. */
@keyframes cas-deal {
  from {
    opacity: 0;
    transform: translate(40px, -60px) rotate(-12deg) rotateY(90deg);
  }
  60% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) rotateY(90deg);
  }
  to {
    transform: rotateY(0);
  }
}
.cas-card.deal {
  animation: cas-deal 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0ms) both;
}
@keyframes cas-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.cas-result.pop,
.cas-chip.pop,
.pk-bet.pop {
  animation: cas-pop 0.35s ease-out both;
}
@keyframes cas-glow {
  0%,
  100% {
    box-shadow: 0 0 0 #ffd36b00;
  }
  50% {
    box-shadow: 0 0 22px #ffd36baa;
  }
}
.cas-result.win {
  border-color: #ffd36b;
  animation:
    cas-pop 0.35s ease-out both,
    cas-glow 1.4s ease-in-out 0.35s 2;
}
/* slots: each reel scrolls a strip of symbols, then lands */
.cas-reel {
  display: block;
  overflow: hidden;
  width: 76px;
  height: 76px;
}
.cas-strip {
  display: grid;
  will-change: transform;
}
@keyframes cas-roll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-456px);
  }
}
.cas-reel.spinning .cas-strip {
  animation: cas-roll 0.32s linear infinite;
  filter: blur(1px);
}
@keyframes cas-land {
  from {
    transform: translateY(-40px);
  }
  70% {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}
.cas-reel.land .cas-sym {
  animation: cas-land 0.35s ease-out var(--d, 0ms) both;
}
/* roulette wheel */
.cas-rl-top {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cas-wheel {
  position: relative;
  width: 120px;
  height: 120px;
  flex: none;
}
.cas-wheel-disc {
  position: absolute;
  inset: 0;
  border: 6px solid #6b4e12;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #0006;
  transition: transform 2.8s cubic-bezier(0.15, 0.6, 0.15, 1);
  will-change: transform;
}
.cas-wheel-hub {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(#3a2a0a, #120d03);
  color: #ffd36b;
  font: 700 20px var(--head);
}
.cas-wheel-pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 14px;
  margin-left: -6px;
  background: #f4f1ea;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* dice */
@keyframes cas-tumble {
  0% {
    transform: translateY(-30px) rotate(0);
  }
  60% {
    transform: translateY(4px) rotate(540deg);
  }
  100% {
    transform: translateY(0) rotate(720deg);
  }
}
.cas-die.tumble {
  animation: cas-tumble 0.6s cubic-bezier(0.3, 0.6, 0.3, 1) var(--d, 0ms) both;
}
.cas-vp:disabled {
  opacity: 1;
  cursor: default;
}

/* ------------------------------------------------------------ poker room */
.pk-room {
  display: grid;
  gap: 10px;
}
.pk-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.pk-top small {
  display: block;
  color: var(--dim);
  font: 700 10px var(--head);
  letter-spacing: 0.12em;
}
.pk-top b {
  color: #fff;
  font: 700 20px var(--head);
  letter-spacing: 0.04em;
}
.pk-top-btns {
  display: flex;
  gap: 4px;
}
.pk-table {
  position: relative;
  height: 420px;
  margin: 10px 30px 30px;
  border: 10px solid #4a2f12;
  border-radius: 50% / 46%;
  background: radial-gradient(ellipse at 50% 40%, #146048, #072a20 75%);
  box-shadow:
    inset 0 0 50px #000a,
    0 8px 24px #0008;
}
.pk-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 8px;
  justify-items: center;
  transform: translate(-50%, -50%);
}
.pk-board {
  display: flex;
  gap: 6px;
  min-height: 66px;
  align-items: center;
  color: #cfe9de;
}
.pk-pot {
  padding: 3px 12px;
  border-radius: 12px;
  background: #0008;
  color: #ffd36b;
  font: 700 13px var(--head);
  letter-spacing: 0.1em;
}
.pk-seat {
  position: absolute;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 110px;
  padding: 6px 8px;
  border: 1px solid #ffffff2a;
  border-radius: 8px;
  background: #0b0e13e6;
  transform: translate(-50%, -50%);
}
.pk-seat b {
  color: #fff;
  font: 700 13px var(--head);
  letter-spacing: 0.04em;
}
.pk-seat small {
  color: #ffd36b;
  font-size: 11px;
}
.pk-seat.me {
  border-color: var(--blue);
}
.pk-seat.turn {
  border-color: #ffd36b;
  box-shadow: 0 0 16px #ffd36b66;
}
.pk-seat.folded {
  opacity: 0.45;
}
.pk-cards {
  display: flex;
  gap: 3px;
  min-height: 0;
}
.pk-cards .cas-card {
  width: 34px;
  height: 48px;
}
.pk-cards .cas-card b {
  font-size: 14px;
}
.pk-cards .cas-card i {
  font-size: 13px;
}
.pk-dealer {
  position: absolute;
  top: -10px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4f1ea;
  color: #111;
  font: 800 11px var(--head);
}
.pk-bet {
  position: absolute;
  bottom: -22px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #ffd36b;
  color: #111;
  font: 800 11px var(--font);
}
@keyframes pk-timer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
.pk-timer {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffd36b;
  transform-origin: left;
  animation: pk-timer 45s linear var(--el, 0s) forwards;
}
.pk-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.pk-raise {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--dim);
  font: 700 10px var(--head);
  letter-spacing: 0.12em;
}
.pk-raise b {
  min-width: 80px;
  color: #ffd36b;
  font-size: 13px;
}
.pk-wait {
  margin: 0;
  color: var(--sub);
  text-align: center;
}
.pk-log {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #ffffff14;
  background: #0b0e13;
  list-style: none;
  color: var(--sub);
  font-size: 12px;
}
.pk-lobby-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px 0;
  border-bottom: 1px solid #ffffff12;
}
.pk-lobby-row small {
  color: var(--dim);
}
.pk-lobby-row .btn {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}
.pk-joincode {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.pk-joincode input {
  width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
@media (max-width: 640px) {
  .pk-table {
    height: 340px;
    margin: 6px 0 26px;
  }
  .pk-seat {
    min-width: 76px;
    padding: 4px;
  }
  .pk-cards .cas-card {
    width: 26px;
    height: 38px;
  }
  .cas-rl-top {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cas-card.deal,
  .cas-result.pop,
  .cas-result.win,
  .cas-chip.pop,
  .pk-bet.pop,
  .cas-reel.spinning .cas-strip,
  .cas-reel.land .cas-sym,
  .cas-die.tumble {
    animation: none;
  }
  .cas-wheel-disc {
    transition: none;
  }
}
/* keep the slot window and other tables at their natural height */
.cas-felt {
  align-content: center;
}
.cas-reels {
  align-self: center;
}
.cas-strip .cas-sym,
.cas-reel .cas-sym {
  display: block;
}
