/* ── FONTS & RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-mono: 'Courier New', Courier, monospace;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── LIGHT THEME ── */
:root {
  --bg:         #ffffff;
  --surface:    #f5f5f7;
  --surface2:   #e8e8ed;
  --border:     #d2d2d7;
  --accent:     #3265ca;
  --accent-soft:#4a7ade;
  --text:       #1c1c1e;
  --muted:      #6e6e73;
  --danger:     #d63031;
  --shadow:     rgba(0,0,0,.07);
  --shadow-md:  rgba(0,0,0,.12);
  --overlay-bg: rgba(0,0,0,.45);
}

/* ── DARK THEME ── */
html.dark {
  --bg:         #0d0f14;
  --surface:    #151820;
  --surface2:   #1c2030;
  --border:     #2a2f3d;
  --accent:     #6b95e8;
  --accent-soft:#5580d4;
  --text:       #c8d0e0;
  --muted:      #5a6272;
  --danger:     #a03030;
  --shadow:     rgba(0,0,0,.40);
  --shadow-md:  rgba(0,0,0,.60);
  --overlay-bg: rgba(0,0,0,.80);
}

/* ── YUKITTY THEME ── */
html.yukitty-theme {
  --accent:      #ff8fee;
  --accent-soft: #ffaaf3;
}
html.yukitty-theme.dark {
  --accent:      #ff8fee;
  --accent-soft: #d966c8;
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: background .2s, color .2s;
}
button {
  cursor: pointer;
  font-family: var(--font-sans);
  border-radius: 5px;
}
input, select, textarea {
  font-family: var(--font-mono);
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
