* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #070009;
  color: #f0e6ff;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SCANLINE OVERLAY ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.12) 2px,
      rgba(0,0,0,0.12) 4px
    );
  mix-blend-mode: multiply;
}

/* ── AMBIENT GLOW ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255,0,180,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 80%, rgba(0,220,255,0.06) 0%, transparent 70%);
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,0,9,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ff00cc44;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  color: #ff00cc;
  text-shadow: 0 0 8px #ff00cc, 0 0 20px #ff00ccaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.65rem, 2.5vw, 0.78rem);
  color: #00eeff;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border: 1px solid #00eeff33;
  border-radius: 3px;
  letter-spacing: 1px;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  background: #00eeff22;
  border-color: #00eeff;
  color: #fff;
  text-shadow: 0 0 6px #00eeff;
}

/* ── MAIN WRAPPER ── */
.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

/* ── SITE HEADER ── */
.site-header {
  text-align: center;
  padding: 2.5rem 0 2rem;
  position: relative;
}

.site-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ff00cc;
  text-shadow:
    0 0 4px #ff00cc,
    0 0 12px #ff00cc,
    0 0 30px #ff00ccbb,
    0 0 60px #ff00cc44;
  animation: pulseTitle 3s ease-in-out infinite, jitter 6s steps(1) infinite;
  line-height: 1.1;
}

.site-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.65rem, 2.8vw, 0.82rem);
  color: #00eeff99;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ff00cc88;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #ff00cc33, transparent);
}

/* ── BLOG POST CARD ── */
.post {
  position: relative;
  background: rgba(255,0,204,0.04);
  border: 1px solid #ff00cc22;
  border-left: 3px solid #ff00cc;
  border-radius: 0 8px 8px 0;
  padding: clamp(1rem, 4vw, 1.5rem);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.post::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, #ff00cc66, #00eeff33, transparent);
}

.post:hover {
  background: rgba(255,0,204,0.08);
  border-left-color: #ff44dd;
  box-shadow: -4px 0 16px #ff00cc33, inset 0 0 30px rgba(255,0,204,0.03);
  transform: translateX(2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.post-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: #aa77cc;
  letter-spacing: 1px;
}

.post-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  background: rgba(0,238,255,0.1);
  border: 1px solid #00eeff44;
  color: #00eeff;
}

.post h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 700;
  color: #f0e6ff;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 1px #ff00cc44;
  font-style: normal;
}

.post p {
  font-size: clamp(0.88rem, 3vw, 0.95rem);
  color: #c9b8dd;
  line-height: 1.75;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: #ff00cc;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #ff00cc44;
  transition: all 0.15s;
}

.read-more:hover {
  color: #ff44ee;
  border-bottom-color: #ff44ee;
  text-shadow: 0 0 8px #ff00cc;
  gap: 0.7rem;
}

/* ── GAME ROOM SECTION ── */
.gameroom {
  margin: 3rem 0;
  position: relative;
}

.gameroom-header {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #aaff00;
  text-shadow: 0 0 6px #aaff00, 0 0 20px #aaff0077;
  margin-bottom: 0.4rem;
}

.gameroom-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: #aaff0066;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 40vw, 160px), 1fr));
  gap: 0.75rem;
}

.game-card {
  background: #080012;
  border: 2px solid #aaff0033;
  border-radius: 4px;
  padding: 1rem 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(170,255,0,0.015) 3px, rgba(170,255,0,0.015) 4px
  );
  pointer-events: none;
}

.game-card:hover {
  border-color: #aaff00;
  box-shadow: 0 0 16px #aaff0044, inset 0 0 20px rgba(170,255,0,0.05);
  transform: translateY(-2px);
}

.game-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px #aaff0077);
}

.game-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: #aaff00;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.2rem;
}

.game-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1px;
}

.game-status.ready { color: #00eeff; }
.game-status.wip { color: #ff9900; }

/* ── INLINE IMAGES ── */
.hauntedpic {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem auto;
  border: 1px solid #ff00cc33;
  border-radius: 6px;
  filter: saturate(1.15) contrast(1.1);
  transition: all 0.3s ease;
}

.hauntedpic:hover {
  filter: saturate(1.4) contrast(1.3) hue-rotate(15deg);
  border-color: #ff00ccaa;
  box-shadow: 0 0 20px #ff00cc33;
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid #ff00cc1a;
  text-align: center;
}

.footer-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: #7755aa;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-text span {
  color: #ff00cc66;
}

/* ── TERMINAL CURSOR ── */
.cursor::after {
  content: "▋";
  color: #00eeff;
  animation: blink 1s step-end infinite;
}

/* ── ANIMATIONS ── */
@keyframes blink { 50% { opacity: 0; } }

@keyframes pulseTitle {
  0%, 100% { text-shadow: 0 0 4px #ff00cc, 0 0 12px #ff00cc, 0 0 30px #ff00ccbb; }
  50%       { text-shadow: 0 0 8px #ff00cc, 0 0 24px #ff00cc, 0 0 60px #ff00cc99, 0 0 90px #ff00cc33; }
}

@keyframes jitter {
  0%,97%,100% { transform: none; }
  98% { transform: translate(-1px,0) skewX(1deg); }
  99% { transform: translate(1px,0) skewX(-1deg); }
}

.footer {
  margin-top: 4rem;
  font-size: 0.75rem;
  color: #8882aa;
  text-align: right;
  text-shadow: 0 0 1px #a95eff;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070009; }
::-webkit-scrollbar-thumb { background: #ff00cc44; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ff00cc88; }