.lr-intro {
  padding-block: 24px;
}
.lr-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.lr-intro > p {
  max-width: 850px;
}
.lr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 20px 12px;
}
.lr-stage {
  position: relative;
  width: 100%;
  line-height: 0;
  border-radius: 16px;
  overflow: hidden;
  touch-action: manipulation;
}
.lr-stage img {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}
.lr-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lr-marker {
  position: absolute;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 4px var(--green-dark);
  background: rgba(34, 107, 58, 0.15);
}
.lr-marker span {
  display: grid;
  place-items: center;
  position: absolute;
  left: -8px;
  top: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font:
    800 16px Arial,
    sans-serif;
  line-height: 1;
}
.lr-feedback {
  min-height: 2em;
  font-weight: 700;
}
.lr-solution {
  margin-block: 24px;
}
.lr-solution li {
  margin-block: 12px;
}
.lr-access {
  font-size: 0.9rem;
}
#lr-dialog {
  width: min(1600px, 96vw);
  max-width: 96vw;
  max-height: 96vh;
  border: 0;
  border-radius: 20px;
  padding: 16px;
  background: var(--bg);
  color: var(--ink);
}
#lr-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.lr-dialog-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
@media (max-width: 650px) {
  .lr-intro {
    padding-block: 18px;
  }
  .lr-intro .hero-actions {
    display: grid;
  }
  .lr-marker {
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--green-dark);
    border-radius: 7px;
  }
  .lr-marker span {
    width: 22px;
    height: 22px;
    font-size: 12px;
    left: -4px;
    top: -4px;
  }
  #lr-dialog {
    padding: 10px;
  }
}
/* Bilderwelt: eigene Spielkomponenten, zentrale LIGONE-Gestaltung bleibt bestehen. */
.lr-mode {
  background: linear-gradient(125deg, #15291e, #28543b);
  color: #fff;
  margin-block: 24px;
}
.lr-mode p {
  color: inherit;
}
#lr-timer {
  font: 800 clamp(1.6rem, 4vw, 2.5rem)/1.2 monospace;
  letter-spacing: 0.04em;
  color: #ffe36b;
}
.lr-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.lr-puzzle-card {
  display: block;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.lr-puzzle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 36px #17352222;
}
.lr-puzzle-card[aria-current] {
  outline: 3px solid var(--green-dark);
}
.lr-puzzle-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.lr-puzzle-card > div {
  padding: 20px;
}
.lr-puzzle-card h3 {
  margin: 6px 0 14px;
}
.lr-puzzle-card span {
  font-weight: 700;
}
.lr-table-wrap {
  overflow-x: auto;
}
.lr-ranking {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.lr-ranking th,
.lr-ranking td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #cbd6cb;
}
.lr-ranking tbody tr:nth-child(-n + 3) {
  background: #f5e9a6;
}
.lr-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-block: 18px;
}
.lr-consent input {
  width: auto;
  flex-shrink: 0;
}
#lr-score-form {
  margin-top: 24px;
  max-width: 700px;
}
#lr-name {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-block: 8px;
  border: 1px solid #abb9af;
  border-radius: 10px;
  font: inherit;
}
#lr-period {
  padding: 10px;
  border-radius: 10px;
  font: inherit;
}
@media (max-width: 900px) {
  .lr-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .lr-catalog {
    grid-template-columns: minmax(0, 1fr);
  }
  .lr-ranking th,
  .lr-ranking td {
    padding: 10px 7px;
  }
}

/* Vor dem Start: Motiv sichtbar, Suchdetails hinter starkem Nebel. */
.lr-page:not(.lr-revealed) [data-stage] img {
  filter: blur(48px) saturate(.65);
  transform: scale(1.12);
  user-select: none;
  -webkit-user-drag: none;
}
.lr-page:not(.lr-revealed) .lr-markers { visibility: hidden; }
.lr-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  line-height: 1.5;
  background: radial-gradient(ellipse at 25% 20%, rgba(255,255,255,.80), transparent 65%),
              linear-gradient(135deg, rgba(240,247,243,.63), rgba(232,242,237,.72));
  color: #173523;
}
.lr-cover strong {
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-shadow: 0 1px 12px #fff;
}
.lr-cover span { max-width: 36em; font-weight: 600; }
.lr-revealed .lr-cover { display: none; }

.lr-page [hidden] { display: none !important; }

/* Jede Galerie-Vorschau bleibt vernebelt, auch nach Start oder Loesung eines anderen Bildes. */
.lr-page .lr-puzzle-card img {
  filter: blur(28px) saturate(.65);
  opacity: .55;
  transform: scale(1.05);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
