/* Landing page (index.php). Builds on css/cff.css tokens. */

.landing__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 380px);
  gap: 48px;
  align-items: center;
  min-height: 88vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 120px;
}
.landing__title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(56px, 11vw, 148px);
  line-height: .86;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 6px 6px 0 var(--team-red);
}
.landing__lead {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: 19px;
  color: var(--muted);
}
.landing__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.landing__langs a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.landing__langs a[aria-current] { color: var(--maillot); border-bottom: 2px solid var(--maillot); }

.landing__card {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: var(--night-2);
  border-top: 6px solid var(--maillot);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.landing__form { display: grid; gap: 6px; }
.landing__form label { font: 700 17px var(--display); color: var(--text); margin-top: 8px; }
.landing__form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
}
.landing__form .cff-button { margin: 18px 0 0; border: 0; cursor: pointer; font-size: 20px; padding: 10px; }
.landing__register {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border: 2px solid var(--maillot);
  border-radius: 999px;
  text-align: center;
  font: 700 18px var(--display);
  text-decoration: none;
}
.landing__links { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); }
.landing__links li { margin: 6px 0; }
.landing__links a { color: var(--muted); }

.landing .cff-profile { height: 90px; fill: var(--team-red); }
.landing__ad { max-width: 728px; margin: 0 auto 40px; padding: 0 16px; }

@media (max-width: 800px) {
  .landing__hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 32px 16px 90px; }
  .landing__lead { font-size: 17px; }
  .landing .cff-profile { height: 56px; }
}

.landing__intro .cff-theme { margin-top: 22px; }
:root[data-theme="contrast"] .landing__title { text-shadow: none; text-decoration: underline 6px; }
:root[data-theme="contrast"] .landing__card { border: 2px solid #fff; border-top-width: 6px; border-top-color: var(--maillot); }

/* ---- game tour carousel ---------------------------------------------------- */
.tour { max-width: 1180px; margin: -40px auto 56px; padding: 0 24px; position: relative; z-index: 1; }
.tour__title { margin: 0 0 16px; font: 800 italic 38px/1 var(--display); color: var(--text); }
.tour__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.tour__track::-webkit-scrollbar { display: none; }
.tour__track:focus-visible { outline: 3px solid var(--maillot); outline-offset: 4px; }
.tour__slide {
  position: relative; margin: 0; scroll-snap-align: start;
  background: var(--night-2); border-top: 6px solid var(--maillot);
}
.tour__slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.tour__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 4px; padding: 56px 28px 24px;
  background: linear-gradient(to top, rgba(6, 10, 34, .96) 35%, rgba(6, 10, 34, 0));
  color: #fff;
}
.tour__slide figcaption strong { font: 800 italic 30px/1.05 var(--display); color: var(--maillot); }
.tour__slide figcaption span { max-width: 52ch; font-size: 17px; color: #e6e9f5; }
.tour__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.tour__arrow {
  width: 42px; height: 42px; border: 2px solid var(--rule); border-radius: 50%;
  background: var(--night-2); color: var(--text); font: 700 26px/1 var(--display); cursor: pointer;
}
.tour__arrow:hover { border-color: var(--maillot); color: var(--maillot); }
.tour__dots { display: flex; gap: 8px; }
.tour__dots a { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.tour__dots a[aria-current="true"] { width: 26px; border-radius: 999px; background: var(--maillot); }
@media (max-width: 800px) {
  .tour { margin-top: -20px; padding: 0 16px; }
  .tour__title { font-size: 30px; }
  .tour__slide img { aspect-ratio: 4 / 3; }
  .tour__slide figcaption { position: static; padding: 14px 16px 18px; background: var(--night-2); }
  .tour__slide figcaption strong { font-size: 24px; }
  .tour__slide figcaption span { font-size: 15px; color: var(--muted); }
}
:root[data-theme="light"] .tour__slide figcaption span { color: #e6e9f5; }
@media (max-width: 800px) { :root[data-theme="light"] .tour__slide figcaption span { color: var(--muted); } }
/* tour: below the hero's mountain profile, caption under the picture */
.tour { margin: 24px auto 56px; max-width: 1020px; }
.tour__slide figcaption { position: static; padding: 16px 22px 20px; background: var(--night-2); }
.tour__slide figcaption span { color: var(--muted); }
:root[data-theme="light"] .tour__slide figcaption span { color: var(--muted); }
.tour__track { align-items: start; } .tour__slide img { aspect-ratio: 16 / 10; }  @media (max-width: 800px) { .tour__slide img { aspect-ratio: 16 / 10; } }
