:root {
  --bg: #0f1115;
  --fg: #e6e6eb;
  --muted: #a0a0b0;
  --accent: #ff7a18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

header {
  padding: 3rem 1rem 2rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.tagline {
  color: var(--muted);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

section {
  margin-top: 3rem;
}

h2 {
  border-bottom: 1px solid #2a2d35;
  padding-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.game {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #2a2d35;
  border-radius: 6px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border-top: 1px solid #2a2d35;
}

/* Pixel-style XP bars */

#working-on {
  margin-top: 3rem;
}

.xp-entry {
  margin-top: 1.5rem;
}

.working-title {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.xp-bar.pixel {
  position: relative;
  width: 100%;
  height: 18px;
  background:
    repeating-linear-gradient(
      to right,
      #1c1e26 0px,
      #1c1e26 8px,
      #111218 8px,
      #111218 10px
    );
  border: 2px solid #000;
  image-rendering: pixelated;
}

.xp-fill {
  height: 100%;
  width: var(--progress);
  background:
    repeating-linear-gradient(
      to right,
      #5a21d8 0px,
      #5a21d8 8px,
      #8f6bff 8px,
      #8f6bff 10px
    );
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: width 0.5s steps(12);
}

.xp-label {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
