/* ================================================================
   Word500 — Modern UI Design System
   Inspired by wordnerd.co/cluewords dark mode palette
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Source+Sans+3:wght@400;600;700&display=swap');

/* --- Font Awesome Pro 7 --- */
@import url('https://fonts.word500.com/css/v7.2.0/pro.min.css');

/* ================================================================
   CSS Custom Properties (Design Tokens)
   ================================================================ */
:root {
  /* Background hierarchy */
  --bg: #121212;
  --surface: #1e1e1e;
  --input-bg: #2a2a2a;

  /* Text */
  --text: #cccccc;
  --text-muted: #888888;

  /* Borders */
  --border: rgba(255, 255, 255, 0.10);
  --border-visible: rgba(255, 255, 255, 0.18);

  /* Accent */
  --accent: #fbda03;

  /* Tile / feedback colors */
  --green: #58a351;
  --yellow: #c9b458;
  --red: #d94a4a;

  /* Keyboard */
  --key-bg: #333336;
  --key-used: #121214;

  /* Shared */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Fonts */
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-display: 'Bungee', sans-serif;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: clamp(.5rem, 2.5vmin, 1.375rem);
  font-weight: 600;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* ================================================================
   Typography
   ================================================================ */
h1,
h2,
h3 {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--text);
  font-family: var(--font-body);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:hover {
  opacity: 0.85;
}

/* ================================================================
   Header / Navigation
   ================================================================ */
nav {
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 12px auto 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
  position: relative;
  z-index: 10;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-mid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-left .logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  margin-left: 4px;
}

.nav-left img {
  height: 32px;
  width: 32px;
}

/* Icon buttons in nav */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--key-bg);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: filter 0.1s;
  caret-color: transparent;
}

.icon-btn:hover {
  filter: brightness(120%);
}

.icon-btn.active {
  background: var(--input-bg);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- Dropdown menus (click-to-toggle, right-aligned) --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 44px;
  right: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  list-style: none;
}

.nav-dropdown .dropdown-menu.show {
  display: block;
}

.nav-dropdown .dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav-dropdown .dropdown-menu li a:hover {
  background: var(--input-bg);
}

.nav-dropdown .dropdown-menu li a i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.nav-dropdown .dropdown-menu li p {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0 0 0 28px;
}

/* --- Old nav-left styles (cleaned up) --- */
.wrapper {
  display: none;
}

.menu-btn {
  display: none;
}

/* ================================================================
   Toast Notification
   ================================================================ */
.toast {
  position: fixed;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid var(--border-visible);
  color: var(--text);
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
}

/* ================================================================
   Message Board
   ================================================================ */
.divmessageboard {
  display: none;
}

.divmessageboard h1 {
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* ================================================================
   Restart Button
   ================================================================ */
.restartButton {
  width: fit-content;
  min-width: 140px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  height: 36px;
  margin: 0 auto 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 16px;
  transition: background 0.15s;
}

.restartButton:hover {
  background: var(--input-bg);
}

.restartButton h1 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* ================================================================
   Game Board
   ================================================================ */
#divboard {
  margin: 16px auto;
}

.grid-container {
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.grid {
  display: inline-grid;
  grid-template-columns: repeat(5, auto);
  gap: 0.28em;
  padding: 0;
  vertical-align: middle;
  margin-right: 4px;
}

.grid2 {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.28em;
  padding: 0;
  vertical-align: middle;
}

/* --- Tiles --- */
.tile {
  font-size: 1.37em;
  width: 1.75em;
  height: 1.75em;
  color: var(--text);
  background: var(--input-bg);
  border: none;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  user-select: none;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 100ms linear, background-color 0.1s;
}

.tile.clickable {
  cursor: pointer;
}

/* Filled (has a letter) but unsubmitted */
.tile.filled {
  background: #3a3a3c;
}

/* Color states */
.tile.green {
  background-color: var(--green);
  color: #ffffff;
}

.tile.yellow {
  background-color: var(--yellow);
  color: #ffffff;
}

.tile.red {
  background-color: var(--red);
  color: #ffffff;
}

/* Score column tiles (interfere grid) */
.box6,
.box14,
.box22,
.box30,
.box38,
.box46,
.box54,
.box62 {
  background-color: var(--green) !important;
  color: #ffffff !important;
}

.box7,
.box15,
.box23,
.box31,
.box39,
.box47,
.box55,
.box63 {
  background-color: var(--yellow) !important;
  color: #ffffff !important;
}

.box8,
.box16,
.box24,
.box32,
.box40,
.box48,
.box56,
.box64 {
  background-color: var(--red) !important;
  color: #ffffff !important;
}

/* Word validity indicators */
.invalidWord {
  color: #ff4444 !important;
  text-decoration: line-through !important;
}

.validWord {
  color: var(--text);
}

/* Flip animation */
.tile.flip {
  animation: 0.5s linear flipping;
}

@keyframes flipping {
  0% {
    transform: rotateX(0deg);
  }

  50% {
    transform: rotateX(90deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

/* ================================================================
   Virtual Keyboard
   ================================================================ */
#divkeyboard {
  max-width: 520px;
  width: calc(100% - 20px);
  margin: 8px auto 16px auto;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}

#divkeyboard .kb-row {
  display: flex;
  gap: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

/* Letter key group — fills row, keys centered inside */
#divkeyboard .kb-row .kb-letters {
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
}

/* Key button wrapper */
#divkeyboard .kb-row .key {
  flex: 1;
  /* width: 2.6em; */
  height: 3.2em;
  margin: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Visual key inside wrapper */
#divkeyboard .kb-row .key span {
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--key-bg);
  color: var(--text);
  transition: filter 0.05s ease;
  pointer-events: none;
  text-transform: uppercase;
}

/* Wider special keys */
#divkeyboard .key.wide {
  flex: 0 0 auto;
  min-width: 3.9em;
}

#divkeyboard .key.wide span {
  padding: 0 10px;
  min-width: 3em;
}

/* Unused key (default) */
#divkeyboard .kb-row .key.unused span {
  background: var(--key-bg);
  color: var(--text);
}

/* Used key — dimmed, darker, muted text */
#divkeyboard .kb-row .key.used span {
  background: var(--key-used);
  color: #555555;
  filter: none;
}

/* Correct-position key */
#divkeyboard .kb-row .key.correct span {
  background: var(--green);
  color: #ffffff;
}

/* Wrong-position key */
#divkeyboard .kb-row .key.present span {
  background: var(--yellow);
  color: #ffffff;
}

/* Absent key */
#divkeyboard .kb-row .key.absent span {
  background: #3d3d40;
  color: #999999;
}

/* Press feedback only */
#divkeyboard .kb-row .key:active span {
  transform: scale(0.94);
}

/* Ghost placeholder — invisible but takes same space as regular key */
#divkeyboard .key.ghost {
  flex: 0 0 auto;
  width: 2.6em;
  pointer-events: none;
  visibility: hidden;
}

/* Half-width ghost for centering */
#divkeyboard .key.ghost.half {
  width: 1.3em;
}

/* Spacebar — wider than regular keys */
#divkeyboard .key.spacebar {
  flex: 0 0 auto;
  width: 50%;
}

#divkeyboard .key.spacebar span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ================================================================
   Stats Modal — Centered Popup with Backdrop
   ================================================================ */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  justify-content: center;
  align-items: center;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px 20px;
  max-width: 380px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.modal h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal h1 img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.modal h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.modal h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* Close button */
.modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  border: none;
  transition: background 0.1s;
}

.modal .close-btn:hover {
  background: var(--input-bg);
  opacity: 1;
}

/* Stats data rows */
.modal p {
  margin: 4px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.modal p span {
  color: var(--text-muted);
  font-weight: 400;
}

/* Guess distribution bars */
.modal .dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}

.modal .dist-label {
  width: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
  color: var(--text);
}

.modal .progress {
  position: relative;
  flex: 1;
  height: 20px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.modal .fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  min-width: 0;
  transition: width 0.3s ease;
}

.modal .progress .text {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Share section */
#sharetext {
  margin-top: 16px;
}

#sharebuttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#sharebuttons button {
  flex: 1;
  padding: 10px 12px;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.15s;
  border-bottom: 4px solid rgba(0, 0, 0, 0.15);
}

#sharebuttons button:hover {
  filter: brightness(110%);
}

/* Stats → Archive/Practice prompt */
#statsArchivePrompt {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
  text-align: center;
}

#statsArchivePrompt p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

#statsArchivePrompt a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

#statsArchivePrompt a:hover {
  text-decoration: underline;
}

/* Non-daily stats disclaimer */
#statsNonDailyDisclaimer {
  margin-top: 12px;
  text-align: center;
}

#statsNonDailyDisclaimer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ================================================================
   Create Link Modal
   ================================================================ */
#createlink {
  display: none;
}

#createlink.show {
  display: block;
}

#createlink h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

#createlink p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

#createlink textarea {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background: var(--bg);
  color: var(--text);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  resize: vertical;
}

#createlink .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ================================================================
   Utility Classes
   ================================================================ */
.cursor-pointer {
  cursor: pointer;
}

.space {
  visibility: hidden;
}

.hidden {
  display: none !important;
}

/* ================================================================
   Accessibility
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
.key:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .tile.flip {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   Responsive — Short Screens
   ================================================================ */
@media only screen and (max-height: 820px) and (min-width: 600px) {
  .tile {
    font-size: 1.2em;
    width: 1.75em;
    height: 1.75em;
    border-radius: 4px;
  }

  .divmessageboard {
    height: 32px;
  }

  .divmessageboard h1 {
    font-size: 1.05rem;
  }

  #divkeyboard .kb-row .key {
    height: 44px;
  }

  #divkeyboard .kb-row .key span {
    height: 38px;
    font-size: 0.9rem;
  }

  .restartButton {
    height: 30px;
  }

  .restartButton h1 {
    font-size: 0.8rem;
  }
}

/* ================================================================
   Responsive — Narrow Screens (Mobile)
   ================================================================ */
@media only screen and (max-width: 600px) {
  body {
    padding-top: 0.4em;
  }

  nav {
    height: 50px;
    /* margin: 6px 10px 0 10px; */
    border-radius: var(--radius-sm);
    padding: 0 8px;
  }

  .nav-mid img {
    height: 26px;
    width: 26px;
  }

  .icon-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 1rem;
  }

  .nav-left ul li>a,
  .nav-left ul li>img {
    width: 36px;
    height: 36px;
  }

  .nav-left ul li>img {
    width: 32px;
    height: 32px;
  }

  .tile {
    font-size: 1.8em;
    width: 1.8em;
    height: 1.8em;
    border-radius: 4px;
  }

  .divmessageboard {
    height: 32px;
    margin: 4px auto 2px auto;
  }

  .divmessageboard h1 {
    font-size: 1rem;
  }

  #divkeyboard {
    width: calc(100% - 8px);
    margin-top: 6px;
    border-radius: var(--radius-sm);
  }

  #divkeyboard .kb-row .key {
    /* width: 2.4em; */
    height: 3em;
    margin: 1.5px;
  }

  #divkeyboard .kb-row .key span {
    height: 100%;
    font-size: 0.9rem;
    border-radius: 4px;
  }

  #divkeyboard .key.ghost {
    width: 2.4em;
  }

  #divkeyboard .key.ghost.half {
    width: 1.2em;
  }

  .restartButton {
    width: fit-content;
    min-width: 120px;
    height: 32px;
  }

  .restartButton h1 {
    font-size: 0.85rem;
  }
}

/* ================================================================
   Responsive — Desktop
   ================================================================ */
@media only screen and (min-width: 768px) {
  .tile {
    font-size: 1.2em;
    width: 1.75em;
    height: 1.75em;
  }

  .divmessageboard {
    height: 36px;
  }

  .divmessageboard h1 {
    font-size: 1.15rem;
  }
}

/* ================================================================
   Old class mappings (for backward-compat with game-engine.js)
   ================================================================ */

/* .mystyle — default key (the JS uses this class) */
#divkeyboard .key.mystyle span {
  background: var(--key-bg);
  color: var(--text);
}

/* .usedKey — JS toggles this on used keys */
#divkeyboard .key.usedKey span {
  background: var(--key-used);
  color: #555555;
  filter: none;
}

/* .unusedKey — default state */
#divkeyboard .key.unusedKey span {
  background: var(--key-bg);
  color: var(--text);
}

/* Hide old grid-based layout if still in DOM */
#divkeyboard>button:not(.kb-row .key) {
  /* This only targets direct children that are old-style buttons */
}

/* HR overrides */
hr {
  display: none;
}

/* ================================================================
   Landing Page Card Styles (used by index.html)
   ================================================================ */
.page-bg {
  background: var(--bg);
  min-height: 100vh;
}

.page-header {
  width: 100%;
  max-width: 520px;
  margin: 12px auto 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
}

.page-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header .brand img {
  width: 32px;
  height: 32px;
}

.page-header .brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.page-header .header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header .header-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.page-header .header-links a:hover {
  color: var(--text);
}

/* Game mode cards */
.mode-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-card .card-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.mode-card .card-title {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}

.mode-card .card-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.mode-card .card-subtitle,
.mode-card .card-title,
.mode-card .play-btn {
  position: relative;
  z-index: 1;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 150px;
  height: 40px;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
  transition: filter 0.15s;
  border-bottom: 4px solid rgba(0, 0, 0, 0.15);
}

.play-btn:hover {
  filter: brightness(110%);
  opacity: 1;
}

.play-btn.secondary {
  background: var(--accent);
  color: #000000;
}

.page-footer {
  text-align: center;
  padding: 24px 0;
}

.page-footer a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-footer a:hover {
  color: var(--text);
}

/* === Archive Navigation === */

#archiveControls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto;
  max-width: 500px;
}

.archive-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--key-bg);
  color: var(--key-text, var(--text));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: filter 0.1s;
}

.archive-nav-btn:hover {
  filter: brightness(120%);
}

#archiveDatePicker {
  background: var(--input-bg, #2a2a2a);
  color: var(--key-text, var(--text));
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 170px;
}

#archiveDatePicker::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}