/* Maze Chase Arcade — styles (Blogarise-safe: doppelte Selektoren + !important) */

html body .mca-wrap.mca-wrap {
  all: initial;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  justify-content: center !important;
  align-items: flex-start !important;
  background: radial-gradient(ellipse at center, #0d0f1c 0%, #05060c 75%) !important;
  padding: 20px !important;
  border-radius: 10px !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

html body .mca-wrap.mca-wrap * {
  box-sizing: border-box !important;
}

html body .mca-wrap .mca-stage.mca-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

html body .mca-wrap #mca-canvas {
  background: #05060c !important;
  border-radius: 8px !important;
  max-width: 100% !important;
  height: auto !important;
  box-shadow: 0 0 30px rgba(80,180,255,0.18) !important;
  touch-action: none !important;
}

/* D-Pad — standardmäßig ausgeblendet, erscheint nur auf Touch-Geräten (siehe Media Query unten) */
html body .mca-wrap .mca-dpad.mca-dpad {
  display: none !important;
  grid-template-columns: 56px 56px 56px !important;
  grid-template-rows: 56px 56px !important;
  gap: 8px !important;
  margin-top: 6px !important;
}
@media (pointer: coarse), (hover: none) {
  html body .mca-wrap .mca-dpad.mca-dpad {
    display: grid !important;
  }
}
html body .mca-wrap .mca-dbtn.mca-dbtn {
  background: #12213f !important;
  background-color: #12213f !important;
  color: #4dd9ff !important;
  -webkit-text-fill-color: #4dd9ff !important;
  border: 2px solid #2b6cff !important;
  border-radius: 8px !important;
  font-size: 22px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  user-select: none !important;
  touch-action: manipulation !important;
}
html body .mca-wrap .mca-dbtn.mca-dbtn:active {
  background: #2b6cff !important;
  background-color: #2b6cff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body .mca-wrap .mca-dup.mca-dup   { grid-column: 2; grid-row: 1; }
html body .mca-wrap .mca-dleft.mca-dleft { grid-column: 1; grid-row: 2; }
html body .mca-wrap .mca-dright.mca-dright{ grid-column: 3; grid-row: 2; }
html body .mca-wrap .mca-ddown.mca-ddown { grid-column: 2; grid-row: 2; }

/* Leaderboard */
html body .mca-wrap .mca-board.mca-board {
  background: #0a0c18 !important;
  background-color: #0a0c18 !important;
  border: 2px solid #1a2440 !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  min-width: 220px !important;
  max-width: 280px !important;
  color: #e9edf5 !important;
  -webkit-text-fill-color: #e9edf5 !important;
}
html body .mca-wrap .mca-board h3.mca-board-title,
html body .mca-wrap .mca-board h3 {
  margin: 0 0 12px 0 !important;
  color: #ffe14d !important;
  -webkit-text-fill-color: #ffe14d !important;
  font-size: 16px !important;
}
html body .mca-wrap .mca-leaderboard-list.mca-leaderboard-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .mca-wrap .mca-leaderboard-list li {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #1a2440 !important;
  color: #c9d1d9 !important;
  -webkit-text-fill-color: #c9d1d9 !important;
  font-size: 13px !important;
}
html body .mca-wrap .mca-leaderboard-list .mca-rank {
  color: #4dd9ff !important;
  -webkit-text-fill-color: #4dd9ff !important;
  font-weight: bold !important;
  min-width: 28px !important;
}
html body .mca-wrap .mca-leaderboard-list .mca-name {
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body .mca-wrap .mca-leaderboard-list .mca-score {
  color: #7ee787 !important;
  -webkit-text-fill-color: #7ee787 !important;
  font-weight: bold !important;
}
html body .mca-wrap .mca-empty.mca-empty {
  color: #556 !important;
  -webkit-text-fill-color: #556 !important;
  font-size: 12px !important;
}

/* Game Over Overlay */
html body .mca-overlay.mca-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2,3,8,0.86) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}
html body .mca-modal.mca-modal {
  background: #0a0c18 !important;
  background-color: #0a0c18 !important;
  border: 2px solid #2b6cff !important;
  border-radius: 12px !important;
  padding: 28px 26px !important;
  width: 90% !important;
  max-width: 360px !important;
  text-align: center !important;
  color: #e9edf5 !important;
  -webkit-text-fill-color: #e9edf5 !important;
  box-shadow: 0 0 40px rgba(43,108,255,0.35) !important;
}
html body .mca-modal h2 {
  margin: 0 0 6px 0 !important;
  color: #ff4d6d !important;
  -webkit-text-fill-color: #ff4d6d !important;
  letter-spacing: 2px !important;
}
html body .mca-modal .mca-final-score {
  color: #ffe14d !important;
  -webkit-text-fill-color: #ffe14d !important;
  font-size: 22px !important;
  font-weight: bold !important;
  margin: 6px 0 18px 0 !important;
}
html body .mca-modal .mca-input-label {
  display: block !important;
  text-align: left !important;
  font-size: 12px !important;
  color: #9aa6c0 !important;
  -webkit-text-fill-color: #9aa6c0 !important;
  margin-bottom: 14px !important;
}
html body .mca-modal #mca-name-input {
  width: 100% !important;
  margin-top: 6px !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #2b6cff !important;
  background: #05060c !important;
  background-color: #05060c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px !important;
}
html body .mca-modal .mca-hp-field.mca-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
html body .mca-modal .mca-consent-label {
  display: flex !important;
  gap: 8px !important;
  align-items: flex-start !important;
  text-align: left !important;
  font-size: 11px !important;
  color: #9aa6c0 !important;
  -webkit-text-fill-color: #9aa6c0 !important;
  margin-bottom: 18px !important;
  line-height: 1.5 !important;
}
html body .mca-modal .mca-consent-label a {
  color: #4dd9ff !important;
  -webkit-text-fill-color: #4dd9ff !important;
}
html body .mca-modal .mca-modal-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
html body .mca-modal .mca-btn.mca-btn {
  background: #12213f !important;
  background-color: #12213f !important;
  color: #e9edf5 !important;
  -webkit-text-fill-color: #e9edf5 !important;
  border: 2px solid #2b6cff !important;
  border-radius: 8px !important;
  padding: 12px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
html body .mca-modal .mca-btn-primary.mca-btn-primary {
  background: #2b6cff !important;
  background-color: #2b6cff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body .mca-modal .mca-btn.mca-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
html body .mca-modal .mca-save-status.mca-save-status {
  margin-top: 10px !important;
  font-size: 12px !important;
  min-height: 16px !important;
  color: #7ee787 !important;
  -webkit-text-fill-color: #7ee787 !important;
}

@media (max-width: 640px) {
  html body .mca-wrap.mca-wrap { padding: 10px !important; gap: 12px !important; }
  html body .mca-wrap .mca-board.mca-board { max-width: 100% !important; width: 100% !important; }
}
