/* ================================
   PaperWagers NFL Pick'em
================================ */

.pw-nfl-pickem-form {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Header */
.pw-nfl-pickem-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 22px;
  background: linear-gradient(135deg, #fff, #f7f7f7);
  border: 1px solid #ddd;
  border-radius: 16px;
}

.pw-nfl-header-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.pw-nfl-header-logo {
  width: 105px;
  max-width: 28%;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.pw-nfl-header-copy h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #222;
}

.pw-nfl-header-copy h2 span {
  color: #c00;
}

.pw-nfl-header-copy p {
  margin: 0 0 8px;
  font-weight: 800;
}

.pw-nfl-header-prizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.pw-nfl-header-prizes a {
  color: #c00;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 700px) {
  .pw-nfl-header-compact {
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }

  .pw-nfl-header-logo {
    width: 95px;
    max-width: 100%;
  }

  .pw-nfl-header-prizes {
    justify-content: center;
  }
}

/* Game Cards */
.pw-nfl-game-card,
.pw-pickem-game {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.05);
}

.pw-nfl-game-meta {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
  font-weight: 700;
}

.pw-nfl-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.pw-nfl-at {
  text-align: center;
  font-weight: 900;
  color: #999;
  font-size: 1.1rem;
}

/* Team Options */
.pw-nfl-team-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.pw-nfl-team-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pw-nfl-team-card {
  position: relative;
  min-height: 118px;
  padding: 12px 10px;
  border: 2px solid #e1e1e1;
  border-radius: 16px;
  text-align: center;
  background: #fafafa;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.pw-nfl-team-card:hover {
  transform: translateY(-2px);
  border-color: #c00;
  box-shadow: 0 8px 18px rgba(204,0,0,0.16);
}

.pw-nfl-team-option input:checked + .pw-nfl-team-card {
  border-color: var(--team-color, #c00);
  background: linear-gradient(135deg, var(--team-color, #c00) 0%, var(--team-color, #c00) 44%, #fff 45%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12), 0 8px 18px rgba(0,0,0,0.14);
}

.pw-nfl-team-inner {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.pw-nfl-team-option input:checked + .pw-nfl-team-card .pw-nfl-team-inner {
  transform: scale(1.015);
  box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

.pw-nfl-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 7px;
  transition: transform 0.18s ease;
  will-change: transform;
}

.pw-nfl-team-option input:checked + .pw-nfl-team-card .pw-nfl-logo {
  transform: scale(1.08);
}

.pw-nfl-team-name {
  font-weight: 900;
  color: #222;
  line-height: 1.2;
}

.pw-nfl-team-abbr {
  margin-top: 5px;
  font-size: 0.78rem;
  color: #777;
  font-weight: 800;
}

.pw-nfl-selected-badge {
  display: none;
  margin-top: 9px;
  color: #c00;
  font-size: 0.85rem;
  font-weight: 900;
}

.pw-nfl-team-option input:checked + .pw-nfl-team-card .pw-nfl-selected-badge {
  display: block;
}

/* Card Consensus */
.pw-nfl-card-consensus {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #444;
  font-size: 0.78rem;
  font-weight: 900;
}

.pw-nfl-team-option input:checked + .pw-nfl-team-card .pw-nfl-card-consensus {
  background: #c00;
  color: #fff;
}

/* Consensus Bar */
.pw-nfl-consensus {
  margin-top: 16px;
}

.pw-nfl-consensus-title {
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 900;
}

.pw-nfl-consensus-bar {
  display: flex;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee;
}

.pw-nfl-consensus-away,
.pw-nfl-consensus-home {
  color: #fff;
  font-size: 0.78rem;
  line-height: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.pw-nfl-consensus-away {
  text-align: left;
  padding-left: 10px;
}

.pw-nfl-consensus-home {
  text-align: right;
  padding-right: 10px;
}

/* Locked / Your Pick */
.pw-nfl-locked {
  text-align: center;
  padding: 12px;
  background: #f3f3f3;
  border: 1px dashed #bbb;
  border-radius: 12px;
  color: #555;
  font-weight: 800;
}

.pw-nfl-your-pick {
  margin-top: 10px;
  text-align: center;
  font-weight: 900;
  color: #c00;
}

/* Submit */
.pw-nfl-submit-wrap {
  margin-top: 28px;
  margin-bottom: 60px;
  text-align: center;
}

.pw-nfl-submit {
  width: 100%;
  max-width: 420px;
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #d32f2f, #9f0000);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(204,0,0,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.pw-nfl-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(204,0,0,0.28);
}

/* Tiebreaker */
.pw-nfl-tiebreaker {
  margin: 34px 0 24px;
  padding: 24px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, #fff5f5, #fff 45%, #f7f7f7);
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.pw-nfl-tiebreaker-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #c00;
}

.pw-nfl-tiebreaker-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin: 18px auto 12px;
}

.pw-nfl-tiebreaker-value span {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
}

.pw-nfl-tiebreaker-value small {
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
}

.pw-nfl-pickem-form input.pw-nfl-tiebreaker-number {
  display: block;
  width: 110px;
  max-width: 110px;
  min-width: 110px;
  height: 58px;
  margin: 18px auto;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: #c00;
  background: #fff;
  border: 3px solid #c00;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(204,0,0,0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.pw-nfl-tiebreaker-number:hover {
  border-color: #990000;
  transform: scale(1.03);
}

.pw-nfl-tiebreaker-number:focus {
  outline: none;
  border-color: #990000;
  box-shadow: 0 0 0 4px rgba(204,0,0,0.15);
}

/* Football Slider */
.pw-nfl-tiebreaker-slider,
.pw-nfl-slider-yardline,
.pw-nfl-tiebreaker-scale {
  width: 70%;
  max-width: 680px;
  min-width: 520px;
}

.pw-nfl-tiebreaker input[type="range"].pw-nfl-tiebreaker-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  height: 8px;
  margin: 38px auto 4px;
  background: linear-gradient(90deg, #555, #222);
  border-radius: 999px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}

.pw-nfl-tiebreaker input[type="range"].pw-nfl-tiebreaker-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 58px;
  height: 36px;
  border: 2px solid #5c1f0d;
  border-radius: 50%;
  cursor: pointer;
  background:
    linear-gradient(90deg, transparent 0 41%, #fff 42% 46%, transparent 47% 53%, #fff 54% 58%, transparent 59% 100%),
    radial-gradient(ellipse at center, #9b3f20 0%, #6d230f 72%, #3a1308 100%);
  box-shadow: 0 5px 12px rgba(0,0,0,0.35);
  transform: translateY(-14px);
}

.pw-nfl-tiebreaker input[type="range"].pw-nfl-tiebreaker-slider::-moz-range-thumb {
  width: 58px;
  height: 36px;
  border: 2px solid #5c1f0d;
  border-radius: 50%;
  cursor: pointer;
  background:
    linear-gradient(90deg, transparent 0 41%, #fff 42% 46%, transparent 47% 53%, #fff 54% 58%, transparent 59% 100%),
    radial-gradient(ellipse at center, #9b3f20 0%, #6d230f 72%, #3a1308 100%);
  box-shadow: 0 5px 12px rgba(0,0,0,0.35);
  transform: translateY(-14px);
}

.pw-nfl-slider-yardline {
  position: relative;
  height: 42px;
  margin: 0 auto;
}

.pw-nfl-slider-yardline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 28px,
    rgba(0,0,0,0.22) 29px,
    rgba(0,0,0,0.22) 31px
  );
  pointer-events: none;
}

.pw-yard {
  position: absolute;
  top: 25px;
  font-weight: 900;
  color: #555;
  font-size: 0.9rem;
}

.pw-yard-0 {
  left: 0;
}

.pw-yard-60 {
  left: 50%;
  transform: translateX(-50%);
}

.pw-yard-120 {
  right: 0;
}

/* Goalposts */
.pw-goalpost {
  position: absolute;
  top: -34px;
  width: 44px;
  height: 54px;
  border-left: 5px solid #e0a800;
  border-right: 5px solid #e0a800;
  border-bottom: 5px solid #e0a800;
  border-radius: 0 0 5px 5px;
  z-index: 2;
}

.pw-goalpost::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 7px;
  height: 24px;
  background: #b00000;
  transform: translateX(-50%);
  border-radius: 3px;
}

.pw-goalpost-left {
  left: -24px;
}

.pw-goalpost-right {
  right: -24px;
}

.pw-nfl-tiebreaker-scale {
  margin: -4px auto 0;
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 0.9rem;
  font-weight: 900;
}

/* Mobile */
@media (max-width: 700px) {
  .pw-nfl-matchup {
    grid-template-columns: 1fr;
  }

  .pw-nfl-team-card {
    min-height: 105px;
  }

  .pw-nfl-tiebreaker-slider,
  .pw-nfl-slider-yardline,
  .pw-nfl-tiebreaker-scale {
    width: 92%;
    min-width: 0;
  }

  .pw-goalpost {
    top: -28px;
    width: 34px;
    height: 44px;
  }

  .pw-goalpost-left {
    left: -16px;
  }

  .pw-goalpost-right {
    right: -16px;
  }
}

.pw-pickem-submitted {
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.pw-pickem-submitted h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
}

.pw-pickem-submitted p {
  margin: 0;
  color: #444;
  font-weight: 600;
}

.pw-pickem-saved {
  background: #e8f7e8;
  border-color: #6abf69;
}

.pw-pickem-error {
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #fdeaea;
  border: 1px solid #d33;
  border-radius: 12px;
  color: #8b0000;
  font-weight: 800;
}