/* Nexus Key – Wireframe-Styles.
   Das finale Design kommt von außen: einfach die Variablen in .nk-root überschreiben
   oder diese Datei ersetzen. Alle Klassen sind mit "nk-" präfixiert, damit nichts
   mit dem Launcher kollidiert. */

.nk-root {
  --nk-bg: #ffffff;
  --nk-panel: #f7f7f7;
  --nk-panel-2: #e6e6e6;
  --nk-border: #d4d4d4;
  --nk-border-strong: #c4c4c4;
  --nk-text: #1a1a1a;
  --nk-text-2: #444444;
  --nk-muted: #5e5e5e;
  --nk-accent: #222222;
  --nk-on-accent: #ffffff;
  --nk-status: #555555;
  --nk-placeholder: #e2e2e2;
  --nk-radius: 12px;
  --nk-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --nk-mono: ui-monospace, Consolas, monospace;

  box-sizing: border-box;
  min-height: 100%;
  padding: 32px clamp(16px, 4vw, 48px) 48px;
  background: var(--nk-bg);
  color: var(--nk-text);
  font-family: var(--nk-font);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nk-root *, .nk-root *::before, .nk-root *::after { box-sizing: border-box; }
.nk-root a { color: inherit; text-decoration: none; }
.nk-root h1, .nk-root h2, .nk-root h3, .nk-root p { margin: 0; }
.nk-root button, .nk-root input, .nk-root textarea, .nk-root select { font: inherit; color: inherit; }
.nk-root :focus-visible { outline: 2px solid var(--nk-accent); outline-offset: 2px; }

.nk-muted { color: var(--nk-muted); }
.nk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nk-body { display: flex; flex-direction: column; gap: 28px; }
.nk-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.nk-stack { display: flex; flex-direction: column; gap: 12px; }

/* Kopf + Tabs */
.nk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.nk-head h1 { font-size: 40px; font-weight: 700; }
.nk-head p { font-size: 15px; margin-top: 6px; }
.nk-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--nk-border); padding-bottom: 12px; }
.nk-tab { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 8px; }
.nk-tab:hover { background: var(--nk-panel-2); }
.nk-tab[aria-current="page"] { background: var(--nk-accent); color: var(--nk-on-accent); font-weight: 600; }

/* Buttons */
.nk-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--nk-border-strong); background: transparent; cursor: pointer; font-weight: 500; }
.nk-btn:hover { background: var(--nk-panel-2); }
.nk-btn--primary { background: var(--nk-accent); border-color: var(--nk-accent); color: var(--nk-on-accent); font-weight: 600; }
.nk-btn--primary:hover { background: var(--nk-accent); opacity: .9; }
.nk-btn--outline { border-color: var(--nk-accent); color: var(--nk-accent); font-weight: 600; }
.nk-btn--icon { width: 44px; padding: 0; }
.nk-btn[disabled] { opacity: .5; cursor: progress; }

/* Badges */
.nk-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; border: 1px solid #9a9a9a; white-space: nowrap; }
.nk-badge--solid { background: var(--nk-status); border-color: var(--nk-status); color: var(--nk-on-accent); }
.nk-badge--accent { background: var(--nk-accent); border-color: var(--nk-accent); color: var(--nk-on-accent); }
.nk-dot { font-size: 11px; font-weight: 600; color: var(--nk-status); white-space: nowrap; }

/* Inputs */
.nk-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.nk-input { min-height: 44px; padding: 0 12px; background: var(--nk-bg); border: 1px solid var(--nk-border-strong); border-radius: 8px; font-size: 14px; font-weight: 400; width: 100%; }
textarea.nk-input { padding: 10px 12px; resize: vertical; min-height: 96px; }
.nk-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--nk-panel); border: 1px solid var(--nk-border-strong); border-radius: 10px; flex: 0 1 340px; }
.nk-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 14px; }
.nk-hint { font-size: 12px; font-weight: 400; color: var(--nk-muted); }
.nk-error { font-size: 13px; font-weight: 600; }

/* Bilder (Steam-CDN) mit Platzhalter dahinter */
.nk-img { position: relative; overflow: hidden; border-radius: 8px; background: var(--nk-placeholder); display: flex; align-items: center; justify-content: center; text-align: center; }
.nk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nk-img-fallback { padding: 8px; font-weight: 700; color: var(--nk-text-2); font-size: 13px; }
.nk-img--cover { aspect-ratio: 600 / 900; }
.nk-img--header { aspect-ratio: 460 / 215; }

/* Panels */
.nk-panel { background: var(--nk-panel); border: 1px solid var(--nk-border); border-radius: 16px; padding: 24px; }
.nk-panel--dashed { background: transparent; border-style: dashed; }

/* Entdecken */
.nk-featured { display: flex; flex-wrap: wrap; gap: 24px; }
.nk-featured .nk-img { flex: 1 1 260px; min-height: 200px; aspect-ratio: auto; }
.nk-featured-body { flex: 2 1 320px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.nk-featured-body h2 { font-size: 26px; }
.nk-featured-body p { line-height: 1.6; color: var(--nk-text-2); max-width: 560px; }
.nk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.nk-card { display: flex; flex-direction: column; gap: 10px; background: var(--nk-panel); border: 1px solid var(--nk-border); border-radius: var(--nk-radius); padding: 10px 10px 14px; }
.nk-card:hover { border-color: var(--nk-accent); }
.nk-card-body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.nk-card-title { font-weight: 600; line-height: 1.3; }
.nk-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--nk-muted); }
.nk-empty { padding: 32px; text-align: center; border: 1px dashed var(--nk-border-strong); border-radius: 14px; color: var(--nk-muted); }

/* Spielseite */
.nk-game-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.nk-game-head .nk-img { width: 120px; }
.nk-game-title { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.nk-game-title h2 { font-size: 36px; }
.nk-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nk-columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.nk-main-col { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nk-side-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nk-modsec { background: var(--nk-panel); border: 1px solid var(--nk-border); border-radius: 14px; padding: 8px 20px 12px; }
.nk-modsec h3 { margin: 12px 0 4px; font-size: 17px; }
.nk-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--nk-border); }
.nk-mod-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.nk-mod-label { font-size: 15px; font-weight: 500; }
.nk-mod-hint { font-size: 12px; color: var(--nk-muted); }
.nk-key { font-family: var(--nk-mono); font-size: 12px; color: var(--nk-text-2); background: var(--nk-panel-2); border: 1px solid var(--nk-border-strong); border-radius: 6px; padding: 4px 8px; }
.nk-switch { width: 52px; height: 30px; border-radius: 999px; border: 0; padding: 3px; background: var(--nk-border-strong); cursor: pointer; display: flex; align-items: center; justify-content: flex-start; }
.nk-switch-knob { width: 24px; height: 24px; border-radius: 999px; background: var(--nk-muted); transition: transform .15s; }
.nk-switch[aria-checked="true"] { background: var(--nk-accent); }
.nk-switch[aria-checked="true"] .nk-switch-knob { background: var(--nk-on-accent); transform: translateX(22px); }
.nk-slider { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.nk-slider input { width: 160px; accent-color: var(--nk-accent); }
.nk-slider output { font-family: var(--nk-mono); font-size: 13px; min-width: 44px; text-align: right; }
.nk-inline { display: flex; gap: 8px; align-items: center; }
.nk-inline .nk-input { width: 130px; }
.nk-side-card { background: var(--nk-panel); border: 1px solid var(--nk-border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.nk-side-card h3 { font-size: 17px; margin-bottom: 4px; }
.nk-kv { display: flex; justify-content: space-between; gap: 12px; }
.nk-kv span:first-child { color: var(--nk-muted); }
.nk-warn { background: var(--nk-panel); border: 1px solid #9a9a9a; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Requests */
.nk-req-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.nk-req-form { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nk-req-list { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-pill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--nk-border-strong); background: transparent; cursor: pointer; font-size: 13px; }
.nk-pill[aria-pressed="true"] { background: var(--nk-accent); border-color: var(--nk-accent); color: var(--nk-on-accent); font-weight: 600; }
.nk-preview { display: flex; flex-direction: column; gap: 8px; background: var(--nk-bg); border: 1px solid var(--nk-border); border-radius: 12px; padding: 12px; }
.nk-req { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--nk-panel); border: 1px solid var(--nk-border); border-radius: 14px; padding: 14px; }
.nk-req .nk-img { flex: none; width: 184px; }
.nk-req-body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nk-req-body h3 { font-size: 16px; font-weight: 600; }
.nk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-tag { font-size: 12px; color: var(--nk-text-2); background: var(--nk-panel-2); border-radius: 6px; padding: 4px 8px; }
.nk-vote { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nk-vote-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--nk-border-strong); background: var(--nk-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.nk-vote-btn[aria-pressed="true"] { background: var(--nk-accent); border-color: var(--nk-accent); color: var(--nk-on-accent); }
.nk-score { font-size: 15px; font-weight: 700; min-width: 32px; text-align: center; }

@media (max-width: 560px) {
  .nk-head h1 { font-size: 30px; }
  .nk-game-title h2 { font-size: 28px; }
  .nk-req .nk-img { width: 100%; }
}
