* {
  box-sizing: border-box;
  font-family: monospace;
}

body {
  margin: 0;
  background: black;
  color: white;

  min-height: 100vh;

  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
}


#game {
  width: 1000px;
  padding: 60px 0;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}



/* ---------- BATTLEFIELD ---------- */

#battlefield {
  display: flex;
  justify-content: space-between;
  align-items: center;  
  margin-bottom: 80px;   
}


.sprite {
  width: 200px;
  height: 200px;
  background: none;
  margin-bottom: 6px;
  image-rendering: optimizeSpeed;
}

.hp-bar {
  width: 64px;
  height: 6px;
  border: 1px solid white;
  
  margin: 0 auto;
}

.hp-fill {
  height: 100%;
  background: white;
  width: 100%;
}

#enemies {
  display: flex;
  gap: 40px;
}

/* ---------- MENU ---------- */

#menu {
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  gap: 16px;
  padding: 12px;
  min-height: 140px
}


#menu-options {
  width: 160px;
  border: 2px solid white;
  padding: 12px;
}

.menu-item {
  padding: 4px;
  cursor: pointer;
}

.menu-item.selected {
  background: white;
  color: black;
}

#menu-info {
  white-space: pre-line;
  
  flex: 1;
  border: 2px solid white;
  padding: 8px;
  min-height: 72px;
}













/* crt */

/* Global softness + contrast */
body {
  text-shadow:
    -0.3px 0 0 rgba(255, 0, 0, 0.1),
     0.3px 0 0 rgba(0, 255, 255, 0.1),
     0 0 2px currentColor;
}


/* Scanlines (brighter + thicker) */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    rgba(0, 0, 0, 0.15) 2px,
    transparent 3px
  );
  z-index: 9999;
}

/* Vignette (heavier edges) */
/* Background image layer */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background-image: var(--crt-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.08;
  filter: blur(1px) contrast(0.9);

  z-index: 1;
}

