/* Rei palette: pale cyan-white, CRT static, Win98 chrome. Shared by admin.html and client.html */

[hidden] { display: none !important; }

/* --- page */

body {
  margin: 0;
  font: 13px "MS Sans Serif", Tahoma, Verdana, sans-serif;
  color: #000;
  background: #7fd6e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='4' fill='%2395e0e8'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%2395e0e8'/%3E%3C/svg%3E");
}

/* CRT scanlines over everything, clicks go through */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px);
}

#wrap { max-width: 960px; margin: 0 auto; padding: 8px; }

h1 {
  font: bold 34px "Comic Sans MS", cursive;
  text-align: center;
  margin: 6px 0;
  color: #fff;
  text-shadow: 2px 2px #1b6e8a, -1px -1px #ff7ac6;
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { color: #ffe9f6; } }

marquee {
  background: #000;
  color: #7fff7f;
  font: bold 14px "Courier New", monospace;
  padding: 3px;
  border: 2px inset #fff;
}

footer { text-align: center; font-size: 11px; margin: 14px 0; }
a { color: #00e; }

/* --- Rei pictures in the header */

#rei { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
#rei img { max-height: 120px; border: 2px outset #fff; }

/* --- windows */

.win { background: #c0c0c0; border: 2px outset #fff; margin: 10px 0; box-shadow: 2px 2px 0 #000; }
.win > h2 { margin: 0; padding: 3px 6px; font-size: 13px; color: #fff; background: linear-gradient(90deg, #000080, #1084d0); }
.win > .body { padding: 8px; overflow-x: auto; }
nav { text-align: center; }

/* --- controls */

button, a.button, input, select { font: inherit; }

button, a.button {
  display: inline-block;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
  padding: 3px 10px;
  text-decoration: none;
  cursor: pointer;
}
button:active, a.button:active { border-style: inset; }
button.on { border-style: inset; background: #dfdfdf; font-weight: bold; }

input, select { border: 2px inset #fff; background: #fff; padding: 2px; }
input[type=number] { width: 5em; }

/* --- messages */

.err { background: #fee; border: 2px inset #f00; color: #a00; padding: 4px; margin: 6px 0; }
.notice { margin: 6px 0; }
.tok {
  background: #ffffe1;
  border: 1px solid #000;
  padding: 4px;
  margin: 6px 0;
  font: 12px "Courier New", monospace;
  -webkit-user-select: all;
  user-select: all;
}

/* --- tables */

table { border-collapse: collapse; width: 100%; background: #fff; }
th { background: #000080; color: #fff; text-align: left; padding: 2px 6px; }
td { border: 1px solid #808080; padding: 2px 6px; word-break: break-all; }
tr.dead td { color: #888; text-decoration: line-through; }
.bar { background: #1084d0; height: 10px; display: inline-block; vertical-align: middle; }

/* --- file cards */

.grid { display: flex; flex-wrap: wrap; gap: 6px; }
.card { width: 150px; background: #fff; border: 2px inset #fff; padding: 3px; font-size: 11px; text-align: center; }
.card img { width: 144px; height: 110px; object-fit: contain; background: #000; display: block; }
.card div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- numbers on black, like a 2000s hit counter */

.kpi {
  display: inline-block;
  background: #000;
  color: #7fff7f;
  font: bold 18px "Courier New", monospace;
  padding: 4px 10px;
  margin: 3px;
  border: 2px inset #fff;
}
.kpi small { display: block; font-size: 10px; color: #ccc; }

.counter {
  background: #000;
  color: #f33;
  font: bold 14px "Courier New", monospace;
  padding: 1px 4px;
  letter-spacing: 2px;
  border: 2px inset #fff;
}

