/* ================================================================
   LIAR'S BLUFF — Premium Casino Redesign
   Deep green felt · Gold filigree · Real playing cards
================================================================ */

/* Custom Properties */
:root {
  /* Palette */
  --bg:              #060f09;
  --felt-deep:       #0b1e12;
  --felt-base:       #0f2d1a;
  --felt-mid:        #163d24;
  --felt-light:      #1c5232;

  --gold:            #c9a227;
  --gold-bright:     #f0c848;
  --gold-dim:        #7a6018;
  --gold-glow:       rgba(201, 162, 39, 0.35);

  --crimson:         #7a1515;
  --crimson-mid:     #b52020;
  --crimson-bright:  #e03030;
  --crimson-glow:    rgba(224, 48, 48, 0.4);

  --card-bg:         #fdfbf6;
  --card-face:       #f7f2e8;
  --card-border:     #e0d6c0;
  --card-red:        #b71c1c;
  --card-black:      #1a1a2e;

  --text:            #e8e0cc;
  --text-muted:      #7a9484;
  --text-dim:        #4a6054;

  --border:          rgba(255, 255, 255, 0.10);
  --border-gold:     rgba(201, 162, 39, 0.30);

  --shadow-sm:       0 2px 8px  rgba(0, 0, 0, 0.40);
  --shadow-md:       0 4px 16px rgba(0, 0, 0, 0.50);
  --shadow-lg:       0 8px 32px rgba(0, 0, 0, 0.65);
  --shadow-card:     0 3px 12px rgba(0, 0, 0, 0.50), 0 1px 3px rgba(0,0,0,0.3);

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  22px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  min-height: 100%;
}

/* Background — deep casino felt */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 130% 55% at 50% -5%,  var(--felt-mid)   0%, transparent 65%),
    radial-gradient(ellipse 70%  50% at 90% 95%,  var(--felt-deep)  0%, transparent 55%),
    radial-gradient(ellipse 60%  40% at 10% 85%,  var(--felt-base)  0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100dvh;
}

/* Felt weave texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 3px,
      rgba(0, 0, 0, 0.045) 3px, rgba(0, 0, 0, 0.045) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 3px,
      rgba(0, 0, 0, 0.045) 3px, rgba(0, 0, 0, 0.045) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  z-index: 9999;
}

/* Layout */
#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding:
    max(env(safe-area-inset-top), 12px)
    max(env(safe-area-inset-right), 14px)
    max(env(safe-area-inset-bottom), 20px)
    max(env(safe-area-inset-left), 14px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Screens */
.screen {
  display: none;
  width: min(720px, 100%);
  padding-top: 4px;
}

.screen.active {
  display: block;
  animation: screenIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, p { margin: 0; }

/* ================================================================
   JOIN SCREEN
================================================================ */
.join-header {
  text-align: center;
  padding: 28px 16px 20px;
  position: relative;
  overflow: hidden;
}

/* Giant watermark suit symbols */
.join-header::before {
  content: '\2660';
  position: absolute;
  right: -15px; top: -15px;
  font-size: 110px;
  opacity: 0.05;
  color: var(--gold);
  pointer-events: none;
  transform: rotate(12deg);
  line-height: 1;
}
.join-header::after {
  content: '\2665';
  position: absolute;
  left: -15px; bottom: -10px;
  font-size: 110px;
  opacity: 0.05;
  color: var(--gold);
  pointer-events: none;
  transform: rotate(-8deg);
  line-height: 1;
}

.suit-row {
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  margin-bottom: 10px;
  opacity: 0.7;
}

.game-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 11vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  background: linear-gradient(
    140deg,
    var(--gold-dim)    0%,
    var(--gold-bright) 28%,
    var(--gold)        50%,
    var(--gold-bright) 72%,
    var(--gold-dim)    100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(201, 162, 39, 0.45));
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Panel */
.panel {
  background: linear-gradient(155deg, rgba(16, 32, 22, 0.92), rgba(8, 18, 13, 0.97));
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  padding: 20px 18px;
  display: grid;
  gap: 11px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: -4px;
}

input {
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0 16px;
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Buttons */
.btn {
  min-height: 52px;
  border-radius: var(--r-md);
  border: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.96) !important;
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* Ripple layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.15s;
}
.btn:active::after { background: rgba(255, 255, 255, 0.07); }

/* Primary — gold */
.btn.primary {
  background: linear-gradient(155deg, #f5d060, var(--gold) 55%, #a07810);
  color: #1a1000;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.38), inset 0 1px 0 rgba(255,255,255,0.30);
}
.btn.primary:not(:disabled):hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.55), inset 0 1px 0 rgba(255,255,255,0.30);
}

/* Secondary */
.btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}

/* Ghost */
.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
}

/* DANGER — the BS button */
.btn.danger {
  background: linear-gradient(155deg, #f04040, var(--crimson-mid) 55%, #8b1010);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 18px rgba(224, 48, 48, 0.30);
}
.btn.danger:not(:disabled) {
  animation: bsPulse 1.5s ease-in-out infinite;
}
.btn.danger:disabled {
  animation: none;
}

@keyframes bsPulse {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(224, 48, 48, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(224, 48, 48, 0.65),
      0 0 0 6px rgba(224, 48, 48, 0.12);
    transform: scale(1.025);
  }
}

/* Bots button */
.btn.bots {
  background: linear-gradient(155deg, #7c3aed, #4c1d95);
  color: #ede9fe;
  font-size: 0.92rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Error */
.error {
  color: #ff8888;
  font-size: 0.88rem;
  min-height: 20px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ================================================================
   LOBBY SCREEN
================================================================ */
.lobby-header {
  text-align: center;
  padding: 28px 0 16px;
}

.lobby-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.room-code-display {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold-bright);
  text-shadow: 0 0 24px var(--gold-glow);
  cursor: pointer;
}

.lobby-status {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 8px;
}

.player-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.player-list li {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  animation: listItemIn 0.3s ease-out both;
}

@keyframes listItemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lobby-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

/* ================================================================
   GAME SCREEN — Top Bar
================================================================ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 16px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}

.top-bar-room {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.top-bar-room strong {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.rank-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  display: block;
  text-align: right;
}

.rank-value {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  color: var(--gold-bright);
  display: block;
  text-align: right;
  line-height: 1.1;
  text-shadow: 0 0 20px var(--gold-glow);
}

/* Center Table */
.center-table {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

/* Pile */
.pile { text-align: center; }

.pile-stack {
  position: relative;
  width: 64px;
  height: 88px;
  margin: 0 auto 6px;
}

.pile-card {
  position: absolute;
  width: 64px;
  height: 88px;
  border-radius: 7px;
  background-color: var(--felt-mid);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.05) 0px,
      rgba(255,255,255,0.05) 1px,
      transparent 1px, transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.05) 0px,
      rgba(255,255,255,0.05) 1px,
      transparent 1px, transparent 8px
    );
  border: 1.5px solid rgba(201, 162, 39, 0.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Subtle star on each card back */
.pile-card::after {
  content: '\2726';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(201, 162, 39, 0.18);
}

/* Entrance animation for new top card */
.pile-card-new {
  animation: pileCardDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pileCardDrop {
  from { opacity: 0; scale: 0.55; }
  to   { opacity: 1; scale: 1; }
}

.pile-empty {
  width: 64px;
  height: 88px;
  border-radius: 7px;
  border: 2px dashed rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  opacity: 0.35;
  margin: 0 auto;
}

.pile-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.pile-label span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Play Info */
.play-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.turn-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  min-height: 22px;
  transition: color 0.3s;
}

.turn-text.my-turn {
  color: var(--gold-bright);
  font-size: 1.05rem;
  animation: turnGlow 2.2s ease-in-out infinite;
}

@keyframes turnGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 18px var(--gold-glow); }
}

.last-play-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  min-height: 18px;
}

.timer-text {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  min-height: 18px;
  transition: color 0.3s;
  letter-spacing: 0.04em;
}

.timer-text.urgent {
  color: var(--crimson-bright);
  animation: timerUrge 0.45s ease-in-out infinite;
}

@keyframes timerUrge {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* Action Buttons */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.action-btn {
  min-height: 58px;
  border-radius: var(--r-lg);
  font-size: 1.05rem;
}

/* Opponents */
.opponents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.opp {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.opp.opp-active {
  border-color: rgba(240, 200, 72, 0.50);
  background: rgba(201, 162, 39, 0.06);
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.14);
}

.opp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.opp-name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 16px);
}

.opp-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.opp-status.online  { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.opp-status.offline { background: var(--text-dim); }

.opp-cards-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 4px;
  min-height: 19px;
}

.card-back-mini {
  width: 11px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--felt-light), var(--felt-base));
  border: 1px solid rgba(201, 162, 39, 0.28);
  flex-shrink: 0;
}

.opp-extra-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  align-self: center;
  margin-left: 2px;
}

.opp-count {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Hand Area */
.hand-area {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.hand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hand-header h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hand-badge {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.76rem;
  font-weight: 700;
}

/* Horizontal scrolling card row */
.hand-cards {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--felt-light) transparent;
}
.hand-cards::-webkit-scrollbar       { height: 4px; }
.hand-cards::-webkit-scrollbar-thumb { background: var(--felt-light); border-radius: 2px; }

/* ================================================================
   PLAYING CARDS — The real deal
================================================================ */
.card {
  flex: 0 0 70px;
  height: 98px;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 5px 4px;
  cursor: pointer;
  transition:
    transform  0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}

/* Inner border — real card feel */
.card::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  border: 1px solid rgba(180, 155, 110, 0.18);
  pointer-events: none;
  z-index: 0;
}

.card:hover:not(.disabled) {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

.card.selected {
  transform: translateY(-18px) rotate(-2.5deg) scale(1.06) !important;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.65),
    0 0 0 3px var(--gold),
    0 0 28px var(--gold-glow);
  border-color: var(--gold);
}

.card.disabled {
  opacity: 0.62;
  cursor: default;
}

/* Card corners */
.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.card-tl { align-self: flex-start; }
.card-br { align-self: flex-end; transform: rotate(180deg); }

.card-rank {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--card-black);
}

.card-suit-sm {
  font-size: 10px;
  line-height: 1;
  color: var(--card-black);
}

/* Center pip */
.card-pip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
  color: var(--card-black);
  z-index: 1;
}

/* Red cards */
.card.red .card-rank,
.card.red .card-suit-sm,
.card.red .card-pip {
  color: var(--card-red);
}

/* Cards inside the reveal modal are slightly smaller */
.reveal-cards .card {
  flex: 0 0 58px;
  height: 82px;
  font-size: 0.85em;
}
.reveal-cards .card-pip  { font-size: 22px; }
.reveal-cards .card-rank { font-size: 13px; }

/* ================================================================
   FINISH SCREEN
================================================================ */
.winner-display {
  text-align: center;
  padding: 30px 0 14px;
}

.winner-crown {
  font-size: 3.8rem;
  display: block;
  margin-bottom: 8px;
  animation: crownDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 4px 16px rgba(255, 200, 0, 0.5));
}

@keyframes crownDrop {
  0%   { transform: scale(0) rotate(-20deg) translateY(-20px); opacity: 0; }
  70%  { transform: scale(1.2) rotate(6deg)  translateY(4px);  opacity: 1; }
  100% { transform: scale(1)   rotate(0deg)  translateY(0);    opacity: 1; }
}

.winner-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.winner-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.finish-list li {
  justify-content: space-between;
}

.finish-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

/* ================================================================
   REVEAL MODAL
================================================================ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, #182e1f, #0d1f14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding: 20px 18px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
  0%   { transform: scale(0.45) translateY(50px); opacity: 0; }
  100% { transform: scale(1)    translateY(0);    opacity: 1; }
}

.bs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bs-icon {
  font-size: 2rem;
  animation: bsIconIn 0.5s ease-out both;
  display: block;
}

@keyframes bsIconIn {
  from { transform: rotate(-25deg) scale(0.4); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}

.bs-header h3 {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.reveal-summary {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.reveal-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 82px;
}

.reveal-verdict {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-md);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: verdictIn 0.4s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.reveal-verdict:empty { display: none; }

.reveal-verdict.liar {
  color: #ff6b6b;
  background: rgba(224, 48, 48, 0.14);
  border: 1px solid rgba(224, 48, 48, 0.30);
  text-shadow: 0 0 20px var(--crimson-glow);
}

.reveal-verdict.honest {
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.10);
  border: 1px solid rgba(110, 231, 183, 0.26);
}

@keyframes verdictIn {
  from { transform: scale(0.65); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 460px) {
  .center-table {
    grid-template-columns: 76px 1fr;
    padding: 12px;
    gap: 12px;
  }

  .pile-stack { width: 58px; height: 80px; }
  .pile-card  { width: 58px; height: 80px; }
  .pile-empty { width: 58px; height: 80px; }

  .card { flex: 0 0 64px; height: 90px; }
  .card-pip { font-size: 24px; }
}

@media (max-width: 380px) {
  .actions { grid-template-columns: 1fr; }

  .center-table {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
