/* 폰트 및 기본 변수 설정 (터미널 테마) */
:root {
  --lb-bg: #000000;
  --lb-text-main: #33ff00; /* 터미널 그린 */
  --lb-text-muted: #008f11; /* 어두운 그린 */
  --lb-text-alert: #ff0000;
  --lb-border: #008f11;
  --lb-border-active: #33ff00;
  --lb-font-main: 'VT323', monospace; /* 픽셀 폰트 강제 적용 */
  --lb-shadow-glow: 0 0 5px rgba(51, 255, 0, 0.5); /* 빛번짐 효과 */
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--lb-bg);
  color: var(--lb-text-main);
  font-family: var(--lb-font-main);
  font-size: 18px; /* 픽셀폰트는 작아서 기본 크기를 키움 */
  overflow-x: hidden;
}

/* CRT 모니터 스캔라인 효과 */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.3)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
}

/* 루트 컨테이너 */
.lb-root {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* 헤더 */
.lb-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--lb-border);
  padding-bottom: 15px;
}

/* 로고 스타일 변경 */
.lb-logo { display: flex; align-items: center; gap: 10px; }
.lb-logo-mark {
  background: var(--lb-text-main);
  color: var(--lb-bg);
  font-weight: bold;
  padding: 2px 6px;
  font-size: 24px;
}
.lb-logo-title { font-size: 24px; letter-spacing: 2px; }
.lb-logo-subtitle { color: var(--lb-text-muted); font-size: 16px; }

/* 뱃지 및 상태바 */
.lb-badge {
  border: 1px solid var(--lb-text-muted);
  padding: 2px 8px;
  font-size: 16px;
  color: var(--lb-text-muted);
}

.lb-status-pill {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
}
.lb-status-dot {
  width: 10px; height: 10px; background-color: var(--lb-text-main);
  border-radius: 50%;
  box-shadow: var(--lb-shadow-glow);
}
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* 메인 레이아웃 (반응형 유지) */
.lb-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 카드 디자인 (유리 효과 제거 -> 터미널 박스 스타일) */
.lb-card {
  border: 1px solid var(--lb-border);
  background: rgba(0, 20, 0, 0.3);
  padding: 15px;
  box-shadow: none; /* 그림자 제거 */
}

.lb-card-accent {
  border: 1px solid var(--lb-text-main); /* 강조 카드는 밝은 테두리 */
  box-shadow: var(--lb-shadow-glow);
}

.lb-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 15px; border-bottom: 1px dashed var(--lb-border);
  padding-bottom: 5px;
}

.lb-card-title {
  font-size: 20px; margin: 0; color: var(--lb-text-main);
}

.lb-card-tag {
  font-size: 14px; color: var(--lb-text-muted); border: 1px solid var(--lb-border);
  padding: 0 4px;
}

/* 카운트다운 */
.lb-countdown { display: flex; gap: 10px; margin-top: 10px; }
.lb-countdown-item {
  border: 1px solid var(--lb-border);
  padding: 10px; flex: 1; text-align: center;
}
.lb-countdown-value {
  display: block; font-size: 32px; font-weight: bold;
  text-shadow: var(--lb-shadow-glow);
}
.lb-countdown-label { font-size: 14px; color: var(--lb-text-muted); }

/* 리스트 스타일 */
.lb-kv-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px dotted var(--lb-border);
}
.lb-kv-row dt { color: var(--lb-text-muted); }
.lb-kv-row dd { color: var(--lb-text-main); }

.lb-pill-warning { color: yellow; border: 1px solid yellow; padding: 0 4px; }

/* 슬롯 디자인 */
.lb-slot-row {
  border: 1px solid var(--lb-border); padding: 10px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px;
}
.lb-slot-main { display: flex; flex-direction: column; }
.lb-slot-label { font-size: 14px; color: var(--lb-text-muted); }
.lb-slot-value { font-size: 20px; }

/* 로그 콘솔 */
.lb-console-body {
  height: 200px; overflow-y: auto;
  border: 1px solid var(--lb-border);
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 16px;
}
.lb-console-line { margin-bottom: 4px; }

/* 푸터 */
.lb-footer {
  border-top: 1px solid var(--lb-border);
  padding-top: 10px; color: var(--lb-text-muted);
}

/* 모바일 대응 (반응형) */
@media (max-width: 840px) {
  .lb-header { grid-template-columns: 1fr; text-align: center; }
  .lb-header-left, .lb-header-center, .lb-header-right { justify-content: center; margin-bottom: 5px;}
  .lb-status-pill { justify-content: center; }
  .lb-main { grid-template-columns: 1fr; } /* 1단 배열 */
}