.pw-main {
    width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 12px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .pw-title {
    display: block;
    margin: 12px 0 6px;
    padding: 10px 18px;
    background: #333;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    text-align: center;
  }
  
  .pw-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pw-actions .btn,
  button.back-to-home {
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    background-color: #3B7EED;
    transition: background-color .3s ease;
    border: none;
    cursor: pointer;
  }
  .pw-actions .btn:hover,
  button.back-to-home:hover { background-color: #1F5B99; }
  
  #pastWeeksContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .week-section {
    width: 100%;
  }
  
  .week-header {
    width: min(1000px, 100%);
    margin: 0 auto;
    background: #333;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: filter .2s ease;
  }
  .week-header:hover { filter: brightness(1.07); }
  
  .week-header .caret { opacity: .8; }
  
  .week-content {
    width: 100%;
    margin-top: 10px;
    display: block;          
  }
  
  .week-content .leaderboardWrapper,
  #leaderboardWrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .week-content .picks-grid,
  .picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    align-items: start;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .user-picks-container {
    background-color: #282828;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
  }
  
  .leaderboard-user {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .leaderboard-user img {
    width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  }
  
  .user-picks-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    box-sizing: border-box;
  }
  .user-picks-table th,
  .user-picks-table td {
    padding: 10px;
    border: 1px solid #444;
    background-color: #333;
    color: #FFD700;
    word-wrap: break-word;
  }
  .user-picks-table th { background-color: #444; font-weight: bold; color: #FFD700; }
  .user-picks-table td.correct { color: #28a745; background-color: #333; }
  .user-picks-table td.incorrect { color: #dc3545; background-color: #333; }
  
  .user-header,
  .leaderboard-table th,
  .leaderboard-table td { color: #FFD700; }

  .pw-subtitle,
#pw-subtitle {               
  display: inline-block;
  margin: 6px 0 14px;
  padding: 12px 20px;
  background: rgba(28,28,28,.92);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
}

.pw-titlebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;                 
    margin: 8px auto 14px;
    padding: 14px 18px;
    background: rgba(28,28,28,0.92);
    border: 2px solid #FFD700;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    width: fit-content;
    max-width: 95vw;
  }
  
  .pw-title {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    color: #FFD700;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.1;
    text-align: center;
  }
  
  .pw-subtitle {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #FFD700;
    font-weight: 700;
    font-size: clamp(18px, 3.2vw, 24px);
    opacity: .95;
    text-align: center;
  }

  .pw-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pw-titlebox .pw-subtitle {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  
    padding: 0;           
    margin: 2px 0 4px;     
    color: #FFD700;        
    font-weight: 700;
    font-size: clamp(18px, 3.2vw, 24px);
    text-align: center;
  }

.hp-hero {
  width: min(980px, 92vw);
  margin: 22px auto 8px;
  padding: 18px 22px;
  background: rgba(20,20,20,.88);
  border: 2px solid #FFD700;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hp-title,
.house-picks-title {
  margin: 0;
  padding: 0;
  color: #FFD700;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 0 #000;
  font-size: clamp(28px, 4.2vw, 48px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hp-subtitle {
  color: #FFD700;
  opacity: .95;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .04s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  text-decoration: none; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #3B7EED;
  color: #fff;
}
.btn-primary:hover { background: #2f6bcb; }

.btn-outline {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}
.btn-outline:hover {
  background: rgba(255, 215, 0, .08);
  border-color: #ffdf4d;
}

@media (max-width: 480px) {
  .hp-hero { padding: 14px 16px; gap: 10px; }
  .btn { width: 100%; justify-content: center; }
}
  @media (min-width: 1280px) {
    .user-picks-table { font-size: 14px; }
    .user-picks-table th,
    .user-picks-table td { padding: 8px; }
  }
  
  @media (max-width: 430px) {
    .pw-title {
      font-size: 20px;
      padding: 8px 15px;
      margin: 0 auto 15px;
    }
  
    .pw-actions { width: 100%; justify-content: center; }
    .pw-actions .btn,
    button.back-to-home {
      width: 100%;
      font-size: 14px;
      padding: 10px;
      max-width: 380px;
    }
  
    .week-header {
      width: 95%;
      max-width: 380px;
      font-size: 18px;
    }
  
    .week-content .picks-grid,
    .picks-grid {
      grid-template-columns: 1fr; 
      gap: 15px;
      padding: 10px 0;
    }
  
    .user-picks-container {
      width: 100%;
      max-width: 380px;
      padding: 15px;
      margin-left: auto;
      margin-right: auto;
    }
  
    .user-picks-table {
      width: 100%;
      font-size: 12px;
      table-layout: fixed;
    }
    .user-picks-table th,
    .user-picks-table td {
      padding: 6px;
      word-break: break-word;
    }
  }
  
  @media (max-width: 430px) {
    .pw-subtitle,
    #pw-subtitle {
      padding: 10px 16px;
      font-size: 18px;
      margin-bottom: 12px;
    }
  }

  @media (max-width: 430px) {
    .pw-titlebox { padding: 12px 14px; gap: 8px; }
    .pw-actions .btn { width: auto; }
  }
