:root {
  --bg: #12121a;
  --card: #1c1c28;
  --card2: #22223a;
  --border: #2e2e48;
  --yellow: #ffe566;
  --coral: #ff6b6b;
  --mint: #4ecca3;
  --sky: #6eb5ff;
  --purple: #c77dff;
  --orange: #ff9f43;
  --pink: #ff8fab;
  --text: #eeeef5;
  --muted: #8888aa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); }
::selection { background: var(--yellow); color: #000; }

/* SCROLL */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* NAV — always on top */
nav { z-index: 400; position: relative; }

/* VOCAB CONTROLS (shared between pages) */
.vocab-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }


/* QUICK NOTEPAD WIDGET (shared) */
.notepad-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(340px, calc(100vw - 24px));
  background: rgba(28, 28, 40, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  z-index: 1200;
  transform: translateY(calc(100% - 44px));
  transition: transform 0.28s ease;
}
.notepad-widget.open { transform: translateY(0); }
.notepad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  color: var(--yellow);
}
.notepad-body { padding: 12px; }
.notepad-body textarea {
  width: 100%;
  min-height: 130px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 10px;
  resize: vertical;
  font-family: inherit;
}
.notepad-body textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.notepad-toggle-icon { transition: transform 0.3s ease; font-size: 12px; }
.notepad-widget.open .notepad-toggle-icon { transform: rotate(180deg); }
