body {
  background-color: #f8f9fa;
  overflow-x: hidden;
}

.winner {
  font-weight: bold;
  color: green;
}

/* Keep table column widths stable during filtering/search */
.table {
  table-layout: fixed;
  width: 100%;
}

.table th,
.table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Banner: full-bleed on small screens, contained with radius on larger */
.banner {
  background-image: url('images/banner.jpeg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  text-align: center;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
  padding-top: 1rem;
  height: 80vh;
  min-height: 160px;
}

.banner-caption {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.25));
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  max-width: 95%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  margin-top: 0.25rem;
}

.banner-title {
  font-size: 1.6rem;
  margin: 0;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
  line-height: 1.05;
}

.banner-subtitle {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
}

/* Larger screens: contain the banner within the container and restore rounded corners */
@media (min-width: 768px) {
  .banner {
    width: auto;
    left: auto;
    transform: none;
    border-radius: 0.5rem;
    height: 70vh;
  }

  .banner-caption { max-width: 70%; }
  .banner-title { font-size: 1.75rem; }
}

/* Make title stand out more */
.banner-caption {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.28));
  padding: 0.6rem 1.2rem;
}

.banner-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.55);
  text-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.5);
  letter-spacing: 0.2px;
}

/* Scroll indicator to hint there's more below */
.scroll-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}
/* Make scroll indicator interactive */
.scroll-indicator { cursor: pointer; }
.scroll-indicator:focus { outline: 2px solid rgba(255,255,255,0.9); outline-offset: 4px; }

.scroll-indicator svg { width: 22px; height: 22px; fill: rgba(255,255,255,0.95); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); animation: bounce 2s infinite; }

@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

.controls-row { display:flex; gap:0.6rem; align-items:center; margin-bottom:1rem; }
.controls-row .form-control {
  border-radius: 0.6rem;
  padding: 0.72rem 1rem;
  box-shadow: 0 6px 22px rgba(15,23,42,0.06);
  border: 1px solid rgba(0,0,0,0.08);
}
/* Ensure controls stay on one row and behave well on narrow screens */
.controls-row input, .controls-row .form-control { min-width: 0; }
.controls-row #refreshBtn { flex-shrink: 0; }

#refreshBtn {
  white-space: nowrap;
  border-radius: 0.6rem;
  padding: 0.56rem 0.8rem;
  display:flex; align-items:center; gap:0.45rem;
}

#refreshBtn svg { width: 16px; height: 16px; }

/* Grand prize highlight */
.grand-highlight {
  background: linear-gradient(90deg, rgba(212,175,55,0.06), rgba(255,255,255,0.02));
  border-left: 5px solid #d4af37;
}

.accordion-button .badge { font-weight:600; }

/* Make badge for grand more visible when in header */
.accordion-button + .accordion-collapse .grand-highlight { }

/* Ensure accordion looks good on narrow screens */
.accordion .table td, .accordion .table th { white-space: normal; }

/* Per-section subtle highlights */
.section-grand { background: linear-gradient(90deg, rgba(212,175,55,0.06), rgba(255,255,255,0.02)); border-left: 6px solid #d4af37; }
.section-prize { background: linear-gradient(90deg, rgba(16,185,129,0.04), rgba(255,255,255,0.02)); border-left: 6px solid #10b981; }
.section-door { background: linear-gradient(90deg, rgba(59,130,246,0.04), rgba(255,255,255,0.02)); border-left: 6px solid #3b82f6; }
.section-game { background: linear-gradient(90deg, rgba(234,88,12,0.04), rgba(255,255,255,0.02)); border-left: 6px solid #ea580c; }
