@import url('https://fonts.googleapis.com/css2?family=VT323&family=DotGothic16&family=Press+Start+2P&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DotGothic16', monospace;
  background: #0a0a1a;
  color: #fff;
  min-height: 100vh;
}

/* ---- stars background ---- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 50%, #ff88ff 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, #88ffff 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, #ffff88 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, #ff8888 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 70%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 60%, #88ff88 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 15%, #fff 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 85%, #ff88ff 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 40%, #88ffff 0%, transparent 100%);
  animation: twinkle 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ---- marquee ---- */
.marquee-bar {
  background: #ff00cc;
  color: #00ff88;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 3px solid #00ff88;
  border-top: 3px solid #00ff88;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ---- header ---- */
.site-header {
  text-align: center;
  padding: 24px 16px 12px;
  position: relative;
  z-index: 1;
}

.site-title {
  font-family: 'VT323', monospace;
  font-size: 58px;
  color: #ff00cc;
  text-shadow: 3px 3px #00ff88, 6px 6px #ff6600, -2px -2px #00ccff;
  letter-spacing: 4px;
  line-height: 1;
  animation: glitch 4s steps(1) infinite;
}

@keyframes glitch {
  0%, 90%, 100% { text-shadow: 3px 3px #00ff88, 6px 6px #ff6600, -2px -2px #00ccff; }
  92% { text-shadow: -3px 3px #ff6600, 3px -3px #00ccff; }
  94% { text-shadow: 3px -3px #00ff88, -3px 3px #00ccff; }
}

.site-subtitle {
  font-family: 'DotGothic16', monospace;
  font-size: 13px;
  color: #ffff00;
  margin-top: 6px;
  letter-spacing: 2px;
}

.sparkle {
  display: inline-block;
  animation: spin 2s linear infinite;
  font-size: 18px;
  margin: 0 6px;
}

.sparkle-2 { animation-duration: 1.3s; animation-direction: reverse; }
.sparkle-3 { animation-duration: 2.7s; }

@keyframes spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---- nav ---- */
.nav-bar {
  background: #111133;
  border-top: 2px solid #ff6600;
  border-bottom: 2px solid #ff6600;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nav-bar a {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #00ffff;
  background: transparent;
  border: none;
  border-right: 1px solid #ff6600;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: background 0.1s;
  white-space: nowrap;
}

.nav-bar a:hover, .nav-bar a.active {
  background: #ff00cc;
  color: #000;
}

/* ---- layout ---- */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px;
}

.main-grid {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 14px;
}

.col { display: flex; flex-direction: column; gap: 12px; }

/* ---- panels ---- */
.panel {
  border: 2px solid;
  padding: 10px;
  background: rgba(10, 10, 40, 0.85);
}

.panel-pink  { border-color: #ff00cc; }
.panel-green { border-color: #00ff88; }
.panel-orange{ border-color: #ff6600; }
.panel-cyan  { border-color: #00ccff; }
.panel-yellow{ border-color: #ffff00; }

.panel-title {
  font-family: 'VT323', monospace;
  font-size: 22px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.panel-pink  .panel-title { color: #ff00cc; }
.panel-green .panel-title { color: #00ff88; }
.panel-orange .panel-title{ color: #ff6600; }
.panel-cyan  .panel-title { color: #00ccff; }
.panel-yellow .panel-title{ color: #ffff00; }

/* ---- bio ---- */
.bio-avatar {
  width: 80px; height: 80px;
  border: 3px solid #ff00cc;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, #ff00cc 0%, #6600ff 50%, #00ccff 100%);
  font-family: 'VT323', monospace;
  font-size: 32px; color: #fff;
}

.bio-text {
  font-size: 11px; color: #ccc;
  line-height: 1.6; text-align: center;
  margin-top: 6px;
}

.status-box {
  background: #001100;
  border: 1px solid #00ff88;
  padding: 6px; margin-top: 8px;
  font-family: 'VT323', monospace;
  font-size: 14px; color: #00ff88;
}

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #00ff88; border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }

/* ---- counter ---- */
.counter-box {
  background: #001111;
  border: 2px inset #00ccff;
  padding: 8px; text-align: center; margin-top: 8px;
}

.counter-digits {
  font-family: 'VT323', monospace;
  font-size: 28px; color: #00ff88; letter-spacing: 4px;
}

.counter-label {
  font-size: 9px; color: #888;
  font-family: 'Press Start 2P', monospace; margin-top: 2px;
}

/* ---- buttons 88x31 ---- */
.buttons-88x31 {
  display: flex; flex-wrap: wrap;
  gap: 4px; justify-content: center; margin-top: 6px;
}

.btn88 {
  width: 88px; height: 31px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 5px; text-align: center;
  cursor: pointer; transition: transform 0.1s; line-height: 1.4;
}

.btn88:hover { transform: scale(1.05); }
.btn88-trans  { background: linear-gradient(180deg,#5bcefa,#f5a9b8,#fff,#f5a9b8,#5bcefa); color:#555; border-color:#ddd; }
.btn88-pride  { background: linear-gradient(180deg,#ff0000,#ff8800,#ffff00,#00cc00,#0000ff,#8800cc); color:#fff; border-color:transparent; }
.btn88-bite   { background: #1a0010; color: #ff00cc; border-color: #ff00cc; font-size: 6px; }
.btn88-scared { background: #00001a; color: #88aaff; border-color: #4466ff; }

/* ---- blog post cards ---- */
.blog-post-card {
  border: 1px solid #ff6600;
  padding: 10px; margin-bottom: 10px;
  background: rgba(255,102,0,0.05);
}

.post-date  { font-family: 'VT323', monospace; font-size: 14px; color: #ff6600; margin-bottom: 2px; }
.post-title { font-family: 'VT323', monospace; font-size: 22px; color: #ffff00; margin-bottom: 4px; }
.post-title a { color: #ffff00; text-decoration: none; }
.post-title a:hover { color: #ff00cc; }
.post-excerpt { font-size: 10px; color: #aaa; line-height: 1.5; margin-bottom: 6px; }

.post-tag {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; padding: 2px 6px; margin-right: 4px; border: 1px solid;
}

.tag-pink  { color: #ff00cc; border-color: #ff00cc; }
.tag-green { color: #00ff88; border-color: #00ff88; }
.tag-cyan  { color: #00ccff; border-color: #00ccff; }
.tag-yellow{ color: #ffff00; border-color: #ffff00; }
.tag-orange{ color: #ff6600; border-color: #ff6600; }

.read-more {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; color: #ff00cc;
  text-decoration: none; float: right;
}

.read-more:hover { color: #fff; }

/* ---- stickers ---- */
.sticker-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.sticker {
  display: inline-block; font-size: 20px;
  animation: wobble 3s ease-in-out infinite; cursor: default;
}

.sticker:nth-child(2) { animation-delay:0.4s; animation-duration:2.5s; }
.sticker:nth-child(3) { animation-delay:0.8s; animation-duration:3.2s; }
.sticker:nth-child(4) { animation-delay:1.2s; animation-duration:2.8s; }
.sticker:nth-child(5) { animation-delay:0.2s; animation-duration:3.5s; }
.sticker:nth-child(6) { animation-delay:0.6s; animation-duration:2.2s; }
.sticker:nth-child(7) { animation-delay:1.0s; animation-duration:3.8s; }

@keyframes wobble { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ---- quote box ---- */
.quote-box {
  border-left: 4px solid #ff00cc;
  padding: 8px 10px;
  background: rgba(255,0,204,0.07);
  font-style: italic; font-size: 11px;
  color: #ffaaff; line-height: 1.6; margin-bottom: 8px;
}

.quote-attr {
  font-style: normal; font-family: 'VT323', monospace;
  font-size: 14px; color: #ff00cc;
  margin-top: 4px; display: block;
}

/* ---- gallery thumbs ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px; margin-top: 6px;
}

.gallery-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-top: 8px;
}

.gallery-thumb {
  aspect-ratio: 1;
  border: 2px solid #ff00cc;
  overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  text-decoration: none;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- links ---- */
.link-list a {
  display: block; color: #00ccff;
  text-decoration: none; font-size: 10px;
  padding: 3px 0; border-bottom: 1px dotted #333;
}

.link-list a:hover { color: #ff00cc; }

/* ---- embed placeholders ---- */
.embed-placeholder {
  background: rgba(0,0,0,0.4);
  border: 2px dashed #555;
  padding: 20px; text-align: center;
  font-family: 'VT323', monospace;
  font-size: 16px; color: #555;
}

/* ---- guestbook ---- */
.guestbook-entry {
  border: 1px solid #333;
  padding: 8px; margin-bottom: 8px;
  font-size: 10px; line-height: 1.5;
}

.gb-author { font-family: 'VT323', monospace; font-size: 16px; margin-bottom: 3px; }

/* ---- blog/post page ---- */
.post-body {
  font-size: 12px; line-height: 1.8;
  color: #ddd;
}

.post-body h2 {
  font-family: 'VT323', monospace;
  font-size: 28px; color: #ff00cc;
  margin: 16px 0 8px;
}

.post-body p { margin-bottom: 10px; }

.post-body a { color: #00ccff; }
.post-body a:hover { color: #ff00cc; }

.post-header-full {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ff6600;
}

/* ---- sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* ---- footer ---- */
.site-footer {
  background: #111133;
  border-top: 3px solid #ff00cc;
  text-align: center; padding: 10px;
  font-family: 'VT323', monospace;
  font-size: 14px; color: #555;
  margin-top: 14px;
  position: relative; z-index: 1;
}

/* ---- zines grid ---- */
.zine-card {
  border: 2px solid #ffff00;
  padding: 10px; text-align: center;
}

.zine-card.empty {
  border: 2px dashed #555;
  opacity: 0.5;
}

.zine-card .zine-icon { font-size: 36px; margin-bottom: 8px; }
.zine-card .zine-title { font-family: 'VT323', monospace; font-size: 18px; color: #ffff00; }
.zine-card .zine-meta { font-size: 9px; color: #888; margin-top: 4px; }
.zine-card a { display: block; margin-top: 8px; font-family: 'Press Start 2P', monospace; font-size: 7px; color: #ff00cc; text-decoration: none; }
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .page-wrap {
    padding: 8px;
  }

  .site-title {
    font-size: 36px;
  }

  .nav-bar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-btn, .nav-bar a {
    font-size: 7px;
    padding: 8px 10px;
  }

  .marquee-bar {
    font-size: 8px;
  }

  div[style*="grid-template-columns:1fr 200px"],
  div[style*="grid-template-columns:220px 1fr"],
  div[style*="grid-template-columns:1fr 220px"],
  div[style*="grid-template-columns: 200px 1fr"] {
    display: flex;
    flex-direction: column;
  }

  .buttons-88x31 {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bio-avatar {
    width: 60px;
    height: 60px;
  }
}