/* irc.so — authentic-ish 1997 styling, no external assets */

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #000018;
  /* tiled starfield */
  background-image:
    radial-gradient(1px 1px at 12px 8px,  #ffffff 99%, transparent),
    radial-gradient(1px 1px at 60px 40px, #9999ff 99%, transparent),
    radial-gradient(1.5px 1.5px at 34px 70px, #ffffff 99%, transparent),
    radial-gradient(1px 1px at 90px 22px, #ffff99 99%, transparent),
    radial-gradient(1px 1px at 74px 86px, #ffffff 99%, transparent),
    radial-gradient(1.5px 1.5px at 100px 60px, #ccccff 99%, transparent);
  background-size: 110px 110px;
  color: #000000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

/* ---- main "table" frame ---- */
.page {
  width: 1100px;
  max-width: 96%;
  margin: 14px auto;
  background: #c0c0c0;
  border: 3px outset #ffffff;
  padding: 4px;
}

.inner {
  border: 2px inset #808080;
  background: #c0c0c0;
  padding: 10px 14px;
}

/* ---- header ---- */
.banner {
  text-align: center;
  background: #000000;
  border: 2px inset #808080;
  padding: 10px 6px 12px;
  margin-bottom: 6px;
}

.banner h1 {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 44px;
  font-weight: bold;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #6666ff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner .tagline {
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.newstar {
  display: inline-block;
  background: #ff0000;
  color: #ffff00;
  font-weight: bold;
  font-size: 10px;
  padding: 2px 5px;
  transform: rotate(-8deg);
  border: 1px solid #ffff00;
  animation: blink 0.8s steps(1) infinite;
}

/* ---- marquee ---- */
.marquee {
  background: #000080;
  color: #ffffff;
  border: 2px inset #808080;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 6px;
  font-size: 12px;
  padding: 3px 0;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---- nav ---- */
.nav {
  text-align: center;
  margin-bottom: 8px;
}
.nav a {
  display: inline-block;
  background: #c0c0c0;
  border: 2px outset #ffffff;
  color: #000080;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  padding: 4px 12px;
  margin: 2px 1px;
}
.nav a:active { border-style: inset; }
.nav a.here {
  border-style: inset;
  background: #a0a0a0;
  color: #000000;
}

/* ---- content bits ---- */
h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 24px;
  color: #000080;
  border-bottom: 2px groove #ffffff;
  margin: 12px 0 8px;
}

hr.rule {
  border: none;
  border-top: 2px groove #ffffff;
  margin: 12px 0;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }

.panel {
  background: #ffffff;
  border: 2px inset #808080;
  padding: 8px 10px;
  margin: 8px 0;
}

.led-panel {
  background: #000000;
  border: 3px inset #606060;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  padding: 8px 10px;
  margin: 8px 0;
}

.led-panel .big {
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 0 0 6px #00ff00;
}

table.retro {
  border-collapse: collapse;
  width: 100%;
  background: #ffffff;
  border: 2px outset #ffffff;
}
table.retro th {
  background: #000080;
  color: #ffffff;
  font-size: 12px;
  text-align: left;
  padding: 4px 8px;
  border: 1px solid #808080;
}
table.retro td {
  border: 1px solid #808080;
  padding: 4px 8px;
  font-size: 12px;
}
table.retro tr:nth-child(even) td { background: #e8e8e8; }

.counter {
  display: inline-block;
  background: #000000;
  border: 2px inset #606060;
  padding: 2px 4px;
  white-space: nowrap;
}
.counter b {
  display: inline-block;
  background: #101010;
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  padding: 1px 4px;
  margin: 0 1px;
  border: 1px solid #303030;
  text-shadow: 0 0 4px #33ff33;
}

.center { text-align: center; }

/* equal-height side-by-side sections */
.cols {
  display: flex;
  gap: 12px;
}
.cols > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cols .panel { flex: 1; }
.panel.counterbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

pre.ascii {
  color: #000080;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.15;
  overflow-x: auto;
  margin: 4px 0;
}

pre.mono {
  background: #000000;
  color: #c0c0c0;
  border: 2px inset #808080;
  padding: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  overflow-x: auto;
}
pre.mono b { color: #ffff00; }

/* ---- 88x31 badges ---- */
.badges { text-align: center; margin-top: 10px; }
.badges svg { margin: 2px; image-rendering: pixelated; vertical-align: middle; }

.footer {
  text-align: center;
  font-size: 10px;
  color: #404040;
  margin-top: 8px;
}

/* chat iframe */
.chatframe {
  width: 100%;
  height: 75vh;
  min-height: 480px;
  border: 2px inset #808080;
  background: #000000;
}

canvas#spark {
  background: #000000;
  border: 2px inset #606060;
  width: 100%;
  height: 120px;
  display: block;
}

canvas.statgraph {
  background: #000000;
  border: 2px inset #606060;
  width: 100%;
  height: 140px;
  display: block;
}

.sharebar {
  background: #000080;
  height: 12px;
}

.led-panel .stat-item {
  display: inline-block;
  margin: 0 14px;
}
.led-panel .stat-item .num {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 5px #00ff00;
}

.err {
  background: #ffffcc;
  border: 2px outset #ffffff;
  color: #800000;
  font-weight: bold;
  padding: 6px 10px;
  margin: 8px 0;
}
