/* Maze Tower Defense wiki — generated by generate.mjs, do not hand-edit. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root { --accent: #4ade80; --bg: #0a0a0a; --surface: rgba(255,255,255,0.05); --line: rgba(255,255,255,0.12); --dim: #8a8a8a; }

body {
  background: var(--bg);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.95rem; padding: 0.75rem 2rem; }
.breadcrumb a { color: #777; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: #ccc; }
.breadcrumb .sep { color: #3a3a3a; }
.breadcrumb .current { color: #999; }

.wiki-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0 2rem 0.5rem; border-bottom: 1px solid var(--line); }
.wiki-nav a {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888;
  text-decoration: none; padding: 0.45rem 0.75rem; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.wiki-nav a:hover { background: var(--surface); color: #fff; }
.wiki-nav a[aria-current="page"] { color: var(--accent); background: var(--surface); }

main { max-width: 880px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 1.45rem; font-weight: 700; margin: 2.75rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
p { margin: 0.75rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface); padding: 0.1em 0.4em; border-radius: 4px; }
em { color: #ddd; }

.hero { margin-bottom: 2rem; }
.hero .lede { font-size: 1.1rem; color: #bbb; max-width: 62ch; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.35rem; }
.note { color: var(--dim); font-size: 0.9em; }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0; }
.badge { font-size: 0.8rem; padding: 0.25rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; color: #ccc; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem; }
.stat .k { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); }
.stat .v { display: block; font-size: 1.15rem; font-weight: 700; margin-top: 0.15rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.25rem; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon { font-size: 1.6rem; }
.card h3 { margin: 0.4rem 0 0.3rem; }
.card p { color: var(--dim); font-size: 0.92rem; margin: 0; }

.scroll-x { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 420px; }
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: rgba(255,255,255,0.03); }
.wave-table { min-width: 640px; }

.chip {
  display: inline-block; font-size: 0.85rem; text-decoration: none; color: #eee;
  border: 1px solid var(--c, var(--line)); border-left: 3px solid var(--c, var(--accent));
  border-radius: 5px; padding: 0.05rem 0.4rem; margin: 0.1rem 0.1rem 0.1rem 0; white-space: nowrap;
}
.chip:hover { background: var(--surface); }
.xn { color: var(--dim); font-size: 0.85rem; margin-right: 0.35rem; }
.tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; color: #ff5252; border: 1px solid #ff5252; border-radius: 3px; padding: 0 0.25rem; }
.new { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-left: 0.5rem; }

.entry { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; }
.entry h3 { margin-top: 0; display: flex; align-items: center; gap: 0.5rem; }
.entry-icon { font-size: 1.25rem; }
.entry-meta { color: var(--dim); font-size: 0.9rem; margin: 0.2rem 0 0.6rem; }
.glyph { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 3px; }

ul.notes { margin: 0.6rem 0 0.6rem 1.2rem; }
ul.notes li { margin: 0.3rem 0; color: #ccc; }

.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; border: 1px solid var(--line); vertical-align: -1px; }

.map-wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin: 1rem 0; }
svg.map { width: 100%; max-width: 300px; height: auto; border-radius: 8px; display: block; }
.legend { list-style: none; margin: 0; flex: 1; min-width: 200px; }
.legend li { margin: 0.35rem 0; font-size: 0.92rem; }

.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.level-card {
  display: flex; gap: 0.85rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.85rem; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s;
}
.level-card:hover { border-color: var(--c, var(--accent)); transform: translateY(-2px); }
.level-map { flex: 0 0 54px; }
.level-map svg.map { max-width: 54px; }
.level-body { min-width: 0; }
.level-no { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c, var(--accent)); }
.level-card h3 { margin: 0.1rem 0 0.25rem; font-size: 1rem; }
.level-meta { color: var(--dim); font-size: 0.8rem; margin: 0; }
.level-diff { margin: 0.3rem 0 0; }
.dots { letter-spacing: 0.15em; font-size: 0.75rem; color: var(--c, var(--accent)); }
.stars { letter-spacing: 0.1em; color: #ffd54f; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

.wiki-foot { max-width: 880px; margin: 0 auto; padding: 2rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; }
.wiki-foot a { color: #888; text-decoration: none; }
.wiki-foot a:hover { color: #fff; }

@media (max-width: 480px) {
  .breadcrumb, .wiki-nav { padding-left: 1rem; padding-right: 1rem; }
  main, .wiki-foot { padding: 1.75rem 1rem 3rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  .hero .lede { font-size: 1rem; }
  .map-wrap { gap: 1rem; }
  svg.map { max-width: 100%; }
  .level-grid { grid-template-columns: 1fr; }
}
