@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes rainbow { 0%{color:#f00} 17%{color:#fa0} 33%{color:#ff0} 50%{color:#0f0} 67%{color:#0ff} 83%{color:#00f} 100%{color:#f0f} }
@keyframes marquee { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

body {
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='white' opacity='.15'/%3E%3C/svg%3E");
  color: #cccccc;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

a { color: #ff66ff; text-decoration: underline; }
a:visited { color: #cc6699; }
a:hover { color: #ffff66; text-decoration: none; background: #220033; }

.main-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

/* Navigation bar */
.nav-bar {
  background: #1a0a1a;
  border-top: 3px solid #ff00ff;
  border-bottom: 3px solid #ff00ff;
  padding: 8px 0;
  text-align: center;
  margin-bottom: 0;
}
.nav-bar a {
  display: inline-block;
  color: #00ffff;
  text-decoration: none;
  padding: 6px 16px;
  margin: 0 4px;
  border: 2px solid #333;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: bold;
  background: #0a0a22;
  transition: all 0.2s;
}
.nav-bar a:hover {
  color: #ffff00;
  background: #222200;
  border-color: #ffff00;
}
.nav-bar a.active {
  color: #ffff00;
  background: #222200;
  border-color: #ff66ff;
}

/* Marquee bar */
.marquee-bar {
  background: #220022;
  border-top: 3px solid #ff00ff;
  border-bottom: 3px solid #ff00ff;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  margin-bottom: 10px;
}
.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  color: #ffff00;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

/* Header */
.header-box {
  text-align: center;
  border: 4px ridge #ff00ff;
  background: linear-gradient(180deg, #000044 0%, #000000 50%, #330033 100%);
  padding: 20px 15px;
  margin-bottom: 15px;
}
.header-box h1 {
  animation: rainbow 3s linear infinite;
  font-size: 2rem;
  margin: 0 0 8px 0;
  font-family: 'Arial Black', 'Impact', sans-serif;
  letter-spacing: 2px;
  text-shadow: 2px 2px #ff0000;
}
.header-box .subtitle {
  color: #00ffff;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
}

/* Dividers */
.stars-divider {
  text-align: center;
  color: #ffff00;
  font-size: 0.85rem;
  margin: 12px 0;
  letter-spacing: 4px;
}

/* Section boxes */
.section-box {
  border: 3px ridge #00aa00;
  background: #0a0a1a;
  padding: 15px;
  margin-bottom: 15px;
}
.section-box h2 {
  color: #ff66ff;
  font-size: 1.3rem;
  border-bottom: 2px dashed #333366;
  padding-bottom: 6px;
  margin: 0 0 12px 0;
  font-family: 'Arial Black', sans-serif;
}
.section-box p { margin: 8px 0; font-size: 0.95rem; }
.section-box strong { color: #00ffff; }
.section-box em { color: #ff9966; }

/* Stat row */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}
.stat-box {
  border: 2px outset #cc0000;
  background: #1a0000;
  padding: 10px 16px;
  text-align: center;
  min-width: 150px;
}
.stat-box .val {
  color: #ff4444;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: 'Arial Black', sans-serif;
}
.stat-box .label {
  color: #aaaa44;
  font-size: 0.75rem;
  margin-top: 2px;
  font-family: 'Courier New', monospace;
}

/* Build cards */
.build-card {
  border: 3px double #cccc00;
  background: #0f0a18;
  padding: 12px;
  margin: 12px 0;
}
.build-card .build-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.build-card .rank {
  display: inline-block;
  background: #cc0000;
  color: #ffff00;
  font-weight: bold;
  width: 28px; height: 28px;
  text-align: center;
  line-height: 28px;
  font-size: 0.95rem;
  font-family: 'Arial Black', sans-serif;
  border: 2px outset #ff6600;
  vertical-align: middle;
}
.build-card .btitle {
  color: #66ffff;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Arial Black', sans-serif;
  vertical-align: middle;
}
.build-card .tier {
  font-size: 0.75rem;
  padding: 3px 12px;
  border: 1px outset;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}
.tier-s-plus { background: #cc0000; color: #ffff00; }
.tier-s { background: #aa0000; color: #ffffff; }
.tier-a { background: #996600; color: #ffff00; }
.tier-b { background: #555500; color: #ffff00; }

.build-card .stars { color: #ffff00; font-size: 0.85rem; letter-spacing: 2px; margin: 4px 0; }

.build-card .bdesc {
  color: #cccccc;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 6px 0;
}
.build-card .blink { animation: blink 1s infinite; color: #ff4444; font-weight: bold; }
.build-card .links {
  margin-top: 6px;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
}
.build-card .links a { margin-right: 12px; }

.new-badge {
  background: #ff0000;
  color: #ffff00;
  font-size: 0.7rem;
  padding: 2px 6px;
  animation: blink 0.6s infinite;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  vertical-align: middle;
  margin-left: 6px;
}

/* Insight boxes */
.insight-box {
  border: 2px inset #00ccff;
  background: #001525;
  padding: 12px;
  margin: 8px 0;
}
.insight-box h3 {
  color: #ff8800;
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-family: 'Arial Black', sans-serif;
}
.insight-box ul {
  margin: 0;
  padding-left: 20px;
}
.insight-box li {
  margin-bottom: 4px;
  color: #bbbbcc;
  font-size: 0.9rem;
}
.insight-box li strong { color: #66ffff; }

/* Verdict */
.verdict {
  border: 4px ridge #cc0000;
  background: #1a0505;
  padding: 14px;
  text-align: center;
}
.verdict p { margin: 6px 0; font-size: 0.92rem; }
.verdict .big {
  animation: rainbow 2s linear infinite;
  font-size: 1.4rem;
  font-family: 'Arial Black', sans-serif;
}

/* Meta table */
table.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.88rem;
}
table.meta-table td {
  border: 1px solid #333;
  padding: 6px 8px;
  color: #cccccc;
}
table.meta-table td:first-child {
  color: #ff66ff;
  font-weight: bold;
  width: 40%;
}

/* Footer */
.footer {
  text-align: center;
  color: #666666;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  padding: 15px;
  border-top: 2px groove #333;
  margin-top: 15px;
}
.footer .counter {
  display: inline-block;
  background: #000;
  color: #00ff00;
  border: 2px inset #333;
  padding: 3px 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.under-construction {
  text-align: center;
  margin: 10px 0;
  font-size: 0.85rem;
  color: #ffff00;
  font-family: 'Courier New', monospace;
}
.under-construction span { animation: blink 1s infinite; }

.webring {
  text-align: center;
  border: 2px groove #444;
  background: #0a0a0a;
  padding: 8px;
  margin: 10px 0;
  font-size: 0.75rem;
  color: #777;
  font-family: 'Courier New', monospace;
}

.guestbook-btn {
  display: inline-block;
  background: #220088;
  color: #ffffff;
  border: 3px outset #5555cc;
  padding: 6px 14px;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  margin: 4px;
}
.guestbook-btn:active { border-style: inset; }

/* ASCII art clipart */
.ascii-art {
  font-family: monospace;
  font-size: 0.65rem;
  line-height: 1.1;
  color: #666666;
  text-align: center;
  white-space: pre;
  margin: 8px 0;
  letter-spacing: 1px;
  overflow-x: auto;
}

/* Emoji decorations */
.emoji-row { text-align: center; font-size: 1.2rem; letter-spacing: 6px; margin: 6px 0; }

/* Table of contents box */
.toc-box {
  border: 2px solid #444;
  background: #111;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
}
.toc-box h3 {
  color: #ff99ff;
  margin: 0 0 6px 0;
  font-size: 0.9rem;
}
.toc-box ul {
  margin: 0;
  padding-left: 16px;
}
.toc-box li { margin: 3px 0; }

/* About page styles */
.about-box {
  border: 3px double #ff00ff;
  background: #1a0022;
  padding: 15px;
  margin: 12px 0;
}
.about-box h3 {
  color: #00ffff;
  font-family: 'Arial Black', sans-serif;
  margin: 0 0 8px 0;
}

/* Build detail page */
.class-header {
  text-align: center;
  padding: 12px;
  margin: 12px 0;
  border: 3px ridge;
  font-family: 'Arial Black', sans-serif;
  font-size: 1.3rem;
}
.class-paladin { border-color: #ff4444; background: #220000; color: #ff6666; }
.class-barbarian { border-color: #ff44ff; background: #220022; color: #ff66ff; }
.class-necromancer { border-color: #44ff44; background: #002200; color: #66ff66; }
.class-rogue { border-color: #ffff44; background: #222200; color: #ffff66; }
.class-druid { border-color: #44ffff; background: #002222; color: #66ffff; }

.build-detail {
  border: 2px solid #333;
  background: #0a0a1a;
  padding: 12px;
  margin: 10px 0;
}
.build-detail h4 {
  color: #66ffff;
  font-family: 'Arial Black', sans-serif;
  margin: 0 0 6px 0;
}
.build-detail .gear { color: #ff9966; font-size: 0.88rem; }
.build-detail .pros { color: #44ff44; font-size: 0.88rem; }
.build-detail .cons { color: #ff4444; font-size: 0.88rem; }
