* { box-sizing: border-box; }

:root {
  --bg: #05060B;
  --ink: #EDEBE4;
  --muted: #8B90A0;
  --panel-bg: rgba(18, 20, 28, 0.82);
  --core: #F2C94C;
  --lang: #4FD1E8;
  --frontend: #B98CFF;
  --backend: #4CD3A5;
  --tools: #FF8B6B;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden;
}

#skCanvas {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
  z-index: 0;
}

.sk-header {
  position: fixed;
  top: 32px;
  left: 32px;
  max-width: 420px;
  z-index: 2;
  pointer-events: none;
}

.sk-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.sk-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 12px;
  text-shadow: 0 0 28px rgba(242, 201, 76, 0.18);
}

.sk-sub {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 40ch;
}

.sk-filters {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 320px;
}

.sk-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sk-chip:hover { border-color: rgba(255,255,255,0.3); color: var(--ink); }

.sk-chip.is-active {
  background: var(--ink);
  color: #0B0C11;
  border-color: var(--ink);
}

.sk-hint {
  position: fixed;
  bottom: 28px;
  left: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  z-index: 2;
  margin: 0;
  transition: opacity 0.6s ease;
}

.sk-footer {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 2;
}

.sk-footer a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sk-footer a:hover { color: var(--ink); border-color: currentColor; }

/* Detail panel — slides in from the right on desktop, up from the bottom on mobile */
.sk-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 100%);
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 28px 26px;
  z-index: 3;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.16,.84,.44,1);
}

.sk-panel:not([hidden]) { transform: translateX(0); }
.sk-panel[hidden] { display: block; pointer-events: none; }

.sk-panel__close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sk-panel__close:hover { color: var(--ink); }

.sk-panel__cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--panel-accent, var(--muted));
  margin: 0 0 10px;
}

.sk-panel__name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 22ch;
}

.sk-meter {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.sk-meter__fill {
  height: 100%;
  width: 0%;
  background: var(--panel-accent, var(--ink));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(.16,.84,.44,1);
}

.sk-panel__level {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.sk-panel__note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 720px) {
  .sk-header { max-width: calc(100% - 64px); }
  .sk-filters { top: auto; bottom: 76px; left: 32px; right: 32px; max-width: none; justify-content: flex-start; }
  .sk-hint { display: none; }

  .sk-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    height: auto;
    max-height: 70vh;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .sk-panel:not([hidden]) { transform: translateY(0); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}