/* ── Landing page ────────────────────────────────────────────────────────── */

.lp-root {
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
}

.lp-layout {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
}

/* ── Left column ─────────────────────────────────────────────────────────── */
.lp-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Headline — the dominant element */
.lp-title {
  font-size: clamp(3.25rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 1.5rem;
  line-height: 0.95;
}

/* Subtitle */
.lp-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  line-height: 1.55;
  max-width: 380px;
}
.lp-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── PIN form — primary action ───────────────────────────────────────────── */
.lp-pin-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin-bottom: 1.5rem;
}

.lp-pin-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}
.lp-pin-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.lp-pin-input:focus {
  border-color: var(--primary);
}

.lp-pin-btn {
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.lp-pin-btn:hover  { filter: brightness(1.12); }
.lp-pin-btn:active { transform: scale(0.97); }

/* ── Secondary links ─────────────────────────────────────────────────────── */
.lp-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.lp-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.12s;
}
.lp-link:hover { color: var(--text-primary); }
.lp-sep { color: var(--text-muted); opacity: 0.35; }

/* ── Right sidebar ───────────────────────────────────────────────────────── */
.lp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Live status block */
.lp-status-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-elevated);
}
.lp-status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lp-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  flex-shrink: 0;
}
.lp-status-dot--live {
  background: #10b981;
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: lp-blink 2s ease-in-out infinite;
}
@keyframes lp-blink {
  0%   { box-shadow: 0 0 0 0   rgba(16,185,129,.6); }
  60%  { box-shadow: 0 0 0 6px rgba(16,185,129,0);  }
  100% { box-shadow: 0 0 0 0   rgba(16,185,129,0);  }
}
.lp-status-icon { font-size: 0.78rem; }

/* Winners block */
.lp-winners {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated);
}
.lp-winners__title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.lp-winners__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lp-winner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
}
.lp-winner__rank {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.lp-winner--first .lp-winner__rank {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.4);
  color: #f59e0b;
}
.lp-winner__name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-winner__score {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Steps */
.lp-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lp-step {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.4;
}
.lp-step__n {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Theme: bright-playful overrides ─────────────────────────────────────── */
[data-qa-theme="bright-playful"] .lp-title { color: #1a0040; }
[data-qa-theme="bright-playful"] .lp-pin-input {
  background: #fff;
  border-color: rgba(124,58,237,.2);
  color: #1a0040;
}
[data-qa-theme="bright-playful"] .lp-pin-input:focus { border-color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .lp-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lp-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .lp-status-block,
  .lp-winners { flex: 1; min-width: 180px; }
  .lp-steps { display: none; }
  .lp-pin-form { max-width: 100%; }
}

@media (max-width: 760px) {
  .lp-title {
    font-size: clamp(4rem, 20vw, 5.5rem);
    line-height: 0.95;
  }
}

@media (max-width: 420px) {
  .lp-root  { padding: 2rem 1.25rem 3rem; }
}

@media (max-width: 575px) {
  .lp-title {
    font-size: clamp(1.75rem, 14vw, 4rem);
    margin-bottom: 1.1rem;
  }
}
