html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
}

#outer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  max-width: 800px;
  aspect-ratio: 16 / 9;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #2b2b2b;
  border: 2px solid #555;
  border-radius: 10px;
  overflow: hidden;
}

#game {
  width: 100%;
  height: 100%;
  display: block;
}

/* 로그 영역 */
#log-container {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 400px;
  height: 200px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: monospace;
  padding: 10px;
  box-sizing: border-box;
}

#log {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 스크롤바 */
#log-container::-webkit-scrollbar {
  width: 6px;
}
#log-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.log {
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
