/* =============================
   Base Layout
============================= */
/* 
body {
  background: radial-gradient(circle at center, #0b6623 0%, #064d1a 100%);
  font-family: Arial, sans-serif;
  margin: 0;
  color: #eee;
}
 */
.simulator-container {
  font-family: Arial, sans-serif;
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  /* background: rgba(0,0,0,0.35); */
  background: radial-gradient(circle at center, #0b6623 0%, #064d1a 100%);
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  color: #eee;
}
.sim-title {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 8px #0f0;
}
.center { text-align: center; }

/* =============================
   Player Grid Layout (responsive)
============================= */

/* Default: Mobile (1 per row) */
.grid-players {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
 /*  grid-template-columns: 1fr; /* always single column by default */
  grid-template-columns: repeat(2, 1fr); /* always 2 per column by default */
}

/* Tablet (768px – 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .grid-players.players-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-players.players-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-players.players-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, auto); }
  .grid-players.players-5 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .grid-players.players-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
  .grid-players.players-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-players.players-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-players.players-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-players.players-5 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .grid-players.players-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); }
}

/* =============================
   Final Results Grid (unchanged from v1.5)
============================= */
.grid-final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

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



/* =============================
   Player Panels
============================= */
.player-panel {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-name { font-weight: bold; font-size: 1.1em; }
.player-odds { font-size: 0.9em; }

/* Winner & Loser Highlighting */
.player-panel.winner, .final-panel.winner {
  box-shadow: 0 0 15px 3px #00ff99;
  border: 1px solid #00ff99;
}
.player-panel.loser, .final-panel.loser {
  opacity: 0.6;
}
.winner-text { font-weight: bold; color: #0f0; }

/* =============================
   Odds Indicators
============================= */
.odds-bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin-top: 6px;
}
.odds-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
}
.odds-bar.winner-bar .odds-fill {
  background: linear-gradient(90deg, #00ff99, #00cc66);
}

/* =============================
   Cards
============================= */
.player-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}
.card {
  width: 55px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #fff;
  background: #fff;
  font-size: 1.3em;
  color: #000;
  margin-right: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.card:last-child { margin-right: 0; }

/* Suit styling inside cards */
.card.red {
  color: #c00;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(255, 0, 0, 0.4);
}

.card.black {
  color: #000;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.card.hidden {
  background: repeating-linear-gradient(
    45deg,
    #333,
    #333 6px,
    #222 6px,
    #222 12px
  ); /* faint diagonal stripes */
  border: 2px solid #666;
  color: transparent;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.card.hidden::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Card Shrinking */
@media (max-width: 480px) {
  .card {
    width: 42px;
    height: 60px;
    font-size: 1.05em;
  }
  .community-row .card {
    width: 38px;
    height: 55px;
    font-size: 1em;
  }
}


/* =============================
   Community Cards
============================= */
.community-container {
  margin: 25px 0 10px;
  text-align: center;
}
.community-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.street-label {
  margin-top: 8px;
  font-size: 0.9em;
  font-style: italic;
  color: #ccc;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #444;
  margin: 20px 0;
}

/* =============================
   Guess Section
============================= */
.guess-section {
  margin: 20px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.25); /* one subtle line */
  text-align: center;
}
.guess-title {
  font-weight: bold;
  margin-bottom: 10px;
}
.guess-btn {
  padding: 10px 18px;
  margin: 6px 4px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95em;
  background: linear-gradient(145deg, #3c3c3c, #1e1e1e);
  color: #f5f5f5;
  transition: all 0.25s ease;
}
.guess-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #505050, #292929);
}

/* Disabled guess buttons */
.guess-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(145deg, #444, #222);
  color: #aaa;
  box-shadow: none;
}

/* Timeline container */
.grid-timeline {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-label {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, #064d1a, #0b6623);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.timeline-step.active .timeline-label {
  background: linear-gradient(145deg, #0f0, #0b6623);
  box-shadow: 0 0 12px #0f0;
}

.timeline-step.past .timeline-label {
  background: #444;
  color: #bbb;
}

.timeline-arrow {
  font-size: 1.2em;
  margin-top: 6px;
  color: #888;
}

.timeline-step.active .timeline-arrow {
  color: #0f0;
}

.timeline-action {
  margin-top: 6px;
  min-height: 24px;
}

.timeline-step.past .timeline-action::after {
  content: "✔";
  color: #0f0;
  font-size: 1.1em;
  display: block;
}

/* Merged locked note for guest users */
.timeline-action .locked-note {
  font-style: italic;
  color: #888;
  font-size: 0.85em;
}

/* Reveal button styled with poker-gold theme */
.reveal-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  font-weight: bold;
  background: linear-gradient(145deg, #d4af37, #b8860b);
  color: #000;
  cursor: pointer;
  transition: all 0.25s ease;
}
.reveal-btn:hover {
  background: linear-gradient(145deg, #ffd700, #daa520);
  transform: translateY(-2px);
}




/* =============================
   Final Results
============================= */
.final-section { display: none; }
.final-section.visible { display: block; }


.final-section {
  margin-top: 25px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.3);
}
.final-title-section {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
  color: #fff;
}
.final-panel {
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 10px;
}
.final-panel h4 {
  margin: 0 0 8px;
  font-size: 0.8em;
  color: #ddd;
}



/* =============================
   Play Again
============================= */
.play-again { display: none; }        /* hidden by default */
.play-again.visible { display: inline-block; }


.play-again {
  margin: 25px auto;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  background: linear-gradient(145deg, #228B22, #0b6623);
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}
.play-again:hover {
  background: linear-gradient(145deg, #2ecc71, #27ae60);
  transform: translateY(-2px);
}

/* =============================
   Odds History (v1.7 Coach View)
============================= */
.odds-section { display: none; }
.odds-section.visible { display: block; }

.odds-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.odds-tab {
  background: #222;
  border: 1px solid #444;
  color: #ccc;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.25s ease;
}
.odds-tab.active {
  background: #0b6623;
  color: #fff;
  border-color: #0f0;
  box-shadow: 0 0 8px #0f0;
}

.odds-panels .odds-panel {
  display: none;
  background: rgba(0,0,0,0.4);
  padding: 15px;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
}
.odds-panels .odds-panel.active { display: block; }

.stage-title {
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
  color: #fff;
  font-size: 1em;
}

.odds-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.odds-row span {
  flex: 0 0 80px;
  font-size: 0.9em;
  color: #eee;
}
.odds-row .odds-bar {
  flex: 1;
  background: #333;
  border-radius: 4px;
  height: 18px;
  margin-left: 8px;
  position: relative;
  overflow: hidden;
}

.odds-row .odds-bar div {
  height: 100%;
  text-align: right;
  padding-right: 6px;
  font-size: 0.8em;
  font-weight: bold;
  color: #000;
  border-radius: 4px;
}

/* Neutral bar (default) */
.odds-bar-neutral {
  background: linear-gradient(90deg, #777, #999);
}

/* Winner bar */
.odds-bar-winner {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.guess-note {
  margin-top: 12px;
  font-weight: bold;
  text-align: center;
  color: #ccc; /* neutral base */
}

.guess-player.correct {
  color: #0f0;
  font-weight: bold;
}

.guess-player.wrong {
  color: #f33;
  font-weight: bold;
}

.coach-note {
  margin-top: 6px;
  font-style: italic;
  text-align: center;
  color: #bbb;
}

.coach-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 12px auto;
  max-width: 90%;
}

.oc-coach-avatar {
  margin-right: 10px;
  font-size: 2em;
  width: 48px;
  height: 48px;
}

.oc-coach-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #0f0;
  box-shadow: 0 0 6px rgba(0,255,0,0.5);
}

.coach-bubble {
  background: #222;
  border: 1px solid #0f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-style: italic;
  color: #ddd;
  box-shadow: 0 0 8px rgba(0,255,0,0.3);
  position: relative;
}

.coach-bubble::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent #222 transparent transparent;
}



