:root {
  --theme-color: #0d6efd;
  --dark-bg: #10131a;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f5f6fa;
  color: #1c1f26;
}

/* Header */
.site-header .navbar {
  background: var(--dark-bg);
}
.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #fff !important;
}
.nav-link {
  color: #cfd3dc !important;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--theme-color) !important;
}

/* Hero */
.hero-banner {
    background-image: url('../images/banner.png');
    background-size: cover;

  /* Keep the image centered during scaling */
  background-position: center;

  /* Prevent the image from repeating like a tile */
  background-repeat: no-repeat;
}

/* Section titles */
.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--theme-color);
  padding-left: 0.75rem;
}

/* Game cards */
.game-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.result-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--theme-color);
}
.result-flash {
  animation: flash 1.5s ease;
}
@keyframes flash {
  0%   { background-color: #fff3cd; }
  100% { background-color: transparent; }
}
.countdown-timer {
  color: var(--dark-bg);
  font-variant-numeric: tabular-nums;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: #cfd3dc;
}
.site-footer a {
  color: #cfd3dc;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--theme-color);
}
.social-icons a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin-right: 8px;
}

/* Toasts */
.toast-container { z-index: 1080; }

/* Responsive tweaks */
@media (max-width: 576px) {
  .result-number { font-size: 1.5rem; }
}

/* =========================================================
   PLAY-INDIA-STYLE BOARD THEME (display-only, no inputs)
   ========================================================= */

.board-wrap {
  background: #f0c419;
  padding: 2rem 0 3rem;
}

.board-banner {
  background: #1d2a5e;
  border: 3px solid #f0c419;
  border-radius: 14px;
  padding: 1.5rem 1rem 1rem;
  margin-bottom: 1rem;
}
.board-icons { display: flex; justify-content: center; gap: 10px; margin-bottom: 0.5rem; }
.board-title {
  color: #f0c419;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
  text-shadow: 1px 1px 0 #000;
}
.board-subtitle { color: #e7e7e7; margin-bottom: 0; font-size: 0.9rem; }

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}
.info-box {
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  border: 2px solid rgba(0,0,0,0.15);
}
.info-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; opacity: 0.75; }
.info-value { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.info-yellow { background: #fff3b0; }
.info-green  { background: #b7f0ad; }
.info-pink   { background: #f6b8e0; }
.info-orange { background: #ffcb8e; }

.results-board {
  background: #1d2a5e;
  border-radius: 10px;
  padding: 6px;
}
.board-header-row {
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}
.board-header-row .col-name { flex: 1.2; }
.board-header-row .col-digits { flex: 2.4; }
.board-header-row .col-result { flex: 0.8; text-align: center; }
.board-header-row .col-time { flex: 1; text-align: center; }
.board-header-row .col-action { flex: 0.8; text-align: center; }

.board-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  color: #fff;
}
.board-row .col-name { flex: 1 1 100%; }
.board-row .col-digits { flex: 1 1 100%; margin: 6px 0; }
.board-row .col-result { flex: 1 1 33%; text-align: center; }
.board-row .col-time { flex: 1 1 33%; text-align: center; }
.board-row .col-action { flex: 1 1 33%; text-align: center; }

@media (min-width: 768px) {
  .board-row .col-name { flex: 1.2; }
  .board-row .col-digits { flex: 2.4; margin: 0; }
  .board-row .col-result { flex: 0.8; }
  .board-row .col-time { flex: 1; }
  .board-row .col-action { flex: 0.8; }
}

.game-name { font-weight: 800; }
.board-row .status-badge { font-size: 0.65rem; }

.digit-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(255,255,255,0.85);
  color: #1d2a5e;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 2px;
}
.digit-active {
  background: #fff3b0;
  color: #1d2a5e;
  box-shadow: 0 0 0 2px #1d2a5e inset;
  transform: scale(1.08);
}

.board-row .result-number {
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 1px;
}

.btn-view-result {
  background: #fff3b0;
  color: #1d2a5e;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 5px 10px;
}
.btn-view-result:hover { background: #fff; color: #1d2a5e; }

.row-red    { background: #c0392b; }
.row-green  { background: #2f9e44; }
.row-blue   { background: #1864ab; }
.row-orange { background: #d9700f; }
.row-brown  { background: #8a5a2f; }
.row-pink   { background: #c2255c; }
.row-purple { background: #6741d9; }
.row-teal   { background: #0c8599; }

.board-actions { margin-top: 1.5rem; }
.action-btn {
  background: #1d2a5e;
  color: #f0c419;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  margin: 0 4px 8px;
  border: 2px solid #f0c419;
}
.action-btn:hover { background: #f0c419; color: #1d2a5e; }

.board-disclaimer {
  color: #1d2a5e;
  margin-top: 1rem;
  padding: 0 1rem;
}
