/* Sarclisa vs Goliath — home / attract screen. Built to the key visual: cold
   misty valley behind, the headline in the orange-to-amber gradient, the
   evidence and the board to the side, the material code along the bottom. */

.cover {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f4f6fa;
  background: #8fb2cd;
}

.cover__scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Darkens the left, where the type sits, and the bottom, where the code sits,
   without flattening the picture. */
.cover__veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 16, 28, 0.62) 0%, rgba(10, 16, 28, 0.32) 42%, rgba(10, 16, 28, 0) 70%),
    linear-gradient(0deg, rgba(10, 16, 28, 0.7) 0%, rgba(10, 16, 28, 0) 26%);
  pointer-events: none;
}

.cover__top, .cover__main, .cover__foot { position: relative; z-index: 2; }

/* ── header ────────────────────────────────────────────────── */

.cover__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.2vh, 26px) clamp(18px, 3.5vw, 56px);
}

.cover__brand { display: flex; flex-direction: column; line-height: 1.1; }
.cover__product { font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; letter-spacing: 0.06em; }
.cover__product sup { font-size: 0.45em; vertical-align: top; margin-inline-start: 2px; }
.cover__inn { font-size: clamp(11px, 1vw, 14px); color: rgba(244, 246, 250, 0.72); letter-spacing: 0.04em; }

.lang { min-width: 84px; }

/* ── main ──────────────────────────────────────────────────── */

.cover__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding: 0 clamp(18px, 3.5vw, 56px) clamp(16px, 3vh, 36px);
}

.cover__hero { max-width: 44rem; }

.cover__kicker {
  margin: 0 0 clamp(8px, 1.4vh, 16px);
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 246, 250, 0.9);
  max-width: 34rem;
}
.cover__kicker b { color: #ff9a2e; }

.cover__title {
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  font-size: clamp(56px, 9.5vw, 148px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.cover__data, .cover__goliath {
  background: linear-gradient(100deg, #f2601f 0%, #ff9a2e 55%, #ffc247 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(242, 96, 31, 0.28));
}
.cover__vs {
  font-size: 0.34em;
  letter-spacing: 0.02em;
  color: #ff9a2e;
  margin: 0.06em 0 0.08em 0.06em;
}
[dir="rtl"] .cover__title { letter-spacing: 0; line-height: 1.12; }

.cover__tag {
  margin: 0 0 clamp(18px, 3vh, 34px);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 700;
  color: #ffb36b;
}

.btn--xl {
  font-size: clamp(18px, 1.7vw, 26px);
  padding: 0.85em 1.6em;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(242, 96, 31, 0.35);
}
.cover__start { display: inline-flex; align-items: center; gap: 0.7em; }
.cover__hint { margin: 12px 2px 0; font-size: 13px; }

/* ── side: evidence + board ────────────────────────────────── */

.cover__side { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 20px); }

.board {
  padding: clamp(18px, 2vw, 28px) clamp(20px, 2.2vw, 30px);
  border-radius: 18px;
  background: rgba(8, 14, 26, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.board__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb36b;
}

.board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board__row {
  display: grid;
  grid-template-columns: 1.7em 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: clamp(17px, 1.5vw, 22px);
}
.board__row:first-child { background: rgba(255, 154, 46, 0.14); }
.board__rank { font-weight: 800; color: #ff9a2e; }
.board__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board__score { font-weight: 800; font-variant-numeric: tabular-nums; }
.board__empty { margin: 0; font-size: 14px; }

/* ── footer ────────────────────────────────────────────────── */

.cover__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 10px clamp(18px, 3.5vw, 56px) clamp(12px, 2vh, 20px);
  font-size: 12px;
  color: rgba(244, 246, 250, 0.72);
}
.cover__sanofi { font-weight: 800; letter-spacing: 0.02em; font-size: 16px; color: #fff; }
.cover__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .cover__main { grid-template-columns: 1fr; align-items: start; padding-top: 8px; }
  .cover__title { font-size: clamp(48px, 15vw, 96px); }
}

/* A portrait booth screen (a 32″ 16:9 panel stood on end, 1080×1920): the
   headline and the button on top, the board large beneath. */
@media (orientation: portrait) {
  /* The world is drawn into the lower 60% only, so the creatures stand beneath
     the board rather than behind it; the page colour above matches the top of
     the painted sky so the join does not show. */
  .cover { background: #7ba3c4; }
  .cover__scene { top: auto; bottom: 0; height: 60%; }
  .cover__main {
    grid-template-columns: 1fr;
    align-content: start;
    gap: clamp(28px, 5vh, 64px);
    padding-top: clamp(20px, 5vh, 80px);
  }
  .cover__hero { max-width: none; }
  .cover__title { font-size: clamp(64px, 17vw, 190px); }
  /* Darkest exactly where the painted sky meets the flat page colour (40%),
     so the join is under shade rather than in the open. */
  .cover__veil {
    background:
      linear-gradient(180deg, rgba(10, 16, 28, 0.5) 0%, rgba(10, 16, 28, 0.46) 40%, rgba(10, 16, 28, 0.22) 55%, rgba(10, 16, 28, 0.72) 100%);
  }
  .cover__hint { color: rgba(244, 246, 250, 0.82); font-size: 15px; }
  .board__row { font-size: clamp(20px, 2.4vw, 30px); padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cover__data, .cover__goliath { filter: none; }
}
