/* LSX.fi – page CSS on top of the design system in /assets (tasteskill kit).
   Only the fonts and what sits inside a visual live here; tokens, grid, buttons and sections come from system.css. */

@font-face {
  font-family: "SUSE";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/suse-latin.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2");
}

/* the client's logo in the nav and the footer, in place of a dealt mark */
.nav__logo .nav__img { width: 72px; height: 40px; object-fit: cover; }   /* the square logo file cropped to its letters */

/* live state dot (hero notice and the status panel) */
.dot { display: inline-block; width: 8px; height: 8px; margin-right: var(--s-2); border-radius: 999px; background: currentColor; opacity: .5; vertical-align: .1em; }
[data-state="online"] .dot { background: #2f9e44; opacity: 1; }
[data-state="offline"] .dot { background: #c92a2a; opacity: 1; }

/* the join steps: the number beside the step's name */
.steps .rows__name { display: inline-flex; align-items: center; gap: var(--s-3); }
.steps .step-num { flex: none; }
.steps > li > p { padding-left: 44px; }
.steps > li { padding-block: var(--s-5); }

/* the footer name: SUSE's caps sit higher than the kit's .86 leading allows */
.close__word { line-height: 1; }

code { font-family: var(--font-mono); font-size: .875em; }

/* the live status panel on the green band */
.status { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); }
.status > * { margin: 0; }
.status__headline { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.status__players { display: flex; align-items: baseline; gap: var(--s-2); }
.status__players .t-stat { font-family: var(--font-display); }
.status__address { display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.status .t-label { color: var(--ink); }
.status__address code { font-size: var(--t-lead); }

@media (max-width: 639px) { .status { padding: var(--s-5); } }

/* the gameplay captures: taller on a tablet, where the two cards stack and share one screen */
@media (min-width: 640px) and (max-width: 1023px) { #pelaa .grid > .card { grid-column: 1 / -1; } #pelaa .panel { --p-h: 240px; } }

/* the Discord ask under the questions' heading: the real Discord mark beside the link */
.ask { display: inline-flex; align-items: center; gap: var(--s-4); min-height: 44px; width: max-content; }

/* upcoming events (content.js) under the questions' heading */
.events .rows__value { color: var(--muted); }

/* rules page */
.rules-list { counter-reset: rule; }
.rules-list > li { counter-increment: rule; }
.rules-list .rows__name::before { content: counter(rule) ". "; color: var(--muted); }
.rules-list--cont { counter-reset: rule 6; }

/* 404 */
.notfound .section-head { max-width: 40ch; }

/* the footer name: the client's blackletter logo in place of the kit's set word */
.close__word--logo { line-height: 0; }
.close__word--logo img { display: block; height: clamp(96px, 16vw, 220px); width: auto; aspect-ratio: 1.8; object-fit: cover; }
@media (max-width: 639px) { .close__word--logo img { height: clamp(80px, 24vw, 120px); } }

/* the hero: a smaller headline that keeps "FiveM-roolipeliä" whole, in a narrower box that leaves more of the picture */
.nowrap { white-space: nowrap; }
@media (min-width: 1024px) {
  .hero__over > :first-child { max-width: 520px; }
  .hero__over h1 { max-width: none; font-size: clamp(44px, 3.9vw, 60px); line-height: 1.04; }
}
@media (max-width: 1023px) { .hero__over h1 { font-size: clamp(34px, 8vw, 56px); } }

/* the light ground (hero box, join band): a sage gradient over the solid --p-inv-bg fallback */
:root { --inv-gradient: linear-gradient(135deg, #A9B98A 0%, #7D9363 55%, #5F7A52 100%); }
.ground-inverse:not(.footer--dark) { background-image: var(--inv-gradient); }

/* the hero box: the same sage gradient, see-through and frosted so the photo shows behind it while the black text stays legible */
.hero__over > :first-child {
  background: linear-gradient(135deg, rgb(169 185 138 / .62) 0%, rgb(125 147 99 / .58) 55%, rgb(95 122 82 / .62) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
}

/* the primary buttons (Liity Discordiin): one lighter sage gradient everywhere in place of the flat cyan,
   set as background-image with !important so the motion kit's hover/active `background` shorthand can't flatten it */
:root { --btn-gradient: linear-gradient(135deg, #DDE7C7 0%, #BFD0A0 55%, #A3B886 100%); }
.btn.btn--primary { background-image: var(--btn-gradient) !important; color: #000; }
.btn.btn--primary:hover { filter: brightness(1.05); }
.btn.btn--primary:active { filter: brightness(.95); }
