/* --- reset suave --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* --- tipografías "muy 2010s": pilas del sistema --- */
body {
  font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
  color: #dcd6ff;
  line-height: 1.6;
  cursor: url("assets/cursor.cur"), auto;
}

/* --- fondo tileado estrellado --- */
.bg-stars {
  background: #0a0612 url("assets/star-bg.png") repeat center top fixed;
}

/* --- acentos neón violeta --- */
.accent { color: #b86bff; text-shadow: 0 0 6px #b86bff, 0 0 16px #5b2a9d; }
.glow { text-shadow: 0 0 6px #9f62ff; }

/* --- topbar --- */
.topbar {
  background: linear-gradient(180deg, rgba(25,10,40,.9), rgba(15,5,25,.9));
  border-bottom: 1px solid #3b1e63;
  padding: 6px 12px;
}
.topbar .logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 22px; letter-spacing: .5px; text-transform: lowercase;
}
.spark { width: 20px; image-rendering: pixelated; }
.flip { transform: scaleX(-1); }
.marq { font-size: 12px; color: #c8b8ff; }

/* --- layout --- */
.wrap {
  max-width: 1100px; margin: 18px auto; padding: 0 12px;
  display: grid; grid-template-columns: 260px 1fr; gap: 18px;
}
.wrap--narrow { max-width: 800px; grid-template-columns: 1fr; }

/* --- tarjetas con borde pixelado --- */
.card {
  background: rgba(10, 4, 18, .75);
  border: 2px solid #5a2a99;
  box-shadow: 0 0 12px rgba(150, 80, 255, .35), inset 0 0 8px rgba(90, 42, 153, .4);
  border-radius: 6px;
  padding: 16px;
  backdrop-filter: blur(2px);
}

/* --- sidebar --- */
.sidebar .pfp img {
  width: 100%; border-radius: 4px; border: 2px solid #6f35c6;
  box-shadow: 0 0 10px rgba(140,70,255,.35);
}
.sidebar h2 { margin: 10px 0 4px; font-size: 18px; }
.small { font-size: 12px; opacity: .85; }

.nav { display: grid; gap: 8px; margin: 14px 0; }
.nav a {
  display: block; padding: 8px 10px; text-decoration: none; color: #e9e1ff;
  border: 1px solid #4a217f; border-radius: 4px;
  background: linear-gradient(180deg, rgba(32,14,55,.8), rgba(22,9,37,.8));
  text-transform: lowercase; font-weight: bold;
}
.nav a:hover { filter: brightness(1.2); box-shadow: 0 0 10px rgba(150, 80, 255, .4); }
.nav a.active { outline: 2px dashed #9f62ff; }

.divider { width: 100%; margin: 14px 0; opacity: .9; }

/* --- contenido --- */
.content h1, .content h2, .content h3 { text-shadow: 0 0 8px rgba(150,80,255,.6); }
h1 { font-size: 28px; margin: 6px 0 10px; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { font-size: 16px; margin: 0 0 6px; text-transform: lowercase; }

.post .note { font-size: 12px; opacity: .9; }

.updates { list-style: none; padding: 0; margin: 0; }
.updates li { padding: 6px 0; border-bottom: 1px dashed #472070; }
.updates .date { font-family: "Courier New", monospace; color: #b86bff; }

/* --- botones 88x31 y contadores --- */
.buttons img { image-rendering: pixelated; margin: 4px 4px 0 0; border: 1px solid #4a217f; }
.counter h3 { margin-bottom: 6px; }
.counter-box {
  font-family: "Courier New", monospace;
  padding: 6px 8px; background: #140826; border: 1px solid #4a217f; width: max-content;
  box-shadow: inset 0 0 6px rgba(159,98,255,.3);
}

/* --- polaroids galería --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.polaroid {
  background: #0e0720; padding: 8px; border: 2px solid #5a2a99; border-radius: 4px; text-align: center;
}
.polaroid figcaption { font-size: 12px; opacity: .9; margin-top: 6px; }

/* --- blink retro --- */
@keyframes blink { 50% { opacity: .35; } }
.blink { animation: blink 1.2s step-start infinite; }

/* --- footer --- */
.foot { text-align: center; font-size: 12px; color: #bfa9ff; padding: 18px 0 28px; }

/* --- enlaces --- */
a { color: #dac8ff; }
a:hover { color: #ffffff; text-shadow: 0 0 6px #c79bff; }

/* --- accesibilidad: focus visible --- */
:focus-visible { outline: 2px dashed #c79bff; outline-offset: 2px; }

/* --- responsive --- */
@media (max-width: 820px) {
  .wrap { grid-template-columns: 1fr; }
}

/* cursor trail extra */
.trail {
  position: absolute; pointer-events: none; width: 10px; height: 10px;
  background: url("assets/sparkle.gif") no-repeat center/contain;
  transform: translate(-50%, -50%); opacity: .9;
  animation: pop .9s ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(150,80,255,.8));
}
@keyframes pop {
  0% { transform: translate(-50%,-50%) scale(0.6); opacity: .95; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 0; }
}
