/* Wspólne style makiet: fonty, panel makiety, bazowy link tree. */
@font-face {
  font-family: 'GeoGuessr-Sans';
  src: url('../assets/fonts/geoguessr_sans.otf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeoGuessr-Sans';
  src: url('../assets/fonts/geoguessr_sans_bold.otf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GeoGuessr-Sans';
  src: url('../assets/fonts/geoguessr_sans_black_italic.otf');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

html.lt-open {
  overflow: hidden;
}

.kit-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- panel makiety ---------- */
.kd {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  width: min(330px, calc(100vw - 32px));
  font: 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #f4f2ff;
  background: rgba(16, 16, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}
.kd--collapsed {
  width: auto;
}
.kd--collapsed .kd__body {
  display: none;
}
.kd__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.kd__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #97e851;
  box-shadow: 0 0 0 4px rgba(151, 232, 81, 0.18);
}
.kd__body {
  padding: 0 14px 14px;
}
.kd__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.kd__head strong {
  font-size: 14px;
}
.kd__back {
  color: #bdb5ff;
  text-decoration: none;
  font-size: 12px;
}
.kd__back:hover {
  text-decoration: underline;
}
.kd__label {
  margin: 10px 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.kd__seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kd__seg button,
.kd__links {
  flex: 1 1 auto;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: 600 12px/1 system-ui, sans-serif;
  cursor: pointer;
}
.kd__seg button:hover,
.kd__links:hover {
  background: rgba(255, 255, 255, 0.12);
}
.kd__seg button[aria-pressed='true'] {
  background: #7950e5;
  border-color: #a685ff;
}
.kd__links {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.kd__hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
}
.kd__hint code {
  color: #fff;
}
@media (max-width: 640px) {
  .kd {
    left: 10px;
    bottom: 10px;
  }
}

/* ---------- link tree (bazowy wygląd, makiety nadpisują zmienne) ---------- */
.lt {
  --lt-bg: radial-gradient(circle at 50% 0%, #3b2a7a 0%, #1a1a2e 55%, #10101c 100%);
  --lt-fg: #fff;
  --lt-muted: rgba(255, 255, 255, 0.6);
  --lt-card: rgba(255, 255, 255, 0.06);
  --lt-card-hover: rgba(255, 255, 255, 0.12);
  --lt-border: rgba(255, 255, 255, 0.12);
  --lt-radius: 18px;
  --lt-font: 'GeoGuessr-Sans', system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background: var(--lt-bg);
  color: var(--lt-fg);
  font-family: var(--lt-font);
  animation: lt-in 0.35s ease;
}
.lt[hidden] {
  display: none;
}
@keyframes lt-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}
.lt__inner {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 16px 48px;
  text-align: center;
}
.lt__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lt-border);
  border-radius: 50%;
  background: var(--lt-card);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lt__logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}
.lt__title {
  margin: 14px 0 4px;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.lt__sub {
  margin: 0 0 24px;
  color: var(--lt-muted);
}
.lt__group {
  margin-top: 22px;
  text-align: left;
}
.lt__group-title {
  margin: 0 0 8px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lt-muted);
}
.lt__link {
  margin-top: 12px;
}
.lt__foot {
  margin-top: 28px;
  font-size: 12px;
  color: var(--lt-muted);
}

@media (prefers-reduced-motion: reduce) {
  .lt,
  .lt__link {
    animation: none;
    transition: none;
  }
}
