/* Nobody Saw Santa casebook. Match the site by changing the variables below. */
:root {
  --paper: #f4eddf;
  --card: #fffaf0;
  --ink: #183e34;
  --muted: #4c655a;
  --line: #d3cab8;
  --accent: #183e34;
  --accent-ink: #fff3dc;
  --good: #1f6b3a;
  --good-bg: #e8f3ec;
  --bad: #8e1b1b;
  --bad-bg: #f8e9e7;
  --note-bg: #eee3ca;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: Arial, sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
body.nss { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
.nss a { color: var(--accent); }
.nss-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.nss-head { text-align: center; padding: 18px 0 8px; }
.nss-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.nss h1 { font-family: var(--font-head); font-size: clamp(30px, 7vw, 44px); line-height: 1.1; margin: 6px 0 10px; }
.nss h2 { font-family: var(--font-head); font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.nss h3 { font-size: 15px; margin: 0 0 6px; }
.nss-lede { max-width: 600px; margin: 0 auto; color: var(--muted); }
.nss-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.nss-card.locked { opacity: .55; }
.nss-step-num { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 2px; }
.nss-sub { color: var(--muted); margin: 0 0 14px; }
.nss-modes { display: flex; gap: 10px; flex-wrap: wrap; }
.nss-mode { flex: 1 1 220px; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.nss-mode strong { display: block; }
.nss-mode span { color: var(--muted); font-size: 14px; }
.nss-mode[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.nss-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.nss-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 120px; min-width: 0; }
.nss-field.small { flex: 0 1 96px; }
.nss-field label { font-size: 13px; font-weight: 600; }
.nss input, .nss select { font: inherit; padding: 9px 10px; border: 1px solid #b9ad9a; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.nss button.nss-btn { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.nss button.nss-btn.ghost { background: transparent; color: var(--accent); }
.nss button:focus-visible, .nss input:focus-visible, .nss select:focus-visible, .nss summary:focus-visible { outline: 3px solid #d9a441; outline-offset: 2px; }
.nss-msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; display: none; }
.nss-msg.show { display: block; }
.nss-msg.good { background: var(--good-bg); color: var(--good); }
.nss-msg.bad { background: var(--bad-bg); color: var(--bad); }
.nss-msg.note { background: var(--note-bg); color: var(--ink); }
.nss-hints { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.nss-hint { margin: 8px 0; }
.nss-hint button { font: inherit; font-size: 14px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.nss-hint button.warn { border-color: var(--accent); color: var(--accent); }
.nss-hint p { margin: 8px 0 0; padding: 10px 12px; background: var(--note-bg); border-radius: 8px; }
.nss-clues { margin: 0; padding-left: 26px; }
.nss-clues li { margin: 4px 0; }
.nss-clues li.is-lie { text-decoration: line-through; color: var(--muted); }
.nss details summary { cursor: pointer; font-weight: 600; }
.nss-status { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.nss-status b { color: var(--ink); }
.nss-solved { border: 2px solid var(--good); background: var(--good-bg); }
.nss-share { width: 100%; min-height: 70px; font: inherit; font-size: 14px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); margin: 8px 0; resize: vertical; }
.nss-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
.nss [hidden] { display: none !important; }
@media (max-width: 480px) {
  .nss-card { padding: 16px; }
  .nss-field.small { flex: 1 1 30%; }
}
