* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Claude Code colors */
  --bg: #1e1e1e;
  --fg: #d4d4d4;
  --fg-dim: #858585;
  --fg-bright: #ffffff;
  --accent: #569cd6;
  --accent-alt: #c586c0;
  --string: #ce9178;
  --keyword: #569cd6;
  --comment: #6a9955;
  --function: #dcdcaa;
  --number: #b5cea8;
  --operator: #d4d4d4;
  --error: #f48771;
  --warning: #cca700;
  --success: #4ec9b0;
  --border: #3e3e3e;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
  text-rendering: optimizeLegibility;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ascii-container {
  width: fit-content;
  max-width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ascii-page {
  font-family: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.18;
  white-space: pre;
  overflow: visible;
  color: var(--fg);
  display: inline-block;
  margin: 0 auto;
  padding: 0;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

/* Responsive breakpoint */
@media (max-width: 768px) {
  .ascii-page {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
    line-height: 1.2;
  }
  
  .ascii-page.desktop {
    display: none;
  }
  
  .ascii-page.mobile {
    display: block;
    font-family: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@media (min-width: 769px) {
  .ascii-page.desktop {
    display: block;
  }
  
  .ascii-page.mobile {
    display: none;
  }
}

/* Color classes for ASCII art */
.dim { color: var(--fg-dim); }
.bright { color: var(--fg-bright); }
.accent { color: var(--accent); }
.accent-alt { color: var(--accent-alt); }
.string { color: var(--string); }
.keyword { color: var(--keyword); }
.comment { color: var(--comment); }
.function { color: var(--function); }
.number { color: var(--number); }
.error { color: var(--error); }
.warning { color: var(--warning); }
.success { color: var(--success); }

/* Links in ASCII art */
.ascii-page a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.ascii-page a:hover {
  color: var(--accent-alt);
  text-decoration: underline;
}

/* Stars link styling */
.ascii-page a.stars-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--fg-dim);
  transition: all 0.2s;
  cursor: pointer;
}

.ascii-page a.stars-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.ascii-page a.stars-link:hover .dim {
  color: var(--accent);
}

/* Cursor blink */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.cursor {
  animation: blink 1s step-end infinite;
}
