/* ── Page base ──────────────────────────────────────────────────────────────── */
body {
  background-color: #13792C !important;
  background-size: cover;
}

form {
  background-color: rgb(255 255 255 / 50%);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #8B0000 0%, #2F4F2F 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: #228B22;
  color: white;
  text-align: center;
  padding: 20px;
  font-style: italic;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 600px;
}

/* ── Song credit banner ──────────────────────────────────────────────────────── */
.christmas-credit {
  background: linear-gradient(90deg, #c02828, #28a745 70%);
  color: #fff;
  border-radius: 12px;
  padding: 18px 30px;
  box-shadow: 0 4px 10px rgba(30, 40, 70, 0.15);
  text-align: center;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 32px auto;
  max-width: 500px;
}
.christmas-credit .song-title {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  margin-bottom: 5px;
}
.christmas-credit .song-meta,
.christmas-credit .song-performer {
  display: block;
  font-size: 1em;
  margin-bottom: 2px;
}
.christmas-credit .song-meta {
  font-style: italic;
  color: #ffe588;
}
.christmas-credit .song-performer {
  color: #baffdd;
  font-weight: 600;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h4 {
  font-family: 'Mountains of Christmas', serif;
}

/* ── Video ──────────────────────────────────────────────────────────────────── */
.video-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Game wrapper ───────────────────────────────────────────────────────────── */
.santa-game-wrapper {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
}

.santa-header {
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
}
.santa-header h1 {
  font-size: 2.2rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.santa-header p {
  margin: 0;
  font-size: 1rem;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.blackjack-table {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  padding: 18px;
  border: 2px solid #ffe08a;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.section-title {
  font-size: 1.1rem;
  color: #ffe08a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hand-area {
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.card {
  width: 72px;
  height: 100px;
  border-radius: 8px;
  background: #ffffff;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
}

.card.suit-heart,
.card.suit-diamond {
  color: #c00000;
}
.card.suit-spade,
.card.suit-club {
  color: #000000;
}

.card-back {
  background: linear-gradient(135deg, #c02828, #28a745);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
}

.card-rank {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: 1rem;
  font-weight: 700;
}
.card-suit {
  font-size: 2rem;
}
.card-rank-bottom {
  position: absolute;
  bottom: 5px;
  right: 7px;
  font-size: 1rem;
  transform: rotate(180deg);
  font-weight: 700;
}

/* ── UI chrome ──────────────────────────────────────────────────────────────── */
.badge-total {
  background: #ffe08a;
  color: #5a1a00;
  border-radius: 50px;
  padding: 2px 9px;
  font-size: 0.8rem;
  margin-left: 4px;
}

.chips {
  font-weight: 600;
  color: #ffe08a;
  margin-bottom: 4px;
}

.status-line {
  min-height: 22px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.controls {
  text-align: center;
  margin-top: 10px;
}

.btn-santa {
  background: #ffe08a;
  border: 1px solid #c79a25;
  color: #5a1a00;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  padding: 7px 16px;
  margin: 4px;
  font-size: 0.85rem;
}
.btn-santa:hover {
  background: #ffd35a;
  color: #4a1400;
}

.btn-santa-danger {
  background: #ff4d4d;
  border-color: #b30000;
  color: #fff;
}
.btn-santa-danger:hover {
  background: #ff1a1a;
}

.log-box {
  margin-top: 8px;
  font-size: 0.9rem;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 8px;
}

.log-entry {
  margin-bottom: 4px;
}

.santa-tagline {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 8px;
  color: #fff;
  opacity: 0.9;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .card {
    width: 56px;
    height: 80px;
    font-size: 0.9rem;
  }
  .card-rank,
  .card-rank-bottom {
    font-size: 0.8rem;
  }
  .card-suit {
    font-size: 1.5rem;
  }
}
