/* ===========================
   Santa Poker Table - style.css
   =========================== */

/* Base */
:root{
  --table-green: #0f4d2f;
  --table-green-2:#0b3b24;
  --frost: rgba(255,255,255,0.10);
  --frost-2: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --border: rgba(255,255,255,0.18);
  --shadow: 0 10px 25px rgba(0,0,0,0.35);
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(1200px 900px at 90% 30%, rgba(255,0,0,0.06), transparent 60%),
    radial-gradient(900px 700px at 45% 90%, rgba(0,255,180,0.05), transparent 55%),
    linear-gradient(180deg, #0b1f14 0%, #07150e 100%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Small helper text */
.tiny{
  font-size: 0.92rem;
  color: var(--muted);
}

/* Brand badge */
.brand-badge{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red{ background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,0.15); }
.dot-green{ background: #3cffb4; box-shadow: 0 0 0 3px rgba(60,255,180,0.15); }

/* Table box (your main panels) */
.table-box{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

/* Santa buttons */
.btn-santa{
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn-santa:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.btn-santa:active{
  transform: translateY(0px);
}
.btn-santa:disabled{
  opacity: .55;
  transform: none;
}

/* ===========================
   CARD SIZING (the important part)
   =========================== */

/* Dealt cards (Visitor & AI hands) — desktop-friendly, still readable on mobile */
.card-img{
  width: clamp(56px, 9vw, 86px);
  height: auto;
  max-width: none; /* don't let Bootstrap img rules shrink/override */
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}

/* Slightly larger on phones only */
@media (max-width: 576px){
  .card-img{
    width: clamp(72px, 18vw, 96px);
  }
  #visitorRow, #computerRow{
    gap: 6px;
  }
}

/* Rows spacing (responsive) */
#visitorRow, #computerRow{
  gap: clamp(6px, 1.3vw, 10px);
  justify-content: center;
}

/* Deck / discard stacks */
.stack{
  position: relative;
  min-height: 110px;
  display: grid;
  place-items: center;
}

/* Deck image must be fixed (NOT vw-scaled) */
#deckTop,
#deckStack img{
  width: 56px !important;
  height: auto !important;
  max-width: 56px !important;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

/* Deck stack "shuffling" animation hook */
#deckStack.shuffling{
  animation: deckWiggle .65s ease-in-out;
}
@keyframes deckWiggle{
  0%{ transform: rotate(0deg); }
  25%{ transform: rotate(-3deg); }
  50%{ transform: rotate(3deg); }
  75%{ transform: rotate(-2deg); }
  100%{ transform: rotate(0deg); }
}

/* Cute Santa hat on the deck (optional) */
.hat{
  position:absolute;
  top:-14px;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  width: 46px;
  height: 24px;
  background: #c91515;
  border-radius: 16px 16px 10px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 14px rgba(0,0,0,0.25);
}
.hat::before{
  content:"";
  position:absolute;
  bottom:-8px;
  left: -6px;
  width: 58px;
  height: 12px;
  background: #f3f3f3;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.hat::after{
  content:"";
  position:absolute;
  right:-10px;
  top: 2px;
  width: 14px;
  height: 14px;
  background:#f3f3f3;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Discard pile cards — smaller than dealt cards */
#discardStack img{
  position: absolute;
  width: 46px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}

/* Keep discard stack visible even when empty */
#discardStack{
  min-height: 110px;
}

/* ===========================
   Chips
   =========================== */
.chip-stack{
  width: 42px;
  height: 42px;
  position: relative;
}

.chip{
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 14px rgba(0,0,0,0.35);
  display: grid;
  place-items: center;
  font-size: .65rem;
  font-weight: 800;
  color: rgba(0,0,0,0.75);
  background: rgba(255,255,255,0.9);
}

.chip::after{
  content: attr(data-val);
  transform: translateY(0.5px);
}

.chip.i0{ top: 0px; left: 0px; }
.chip.i1{ top: 4px; left: 4px; }
.chip.i2{ top: 8px; left: 8px; }
.chip.i3{ top: 12px; left: 12px; }
.chip.i4{ top: 16px; left: 16px; }

.chip.d10{ background: #ffffff; }
.chip.d20{ background: #b7f7ff; }
.chip.d50{ background: #ffd6a6; }
.chip.d100{ background: #d0b6ff; }
.chip.dAll{ background: #ffe66d; }

/* Pot styling */
.chip-pot{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.chip-pot-label{
  font-size: 0.80rem;
  color: var(--muted);
}

/* Negative bankroll highlight */
.negative{
  color: rgba(255, 120, 120, 0.95);
  font-weight: 800;
}

/* ===========================
   FAQ Accordion readability
   =========================== */
.accordion-button{
  font-weight: 700;
}
.accordion-button:focus{
  box-shadow: none;
}
.accordion-body{
  color: rgba(255,255,255,0.90);
  padding-bottom: 10px;
}

/* ===========================
   Light snow overlay (optional)
   =========================== */
.snow{
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.12) 0 2px, transparent 3px);
  opacity: .35;
  mix-blend-mode: screen;
}
/* ===== HARD OVERRIDE: make sure poker card sizes win ===== */
#visitorRow img.card-img,
#computerRow img.card-img {
  width: clamp(56px, 9vw, 86px) !important;
  height: auto !important;
  max-width: none !important;
}

#deckTop,
#deckStack img {
  width: 56px !important;
  height: auto !important;
  max-width: 56px !important;
}

#discardStack img {
  width: 46px !important;
  height: auto !important;
}
/* Keep toast readable on dark theme */
.toast {
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

