:root {
  color: #202124;
  background: #f4f6f8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; background: #f4f6f8; }
.lug-ispy-app { min-width: 0; margin: 0; background: #f4f6f8; color: #202124; }
.lug-ispy-app button, .lug-ispy-app input { font: inherit; }
.lug-ispy-shell { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px; overflow-wrap: anywhere; }
.lug-ispy-shell header, .lug-ispy-shell section, .lug-ispy-shell footer, .lug-ispy-empty {
  margin: 16px 0;
  padding: 24px;
  border: 1px solid #dde3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(16 47 76 / 8%);
}
.lug-ispy-shell h1, .lug-ispy-shell h2 { line-height: 1.2; }
.lug-ispy-shell h1 { margin: 16px 0 8px; font-size: clamp(1.75rem, 8vw, 2.45rem); }
.lug-ispy-shell h2 { margin-top: 0; font-size: clamp(1.3rem, 6vw, 1.75rem); }
.lug-ispy-shell p { line-height: 1.55; }
.lug-ispy-logo { display: block; width: auto; max-width: min(100%, 220px); max-height: 120px; margin: 0 auto; object-fit: contain; }

.lug-ispy-choices, .lug-ispy-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lug-ispy-choices a, .lug-ispy-item, .lug-ispy-app button {
  border-radius: 10px;
  color: #102f4c;
}
.lug-ispy-choices a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid #c7d7e5;
  background: #e8f0f7;
  font-weight: 700;
  text-decoration: none;
}
.lug-ispy-item { padding: 14px; border: 1px solid #cfdae3; background: #f6f9fb; }
.lug-ispy-item label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  line-height: 1.4;
}
.lug-ispy-item input[type="checkbox"] { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: #137333; }
.lug-ispy-item label > span { min-width: 0; overflow-wrap: anywhere; }
.lug-ispy-item img { display: block; width: auto; max-width: 100%; max-height: min(70vh, 560px); margin-top: 12px; border-radius: 10px; object-fit: contain; }
.lug-ispy-item img[hidden] { display: none; }

.lug-ispy-app button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #789;
  background: #e8f0f7;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.lug-ispy-app button:hover { background: #dbe9f4; }
.lug-ispy-hint-button { margin-top: 10px; }
.lug-ispy-hint-feedback:not(:empty) {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 4px solid #b26200;
  background: #fff8e5;
  color: #5f3700;
}
.lug-ispy-noscript, .lug-ispy-analytics-feedback:not(:empty) {
  padding: 12px;
  border-left: 4px solid #b26200;
  background: #fff8e5;
  color: #5f3700;
}
.lug-ispy-progress { min-height: 1.55em; color: #465461; font-weight: 650; }
.lug-ispy-complete { margin-top: 20px; padding: 18px; border: 1px solid #a8d5b8; border-radius: 12px; background: #e7f6ec; }
.lug-ispy-complete-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lug-ispy-share-fallback { padding: 10px 12px; border-radius: 8px; background: #fff; }
.lug-ispy-share-fallback a { display: inline; overflow-wrap: anywhere; }

.lug-ispy-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lug-ispy-social-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #c7d7e5;
  border-radius: 10px;
  background: #fff;
  color: #174a67;
  font-weight: 750;
  text-decoration: none;
}
.lug-ispy-social-link:hover { filter: brightness(1.08); }
.lug-ispy-social-link svg { display: block; width: 22px; height: 22px; flex: 0 0 22px; fill: currentColor; stroke: none; overflow: visible; }
.lug-ispy-social-website svg, .lug-ispy-social-other svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lug-ispy-social-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.lug-ispy-social-link .lug-ispy-icon-fill { fill: currentColor; stroke: none; }
.lug-ispy-social-link .lug-ispy-icon-cutout { fill: #fff; stroke: none; }
.lug-ispy-social-facebook svg, .lug-ispy-social-discord svg, .lug-ispy-social-youtube svg, .lug-ispy-social-flickr svg { fill: currentColor; }

.lug-ispy-confetti-layer { position: fixed; z-index: 9999; inset: 0; overflow: hidden; pointer-events: none; }
.lug-ispy-confetti-piece {
  position: absolute;
  top: -24px;
  display: block;
  border-radius: 2px;
  animation-name: lug-ispy-confetti-fall;
  animation-timing-function: cubic-bezier(.22, .65, .36, 1);
  animation-fill-mode: forwards;
}
@keyframes lug-ispy-confetti-fall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); opacity: .95; }
  to { transform: translate3d(var(--lug-ispy-confetti-drift), 110vh, 0) rotate(var(--lug-ispy-confetti-turn)); opacity: .15; }
}

.lug-ispy-app button:focus-visible, .lug-ispy-app a:focus-visible, .lug-ispy-app input:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

@media (max-width: 500px) {
  .lug-ispy-shell { padding: 8px; }
  .lug-ispy-shell header, .lug-ispy-shell section, .lug-ispy-shell footer, .lug-ispy-empty { margin: 8px 0; padding: 16px; border-radius: 13px; }
  .lug-ispy-item { padding: 12px; }
  .lug-ispy-item label { gap: 9px; }
  .lug-ispy-complete-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .lug-ispy-complete-actions button, .lug-ispy-hint-button { width: 100%; }
  .lug-ispy-social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .lug-ispy-confetti-layer { display: none !important; }
}
