/* Chat Log - Gram's neutral dark theme: flat grey surfaces, hairline borders, light-grey primary, Geist type */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-mono-latin-wght.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Gram's neutral dark system (2026-11-25): flat greys, hairline borders, light-grey primary, no blue */
  --bg: #16171a;
  --bg-side: #1f2024;
  --panel: #1f2024;
  --panel-2: #26272c;
  --panel-3: #2b2c31;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #7c7c85;
  --input-bg: rgba(255, 255, 255, .05);
  --input-bg-hi: rgba(255, 255, 255, .08);
  --hover: #2b2c31;
  --accent: #e5e5e5;
  --accent-hover: #d4d4d4;
  --accent-ink: #171717;
  --accent-soft: rgba(255, 255, 255, .08);
  --accent-text: #f4f4f5;
  --ring: #737373;
  --ring-50: rgba(115, 115, 115, .5);
  --primary: #e5e5e5;
  --primary-hover: #d4d4d4;
  --primary-ink: #171717;
  --link: #5b9dff;
  --up: #3cd278;
  --down: #ff6467;
  --warn: #f5b84a;
  --warn-soft: rgba(245, 184, 74, .08);
  --join: #4ad384;      /* a Minecraft join line */
  --leave: #ff7a7c;     /* a Minecraft leave line */
  --bar-bg: rgba(22, 23, 26, .9);
  --r: 8px;
  --r2: 10px;
  --r3: 14px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .05);
  --sh-2: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --sh-3: 0 16px 48px -12px rgba(0, 0, 0, .65);
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 255, 255, .18); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #404040; }

:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring-50); }

kbd {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--input-bg);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Loading spinners keep turning even with Windows' "Animation effects" off: frozen, a page that's still
     loading looked stuck. Everything else stays still as asked. */
  .inline-spin, .spinner { animation: spin 1s linear infinite !important; }
}
