/* Competition deep-link landing — complements landing.css brand tokens. */
.comp-landing {
  min-height: 100vh;
  background: #091324;
  color: #d9e3fb;
}

.comp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 32, 49, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(69, 71, 76, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.comp-nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  height: 3.75rem;
  padding: 0 0.75rem;
}

.comp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Sora, IBM Plex Sans Arabic, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  justify-self: start;
  min-width: 0;
}

.comp-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Icon-only on phones — brand text crowds Home / Competition / lang. */
.comp-brand-label {
  display: none;
  white-space: nowrap;
}

.comp-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
}

.comp-nav-link {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #c6c6cd;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.comp-nav-link:hover {
  color: #cdf200;
}

/* Lime active — same as homepage .nav-link.is-active (not white text-secondary). */
.comp-nav-link.active {
  color: #cdf200 !important;
  border-bottom-color: #cdf200;
}

.comp-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  justify-self: end;
}

.comp-lang .lang-btn {
  font-size: 0.7rem;
}

@media (min-width: 640px) {
  .comp-nav-inner {
    height: 5rem;
    gap: 0.75rem;
    padding: 0 1rem;
    grid-template-columns: 1fr auto 1fr;
  }

  .comp-brand {
    font-size: 1.25rem;
    gap: 0.75rem;
  }

  .comp-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .comp-brand-label {
    display: inline;
  }

  .comp-nav-center {
    gap: 2rem;
  }

  .comp-nav-link {
    font-size: 0.875rem;
  }

  .comp-lang .lang-btn {
    font-size: 0.75rem;
  }
}

.comp-main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.comp-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #040e1f;
}

.comp-hero img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.comp-hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, #091324);
  pointer-events: none;
}

/* Soft coral — matches app AppColors.tertiaryOrange (#FFB693). */
.comp-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: rgba(9, 19, 36, 0.88);
  border: 1px solid rgba(255, 182, 147, 0.45);
  color: #ffb693;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.comp-countdown[hidden] {
  display: none !important;
}

/* Top-start: left in EN (LTR), right in AR (RTL) — follows reading direction. */
.comp-countdown--hero {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
  margin-bottom: 0;
}

.comp-countdown-icon {
  flex-shrink: 0;
  color: #ffb693;
}

.comp-countdown-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 182, 147, 0.35);
  flex-shrink: 0;
}

.comp-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 0.5rem;
}

.comp-hero-empty img {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(205, 242, 0, 0.2);
}

.comp-panel {
  position: relative;
  z-index: 1;
  margin-top: -2.5rem;
  padding: 0 1.1rem 1rem;
}

.comp-panel--solo {
  margin-top: 0.75rem;
}

.comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(205, 242, 0, 0.45);
  background: rgba(4, 14, 31, 0.85);
  color: #cdf200;
  font-size: 0.8rem;
  font-weight: 600;
}

.comp-pill--ok {
  border-color: rgba(205, 242, 0, 0.55);
  color: #cdf200;
}

.comp-pill--danger {
  border-color: rgba(255, 100, 100, 0.5);
  color: #ffb4b4;
}

.comp-title {
  margin: 0 0 0.75rem;
  font-family: Sora, IBM Plex Sans Arabic, sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.comp-chip {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: rgba(205, 242, 0, 0.12);
  color: #cdf200;
  font-size: 0.8rem;
  font-weight: 600;
}

.comp-message {
  margin: 0 0 1rem;
  color: #c6c6cd;
  line-height: 1.5;
}

.comp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(22, 32, 49, 0.9);
  border: 1px solid rgba(69, 71, 76, 0.35);
}

.comp-meta:empty {
  display: none;
}

.comp-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.comp-meta-label {
  color: #c6c6cd;
}

.comp-meta-value {
  color: #fff;
  font-weight: 600;
  text-align: end;
}

.comp-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: #cdf200;
  color: #181e00;
  font-family: Sora, IBM Plex Sans Arabic, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(205, 242, 0, 0.28);
}

.comp-cta:active {
  transform: scale(0.98);
}

.comp-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Sticky under nav — visible on first open, above the hero; never covers Join. */
.comp-scroll-cue {
  position: sticky;
  top: 3.75rem;
  z-index: 45;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(
    180deg,
    rgba(22, 32, 49, 0.98),
    rgba(22, 32, 49, 0.88)
  );
  border-bottom: 1px solid rgba(205, 242, 0, 0.22);
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.comp-scroll-cue.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.comp-scroll-cue-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cdf200;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.comp-scroll-cue-icon {
  flex-shrink: 0;
  animation: comp-cue-bounce 1.5s ease-in-out infinite;
}

@keyframes comp-cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .comp-scroll-cue-icon {
    animation: none;
  }
}

@media (min-width: 640px) {
  .comp-scroll-cue {
    top: 5rem;
  }
}

/* Mobile hero height — taller than the last cut; still under desktop 52vh. */
@media (max-width: 639px) {
  .comp-hero img {
    max-height: 45vh;
  }
}

.comp-download {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(22, 32, 49, 0.92);
  border: 1px solid rgba(205, 242, 0, 0.18);
  scroll-margin-top: 6rem;
}

.comp-download-title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: Sora, IBM Plex Sans Arabic, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.comp-download-hint,
.comp-ig-hint {
  margin: 0.55rem 0 0;
  text-align: center;
  color: #c6c6cd;
  font-size: 0.85rem;
  line-height: 1.45;
}

.comp-download-hint {
  margin-top: 0;
}

.comp-stores {
  margin-top: 0.9rem;
  justify-content: center;
}

.comp-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comp-step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  text-align: start;
}

.comp-step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(205, 242, 0, 0.16);
  border: 1px solid rgba(205, 242, 0, 0.4);
  color: #cdf200;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.comp-step-text {
  color: #e8eaf0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.comp-step-hint {
  display: block;
  margin-top: 0.2rem;
  color: #c6c6cd;
  font-size: 0.8rem;
  font-weight: 500;
}

.comp-store-secondary {
  opacity: 0.72;
}

.comp-notes {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(17, 28, 45, 0.95);
  border: 1px solid rgba(69, 71, 76, 0.3);
}

.comp-notes h2 {
  margin: 0 0 0.5rem;
  font-family: Sora, IBM Plex Sans Arabic, sans-serif;
  font-size: 0.95rem;
  color: #cdf200;
}

.comp-notes p {
  margin: 0;
  white-space: pre-wrap;
  color: #d9e3fb;
  line-height: 1.55;
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .comp-main {
    max-width: 32rem;
    padding-top: 1rem;
  }

  .comp-hero {
    border-radius: 1rem;
    margin: 0 1rem;
  }

  .comp-hero img {
    max-height: 420px;
  }
}
