/*
 * Barcode Challenges Hub
 * Uses the exact existing World Cup draw palette.
 * No imported patch CSS and no dependency on --primary.
 */

@import url("/static-v2/style.css");

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #10373a;
  background: #f4f7f7;
  font-family:
    "Cairo",
    "Tajawal",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body * {
  box-sizing: border-box;
}

body a {
  color: inherit;
  text-decoration: none;
}

.challenges-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

/* Hero */

.challenges-page .challenges-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid rgba(16, 55, 58, 0.10);
  border-radius: 30px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #166b61 0%,
      #1b8b73 55%,
      #2f8f8f 100%
    );
  box-shadow: 0 24px 70px rgba(39, 99, 100, 0.14);
}

.challenges-page .brand-mark {
  position: relative;
  z-index: 3;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.challenges-page .brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 13px;
  color: #166b61;
  background: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.challenges-page .brand-name {
  direction: ltr;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.challenges-page .hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
  color: #ffffff;
}

.challenges-page .hero-copy .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.challenges-page .hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.challenges-page .hero-copy p {
  max-width: 570px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.challenges-page .hero-decoration {
  position: absolute;
  z-index: 1;
  right: -70px;
  bottom: -105px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
}

.challenges-page .hero-decoration span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.challenges-page .hero-decoration span:nth-child(1) {
  inset: 35px;
}

.challenges-page .hero-decoration span:nth-child(2) {
  inset: 85px;
}

.challenges-page .hero-decoration span:nth-child(3) {
  inset: 135px;
  background: rgba(255, 255, 255, 0.10);
}

/* Section */

.challenges-page .challenges-section {
  padding: 40px 4px 0;
}

.challenges-page .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.challenges-page .section-heading .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #5e7b7d;
  font-size: 13px;
  font-weight: 800;
}

.challenges-page .section-heading h2 {
  margin: 0;
  color: #10373a;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.challenges-page .challenge-count {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(16, 55, 58, 0.10);
  border-radius: 999px;
  color: #10373a;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

/* Cards */

.challenges-page .challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.challenges-page .challenge-card {
  overflow: hidden;
  border: 1px solid rgba(16, 55, 58, 0.10);
  border-radius: 22px;
  color: #10373a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(39, 99, 100, 0.10);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.challenges-page .challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(39, 99, 100, 0.14);
}

.challenges-page .card-cover {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 22px;
}

.challenges-page .card-cover--prediction {
  color: #ffffff;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.16),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      #166b61,
      #1b8b73
    );
}

.challenges-page .card-cover--shoot {
  color: #10373a;
  background:
    radial-gradient(
      circle at 72% 28%,
      rgba(255, 255, 255, 0.28),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      #68b8b8,
      #85c9c9
    );
}

.challenges-page .card-cover--coming {
  color: #10373a;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(133, 201, 201, 0.10) 0,
      rgba(133, 201, 201, 0.10) 10px,
      transparent 10px,
      transparent 20px
    ),
    #f4f7f7;
}

.challenges-page .card-badge {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.challenges-page .card-badge--finished {
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #ffffff;
  background: rgba(16, 55, 58, 0.66);
}

.challenges-page .card-badge--soon {
  border: 1px solid rgba(16, 55, 58, 0.10);
  color: #10373a;
  background: #ffffff;
}

.challenges-page .card-visual {
  position: relative;
  width: 100%;
  min-height: 135px;
  display: grid;
  place-items: center;
}

.challenges-page .visual-ball {
  position: absolute;
  top: 15px;
  right: 28%;
  font-size: 66px;
  filter: drop-shadow(0 15px 18px rgba(16, 55, 58, 0.22));
  transform: rotate(-10deg);
}

.challenges-page .visual-score {
  position: absolute;
  left: 16%;
  bottom: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(16, 55, 58, 0.38);
  font-size: 25px;
  font-weight: 900;
}

.challenges-page .target-ring {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 14px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.20),
    0 18px 30px rgba(16, 55, 58, 0.16);
}

.challenges-page .target-ring::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 9px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
}

.challenges-page .target-ring span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ffffff;
}

.challenges-page .visual-ball--shoot {
  top: auto;
  right: auto;
  left: 14%;
  bottom: -2px;
  font-size: 49px;
  transform: rotate(14deg);
}

.challenges-page .coming-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(47, 143, 143, 0.30);
  border-radius: 25px;
  color: #2f8f8f;
  font-size: 45px;
  font-weight: 300;
}

.challenges-page .card-body {
  padding: 22px;
}

.challenges-page .card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.challenges-page .card-title-row h3 {
  margin: 0;
  color: #10373a;
  font-size: 21px;
  line-height: 1.45;
}

.challenges-page .card-title-row > span {
  font-size: 23px;
}

.challenges-page .card-body p {
  min-height: 52px;
  margin: 11px 0 20px;
  color: #5e7b7d;
  font-size: 14px;
  line-height: 1.85;
}

.challenges-page .card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 47px;
  padding: 11px 15px;
  border: 1px solid rgba(16, 55, 58, 0.10);
  border-radius: 14px;
  color: #10373a;
  background: #f4f7f7;
  font-size: 14px;
  font-weight: 900;
}

.challenges-page .card-action--primary {
  border-color: #2f8f8f;
  color: #ffffff;
  background: #2f8f8f;
}

.challenges-page .card-action--disabled {
  color: #5e7b7d;
  background: #f4f7f7;
}

/* Footer */

.challenges-page .challenges-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 42px 0 3px;
  color: #5e7b7d;
  font-size: 13px;
}

.challenges-page .challenges-footer strong {
  direction: ltr;
  color: #2f8f8f;
  letter-spacing: 0.08em;
}

/* Shoot page */

.coming-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #10373a;
  background: #f4f7f7;
}

.coming-page .coming-panel {
  width: min(650px, 100%);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(16, 55, 58, 0.10);
  border-radius: 30px;
  text-align: center;
  color: #10373a;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(39, 99, 100, 0.14);
}

.coming-page .back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #2f8f8f;
  font-size: 14px;
  font-weight: 900;
}

.coming-page .shoot-preview {
  position: relative;
  width: 180px;
  height: 160px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.coming-page .target-ring {
  position: relative;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border: 14px solid #2f8f8f;
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(133, 201, 201, 0.20);
}

.coming-page .target-ring::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 9px solid #85c9c9;
  border-radius: 50%;
}

.coming-page .target-ring span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #d7b05e;
}

.coming-page .shoot-ball {
  position: absolute;
  left: 2px;
  bottom: 4px;
  font-size: 56px;
  transform: rotate(12deg);
}

.coming-page .eyebrow {
  color: #2f8f8f;
  font-size: 13px;
  font-weight: 800;
}

.coming-page h1 {
  margin: 8px 0 0;
  color: #10373a;
  font-size: clamp(39px, 7vw, 65px);
  line-height: 1.15;
}

.coming-page p {
  max-width: 500px;
  margin: 18px auto 26px;
  color: #5e7b7d;
  font-size: 17px;
  line-height: 1.9;
}

.coming-page .launch-status {
  display: inline-flex;
  padding: 11px 17px;
  border: 1px solid rgba(16, 55, 58, 0.10);
  border-radius: 999px;
  color: #10373a;
  background: #85c9c9;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .challenges-page .challenges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenges-page .challenge-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .challenges-page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .challenges-page .challenges-hero {
    min-height: 300px;
    padding: 22px;
    border-radius: 24px;
  }

  .challenges-page .hero-copy h1 {
    font-size: 45px;
  }

  .challenges-page .hero-copy p {
    font-size: 15px;
    line-height: 1.8;
  }

  .challenges-page .challenges-section {
    padding-top: 30px;
  }

  .challenges-page .section-heading {
    align-items: center;
  }

  .challenges-page .challenges-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .challenges-page .challenge-card:last-child {
    grid-column: auto;
  }

  .challenges-page .card-cover {
    min-height: 180px;
  }

  .challenges-page .card-body p {
    min-height: auto;
  }

  .challenges-page .challenges-footer {
    flex-direction: column;
  }
}

/* =========================================================
   BARCODE CHALLENGES — EXACT TARGET PALETTE
   Matches the original prediction page visual identity
   ========================================================= */

html,
body {
  background: #fff8e5 !important;
  color: #10373a !important;
}

.challenges-page {
  background: transparent !important;
}

/* Hero: same light turquoise used in the prediction page */
.challenges-page .challenges-hero {
  color: #ffffff !important;
  background: #78c4c5 !important;
  border-color: rgba(16, 55, 58, 0.08) !important;
  box-shadow: none !important;
}

.challenges-page .brand-mark,
.challenges-page .brand-name,
.challenges-page .hero-copy,
.challenges-page .hero-copy h1,
.challenges-page .hero-copy p,
.challenges-page .hero-copy .eyebrow {
  color: #ffffff !important;
}

.challenges-page .brand-icon {
  color: #78c4c5 !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

.challenges-page .hero-decoration,
.challenges-page .hero-decoration span {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.challenges-page .hero-decoration span:nth-child(3) {
  background: rgba(255, 255, 255, 0.10) !important;
}

/* Section */
.challenges-page .section-heading h2,
.challenges-page .card-title-row h3 {
  color: #10373a !important;
}

.challenges-page .section-heading .eyebrow,
.challenges-page .card-body p,
.challenges-page .challenges-footer {
  color: #5e7b7d !important;
}

.challenges-page .challenge-count {
  color: #10373a !important;
  background: #ffffff !important;
  border-color: rgba(16, 55, 58, 0.10) !important;
}

/* Cards */
.challenges-page .challenge-card {
  color: #10373a !important;
  background: #ffffff !important;
  border-color: rgba(16, 55, 58, 0.10) !important;
  box-shadow: none !important;
}

/* Finished prediction card */
.challenges-page .card-cover--prediction {
  color: #ffffff !important;
  background: #78c4c5 !important;
}

/* Shooting card */
.challenges-page .card-cover--shoot {
  color: #10373a !important;
  background: #78c4c5 !important;
}

/* Coming card */
.challenges-page .card-cover--coming {
  color: #10373a !important;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(120, 196, 197, 0.11) 0,
      rgba(120, 196, 197, 0.11) 10px,
      transparent 10px,
      transparent 20px
    ),
    #f7fbfa !important;
}

/* Badges */
.challenges-page .card-badge--finished {
  color: #ffffff !important;
  background: #10373a !important;
  border-color: #10373a !important;
}

.challenges-page .card-badge--soon {
  color: #10373a !important;
  background: #ffffff !important;
  border-color: rgba(16, 55, 58, 0.10) !important;
}

/* Score */
.challenges-page .visual-score {
  color: #ffffff !important;
  background: rgba(16, 55, 58, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Target */
.challenges-page .target-ring {
  border-color: #ffffff !important;
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.22) !important;
}

.challenges-page .target-ring::before {
  border-color: rgba(255, 255, 255, 0.62) !important;
}

.challenges-page .target-ring span {
  background: #ffffff !important;
}

/* Coming icon */
.challenges-page .coming-symbol {
  color: #2f8f8f !important;
  border-color: rgba(47, 143, 143, 0.25) !important;
}

/* Buttons */
.challenges-page .card-action {
  color: #10373a !important;
  background: #ffffff !important;
  border-color: rgba(16, 55, 58, 0.10) !important;
}

.challenges-page .card-action--primary {
  color: #10373a !important;
  background: #ffffff !important;
  border-color: rgba(16, 55, 58, 0.10) !important;
}

.challenges-page .card-action--disabled {
  color: #5e7b7d !important;
  background: #ffffff !important;
}

/* Gold accent only */
.challenges-page .challenge-card--finished .card-title-row > span,
.challenges-page .challenges-footer strong {
  color: #d7b05e !important;
}

/* Shoot placeholder page */
.coming-page {
  color: #10373a !important;
  background: #fff8e5 !important;
}

.coming-page .coming-panel {
  color: #10373a !important;
  background: #ffffff !important;
  border-color: rgba(16, 55, 58, 0.10) !important;
  box-shadow: none !important;
}

.coming-page .back-link,
.coming-page .eyebrow {
  color: #2f8f8f !important;
}

.coming-page .launch-status {
  color: #10373a !important;
  background: #78c4c5 !important;
}

