/* ============================================================================
   Person / Animal / Place / Thing — picture sorting game.
   ========================================================================== */
.ns-wrap { max-width: 720px; margin: 0 auto; }

.ns-bar { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ns-bar > span { display: block; height: 100%; width: 0; border-radius: 999px;
                 background: linear-gradient(90deg, #7c3aed, #ec4899); transition: width .3s ease; }
.ns-meta { display: flex; justify-content: space-between; gap: 10px; margin: 8px 2px 14px;
           font-size: .85rem; font-weight: 600; color: var(--text-muted); }

.ns-card { border: 1px solid var(--border); border-radius: 22px; background: var(--surface);
           padding: 22px 20px 18px; text-align: center; }

/* the question line */
.ns-q { display: flex; align-items: center; justify-content: center; gap: 9px;
        font-size: 1.0625rem; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }

/* the picture tile — a soft neutral pad so a transparent PNG sits well in
   either theme, and so no colour ever hints at the answer */
.ns-pic { position: relative; width: 100%; max-width: 260px; margin: 0 auto;
          aspect-ratio: 1 / 1; border-radius: 20px; background: var(--bg-soft);
          border: 1px solid var(--border); display: grid; place-items: center;
          overflow: hidden; }
/* the artwork carries its own 6% margin, so fill the tile */
.ns-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ns-fallback { display: none; font-size: 5.5rem; line-height: 1; }
.ns-pic.is-fallback img { display: none; }
.ns-pic.is-fallback .ns-fallback { display: block; }

/* the word */
.ns-word { display: flex; align-items: center; justify-content: center; gap: 10px;
           margin: 14px 0 18px; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }

/* read-aloud buttons */
.ns-spk { flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
          border: 1px solid var(--border); background: var(--bg-soft); font-size: .95rem;
          line-height: 1; display: grid; place-items: center; transition: .15s; }
.ns-spk:hover { border-color: var(--module, #7c3aed); transform: scale(1.06); }
.ns-spk:active { transform: scale(.95); }

/* the four answers */
.ns-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ns-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
          padding: 14px 8px 12px; border-radius: 16px; cursor: pointer; min-height: 96px;
          border: 2px solid var(--border); background: var(--surface);
          font-family: inherit; color: var(--text); transition: .15s; }
.ns-opt:hover:not(:disabled) { border-color: var(--c); transform: translateY(-2px);
                               box-shadow: 0 10px 22px -12px var(--c); }
.ns-opt:active:not(:disabled) { transform: translateY(0); }
.ns-opt:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.ns-opt:disabled { cursor: default; }
.ns-ic  { font-size: 1.6rem; line-height: 1; display: block; }
.ns-lbl { font-size: .95rem; font-weight: 700; display: block; }
.ns-num { position: absolute; top: 6px; left: 8px; font-size: .68rem; font-weight: 700;
          color: var(--text-muted); opacity: .65; }

.ns-opt.ok { border-color: #059669; background: rgba(5,150,105,.1); color: #059669; }
.ns-opt.no { border-color: #dc2626; background: rgba(220,38,38,.08); color: #dc2626; }

/* feedback + next */
.ns-fb { margin-top: 15px; font-size: .95rem; line-height: 1.6; min-height: 1.2em; }
.ns-fb.good { color: #059669; }
.ns-fb.bad  { color: #dc2626; }
.ns-actions { display: flex; justify-content: center; margin-top: 14px; }
.ns-next { padding: 11px 26px; border-radius: 12px; border: 0; cursor: pointer; min-height: 44px;
           background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff;
           font-family: inherit; font-size: .95rem; font-weight: 700; }
.ns-next:hover { filter: brightness(1.06); }

/* the score screen */
.ns-done { border: 1px solid var(--border); border-radius: 22px; background: var(--surface);
           padding: 30px 20px; text-align: center; }
.ns-done-emoji { font-size: 3rem; line-height: 1; }
.ns-done-score { font-size: 1.5rem; margin-top: 10px; }
.ns-done-score b { color: var(--module, #7c3aed); }
.ns-done-msg { color: var(--text-muted); margin-top: 4px; }
.ns-done-streak { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }
.ns-done-lbl { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
               color: var(--text-muted); margin-top: 22px; }
.ns-weak { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.ns-chip { padding: 6px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600;
           border: 1px solid var(--c); color: var(--c);
           background: color-mix(in srgb, var(--c) 8%, transparent); }
.ns-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.ns-again, .ns-redo { padding: 11px 22px; border-radius: 12px; cursor: pointer; min-height: 44px;
                      font-family: inherit; font-size: .95rem; font-weight: 700; }
.ns-again { border: 0; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; }
.ns-again:hover { filter: brightness(1.06); }
.ns-redo { border: 2px solid var(--border); background: var(--surface); color: var(--text); }
.ns-redo:hover { border-color: var(--module, #7c3aed); }

/* ---------- mobile: 2 x 2 answers, smaller tile ---------- */
@media (max-width: 560px) {
  .ns-card { padding: 18px 14px 14px; border-radius: 18px; }
  .ns-q { font-size: .95rem; }
  .ns-pic { max-width: 200px; border-radius: 16px; }
  .ns-fallback { font-size: 4.25rem; }
  .ns-word { font-size: 1.5rem; margin: 12px 0 15px; }
  .ns-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-opt { min-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-opt, .ns-spk, .ns-bar > span { transition: none; }
  .ns-opt:hover:not(:disabled) { transform: none; }
}

@media print { .ns-wrap { display: none !important; } }
