* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  cursor: url(batcursor.png), default;
  font-family: "VT323", monospace;
  font-size: 16px;
  color: #ff2f2f;

  background-color: #000;
  background-image:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.7)),
    url("https://i.pinimg.com/564x/dc/4f/67/dc4f670a63857de8fb6077c4530df230.jpg");

  background-repeat: repeat;
  background-size: 300px;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CRT SCANLINES */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  z-index: 999;
}

/* GLOBAL IMAGE TINT */
.profile img,
.friend img,
.banner,
.stamps img {
  filter: brightness(0.95) contrast(1.05);
  box-shadow: inset 0 0 0 9999px rgba(255,0,0,0.08);
}

/* TOPBAR (CENTER SAFE) */
.topbar {
  width: min(820px, 95vw);
  margin: 10px auto;

  background: #050000;
  border: 2px solid #7d0000;
  padding: 5px 10px;

  box-shadow: 0 0 10px rgba(255,0,0,0.15);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  color: white;
}

.logo span {
  color: #ff0000;
}

/* NAV */
.nav a {
  color: #ff6b6b;
  text-decoration: none;
  margin-left: 10px;
  transition: all 0.25s ease;
}

.nav a:hover {
  color: #ff0000;
  text-shadow:
    0 0 4px #ff0000,
    0 0 8px #ff0000,
    0 0 14px #ff2a2a;
  filter: brightness(1.2);
}

/* WRAPPER (IMPORTANT FIX) */
.wrapper {
  width: min(820px, 95vw);
  margin: 14px auto;

  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px;
}

/* WINDOWS */
.window {
  background: #050000;
  border: 2px solid #7b0000;
  margin-bottom: 8px;
  box-shadow: 0 0 12px rgba(255,0,0,0.08);
  transition: 0.3s ease;
  width: 100%;
}

.window:hover {
  box-shadow: 0 0 16px rgba(255,0,0,0.18);
}

.window-title {
  background: linear-gradient(#7c0000, #2b0000);
  padding: 4px 8px;
  font-size: 20px;
  border-bottom: 2px solid #7b0000;
  transition: 0.3s ease;
}

.window:hover .window-title {
  text-shadow: 0 0 4px #ff0000, 0 0 10px #ff0000;
}

.window-content {
  padding: 8px;
}

/* PROFILE */
.profile {
  display: flex;
  gap: 10px;
}

.profile img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border: 2px solid #920000;
  transition: 0.3s ease;
}

.profile img:hover {
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255,0,0,0.7), 0 0 20px rgba(255,0,0,0.3);
  transform: scale(1.03);
}

.online {
  color: #00ff59;
  margin-top: 6px;
}

.mood {
  margin-top: 6px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.contact-grid a {
  background: #180000;
  border: 1px solid #5c0000;
  padding: 4px;
  text-align: center;
  color: #ff7b7b;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-grid a:hover {
  background: #320000;
  border-color: #ff0000;
  color: #fff;
  box-shadow: 0 0 6px rgba(255,0,0,0.6), inset 0 0 8px rgba(255,0,0,0.35);
  text-shadow: 0 0 6px #ff0000;
  transform: translateY(-1px);
}

/* INTERESTS */
.interests {
  width: 100%;
  border-collapse: collapse;
}

.interests td {
  border: 1px solid #600000;
  padding: 5px;
}

.interests td:first-child {
  width: 90px;
  background: #220000;
}

/* STAMPS */
.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stamps img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border: 1px solid #700000;
  transition: 0.2s ease;
}

.stamps img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 10px rgba(255,0,0,0.7);
  border-color: #ff0000;
}

/* UPDATES */
.updates-post {
  border-bottom: 1px solid #390000;
  padding: 6px 0;
}

.updates-title {
  color: #ff5c5c;
  font-size: 22px;
}

.updates-scroll {
  max-height: 100px;
  overflow-y: auto;
  padding-right: 6px;
}

/* SCROLLBAR */
.updates-scroll::-webkit-scrollbar {
  width: 5px;
}

.updates-scroll::-webkit-scrollbar-track {
  background: #120000;
  border-left: 1px solid #400000;
}

.updates-scroll::-webkit-scrollbar-thumb {
  background: #7a0000;
}

.updates-scroll::-webkit-scrollbar-thumb:hover {
  background: #a00000;
}

/* FRIENDS */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.friend img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 2px solid #700000;
  transition: 0.25s ease;
}

.friend img:hover {
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255,0,0,0.7), 0 0 20px rgba(255,0,0,0.3);
  transform: scale(1.03);
}

.friend-name {
  text-align: center;
  margin-top: 4px;
}

/* FLOATING DECOR */
.bat {
  position: fixed;
  width: 200px;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

.b1 { top: 20px; left: 20px; }
.b2 { top: 200px; right: 60px; }
.b3 { bottom: 40px; left: 15%; }

/* IFRAME */
iframe {
  margin-top: 10px;
  border: 2px solid #700000;
  box-shadow: 0 0 12px rgba(255,0,0,0.2);
}

/* SELECTION */
::selection {
  background: #ff0000;
  color: black;
}