/* overflo.ws - milw0rm style */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
}

#wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* ascii banner */
#banner {
  color: #00ff00;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 5px;
  white-space: pre;
  overflow-x: auto;
}

#tagline {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

hr {
  border: none;
  border-top: 1px dashed #00ff00;
  margin: 20px 0;
}

/* section headers */
.section-hdr {
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}

.section-hdr::before {
  content: "[ ";
  color: #00ff00;
}

.section-hdr::after {
  content: " ]";
  color: #00ff00;
}

/* description text */
.desc {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 15px;
}

.desc a {
  color: #00ff00;
  text-decoration: none;
}

.desc a:hover {
  text-decoration: underline;
}

/* test status table */
#test-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

#test-table th {
  text-align: left;
  color: #fff;
  font-weight: normal;
  font-size: 12px;
  padding: 4px 8px;
  border-bottom: 1px solid #00ff00;
}

#test-table td {
  padding: 4px 8px;
  font-size: 12px;
  border-bottom: 1px solid #111;
}

#test-table tr:hover {
  background: #0a0a0a;
}

.test-id {
  color: #666;
  width: 40px;
}

.test-name {
  color: #ccc;
}

.test-category {
  color: #555;
  width: 120px;
}

.test-status {
  width: 90px;
  text-align: right;
}

.status-waiting {
  color: #555;
}

.status-fail {
  color: #ff0000;
  font-weight: bold;
}

.status-pass {
  color: #00ff00;
}

/* timer */
#timer-bar {
  text-align: center;
  color: #555;
  font-size: 12px;
  margin-bottom: 20px;
}

#timer-bar span {
  color: #00ff00;
}

/* honeypot section */
.honeypot-section {
  margin-bottom: 15px;
}

.honeypot-section label {
  display: block;
  color: #888;
  font-size: 12px;
  margin-bottom: 4px;
}

.honeypot-section textarea,
.honeypot-section input[type="text"] {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #222;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  padding: 8px;
  outline: none;
}

.honeypot-section textarea:focus,
.honeypot-section input[type="text"]:focus {
  border-color: #00ff00;
}

.honeypot-section textarea {
  height: 100px;
  resize: vertical;
}

/* scoreboard */
#scoreboard {
  text-align: center;
  margin: 10px 0;
}

#grade-display {
  font-size: 10px;
  line-height: 1.15;
  color: #00ff00;
  white-space: pre;
  margin-bottom: 10px;
}

#score-summary {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 5px;
}

#score-detail {
  color: #666;
  font-size: 12px;
}

/* footer */
#footer {
  text-align: center;
  color: #333;
  font-size: 11px;
  margin-top: 10px;
  padding: 10px 0;
}

/* hidden injection containers - these are intentionally invisible */
.inj-hidden { display: none; }
.inj-offscreen { position: absolute; left: -9999px; top: -9999px; }
.inj-micro { font-size: 0.1px; line-height: 0; height: 0; overflow: hidden; }
.inj-blend { color: #000; background: #000; font-size: 1px; line-height: 0; height: 0; overflow: hidden; }
.inj-zerowidth { font-size: 0; width: 0; height: 0; overflow: hidden; position: absolute; }

/*
 * Accessibility-tree-visible injection containers.
 * These are VISUALLY hidden but still present in the a11y tree,
 * which is what tools like web-mcp's browser_snapshot read.
 */

/* sr-only: visually hidden via clip, but NO aria-hidden so it stays in a11y tree */
.inj-sronly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* transparent overlay: fully transparent text laid over real content */
.inj-transparent {
  color: transparent;
  font-size: 0;
  line-height: 0;
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* collapsed: zero-height div that is still in flow and a11y tree */
.inj-collapsed {
  height: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* fail flash animation */
@keyframes failFlash {
  0% { background: #330000; }
  100% { background: transparent; }
}

.flash-fail {
  animation: failFlash 0.8s ease-out;
}

/* scoreboard reveal */
#scoreboard.hidden {
  display: none;
}
