/* Paction — late-90s personal homepage vibes, on purpose. */

body {
  margin: 0;
  padding: 12px;
  color: #33ccff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 17px;
  line-height: 1.45;
  /* Starfield: a few layers of tiny dots on black */
  background-color: #000000;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #bbbbff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 160px 60px, #ffffff 50%, transparent 51%),
    radial-gradient(1px 1px at 230px 170px, #ffffcc 50%, transparent 51%),
    radial-gradient(1px 1px at 50px 200px, #ffffff 50%, transparent 51%);
  background-size: 250px 230px;
}

a { color: #00ffff; }
a:visited { color: #cc99ff; }
a:hover { color: #ffff00; }

/* ---- Title bar ---- */
.titlebar {
  border: 4px ridge #6666cc;
  background: #000000;
  text-align: center;
  padding: 10px 6px 6px;
  margin-bottom: 10px;
}
.title {
  font-family: "Times New Roman", Times, serif;
  font-size: 64px;
  font-weight: bold;
  letter-spacing: 4px;
  margin: 0;
  line-height: 1.1;
  /* Shiny chrome-ish lettering with a chunky 3D drop */
  background: linear-gradient(180deg, #ffffff 0%, #9999ff 35%, #3333aa 55%, #ccccff 75%, #6666cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #111144) drop-shadow(2px 2px 0 #000000);
}
.tagline { color: #ffff00; margin: 4px 0 0; }

/* Old-school scrolling welcome line */
.ticker { overflow: hidden; white-space: nowrap; margin-top: 6px; color: #ff66ff; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 18s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker span { animation: none; padding-left: 0; }
}

/* ---- Two columns: sidebar + main ---- */
.layout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sidebar {
  flex: 0 0 170px;
  border: 4px ridge #6666cc;
  background: #000000;
  text-align: center;
  padding: 8px 4px;
}
.sidebar a {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  margin-top: 10px;
}
.sidebar .cap {
  display: block;
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 8px;
}
.sidebar .here { color: #ffff00; text-decoration: none; }

.main {
  flex: 1;
  min-width: 0;
  border: 4px ridge #6666cc;
  background: rgba(0, 0, 40, 0.75);
  padding: 12px 18px 18px;
  text-align: center;
}

/* ---- Bits and pieces ---- */
h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 34px;
  color: #33ff33;
  margin: 22px 0 8px;
  text-shadow: 2px 2px 0 #004400;
}
h3 { color: #ffff00; margin: 18px 0 4px; }

.main p, .main li { text-align: center; }
.main ul { list-style: none; padding: 0; }
.main ul li::before { content: "* "; color: #ff66ff; }

.yellow { color: #ffff00; }

hr {
  border: 0;
  height: 6px;
  margin: 18px 0;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

/* Caution-tape TEST RUN banner */
.caution {
  background: repeating-linear-gradient(-45deg, #ffff00 0 18px, #000000 18px 36px);
  padding: 6px;
  margin: 0 0 6px;
}
.caution span {
  display: block;
  background: #000000;
  color: #ff3333;
  font-size: 22px;
  letter-spacing: 3px;
  padding: 4px;
  text-align: center;
}
.construction {
  color: #ff9933;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  text-align: center;
  margin: 4px 0 0;
}

.placeholder {
  background: #333300;
  color: #ffff99;
  border: 1px dashed #ffff00;
  padding: 1px 4px;
  font-family: "Courier New", Courier, monospace;
  font-weight: normal;
}

/* One box per pact */
.pact {
  border: 4px outset #9999ff;
  background: #000033;
  padding: 12px 14px 14px;
  margin: 18px auto;
  max-width: 520px;
}
.pact-name {
  font-family: "Times New Roman", Times, serif;
  font-size: 30px;
  color: #ffff00;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pact-pic {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 8px;
  border: 3px ridge #6666cc;
}
.pitch { color: #ffffff; font-size: 19px; }
.tally { color: #ffffff; }
.pact-form {
  border: 2px dashed #6666cc;
  padding: 8px;
  margin: 10px 0;
}
details { margin-top: 8px; }
summary {
  cursor: pointer;
  color: #00ffff;
  text-decoration: underline;
  font-family: "Times New Roman", Times, serif;
  font-size: 19px;
}
details p { color: #dddddd; font-weight: normal; }

/* Live counts, hit-counter style */
table.counts {
  border-collapse: separate;
  border-spacing: 3px;
  margin: 8px auto;
  border: 3px outset #9999ff;
  background: #000033;
}
table.counts th, table.counts td {
  border: 2px inset #6666cc;
  padding: 6px 10px;
  color: #ffffff;
}
table.counts th { background: #3333aa; color: #ffff00; }
.count {
  font-family: "Courier New", Courier, monospace;
  font-size: 22px;
  background: #000000;
  color: #00ff00;
  border: 2px inset #666666;
  padding: 1px 6px;
  letter-spacing: 3px;
  white-space: nowrap;
}
.goal-hit { color: #ff3333; }

.small { font-size: 13px; color: #cccccc; font-weight: normal; }

.footer {
  font-size: 12px;
  color: #999999;
  font-weight: normal;
  text-align: center;
  margin-top: 14px;
}

/* Small screens: stack the sidebar on top */
@media (max-width: 640px) {
  body { padding: 6px; font-size: 16px; }
  .title { font-size: 40px; letter-spacing: 2px; }
  .layout { flex-direction: column; }
  .sidebar { flex: none; width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; padding: 4px; }
  .sidebar a { font-size: 19px; margin-top: 4px; }
  .sidebar .cap { display: none; }
  .main { padding: 10px; }
  .caution span { font-size: 17px; letter-spacing: 1px; }
}

/* How-it-works steps */
ol.steps {
  display: inline-block;
  text-align: left;
  margin: 4px auto 0;
  padding-left: 28px;
}
ol.steps li { margin: 6px 0; text-align: left; }
ol.steps li::marker { color: #ff66ff; font-weight: bold; }

/* Signed / Goal scoreboard on each pact */
.scoreboard {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 8px;
}
.score {
  border: 3px outset #9999ff;
  background: #000000;
  padding: 6px 10px 8px;
}
.score-label {
  color: #ffff00;
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.score .count { display: inline-block; font-size: 30px; }
.score .count.goal { color: #00ffff; }

/* Chunky segmented progress bar */
.progress {
  height: 22px;
  border: 3px inset #6666cc;
  background: #000000;
  margin: 6px auto 4px;
  max-width: 380px;
}
.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, #00ff00 0 14px, #003300 14px 17px);
}
.togo { color: #ffff00; font-size: 19px; margin: 4px 0 6px; }
.goal-hit { color: #ff3333; }

@media (max-width: 480px) {
  .score .count { font-size: 22px; }
}
