/* Forsiden for utloggede: innholdet står på bakgrunnen, med halvgjennomsiktige kort */
.fp {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 30px;
}
.fp-glass {
  background: rgba(52, 58, 64, .78);
  border: 1px solid rgba(201, 129, 47, .85);
  border-radius: 4px;
  color: #ebebeb;
}
.fp-muted {
  color: #a9b0b6;
  font-size: .9rem;
}

/* Statuslinjen for Turnstile-sjekken: snurrende cookie og tekst, så grønn hake */
.fp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 1.5rem;
}
.fp-check-cookie {
  animation: fp-cookie-spin 1.2s linear infinite;
}
@keyframes fp-cookie-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-check-cookie {
    animation: none;
  }
}
.fp-check.is-done {
  color: #b9e4c4;
}

/* Linjen øverst for dem som allerede har bruker */
.fp-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.fp-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Velkomsten rett på bakgrunnen, med en myk mørk skygge bak teksten */
.fp-hero {
  display: grid;
  justify-items: center;
  padding: 24px 0 10px;
  text-align: center;
}
.fp-glow {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 26px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%);
  color: #fff;
}
.fp-logo {
  width: 64px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .7));
}
.fp-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 2px #000;
}
.fp-hero p {
  max-width: 50ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.fp-try {
  font-weight: 600;
}
.fp-online {
  font-size: 1.75rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9), 0 0 2px #000;
}

/* Tre fakta og tre steg */
.fp-facts, .fp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fp-fact {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 12px;
  text-align: center;
}
.fp-fact b {
  color: #ffc107;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.fp-fact span, .fp-step span {
  color: #a9b0b6;
  font-size: .85rem;
}
.fp-step {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
}
.fp-step img {
  height: 90px;
}

/* Forsiden har ingen fast meny øverst, så luften som default.css gir for den trengs ikke på noen skjerm */
body {
  margin-top: 0 !important;
}

/* Mindre luft øverst på mobil og nettbrett, også iPad liggende */
@media (max-width: 1366px) and (hover: none), (max-width: 1199px) {
  .fp {
    gap: 10px;
    padding-top: 12px;
  }
  .fp-hero {
    padding: 4px 0 0;
  }
  .fp-glow {
    padding: 8px 12px;
  }
}

@media (max-width: 767px) {
  .fp-hero h1 {
    font-size: 1.6rem;
  }
  .fp-online {
    font-size: 1.35rem;
  }
  .fp-bar, .fp-facts, .fp-steps {
    grid-template-columns: 1fr;
  }
}

/* Feilmelding fra serveren, f.eks. når Turnstile ikke godkjente «Prøv spillet» */
.fp-flash .alert {
  margin-bottom: 0;
}
/* Samme røde tone som varslene i spillet, lagt over en mørk bunn så den leses over bildet */
.fp-flash .alert-danger {
  background: linear-gradient(rgba(220, 53, 69, .22), rgba(220, 53, 69, .22)), rgba(52, 58, 64, .92);
}
