/* ===== 全局重置与基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background: #2c2c2c;
  color: #f0f0f0;
  overflow: hidden;
  user-select: none;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ===== 像素风通用样式 ===== */
.pixel-text {
  font-family: 'Courier New', monospace;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.pixel-button {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 32px;
  border: 4px solid #000;
  background: #ffd700;
  color: #000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 
    4px 4px 0 #000,
    inset -2px -2px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.1s;
  position: relative;
}

.pixel-button:hover {
  background: #ffed4e;
  transform: translate(1px, 1px);
  box-shadow: 
    3px 3px 0 #000,
    inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

.pixel-button:active {
  transform: translate(2px, 2px);
  box-shadow: 
    2px 2px 0 #000,
    inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

/* ===== 场景容器 ===== */
.scene {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== 淡入淡出动画 ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}
