/* ════════════════════════════════════════════════════════════════
   CAMP OF DICTATORS - GLORIOUS NATIONAL STYLESHEET
   Best viewed at 800x600. Optimized for Netscape Navigator 4.0.
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'VT323-local';
  src: local('VT323'), local('Courier New');
}

body {
  margin: 0;
  padding: 0;
  background-color: #800000;
  background-image:
    url("/images/star-tile.svg"),
    linear-gradient(135deg, #800000 0%, #4b0000 50%, #800000 100%);
  background-repeat: repeat;
  color: #ffd700;
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
  font-size: 16px;
  cursor: url("/images/star-cursor.svg") 8 8, auto;
}

/* ── Top-of-page propaganda banner ── */
.top-banner {
  background: repeating-linear-gradient(
    90deg,
    #ffd700 0,
    #ffd700 20px,
    #000 20px,
    #000 40px
  );
  height: 28px;
  border-bottom: 4px ridge #ffd700;
}

.marquee-row {
  background: #000;
  color: #ff0;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 0;
  border-top: 3px solid #ffd700;
  border-bottom: 3px solid #ffd700;
}

.marquee-row marquee {
  text-shadow: 2px 2px 0 #f00, -1px -1px 0 #0f0;
}

.blink {
  animation: blinker 1s steps(2, start) infinite;
}
@keyframes blinker { to { visibility: hidden; } }

.rainbow-text {
  background: linear-gradient(
    90deg, #ff0080, #ff8c00, #ffd700, #00ff00, #00bfff, #ff00ff
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowSlide 3s linear infinite;
  font-weight: bold;
  text-shadow: 0 0 1px rgba(0,0,0,0.4);
}
@keyframes rainbowSlide {
  to { background-position: 200% center; }
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 30px 12px 36px;
  border-bottom: 6px double #ffd700;
}

.hero h1 {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 64px;
  margin: 16px 0 4px;
  letter-spacing: 2px;
  text-shadow:
    3px 3px 0 #000,
    6px 6px 0 #ff0000;
  line-height: 1;
}

.hero .subtitle {
  color: #fff;
  font-size: 22px;
  font-style: italic;
  text-shadow: 2px 2px 0 #000;
}

.hero .since {
  display: inline-block;
  margin-top: 10px;
  background: #ffd700;
  color: #800000;
  padding: 3px 12px;
  font-weight: bold;
  border: 3px outset #ffd700;
  font-family: "Courier New", monospace;
}

.portraits {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.portraits figure {
  margin: 0;
  background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
  padding: 8px;
  border: 4px ridge #ffd700;
  box-shadow: 0 0 0 3px #000, 8px 8px 0 #000;
  display: inline-block;
  position: relative;
}
.portraits img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: radial-gradient(circle, #fff 0%, #ffd700 80%);
}
.portraits figcaption {
  background: #800000;
  color: #ffd700;
  font-family: "Courier New", monospace;
  font-size: 13px;
  text-align: center;
  padding: 4px;
  border-top: 2px solid #000;
}

.portraits figure:nth-child(1)::before,
.portraits figure:nth-child(2)::before {
  content: "★ OFFICIAL ★";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0000;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 2px 8px;
  border: 2px solid #000;
  white-space: nowrap;
}

/* ── Generic content sections ── */
section.bloc {
  max-width: 880px;
  margin: 32px auto;
  background: #000;
  color: #ffd700;
  border: 4px ridge #ffd700;
  padding: 22px 26px;
  box-shadow: 6px 6px 0 #ff0000;
}

section.bloc h2 {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 34px;
  margin: 0 0 14px;
  color: #ff0;
  text-shadow: 2px 2px 0 #ff0000, 4px 4px 0 #000;
  border-bottom: 3px dashed #ffd700;
  padding-bottom: 6px;
}

section.bloc p {
  line-height: 1.55;
  font-size: 17px;
}

ul.bullet-stars {
  list-style: none;
  padding: 0;
}
ul.bullet-stars li {
  padding: 4px 0 4px 28px;
  background: url("/images/bullet-star.svg") no-repeat 4px 8px;
  background-size: 16px 16px;
}

/* ── Decree card ── */
.decree-card {
  background: #fff;
  color: #000;
  border: 5px double #800000;
  padding: 18px 22px;
  font-family: "Times New Roman", serif;
  position: relative;
  margin: 14px 0;
}
.decree-card::before {
  content: "OFFICIAL";
  position: absolute;
  top: -14px;
  right: 14px;
  background: #ff0000;
  color: #fff;
  padding: 2px 14px;
  font-family: "Impact", sans-serif;
  letter-spacing: 2px;
  border: 2px solid #000;
  font-size: 12px;
}
.decree-card .stamp {
  position: absolute;
  bottom: 14px;
  right: 18px;
  width: 84px;
  height: 84px;
  border: 3px solid #c00;
  color: #c00;
  font-family: "Impact", sans-serif;
  font-size: 11px;
  text-align: center;
  line-height: 1.05;
  padding: 8px;
  box-sizing: border-box;
  transform: rotate(-12deg);
  opacity: 0.85;
}
.decree-card h3 {
  font-family: "Impact", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: #800000;
  text-transform: uppercase;
}
.decree-card .decree-body {
  padding-right: 96px;
  min-height: 84px;
}
.decree-card .signed {
  margin-top: 10px;
  font-style: italic;
  font-size: 14px;
  color: #555;
  border-top: 1px dashed #888;
  padding-top: 6px;
}

/* ── Battles table ── */
table.battles {
  width: 100%;
  border-collapse: collapse;
  font-family: "Courier New", monospace;
}
table.battles th, table.battles td {
  border: 2px solid #ffd700;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
}
table.battles th {
  background: #ffd700;
  color: #800000;
  font-family: "Impact", sans-serif;
  letter-spacing: 1px;
}
table.battles tr:nth-child(even) td { background: #1a1a1a; }
table.battles tr:nth-child(odd)  td { background: #000; }

/* ── Ministers grid ── */
.ministers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.minister {
  background: #1a1a1a;
  border: 2px ridge #ffd700;
  padding: 10px 12px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}
.minister .m-name {
  color: #ff0;
  font-weight: bold;
  font-size: 16px;
}
.minister .m-species {
  color: #aaa;
  font-style: italic;
  font-size: 12px;
}

/* ── Counter & guestbook ── */
.hit-counter {
  display: inline-block;
  background: #000;
  border: 3px inset #ffd700;
  padding: 6px 14px;
  font-family: "Courier New", monospace;
  font-size: 28px;
  color: #00ff00;
  letter-spacing: 6px;
  text-shadow: 0 0 6px #00ff00;
}

.guestbook {
  background: #ffd700;
  color: #000;
  border: 4px outset #ffd700;
  padding: 20px;
  margin: 14px 0;
  font-family: "Courier New", monospace;
}
.guestbook input, .guestbook textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px inset #800000;
  padding: 6px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  background: #fff;
  color: #000;
  margin-bottom: 8px;
}
.guestbook button {
  background: #800000;
  color: #ffd700;
  border: 3px outset #ffd700;
  padding: 8px 18px;
  font-family: "Impact", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
.guestbook button:hover { background: #ff0000; }

.guestbook-entries {
  margin-top: 14px;
  background: #fff;
  color: #000;
  padding: 10px;
  border: 2px inset #800000;
  min-height: 80px;
  font-size: 13px;
}
.gb-entry {
  border-bottom: 1px dashed #888;
  padding: 4px 0;
}
.gb-entry .gb-name { font-weight: bold; color: #800000; }

/* ── Map ── */
.world-map {
  font-family: "Courier New", monospace;
  white-space: pre;
  background: #000080;
  color: #ffd700;
  padding: 10px;
  border: 2px ridge #ffd700;
  font-size: 12px;
  line-height: 1.05;
  overflow-x: auto;
}

/* ── Buttons ── */
button.glory-btn {
  background: linear-gradient(180deg, #ff0 0%, #b8860b 100%);
  color: #800000;
  font-family: "Impact", sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  border: 3px outset #ffd700;
  padding: 10px 24px;
  cursor: pointer;
  margin: 10px 0;
}
button.glory-btn:hover {
  background: linear-gradient(180deg, #ff0000 0%, #800000 100%);
  color: #fff;
}
button.glory-btn:active { border-style: inset; }

/* ── Webring + footer ── */
.webring {
  text-align: center;
  background: #000;
  color: #ffd700;
  padding: 14px;
  border-top: 4px double #ffd700;
  border-bottom: 4px double #ffd700;
  font-family: "Courier New", monospace;
}
.webring a {
  color: #00ffff;
  text-decoration: underline;
  margin: 0 6px;
}
.webring a:visited { color: #ff00ff; }

footer.gloryfooter {
  text-align: center;
  padding: 28px 12px 60px;
  color: #ffd700;
  font-family: "Courier New", monospace;
  font-size: 13px;
}
footer.gloryfooter .badges {
  margin: 14px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
footer.gloryfooter .badge {
  display: inline-block;
  background: #000;
  border: 2px solid #ffd700;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #ff0;
}

/* ── Spinning star anchor ── */
.spin-star {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Construction ── */
.under-construction {
  text-align: center;
  background: repeating-linear-gradient(
    -45deg, #ffd700 0 16px, #000 16px 32px
  );
  color: #fff;
  padding: 6px 0;
  font-family: "Impact", sans-serif;
  letter-spacing: 4px;
  font-size: 14px;
  text-shadow: 2px 2px 0 #000;
}

/* ── Tilt cards ── */
.tilt-l { transform: rotate(-1.4deg); }
.tilt-r { transform: rotate(1.4deg); }

/* ── Layout helpers (replace inline style attributes for stricter CSP) ── */
.center-text { text-align: center; }
.four04-portrait { width: 180px; border: 4px ridge #ffd700; margin-top: 20px; }
.link-loud { color: #ff0; }

/* ── Konami / disco mode (toggled by JS) ── */
body.disco { animation: disco-bg 0.6s linear infinite; }
@keyframes disco-bg {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@media (max-width: 700px) {
  .hero h1 { font-size: 40px; }
  .portraits img { width: 160px; height: 160px; }
  .decree-card .decree-body { padding-right: 0; }
  .decree-card .stamp { position: static; transform: none; margin-top: 10px; }
}
