/* ===============================
   Neon Dust: The Architect - Global 스타일
   =============================== */

/* 기본 리셋 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #050505;
  color: #e5f4ff;
  font-family: "Orbitron", "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh; /* 🔹 모바일에서 주소창 변화 대응 */
}

/* 색상/테마 변수 */
:root {
  --bg-main: #050505;
  --bg-panel: #0b1018;
  --bg-panel-soft: #090d14;

  --accent-blue: #36e4ff;
  --accent-pink: #ff4fd8;
  --accent-green: #5cff9d;

  --line-soft: rgba(255, 255, 255, 0.06);
  --text-dim: #8b9bb5;
  --text-strong: #eaf5ff;

  --border-neon: 0 0 12px rgba(54, 228, 255, 0.7),
    0 0 24px rgba(255, 79, 216, 0.4);
  --scanline-color: rgba(255, 255, 255, 0.06);
}

/* 앱 컨테이너 */
#app {
  width: 100%;
  max-width: 1100px;
  padding: 16px;
}

/* 메인 프레임 (CRT 느낌) */
.game-frame {
  position: relative;
  background: radial-gradient(circle at top, #151f2b 0, #050509 55%, #000 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), var(--border-neon);
  padding: 16px 20px 14px;
  overflow: hidden;
}

/* CRT 스캔라인 효과 */
.crt-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

/* 상단 헤더 */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-title {
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-shadow: 0 0 8px rgba(54, 228, 255, 0.8);
}

.game-title span {
  color: var(--accent-pink);
}

.game-subtitle {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* 헤더 우측 상태 인디케이터 */
.header-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 255, 157, 0.4);
  background: linear-gradient(
    120deg,
    rgba(92, 255, 157, 0.12),
    rgba(54, 228, 255, 0.04)
  );
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(92, 255, 157, 0.9);
  animation: indicator-pulse 1.6s ease-in-out infinite;
}

.indicator-text {
  font-size: 0.72rem;
  color: var(--accent-green);
  letter-spacing: 0.14em;
  font-family: "Rajdhani", system-ui, sans-serif;
}

/* 헤더 인디케이터 애니메이션 */
@keyframes indicator-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

/* 메인 3열 레이아웃 */
.game-layout {
  display: grid;
  grid-template-columns: 230px minmax(300px, 1fr) 230px;
  gap: 14px;
}

/* 공통 패널 스타일 */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.center-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 각 패널 블록 박스 */
.panel-block {
  background: linear-gradient(
    160deg,
    var(--bg-panel) 0%,
    var(--bg-panel-soft) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  padding: 10px 10px 8px;
  position: relative;
  overflow: hidden;
}

/* 패널 상단 타이틀 */
.panel-title {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* 패널 설명 (스토리용) */
.panel-desc {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dim);
}

/* 패널 내부 내용 공통 래퍼 */
.panel-inner {
  padding: 4px;
  border-radius: 8px;
  background: radial-gradient(circle at top, #182235 0, #080b11 60%, #05060a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 홀드 패널 캔버스 */
#hold-canvas {
  display: block;
  margin: 4px auto;
  background-color: #040509;
  border-radius: 6px;
  border: 1px solid rgba(54, 228, 255, 0.3);
  box-shadow: 0 0 12px rgba(54, 228, 255, 0.5);
}

/* ------------------------------
   System Status 패널
   ------------------------------ */

/* System Status 패널 타이틀은 조금 더 작게 */
.status-panel .panel-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

/* Status 리스트 전체 박스 */
.status-panel .status-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 2px 0;
  border-radius: 6px;
  background: radial-gradient(circle at 0 0, rgba(23, 255, 196, 0.08), transparent 55%);
  border-top: 1px solid rgba(120, 230, 255, 0.3);
  border-bottom: 1px solid rgba(120, 230, 255, 0.24);
  font-size: 0.7rem; /* 🔹 전체 글자 크기 축소 */
}

/* 각 줄 */
.status-panel .status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px;
  border-bottom: 1px dashed rgba(120, 230, 255, 0.18);
}

.status-panel .status-item:last-child {
  border-bottom: none;
}

/* 라벨은 살짝 연한 톤 */
.status-panel .status-label {
  color: rgba(203, 235, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 값은 오른쪽 정렬 + 조금 더 강조 */
.status-panel .status-value {
  color: #e7f8ff;
  font-weight: 600;
  font-family: "Orbitron", system-ui, sans-serif;
}

/* 예시: game 스타일 CSS에 추가 */
.nd-leaderboard-panel {
    margin-top: 12px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-size: 11px;
    color: #c8f7ff;
    background: rgba(0, 0, 0, 0.6);
}

.nd-leaderboard-title {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nd-leaderboard-meta {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.nd-leaderboard-list-wrapper {
    max-height: 160px; /* 필요에 따라 */
    overflow-y: auto;
}

.nd-leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nd-leaderboard-list li {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.nd-leaderboard-rank {
    width: 26px;
    text-align: right;
    opacity: 0.7;
}

.nd-leaderboard-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nd-leaderboard-score {
    width: 70px;
    text-align: right;
}

.nd-leaderboard-me {
    color: #fffd90;
}

.player-info-panel {
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 200, 0.35);
  background: rgba(0, 0, 0, 0.6);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8f7ff;
}

.player-info-label {
  opacity: 0.7;
}

.player-info-name {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #ffeaa7;
  text-shadow: 0 0 6px rgba(255, 234, 167, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* 중앙 캔버스 프레임 (CRT 메인 화면) */
.canvas-frame {
  position: relative;
  padding: 6px;
  border-radius: 14px;
  background: radial-gradient(circle at top, #1e2b42 0, #05060b 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px rgba(54, 228, 255, 0.8),
    0 0 60px rgba(255, 79, 216, 0.4);
}

/* CRT 스캔라인 효과 (게임 화면용) */
.crt-display::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

/* 메인 게임 캔버스 */
#game-canvas {
  display: block;
  background-color: #020308;
  border-radius: 8px;
  border: 1px solid rgba(54, 228, 255, 0.4);
  box-shadow: 0 0 18px rgba(54, 228, 255, 0.8);
}

/* 섹터 메시지 (타이핑용 오버레이) */
.sector-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 18px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(54, 228, 255, 0.8);
  color: var(--accent-blue);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), transparent 45%);
  opacity: 1;
  transition: opacity 0.35s ease-out;
}

.sector-message.hidden {
  opacity: 0;
}

/* Next 패널 */
.next-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.next-canvas {
  display: block;
  margin: 0 auto;
  background-color: #040509;
  border-radius: 6px;
  border: 1px solid rgba(255, 79, 216, 0.4);
  box-shadow: 0 0 12px rgba(255, 79, 216, 0.7);
}

/* Controls 리스트 */
.controls-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 0.8rem;
}

.controls-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.controls-list li:last-child {
  border-bottom: none;
}

/* 🔹 모바일 전용 HUD (점수/섹터/라인/복구율 + Next) */
.mobile-hud {
  display: none; /* 모바일에서만 보이게 @media에서 변경 */
  margin-bottom: 4px;
  font-family: "Rajdhani", system-ui, sans-serif;
}

.mobile-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-hud-status {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: rgba(220, 237, 255, 0.85);
}

.hud-item span {
  font-weight: 600;
  color: var(--accent-green);
}

.mobile-hud-next {
  gap: 4px;
  justify-content: center;
}

/* 🔹 모바일 HUD: Hold + Next 한 줄 배치 */
.mobile-hud-hold-next {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-hold-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: radial-gradient(circle at top, rgba(54, 228, 255, 0.12), transparent 70%);
  border: 1px solid rgba(54, 228, 255, 0.45);
}

.mobile-hold-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 236, 255, 0.9);
  margin-bottom: 2px;
}

.hold-canvas-mobile {
  background-color: #040509;
  border-radius: 4px;
  border: 1px solid rgba(92, 255, 157, 0.5);
  box-shadow: 0 0 10px rgba(92, 255, 157, 0.7);
}

.mobile-next-box {
  display: flex;
  gap: 4px;
}


.next-canvas-mobile {
  background-color: #040509;
  border-radius: 4px;
  border: 1px solid rgba(54, 228, 255, 0.4);
  box-shadow: 0 0 8px rgba(54, 228, 255, 0.6);
}

.key {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent);
  color: var(--accent-blue);
  font-size: 0.72rem;
}

.key-desc {
  color: var(--text-dim);
}

/* 푸터 */
.game-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: flex-end;
}

.footer-text {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* 🔹 모바일 전용 작은 타이틀 (기본은 숨김) */
.mobile-game-title {
  display: none;
  text-align: center;
  font-family: "Orbitron", "Rajdhani", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: rgba(226, 243, 255, 0.8);
}

.mobile-game-title span {
  color: var(--accent-pink);
}

/* ------------------------------
   모바일 세로 모드 안내 오버레이
   ------------------------------ */

.orientation-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  background:
    radial-gradient(circle at top, rgba(10, 20, 40, 0.95), rgba(0, 0, 0, 0.98));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* JS에서 .active를 붙이면 표시 */
.orientation-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.orientation-inner {
  text-align: center;
  padding: 20px 26px;
  border-radius: 12px;
  border: 1px solid rgba(54, 228, 255, 0.6);
  box-shadow:
    0 0 18px rgba(54, 228, 255, 0.7),
    0 0 32px rgba(255, 79, 216, 0.35);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.35), transparent 55%),
    rgba(3, 8, 18, 0.96);
}

.orientation-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.orientation-text {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf5ff;
}

.orientation-text strong {
  color: #36e4ff;
}

/* 아주 작은 화면에서는 패딩 조금 줄이기 */
@media (max-width: 480px) {
  .orientation-inner {
    padding: 16px 18px;
  }

  .orientation-text {
    font-size: 0.8rem;
  }
}

/* ------------------------------
   게임 시작/재시작 오버레이
   ------------------------------ */

.game-overlay {
  position: absolute;
  inset: 32px 24px 24px 24px; /* 위/좌/우/아래 여백 */
  display: flex;
  flex-direction: column;      /* 🔹 문구 위, 버튼 아래 세로 정렬 */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* 완전히 숨길 때 */
.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 페이드아웃 + 약간 줌 효과 */
.game-overlay.fade-out {
  animation: overlayFadeOut 0.35s ease forwards;
}

@keyframes overlayFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* 오버레이 안의 메시지 텍스트 */
.overlay-message {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-blue);
  text-shadow:
    0 0 8px rgba(0, 255, 255, 0.7),
    0 0 18px rgba(0, 255, 255, 0.4);
  max-width: 260px;
}

/* 중앙 버튼 스타일 (네온 느낌) */
.overlay-button {
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid #36e4ff;
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.5), transparent 55%),
    rgba(2, 8, 18, 0.95);
  color: #e5f7ff;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(0, 255, 255, 0.6),
    0 0 32px rgba(255, 79, 216, 0.3);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.2s ease;
}

.overlay-button:hover {
  transform: translateY(-1px);
  border-color: #76f7ff;
  box-shadow:
    0 0 24px rgba(0, 255, 255, 0.9),
    0 0 40px rgba(255, 79, 216, 0.45);
}

.overlay-button:active {
  transform: translateY(0);
  box-shadow:
    0 0 14px rgba(0, 255, 255, 0.5),
    0 0 28px rgba(255, 79, 216, 0.3);
}

/* ------------------------------
   📱 모바일 전용 가상 조작 버튼
   ------------------------------ */

/* 기본: PC에서는 숨김, 모바일 세로에서만 @media로 보이게 */
.mobile-controls {
  display: none;             /* @media에서 block으로 */
  margin-top: 8px;
  padding: 0 4px 2px;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
}

.mobile-controls-left,
.mobile-controls-right {
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(54, 228, 255, 0.7);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.35), transparent 65%),
    rgba(4, 10, 20, 0.92);
  color: #e5f7ff;
  font-family: "Orbitron", "Rajdhani", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.5),
    0 0 18px rgba(255, 79, 216, 0.35);
  cursor: pointer;
  padding: 6px 10px;
  touch-action: manipulation;
}

.ctrl-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.4),
    0 0 14px rgba(255, 79, 216, 0.25);
}

/* 좌/우/소프트 드롭 쪽 버튼은 약간 더 넓게 */
.ctrl-move-left,
.ctrl-move-right,
.ctrl-soft-drop {
  min-width: 46px;
}




/* 반응형 (폭 좁을 때 2열 / 1열로 정렬) */
@media (max-width: 980px) {
  .game-layout {
    grid-template-columns: 200px minmax(280px, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "left center"
      "right center";
  }

  .left-panel {
    grid-area: left;
  }

  .center-panel {
    grid-area: center;
  }

  .right-panel {
    grid-area: right;
  }
}

@media (max-width: 720px) {
  /* 화면이 좁을 땐 위에서부터 쌓이게 */
  body {
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
    overflow: hidden;    /* 스크롤 방지: 게임 화면 고정 */
  }

  #app {
    max-width: 100%;
    padding: 0;
  }

  /* 모바일에선 큰 헤더/푸터/사이드 패널 숨기기 */
  .game-header,
  .game-footer,
  .left-panel,
  .right-panel {
    display: none;
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .center-panel {
    order: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .game-frame {
    padding: 8px 8px 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .canvas-frame {
    padding: 4px;
  }

  /* 🔹 모바일에서 캔버스를 조금 더 작게: 최대 약 250px */
  #game-canvas {
    width: min(calc(100vw - 32px), 250px);
    height: auto; /* 비율 유지 (300x600 → 약 250x500 근처) */
    display: block;
    margin: 0 auto;
  }


  /* 🔹 모바일 전용 작은 타이틀 + HUD 보이게 */
  .mobile-game-title {
    display: block;
  }

  .mobile-hud {
    display: block;
  }

  /* 🔹 모바일에서만 가상 버튼 활성화 */
  .mobile-controls {
    display: flex;
  }

  /* 섹터 메시지 글자도 조금 줄이기 */
  .sector-message {
    font-size: 0.8rem;
    padding: 0 10px;
  }
}

.nd-main-link-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;

  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 6, 8, 0.88);

  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ea3bd;
  text-decoration: none;

  box-shadow: 0 0 16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);

  transition:
    background 160ms ease-out,
    border-color 160ms ease-out,
    color 160ms ease-out,
    box-shadow 160ms ease-out,
    transform 160ms ease-out;
}

/* ==============================
   Overlay 버튼 공통 스타일
   - START / RETRY / 메인 이동 버튼 공통
   ============================== */

.nd-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 180px;
  padding: 10px 22px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 6, 8, 0.92);

  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f4f4;
  text-decoration: none;

  cursor: pointer;

  box-shadow: 0 0 22px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);

  transition:
    background 160ms ease-out,
    border-color 160ms ease-out,
    color 160ms ease-out,
    box-shadow 160ms ease-out,
    transform 160ms ease-out;
}

/* 메인 START / RETRY 버튼: 블로그/게임 톤에 맞는 네온 그라데이션 */
.nd-overlay-btn-primary {
  background: linear-gradient(120deg, #ff2eff, #27f3ff);
  border-color: transparent;
  color: #050608;
  box-shadow: 0 0 28px rgba(255, 46, 255, 0.45);
}

.nd-overlay-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(255, 46, 255, 0.65);
}

/* 메인으로 이동 버튼: 같은 디자인, 다른 컬러 (조용한 시안톤) */
.nd-overlay-btn-secondary {
  margin-top: 8px; /* START 버튼 바로 아래로 */
  background: rgba(5, 10, 18, 0.95);
  border-color: rgba(39, 243, 255, 0.55);
  color: #c5f7ff;
  font-size: 11px;
}

.nd-overlay-btn-secondary:hover {
  background: rgba(8, 14, 24, 0.98);
  border-color: #27f3ff;
  color: #ffffff;
  box-shadow: 0 0 26px rgba(39, 243, 255, 0.5);
  transform: translateY(-1px);
}
