:root {
  --bg-main: #000000;
  --panel: rgba(0,0,0,0.6);
  --neon1: #39ff14;
  --neon2: #00e5ff;
  --neon3: #ff4dff;
  --accent: #ffd166;
  --pixel-border: 3px solid rgba(255,255,255,0.06);
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Helvetica', Arial, sans-serif;
  background: var(--bg-main);
  color: #ddd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  overflow-y: auto;
  padding-left: 220px;
}

/* Sidebar */
aside#side {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 210px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(0,0,0,0.7));
  border-right: 4px solid rgba(255,255,255,0.03);
  box-shadow: 6px 0 20px rgba(0,0,0,0.7);
  z-index: 50;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 1px;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: transparent;
  background: linear-gradient(90deg, var(--neon1), var(--neon2), var(--neon3));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 6px rgba(57,255,20,0.08),
    0 0 12px rgba(0,229,255,0.06);
  margin-bottom: 14px;
  display: block;
}

nav.links { display: flex; flex-direction: column; gap: 10px; }
nav.links a {
  display: block;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 2px solid rgba(255,255,255,0.03);
  text-decoration: none;
  color: #cfefff;
  font-size: 10px;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.6), 0 4px 0 rgba(0,0,0,0.6);
}
nav.links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.6);
  color: white;
  filter: drop-shadow(0 0 6px rgba(0,229,255,0.15));
}

.side-bottom {
  position: absolute;
  left: 18px; bottom: 18px; right: 18px;
  font-size: 10px;
  color: #999;
}

/* Main */
main {
  padding: 28px;
  max-width: 980px;
  margin: 0 auto;
}

header.site-header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.title-wrap { display: flex; flex-direction: column; }

h1.site-title {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--neon1), var(--neon2), var(--neon3));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 8px rgba(57,255,20,0.08),
    0 0 18px rgba(0,229,255,0.06),
    0 2px 0 rgba(0,0,0,0.6);
}

p.tagline {
  margin: 4px 0 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: #bcd;
}

/* Under construction */
.uc-banner {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: repeating-linear-gradient(90deg, #ffcf5c 0 10px, #292929 10px 20px);
  color: #111;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.6);
  animation: uc-bob 1.6s infinite;
  font-family: 'Press Start 2P';
  font-size: 10px;
  letter-spacing: 1px;
}
@keyframes uc-bob {
  0% { transform: translateY(0) }
  50% { transform: translateY(-4px) }
  100% { transform: translateY(0) }
}

/* Content cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}

/* Pixel sprite */
.sprite {
  width: 110px; height: 110px;
  display: inline-block;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  border: 2px solid rgba(255,255,255,0.03);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.7);
  backdrop-filter: blur(1px);
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
}
.sprite::after {
  content: "";
  position: absolute;
  left: 14px; top: 14px;
  width: 82px; height: 82px;
  background:
    conic-gradient(from 45deg, #222 0 25%, #ff4dff 25% 50%, #00e5ff 50% 75%, #39ff14 75% 100%);
  filter: contrast(1.1) saturate(1.4);
  transform: scale(0.96);
  mix-blend-mode: overlay;
  animation: spin 8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0) scale(0.96) }
  to { transform: rotate(360deg) scale(0.96) }
}

/* Neon links */
a.neon {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0,229,255,0.08);
  font-family: 'Press Start 2P';
  font-size: 11px;
}

/* Guestbook */
form.gb { display: flex; gap: 8px; flex-wrap: wrap; }
form.gb input[type="text"], form.gb textarea {
  flex: 1 1 100%;
  padding: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  color: #ddd;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  border-radius: 6px;
  min-height: 40px;
}
form.gb button {
  padding: 10px 12px;
  font-family: 'Press Start 2P';
  font-size: 10px;
  background: linear-gradient(90deg,var(--neon2),var(--neon3));
  border: none;
  color: #000;
  cursor: pointer;
  border-radius: 6px;
}

/* Visitor counter */
.counter {
  display: inline-block;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  font-family: 'Press Start 2P';
  font-size: 11px;
}

/* Footer */
footer { margin-top: 40px; font-size: 11px; color: #999; }

/* Responsive */
@media (max-width:800px){
  body { padding-left: 0; }
  aside#side {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: center;
  }
  nav.links { flex-direction: row; overflow: auto; }
  main { padding: 18px; }
}